; /* Start:"a:4:{s:4:"full";s:47:"/local/templates/lk/js/custom.js?17394530814674";s:6:"source";s:32:"/local/templates/lk/js/custom.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ function sendingFormData(form) { const formdata = new FormData(form); const data = new URLSearchParams(formdata).toString(); console.log('function top'); console.log('data', data); $.get("/ajax/ajax.php", { data: data, request: 'reg_info' }) .done(function (data) { console.log('done:', data) data = JSON.parse(data); console.log(data) if (data['error']) { $('.validation-form-message-server').text(data['error']).addClass('is--active'); $('.input-field.auth-form__input.card_number').addClass('is--error'); } else { window.location.href = '/' } // }) .fail(function (data) { console.log('fail:', data) console.log('error') }); } $(document).ready(function () { $('#checkbox-notification-email').change(function () { if ($(this).is(':checked')) { $('#auth-email').attr({ 'placeholder': 'Обязательное поле', 'data-validation': 'required' }); $('.email-input').show(); } else { $('.email-input').hide(); $('#auth-email').removeAttr('placeholder data-validation'); } }); // Если отключается весь блок уведомлений $('#switch-service-notifications').change(function () { if (!$(this).is(':checked')) { $('.email-input').hide(); $('#auth-email').removeAttr('placeholder data-validation').val(''); $('#checkbox-notification-email').prop('checked', false); } }); $('.auth-form__checkboxes input[type="checkbox"]').on('change', function() { var checkedCount = $('.auth-form__checkboxes input[type="checkbox"]:checked').length; if (checkedCount === 0) { $('#switch-service-notifications').prop('checked', false); $('.auth-form__hidden-block').hide(); } if (checkedCount > 0) { $('#switch-service-notifications').prop('checked', true); } }); const cardYesBtn = $('.card-yes-btn'); const cardNoBtn = $('.card-no-btn'); const cardNumberField = $('.auth-form__card-number'); const formFields = $('#form-fields'); const cardNumberInput = $('#auth-plastic-card'); const cardSelectedInput = $('input[name="CARD_SELECTED"]'); // Функция для скрытия элемента с помощью inline-стиля function hideElement(element) { element.css('display', 'none'); } // Функция для отображения элемента с помощью inline-стиля function showElement(element) { element.css('display', ''); // Используем display:'' чтобы восстановить исходное значение CSS } function activateButton(button) { button.css('background-color', '#69a81d'); // пример: синий фон } function deactivateButton(button) { button.css('background-color', ''); } // Обработчик для кнопки "ДА" cardYesBtn.on('click', function() { deactivateButton(cardNoBtn); activateButton(cardYesBtn); showElement(cardNumberField); hideElement(formFields); cardSelectedInput.val('yes'); cardNumberInput.focus(); }); // Обработчик для кнопки "НЕТ" cardNoBtn.on('click', function() { $('#auth-plastic-card').val(''); deactivateButton(cardYesBtn); activateButton(cardNoBtn); hideElement(cardNumberField); showElement(formFields); cardSelectedInput.val('no'); }); // Отображение формы только при вводе 13 символов cardNumberInput.on('input', function() { if ($(this).val().trim().length === 13) { showElement(formFields); } }); if(cardSelectedInput.val() == 'yes'){ showElement(cardNumberField); } if(cardSelectedInput.val() == 'no' || cardNumberInput.val()){ showElement(formFields); } if (!localStorage.getItem('cookieConsent')) { $('#cookiePopup').show(); } $('#cookieAccept').click(function() { localStorage.setItem('cookieConsent', 'true'); $('#cookiePopup').hide(); }); let settingsOpen = false; $('#cookieSettings').click(function() { settingsOpen = !settingsOpen; $('#cookiePopupSettings').slideToggle(300); }); }); /* End */ ; ; /* Start:"a:4:{s:4:"full";s:53:"/local/templates/lk/js/vendor.min.js?1728458896194208";s:6:"source";s:36:"/local/templates/lk/js/vendor.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ /*! * dist/inputmask.min * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2023 Robin Herbots * Licensed under the MIT license * Version: 5.0.8 */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={8741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n},3976:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(2839),a={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[i.keys.Backspace,i.keys.Tab,i.keys.Pause,i.keys.Escape,i.keys.PageUp,i.keys.PageDown,i.keys.End,i.keys.Home,i.keys.ArrowLeft,i.keys.ArrowUp,i.keys.ArrowRight,i.keys.ArrowDown,i.keys.Insert,i.keys.Delete,i.keys.ContextMenu,i.keys.F1,i.keys.F2,i.keys.F3,i.keys.F4,i.keys.F5,i.keys.F6,i.keys.F7,i.keys.F8,i.keys.F9,i.keys.F10,i.keys.F11,i.keys.F12,i.keys.Process,i.keys.Unidentified,i.keys.Shift,i.keys.Control,i.keys.Alt,i.keys.Tab,i.keys.AltGraph,i.keys.CapsLock],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};t.default=a},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,i;return d(this[0])&&e&&(n=this[0].eventRegistry,i=this[0],e.split(" ").forEach((function(e){var a=l(e.split("."),2);(function(e,i){var a,o,r=[];if(e.length>0)if(void 0===t)for(a=0,o=n[e][i].length;a0?i:"global",handler:n[e][i][a]});else r.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var s in n)for(var l in n[s])if(l===i)if(void 0===t)for(a=0,o=n[s][l].length;ae.length)&&(t=e.length);for(var n=0,i=new Array(t);n0||o.indexOf("Trident/")>0,s=navigator.userAgentData&&navigator.userAgentData.mobile||a.default.navigator&&a.default.navigator.maxTouchPoints||"ontouchstart"in a.default,l=/iphone/i.test(o);t.iphone=l,t.mobile=s,t.ie=r},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var i=n(8711),a=n(2839),o=n(9845),r=n(7215),s=n(7760),l=n(4713);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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 o,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0&&b.end>0&&(e.preventDefault(),i.caret.call(f,g,b.begin,b.end))):(b.begin=i.seekNext.call(f,b.begin,!0),b.end=i.seekNext.call(f,b.begin,!0),b.end=f.length?u.length:f.length,m=d.length>=p.length?d.length:p.length,g="",v=[],y="~";u.length0;){var r=o.pop();["submit","reset"].includes(a)?null!==e.form&&n(e.form).off(a,r):n(e).off(a,r)}delete e.inputmask.events[a]}}}};t.EventRuler=l},219:function(e,t,n){var i=d(n(2394)),a=n(2839),o=d(n(7184)),r=n(8711),s=n(4713);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return M(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return M(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return M(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return M(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return M(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return M(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return M(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return M(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return M(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return M(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",y,"ampm",b,1],tt:["[ap]m",y,"ampm",b,2],T:["[AP]",y,"ampm",b,1],TT:["[AP]M",y,"ampm",b,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];return e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,r,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0]})).join("")),e}],o:[""],S:[""]},v={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function y(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function b(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function k(e){var t=new RegExp("\\d+$").exec(e[0]);if(t&&void 0!==t[0]){var n=g[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(g[e[0]])return g[e[0]]}function w(e){if(!e.tokenizer){var t=[],n=[];for(var i in g)if(/\.*x$/.test(i)){var a=i[0]+"\\d+";-1===n.indexOf(a)&&n.push(a)}else-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function x(e,t,n){if(!m)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var i=O(t.pos,n);if("yyyy"===i.targetMatch[0]&&t.pos-i.targetMatchIndex==2)return t.remove=t.pos+1,t}else if("02"==e.month&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=r.seekNext.call(this,t.pos+1),t;return!1}function S(e,t,n,i){var a,r,s="";for(w(n).lastIndex=0;a=w(n).exec(e);)if(void 0===t)if(r=k(a))s+="("+r[0]+")";else switch(a[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=(0,o.default)(a[0])}else(r=k(a))?!0!==i&&r[3]?s+=r[3].call(t.date):r[2]?s+=t["raw"+r[2]]:s+=a[0]:s+=a[0];return s}function M(e,t,n){for(e=String(e),t=t||2;e.length=e+1){n=i,i=w(t).exec(t.inputFormat);break}}return{targetMatchIndex:a-o,nextMatch:i,targetMatch:n}}i.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,g.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=v[e.inputFormat]||e.inputFormat,e.displayFormat=v[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=v[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[[\]]/,""),e.regex=S(e.inputFormat,void 0,e),e.min=D(e.min,e.inputFormat,e),e.max=D(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(e,t,n,i,a,o,r,s){if(s)return!0;if(isNaN(n)&&e[t]!==n){var l=O(t,a);if(l.nextMatch&&l.nextMatch[0]===n&&l.targetMatch[0].length>1){var c=g[l.targetMatch[0]][0];if(new RegExp(c).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,i,a,o,r,l){var c,u;if(r)return!0;if(!1===i&&(((c=O(t+1,a)).targetMatch&&c.targetMatchIndex===t&&c.targetMatch[0].length>1&&void 0!==g[c.targetMatch[0]]||(c=O(t+2,a)).targetMatch&&c.targetMatchIndex===t+1&&c.targetMatch[0].length>1&&void 0!==g[c.targetMatch[0]])&&(u=g[c.targetMatch[0]][0]),void 0!==u&&(void 0!==o.validPositions[t+1]&&new RegExp(u).test(n+"0")?(e[t]=n,e[t+1]="0",i={pos:t+2,caret:t}):new RegExp(u).test("0"+n)&&(e[t]="0",e[t+1]=n,i={pos:t+2})),!1===i))return i;if(i.fuzzy&&(e=i.buffer,t=i.pos),(c=O(t,a)).targetMatch&&c.targetMatch[0]&&void 0!==g[c.targetMatch[0]]){var d=g[c.targetMatch[0]];u=d[0];var f=e.slice(c.targetMatchIndex,c.targetMatchIndex+c.targetMatch[0].length);if(!1===new RegExp(u).test(f.join(""))&&2===c.targetMatch[0].length&&o.validPositions[c.targetMatchIndex]&&o.validPositions[c.targetMatchIndex+1]&&(o.validPositions[c.targetMatchIndex+1].input="0"),"year"==d[2])for(var p=s.getMaskTemplate.call(this,!1,1,void 0,!0),m=t+1;m=s.getTime())&&(e.date.setFullYear(h),e.year=i,t.insert=[{pos:t.pos+1,c:r[0]},{pos:t.pos+2,c:r[1]}])}}return t}(y,v,a)),v=function(e,t,n,i,a){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var o;for(e.reset(),w(n).lastIndex=0;o=w(n).exec(n.inputFormat);){var r;if((r=k(o))&&r[3]){for(var s=r[1],l=e[r[2]],c=n.min[r[2]],u=n.max?n.max[r[2]]:c,d=[],f=!1,p=0;pc[p]):(d[p]=c[p],"year"===r[2]&&l.length-1==p&&c!=u&&(d=(parseInt(d.join(""))+1).toString().split("")),"ampm"===r[2]&&c!=u&&n.min.date.getTime()>e.date.getTime()&&(d[p]=u[p]));s.call(e._date,d.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(y,v=x.call(this,y,v,a),a,o)),void 0!==t&&v&&i.pos!==t?{buffer:S(a.inputFormat,y,a).split(""),refreshFromBuffer:{start:t,end:i.pos},pos:i.caret||i.pos}:v},onKeyDown:function(e,t,n,i){e.ctrlKey&&e.key===a.keys.ArrowRight&&(this.inputmask._valueSet(C(new Date,i)),f(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?S(n.outputFormat,D(e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,i){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=C(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(e,t,n){var i,a=(i=n(2394))&&i.__esModule?i:{default:i},o=n(8711),r=n(4713);a.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var s=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function l(e,t,n,i,a){return n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,s.test(e)}a.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:l},j:{validator:l},k:{validator:l},l:{validator:l}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,i="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",a=i;if(t)for(var o=0;o0&&t>0&&(!n.digitsOptional||i)){var a=e.indexOf(n.radixPoint),o=!1;n.negationSymbol.back===e[e.length-1]&&(o=!0,e.length--),-1===a&&(e.push(n.radixPoint),a=e.length-1);for(var r=1;r<=t;r++)isFinite(e[a+r])||(e[a+r]="0")}return o&&e.push(n.negationSymbol.back),e}function d(e,t){var n=0;for(var i in"+"===e&&(n=o.seekNext.call(this,t.validPositions.length-1)),t.tests)if((i=parseInt(i))>=n)for(var a=0,r=t.tests[i].length;a1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var i,o="[+]";if(o+=c(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),o+=e._mask(e)):o+="9{+}",void 0!==e.digits&&0!==e.digits){var r=e.digits.toString().split(",");isFinite(r[0])&&r[1]&&isFinite(r[1])?o+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(i=o+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):o+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return o+=c(e.suffix,e),o+="[-]",i&&(o=[i+c(e.suffix,e)+"[-]",o]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,a.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,a.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&e.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),o},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,n,i,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)}},"-":{validator:function(e,t,n,i,a){return a.allowMinus&&e===a.negationSymbol.back}}},preValidation:function(e,t,n,i,a,o,r,s){if(!1!==a.__financeInput&&n===a.radixPoint)return!1;var l=e.indexOf(a.radixPoint),c=t;if(t=function(e,t,n,i,a){return a._radixDance&&a.numericInput&&t!==a.negationSymbol.back&&e<=n&&(n>0||t==a.radixPoint)&&(void 0===i.validPositions[e-1]||i.validPositions[e-1].input!==a.negationSymbol.back)&&(e-=1),e}(t,n,l,o,a),"-"===n||n===a.negationSymbol.front){if(!0!==a.allowMinus)return!1;var u=!1,p=f("+",o),h=f("-",o);return-1!==p&&(u=[p,h]),!1!==u?{remove:u,caret:c-a.negationSymbol.back.length}:{insert:[{pos:d.call(this,"+",o),c:a.negationSymbol.front,fromIsValid:!0},{pos:d.call(this,"-",o),c:a.negationSymbol.back,fromIsValid:void 0}],caret:c+a.negationSymbol.back.length}}if(n===a.groupSeparator)return{caret:c};if(s)return!0;if(-1!==l&&!0===a._radixDance&&!1===i&&n===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0)&&l!==t)return{caret:a._radixDance&&t===l-1?l+1:l};if(!1===a.__financeInput)if(i){if(a.digitsOptional)return{rewritePosition:r.end};if(!a.digitsOptional){if(r.begin>l&&r.end<=l)return n===a.radixPoint?{insert:{pos:l+1,c:"0",fromIsValid:!0},rewritePosition:l}:{rewritePosition:l+1};if(r.begin0&&""===this.__valueGet.call(this.el))return{rewritePosition:l};return{rewritePosition:t}},postValidation:function(e,t,n,i,a,o,r){if(!1===i)return i;if(r)return!0;if(null!==a.min||null!==a.max){var s=a.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&sa.min.toString().length||s<0))return!1;if(null!==a.max&&s>a.max)return!!a.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(a.max.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}return i},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var i=e.replace(n.prefix,"");return i=(i=i.replace(n.suffix,"")).replace(new RegExp((0,a.default)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(i=i.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==i.indexOf(n.radixPoint)&&(i=i.replace(a.default.call(this,n.radixPoint),".")),i=(i=i.replace(new RegExp("^"+(0,a.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,a.default)(n.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,a.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,a.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,a.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,a.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===n||(e=e.toString().replace(".",n));var i="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,o=e.split(n),r=o[0].replace(/[^\-0-9]/g,""),s=o.length>1?o[1].replace(/[^0-9]/g,""):"",l=o.length>1;e=r+(""!==s?n+s:s);var c=0;if(""!==n&&(c=t.digitsOptional?t.digitst.max&&(e=t.max.toString().replace(".",n))}return i&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),c,t,l).join("")},onBeforeWrite:function(e,t,n,i){function o(e,t){if(!1!==i.__financeInput||t){var n=e.indexOf(i.radixPoint);-1!==n&&e.splice(n,1)}if(""!==i.groupSeparator)for(;-1!==(n=e.indexOf(i.groupSeparator));)e.splice(n,1);return e}var r,s;if(i.stripLeadingZeroes&&(s=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,a.default)(t.negationSymbol.front)+"?":"")+(0,a.default)(t.prefix)+")(.*)("+(0,a.default)(t.suffix)+(""!=t.negationSymbol.back?(0,a.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),i=n?n[2]:"",o=!1;return i&&(i=i.split(t.radixPoint.charAt(0))[0],o=new RegExp("^[0"+t.groupSeparator+"]*").exec(i)),!(!o||!(o[0].length>1||o[0].length>0&&o[0].length0;f--)delete this.maskset.validPositions[c+f],delete t[c+f];if(e)switch(e.type){case"blur":case"checkval":if(null!==i.min){var p=i.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},i,{unmaskAsNumber:!0}));if(null!==i.min&&p1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(s)),o.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case r.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),o.trigger("setvalue"),!1;case r.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),o.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===r.keys.Delete||e.key===r.keys.Backspace||e.key===r.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===r.keys.Delete?n.begin-1:n.end]===i.negationSymbol.front)return a=t.slice().reverse(),""!==i.negationSymbol.front&&a.shift(),""!==i.negationSymbol.back&&a.pop(),o.trigger("setvalue",[a.join(""),n.begin]),!1;if(!0===i._radixDance){var d=t.indexOf(i.radixPoint);if(i.digitsOptional){if(0===d)return(a=t.slice().reverse()).pop(),o.trigger("setvalue",[a.join(""),n.begin>=a.length?a.length:n.begin]),!1}else if(-1!==d&&(n.begin=a.length?d+1:n.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t,n){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((i=n(8741))&&i.__esModule?i:{default:i}).default?window:{};t.default=a},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(s.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var i=o.getBuffer.call(n).slice(),a=e.inputmask._valueGet();if(a!==t){var r=o.getLastValidPosition.call(n);-1===r&&a===o.getBufferTemplate.call(n).join("")?i=[]:-1!==r&&u.call(n,i),f(e,i)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=c,t.checkVal=d,t.clearOptionalTail=u,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,i=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&c(e,e.inputmask._valueGet(!0))}for(var a=[],r=i.validPositions,s=0,l=r.length;s0&&" "===n[i-1];)i--;var r=0===i&&!o.isMask.call(c,e)&&(a.getTest.call(c,e).match.nativeDef===t.charAt(0)||!0===a.getTest.call(c,e).match.static&&a.getTest.call(c,e).match.nativeDef==="'"+t.charAt(0)||" "===a.getTest.call(c,e).match.nativeDef&&(a.getTest.call(c,e+1).match.nativeDef===t.charAt(0)||!0===a.getTest.call(c,e+1).match.static&&a.getTest.call(c,e+1).match.nativeDef==="'"+t.charAt(0)));if(!r&&i>0&&!o.isMask.call(c,e,!1,!0)){var s=o.seekNext.call(c,e);c.caretPos.begin0){var w,x,S=o.seekNext.call(c,-1,void 0,!1);if(!r.isComplete.call(c,o.getBuffer.call(c))&&b.length<=S||r.isComplete.call(c,o.getBuffer.call(c))&&b.length>0&&b.length!==S&&0===b[0])for(var M=S;void 0!==(w=b.shift());){var D=new p.Event("_checkval");if((x=u.validPositions[w]).generatedInput=!0,D.key=x.input,(v=l.EventHandlers.keypressEvent.call(c,D,!0,!1,n,M))&&void 0!==v.pos&&v.pos!==w&&u.validPositions[v.pos]&&!0===u.validPositions[v.pos].match.static)b.push(v.pos);else if(!v)break;M++}}t&&f.call(c,e,o.getBuffer.call(c),v?v.forwardPosition:c.caretPos.begin,s||new p.Event("checkval"),s&&("input"===s.type&&c.undoValue!==o.getBuffer.call(c).join("")||"paste"===s.type)),d.skipOptionalPartCharacter=y}function f(e,t,n,a,s){var l=e?e.inputmask:this,c=l.opts,u=l.dependencyLib;if(a&&"function"==typeof c.onBeforeWrite){var d=c.onBeforeWrite.call(l,a,t,n,c);if(d){if(d.refreshFromBuffer){var f=d.refreshFromBuffer;r.refreshFromBuffer.call(l,!0===f?f:f.start,f.end,d.buffer||t),t=o.getBuffer.call(l,!0)}void 0!==n&&(n=void 0!==d.caret?d.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==a&&"blur"===a.type||o.caret.call(l,e,n,void 0,void 0,void 0!==a&&"keydown"===a.type&&(a.key===i.keys.Delete||a.key===i.keys.Backspace)),!0===s)){var p=u(e),h=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,p.trigger("input"),setTimeout((function(){h===o.getBufferTemplate.call(l).join("")?p.trigger("cleared"):!0===r.isComplete.call(l,t)&&p.trigger("complete")}),0)}}},2394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(157),a=g(n(4963)),o=g(n(9380)),r=n(2391),s=n(4713),l=n(8711),c=n(7215),u=n(7760),d=n(9716),f=g(n(7392)),p=g(n(3976)),h=g(n(8741));function m(e){return m="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},m(e)}function g(e){return e&&e.__esModule?e:{default:e}}var v=o.default.document,y="_inputmask_opts";function b(e,t,n){if(h.default){if(!(this instanceof b))return new b(e,t,n);this.dependencyLib=a.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==n&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=a.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},k(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}}function k(e,t,n){var i=b.prototype.aliases[e];return i?(i.alias&&k(i.alias,void 0,n),a.default.extend(!0,n,i),a.default.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}b.prototype={dataAttribute:"data-inputmask",defaults:p.default,definitions:f.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e)).forEach((function(e,n){var s=a.default.extend(!0,{},t.opts);if(function(e,t,n,i){function r(t,a){var r=""===i?t:i+"-"+t;null!==(a=void 0!==a?a:e.getAttribute(r))&&("string"==typeof a&&(0===t.indexOf("on")?a=o.default[a]:"false"===a?a=!1:"true"===a&&(a=!0)),n[t]=a)}if(!0===t.importDataAttributes){var s,l,c,u,d=e.getAttribute(i);if(d&&""!==d&&(d=d.replace(/'/g,'"'),l=JSON.parse("{"+d+"}")),l)for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}for(s in r("alias",c),n.alias&&k(n.alias,n,t),t){if(l)for(u in c=void 0,l)if(u.toLowerCase()===s.toLowerCase()){c=l[u];break}r(s,c)}}return a.default.extend(!0,t,n),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right"),("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0),Object.keys(n).length}(e,s,a.default.extend(!0,{},t.userOptions),t.dataAttribute)){var l=(0,r.generateMaskSet)(s,t.noMasksCache);void 0!==l&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new b(void 0,void 0,!0),e.inputmask.opts=s,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=a.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,a.default)(e),e.inputmask.maskset=l,a.default.data(e,y,t.userOptions),i.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===m(e)?(a.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,l.getBuffer.call(this),0,this.opts)}return u.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){a.default.data(this.el,y,null);var e=this.opts.autoUnmask?(0,u.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==l.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),d.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):v.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?l.getBufferTemplate.call(this).reverse():l.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),c.isComplete.call(this,l.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=s.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");for(var n=l.getBuffer.call(this),i=l.determineLastRequiredPosition.call(this),a=n.length-1;a>i&&!l.isMask.call(this,a);a--);return n.splice(i,a+1-i),c.isComplete.call(this,n)&&e===(this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!0,!1,n);var i=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");return t?{value:i,metadata:this.getmetadata()}:i},setValue:function(e){this.el&&(0,a.default)(this.el).trigger("setvalue",[e])},analyseMask:r.analyseMask},b.extendDefaults=function(e){a.default.extend(!0,b.prototype.defaults,e)},b.extendDefinitions=function(e){a.default.extend(!0,b.prototype.definitions,e)},b.extendAliases=function(e){a.default.extend(!0,b.prototype.aliases,e)},b.format=function(e,t,n){return b(t).format(e,n)},b.unmask=function(e,t){return b(t).unmaskedvalue(e)},b.isValid=function(e,t){return b(t).isValid(e)},b.remove=function(e){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},b.setValue=function(e,t){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,a.default)(e).trigger("setvalue",[t])}))},b.dependencyLib=a.default,o.default.Inputmask=b;var w=b;t.default=w},5296:function(e,t,n){function i(e){return i="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},i(e)}var a=p(n(9380)),o=p(n(2394)),r=p(n(8741));function s(e){var t=u();return function(){var n,a=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return c(e,arguments,f(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,e)},l(e)}function c(e,t,n){return c=u()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&d(a,n.prototype),a},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e){return e&&e.__esModule?e:{default:e}}var h=a.default.document;if(r.default&&h&&h.head&&h.head.attachShadow&&a.default.customElements&&void 0===a.default.customElements.get("input-mask")){var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(i,e);var t,n=s(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=(e=n.call(this)).getAttributeNames(),a=e.attachShadow({mode:"closed"}),r=h.createElement("input");for(var s in r.type="text",a.appendChild(r),t)Object.prototype.hasOwnProperty.call(t,s)&&r.setAttribute(t[s],e.getAttribute(t[s]));var l=new o.default;return l.dataAttribute="",l.mask(r),r.inputmask.shadowRoot=a,e}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(l(HTMLElement));a.default.customElements.define("input-mask",m)}},2839:function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,r,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0){if(y(l=m[m.length-1],r),l.isAlternator){c=m.pop();for(var e=0;e0?(l=m[m.length-1]).matches.push(c):h.matches.push(c)}}else y(h,r)}function k(e){var t=new a.default(!0);return t.openGroup=!1,t.matches=e,t}function w(){if((s=m.pop()).openGroup=!1,void 0!==s)if(m.length>0){if((l=m[m.length-1]).matches.push(s),l.isAlternator){for(var e=(c=m.pop()).matches[0].matches?c.matches[0].matches.length:1,t=0;t0?(l=m[m.length-1]).matches.push(c):h.matches.push(c)}}else h.matches.push(s);else b()}function x(e){var t=e.pop();return t.isQuantifier&&(t=k([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);i=t?f.exec(e):d.exec(e);){if(r=i[0],t){switch(r.charAt(0)){case"?":r="{0,1}";break;case"+":case"*":r="{"+r+"}";break;case"|":if(0===m.length){var S=k(h.matches);S.openGroup=!0,m.push(S),h.matches=[],v=!0}}switch(r){case"\\d":r="[0-9]";break;case"\\p":r+=f.exec(e)[0],r+=f.exec(e)[0]}}if(p)b();else switch(r.charAt(0)){case"$":case"^":t||b();break;case n.escapeChar:p=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:w();break;case n.optionalmarker[0]:m.push(new a.default(!1,!0));break;case n.groupmarker[0]:m.push(new a.default(!0));break;case n.quantifiermarker[0]:var M=new a.default(!1,!1,!0),D=(r=r.replace(/[{}?]/g,"")).split("|"),C=D[0].split(","),O=isNaN(C[0])?C[0]:parseInt(C[0]),E=1===C.length?O:isNaN(C[1])?C[1]:parseInt(C[1]),T=isNaN(D[1])?D[1]:parseInt(D[1]);"*"!==O&&"+"!==O||(O="*"===E?0:1),M.quantifier={min:O,max:E,jit:T};var P=m.length>0?m[m.length-1].matches:h.matches;(i=P.pop()).isGroup||(i=k([i])),P.push(i),P.push(M);break;case n.alternatormarker:if(m.length>0){var _=(l=m[m.length-1]).matches[l.matches.length-1];u=l.openGroup&&(void 0===_.matches||!1===_.isGroup&&!1===_.isAlternator)?m.pop():x(l.matches)}else u=x(h.matches);if(u.isAlternator)m.push(u);else if(u.alternatorGroup?(c=m.pop(),u.alternatorGroup=!1):c=new a.default(!1,!1,!1,!0),c.matches.push(u),m.push(c),u.openGroup){u.openGroup=!1;var L=new a.default(!0);L.alternatorGroup=!0,m.push(L)}break;default:b()}}for(v&&w();m.length>0;)s=m.pop(),h.matches.push(s);return h.matches.length>0&&(function e(i){i&&i.matches&&i.matches.forEach((function(a,o){var r=i.matches[o+1];(void 0===r||void 0===r.matches||!1===r.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,t||(y(a,n.groupmarker[0],0),!0!==a.openGroup&&y(a,n.groupmarker[1]))),e(a)}))}(h),g.push(h)),(n.numericInput||n.isRTL)&&function e(t){for(var i in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,i)){var a=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[a+1]&&t.matches[a+1].isGroup){var o=t.matches[i];t.matches.splice(i,1),t.matches.splice(a+1,0,o)}void 0!==t.matches[i].matches?t.matches[i]=e(t.matches[i]):t.matches[i]=((r=t.matches[i])===n.optionalmarker[0]?r=n.optionalmarker[1]:r===n.optionalmarker[1]?r=n.optionalmarker[0]:r===n.groupmarker[0]?r=n.groupmarker[1]:r===n.groupmarker[1]&&(r=n.groupmarker[0]),r)}var r;return t}(g[0]),g},t.generateMaskSet=function(e,t){var n;function a(e,t){var n=t.repeat,i=t.groupmarker,a=t.quantifiermarker,o=t.keepStatic;if(n>0||"*"===n||"+"===n){var l="*"===n?0:"+"===n?1:n;e=i[0]+e+i[1]+a[0]+l+","+n+a[1]}if(!0===o){var c=e.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));c&&c.forEach((function(t,n){var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,r,s=[],l=!0,c=!1;try{for(o=(n=n.call(e)).next,0;!(l=(i=o.call(n)).done)&&(s.push(i.value),2!==s.length);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return s}}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("[")),a=i[0],o=i[1];o=o.replace("]",""),e=e.replace(new RegExp("".concat((0,r.default)(a),"\\[").concat((0,r.default)(o),"\\]")),a.charAt(0)===o.charAt(0)?"(".concat(a,"|").concat(a).concat(o,")"):"".concat(a,"[").concat(o,"]"))}))}return e}function l(e,n,r){var s,l,c=!1;return null!==e&&""!==e||((c=null!==r.regex)?e=(e=r.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(c=!0,e=".*")),1===e.length&&!1===r.greedy&&0!==r.repeat&&(r.placeholder=""),e=a(e,r),l=c?"regex_"+r.regex:r.numericInput?e.split("").reverse().join(""):e,null!==r.keepStatic&&(l="ks_"+r.keepStatic+l),void 0===o.default.prototype.masksCache[l]||!0===t?(s={mask:e,maskToken:o.default.prototype.analyseMask(e,c,r),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(o.default.prototype.masksCache[l]=s,s=i.default.extend(!0,{},o.default.prototype.masksCache[l]))):s=i.default.extend(!0,{},o.default.prototype.masksCache[l]),s}if("function"==typeof e.mask&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var c=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){c.length>1&&(c+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?c+=t.mask:c+=t})),l(c+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?l(e.mask.mask,e.mask,e):l(e.mask,e.mask,e),null===e.keepStatic&&(e.keepStatic=!1),n};var i=l(n(4963)),a=l(n(9695)),o=l(n(2394)),r=l(n(7184));function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n>>0;if(0===i)return!1;for(var a=0|t,o=Math.max(a>=0?a:i-Math.abs(a),0);othis.length)&&-1!==this.indexOf(e,t)})},8711:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,i,a){var o,r=this,s=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):window.getSelection?(o=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&o.commonAncestorContainer!==e||(t=o.startOffset,n=o.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(o=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+o.text.length),{begin:i?t:c.call(r,t),end:i?n:c.call(r,n)};if(Array.isArray(t)&&(n=r.isRTL?t[0]:t[1],t=r.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=r.isRTL?t.begin:t.end,t=r.isRTL?t.end:t.begin),"number"==typeof t){t=i?t:c.call(r,t),n="number"==typeof(n=i?n:c.call(r,n))?n:t;var l=parseInt(((e.ownerDocument.defaultView||window).getComputedStyle?(e.ownerDocument.defaultView||window).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=l>e.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:n},s.insertModeVisual&&!1===s.insertMode&&t===n&&(a||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement)if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(window.getSelection){if(o=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}o.setStart(e.firstChild,td&&((n=f[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||m&&(m!==f[t].locator[p.alternation]&&1!=n.match.static||!0===n.match.static&&n.locator[p.alternation]&&a.checkAlternationMatch.call(o,n.locator[p.alternation].toString().split(","),m.toString().split(","))&&""!==i.getTests.call(o,t)[0].def))&&c[t]===i.getPlaceholder.call(o,t,n.match);t--)u--;return e?{l:u,def:f[u]?f[u].match:void 0}:u},t.determineNewCaretPosition=function(e,t,n){var a=this,c=a.maskset,u=a.opts;if(t&&(a.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n=n||u.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:o.call(a).length};break;case"ignore":e.end=e.begin=l.call(a,r.call(a));break;case"radixFocus":if(a.clicked>1&&0==c.validPositions.length)break;if(function(e){if(""!==u.radixPoint&&0!==u.digits){var t=c.validPositions;if(void 0===t[e]||t[e].input===i.getPlaceholder.call(a,e)){if(e=y||f===h)&&(h=y)}e.end=e.begin=h}}return e}},t.getBuffer=o,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=i.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=r,t.isMask=s,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0)},t.seekNext=l,t.seekPrevious=function(e,t){var n=this,a=e-1;if(e<=0)return 0;for(;a>0&&(!0===t&&(!0!==i.getTest.call(n,a).match.newBlockMarker||!s.call(n,a,void 0,!0))||!0!==t&&!s.call(n,a,void 0,!0));)a--;return a},t.translatePosition=c;var i=n(4713),a=n(7215);function o(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=i.getMaskTemplate.call(t,!0,r.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function r(e,t,n){var i=this.maskset,a=-1,o=-1,r=n||i.validPositions;void 0===e&&(e=-1);for(var s=0,l=r.length;s=e&&(o=s));return-1===a||a==e?o:-1==o||e-a-1){if(n){var s=i.getTests.call(a,e);return s.length>1+(""===s[s.length-1].match.def?1:0)}var l=i.determineTestTemplate.call(a,e,i.getTests.call(a,e)),c=i.getPlaceholder.call(a,e,l.match);return l.match.def!==c}return!1}function l(e,t,n){var a=this;void 0===n&&(n=!0);for(var o=e+1;""!==i.getTest.call(a,o).match.def&&(!0===t&&(!0!==i.getTest.call(a,o).match.newBlockMarker||!s.call(a,o,void 0,!0))||!0!==t&&!s.call(a,o,void 0,n));)o++;return o}function c(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=c,t.getDecisionTaker=r,t.getMaskTemplate=function(e,t,n,i,a){var o=this,r=this.opts,u=this.maskset,d=r.greedy;a&&r.greedy&&(r.greedy=!1,o.maskset.tests={}),t=t||0;var p,h,m,g,v=[],y=0;do{if(!0===e&&u.validPositions[y])h=(m=a&&u.validPositions[y].match.optionality&&void 0===u.validPositions[y+1]&&(!0===u.validPositions[y].generatedInput||u.validPositions[y].input==r.skipOptionalPartCharacter&&y>0)?c.call(o,y,f.call(o,y,p,y-1)):u.validPositions[y]).match,p=m.locator.slice(),v.push(!0===n?m.input:!1===n?h.nativeDef:s.call(o,y,h));else{h=(m=l.call(o,y,p,y-1)).match,p=m.locator.slice();var b=!0!==i&&(!1!==r.jitMasking?r.jitMasking:h.jit);(g=(g&&h.static&&h.def!==r.groupSeparator&&null===h.fn||u.validPositions[y-1]&&h.static&&h.def!==r.groupSeparator&&null===h.fn)&&u.tests[y])||!1===b||void 0===b||"number"==typeof b&&isFinite(b)&&b>y?v.push(!1===n?h.nativeDef:s.call(o,v.length,h)):g=!1}y++}while(!0!==h.static||""!==h.def||t>y);return""===v[v.length-1]&&v.pop(),!1===n&&void 0!==u.maskLength||(u.maskLength=y-1),r.greedy=d,v},t.getPlaceholder=s,t.getTest=u,t.getTestTemplate=l,t.getTests=f,t.isSubsetOf=d;var i,a=(i=n(2394))&&i.__esModule?i:{default:i};function o(e,t){var n=(null!=e.alternation?e.mloc[r(e)]:e.locator).join("");if(""!==n)for(;n.length0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function s(e,t,n){var i=this.opts,a=this.maskset;if(void 0!==(t=t||u.call(this,e).match).placeholder||!0===n)return"function"==typeof t.placeholder?t.placeholder(i):t.placeholder;if(!0===t.static){if(e>-1&&void 0===a.validPositions[e]){var o,r=f.call(this,e),s=[];if(r.length>1+(""===r[r.length-1].match.def?1:0))for(var l=0;l1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return i.placeholder.charAt(e%i.placeholder.length)}return t.def}return i.placeholder.charAt(e%i.placeholder.length)}function l(e,t,n){return this.maskset.validPositions[e]||c.call(this,e,f.call(this,e,t?t.slice():t,n))}function c(e,t){var n=this.opts,i=0,a=function(e,t){var n=0,i=!1;return t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(i=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:i||(n=0)),n}(e,t);e=e>0?e-1:0;var r,s,l,c=o(u.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(i=1);for(var d=0;d0&&"master"===l.match.newBlockMarker&&(!f.match.optionality||f.match.optionality-a<1||!f.match.newBlockMarker)||l&&!n.greedy&&l.match.optionalQuantifier&&!f.match.optionalQuantifier)&&(s=p,l=f)}return l}function u(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||f.call(this,e))[0]}function d(e,t,n){function i(e){for(var t,n=[],i=-1,a=0,o=e.length;at.alternation)for(var a=t.alternation;ae+u._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+l.mask;if(h===e&&void 0===o.matches){if(g.push({match:o,locator:s.reverse(),cd:y,mloc:{}}),!o.optionality||void 0!==p||!(u.definitions&&u.definitions[o.nativeDef]&&u.definitions[o.nativeDef].optional||a.default.prototype.definitions[o.nativeDef]&&a.default.prototype.definitions[o.nativeDef].optional))return!0;v=!0,h=e}else if(void 0!==o.matches){if(o.isGroup&&p!==o)return function(){if(o=c(t.matches[t.matches.indexOf(o)+1],s,p))return!0}();if(o.isOptional)return function(){var t=o,a=g.length;if(o=b(o,n,s,p),g.length>0){if(g.forEach((function(e,t){t>=a&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),i=g[g.length-1].match,void 0!==p||!m(i,t))return o;v=!0,h=e}}();if(o.isAlternator)return function(){r.hasAlternator=!0;var i,a,m,y=o,b=[],k=g.slice(),M=s.length,D=!1,C=n.length>0?n.shift():-1;if(-1===C||"string"==typeof C){var O,E=h,T=n.slice(),P=[];if("string"==typeof C)P=C.split(",");else for(O=0;O=u.keepStatic)&&(P=P.slice(0,1));for(var I=0;Iy.matches[0].matches.length)break;i=g.slice(),h=E,g=[];for(var N=0;N0,o=b.length>0,n=T.slice()}else o=c(y.matches[C]||t.matches[C],[C].concat(s),p);if(o)return!0}();if(o.isQuantifier&&p!==t.matches[t.matches.indexOf(o)-1])return function(){for(var a=o,r=!1,d=n.length>0?n.shift():0;d<(isNaN(a.quantifier.max)?d+1:a.quantifier.max)&&h<=e;d++){var f=t.matches[t.matches.indexOf(a)-1];if(o=c(f,[d].concat(s),f)){if(g.forEach((function(t,n){(i=k(f,t.match)?t.match:g[g.length-1].match).optionalQuantifier=d>=a.quantifier.min,i.jit=(d+1)*(f.matches.indexOf(i)+1)>a.quantifier.jit,i.optionalQuantifier&&m(i,f)&&(v=!0,h=e,u.greedy&&null==l.validPositions[e-1]&&d>a.quantifier.min&&-1!=["*","+"].indexOf(a.quantifier.max)&&(g.pop(),y=void 0),r=!0,o=!1),!r&&i.jit&&(l.jitOffset[e]=f.matches.length-f.matches.indexOf(i))})),r)break;return!0}}}();if(o=b(o,n,s,p))return!0}else h++}for(var p=n.length>0?n.shift():0;pe)break}}function k(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach((function(e,i){void 0===e.matches||n||(n=k(e,t))})),n}if(e>-1){if(void 0===t){for(var w,x=e-1;void 0===(w=l.validPositions[x]||l.tests[x])&&x>-1;)x--;void 0!==w&&x>-1&&(m=function(e,t){var n,i=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===u.keepStatic?0===(i=c.call(r,e,t.slice()).locator.slice()).length&&(i=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===i.length?(n=e.alternation,i=e.locator.slice()):e.locator[n]&&-1===i[n].toString().indexOf(e.locator[n])&&(i[n]+=","+e.locator[n]))}))),i}(x,w),y=m.join(""),h=x)}if(l.tests[e]&&l.tests[e][0].cd===y)return l.tests[e];for(var S=m.shift();Se);S++);}return(0===g.length||v)&&g.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:y}),void 0!==t&&l.tests[e]?o=s.extend(!0,[],g):(l.tests[e]=s.extend(!0,[],g),o=l.tests[e]),g.forEach((function(e){e.match.optionality=e.match.defOptionality||!1})),o}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=s,t.checkAlternationMatch=function(e,t,n){for(var i,a=this.opts.greedy?t:t.slice(0,1),o=!1,r=void 0!==n?n.split(","):[],s=0;s=o.getBuffer.call(c).length&&h>=n.end&&(n.end=h+1),t===a.keys.Backspace?n.end-n.begin<1&&(n.begin=o.seekPrevious.call(c,n.begin)):t===a.keys.Delete&&n.begin===n.end&&(n.end=o.isMask.call(c,n.end,!0,!0)?n.end+1:o.seekNext.call(c,n.end)+1),!1!==(p=m.call(c,n))){if(!0!==r&&!1!==d.keepStatic||null!==d.regex&&-1!==i.getTest.call(c,n.begin).match.def.indexOf("|")){var g=s.call(c,!0);if(g){var v=void 0!==g.caret?g.caret:g.pos?o.seekNext.call(c,g.pos.begin?g.pos.begin:g.pos):o.getLastValidPosition.call(c,-1,!0);(t!==a.keys.Delete||n.begin>v)&&n.begin}}!0!==r&&(u.p=t===a.keys.Delete?n.begin+p:n.begin,u.p=o.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1,!1===d.insertMode&&t===a.keys.Backspace?"none":void 0).begin)}},t.isComplete=c,t.isSelection=u,t.isValid=d,t.refreshFromBuffer=p,t.revalidateMask=m;var i=n(4713),a=n(2839),o=n(8711),r=n(6030);function s(e,t,n,a,r,l){var c,u,f,p,h,m,g,v,y,b,k,w=this,x=this.dependencyLib,S=this.opts,M=w.maskset,D=x.extend(!0,[],M.validPositions),C=x.extend(!0,{},M.tests),O=!1,E=!1,T=void 0!==r?r:o.getLastValidPosition.call(w);if(l&&(b=l.begin,k=l.end,l.begin>l.end&&(b=l.end,k=l.begin)),-1===T&&void 0===r)c=0,u=(p=i.getTest.call(w,c)).alternation;else for(;T>=0;T--)if((f=M.validPositions[T])&&void 0!==f.alternation){if(T<=(e||0)&&p&&p.locator[f.alternation]!==f.locator[f.alternation])break;c=T,u=M.validPositions[c].alternation,p=f}if(void 0!==u){g=parseInt(c),M.excludes[g]=M.excludes[g]||[],!0!==e&&M.excludes[g].push((0,i.getDecisionTaker)(p)+":"+p.alternation);var P=[],_=-1;for(h=g;h=k)&&P.push(m.input),delete M.validPositions[h];for(-1===_&&void 0!==t&&(P.push(t),_=P.length-1);void 0!==M.excludes[g]&&M.excludes[g].length<10;){for(M.tests={},o.resetMaskSet.call(w,!0),O=!0,h=0;ht:e.end-e.begin>t}function d(e,t,n,a,r,f,g){var v=this,y=this.dependencyLib,b=this.opts,k=v.maskset;n=!0===n;var w=e;function x(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return v.isRTL?e.pos-t.pos:t.pos-e.pos})).forEach((function(e){m.call(v,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return v.isRTL?t.pos-e.pos:e.pos-t.pos})).forEach((function(e){""!==e.c&&d.call(v,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:a)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;p.call(v,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(w=e.rewritePosition,e=!0)}return e}function S(t,n,r){var s=!1;return i.getTests.call(v,t).every((function(c,d){var f=c.match;if(o.getBuffer.call(v,!0),!1!==(s=(!f.jit||void 0!==k.validPositions[o.seekPrevious.call(v,t)])&&(null!=f.fn?f.fn.test(n,k,t,r,b,u.call(v,e)):(n===f.def||n===b.skipOptionalPartCharacter)&&""!==f.def&&{c:i.getPlaceholder.call(v,t,f,!0)||f.def,pos:t}))){var p=void 0!==s.c?s.c:n,h=t;return p=p===b.skipOptionalPartCharacter&&!0===f.static?i.getPlaceholder.call(v,t,f,!0)||f.def:p,!0!==(s=x(s))&&void 0!==s.pos&&s.pos!==t&&(h=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c||!1===m.call(v,e,y.extend({},c,{input:l.call(v,p,f,h)}),a,h)&&(s=!1),!1}return!0})),s}void 0!==e.begin&&(w=v.isRTL?e.end:e.begin);var M=!0,D=y.extend(!0,{},k.validPositions);if(!1===b.keepStatic&&void 0!==k.excludes[w]&&!0!==r&&!0!==a)for(var C=w;C<(v.isRTL?e.begin:e.end);C++)void 0!==k.excludes[C]&&(k.excludes[C]=void 0,delete k.tests[C]);if("function"==typeof b.preValidation&&!0!==a&&!0!==f&&(M=x(M=b.preValidation.call(v,o.getBuffer.call(v),w,t,u.call(v,e),b,k,e,n||r))),!0===M){if(M=S(w,t,n),(!n||!0===a)&&!1===M&&!0!==f){var O=k.validPositions[w];if(!O||!0!==O.match.static||O.match.def!==t&&t!==b.skipOptionalPartCharacter){if(b.insertMode||void 0===k.validPositions[o.seekNext.call(v,w)]||e.end>w){var E=!1;if(k.jitOffset[w]&&void 0===k.validPositions[o.seekNext.call(v,w)]&&!1!==(M=d.call(v,w+k.jitOffset[w],t,!0,!0))&&(!0!==r&&(M.caret=w),E=!0),e.end>w&&(k.validPositions[w]=void 0),!E&&!o.isMask.call(v,w,b.keepStatic&&0===w))for(var T=w+1,P=o.seekNext.call(v,w,!1,0!==w);T<=P;T++)if(!1!==(M=S(T,t,n))){M=h.call(v,w,void 0!==M.pos?M.pos:T)||M,w=T;break}}}else M={caret:o.seekNext.call(v,w)}}v.hasAlternator&&!0!==r&&!n&&(!1===M&&b.keepStatic&&(c.call(v,o.getBuffer.call(v))||0===w)?M=s.call(v,w,t,n,a,void 0,e):(u.call(v,e)&&k.tests[w]&&k.tests[w].length>1&&b.keepStatic||1==M&&!0!==b.numericInput&&k.tests[w]&&k.tests[w].length>1&&o.getLastValidPosition.call(v,void 0,!0)>w)&&(M=s.call(v,!0))),!0===M&&(M={pos:w})}if("function"==typeof b.postValidation&&!0!==a&&!0!==f){var _=b.postValidation.call(v,o.getBuffer.call(v,!0),void 0!==e.begin?v.isRTL?e.end:e.begin:e,t,M,b,k,n,g);void 0!==_&&(M=!0===_?M:_)}M&&void 0===M.pos&&(M.pos=w),!1===M||!0===f?(o.resetMaskSet.call(v,!0),k.validPositions=y.extend(!0,[],D)):h.call(v,void 0,w,!0);var L=x(M);return void 0!==v.maxLength&&o.getBuffer.call(v).length>v.maxLength&&!a&&(o.resetMaskSet.call(v,!0),k.validPositions=y.extend(!0,[],D),L=!1),L}function f(e,t,n){for(var a=this.maskset,o=!1,r=i.getTests.call(this,e),s=0;s0&&!r.validPositions[e];e--);for(var l=e;le+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return a&&o}return!1}var p=0,h=void 0!==e.begin?e.begin:e,m=void 0!==e.end?e.end:e,g=!0;if(e.begin>e.end&&(h=e.end,m=e.begin),a=void 0!==a?a:h,void 0===n&&(h!==m||l.insertMode&&void 0!==s.validPositions[a]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var v,y=c.extend(!0,{},s.validPositions),b=o.getLastValidPosition.call(r,void 0,!0);for(s.p=h,v=b;v>=h;v--)delete s.validPositions[v],void 0===t&&delete s.tests[v+1];var k,w,x=a,S=x;for(t&&(s.validPositions[a]=c.extend(!0,{},t),S++,x++),v=t?m:m-1;v<=b;v++){if(void 0!==(k=y[v])&&!0!==k.generatedInput&&(v>=m||v>=h&&u(v,y,{begin:h,end:m}))){for(;""!==i.getTest.call(r,S).match.def;){if(!1!==(w=f.call(r,S,k,l))||"+"===k.match.def){"+"===k.match.def&&o.getBuffer.call(r,!0);var M=d.call(r,S,k.input,"+"!==k.match.def,!0);if(g=!1!==M,x=(M.pos||S)+1,!g&&w)break}else g=!1;if(g){void 0===t&&k.match.static&&v===e.begin&&p++;break}if(!g&&o.getBuffer.call(r),S>s.maskLength)break;S++}""==i.getTest.call(r,S).match.def&&(g=!1),S=x}if(!g)break}if(!g)return s.validPositions=c.extend(!0,[],y),o.resetMaskSet.call(r,!0),!1}else t&&i.getTest.call(r,a).match.cd===t.match.cd&&(s.validPositions[a]=c.extend(!0,{},t));return o.resetMaskSet.call(r,!0),p}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}var i={};return function(){var e,t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(7149),n(3194),n(9302),n(4013),n(3851),n(219),n(207),n(5296);var a=((e=n(2394))&&e.__esModule?e:{default:e}).default;t.default=a}(),i}()})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SlimSelect=t():e.SlimSelect=t()}(window,(function(){return n={},e.m=t=[function(e,t,n){"use strict";function i(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}t.__esModule=!0,t.kebabCase=t.highlight=t.isValueInArrayOfObjects=t.debounce=t.putContent=t.ensureElementInView=t.hasClassInTree=void 0,t.hasClassInTree=function(e,t){function n(e,t){return t&&e&&e.classList&&e.classList.contains(t)?e:null}return n(e,t)||function e(t,i){return t&&t!==document?n(t,i)?t:e(t.parentNode,i):null}(e,t)},t.ensureElementInView=function(e,t){var n=e.scrollTop+e.offsetTop,i=n+e.clientHeight,a=t.offsetTop;t=a+t.clientHeight;a=window.innerHeight?"above":n?t:"below"},t.debounce=function(e,t,n){var i;return void 0===t&&(t=100),void 0===n&&(n=!1),function(){for(var a=[],o=0;o[^<>]*').concat(t,""))},t.kebabCase=function(e){var t=e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(function(e){return"-"+e.toLowerCase()}));return e[0]===e[0].toUpperCase()?t.substring(1):t},"function"!=typeof(t=window).CustomEvent&&(i.prototype=t.Event.prototype,t.CustomEvent=i)},function(e,t,n){"use strict";t.__esModule=!0,t.validateOption=t.validateData=t.Data=void 0;var i=(a.prototype.newOption=function(e){return{id:e.id||String(Math.floor(1e8*Math.random())),value:e.value||"",text:e.text||"",innerHTML:e.innerHTML||"",selected:e.selected||!1,display:void 0===e.display||e.display,disabled:e.disabled||!1,placeholder:e.placeholder||!1,class:e.class||void 0,data:e.data||{},mandatory:e.mandatory||!1}},a.prototype.add=function(e){this.data.push({id:String(Math.floor(1e8*Math.random())),value:e.value,text:e.text,innerHTML:"",selected:!1,display:!0,disabled:!1,placeholder:!1,class:void 0,mandatory:e.mandatory,data:{}})},a.prototype.parseSelectData=function(){this.data=[];for(var e=0,t=this.main.select.element.childNodes;e",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},r=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this,a=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(i,a)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,t){return t(e)?e:e.parentNode?f(e.parentNode,t):void 0}function p(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),a=u("span","arrowUp"),o=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var r in t)i.setAttribute(r,t[r]);return n.appendChild(i),n.appendChild(a),n.appendChild(o),n}function h(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var m=function(){},g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:m,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*r(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+n.firstDayOfWeek),a},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return g(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return o(b.h(e,t,n))},H:function(e){return o(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[r(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},k=function(e){var t=e.config,n=void 0===t?i:t,o=e.l10n,r=void 0===o?a:o,s=e.isMobile,l=void 0!==s&&s;return function(e,t,i){var a=i||r;return void 0===n.formatDate||l?t.split("").map((function(t,i,o){return b[t]&&"\\"!==o[i-1]?b[t](e,a,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,a)}},w=function(e){var t=e.config,n=void 0===t?i:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var s,l=o||r,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=t||(n||i).dateFormat,d=String(e).trim();if("today"===d)s=new Date,a=!0;else if(n&&n.parseDate)s=n.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else{for(var f=void 0,p=[],h=0,m=0,g="";h=0?new Date:new Date(b.config.minDate.getTime()),n=D(b.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),b.selectedDates=[t],b.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=h(e),i=n;void 0!==b.amPM&&n===b.amPM&&(b.amPM.textContent=b.l10n.amPM[r(b.amPM.textContent===b.l10n.amPM[0])]);var a=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=c+l*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var d=i===b.hourElement,f=i===b.minuteElement;us&&(u=i===b.hourElement?u-s-r(!b.amPM):a,f&&H(void 0,1,b.hourElement)),b.amPM&&d&&(1===l?u+c===23:Math.abs(u-c)>l)&&(b.amPM.textContent=b.l10n.amPM[r(b.amPM.textContent===b.l10n.amPM[0])]),i.value=o(u)}}(e);var i=b._input.value;_(),Se(),b._input.value!==i&&b._debouncedChange()}function _(){if(void 0!==b.hourElement&&void 0!==b.minuteElement){var e,t,n=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(b.minuteElement.value,10)||0)%60,a=void 0!==b.secondElement?(parseInt(b.secondElement.value,10)||0)%60:0;void 0!==b.amPM&&(e=n,t=b.amPM.textContent,n=e%12+12*r(t===b.l10n.amPM[1]));var o=void 0!==b.config.minTime||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&0===x(b.latestSelectedDateObj,b.config.minDate,!0),s=void 0!==b.config.maxTime||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&0===x(b.latestSelectedDateObj,b.config.maxDate,!0);if(void 0!==b.config.maxTime&&void 0!==b.config.minTime&&b.config.minTime>b.config.maxTime){var l=S(b.config.minTime.getHours(),b.config.minTime.getMinutes(),b.config.minTime.getSeconds()),c=S(b.config.maxTime.getHours(),b.config.maxTime.getMinutes(),b.config.maxTime.getSeconds()),u=S(n,i,a);if(u>c&&u=12)]),void 0!==b.secondElement&&(b.secondElement.value=o(n)))}function j(e){var t=h(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ee(n)}function I(e,t,n,i){return t instanceof Array?t.forEach((function(t){return I(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return I(e,t,n,i)})):(e.addEventListener(t,n,i),void b._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function F(){ye("onChange")}function N(e,t){var n=void 0!==e?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate=0&&x(e,b.selectedDates[1])<=0}(t)&&!ke(t)&&o.classList.add("inRange"),b.weekNumbers&&1===b.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&b.weekNumbers.insertAdjacentHTML("beforeend",""+b.config.getWeek(t)+""),ye("onDayCreate",o),o}function V(e){e.focus(),"range"===b.config.mode&&oe(e)}function Y(e){for(var t=e>0?0:b.config.showMonths-1,n=e>0?b.config.showMonths:-1,i=t;i!=n;i+=e)for(var a=b.daysContainer.children[i],o=e>0?0:a.children.length-1,r=e>0?a.children.length:-1,s=o;s!=r;s+=e){var l=a.children[s];if(-1===l.className.indexOf("hidden")&&te(l.dateObj))return l}}function G(e,t){var n=C(),i=ne(n||document.body),a=void 0!==e?e:i?n:void 0!==b.selectedDateElem&&ne(b.selectedDateElem)?b.selectedDateElem:void 0!==b.todayDateElem&&ne(b.todayDateElem)?b.todayDateElem:Y(t>0?1:-1);void 0===a?b._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():b.currentMonth,i=t>0?b.config.showMonths:-1,a=t>0?1:-1,o=n-b.currentMonth;o!=i;o+=a)for(var r=b.daysContainer.children[o],s=n-b.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,l=r.children.length,c=s;c>=0&&c0?l:-1);c+=a){var u=r.children[c];if(-1===u.className.indexOf("hidden")&&te(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return V(u)}b.changeMonth(a),G(Y(a),0)}(a,t):V(a)}function U(e,t){for(var n=(new Date(e,t,1).getDay()-b.l10n.firstDayOfWeek+7)%7,i=b.utils.getDaysInMonth((t-1+12)%12,e),a=b.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),r=b.config.showMonths>1,s=r?"prevMonthDay hidden":"prevMonthDay",l=r?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)o.appendChild(R("flatpickr-day "+s,new Date(e,t-1,c),0,d));for(c=1;c<=a;c++,d++)o.appendChild(R("flatpickr-day",new Date(e,t,c),0,d));for(var f=a+1;f<=42-n&&(1===b.config.showMonths||d%7!=0);f++,d++)o.appendChild(R("flatpickr-day "+l,new Date(e,t+1,f%a),0,d));var p=u("div","dayContainer");return p.appendChild(o),p}function K(){if(void 0!==b.daysContainer){d(b.daysContainer),b.weekNumbers&&d(b.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==b.config.monthSelectorType)){var e=function(e){return!(void 0!==b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&eb.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1,b.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(b.currentYear,t).getMonth().toString(),n.textContent=g(t,b.config.shorthandCurrentMonth,b.l10n),n.tabIndex=-1,b.currentMonth===t&&(n.selected=!0),b.monthsDropdownContainer.appendChild(n)}}}function J(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();b.config.showMonths>1||"static"===b.config.monthSelectorType?e=u("span","cur-month"):(b.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel),I(b.monthsDropdownContainer,"change",(function(e){var t=h(e),n=parseInt(t.value,10);b.changeMonth(n-b.currentMonth),ye("onMonthChange")})),q(),e=b.monthsDropdownContainer);var i=p("cur-year",{tabindex:"-1"}),a=i.getElementsByTagName("input")[0];a.setAttribute("aria-label",b.l10n.yearAriaLabel),b.config.minDate&&a.setAttribute("min",b.config.minDate.getFullYear().toString()),b.config.maxDate&&(a.setAttribute("max",b.config.maxDate.getFullYear().toString()),a.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear());var o=u("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(i),n.appendChild(o),t.appendChild(n),{container:t,yearElement:a,monthElement:e}}function W(){d(b.monthNav),b.monthNav.appendChild(b.prevMonthNav),b.config.showMonths&&(b.yearElements=[],b.monthElements=[]);for(var e=b.config.showMonths;e--;){var t=J();b.yearElements.push(t.yearElement),b.monthElements.push(t.monthElement),b.monthNav.appendChild(t.container)}b.monthNav.appendChild(b.nextMonthNav)}function $(){b.weekdayContainer?d(b.weekdayContainer):b.weekdayContainer=u("div","flatpickr-weekdays");for(var e=b.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(t)}return z(),b.weekdayContainer}function z(){if(b.weekdayContainer){var e=b.l10n.firstDayOfWeek,n=t(b.l10n.weekdays.shorthand);e>0&&e\n "+n.join("")+"\n \n "}}function Q(e,t){void 0===t&&(t=!0);var n=t?e:e-b.currentMonth;n<0&&!0===b._hidePrevMonthArrow||n>0&&!0===b._hideNextMonthArrow||(b.currentMonth+=n,(b.currentMonth<0||b.currentMonth>11)&&(b.currentYear+=b.currentMonth>11?1:-1,b.currentMonth=(b.currentMonth+12)%12,ye("onYearChange"),q()),K(),ye("onMonthChange"),we())}function Z(e){return b.calendarContainer.contains(e)}function X(e){if(b.isOpen&&!b.config.inline){var t=h(e),n=Z(t),i=!(t===b.input||t===b.altInput||b.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput))||n||Z(e.relatedTarget)),a=!b.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&a&&(b.config.allowInput&&b.setDate(b._input.value,!1,b.config.altInput?b.config.altFormat:b.config.dateFormat),void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&""!==b.input.value&&void 0!==b.input.value&&P(),b.close(),b.config&&"range"===b.config.mode&&1===b.selectedDates.length&&b.clear(!1))}}function ee(e){if(!(!e||b.config.minDate&&eb.config.maxDate.getFullYear())){var t=e,n=b.currentYear!==t;b.currentYear=t||b.currentYear,b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth):b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&(b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)),n&&(b.redraw(),ye("onYearChange"),q())}}function te(e,t){var n;void 0===t&&(t=!0);var i=b.parseDate(e,void 0,t);if(b.config.minDate&&i&&x(i,b.config.minDate,void 0!==t?t:!b.minDateHasTime)<0||b.config.maxDate&&i&&x(i,b.config.maxDate,void 0!==t?t:!b.maxDateHasTime)>0)return!1;if(!b.config.enable&&0===b.config.disable.length)return!0;if(void 0===i)return!1;for(var a=!!b.config.enable,o=null!==(n=b.config.enable)&&void 0!==n?n:b.config.disable,r=0,s=void 0;r=s.from.getTime()&&i.getTime()<=s.to.getTime())return a}return!a}function ne(e){return void 0!==b.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&b.daysContainer.contains(e)}function ie(e){var t=e.target===b._input,n=b._input.value.trimEnd()!==xe();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||b.setDate(b._input.value,!0,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}function ae(e){var t=h(e),n=b.config.wrap?m.contains(t):t===b._input,i=b.config.allowInput,a=b.isOpen&&(!i||!n),o=b.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return b.setDate(b._input.value,!0,t===b.altInput?b.config.altFormat:b.config.dateFormat),b.close(),t.blur();b.open()}else if(Z(t)||a||o){var r=!!b.timeContainer&&b.timeContainer.contains(t);switch(e.keyCode){case 13:r?(e.preventDefault(),P(),fe()):pe(e);break;case 27:e.preventDefault(),fe();break;case 8:case 46:n&&!b.config.allowInput&&(e.preventDefault(),b.clear());break;case 37:case 39:if(r||n)b.hourElement&&b.hourElement.focus();else{e.preventDefault();var s=C();if(void 0!==b.daysContainer&&(!1===i||s&&ne(s))){var l=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Q(l),G(Y(1),0)):G(void 0,l)}}break;case 38:case 40:e.preventDefault();var c=40===e.keyCode?1:-1;b.daysContainer&&void 0!==t.$i||t===b.input||t===b.altInput?e.ctrlKey?(e.stopPropagation(),ee(b.currentYear-c),G(Y(1),0)):r||G(void 0,7*c):t===b.currentYearElement?ee(b.currentYear-c):b.config.enableTime&&(!r&&b.hourElement&&b.hourElement.focus(),P(e),b._debouncedChange());break;case 9:if(r){var u=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter((function(e){return e})),d=u.indexOf(t);if(-1!==d){var f=u[d+(e.shiftKey?-1:1)];e.preventDefault(),(f||b._input).focus()}}else!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),b._input.focus())}}if(void 0!==b.amPM&&t===b.amPM)switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0],_(),Se();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1],_(),Se()}(n||Z(t))&&ye("onKeyDown",e)}function oe(e,t){if(void 0===t&&(t="flatpickr-day"),1===b.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),i=b.parseDate(b.selectedDates[0],void 0,!0).getTime(),a=Math.min(n,b.selectedDates[0].getTime()),o=Math.max(n,b.selectedDates[0].getTime()),r=!1,s=0,l=0,c=a;ca&&cs)?s=c:c>i&&(!l||c ."+t)).forEach((function(t){var a,o,c,u=t.dateObj.getTime(),d=s>0&&u0&&u>l;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));r&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=b.selectedDates[0].getTime()?"startRange":"endRange"),in&&u===i&&t.classList.add("endRange"),u>=s&&(0===l||u<=l)&&(o=i,c=n,(a=u)>Math.min(o,c)&&a0||n.getMinutes()>0||n.getSeconds()>0),b.selectedDates&&(b.selectedDates=b.selectedDates.filter((function(e){return te(e)})),b.selectedDates.length||"min"!==e||L(n),Se()),b.daysContainer&&(de(),void 0!==n?b.currentYearElement[e]=n.getFullYear().toString():b.currentYearElement.removeAttribute(e),b.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function le(){return b.config.wrap?m.querySelector("[data-input]"):m}function ce(){"object"!=typeof b.config.locale&&void 0===E.l10ns[b.config.locale]&&b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale)),b.l10n=e(e({},E.l10ns.default),"object"==typeof b.config.locale?b.config.locale:"default"!==b.config.locale?E.l10ns[b.config.locale]:void 0),y.D="("+b.l10n.weekdays.shorthand.join("|")+")",y.l="("+b.l10n.weekdays.longhand.join("|")+")",y.M="("+b.l10n.months.shorthand.join("|")+")",y.F="("+b.l10n.months.longhand.join("|")+")",y.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===E.defaultConfig.time_24hr&&(b.config.time_24hr=b.l10n.time_24hr),b.formatDate=k(b),b.parseDate=w({config:b.config,l10n:b.l10n})}function ue(e){if("function"!=typeof b.config.position){if(void 0!==b.calendarContainer){ye("onPreCalendarPosition");var t=e||b._positionElement,n=Array.prototype.reduce.call(b.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=b.calendarContainer.offsetWidth,a=b.config.position.split(" "),o=a[0],r=a.length>1?a[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===o||"below"!==o&&ln,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(c(b.calendarContainer,"arrowTop",!u),c(b.calendarContainer,"arrowBottom",u),!b.config.inline){var f=window.pageXOffset+s.left,p=!1,h=!1;"center"===r?(f-=(i-s.width)/2,p=!0):"right"===r&&(f-=i-s.width,h=!0),c(b.calendarContainer,"arrowLeft",!p&&!h),c(b.calendarContainer,"arrowCenter",p),c(b.calendarContainer,"arrowRight",h);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=f+i>window.document.body.offsetWidth,v=m+i>window.document.body.offsetWidth;if(c(b.calendarContainer,"rightMost",g),!b.config.static)if(b.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;tb.currentMonth+b.config.showMonths-1)&&"range"!==b.config.mode;if(b.selectedDateElem=n,"single"===b.config.mode)b.selectedDates=[i];else if("multiple"===b.config.mode){var o=ke(i);o?b.selectedDates.splice(parseInt(o),1):b.selectedDates.push(i)}else"range"===b.config.mode&&(2===b.selectedDates.length&&b.clear(!1,!1),b.latestSelectedDateObj=i,b.selectedDates.push(i),0!==x(i,b.selectedDates[0],!0)&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(_(),a){var r=b.currentYear!==i.getFullYear();b.currentYear=i.getFullYear(),b.currentMonth=i.getMonth(),r&&(ye("onYearChange"),q()),ye("onMonthChange")}if(we(),K(),Se(),a||"range"===b.config.mode||1!==b.config.showMonths?void 0!==b.selectedDateElem&&void 0===b.hourElement&&b.selectedDateElem&&b.selectedDateElem.focus():V(n),void 0!==b.hourElement&&void 0!==b.hourElement&&b.hourElement.focus(),b.config.closeOnSelect){var s="single"===b.config.mode&&!b.config.enableTime,l="range"===b.config.mode&&2===b.selectedDates.length&&!b.config.enableTime;(s||l)&&fe()}F()}}b.parseDate=w({config:b.config,l10n:b.l10n}),b._handlers=[],b.pluginElements=[],b.loadedPlugins=[],b._bind=I,b._setHoursFromDate=L,b._positionCalendar=ue,b.changeMonth=Q,b.changeYear=ee,b.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),b.input.value="",void 0!==b.altInput&&(b.altInput.value=""),void 0!==b.mobileInput&&(b.mobileInput.value=""),b.selectedDates=[],b.latestSelectedDateObj=void 0,!0===t&&(b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth()),!0===b.config.enableTime){var n=D(b.config);A(n.hours,n.minutes,n.seconds)}b.redraw(),e&&ye("onChange")},b.close=function(){b.isOpen=!1,b.isMobile||(void 0!==b.calendarContainer&&b.calendarContainer.classList.remove("open"),void 0!==b._input&&b._input.classList.remove("active")),ye("onClose")},b.onMouseOver=oe,b._createElement=u,b.createDay=R,b.destroy=function(){void 0!==b.config&&ye("onDestroy");for(var e=b._handlers.length;e--;)b._handlers[e].remove();if(b._handlers=[],b.mobileInput)b.mobileInput.parentNode&&b.mobileInput.parentNode.removeChild(b.mobileInput),b.mobileInput=void 0;else if(b.calendarContainer&&b.calendarContainer.parentNode)if(b.config.static&&b.calendarContainer.parentNode){var t=b.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer);b.altInput&&(b.input.type="text",b.altInput.parentNode&&b.altInput.parentNode.removeChild(b.altInput),delete b.altInput),b.input&&(b.input.type=b.input._type,b.input.classList.remove("flatpickr-input"),b.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete b[e]}catch(e){}}))},b.isEnabled=te,b.jumpToDate=N,b.updateValue=Se,b.open=function(e,t){if(void 0===t&&(t=b._positionElement),!0===b.isMobile){if(e){e.preventDefault();var n=h(e);n&&n.blur()}return void 0!==b.mobileInput&&(b.mobileInput.focus(),b.mobileInput.click()),void ye("onOpen")}if(!b._input.disabled&&!b.config.inline){var i=b.isOpen;b.isOpen=!0,i||(b.calendarContainer.classList.add("open"),b._input.classList.add("active"),ye("onOpen"),ue(t)),!0===b.config.enableTime&&!0===b.config.noCalendar&&(!1!==b.config.allowInput||void 0!==e&&b.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return b.hourElement.select()}),50))}},b.redraw=de,b.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(b.config,e),e)void 0!==he[i]&&he[i].forEach((function(e){return e()}));else b.config[e]=t,void 0!==he[e]?he[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(b.config[e]=l(t));b.redraw(),Se(!0)},b.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=b.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return b.clear(t);me(e,n),b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1],b.redraw(),N(void 0,t),L(),0===b.selectedDates.length&&b.clear(!1),Se(t),t&&ye("onChange")},b.toggle=function(e){if(!0===b.isOpen)return b.close();b.open(e)};var he={locale:[ce,z],showMonths:[W,T,$],minDate:[N],maxDate:[N],positionElement:[ve],clickOpens:[function(){!0===b.config.clickOpens?(I(b._input,"focus",b.open),I(b._input,"click",b.open)):(b._input.removeEventListener("focus",b.open),b._input.removeEventListener("click",b.open))}]};function me(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return b.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[b.parseDate(e,t)];else if("string"==typeof e)switch(b.config.mode){case"single":case"time":n=[b.parseDate(e,t)];break;case"multiple":n=e.split(b.config.conjunction).map((function(e){return b.parseDate(e,t)}));break;case"range":n=e.split(b.l10n.rangeSeparator).map((function(e){return b.parseDate(e,t)}))}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&te(e,!1)})),"range"===b.config.mode&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?b.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:b.parseDate(e.from,void 0),to:b.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ve(){b._positionElement=b.config.positionElement||b._input}function ye(e,t){if(void 0!==b.config){var n=b.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i1||"static"===b.config.monthSelectorType?b.monthElements[t].textContent=g(n.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" ":b.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),b._hidePrevMonthArrow=void 0!==b.config.minDate&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYearb.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear()))}function xe(e){var t=e||(b.config.altInput?b.config.altFormat:b.config.dateFormat);return b.selectedDates.map((function(e){return b.formatDate(e,t)})).filter((function(e,t,n){return"range"!==b.config.mode||b.config.enableTime||n.indexOf(e)===t})).join("range"!==b.config.mode?b.config.conjunction:b.l10n.rangeSeparator)}function Se(e){void 0===e&&(e=!0),void 0!==b.mobileInput&&b.mobileFormatStr&&(b.mobileInput.value=void 0!==b.latestSelectedDateObj?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""),b.input.value=xe(b.config.dateFormat),void 0!==b.altInput&&(b.altInput.value=xe(b.config.altFormat)),!1!==e&&ye("onValueUpdate")}function Me(e){var t=h(e),n=b.prevMonthNav.contains(t),i=b.nextMonthNav.contains(t);n||i?Q(n?-1:1):b.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?b.changeYear(b.currentYear+1):t.classList.contains("arrowDown")&&b.changeYear(b.currentYear-1)}return function(){b.element=b.input=m,b.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=e(e({},JSON.parse(JSON.stringify(m.dataset||{}))),v),o={};b.config.parseDate=a.parseDate,b.config.formatDate=a.formatDate,Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=ge(e)}}),Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=ge(e)}});var r="time"===a.mode;if(!a.dateFormat&&(a.enableTime||r)){var s=E.defaultConfig.dateFormat||i.dateFormat;o.dateFormat=a.noCalendar||r?"H:i"+(a.enableSeconds?":S":""):s+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||r)&&!a.altFormat){var c=E.defaultConfig.altFormat||i.altFormat;o.altFormat=a.noCalendar||r?"h:i"+(a.enableSeconds?":S K":" K"):c+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:se("min")}),Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:se("max")});var u=function(e){return function(t){b.config["min"===e?"_minTime":"_maxTime"]=b.parseDate(t,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:u("min")}),Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:u("max")}),"time"===a.mode&&(b.config.noCalendar=!0,b.config.enableTime=!0),Object.assign(b.config,o,a);for(var d=0;d-1?b.config[p]=l(f[p]).map(O).concat(b.config[p]):void 0===a[p]&&(b.config[p]=f[p])}a.altInputClass||(b.config.altInputClass=le().className+" "+b.config.altInputClass),ye("onParseConfig")}(),ce(),b.input=le(),b.input?(b.input._type=b.input.type,b.input.type="text",b.input.classList.add("flatpickr-input"),b._input=b.input,b.config.altInput&&(b.altInput=u(b.input.nodeName,b.config.altInputClass),b._input=b.altInput,b.altInput.placeholder=b.input.placeholder,b.altInput.disabled=b.input.disabled,b.altInput.required=b.input.required,b.altInput.tabIndex=b.input.tabIndex,b.altInput.type="text",b.input.setAttribute("type","hidden"),!b.config.static&&b.input.parentNode&&b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling)),b.config.allowInput||b._input.setAttribute("readonly","readonly"),ve()):b.config.errorHandler(new Error("Invalid input element specified")),function(){b.selectedDates=[],b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||("INPUT"!==b.input.nodeName&&"TEXTAREA"!==b.input.nodeName||!b.input.placeholder||b.input.value!==b.input.placeholder?b.input.value:null);e&&me(e,b.config.dateFormat),b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()0&&(b.latestSelectedDateObj=b.selectedDates[0]),void 0!==b.config.minTime&&(b.config.minTime=b.parseDate(b.config.minTime,"H:i")),void 0!==b.config.maxTime&&(b.config.maxTime=b.parseDate(b.config.maxTime,"H:i")),b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0),b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}(),b.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=b.currentMonth),void 0===t&&(t=b.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:b.l10n.daysInMonth[e]}},b.isMobile||function(){var e=window.document.createDocumentFragment();if(b.calendarContainer=u("div","flatpickr-calendar"),b.calendarContainer.tabIndex=-1,!b.config.noCalendar){if(e.appendChild((b.monthNav=u("div","flatpickr-months"),b.yearElements=[],b.monthElements=[],b.prevMonthNav=u("span","flatpickr-prev-month"),b.prevMonthNav.innerHTML=b.config.prevArrow,b.nextMonthNav=u("span","flatpickr-next-month"),b.nextMonthNav.innerHTML=b.config.nextArrow,W(),Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){b.__hidePrevMonthArrow!==e&&(c(b.prevMonthNav,"flatpickr-disabled",e),b.__hidePrevMonthArrow=e)}}),Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){b.__hideNextMonthArrow!==e&&(c(b.nextMonthNav,"flatpickr-disabled",e),b.__hideNextMonthArrow=e)}}),b.currentYearElement=b.yearElements[0],we(),b.monthNav)),b.innerContainer=u("div","flatpickr-innerContainer"),b.config.weekNumbers){var t=function(){b.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",b.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;b.innerContainer.appendChild(n),b.weekNumbers=i,b.weekWrapper=n}b.rContainer=u("div","flatpickr-rContainer"),b.rContainer.appendChild($()),b.daysContainer||(b.daysContainer=u("div","flatpickr-days"),b.daysContainer.tabIndex=-1),K(),b.rContainer.appendChild(b.daysContainer),b.innerContainer.appendChild(b.rContainer),e.appendChild(b.innerContainer)}b.config.enableTime&&e.appendChild(function(){b.calendarContainer.classList.add("hasTime"),b.config.noCalendar&&b.calendarContainer.classList.add("noCalendar");var e=D(b.config);b.timeContainer=u("div","flatpickr-time"),b.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=p("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=n.getElementsByTagName("input")[0];var i=p("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});if(b.minuteElement=i.getElementsByTagName("input")[0],b.hourElement.tabIndex=b.minuteElement.tabIndex=-1,b.hourElement.value=o(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),b.minuteElement.value=o(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():e.minutes),b.hourElement.setAttribute("step",b.config.hourIncrement.toString()),b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString()),b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1"),b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12"),b.hourElement.setAttribute("maxlength","2"),b.minuteElement.setAttribute("min","0"),b.minuteElement.setAttribute("max","59"),b.minuteElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(n),b.timeContainer.appendChild(t),b.timeContainer.appendChild(i),b.config.time_24hr&&b.timeContainer.classList.add("time24hr"),b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var a=p("flatpickr-second");b.secondElement=a.getElementsByTagName("input")[0],b.secondElement.value=o(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():e.seconds),b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step")),b.secondElement.setAttribute("min","0"),b.secondElement.setAttribute("max","59"),b.secondElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),b.timeContainer.appendChild(a)}return b.config.time_24hr||(b.amPM=u("span","flatpickr-am-pm",b.l10n.amPM[r((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]),b.amPM.title=b.l10n.toggleTitle,b.amPM.tabIndex=-1,b.timeContainer.appendChild(b.amPM)),b.timeContainer}()),c(b.calendarContainer,"rangeMode","range"===b.config.mode),c(b.calendarContainer,"animate",!0===b.config.animate),c(b.calendarContainer,"multiMonth",b.config.showMonths>1),b.calendarContainer.appendChild(e);var a=void 0!==b.config.appendTo&&void 0!==b.config.appendTo.nodeType;if((b.config.inline||b.config.static)&&(b.calendarContainer.classList.add(b.config.inline?"inline":"static"),b.config.inline&&(!a&&b.element.parentNode?b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling):void 0!==b.config.appendTo&&b.config.appendTo.appendChild(b.calendarContainer)),b.config.static)){var s=u("div","flatpickr-wrapper");b.element.parentNode&&b.element.parentNode.insertBefore(s,b.element),s.appendChild(b.element),b.altInput&&s.appendChild(b.altInput),s.appendChild(b.calendarContainer)}b.config.static||b.config.inline||(void 0!==b.config.appendTo?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}(),function(){if(b.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),(function(t){return I(t,"click",b[e])}))})),b.isMobile)!function(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=u("input",b.input.className+" flatpickr-mobile"),b.mobileInput.tabIndex=1,b.mobileInput.type=e,b.mobileInput.disabled=b.input.disabled,b.mobileInput.required=b.input.required,b.mobileInput.placeholder=b.input.placeholder,b.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",b.selectedDates.length>0&&(b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr)),b.config.minDate&&(b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d")),b.config.maxDate&&(b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d")),b.input.getAttribute("step")&&(b.mobileInput.step=String(b.input.getAttribute("step"))),b.input.type="hidden",void 0!==b.altInput&&(b.altInput.type="hidden");try{b.input.parentNode&&b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}I(b.mobileInput,"change",(function(e){b.setDate(h(e).value,!1,b.mobileFormatStr),ye("onChange"),ye("onClose")}))}();else{var e=s(re,50);if(b._debouncedChange=s(F,300),b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(b.daysContainer,"mouseover",(function(e){"range"===b.config.mode&&oe(h(e))})),I(b._input,"keydown",ae),void 0!==b.calendarContainer&&I(b.calendarContainer,"keydown",ae),b.config.inline||b.config.static||I(window,"resize",e),void 0!==window.ontouchstart?I(window.document,"touchstart",X):I(window.document,"mousedown",X),I(window.document,"focus",X,{capture:!0}),!0===b.config.clickOpens&&(I(b._input,"focus",b.open),I(b._input,"click",b.open)),void 0!==b.daysContainer&&(I(b.monthNav,"click",Me),I(b.monthNav,["keyup","increment"],j),I(b.daysContainer,"click",pe)),void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement){I(b.timeContainer,["increment"],P),I(b.timeContainer,"blur",P,{capture:!0}),I(b.timeContainer,"click",B),I([b.hourElement,b.minuteElement],["focus","click"],(function(e){return h(e).select()})),void 0!==b.secondElement&&I(b.secondElement,"focus",(function(){return b.secondElement&&b.secondElement.select()})),void 0!==b.amPM&&I(b.amPM,"click",(function(e){P(e)}))}b.config.allowInput&&I(b._input,"blur",ie)}}(),(b.selectedDates.length||b.config.noCalendar)&&(b.config.enableTime&&L(b.config.noCalendar?b.latestSelectedDateObj:void 0),Se(!1)),T();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!b.isMobile&&t&&ue(),ye("onReady")}(),b}function O(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],a=0;a e.length) && (t = e.length); for (var i = 0, r = new Array(t); i < t; i++) r[i] = e[i]; return r } document.addEventListener("DOMContentLoaded", (function () { function e(e) { var t = 0, i = window.innerWidth - document.body.offsetWidth + "px", r = document.querySelectorAll(".fixed"); e ? (document.body.classList.add("scroll-disabled"), t = window.pageYOffset, document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.top = "-" + t + "px", document.body.style.width = "100%", document.body.style.paddingRight = i, r && r.forEach((function (e) { e.style.marginRight = i }))) : (document.body.classList.remove("scroll-disabled"), t = Math.abs(parseInt(document.querySelector("body").style.top.replace("px", ""))), document.body.style.removeProperty("overflow"), document.body.style.removeProperty("position"), document.body.style.removeProperty("top"), document.body.style.removeProperty("width"), document.body.style.removeProperty("padding-right"), r && r.forEach((function (e) { e.style.removeProperty("margin-right") })), window.scrollTo({top: isNaN(t) ? 0 : t, behavior: "instant"})) } function t(e, t) { var i = e.querySelector(".validation-form-message"); i && (i.dataset.originalMessage || (i.dataset.originalMessage = i.textContent.trim()), t ? i.textContent = t : (i.textContent = i.dataset.originalMessage, delete i.dataset.originalMessage)) } var i = function (e, t) { var i = function (i) { for (var s = i.target; s && !e.includes(s);) s = s.parentNode; s || (t(), r()) }; function r() { document.documentElement.removeEventListener("click", i) } return { setBodyChecker: function () { document.documentElement.addEventListener("click", i) }, removeBodyChecker: r } }, r = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 400; e.style.transitionProperty = "height, margin, padding", e.style.transitionDuration = t + "ms", e.style.height = e.offsetHeight + "px", e.offsetHeight, e.style.overflow = "hidden", e.style.height = 0, e.style.paddingTop = 0, e.style.paddingBottom = 0, e.style.marginTop = 0, e.style.marginBottom = 0, e.previousElementSibling && (e.previousElementSibling.style.pointerEvents = "none"), window.setTimeout((function () { e.style.display = "none", e.style.removeProperty("height"), e.style.removeProperty("padding-top"), e.style.removeProperty("padding-bottom"), e.style.removeProperty("margin-top"), e.style.removeProperty("margin-bottom"), e.style.removeProperty("overflow"), e.style.removeProperty("transition-duration"), e.style.removeProperty("transition-property"), e.previousElementSibling && (e.previousElementSibling.style.pointerEvents = "auto") }), t), e.parentNode.classList.remove("is--open") }, s = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 400; e.style.removeProperty("display"); var i = window.getComputedStyle(e).display; "none" === i && (i = "block"), e.style.display = i; var r = e.offsetHeight; e.style.overflow = "hidden", e.style.height = 0, e.style.paddingTop = 0, e.style.paddingBottom = 0, e.style.marginTop = 0, e.style.marginBottom = 0, e.offsetHeight, e.style.transitionProperty = "height, margin, padding", e.style.transitionDuration = t + "ms", e.style.height = r + "px", e.style.removeProperty("padding-top"), e.style.removeProperty("padding-bottom"), e.style.removeProperty("margin-top"), e.style.removeProperty("margin-bottom"), e.previousElementSibling && (e.previousElementSibling.style.pointerEvents = "none"), window.setTimeout((function () { e.style.removeProperty("height"), e.style.removeProperty("overflow"), e.style.removeProperty("transition-duration"), e.style.removeProperty("transition-property"), e.previousElementSibling && (e.previousElementSibling.style.pointerEvents = "auto") }), t), e.parentNode.classList.add("is--open") }; Inputmask().mask(document.querySelectorAll("input")); var n = document.querySelectorAll(".input-field__input"), o = document.querySelectorAll(".input-field__clear"), a = document.querySelectorAll(".input-field__visibility"); n && n.forEach((function (e) { e.addEventListener("input", (function () { var t = e.closest(".input-field").querySelector(".input-field__clear"); t && (e.value.length >= 1 ? t.classList.add("is--active") : t.classList.remove("is--active")) })) })), o && o.forEach((function (e) { e.addEventListener("click", (function (t) { t.preventDefault(); var i = e.closest(".input-field").querySelector(".input-field__input"); i.value.length >= 1 && (i.value = "", e.classList.remove("is--active")) })) })), a && a.forEach((function (e) { e.addEventListener("click", (function (t) { t.preventDefault(); var i = e.closest(".input-field").querySelector(".input-field__input"); e.classList.contains("is--active") ? (e.classList.remove("is--active"), i.type = "password") : (e.classList.add("is--active"), i.type = "text") })) })); var l = document.querySelectorAll('.js-input-visibility input[type="checkbox"]'); l && l.forEach((function (e) { e.addEventListener("change", (function (t) { t.preventDefault(); var i = e.closest(".auth-form__switches").querySelector(".auth-form__hidden-block"); if (1 == e.checked) s(i), "checked" == i.dataset.checkbox && i.querySelectorAll(".square-checkbox__input").forEach((function (e) { e.checked = !0 })); else if (0 == e.checked) { r(i); var n = i.querySelectorAll(".input-field__input"), o = i.querySelectorAll(".square-checkbox__input"); n && n.forEach((function (e) { var t = e.closest(".input-field"); e.value = "", t.classList.contains("is--error") && t.classList.remove("is--error") })), o && o.forEach((function (e) { e.checked = !1 })) } })) })); var c = document.querySelectorAll(".input-field__number"); c && c.forEach((function (e, t) { e.addEventListener("input", (function (e) { var i = e.target.value; i.length > 1 && (e.target.value = i.slice(0, 1)), 1 === i.length && t < c.length - 1 && c[t + 1].focus() })), e.addEventListener("keydown", (function (i) { "Backspace" === i.key && !e.value && t > 0 && c[t - 1].focus() })), e.addEventListener("paste", (function (e) { e.preventDefault(); var t = e.clipboardData.getData("text").split("").filter((function (e) { return /\d/.test(e) })); t.slice(0, c.length).forEach((function (e, t) { c[t].value = e })), t.length > 0 && c[Math.min(t.length, c.length - 1)].focus() })) })); var d = document.querySelectorAll(".select-box__placeholder"), u = document.querySelectorAll(".select-box__checkbox"); d && (d.forEach((function (e) { var t = function () { document.querySelectorAll(".select-box").forEach((function (e) { return e.classList.remove("is--active") })) }, r = i([e.parentNode].concat(_toConsumableArray(document.querySelectorAll(".select-box"))), t); e.addEventListener("click", (function () { var i = e.closest(".select-box"); i.classList.contains("is--active") ? t() : (t(), i.classList.add("is--active"), r.setBodyChecker()) })) })), u && u.forEach((function (e) { e.addEventListener("click", (function () { var t = e.closest(".select-box"); t.querySelector(".select-box__placeholder span").innerHTML = e.querySelector(".select-box__title").innerHTML, document.querySelectorAll(".select-box").forEach((function (e) { return e.classList.remove("is--active") })), t.querySelector(".select-box__placeholder").classList.contains("is--selected") || t.querySelector(".select-box__placeholder").classList.add("is--selected") })) }))); var v, f = document.querySelector(".c-code__resend-btn"); f && function (e, t) { clearInterval(v); var i = t, r = e.closest(".c-code"), s = r.querySelector(".c-code__timer"); r.classList.add("is--countdown"), s.textContent = i, v = setInterval((function () { var e = i; s.textContent = e, --i < 0 && (clearInterval(v), r.classList.remove("is--countdown")) }), 1e3) }(f, 90); var p = document.querySelectorAll(".c-dropdown__trigger"); p && p.forEach((function (e) { var t = function () { document.querySelectorAll(".c-dropdown").forEach((function (e) { return e.classList.remove("is--active") })) }, r = i([e.parentNode], t); e.addEventListener("click", (function (i) { i.preventDefault(); var s = e.closest(".c-dropdown"); e.classList.contains("c-dropdown__trigger--mobile") ? window.innerWidth >= 744 && (s.classList.contains("is--active") ? t() : (s.classList.add("is--active"), r.setBodyChecker())) : s.classList.contains("is--active") ? t() : (s.classList.add("is--active"), r.setBodyChecker()) })) })); var m = document.querySelectorAll(".c-user__trigger"); m && m.forEach((function (e) { var t = function () { document.querySelectorAll(".c-user").forEach((function (e) { return e.classList.remove("is--active") })) }, r = i([e.parentNode], t); e.addEventListener("click", (function (i) { i.preventDefault(); var s = e.closest(".c-user"); s.classList.contains("is--active") ? t() : (s.classList.add("is--active"), r.setBodyChecker()) })) })); var y = document.getElementById("menu"), h = document.getElementById("hamburger-toggle"); y && h && h.addEventListener("click", (function (t) { t.preventDefault(), y.classList.contains("is--active") ? (h.classList.remove("is--active"), y.classList.remove("is--active"), e(0)) : (h.classList.add("is--active"), y.classList.add("is--active"), e(1)) })); var L = document.querySelectorAll(".lk-tabs__item"); L && L.forEach((function (e, t) { e.addEventListener("click", (function () { var t = e.closest(".lk-tabs"); t.querySelectorAll(".lk-tabs__item").forEach((function (e) { return e.classList.remove("is--active") })), t.querySelectorAll(".lk-tabs__holder").forEach((function (e) { return e.classList.remove("is--active") })), e.classList.add("is--active"); var i = t.querySelector(".is--active"), r = _toConsumableArray(t.querySelectorAll(".lk-tabs__item")).indexOf(i); t.querySelectorAll(".lk-tabs__holder")[r].classList.add("is--active") })) })); var g = document.querySelectorAll(".lk-trigger[data-id]"), _ = document.querySelectorAll(".lk-tabs__holder[data-id] .lk-topping__back"); g && g.forEach((function (e) { e.addEventListener("click", (function (t) { t.preventDefault(); var i = e.dataset.id; document.querySelector('.lk-tabs__holder[data-id="' + i + '"]').classList.add("is--open") })) })), _ && _.forEach((function (e) { e.addEventListener("click", (function (t) { t.preventDefault(), e.closest(".lk-tabs__holder[data-id]").classList.remove("is--open") })) })); var b = document.querySelectorAll(".input-field__input--date"); b && b.forEach((function (e) { e.addEventListener("input", (function () { var e = this.value.replace(/_/g, "").split("."); e[0] && 2 === e[0].length && !function (e) { var t = parseInt(e, 10); return t >= 1 && t <= 31 }(e[0]) && (e[0] = ""), e[1] && 2 === e[1].length && !function (e) { var t = parseInt(e, 10); return t >= 1 && t <= 12 }(e[1]) && (e[1] = ""), e[2] && 4 === e[2].length && !function (e) { var t = parseInt(e, 10), i = (new Date).getFullYear() - 18; return t >= 1900 && t <= i }(e[2]) && (e[2] = ""), this.value = e.join(".") })) })); var E = document.querySelectorAll(".validation-form"); function S(e) { var i = function (e) { var i = e.querySelectorAll('.input-field__input[data-validation="required"], /*.input-field__input[data-type="email"]:not([data-validation="required"]),*/ .input-field__textarea[data-validation="required"]'), r = e.querySelectorAll('.input-field__input[data-type="password"][data-validation="required"]'); if (!i) return !0; console.log('elements', i); var s = i.length; return i.forEach((function (e) { var t = e.closest(".input-field"); if (e.value.length > 0) if (e.classList.contains("input-dadata-city") || e.classList.contains("input-dadata-street")) t.classList.contains("is--selected") ? s-- : t.classList.add("is--error"); else if ("tel" == e.dataset.type) 13 == e.value.replace(/[^+\d]/g, "").length ? s-- : t.classList.add("is--error"); else if ("password" == e.dataset.type) { var i = e.getAttribute("data-min-value"); e.value.length >= i ? s-- : t.classList.add("is--error") } else if ("date" == e.dataset.type) { var r = e.value.trim(); /^\d{2}\.\d{2}\.\d{4}$/.test(r) ? s-- : t.classList.add("is--error") } else if ("email" == e.dataset.type) { var n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, o = e.value; e.dataset.validation ? n.test(o) ? s-- : t.classList.add("is--error") : e.value.length < 1 || n.test(o) ? s-- : t.classList.add("is--error") } else s--; else e.dataset.validation ? t.classList.add("is--error") : s-- })), r.length > 1 ? r[0].value !== r[1].value ? (t(e, "Введенные пароли не совпадают"), !1) : (t(e), 0 == s || void 0) : 0 == s }(e), r = function (e) { var t = e.querySelectorAll('.select-box[data-validation="required"]'); if (t) { var i = t.length; return t.forEach((function (e) { e.querySelectorAll(".select-box__input:checked").length > 0 ? i-- : e.classList.add("is--error") })), 0 == i } return !0 }(e), s = function (e) { var t = e.querySelectorAll('.switch__input[data-validation="required"]'); if (t) { var i = t.length; return t.forEach((function (e) { var t = e.closest(".switch"); e.checked ? i-- : (t.classList.add("is--error"), e.dataset.id && document.querySelector('.validation-checkbox-message[data-id="' + e.dataset.id + '"]').classList.add("is--active")) })), 0 == i } return !0 }(e), n = function (e) { var t = e.querySelectorAll(".js-input-visibility .switch__input"); if (t) { var i = t.length; return console.log("before:", i), t.forEach((function (e) { var t = e.closest(".switch"), r = t.nextElementSibling, s = r.querySelector(".auth-form__error"); if (e.checked) { console.log("checked:", e); var n = r.querySelectorAll(".input-field__input"), o = r.querySelectorAll(".square-checkbox__input"); if (n && n.length > 0) { var a = n.length; n.forEach((function (e) { e.value.length > 0 ? (a--, e.closest(".input-field").classList.remove("is--error")) : e.closest(".input-field").classList.add("is--error") })), 0 == a ? (i--, t.classList.remove("is--error")) : t.classList.add("is--error") } if (o && o.length > 0) { var l = !1; console.log("checkbox status:", l), o.forEach((function (e) { e.checked && (l = !0) })), console.log("checkbox status:", l), 1 == l ? (i--, t.classList.remove("is--error"), s && s.classList.remove("is--active")) : (t.classList.add("is--error"), s && s.classList.add("is--active")) } } else console.log("not checked:", e), i-- })), console.log("after:", i), 0 == i } return !0 }(e); return !!(i && r && s && n) } /*function validateForm(e) { // Проверка текстовых полей, паролей, email и т.д. function validateInputs(form) { const inputs = form.querySelectorAll('.input-field__input[data-validation="required"], .input-field__textarea[data-validation="required"]'); const passwords = form.querySelectorAll('.input-field__input[data-type="password"][data-validation="required"]'); let errors = inputs.length; inputs.forEach(input => { const field = input.closest(".input-field"); if (input.value.length > 0) { if (["input-dadata-city", "input-dadata-street"].some(cls => input.classList.contains(cls))) { if (!field.classList.contains("is--selected")) field.classList.add("is--error"); else errors--; } else if (input.dataset.type === "tel") { const phoneLength = input.value.replace(/[^+\d]/g, "").length; if (phoneLength === 13) errors--; else field.classList.add("is--error"); } else if (input.dataset.type === "password") { const minLength = parseInt(input.getAttribute("data-min-value"), 10); if (input.value.length >= minLength) errors--; else field.classList.add("is--error"); } else if (input.dataset.type === "date") { const datePattern = /^\d{2}\.\d{2}\.\d{4}$/; if (datePattern.test(input.value.trim())) errors--; else field.classList.add("is--error"); } else if (input.dataset.type === "email") { const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; if (emailPattern.test(input.value)) errors--; else field.classList.add("is--error"); } else { errors--; } } else { field.classList.add("is--error"); } }); if (passwords.length === 2 && passwords[0].value !== passwords[1].value) { showError(form, "Введенные пароли не совпадают"); return false; } return errors === 0; } // Проверка выпадающих списков function validateSelectBoxes(form) { const selects = form.querySelectorAll('.select-box[data-validation="required"]'); let errors = selects.length; selects.forEach(select => { if (select.querySelector(".select-box__input:checked")) errors--; else select.classList.add("is--error"); }); return errors === 0; } // Проверка переключателей (switch) function validateSwitches(form) { const switches = form.querySelectorAll('.switch__input[data-validation="required"]'); let errors = switches.length; switches.forEach(switchInput => { const switchContainer = switchInput.closest(".switch"); if (switchInput.checked) errors--; else { switchContainer.classList.add("is--error"); if (switchInput.dataset.id) { document.querySelector(`.validation-checkbox-message[data-id="${switchInput.dataset.id}"]`).classList.add("is--active"); } } }); return errors === 0; } // Проверка видимых полей function validateVisibleFields(form) { const visibilityInputs = form.querySelectorAll(".js-input-visibility .switch__input"); let errors = visibilityInputs.length; visibilityInputs.forEach(input => { const switchContainer = input.closest(".switch"); const associatedSection = switchContainer.nextElementSibling; const errorMessage = associatedSection.querySelector(".auth-form__error"); if (input.checked) { const requiredFields = associatedSection.querySelectorAll(".input-field__input"); const requiredCheckboxes = associatedSection.querySelectorAll(".square-checkbox__input"); let fieldErrors = requiredFields.length; requiredFields.forEach(field => { if (field.value.length > 0) { field.closest(".input-field").classList.remove("is--error"); fieldErrors--; } else { field.closest(".input-field").classList.add("is--error"); } }); let checkboxChecked = Array.from(requiredCheckboxes).some(checkbox => checkbox.checked); if (checkboxChecked) { switchContainer.classList.remove("is--error"); if (errorMessage) errorMessage.classList.remove("is--active"); errors--; } else { switchContainer.classList.add("is--error"); if (errorMessage) errorMessage.classList.add("is--active"); } if (fieldErrors === 0) errors--; } else { errors--; } }); console.log('visibility: ', errors) return errors === 0; } // Запуск всех проверок const inputValid = validateInputs(e); const selectValid = validateSelectBoxes(e); const switchValid = validateSwitches(e); const visibilityValid = validateVisibleFields(e); console.log('validations', inputValid, selectValid, switchValid, visibilityValid); // Возвращаем итоговый результат return inputValid && selectValid && switchValid && visibilityValid; }*/ E && E.forEach((function (e) { var t = e.querySelector(".validation-form-message"), i = e.querySelector(".validation-form-message-server"), r = e.querySelectorAll('.input-field__input[data-validation="required"], /*.input-field__input[data-type="email"]:not([data-validation="required"]),*/ .input-field__textarea[data-validation="required"]'), s = e.querySelectorAll('.select-box[data-validation="required"]'), n = e.querySelectorAll('.switch__input[data-validation="required"]'), o = e.querySelectorAll(".js-input-visibility .switch__input"); r && r.forEach((function (e) { e.addEventListener("input", (function () { var t = e.closest(".input-field"); if ("tel" == e.dataset.type) 13 == e.value.replace(/[^+\d]/g, "").length && t.classList.contains("is--error") && t.classList.remove("is--error"); else if ("password" == e.dataset.type) { var r = e.getAttribute("data-min-value"); e.value.length >= r && t.classList.contains("is--error") && t.classList.remove("is--error") } else if ("date" == e.dataset.type) { var s = e.value.trim(); /^\d{2}\.\d{2}\.\d{4}$/.test(s) && t.classList.contains("is--error") && t.classList.remove("is--error") } else if ("email" == e.dataset.type) { var n = e.value; /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(n) && t.classList.contains("is--error") && t.classList.remove("is--error") } else e.value.length > 0 && t.classList.contains("is--error") && t.classList.remove("is--error"); i.classList.contains("is--active") && i.classList.remove("is--active") })), e.addEventListener("blur", (function () { var t = e.closest(".input-field"); if (e.classList.contains("input-dadata-region") || e.classList.contains("input-dadata-city")) t.classList.contains("is--selected") || t.classList.add("is--error"); else if ("tel" == e.dataset.type) 13 != e.value.replace(/[^+\d]/g, "").length && t.classList.add("is--error"); else if ("password" == e.dataset.type) { var i = e.getAttribute("data-min-value"); e.value.length < i && t.classList.add("is--error") } else if ("date" == e.dataset.type) { var r = e.value.trim(); /^\d{2}\.\d{2}\.\d{4}$/.test(r) || t.classList.add("is--error") } else if ("email" == e.dataset.type) { var s = e.value; !/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(s) && e.value.length > 0 ? t.classList.add("is--error") : e.value.length < 1 && t.classList.remove("is--error") } else 0 == e.value.length && t.classList.add("is--error") })) })), s && s.forEach((function (e) { e.querySelectorAll(".select-box__input").forEach((function (t) { t.addEventListener("click", (function () { t.checked && e.classList.remove("is--error") })) })) })), n && n.forEach((function (e) { e.addEventListener("click", (function () { var t = e.closest(".switch"); e.checked && t.classList.contains("is--error") && (t.classList.remove("is--error"), e.dataset.id && document.querySelector('.validation-checkbox-message[data-id="' + e.dataset.id + '"]').classList.remove("is--active")) })) })), o && o.forEach((function (e) { var t = e.closest(".switch"), i = t.nextElementSibling, r = i.querySelector(".auth-form__error"), s = i.querySelectorAll(".input-field__input"), n = i.querySelectorAll(".square-checkbox__input"); if (e.addEventListener("click", (function () { !e.checked && t.classList.contains("is--error") && (t.classList.remove("is--error"), r && r.classList.remove("is--active")) })), s) { var o = function () { var e = s.length; s.forEach((function (t) { t.value.length > 0 && e-- })), 0 == e ? t.classList.remove("is--error") : t.classList.add("is--error") }; s.forEach((function (e) { e.addEventListener("input", (function () { e.value.length > 0 && (o(), e.closest(".input-field").classList.remove("is--error")) })), e.addEventListener("blur", (function () { 0 == e.value.length && (o(), e.closest(".input-field").classList.add("is--error")) })) })) } if (n) { n.forEach((function (e) { e.addEventListener("change", (function () { e.checked && 1 == !0 && (t.classList.remove("is--error"), r && r.classList.remove("is--active")) })) })) } })), e.addEventListener("submit", (function (r) { S(e) ? (t && t.classList.remove("is--active"), i && i.classList.remove("is--active"), "ajax" == e.dataset.action && (r.preventDefault(), sendingFormData(e))) : (r.preventDefault(), t && t.classList.add("is--active"), i && i.classList.remove("is--active")) })) })); var q = document.querySelector(".input-dadata-region"), A = document.querySelector(".input-dadata-city"), k = "https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/address", w = "8597dd60d3a83fb46930107993271556971eadf1"; /*q && (q.addEventListener("input", (function () { var e = q.closest(".input-field"), t = e.querySelector(".input-field__dropdown"), i = q.value, r = [], s = { method: "POST", mode: "cors", headers: {"Content-Type": "application/json", Accept: "application/json", Authorization: "Token " + w}, body: JSON.stringify({ query: i, count: 5, locations: [{country: "Беларусь"}], from_bound: {value: "region"}, to_bound: {value: "region"}, restrict_value: !0 }) }; e.classList.contains("is--selected") && e.classList.remove("is--selected"), i.length >= 2 ? fetch(k, s).then((function (e) { return e.text() })).then((function (i) { if (JSON.parse(i).suggestions.forEach((function (e) { null != e.data.region && r.push(e.data.region) })), r.length > 0) { e.classList.add("is--dropdown"), t.innerHTML = ""; for (var s = document.createElement("ul"), n = 0; n < r.length; n++) s.innerHTML += '\n
  • \n \n
  • \n "); t.append(s) } else e.classList.remove("is--dropdown"), t.innerHTML = "" })).catch((function (e) { return console.log("error", e) })) : (e.classList.remove("is--dropdown"), t.innerHTML = "") })), q.addEventListener("blur", (function () { var e = q.closest(".input-field"); e.classList.contains("is--selected") || (q.value = "", A.value = ""), e.classList.contains("is--dropdown") && e.classList.remove("is--dropdown") }))),*/ A && (A.addEventListener("input", (function () { var e = A.closest(".input-field"), t = e.querySelector(".input-field__dropdown"), i = A.value, r = [], s = { method: "POST", mode: "cors", headers: {"Content-Type": "application/json", Accept: "application/json", Authorization: "Token " + w}, body: JSON.stringify({ query: i, count: 5, locations: [{country: "Беларусь"}], from_bound: {value: "city"}, to_bound: {value: "settlement"}, restrict_value: !0 }) }; e.classList.contains("is--selected") && e.classList.remove("is--selected"), i.length >= 2 /*&& q.value.length > 0*/ ? fetch(k, s).then((function (e) { return e.text() })).then((function (i) { if (JSON.parse(i).suggestions.forEach((function (e) { null != e.data.settlement_with_type ? r.push(e.data.settlement_with_type) : null != e.data.city_with_type && r.push(e.data.city_with_type) })), r.length > 0) { e.classList.add("is--dropdown"), t.innerHTML = ""; for (var s = document.createElement("ul"), n = 0; n < r.length; n++) s.innerHTML += '\n
  • \n \n
  • \n "); t.append(s) } else e.classList.remove("is--dropdown"), t.innerHTML = "" })).catch((function (e) { return console.log("error", e) })) : (e.classList.remove("is--dropdown"), t.innerHTML = "") })), A.addEventListener("blur", (function () { var e = A.closest(".input-field"); e.classList.contains("is--selected") || (A.value = ""), e.classList.contains("is--dropdown") && e.classList.remove("is--dropdown") }))), document.body.addEventListener("mousedown", (function (e) { if (e.target.classList.contains("input-field__list-elem")) { e.preventDefault(); var t = e.target.closest(".input-field"); t.querySelector(".input-field__input").value = e.target.innerHTML, t.classList.remove("is--dropdown"), t.classList.add("is--selected") } })); var x, T = document.querySelectorAll(".modal"), P = document.querySelectorAll(".modal-btn"), D = document.querySelectorAll(".modal__close"); T && P && D && (T.forEach((function (e) { e.addEventListener("click", (function (e) { (e.target.classList.contains("modal") || e.target.classList.contains("modal__wrap")) && (e.preventDefault(), document.querySelectorAll(".modal.is--active").forEach((function (e) { return e.classList.remove("is--active") })), document.body.classList.remove("scroll-disabled")) })) })), P.forEach((function (e, t) { e.addEventListener("click", (function (t) { t.preventDefault(); var i = e.dataset.id; x && clearTimeout(x), e.dataset.mobile ? window.innerWidth <= 743 && document.getElementById(i) && (document.querySelectorAll(".modal.is--active").forEach((function (e) { return e.classList.remove("is--active") })), document.getElementById(i).classList.add("is--active"), document.body.classList.add("scroll-disabled"), e.dataset.temp && (x = setTimeout((function () { document.querySelectorAll(".modal.is--active").forEach((function (e) { return e.classList.remove("is--active") })), document.body.classList.remove("scroll-disabled") }), 3500))) : document.getElementById(i) && (document.querySelectorAll(".modal.is--active").forEach((function (e) { return e.classList.remove("is--active") })), document.getElementById(i).classList.add("is--active"), document.body.classList.add("scroll-disabled"), e.dataset.temp && (x = setTimeout((function () { document.querySelectorAll(".modal.is--active").forEach((function (e) { return e.classList.remove("is--active") })), document.body.classList.remove("scroll-disabled") }), 3500))) })) })), D.forEach((function (e) { e.addEventListener("click", (function (e) { e.preventDefault(), document.querySelectorAll(".modal.is--active").forEach((function (e) { return e.classList.remove("is--active") })), document.body.classList.remove("scroll-disabled") })) }))) })); /* End */ ;; /* /local/templates/lk/js/custom.js?17394530814674*/ ; /* /local/templates/lk/js/vendor.min.js?1728458896194208*/ ; /* /local/templates/lk/js/app.min.js?173529922437167*/