text: function dataTableFr(e,t){return $("#"+e).DataTable({paging:!0,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function prefix(e,t,n){for(;e.length<n;)e=t+e;return e}function formatCurrency(e,t=2,n=".",o=","){try{t=Math.abs(t),t=isNaN(t)?2:t;const i=e<0?"-":"";let r=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),a=r.length>3?r.length%3:0;return i+(a?r.substr(0,a)+o:"")+r.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+o)+(t?n+Math.abs(e-r).toFixed(t).slice(2):"")}catch(e){console.log(e)}}function formatMoney(e,t,n,o){t=isNaN(t=Math.abs(t))?2:t,n=void 0===n?".":n,o=void 0===o?",":o;var i=e<0?"-":"",r=String(parseInt(e=Math.abs(Number(e)||0).toFixed(t))),a=(a=r.length)>3?a%3:0;return i+(a?r.substr(0,a)+o:"")+r.substr(a).replace(/(\decSep{3})(?=\decSep)/g,"$1"+o)+(t?n+Math.abs(e-r).toFixed(t).slice(2):"")}function dataTableFrWithExportsButtons(e,t){return $("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}}],paging:!0,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,colReorder:{realtime:!0},rowReorder:{selector:"tr"},language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"  Affichage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function dataTableFrWithExportsButtonsScroll(e,t,n){return $("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},scrollY:n,paging:!1,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function dataTableFrWithExportsButtonsScrollAdvancedSearchSelect(e,t,n){return $("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},scrollY:n,paging:!1,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}},initComplete:function(){this.api().columns().every(function(){var e=this,t=$('<select class="form-control form-control-sm"><option value=""></option></select>').appendTo($(e.footer()).empty()).on("change",function(){var t=$.fn.dataTable.util.escapeRegex($(this).val());e.search(t?"^"+t+"$":"",!0,!1).draw()});e.data().unique().sort().each(function(e,n){t.append('<option value="'+e+'">'+e+"</option>")})})}})}function dataTableFrWithExportsButtonsAdvancedSearch(e,t,n){$("#"+e+" tfoot th").each(function(){$(this).html('<input type="text" class="form-control" placeholder="'+$(this).text()+'" />')});var o=$("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}});return o.columns().every(function(){var e=this;$("input",this.footer()).on("keyup change",function(){e.search()!==this.value&&e.search(this.value).draw()})}),o}function dataTableFrWithExportsButtonsScrollAdvancedSearch(e,t,n){$("#"+e+" tfoot th").each(function(){$(this).html('<input type="text" class="form-control" placeholder="'+$(this).text()+'" />')});var o=$("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},scrollY:n,paging:!1,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}});return o.columns().every(function(){var e=this;$("input",this.footer()).on("keyup change",function(){e.search()!==this.value&&e.search(this.value).draw()})}),o}function dataTableFrWithExportsButtonsScrollSelect(e,t,n){return $("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}},{text:"Selection",extend:"selected"},{text:"Selection Unique",extend:"selectedSingle"},{text:"Selectionnez Tous",extend:"selectAll"},{text:"Annuler la sélection",extend:"selectNone"},{text:"Selection des lignes",extend:"selectRows"},{text:"Selection des Colonnes",extend:"selectColumns"},{text:"Selection des Cellules",extend:"selectCells"}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},select:!0,scrollY:n,paging:!1,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function dataTableFrWithScrollSelect(e,t,n){return $("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Selection",extend:"selected"},{text:"Selection Unique",extend:"selectedSingle"},{text:"Selectionnez Tous",extend:"selectAll"},{text:"Annuler la sélection",extend:"selectNone"},{text:"Selection des lignes",extend:"selectRows"},{text:"Selection des Colonnes",extend:"selectColumns"},{text:"Selection des Cellules",extend:"selectCells"}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},select:!0,scrollY:n,paging:!1,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function unEscapeHtml(e){return e.replace(/[\u00A0-\u9999<>\&]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})}function waitSeconds(e,t){setTimeout(t(),e)}function dataTableFrWithExportsButtonsScrollResponsive(e,t,n){return $("#"+e).DataTable({dom:"Bfrtip",buttons:[{text:"Copier",extend:"copyHtml5",exportOptions:{columns:[":visible"]}},{text:"CSV",extend:"csvHtml5",exportOptions:{columns:[":visible"]}},{text:"Excel",extend:"excelHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(e,n,o,i){var r=n.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(r)]),t+".json")}},{text:"Cacher/Afficher Colonnes",extend:"colvis"},{text:"Imprimer (PDF)",extend:"print",exportOptions:{columns:":visible"}}],colReorder:{realtime:!0},rowReorder:{selector:"tr"},scrollY:n,paging:!1,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,responsive:{details:{display:$.fn.dataTable.Responsive.display.childRowImmediate,type:""}},language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function dataTableFrById(e,t){return $("#"+e).DataTable({paging:!0,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})}function dataTableFrByClass(e,t){var n=$("."+e).map(function(){return $(this).attr("id")}).get();$.each(n,function(e,n){$("#"+n).DataTable({paging:!0,lengthChange:!0,searching:!0,ordering:!0,info:!0,autoWidth:!1,language:{previous:"Précedent",next:"Suivant",lengthMenu:"Afficher  _MENU_  "+t,info:"Affchage de _START_ à _END_ de _TOTAL_ "+t,emptyTable:"Aucune donnée disponible.",zeroRecords:"Aucune donnée disponible.",infoEmpty:"",infoFiltered:" - recherche sur _MAX_ "+t,search:"Rechercher : ",paginate:{previous:"Précédent",next:"Suivant"}}})})}function dataEventTargetElisis(e,t){return e.currentTarget.dataset[t]}function getYear(){return(new Date).getFullYear()}function getMonth(){return(new Date).getMonth()}function getDay(){return(new Date).getDay()}function getMonthName(){return(new Date).getMonthName()}function getDayName(){return(new Date).getDayName()}function getDate(){return(new Date).getDate()}function utcDate(){return(new Date).getUTCDate()}function utcDay(){return(new Date).getUTCDay()}function setInputDateTimeLocalToNow(e){$("#id").val(d.getFullYear()+"-"+zeroPadded(d.getMonth()+1)+"-"+zeroPadded(d.getDate())+"T"+zeroPadded(d.getHours())+":"+zeroPadded(d.getMinutes())+":"+zeroPadded(d.getSeconds()))}function getDateTimeLocalToString(e,t,n,o,i,r){return e+"-"+zeroPadded(t)+"-"+zeroPadded(n)+"T"+zeroPadded(o)+":"+zeroPadded(i)+":"+zeroPadded(r)}function setInputDateTimeLocal(e,t,n,o,i,r,a){$("#"+e).val(getDateTimeLocalToString(t,n,o,i,r,a))}function utcFullYear(){return(new Date).getUTCFullYear()}function utcHours(){return(new Date).getUTCHours()}function chooseSelectByText(e,t){$("#"+e).filter(function(){return this.text===t}).attr("selected",!0)}function chooseSelect2ByText(e,t){var n=$("#"+e);n.filter(function(){return this.text===t}).attr("selected",!0),n.trigger("change")}function chooseSelectByVal(e,t){$("#"+e).filter(function(){return this.val()===t}).attr("selected",!0)}function printDiv(e){var t=document.getElementById(e).innerHTML,n=document.body.innerHTML;document.body.innerHTML=t,window.print(),document.body.innerHTML=n}function pNotifyResult(e){ajaxResultIsOkay(e)?pNotifySimpleSuccess(getAjaxMessage(e)):pNotifySimpleError(getAjaxMessage(e))}function pNotifyResultWarn(e){ajaxResultIsOkay(e)?pNotifySimpleSuccess(getAjaxMessage(e)):pNotifySimpleWarning(getAjaxMessage(e))}function pNotifySimpleSuccess(e){new PNotify({text:""+e,icon:"icofont icofont-check-circled",type:"success"})}function pNotifySimpleSuccessWithTitle(e,t){new PNotify({title:e,text:""+t,icon:"icofont icofont-check-circled",type:"success"})}function redirectTo(e){window.location.href=e}function pNotifySimpleWarningWithTitle(e,t){new PNotify({title:e,text:""+t,icon:"icofont icofont-warning",type:"warning"})}function testLocalization(e,t,n){return"geolocation"in navigator?(isEmptyValue(e)||pNotifySimpleSuccess(e),!0):(n?pNotifySimpleWarning(t):pNotifySimpleError(t),!1)}function pNotifySimpleWarning(e){void 0===e?pNotifyUnknownException():new PNotify({text:""+e,icon:"icofont icofont-warning",type:"warning"})}function pNotifySimpleInfo(e){void 0===e?pNotifyUnknownException():new PNotify({text:""+e,icon:"icofont icofont-warning",type:"info"})}function pNotifySimpleInfoWithTitle(e,t){void 0===t?pNotifyUnknownException():new PNotify({title:e,text:""+t,icon:"icofont icofont-warning",type:"info"})}function pNotifyUnknownException(e){void 0===e?navigator.onLine?pNotifySimpleError("Une erreur indéfinie s'est produite.<br><br>Votre session a expiré ou vous n'avez pas le droit  d'interagir avec cette page.<br><br> Rechargez la page"):pNotifySimpleError("Il semblerait que vous ne soyez pas connecté à Internet.<br><br>L'erreur est peut être dû à cela. <br><br> Ou votre session a expiré ou vous n'avez pas le droit  d'interagir avec cette page.<br><br> Rechargez la page"):pNotifySimpleError(e)}function pNotifyUnknownExceptionWarn(e){void 0===e?navigator.onLine?pNotifySimpleWarning("Une erreur indéfinie s'est produite.<br><br>Votre session a expiré ou vous n'avez pas le droit  d'interagir avec cette page.<br><br> Rechargez la page"):pNotifySimpleWarning("Il semblerait que vous ne soyez pas connecté à Internet.<br><br>L'erreur est peut être dû à cela. <br><br> Ou votre session a expiré ou vous n'avez pas le droit  d'interagir avec cette page.<br><br> Rechargez la page"):pNotifySimpleWarning(e)}function hostReachable(){var e=new(window.ActiveXObject||XMLHttpRequest)("Microsoft.XMLHTTP");e.open("HEAD","//"+window.location.hostname+"/?rand="+Math.floor(65536*(1+Math.random())),!1);try{return e.send(),e.status>=200&&e.status<300||304===e.status}catch(e){return!1}}function pNotifySimpleError(e){void 0===e?pNotifyUnknownException():new PNotify({text:""+e,icon:"icofont icofont-close-circled",type:"error"})}function pNotifySimple(e,t){e?pNotifySimpleSuccess(t):pNotifySimpleError(t)}function pNotifySimpleWarn(e,t){e?pNotifySimpleSuccess(t):pNotifySimpleWarning(t)}function isEmptyInput(e){return isEmptyInputElement($("#"+e))}function isEmptyInputElement(e){var t=e.val().replace("/ /","");return 0===t.length||""===t}function radioInputValue(e){return $("input[name="+e+"]:checked").val()}function isChecked(e){return isCheckedEl($("#"+e))}function isCheckedEl(e){return e.is(":checked")}function hidden(e,t){$("#"+e).prop("hidden",t)}function value(e){return $("#"+e).val()}function valueText(e){return $("#"+e).text()}function objectLengthSafe(e){return Object.size=function(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n},Object.size(e)}function objectLength(e){return null==e?0:(Object.keys||(Object.keys=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.keys(e).length)}function isEmptyValue(e){if(null==e)return!0;var t=e.replace("/ /","");return 0===t.length||""===t||" "===t}function removeFromAList(e,t){var n=e.indexOf(t);return n>-1&&e.splice(n,1),e}function listContains(e,t){var n=!1;return e.forEach(function(e){e===t&&(n=!0)}),n}function equalsInput(e,t){var n=value(e);return n===t||n==t}function equalsValues(e,t){return e===t||e+""==t+""}function parseToTwoFloat(e){return Math.round(100*e)/100}function setValue(e,t){$("#"+e).val(t)}function resetValue(e){$("#"+e).val("")}function setValueFromMap(e,t,n){setValue(e,t[n])}function setHtmlFromMap(e,t,n){setHtml(e,t[n])}function setValueFromMapSelect(e,t,n){setValue(e,t[n]),$("#"+e).trigger("change")}function enableElement(e){$("#"+e).prop("disabled",!1)}function disableElement(e){$("#"+e).prop("disabled",!0)}function setValueResults(e,t,n){$("#"+e).val(t[n])}function setHtml(e,t){$("#"+e).html(t)}function validateInput(e){return validateInputElement($("#"+e))}function validateFileInput(e){var t=$("#"+e);return 0!==t.get(0).files.length||(invalidateInputElement(t),!1)}function resetValidationInput(e){resetValidationInputElement($("#"+e))}function resetValidationInputElement(e){e.css("border-color",""),e.css("border-width",""),e.css("border-style","")}function invalidateInput(e){invalidateInputElement($("#"+e))}function invalidateInputElement(e){e.css("border-color","red"),e.css("border-width","2px"),e.css("border-style","solid"),e.focus()}function validateInputElement(e){return!isEmptyInputElement(e)||(e.css("border-color","red"),e.css("border-width","2px"),e.css("border-style","solid"),e.focus(),!1)}function validateFormClass(e){var t=!0;return $("."+e).each(function(e,n){if(!(t=validateInputElement($(n))))return!1}),t}function resetInputs(){$("input").on("enter input edit change",function(e){resetValidationInputElement($(this))}),$("textarea").on("enter input edit change",function(e){resetValidationInputElement($(this))})}function resetInputsNow(){resetValidationInputElement($("input")),resetValidationInputElement($("textarea"))}function ajaxResultIsOkay(e){return!0===e.result||"true"===e.result}function ajaxResultIsFail(e){return!1===e.result||"false"===e.result}function getAjaxMessage(e){return e.message}function isURL(e){return e.match(new RegExp(/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)?/gi))}function createMap(){return new Map}function addInputValueToMap(e,t){return e.set(t,value(t)),e}function ajaxCall(e,t,n,o,i,r){$.ajax({url:t,type:e,data:{params:n},success:function(e){return ajaxResultIsOkay(e)?o():i(),e},error:function(e){return r(),e}})}function ajaxResultsId(e,t){$.ajax({url:e,type:"POST",data:{id:t},success:function(e){if(ajaxResultIsOkay(e))return e;pNotifySimpleWarning(getAjaxMessage(e))},error:function(){pNotifyUnknownException()}})}function ajaxCallPost(e,t,n,o,i){ajaxCall("POST",e,t,n,o,i)}function ajaxCallGet(e,t,n,o,i){ajaxCall("GET",e,t,n,o,i)}function addSpinner(e){var t=$("#"+e),n=t.html();return t.html(""),t.append(createSpinner(e)),n}function addSpinnerAndRemove(e,t){var n=$("#"+e),o=n.html();setTimeout(function(){removeSpinner(e,o)},t),n.html(""),n.append(createSpinner(e))}function doWhen(e,t,n){e?t():n()}function removeSpinner(e,t){var n=$("#"+e);n.remove("#"+e+spinnerAd),n.html(t)}function createSpinner(e){return'<i id="'+e+spinnerAd+'" class="kt-spinner kt-spinner--sm kt-spinner--light"></i>'}function animateCSS(e,t,n){var o=document.querySelector(e);o.classList.add("animate",t),o.addEventListener("animationend",function e(){o.classList.remove("animate",t),o.removeEventListener("animationend",e),"function"==typeof n&&n()})}var spinnerAd="-spinner";function isEmail(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}function filePondInitFr(e,t,n){return FilePond.registerPlugin(FilePondPluginFileValidateType,FilePondPluginImageExifOrientation,FilePondPluginImagePreview,FilePondPluginImageCrop,FilePondPluginImageResize,FilePondPluginImageTransform,FilePondPluginImageEdit,FilePondPluginFileEncode),FilePond.create(document.querySelector("#"+e),{maxFiles:n,allowBrowse:!0,allowMultiple:!0,required:!0,allowDrop:!0,allowReplace:!0,allowRevert:!0,labelInvalidField:"Les "+t+"s choisis ne sont pas dans le bon format.",labelFileSizeNotAvailable:"Le fichier a une trog grande taille (5Mb maximum)",labelFileLoading:"Chargement",labelTapToCancel:"Cliquez pour annuler",labelButtonRemoveItem:"Supprimer",labelIdle:"Glisser & Déposer "+t+' ou <span class="filepond--label-action"> Explorer </span>'})}function bAlertF(e,t){bootbox.alert(e,t())}function bAlert(e){bootbox.alert(e,function(){return!0})}function bAlertAdv(e,t,n){bootbox.alert({size:e,title:t,locale:"fr",message:n,callback:function(){return!0}})}function bAlertAdvF(e,t,n,o){bootbox.alert({size:e,locale:"fr",title:t,message:n,callback:o()})}function bConfirm(e){bootbox.confirm(e,function(e){return e})}function bConfirmAdv(e,t){bootbox.confirm({size:e,locale:"fr",message:t,callback:function(e){return e}})}function select2ValuesEmpty(e){return 0===e.find(":selected").length}function resetSelect2Values(e){$("#"+e).html("").select2({data:[{id:"",text:""}]})}function setSelect2ValuesByMap(e,t){resetSelect2Values(t);var n=$("#"+t);$.each(e,function(e,t){n.append(new Option(t,e,!1,!1))}),n.val(null).trigger("change")}var sizes=["small","sm","large","lg","xl","extra-large"];function bDialogFr(e,t,n){bootbox.dialog({locale:"fr",message:e,size:t,onEscape:!0,backdrop:!0,buttons:{cancel:{label:"Annuler",className:"btn-warning",callback:function(){return!0}},yes:{label:"Oui",className:"btn-success",callback:function(){return n(),!0}}}})}function bDialogFr2(e,t,n,o){bootbox.dialog({locale:"fr",message:e,size:t,onEscape:!0,backdrop:!0,buttons:{cancel:{label:"Annuler",className:"btn-warning",callback:function(){return!0}},no:{label:"Non",className:"btn-outline-info",callback:function(){return o(),!0}},yes:{label:"Oui",className:"btn-success",callback:function(){return n(),!0}}}})}function getSelect2ElValues(e){for(var t=e.find(":selected"),n=[],o=0;o<t.length;o++)n.push(t[o].value);return n}function getSelectedText(e){return $("#"+e+" option:selected").text()}function getSelected2Text(e){return $("#"+e).select2("data").text}function bConfirmDialog(e,t,n){bootbox.confirm({message:e,buttons:{confirm:{label:n,className:"btn-success"},cancel:{label:t,className:"btn-danger"}},callback:function(e){return!0}})}function fakeLoader(e,t,n){$.fakeLoader({bgColor:n,spinner:"spinner"+e,timeToHide:t})}var cookieBubblePosition=["bottom-left","bottom-center","bottom-right","top-left","top-center","top-right"];function cookieBubbleDialog(e,t,n,o,i,r){$.cookieBubble({messageText:e,cookiePolicyButtonTarget:"_blank",boxPosition:t,iconVisibility:!1,cookieMaxAge:n,buttonText:o,boxAppearDelay:i,cookiePolicyButtonUrl:r})}function scrollToItem(e){var t=(e.offsetTop-window.scrollY)/8;Math.abs(t)>1?(window.scrollTo(0,window.scrollY+t),clearTimeout(window._TO),window._TO=setTimeout(scrollToItem,30,e)):window.scrollTo(0,e.offsetTop)}function blockUIElisisColorNoTimer(e,t,n){return $("#"+e).block({message:'<span class="font-weight-semibold"><i class="icon-spinner4 spinner mr-2"></i>&nbsp; '+t+"</span>",overlayCSS:{backgroundColor:n,opacity:.8,cursor:"wait"},css:{width:"auto","-webkit-border-radius":2,"-moz-border-radius":2,padding:0,border:0,backgroundColor:"transparent"}})}function blockUIElisisColor(e,t,n,o){return $("#"+e).block({message:'<span class="font-weight-semibold"><i class="icon-spinner4 spinner mr-2"></i>&nbsp; '+t+"</span>",timeout:n,overlayCSS:{backgroundColor:o,opacity:.8,cursor:"wait"},css:{width:"auto","-webkit-border-radius":2,"-moz-border-radius":2,padding:0,border:0,backgroundColor:"transparent"}})}function blockUIElisis(e,t,n){return $("#"+e).block({message:'<span class="font-weight-semibold"><i class="icon-spinner4 spinner mr-2"></i>&nbsp; '+t+"</span>",timeout:n,overlayCSS:{backgroundColor:"#fff",opacity:.8,cursor:"wait"},css:{width:"auto","-webkit-border-radius":2,"-moz-border-radius":2,padding:0,border:0,backgroundColor:"transparent"}})}function blockUIElisisNoTimer(e,t){return $("#"+e).block({message:'<span class="font-weight-semibold"><i class="icon-spinner4 spinner mr-2"></i>&nbsp; '+t+"</span>",overlayCSS:{backgroundColor:"#fff",opacity:.8,cursor:"wait"},css:{width:"auto","-webkit-border-radius":2,"-moz-border-radius":2,padding:0,border:0,backgroundColor:"transparent"}})}function isListEmpty(e){return""===e||e===[]||null==e}function isMobileAdvanced(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))}function isMobile(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)}function getDistanceFromLatLonInKm(e,t,n,o){var i=deg2rad(n-e),r=deg2rad(o-t),a=Math.sin(i/2)*Math.sin(i/2)+Math.cos(deg2rad(e))*Math.cos(deg2rad(n))*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}function distance(e,t,n,o){var i=.017453292519943295,r=Math.cos,a=.5-r((n-e)*i)/2+r(e*i)*r(n*i)*(1-r((o-t)*i))/2;return 12742*Math.asin(Math.sqrt(a))}function deg2rad(e){return e*(Math.PI/180)}function select2BootIssuesResolve(){try{$.fn.modal.Constructor.prototype.enforceFocus=function(){}}catch(e){}try{$.fn.modal.Constructor.prototype._enforceFocus=function(){}}catch(e){}}function generateString(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*o));return t}