/*! For license information please see exampleWithUL.app.js.LICENSE.txt */ (()=>{var e={196:(e,t,r)=>{"use strict";r.d(t,{q:()=>N});var n=function(e,t){return et?1:0},i=/(^0x[\da-fA-F]+$|^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?!\.\d+)(?=\D|\s|$))|\d+)/g,s=/^\s+|\s+$/g,a=/\s+/g,o=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[/-]\d{1,4}[/-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,u=/^0+[1-9]{1}[0-9]*$/,d=/[^\x00-\x80]/,c=function(e,t){var r=e.localeCompare(t);return r?r/Math.abs(r):0},h=function(e,t){return et?1:0},f=function(e){if(0!==e.length){var t=Number(e);if(!Number.isNaN(t))return t}},p=function(e){return e.replace(a," ").replace(s,"")},g=function(e,t,r){if(o.test(e)&&(!u.test(e)||0===t||"."!==r[t-1]))return f(e)||0},m=function(e,t,r){return{parsedNumber:g(e,t,r),normalizedString:p(e)}},v=function(e){var t=function(e){return e.replace(i,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")}(e).map(m);return t},_=function(e){return"function"==typeof e},b=function(e){return Number.isNaN(e)||e instanceof Number&&Number.isNaN(e.valueOf())},y=function(e){return null===e},w=function(e){return!(null===e||"object"!=typeof e||Array.isArray(e)||e instanceof Number||e instanceof String||e instanceof Boolean||e instanceof Date)},E=function(e){return"symbol"==typeof e},S=function(e){return void 0===e},F=function(e){if("string"==typeof e||e instanceof String||("number"==typeof e||e instanceof Number)&&!b(e)||"boolean"==typeof e||e instanceof Boolean||e instanceof Date){var t=function(e){return"boolean"==typeof e||e instanceof Boolean?Number(e).toString():"number"==typeof e||e instanceof Number?e.toString():e instanceof Date?e.getTime().toString():"string"==typeof e||e instanceof String?e.toLowerCase().replace(s,""):""}(e),r=function(e){var t=f(e);return void 0!==t?t:function(e){if(l.test(e)){var t=Date.parse(e);if(!Number.isNaN(t))return t}}(e)}(t);return{parsedNumber:r,chunks:v(r?""+r:t),value:e}}return{isArray:Array.isArray(e),isFunction:_(e),isNaN:b(e),isNull:y(e),isObject:w(e),isSymbol:E(e),isUndefined:S(e),value:e}},O=function(e){return function(t,r){return function(e,t){return e.value===t.value?0:void 0!==e.parsedNumber&&void 0!==t.parsedNumber?n(e.parsedNumber,t.parsedNumber):e.chunks&&t.chunks?function(e,t){for(var r=e.length,i=t.length,s=Math.min(r,i),a=0;as||i>s?r<=s?-1:1:0}(e.chunks,t.chunks):function(e,t){return(e.chunks?!t.chunks:t.chunks)?e.chunks?-1:1:(e.isNaN?!t.isNaN:t.isNaN)?e.isNaN?-1:1:(e.isSymbol?!t.isSymbol:t.isSymbol)?e.isSymbol?-1:1:(e.isObject?!t.isObject:t.isObject)?e.isObject?-1:1:(e.isArray?!t.isArray:t.isArray)?e.isArray?-1:1:(e.isFunction?!t.isFunction:t.isFunction)?e.isFunction?-1:1:(e.isNull?!t.isNull:t.isNull)?e.isNull?-1:1:0}(e,t)}(F(t),F(r))*("desc"===e.order?-1:1)}},k=function(e){return"string"==typeof e&&("asc"===e||"desc"===e)},R=function(e){var t="asc";return"string"==typeof e&&k(e)?t=e:e&&"object"==typeof e&&e.order&&k(e.order)&&(t=e.order),{order:t}};function N(e){var t=R(e);return O(t)}},460:function(e,t){var r,n;r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,i={},s=0,a={parse:function(r,n){var o=(n=n||{}).dynamicTyping||!1;if(w(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!w(n.transform)&&n.transform,n.worker&&a.WORKERS_SUPPORTED){var l=function(){if(!a.WORKERS_SUPPORTED)return!1;var r,n,o=(r=t.URL||t.webkitURL||null,n=e.toString(),a.BLOB_URL||(a.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),l=new t.Worker(o);return l.onmessage=m,l.id=s++,i[l.id]=l}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=w(n.step),n.chunk=w(n.chunk),n.complete=w(n.complete),n.error=w(n.error),delete n.worker,void l.postMessage({input:r,config:n,workerId:l.id})}var f=null;return a.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),f=n.download?new u(n):new c(n)):!0===r.readable&&w(r.read)&&w(r.on)?f=new h(n):(t.File&&r instanceof File||r instanceof Object)&&(f=new d(n)),f.stream(r)},unparse:function(e,t){var r=!1,n=!0,i=",",s="\r\n",o='"',l=o+o,u=!1,d=null,c=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(c=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=new RegExp(p(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,u);if("object"==typeof e[0])return f(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function f(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0=this._config.preview;if(n)t.postMessage({results:o,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!r){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!u||!w(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=y(this._chunkLoaded,this),t.onerror=y(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function d(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=y(this._chunkLoaded,this),t.onerror=y(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=y((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=y((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=y((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=y((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,r,n,i=Math.pow(2,53),s=-i,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,d=0,c=0,h=!1,f=!1,m=[],v={data:[],errors:[],meta:{}};if(w(e.step)){var _=e.step;e.step=function(t){if(v=t,S())E();else{if(E(),0===v.data.length)return;d+=t.data.length,e.preview&&d>e.preview?r.abort():(v.data=v.data[0],_(v,u))}}}function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){return v&&n&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!y(e)}))),S()&&function(){if(v)if(Array.isArray(v.data[0])){for(var t=0;S()&&t=m.length?"__parsed_extra":m[n]),e.transform&&(a=e.transform(a,s)),a=F(s,a),"__parsed_extra"===s?(i[s]=i[s]||[],i[s].push(a)):i[s]=a}return e.header&&(n>m.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,c+r):n=n.length/2?"\r\n":"\r"}(i,l)),n=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter);else{var u=function(t,r,n,i,s){var o,l,u,d;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var c=0;c=o)return K(!0)}else for(H=d,d++;;){if(-1===(H=a.indexOf(t,H+1)))return f||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:y.length,index:d}),U();if(H===g-1)return U(a.substring(d,H).replace(A,t));if(t!==u||a[H+1]!==u){if(t===u||0===H||a[H-1]!==u){-1!==I&&I=o)return K(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:y.length,index:d}),H++}}else H++}return U();function z(e){y.push(e),F=d}function q(e){var t=0;if(-1!==e){var r=a.substring(H+1,e);r&&""===r.trim()&&(t=r.length)}return t}function U(e){return f||(void 0===e&&(e=a.substring(d)),S.push(e),d=g,z(S),b&&$()),K()}function W(e){d=e,z(S),S=[],V=a.indexOf(n,d)}function K(e){return{data:y,errors:E,meta:{delimiter:r,linebreak:n,aborted:c,truncated:!!e,cursor:F+(h||0)}}}function $(){s(K()),y=[],E=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return d}}function m(e){var t=e.data,r=i[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(w(r.userStep)){for(var a=0;a{e.exports={converterElementNotFound:'Aucun élément HTML n\'a été trouvé ayant comme "id" : ',converterFieldNotFound:"Le champ n'existe pas dans les données ou les données n'ont pas encore été chargées.",converterNeedDatasElt:"Merci de fournir un id valide pour l'élément où afficher les données.",converterRefreshFail:"Le nom des champs et l'élement du DOM receveur sont nécessaires à l'affichage des données.",filterNeedDatas:"Le création d'un filtre nécessite la présence des données à filtrer.",pagination2HTMLFail:"Toutes les donnée nécessaires à la création des sélecteurs de pagination n'ont pas été fournies.",paginationNeedByfaultValueBeInOptions:"La valeur de pagination par défaut doit faire partie des options proposées.",paginationNeedDatas:"Il ne peut y avoir de pagination, si les données n'ont pas été récupérées.",paginationNeedOptionsValues:"Vous n'avez fourni aucune options possibles pour la pagination.",paginationOptionsDuplicatedValues:"Une valeur en doublon a été trouvée dans les options de pagination.",paginationNeedPositiveInteger:"Merci de fournir un nombre entier supérieur à zéro pour désigner chaque option de pagination.",parserDatasNotFound:"Aucune donnée n'a été trouvée.",parserElementsNotFound:"Aucun élément trouvé dans le document pour le sélecteur fourni : ",parserFail:"La lecture des données a échoué.",parserFieldNameFail:"Les noms de champs fournis doivent être uniques et ne peuvent être vides.",parserFieldsNotFound:"Aucun nom de champs n'a été trouvé par le parseur.",parserLineWithoutDatas:"Une ligne ne contenant aucune donnée valide a été trouvée.",parserMeetErrors:"Au moins une erreur a été rencontrée durant le traitement des données.",parserNeedDatas:"Merci de fournir une chaîne de caractères valide à parser.",parserNeedSource:"Merci de fournir une chaîne de caractères où une url pour les données à parser.",parserNumberOfFieldsFail:"Il n'y a pas le nombre de champs attendu pour cet enregistrement.",parserRemoteFail:"Erreur rencontrée durant l'accès aux données distantes.",parserSelectorsIsEmpty:"Les sélecteurs CSS ne peuvent pas être une chaîne vide.",parserTypeError:"Une donnée a été trouvée avec un type imprévu : ",remoteSourceHeaderUnallowed:"Le nom d'une des entêtes passées n'est pas autorisé.",remoteSourceNeedUrl:"Merci de fournir une url valide pour la source distante de données.",remoteSourceUrlFail:"L'url fournie ne semble pas valide.",renderNeedFields:"Les noms de champs doivent être fournis avant de demander l'affichage des données.",searchBtnTxtFail:"Le texte du bouton du moteur de recherche doit contenir au maximum 30 caractères.",searchFieldNotFound:"Au moins un des champs devant être utilisés par le moteur de recherche n'existe pas dans les données.",selector2HTMLFail:"Le création d'un filtre dans le DOM nécessite l'initialisation de l'élément HTML et du numéro du champs à filter.",selectorFieldIsEmpty:"Aucune donnée trouvée pour le champ du filtre",selectorFieldNotFound:"Au moins un des champs devant servir à filtrer les données n'existe pas dans le fichier.",selectorSelectedIndexNotFound:"La valeur sélectionnée n'a pas été trouvée dans la liste des champs.",sortingFieldNeedDatas:"La création d'un champ de classement nécessite la transmission de la liste des champs.",sortingFieldNotFound:"Au moins un des champs devant permettre de classer les données n'existe pas dans ceux à afficher.",sortingFieldsNbFail:"Le nombre de champs trouvés dans le DOM ne correspond pas à celui des données à classer.",sortingFieldsNotInHTML:"Les champs pouvant servir à classer les données n'ont pas été trouvés dans le DOM."}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(658),t=function(){function t(e){this.allowedUrlProtocol=["https:","http:"],this._url="",this._headers=[],this._withCredentials=!1,""!==e.url&&(this.url=e.url),void 0!==e.headers&&(this.headers=e.headers),void 0!==e.withCredentials&&(this.withCredentials=e.withCredentials)}return Object.defineProperty(t.prototype,"url",{get:function(){return this._url},set:function(t){if(0===t.trim().length)throw new Error(e.remoteSourceNeedUrl);try{var r=new URL(t);if(-1===this.allowedUrlProtocol.indexOf(r.protocol))throw new Error}catch(t){throw console.error(t),new Error(e.remoteSourceUrlFail)}this._url=t.trim()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headers",{get:function(){return this._headers},set:function(t){for(var r=["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"],n=0,i=t;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]",allEnding:"",fieldsBegining:"",fieldsEnding:"",fieldDisplaying:"#FIELDNAME",linesBegining:"",linesEnding:"",lineBegining:"",lineEnding:"",dataDisplaying:"#VALUE"},e}(),h=r(658),f=(function(){function e(e,t,r){if(void 0===r&&(r="Pages"),0===e.fields.length)throw new Error(h.paginationNeedDatas);this._pages={displayElement:y.checkInDOMById(t),name:r},this._converter=e}e.isPositiveInteger=function(e){return!(!1===Number.isInteger(e)||e<=0)},Object.defineProperty(e.prototype,"selectedValue",{get:function(){return this._selectedValue},set:function(t){if(void 0!==t){if(!e.isPositiveInteger(t))throw new Error(h.needPositiveInteger);if(void 0!==this.options&&-1===this.options.values.indexOf(t))throw new Error(h.paginationNeedByfaultValueBeInOptions)}this._selectedValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(t){if(void 0!==t){t.displayElement=y.checkInDOMById(t.displayElement);for(var r=[],n=0,i=t.values;n",this._options.displayElement.eltDOM.innerHTML=e;var r=document.getElementById("freeDatas2HTMLPaginationSelector");void 0!==this._selectedValue&&(r.value=""+(this._options.values.indexOf(this._selectedValue)+1));var n=this;r.addEventListener("change",(function(e){"0"===r.value?n._selectedValue=void 0:n._selectedValue=n._options.values[Number(r.value)-1],n._converter.refreshView()}))},e.prototype.pages2HTML=function(){if(void 0===this._selectedValue||this._converter.nbDatasValid<=this._selectedValue)this.pages.displayElement.eltDOM.innerHTML="";else{var e=Math.ceil(this._converter.nbDatasValid/this._selectedValue),t="",this.pages.displayElement.eltDOM.innerHTML=t;var n=document.getElementById("freeDatas2HTMLPagesSelector"),i=this;n.addEventListener("change",(function(e){i.pages.selectedValue=Number(n.value),i._converter.refreshView(!0),n.value=""+i.pages.selectedValue}))}}}(),r(658)),p=(function(){function e(e,t,r){if(this._datasViewElt={id:"",eltDOM:void 0},this._btnTxt="Search",this._fields2Search=[],this.label="",this.nbCharsForSearch=0,this.placeholder="",this.automaticSearch=!1,this._inputValue="",this.searchMode={accentOff:!0,caseOff:!0,separatedWords:!0,specialCharsOff:!0,specialCharsWhiteList:""},0===e.fields.length||0===e.datas.length)throw new Error(f.filterNeedDatas);if(this._datasViewElt=y.checkInDOMById(t),this._converter=e,void 0!==r&&0!==r.length)for(var n=0,i=r;n0&&""===this.placeholder&&(this.placeholder="Please enter at least NB characters.");var e='
';""!==this.label&&(e+='")),e+='0?e+=' placeholder="'.concat(this.placeholder.replace("NB",""+this.nbCharsForSearch),'"'):""!==this.placeholder&&(e+=' placeholder="'.concat(this.placeholder,'"')),e+='> 
'),this._datasViewElt.eltDOM.innerHTML=e;var t=document.getElementById("freeDatas2HTMLSearchTxt"),r=this;t.addEventListener("input",(function(e){e.preventDefault(),r._inputValue=t.value.trim();var n=r._inputValue.length;r.automaticSearch&&(0===r.nbCharsForSearch||0===n||n>=r.nbCharsForSearch)&&r._converter.refreshView()})),document.getElementById("freeDatas2HTMLSearchBtn").addEventListener("click",(function(e){e.preventDefault(),r._converter.refreshView()}))},e.prototype.searchPreProcessing=function(e){var t=e;if(this.searchMode.accentOff&&(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),this.searchMode.caseOff&&(t=t.toLowerCase()),this.searchMode.specialCharsOff){for(var r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "+this.searchMode.specialCharsWhiteList,n="",i=0,s=t;i"+e+" :",this._datasViewElt.eltDOM.innerHTML=r;var i=document.getElementById("freeDatas2HTML_"+this._datasViewElt.id),s=this;i.addEventListener("change",(function(e){if(s._selectedValues=[],s.isMultiple)for(var t=0;t"+t+"",e[r].innerHTML=t;var n=document.getElementById("freeDatas2HTMLSorting"+this._datasFieldNb),i=this;n.addEventListener("click",(function(e){e.preventDefault();var t=i._order;i._order=void 0===t||"desc"===t?"asc":"desc",i._converter.datasSortedField=i,i._converter.refreshView()}))},e}(),_=r(196).q,b=r(658),y=function(){function e(e,t,r){switch(void 0===t&&(t=""),this._datasViewElt=void 0,this.stopIfParseErrors=!1,this._datasSortingFunctions=[],this.datasFilters=[],this.datasSortingFields=[],this._fields2Rend=[],this.datasCounterElt=void 0,this._fields=[],this._datas=[],this._datas2Rend=[],this._nbDatasValid=0,this.datasRender=new c,e){case"CSV":this.parser=new s;break;case"HTML":this.parser=new o;break;case"JSON":this.parser=new u}""!==t.trim()?this.parser.datas2Parse=t:void 0!==r&&this.parser.setRemoteSource(r)}return e.checkInDOMById=function(e){var t=document.getElementById(e.id);if(null===t)throw new Error(b.converterElementNotFound+e.id);return e.eltDOM=t,e},Object.defineProperty(e.prototype,"datasViewElt",{set:function(t){this._datasViewElt=e.checkInDOMById(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"datas",{get:function(){return this._datas},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fields",{get:function(){return this._fields},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nbDatasValid",{get:function(){return this._nbDatasValid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fields2Rend",{get:function(){return this._fields2Rend},set:function(e){if(0===e.length)this._fields2Rend=e;else{this._fields2Rend=[];for(var t=0,r=e;t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=i&&o"+this._converter.fields[i.datasFieldNb]+""+this.rendSettings.fieldEnding}t+=this.rendSettings.allEnding,this._datasViewElt.eltDOM.innerHTML=t;for(var s=function(e){document.getElementById("freeDatas2HTMLSorting"+e.datasFieldNb).addEventListener("click",(function(t){t.preventDefault(),void 0===e.order||"desc"===e.order?e.order="asc":e.order="desc",e.converter.datasSortedField=e,e.converter.refreshView()}))},a=0,o=this.datasSortingFields;a#LABEL
    ",allEnding:"
",fieldBeginning:"
  • ",fieldEnding:"
  • "},e}();console.log("Hello, les dev !\nLe code source TypeScript utilisé pour faire fonctionner cette page est lisible ici : :\nhttps://forge.chapril.org/Fab_Blab/FreeDatas2HTML/src/branch/master/src/demo/exampleWithJSON.ts"),E=void 0,S=void 0,O=function(){var e,t,r,n,i,s,a;return function(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]Liste des éléments chimiques :",allEnding:"",linesBegining:"
      ",linesEnding:"
    ",lineBegining:"
    • ",lineEnding:"
  • ",dataDisplaying:"
  • #FIELDNAME : #VALUE
  • "},e.datasRender=t,r=new v(e,0),n=new v(e,1),i=new v(e,2),(s=new k(e,{id:"classement"})).datasSortingFields=[r,n,i],s.rendSettings.allBeginning="

    #LABEL

      ",s.rend2HTML("Champ sur lequel classer les données :"),e.datasViewElt={id:"datas"},e.refreshView(),[3,3];case 2:return a=o.sent(),console.error(a),document.getElementById("datas").innerHTML='
      Désolé, mais un problème technique empêche l\'affichage des données.
      ',[3,3];case 3:return[2]}}))},new((F=void 0)||(F=Promise))((function(e,t){function r(e){try{i(O.next(e))}catch(e){t(e)}}function n(e){try{i(O.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof F?i:new F((function(e){e(i)}))).then(r,n)}i((O=O.apply(E,S||[])).next())}))})()})();