@bcomenet/cookieconsent-vanilla 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2025 Orest Bida
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/Readme.md ADDED
@@ -0,0 +1,37 @@
1
+ # CookieConsent v3
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
4
+ [![Latest version](https://img.shields.io/github/package-json/v/orestbida/cookieconsent?color=2b4eed&label=Release)](https://github.com/orestbida/cookieconsent/releases/v3.0.0)
5
+ [![CircleCI](https://dl.circleci.com/status-badge/img/gh/orestbida/cookieconsent.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/orestbida/cookieconsent)
6
+
7
+ A __lightweight__ & __gdpr compliant__ cookie consent plugin written in plain javascript.
8
+
9
+ ![CookieConsent v3 cover](demo/assets/cover.png "Cover")
10
+
11
+ ## Demo
12
+ Check out the [playground](https://playground.cookieconsent.orestbida.com).
13
+
14
+ There are also a few examples available on [Stackblitz](https://stackblitz.com/@orestbida/collections/cookieconsent-v3).
15
+
16
+ ## Documentation
17
+ Docs. available at [cookieconsent.orestbida.com](https://cookieconsent.orestbida.com).
18
+
19
+ ## Build & Deploy
20
+ See the [build and deploy guide](/BUILD_AND_DEPLOY.md) for instructions on building artifacts and publishing releases.
21
+
22
+ ## Contributing
23
+ Please read the [contribution guide](/CONTRIBUTING.md).
24
+
25
+ Thanks to all the people who already contributed!
26
+
27
+ <a href="https://github.com/orestbida/cookieconsent/graphs/contributors">
28
+ <img src="https://contrib.rocks/image?repo=orestbida/cookieconsent" />
29
+ </a>
30
+
31
+ <br>
32
+ <br>
33
+
34
+ A special thanks goes [Till Sanders](https://github.com/tillsanders) for creating and maintaining the npm package!
35
+
36
+ ## License
37
+ Distributed under the MIT License. See [LICENSE](https://github.com/orestbida/cookieconsent/blob/master/LICENSE) for more information.
@@ -0,0 +1 @@
1
+ #cc-main{background:transparent;color:var(--cc-primary-color);font-family:var(--cc-font-family);font-size:16px;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.15;position:relative;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;position:fixed;z-index:var(--cc-z-index)}#cc-main :after,#cc-main :before,#cc-main a,#cc-main button,#cc-main div,#cc-main h2,#cc-main input,#cc-main p,#cc-main span{all:unset;box-sizing:border-box}#cc-main .pm__badge,#cc-main button{all:initial;box-sizing:border-box;color:unset;visibility:unset}#cc-main .pm__badge,#cc-main a,#cc-main button,#cc-main input{-webkit-appearance:none;appearance:none;cursor:pointer;font-family:inherit;font-size:100%;line-height:normal;margin:0;outline:revert;outline-offset:2px;overflow:hidden}#cc-main table,#cc-main tbody,#cc-main td,#cc-main th,#cc-main thead,#cc-main tr{all:revert;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}:host,:root{--cc-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--cc-modal-border-radius:.5rem;--cc-btn-border-radius:.4rem;--cc-modal-transition-duration:.25s;--cc-link-color:var(--cc-btn-primary-bg);--cc-modal-margin:1rem;--cc-z-index:2147483647;--cc-bg:#fff;--cc-primary-color:#2c2f31;--cc-secondary-color:#5e6266;--cc-btn-primary-bg:#30363c;--cc-btn-primary-color:#fff;--cc-btn-primary-border-color:var(--cc-btn-primary-bg);--cc-btn-primary-hover-bg:#000;--cc-btn-primary-hover-color:#fff;--cc-btn-primary-hover-border-color:var(--cc-btn-primary-hover-bg);--cc-btn-secondary-bg:#eaeff2;--cc-btn-secondary-color:var(--cc-primary-color);--cc-btn-secondary-border-color:var(--cc-btn-secondary-bg);--cc-btn-secondary-hover-bg:#d4dae0;--cc-btn-secondary-hover-color:#000;--cc-btn-secondary-hover-border-color:#d4dae0;--cc-separator-border-color:#f0f4f7;--cc-toggle-on-bg:var(--cc-btn-primary-bg);--cc-toggle-off-bg:#667481;--cc-toggle-on-knob-bg:#fff;--cc-toggle-off-knob-bg:var(--cc-toggle-on-knob-bg);--cc-toggle-enabled-icon-color:var(--cc-bg);--cc-toggle-disabled-icon-color:var(--cc-bg);--cc-toggle-readonly-bg:#d5dee2;--cc-toggle-readonly-knob-bg:#fff;--cc-toggle-readonly-knob-icon-color:var(--cc-toggle-readonly-bg);--cc-section-category-border:var(--cc-cookie-category-block-bg);--cc-cookie-category-block-bg:#f0f4f7;--cc-cookie-category-block-border:#f0f4f7;--cc-cookie-category-block-hover-bg:#e9eff4;--cc-cookie-category-block-hover-border:#e9eff4;--cc-cookie-category-expanded-block-bg:transparent;--cc-cookie-category-expanded-block-hover-bg:#dee4e9;--cc-overlay-bg:rgba(0,0,0,.65);--cc-webkit-scrollbar-bg:var(--cc-section-category-border);--cc-webkit-scrollbar-hover-bg:var(--cc-btn-primary-hover-bg);--cc-footer-bg:var(--cc-btn-secondary-bg);--cc-footer-color:var(--cc-secondary-color);--cc-footer-border-color:#e4eaed;--cc-pm-toggle-border-radius:4em}#cc-main.cc--rtl{direction:rtl}#cc-main .cm__title,#cc-main a,#cc-main b,#cc-main em,#cc-main strong{font-weight:600}#cc-main button>span{pointer-events:none}#cc-main .cc__link,#cc-main a{background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;font-weight:600;position:relative;transition:background-size .25s,color .25s ease}#cc-main .cc__link:hover,#cc-main a:hover{background-size:100% 1px;color:var(--cc-primary-color)}#cc-main .cc__link{color:var(--cc-link-color)}#cc-main .cm__desc,#cc-main .pm__body{overscroll-behavior:auto contain;scrollbar-width:thin}@media screen and (min-width:640px){#cc-main ::-webkit-scrollbar,#cc-main ::-webkit-scrollbar-thumb,#cc-main ::-webkit-scrollbar-track{all:revert}#cc-main ::-webkit-scrollbar-thumb{-webkit-background-clip:padding-box;background-clip:padding-box;background:var(--cc-toggle-readonly-bg);border:.25rem solid var(--cc-bg);border-radius:1rem}#cc-main ::-webkit-scrollbar-thumb:hover{background:var(--cc-toggle-off-bg)}#cc-main ::-webkit-scrollbar{background:transparent;width:12px}}html.disable--interaction.show--consent,html.disable--interaction.show--consent body{height:auto!important;overflow:hidden!important}@media (prefers-reduced-motion){#cc-main{--cc-modal-transition-duration:0s}}.cc--darkmode{--cc-bg:#161a1c;--cc-primary-color:#ebf3f6;--cc-secondary-color:#aebbc5;--cc-btn-primary-bg:#c2d0e0;--cc-btn-primary-color:var(--cc-bg);--cc-btn-primary-border-color:var(--cc-btn-primary-bg);--cc-btn-primary-hover-bg:#98a7b6;--cc-btn-primary-hover-color:#000;--cc-btn-primary-hover-border-color:var(--cc-btn-primary-hover-bg);--cc-btn-secondary-bg:#242c31;--cc-btn-secondary-color:var(--cc-primary-color);--cc-btn-secondary-border-color:var(--cc-btn-secondary-bg);--cc-btn-secondary-hover-bg:#353d43;--cc-btn-secondary-hover-color:#fff;--cc-btn-secondary-hover-border-color:var(--cc-btn-secondary-hover-bg);--cc-separator-border-color:#222a30;--cc-toggle-on-bg:var(--cc-btn-primary-bg);--cc-toggle-off-bg:#525f6b;--cc-toggle-on-knob-bg:var(--cc-btn-primary-color);--cc-toggle-off-knob-bg:var(--cc-btn-primary-color);--cc-toggle-enabled-icon-color:var(--cc-btn-primary-color);--cc-toggle-disabled-icon-color:var(--cc-btn-primary-color);--cc-toggle-readonly-bg:#343e45;--cc-toggle-readonly-knob-bg:#5f6b72;--cc-toggle-readonly-knob-icon-color:var(--cc-toggle-readonly-bg);--cc-section-category-border:#1e2428;--cc-cookie-category-block-bg:#1e2428;--cc-cookie-category-block-border:var(--cc-section-category-border);--cc-cookie-category-block-hover-bg:#242c31;--cc-cookie-category-block-hover-border:#232a2f;--cc-cookie-category-expanded-block-bg:transparent;--cc-cookie-category-expanded-block-hover-bg:var(--cc-toggle-readonly-bg);--cc-overlay-bg:rgba(0,0,0,.65);--cc-webkit-scrollbar-bg:var(--cc-section-category-border);--cc-webkit-scrollbar-hover-bg:var(--cc-btn-primary-hover-bg);--cc-footer-bg:#0c0e0f;--cc-footer-color:var(--cc-secondary-color);--cc-footer-border-color:#060809}.cc--darkmode #cc-main{color-scheme:dark}#cc-main .cm{background:var(--cc-bg);border-radius:var(--cc-modal-border-radius);box-shadow:0 .625em 1.875em rgba(0,0,2,.3);display:flex;flex-direction:column;max-width:24rem;opacity:0;overflow:hidden;position:fixed;transform:translateY(1.6em);visibility:hidden;z-index:1}#cc-main .cm--top{top:var(--cc-modal-margin)}#cc-main .cm--middle{top:50%;transform:translateY(calc(-50% + 1.6em))}#cc-main .cm--bottom{bottom:var(--cc-modal-margin)}#cc-main .cm--center{left:var(--cc-modal-margin);margin:0 auto;right:var(--cc-modal-margin);width:unset}#cc-main .cm--left{left:var(--cc-modal-margin);margin-right:var(--cc-modal-margin)}#cc-main .cm--right{margin-left:var(--cc-modal-margin);right:var(--cc-modal-margin)}#cc-main .cm__body{display:flex;flex-direction:column;justify-content:space-between;position:relative}#cc-main .cm__btns,#cc-main .cm__links{padding:1rem 1.3rem;width:unset}#cc-main .cm__texts{display:flex;flex:1;flex-direction:column;justify-content:center;padding:1rem 0 0}#cc-main .cm__desc,#cc-main .cm__title{padding:0 1.3rem}#cc-main .cm__title{font-size:1.05em}#cc-main .cm__title+.cm__desc{margin-top:1.1em}#cc-main .cm__desc{color:var(--cc-secondary-color);font-size:.9em;line-height:1.5;max-height:40vh;overflow-x:visible;overflow-y:auto;padding-bottom:1em}#cc-main .cm__btns{border-top:1px solid var(--cc-separator-border-color);display:flex;flex-direction:column;justify-content:center}#cc-main .cm__btn-group{display:grid;grid-auto-columns:minmax(0,1fr)}#cc-main .cm__btn+.cm__btn,#cc-main .cm__btn-group+.cm__btn-group{margin-top:.375rem}#cc-main .cm--flip .cm__btn+.cm__btn,#cc-main .cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:.375rem;margin-top:0}#cc-main .cm--inline .cm__btn+.cm__btn{margin-left:.375rem;margin-top:0}#cc-main .cm--inline.cm--flip .cm__btn+.cm__btn{margin-bottom:0;margin-left:0;margin-right:.375rem}#cc-main .cm--inline.cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:.375rem;margin-right:0}#cc-main .cm--wide .cm__btn+.cm__btn,#cc-main .cm--wide .cm__btn-group+.cm__btn-group{margin-left:.375rem;margin-top:0}#cc-main .cm--wide.cm--flip .cm__btn+.cm__btn,#cc-main .cm--wide.cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:0;margin-right:.375rem}#cc-main .cm--bar:not(.cm--inline) .cm__btn-group--uneven,#cc-main .cm--wide .cm__btn-group--uneven{display:flex;flex:1;justify-content:space-between}#cc-main .cm--bar:not(.cm--inline).cm--flip .cm__btn-group--uneven,#cc-main .cm--wide.cm--flip .cm__btn-group--uneven{flex-direction:row-reverse}#cc-main .cm__btn{background:var(--cc-btn-primary-bg);border:1px solid var(--cc-btn-primary-border-color);border-radius:var(--cc-btn-border-radius);color:var(--cc-btn-primary-color);font-size:.82em;font-weight:600;min-height:42px;padding:.5em 1em;text-align:center}#cc-main .cm__btn:hover{background:var(--cc-btn-primary-hover-bg);border-color:var(--cc-btn-primary-hover-border-color);color:var(--cc-btn-primary-hover-color)}#cc-main .cm__btn--secondary{background:var(--cc-btn-secondary-bg);border-color:var(--cc-btn-secondary-border-color);color:var(--cc-btn-secondary-color)}#cc-main .cm__btn--secondary:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color);color:var(--cc-btn-secondary-hover-color)}#cc-main .cm__btn--close{border-radius:0;border-bottom-left-radius:var(--cc-btn-border-radius);border-right:none;border-top:none;display:none;font-size:1em;height:42px;min-width:auto!important;overflow:hidden;padding:0!important;position:absolute;right:0;top:0;width:42px}#cc-main .cm__btn--close svg{stroke:var(--cc-btn-primary-color);transform:scale(.5);transition:stroke .15s ease}#cc-main .cm__btn--close:hover svg{stroke:var(--cc-btn-primary-hover-color)}#cc-main .cm__btn--close.cm__btn--secondary svg{stroke:var(--cc-btn-secondary-color)}#cc-main .cm__btn--close.cm__btn--secondary:hover svg{stroke:var(--cc-btn-secondary-hover-color)}#cc-main .cm__btn--close+.cm__texts .cm__title{padding-right:3rem}#cc-main .cm--inline .cm__btn-group{grid-auto-flow:column}#cc-main .cm__footer{background:var(--cc-footer-bg);border-top:1px solid var(--cc-footer-border-color);color:var(--cc-footer-color);padding:.4em 0 .5em}#cc-main .cm__links{display:flex;flex-direction:row;padding-bottom:0;padding-top:0}#cc-main .cm__link-group{display:flex;flex-direction:row;font-size:.8em;width:100%}#cc-main .cm__link-group>*+*{margin-left:1.3rem}#cc-main .cm--flip .cm__btn:last-child{grid-row:1}#cc-main .cm--inline.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--box .cm__btn--close{display:block}#cc-main .cm--box.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cm--box.cm--wide{max-width:36em}#cc-main .cm--box.cm--wide .cm__btns{flex-direction:row;justify-content:space-between}#cc-main .cm--box.cm--wide .cm__btn-group{grid-auto-flow:column}#cc-main .cm--box.cm--wide .cm__btn{min-width:120px;padding-left:1.8em;padding-right:1.8em}#cc-main .cm--box.cm--wide.cm--flip .cm__btns{flex-direction:row-reverse}#cc-main .cm--box.cm--wide.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--cloud{max-width:54em;width:unset}#cc-main .cm--cloud .cm__body{flex-direction:row}#cc-main .cm--cloud .cm__texts{flex:1}#cc-main .cm--cloud .cm__desc{max-height:9.4em}#cc-main .cm--cloud .cm__btns{border-left:1px solid var(--cc-separator-border-color);border-top:none;max-width:23em}#cc-main .cm--cloud .cm__btn-group{flex-direction:column}#cc-main .cm--cloud .cm__btn{min-width:19em}#cc-main .cm--cloud.cm--flip .cm__btn-group,#cc-main .cm--cloud.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cm--cloud.cm--inline .cm__btn-group{flex-direction:row}#cc-main .cm--cloud.cm--inline .cm__btn{min-width:10em}#cc-main .cm--cloud.cm--inline.cm--flip .cm__btn-group{flex-direction:row-reverse}#cc-main .cm--bar{border-radius:0;left:0;margin:0;max-width:unset;opacity:1;right:0;transform:translateY(0);width:100vw;--cc-modal-transition-duration:.35s}#cc-main .cm--bar.cm--top{top:0;transform:translateY(-100%)}#cc-main .cm--bar.cm--bottom{bottom:0;transform:translateY(100%)}#cc-main .cm--bar .cm__body,#cc-main .cm--bar .cm__links{margin:0 auto;max-width:55em;width:100%}#cc-main .cm--bar .cm__body{padding:.5em 0 .9em}#cc-main .cm--bar .cm__btns{border-top:none;flex-direction:row;justify-content:space-between}#cc-main .cm--bar .cm__btn-group{grid-auto-flow:column}#cc-main .cm--bar:not(.cm--inline) .cm__btn+.cm__btn,#cc-main .cm--bar:not(.cm--inline) .cm__btn-group+.cm__btn-group{margin-left:.375rem;margin-top:0}#cc-main .cm--bar .cm__btn{min-width:120px;padding-left:2em;padding-right:2em}#cc-main .cm--bar.cm--flip:not(.cm--inline) .cm__btn+.cm__btn,#cc-main .cm--bar.cm--flip:not(.cm--inline) .cm__btn-group+.cm__btn-group{margin-bottom:0;margin-left:0;margin-right:.375rem}#cc-main .cm--bar.cm--flip .cm__btns{flex-direction:row-reverse}#cc-main .cm--bar.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--bar.cm--inline .cm__body,#cc-main .cm--bar.cm--inline .cm__links{max-width:74em}#cc-main .cm--bar.cm--inline .cm__body{flex-direction:row;padding:0}#cc-main .cm--bar.cm--inline .cm__btns{flex-direction:column;justify-content:center;max-width:23em}#cc-main .cm--bar.cm--inline.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cc--anim .cm,#cc-main .cc--anim.cm-wrapper:before{transition:opacity var(--cc-modal-transition-duration) ease,visibility var(--cc-modal-transition-duration) ease,transform var(--cc-modal-transition-duration) ease}#cc-main .cc--anim .cm__btn,#cc-main .cc--anim .cm__close{transition:background-color .15s ease,border-color .15s ease,color .15s ease}.disable--interaction #cc-main .cm-wrapper:before{background:var(--cc-overlay-bg);bottom:0;content:"";left:0;opacity:0;position:fixed;right:0;top:0;visibility:hidden;z-index:0}.show--consent #cc-main .cc--anim .cm{opacity:1;transform:translateY(0);visibility:visible!important}.show--consent #cc-main .cc--anim .cm--middle{transform:translateY(-50%)}.show--consent #cc-main .cc--anim .cm--bar{transform:translateY(0)}.show--consent #cc-main .cc--anim.cm-wrapper:before{opacity:1;visibility:visible}#cc-main.cc--rtl .cm__btn--close{border-bottom-left-radius:unset;border-bottom-right-radius:var(--cc-btn-border-radius);left:0;right:unset}#cc-main.cc--rtl .cm__btn--close+.cm__texts .cm__title{padding-left:3rem!important;padding-right:1.3rem}#cc-main.cc--rtl .cm--inline .cm__btn+.cm__btn{margin-left:0;margin-right:.375rem}#cc-main.cc--rtl .cm--inline.cm--flip .cm__btn+.cm__btn{margin-left:.375rem;margin-right:0}#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar .cm__btn-group+.cm__btn-group,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide .cm__btn-group+.cm__btn-group{margin-left:0;margin-right:.375rem}#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar.cm--flip .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide.cm--flip .cm__btn+.cm__btn{margin-left:.375rem;margin-right:0}#cc-main.cc--rtl .cm__link-group>*+*{margin-left:0;margin-right:1.3rem}@media screen and (max-width:640px){#cc-main{--cc-modal-margin:.5em}#cc-main .cm{max-width:none!important;width:auto!important}#cc-main .cm__body{flex-direction:column!important;padding:0!important}#cc-main .cm__btns,#cc-main .cm__desc,#cc-main .cm__links,#cc-main .cm__title{padding-left:1.1rem!important;padding-right:1.1rem!important}#cc-main .cm__btns{border-left:none!important;border-top:1px solid var(--cc-separator-border-color)!important;flex-direction:column!important;max-width:none!important;min-width:auto!important}#cc-main .cm__btn+.cm__btn,#cc-main .cm__btn-group+.cm__btn-group{margin:.375rem 0 0!important}#cc-main .cm--flip .cm__btn+.cm__btn,#cc-main .cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:.375rem!important;margin-top:0!important}#cc-main .cm__btn-group{display:flex!important;flex-direction:column!important;min-width:auto!important}#cc-main .cm__btn{flex:auto!important}#cc-main .cm__link-group{justify-content:center!important}#cc-main .cm--flip .cm__btn-group,#cc-main .cm--flip .cm__btns{flex-direction:column-reverse!important}}#cc-main .pm-wrapper{position:relative;z-index:2}#cc-main .pm{background:var(--cc-bg);border-radius:var(--cc-modal-border-radius);box-shadow:0 .625em 1.875em rgba(0,0,2,.3);display:flex;flex-direction:column;opacity:0;overflow:hidden;position:fixed;visibility:hidden;width:100%;width:unset;z-index:1}#cc-main svg{fill:none;width:100%}#cc-main .pm__body,#cc-main .pm__footer,#cc-main .pm__header{padding:1em 1.4em}#cc-main .pm__header{align-items:center;border-bottom:1px solid var(--cc-separator-border-color);display:flex;justify-content:space-between}#cc-main .pm__title{align-items:center;display:flex;flex:1;font-weight:600;margin-right:2em}#cc-main .pm__close-btn{background:var(--cc-btn-secondary-bg);border:1px solid var(--cc-btn-secondary-border-color);border-radius:var(--cc-btn-border-radius);height:40px;position:relative;transition:all .15s ease;width:40px}#cc-main .pm__close-btn span{display:flex;height:100%;width:100%}#cc-main .pm__close-btn svg{stroke:var(--cc-btn-secondary-color);transform:scale(.5);transition:stroke .15s ease}#cc-main .pm__close-btn:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color)}#cc-main .pm__close-btn:hover svg{stroke:var(--cc-btn-secondary-hover-color)}#cc-main .pm__body{flex:1;overflow-y:auto}#cc-main .pm__section,#cc-main .pm__section--toggle{border-radius:var(--cc-btn-border-radius);display:flex;flex-direction:column;margin-bottom:.5em}#cc-main .pm__section--toggle .pm__section-desc-wrapper{border:1px solid var(--cc-cookie-category-block-border);border-radius:var(--cc-btn-border-radius);border-top:none;border-top-left-radius:0;border-top-right-radius:0;display:none;margin-top:0!important;overflow:hidden}#cc-main .pm__section{border:1px solid var(--cc-separator-border-color);padding:1em;transition:background-color .25s ease,border-color .25s ease}#cc-main .pm__section:first-child{border:none;margin-bottom:2em;margin-top:0;padding:0;transition:none}#cc-main .pm__section:not(:first-child):hover{background:var(--cc-cookie-category-block-bg);border-color:var(--cc-cookie-category-block-border)}#cc-main .pm__section-toggles+.pm__section{margin-top:2em}#cc-main .pm__section--toggle{background:var(--cc-cookie-category-block-bg);border-top:none;margin-bottom:.375rem}#cc-main .pm__section--toggle .pm__section-title{align-items:center;background:var(--cc-cookie-category-block-bg);border:1px solid var(--cc-cookie-category-block-border);display:flex;justify-content:space-between;min-height:58px;padding:1.1em 5.4em 1.1em 1.2em;position:relative;transition:background-color .25s ease,border-color .25s ease;width:100%}#cc-main .pm__section--toggle .pm__section-title:hover{background:var(--cc-cookie-category-block-hover-bg);border-color:var(--cc-cookie-category-block-hover-border)}#cc-main .pm__section--toggle .pm__section-desc{margin-top:0;padding:1em}#cc-main .pm__section--toggle.is-expanded{--cc-cookie-category-block-bg:var(--cc-cookie-category-expanded-block-bg);--cc-cookie-category-block-border:var(--cc-cookie-category-expanded-block-hover-bg)}#cc-main .pm__section--toggle.is-expanded .pm__section-title{border-bottom-left-radius:0;border-bottom-right-radius:0}#cc-main .pm__section--toggle.is-expanded .pm__section-arrow svg{transform:scale(.5) rotate(180deg)}#cc-main .pm__section--toggle.is-expanded .pm__section-desc-wrapper{display:flex}#cc-main .pm__section--expandable .pm__section-title{cursor:pointer;padding-left:3.4em}#cc-main .pm__section--expandable .pm__section-arrow{background:var(--cc-toggle-readonly-bg);border-radius:100%;display:flex;height:20px;justify-content:center;left:18px;pointer-events:none;position:absolute;width:20px}#cc-main .pm__section--expandable .pm__section-arrow svg{stroke:var(--cc-btn-secondary-color);transform:scale(.5)}#cc-main .pm__section-title-wrapper{align-items:center;display:flex;position:relative}#cc-main .pm__section-title-wrapper+.pm__section-desc-wrapper{margin-top:.85em}#cc-main .pm__section-title{border-radius:var(--cc-btn-border-radius);font-size:.95em;font-weight:600}#cc-main .pm__badge{align-items:center;background:var(--cc-btn-secondary-bg);border-radius:5em;color:var(--cc-secondary-color);display:flex;flex:none;font-size:.8em;font-weight:600;height:23px;justify-content:center;margin-left:1em;min-width:23px;overflow:hidden;padding:0 .6em 1px;position:relative;text-align:center;white-space:nowrap;width:auto}#cc-main .pm__service-counter{background:var(--cc-btn-primary-bg);color:var(--cc-btn-primary-color);padding:0;width:23px}#cc-main .pm__service-counter[data-counterlabel]{padding:0 .6em 1px;width:auto}#cc-main .section__toggle,#cc-main .section__toggle-wrapper,#cc-main .toggle__icon,#cc-main .toggle__label{border-radius:var(--cc-pm-toggle-border-radius);height:23px;transform:translateZ(0);width:50px}#cc-main .section__toggle-wrapper{cursor:pointer;position:absolute;right:18px;z-index:1}#cc-main .toggle-service{height:19px;position:relative;right:0;width:42px}#cc-main .toggle-service .section__toggle,#cc-main .toggle-service .toggle__icon,#cc-main .toggle-service .toggle__label{height:19px;width:42px}#cc-main .toggle-service .toggle__icon{position:relative}#cc-main .toggle-service .toggle__icon-circle{height:19px;width:19px}#cc-main .toggle-service .section__toggle:checked~.toggle__icon .toggle__icon-circle{transform:translateX(23px)}#cc-main .pm__section--toggle:nth-child(2) .section__toggle-wrapper:after{display:none!important}#cc-main .section__toggle{border:0;cursor:pointer;display:block;left:0;margin:0;position:absolute;top:0}#cc-main .section__toggle:disabled{cursor:not-allowed}#cc-main .toggle__icon{background:var(--cc-toggle-off-bg);box-shadow:0 0 0 1px var(--cc-toggle-off-bg);display:flex;flex-direction:row;pointer-events:none;position:absolute;transition:all .25s ease}#cc-main .toggle__icon-circle{background:var(--cc-toggle-off-knob-bg);border:none;border-radius:var(--cc-pm-toggle-border-radius);box-shadow:0 1px 2px rgba(24,32,3,.36);display:block;height:23px;left:0;position:absolute;top:0;transition:transform .25s ease,background-color .25s ease;width:23px}#cc-main .toggle__icon-off,#cc-main .toggle__icon-on{height:100%;position:absolute;transition:opacity .15s ease;width:100%}#cc-main .toggle__icon-on{opacity:0;transform:rotate(45deg)}#cc-main .toggle__icon-on svg{stroke:var(--cc-toggle-on-bg);transform:scale(.55) rotate(-45deg)}#cc-main .toggle__icon-off{opacity:1}#cc-main .toggle__icon-off svg{stroke:var(--cc-toggle-off-bg);transform:scale(.55)}#cc-main .section__toggle:checked~.toggle__icon{background:var(--cc-toggle-on-bg);box-shadow:0 0 0 1px var(--cc-toggle-on-bg)}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-circle{background-color:var(--cc-toggle-on-knob-bg);transform:translateX(27px)}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-on{opacity:1}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-off{opacity:0}#cc-main .section__toggle:checked:disabled~.toggle__icon{background:var(--cc-toggle-readonly-bg);box-shadow:0 0 0 1px var(--cc-toggle-readonly-bg)}#cc-main .section__toggle:checked:disabled~.toggle__icon .toggle__icon-circle{background:var(--cc-toggle-readonly-knob-bg);box-shadow:none}#cc-main .section__toggle:checked:disabled~.toggle__icon svg{stroke:var(--cc-toggle-readonly-knob-icon-color)}#cc-main .toggle__label{opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;z-index:-1}#cc-main .pm__section-desc-wrapper{color:var(--cc-secondary-color);display:flex;flex-direction:column;font-size:.9em}#cc-main .pm__section-desc-wrapper>:not(:last-child){border-bottom:1px solid var(--cc-cookie-category-block-border)}#cc-main .pm__section-services{display:flex;flex-direction:column}#cc-main .pm__service{align-items:center;display:flex;justify-content:space-between;padding:.4em 1.2em;position:relative;transition:background-color .15s ease}#cc-main .pm__service:hover{background-color:var(--cc-cookie-category-block-hover-bg)}#cc-main .pm__service-header{align-items:center;display:flex;margin-right:1em;width:100%}#cc-main .pm__service-icon{border:2px solid;border-radius:100%;height:8px;margin-left:6px;margin-right:20px;margin-top:1px;min-width:8px}#cc-main .pm__service-title{font-size:.95em;width:100%;word-break:break-word}#cc-main .pm__section-desc{line-height:1.5em}#cc-main .pm__section-table{border-collapse:collapse;font-size:.9em;margin:0;overflow:hidden;padding:0;text-align:left;width:100%}#cc-main .pm__table-caption{text-align:left}#cc-main .pm__table-caption,#cc-main .pm__table-head>tr{border-bottom:1px dashed var(--cc-separator-border-color);color:var(--cc-primary-color);font-weight:600}#cc-main .pm__table-tr{transition:background-color .15s ease}#cc-main .pm__table-tr:hover{background:var(--cc-cookie-category-block-hover-bg)}#cc-main .pm__table-caption,#cc-main .pm__table-td,#cc-main .pm__table-th{padding:.625em .625em .625em 1.2em;vertical-align:top}#cc-main .pm__footer{border-top:1px solid var(--cc-separator-border-color);display:flex;justify-content:space-between}#cc-main .pm__btn-group{display:flex}#cc-main .pm__btn+.pm__btn,#cc-main .pm__btn-group+.pm__btn-group{margin-left:.375rem}#cc-main .pm--flip .pm__btn+.pm__btn,#cc-main .pm--flip .pm__btn-group+.pm__btn-group{margin-left:0;margin-right:.375rem}#cc-main .pm__btn{background:var(--cc-btn-primary-bg);border:1px solid var(--cc-btn-primary-border-color);border-radius:var(--cc-btn-border-radius);color:var(--cc-btn-primary-color);flex:auto;font-size:.82em;font-weight:600;min-height:42px;min-width:110px;padding:.5em 1.5em;text-align:center;transition:background-color .15s ease,border-color .15s ease,color .15s ease}#cc-main .pm__btn:hover{background:var(--cc-btn-primary-hover-bg);border-color:var(--cc-btn-primary-hover-border-color);color:var(--cc-btn-primary-hover-color)}#cc-main .pm__btn--secondary{background:var(--cc-btn-secondary-bg);border-color:var(--cc-btn-secondary-border-color);color:var(--cc-btn-secondary-color)}#cc-main .pm__btn--secondary:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color);color:var(--cc-btn-secondary-hover-color)}#cc-main .pm--box{height:calc(100% - 2em);left:var(--cc-modal-margin);margin:0 auto;max-height:37.5em;max-width:43em;right:var(--cc-modal-margin);top:50%;transform:translateY(calc(-50% + 1.6em))}#cc-main .pm--box.pm--flip .pm__btn-group,#cc-main .pm--box.pm--flip .pm__footer{flex-direction:row-reverse}#cc-main .pm--bar{border-radius:0;bottom:0;height:100%;margin:0;max-height:none;max-width:29em;opacity:1;top:0;width:100%;--cc-modal-transition-duration:.35s}#cc-main .pm--bar .pm__section-table,#cc-main .pm--bar .pm__table-body,#cc-main .pm--bar .pm__table-td,#cc-main .pm--bar .pm__table-th,#cc-main .pm--bar .pm__table-tr{display:block}#cc-main .pm--bar .pm__table-head{display:none}#cc-main .pm--bar .pm__table-caption{display:block}#cc-main .pm--bar .pm__table-tr:not(:last-child){border-bottom:1px solid var(--cc-separator-border-color)}#cc-main .pm--bar .pm__table-td{display:flex;justify-content:space-between}#cc-main .pm--bar .pm__table-td:before{color:var(--cc-primary-color);content:attr(data-column);flex:1;font-weight:600;min-width:100px;overflow:hidden;padding-right:2em;text-overflow:ellipsis}#cc-main .pm--bar .pm__table-td>div{flex:3}#cc-main .pm--bar:not(.pm--wide) .pm__body,#cc-main .pm--bar:not(.pm--wide) .pm__footer,#cc-main .pm--bar:not(.pm--wide) .pm__header{padding:1em 1.3em}#cc-main .pm--bar:not(.pm--wide) .pm__btn-group,#cc-main .pm--bar:not(.pm--wide) .pm__footer{flex-direction:column}#cc-main .pm--bar:not(.pm--wide) .pm__btn+.pm__btn,#cc-main .pm--bar:not(.pm--wide) .pm__btn-group+.pm__btn-group{margin:.375rem 0 0}#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn-group,#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__footer{flex-direction:column-reverse}#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn+.pm__btn,#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn-group+.pm__btn-group{margin-bottom:.375rem;margin-top:0}#cc-main .pm--bar:not(.pm--wide) .pm__badge{display:none}#cc-main .pm--bar.pm--left{left:0;transform:translateX(-100%)}#cc-main .pm--bar.pm--right{right:0;transform:translateX(100%)}#cc-main .pm--bar.pm--wide{max-width:35em}#cc-main .pm--bar.pm--wide .pm__body,#cc-main .pm--bar.pm--wide .pm__footer,#cc-main .pm--bar.pm--wide .pm__header{padding:1em 1.4em}#cc-main .pm--bar.pm--wide.pm--flip .pm__btn-group,#cc-main .pm--bar.pm--wide.pm--flip .pm__footer{flex-direction:row-reverse}#cc-main .pm-overlay{background:var(--cc-overlay-bg);bottom:0;content:"";left:0;opacity:0;position:fixed;right:0;top:0;visibility:hidden;z-index:1}#cc-main .cc--anim .pm,#cc-main .cc--anim .pm-overlay{transition:opacity var(--cc-modal-transition-duration) ease,visibility var(--cc-modal-transition-duration) ease,transform var(--cc-modal-transition-duration) ease}.show--preferences #cc-main .cc--anim .pm{opacity:1;visibility:visible!important}.show--preferences #cc-main .cc--anim .pm--box{transform:translateY(-50%)}.show--preferences #cc-main .cc--anim .pm--bar{transform:translateX(0)}.show--preferences #cc-main .cc--anim .pm-overlay{opacity:1;visibility:visible}#cc-main.cc--rtl .pm__service-header{margin-left:1em;margin-right:0}#cc-main.cc--rtl .pm__section-arrow{left:unset;right:18px}#cc-main.cc--rtl .section__toggle-wrapper{left:18px;right:unset;transform-origin:left}#cc-main.cc--rtl .toggle-service{left:0}#cc-main.cc--rtl .pm__service-icon{margin-left:20px;margin-right:5px}#cc-main.cc--rtl .pm__section--toggle .pm__section-title{padding-left:5.4em;padding-right:1.2em}#cc-main.cc--rtl .pm__section--expandable .pm__section-title{padding-right:3.4em}#cc-main.cc--rtl .pm__badge{margin-left:unset;margin-right:1em}#cc-main.cc--rtl .toggle__icon-circle{transform:translateX(27px)}#cc-main.cc--rtl .toggle-service .toggle__icon-circle{transform:translateX(23px)}#cc-main.cc--rtl .section__toggle:checked~.toggle__icon .toggle__icon-circle{transform:translateX(0)}#cc-main.cc--rtl .pm__table-td,#cc-main.cc--rtl .pm__table-th{padding-left:unset;padding-right:1.2em;text-align:right}#cc-main.cc--rtl .pm__table-td{padding-left:unset;padding-right:1.2em}#cc-main.cc--rtl .pm__table-td:before{padding-left:2em;padding-right:unset}#cc-main.cc--rtl .pm__btn+.pm__btn,#cc-main.cc--rtl .pm__btn-group+.pm__btn-group{margin-left:0;margin-right:.375rem}#cc-main.cc--rtl .pm--flip .pm__btn+.pm__btn,#cc-main.cc--rtl .pm--flip .pm__btn-group+.pm__btn-group{margin-left:.375rem;margin-right:0}#cc-main.cc--rtl .pm--flip.pm--bar:not(.pm--wide) .pm__btn+.pm__btn,#cc-main.cc--rtl .pm--flip.pm--bar:not(.pm--wide) .pm__btn-group+.pm__btn-group{margin-left:0}@media screen and (max-width:640px){#cc-main .pm{border-radius:0;bottom:0;height:auto;left:0;max-height:100%;max-width:none!important;right:0;top:0;transform:translateY(1.6em)}#cc-main .pm__body,#cc-main .pm__footer,#cc-main .pm__header{padding:.9em!important}#cc-main .pm__badge{display:none}#cc-main .pm__section-table,#cc-main .pm__table-body,#cc-main .pm__table-caption,#cc-main .pm__table-td,#cc-main .pm__table-th,#cc-main .pm__table-tr{display:block}#cc-main .pm__table-head{display:none}#cc-main .pm__table-tr:not(:last-child){border-bottom:1px solid var(--cc-separator-border-color)}#cc-main .pm__table-td{display:flex;justify-content:space-between}#cc-main .pm__table-td:before{color:var(--cc-primary-color);content:attr(data-column);flex:1;font-weight:600;min-width:100px;overflow:hidden;padding-right:2em;text-overflow:ellipsis}#cc-main .pm__table-td>div{flex:3}#cc-main .pm__btn-group,#cc-main .pm__footer{flex-direction:column!important}#cc-main .pm__btn-group{display:flex!important}#cc-main .pm__btn+.pm__btn,#cc-main .pm__btn-group+.pm__btn-group{margin:.375rem 0 0!important}#cc-main .pm--flip .pm__btn+.pm__btn,#cc-main .pm--flip .pm__btn-group+.pm__btn-group{margin-bottom:.375rem!important;margin-top:0!important}#cc-main .pm--flip .pm__btn-group,#cc-main .pm--flip .pm__footer{flex-direction:column-reverse!important}.show--preferences #cc-main .cc--anim .pm{transform:translateY(0)!important}}
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * CookieConsent 3.1.0
3
+ * https://github.com/orestbida/cookieconsent
4
+ * Author Orest Bida
5
+ * Released under the MIT License
6
+ */
7
+ const e='opt-in',t='opt-out',o='show--consent',n='show--preferences',a='disable--interaction',s='data-category',c='div',r='button',i='aria-hidden',l='btn-group',d='click',f='data-role',_='consentModal',u='preferencesModal';class p{constructor(){this.t={mode:e,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',secure:!0,sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:'',T:!0,D:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:'',P:!1,O:[],R:[],B:[],$:[],G:!1,J:!1,U:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:'cc:onFirstConsent',le:'cc:onConsent',de:'cc:onChange',fe:'cc:onModalShow',_e:'cc:onModalHide',ue:'cc:onModalReady'}}}const g=new p,m=(e,t)=>e.indexOf(t),b=(e,t)=>-1!==m(e,t),v=e=>Array.isArray(e),y=e=>'string'==typeof e,h=e=>!!e&&'object'==typeof e&&!v(e),C=e=>'function'==typeof e,w=e=>Object.keys(e),S=e=>Array.from(new Set(e)),x=()=>document.activeElement,M=e=>e.preventDefault(),T=(e,t)=>e.querySelectorAll(t),D=e=>e.dispatchEvent(new Event('change')),k=e=>{const t=document.createElement(e);return e===r&&(t.type=e),t},E=(e,t,o)=>e.setAttribute(t,o),A=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},N=(e,t,o)=>e.getAttribute(o?'data-'+t:t),H=(e,t)=>e.appendChild(t),V=(e,t)=>e.classList.add(t),I=(e,t)=>V(e,'cm__'+t),L=(e,t)=>V(e,'pm__'+t),j=(e,t)=>e.classList.remove(t),F=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=F(n)}return t},P=()=>{const e={},{O:t,X:o,Y:n}=g.o;for(const a of t)e[a]=$(n[a],w(o[a]));return e},O=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),R=(e,t,o,n)=>{e.addEventListener(t,o),n&&g.o.m.push({pe:e,ge:t,me:o})},B=()=>{const e=g.t.cookie.expiresAfterDays;return C(e)?e(g.o.F):e},$=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!b(n,e))).concat(n.filter((e=>!b(o,e))))},G=e=>{g.o.R=S(e),g.o.F=(()=>{let e='custom';const{R:t,O:o,B:n}=g.o,a=t.length;return a===o.length?e='all':a===n.length&&(e='necessary'),e})()},J=(e,t,o,n)=>{const a='accept-',{show:s,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,f=e||document,_=e=>T(f,`[data-cc="${e}"]`),u=(e,t)=>{M(e),l(t),i(),r()},p=_('show-preferencesModal'),m=_('show-consentModal'),b=_(a+'all'),v=_(a+'necessary'),y=_(a+'custom'),h=g.t.lazyHtmlGeneration;for(const e of p)E(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),c()})),h&&(R(e,'mouseenter',(e=>{M(e),g.o.N||o(t,n)}),!0),R(e,'focus',(()=>{g.o.N||o(t,n)})));for(let e of m)E(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),s(!0)}),!0);for(let e of b)R(e,d,(e=>{u(e,'all')}),!0);for(let e of y)R(e,d,(e=>{u(e)}),!0);for(let e of v)R(e,d,(e=>{u(e,[])}),!0)},U=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute('tabindex'))};let z;const q=e=>{clearTimeout(z),e?V(g.ne.be,a):z=setTimeout((()=>{j(g.ne.be,a)}),500)},K=['M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5','M 3.572 13.406 L 8.281 18.115 L 20.428 5.885','M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 '],Q=(e=0,t=1.5)=>`<svg aria-hidden="true" viewBox="0 0 24 24" stroke-width="${t}"><path d="${K[e]}"/></svg>`,W=e=>{const t=g.ne,o=g.o;(e=>{const n=e===t.ve,a=o.i.disablePageInteraction?t.ye:n?t.he:t.ye;R(a,'keydown',(t=>{if('Tab'!==t.key||!(n?o.k&&!o.A:o.A))return;const a=x(),s=n?o.q:o.K;0!==s.length&&(t.shiftKey?a!==s[0]&&e.contains(a)||(M(t),U(s[1])):a!==s[1]&&e.contains(a)||(M(t),U(s[0])))}),!0)})(e)},X=['[href]',r,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Y=e=>{const{o:t,ne:o}=g,n=(e,t)=>{const o=T(e,X);t[0]=o[0],t[1]=o[o.length-1]};1===e&&t.D&&n(o.ve,t.q),2===e&&t.N&&n(o.Ce,t.K)},Z=(e,t,o)=>{const{de:n,le:a,ie:s,_e:c,ue:r,fe:i}=g.ce,l=g.re;if(t){const n={modalName:t};return e===l.fe?C(i)&&i(n):e===l._e?C(c)&&c(n):(n.modal=o,C(r)&&r(n)),O(e,n)}const d={cookie:g.o.p};e===l.ie?C(s)&&s(F(d)):e===l.le?C(a)&&a(F(d)):(d.changedCategories=g.o.L,d.changedServices=g.o.ee,C(n)&&n(F(d))),O(e,F(d))},ee=(e,t)=>{try{return e()}catch(e){return!t&&console.warn('CookieConsent:',e),!1}},te=e=>{const{Y:t,ee:o,O:n,X:a,oe:c,p:r,L:i}=g.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=a[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.we&&b(t[e],o)?(n.we=!0,C(s)&&s()):n.we&&!b(t[e],o)&&(n.we=!1,C(c)&&c())}}if(!g.t.manageScriptTags)return;const l=c,d=e||r.categories||[],f=(e,n)=>{if(n>=e.length)return;const a=c[n];if(a.Se)return f(e,n+1);const r=a.xe,l=a.Me,_=a.Te,u=b(d,l),p=!!_&&b(t[l],_);if(!_&&!a.De&&u||!_&&a.De&&!u&&b(i,l)||_&&!a.De&&p||_&&a.De&&!p&&b(o[l]||[],_)){a.Se=!0;const t=N(r,'type',!0);A(r,'type',!!t),A(r,s);let o=N(r,'src',!0);o&&A(r,'src',!0);const c=k('script');c.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)E(c,e,r[e]||N(r,e));t&&(c.type=t),o?c.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(c.onload=c.onerror=()=>{f(e,++n)}),r.replaceWith(c),i)return}f(e,++n)};f(l,0)},oe='bottom',ne='left',ae='center',se='right',ce='inline',re='wide',ie='pm--',le=['middle','top',oe],de=[ne,ae,se],fe={box:{ke:[re,ce],Ee:le,Ae:de,Ne:oe,He:se},cloud:{ke:[ce],Ee:le,Ae:de,Ne:oe,He:ae},bar:{ke:[ce],Ee:le.slice(1),Ae:[],Ne:oe,He:''}},_e={box:{ke:[],Ee:[],Ae:[],Ne:'',He:''},bar:{ke:[re],Ee:[],Ae:[ne,se],Ne:'',He:ne}},ue=e=>{const t=g.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&pe(g.ne.ve,fe,o,'cm--','box','cm'),1===e&&pe(g.ne.Ce,_e,n,ie,'box','pm')},pe=(e,t,o,n,a,s)=>{e.className=s;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=!o||!1!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],m=b(p.ke,_)&&_,v=r&&r.split(' ')||[],y=v[0],h=n===ie?v[0]:v[1],C=b(p.Ee,y)?y:p.Ne,w=b(p.Ae,h)?h:p.He,S=t=>{t&&V(e,n+t)};S(u),S(m),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ve:e,Ie:t}=g.ne;e&&(l?j(e,x):V(e,x)),t&&(l?j(t,x):V(t,x))}else{const{Le:e}=g.ne;e&&(l?j(e,x):V(e,x))}},ge=(e,t)=>{const o=g.o,n=g.ne,{hide:a,hidePreferences:s,acceptCategory:_}=e,p=e=>{_(e),s(),a()},m=o.u&&o.u.preferencesModal;if(!m)return;const b=m.title,v=m.closeIconLabel,C=m.acceptAllBtn,S=m.acceptNecessaryBtn,x=m.savePreferencesBtn,M=m.sections||[],T=C||S||x;if(n.je)n.Fe=k(c),L(n.Fe,'body');else{n.je=k(c),V(n.je,'pm-wrapper');const e=k('div');V(e,'pm-overlay'),H(n.je,e),R(e,d,s),n.Ce=k(c),V(n.Ce,'pm'),E(n.Ce,'role','dialog'),E(n.Ce,i,!0),E(n.Ce,'aria-modal',!0),E(n.Ce,'aria-labelledby','pm__title'),R(n.ye,'keydown',(e=>{27===e.keyCode&&s()}),!0),n.Pe=k(c),L(n.Pe,'header'),n.Oe=k('h2'),L(n.Oe,'title'),n.Oe.id='pm__title',n.Re=k(r),L(n.Re,'close-btn'),E(n.Re,'aria-label',m.closeIconLabel||''),R(n.Re,d,s),n.Be=k('span'),n.Be.innerHTML=Q(),H(n.Re,n.Be),n.$e=k(c),L(n.$e,'body'),n.Ge=k(c),L(n.Ge,'footer');var D=k(c);V(D,'btns');var N=k(c),I=k(c);L(N,l),L(I,l),H(n.Ge,N),H(n.Ge,I),H(n.Pe,n.Oe),H(n.Pe,n.Re),n.Je=n.Oe,E(n.Je,'tabIndex',-1),H(n.Ce,n.Pe),H(n.Ce,n.$e),T&&H(n.Ce,n.Ge),H(n.je,n.Ce)}let F;b&&(n.Oe.innerHTML=b,v&&E(n.Re,'aria-label',v)),M.forEach(((e,t)=>{const a=e.title,s=e.description,l=e.linkedCategory,f=l&&o.P[l],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,g=u&&u.length>0,b=!!f,v=b&&o.X[l],C=h(v)&&w(v)||[],S=b&&(!!s||!!g||w(v).length>0);var x=k(c);if(L(x,'section'),S||s){var M=k(c);L(M,'section-desc-wrapper')}let T=C.length;if(S&&T>0){const e=k(c);L(e,'section-services');for(const t of C){const o=v[t],n=o&&o.label||t,a=k(c),s=k(c),r=k(c),i=k(c);L(a,'service'),L(i,'service-title'),L(s,'service-header'),L(r,'service-icon');const d=me(n,t,f,!0,l);i.innerHTML=n,H(s,r),H(s,i),H(a,s),H(a,d),H(e,a)}H(M,e)}if(a){var D=k(c),N=k(b?r:c);if(L(D,'section-title-wrapper'),L(N,'section-title'),N.innerHTML=a,H(D,N),b){const e=k('span');e.innerHTML=Q(2,3.5),L(e,'section-arrow'),H(D,e),x.className+='--toggle';const t=me(a,l,f);let o=m.serviceCounterLabel;if(T>0&&y(o)){let e=k('span');L(e,'badge'),L(e,'service-counter'),E(e,i,!0),E(e,'data-servicecounter',T),o&&(o=o.split('|'),o=o.length>1&&T>1?o[1]:o[0],E(e,'data-counterlabel',o)),e.innerHTML=T+(o?' '+o:''),H(N,e)}if(S){L(x,'section--expandable');var I=l+'-desc';E(N,'aria-expanded',!1),E(N,'aria-controls',I)}H(D,t)}else E(N,'role','heading'),E(N,'aria-level','3');H(x,D)}if(s){var P=k('p');L(P,'section-desc'),P.innerHTML=s,H(M,P)}if(S&&(E(M,i,'true'),M.id=I,((e,t,o)=>{R(N,d,(()=>{t.classList.contains('is-expanded')?(j(t,'is-expanded'),E(o,'aria-expanded','false'),E(e,i,'true')):(V(t,'is-expanded'),E(o,'aria-expanded','true'),A(e,i))}))})(M,x,N),g)){const e=k('table'),o=k('thead'),a=k('tbody');if(p){const t=k('caption');L(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}L(e,'section-table'),L(o,'table-head'),L(a,'table-body');const s=_.headers,r=w(s),i=n.Ue.createDocumentFragment(),l=k('tr');for(const e of r){const o=s[e],n=k('th');n.id='cc__row-'+o+t,E(n,'scope','col'),L(n,'table-th'),n.innerHTML=o,H(i,n)}H(l,i),H(o,l);const d=n.Ue.createDocumentFragment();for(const e of u){const o=k('tr');L(o,'table-tr');for(const n of r){const a=s[n],r=e[n],i=k('td'),l=k(c);L(i,'table-td'),E(i,'data-column',a),E(i,'headers','cc__row-'+a+t),l.insertAdjacentHTML('beforeend',r),H(i,l),H(o,i)}H(d,o)}H(a,d),H(e,o),H(e,a),H(M,e)}(S||s)&&H(x,M);const O=n.Fe||n.$e;b?(F||(F=k(c),L(F,'section-toggles')),F.appendChild(x)):F=null,H(O,F||x)})),C&&(n.ze||(n.ze=k(r),L(n.ze,'btn'),E(n.ze,f,'all'),H(N,n.ze),R(n.ze,d,(()=>p('all')))),n.ze.innerHTML=C),S&&(n.Le||(n.Le=k(r),L(n.Le,'btn'),E(n.Le,f,'necessary'),H(N,n.Le),R(n.Le,d,(()=>p([])))),n.Le.innerHTML=S),x&&(n.qe||(n.qe=k(r),L(n.qe,'btn'),L(n.qe,'btn--secondary'),E(n.qe,f,'save'),H(I,n.qe),R(n.qe,d,(()=>p()))),n.qe.innerHTML=x),n.Fe&&(n.Ce.replaceChild(n.Fe,n.$e),n.$e=n.Fe),ue(1),o.N||(o.N=!0,Z(g.re.ue,u,n.Ce),t(e),H(n.he,n.je),W(n.Ce),setTimeout((()=>V(n.je,'cc--anim')),100)),Y(2)};function me(e,t,o,n,a){const c=g.o,r=g.ne,l=k('label'),f=k('input'),_=k('span'),u=k('span'),p=k('span'),m=k('span'),v=k('span');if(m.innerHTML=Q(1,3),v.innerHTML=Q(0,3),f.type='checkbox',V(l,'section__toggle-wrapper'),V(f,'section__toggle'),V(m,'toggle__icon-on'),V(v,'toggle__icon-off'),V(_,'toggle__icon'),V(u,'toggle__icon-circle'),V(p,'toggle__label'),E(_,i,'true'),n?(V(l,'toggle-service'),E(f,s,a),r.se[a][t]=f):r.ae[t]=f,n?(e=>{R(f,'change',(()=>{const t=r.se[e],o=r.ae[e];c.Z[e]=[];for(let o in t){const n=t[o];n.checked&&c.Z[e].push(n.value)}o.checked=c.Z[e].length>0}))})(a):(e=>{R(f,d,(()=>{const t=r.se[e],o=f.checked;c.Z[e]=[];for(let n in t)t[n].checked=o,o&&c.Z[e].push(n)}))})(t),f.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,''),H(u,v),H(u,m),H(_,u),c.T)(o.readOnly||o.enabled)&&(f.checked=!0);else if(n){const e=c.Y[a];f.checked=o.readOnly||b(e,t)}else b(c.R,t)&&(f.checked=!0);return o.readOnly&&(f.disabled=!0),H(l,f),H(l,_),H(l,p),l}const be=()=>{const e=k('span');return g.ne.Ke||(g.ne.Ke=e),e},ve=(e,t)=>{const o=g.o,n=g.ne,{hide:a,showPreferences:s,acceptCategory:i}=e,u=o.u&&o.u.consentModal;if(!u)return;const p=u.acceptAllBtn,m=u.acceptNecessaryBtn,b=u.showPreferencesBtn,v=u.closeIconLabel,y=u.footer,h=u.label,C=u.title,w=e=>{a(),i(e)};if(!n.Qe){n.Qe=k(c),n.ve=k(c),n.We=k(c),n.Xe=k(c),n.Ye=k(c),V(n.Qe,'cm-wrapper'),V(n.ve,'cm'),I(n.We,'body'),I(n.Xe,'texts'),I(n.Ye,'btns'),o.v?(E(n.ve,'role','dialog'),E(n.ve,'aria-modal','true')):E(n.ve,'role','region'),h?E(n.ve,'aria-label',h):C&&(E(n.ve,'aria-labelledby','cm__title'),E(n.ve,'aria-describedby','cm__desc'));const e='box',t=o.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;C&&v&&s&&(n.Ie||(n.Ie=k(r),n.Ie.innerHTML=Q(),I(n.Ie,'btn'),I(n.Ie,'btn--close'),R(n.Ie,d,(()=>{w([])})),H(n.We,n.Ie)),E(n.Ie,'aria-label',v)),H(n.We,n.Xe),(p||m||b)&&H(n.We,n.Ye),H(n.ve,n.We),H(n.Qe,n.ve),n.Ze=n.ve,E(n.Ze,'tabIndex',-1)}C&&(n.et||(n.et=k('h2'),n.et.className=n.et.id='cm__title',H(n.Xe,n.et)),n.et.innerHTML=C);let S=u.description;if(S&&(o.V&&(S=S.replace('{{revisionMessage}}',o.I?'':u.revisionMessage||'')),n.tt||(n.tt=k('p'),n.tt.className=n.tt.id='cm__desc',H(n.Xe,n.tt)),n.tt.innerHTML=S),p&&(n.ot||(n.ot=k(r),H(n.ot,be()),I(n.ot,'btn'),E(n.ot,f,'all'),R(n.ot,d,(()=>{w('all')}))),n.ot.firstElementChild.innerHTML=p),m&&(n.Ve||(n.Ve=k(r),H(n.Ve,be()),I(n.Ve,'btn'),E(n.Ve,f,'necessary'),R(n.Ve,d,(()=>{w([])}))),n.Ve.firstElementChild.innerHTML=m),b&&(n.nt||(n.nt=k(r),H(n.nt,be()),I(n.nt,'btn'),I(n.nt,'btn--secondary'),E(n.nt,f,'show'),E(n.nt,'aria-haspopup','dialog'),R(n.nt,'mouseenter',(()=>{o.N||ge(e,t)})),R(n.nt,d,s)),n.nt.firstElementChild.innerHTML=b),n.st||(n.st=k(c),I(n.st,l),p&&H(n.st,n.ot),m&&H(n.st,n.Ve),(p||m)&&H(n.We,n.st),H(n.Ye,n.st)),n.nt&&!n.ct&&(n.ct=k(c),n.Ve&&n.ot?(I(n.ct,l),H(n.ct,n.nt),H(n.Ye,n.ct)):(H(n.st,n.nt),I(n.st,l+'--uneven'))),y){if(!n.rt){let e=k(c),t=k(c);n.rt=k(c),I(e,'footer'),I(t,'links'),I(n.rt,'link-group'),H(t,n.rt),H(e,t),H(n.ve,e)}n.rt.innerHTML=y}ue(0),o.D||(o.D=!0,Z(g.re.ue,_,n.ve),t(e),H(n.he,n.Qe),W(n.ve)),Y(1),J(n.We,e,ge,t)},ye=e=>{if(!y(e))return null;if(e in g.o._)return e;let t=e.slice(0,2);return t in g.o._?t:null},he=()=>g.o.l||g.o.i.language.default,Ce=e=>{e&&(g.o.l=e)},we=async e=>{const t=g.o;let o=ye(e)??he(),n=t._[o];if(y(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):C(n)&&(n=await n()),!n)throw`Could not load translation for the '${o}' language`;return t.u=n,Ce(o),!0},Se=()=>{let e=g.o.i.language.rtl,t=g.ne.he;e&&t&&(v(e)||(e=[e]),b(e,g.o.l)?V(t,'cc--rtl'):j(t,'cc--rtl'))},xe=()=>{const e=g.ne;e.he||(e.he=k(c),e.he.id='cc-main',e.he.setAttribute('data-nosnippet',''),Se(),e.be.appendChild(e.he))},Me=e=>ee((()=>localStorage.removeItem(e))),Te=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const o=m(e,t);return o>-1?[e[o]]:[]}},De=e=>{const{hostname:t,protocol:o}=location,{name:n,path:a,domain:s,sameSite:c,useLocalStorage:r,secure:i}=g.t.cookie,l=e?(()=>{const e=g.o.S,t=e?new Date-e:0;return 864e5*B()-t})():864e5*B(),d=new Date;d.setTime(d.getTime()+l),g.o.p.expirationTime=d.getTime();const f=JSON.stringify(g.o.p);let _=n+'='+encodeURIComponent(f)+(0!==l?'; expires='+d.toUTCString():'')+'; Path='+a+'; SameSite='+c;b(t,'.')&&(_+='; Domain='+s),i&&'https:'===o&&(_+='; Secure'),r?((e,t)=>{ee((()=>localStorage.setItem(e,t)))})(n,f):document.cookie=_,g.o.p},ke=(e,t,o)=>{if(0===e.length)return;const n=o||g.t.cookie.domain,a=t||g.t.cookie.path,s='www.'===n.slice(0,4),c=s&&n.substring(4),r=(e,t)=>{t&&'.'!==t.slice(0,1)&&(t='.'+t),document.cookie=e+'=; path='+a+(t?'; domain='+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t,o),o||r(t,n),s&&r(t,c)},Ee=e=>{const t=e||g.t.cookie.name,o=g.t.cookie.useLocalStorage;return((e,t)=>{let o;return o=ee((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},o})(o?(n=t,ee((()=>localStorage.getItem(n)))||''):Ae(t,!0),o);var n},Ae=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},Ne=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];e?ee((()=>{e.test(t)&&o.push(t)})):o.push(t)}return o},He=(o,n=[])=>{((e,t)=>{const{O:o,R:n,B:a,N:s,Z:c,$:r,X:i}=g.o;let l=[];if(e){v(e)?l.push(...e):y(e)&&(l='all'===e?o:[e]);for(const e of o)c[e]=b(l,e)?w(i[e]):[]}else l=[...n,...r],s&&(l=(()=>{const e=g.ne.ae;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})());l=l.filter((e=>!b(o,e)||!b(t,e))),l.push(...a),G(l)})(o,n),(()=>{const e=g.o,{Z:t,B:o,Y:n,X:a,O:s}=e,c=s;e.te=F(n);for(const s of c){const c=a[s],r=w(c),i=t[s]&&t[s].length>0,l=b(o,s);if(0!==r.length){if(n[s]=[],l)n[s].push(...r);else if(i){const e=t[s];n[s].push(...e)}else n[s]=e.Z[s];n[s]=S(n[s])}}})(),(()=>{const o=g.o;o.L=g.t.mode===t&&o.T?$(o.$,o.R):$(o.R,o.p.categories);let n=o.L.length>0,a=!1;for(const e of o.O)o.ee[e]=$(o.Y[e],o.te[e]),o.ee[e].length>0&&(a=!0);const s=g.ne.ae;for(const e in s)s[e].checked=b(o.R,e);for(const e of o.O){const t=g.ne.se[e],n=o.Y[e];for(const e in t)t[e].checked=b(n,e)}o.C||(o.C=new Date),o.M||(o.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),o.p={categories:F(o.R),revision:g.t.revision,data:o.h,consentTimestamp:o.C.toISOString(),consentId:o.M,services:F(o.Y),languageCode:g.o.l},o.S&&(o.p.lastConsentTimestamp=o.S.toISOString());let c=!1;const r=n||a;(o.T||r)&&(o.T&&(o.T=!1,c=!0),o.S=o.S?new Date:o.C,o.p.lastConsentTimestamp=o.S.toISOString(),De(),g.t.autoClearCookies&&(c||r)&&(e=>{const t=g.o,o=Ne(),n=(e=>{const t=g.o;return(e?t.O:t.L).filter((e=>{const o=t.P[e];return!!o&&!o.readOnly&&!!o.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const a=t.X[e][n].cookies;if(!b(t.Y[e],n)&&a)for(const e of a){const t=Te(o,e.name);ke(t,e.path,e.domain)}}for(const a of n){const n=t.P[a].autoClear,s=n&&n.cookies||[],c=b(t.L,a),r=!b(t.R,a),i=c&&r;if(e?r:i){n.reloadPage&&i&&(t.j=!0);for(const e of s){const t=Te(o,e.name);ke(t,e.path,e.domain)}}}})(c),te()),c&&(Z(g.re.ie),Z(g.re.le),g.t.mode===e)||(r&&Z(g.re.de),o.j&&(o.j=!1,location.reload()))})()},Ve=e=>{const t=g.o.T?[]:g.o.R;return b(t,e)},Ie=(e,t)=>{const{O:o,X:n}=g.o;if(!(e&&t&&y(t)&&b(o,t)&&0!==w(n[t]).length))return!1;((e,t)=>{const o=g.o,{X:n,Z:a,N:s}=o,c=g.ne.se[t]||{},r=g.ne.ae[t]||{},i=w(n[t]);if(a[t]=[],y(e)){if('all'===e){if(a[t].push(...i),s)for(let e in c)c[e].checked=!0,D(c[e])}else if(b(i,e)&&a[t].push(e),s)for(let t in c)c[t].checked=e===t,D(c[t])}else if(v(e))for(let o of i){const n=b(e,o);n&&a[t].push(o),s&&(c[o].checked=n,D(c[o]))}const l=0===a[t].length;o.R=l?o.R.filter((e=>e!==t)):S([...o.R,t]),s&&(r.checked=!l,D(r))})(e,t),He()},Le=(e,t)=>{const o=g.o.T?[]:g.o.Y[t]||[];return b(o,e)},je=e=>''!==Ae(e,!0),Fe=(e,t,o)=>{let n=[];const a=e=>{if(y(e)){let t=Ae(e);''!==t&&n.push(t)}else n.push(...Ne(e))};if(v(e))for(let t of e)a(t);else a(e);ke(n,t,o)},Pe=e=>{const{ne:t,o:n}=g;if(!n.k){if(!n.D){if(!e)return;ve($e,xe)}n.k=!0,n.J=x(),n.v&&q(!0),V(t.be,o),A(t.ve,i),setTimeout((()=>{V(g.ne.Qe,'cc--anim')}),100),setTimeout((()=>{U(g.ne.Ze)}),200),Z(g.re.fe,_)}},Oe=()=>{const{ne:e,o:t,re:n}=g;t.k&&(t.k=!1,t.v&&q(),U(e.Ke,!0),j(e.be,o),E(e.ve,i,'true'),U(t.J),t.J=null,setTimeout((()=>j(e.Qe,'cc--anim')),100),Z(n._e,_))},Re=()=>{const e=g.o;e.A||(e.N||ge($e,xe),e.A=!0,e.k?e.U=x():e.J=x(),V(g.ne.be,n),A(g.ne.Ce,i),setTimeout((()=>{U(g.ne.Je)}),100),Z(g.re.fe,u))},Be=()=>{const e=g.o;e.A&&(e.A=!1,(()=>{const e=Qe(),t=g.o.P,o=g.ne.ae,n=g.ne.se,a=e=>b(g.o.$,e);for(const s in o){const c=!!t[s].readOnly;o[s].checked=c||(e?Ve(s):a(s));for(const t in n[s])n[s][t].checked=c||(e?Le(t,s):a(s))}})(),U(g.ne.Be,!0),j(g.ne.be,n),E(g.ne.Ce,i,'true'),e.k?(U(e.U),e.U=null):(U(e.J),e.J=null),Z(g.re._e,u))};var $e={show:Pe,hide:Oe,showPreferences:Re,hidePreferences:Be,acceptCategory:He};const Ge=async(e,t)=>{if(!ye(e))return!1;const o=g.o;return!(e===he()&&!0!==t||!await we(e)||(o.D&&ve($e,xe),o.N&&ge($e,xe),Se(),0))},Je=()=>{const{F:e,Y:t}=g.o,{accepted:o,rejected:n}=(()=>{const{T:e,R:t,O:o}=g.o;return{accepted:t,rejected:e?[]:o.filter((e=>!b(t,e)))}})();return F({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:P()})},Ue=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=k('script'),h(t))for(const e in t)E(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,H(document.head,o)}))},ze=e=>{let t,o=e.value,n=e.mode,a=!1;const s=g.o;if('update'===n){s.h=t=qe('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],a=!0)}else!e&&t||t===o||(t=o,a=!0)}else t=o,a=!0;return a&&(s.h=t,s.p.data=t,De(!0)),a},qe=(e,t)=>{const o=Ee(t);return e?o[e]:o},Ke=e=>{const t=g.t,o=g.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},Qe=()=>!g.o.T,We=async e=>{const{o:o,t:n,re:a}=g,c=window;if(!c._ccRun){if(c._ccRun=!0,(e=>{const{ne:o,t:n,o:a}=g,c=n,r=a,{cookie:i}=c,l=g.ce,d=e.cookie,f=e.categories,_=w(f)||[],u=navigator,p=document;o.Ue=p,o.ye=p.documentElement;const m=e.root;o.be=(m&&y(m)?p.querySelector(m):m)||p.documentElement,i.domain=location.hostname,r.i=e,r.P=f,r.O=_,r._=e.language.translations,r.v=!!e.disablePageInteraction,l.ie=e.onFirstConsent,l.le=e.onConsent,l.de=e.onChange,l._e=e.onModalHide,l.fe=e.onModalShow,l.ue=e.onModalReady;const{mode:v,autoShow:C,lazyHtmlGeneration:S,autoClearCookies:x,revision:M,manageScriptTags:D,hideFromBots:k}=e;v===t&&(c.mode=v),'boolean'==typeof x&&(c.autoClearCookies=x),'boolean'==typeof D&&(c.manageScriptTags=D),'number'==typeof M&&M>=0&&(c.revision=M,r.V=!0),'boolean'==typeof C&&(c.autoShow=C),'boolean'==typeof S&&(c.lazyHtmlGeneration=S),!1===k&&(c.hideFromBots=!1),!0===c.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),h(d)&&(c.cookie={...i,...d}),c.autoClearCookies,r.V,c.manageScriptTags,(e=>{const{P:t,X:o,Y:n,Z:a,B:s}=g.o;for(let c of e){const e=t[c],r=e.services||{},i=h(r)&&w(r)||[];o[c]={},n[c]=[],a[c]=[],e.readOnly&&(s.push(c),n[c]=i),g.ne.se[c]={};for(let e of i){const t=r[e];t.we=!1,o[c][e]=t}}})(_),(()=>{if(!g.t.manageScriptTags)return;const e=g.o,t=T(document,'script['+s+']');for(const o of t){let t=N(o,s),n=o.dataset.service||'',a=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=!0),'!'===n.charAt(0)&&(n=n.slice(1),a=!0),b(e.O,t)&&(e.oe.push({xe:o,Se:!1,De:a,Me:t,Te:n}),n)){const o=e.X[t];o[n]||(o[n]={we:!1})}}})(),Ce((()=>{const e=g.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},o=ye(t[e]);if(o)return o}return he()})())})(e),o.G)return;(()=>{const e=g.o,o=g.t,n=Ee(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=v(a);e.p=n,e.M=c;const _=!!c&&y(c);e.C=r,e.C&&(e.C=new Date(r)),e.S=i,e.S&&(e.S=new Date(i)),e.h=void 0!==l?l:null,e.V&&_&&d!==o.revision&&(e.I=!1),e.T=!(_&&e.I&&e.C&&e.S&&f),o.cookie.useLocalStorage&&!e.T&&(e.T=(new Date).getTime()>(n.expirationTime||0),e.T&&Me(o.cookie.name)),e.T,(()=>{const e=g.o;for(const o of e.O){const n=e.P[o];if(n.readOnly||n.enabled){e.$.push(o);const n=e.X[o]||{};for(let a in n)e.Z[o].push(a),e.i.mode===t&&e.Y[o].push(a)}}})(),e.T?o.mode===t&&(e.R=[...e.$]):(e.Y={...e.Y,...s},e.Z={...e.Y},G([...e.B,...a]))})();const i=Qe();if(!await we())return!1;if(J(null,r=$e,ge,xe),g.o.T&&ve(r,xe),g.t.lazyHtmlGeneration||ge(r,xe),n.autoShow&&!i&&Pe(!0),i)return te(),Z(a.le);n.mode===t&&te(o.$)}var r},Xe=e=>{const{he:t}=g.ne,{name:s,path:c,domain:r,useLocalStorage:i}=g.t.cookie;e&&(i?Me(s):Fe(s,c,r));for(const{pe:e,ge:t,me:o}of g.o.m)e.removeEventListener(t,o);t&&t.remove();const l=g.ne.be;l&&l.classList.remove(a,n,o);const d=new p;for(const e in g)g[e]=d[e];window._ccRun=!1};export{He as acceptCategory,Ie as acceptService,Ve as acceptedCategory,Le as acceptedService,Fe as eraseCookies,Ke as getConfig,qe as getCookie,Je as getUserPreferences,Oe as hide,Be as hidePreferences,Ue as loadScript,Xe as reset,We as run,ze as setCookieData,Ge as setLanguage,Pe as show,Re as showPreferences,Qe as validConsent,je as validCookie};
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * CookieConsent 3.1.0
3
+ * https://github.com/orestbida/cookieconsent
4
+ * Author Orest Bida
5
+ * Released under the MIT License
6
+ */
7
+ var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='show--consent',a='show--preferences',s='disable--interaction',c='data-category',r='div',i='button',l='aria-hidden',d='btn-group',f='click',_='data-role',u='consentModal',p='preferencesModal';class g{constructor(){this.t={mode:t,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',secure:!0,sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:'',T:!0,D:!1,k:!1,A:!1,N:!1,H:[],V:!1,j:!0,I:[],L:!1,F:'',P:!1,O:[],R:[],B:[],$:[],G:!1,J:!1,U:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:'cc:onFirstConsent',le:'cc:onConsent',de:'cc:onChange',fe:'cc:onModalShow',_e:'cc:onModalHide',ue:'cc:onModalReady'}}}const m=new g,b=(e,t)=>e.indexOf(t),v=(e,t)=>-1!==b(e,t),y=e=>Array.isArray(e),h=e=>'string'==typeof e,C=e=>!!e&&'object'==typeof e&&!y(e),w=e=>'function'==typeof e,S=e=>Object.keys(e),x=e=>Array.from(new Set(e)),M=()=>document.activeElement,T=e=>e.preventDefault(),D=(e,t)=>e.querySelectorAll(t),k=e=>e.dispatchEvent(new Event('change')),E=e=>{const t=document.createElement(e);return e===i&&(t.type=e),t},A=(e,t,o)=>e.setAttribute(t,o),N=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},H=(e,t,o)=>e.getAttribute(o?'data-'+t:t),V=(e,t)=>e.appendChild(t),j=(e,t)=>e.classList.add(t),I=(e,t)=>j(e,'cm__'+t),L=(e,t)=>j(e,'pm__'+t),F=(e,t)=>e.classList.remove(t),P=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=P(n)}return t},O=()=>{const e={},{O:t,X:o,Y:n}=m.o;for(const a of t)e[a]=G(n[a],S(o[a]));return e},R=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),B=(e,t,o,n)=>{e.addEventListener(t,o),n&&m.o.m.push({pe:e,ge:t,me:o})},$=()=>{const e=m.t.cookie.expiresAfterDays;return w(e)?e(m.o.F):e},G=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!v(n,e))).concat(n.filter((e=>!v(o,e))))},J=e=>{m.o.R=x(e),m.o.F=(()=>{let e='custom';const{R:t,O:o,B:n}=m.o,a=t.length;return a===o.length?e='all':a===n.length&&(e='necessary'),e})()},U=(e,t,o,n)=>{const a='accept-',{show:s,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,d=e||document,_=e=>D(d,`[data-cc="${e}"]`),u=(e,t)=>{T(e),l(t),i(),r()},p=_('show-preferencesModal'),g=_('show-consentModal'),b=_(a+'all'),v=_(a+'necessary'),y=_(a+'custom'),h=m.t.lazyHtmlGeneration;for(const e of p)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{T(e),c()})),h&&(B(e,'mouseenter',(e=>{T(e),m.o.N||o(t,n)}),!0),B(e,'focus',(()=>{m.o.N||o(t,n)})));for(let e of g)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{T(e),s(!0)}),!0);for(let e of b)B(e,f,(e=>{u(e,'all')}),!0);for(let e of y)B(e,f,(e=>{u(e)}),!0);for(let e of v)B(e,f,(e=>{u(e,[])}),!0)},z=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute('tabindex'))};let q;const K=e=>{clearTimeout(q),e?j(m.ne.be,s):q=setTimeout((()=>{F(m.ne.be,s)}),500)},Q=['M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5','M 3.572 13.406 L 8.281 18.115 L 20.428 5.885','M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 '],W=(e=0,t=1.5)=>`<svg aria-hidden="true" viewBox="0 0 24 24" stroke-width="${t}"><path d="${Q[e]}"/></svg>`,X=e=>{const t=m.ne,o=m.o;(e=>{const n=e===t.ve,a=o.i.disablePageInteraction?t.ye:n?t.he:t.ye;B(a,'keydown',(t=>{if('Tab'!==t.key||!(n?o.k&&!o.A:o.A))return;const a=M(),s=n?o.q:o.K;0!==s.length&&(t.shiftKey?a!==s[0]&&e.contains(a)||(T(t),z(s[1])):a!==s[1]&&e.contains(a)||(T(t),z(s[0])))}),!0)})(e)},Y=['[href]',i,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Z=e=>{const{o:t,ne:o}=m,n=(e,t)=>{const o=D(e,Y);t[0]=o[0],t[1]=o[o.length-1]};1===e&&t.D&&n(o.ve,t.q),2===e&&t.N&&n(o.Ce,t.K)},ee=(e,t,o)=>{const{de:n,le:a,ie:s,_e:c,ue:r,fe:i}=m.ce,l=m.re;if(t){const n={modalName:t};return e===l.fe?w(i)&&i(n):e===l._e?w(c)&&c(n):(n.modal=o,w(r)&&r(n)),R(e,n)}const d={cookie:m.o.p};e===l.ie?w(s)&&s(P(d)):e===l.le?w(a)&&a(P(d)):(d.changedCategories=m.o.I,d.changedServices=m.o.ee,w(n)&&n(P(d))),R(e,P(d))},te=(e,t)=>{try{return e()}catch(e){return!t&&console.warn('CookieConsent:',e),!1}},oe=e=>{const{Y:t,ee:o,O:n,X:a,oe:s,p:r,I:i}=m.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=a[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.we&&v(t[e],o)?(n.we=!0,w(s)&&s()):n.we&&!v(t[e],o)&&(n.we=!1,w(c)&&c())}}if(!m.t.manageScriptTags)return;const l=s,d=e||r.categories||[],f=(e,n)=>{if(n>=e.length)return;const a=s[n];if(a.Se)return f(e,n+1);const r=a.xe,l=a.Me,_=a.Te,u=v(d,l),p=!!_&&v(t[l],_);if(!_&&!a.De&&u||!_&&a.De&&!u&&v(i,l)||_&&!a.De&&p||_&&a.De&&!p&&v(o[l]||[],_)){a.Se=!0;const t=H(r,'type',!0);N(r,'type',!!t),N(r,c);let o=H(r,'src',!0);o&&N(r,'src',!0);const s=E('script');s.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)A(s,e,r[e]||H(r,e));t&&(s.type=t),o?s.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(s.onload=s.onerror=()=>{f(e,++n)}),r.replaceWith(s),i)return}f(e,++n)};f(l,0)},ne='bottom',ae='left',se='center',ce='right',re='inline',ie='wide',le='pm--',de=['middle','top',ne],fe=[ae,se,ce],_e={box:{ke:[ie,re],Ee:de,Ae:fe,Ne:ne,He:ce},cloud:{ke:[re],Ee:de,Ae:fe,Ne:ne,He:se},bar:{ke:[re],Ee:de.slice(1),Ae:[],Ne:ne,He:''}},ue={box:{ke:[],Ee:[],Ae:[],Ne:'',He:''},bar:{ke:[ie],Ee:[],Ae:[ae,ce],Ne:'',He:ae}},pe=e=>{const t=m.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&ge(m.ne.ve,_e,o,'cm--','box','cm'),1===e&&ge(m.ne.Ce,ue,n,le,'box','pm')},ge=(e,t,o,n,a,s)=>{e.className=s;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=!o||!1!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],g=v(p.ke,_)&&_,b=r&&r.split(' ')||[],y=b[0],h=n===le?b[0]:b[1],C=v(p.Ee,y)?y:p.Ne,w=v(p.Ae,h)?h:p.He,S=t=>{t&&j(e,n+t)};S(u),S(g),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ve:e,je:t}=m.ne;e&&(l?F(e,x):j(e,x)),t&&(l?F(t,x):j(t,x))}else{const{Ie:e}=m.ne;e&&(l?F(e,x):j(e,x))}},me=(e,t)=>{const o=m.o,n=m.ne,{hide:a,hidePreferences:s,acceptCategory:c}=e,u=e=>{c(e),s(),a()},g=o.u&&o.u.preferencesModal;if(!g)return;const b=g.title,v=g.closeIconLabel,y=g.acceptAllBtn,w=g.acceptNecessaryBtn,x=g.savePreferencesBtn,M=g.sections||[],T=y||w||x;if(n.Le)n.Fe=E(r),L(n.Fe,'body');else{n.Le=E(r),j(n.Le,'pm-wrapper');const e=E('div');j(e,'pm-overlay'),V(n.Le,e),B(e,f,s),n.Ce=E(r),j(n.Ce,'pm'),A(n.Ce,'role','dialog'),A(n.Ce,l,!0),A(n.Ce,'aria-modal',!0),A(n.Ce,'aria-labelledby','pm__title'),B(n.ye,'keydown',(e=>{27===e.keyCode&&s()}),!0),n.Pe=E(r),L(n.Pe,'header'),n.Oe=E('h2'),L(n.Oe,'title'),n.Oe.id='pm__title',n.Re=E(i),L(n.Re,'close-btn'),A(n.Re,'aria-label',g.closeIconLabel||''),B(n.Re,f,s),n.Be=E('span'),n.Be.innerHTML=W(),V(n.Re,n.Be),n.$e=E(r),L(n.$e,'body'),n.Ge=E(r),L(n.Ge,'footer');var D=E(r);j(D,'btns');var k=E(r),H=E(r);L(k,d),L(H,d),V(n.Ge,k),V(n.Ge,H),V(n.Pe,n.Oe),V(n.Pe,n.Re),n.Je=n.Oe,A(n.Je,'tabIndex',-1),V(n.Ce,n.Pe),V(n.Ce,n.$e),T&&V(n.Ce,n.Ge),V(n.Le,n.Ce)}let I;b&&(n.Oe.innerHTML=b,v&&A(n.Re,'aria-label',v)),M.forEach(((e,t)=>{const a=e.title,s=e.description,c=e.linkedCategory,d=c&&o.P[c],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,m=u&&u.length>0,b=!!d,v=b&&o.X[c],y=C(v)&&S(v)||[],w=b&&(!!s||!!m||S(v).length>0);var x=E(r);if(L(x,'section'),w||s){var M=E(r);L(M,'section-desc-wrapper')}let T=y.length;if(w&&T>0){const e=E(r);L(e,'section-services');for(const t of y){const o=v[t],n=o&&o.label||t,a=E(r),s=E(r),i=E(r),l=E(r);L(a,'service'),L(l,'service-title'),L(s,'service-header'),L(i,'service-icon');const f=be(n,t,d,!0,c);l.innerHTML=n,V(s,i),V(s,l),V(a,s),V(a,f),V(e,a)}V(M,e)}if(a){var D=E(r),k=E(b?i:r);if(L(D,'section-title-wrapper'),L(k,'section-title'),k.innerHTML=a,V(D,k),b){const e=E('span');e.innerHTML=W(2,3.5),L(e,'section-arrow'),V(D,e),x.className+='--toggle';const t=be(a,c,d);let o=g.serviceCounterLabel;if(T>0&&h(o)){let e=E('span');L(e,'badge'),L(e,'service-counter'),A(e,l,!0),A(e,'data-servicecounter',T),o&&(o=o.split('|'),o=o.length>1&&T>1?o[1]:o[0],A(e,'data-counterlabel',o)),e.innerHTML=T+(o?' '+o:''),V(k,e)}if(w){L(x,'section--expandable');var H=c+'-desc';A(k,'aria-expanded',!1),A(k,'aria-controls',H)}V(D,t)}else A(k,'role','heading'),A(k,'aria-level','3');V(x,D)}if(s){var P=E('p');L(P,'section-desc'),P.innerHTML=s,V(M,P)}if(w&&(A(M,l,'true'),M.id=H,((e,t,o)=>{B(k,f,(()=>{t.classList.contains('is-expanded')?(F(t,'is-expanded'),A(o,'aria-expanded','false'),A(e,l,'true')):(j(t,'is-expanded'),A(o,'aria-expanded','true'),N(e,l))}))})(M,x,k),m)){const e=E('table'),o=E('thead'),a=E('tbody');if(p){const t=E('caption');L(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}L(e,'section-table'),L(o,'table-head'),L(a,'table-body');const s=_.headers,c=S(s),i=n.Ue.createDocumentFragment(),l=E('tr');for(const e of c){const o=s[e],n=E('th');n.id='cc__row-'+o+t,A(n,'scope','col'),L(n,'table-th'),n.innerHTML=o,V(i,n)}V(l,i),V(o,l);const d=n.Ue.createDocumentFragment();for(const e of u){const o=E('tr');L(o,'table-tr');for(const n of c){const a=s[n],c=e[n],i=E('td'),l=E(r);L(i,'table-td'),A(i,'data-column',a),A(i,'headers','cc__row-'+a+t),l.insertAdjacentHTML('beforeend',c),V(i,l),V(o,i)}V(d,o)}V(a,d),V(e,o),V(e,a),V(M,e)}(w||s)&&V(x,M);const O=n.Fe||n.$e;b?(I||(I=E(r),L(I,'section-toggles')),I.appendChild(x)):I=null,V(O,I||x)})),y&&(n.ze||(n.ze=E(i),L(n.ze,'btn'),A(n.ze,_,'all'),V(k,n.ze),B(n.ze,f,(()=>u('all')))),n.ze.innerHTML=y),w&&(n.Ie||(n.Ie=E(i),L(n.Ie,'btn'),A(n.Ie,_,'necessary'),V(k,n.Ie),B(n.Ie,f,(()=>u([])))),n.Ie.innerHTML=w),x&&(n.qe||(n.qe=E(i),L(n.qe,'btn'),L(n.qe,'btn--secondary'),A(n.qe,_,'save'),V(H,n.qe),B(n.qe,f,(()=>u()))),n.qe.innerHTML=x),n.Fe&&(n.Ce.replaceChild(n.Fe,n.$e),n.$e=n.Fe),pe(1),o.N||(o.N=!0,ee(m.re.ue,p,n.Ce),t(e),V(n.he,n.Le),X(n.Ce),setTimeout((()=>j(n.Le,'cc--anim')),100)),Z(2)};function be(e,t,o,n,a){const s=m.o,r=m.ne,i=E('label'),d=E('input'),_=E('span'),u=E('span'),p=E('span'),g=E('span'),b=E('span');if(g.innerHTML=W(1,3),b.innerHTML=W(0,3),d.type='checkbox',j(i,'section__toggle-wrapper'),j(d,'section__toggle'),j(g,'toggle__icon-on'),j(b,'toggle__icon-off'),j(_,'toggle__icon'),j(u,'toggle__icon-circle'),j(p,'toggle__label'),A(_,l,'true'),n?(j(i,'toggle-service'),A(d,c,a),r.se[a][t]=d):r.ae[t]=d,n?(e=>{B(d,'change',(()=>{const t=r.se[e],o=r.ae[e];s.Z[e]=[];for(let o in t){const n=t[o];n.checked&&s.Z[e].push(n.value)}o.checked=s.Z[e].length>0}))})(a):(e=>{B(d,f,(()=>{const t=r.se[e],o=d.checked;s.Z[e]=[];for(let n in t)t[n].checked=o,o&&s.Z[e].push(n)}))})(t),d.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,''),V(u,b),V(u,g),V(_,u),s.T)(o.readOnly||o.enabled)&&(d.checked=!0);else if(n){const e=s.Y[a];d.checked=o.readOnly||v(e,t)}else v(s.R,t)&&(d.checked=!0);return o.readOnly&&(d.disabled=!0),V(i,d),V(i,_),V(i,p),i}const ve=()=>{const e=E('span');return m.ne.Ke||(m.ne.Ke=e),e},ye=(e,t)=>{const o=m.o,n=m.ne,{hide:a,showPreferences:s,acceptCategory:c}=e,l=o.u&&o.u.consentModal;if(!l)return;const p=l.acceptAllBtn,g=l.acceptNecessaryBtn,b=l.showPreferencesBtn,v=l.closeIconLabel,y=l.footer,h=l.label,C=l.title,w=e=>{a(),c(e)};if(!n.Qe){n.Qe=E(r),n.ve=E(r),n.We=E(r),n.Xe=E(r),n.Ye=E(r),j(n.Qe,'cm-wrapper'),j(n.ve,'cm'),I(n.We,'body'),I(n.Xe,'texts'),I(n.Ye,'btns'),o.v?(A(n.ve,'role','dialog'),A(n.ve,'aria-modal','true')):A(n.ve,'role','region'),h?A(n.ve,'aria-label',h):C&&(A(n.ve,'aria-labelledby','cm__title'),A(n.ve,'aria-describedby','cm__desc'));const e='box',t=o.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;C&&v&&s&&(n.je||(n.je=E(i),n.je.innerHTML=W(),I(n.je,'btn'),I(n.je,'btn--close'),B(n.je,f,(()=>{w([])})),V(n.We,n.je)),A(n.je,'aria-label',v)),V(n.We,n.Xe),(p||g||b)&&V(n.We,n.Ye),V(n.ve,n.We),V(n.Qe,n.ve),n.Ze=n.ve,A(n.Ze,'tabIndex',-1)}C&&(n.et||(n.et=E('h2'),n.et.className=n.et.id='cm__title',V(n.Xe,n.et)),n.et.innerHTML=C);let S=l.description;if(S&&(o.V&&(S=S.replace('{{revisionMessage}}',o.j?'':l.revisionMessage||'')),n.tt||(n.tt=E('p'),n.tt.className=n.tt.id='cm__desc',V(n.Xe,n.tt)),n.tt.innerHTML=S),p&&(n.ot||(n.ot=E(i),V(n.ot,ve()),I(n.ot,'btn'),A(n.ot,_,'all'),B(n.ot,f,(()=>{w('all')}))),n.ot.firstElementChild.innerHTML=p),g&&(n.Ve||(n.Ve=E(i),V(n.Ve,ve()),I(n.Ve,'btn'),A(n.Ve,_,'necessary'),B(n.Ve,f,(()=>{w([])}))),n.Ve.firstElementChild.innerHTML=g),b&&(n.nt||(n.nt=E(i),V(n.nt,ve()),I(n.nt,'btn'),I(n.nt,'btn--secondary'),A(n.nt,_,'show'),A(n.nt,'aria-haspopup','dialog'),B(n.nt,'mouseenter',(()=>{o.N||me(e,t)})),B(n.nt,f,s)),n.nt.firstElementChild.innerHTML=b),n.st||(n.st=E(r),I(n.st,d),p&&V(n.st,n.ot),g&&V(n.st,n.Ve),(p||g)&&V(n.We,n.st),V(n.Ye,n.st)),n.nt&&!n.ct&&(n.ct=E(r),n.Ve&&n.ot?(I(n.ct,d),V(n.ct,n.nt),V(n.Ye,n.ct)):(V(n.st,n.nt),I(n.st,d+'--uneven'))),y){if(!n.rt){let e=E(r),t=E(r);n.rt=E(r),I(e,'footer'),I(t,'links'),I(n.rt,'link-group'),V(t,n.rt),V(e,t),V(n.ve,e)}n.rt.innerHTML=y}pe(0),o.D||(o.D=!0,ee(m.re.ue,u,n.ve),t(e),V(n.he,n.Qe),X(n.ve)),Z(1),U(n.We,e,me,t)},he=e=>{if(!h(e))return null;if(e in m.o._)return e;let t=e.slice(0,2);return t in m.o._?t:null},Ce=()=>m.o.l||m.o.i.language.default,we=e=>{e&&(m.o.l=e)},Se=async e=>{const t=m.o;let o=he(e)??Ce(),n=t._[o];if(h(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):w(n)&&(n=await n()),!n)throw`Could not load translation for the '${o}' language`;return t.u=n,we(o),!0},xe=()=>{let e=m.o.i.language.rtl,t=m.ne.he;e&&t&&(y(e)||(e=[e]),v(e,m.o.l)?j(t,'cc--rtl'):F(t,'cc--rtl'))},Me=()=>{const e=m.ne;e.he||(e.he=E(r),e.he.id='cc-main',e.he.setAttribute('data-nosnippet',''),xe(),e.be.appendChild(e.he))},Te=e=>te((()=>localStorage.removeItem(e))),De=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const o=b(e,t);return o>-1?[e[o]]:[]}},ke=e=>{const{hostname:t,protocol:o}=location,{name:n,path:a,domain:s,sameSite:c,useLocalStorage:r,secure:i}=m.t.cookie,l=e?(()=>{const e=m.o.S,t=e?new Date-e:0;return 864e5*$()-t})():864e5*$(),d=new Date;d.setTime(d.getTime()+l),m.o.p.expirationTime=d.getTime();const f=JSON.stringify(m.o.p);let _=n+'='+encodeURIComponent(f)+(0!==l?'; expires='+d.toUTCString():'')+'; Path='+a+'; SameSite='+c;v(t,'.')&&(_+='; Domain='+s),i&&'https:'===o&&(_+='; Secure'),r?((e,t)=>{te((()=>localStorage.setItem(e,t)))})(n,f):document.cookie=_,m.o.p},Ee=(e,t,o)=>{if(0===e.length)return;const n=o||m.t.cookie.domain,a=t||m.t.cookie.path,s='www.'===n.slice(0,4),c=s&&n.substring(4),r=(e,t)=>{t&&'.'!==t.slice(0,1)&&(t='.'+t),document.cookie=e+'=; path='+a+(t?'; domain='+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t,o),o||r(t,n),s&&r(t,c)},Ae=e=>{const t=e||m.t.cookie.name,o=m.t.cookie.useLocalStorage;return((e,t)=>{let o;return o=te((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},o})(o?(n=t,te((()=>localStorage.getItem(n)))||''):Ne(t,!0),o);var n},Ne=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},He=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];e?te((()=>{e.test(t)&&o.push(t)})):o.push(t)}return o},Ve=(e,n=[])=>{((e,t)=>{const{O:o,R:n,B:a,N:s,Z:c,$:r,X:i}=m.o;let l=[];if(e){y(e)?l.push(...e):h(e)&&(l='all'===e?o:[e]);for(const e of o)c[e]=v(l,e)?S(i[e]):[]}else l=[...n,...r],s&&(l=(()=>{const e=m.ne.ae;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})());l=l.filter((e=>!v(o,e)||!v(t,e))),l.push(...a),J(l)})(e,n),(()=>{const e=m.o,{Z:t,B:o,Y:n,X:a,O:s}=e,c=s;e.te=P(n);for(const s of c){const c=a[s],r=S(c),i=t[s]&&t[s].length>0,l=v(o,s);if(0!==r.length){if(n[s]=[],l)n[s].push(...r);else if(i){const e=t[s];n[s].push(...e)}else n[s]=e.Z[s];n[s]=x(n[s])}}})(),(()=>{const e=m.o;e.I=m.t.mode===o&&e.T?G(e.$,e.R):G(e.R,e.p.categories);let n=e.I.length>0,a=!1;for(const t of e.O)e.ee[t]=G(e.Y[t],e.te[t]),e.ee[t].length>0&&(a=!0);const s=m.ne.ae;for(const t in s)s[t].checked=v(e.R,t);for(const t of e.O){const o=m.ne.se[t],n=e.Y[t];for(const e in o)o[e].checked=v(n,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:P(e.R),revision:m.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:P(e.Y),languageCode:m.o.l},e.S&&(e.p.lastConsentTimestamp=e.S.toISOString());let c=!1;const r=n||a;(e.T||r)&&(e.T&&(e.T=!1,c=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),ke(),m.t.autoClearCookies&&(c||r)&&(e=>{const t=m.o,o=He(),n=(e=>{const t=m.o;return(e?t.O:t.I).filter((e=>{const o=t.P[e];return!!o&&!o.readOnly&&!!o.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const a=t.X[e][n].cookies;if(!v(t.Y[e],n)&&a)for(const e of a){const t=De(o,e.name);Ee(t,e.path,e.domain)}}for(const a of n){const n=t.P[a].autoClear,s=n&&n.cookies||[],c=v(t.I,a),r=!v(t.R,a),i=c&&r;if(e?r:i){n.reloadPage&&i&&(t.L=!0);for(const e of s){const t=De(o,e.name);Ee(t,e.path,e.domain)}}}})(c),oe()),c&&(ee(m.re.ie),ee(m.re.le),m.t.mode===t)||(r&&ee(m.re.de),e.L&&(e.L=!1,location.reload()))})()},je=e=>{const t=m.o.T?[]:m.o.R;return v(t,e)},Ie=(e,t)=>{const o=m.o.T?[]:m.o.Y[t]||[];return v(o,e)},Le=(e,t,o)=>{let n=[];const a=e=>{if(h(e)){let t=Ne(e);''!==t&&n.push(t)}else n.push(...He(e))};if(y(e))for(let t of e)a(t);else a(e);Ee(n,t,o)},Fe=e=>{const{ne:t,o:o}=m;if(!o.k){if(!o.D){if(!e)return;ye(Be,Me)}o.k=!0,o.J=M(),o.v&&K(!0),j(t.be,n),N(t.ve,l),setTimeout((()=>{j(m.ne.Qe,'cc--anim')}),100),setTimeout((()=>{z(m.ne.Ze)}),200),ee(m.re.fe,u)}},Pe=()=>{const{ne:e,o:t,re:o}=m;t.k&&(t.k=!1,t.v&&K(),z(e.Ke,!0),F(e.be,n),A(e.ve,l,'true'),z(t.J),t.J=null,setTimeout((()=>F(e.Qe,'cc--anim')),100),ee(o._e,u))},Oe=()=>{const e=m.o;e.A||(e.N||me(Be,Me),e.A=!0,e.k?e.U=M():e.J=M(),j(m.ne.be,a),N(m.ne.Ce,l),setTimeout((()=>{z(m.ne.Je)}),100),ee(m.re.fe,p))},Re=()=>{const e=m.o;e.A&&(e.A=!1,(()=>{const e=Ge(),t=m.o.P,o=m.ne.ae,n=m.ne.se,a=e=>v(m.o.$,e);for(const s in o){const c=!!t[s].readOnly;o[s].checked=c||(e?je(s):a(s));for(const t in n[s])n[s][t].checked=c||(e?Ie(t,s):a(s))}})(),z(m.ne.Be,!0),F(m.ne.be,a),A(m.ne.Ce,l,'true'),e.k?(z(e.U),e.U=null):(z(e.J),e.J=null),ee(m.re._e,p))};var Be={show:Fe,hide:Pe,showPreferences:Oe,hidePreferences:Re,acceptCategory:Ve};const $e=(e,t)=>{const o=Ae(t);return e?o[e]:o},Ge=()=>!m.o.T;e.acceptCategory=Ve,e.acceptService=(e,t)=>{const{O:o,X:n}=m.o;if(!(e&&t&&h(t)&&v(o,t)&&0!==S(n[t]).length))return!1;((e,t)=>{const o=m.o,{X:n,Z:a,N:s}=o,c=m.ne.se[t]||{},r=m.ne.ae[t]||{},i=S(n[t]);if(a[t]=[],h(e)){if('all'===e){if(a[t].push(...i),s)for(let e in c)c[e].checked=!0,k(c[e])}else if(v(i,e)&&a[t].push(e),s)for(let t in c)c[t].checked=e===t,k(c[t])}else if(y(e))for(let o of i){const n=v(e,o);n&&a[t].push(o),s&&(c[o].checked=n,k(c[o]))}const l=0===a[t].length;o.R=l?o.R.filter((e=>e!==t)):x([...o.R,t]),s&&(r.checked=!l,k(r))})(e,t),Ve()},e.acceptedCategory=je,e.acceptedService=Ie,e.eraseCookies=Le,e.getConfig=e=>{const t=m.t,o=m.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=$e,e.getUserPreferences=()=>{const{F:e,Y:t}=m.o,{accepted:o,rejected:n}=(()=>{const{T:e,R:t,O:o}=m.o;return{accepted:t,rejected:e?[]:o.filter((e=>!v(t,e)))}})();return P({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:O()})},e.hide=Pe,e.hidePreferences=Re,e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=E('script'),C(t))for(const e in t)A(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,V(document.head,o)}))},e.reset=e=>{const{he:t}=m.ne,{name:o,path:c,domain:r,useLocalStorage:i}=m.t.cookie;e&&(i?Te(o):Le(o,c,r));for(const{pe:e,ge:t,me:o}of m.o.m)e.removeEventListener(t,o);t&&t.remove();const l=m.ne.be;l&&l.classList.remove(s,a,n);const d=new g;for(const e in m)m[e]=d[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:n,re:a}=m,s=window;if(!s._ccRun){if(s._ccRun=!0,(e=>{const{ne:t,t:n,o:a}=m,s=n,r=a,{cookie:i}=s,l=m.ce,d=e.cookie,f=e.categories,_=S(f)||[],u=navigator,p=document;t.Ue=p,t.ye=p.documentElement;const g=e.root;t.be=(g&&h(g)?p.querySelector(g):g)||p.documentElement,i.domain=location.hostname,r.i=e,r.P=f,r.O=_,r._=e.language.translations,r.v=!!e.disablePageInteraction,l.ie=e.onFirstConsent,l.le=e.onConsent,l.de=e.onChange,l._e=e.onModalHide,l.fe=e.onModalShow,l.ue=e.onModalReady;const{mode:b,autoShow:y,lazyHtmlGeneration:w,autoClearCookies:x,revision:M,manageScriptTags:T,hideFromBots:k}=e;b===o&&(s.mode=b),'boolean'==typeof x&&(s.autoClearCookies=x),'boolean'==typeof T&&(s.manageScriptTags=T),'number'==typeof M&&M>=0&&(s.revision=M,r.V=!0),'boolean'==typeof y&&(s.autoShow=y),'boolean'==typeof w&&(s.lazyHtmlGeneration=w),!1===k&&(s.hideFromBots=!1),!0===s.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),C(d)&&(s.cookie={...i,...d}),s.autoClearCookies,r.V,s.manageScriptTags,(e=>{const{P:t,X:o,Y:n,Z:a,B:s}=m.o;for(let c of e){const e=t[c],r=e.services||{},i=C(r)&&S(r)||[];o[c]={},n[c]=[],a[c]=[],e.readOnly&&(s.push(c),n[c]=i),m.ne.se[c]={};for(let e of i){const t=r[e];t.we=!1,o[c][e]=t}}})(_),(()=>{if(!m.t.manageScriptTags)return;const e=m.o,t=D(document,'script['+c+']');for(const o of t){let t=H(o,c),n=o.dataset.service||'',a=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=!0),'!'===n.charAt(0)&&(n=n.slice(1),a=!0),v(e.O,t)&&(e.oe.push({xe:o,Se:!1,De:a,Me:t,Te:n}),n)){const o=e.X[t];o[n]||(o[n]={we:!1})}}})(),we((()=>{const e=m.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},o=he(t[e]);if(o)return o}return Ce()})())})(e),t.G)return;(()=>{const e=m.o,t=m.t,n=Ae(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=y(a);e.p=n,e.M=c;const _=!!c&&h(c);e.C=r,e.C&&(e.C=new Date(r)),e.S=i,e.S&&(e.S=new Date(i)),e.h=void 0!==l?l:null,e.V&&_&&d!==t.revision&&(e.j=!1),e.T=!(_&&e.j&&e.C&&e.S&&f),t.cookie.useLocalStorage&&!e.T&&(e.T=(new Date).getTime()>(n.expirationTime||0),e.T&&Te(t.cookie.name)),e.T,(()=>{const e=m.o;for(const t of e.O){const n=e.P[t];if(n.readOnly||n.enabled){e.$.push(t);const n=e.X[t]||{};for(let a in n)e.Z[t].push(a),e.i.mode===o&&e.Y[t].push(a)}}})(),e.T?t.mode===o&&(e.R=[...e.$]):(e.Y={...e.Y,...s},e.Z={...e.Y},J([...e.B,...a]))})();const i=Ge();if(!await Se())return!1;if(U(null,r=Be,me,Me),m.o.T&&ye(r,Me),m.t.lazyHtmlGeneration||me(r,Me),n.autoShow&&!i&&Fe(!0),i)return oe(),ee(a.le);n.mode===o&&oe(t.$)}var r},e.setCookieData=e=>{let t,o=e.value,n=e.mode,a=!1;const s=m.o;if('update'===n){s.h=t=$e('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],a=!0)}else!e&&t||t===o||(t=o,a=!0)}else t=o,a=!0;return a&&(s.h=t,s.p.data=t,ke(!0)),a},e.setLanguage=async(e,t)=>{if(!he(e))return!1;const o=m.o;return!(e===Ce()&&!0!==t||!await Se(e)||(o.D&&ye(Be,Me),o.N&&me(Be,Me),xe(),0))},e.show=Fe,e.showPreferences=Oe,e.validConsent=Ge,e.validCookie=e=>''!==Ne(e,!0)},'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t((e='undefined'!=typeof globalThis?globalThis:e||self).CookieConsent={});
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * CookieConsent 3.1.0
3
+ * https://github.com/orestbida/cookieconsent
4
+ * Author Orest Bida
5
+ * Released under the MIT License
6
+ */
7
+ const e='opt-in',t='opt-out',o='data-category';class n{constructor(){this.t={mode:e,revision:0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',secure:!0,sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],C:!1,v:null,S:null,h:null,D:'',T:!0,N:!1,k:!0,j:[],O:!1,A:'',I:!1,R:[],F:[],L:[],M:[],P:!1,J:{},U:{},B:{},G:{},H:{},q:[]},this.K={},this.V={W:'cc:onFirstConsent',X:'cc:onConsent',Y:'cc:onChange'}}}const s=new n,c=(e,t)=>e.indexOf(t),a=(e,t)=>-1!==c(e,t),r=e=>Array.isArray(e),i=e=>'string'==typeof e,l=e=>!!e&&'object'==typeof e&&!r(e),d=e=>'function'==typeof e,f=e=>Object.keys(e),_=e=>Array.from(new Set(e)),u=e=>document.createElement(e),p=(e,t,o)=>e.setAttribute(t,o),g=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},m=(e,t,o)=>e.getAttribute(o?'data-'+t:t),C=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=C(n)}return t},v=()=>{const e={},{R:t,J:o,U:n}=s.o;for(const s of t)e[s]=S(n[s],f(o[s]));return e},y=()=>{const e=s.t.cookie.expiresAfterDays;return d(e)?e(s.o.A):e},S=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!a(n,e))).concat(n.filter((e=>!a(o,e))))},h=e=>{s.o.F=_(e),s.o.A=(()=>{let e='custom';const{F:t,R:o,L:n}=s.o,c=t.length;return c===o.length?e='all':c===n.length&&(e='necessary'),e})()},w=(e,t,o)=>{const{Y:n,X:c,W:a,Z:r,$:i,ee:l}=s.K,f=s.V,_={cookie:s.o.p};e===f.W?d(a)&&a(C(_)):e===f.X?d(c)&&c(C(_)):(_.changedCategories=s.o.j,_.changedServices=s.o.G,d(n)&&n(C(_))),((e,t)=>{dispatchEvent(new CustomEvent(e,{detail:t}))})(e,C(_))},D=(e,t)=>{try{return e()}catch(e){return!t&&console.warn('CookieConsent:',e),!1}},b=e=>{const{U:t,G:n,R:c,J:r,q:i,p:l,j:f}=s.o;for(const e of c){const o=n[e]||t[e]||[];for(const n of o){const o=r[e][n];if(!o)continue;const{onAccept:s,onReject:c}=o;!o.te&&a(t[e],n)?(o.te=!0,d(s)&&s()):o.te&&!a(t[e],n)&&(o.te=!1,d(c)&&c())}}if(!s.t.manageScriptTags)return;const _=i,C=e||l.categories||[],v=(e,s)=>{if(s>=e.length)return;const c=i[s];if(c.oe)return v(e,s+1);const r=c.ne,l=c.se,d=c.ce,_=a(C,l),y=!!d&&a(t[l],d);if(!d&&!c.ae&&_||!d&&c.ae&&!_&&a(f,l)||d&&!c.ae&&y||d&&c.ae&&!y&&a(n[l]||[],d)){c.oe=!0;const t=m(r,'type',!0);g(r,'type',!!t),g(r,o);let n=m(r,'src',!0);n&&g(r,'src',!0);const a=u('script');a.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)p(a,e,r[e]||m(r,e));t&&(a.type=t),n?a.src=n:n=r.src;const i=!!n&&(!t||['text/javascript','module'].includes(t));if(i&&(a.onload=a.onerror=()=>{v(e,++s)}),r.replaceWith(a),i)return}v(e,++s)};v(_,0)},T=e=>D((()=>localStorage.removeItem(e))),N=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const o=c(e,t);return o>-1?[e[o]]:[]}},k=e=>{const{hostname:t,protocol:o}=location,{name:n,path:c,domain:r,sameSite:i,useLocalStorage:l,secure:d}=s.t.cookie,f=e?(()=>{const e=s.o.h,t=e?new Date-e:0;return 864e5*y()-t})():864e5*y(),_=new Date;_.setTime(_.getTime()+f),s.o.p.expirationTime=_.getTime();const u=JSON.stringify(s.o.p);let p=n+'='+encodeURIComponent(u)+(0!==f?'; expires='+_.toUTCString():'')+'; Path='+c+'; SameSite='+i;a(t,'.')&&(p+='; Domain='+r),d&&'https:'===o&&(p+='; Secure'),l?((e,t)=>{D((()=>localStorage.setItem(e,t)))})(n,u):document.cookie=p,s.o.p},j=(e,t,o)=>{if(0===e.length)return;const n=o||s.t.cookie.domain,c=t||s.t.cookie.path,a='www.'===n.slice(0,4),r=a&&n.substring(4),i=(e,t)=>{t&&'.'!==t.slice(0,1)&&(t='.'+t),document.cookie=e+'=; path='+c+(t?'; domain='+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)i(t,o),o||i(t,n),a&&i(t,r)},E=e=>{const t=e||s.t.cookie.name,o=s.t.cookie.useLocalStorage;return((e,t)=>{let o;return o=D((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},o})(o?(n=t,D((()=>localStorage.getItem(n)))||''):x(t,!0),o);var n},x=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},O=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];e?D((()=>{e.test(t)&&o.push(t)})):o.push(t)}return o},A=(o,n=[])=>{((e,t)=>{const{R:o,F:n,L:c,re:l,B:d,M:_,J:u}=s.o;let p=[];if(e){r(e)?p.push(...e):i(e)&&(p='all'===e?o:[e]);for(const e of o)d[e]=a(p,e)?f(u[e]):[]}else p=[...n,..._];p=p.filter((e=>!a(o,e)||!a(t,e))),p.push(...c),h(p)})(o,n),(()=>{const e=s.o,{B:t,L:o,U:n,J:c,R:r}=e,i=r;e.H=C(n);for(const s of i){const r=c[s],i=f(r),l=t[s]&&t[s].length>0,d=a(o,s);if(0!==i.length){if(n[s]=[],d)n[s].push(...i);else if(l){const e=t[s];n[s].push(...e)}else n[s]=e.B[s];n[s]=_(n[s])}}})(),(()=>{const o=s.o;o.j=s.t.mode===t&&o.T?S(o.M,o.F):S(o.F,o.p.categories);let n=o.j.length>0,c=!1;for(const e of o.R)o.G[e]=S(o.U[e],o.H[e]),o.G[e].length>0&&(c=!0);o.S||(o.S=new Date),o.D||(o.D=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),o.p={categories:C(o.F),revision:s.t.revision,data:o.v,consentTimestamp:o.S.toISOString(),consentId:o.D,services:C(o.U),languageCode:s.o.l},o.h&&(o.p.lastConsentTimestamp=o.h.toISOString());let r=!1;const i=n||c;(o.T||i)&&(o.T&&(o.T=!1,r=!0),o.h=o.h?new Date:o.S,o.p.lastConsentTimestamp=o.h.toISOString(),k(),s.t.autoClearCookies&&(r||i)&&(e=>{const t=s.o,o=O(),n=(e=>{const t=s.o;return(e?t.R:t.j).filter((e=>{const o=t.I[e];return!!o&&!o.readOnly&&!!o.autoClear}))})(e);for(const e in t.G)for(const n of t.G[e]){const s=t.J[e][n].cookies;if(!a(t.U[e],n)&&s)for(const e of s){const t=N(o,e.name);j(t,e.path,e.domain)}}for(const s of n){const n=t.I[s].autoClear,c=n&&n.cookies||[],r=a(t.j,s),i=!a(t.F,s),l=r&&i;if(e?i:l){n.reloadPage&&l&&(t.O=!0);for(const e of c){const t=N(o,e.name);j(t,e.path,e.domain)}}}})(r),b()),r&&(w(s.V.W),w(s.V.X),s.t.mode===e)||(i&&w(s.V.Y),o.O&&(o.O=!1,location.reload()))})()},I=e=>{const t=s.o.T?[]:s.o.F;return a(t,e)},R=(e,t)=>{const{R:o,J:n}=s.o;if(!(e&&t&&i(t)&&a(o,t)&&0!==f(n[t]).length))return!1;A()},F=(e,t)=>{const o=s.o.T?[]:s.o.U[t]||[];return a(o,e)},L=e=>''!==x(e,!0),M=(e,t,o)=>{let n=[];const s=e=>{if(i(e)){let t=x(e);''!==t&&n.push(t)}else n.push(...O(e))};if(r(e))for(let t of e)s(t);else s(e);j(n,t,o)},P=()=>{const{A:e,U:t}=s.o,{accepted:o,rejected:n}=(()=>{const{T:e,F:t,R:o}=s.o;return{accepted:t,rejected:e?[]:o.filter((e=>!a(t,e)))}})();return C({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:v()})},J=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=u('script'),l(t))for(const e in t)p(o,e,t[e]);var s,c;o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,s=document.head,c=o,s.appendChild(c)}))},U=e=>{let t,o=e.value,n=e.mode,c=!1;const a=s.o;if('update'===n){a.v=t=B('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],c=!0)}else!e&&t||t===o||(t=o,c=!0)}else t=o,c=!0;return c&&(a.v=t,a.p.data=t,k(!0)),c},B=(e,t)=>{const o=E(t);return e?o[e]:o},G=e=>{const t=s.t,o=s.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},H=()=>!s.o.T,q=async e=>{const{o:n,t:c,V:d}=s,_=window;if(!_._ccRun){if(_._ccRun=!0,(e=>{const{ie:n,t:c,o:r}=s,i=c,d=r,{cookie:_}=i,u=s.K,p=e.cookie,g=e.categories,C=f(g)||[],v=navigator,y=document;n.le=y,_.domain=location.hostname,d.i=e,d.I=g,d.R=C,u.W=e.onFirstConsent,u.X=e.onConsent,u.Y=e.onChange;const{mode:S,autoClearCookies:h,revision:w,manageScriptTags:D,hideFromBots:b}=e;S===t&&(i.mode=S),'boolean'==typeof h&&(i.autoClearCookies=h),'boolean'==typeof D&&(i.manageScriptTags=D),'number'==typeof w&&w>=0&&(i.revision=w,d.N=!0),!1===b&&(i.hideFromBots=!1),!0===i.hideFromBots&&v&&(d.P=v.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(v.userAgent)||v.webdriver),l(p)&&(i.cookie={..._,...p}),i.autoClearCookies,d.N,i.manageScriptTags,(e=>{const{I:t,J:o,U:n,B:c,L:a}=s.o;for(let r of e){const e=t[r],i=e.services||{},d=l(i)&&f(i)||[];o[r]={},n[r]=[],c[r]=[],e.readOnly&&(a.push(r),n[r]=d),s.ie.de[r]={};for(let e of d){const t=i[e];t.te=!1,o[r][e]=t}}})(C),(()=>{if(!s.t.manageScriptTags)return;const e=s.o,t=(n=document,c='script['+o+']',n.querySelectorAll(c));var n,c;for(const n of t){let t=m(n,o),s=n.dataset.service||'',c=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),c=!0),'!'===s.charAt(0)&&(s=s.slice(1),c=!0),a(e.R,t)&&(e.q.push({ne:n,oe:!1,ae:c,se:t,ce:s}),s)){const o=e.J[t];o[s]||(o[s]={te:!1})}}})()})(e),n.P)return;if((()=>{const e=s.o,o=s.t,n=E(),{categories:c,services:a,consentId:l,consentTimestamp:d,lastConsentTimestamp:f,data:_,revision:u}=n,p=r(c);e.p=n,e.D=l;const g=!!l&&i(l);e.S=d,e.S&&(e.S=new Date(d)),e.h=f,e.h&&(e.h=new Date(f)),e.v=void 0!==_?_:null,e.N&&g&&u!==o.revision&&(e.k=!1),e.T=!(g&&e.k&&e.S&&e.h&&p),o.cookie.useLocalStorage&&!e.T&&(e.T=(new Date).getTime()>(n.expirationTime||0),e.T&&T(o.cookie.name)),e.T,(()=>{const e=s.o;for(const o of e.R){const n=e.I[o];if(n.readOnly||n.enabled){e.M.push(o);const n=e.J[o]||{};for(let s in n)e.B[o].push(s),e.i.mode===t&&e.U[o].push(s)}}})(),e.T?o.mode===t&&(e.F=[...e.M]):(e.U={...e.U,...a},e.B={...e.U},h([...e.L,...c]))})(),H())return b(),w(d.X);c.mode===t&&b(n.M)}},z=e=>{const{name:t,path:o,domain:c,useLocalStorage:a}=s.t.cookie;e&&(a?T(t):M(t,o,c));for(const{fe:e,_e:t,ue:o}of s.o.m)e.removeEventListener(t,o);const r=new n;for(const e in s)s[e]=r[e];window._ccRun=!1};export{A as acceptCategory,R as acceptService,I as acceptedCategory,F as acceptedService,M as eraseCookies,G as getConfig,B as getCookie,P as getUserPreferences,J as loadScript,z as reset,q as run,U as setCookieData,H as validConsent,L as validCookie};
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * CookieConsent 3.1.0
3
+ * https://github.com/orestbida/cookieconsent
4
+ * Author Orest Bida
5
+ * Released under the MIT License
6
+ */
7
+ var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='data-category';class s{constructor(){this.t={mode:t,revision:0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',secure:!0,sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],C:!1,v:null,S:null,h:null,D:'',T:!0,N:!1,j:!0,k:[],O:!1,A:'',I:!1,R:[],F:[],L:[],M:[],P:!1,J:{},U:{},B:{},G:{},H:{},q:[]},this.K={},this.V={W:'cc:onFirstConsent',X:'cc:onConsent',Y:'cc:onChange'}}}const c=new s,r=(e,t)=>e.indexOf(t),a=(e,t)=>-1!==r(e,t),i=e=>Array.isArray(e),l=e=>'string'==typeof e,f=e=>!!e&&'object'==typeof e&&!i(e),d=e=>'function'==typeof e,_=e=>Object.keys(e),u=e=>Array.from(new Set(e)),p=e=>document.createElement(e),g=(e,t,o)=>e.setAttribute(t,o),m=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},C=(e,t,o)=>e.getAttribute(o?'data-'+t:t),v=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=v(n)}return t},y=()=>{const e={},{R:t,J:o,U:n}=c.o;for(const s of t)e[s]=h(n[s],_(o[s]));return e},S=()=>{const e=c.t.cookie.expiresAfterDays;return d(e)?e(c.o.A):e},h=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!a(n,e))).concat(n.filter((e=>!a(o,e))))},b=e=>{c.o.F=u(e),c.o.A=(()=>{let e='custom';const{F:t,R:o,L:n}=c.o,s=t.length;return s===o.length?e='all':s===n.length&&(e='necessary'),e})()},w=(e,t,o)=>{const{Y:n,X:s,W:r,Z:a,$:i,ee:l}=c.K,f=c.V,_={cookie:c.o.p};e===f.W?d(r)&&r(v(_)):e===f.X?d(s)&&s(v(_)):(_.changedCategories=c.o.k,_.changedServices=c.o.G,d(n)&&n(v(_))),((e,t)=>{dispatchEvent(new CustomEvent(e,{detail:t}))})(e,v(_))},D=(e,t)=>{try{return e()}catch(e){return!t&&console.warn('CookieConsent:',e),!1}},T=e=>{const{U:t,G:o,R:s,J:r,q:i,p:l,k:f}=c.o;for(const e of s){const n=o[e]||t[e]||[];for(const o of n){const n=r[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.te&&a(t[e],o)?(n.te=!0,d(s)&&s()):n.te&&!a(t[e],o)&&(n.te=!1,d(c)&&c())}}if(!c.t.manageScriptTags)return;const _=i,u=e||l.categories||[],v=(e,s)=>{if(s>=e.length)return;const c=i[s];if(c.oe)return v(e,s+1);const r=c.ne,l=c.se,d=c.ce,_=a(u,l),y=!!d&&a(t[l],d);if(!d&&!c.re&&_||!d&&c.re&&!_&&a(f,l)||d&&!c.re&&y||d&&c.re&&!y&&a(o[l]||[],d)){c.oe=!0;const t=C(r,'type',!0);m(r,'type',!!t),m(r,n);let o=C(r,'src',!0);o&&m(r,'src',!0);const a=p('script');a.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)g(a,e,r[e]||C(r,e));t&&(a.type=t),o?a.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(a.onload=a.onerror=()=>{v(e,++s)}),r.replaceWith(a),i)return}v(e,++s)};v(_,0)},N=e=>D((()=>localStorage.removeItem(e))),j=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const o=r(e,t);return o>-1?[e[o]]:[]}},k=e=>{const{hostname:t,protocol:o}=location,{name:n,path:s,domain:r,sameSite:i,useLocalStorage:l,secure:f}=c.t.cookie,d=e?(()=>{const e=c.o.h,t=e?new Date-e:0;return 864e5*S()-t})():864e5*S(),_=new Date;_.setTime(_.getTime()+d),c.o.p.expirationTime=_.getTime();const u=JSON.stringify(c.o.p);let p=n+'='+encodeURIComponent(u)+(0!==d?'; expires='+_.toUTCString():'')+'; Path='+s+'; SameSite='+i;a(t,'.')&&(p+='; Domain='+r),f&&'https:'===o&&(p+='; Secure'),l?((e,t)=>{D((()=>localStorage.setItem(e,t)))})(n,u):document.cookie=p,c.o.p},x=(e,t,o)=>{if(0===e.length)return;const n=o||c.t.cookie.domain,s=t||c.t.cookie.path,r='www.'===n.slice(0,4),a=r&&n.substring(4),i=(e,t)=>{t&&'.'!==t.slice(0,1)&&(t='.'+t),document.cookie=e+'=; path='+s+(t?'; domain='+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)i(t,o),o||i(t,n),r&&i(t,a)},E=e=>{const t=e||c.t.cookie.name,o=c.t.cookie.useLocalStorage;return((e,t)=>{let o;return o=D((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},o})(o?(n=t,D((()=>localStorage.getItem(n)))||''):O(t,!0),o);var n},O=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},A=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];e?D((()=>{e.test(t)&&o.push(t)})):o.push(t)}return o},I=(e,n=[])=>{((e,t)=>{const{R:o,F:n,L:s,ae:r,B:f,M:d,J:u}=c.o;let p=[];if(e){i(e)?p.push(...e):l(e)&&(p='all'===e?o:[e]);for(const e of o)f[e]=a(p,e)?_(u[e]):[]}else p=[...n,...d];p=p.filter((e=>!a(o,e)||!a(t,e))),p.push(...s),b(p)})(e,n),(()=>{const e=c.o,{B:t,L:o,U:n,J:s,R:r}=e,i=r;e.H=v(n);for(const c of i){const r=s[c],i=_(r),l=t[c]&&t[c].length>0,f=a(o,c);if(0!==i.length){if(n[c]=[],f)n[c].push(...i);else if(l){const e=t[c];n[c].push(...e)}else n[c]=e.B[c];n[c]=u(n[c])}}})(),(()=>{const e=c.o;e.k=c.t.mode===o&&e.T?h(e.M,e.F):h(e.F,e.p.categories);let n=e.k.length>0,s=!1;for(const t of e.R)e.G[t]=h(e.U[t],e.H[t]),e.G[t].length>0&&(s=!0);e.S||(e.S=new Date),e.D||(e.D=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:v(e.F),revision:c.t.revision,data:e.v,consentTimestamp:e.S.toISOString(),consentId:e.D,services:v(e.U),languageCode:c.o.l},e.h&&(e.p.lastConsentTimestamp=e.h.toISOString());let r=!1;const i=n||s;(e.T||i)&&(e.T&&(e.T=!1,r=!0),e.h=e.h?new Date:e.S,e.p.lastConsentTimestamp=e.h.toISOString(),k(),c.t.autoClearCookies&&(r||i)&&(e=>{const t=c.o,o=A(),n=(e=>{const t=c.o;return(e?t.R:t.k).filter((e=>{const o=t.I[e];return!!o&&!o.readOnly&&!!o.autoClear}))})(e);for(const e in t.G)for(const n of t.G[e]){const s=t.J[e][n].cookies;if(!a(t.U[e],n)&&s)for(const e of s){const t=j(o,e.name);x(t,e.path,e.domain)}}for(const s of n){const n=t.I[s].autoClear,c=n&&n.cookies||[],r=a(t.k,s),i=!a(t.F,s),l=r&&i;if(e?i:l){n.reloadPage&&l&&(t.O=!0);for(const e of c){const t=j(o,e.name);x(t,e.path,e.domain)}}}})(r),T()),r&&(w(c.V.W),w(c.V.X),c.t.mode===t)||(i&&w(c.V.Y),e.O&&(e.O=!1,location.reload()))})()},R=(e,t,o)=>{let n=[];const s=e=>{if(l(e)){let t=O(e);''!==t&&n.push(t)}else n.push(...A(e))};if(i(e))for(let t of e)s(t);else s(e);x(n,t,o)},F=(e,t)=>{const o=E(t);return e?o[e]:o},L=()=>!c.o.T;e.acceptCategory=I,e.acceptService=(e,t)=>{const{R:o,J:n}=c.o;if(!(e&&t&&l(t)&&a(o,t)&&0!==_(n[t]).length))return!1;I()},e.acceptedCategory=e=>{const t=c.o.T?[]:c.o.F;return a(t,e)},e.acceptedService=(e,t)=>{const o=c.o.T?[]:c.o.U[t]||[];return a(o,e)},e.eraseCookies=R,e.getConfig=e=>{const t=c.t,o=c.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=F,e.getUserPreferences=()=>{const{A:e,U:t}=c.o,{accepted:o,rejected:n}=(()=>{const{T:e,F:t,R:o}=c.o;return{accepted:t,rejected:e?[]:o.filter((e=>!a(t,e)))}})();return v({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:y()})},e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=p('script'),f(t))for(const e in t)g(o,e,t[e]);var s,c;o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,s=document.head,c=o,s.appendChild(c)}))},e.reset=e=>{const{name:t,path:o,domain:n,useLocalStorage:r}=c.t.cookie;e&&(r?N(t):R(t,o,n));for(const{ie:e,le:t,fe:o}of c.o.m)e.removeEventListener(t,o);const a=new s;for(const e in c)c[e]=a[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:s,V:r}=c,d=window;if(!d._ccRun){if(d._ccRun=!0,(e=>{const{de:t,t:s,o:r}=c,i=s,l=r,{cookie:d}=i,u=c.K,p=e.cookie,g=e.categories,m=_(g)||[],v=navigator,y=document;t._e=y,d.domain=location.hostname,l.i=e,l.I=g,l.R=m,u.W=e.onFirstConsent,u.X=e.onConsent,u.Y=e.onChange;const{mode:S,autoClearCookies:h,revision:b,manageScriptTags:w,hideFromBots:D}=e;S===o&&(i.mode=S),'boolean'==typeof h&&(i.autoClearCookies=h),'boolean'==typeof w&&(i.manageScriptTags=w),'number'==typeof b&&b>=0&&(i.revision=b,l.N=!0),!1===D&&(i.hideFromBots=!1),!0===i.hideFromBots&&v&&(l.P=v.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(v.userAgent)||v.webdriver),f(p)&&(i.cookie={...d,...p}),i.autoClearCookies,l.N,i.manageScriptTags,(e=>{const{I:t,J:o,U:n,B:s,L:r}=c.o;for(let a of e){const e=t[a],i=e.services||{},l=f(i)&&_(i)||[];o[a]={},n[a]=[],s[a]=[],e.readOnly&&(r.push(a),n[a]=l),c.de.ue[a]={};for(let e of l){const t=i[e];t.te=!1,o[a][e]=t}}})(m),(()=>{if(!c.t.manageScriptTags)return;const e=c.o,t=(o=document,s='script['+n+']',o.querySelectorAll(s));var o,s;for(const o of t){let t=C(o,n),s=o.dataset.service||'',c=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),c=!0),'!'===s.charAt(0)&&(s=s.slice(1),c=!0),a(e.R,t)&&(e.q.push({ne:o,oe:!1,re:c,se:t,ce:s}),s)){const o=e.J[t];o[s]||(o[s]={te:!1})}}})()})(e),t.P)return;if((()=>{const e=c.o,t=c.t,n=E(),{categories:s,services:r,consentId:a,consentTimestamp:f,lastConsentTimestamp:d,data:_,revision:u}=n,p=i(s);e.p=n,e.D=a;const g=!!a&&l(a);e.S=f,e.S&&(e.S=new Date(f)),e.h=d,e.h&&(e.h=new Date(d)),e.v=void 0!==_?_:null,e.N&&g&&u!==t.revision&&(e.j=!1),e.T=!(g&&e.j&&e.S&&e.h&&p),t.cookie.useLocalStorage&&!e.T&&(e.T=(new Date).getTime()>(n.expirationTime||0),e.T&&N(t.cookie.name)),e.T,(()=>{const e=c.o;for(const t of e.R){const n=e.I[t];if(n.readOnly||n.enabled){e.M.push(t);const n=e.J[t]||{};for(let s in n)e.B[t].push(s),e.i.mode===o&&e.U[t].push(s)}}})(),e.T?t.mode===o&&(e.F=[...e.M]):(e.U={...e.U,...r},e.B={...e.U},b([...e.L,...s]))})(),L())return T(),w(r.X);s.mode===o&&T(t.M)}},e.setCookieData=e=>{let t,o=e.value,n=e.mode,s=!1;const r=c.o;if('update'===n){r.v=t=F('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],s=!0)}else!e&&t||t===o||(t=o,s=!0)}else t=o,s=!0;return s&&(r.v=t,r.p.data=t,k(!0)),s},e.validConsent=L,e.validCookie=e=>''!==O(e,!0)},'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t((e='undefined'!=typeof globalThis?globalThis:e||self).CookieConsent={});
@@ -0,0 +1 @@
1
+ #cc-main{background:transparent;color:var(--cc-primary-color);font-family:var(--cc-font-family);font-size:16px;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.15;position:relative;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;position:fixed;z-index:var(--cc-z-index)}#cc-main :after,#cc-main :before,#cc-main a,#cc-main button,#cc-main div,#cc-main h2,#cc-main input,#cc-main p,#cc-main span{all:unset;box-sizing:border-box}#cc-main .pm__badge,#cc-main button{all:initial;box-sizing:border-box;color:unset;visibility:unset}#cc-main .pm__badge,#cc-main a,#cc-main button,#cc-main input{-webkit-appearance:none;appearance:none;cursor:pointer;font-family:inherit;font-size:100%;line-height:normal;margin:0;outline:revert;outline-offset:2px;overflow:hidden}#cc-main table,#cc-main tbody,#cc-main td,#cc-main th,#cc-main thead,#cc-main tr{all:revert;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}:host,:root{--cc-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--cc-modal-border-radius:.5rem;--cc-btn-border-radius:.4rem;--cc-modal-transition-duration:.25s;--cc-link-color:var(--cc-btn-primary-bg);--cc-modal-margin:1rem;--cc-z-index:2147483647}#cc-main.cc--rtl{direction:rtl}#cc-main .cm__title,#cc-main a,#cc-main b,#cc-main em,#cc-main strong{font-weight:600}#cc-main button>span{pointer-events:none}#cc-main .cc__link,#cc-main a{background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;font-weight:600;position:relative;transition:background-size .25s,color .25s ease}#cc-main .cc__link:hover,#cc-main a:hover{background-size:100% 1px;color:var(--cc-primary-color)}#cc-main .cc__link{color:var(--cc-link-color)}#cc-main .cm__desc,#cc-main .pm__body{overscroll-behavior:auto contain;scrollbar-width:thin}@media screen and (min-width:640px){#cc-main ::-webkit-scrollbar,#cc-main ::-webkit-scrollbar-thumb,#cc-main ::-webkit-scrollbar-track{all:revert}#cc-main ::-webkit-scrollbar-thumb{-webkit-background-clip:padding-box;background-clip:padding-box;background:var(--cc-toggle-readonly-bg);border:.25rem solid var(--cc-bg);border-radius:1rem}#cc-main ::-webkit-scrollbar-thumb:hover{background:var(--cc-toggle-off-bg)}#cc-main ::-webkit-scrollbar{background:transparent;width:12px}}html.disable--interaction.show--consent,html.disable--interaction.show--consent body{height:auto!important;overflow:hidden!important}@media (prefers-reduced-motion){#cc-main{--cc-modal-transition-duration:0s}}
@@ -0,0 +1 @@
1
+ #cc-main .cm{background:var(--cc-bg);border-radius:var(--cc-modal-border-radius);box-shadow:0 .625em 1.875em rgba(0,0,2,.3);display:flex;flex-direction:column;max-width:24rem;opacity:0;overflow:hidden;position:fixed;transform:translateY(1.6em);visibility:hidden;z-index:1}#cc-main .cm--top{top:var(--cc-modal-margin)}#cc-main .cm--middle{top:50%;transform:translateY(calc(-50% + 1.6em))}#cc-main .cm--bottom{bottom:var(--cc-modal-margin)}#cc-main .cm--center{left:var(--cc-modal-margin);margin:0 auto;right:var(--cc-modal-margin);width:unset}#cc-main .cm--left{left:var(--cc-modal-margin);margin-right:var(--cc-modal-margin)}#cc-main .cm--right{margin-left:var(--cc-modal-margin);right:var(--cc-modal-margin)}#cc-main .cm__body{display:flex;flex-direction:column;justify-content:space-between;position:relative}#cc-main .cm__btns,#cc-main .cm__links{padding:1rem 1.3rem;width:unset}#cc-main .cm__texts{display:flex;flex:1;flex-direction:column;justify-content:center;padding:1rem 0 0}#cc-main .cm__desc,#cc-main .cm__title{padding:0 1.3rem}#cc-main .cm__title{font-size:1.05em}#cc-main .cm__title+.cm__desc{margin-top:1.1em}#cc-main .cm__desc{color:var(--cc-secondary-color);font-size:.9em;line-height:1.5;max-height:40vh;overflow-x:visible;overflow-y:auto;padding-bottom:1em}#cc-main .cm__btns{border-top:1px solid var(--cc-separator-border-color);display:flex;flex-direction:column;justify-content:center}#cc-main .cm__btn-group{display:grid;grid-auto-columns:minmax(0,1fr)}#cc-main .cm__btn+.cm__btn,#cc-main .cm__btn-group+.cm__btn-group{margin-top:.375rem}#cc-main .cm--flip .cm__btn+.cm__btn,#cc-main .cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:.375rem;margin-top:0}#cc-main .cm--inline .cm__btn+.cm__btn{margin-left:.375rem;margin-top:0}#cc-main .cm--inline.cm--flip .cm__btn+.cm__btn{margin-bottom:0;margin-left:0;margin-right:.375rem}#cc-main .cm--inline.cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:.375rem;margin-right:0}#cc-main .cm--wide .cm__btn+.cm__btn,#cc-main .cm--wide .cm__btn-group+.cm__btn-group{margin-left:.375rem;margin-top:0}#cc-main .cm--wide.cm--flip .cm__btn+.cm__btn,#cc-main .cm--wide.cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:0;margin-right:.375rem}#cc-main .cm--bar:not(.cm--inline) .cm__btn-group--uneven,#cc-main .cm--wide .cm__btn-group--uneven{display:flex;flex:1;justify-content:space-between}#cc-main .cm--bar:not(.cm--inline).cm--flip .cm__btn-group--uneven,#cc-main .cm--wide.cm--flip .cm__btn-group--uneven{flex-direction:row-reverse}#cc-main .cm__btn{background:var(--cc-btn-primary-bg);border:1px solid var(--cc-btn-primary-border-color);border-radius:var(--cc-btn-border-radius);color:var(--cc-btn-primary-color);font-size:.82em;font-weight:600;min-height:42px;padding:.5em 1em;text-align:center}#cc-main .cm__btn:hover{background:var(--cc-btn-primary-hover-bg);border-color:var(--cc-btn-primary-hover-border-color);color:var(--cc-btn-primary-hover-color)}#cc-main .cm__btn--secondary{background:var(--cc-btn-secondary-bg);border-color:var(--cc-btn-secondary-border-color);color:var(--cc-btn-secondary-color)}#cc-main .cm__btn--secondary:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color);color:var(--cc-btn-secondary-hover-color)}#cc-main .cm__btn--close{border-radius:0;border-bottom-left-radius:var(--cc-btn-border-radius);border-right:none;border-top:none;display:none;font-size:1em;height:42px;min-width:auto!important;overflow:hidden;padding:0!important;position:absolute;right:0;top:0;width:42px}#cc-main .cm__btn--close svg{stroke:var(--cc-btn-primary-color);transform:scale(.5);transition:stroke .15s ease}#cc-main .cm__btn--close:hover svg{stroke:var(--cc-btn-primary-hover-color)}#cc-main .cm__btn--close.cm__btn--secondary svg{stroke:var(--cc-btn-secondary-color)}#cc-main .cm__btn--close.cm__btn--secondary:hover svg{stroke:var(--cc-btn-secondary-hover-color)}#cc-main .cm__btn--close+.cm__texts .cm__title{padding-right:3rem}#cc-main .cm--inline .cm__btn-group{grid-auto-flow:column}#cc-main .cm__footer{background:var(--cc-footer-bg);border-top:1px solid var(--cc-footer-border-color);color:var(--cc-footer-color);padding:.4em 0 .5em}#cc-main .cm__links{display:flex;flex-direction:row;padding-bottom:0;padding-top:0}#cc-main .cm__link-group{display:flex;flex-direction:row;font-size:.8em;width:100%}#cc-main .cm__link-group>*+*{margin-left:1.3rem}#cc-main .cm--flip .cm__btn:last-child{grid-row:1}#cc-main .cm--inline.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--box .cm__btn--close{display:block}#cc-main .cm--box.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cm--box.cm--wide{max-width:36em}#cc-main .cm--box.cm--wide .cm__btns{flex-direction:row;justify-content:space-between}#cc-main .cm--box.cm--wide .cm__btn-group{grid-auto-flow:column}#cc-main .cm--box.cm--wide .cm__btn{min-width:120px;padding-left:1.8em;padding-right:1.8em}#cc-main .cm--box.cm--wide.cm--flip .cm__btns{flex-direction:row-reverse}#cc-main .cm--box.cm--wide.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--cloud{max-width:54em;width:unset}#cc-main .cm--cloud .cm__body{flex-direction:row}#cc-main .cm--cloud .cm__texts{flex:1}#cc-main .cm--cloud .cm__desc{max-height:9.4em}#cc-main .cm--cloud .cm__btns{border-left:1px solid var(--cc-separator-border-color);border-top:none;max-width:23em}#cc-main .cm--cloud .cm__btn-group{flex-direction:column}#cc-main .cm--cloud .cm__btn{min-width:19em}#cc-main .cm--cloud.cm--flip .cm__btn-group,#cc-main .cm--cloud.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cm--cloud.cm--inline .cm__btn-group{flex-direction:row}#cc-main .cm--cloud.cm--inline .cm__btn{min-width:10em}#cc-main .cm--cloud.cm--inline.cm--flip .cm__btn-group{flex-direction:row-reverse}#cc-main .cm--bar{border-radius:0;left:0;margin:0;max-width:unset;opacity:1;right:0;transform:translateY(0);width:100vw;--cc-modal-transition-duration:.35s}#cc-main .cm--bar.cm--top{top:0;transform:translateY(-100%)}#cc-main .cm--bar.cm--bottom{bottom:0;transform:translateY(100%)}#cc-main .cm--bar .cm__body,#cc-main .cm--bar .cm__links{margin:0 auto;max-width:55em;width:100%}#cc-main .cm--bar .cm__body{padding:.5em 0 .9em}#cc-main .cm--bar .cm__btns{border-top:none;flex-direction:row;justify-content:space-between}#cc-main .cm--bar .cm__btn-group{grid-auto-flow:column}#cc-main .cm--bar:not(.cm--inline) .cm__btn+.cm__btn,#cc-main .cm--bar:not(.cm--inline) .cm__btn-group+.cm__btn-group{margin-left:.375rem;margin-top:0}#cc-main .cm--bar .cm__btn{min-width:120px;padding-left:2em;padding-right:2em}#cc-main .cm--bar.cm--flip:not(.cm--inline) .cm__btn+.cm__btn,#cc-main .cm--bar.cm--flip:not(.cm--inline) .cm__btn-group+.cm__btn-group{margin-bottom:0;margin-left:0;margin-right:.375rem}#cc-main .cm--bar.cm--flip .cm__btns{flex-direction:row-reverse}#cc-main .cm--bar.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--bar.cm--inline .cm__body,#cc-main .cm--bar.cm--inline .cm__links{max-width:74em}#cc-main .cm--bar.cm--inline .cm__body{flex-direction:row;padding:0}#cc-main .cm--bar.cm--inline .cm__btns{flex-direction:column;justify-content:center;max-width:23em}#cc-main .cm--bar.cm--inline.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cc--anim .cm,#cc-main .cc--anim.cm-wrapper:before{transition:opacity var(--cc-modal-transition-duration) ease,visibility var(--cc-modal-transition-duration) ease,transform var(--cc-modal-transition-duration) ease}#cc-main .cc--anim .cm__btn,#cc-main .cc--anim .cm__close{transition:background-color .15s ease,border-color .15s ease,color .15s ease}.disable--interaction #cc-main .cm-wrapper:before{background:var(--cc-overlay-bg);bottom:0;content:"";left:0;opacity:0;position:fixed;right:0;top:0;visibility:hidden;z-index:0}.show--consent #cc-main .cc--anim .cm{opacity:1;transform:translateY(0);visibility:visible!important}.show--consent #cc-main .cc--anim .cm--middle{transform:translateY(-50%)}.show--consent #cc-main .cc--anim .cm--bar{transform:translateY(0)}.show--consent #cc-main .cc--anim.cm-wrapper:before{opacity:1;visibility:visible}#cc-main.cc--rtl .cm__btn--close{border-bottom-left-radius:unset;border-bottom-right-radius:var(--cc-btn-border-radius);left:0;right:unset}#cc-main.cc--rtl .cm__btn--close+.cm__texts .cm__title{padding-left:3rem!important;padding-right:1.3rem}#cc-main.cc--rtl .cm--inline .cm__btn+.cm__btn{margin-left:0;margin-right:.375rem}#cc-main.cc--rtl .cm--inline.cm--flip .cm__btn+.cm__btn{margin-left:.375rem;margin-right:0}#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar .cm__btn-group+.cm__btn-group,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide .cm__btn-group+.cm__btn-group{margin-left:0;margin-right:.375rem}#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar.cm--flip .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide.cm--flip .cm__btn+.cm__btn{margin-left:.375rem;margin-right:0}#cc-main.cc--rtl .cm__link-group>*+*{margin-left:0;margin-right:1.3rem}@media screen and (max-width:640px){#cc-main{--cc-modal-margin:.5em}#cc-main .cm{max-width:none!important;width:auto!important}#cc-main .cm__body{flex-direction:column!important;padding:0!important}#cc-main .cm__btns,#cc-main .cm__desc,#cc-main .cm__links,#cc-main .cm__title{padding-left:1.1rem!important;padding-right:1.1rem!important}#cc-main .cm__btns{border-left:none!important;border-top:1px solid var(--cc-separator-border-color)!important;flex-direction:column!important;max-width:none!important;min-width:auto!important}#cc-main .cm__btn+.cm__btn,#cc-main .cm__btn-group+.cm__btn-group{margin:.375rem 0 0!important}#cc-main .cm--flip .cm__btn+.cm__btn,#cc-main .cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:.375rem!important;margin-top:0!important}#cc-main .cm__btn-group{display:flex!important;flex-direction:column!important;min-width:auto!important}#cc-main .cm__btn{flex:auto!important}#cc-main .cm__link-group{justify-content:center!important}#cc-main .cm--flip .cm__btn-group,#cc-main .cm--flip .cm__btns{flex-direction:column-reverse!important}}
@@ -0,0 +1 @@
1
+ .cc--darkmode{--cc-bg:#161a1c;--cc-primary-color:#ebf3f6;--cc-secondary-color:#aebbc5;--cc-btn-primary-bg:#c2d0e0;--cc-btn-primary-color:var(--cc-bg);--cc-btn-primary-border-color:var(--cc-btn-primary-bg);--cc-btn-primary-hover-bg:#98a7b6;--cc-btn-primary-hover-color:#000;--cc-btn-primary-hover-border-color:var(--cc-btn-primary-hover-bg);--cc-btn-secondary-bg:#242c31;--cc-btn-secondary-color:var(--cc-primary-color);--cc-btn-secondary-border-color:var(--cc-btn-secondary-bg);--cc-btn-secondary-hover-bg:#353d43;--cc-btn-secondary-hover-color:#fff;--cc-btn-secondary-hover-border-color:var(--cc-btn-secondary-hover-bg);--cc-separator-border-color:#222a30;--cc-toggle-on-bg:var(--cc-btn-primary-bg);--cc-toggle-off-bg:#525f6b;--cc-toggle-on-knob-bg:var(--cc-btn-primary-color);--cc-toggle-off-knob-bg:var(--cc-btn-primary-color);--cc-toggle-enabled-icon-color:var(--cc-btn-primary-color);--cc-toggle-disabled-icon-color:var(--cc-btn-primary-color);--cc-toggle-readonly-bg:#343e45;--cc-toggle-readonly-knob-bg:#5f6b72;--cc-toggle-readonly-knob-icon-color:var(--cc-toggle-readonly-bg);--cc-section-category-border:#1e2428;--cc-cookie-category-block-bg:#1e2428;--cc-cookie-category-block-border:var(--cc-section-category-border);--cc-cookie-category-block-hover-bg:#242c31;--cc-cookie-category-block-hover-border:#232a2f;--cc-cookie-category-expanded-block-bg:transparent;--cc-cookie-category-expanded-block-hover-bg:var(--cc-toggle-readonly-bg);--cc-overlay-bg:rgba(0,0,0,.65);--cc-webkit-scrollbar-bg:var(--cc-section-category-border);--cc-webkit-scrollbar-hover-bg:var(--cc-btn-primary-hover-bg);--cc-footer-bg:#0c0e0f;--cc-footer-color:var(--cc-secondary-color);--cc-footer-border-color:#060809}.cc--darkmode #cc-main{color-scheme:dark}
@@ -0,0 +1 @@
1
+ :host,:root{--cc-bg:#fff;--cc-primary-color:#2c2f31;--cc-secondary-color:#5e6266;--cc-btn-primary-bg:#30363c;--cc-btn-primary-color:#fff;--cc-btn-primary-border-color:var(--cc-btn-primary-bg);--cc-btn-primary-hover-bg:#000;--cc-btn-primary-hover-color:#fff;--cc-btn-primary-hover-border-color:var(--cc-btn-primary-hover-bg);--cc-btn-secondary-bg:#eaeff2;--cc-btn-secondary-color:var(--cc-primary-color);--cc-btn-secondary-border-color:var(--cc-btn-secondary-bg);--cc-btn-secondary-hover-bg:#d4dae0;--cc-btn-secondary-hover-color:#000;--cc-btn-secondary-hover-border-color:#d4dae0;--cc-separator-border-color:#f0f4f7;--cc-toggle-on-bg:var(--cc-btn-primary-bg);--cc-toggle-off-bg:#667481;--cc-toggle-on-knob-bg:#fff;--cc-toggle-off-knob-bg:var(--cc-toggle-on-knob-bg);--cc-toggle-enabled-icon-color:var(--cc-bg);--cc-toggle-disabled-icon-color:var(--cc-bg);--cc-toggle-readonly-bg:#d5dee2;--cc-toggle-readonly-knob-bg:#fff;--cc-toggle-readonly-knob-icon-color:var(--cc-toggle-readonly-bg);--cc-section-category-border:var(--cc-cookie-category-block-bg);--cc-cookie-category-block-bg:#f0f4f7;--cc-cookie-category-block-border:#f0f4f7;--cc-cookie-category-block-hover-bg:#e9eff4;--cc-cookie-category-block-hover-border:#e9eff4;--cc-cookie-category-expanded-block-bg:transparent;--cc-cookie-category-expanded-block-hover-bg:#dee4e9;--cc-overlay-bg:rgba(0,0,0,.65);--cc-webkit-scrollbar-bg:var(--cc-section-category-border);--cc-webkit-scrollbar-hover-bg:var(--cc-btn-primary-hover-bg);--cc-footer-bg:var(--cc-btn-secondary-bg);--cc-footer-color:var(--cc-secondary-color);--cc-footer-border-color:#e4eaed}
@@ -0,0 +1 @@
1
+ :host,:root{--cc-pm-toggle-border-radius:4em}#cc-main .pm-wrapper{position:relative;z-index:2}#cc-main .pm{background:var(--cc-bg);border-radius:var(--cc-modal-border-radius);box-shadow:0 .625em 1.875em rgba(0,0,2,.3);display:flex;flex-direction:column;opacity:0;overflow:hidden;position:fixed;visibility:hidden;width:100%;width:unset;z-index:1}#cc-main svg{fill:none;width:100%}#cc-main .pm__body,#cc-main .pm__footer,#cc-main .pm__header{padding:1em 1.4em}#cc-main .pm__header{align-items:center;border-bottom:1px solid var(--cc-separator-border-color);display:flex;justify-content:space-between}#cc-main .pm__title{align-items:center;display:flex;flex:1;font-weight:600;margin-right:2em}#cc-main .pm__close-btn{background:var(--cc-btn-secondary-bg);border:1px solid var(--cc-btn-secondary-border-color);border-radius:var(--cc-btn-border-radius);height:40px;position:relative;transition:all .15s ease;width:40px}#cc-main .pm__close-btn span{display:flex;height:100%;width:100%}#cc-main .pm__close-btn svg{stroke:var(--cc-btn-secondary-color);transform:scale(.5);transition:stroke .15s ease}#cc-main .pm__close-btn:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color)}#cc-main .pm__close-btn:hover svg{stroke:var(--cc-btn-secondary-hover-color)}#cc-main .pm__body{flex:1;overflow-y:auto}#cc-main .pm__section,#cc-main .pm__section--toggle{border-radius:var(--cc-btn-border-radius);display:flex;flex-direction:column;margin-bottom:.5em}#cc-main .pm__section--toggle .pm__section-desc-wrapper{border:1px solid var(--cc-cookie-category-block-border);border-radius:var(--cc-btn-border-radius);border-top:none;border-top-left-radius:0;border-top-right-radius:0;display:none;margin-top:0!important;overflow:hidden}#cc-main .pm__section{border:1px solid var(--cc-separator-border-color);padding:1em;transition:background-color .25s ease,border-color .25s ease}#cc-main .pm__section:first-child{border:none;margin-bottom:2em;margin-top:0;padding:0;transition:none}#cc-main .pm__section:not(:first-child):hover{background:var(--cc-cookie-category-block-bg);border-color:var(--cc-cookie-category-block-border)}#cc-main .pm__section-toggles+.pm__section{margin-top:2em}#cc-main .pm__section--toggle{background:var(--cc-cookie-category-block-bg);border-top:none;margin-bottom:.375rem}#cc-main .pm__section--toggle .pm__section-title{align-items:center;background:var(--cc-cookie-category-block-bg);border:1px solid var(--cc-cookie-category-block-border);display:flex;justify-content:space-between;min-height:58px;padding:1.1em 5.4em 1.1em 1.2em;position:relative;transition:background-color .25s ease,border-color .25s ease;width:100%}#cc-main .pm__section--toggle .pm__section-title:hover{background:var(--cc-cookie-category-block-hover-bg);border-color:var(--cc-cookie-category-block-hover-border)}#cc-main .pm__section--toggle .pm__section-desc{margin-top:0;padding:1em}#cc-main .pm__section--toggle.is-expanded{--cc-cookie-category-block-bg:var(--cc-cookie-category-expanded-block-bg);--cc-cookie-category-block-border:var(--cc-cookie-category-expanded-block-hover-bg)}#cc-main .pm__section--toggle.is-expanded .pm__section-title{border-bottom-left-radius:0;border-bottom-right-radius:0}#cc-main .pm__section--toggle.is-expanded .pm__section-arrow svg{transform:scale(.5) rotate(180deg)}#cc-main .pm__section--toggle.is-expanded .pm__section-desc-wrapper{display:flex}#cc-main .pm__section--expandable .pm__section-title{cursor:pointer;padding-left:3.4em}#cc-main .pm__section--expandable .pm__section-arrow{background:var(--cc-toggle-readonly-bg);border-radius:100%;display:flex;height:20px;justify-content:center;left:18px;pointer-events:none;position:absolute;width:20px}#cc-main .pm__section--expandable .pm__section-arrow svg{stroke:var(--cc-btn-secondary-color);transform:scale(.5)}#cc-main .pm__section-title-wrapper{align-items:center;display:flex;position:relative}#cc-main .pm__section-title-wrapper+.pm__section-desc-wrapper{margin-top:.85em}#cc-main .pm__section-title{border-radius:var(--cc-btn-border-radius);font-size:.95em;font-weight:600}#cc-main .pm__badge{align-items:center;background:var(--cc-btn-secondary-bg);border-radius:5em;color:var(--cc-secondary-color);display:flex;flex:none;font-size:.8em;font-weight:600;height:23px;justify-content:center;margin-left:1em;min-width:23px;overflow:hidden;padding:0 .6em 1px;position:relative;text-align:center;white-space:nowrap;width:auto}#cc-main .pm__service-counter{background:var(--cc-btn-primary-bg);color:var(--cc-btn-primary-color);padding:0;width:23px}#cc-main .pm__service-counter[data-counterlabel]{padding:0 .6em 1px;width:auto}#cc-main .section__toggle,#cc-main .section__toggle-wrapper,#cc-main .toggle__icon,#cc-main .toggle__label{border-radius:var(--cc-pm-toggle-border-radius);height:23px;transform:translateZ(0);width:50px}#cc-main .section__toggle-wrapper{cursor:pointer;position:absolute;right:18px;z-index:1}#cc-main .toggle-service{height:19px;position:relative;right:0;width:42px}#cc-main .toggle-service .section__toggle,#cc-main .toggle-service .toggle__icon,#cc-main .toggle-service .toggle__label{height:19px;width:42px}#cc-main .toggle-service .toggle__icon{position:relative}#cc-main .toggle-service .toggle__icon-circle{height:19px;width:19px}#cc-main .toggle-service .section__toggle:checked~.toggle__icon .toggle__icon-circle{transform:translateX(23px)}#cc-main .pm__section--toggle:nth-child(2) .section__toggle-wrapper:after{display:none!important}#cc-main .section__toggle{border:0;cursor:pointer;display:block;left:0;margin:0;position:absolute;top:0}#cc-main .section__toggle:disabled{cursor:not-allowed}#cc-main .toggle__icon{background:var(--cc-toggle-off-bg);box-shadow:0 0 0 1px var(--cc-toggle-off-bg);display:flex;flex-direction:row;pointer-events:none;position:absolute;transition:all .25s ease}#cc-main .toggle__icon-circle{background:var(--cc-toggle-off-knob-bg);border:none;border-radius:var(--cc-pm-toggle-border-radius);box-shadow:0 1px 2px rgba(24,32,3,.36);display:block;height:23px;left:0;position:absolute;top:0;transition:transform .25s ease,background-color .25s ease;width:23px}#cc-main .toggle__icon-off,#cc-main .toggle__icon-on{height:100%;position:absolute;transition:opacity .15s ease;width:100%}#cc-main .toggle__icon-on{opacity:0;transform:rotate(45deg)}#cc-main .toggle__icon-on svg{stroke:var(--cc-toggle-on-bg);transform:scale(.55) rotate(-45deg)}#cc-main .toggle__icon-off{opacity:1}#cc-main .toggle__icon-off svg{stroke:var(--cc-toggle-off-bg);transform:scale(.55)}#cc-main .section__toggle:checked~.toggle__icon{background:var(--cc-toggle-on-bg);box-shadow:0 0 0 1px var(--cc-toggle-on-bg)}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-circle{background-color:var(--cc-toggle-on-knob-bg);transform:translateX(27px)}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-on{opacity:1}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-off{opacity:0}#cc-main .section__toggle:checked:disabled~.toggle__icon{background:var(--cc-toggle-readonly-bg);box-shadow:0 0 0 1px var(--cc-toggle-readonly-bg)}#cc-main .section__toggle:checked:disabled~.toggle__icon .toggle__icon-circle{background:var(--cc-toggle-readonly-knob-bg);box-shadow:none}#cc-main .section__toggle:checked:disabled~.toggle__icon svg{stroke:var(--cc-toggle-readonly-knob-icon-color)}#cc-main .toggle__label{opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;z-index:-1}#cc-main .pm__section-desc-wrapper{color:var(--cc-secondary-color);display:flex;flex-direction:column;font-size:.9em}#cc-main .pm__section-desc-wrapper>:not(:last-child){border-bottom:1px solid var(--cc-cookie-category-block-border)}#cc-main .pm__section-services{display:flex;flex-direction:column}#cc-main .pm__service{align-items:center;display:flex;justify-content:space-between;padding:.4em 1.2em;position:relative;transition:background-color .15s ease}#cc-main .pm__service:hover{background-color:var(--cc-cookie-category-block-hover-bg)}#cc-main .pm__service-header{align-items:center;display:flex;margin-right:1em;width:100%}#cc-main .pm__service-icon{border:2px solid;border-radius:100%;height:8px;margin-left:6px;margin-right:20px;margin-top:1px;min-width:8px}#cc-main .pm__service-title{font-size:.95em;width:100%;word-break:break-word}#cc-main .pm__section-desc{line-height:1.5em}#cc-main .pm__section-table{border-collapse:collapse;font-size:.9em;margin:0;overflow:hidden;padding:0;text-align:left;width:100%}#cc-main .pm__table-caption{text-align:left}#cc-main .pm__table-caption,#cc-main .pm__table-head>tr{border-bottom:1px dashed var(--cc-separator-border-color);color:var(--cc-primary-color);font-weight:600}#cc-main .pm__table-tr{transition:background-color .15s ease}#cc-main .pm__table-tr:hover{background:var(--cc-cookie-category-block-hover-bg)}#cc-main .pm__table-caption,#cc-main .pm__table-td,#cc-main .pm__table-th{padding:.625em .625em .625em 1.2em;vertical-align:top}#cc-main .pm__footer{border-top:1px solid var(--cc-separator-border-color);display:flex;justify-content:space-between}#cc-main .pm__btn-group{display:flex}#cc-main .pm__btn+.pm__btn,#cc-main .pm__btn-group+.pm__btn-group{margin-left:.375rem}#cc-main .pm--flip .pm__btn+.pm__btn,#cc-main .pm--flip .pm__btn-group+.pm__btn-group{margin-left:0;margin-right:.375rem}#cc-main .pm__btn{background:var(--cc-btn-primary-bg);border:1px solid var(--cc-btn-primary-border-color);border-radius:var(--cc-btn-border-radius);color:var(--cc-btn-primary-color);flex:auto;font-size:.82em;font-weight:600;min-height:42px;min-width:110px;padding:.5em 1.5em;text-align:center;transition:background-color .15s ease,border-color .15s ease,color .15s ease}#cc-main .pm__btn:hover{background:var(--cc-btn-primary-hover-bg);border-color:var(--cc-btn-primary-hover-border-color);color:var(--cc-btn-primary-hover-color)}#cc-main .pm__btn--secondary{background:var(--cc-btn-secondary-bg);border-color:var(--cc-btn-secondary-border-color);color:var(--cc-btn-secondary-color)}#cc-main .pm__btn--secondary:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color);color:var(--cc-btn-secondary-hover-color)}#cc-main .pm--box{height:calc(100% - 2em);left:var(--cc-modal-margin);margin:0 auto;max-height:37.5em;max-width:43em;right:var(--cc-modal-margin);top:50%;transform:translateY(calc(-50% + 1.6em))}#cc-main .pm--box.pm--flip .pm__btn-group,#cc-main .pm--box.pm--flip .pm__footer{flex-direction:row-reverse}#cc-main .pm--bar{border-radius:0;bottom:0;height:100%;margin:0;max-height:none;max-width:29em;opacity:1;top:0;width:100%;--cc-modal-transition-duration:.35s}#cc-main .pm--bar .pm__section-table,#cc-main .pm--bar .pm__table-body,#cc-main .pm--bar .pm__table-td,#cc-main .pm--bar .pm__table-th,#cc-main .pm--bar .pm__table-tr{display:block}#cc-main .pm--bar .pm__table-head{display:none}#cc-main .pm--bar .pm__table-caption{display:block}#cc-main .pm--bar .pm__table-tr:not(:last-child){border-bottom:1px solid var(--cc-separator-border-color)}#cc-main .pm--bar .pm__table-td{display:flex;justify-content:space-between}#cc-main .pm--bar .pm__table-td:before{color:var(--cc-primary-color);content:attr(data-column);flex:1;font-weight:600;min-width:100px;overflow:hidden;padding-right:2em;text-overflow:ellipsis}#cc-main .pm--bar .pm__table-td>div{flex:3}#cc-main .pm--bar:not(.pm--wide) .pm__body,#cc-main .pm--bar:not(.pm--wide) .pm__footer,#cc-main .pm--bar:not(.pm--wide) .pm__header{padding:1em 1.3em}#cc-main .pm--bar:not(.pm--wide) .pm__btn-group,#cc-main .pm--bar:not(.pm--wide) .pm__footer{flex-direction:column}#cc-main .pm--bar:not(.pm--wide) .pm__btn+.pm__btn,#cc-main .pm--bar:not(.pm--wide) .pm__btn-group+.pm__btn-group{margin:.375rem 0 0}#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn-group,#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__footer{flex-direction:column-reverse}#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn+.pm__btn,#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn-group+.pm__btn-group{margin-bottom:.375rem;margin-top:0}#cc-main .pm--bar:not(.pm--wide) .pm__badge{display:none}#cc-main .pm--bar.pm--left{left:0;transform:translateX(-100%)}#cc-main .pm--bar.pm--right{right:0;transform:translateX(100%)}#cc-main .pm--bar.pm--wide{max-width:35em}#cc-main .pm--bar.pm--wide .pm__body,#cc-main .pm--bar.pm--wide .pm__footer,#cc-main .pm--bar.pm--wide .pm__header{padding:1em 1.4em}#cc-main .pm--bar.pm--wide.pm--flip .pm__btn-group,#cc-main .pm--bar.pm--wide.pm--flip .pm__footer{flex-direction:row-reverse}#cc-main .pm-overlay{background:var(--cc-overlay-bg);bottom:0;content:"";left:0;opacity:0;position:fixed;right:0;top:0;visibility:hidden;z-index:1}#cc-main .cc--anim .pm,#cc-main .cc--anim .pm-overlay{transition:opacity var(--cc-modal-transition-duration) ease,visibility var(--cc-modal-transition-duration) ease,transform var(--cc-modal-transition-duration) ease}.show--preferences #cc-main .cc--anim .pm{opacity:1;visibility:visible!important}.show--preferences #cc-main .cc--anim .pm--box{transform:translateY(-50%)}.show--preferences #cc-main .cc--anim .pm--bar{transform:translateX(0)}.show--preferences #cc-main .cc--anim .pm-overlay{opacity:1;visibility:visible}#cc-main.cc--rtl .pm__service-header{margin-left:1em;margin-right:0}#cc-main.cc--rtl .pm__section-arrow{left:unset;right:18px}#cc-main.cc--rtl .section__toggle-wrapper{left:18px;right:unset;transform-origin:left}#cc-main.cc--rtl .toggle-service{left:0}#cc-main.cc--rtl .pm__service-icon{margin-left:20px;margin-right:5px}#cc-main.cc--rtl .pm__section--toggle .pm__section-title{padding-left:5.4em;padding-right:1.2em}#cc-main.cc--rtl .pm__section--expandable .pm__section-title{padding-right:3.4em}#cc-main.cc--rtl .pm__badge{margin-left:unset;margin-right:1em}#cc-main.cc--rtl .toggle__icon-circle{transform:translateX(27px)}#cc-main.cc--rtl .toggle-service .toggle__icon-circle{transform:translateX(23px)}#cc-main.cc--rtl .section__toggle:checked~.toggle__icon .toggle__icon-circle{transform:translateX(0)}#cc-main.cc--rtl .pm__table-td,#cc-main.cc--rtl .pm__table-th{padding-left:unset;padding-right:1.2em;text-align:right}#cc-main.cc--rtl .pm__table-td{padding-left:unset;padding-right:1.2em}#cc-main.cc--rtl .pm__table-td:before{padding-left:2em;padding-right:unset}#cc-main.cc--rtl .pm__btn+.pm__btn,#cc-main.cc--rtl .pm__btn-group+.pm__btn-group{margin-left:0;margin-right:.375rem}#cc-main.cc--rtl .pm--flip .pm__btn+.pm__btn,#cc-main.cc--rtl .pm--flip .pm__btn-group+.pm__btn-group{margin-left:.375rem;margin-right:0}#cc-main.cc--rtl .pm--flip.pm--bar:not(.pm--wide) .pm__btn+.pm__btn,#cc-main.cc--rtl .pm--flip.pm--bar:not(.pm--wide) .pm__btn-group+.pm__btn-group{margin-left:0}@media screen and (max-width:640px){#cc-main .pm{border-radius:0;bottom:0;height:auto;left:0;max-height:100%;max-width:none!important;right:0;top:0;transform:translateY(1.6em)}#cc-main .pm__body,#cc-main .pm__footer,#cc-main .pm__header{padding:.9em!important}#cc-main .pm__badge{display:none}#cc-main .pm__section-table,#cc-main .pm__table-body,#cc-main .pm__table-caption,#cc-main .pm__table-td,#cc-main .pm__table-th,#cc-main .pm__table-tr{display:block}#cc-main .pm__table-head{display:none}#cc-main .pm__table-tr:not(:last-child){border-bottom:1px solid var(--cc-separator-border-color)}#cc-main .pm__table-td{display:flex;justify-content:space-between}#cc-main .pm__table-td:before{color:var(--cc-primary-color);content:attr(data-column);flex:1;font-weight:600;min-width:100px;overflow:hidden;padding-right:2em;text-overflow:ellipsis}#cc-main .pm__table-td>div{flex:3}#cc-main .pm__btn-group,#cc-main .pm__footer{flex-direction:column!important}#cc-main .pm__btn-group{display:flex!important}#cc-main .pm__btn+.pm__btn,#cc-main .pm__btn-group+.pm__btn-group{margin:.375rem 0 0!important}#cc-main .pm--flip .pm__btn+.pm__btn,#cc-main .pm--flip .pm__btn-group+.pm__btn-group{margin-bottom:.375rem!important;margin-top:0!important}#cc-main .pm--flip .pm__btn-group,#cc-main .pm--flip .pm__footer{flex-direction:column-reverse!important}.show--preferences #cc-main .cc--anim .pm{transform:translateY(0)!important}}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@bcomenet/cookieconsent-vanilla",
3
+ "version": "3.1.0",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "description": "🍪 Simple cross-browser cookie-consent plugin written in vanilla js.",
9
+ "main": "dist/cookieconsent.umd.js",
10
+ "module": "dist/cookieconsent.esm.js",
11
+ "files": [
12
+ "dist",
13
+ "types"
14
+ ],
15
+ "types": "types/index.d.ts",
16
+ "scripts": {
17
+ "dev": "rollup --config ./rollup-full.config.mjs --watch",
18
+ "build": "pnpm rollup:full & pnpm rollup:core; wait",
19
+ "rollup:full": "rollup --config ./rollup-full.config.mjs",
20
+ "rollup:core": "rollup --config ./rollup-core.config.mjs",
21
+ "docs:dev": "vitepress dev docs",
22
+ "docs:build": "vitepress build docs",
23
+ "docs:serve": "vitepress serve docs",
24
+ "test": "jest --runInBand --coverage --silent ./tests"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/orestbida/cookieconsent"
29
+ },
30
+ "keywords": [
31
+ "cookie",
32
+ "consent",
33
+ "gdpr",
34
+ "banner",
35
+ "vanilla"
36
+ ],
37
+ "bugs": {
38
+ "url": "https://github.com/orestbida/cookieconsent/issues"
39
+ },
40
+ "homepage": "https://cookieconsent.orestbida.com",
41
+ "author": "Orest Bida",
42
+ "license": "MIT",
43
+ "devDependencies": {
44
+ "@babel/core": "^7.29.0",
45
+ "@eslint/js": "^9.0.0",
46
+ "@babel/preset-env": "^7.29.2",
47
+ "@rollup/plugin-eslint": "^9.2.0",
48
+ "@rollup/plugin-terser": "^1.0.0",
49
+ "@types/jest": "^30.0.0",
50
+ "babel-jest": "^30.3.0",
51
+ "cssnano": "^7.1.7",
52
+ "eslint": "^9.19.0",
53
+ "fast-glob": "^3.3.3",
54
+ "globals": "^16.0.0",
55
+ "jest": "^30.3.0",
56
+ "jest-environment-jsdom": "^30.3.0",
57
+ "postcss": "^8.5.10",
58
+ "postcss-combine-duplicated-selectors": "^10.0.3",
59
+ "rollup": "^4.60.2",
60
+ "sass": "^1.99.0",
61
+ "sitemap": "^9.0.1",
62
+ "vitepress": "1.6.4"
63
+ },
64
+ "jest": {
65
+ "testEnvironment": "jsdom",
66
+ "transform": {
67
+ "\\.[jt]sx?$": "babel-jest"
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,696 @@
1
+ export = CookieConsent
2
+ export as namespace CookieConsent
3
+
4
+ declare namespace CookieConsent {
5
+
6
+ type AcceptType =
7
+ 'all'
8
+ | 'custom'
9
+ | 'necessary'
10
+
11
+ type ConsentModalLayout =
12
+ 'box'
13
+ | 'box wide'
14
+ | 'box inline'
15
+ | 'cloud'
16
+ | 'cloud inline'
17
+ | 'bar'
18
+ | 'bar inline'
19
+
20
+ type ConsentModalPosition =
21
+ 'top'
22
+ | 'bottom'
23
+ | 'middle'
24
+ | 'top left'
25
+ | 'top center'
26
+ | 'top right'
27
+ | 'middle left'
28
+ | 'middle center'
29
+ | 'middle right'
30
+ | 'bottom left'
31
+ | 'bottom center'
32
+ | 'bottom right'
33
+
34
+ type PreferencesModalLayout =
35
+ 'box'
36
+ | 'bar'
37
+ | 'bar wide'
38
+
39
+ type PreferencesModalPosition = 'left' | 'right'
40
+
41
+ type ModalName = 'consentModal' | 'preferencesModal'
42
+
43
+ /**
44
+ * Cookie to clear
45
+ */
46
+ interface CookieItem {
47
+ /**
48
+ * Cookie name
49
+ */
50
+ name: string | RegExp
51
+
52
+ /**
53
+ * Expected cookie path
54
+ */
55
+ path?: string
56
+
57
+ /**
58
+ * Expected cookie domain. Useful if you want to erase
59
+ * a cookie set in the main domain, from the subdomain.
60
+ */
61
+ domain?: string
62
+ }
63
+
64
+ interface AutoClear {
65
+ /**
66
+ * Array of cookies to clear.
67
+ */
68
+ cookies: CookieItem[]
69
+
70
+ /**
71
+ * Reload page after the autoClear function.
72
+ *
73
+ * @default false
74
+ */
75
+ reloadPage?: boolean
76
+ }
77
+
78
+ interface Service {
79
+ /**
80
+ * Custom visible label (can also be html markup).
81
+ */
82
+ label?: string
83
+
84
+ /**
85
+ * Callback executed when the service is accepted.
86
+ */
87
+ onAccept?: () => void
88
+
89
+ /**
90
+ * Callback executed when the service is rejected
91
+ * (assuming that it was previously enabled).
92
+ */
93
+ onReject?: () => void,
94
+
95
+ /**
96
+ * Array of cookies to clear.
97
+ */
98
+ cookies?: CookieItem[]
99
+ }
100
+
101
+ interface UserPreferences {
102
+ /**
103
+ * - all: all categories were accepted
104
+ * - necessary: only the necessary (if any) categories were accepted
105
+ * - custom: a custom selection of categories was accepted
106
+ */
107
+ acceptType: AcceptType
108
+
109
+ acceptedCategories: string[]
110
+ rejectedCategories: string[]
111
+
112
+ acceptedServices: {[key: string]: string[]}
113
+ rejectedServices: {[key: string]: string[]}
114
+ }
115
+
116
+ interface Category {
117
+ /**
118
+ * Mark category as enabled by default.
119
+ *
120
+ * If mode is set to `'opt-out'` and consent has not yet been expressed, the category
121
+ * is automatically enabled (and scripts under this category will be executed).
122
+ *
123
+ * @default false
124
+ */
125
+ enabled?: boolean
126
+
127
+ /**
128
+ * Treat the category as necessary. The user won't be able to disable the category.
129
+ *
130
+ * @default false
131
+ */
132
+ readOnly?: boolean
133
+
134
+ /**
135
+ * Configure individually togglable services.
136
+ */
137
+ services?: {[key: string]: Service}
138
+
139
+ /**
140
+ * Declare the cookies to erase when the user rejects the category.
141
+ */
142
+ autoClear?: AutoClear
143
+ }
144
+
145
+ interface CookieValue {
146
+ /**
147
+ * All accepted categories.
148
+ */
149
+ categories: string[]
150
+
151
+ /**
152
+ * Last accepted revision number.
153
+ *
154
+ * @default 0
155
+ */
156
+ revision: number
157
+
158
+ /**
159
+ * Used to store custom data.
160
+ */
161
+ data: any
162
+
163
+ /**
164
+ * Unique UUIDV4 string that identifies the current user.
165
+ */
166
+ consentId: string
167
+
168
+ /**
169
+ * User's first consent timestamp.
170
+ */
171
+ consentTimestamp: string
172
+
173
+ /**
174
+ * User's last consent update.
175
+ */
176
+ lastConsentTimestamp: string
177
+
178
+ /**
179
+ * Language code of the consent.
180
+ */
181
+ languageCode: string
182
+
183
+ /**
184
+ * All enabled services.
185
+ */
186
+ services: {[key: string]: string[]}
187
+
188
+ /**
189
+ * Expiration time of the cookie (in case localstorage is used)
190
+ */
191
+ expirationTime: number
192
+ }
193
+
194
+ interface CookieOptions {
195
+ /**
196
+ * Cookie name.
197
+ *
198
+ * @default 'cc_cookie'
199
+ */
200
+ name?: string
201
+
202
+ /**
203
+ * Cookie domain.
204
+ *
205
+ * @default location.hostname
206
+ */
207
+ domain?: string
208
+
209
+ /**
210
+ * Cookie path.
211
+ *
212
+ * @default '/'
213
+ */
214
+ path?: string
215
+
216
+ /**
217
+ * Cookie sameSite.
218
+ *
219
+ * @default 'Lax'
220
+ */
221
+ sameSite?: 'Lax' | 'Strict' | 'None'
222
+
223
+ /**
224
+ * Cookie secure flag.
225
+ *
226
+ * @default true
227
+ */
228
+ secure?: boolean
229
+
230
+ /**
231
+ * Cookie duration.
232
+ *
233
+ * @default 182
234
+ */
235
+ expiresAfterDays?: number | ((acceptType: AcceptType) => number)
236
+
237
+ /**
238
+ * Store the content of the cookie in localstorage
239
+ *
240
+ * @default false
241
+ */
242
+ useLocalStorage?: boolean
243
+ }
244
+
245
+ interface GuiOptions {
246
+ consentModal?: {
247
+ /**
248
+ * Change consentModal layout.
249
+ *
250
+ * @default 'box'
251
+ */
252
+ layout?: ConsentModalLayout
253
+
254
+ /**
255
+ * Change modal position.
256
+ */
257
+ position?: ConsentModalPosition
258
+
259
+ /**
260
+ * Flip buttons.
261
+ *
262
+ * @default false
263
+ */
264
+ flipButtons?: boolean
265
+
266
+ /**
267
+ * Stylize the accept and reject buttons the same way (GDPR compliant).
268
+ *
269
+ * @default true
270
+ */
271
+ equalWeightButtons?: boolean
272
+ }
273
+ preferencesModal?: {
274
+
275
+ /**
276
+ * Change preferencesModal layout.
277
+ */
278
+ layout?: PreferencesModalLayout
279
+
280
+ /**
281
+ * This options is valid only if layout=bar.
282
+ */
283
+ position?: PreferencesModalPosition
284
+
285
+ /**
286
+ * Flip buttons.
287
+ * @default false
288
+ */
289
+ flipButtons?: boolean
290
+
291
+ /**
292
+ * Stylize the accept and reject buttons the same way (GDPR compliant).
293
+ *
294
+ * @default true
295
+ */
296
+ equalWeightButtons?: boolean
297
+ }
298
+ }
299
+
300
+ interface ConsentModalOptions {
301
+
302
+ /**
303
+ * Accessibility label. Especially useful if no title is provided.
304
+ */
305
+ label?: string
306
+
307
+ title?: string
308
+ description?: string
309
+ acceptAllBtn?: string
310
+ acceptNecessaryBtn?: string
311
+ showPreferencesBtn?: string
312
+
313
+ /**
314
+ * Specify to generate a big "X" (accept necessary) button. Visible in the `box` layout only.
315
+ */
316
+ closeIconLabel?: string
317
+
318
+ /**
319
+ * Set a revision message, visible when the revision number changes.
320
+ * Check out the [docs](https://cookieconsent.orestbida.com/advanced/revision-management.html) for more.
321
+ */
322
+ revisionMessage?: string
323
+
324
+ /**
325
+ * Custom HTML string where you can put links pointing to your privacy policy.
326
+ */
327
+ footer?: string
328
+ }
329
+
330
+ interface CookieTable {
331
+
332
+ /**
333
+ * Table caption
334
+ */
335
+ caption?: string,
336
+
337
+ /**
338
+ * Define the table headers (columns).
339
+ */
340
+ headers: {[key: string]: string}
341
+
342
+ /**
343
+ * Define the table body items (rows).
344
+ */
345
+ body: {[key: string]: string}[]
346
+ }
347
+
348
+ interface Section {
349
+ /**
350
+ * Section title.
351
+ */
352
+ title?: string
353
+
354
+ /**
355
+ * Section description.
356
+ */
357
+ description?: string
358
+
359
+ /**
360
+ * Name of a valid category. This will convert the current section into a "togglable" category.
361
+ */
362
+ linkedCategory?: string
363
+
364
+ /**
365
+ * Create a custom html table (generally used to clarify cookies).
366
+ */
367
+ cookieTable?: CookieTable
368
+ }
369
+
370
+ interface PreferencesModalOptions {
371
+ title?: string
372
+ acceptAllBtn?: string
373
+ acceptNecessaryBtn?: string
374
+ savePreferencesBtn?: string
375
+
376
+ /**
377
+ * Accessibility label.
378
+ */
379
+ closeIconLabel?: string
380
+
381
+ /**
382
+ * Label to append to services counter.
383
+ */
384
+ serviceCounterLabel?: string
385
+
386
+ sections: Section[]
387
+ }
388
+
389
+ interface Translation {
390
+ consentModal: ConsentModalOptions
391
+ preferencesModal: PreferencesModalOptions
392
+ }
393
+
394
+ interface CookieConsentConfig {
395
+ /**
396
+ * Root element where the modal will be appended.
397
+ *
398
+ * @default document.body
399
+ */
400
+ root?: string | Element | null
401
+
402
+ /**
403
+ * Check out the [docs](https://cookieconsent.orestbida.com/reference/configuration-reference.html#mode) for details.
404
+ *
405
+ * @default 'opt-in'
406
+ */
407
+ mode?: 'opt-in' | 'opt-out'
408
+
409
+ /**
410
+ * Automatically show the consentModal if consent is not valid.
411
+ *
412
+ * @default true
413
+ */
414
+ autoShow?: boolean
415
+
416
+ /**
417
+ * Manage revisions. Check out the [docs](https://cookieconsent.orestbida.com/reference/configuration-reference.html#revision) for details and examples.
418
+ *
419
+ * @default 0
420
+ */
421
+ revision?: number
422
+
423
+ /**
424
+ * Intercept script tags with a "data-category" attribute.
425
+ *
426
+ * @default true
427
+ */
428
+ manageScriptTags?: boolean
429
+
430
+ /**
431
+ * Automatically erase cookies when the user opts-out of a category.
432
+ * Check out the [docs](https://cookieconsent.orestbida.com/reference/configuration-reference.html#categories-autoclear).
433
+ *
434
+ * @default true
435
+ */
436
+ autoClearCookies?: boolean
437
+
438
+ /**
439
+ * Create dark overlay and disable page scroll until consent.
440
+ *
441
+ * @default false
442
+ */
443
+ disablePageInteraction?: boolean
444
+
445
+ /**
446
+ * Stop the plugin's execution if a bot/crawler is detected
447
+ * to prevent the indexing of the modal's content.
448
+ *
449
+ * @default true
450
+ */
451
+ hideFromBots?: boolean
452
+
453
+ /**
454
+ * Tweak some UI options.
455
+ */
456
+ guiOptions?: GuiOptions
457
+
458
+ /**
459
+ * Generates the modals on the fly
460
+ * and only if needed
461
+ *
462
+ * @default true
463
+ */
464
+ lazyHtmlGeneration?: boolean
465
+
466
+ /**
467
+ * Change plugin's default cookie options.
468
+ */
469
+ cookie?: CookieOptions
470
+
471
+ /**
472
+ * Callback fired on the very first consent action.
473
+ */
474
+ onFirstConsent?: (param: {
475
+ cookie: CookieValue
476
+ }) => void
477
+
478
+ /**
479
+ * Callback fired on the very first consent action
480
+ * and on each page load.
481
+ */
482
+ onConsent?: (param: {
483
+ cookie: CookieValue
484
+ }) => void
485
+
486
+ /**
487
+ * Callback fired when categories or services are changed.
488
+ */
489
+ onChange?: (param: {
490
+ cookie: CookieValue
491
+ changedCategories: string[],
492
+ changedServices: {[key: string]: string[]}
493
+ }) => void
494
+
495
+ /**
496
+ * Callback fired when one of the modals is visible.
497
+ */
498
+ onModalShow?: (param: {
499
+ modalName: ModalName
500
+ }) => void
501
+
502
+ /**
503
+ * Callback fired when one of the modals is hidden.
504
+ */
505
+ onModalHide?: (param: {
506
+ modalName: ModalName
507
+ }) => void
508
+
509
+ /**
510
+ * Callback fired when one of the modals is appended to the dom.
511
+ */
512
+ onModalReady?: (param: {
513
+ modalName: ModalName,
514
+ modal: HTMLElement
515
+ }) => void
516
+
517
+ /**
518
+ * Configure cookie categories.
519
+ */
520
+ categories: {[key: string]: Category}
521
+
522
+ /**
523
+ * Configure language and translations.
524
+ */
525
+ language: {
526
+ /**
527
+ * Default language.
528
+ *
529
+ * E.g. 'en'
530
+ */
531
+ default: string,
532
+
533
+ /**
534
+ * RTL language(s).
535
+ */
536
+ rtl?: string | string[]
537
+
538
+ /**
539
+ * Language detection strategy.
540
+ */
541
+ autoDetect?: 'document' | 'browser'
542
+
543
+ translations: {
544
+ [locale: string]: Translation
545
+ | string
546
+ | (() => Translation)
547
+ | (() => Promise<Translation>)
548
+ }
549
+ }
550
+ }
551
+
552
+
553
+ /**
554
+ * Configure and run the plugin.
555
+ */
556
+ function run(configOptions: CookieConsentConfig): Promise<void>
557
+
558
+ /**
559
+ * Show the consentModal.
560
+ *
561
+ * Pass the argument 'true' (boolean) to generate the modal if it doesn't exist.
562
+ */
563
+ function show(createModal?: boolean): void
564
+
565
+ /**
566
+ * Hide the consentModal.
567
+ */
568
+ function hide(): void
569
+
570
+ /**
571
+ * Show the preferencesModal.
572
+ */
573
+ function showPreferences(): void
574
+
575
+ /**
576
+ * Hide the preferencesModal.
577
+ */
578
+ function hidePreferences(): void
579
+
580
+ /**
581
+ * Accept/Reject categories.
582
+ * @param categories Categories to accept
583
+ * @param excludedCategories Categories to exclude
584
+ */
585
+ function acceptCategory(categories: string | string[], excludedCategories?: string[]): void
586
+
587
+ /**
588
+ * Accept/Reject services.
589
+ * @param services Services to accept
590
+ * @param category Category where the service is defined
591
+ */
592
+ function acceptService(services: string | string[], category: string): void
593
+
594
+ /**
595
+ * Returns true if category is accepted, otherwise false.
596
+ * @param categoryName Name of the category
597
+ * @returns boolean: true if category is accepted
598
+ */
599
+ function acceptedCategory(categoryName: string): boolean
600
+
601
+ /**
602
+ * Check if the service in the specified category is accepted.
603
+ * @param serviceName Name of the service
604
+ * @param categoryName Name of the category
605
+ * @returns boolean: true if service is accepted
606
+ */
607
+ function acceptedService(serviceName: string, categoryName: string): boolean
608
+
609
+ /**
610
+ * Returns true if consent is valid, otherwise false.
611
+ * @returns boolean: true if category is accepted
612
+ */
613
+ function validConsent(): boolean
614
+
615
+ /**
616
+ * Check if cookie is valid (exists and has a non empty value).
617
+ * @param cookieName Name of the cookie
618
+ * @returns boolean: true if cookie is valid
619
+ */
620
+ function validCookie(cookieName: string): boolean
621
+
622
+ /**
623
+ * Erase one or multiple cookies.
624
+ * @param cookies Names of the cookies to erase
625
+ * @param path Expected path
626
+ * @param domain Expected domain
627
+ */
628
+ function eraseCookies(cookies: string | RegExp | (string|RegExp)[], path?: string, domain?: string): void
629
+
630
+ /**
631
+ * Load '.js' files.
632
+ * @param src Path pointing to the js file
633
+ * @param attributes Attributes added to the script
634
+ * @returns Promise<boolean>: true if script is loaded successfully
635
+ */
636
+ function loadScript(src: string, attributes?: {[key: string]: string}): Promise<boolean>
637
+
638
+ /**
639
+ * Store custom data inside plugin's own cookie.
640
+ * @param data Object containing the value to save, and the write method
641
+ * @returns boolean: true on success
642
+ */
643
+ function setCookieData(data: {value: any, mode?: 'overwrite' | 'update'}): boolean
644
+
645
+ /**
646
+ * Get the entire cookie object.
647
+ * @returns object with all the cookie fields
648
+ */
649
+ function getCookie(): CookieValue
650
+
651
+ /**
652
+ * Get a specific field from the cookie.
653
+ * @param field Cookie field (string)
654
+ * @returns value of the specified field
655
+ */
656
+ function getCookie<Field extends keyof CookieValue>(field: Field): CookieValue[Field]
657
+
658
+ /**
659
+ * Get the full config. object.
660
+ * @returns config. object
661
+ */
662
+ function getConfig(): CookieConsentConfig
663
+
664
+ /**
665
+ * Get one of the configuration options.
666
+ * @param field Configuration option
667
+ * @returns value of the specified field
668
+ */
669
+ function getConfig<Field extends keyof CookieConsentConfig>(field: Field): CookieConsentConfig[Field]
670
+
671
+ /**
672
+ * Retrieve the user's preferences. Useful for logging purposes.
673
+ * @returns object with the user's preferences
674
+ */
675
+ function getUserPreferences(): UserPreferences
676
+
677
+ /**
678
+ * Change modal's language. Language must already be declared in the config.
679
+ * @param languageCode desired language
680
+ * @param forceSet forcefully set language and reload modals
681
+ * @returns Promise<boolean>: true if language is set successfully
682
+ */
683
+ function setLanguage(languageCode: string, forceSet?: boolean): Promise<boolean>
684
+
685
+ /**
686
+ * Reset cookieconsent.
687
+ * @param eraseCookie delete plugin's cookie
688
+ */
689
+ function reset(eraseCookie?: boolean): void
690
+ }
691
+
692
+ declare global {
693
+ interface Window {
694
+ CookieConsent: typeof CookieConsent
695
+ }
696
+ }