PageSourceSearch

https://venelles.fr/wp-content/plugins/mamp-uas/js/tarteaucitron/tarteaucitron.js?ver=1.0

js venelles.fr collected 2026-09-24 22:11:38 UTC 91,337 bytes, 1,838 lines download raw bytes

1/*jslint browser: true, evil: true */
2
3var scripts = document.getElementsByTagName('script'),
4    path = scripts[scripts.length - 1].src.split('?')[0],
5    tarteaucitronForceCDN = (tarteaucitronForceCDN === undefined) ? '' : tarteaucitronForceCDN,
6    cdn = (tarteaucitronForceCDN === '') ? path.split('/').slice(0, -1).join('/') + '/' : tarteaucitronForceCDN,
7    alreadyLaunch = (alreadyLaunch === undefined) ? 0 : alreadyLaunch,
8    tarteaucitronForceLanguage = (tarteaucitronForceLanguage === undefined) ? '' : tarteaucitronForceLanguage,
9    tarteaucitronForceExpire = (tarteaucitronForceExpire === undefined) ? '' : tarteaucitronForceExpire,
10    tarteaucitronCustomText = (tarteaucitronCustomText === undefined) ? '' : tarteaucitronCustomText,
11    // tarteaucitronExpireInDay: true for day(s) value - false for hour(s) value
12    tarteaucitronExpireInDay = (tarteaucitronExpireInDay === undefined || typeof tarteaucitronExpireInDay !== "boolean") ? true : tarteaucitronExpireInDay,
13    timeExpire = 31536000000,
14    tarteaucitronProLoadServices,
15    tarteaucitronNoAdBlocker = false;
16
17
18
19var tarteaucitron = {
20    "version": 20201110,
21    "cdn": cdn,
22    "user": {},
23    "lang": {},
24    "services": {},
25    "added": [],
26    "idprocessed": [],
27    "state": [],
28    "launch": [],
29    "parameters": {},
30    "isAjax": false,
31    "reloadThePage": false,
32    "events": {
33        "init": function () {},
34        "load": function () {},
35    },
36    "init": function (params) {
37        "use strict";
38        var origOpen;
39
40        tarteaucitron.parameters = params;
41        if (alreadyLaunch === 0) {
42            alreadyLaunch = 1;
43            if (window.addEventListener) {
44                window.addEventListener("load", function () {
45                    tarteaucitron.initEvents.loadEvent(false);
46                }, false);
47                window.addEventListener("scroll", function () {
48                    tarteaucitron.initEvents.scrollEvent();
49                }, false);
50
51                window.addEventListener("keydown", function (evt) {
52                    tarteaucitron.initEvents.keydownEvent(false, evt);
53                }, false);
54                window.addEventListener("hashchange", function () {
55                    tarteaucitron.initEvents.hashchangeEvent();
56                }, false);
57                window.addEventListener("resize", function () {
58                    tarteaucitron.initEvents.resizeEvent();
59                }, false);
60            } else {
61                window.attachEvent("onload", function () {
62                    tarteaucitron.initEvents.loadEvent(true);
63                });
vendor: 5,716 bytes, lines 63-196
63
64                window.attachEvent("onscroll", function () {
65                    tarteaucitron.initEvents.scrollEvent();
66                });
67                window.attachEvent("onkeydown", function (evt) {
68                    tarteaucitron.initEvents.keydownEvent(true, evt);
69
70                });
71                window.attachEvent("onhashchange", function () {
72                    tarteaucitron.initEvents.hashchangeEvent();
73                });
74                window.attachEvent("onresize", function () {
75                    tarteaucitron.initEvents.resizeEvent();
76                });
77            }
78
79            if (typeof XMLHttpRequest !== 'undefined') {
80                origOpen = XMLHttpRequest.prototype.open;
81                XMLHttpRequest.prototype.open = function () {
82
83                    if (window.addEventListener) {
84                        this.addEventListener("load", function () {
85                            if (typeof tarteaucitronProLoadServices === 'function') {
86                                tarteaucitronProLoadServices();
87                            }
88                        }, false);
89                    } else if (typeof this.attachEvent !== 'undefined') {
90                        this.attachEvent("onload", function () {
91                            if (typeof tarteaucitronProLoadServices === 'function') {
92                                tarteaucitronProLoadServices();
93                            }
94                        });
95                    } else {
96                        if (typeof tarteaucitronProLoadServices === 'function') {
97                            setTimeout(tarteaucitronProLoadServices, 1000);
98                        }
99                    }
100
101                    try {
102                        origOpen.apply(this, arguments);
103                    } catch (err) {}
104                };
105            }
106        }
107
108        if(tarteaucitron.events.init) {
109            tarteaucitron.events.init();
110        }
111    },
112    "initEvents": {
113        "loadEvent": function (isOldBrowser) {
114            tarteaucitron.load();
115            tarteaucitron.fallback(['tarteaucitronOpenPanel'], function (elem) {
116                if (isOldBrowser) {
117                    elem.attachEvent("onclick", function (event) {
118                        tarteaucitron.userInterface.openPanel();
119                        event.preventDefault();
120                    });
121                } else {
122                    elem.addEventListener("click", function (event) {
123                        tarteaucitron.userInterface.openPanel();
124                        event.preventDefault();
125                    }, false);
126                }
127            }, true);
128        },
129        "keydownEvent": function (isOldBrowser, evt) {
130            if (evt.keyCode === 27) {
131                tarteaucitron.userInterface.closePanel();
132            }
133
134            if (isOldBrowser) {
135                if ( evt.keyCode === 9 && focusableEls.indexOf(evt.target) >= 0) {
136                    if ( evt.shiftKey ) /* shift + tab */ {
137                        if (document.activeElement === firstFocusableEl) {
138                            lastFocusableEl.focus();
139                            evt.preventDefault();
140                        }
141                    } else /* tab */ {
142                        if (document.activeElement === lastFocusableEl) {
143                            firstFocusableEl.focus();
144                            evt.preventDefault();
145                        }
146                    }
147                }
148            }
149        },
150        "hashchangeEvent": function () {
151            if (document.location.hash === tarteaucitron.hashtag && tarteaucitron.hashtag !== '') {
152                tarteaucitron.userInterface.openPanel();
153            }
154        },
155        "resizeEvent": function () {
156            var tacElem = document.getElementById('tarteaucitron');
157            var tacCookieContainer = document.getElementById('tarteaucitronCookiesListContainer');
158
159            if (tacElem && tacElem.style.display === 'block') {
160                tarteaucitron.userInterface.jsSizing('main');
161            }
162
163            if (tacCookieContainer && tacCookieContainer.style.display === 'block') {
164                tarteaucitron.userInterface.jsSizing('cookie');
165            }
166        },
167        "scrollEvent": function () {
168            var scrollPos = window.pageYOffset || document.documentElement.scrollTop;
169            var heightPosition;
170            var tacPercentage = document.getElementById('tarteaucitronPercentage');
171            var tacAlertBig = document.getElementById('tarteaucitronAlertBig');
172
173            if (tacAlertBig && !tarteaucitron.highPrivacy) {
174                if (tacAlertBig.style.display === 'block') {
175                    heightPosition = tacAlertBig.offsetHeight + 'px';
176
177                    if (scrollPos > (screen.height * 2)) {
178                        tarteaucitron.userInterface.respondAll(true);
179                    } else if (scrollPos > (screen.height / 2)) {
180                        document.getElementById('tarteaucitronDisclaimerAlert').innerHTML = '<strong>' + tarteaucitron.lang.alertBigScroll + '</strong> ' + tarteaucitron.lang.alertBig;
181                    }
182
183                    if (tacPercentage) {
184                        if (tarteaucitron.orientation === 'top') {
185                            tacPercentage.style.top = heightPosition;
186                        } else {
187                            tacPercentage.style.bottom = heightPosition;
188                        }
189                        tacPercentage.style.width = ((100 / (screen.height * 2)) * scrollPos) + '%';
190                    }
191                }
192            }
193        },
194    },
195    "load": function () {
196        "use strict";
vendor: 4,007 bytes, lines 197-272
197        var cdn = tarteaucitron.cdn,
198            language = tarteaucitron.getLanguage(),
199            useJSDelivrMinifiedJS = cdn.includes("cdn.jsdelivr.net"),
200            pathToLang = cdn + 'lang/tarteaucitron.' + language + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
201            pathToServices = cdn + 'tarteaucitron.services' + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
202            linkElement = document.createElement('link'),
203            defaults = {
204                "adblocker": false,
205                "hashtag": '#tarteaucitron',
206                "cookieName": 'tarteaucitron',
207                "highPrivacy": true,
208                "orientation": "middle",
209                "bodyPosition": "bottom",
210                "removeCredit": false,
211                "showAlertSmall": false,
212                "showIcon": true,
213                "iconPosition": "BottomRight",
214                "cookieslist": false,
215                "handleBrowserDNTRequest": false,
216                "DenyAllCta": true,
217                "AcceptAllCta" : true,
218                "moreInfoLink": true,
219                "privacyUrl": "",
220                "useExternalCss": false,
221                "useExternalJs": false,
222                "mandatory": true,
223                "closePopup": false
224            },
225            params = tarteaucitron.parameters;
226
227        // Don't show the middle bar if we are on the privacy policy or more page
228        if (((tarteaucitron.parameters.readmoreLink !== undefined && window.location.href == tarteaucitron.parameters.readmoreLink) || window.location.href == tarteaucitron.parameters.privacyUrl) && tarteaucitron.parameters.orientation == "middle") {
229            tarteaucitron.parameters.orientation = "bottom";
230        }
231
232        // Step -1
233        if (typeof tarteaucitronCustomPremium !== 'undefined') {
234            tarteaucitronCustomPremium();
235        }
236
237        // Step 0: get params
238        if (params !== undefined) {
239
240            for (var k in defaults) {
241                if(!tarteaucitron.parameters.hasOwnProperty(k)) {
242                    tarteaucitron.parameters[k] = defaults[k];
243                }
244            }
245        }
246
247        // global
248        tarteaucitron.orientation = tarteaucitron.parameters.orientation;
249        tarteaucitron.hashtag = tarteaucitron.parameters.hashtag;
250        tarteaucitron.highPrivacy = tarteaucitron.parameters.highPrivacy;
251        tarteaucitron.handleBrowserDNTRequest = tarteaucitron.parameters.handleBrowserDNTRequest;
252
253        // Step 1: load css
254        if ( !tarteaucitron.parameters.useExternalCss ) {
255            linkElement.rel = 'stylesheet';
256            linkElement.type = 'text/css';
257            linkElement.href = cdn + 'css/tarteaucitron' + (useJSDelivrMinifiedJS ? '.min' : '') + '.css?v=' + tarteaucitron.version;
258            document.getElementsByTagName('head')[0].appendChild(linkElement);
259        }
260        // Step 2: load language and services
261        tarteaucitron.addInternalScript(pathToLang, '', function () {
262
263          if(tarteaucitronCustomText !== ''){
264            tarteaucitron.lang = tarteaucitron.AddOrUpdate(tarteaucitron.lang, tarteaucitronCustomText);
265          }
266            tarteaucitron.addInternalScript(pathToServices, '', function () {
267
268
269                // css for new middle bar
270                if (tarteaucitron.orientation === 'middle') {
271                    var customThemeMiddle = document.createElement('style'),
272                        cssRuleMiddle = 'div#tarteaucitronRoot.tarteaucitronBeforeVisible:before {content: \'\';position: fixed;width: 100%;height: 100%;background: white;top: 0;left: 0;z-index: 999;opacity: 0.5;}div#tarteaucitronAlertBig:before {content: \'' + tarteaucitron.lang.middleBarHead + '\';font-size: 35px;}body #tarteaucitronRoot div#tarteaucitronAlertBig {width: 60%;min-width: 285px;height: auto;margin: auto;left: 50%;top: 50%;transform: translate(-50%, -50%);box-shadow: 0 0 9000px #000;border-radius: 20px;padding: 35px 25px;}
272span#tarteaucitronDisclaimerAlert {padding: 0 30px;}#tarteaucitronRoot span#tarteaucitronDisclaimerAlert {margin: 10px 0 30px;display: block;text-align: center;font-size: 21px;}@media screen and (max-width: 900px) {div#tarteaucitronAlertBig button {margin: 0 auto 10px!important;display: block!important;}}';
273
274                    customThemeMiddle.type = 'text/css';
275                    if (customThemeMiddle.styleSheet) {
276                        customThemeMiddle.styleSheet.cssText = cssRuleMiddle;
277                    } else {
278                        customThemeMiddle.appendChild(document.createTextNode(cssRuleMiddle));
279                    }
280                    document.getElementsByTagName('head')[0].appendChild(customThemeMiddle);
281                }
282                var body = document.body,
283                    div = document.createElement('div'),
284                    html = '',
285                    index,
286                    orientation = 'Top',
287                    cat = ['ads', 'analytic', 'api', 'comment', 'social', 'support', 'video', 'other'],
288                    i;
289
290                cat = cat.sort(function (a, b) {
291                    if (tarteaucitron.lang[a].title > tarteaucitron.lang[b].title) { return 1; }
292                    if (tarteaucitron.lang[a].title < tarteaucitron.lang[b].title) { return -1; }
293                    return 0;
294                });
295
296                // Step 3: prepare the html
297                html += '<div id="tarteaucitronPremium"></div>';
298                html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + '"></button>';
299                html += '<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">';
300                html += '   <button type="button" id="tarteaucitronClosePanel">';
301                html += '       ' + tarteaucitron.lang.close;
302                html += '   </button>';
303                html += '   <div id="tarteaucitronServices">';
304                html += '      <div class="tarteaucitronLine tarteaucitronMainLine" id="tarteaucitronMainLineOffset">';
305                html += '         <span class="tarteaucitronH1" role="heading" aria-level="1" id="dialogTitle">'+ tarteaucitron.lang.title + '</span>';
306                html += '         <div id="tarteaucitronInfo">';
307                html += '         ' + tarteaucitron.lang.disclaimer;
308                if (tarteaucitron.parameters.privacyUrl !== "") {
309                    html += '   <br/><br/>';
310                    html += '   <button type="button" id="tarteaucitronPrivacyUrlDialog">';
311                    html += '       ' + tarteaucitron.lang.privacyUrl;
312                    html += '   </button>';
313                }
314                html += '         </div>';
315                html += '         <div class="tarteaucitronName">';
316                html += '            <span class="tarteaucitronH2" role="heading" aria-level="2">' + tarteaucitron.lang.all + '</span>';
317                html += '         </div>';
318                html += '         <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">';
319                html += '            <button type="button" id="tarteaucitronAllAllowed" class="tarteaucitronAllow">';
320                html += '               <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allowAll;
321                html += '            </button> ';
322                html += '            <button type="button" id="tarteaucitronAllDenied" class="tarteaucitronDeny">';
323                html += '               <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
324                html += '            </button>';
325                html += '         </div>';
326                html += '      </div>';
327                html += '      <div class="tarteaucitronBorder">';
328                html += '         <div class="clear"></div><ul>';
329
330
331                if (tarteaucitron.parameters.mandatory == true) {
332                   html += '<li id="tarteaucitronServicesTitle_mandatory">';
333                   html += '<div class="tarteaucitronTitle">';
334                   html += '   <button type="button" tabindex="-1">&nbsp; ' + tarteaucitron.lang.mandatoryTitle + '</button>';
335                   html += '</div>';
336                   html += '<ul id="tarteaucitronServices_mandatory">';
337                   html += '<li class="tarteaucitronLine">';
338                   html += '   <div class="tarteaucitronName">';
vendor: 8,248 bytes, lines 339-442
339                   html += '       <span class="tarteaucitronH3" role="heading" aria-level="3">' + tarteaucitron.lang.mandatoryText + '</span>';
340                   html += '       <span class="tarteaucitronListCookies"></span><br/>';
341                   html += '   </div>';
342                   html += '   <div class="tarteaucitronAsk">';
343                   html += '       <button type="button" class="tarteaucitronAllow" tabindex="-1">';
344                   html += '           <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
345                   html += '       </button> ';
346                   html += '       <button type="button" class="tarteaucitronDeny" style="visibility:hidden" tabindex="-1">';
347                   html += '           <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
348                   html += '       </button> ';
349                   html += '   </div>';
350                   html += '</li>';
351                   html += '</ul></li>';
352                }
353
354                for (i = 0; i < cat.length; i += 1) {
355                    html += '         <li id="tarteaucitronServicesTitle_' + cat[i] + '" class="tarteaucitronHidden">';
356                    html += '            <div class="tarteaucitronTitle">';
357                    html += '               <button type="button" class="catToggleBtn" data-cat="tarteaucitronDetails' + cat[i] + '"><span class="tarteaucitronPlus"></span> ' + tarteaucitron.lang[cat[i]].title + '</button>';
358                    html += '            </div>';
359                    html += '            <div id="tarteaucitronDetails' + cat[i] + '" class="tarteaucitronDetails tarteaucitronInfoBox">';
360                    html += '               ' + tarteaucitron.lang[cat[i]].details;
361                    html += '            </div>';
362                    html += '         <ul id="tarteaucitronServices_' + cat[i] + '"></ul></li>';
363                }
364                html += '             <li id="tarteaucitronNoServicesTitle" class="tarteaucitronLine">' + tarteaucitron.lang.noServices + '</li>';
365                html += '         </ul>';
366                html += '         <div class="tarteaucitronHidden tarteaucitron-spacer-20" id="tarteaucitronScrollbarChild"></div>';
367                if (tarteaucitron.parameters.removeCredit === false) {
368                    html += '     <a class="tarteaucitronSelfLink" href="https://tarteaucitron.io/" rel="nofollow noreferrer noopener" target="_blank" title="tarteaucitron ' + tarteaucitron.lang.newWindow + '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAAeCAYAAAAWwoEYAAADl0lEQVRoge1Y0W3bQAx9CjKARlC+9GVUmqDJBHEmiDyB6wkcTxBngtgTxJ0gzgQW4C/9aYOmE6g4lTQo+k6y3Rb94QOERNQd+cjj8XiGwWAwGAwGg8FgMBgMBoPB8F8RNRXe+whEKe7c36ZCAeCRxC9Rig2PUd8kPgAsoxSfQ3YAzAA8D/HwYYCb05kBKKO0teFkmbC1jlKsAnq/Abjn+QBqAIsoRS30ttwG/HNz1wH/XIxWTicLdvtW7xTAGEAMtP685CNsBTe2d/BLydfXAG57SEnMAST0zgYZSUCPk02bCvkJduIzuJzDLfPolbY+tLKmar+/8+IRePy4qdpE03qHuH8fipFb4N2+XdA3AJ/0vaQxt7s9FvkIS2XvtqnwM0rxpOQfbnE5G2LhTCmUO2fHIngOmcv+KG3HafDchB6ntwjYqenR2PqC7sOZ3E7FXHB0vqxoFyUyLh7OEH7LOGouvhhN3eIBeKXv0n5MsufdHqXcwYR5U2EbpV35lSspVPJmQj4TcgRK7jTg5IzmPUhhwM5a2WHUFCx+NgiDucmgh7idikLovHFlL0pxQ9xzX+IIP9Y6FrJsqhjlQpZRAkFVDCjZfcCHt6bqJDmuh5ylCWx0RVnk3oumaknqTH5sqrY0fBWyULaHUIgAgxb46MxV3DbieAhxOxUxjSuljig9lMQ/Bcfoi9BTEv9aLORSndVxYOH525sUDC6u2gWxcNzBNRxPanyh3ktKinOgy3WoxPbtUM0t6RkbQnzBnFPgi9GCOEubY9UffIryz9iKRe8s/FUfEWosJJGxagp85bpUO3VywQ46lOtAWfNxKwa4JXQ+628+bpxYGXXMzp5rXH401VEyXwIdowXFaKWSMFHvMTVmGnc+P3oXV2QOiBCfgex8QtcQCbcQE/H+eoHzrkFo1KM7zVO4jVVj5s6lRiWF7zyXyfRMc97J3tzj87mYqZ7E2YjzUct9GUi4tjHLR8dVkBLjQcuHFleWvQfRNEhFR7uX7pkctOwvZXsft7sAtyldEUIN2UTeLxnEfxKYswzdi88BdbZ8hifUoSMftQvP+muRwN6+Q3DeqqRExP9QmTtcheiHh0Ot1x2i2km1bP9pbufw5zZdyWsOrh7vQae5OZWbsMv30pi7cd/CKj3coPEVaCP4Zhx4eQWhOZ1Y9MTXGyP8/iGjEyfa1T4fO/4Lea9vBoPBYDAYDAaDwWAwGAwGwz8GgF8siXCCbrSRhgAAAABJRU5ErkJggg==" alt="tarteaucitron.io" /></a>';
369                }
370                html += '       </div>';
371                html += '   </div>';
372                html += '</div>';
373
374                if (tarteaucitron.parameters.orientation === 'bottom') {
375                    orientation = 'Bottom';
376                }
377
378                if (tarteaucitron.parameters.highPrivacy && !tarteaucitron.parameters.AcceptAllCta) {
379                    html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
380                    //html += '<div class="tarteaucitronAlertBigWrapper">';
381                    html += '   <span id="tarteaucitronDisclaimerAlert">';
382                    html += '       ' + tarteaucitron.lang.alertBigPrivacy;
383                    html += '   </span>';
384                    //html += '   <span class="tarteaucitronAlertBigBtnWrapper">';
385                    html += '   <button type="button" id="tarteaucitronPersonalize">';
386                    html += '       ' + tarteaucitron.lang.personalize;
387                    html += '   </button>';
388
389                    if (tarteaucitron.parameters.privacyUrl !== "") {
390                        html += '   <button type="button" id="tarteaucitronPrivacyUrl">';
391                        html += '       ' + tarteaucitron.lang.privacyUrl;
392                        html += '   </button>';
393                    }
394
395                    //html += '   </span>';
396                    //html += '</div>';
397                    html += '</div>';
398                } else {
399                    html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
400                    //html += '<div class="tarteaucitronAlertBigWrapper">';
401                    html += '   <span id="tarteaucitronDisclaimerAlert">';
402
403                    if (tarteaucitron.parameters.highPrivacy) {
404                        html += '       ' + tarteaucitron.lang.alertBigPrivacy;
405                    } else {
406                        html += '       ' + tarteaucitron.lang.alertBigClick + ' ' + tarteaucitron.lang.alertBig;
407                    }
408
409                    html += '   </span>';
410                    //html += '   <span class="tarteaucitronAlertBigBtnWrapper">';
411                    html += '   <button type="button" class="tarteaucitronCTAButton tarteaucitronAllow" id="tarteaucitronPersonalize2">';
412                    html += '       <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.acceptAll;
413                    html += '   </button>';
414
415
416                    if (tarteaucitron.parameters.DenyAllCta) {
417                                    html += '   <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
418                                    html += '       <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
419                                    html += '   </button>';
420                                    //html += '   <br/><br/>';
421                    }
422
423                    html += '   <button type="button" id="tarteaucitronCloseAlert">';
424                    html += '       ' + tarteaucitron.lang.personalize;
425                    html += '   </button>';
426
427                    if (tarteaucitron.parameters.privacyUrl !== "") {
428                        html += '   <button type="button" id="tarteaucitronPrivacyUrl">';
429                        html += '       ' + tarteaucitron.lang.privacyUrl;
430                        html += '   </button>';
431                    }
432
433                    //html += '   </span>';
434                    //html += '</div>';
435                    html += '</div>';
436                    html += '<div id="tarteaucitronPercentage"></div>';
437                }
438
439                if (tarteaucitron.parameters.showIcon === true) {
440                    html += '<div id="tarteaucitronIcon" class="tarteaucitronIcon' + tarteaucitron.parameters.iconPosition + '">';
441                    html += '   <button type="button" id="tarteaucitronManager">';
442                    html += '       <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAGA0lEQVRoge1a207bWBRdBtJwLYZhKDMVmlSK1LxNkPo+ZH6g8B6p5AuALwC+APoFoVLeoT8whPeRSt+CZKmZVu3AiIsRlEtCktGyjy8xzuXYhvahS0JJHJ/4rLP3XnuffcAPfGdQ7mM6jRLSAF4BxqsbewB2lRS2o35mpEQaJcwCyANIdLi1DGBNSWEzqmdHRqRRwjqAJclhtExOSUEP+/xIiDRKhhUWfL7ShTtBuJnqcw+/z4Ql0xNmMEwSSz4ku
442NIzSgpjSsqYJP/GeE185wYJroedRyiLNEpGLLzzrHSuk+83SgbxvOcyyRaDziWsRVZkSRDinpzPbwVGWIucuohsKynMS47fAQyls/BMSRmKJo3AFhG5wm2N1wF+Zs3zebbFfR0RxrXcJHQlgH+LMW616pR/WiIMEXfW3mtzXyeEGWsjKot8c4TOI98L+iKaR5PS6IUk88RLAO9F8UjrbYoYMOosNavpfmODIiwRXRR/G3ohaWVo1RU/c30jV8ab2mV8qVGzHWBOLyTLZiWs5Rolg/C3ySOi0tXP/k4aEwOwSBKPJs7Rp16ABJTe+p1xVX0It/owqqdDEMRoqd3RFxqDPh20Ig6VEPVC0i5RSCD+6wl6HlW7GksSlUMV11/GrUs5NasFLusDE9ELSVphXemtJwaT/8JyIRvxNNCfBmIiNdR04LII3DSrbe0yjqvyJF/ppptqVlt+MCLCEh/oOkPPP6N38Mb5cnQBGFsEqmXg5j3QMwoMzwGnr4HYbybBq13gZAOom/FO63zdf2qQArCsZrUN2TlJy69eSDKYV+6Q4MpP75ivHzPA53ngaBW4eGuSOt0A/lsGPmXMz0+3TFJcTfFbPfFbfnwlhON+iQhlWmA82CQ4ocQ7c6KcfL3DHuls0yT6Sx4YnLXJDCQOIRRv5yGIJBgP8Sdisj2qubpc5UGJmo+W49ifVmzL8HcpGhQPvZCUKiCliIhEN0tr2OCqHuSA8gwQ/92MkU7gxEmeVqGrTTgpxPXbUrtGWYus0I9thRIraagRQUIDf7Qn4yZhKRiFQIyhfMfUr3yblokVWSJ6k8xSnc7eNN/RjowfCYiFoDUFer1S3gW6JiJ8Nt30EMbEhU+vzSIztuRYjRLsR8IHLjlf7HZ+MrWWEXxNmbvapt4jGSqZRYSkGUetSNTPzHsui5YMQ2ajJUNks6mw4wT54Ok2ShnzzIPCUGshzawCRKy5FqvrTZe0RWzQGvw79m67XZjKmxJrLsICjtZa55gxXy+6F4sYsEtxTqhXdRTLC8ulSDaWoCLsolfN+8YUhOsJV709H7Cudr0LlVEtzqBcN+shEyThdR941OnAbF8pirKJqXyupTRTtQSReiVmXW1j7oBErB0d9xM2WEd5J9ZKYtuR4WKwwBSoORbpGrJ5ZI9lt71irJmGX1px0JYE26uNErawr2zfIcP4OHEKXm66PA3wjpCNEfpJunI4muifPjKvsFCkGjExTq63yxMJsZNMYF/J4HmDC5A3Yq36jy0ClePHVhwuu/b1HSFlEfHD5ZtD1bEK44Qu1mWys6tbWmZyPWckzlPTGiRw/XHCuk+q4Rek+mVrVL/UppwrdDEGNV2kpyuhccgc5Oxm9vWnn+19vJrVpLor0kTUrGacMplb1CfOFyTD4o9uNrHqr2Z+ZMSp1c2XcVSORnh9Q81q3k599ETgkNnjg0nGzi10K7rX+bZpHbrblPcY5A4Zxk2xcjzCvTpd9027Aa0QtouyyrKFRR6D/04DwkFGvHPXM3Qda/Jb4nPgI7hQLVM1q5HIBt2MzQNa57Z1DiiLAGa5Mi+O4Sz3Mpp6laPHO6InII3ITnX1QtI+EOX+m9ZxleOZ/j9PiuKoLi3aqXPuEoSye/Vhkm+LalbLtHhMS0R6zu7aZ3vP2jOjL7QVv4McxhcDnZIelAQibGIbULOapf3PuE1Vs9qeaOTdkVKr00gCQiw4NlBzDvf1Lxx+uP5r3Dgv5KQZRzWn+GRwz8jmDS8itUg7iB6vLuJCF5Uty4A9mVKkFR6MiJDachST/oHvHgD+B4SoUIitpF05AAAAAElFTkSuQmCC" alt="Cookies">';
443                    html += '   </button>';
444                    html += '</div>';
445                }
446
447                if (tarteaucitron.parameters.showAlertSmall === true) {
448                    html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
449                    html += '   <button type="button" id="tarteaucitronManager">';
450                    html += '       ' + tarteaucitron.lang.alertSmall;
451                    html += '       <span id="tarteaucitronDot">';
452                    html += '           <span id="tarteaucitronDotGreen"></span>';
453                    html += '           <span id="tarteaucitronDotYellow"></span>';
454                    html += '           <span id="tarteaucitronDotRed"></span>';
455                    html += '       </span>';
456                    if (tarteaucitron.parameters.cookieslist === true) {
457                        html += '   </button><!-- @whitespace';
458                        html += '   --><button type="button" id="tarteaucitronCookiesNumber">0</button>';
459                        html += '   <div id="tarteaucitronCookiesListContainer">';
460                        html += '       <button type="button" id="tarteaucitronClosePanelCookie">';
461                        html += '           ' + tarteaucitron.lang.close;
462                        html += '       </button>';
463                        html += '       <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';
464                        html += '            <span class="tarteaucitronH2" role="heading" aria-level="2" id="tarteaucitronCookiesNumberBis">0 cookie</span>';
465                        html += '       </div>';
466                        html += '       <div id="tarteaucitronCookiesList"></div>';
467                        html += '    </div>';
468                    } else {
469                        html += '   </div>';
470                    }
471                    html += '</div>';
472                }
473
474                tarteaucitron.addInternalScript(tarteaucitron.cdn + 'advertising' + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version, '', function () {
475                    if (tarteaucitronNoAdBlocker === true || tarteaucitron.parameters.adblocker === false) {
476
477                        // create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened
478                        /*var wrapper = document.createElement('div');
479                        wrapper.id = "tarteaucitronContentWrapper";
480
481                        while (document.body.firstChild)
482                        {
483                            wrapper.appendChild(document.body.firstChild);
484                        }
485
486                        // Append the wrapper to the body
487                        document.body.appendChild(wrapper);*/
488
489                        div.id = 'tarteaucitronRoot';
490                        if (tarteaucitron.parameters.bodyPosition === 'top') {
491                            // Prepend tarteaucitron: #tarteaucitronRoot first-child of the body for better accessibility
492                            var bodyFirstChild = body.firstChild;
493                            body.insertBefore(div, bodyFirstChild);
494                        }
495                        else {
496                            // Append tarteaucitron: #tarteaucitronRoot last-child of the body
497                            body.appendChild(div, body);
498                        }
499                        div.innerHTML = html;
500
501                        //ie compatibility
502                        var tacRootAvailableEvent;
503                        if(typeof(Event) === 'function') {
504                            tacRootAvailableEvent = new Event("tac.root_available");
505                        }else{
506                            tacRootAvailableEvent = document.createEvent('Event');
507                            tacRootAvailableEvent.initEvent("tac.root_available", true, true);
508                        }
509                        //end ie compatibility
510
511                        window.dispatchEvent(tacRootAvailableEvent);
512
513                        if (tarteaucitron.job !== undefined) {
514                            tarteaucitron.job = tarteaucitron.cleanArray(tarteaucitron.job);
515                            for (index = 0; index < tarteaucitron.job.length; index += 1) {
516                                tarteaucitron.addService(tarteaucitron.job[index]);
517                            }
518                        } else {
519                            tarteaucitron.job = []
520                        }
521
522                        tarteaucitron.isAjax = true;
523
524                        tarteaucitron.job.push = function (id) {
525
526                            // ie <9 hack
527                            if (typeof tarteaucitron.job.indexOf === 'undefined') {
528                                tarteaucitron.job.indexOf = function (obj, start) {
529                                    var i,
530                                        j = this.length;
531                                    for (i = (start || 0); i < j; i += 1) {
532                                        if (this[i] === obj) { return i; }
533                                    }
534                                    return -1;
535                                };
536                            }
537
538                            if (tarteaucitron.job.indexOf(id) === -1) {
539                                Array.prototype.push.call(this, id);
540                            }
541                            tarteaucitron.launch[id] = false;
542                            tarteaucitron.addService(id);
543                        };
544
545                        if (document.location.hash === tarteaucitron.hashtag && tarteaucitron.hashtag !== '') {
546                            tarteaucitron.userInterface.openPanel();
547                        }
548
549                        tarteaucitron.cookie.number();
550                        setInterval(tarteaucitron.cookie.number, 60000);
551                    }
552                }, tarteaucitron.parameters.adblocker);
553
554                if (tarteaucitron.parameters.adblocker === true) {
555                    setTimeout(function () {
556                        if (tarteaucitronNoAdBlocker === false) {
557                            html = '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + ' tarteaucitron-display-block" role="alert" aria-live="polite">';
558                            html += '   <p id="tarteaucitronDisclaimerAlert">';
559                            html += '       ' + tarteaucitron.lang.adblock + '<br/>';
560                            html += '       <strong>' + tarteaucitron.lang.adblock_call + '</strong>';
561                            html += '   </p>';
562                            html += '   <button type="button" class="tarteaucitronCTAButton" id="tarteaucitronCTAButton">';
563                            html += '       ' + tarteaucitron.lang.reload;
564                            html += '   </button>';
565                            html += '</div>';
566                            html += '<div id="tarteaucitronPremium"></div>';
567
568                            div.id = 'tarteaucitronRoot';
569                            if (tarteaucitron.parameters.bodyPosition === 'top') {
570                                // Prepend tarteaucitron: #tarteaucitronRoot first-child of the body for better accessibility
571                                var bodyFirstChild = body.firstChild;
572                                body.insertBefore(div, bodyFirstChild);
573                            }
574                            else {
575                                // Append tarteaucitron: #tarteaucitronRoot last-child of the body
576                                body.appendChild(div, body);
577                            }
578                            div.innerHTML = html;
579                        }
580                    }, 1500);
581                }
582                if(tarteaucitron.parameters.closePopup === true){
583                    let element = document.getElementById('tarteaucitronAlertBig');
584                    let span = document.createElement('span')
585                    span.textContent = 'X';
586                    span.setAttribute('id', "tarteaucitronCloseCross")
587                    element.insertBefore(span, element.firstElementChild)
588                }
589
590
591
592                // add a little timeout to be sure everything is accessible
593                setTimeout(function () {
594                    
595                    // Setup events
596                    tarteaucitron.addClickEventToId("tarteaucitronCloseCross", function () {
597                        tarteaucitron.userInterface.closeAlert();
598                    });
599                    tarteaucitron.addClickEventToId("tarteaucitronPersonalize", function () {
600                        tarteaucitron.userInterface.openPanel();
601                    });
602                    tarteaucitron.addClickEventToId("tarteaucitronPersonalize2", function () {
603                        tarteaucitron.userInterface.respondAll(true);
604                    });
605                    tarteaucitron.addClickEventToId("tarteaucitronManager", function () {
606                        tarteaucitron.userInterface.openPanel();
607                    });
608                    tarteaucitron.addClickEventToId("tarteaucitronBack", function () {
609                        tarteaucitron.userInterface.closePanel();
610                    });
611                    tarteaucitron.addClickEventToId("tarteaucitronClosePanel", function () {
612                        tarteaucitron.userInterface.closePanel();
613                    });
614                    tarteaucitron.addClickEventToId("tarteaucitronClosePanelCookie", function () {
615                        tarteaucitron.userInterface.closePanel();
616                    });
617                    tarteaucitron.addClickEventToId("tarteaucitronPrivacyUrl", function () {
618                        document.location = tarteaucitron.parameters.privacyUrl;
619                    });
620                    tarteaucitron.addClickEventToId("tarteaucitronPrivacyUrlDialog", function () {
621                        document.location = tarteaucitron.parameters.privacyUrl;
622                    });
623                    tarteaucitron.addClickEventToId("tarteaucitronCookiesNumber", function () {
624                        tarteaucitron.userInterface.toggleCookiesList();
625                    });
626                    tarteaucitron.addClickEventToId("tarteaucitronAllAllowed", function () {
627                        tarteaucitron.userInterface.respondAll(true);
628                    });
629                    tarteaucitron.addClickEventToId("tarteaucitronAllDenied", function () {
630                        tarteaucitron.userInterface.respondAll(false, '', true);
631                    });
632                    tarteaucitron.addClickEventToId("tarteaucitronAllDenied2", function () {
633                        tarteaucitron.userInterface.respondAll(false, '', true);
634                        if (tarteaucitron.reloadThePage === true) {
635                            window.location.reload();
636                        }
637                    });
638                    tarteaucitron.addClickEventToId("tarteaucitronCloseAlert", function () {
vendor: 13,426 bytes, lines 639-917
639                        tarteaucitron.userInterface.openPanel();
640                    });
641                    tarteaucitron.addClickEventToId("tarteaucitronCTAButton", function () {
642                        location.reload();
643                    });
644                    var toggleBtns = document.getElementsByClassName("catToggleBtn"), i;
645                    for (i = 0; i < toggleBtns.length; i++) {
646                        toggleBtns[i].dataset.index = i;
647                        tarteaucitron.addClickEventToElement(toggleBtns[i], function () {
648                            tarteaucitron.userInterface.toggle('tarteaucitronDetails' + cat[this.dataset.index], 'tarteaucitronInfoBox');
649                            return false;
650                        });
651                    }
652
653                    var allowBtns = document.getElementsByClassName("tarteaucitronAllow");
654                    for (i = 0; i < allowBtns.length; i++) {
655                        tarteaucitron.addClickEventToElement(allowBtns[i], function () {
656                            tarteaucitron.userInterface.respond(this, true);
657                        });
658                    }
659                    var denyBtns = document.getElementsByClassName("tarteaucitronDeny");
660                    for (i = 0; i < denyBtns.length; i++) {
661                        tarteaucitron.addClickEventToElement(denyBtns[i], function () {
662                            tarteaucitron.userInterface.respond(this, false);
663                        });
664                    }
665                }, 500);
666                
667            });
668        });
669
670        if(tarteaucitron.events.load) {
671            tarteaucitron.events.load();
672        }
673    },
674    "addService": function (serviceId) {
675        "use strict";
676        var html = '',
677            s = tarteaucitron.services,
678            service = s[serviceId],
679            cookie = tarteaucitron.cookie.read(),
680            hostname = document.location.hostname,
681            hostRef = document.referrer.split('/')[2],
682            isNavigating = (hostRef === hostname && window.location.href !== tarteaucitron.parameters.privacyUrl),
683            isAutostart = (!service.needConsent),
684            isWaiting = (cookie.indexOf(service.key + '=wait') >= 0),
685            isDenied = (cookie.indexOf(service.key + '=false') >= 0),
686            isAllowed = ((cookie.indexOf(service.key + '=true') >= 0) || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)),
687            isResponded = (cookie.indexOf(service.key + '=false') >= 0 || cookie.indexOf(service.key + '=true') >= 0),
688            isDNTRequested = (navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || window.doNotTrack === "1");
689
690        if (tarteaucitron.added[service.key] !== true) {
691            tarteaucitron.added[service.key] = true;
692
693            html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
694            html += '   <div class="tarteaucitronName">';
695            html += '       <span class="tarteaucitronH3" role="heading" aria-level="3">' + service.name + '</span>';
696            html += '       <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
697
698            if (tarteaucitron.parameters.moreInfoLink == true) {
699
700                var link = 'https://tarteaucitron.io/service/' + service.key + '/';
701                if (service.readmoreLink !== undefined && service.readmoreLink !== '') {
702                    link = service.readmoreLink;
703                }
704                if (tarteaucitron.parameters.readmoreLink !== undefined && tarteaucitron.parameters.readmoreLink !== '') {
705                    link = tarteaucitron.parameters.readmoreLink;
706                }
707                html += '       <a href="' + link + '" target="_blank" rel="noreferrer noopener nofollow" title="'+ tarteaucitron.lang.cookieDetail + ' ' + service.name + ' ' + tarteaucitron.lang.ourSite + ' ' + tarteaucitron.lang.newWindow +'">';
708                html += '           ' + tarteaucitron.lang.more;
709                html += '       </a>';
710                html += '        - ';
711                html += '       <a href="' + service.uri + '" target="_blank" rel="noreferrer noopener" title="' + service.name + ' ' + tarteaucitron.lang.newWindow + '">';
712                html += '           ' + tarteaucitron.lang.source;
713                html += '       </a>';
714            }
715
716            html += '   </div>';
717            html += '   <div class="tarteaucitronAsk">';
718            html += '       <button type="button" id="' + service.key + 'Allowed" class="tarteaucitronAllow">';
719            html += '           <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
720            html += '       </button> ';
721            html += '       <button type="button" id="' + service.key + 'Denied" class="tarteaucitronDeny">';
722            html += '           <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
723            html += '       </button>';
724            html += '   </div>';
725            html += '</li>';
726
727            tarteaucitron.userInterface.css('tarteaucitronServicesTitle_' + service.type, 'display', 'block');
728
729            if (document.getElementById('tarteaucitronServices_' + service.type) !== null) {
730                document.getElementById('tarteaucitronServices_' + service.type).innerHTML += html;
731            }
732
733            tarteaucitron.userInterface.css('tarteaucitronNoServicesTitle', 'display', 'none');
734
735            tarteaucitron.userInterface.order(service.type);
736
737            tarteaucitron.addClickEventToId(service.key + 'Allowed', function () {
738                tarteaucitron.userInterface.respond(this, true);
739            });
740
741            tarteaucitron.addClickEventToId(service.key + 'Denied', function () {
742                tarteaucitron.userInterface.respond(this, false);
743            });
744        }
745
746        tarteaucitron.pro('!' + service.key + '=' + isAllowed);
747
748        // allow by default for non EU
749        if (isResponded === false && tarteaucitron.user.bypass === true) {
750            isAllowed = true;
751            tarteaucitron.cookie.create(service.key, true);
752        }
753
754        if ((!isResponded && (isAutostart || (isNavigating && isWaiting)) && !tarteaucitron.highPrivacy) || isAllowed) {
755            if (!isAllowed || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)) {
756                tarteaucitron.cookie.create(service.key, true);
757            }
758            if (tarteaucitron.launch[service.key] !== true) {
759                tarteaucitron.launch[service.key] = true;
760                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.js(); }
761                tarteaucitron.sendEvent(service.key + '_loaded');
762            }
763            tarteaucitron.state[service.key] = true;
764            tarteaucitron.userInterface.color(service.key, true);
765        } else if (isDenied) {
766            if (typeof service.fallback === 'function') {
767                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.fallback(); }
768            }
769            tarteaucitron.state[service.key] = false;
770            tarteaucitron.userInterface.color(service.key, false);
771        } else if (!isResponded && isDNTRequested && tarteaucitron.handleBrowserDNTRequest) {
772            tarteaucitron.cookie.create(service.key, 'false');
773            if (typeof service.fallback === 'function') {
774                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.fallback(); }
775            }
776            tarteaucitron.state[service.key] = false;
777            tarteaucitron.userInterface.color(service.key, false);
778        } else if (!isResponded) {
779            tarteaucitron.cookie.create(service.key, 'wait');
780            if (typeof service.fallback === 'function') {
781                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.fallback(); }
782            }
783            tarteaucitron.userInterface.color(service.key, 'wait');
784            tarteaucitron.userInterface.openAlert();
785        }
786
787        tarteaucitron.cookie.checkCount(service.key);
788        tarteaucitron.sendEvent(service.key + '_added')
789    },
790    "sendEvent" : function(event_key) {
791        if(event_key !== undefined) {
792            //ie compatibility
793            var send_event_item;
794            if(typeof(Event) === 'function') {
795                send_event_item = new Event(event_key);
796            }else{
797                send_event_item = document.createEvent('Event');
798                send_event_item.initEvent(event_key, true, true);
799            }
800            //end ie compatibility
801
802            document.dispatchEvent(send_event_item);
803        }
804    },
805    "cleanArray": function cleanArray(arr) {
806        "use strict";
807        var i,
808            len = arr.length,
809            out = [],
810            obj = {},
811            s = tarteaucitron.services;
812
813        for (i = 0; i < len; i += 1) {
814            if (!obj[arr[i]]) {
815                obj[arr[i]] = {};
816                if (tarteaucitron.services[arr[i]] !== undefined) {
817                    out.push(arr[i]);
818                }
819            }
820        }
821
822        out = out.sort(function (a, b) {
823            if (s[a].type + s[a].key > s[b].type + s[b].key) { return 1; }
824            if (s[a].type + s[a].key < s[b].type + s[b].key) { return -1; }
825            return 0;
826        });
827
828        return out;
829    },
830    "userInterface": {
831        "css": function (id, property, value) {
832            "use strict";
833            if (document.getElementById(id) !== null) {
834
835                if (property == "display" && value == "none" && (id == "tarteaucitron" || id == "tarteaucitronBack" || id == "tarteaucitronAlertBig")) {
836                    document.getElementById(id).style["opacity"] = "0";
837
838                    setTimeout(function() {document.getElementById(id).style[property] = value;}, 200);
839                } else {
840
841                    document.getElementById(id).style[property] = value;
842                    
843                    if (property == "display" && value == "block" && (id == "tarteaucitron" || id == "tarteaucitronAlertBig")) {
844                        document.getElementById(id).style["opacity"] = "0";
845                        setTimeout(function() {document.getElementById(id).style["opacity"] = "1";}, 1);
846                    }
847                    
848                    if (property == "display" && value == "block" && id == "tarteaucitronBack") {
849                        document.getElementById(id).style["opacity"] = "0";
850                        setTimeout(function() {document.getElementById(id).style["opacity"] = "0.7";}, 1);
851                    }
852                }
853            }
854        },
855        "addClass": function (id, className) {
856            "use strict";
857            if (document.getElementById(id) !== null) {
858                document.getElementById(id).classList.add(className);
859            }
860        },
861        "removeClass": function (id, className) {
862            "use strict";
863            if (document.getElementById(id) !== null) {
864                document.getElementById(id).classList.remove(className);
865            }
866        },
867        "respondAll": function (status, type, allowSafeAnalytics) {
868            "use strict";
869            var s = tarteaucitron.services,
870                service,
871                key,
872                index = 0;
873
874            for (index = 0; index < tarteaucitron.job.length; index += 1) {
875
876                if (typeof type !== 'undefined' && type !== '' && s[tarteaucitron.job[index]].type !== type) {
877                    continue;
878                }
879
880                if (allowSafeAnalytics && typeof s[tarteaucitron.job[index]].safeanalytic !== "undefined" && s[tarteaucitron.job[index]].safeanalytic === true) {
881                    continue;
882                }
883
884                service = s[tarteaucitron.job[index]];
885                key = service.key;
886                if (tarteaucitron.state[key] !== status) {
887                    if (status === false && tarteaucitron.launch[key] === true) {
888                        tarteaucitron.reloadThePage = true;
889                    }
890                    if (tarteaucitron.launch[key] !== true && status === true) {
891
892                        tarteaucitron.pro('!' + key + '=engage');
893
894                        tarteaucitron.launch[key] = true;
895                        if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
896                        tarteaucitron.sendEvent(key + '_loaded');
897                    }
898                    tarteaucitron.state[key] = status;
899                    tarteaucitron.cookie.create(key, status);
900                    tarteaucitron.userInterface.color(key, status);
901                }
902            }
903        },
904        "respond": function (el, status) {
905            "use strict";
906            if (el.id === '') {
907                return;
908            }
909            var key = el.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed", "g"), '');
910
911            if (key.substring(0, 13) === 'tarteaucitron' || key === '') {return;}
912
913            // return if same state
914            if (tarteaucitron.state[key] === status) {
915                return;
916            }
917
918            if (status === false && tarteaucitron.launch[key] === true) {
919                tarteaucitron.reloadThePage = true;
920            }
921
922            // if not already launched... launch the service
923            if (status === true) {
924                if (tarteaucitron.launch[key] !== true) {
925
926                    tarteaucitron.pro('!' + key + '=engage');
927
928                    tarteaucitron.launch[key] = true;
929                    tarteaucitron.sendEvent(key + '_loaded');
930                    if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
931                }
932            }
933            tarteaucitron.state[key] = status;
934            tarteaucitron.cookie.create(key, status);
935            tarteaucitron.userInterface.color(key, status);
936        },
937        "color": function (key, status) {
938            "use strict";
939            var c = 'tarteaucitron',
940                nbDenied = 0,
941                nbPending = 0,
942                nbAllowed = 0,
943                sum = tarteaucitron.job.length,
944                index,
945                s = tarteaucitron.services;
946
947            if (status === true) {
948                document.getElementById(key + 'Line').classList.add('tarteaucitronIsAllowed');
949                document.getElementById(key + 'Line').classList.remove('tarteaucitronIsDenied');
950            } else if (status === false) {
951                document.getElementById(key + 'Line').classList.remove('tarteaucitronIsAllowed');
952                document.getElementById(key + 'Line').classList.add('tarteaucitronIsDenied');
953            }
954
955            // check if all services are allowed
956            for (index = 0; index < sum; index += 1) {
957
958                if (typeof s[tarteaucitron.job[index]].safeanalytic !== "undefined" && s[tarteaucitron.job[index]].safeanalytic === true) {
959                    sum -= 1;
960                    continue;
961                }
962
963                if (tarteaucitron.state[tarteaucitron.job[index]] === false) {
964                    nbDenied += 1;
965                } else if (tarteaucitron.state[tarteaucitron.job[index]] === undefined) {
966                    nbPending += 1;
967                } else if (tarteaucitron.state[tarteaucitron.job[index]] === true) {
968                    nbAllowed += 1;
969                }
970            }
971
972            tarteaucitron.userInterface.css(c + 'DotGreen', 'width', ((100 / sum) * nbAllowed) + '%');
973            tarteaucitron.userInterface.css(c + 'DotYellow', 'width', ((100 / sum) * nbPending) + '%');
974            tarteaucitron.userInterface.css(c + 'DotRed', 'width', ((100 / sum) * nbDenied) + '%');
975
976            if (nbDenied === 0 && nbPending === 0) {
977                tarteaucitron.userInterface.removeClass(c + 'AllDenied', c + 'IsSelected');
978                tarteaucitron.userInterface.addClass(c + 'AllAllowed', c + 'IsSelected');
979
980                tarteaucitron.userInterface.addClass(c + 'MainLineOffset', c + 'IsAllowed');
981                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsDenied');
982            } else if (nbAllowed === 0 && nbPending === 0) {
983                tarteaucitron.userInterface.removeClass(c + 'AllAllowed', c + 'IsSelected');
984                tarteaucitron.userInterface.addClass(c + 'AllDenied', c + 'IsSelected');
985
986                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsAllowed');
987                tarteaucitron.userInterface.addClass(c + 'MainLineOffset', c + 'IsDenied');
988            } else {
989                tarteaucitron.userInterface.removeClass(c + 'AllAllowed', c + 'IsSelected');
990                tarteaucitron.userInterface.removeClass(c + 'AllDenied', c + 'IsSelected');
991
992                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsAllowed');
993                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsDenied');
994            }
995
996            // close the alert if all service have been reviewed
997            if (nbPending === 0) {
998                tarteaucitron.userInterface.closeAlert();
999            }
1000
1001            if (tarteaucitron.services[key].cookies.length > 0 && status === false) {
1002                tarteaucitron.cookie.purge(tarteaucitron.services[key].cookies);
1003            }
1004
1005            if (status === true) {
1006                if (document.getElementById('tacCL' + key) !== null) {
1007                    document.getElementById('tacCL' + key).innerHTML = '...';
1008                }
1009                setTimeout(function () {
1010                    tarteaucitron.cookie.checkCount(key);
1011                }, 2500);
1012            } else {
1013                tarteaucitron.cookie.checkCount(key);
1014            }
1015        },
1016        "openPanel": function () {
1017            "use strict";
1018
1019            tarteaucitron.userInterface.css('tarteaucitron', 'display', 'block');
1020            tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'block');
1021            tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
1022
1023            document.getElementById('tarteaucitronClosePanel').focus();
1024            document.getElementsByTagName('body')[0].classList.add('tarteaucitron-modal-open');
1025            tarteaucitron.userInterface.focusTrap();
1026            tarteaucitron.userInterface.jsSizing('main');
1027
1028            //ie compatibility
1029            var tacOpenPanelEvent;
1030            if(typeof(Event) === 'function') {
1031                tacOpenPanelEvent = new Event("tac.open_panel");
1032            }else{
1033                tacOpenPanelEvent = document.createEvent('Event');
1034                tacOpenPanelEvent.initEvent("tac.open_panel", true, true);
1035            }
1036            //end ie compatibility
1037
1038            window.dispatchEvent(tacOpenPanelEvent);
1039        },
1040        "closePanel": function () {
1041            "use strict";
1042
1043            if (document.location.hash === tarteaucitron.hashtag) {
1044                if (window.history) {
1045                    window.history.replaceState('', document.title, window.location.pathname + window.location.search);
1046                } else {
1047                    document.location.hash = '';
1048                }
1049            }
1050            tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
1051            tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
1052
1053            tarteaucitron.fallback(['tarteaucitronInfoBox'], function (elem) {
1054                elem.style.display = 'none';
1055            }, true);
1056
1057            if (tarteaucitron.reloadThePage === true) {
1058                window.location.reload();
1059            } else {
1060                tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none');
1061            }
1062            if (document.getElementById('tarteaucitronCloseAlert') !== null) {
1063                document.getElementById('tarteaucitronCloseAlert').focus();
1064            }
1065            document.getElementsByTagName('body')[0].classList.remove('tarteaucitron-modal-open');
1066
1067            //ie compatibility
1068            var tacClosePanelEvent;
1069            if(typeof(Event) === 'function') {
1070                tacClosePanelEvent = new Event("tac.close_panel");
1071            }else{
1072                tacClosePanelEvent = document.createEvent('Event');
1073                tacClosePanelEvent.initEvent("tac.close_panel", true, true);
1074            }
1075            //end ie compatibility
1076
1077            window.dispatchEvent(tacClosePanelEvent);
1078        },
1079        "focusTrap": function() {
1080            "use strict";
1081
1082            var focusableEls,
1083                firstFocusableEl,
1084                lastFocusableEl,
1085                filtered;
1086
1087            focusableEls = document.getElementById('tarteaucitron').querySelectorAll('a[href], button');
1088            filtered = [];
1089
1090            // get only visible items
vendor: 5,763 bytes, lines 1091-1227
1091            for (var i = 0, max = focusableEls.length; i < max; i++) {
1092                if (focusableEls[i].offsetHeight > 0) {
1093                   filtered.push(focusableEls[i]);
1094                }
1095            }
1096
1097            firstFocusableEl = filtered[0];
1098            lastFocusableEl = filtered[filtered.length - 1];
1099
1100            //loop focus inside tarteaucitron
1101            document.getElementById('tarteaucitron').addEventListener("keydown", function (evt) {
1102
1103                if ( evt.key === 'Tab' || evt.keyCode === 9 ) {
1104
1105                    if ( evt.shiftKey ) /* shift + tab */ {
1106                        if (document.activeElement === firstFocusableEl) {
1107                            lastFocusableEl.focus();
1108                            evt.preventDefault();
1109                        }
1110                    } else /* tab */ {
1111                        if (document.activeElement === lastFocusableEl) {
1112                            firstFocusableEl.focus();
1113                            evt.preventDefault();
1114                        }
1115                    }
1116                }
1117            })
1118        },
1119        "openAlert": function () {
1120            "use strict";
1121            var c = 'tarteaucitron';
1122            tarteaucitron.userInterface.css(c + 'Percentage', 'display', 'block');
1123            tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'none');
1124            tarteaucitron.userInterface.css(c + 'Icon', 'display', 'none');
1125            tarteaucitron.userInterface.css(c + 'AlertBig',   'display', 'block');
1126            tarteaucitron.userInterface.addClass(c + 'Root',   'tarteaucitronBeforeVisible');
1127
1128            //ie compatibility
1129            var tacOpenAlertEvent;
1130            if(typeof(Event) === 'function') {
1131                tacOpenAlertEvent = new Event("tac.open_alert");
1132            }else{
1133                tacOpenAlertEvent = document.createEvent('Event');
1134                tacOpenAlertEvent.initEvent("tac.open_alert", true, true);
1135            }
1136            //end ie compatibility
1137
1138            window.dispatchEvent(tacOpenAlertEvent);
1139        },
1140        "closeAlert": function () {
1141            "use strict";
1142            var c = 'tarteaucitron';
1143            tarteaucitron.userInterface.css(c + 'Percentage', 'display', 'none');
1144            tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'block');
1145            tarteaucitron.userInterface.css(c + 'Icon', 'display', 'block');
1146            tarteaucitron.userInterface.css(c + 'AlertBig',   'display', 'none');
1147            tarteaucitron.userInterface.removeClass(c + 'Root',   'tarteaucitronBeforeVisible');
1148            tarteaucitron.userInterface.jsSizing('box');
1149
1150            //ie compatibility
1151            var tacCloseAlertEvent;
1152            if(typeof(Event) === 'function') {
1153                tacCloseAlertEvent = new Event("tac.close_alert");
1154            }else{
1155                tacCloseAlertEvent = document.createEvent('Event');
1156                tacCloseAlertEvent.initEvent("tac.close_alert", true, true);
1157            }
1158            //end ie compatibility
1159
1160            window.dispatchEvent(tacCloseAlertEvent);
1161        },
1162        "toggleCookiesList": function () {
1163            "use strict";
1164            var div = document.getElementById('tarteaucitronCookiesListContainer');
1165
1166            if (div === null) {
1167                return;
1168            }
1169
1170            if (div.style.display !== 'block') {
1171                tarteaucitron.cookie.number();
1172                div.style.display = 'block';
1173                tarteaucitron.userInterface.jsSizing('cookie');
1174                tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
1175                tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'block');
1176                tarteaucitron.fallback(['tarteaucitronInfoBox'], function (elem) {
1177                    elem.style.display = 'none';
1178                }, true);
1179            } else {
1180                div.style.display = 'none';
1181                tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
1182                tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none');
1183            }
1184        },
1185        "toggle": function (id, closeClass) {
1186            "use strict";
1187            var div = document.getElementById(id);
1188
1189            if (div === null) {
1190                return;
1191            }
1192
1193            if (closeClass !== undefined) {
1194                tarteaucitron.fallback([closeClass], function (elem) {
1195                    if (elem.id !== id) {
1196                        elem.style.display = 'none';
1197                    }
1198                }, true);
1199            }
1200
1201            if (div.style.display !== 'block') {
1202                div.style.display = 'block';
1203            } else {
1204                div.style.display = 'none';
1205            }
1206        },
1207        "order": function (id) {
1208            "use strict";
1209            var main = document.getElementById('tarteaucitronServices_' + id),
1210                allDivs,
1211                store = [],
1212                i;
1213
1214            if (main === null) {
1215                return;
1216            }
1217
1218            allDivs = main.childNodes;
1219
1220            if (typeof Array.prototype.map === 'function' && typeof Enumerable === 'undefined') {
1221                Array.prototype.map.call(main.children, Object).sort(function (a, b) {
1222                //var mainChildren = Array.from(main.children);
1223                //mainChildren.sort(function (a, b) {
1224                    if (tarteaucitron.services[a.id.replace(/Line/g, '')].name > tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return 1; }
1225                    if (tarteaucitron.services[a.id.replace(/Line/g, '')].name < tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return -1; }
1226                    return 0;
1227                }
1227).forEach(function (element) {
1228                    main.appendChild(element);
1229                });
1230            }
1231        },
1232        "jsSizing": function (type) {
1233            "use strict";
1234            var scrollbarMarginRight = 10,
1235                scrollbarWidthParent,
1236                scrollbarWidthChild,
1237                servicesHeight,
1238                e = window,
1239                a = 'inner',
1240                windowInnerHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight,
1241                mainTop,
1242                mainHeight,
1243                closeButtonHeight,
1244                headerHeight,
1245                cookiesListHeight,
1246                cookiesCloseHeight,
1247                cookiesTitleHeight,
1248                paddingBox,
1249                alertSmallHeight,
1250                cookiesNumberHeight;
1251
1252            if (type === 'box') {
1253                if (document.getElementById('tarteaucitronAlertSmall') !== null && document.getElementById('tarteaucitronCookiesNumber') !== null) {
1254
1255                    // reset
1256                    tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', '0px 10px');
1257
1258                    // calculate
1259                    alertSmallHeight = document.getElementById('tarteaucitronAlertSmall').offsetHeight;
1260                    cookiesNumberHeight = document.getElementById('tarteaucitronCookiesNumber').offsetHeight;
1261                    paddingBox = (alertSmallHeight - cookiesNumberHeight) / 2;
1262
1263                    // apply
1264                    tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', paddingBox + 'px 10px');
1265                }
1266            } else if (type === 'main') {
1267
1268                // get the real window width for media query
1269                if (window.innerWidth === undefined) {
1270                    a = 'client';
1271                    e = document.documentElement || document.body;
1272                }
1273
1274                // height of the services list container
1275                if (document.getElementById('tarteaucitron') !== null && document.getElementById('tarteaucitronClosePanel') !== null && document.getElementById('tarteaucitronMainLineOffset') !== null) {
1276
1277                    // reset
1278                    tarteaucitron.userInterface.css('tarteaucitronServices', 'height', 'auto');
1279
1280                    // calculate
1281                    mainHeight = document.getElementById('tarteaucitron').offsetHeight;
1282                    closeButtonHeight = document.getElementById('tarteaucitronClosePanel').offsetHeight;
1283
1284                    // apply
1285                    servicesHeight = (mainHeight - closeButtonHeight + 2);
1286                    tarteaucitron.userInterface.css('tarteaucitronServices', 'height', servicesHeight + 'px');
1287                    tarteaucitron.userInterface.css('tarteaucitronServices', 'overflow-x', 'auto');
1288                }
1289
1290                // align the main allow/deny button depending on scrollbar width
1291                if (document.getElementById('tarteaucitronServices') !== null && document.getElementById('tarteaucitronScrollbarChild') !== null) {
1292
1293                    // media query
1294                    if (e[a + 'Width'] <= 479) {
1295                        //tarteaucitron.userInterface.css('tarteaucitronScrollbarAdjust', 'marginLeft', '11px');
1296                    } else if (e[a + 'Width'] <= 767) {
1297                        scrollbarMarginRight = 12;
1298                    }
1299
1300                    scrollbarWidthParent = document.getElementById('tarteaucitronServices').offsetWidth;
1301                    scrollbarWidthChild = document.getElementById('tarteaucitronScrollbarChild').offsetWidth;
1302                    //tarteaucitron.userInterface.css('tarteaucitronScrollbarAdjust', 'marginRight', ((scrollbarWidthParent - scrollbarWidthChild) + scrollbarMarginRight) + 'px');
1303                }
1304
1305                // center the main panel
1306                if (document.getElementById('tarteaucitron') !== null) {
1307
1308                    // media query
1309                    if (e[a + 'Width'] <= 767) {
1310                        mainTop = 0;
1311                    } else {
1312                        mainTop = ((windowInnerHeight - document.getElementById('tarteaucitron').offsetHeight) / 2) - 21;
1313                    }
1314
1315                    if (document.getElementById('tarteaucitronMainLineOffset') !== null) {
1316                        if (document.getElementById('tarteaucitron').offsetHeight < (windowInnerHeight / 2)) {
1317                            mainTop -= document.getElementById('tarteaucitronMainLineOffset').offsetHeight;
1318                        }
1319                    }
1320
1321                    // correct
1322                    if (mainTop < 0) {
1323                        mainTop = 0;
1324                    }
1325
1326                    // apply
1327                    tarteaucitron.userInterface.css('tarteaucitron', 'top', mainTop + 'px');
1328                }
1329
1330
1331            } else if (type === 'cookie') {
1332
1333                // put cookies list at bottom
1334                if (document.getElementById('tarteaucitronAlertSmall') !== null) {
1335                    tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'bottom', (document.getElementById('tarteaucitronAlertSmall').offsetHeight) + 'px');
1336                }
1337
1338                // height of cookies list
1339                if (document.getElementById('tarteaucitronCookiesListContainer') !== null) {
1340
1341                    // reset
1342                    tarteaucitron.userInterface.css('tarteaucitronCookiesList', 'height', 'auto');
1343
1344                    // calculate
1345                    cookiesListHeight = document.getElementById('tarteaucitronCookiesListContainer').offsetHeight;
1346                    cookiesCloseHeight = document.getElementById('tarteaucitronClosePanelCookie').offsetHeight;
1347                    cookiesTitleHeight = document.getElementById('tarteaucitronCookiesTitle').offsetHeight;
1348
1349                    // apply
1350                    tarteaucitron.userInterface.css('tarteaucitronCookiesList', 'height', (cookie
vendor: 13,971 bytes, lines 1350-1670
1350sListHeight - cookiesCloseHeight - cookiesTitleHeight - 2) + 'px');
1351                }
1352            }
1353        }
1354    },
1355    "cookie": {
1356        "owner": {},
1357        "create": function (key, status) {
1358            "use strict";
1359
1360            if (tarteaucitronForceExpire !== '') {
1361                // The number of day(s)/hour(s) can't be higher than 1 year
1362                if ((tarteaucitronExpireInDay && tarteaucitronForceExpire < 365) || (!tarteaucitronExpireInDay && tarteaucitronForceExpire < 8760)) {
1363                    if (tarteaucitronExpireInDay) {
1364                        // Multiplication to tranform the number of days to milliseconds
1365                        timeExpire = tarteaucitronForceExpire * 86400000;
1366                    } else {
1367                        // Multiplication to tranform the number of hours to milliseconds
1368                        timeExpire = tarteaucitronForceExpire * 3600000;
1369                    }
1370                }
1371            }
1372
1373            var d = new Date(),
1374                time = d.getTime(),
1375                expireTime = time + timeExpire, // 365 days
1376                regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
1377                cookie = tarteaucitron.cookie.read().replace(regex, ""),
1378                value = tarteaucitron.parameters.cookieName + '=' + cookie + '!' + key + '=' + status,
1379                domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? '; domain=' + tarteaucitron.parameters.cookieDomain : '',
1380                secure = location.protocol === 'https:' ? '; Secure' : '';
1381
1382            d.setTime(expireTime);
1383            document.cookie = value + '; expires=' + d.toGMTString() + '; path=/' + domain + secure + '; samesite=lax';
1384        },
1385        "read": function () {
1386            "use strict";
1387            var nameEQ = tarteaucitron.parameters.cookieName + "=",
1388                ca = document.cookie.split(';'),
1389                i,
1390                c;
1391
1392            for (i = 0; i < ca.length; i += 1) {
1393                c = ca[i];
1394                while (c.charAt(0) === ' ') {
1395                    c = c.substring(1, c.length);
1396                }
1397                if (c.indexOf(nameEQ) === 0) {
1398                    return c.substring(nameEQ.length, c.length);
1399                }
1400            }
1401            return '';
1402        },
1403        "purge": function (arr) {
1404            "use strict";
1405            var i;
1406
1407            for (i = 0; i < arr.length; i += 1) {
1408                document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
1409                document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
1410                document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
1411            }
1412        },
1413        "checkCount": function (key) {
1414            "use strict";
1415            var arr = tarteaucitron.services[key].cookies,
1416                nb = arr.length,
1417                nbCurrent = 0,
1418                html = '',
1419                i,
1420                status = document.cookie.indexOf(key + '=true');
1421
1422            if (status >= 0 && nb === 0) {
1423                html += tarteaucitron.lang.useNoCookie;
1424            } else if (status >= 0) {
1425                for (i = 0; i < nb; i += 1) {
1426                    if (document.cookie.indexOf(arr[i] + '=') !== -1) {
1427                        nbCurrent += 1;
1428                        if (tarteaucitron.cookie.owner[arr[i]] === undefined) {
1429                            tarteaucitron.cookie.owner[arr[i]] = [];
1430                        }
1431                        if (tarteaucitron.cookie.crossIndexOf(tarteaucitron.cookie.owner[arr[i]], tarteaucitron.services[key].name) === false) {
1432                            tarteaucitron.cookie.owner[arr[i]].push(tarteaucitron.services[key].name);
1433                        }
1434                    }
1435                }
1436
1437                if (nbCurrent > 0) {
1438                    html += tarteaucitron.lang.useCookieCurrent + ' ' + nbCurrent + ' cookie';
1439                    if (nbCurrent > 1) {
1440                        html += 's';
1441                    }
1442                    html += '.';
1443                } else {
1444                    html += tarteaucitron.lang.useNoCookie;
1445                }
1446            } else if (nb === 0) {
1447                html = tarteaucitron.lang.noCookie;
1448            } else {
1449                html += tarteaucitron.lang.useCookie + ' ' + nb + ' cookie';
1450                if (nb > 1) {
1451                    html += 's';
1452                }
1453                html += '.';
1454            }
1455
1456            if (document.getElementById('tacCL' + key) !== null) {
1457                document.getElementById('tacCL' + key).innerHTML = html;
1458            }
1459        },
1460        "crossIndexOf": function (arr, match) {
1461            "use strict";
1462            var i;
1463            for (i = 0; i < arr.length; i += 1) {
1464                if (arr[i] === match) {
1465                    return true;
1466                }
1467            }
1468            return false;
1469        },
1470        "number": function () {
1471            "use strict";
1472            var cookies = document.cookie.split(';'),
1473                nb = (document.cookie !== '') ? cookies.length : 0,
1474                html = '',
1475                i,
1476                name,
1477                namea,
1478                nameb,
1479                c,
1480                d,
1481                s = (nb > 1) ? 's' : '',
1482                savedname,
1483                regex = /^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i,
1484                regexedDomain = (tarteaucitron.cdn.match(regex) !== null) ? tarteaucitron.cdn.match(regex)[1] : tarteaucitron.cdn,
1485                host = (tarteaucitron.domain !== undefined) ? tarteaucitron.domain : regexedDomain;
1486
1487            cookies = cookies.sort(function (a, b) {
1488                namea = a.split('=', 1).toString().replace(/ /g, '');
1489                nameb = b.split('=', 1).toString().replace(/ /g, '');
1490                c = (tarteaucitron.cookie.owner[namea] !== undefined) ? tarteaucitron.cookie.owner[namea] : '0';
1491                d = (tarteaucitron.cookie.owner[nameb] !== undefined) ? tarteaucitron.cookie.owner[nameb] : '0';
1492                if (c + a > d + b) { return 1; }
1493                if (c + a < d + b) { return -1; }
1494                return 0;
1495            });
1496
1497            if (document.cookie !== '') {
1498                for (i = 0; i < nb; i += 1) {
1499                    name = cookies[i].split('=', 1).toString().replace(/ /g, '');
1500                    if (tarteaucitron.cookie.owner[name] !== undefined && tarteaucitron.cookie.owner[name].join(' // ') !== savedname) {
1501                        savedname = tarteaucitron.cookie.owner[name].join(' // ');
1502                        html += '<div class="tarteaucitronHidden">';
1503                        html += '     <span class="tarteaucitronTitle tarteaucitronH3" role="heading" aria-level="3">';
1504                        html += '        ' + tarteaucitron.cookie.owner[name].join(' // ');
1505                        html += '    </span>';
1506                        html += '</div><ul class="cookie-list">';
1507                    } else if (tarteaucitron.cookie.owner[name] === undefined && host !== savedname) {
1508                        savedname = host;
1509                        html += '<div class="tarteaucitronHidden">';
1510                        html += '     <span class="tarteaucitronTitle tarteaucitronH3" role="heading" aria-level="3">';
1511                        html += '        ' + host;
1512                        html += '    </span>';
1513                        html += '</div><ul class="cookie-list">';
1514                    }
1515                    html += '<li class="tarteaucitronCookiesListMain">';
1516                    html += '    <div class="tarteaucitronCookiesListLeft"><button type="button" class="purgeBtn" data-cookie="' + tarteaucitron.fixSelfXSS(cookies[i].split('=', 1)) + '"><strong>&times;</strong></button> <strong>' + tarteaucitron.fixSelfXSS(name) + '</strong>';
1517                    html += '    </div>';
1518                    html += '    <div class="tarteaucitronCookiesListRight">' + tarteaucitron.fixSelfXSS(cookies[i].split('=').slice(1).join('=')) + '</div>';
1519                    html += '</li>';
1520                }
1521                html += '</ul>';
1522            } else {
1523                html += '<div class="tarteaucitronCookiesListMain">';
1524                html += '    <div class="tarteaucitronCookiesListLeft"><strong>-</strong></div>';
1525                html += '    <div class="tarteaucitronCookiesListRight"></div>';
1526                html += '</div>';
1527            }
1528
1529            html += '<div class="tarteaucitronHidden tarteaucitron-spacer-20"></div>';
1530
1531            if (document.getElementById('tarteaucitronCookiesList') !== null) {
1532                document.getElementById('tarteaucitronCookiesList').innerHTML = html;
1533            }
1534
1535            if (document.getElementById('tarteaucitronCookiesNumber') !== null) {
1536                document.getElementById('tarteaucitronCookiesNumber').innerHTML = nb;
1537            }
1538
1539            if (document.getElementById('tarteaucitronCookiesNumberBis') !== null) {
1540                document.getElementById('tarteaucitronCookiesNumberBis').innerHTML = nb + ' cookie' + s;
1541            }
1542
1543            var purgeBtns = document.getElementsByClassName("purgeBtn");
1544            for (i = 0; i < purgeBtns.length; i++) {
1545                tarteaucitron.addClickEventToElement(purgeBtns[i], function () {
1546                    tarteaucitron.cookie.purge([this.dataset.cookie]);
1547                    tarteaucitron.cookie.number();
1548                    tarteaucitron.userInterface.jsSizing('cookie');
1549                    return false;
1550                });
1551            }
1552
1553            for (i = 0; i < tarteaucitron.job.length; i += 1) {
1554                tarteaucitron.cookie.checkCount(tarteaucitron.job[i]);
1555            }
1556        }
1557    },
1558    "fixSelfXSS": function(html) {
1559        fixed = html.toString().replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
1560        return fixed;
1561    },
1562    "getLanguage": function () {
1563        "use strict";
1564
1565        var availableLanguages = 'bg,ca,cn,cs,da,de,el,en,es,fi,fr,hu,it,ja,lv,nl,no,oc,pl,pt,ro,ru,se,sk,sv,tr,vi,zh',
1566            defaultLanguage = 'en';
1567
1568        if (tarteaucitronForceLanguage !== '') {
1569            if (availableLanguages.indexOf(tarteaucitronForceLanguage) !== -1) {
1570                return tarteaucitronForceLanguage;
1571            }
1572        }
1573
1574        if (!navigator) { return 'en'; }
1575
1576        var lang = navigator.language || navigator.browserLanguage ||
1577                navigator.systemLanguage || navigator.userLang || null,
1578            userLanguage = lang ? lang.substr(0, 2) : null;
1579
1580        if (availableLanguages.indexOf(userLanguage) === -1) {
1581            return defaultLanguage;
1582        }
1583        return userLanguage;
1584    },
1585    "getLocale": function () {
1586        "use strict";
1587        if (!navigator) { return 'en_US'; }
1588
1589        var lang = navigator.language || navigator.browserLanguage ||
1590                navigator.systemLanguage || navigator.userLang || null,
1591            userLanguage = lang ? lang.substr(0, 2) : null;
1592
1593        if (userLanguage === 'fr') {
1594            return 'fr_FR';
1595        } else if (userLanguage === 'en') {
1596            return 'en_US';
1597        } else if (userLanguage === 'de') {
1598            return 'de_DE';
1599        } else if (userLanguage === 'es') {
1600            return 'es_ES';
1601        } else if (userLanguage === 'it') {
1602            return 'it_IT';
1603        } else if (userLanguage === 'pt') {
1604            return 'pt_PT';
1605        } else if (userLanguage === 'nl') {
1606            return 'nl_NL';
1607        } else if (userLanguage === 'el') {
1608            return 'el_EL';
1609        } else {
1610            return 'en_US';
1611        }
1612    },
1613    "addScript": function (url, id, callback, execute, attrName, attrVal, internal) {
1614        "use strict";
1615        var script,
1616            done = false;
1617
1618        if (execute === false) {
1619            if (typeof callback === 'function') {
1620                callback();
1621            }
1622        } else {
1623            script = document.createElement('script');
1624            script.id = (id !== undefined) ? id : '';
1625            script.async = true;
1626            script.src = url;
1627
1628            if (attrName !== undefined && attrVal !== undefined) {
1629                script.setAttribute(attrName, attrVal);
1630            }
1631
1632            if (typeof callback === 'function') {
1633                if ( !tarteaucitron.parameters.useExternalJs || !internal ) {
1634                    script.onreadystatechange = script.onload = function () {
1635                        var state = script.readyState;
1636                        if (!done && (!state || /loaded|complete/.test(state))) {
1637                            done = true;
1638                            callback();
1639                        }
1640                    };
1641                } else {
1642                    callback();
1643                }
1644            }
1645
1646            if ( !tarteaucitron.parameters.useExternalJs || !internal ) {
1647                document.getElementsByTagName('head')[0].appendChild(script);
1648            }
1649        }
1650    },
1651    "addInternalScript": function (url, id, callback, execute, attrName, attrVal) {
1652        tarteaucitron.addScript(url, id, callback, execute, attrName, attrVal, true);
1653    },
1654    "makeAsync": {
1655        "antiGhost": 0,
1656        "buffer": '',
1657        "init": function (url, id) {
1658            "use strict";
1659            var savedWrite = document.write,
1660                savedWriteln = document.writeln;
1661
1662            document.write = function (content) {
1663                tarteaucitron.makeAsync.buffer += content;
1664            };
1665            document.writeln = function (content) {
1666                tarteaucitron.makeAsync.buffer += content.concat("\n");
1667            };
1668
1669            setTimeout(function () {
1670                document.write = savedWrite;
1671                document.writeln = savedWriteln;
1672            }, 20000);
1673
1674            tarteaucitron.makeAsync.getAndParse(url, id);
1675        },
1676        "getAndParse": function (url, id) {
1677            "use strict";
1678            if (tarteaucitron.makeAsync.antiGhost > 9) {
1679                tarteaucitron.makeAsync.antiGhost = 0;
1680                return;
1681            }
1682            tarteaucitron.makeAsync.antiGhost += 1;
1683            tarteaucitron.addInternalScript(url, '', function () {
1684                if (document.getElementById(id) !== null) {
1685                    document.getElementById(id).innerHTML += "<span class='tarteaucitron-display-none'>&nbsp;</span>" + tarteaucitron.makeAsync.buffer;
1686                    tarteaucitron.makeAsync.buffer = '';
1687                    tarteaucitron.makeAsync.execJS(id);
1688                }
1689            });
1690        },
1691        "execJS": function (id) {
1692            /* not strict because third party scripts may have errors */
1693            var i,
1694                scripts,
1695                childId,
1696                type;
1697
1698            if (document.getElementById(id) === null) {
1699                return;
1700            }
1701
1702            scripts = document.getElementById(id).getElementsByTagName('script');
1703            for (i = 0; i < scripts.length; i += 1) {
1704                type = (scripts[i].getAttribute('type') !== null) ? scripts[i].getAttribute('type') : '';
1705                if (type === '') {
1706                    type = (scripts[i].getAttribute('language') !== null) ? scripts[i].getAttribute('language') : '';
1707                }
1708                if (scripts[i].getAttribute('src') !== null && scripts[i].getAttribute('src') !== '') {
1709                    childId = id + Math.floor(Math.random() * 99999999999);
1710                    document.getElementById(id).innerHTML += '<div id="' + childId + '"></div>';
1711                    tarteaucitron.makeAsync.getAndParse(scripts[i].getAttribute('src'), childId);
1712                } else if (type.indexOf('javascript') !== -1 || type === '') {
1713                    eval(scripts[i].innerHTML);
1714                }
1715            }
1716        }
1717    },
1718    "fallback": function (matchClass, content, noInner) {
1719        "use strict";
1720        var elems = document.getElementsByTagName('*'),
1721            i,
1722            index = 0;
1723
1724        for (i in elems) {
1725            if (elems[i] !== undefined) {
1726                for (index = 0; index < matchClass.length; index += 1) {
1727                    if ((' ' + elems[i].className + ' ')
1728                            .indexOf(' ' + matchClass[index] + ' ') > -1) {
1729                        if (typeof content === 'function') {
1730                            if (noInner === true) {
1731                                content(elems[i]);
1732                            } else {
1733                                elems[i].innerHTML = content(elems[i]);
1734                            }
1735                        } else {
1736                            elems[i].innerHTML = content;
1737                        }
1738                    }
1739                }
1740            }
1741        }
1742    },
1743    "engage": function (id) {
1744        "use strict";
1745        var html = '',
1746            r = Math.floor(Math.random() * 100000),
1747            engage = tarteaucitron.services[id].name + ' ' + tarteaucitron.lang.fallback;
1748
1749        if (tarteaucitron.lang['engage-' + id] !== undefined) {
1750            engage = tarteaucitron.lang['engage-' + id];
1751        }
1752
1753        html += '<div class="tac_activate tac_activate_' + id + '">';
1754        html += '   <div class="tac_float">';
1755        html += '      ' + engage;
1756        html += '      <button type="button" class="tarteaucitronAllow" id="Eng' + r + 'ed' + id + '">';
1757        html += '          <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
1758        html += '       </button>';
1759        html += '   </div>';
1760        html += '</div>';
1761
1762        return html;
1763    },
1764    "extend": function (a, b) {
1765        "use strict";
1766        var prop;
1767        for (prop in b) {
1768            if (b.hasOwnProperty(prop)) {
1769                a[prop] = b[prop];
1770            }
1771        }
1772    },
1773    "proTemp": '',
1774    "proTimer": function () {
1775        "use strict";
1776        setTimeout(tarteaucitron.proPing, 500);
1777    },
1778    "pro": function (list) {
1779        "use strict";
1780        tarteaucitron.proTemp += list;
1781        clearTimeout(tarteaucitron.proTimer);
1782        tarteaucitron.proTimer = setTimeout(tarteaucitron.proPing, 500);
1783    },
1784    "proPing": function () {
1785        "use strict";
1786        if (tarteaucitron.uuid !== '' && tarteaucitron.uuid !== undefined && tarteaucitron.proTemp !== '') {
1787            var div = document.getElementById('tarteaucitronPremium'),
1788                timestamp = new Date().getTime(),
1789                url = 'https://tarteaucitron.io/log/?';
1790
1791            if (div === null) {
1792                return;
1793            }
1794
1795            url += 'account=' + tarteaucitron.uuid + '&';
1796            url += 'domain=' + tarteaucitron.domain + '&';
1797            url += 'status=' + encodeURIComponent(tarteaucitron.proTemp) + '&';
1798            url += '_time=' + timestamp;
1799
1800            div.innerHTML = '<img src="' + url + '" class="tarteaucitron-display-none" alt="" />';
1801
1802            tarteaucitron.proTemp = '';
1803        }
1804
1805        tarteaucitron.cookie.number();
1806    },
1807    "AddOrUpdate" : function(source, custom){
1808        /**
1809         Utility function to Add or update the fields of obj1 with the ones in obj2
1810         */
1811        for(key in custom){
1812            if(custom[key] instanceof Object){
1813                source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
1814            }else{
1815                source[key] = custom[key];
1816            }
1817        }
1818        return source;
1819    },
1820    "getElemWidth": function(elem) {
1821        return elem.getAttribute('width') || elem.clientWidth;
1822    },
1823    "getElemHeight": function(elem) {
1824        return elem.getAttribute('height') || elem.clientHeight;
1825    },
1826    "addClickEventToId": function (elemId, func) {
1827        tarteaucitron.addClickEventToElement(document.getElementById(elemId), func);
1828    },
1829    "addClickEventToElement": function (e, func) {
1830        if (e) {
1831            if (e.addEventListener) {
1832                e.addEventListener("click", func);
1833            } else {
1834                e.attachEvent("onclick", func);
1835            }
1836        }
1837    }
1838};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.