!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.TauntonUserConsent=t()}(this,function(){"use strict";function t(n){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?n():document.addEventListener("DOMContentLoaded",n)}function e(){return!!h(c)}function n(){return!1}function o(n){return(n=h(n))?"true"===n||"1"===n||"false"!==n&&"0"!==n&&n:null}var a="#taunton-user-consent-advertising",r="taunton_user_consent_advertising",s="#taunton-user-consent-analytics",i="taunton_user_consent_analytics",c="taunton_user_consent_submitted",u="#taunton-user-consent__toolbar__form",l="taunton-user-consent-visible",d="taunton-user-consent--has-defined-prefs",_="#taunton-user-consent__overlay",p="#taunton-user-consent__button-close",f="taunton_user_consent_user_id",v=[],h=function(n){for(var t=n+"=",e=document.cookie.split(";"),o=0;o\n #taunton-user-consent__overlay {\n background: rgba(0,0,0,.4);\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.3s linear,opacity 0.3s linear;\n left: 0;\n height: 100%;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 1000000000;\n }\n\n #taunton-user-consent__overlay.taunton-user-consent-visible {\n display: block;\n visibility: visible;\n opacity: 1;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar {\n box-sizing: border-box;\n background: #fff;\n height: 100%;\n padding: 20px;\n position: relative;\n overflow-x: hidden;\n overflow-y: auto;\n width: 400px;\n }\n\n @media screen and (max-width: 600px) {\n #taunton-user-consent__overlay #taunton-user-consent__toolbar {\n width: 90vw;\n max-width: 400px;\n }\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar p {\n color: #000;\n font-size: 15px;\n line-height: 1.5;\n margin-top: 0;\n margin-bottom: 1.5em;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar h3 {\n color: #000;\n font-size: 20px;\n line-height: 1.25;\n margin-bottom: 0;\n margin-top: 0;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar h4 {\n color: #000;\n font-size: 16px;\n line-height: 1.38889;\n margin-bottom: 0;\n margin-top: 0;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar a {\n color: #104a8d;\n text-decoration: underline;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__toolbar__button {\n border-color: #000;\n border-width: 1px;\n border-style: solid;\n border-radius: 4px;\n cursor: pointer;\n display: inline-block;\n font-size: 0.875rem;\n line-height: 1;\n margin-bottom: 1rem;\n padding: .75rem 1.25rem;\n }\n \n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__toolbar__button {\n background: #000;\n color: #fff;\n border: none;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__toolbar__button:active,\n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__toolbar__button:hover {\n background: #222;\n }\n \n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__toolbar__form--field-description {\n float: left;\n width: 80%;\n width: calc(100% - 40px);\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent-option {\n float: right;\n width: 30px;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar input[type=checkbox] {\n appearance: none;\n background: #fff;\n border: 2px solid #444;\n border-radius: 2px;\n display: inline-block;\n height: 24px;\n width: 24px;\n padding: 0;\n }\n\n#taunton-user-consent__overlay #taunton-user-consent__toolbar input[type=checkbox]:checked {\n background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns:dc=\'http://purl.org/dc/elements/1.1/\' xmlns:cc=\'http://web.resource.org/cc/\' xmlns:rdf=\'http://www.w3.org/1999/02/22-rdf-syntax-ns%23\' xmlns:svg=\'http://www.w3.org/2000/svg\' xmlns=\'http://www.w3.org/2000/svg\' width=\'19.21315\' height=\'18.294994\' version=\'1.0\'%3e%3cg transform=\'translate(-192.905,-516.02064)\'%3e%3cpath style=\'fill:%23000000\' d=\'M 197.67968,534.31563 C 197.40468,534.31208 196.21788,532.53719 195.04234,530.37143 L 192.905,526.43368 L 193.45901,525.87968 C 193.76371,525.57497 194.58269,525.32567 195.27896,525.32567 L 196.5449,525.32567 L 197.18129,527.33076 L 197.81768,529.33584 L 202.88215,523.79451 C 205.66761,520.74678 208.88522,517.75085 210.03239,517.13691 L 212.11815,516.02064 L 207.90871,520.80282 C 205.59351,523.43302 202.45735,527.55085 200.93947,529.95355 C 199.42159,532.35625 197.95468,534.31919 197.67968,534.31563 z \' /%3e%3c/g%3e%3c/svg%3e ") no-repeat 50% 50%;;\n display: inline-block;\n height: 24px;\n width: 24px;\n padding: 0;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__toolbar__bottom {\n display: none;\n }\n\n #taunton-user-consent__overlay.taunton-user-consent--has-defined-prefs #taunton-user-consent__toolbar .taunton-user-consent__toolbar__bottom {\n display: block;\n }\n\n #taunton-user-consent__overlay #taunton-user-consent__toolbar .taunton-user-consent__form__submit {\n margin-bottom: 1.5em;\n }\n\n\n\n')}),t(function(){var n=document.querySelector(_),t=document.querySelector(p);n&&n.addEventListener("click",function(n){console.log(n.target),(n.target.matches(_)||t&&n.target.closest(p))&&(n.stopPropagation(),y())})}),t(function(){for(var n=document.querySelectorAll(".taunton-user-consent__open"),t=0;t