Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dom-gdpr-guard

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-gdpr-guard - npm Package Compare versions

Comparing version 3.0.4 to 3.1.0

2

dist/index.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.domGdprGuard=t():e.domGdprGuard=t()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:this,(()=>(()=>{var e={845:function(e){var t;"undefined"!=typeof self?self:"undefined"!=typeof window&&window,t=()=>(()=>{"use strict";var e={315:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.makeGuard=void 0;var o=n(670);t.makeGuard=function(e,t,n,r,i){return void 0===n&&(n=o.GdprStorage.Cookie),void 0===r&&(r=!1),void 0===i&&(i=null),{name:e,description:t,storage:n,required:r,enabled:null===i?r:i,enable:function(){return this.enabled||this.toggle(),this},disable:function(){return this.enabled&&this.toggle(),this},toggle:function(){return this.required||(this.enabled=!this.enabled),this},makeRequired:function(){return this.required=!0,this.enabled=!0,this},isEnabled:function(e){return this.name===e&&this.enabled},enableForStorage:function(e){return this.enabled||this.toggleForStorage(e),this},disableForStorage:function(e){return this.enabled&&this.toggleForStorage(e),this},toggleForStorage:function(e){return this.storage!=e||this.required||this.toggle(),this},raw:function(){return JSON.parse(JSON.stringify(this))}}}},822:function(e,t,n){var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGuardGroup=void 0;var s=n(670),a=function(){function e(e,t,n,o){void 0===t&&(t=""),void 0===n&&(n=!1),void 0===o&&(o=!1),this.name=e,this.description=t,this.enabled=n,this.required=o,this.storage=s.GdprStorage.None,this.bindings=new Map,this.required&&(this.enabled=!0)}return e.for=function(t,n,o,r){return void 0===n&&(n=""),void 0===o&&(o=!1),void 0===r&&(r=!1),new e(t,n,o,r)},e.prototype.addGuard=function(e){return this.bindings.set(e.name,e),this},e.prototype.hasGuard=function(e){return this.name===e||this.bindings.has(e)},e.prototype.getGuard=function(e){return this.name===e?this:this.bindings.get(e)||null},e.prototype.isEnabled=function(e){var t,n;if(this.hasGuard(e)&&null!==(a=this.getGuard(e)))return a.enabled;try{for(var i=o(this.bindings),s=i.next();!s.done;s=i.next()){var a,u=r(s.value,2);if(u[0],(a=u[1]).isEnabled(e))return!0}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!1},e.prototype.enable=function(){return this.required?this:(this.enabled=!0,this.doForEachGuard((function(e){return e.enable()})))},e.prototype.disable=function(){return this.required?this:(this.enabled=!1,this.doForEachGuard((function(e){return e.disable()})))},e.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},e.prototype.makeRequired=function(){return this.required=!0,this.enabled=!0,this.doForEachGuard((function(e){return e.makeRequired()}))},e.prototype.enableForStorage=function(e){return this.doForEachGuard((function(t){t.storage&e&&t.enable()}))},e.prototype.disableForStorage=function(e){return this.doForEachGuard((function(t){t.storage&e&&t.disable()}))},e.prototype.toggleForStorage=function(e){return this.doForEachGuard((function(t){if(t.storage&e)return t.toggle()}))},e.prototype.raw=function(){var e={name:this.name,description:this.description,enabled:this.enabled,required:this.required,storage:this.storage,guards:[]};return e.guards=i([],r(this.bindings),!1).map((function(e){var t=r(e,2);return t[0],t[1].raw()})),e},e.prototype.doForEachGuard=function(e){return this.bindings.forEach((function(t){return e(t)})),this},e.prototype.getGuards=function(){return i([],r(this.bindings.values()),!1)},e}();t.GdprGuardGroup=a},777:function(e,t,n){var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManager=void 0;var s=n(822),a=n(670),u=n(554),l=n(779),c=function(){function e(){this.bannerWasShown=!1,this.enabled=!0,this.events=new u.GdprManagerEventHub,this.groups=new Map,this.name="manager",this.description="Manager of GDPR guard groups",this.storage=a.GdprStorage.None,this.required=!1}return e.create=function(t){void 0===t&&(t=[]);var n=new e;return t.forEach((function(e){return n.addGroup(e)})),n},e.prototype.closeBanner=function(){var e=this;this.bannerWasShown=!0,(0,l.visitGdpr)(this,{onEach:function(t){t.enabled?e.events.enable(t.name):e.events.disable(t.name)}})},e.prototype.resetAndShowBanner=function(){this.bannerWasShown=!1},e.prototype.createGroup=function(e,t){return void 0===t&&(t=""),this.addGroup(s.GdprGuardGroup.for(e,t))},e.prototype.addGroup=function(e){return this.groups.set(e.name,e),this},e.prototype.hasGuard=function(e){return this.reduceGroupsPred((function(t){return t.hasGuard(e)}))},e.prototype.getGuard=function(e){var t,n;try{for(var i=o(this.groups),s=i.next();!s.done;s=i.next()){var a=r(s.value,2),u=(a[0],a[1]);if(u.hasGuard(e))return u.getGuard(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null},e.prototype.hasGroup=function(e){return this.reduceGroupsPred((function(t){return t.name===e}))},e.prototype.getGroup=function(e){var t,n;try{for(var i=o(this.groups),s=i.next();!s.done;s=i.next()){var a=r(s.value,2),u=a[0],l=a[1];if(u===e)return l}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null},e.prototype.isEnabled=function(e){return this.reduceGroupsPred((function(t){return t.isEnabled(e)}))},e.prototype.enable=function(){return this.enabled=!0,this.forEachGroup((function(e){return e.enable()}))},e.prototype.disable=function(){return this.enabled=!1,this.forEachGroup((function(e){return e.disable()}))},e.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},e.prototype.makeRequired=function(){return this},e.prototype.enableForStorage=function(e){return this.forEachGroup((function(t){return t.enableForStorage(e)}))},e.prototype.disableForStorage=function(e){return this.forEachGroup((function(t){return t.disableForStorage(e)}))},e.prototype.toggleForStorage=function(e){return this.forEachGroup((function(t){return t.toggleForStorage(e)}))},e.prototype.raw=function(){var e={bannerWasShown:this.bannerWasShown,enabled:this.enabled,groups:[]};return e.groups=i([],r(this.groups.values()),!1).map((function(e){return e.raw()})),e},e.prototype.reduceGroupsPred=function(e){var t,n;try{for(var i=o(this.groups),s=i.next();!s.done;s=i.next()){var a=r(s.value,2);if(a[0],e(a[1]))return!0}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!1},e.prototype.forEachGroup=function(e){return this.groups.forEach((function(t){return e(t)})),this},e.prototype.getGroups=function(){return i([],r(this.groups.values()),!1)},e}();t.GdprManager=c},554:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManagerEventHub=void 0;var n=function(){function e(){this.eventMap={}}return e.prototype.onEnable=function(e,t){return this.addListener("enable",e,t),this},e.prototype.onDisable=function(e,t){return this.addListener("disable",e,t),this},e.prototype.enable=function(e){return this.executeListeners("enable",e),this},e.prototype.disable=function(e){return this.executeListeners("disable",e),this},e.prototype.tagFor=function(e,t){return"".concat(e,"--").concat(t)},e.prototype.addListener=function(e,t,n){var o=this.tagFor(e,t);o in this.eventMap||(this.eventMap[o]=[]),this.eventMap[o].push(n)},e.prototype.executeListeners=function(e,t){var n,o=this.tagFor(e,t);null===(n=this.eventMap[o])||void 0===n||n.forEach((function(e){return e()}))},e}();t.GdprManagerEventHub=n},670:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GdprStorage=void 0,function(e){e[e.None=1]="None",e[e.Cookie=2]="Cookie",e[e.LocalStorage=4]="LocalStorage",e[e.SessionStorage=8]="SessionStorage",e[e.IndexedDb=16]="IndexedDb",e[e.FileSystem=16]="FileSystem",e[e.ServerStorage=16]="ServerStorage",e[e.All=30]="All"}(n||(n={})),t.GdprStorage=n},860:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGroupBuilder=void 0;var a=n(670),u=n(237),l=n(822),c=n(890),d=function(e){function t(t,n,o,r,i,s){var a=e.call(this)||this;return a.parent=t,a.name=n,a.description=o,a.enable=i,a.require=s,a.guards=[],a.storage=r,s&&(a.enable=!0),a}return r(t,e),t.create=function(e,n,o,r,i,s){return void 0===o&&(o=""),void 0===r&&(r=null),void 0===i&&(i=!0),void 0===s&&(s=!1),new t(e,n,o,r||a.GdprStorage.Cookie,i,s)},t.prototype.startGroup=function(t,n,o){return void 0===t&&(t=null),void 0===n&&(n=""),void 0===o&&(o=""),e.prototype.startGroup.call(this,t||this.parent.storage,n,o)},t.prototype.startRequiredGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startGroup(e,t,n).required()},t.prototype.endGroup=function(){var e=this.require||this.enable,t=l.GdprGuardGroup.for(this.name,this.description,e,this.require);return s(s([],i(this.guards),!1),i(this.groups),!1).forEach((function(e){return t.addGuard(e)})),this.require&&t.makeRequired(),this.parent.groups.push(t),this.parent},t.prototype.withName=function(e){return this.edit((function(t){return t.name=e}))},t.prototype.withDescription=function(e){return this.edit((function(t){return t.description=e}))},t.prototype.storedIn=function(e){return this.edit((function(t){return t.storage=e}))},t.prototype.enabled=function(){return this.edit((function(e){return e.enable=!0}))},t.prototype.disabled=function(){return this.edit((function(e){return e.enable=!1}))},t.prototype.required=function(){return this.edit((function(e){return e.require=!0}))},t.prototype.startGuard=function(e){return void 0===e&&(e=null),c.GdprGuardBuilder.create(this,e||this.storage,this.enable)},t.prototype.startRequiredGuard=function(e){return this.startGuard(e).required()},t.prototype.withEnabledGuard=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),this.startGuard(n).withName(e).withDescription(t).enabled().endGuard()},t.prototype.withDisabledGuard=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),this.startGuard(n).withName(e).withDescription(t).disabled().endGuard()},t.prototype.edit=function(e){return e(this),this},t}(u.GdprManagerBuilder);t.GdprGroupBuilder=d},890:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGuardBuilder=void 0;var o=n(670),r=n(315),i=function(){function e(e,t,n,o){this.parent=e,this.storage=t,this.enable=n,this.require=o,this.name="",this.description="",o&&(this.enable=!0)}return e.create=function(t,n,r,i){return void 0===n&&(n=o.GdprStorage.Cookie),void 0===r&&(r=!1),void 0===i&&(i=!1),new e(t,n,r,i)},e.prototype.endGuard=function(){var e=this.require||this.enable,t=(0,r.makeGuard)(this.name,this.description,this.storage,this.require,e);return this.require&&t.makeRequired(),this.parent.guards.push(t),this.parent},e.prototype.withName=function(e){return this.edit((function(t){return t.name=e}))},e.prototype.withDescription=function(e){return this.edit((function(t){return t.description=e}))},e.prototype.enabled=function(){return this.edit((function(e){return e.enable=!0}))},e.prototype.disabled=function(){return this.edit((function(e){return e.enable=!1}))},e.prototype.storedIn=function(e){return this.edit((function(t){return t.storage=e}))},e.prototype.required=function(){return this.edit((function(e){return e.require=!0}))},e.prototype.edit=function(e){return e(this),this},e}();t.GdprGuardBuilder=i},237:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManagerBuilder=void 0;var o=n(670),r=n(777),i=n(171),s=function(){function e(){this.storage=o.GdprStorage.Cookie,this.groups=[],this.bannerWasShown=!1}return e.make=function(){return new e},e.prototype.withBannerShown=function(e){void 0===e&&(e=!0),this.bannerWasShown=e},e.prototype.startGroup=function(e,t,n,o){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),void 0===o&&(o=!0),i.GdprGroupBuilder.create(this,t,n,e,o,!1)},e.prototype.startRequiredGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startEnabledGroup(e,t,n).required()},e.prototype.startEnabledGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startGroup(e,t,n,!0).enabled()},e.prototype.startDisabledGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startGroup(e,t,n,!1).disabled()},e.prototype.build=function(){var e=r.GdprManager.create(this.groups);return e.bannerWasShown=this.bannerWasShown,e},e.prototype.endGroup=function(){return this},e}();t.GdprManagerBuilder=s},171:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(890),t),r(n(237),t),r(n(860),t)},93:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(315),t),r(n(822),t),r(n(777),t),r(n(670),t),r(n(554),t),r(n(779),t),r(n(171),t),r(n(562),t),r(n(344),t)},562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprDeserializer=void 0;var o=n(777),r=n(670),i=n(822),s=n(315),a=function(){function e(){}return e.manager=function(e){var t=this;if(!["enabled","groups"].every((function(t){return t in e}))||"boolean"!=typeof e.enabled||!Array.isArray(e.groups))return null;var n=e.groups.map((function(e){return t.group(e)})).filter((function(e){return null!==e})),r=o.GdprManager.create([]);return r.enabled=!!e.enabled,r.bannerWasShown=!!e.bannerWasShown,n.length?(n.forEach((function(e){return r.addGroup(e)})),r):null},e.group=function(e){var t=this,n=this.guard(e);if(null===n)return null;var o=["guards"];if(!o.every((function(t){return t in e}))||!Array.isArray(e.guards))return null;var r=i.GdprGuardGroup.for(n.name,n.description,n.enabled,n.required),s=e.guards.map((function(e){return o.every((function(t){return t in e}))?t.group(e):t.guard(e)})).filter((function(e){return null!==e}));return s.length?(s.forEach((function(e){return r.addGuard(e)})),r):null},e.guard=function(e){return["name","enabled","required","description","storage"].every((function(t){return t in e}))&&"string"==typeof e.name&&"boolean"==typeof e.enabled&&"boolean"==typeof e.required&&"string"==typeof e.description&&"number"==typeof e.storage&&e.storage in r.GdprStorage?(0,s.makeGuard)(e.name,e.description,e.storage,!!e.required,!!e.enabled):null},e}();t.GdprDeserializer=a},344:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprSaviorAdapter=void 0;var r=function(){function e(){}return e.prototype.exists=function(e){return void 0===e&&(e=!0),n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.restore(e)];case 1:return[2,null!==t.sent()]}}))}))},e.prototype.storeIfNotExists=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.exists()];case 1:return[2,!!t.sent()||this.store(e)]}}))}))},e.prototype.restoreOrCreate=function(e){return n(this,void 0,void 0,(function(){var t,n;return o(this,(function(o){switch(o.label){case 0:return[4,this.restore()];case 1:return(t=o.sent())?[3,3]:[4,e()];case 2:return n=o.sent(),this.updateSharedManager(n),n.bannerWasShown&&n.closeBanner(),[2,n];case 3:return t.bannerWasShown&&t.closeBanner(),[2,t]}}))}))},e.prototype.check=function(){return n(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:return[4,Promise.resolve()];case 1:return t.sent(),setTimeout((function(){e.exists(!0)}),100),[2]}}))}))},e}();t.GdprSaviorAdapter=r},779:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.visitGdpr=void 0;var o=n(777),r=n(822);t.visitGdpr=function(e,n){var i=void 0===n?{}:n,s=i.onManager,a=void 0===s?function(){}:s,u=i.onGroup,l=void 0===u?function(){}:u,c=i.onGuard,d=void 0===c?function(){}:c,h=i.onEach,p=void 0===h?function(){}:h,f={onManager:a,onGroup:l,onGuard:d,onEach:p};e instanceof o.GdprManager?(a(e),p(e),e.getGroups().forEach((function(e){return(0,t.visitGdpr)(e,f)}))):e instanceof r.GdprGuardGroup?(l(e),p(e),e.getGuards().forEach((function(e){return(0,t.visitGdpr)(e,f)}))):(d(e),p(e))}}},t={};return function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}(93)})(),e.exports=t()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{gdprGuard:()=>e,mountOnTarget:()=>C,render:()=>t,renderInside:()=>q});var e=n(845),t=function(e,t){return n=void 0,o=void 0,i=function(){var n,o,r,i;return function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(s){switch(s.label){case 0:return n=t.renderManager,o=t.renderGroup,r=t.renderGuard,i={bound:function(e){return this[e].bind(this)},renderGuard:function(e){return r(this.bound("renderGroup"),e)},renderGroup:function(e){return o(this.bound("renderGuard"),e)},renderManager:function(e){return n(this.bound("renderGroup"),e)}},[4,i.renderManager(e)];case 1:return[2,{rendered:s.sent(),manager:e}]}}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}u((i=i.apply(n,o||[])).next())}));var n,o,r,i};function r(e,t,n){let o;return"#text"===e.nodeName?o=n.document.createTextNode(e.data):"#comment"===e.nodeName?o=n.document.createComment(e.data):(t?o=n.document.createElementNS("http://www.w3.org/2000/svg",e.nodeName):"svg"===e.nodeName.toLowerCase()?(o=n.document.createElementNS("http://www.w3.org/2000/svg","svg"),t=!0):o=n.document.createElement(e.nodeName),e.attributes&&Object.entries(e.attributes).forEach((([e,t])=>o.setAttribute(e,t))),e.childNodes&&e.childNodes.forEach((e=>o.appendChild(r(e,t,n)))),n.valueDiffing&&(e.value&&(o.value=e.value),e.checked&&(o.checked=e.checked),e.selected&&(o.selected=e.selected))),o}function i(e,t){for(t=t.slice();t.length>0;){if(!e.childNodes)return!1;const n=t.splice(0,1)[0];e=e.childNodes[n]}return e}function s(e,t,n){let o,s,a,u,l,c=i(e,t[n._const.route]);const d={diff:t,node:c};if(n.preDiffApply(d))return!0;switch(t[n._const.action]){case n._const.addAttribute:if(!c||!c.setAttribute)return!1;c.setAttribute(t[n._const.name],t[n._const.value]);break;case n._const.modifyAttribute:if(!c||!c.setAttribute)return!1;c.setAttribute(t[n._const.name],t[n._const.newValue]),"INPUT"===c.nodeName&&"value"===t[n._const.name]&&(c.value=t[n._const.newValue]);break;case n._const.removeAttribute:if(!c||!c.removeAttribute)return!1;c.removeAttribute(t[n._const.name]);break;case n._const.modifyTextElement:if(!c||3!==c.nodeType)return!1;n.textDiff(c,c.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyValue:if(!c||void 0===c.value)return!1;c.value=t[n._const.newValue];break;case n._const.modifyComment:if(!c||void 0===c.data)return!1;n.textDiff(c,c.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyChecked:if(!c||void 0===c.checked)return!1;c.checked=t[n._const.newValue];break;case n._const.modifySelected:if(!c||void 0===c.selected)return!1;c.selected=t[n._const.newValue];break;case n._const.replaceElement:c.parentNode.replaceChild(r(t[n._const.newValue],"http://www.w3.org/2000/svg"===c.namespaceURI,n),c);break;case n._const.relocateGroup:u=Array(...new Array(t.groupLength)).map((()=>c.removeChild(c.childNodes[t[n._const.from]]))),u.forEach(((e,o)=>{0===o&&(s=c.childNodes[t[n._const.to]]),c.insertBefore(e,s||null)}));break;case n._const.removeElement:c.parentNode.removeChild(c);break;case n._const.addElement:a=t[n._const.route].slice(),l=a.splice(a.length-1,1)[0],c=i(e,a),c.insertBefore(r(t[n._const.element],"http://www.w3.org/2000/svg"===c.namespaceURI,n),c.childNodes[l]||null);break;case n._const.removeTextElement:if(!c||3!==c.nodeType)return!1;c.parentNode.removeChild(c);break;case n._const.addTextElement:if(a=t[n._const.route].slice(),l=a.splice(a.length-1,1)[0],o=n.document.createTextNode(t[n._const.value]),c=i(e,a),!c||!c.childNodes)return!1;c.insertBefore(o,c.childNodes[l]||null);break;default:console.log("unknown action")}return d.newNode=o,n.postDiffApply(d),!0}function a(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}class u{constructor(e={}){Object.entries(e).forEach((([e,t])=>this[e]=t))}toString(){return JSON.stringify(this)}setValue(e,t){return this[e]=t,this}}function l(e){const t=[];return t.push(e.nodeName),"#text"!==e.nodeName&&"#comment"!==e.nodeName&&e.attributes&&(e.attributes.class&&t.push(`${e.nodeName}.${e.attributes.class.replace(/ /g,".")}`),e.attributes.id&&t.push(`${e.nodeName}#${e.attributes.id}`)),t}function c(e){const t={},n={};return e.forEach((e=>{l(e).forEach((e=>{const o=e in t;o||e in n?o&&(delete t[e],n[e]=!0):t[e]=!0}))})),t}function d(e,t){const n=c(e),o=c(t),r={};return Object.keys(n).forEach((e=>{o[e]&&(r[e]=!0)})),r}function h(e){return delete e.outerDone,delete e.innerDone,delete e.valueDone,!e.childNodes||e.childNodes.every(h)}function p(e,t){if(!["nodeName","value","checked","selected","data"].every((n=>e[n]===t[n])))return!1;if(Boolean(e.attributes)!==Boolean(t.attributes))return!1;if(Boolean(e.childNodes)!==Boolean(t.childNodes))return!1;if(e.attributes){const n=Object.keys(e.attributes),o=Object.keys(t.attributes);if(n.length!==o.length)return!1;if(!n.every((n=>e.attributes[n]===t.attributes[n])))return!1}if(e.childNodes){if(e.childNodes.length!==t.childNodes.length)return!1;if(!e.childNodes.every(((e,n)=>p(e,t.childNodes[n]))))return!1}return!0}function f(e,t,n,o,r){if(!e||!t)return!1;if(e.nodeName!==t.nodeName)return!1;if("#text"===e.nodeName)return!!r||e.data===t.data;if(e.nodeName in n)return!0;if(e.attributes&&t.attributes){if(e.attributes.id){if(e.attributes.id!==t.attributes.id)return!1;if(`${e.nodeName}#${e.attributes.id}`in n)return!0}if(e.attributes.class&&e.attributes.class===t.attributes.class&&`${e.nodeName}.${e.attributes.class.replace(/ /g,".")}`in n)return!0}if(o)return!0;const i=e.childNodes?e.childNodes.slice().reverse():[],s=t.childNodes?t.childNodes.slice().reverse():[];if(i.length!==s.length)return!1;if(r)return i.every(((e,t)=>e.nodeName===s[t].nodeName));{const e=d(i,s);return i.every(((t,n)=>f(t,s[n],e,!0,!0)))}}function b(e){return JSON.parse(JSON.stringify(e))}function g(e,t,n,o){let r=0,i=[];const s=e.length,a=t.length,u=Array(...new Array(s+1)).map((()=>[])),c=d(e,t);let h=s===a;h&&e.some(((e,n)=>{const o=l(e),r=l(t[n]);return o.length!==r.length?(h=!1,!0):(o.some(((e,t)=>{if(e!==r[t])return h=!1,!0})),!h||void 0)}));for(let l=0;l<s;l++){const s=e[l];for(let e=0;e<a;e++){const a=t[e];n[l]||o[e]||!f(s,a,c,h)?u[l+1][e+1]=0:(u[l+1][e+1]=u[l][e]?u[l][e]+1:1,u[l+1][e+1]>=r&&(r=u[l+1][e+1],i=[l+1,e+1]))}}return 0!==r&&{oldValue:i[0]-r,newValue:i[1]-r,length:r}}function v(e,t){return Array(...new Array(e)).map((()=>t))}class m{constructor(){this.list=[]}add(e){this.list.push(...e)}forEach(e){this.list.forEach((t=>e(t)))}}function y(e,t){let n,o,r=e;for(t=t.slice();t.length>0;){if(!r.childNodes)return!1;o=t.splice(0,1)[0],n=r,r=r.childNodes[o]}return{node:r,parentNode:n,nodeIndex:o}}function _(e,t,n){return t.forEach((t=>{!function(e,t,n){const o=y(e,t[n._const.route]);let r=o.node;const i=o.parentNode,s=o.nodeIndex,a=[],u={diff:t,node:r};if(n.preVirtualDiffApply(u))return!0;let l,c,d,h;switch(t[n._const.action]){case n._const.addAttribute:r.attributes||(r.attributes={}),r.attributes[t[n._const.name]]=t[n._const.value],"checked"===t[n._const.name]?r.checked=!0:"selected"===t[n._const.name]?r.selected=!0:"INPUT"===r.nodeName&&"value"===t[n._const.name]&&(r.value=t[n._const.value]);break;case n._const.modifyAttribute:r.attributes[t[n._const.name]]=t[n._const.newValue];break;case n._const.removeAttribute:delete r.attributes[t[n._const.name]],0===Object.keys(r.attributes).length&&delete r.attributes,"checked"===t[n._const.name]?r.checked=!1:"selected"===t[n._const.name]?delete r.selected:"INPUT"===r.nodeName&&"value"===t[n._const.name]&&delete r.value;break;case n._const.modifyTextElement:r.data=t[n._const.newValue];break;case n._const.modifyValue:r.value=t[n._const.newValue];break;case n._const.modifyComment:r.data=t[n._const.newValue];break;case n._const.modifyChecked:r.checked=t[n._const.newValue];break;case n._const.modifySelected:r.selected=t[n._const.newValue];break;case n._const.replaceElement:l=b(t[n._const.newValue]),l.outerDone=!0,l.innerDone=!0,l.valueDone=!0,i.childNodes[s]=l;break;case n._const.relocateGroup:c=r.childNodes.splice(t[n._const.from],t.groupLength).reverse(),c.forEach((e=>r.childNodes.splice(t[n._const.to],0,e))),r.subsets&&r.subsets.forEach((e=>{if(t[n._const.from]<t[n._const.to]&&e.oldValue<=t[n._const.to]&&e.oldValue>t[n._const.from]){e.oldValue-=t.groupLength;const o=e.oldValue+e.length-t[n._const.to];o>0&&(a.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else if(t[n._const.from]>t[n._const.to]&&e.oldValue>t[n._const.to]&&e.oldValue<t[n._const.from]){e.oldValue+=t.groupLength;const o=e.oldValue+e.length-t[n._const.to];o>0&&(a.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else e.oldValue===t[n._const.from]&&(e.oldValue=t[n._const.to])}));break;case n._const.removeElement:i.childNodes.splice(s,1),i.subsets&&i.subsets.forEach((e=>{e.oldValue>s?e.oldValue-=1:e.oldValue===s?e.delete=!0:e.oldValue<s&&e.oldValue+e.length>s&&(e.oldValue+e.length-1===s?e.length--:(a.push({newValue:e.newValue+s-e.oldValue,oldValue:s,length:e.length-s+e.oldValue-1}),e.length=s-e.oldValue))})),r=i;break;case n._const.addElement:d=t[n._const.route].slice(),h=d.splice(d.length-1,1)[0],r=y(e,d).node,l=b(t[n._const.element]),l.outerDone=!0,l.innerDone=!0,l.valueDone=!0,r.childNodes||(r.childNodes=[]),h>=r.childNodes.length?r.childNodes.push(l):r.childNodes.splice(h,0,l),r.subsets&&r.subsets.forEach((e=>{if(e.oldValue>=h)e.oldValue+=1;else if(e.oldValue<h&&e.oldValue+e.length>h){const t=e.oldValue+e.length-h;a.push({newValue:e.newValue+e.length-t,oldValue:h+1,length:t}),e.length-=t}}));break;case n._const.removeTextElement:i.childNodes.splice(s,1),"TEXTAREA"===i.nodeName&&delete i.value,i.subsets&&i.subsets.forEach((e=>{e.oldValue>s?e.oldValue-=1:e.oldValue===s?e.delete=!0:e.oldValue<s&&e.oldValue+e.length>s&&(e.oldValue+e.length-1===s?e.length--:(a.push({newValue:e.newValue+s-e.oldValue,oldValue:s,length:e.length-s+e.oldValue-1}),e.length=s-e.oldValue))})),r=i;break;case n._const.addTextElement:d=t[n._const.route].slice(),h=d.splice(d.length-1,1)[0],l={},l.nodeName="#text",l.data=t[n._const.value],r=y(e,d).node,r.childNodes||(r.childNodes=[]),h>=r.childNodes.length?r.childNodes.push(l):r.childNodes.splice(h,0,l),"TEXTAREA"===r.nodeName&&(r.value=t[n._const.newValue]),r.subsets&&r.subsets.forEach((e=>{if(e.oldValue>=h&&(e.oldValue+=1),e.oldValue<h&&e.oldValue+e.length>h){const t=e.oldValue+e.length-h;a.push({newValue:e.newValue+e.length-t,oldValue:h+1,length:t}),e.length-=t}}));break;default:console.log("unknown action")}r.subsets&&(r.subsets=r.subsets.filter((e=>!e.delete&&e.oldValue!==e.newValue)),a.length&&(r.subsets=r.subsets.concat(a))),u.newNode=l,n.postVirtualDiffApply(u)}(e,t,n)})),!0}function w(e,t={}){const n={};return n.nodeName=e.nodeName,"#text"===n.nodeName||"#comment"===n.nodeName?n.data=e.data:(e.attributes&&e.attributes.length>0&&(n.attributes={},Array.prototype.slice.call(e.attributes).forEach((e=>n.attributes[e.name]=e.value))),"TEXTAREA"===n.nodeName?n.value=e.value:e.childNodes&&e.childNodes.length>0&&(n.childNodes=[],Array.prototype.slice.call(e.childNodes).forEach((e=>n.childNodes.push(w(e,t))))),t.valueDiffing&&(void 0!==e.checked&&e.type&&["radio","checkbox"].includes(e.type.toLowerCase())?n.checked=e.checked:void 0!==e.value&&(n.value=e.value),void 0!==e.selected&&(n.selected=e.selected))),n}const V=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,N=Object.create?Object.create(null):{},G=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function E(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}const x={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function k(e){const t={nodeName:"",attributes:{}};let n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.nodeName=n[1].toUpperCase(),(x[n[1].toLowerCase()]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.nodeName.startsWith("!--"))){const t=e.indexOf("--\x3e");return{type:"comment",data:-1!==t?e.slice(4,t):""}}let o=new RegExp(G),r=null,i=!1;for(;!i;)if(r=o.exec(e),null===r)i=!0;else if(r[0].trim())if(r[1]){let e=r[1].trim(),n=[e,""];e.indexOf("=")>-1&&(n=e.split("=")),t.attributes[n[0]]=n[1],o.lastIndex--}else r[2]&&(t.attributes[r[2]]=r[3].trim().substring(1,r[3].length-1));return t}function S(e){return delete e.voidElement,e.childNodes&&e.childNodes.forEach((e=>S(e))),e}function O(e){return S(function(e,t={components:N}){const n=[];let o,r=-1;const i=[];let s=!1;return e.replace(V,((a,u)=>{if(s){if(a!==`</${o.nodeName}>`)return;s=!1}const l="/"!==a.charAt(1),c=a.startsWith("\x3c!--"),d=u+a.length,h=e.charAt(d);let p;if(c){const e=k(a);return r<0?(n.push(e),n):(p=i[r],p&&(p.childNodes||(p.childNodes=[]),p.childNodes.push(e)),n)}if(l&&(o=k(a),r++,"tag"===o.type&&t.components[o.nodeName]&&(o.type="component",s=!0),o.voidElement||s||!h||"<"===h||(o.childNodes||(o.childNodes=[]),o.childNodes.push({nodeName:"#text",data:E(e.slice(d,e.indexOf("<",d)))})),0===r&&n.push(o),p=i[r-1],p&&(p.childNodes||(p.childNodes=[]),p.childNodes.push(o)),i[r]=o),(!l||o.voidElement)&&(r--,!s&&"<"!==h&&h)){p=-1===r?n:i[r].childNodes||[];const t=e.indexOf("<",d),o=E(e.slice(d,-1===t?void 0:t));p.push({nodeName:"#text",data:o})}})),n[0]}(e))}class A{constructor(e,t,n){this.options=n,this.t1=e instanceof HTMLElement?w(e,this.options):"string"==typeof e?O(e,this.options):JSON.parse(JSON.stringify(e)),this.t2=t instanceof HTMLElement?w(t,this.options):"string"==typeof t?O(t,this.options):JSON.parse(JSON.stringify(t)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig=w(e,this.options),this.t2Orig=w(t,this.options)),this.tracker=new m}init(){return this.findDiffs(this.t1,this.t2)}findDiffs(e,t){let n;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw window.diffError=[this.t1Orig,this.t2Orig],new Error(`surpassed diffcap:${JSON.stringify(this.t1Orig)} -> ${JSON.stringify(this.t2Orig)}`);n=this.findNextDiff(e,t,[]),0===n.length&&(p(e,t)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,h(e),n=this.findNextDiff(e,t,[])))),n.length>0&&(this.foundAll=!1,this.tracker.add(n),_(e,n,this.options))}while(n.length>0);return this.tracker.list}findNextDiff(e,t,n){let o,r;if(this.options.maxDepth&&n.length>this.options.maxDepth)return[];if(!e.outerDone){if(o=this.findOuterDiff(e,t,n),this.options.filterOuterDiff&&(r=this.options.filterOuterDiff(e,t,o),r&&(o=r)),o.length>0)return e.outerDone=!0,o;e.outerDone=!0}if(!e.innerDone){if(o=this.findInnerDiff(e,t,n),o.length>0)return o;e.innerDone=!0}if(this.options.valueDiffing&&!e.valueDone){if(o=this.findValueDiff(e,t,n),o.length>0)return e.valueDone=!0,o;e.valueDone=!0}return[]}findOuterDiff(e,t,n){const o=[];let r,i,s,a,l,c;if(e.nodeName!==t.nodeName){if(!n.length)throw new Error("Top level nodes have to be of the same kind.");return[(new u).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,b(e)).setValue(this.options._const.newValue,b(t)).setValue(this.options._const.route,n)]}if(n.length&&this.options.maxNodeDiffCount<Math.abs((e.childNodes||[]).length-(t.childNodes||[]).length))return[(new u).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,b(e)).setValue(this.options._const.newValue,b(t)).setValue(this.options._const.route,n)];if(e.data!==t.data)return"#text"===e.nodeName?[(new u).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)]:[(new u).setValue(this.options._const.action,this.options._const.modifyComment).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)];for(i=e.attributes?Object.keys(e.attributes).sort():[],s=t.attributes?Object.keys(t.attributes).sort():[],a=i.length,c=0;c<a;c++)r=i[c],l=s.indexOf(r),-1===l?o.push((new u).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,r).setValue(this.options._const.value,e.attributes[r])):(s.splice(l,1),e.attributes[r]!==t.attributes[r]&&o.push((new u).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,r).setValue(this.options._const.oldValue,e.attributes[r]).setValue(this.options._const.newValue,t.attributes[r])));for(a=s.length,c=0;c<a;c++)r=s[c],o.push((new u).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,r).setValue(this.options._const.value,t.attributes[r]));return o}findInnerDiff(e,t,n){const o=e.childNodes?e.childNodes.slice():[],r=t.childNodes?t.childNodes.slice():[],i=Math.max(o.length,r.length);let s=Math.abs(o.length-r.length),a=[],l=0;if(!this.options.maxChildCount||i<this.options.maxChildCount){const o=e.subsets&&e.subsetsAge--,r=o?e.subsets:e.childNodes&&t.childNodes?function(e,t){const n=e.childNodes?e.childNodes:[],o=t.childNodes?t.childNodes:[],r=v(n.length,!1),i=v(o.length,!1),s=[];let a=!0;const u=function(){return arguments[1]};for(;a;)a=g(n,o,r,i),a&&(s.push(a),Array(...new Array(a.length)).map(u).forEach((e=>{return t=e,r[a.oldValue+t]=!0,void(i[a.newValue+t]=!0);var t})));return e.subsets=s,e.subsetsAge=100,s}(e,t):[];if(r.length>0&&(a=this.attemptGroupRelocation(e,t,r,n,o),a.length>0))return a}for(let e=0;e<i;e+=1){const t=o[e],c=r[e];s&&(t&&!c?"#text"===t.nodeName?(a.push((new u).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,t.data)),l-=1):(a.push((new u).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,b(t))),l-=1):c&&!t&&("#text"===c.nodeName?a.push((new u).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,c.data)):a.push((new u).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,b(c))))),t&&c&&(!this.options.maxChildCount||i<this.options.maxChildCount?a=a.concat(this.findNextDiff(t,c,n.concat(l))):p(t,c)||(o.length>r.length?("#text"===t.nodeName?a.push((new u).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,t.data)):a.push((new u).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,b(t)).setValue(this.options._const.route,n.concat(l))),o.splice(e,1),e-=1,l-=1,s-=1):o.length<r.length?(a=a.concat([(new u).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,b(c)).setValue(this.options._const.route,n.concat(l))]),o.splice(e,0,{}),s-=1):a=a.concat([(new u).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,b(t)).setValue(this.options._const.newValue,b(c)).setValue(this.options._const.route,n.concat(l))]))),l+=1}return e.innerDone=!0,a}attemptGroupRelocation(e,t,n,o,r){const i=function(e,t,n){const o=e.childNodes?v(e.childNodes.length,!0):[],r=t.childNodes?v(t.childNodes.length,!0):[];let i=0;return n.forEach((e=>{const t=e.oldValue+e.length,n=e.newValue+e.length;for(let n=e.oldValue;n<t;n+=1)o[n]=i;for(let t=e.newValue;t<n;t+=1)r[t]=i;i+=1})),{gaps1:o,gaps2:r}}(e,t,n),s=i.gaps1,a=i.gaps2;let l,c,d,h,p,g,m=Math.min(s.length,a.length);const y=[];for(let i=0,v=0;i<m;v+=1,i+=1)if(!r||!0!==s[i]&&!0!==a[i])if(!0===s[i])if(h=e.childNodes[v],"#text"===h.nodeName)if("#text"===t.childNodes[i].nodeName){if(h.data!==t.childNodes[i].data){for(g=v;e.childNodes.length>g+1&&"#text"===e.childNodes[g+1].nodeName;)if(g+=1,t.childNodes[i].data===e.childNodes[g].data){p=!0;break}if(!p)return y.push((new u).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.oldValue,h.data).setValue(this.options._const.newValue,t.childNodes[i].data)),y}}else y.push((new u).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.value,h.data)),s.splice(i,1),m=Math.min(s.length,a.length),i-=1;else y.push((new u).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.element,b(h))),s.splice(i,1),m=Math.min(s.length,a.length),i-=1;else if(!0===a[i])h=t.childNodes[i],"#text"===h.nodeName?(y.push((new u).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.value,h.data)),s.splice(i,0,!0),m=Math.min(s.length,a.length),v-=1):(y.push((new u).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.element,b(h))),s.splice(i,0,!0),m=Math.min(s.length,a.length),v-=1);else if(s[i]!==a[i]){if(y.length>0)return y;if(d=n[s[i]],c=Math.min(d.newValue,e.childNodes.length-d.length),c!==d.oldValue){l=!1;for(let t=0;t<d.length;t+=1)f(e.childNodes[c+t],e.childNodes[d.oldValue+t],[],!1,!0)||(l=!0);if(l)return[(new u).setValue(this.options._const.action,this.options._const.relocateGroup).setValue("groupLength",d.length).setValue(this.options._const.from,d.oldValue).setValue(this.options._const.to,c).setValue(this.options._const.route,o)]}}return y}findValueDiff(e,t,n){const o=[];return e.selected!==t.selected&&o.push((new u).setValue(this.options._const.action,this.options._const.modifySelected).setValue(this.options._const.oldValue,e.selected).setValue(this.options._const.newValue,t.selected).setValue(this.options._const.route,n)),(e.value||t.value)&&e.value!==t.value&&"OPTION"!==e.nodeName&&o.push((new u).setValue(this.options._const.action,this.options._const.modifyValue).setValue(this.options._const.oldValue,e.value||"").setValue(this.options._const.newValue,t.value||"").setValue(this.options._const.route,n)),e.checked!==t.checked&&o.push((new u).setValue(this.options._const.action,this.options._const.modifyChecked).setValue(this.options._const.oldValue,e.checked).setValue(this.options._const.newValue,t.checked).setValue(this.options._const.route,n)),o}}const D={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,textDiff(e,t,n,o){e.data=o},preVirtualDiffApply(){},postVirtualDiffApply(){},preDiffApply(){},postDiffApply(){},filterOuterDiff:null,compress:!1,_const:!1,document:!(!window||!window.document)&&window.document};var M=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},T=function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},j=new class{constructor(e={}){if(this.options=e,Object.entries(D).forEach((([e,t])=>{Object.prototype.hasOwnProperty.call(this.options,e)||(this.options[e]=t)})),!this.options._const){const e=["addAttribute","modifyAttribute","removeAttribute","modifyTextElement","relocateGroup","removeElement","addElement","removeTextElement","addTextElement","replaceElement","modifyValue","modifyChecked","modifySelected","modifyComment","action","route","oldValue","newValue","element","group","from","to","name","value","data","attributes","nodeName","childNodes","checked","selected"];this.options._const={},this.options.compress?e.forEach(((e,t)=>this.options._const[e]=t)):e.forEach((e=>this.options._const[e]=e))}this.DiffFinder=A}apply(e,t){return function(e,t,n){return t.every((t=>s(e,t,n)))}(e,t,this.options)}undo(e,t){return function(e,t,n){t.length||(t=[t]),(t=t.slice()).reverse(),t.forEach((t=>{!function(e,t,n){switch(t[n._const.action]){case n._const.addAttribute:t[n._const.action]=n._const.removeAttribute,s(e,t,n);break;case n._const.modifyAttribute:a(t,n._const.oldValue,n._const.newValue),s(e,t,n);break;case n._const.removeAttribute:t[n._const.action]=n._const.addAttribute,s(e,t,n);break;case n._const.modifyTextElement:case n._const.modifyValue:case n._const.modifyComment:case n._const.modifyChecked:case n._const.modifySelected:case n._const.replaceElement:a(t,n._const.oldValue,n._const.newValue),s(e,t,n);break;case n._const.relocateGroup:a(t,n._const.from,n._const.to),s(e,t,n);break;case n._const.removeElement:t[n._const.action]=n._const.addElement,s(e,t,n);break;case n._const.addElement:t[n._const.action]=n._const.removeElement,s(e,t,n);break;case n._const.removeTextElement:t[n._const.action]=n._const.addTextElement,s(e,t,n);break;case n._const.addTextElement:t[n._const.action]=n._const.removeTextElement,s(e,t,n);break;default:console.log("unknown action")}}(e,t,n)}))}(e,t,this.options)}diff(e,t){return new this.DiffFinder(e,t,this.options).init()}},C=function(e,t){if(e.childElementCount){var n=e.children.item(0),o=j.diff(n,t);j.apply(n,o)}else e.appendChild(t)},q=function(e,n,o){return M(void 0,void 0,void 0,(function(){var r;return T(this,(function(i){switch(i.label){case 0:return r=function(){return M(void 0,void 0,void 0,(function(){var r;return T(this,(function(i){switch(i.label){case 0:return[4,t(n,o)];case 1:return r=i.sent().rendered,C(e,r),[2]}}))}))},[4,r()];case 1:return i.sent(),[2,{render:r,manager:n}]}}))}))}})(),o})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.domGdprGuard=t():e.domGdprGuard=t()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:this,(()=>(()=>{var e={845:function(e){var t;"undefined"!=typeof self?self:"undefined"!=typeof window&&window,t=()=>(()=>{"use strict";var e={315:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.makeGuard=void 0;var o=n(670);t.makeGuard=function(e,t,n,r,i){return void 0===n&&(n=o.GdprStorage.Cookie),void 0===r&&(r=!1),void 0===i&&(i=null),{name:e,description:t,storage:n,required:r,enabled:null===i?r:i,enable:function(){return this.enabled||this.toggle(),this},disable:function(){return this.enabled&&this.toggle(),this},toggle:function(){return this.required||(this.enabled=!this.enabled),this},makeRequired:function(){return this.required=!0,this.enabled=!0,this},isEnabled:function(e){return this.name===e&&this.enabled},enableForStorage:function(e){return this.enabled||this.toggleForStorage(e),this},disableForStorage:function(e){return this.enabled&&this.toggleForStorage(e),this},toggleForStorage:function(e){return this.storage!=e||this.required||this.toggle(),this},raw:function(){return JSON.parse(JSON.stringify(this))}}}},822:function(e,t,n){var o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGuardGroup=void 0;var s=n(670),a=function(){function e(e,t,n,o){void 0===t&&(t=""),void 0===n&&(n=!1),void 0===o&&(o=!1),this.name=e,this.description=t,this.enabled=n,this.required=o,this.storage=s.GdprStorage.None,this.bindings=new Map,this.required&&(this.enabled=!0)}return e.for=function(t,n,o,r){return void 0===n&&(n=""),void 0===o&&(o=!1),void 0===r&&(r=!1),new e(t,n,o,r)},e.prototype.addGuard=function(e){return this.bindings.set(e.name,e),this},e.prototype.hasGuard=function(e){return this.name===e||this.bindings.has(e)||this.reduceSubGroupsPred((function(t){return t.hasGuard(e)}))},e.prototype.getGuard=function(e){var t,n;return this.name===e?this:null!==(n=null!==(t=this.bindings.get(e))&&void 0!==t?t:this.reduceSubGroups((function(t){return t.getGuard(e)})))&&void 0!==n?n:null},e.prototype.isEnabled=function(e){if(this.hasGuard(e)){var t=this.getGuard(e);if(null!==t)return t.enabled}return!1},e.prototype.enable=function(){return this.required?this:(this.enabled=!0,this.doForEachGuard((function(e){return e.enable()})))},e.prototype.disable=function(){return this.required?this:(this.enabled=!1,this.doForEachGuard((function(e){return e.disable()})))},e.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},e.prototype.makeRequired=function(){return this.required=!0,this.enabled=!0,this.doForEachGuard((function(e){return e.makeRequired()}))},e.prototype.enableForStorage=function(e){return this.required?this:this.doForEachGuard((function(t){t.enableForStorage(e)}))},e.prototype.disableForStorage=function(e){return this.required?this:this.doForEachGuard((function(t){t.disableForStorage(e)}))},e.prototype.toggleForStorage=function(e){return this.required?this:this.doForEachGuard((function(t){t.toggleForStorage(e)}))},e.prototype.raw=function(){var e={name:this.name,description:this.description,enabled:this.enabled,required:this.required,storage:this.storage,guards:[]};return e.guards=r([],o(this.bindings),!1).map((function(e){var t=o(e,2);return t[0],t[1].raw()})),e},e.prototype.doForEachGuard=function(e){return this.bindings.forEach((function(t){return e(t)})),this},e.prototype.reduceSubGroupsPred=function(t){var n,r;try{for(var s=i(this.bindings),a=s.next();!a.done;a=s.next()){var u=o(a.value,2),l=(u[0],u[1]);if(l instanceof e&&t(l))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!1},e.prototype.reduceSubGroups=function(t){var n,r;try{for(var s=i(this.bindings),a=s.next();!a.done;a=s.next()){var u=o(a.value,2),l=(u[0],u[1]);if(l instanceof e){var c=t(l);if(c)return c}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return null},e.prototype.getGuards=function(){return r([],o(this.bindings.values()),!1)},e}();t.GdprGuardGroup=a},777:function(e,t,n){var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManager=void 0;var s=n(822),a=n(670),u=n(554),l=n(779),c=function(){function e(){this.bannerWasShown=!1,this.enabled=!0,this.events=new u.GdprManagerEventHub,this.groups=new Map,this.name="manager",this.description="Manager of GDPR guard groups",this.storage=a.GdprStorage.None,this.required=!1}return e.create=function(t){void 0===t&&(t=[]);var n=new e;return t.forEach((function(e){return n.addGroup(e)})),n},e.prototype.closeBanner=function(){var e=this;this.bannerWasShown=!0,(0,l.visitGdpr)(this,{onEach:function(t){t.enabled?e.events.enable(t.name):e.events.disable(t.name)}})},e.prototype.resetAndShowBanner=function(){this.bannerWasShown=!1},e.prototype.createGroup=function(e,t){return void 0===t&&(t=""),this.addGroup(s.GdprGuardGroup.for(e,t))},e.prototype.addGroup=function(e){return this.groups.set(e.name,e),this},e.prototype.hasGuard=function(e){return this.reduceGroupsPred((function(t){return t.hasGuard(e)}))},e.prototype.getGuard=function(e){var t,n;try{for(var i=o(this.groups),s=i.next();!s.done;s=i.next()){var a=r(s.value,2),u=(a[0],a[1]);if(u.hasGuard(e))return u.getGuard(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null},e.prototype.hasGroup=function(e){return this.reduceGroupsPred((function(t){return t.name===e}))},e.prototype.getGroup=function(e){var t,n;try{for(var i=o(this.groups),s=i.next();!s.done;s=i.next()){var a=r(s.value,2),u=a[0],l=a[1];if(u===e)return l}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null},e.prototype.isEnabled=function(e){return this.reduceGroupsPred((function(t){return t.isEnabled(e)}))},e.prototype.enable=function(){return this.enabled=!0,this.forEachGroup((function(e){return e.enable()}))},e.prototype.disable=function(){return this.enabled=!1,this.forEachGroup((function(e){return e.disable()}))},e.prototype.toggle=function(){return this.enabled?this.disable():this.enable()},e.prototype.makeRequired=function(){return this},e.prototype.enableForStorage=function(e){return this.forEachGroup((function(t){return t.enableForStorage(e)}))},e.prototype.disableForStorage=function(e){return this.forEachGroup((function(t){return t.disableForStorage(e)}))},e.prototype.toggleForStorage=function(e){return this.forEachGroup((function(t){return t.toggleForStorage(e)}))},e.prototype.raw=function(){var e={bannerWasShown:this.bannerWasShown,enabled:this.enabled,groups:[],name:this.name,description:this.description,storage:this.storage,required:this.required};return e.groups=i([],r(this.groups.values()),!1).map((function(e){return e.raw()})),e},e.prototype.reduceGroupsPred=function(e){var t,n;try{for(var i=o(this.groups),s=i.next();!s.done;s=i.next()){var a=r(s.value,2);if(a[0],e(a[1]))return!0}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!1},e.prototype.forEachGroup=function(e){return this.groups.forEach((function(t){return e(t)})),this},e.prototype.getGroups=function(){return i([],r(this.groups.values()),!1)},e}();t.GdprManager=c},554:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManagerEventHub=void 0;var n=function(){function e(){this.eventMap={}}return e.prototype.onEnable=function(e,t){return this.addListener("enable",e,t),this},e.prototype.onDisable=function(e,t){return this.addListener("disable",e,t),this},e.prototype.enable=function(e){return this.executeListeners("enable",e),this},e.prototype.disable=function(e){return this.executeListeners("disable",e),this},e.prototype.tagFor=function(e,t){return"".concat(e,"--").concat(t)},e.prototype.addListener=function(e,t,n){var o=this.tagFor(e,t);o in this.eventMap||(this.eventMap[o]=[]),this.eventMap[o].push(n)},e.prototype.executeListeners=function(e,t){var n,o=this.tagFor(e,t);null===(n=this.eventMap[o])||void 0===n||n.forEach((function(e){return e()}))},e}();t.GdprManagerEventHub=n},670:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GdprStorage=void 0,function(e){e[e.None=1]="None",e[e.Cookie=2]="Cookie",e[e.LocalStorage=4]="LocalStorage",e[e.SessionStorage=8]="SessionStorage",e[e.IndexedDb=16]="IndexedDb",e[e.FileSystem=16]="FileSystem",e[e.ServerStorage=16]="ServerStorage",e[e.All=30]="All"}(n||(n={})),t.GdprStorage=n},860:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGroupBuilder=void 0;var a=n(670),u=n(237),l=n(822),c=n(890),d=function(e){function t(t,n,o,r,i,s){var a=e.call(this)||this;return a.parent=t,a.name=n,a.description=o,a.enable=i,a.require=s,a.guards=[],a.storage=r,s&&(a.enable=!0),a}return r(t,e),t.create=function(e,n,o,r,i,s){return void 0===o&&(o=""),void 0===r&&(r=null),void 0===i&&(i=!0),void 0===s&&(s=!1),new t(e,n,o,r||a.GdprStorage.Cookie,i,s)},t.prototype.startGroup=function(t,n,o){return void 0===t&&(t=null),void 0===n&&(n=""),void 0===o&&(o=""),e.prototype.startGroup.call(this,t||this.parent.storage,n,o)},t.prototype.startRequiredGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startGroup(e,t,n).required()},t.prototype.endGroup=function(){var e=this.require||this.enable,t=l.GdprGuardGroup.for(this.name,this.description,e,this.require);return s(s([],i(this.guards),!1),i(this.groups),!1).forEach((function(e){return t.addGuard(e)})),this.require&&t.makeRequired(),this.parent.groups.push(t),this.parent},t.prototype.withName=function(e){return this.edit((function(t){return t.name=e}))},t.prototype.withDescription=function(e){return this.edit((function(t){return t.description=e}))},t.prototype.storedIn=function(e){return this.edit((function(t){return t.storage=e}))},t.prototype.enabled=function(){return this.edit((function(e){return e.enable=!0}))},t.prototype.disabled=function(){return this.edit((function(e){return e.enable=!1}))},t.prototype.required=function(){return this.edit((function(e){return e.require=!0}))},t.prototype.startGuard=function(e){return void 0===e&&(e=null),c.GdprGuardBuilder.create(this,e||this.storage,this.enable)},t.prototype.startRequiredGuard=function(e){return this.startGuard(e).required()},t.prototype.withEnabledGuard=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),this.startGuard(n).withName(e).withDescription(t).enabled().endGuard()},t.prototype.withDisabledGuard=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),this.startGuard(n).withName(e).withDescription(t).disabled().endGuard()},t.prototype.edit=function(e){return e(this),this},t}(u.GdprManagerBuilder);t.GdprGroupBuilder=d},890:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprGuardBuilder=void 0;var o=n(670),r=n(315),i=function(){function e(e,t,n,o){this.parent=e,this.storage=t,this.enable=n,this.require=o,this.name="",this.description="",o&&(this.enable=!0)}return e.create=function(t,n,r,i){return void 0===n&&(n=o.GdprStorage.Cookie),void 0===r&&(r=!1),void 0===i&&(i=!1),new e(t,n,r,i)},e.prototype.endGuard=function(){var e=this.require||this.enable,t=(0,r.makeGuard)(this.name,this.description,this.storage,this.require,e);return this.require&&t.makeRequired(),this.parent.guards.push(t),this.parent},e.prototype.withName=function(e){return this.edit((function(t){return t.name=e}))},e.prototype.withDescription=function(e){return this.edit((function(t){return t.description=e}))},e.prototype.enabled=function(){return this.edit((function(e){return e.enable=!0}))},e.prototype.disabled=function(){return this.edit((function(e){return e.enable=!1}))},e.prototype.storedIn=function(e){return this.edit((function(t){return t.storage=e}))},e.prototype.required=function(){return this.edit((function(e){return e.require=!0}))},e.prototype.edit=function(e){return e(this),this},e}();t.GdprGuardBuilder=i},237:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprManagerBuilder=void 0;var o=n(670),r=n(777),i=n(171),s=function(){function e(){this.storage=o.GdprStorage.Cookie,this.groups=[],this.bannerWasShown=!1}return e.make=function(){return new e},e.prototype.withBannerShown=function(e){void 0===e&&(e=!0),this.bannerWasShown=e},e.prototype.startGroup=function(e,t,n,o){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),void 0===o&&(o=!0),i.GdprGroupBuilder.create(this,t,n,e,o,!1)},e.prototype.startRequiredGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startEnabledGroup(e,t,n).required()},e.prototype.startEnabledGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startGroup(e,t,n,!0).enabled()},e.prototype.startDisabledGroup=function(e,t,n){return void 0===e&&(e=null),void 0===t&&(t=""),void 0===n&&(n=""),this.startGroup(e,t,n,!1).disabled()},e.prototype.build=function(){var e=r.GdprManager.create(this.groups);return e.bannerWasShown=this.bannerWasShown,e},e.prototype.endGroup=function(){return this},e}();t.GdprManagerBuilder=s},171:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(890),t),r(n(237),t),r(n(860),t)},93:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(315),t),r(n(822),t),r(n(777),t),r(n(670),t),r(n(554),t),r(n(779),t),r(n(171),t),r(n(891),t),r(n(562),t),r(n(344),t)},562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprDeserializer=void 0;var o=n(777),r=n(670),i=n(822),s=n(315),a=["enabled","groups"],u=["guards"],l=["name","enabled","required","description","storage"],c=function(){function e(){}return e.manager=function(e){var t=this;if(!function(e){return a.every((function(t){return t in e}))&&"boolean"==typeof e.enabled&&Array.isArray(e.groups)}(e))return null;var n=e.groups.map((function(e){return t.group(e)})).filter((function(e){return null!==e})),r=o.GdprManager.create([]);return r.enabled=!!e.enabled,r.bannerWasShown=!!e.bannerWasShown,n.forEach((function(e){return r.addGroup(e)})),r},e.group=function(e){var t=this,n=this.guard(e);if(null===n)return null;if(!function(e){return u.every((function(t){return t in e}))&&Array.isArray(e.guards)}(e))return null;var o=i.GdprGuardGroup.for(n.name,n.description,n.enabled,n.required);return e.guards.map((function(e){return u.every((function(t){return t in e}))?t.group(e):t.guard(e)})).filter((function(e){return null!==e})).forEach((function(e){return o.addGuard(e)})),o},e.guard=function(e){return function(e){return l.every((function(t){return t in e}))&&"string"==typeof e.name&&"boolean"==typeof e.enabled&&"boolean"==typeof e.required&&"string"==typeof e.description&&"number"==typeof e.storage&&e.storage in r.GdprStorage}(e)?(0,s.makeGuard)(e.name,e.description,e.storage,!!e.required,!!e.enabled):null},e}();t.GdprDeserializer=c},344:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GdprSaviorAdapter=void 0;var r=function(){function e(){}return e.prototype.exists=function(e){return void 0===e&&(e=!0),n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.restore(e)];case 1:return[2,null!==t.sent()]}}))}))},e.prototype.storeIfNotExists=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.exists()];case 1:return[2,!!t.sent()||this.store(e)]}}))}))},e.prototype.restoreOrCreate=function(e){return n(this,void 0,void 0,(function(){var t,n;return o(this,(function(o){switch(o.label){case 0:return[4,this.restore()];case 1:return(t=o.sent())?[3,3]:[4,e()];case 2:return n=o.sent(),this.updateSharedManager(n),n.bannerWasShown&&n.closeBanner(),[2,n];case 3:return t.bannerWasShown&&t.closeBanner(),[2,t]}}))}))},e.prototype.check=function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,Promise.resolve()];case 1:return e.sent(),[4,this.exists(!0)];case 2:return e.sent(),[2]}}))}))},e}();t.GdprSaviorAdapter=r},891:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GdprSerializer=void 0;var n=function(){function e(){}return e.serialize=function(e){return e.raw()},e}();t.GdprSerializer=n},779:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.visitGdpr=void 0;var o=n(777),r=n(822);t.visitGdpr=function(e,n){var i=void 0===n?{}:n,s=i.onManager,a=void 0===s?function(){}:s,u=i.onGroup,l=void 0===u?function(){}:u,c=i.onGuard,d=void 0===c?function(){}:c,h=i.onEach,p=void 0===h?function(){}:h,f={onManager:a,onGroup:l,onGuard:d,onEach:p};e instanceof o.GdprManager?(a(e),p(e),e.getGroups().forEach((function(e){return(0,t.visitGdpr)(e,f)}))):e instanceof r.GdprGuardGroup?(l(e),p(e),e.getGuards().forEach((function(e){return(0,t.visitGdpr)(e,f)}))):(d(e),p(e))}}},t={};return function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}(93)})(),e.exports=t()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{gdprGuard:()=>e,mountOnTarget:()=>q,render:()=>t,renderInside:()=>C});var e=n(845),t=function(e,t){return n=void 0,o=void 0,i=function(){var n,o,r,i;return function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(s){switch(s.label){case 0:return n=t.renderManager,o=t.renderGroup,r=t.renderGuard,i={bound:function(e){return this[e].bind(this)},renderGuard:function(e){return r(this.bound("renderGroup"),e)},renderGroup:function(e){return o(this.bound("renderGuard"),e)},renderManager:function(e){return n(this.bound("renderGroup"),e)}},[4,i.renderManager(e)];case 1:return[2,{rendered:s.sent(),manager:e}]}}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}u((i=i.apply(n,o||[])).next())}));var n,o,r,i};function r(e,t,n){let o;return"#text"===e.nodeName?o=n.document.createTextNode(e.data):"#comment"===e.nodeName?o=n.document.createComment(e.data):(t?o=n.document.createElementNS("http://www.w3.org/2000/svg",e.nodeName):"svg"===e.nodeName.toLowerCase()?(o=n.document.createElementNS("http://www.w3.org/2000/svg","svg"),t=!0):o=n.document.createElement(e.nodeName),e.attributes&&Object.entries(e.attributes).forEach((([e,t])=>o.setAttribute(e,t))),e.childNodes&&e.childNodes.forEach((e=>o.appendChild(r(e,t,n)))),n.valueDiffing&&(e.value&&(o.value=e.value),e.checked&&(o.checked=e.checked),e.selected&&(o.selected=e.selected))),o}function i(e,t){for(t=t.slice();t.length>0;){if(!e.childNodes)return!1;const n=t.splice(0,1)[0];e=e.childNodes[n]}return e}function s(e,t,n){let o,s,a,u,l,c=i(e,t[n._const.route]);const d={diff:t,node:c};if(n.preDiffApply(d))return!0;switch(t[n._const.action]){case n._const.addAttribute:if(!c||!c.setAttribute)return!1;c.setAttribute(t[n._const.name],t[n._const.value]);break;case n._const.modifyAttribute:if(!c||!c.setAttribute)return!1;c.setAttribute(t[n._const.name],t[n._const.newValue]),"INPUT"===c.nodeName&&"value"===t[n._const.name]&&(c.value=t[n._const.newValue]);break;case n._const.removeAttribute:if(!c||!c.removeAttribute)return!1;c.removeAttribute(t[n._const.name]);break;case n._const.modifyTextElement:if(!c||3!==c.nodeType)return!1;n.textDiff(c,c.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyValue:if(!c||void 0===c.value)return!1;c.value=t[n._const.newValue];break;case n._const.modifyComment:if(!c||void 0===c.data)return!1;n.textDiff(c,c.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyChecked:if(!c||void 0===c.checked)return!1;c.checked=t[n._const.newValue];break;case n._const.modifySelected:if(!c||void 0===c.selected)return!1;c.selected=t[n._const.newValue];break;case n._const.replaceElement:c.parentNode.replaceChild(r(t[n._const.newValue],"http://www.w3.org/2000/svg"===c.namespaceURI,n),c);break;case n._const.relocateGroup:u=Array(...new Array(t.groupLength)).map((()=>c.removeChild(c.childNodes[t[n._const.from]]))),u.forEach(((e,o)=>{0===o&&(s=c.childNodes[t[n._const.to]]),c.insertBefore(e,s||null)}));break;case n._const.removeElement:c.parentNode.removeChild(c);break;case n._const.addElement:a=t[n._const.route].slice(),l=a.splice(a.length-1,1)[0],c=i(e,a),c.insertBefore(r(t[n._const.element],"http://www.w3.org/2000/svg"===c.namespaceURI,n),c.childNodes[l]||null);break;case n._const.removeTextElement:if(!c||3!==c.nodeType)return!1;c.parentNode.removeChild(c);break;case n._const.addTextElement:if(a=t[n._const.route].slice(),l=a.splice(a.length-1,1)[0],o=n.document.createTextNode(t[n._const.value]),c=i(e,a),!c||!c.childNodes)return!1;c.insertBefore(o,c.childNodes[l]||null);break;default:console.log("unknown action")}return d.newNode=o,n.postDiffApply(d),!0}function a(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}class u{constructor(e={}){Object.entries(e).forEach((([e,t])=>this[e]=t))}toString(){return JSON.stringify(this)}setValue(e,t){return this[e]=t,this}}function l(e){const t=[];return t.push(e.nodeName),"#text"!==e.nodeName&&"#comment"!==e.nodeName&&e.attributes&&(e.attributes.class&&t.push(`${e.nodeName}.${e.attributes.class.replace(/ /g,".")}`),e.attributes.id&&t.push(`${e.nodeName}#${e.attributes.id}`)),t}function c(e){const t={},n={};return e.forEach((e=>{l(e).forEach((e=>{const o=e in t;o||e in n?o&&(delete t[e],n[e]=!0):t[e]=!0}))})),t}function d(e,t){const n=c(e),o=c(t),r={};return Object.keys(n).forEach((e=>{o[e]&&(r[e]=!0)})),r}function h(e){return delete e.outerDone,delete e.innerDone,delete e.valueDone,!e.childNodes||e.childNodes.every(h)}function p(e,t){if(!["nodeName","value","checked","selected","data"].every((n=>e[n]===t[n])))return!1;if(Boolean(e.attributes)!==Boolean(t.attributes))return!1;if(Boolean(e.childNodes)!==Boolean(t.childNodes))return!1;if(e.attributes){const n=Object.keys(e.attributes),o=Object.keys(t.attributes);if(n.length!==o.length)return!1;if(!n.every((n=>e.attributes[n]===t.attributes[n])))return!1}if(e.childNodes){if(e.childNodes.length!==t.childNodes.length)return!1;if(!e.childNodes.every(((e,n)=>p(e,t.childNodes[n]))))return!1}return!0}function f(e,t,n,o,r){if(!e||!t)return!1;if(e.nodeName!==t.nodeName)return!1;if("#text"===e.nodeName)return!!r||e.data===t.data;if(e.nodeName in n)return!0;if(e.attributes&&t.attributes){if(e.attributes.id){if(e.attributes.id!==t.attributes.id)return!1;if(`${e.nodeName}#${e.attributes.id}`in n)return!0}if(e.attributes.class&&e.attributes.class===t.attributes.class&&`${e.nodeName}.${e.attributes.class.replace(/ /g,".")}`in n)return!0}if(o)return!0;const i=e.childNodes?e.childNodes.slice().reverse():[],s=t.childNodes?t.childNodes.slice().reverse():[];if(i.length!==s.length)return!1;if(r)return i.every(((e,t)=>e.nodeName===s[t].nodeName));{const e=d(i,s);return i.every(((t,n)=>f(t,s[n],e,!0,!0)))}}function b(e){return JSON.parse(JSON.stringify(e))}function v(e,t,n,o){let r=0,i=[];const s=e.length,a=t.length,u=Array(...new Array(s+1)).map((()=>[])),c=d(e,t);let h=s===a;h&&e.some(((e,n)=>{const o=l(e),r=l(t[n]);return o.length!==r.length?(h=!1,!0):(o.some(((e,t)=>{if(e!==r[t])return h=!1,!0})),!h||void 0)}));for(let l=0;l<s;l++){const s=e[l];for(let e=0;e<a;e++){const a=t[e];n[l]||o[e]||!f(s,a,c,h)?u[l+1][e+1]=0:(u[l+1][e+1]=u[l][e]?u[l][e]+1:1,u[l+1][e+1]>=r&&(r=u[l+1][e+1],i=[l+1,e+1]))}}return 0!==r&&{oldValue:i[0]-r,newValue:i[1]-r,length:r}}function g(e,t){return Array(...new Array(e)).map((()=>t))}class m{constructor(){this.list=[]}add(e){this.list.push(...e)}forEach(e){this.list.forEach((t=>e(t)))}}function y(e,t){let n,o,r=e;for(t=t.slice();t.length>0;){if(!r.childNodes)return!1;o=t.splice(0,1)[0],n=r,r=r.childNodes[o]}return{node:r,parentNode:n,nodeIndex:o}}function _(e,t,n){return t.forEach((t=>{!function(e,t,n){const o=y(e,t[n._const.route]);let r=o.node;const i=o.parentNode,s=o.nodeIndex,a=[],u={diff:t,node:r};if(n.preVirtualDiffApply(u))return!0;let l,c,d,h;switch(t[n._const.action]){case n._const.addAttribute:r.attributes||(r.attributes={}),r.attributes[t[n._const.name]]=t[n._const.value],"checked"===t[n._const.name]?r.checked=!0:"selected"===t[n._const.name]?r.selected=!0:"INPUT"===r.nodeName&&"value"===t[n._const.name]&&(r.value=t[n._const.value]);break;case n._const.modifyAttribute:r.attributes[t[n._const.name]]=t[n._const.newValue];break;case n._const.removeAttribute:delete r.attributes[t[n._const.name]],0===Object.keys(r.attributes).length&&delete r.attributes,"checked"===t[n._const.name]?r.checked=!1:"selected"===t[n._const.name]?delete r.selected:"INPUT"===r.nodeName&&"value"===t[n._const.name]&&delete r.value;break;case n._const.modifyTextElement:r.data=t[n._const.newValue];break;case n._const.modifyValue:r.value=t[n._const.newValue];break;case n._const.modifyComment:r.data=t[n._const.newValue];break;case n._const.modifyChecked:r.checked=t[n._const.newValue];break;case n._const.modifySelected:r.selected=t[n._const.newValue];break;case n._const.replaceElement:l=b(t[n._const.newValue]),l.outerDone=!0,l.innerDone=!0,l.valueDone=!0,i.childNodes[s]=l;break;case n._const.relocateGroup:c=r.childNodes.splice(t[n._const.from],t.groupLength).reverse(),c.forEach((e=>r.childNodes.splice(t[n._const.to],0,e))),r.subsets&&r.subsets.forEach((e=>{if(t[n._const.from]<t[n._const.to]&&e.oldValue<=t[n._const.to]&&e.oldValue>t[n._const.from]){e.oldValue-=t.groupLength;const o=e.oldValue+e.length-t[n._const.to];o>0&&(a.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else if(t[n._const.from]>t[n._const.to]&&e.oldValue>t[n._const.to]&&e.oldValue<t[n._const.from]){e.oldValue+=t.groupLength;const o=e.oldValue+e.length-t[n._const.to];o>0&&(a.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else e.oldValue===t[n._const.from]&&(e.oldValue=t[n._const.to])}));break;case n._const.removeElement:i.childNodes.splice(s,1),i.subsets&&i.subsets.forEach((e=>{e.oldValue>s?e.oldValue-=1:e.oldValue===s?e.delete=!0:e.oldValue<s&&e.oldValue+e.length>s&&(e.oldValue+e.length-1===s?e.length--:(a.push({newValue:e.newValue+s-e.oldValue,oldValue:s,length:e.length-s+e.oldValue-1}),e.length=s-e.oldValue))})),r=i;break;case n._const.addElement:d=t[n._const.route].slice(),h=d.splice(d.length-1,1)[0],r=y(e,d).node,l=b(t[n._const.element]),l.outerDone=!0,l.innerDone=!0,l.valueDone=!0,r.childNodes||(r.childNodes=[]),h>=r.childNodes.length?r.childNodes.push(l):r.childNodes.splice(h,0,l),r.subsets&&r.subsets.forEach((e=>{if(e.oldValue>=h)e.oldValue+=1;else if(e.oldValue<h&&e.oldValue+e.length>h){const t=e.oldValue+e.length-h;a.push({newValue:e.newValue+e.length-t,oldValue:h+1,length:t}),e.length-=t}}));break;case n._const.removeTextElement:i.childNodes.splice(s,1),"TEXTAREA"===i.nodeName&&delete i.value,i.subsets&&i.subsets.forEach((e=>{e.oldValue>s?e.oldValue-=1:e.oldValue===s?e.delete=!0:e.oldValue<s&&e.oldValue+e.length>s&&(e.oldValue+e.length-1===s?e.length--:(a.push({newValue:e.newValue+s-e.oldValue,oldValue:s,length:e.length-s+e.oldValue-1}),e.length=s-e.oldValue))})),r=i;break;case n._const.addTextElement:d=t[n._const.route].slice(),h=d.splice(d.length-1,1)[0],l={},l.nodeName="#text",l.data=t[n._const.value],r=y(e,d).node,r.childNodes||(r.childNodes=[]),h>=r.childNodes.length?r.childNodes.push(l):r.childNodes.splice(h,0,l),"TEXTAREA"===r.nodeName&&(r.value=t[n._const.newValue]),r.subsets&&r.subsets.forEach((e=>{if(e.oldValue>=h&&(e.oldValue+=1),e.oldValue<h&&e.oldValue+e.length>h){const t=e.oldValue+e.length-h;a.push({newValue:e.newValue+e.length-t,oldValue:h+1,length:t}),e.length-=t}}));break;default:console.log("unknown action")}r.subsets&&(r.subsets=r.subsets.filter((e=>!e.delete&&e.oldValue!==e.newValue)),a.length&&(r.subsets=r.subsets.concat(a))),u.newNode=l,n.postVirtualDiffApply(u)}(e,t,n)})),!0}function w(e,t={}){const n={};return n.nodeName=e.nodeName,"#text"===n.nodeName||"#comment"===n.nodeName?n.data=e.data:(e.attributes&&e.attributes.length>0&&(n.attributes={},Array.prototype.slice.call(e.attributes).forEach((e=>n.attributes[e.name]=e.value))),"TEXTAREA"===n.nodeName?n.value=e.value:e.childNodes&&e.childNodes.length>0&&(n.childNodes=[],Array.prototype.slice.call(e.childNodes).forEach((e=>n.childNodes.push(w(e,t))))),t.valueDiffing&&(void 0!==e.checked&&e.type&&["radio","checkbox"].includes(e.type.toLowerCase())?n.checked=e.checked:void 0!==e.value&&(n.value=e.value),void 0!==e.selected&&(n.selected=e.selected))),n}const V=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,N=Object.create?Object.create(null):{},G=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function E(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}const x={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function k(e){const t={nodeName:"",attributes:{}};let n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.nodeName=n[1].toUpperCase(),(x[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.nodeName.startsWith("!--"))){const t=e.indexOf("--\x3e");return{type:"comment",data:-1!==t?e.slice(4,t):""}}let o=new RegExp(G),r=null,i=!1;for(;!i;)if(r=o.exec(e),null===r)i=!0;else if(r[0].trim())if(r[1]){let e=r[1].trim(),n=[e,""];e.indexOf("=")>-1&&(n=e.split("=")),t.attributes[n[0]]=n[1],o.lastIndex--}else r[2]&&(t.attributes[r[2]]=r[3].trim().substring(1,r[3].length-1));return t}function S(e){return delete e.voidElement,e.childNodes&&e.childNodes.forEach((e=>S(e))),e}function O(e){return S(function(e,t={components:N}){const n=[];let o,r=-1;const i=[];let s=!1;if(0!==e.indexOf("<")){const t=e.indexOf("<");n.push({nodeName:"#text",data:-1===t?e:e.substring(0,t)})}return e.replace(V,((a,u)=>{if(s){if(a!==`</${o.nodeName}>`)return;s=!1}const l="/"!==a.charAt(1),c=a.startsWith("\x3c!--"),d=u+a.length,h=e.charAt(d);let p;if(c){const e=k(a);return r<0?(n.push(e),n):(p=i[r],p&&(p.childNodes||(p.childNodes=[]),p.childNodes.push(e)),n)}if(l&&(o=k(a),r++,"tag"===o.type&&t.components[o.nodeName]&&(o.type="component",s=!0),o.voidElement||s||!h||"<"===h||(o.childNodes||(o.childNodes=[]),o.childNodes.push({nodeName:"#text",data:E(e.slice(d,e.indexOf("<",d)))})),0===r&&n.push(o),p=i[r-1],p&&(p.childNodes||(p.childNodes=[]),p.childNodes.push(o)),i[r]=o),(!l||o.voidElement)&&(r>-1&&(o.voidElement||o.nodeName===a.slice(2,-1).toUpperCase())&&(r--,o=-1===r?n:i[r]),!s&&"<"!==h&&h)){p=-1===r?n:i[r].childNodes||[];const t=e.indexOf("<",d);let o=E(e.slice(d,-1===t?void 0:t));p.push({nodeName:"#text",data:o})}})),n[0]}(e))}class A{constructor(e,t,n){this.options=n,this.t1="undefined"!=typeof HTMLElement&&e instanceof HTMLElement?w(e,this.options):"string"==typeof e?O(e,this.options):JSON.parse(JSON.stringify(e)),this.t2="undefined"!=typeof HTMLElement&&t instanceof HTMLElement?w(t,this.options):"string"==typeof t?O(t,this.options):JSON.parse(JSON.stringify(t)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig=w(e,this.options),this.t2Orig=w(t,this.options)),this.tracker=new m}init(){return this.findDiffs(this.t1,this.t2)}findDiffs(e,t){let n;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw new Error(`surpassed diffcap:${JSON.stringify(this.t1Orig)} -> ${JSON.stringify(this.t2Orig)}`);n=this.findNextDiff(e,t,[]),0===n.length&&(p(e,t)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,h(e),n=this.findNextDiff(e,t,[])))),n.length>0&&(this.foundAll=!1,this.tracker.add(n),_(e,n,this.options))}while(n.length>0);return this.tracker.list}findNextDiff(e,t,n){let o,r;if(this.options.maxDepth&&n.length>this.options.maxDepth)return[];if(!e.outerDone){if(o=this.findOuterDiff(e,t,n),this.options.filterOuterDiff&&(r=this.options.filterOuterDiff(e,t,o),r&&(o=r)),o.length>0)return e.outerDone=!0,o;e.outerDone=!0}if(!e.innerDone){if(o=this.findInnerDiff(e,t,n),o.length>0)return o;e.innerDone=!0}if(this.options.valueDiffing&&!e.valueDone){if(o=this.findValueDiff(e,t,n),o.length>0)return e.valueDone=!0,o;e.valueDone=!0}return[]}findOuterDiff(e,t,n){const o=[];let r,i,s,a,l,c;if(e.nodeName!==t.nodeName){if(!n.length)throw new Error("Top level nodes have to be of the same kind.");return[(new u).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,b(e)).setValue(this.options._const.newValue,b(t)).setValue(this.options._const.route,n)]}if(n.length&&this.options.maxNodeDiffCount<Math.abs((e.childNodes||[]).length-(t.childNodes||[]).length))return[(new u).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,b(e)).setValue(this.options._const.newValue,b(t)).setValue(this.options._const.route,n)];if(e.data!==t.data)return"#text"===e.nodeName?[(new u).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)]:[(new u).setValue(this.options._const.action,this.options._const.modifyComment).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)];for(i=e.attributes?Object.keys(e.attributes).sort():[],s=t.attributes?Object.keys(t.attributes).sort():[],a=i.length,c=0;c<a;c++)r=i[c],l=s.indexOf(r),-1===l?o.push((new u).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,r).setValue(this.options._const.value,e.attributes[r])):(s.splice(l,1),e.attributes[r]!==t.attributes[r]&&o.push((new u).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,r).setValue(this.options._const.oldValue,e.attributes[r]).setValue(this.options._const.newValue,t.attributes[r])));for(a=s.length,c=0;c<a;c++)r=s[c],o.push((new u).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,r).setValue(this.options._const.value,t.attributes[r]));return o}findInnerDiff(e,t,n){const o=e.childNodes?e.childNodes.slice():[],r=t.childNodes?t.childNodes.slice():[],i=Math.max(o.length,r.length);let s=Math.abs(o.length-r.length),a=[],l=0;if(!this.options.maxChildCount||i<this.options.maxChildCount){const o=e.subsets&&e.subsetsAge--,r=o?e.subsets:e.childNodes&&t.childNodes?function(e,t){const n=e.childNodes?e.childNodes:[],o=t.childNodes?t.childNodes:[],r=g(n.length,!1),i=g(o.length,!1),s=[];let a=!0;const u=function(){return arguments[1]};for(;a;)a=v(n,o,r,i),a&&(s.push(a),Array(...new Array(a.length)).map(u).forEach((e=>{return t=e,r[a.oldValue+t]=!0,void(i[a.newValue+t]=!0);var t})));return e.subsets=s,e.subsetsAge=100,s}(e,t):[];if(r.length>0&&(a=this.attemptGroupRelocation(e,t,r,n,o),a.length>0))return a}for(let e=0;e<i;e+=1){const t=o[e],c=r[e];s&&(t&&!c?"#text"===t.nodeName?(a.push((new u).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,t.data)),l-=1):(a.push((new u).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,b(t))),l-=1):c&&!t&&("#text"===c.nodeName?a.push((new u).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,c.data)):a.push((new u).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,b(c))))),t&&c&&(!this.options.maxChildCount||i<this.options.maxChildCount?a=a.concat(this.findNextDiff(t,c,n.concat(l))):p(t,c)||(o.length>r.length?("#text"===t.nodeName?a.push((new u).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,t.data)):a.push((new u).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,b(t)).setValue(this.options._const.route,n.concat(l))),o.splice(e,1),e-=1,l-=1,s-=1):o.length<r.length?(a=a.concat([(new u).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,b(c)).setValue(this.options._const.route,n.concat(l))]),o.splice(e,0,{}),s-=1):a=a.concat([(new u).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,b(t)).setValue(this.options._const.newValue,b(c)).setValue(this.options._const.route,n.concat(l))]))),l+=1}return e.innerDone=!0,a}attemptGroupRelocation(e,t,n,o,r){const i=function(e,t,n){const o=e.childNodes?g(e.childNodes.length,!0):[],r=t.childNodes?g(t.childNodes.length,!0):[];let i=0;return n.forEach((e=>{const t=e.oldValue+e.length,n=e.newValue+e.length;for(let n=e.oldValue;n<t;n+=1)o[n]=i;for(let t=e.newValue;t<n;t+=1)r[t]=i;i+=1})),{gaps1:o,gaps2:r}}(e,t,n),s=i.gaps1,a=i.gaps2;let l,c,d,h,p,v,m=Math.min(s.length,a.length);const y=[];for(let i=0,g=0;i<m;g+=1,i+=1)if(!r||!0!==s[i]&&!0!==a[i])if(!0===s[i])if(h=e.childNodes[g],"#text"===h.nodeName)if("#text"===t.childNodes[i].nodeName){if(h.data!==t.childNodes[i].data){for(v=g;e.childNodes.length>v+1&&"#text"===e.childNodes[v+1].nodeName;)if(v+=1,t.childNodes[i].data===e.childNodes[v].data){p=!0;break}if(!p)return y.push((new u).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.oldValue,h.data).setValue(this.options._const.newValue,t.childNodes[i].data)),y}}else y.push((new u).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.value,h.data)),s.splice(i,1),m=Math.min(s.length,a.length),i-=1;else y.push((new u).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.element,b(h))),s.splice(i,1),m=Math.min(s.length,a.length),i-=1;else if(!0===a[i])h=t.childNodes[i],"#text"===h.nodeName?(y.push((new u).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.value,h.data)),s.splice(i,0,!0),m=Math.min(s.length,a.length),g-=1):(y.push((new u).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,o.concat(i)).setValue(this.options._const.element,b(h))),s.splice(i,0,!0),m=Math.min(s.length,a.length),g-=1);else if(s[i]!==a[i]){if(y.length>0)return y;if(d=n[s[i]],c=Math.min(d.newValue,e.childNodes.length-d.length),c!==d.oldValue){l=!1;for(let t=0;t<d.length;t+=1)f(e.childNodes[c+t],e.childNodes[d.oldValue+t],[],!1,!0)||(l=!0);if(l)return[(new u).setValue(this.options._const.action,this.options._const.relocateGroup).setValue("groupLength",d.length).setValue(this.options._const.from,d.oldValue).setValue(this.options._const.to,c).setValue(this.options._const.route,o)]}}return y}findValueDiff(e,t,n){const o=[];return e.selected!==t.selected&&o.push((new u).setValue(this.options._const.action,this.options._const.modifySelected).setValue(this.options._const.oldValue,e.selected).setValue(this.options._const.newValue,t.selected).setValue(this.options._const.route,n)),(e.value||t.value)&&e.value!==t.value&&"OPTION"!==e.nodeName&&o.push((new u).setValue(this.options._const.action,this.options._const.modifyValue).setValue(this.options._const.oldValue,e.value||"").setValue(this.options._const.newValue,t.value||"").setValue(this.options._const.route,n)),e.checked!==t.checked&&o.push((new u).setValue(this.options._const.action,this.options._const.modifyChecked).setValue(this.options._const.oldValue,e.checked).setValue(this.options._const.newValue,t.checked).setValue(this.options._const.route,n)),o}}const D={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,textDiff(e,t,n,o){e.data=o},preVirtualDiffApply(){},postVirtualDiffApply(){},preDiffApply(){},postDiffApply(){},filterOuterDiff:null,compress:!1,_const:!1,document:!("undefined"==typeof window||!window.document)&&window.document};var M=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},T=function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},j=new class{constructor(e={}){if(this.options=e,Object.entries(D).forEach((([e,t])=>{Object.prototype.hasOwnProperty.call(this.options,e)||(this.options[e]=t)})),!this.options._const){const e=["addAttribute","modifyAttribute","removeAttribute","modifyTextElement","relocateGroup","removeElement","addElement","removeTextElement","addTextElement","replaceElement","modifyValue","modifyChecked","modifySelected","modifyComment","action","route","oldValue","newValue","element","group","from","to","name","value","data","attributes","nodeName","childNodes","checked","selected"];this.options._const={},this.options.compress?e.forEach(((e,t)=>this.options._const[e]=t)):e.forEach((e=>this.options._const[e]=e))}this.DiffFinder=A}apply(e,t){return function(e,t,n){return t.every((t=>s(e,t,n)))}(e,t,this.options)}undo(e,t){return function(e,t,n){t.length||(t=[t]),(t=t.slice()).reverse(),t.forEach((t=>{!function(e,t,n){switch(t[n._const.action]){case n._const.addAttribute:t[n._const.action]=n._const.removeAttribute,s(e,t,n);break;case n._const.modifyAttribute:a(t,n._const.oldValue,n._const.newValue),s(e,t,n);break;case n._const.removeAttribute:t[n._const.action]=n._const.addAttribute,s(e,t,n);break;case n._const.modifyTextElement:case n._const.modifyValue:case n._const.modifyComment:case n._const.modifyChecked:case n._const.modifySelected:case n._const.replaceElement:a(t,n._const.oldValue,n._const.newValue),s(e,t,n);break;case n._const.relocateGroup:a(t,n._const.from,n._const.to),s(e,t,n);break;case n._const.removeElement:t[n._const.action]=n._const.addElement,s(e,t,n);break;case n._const.addElement:t[n._const.action]=n._const.removeElement,s(e,t,n);break;case n._const.removeTextElement:t[n._const.action]=n._const.addTextElement,s(e,t,n);break;case n._const.addTextElement:t[n._const.action]=n._const.removeTextElement,s(e,t,n);break;default:console.log("unknown action")}}(e,t,n)}))}(e,t,this.options)}diff(e,t){return new this.DiffFinder(e,t,this.options).init()}},q=function(e,t){if(e.childElementCount){var n=e.children.item(0),o=j.diff(n,t);j.apply(n,o)}else e.appendChild(t)},C=function(e,n,o){return M(void 0,void 0,void 0,(function(){var r;return T(this,(function(i){switch(i.label){case 0:return r=function(){return M(void 0,void 0,void 0,(function(){var r;return T(this,(function(i){switch(i.label){case 0:return[4,t(n,o)];case 1:return r=i.sent().rendered,q(e,r),[2]}}))}))},[4,r()];case 1:return i.sent(),[2,{render:r,manager:n}]}}))}))}})(),o})()));
//# sourceMappingURL=index.js.map
{
"name": "dom-gdpr-guard",
"version": "3.0.4",
"version": "3.1.0",
"description": "Vanilla JavaScript binding to use gdpr-guard as efficiently and easily as possible",

@@ -53,5 +53,5 @@ "main": "dist/index.js",

"diff-dom": "^4.1.6",
"gdpr-guard": "^2.2.1",
"gdpr-guard": "^2.3.0",
"gh-pages": "^3.2.3"
}
}

@@ -119,2 +119,6 @@ # dom-gdpr-guard

### V3.1.0
Fixing the deserialization issues caused by bugged versions of gdpr-guard (updated it to 2.3.0).
### V3.0.0

@@ -121,0 +125,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc