PageSourceSearch

https://www.lacouronne-rouen.co.uk/tarteaucitron/tarteaucitron.js

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

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.