cdn.tinypass.com
Open in
urlscan Pro
2606:4700::6812:907e
Public Scan
URL:
https://cdn.tinypass.com/api/piano.js?v
Submission: On August 22 via api from IT — Scanned from IT
Submission: On August 22 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
"use strict";(function(){function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(){var e=Object.defineProperty;window.pnFullTPVersion=!0,"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},writable:!0,configurable:!0});var n=new WeakMap;function t(e,t){return n.get(e)&&n.get(e).get(t)}function r(e,n,r){if(void 0===n)throw new TypeError;var o=t(n,r);return o&&o.get(e)}function o(e,r,o,i){if(i&&!["string","symbol"].includes(_typeof(i)))throw new TypeError;(t(o,i)||function(e,t){var r=n.get(e)||new Map;n.set(e,r);var o=r.get(t)||new Map;return r.set(t,o),o}(o,i)).set(e,r)}function i(e,n,t){return r(e,n,t)?r(e,n,t):Object.getPrototypeOf(n)?i(e,Object.getPrototypeOf(n),t):void 0}var a,s,c={decorate:function(e,n,t,r){if(!Array.isArray(e)||0===e.length)throw new TypeError;return void 0!==t?function(e,n,t,r){return e.reverse().forEach((function(e){r=e(n,t,r)||r})),r}(e,n,t,r):"function"==typeof n?function(e,n){return e.reverse().forEach((function(e){var t=e(n);t&&(n=t)})),n}(e,n):void 0},defineMetadata:function(e,n,t,r){o(e,n,t,r)},getMetadata:function(e,n,t){return i(e,n,t)},getOwnMetadata:function(e,n,t){return r(e,n,t)},hasMetadata:function(e,n,t){return!!i(e,n,t)},hasOwnMetadata:function(e,n,t){return!!r(e,n,t)},metadata:function(e,n){return function(t,r){o(e,n,t,r)}}};window.Reflect=window.Reflect||{},Object.assign(window.Reflect,c),(s=a||(a={}))[s.Transient=0]="Transient",s[s.Singleton=1]="Singleton",s[s.ResolutionScoped=2]="ResolutionScoped",s[s.ContainerScoped=3]="ContainerScoped";var u=a,l=function(e,n){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function d(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}l(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var p=function(){return p=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},p.apply(this,arguments)};function f(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function m(e,n){return function(t,r){n(t,r,e)}}function v(e,n){if("object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function g(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof t?e:new t((function(n){n(e)}))}(e.value).then(a,s)}c((r=r.apply(e,n||[])).next())}))}function h(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function y(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(w(arguments[n]));return e}function b(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)(r||!(o in n))&&(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var k="injectionTokens";function C(e){return!!e.useClass}function I(e){return!!e.useFactory}var S=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var n,t=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(n=e(t.wrap()),r=!0),n})))},e.prototype.createHandler=function(e){var n={};return this.reflectMethods.forEach((function(t){n[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n[0]=e(),Reflect[t].apply(void 0,_(n))}})),n},e}();function E(e){return"string"==typeof e||"symbol"==_typeof(e)}function T(e){return"object"==_typeof(e)&&"token"in e&&"transform"in e}function P(e){return!!e.useToken}function x(e){return null!=e.useValue}var A=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var n=this._registryMap.get(e);return n[n.length-1]||null},e.prototype.set=function(e,n){this.ensure(e),this._registryMap.get(e).push(n)},e.prototype.setAll=function(e,n){this._registryMap.set(e,n)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),O=A,N=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(O),M=N,R=function(){this.scopedResolutions=new Map};function L(e,n,t){var r=w(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],o=function(e,n){return null===e?"at position #"+n:'"'+e.split(",")[n].trim()+'" at position #'+n}(void 0===r?null:r,n);return function(e,n,t){return void 0===t&&(t=" "),_([e],n.message.split("\n").map((function(e){return t+e}))).join("\n")}("Cannot inject the dependency "+o+' of "'+e.name+'" constructor. Reason:',t)}var U=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(O),D=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(O),j=function(){this.preResolution=new U,this.postResolution=new D},V=new Map,F=function(){function e(e){this.parent=e,this._registry=new M,this.interceptors=new j,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,n,t){var r;if(void 0===t&&(t={lifecycle:u.Transient}),this.ensureNotDisposed(),r=function(e){return C(e)||x(e)||P(e)||I(e)}(n)?n:{useClass:n},P(r))for(var o=[e],i=r;null!=i;){var a=i.useToken;if(o.includes(a))throw new Error("Token registration cycle detected! "+_(o,[a]).join(" -> "));o.push(a);var s=this._registry.get(a);i=s&&P(s.provider)?s.provider:null}if((t.lifecycle===u.Singleton||t.lifecycle==u.ContainerScoped||t.lifecycle==u.ResolutionScoped)&&(x(r)||I(r)))throw new Error('Cannot use lifecycle "'+u[t.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:r,options:t}),this},e.prototype.registerType=function(e,n){return this.ensureNotDisposed(),E(n)?this.register(e,{useToken:n}):this.register(e,{useClass:n})},e.prototype.registerInstance=function(e,n){return this.ensureNotDisposed(),this.register(e,{useValue:n})},e.prototype.registerSingleton=function(e,n){if(this.ensureNotDisposed(),E(e)){if(E(n))return this.register(e,{useToken:n},{lifecycle:u.Singleton});if(n)return this.register(e,{useClass:n},{lifecycle:u.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var t=e;return n&&!E(n)&&(t=n),this.register(e,{useClass:t},{lifecycle:u.Singleton})},e.prototype.resolve=function(e,n){void 0===n&&(n=new R),this.ensureNotDisposed();var t=this.getRegistration(e);if(!t&&E(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),t){var r=this.resolveRegistration(t,n);return this.executePostResolutionInterceptor(e,r,"Single"),r}if(function(e){return"function"==typeof e||e instanceof S}(e)){r=this.construct(e,n);return this.executePostResolutionInterceptor(e,r,"Single"),r}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,n){var t,r;if(this.interceptors.preResolution.has(e)){var o=[];try{for(var i=y(this.interceptors.preResolution.getAll(e)),a=i.next();!a.done;a=i.next()){var s=a.value;"Once"!=s.options.frequency&&o.push(s),s.callback(e,n)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.interceptors.preResolution.setAll(e,o)}},e.prototype.executePostResolutionInterceptor=function(e,n,t){var r,o;if(this.interceptors.postResolution.has(e)){var i=[];try{for(var a=y(this.interceptors.postResolution.getAll(e)),s=a.next();!s.done;s=a.next()){var c=s.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,n,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(e,i)}},e.prototype.resolveRegistration=function(e,n){if(this.ensureNotDisposed(),e.options.lifecycle===u.ResolutionScoped&&n.scopedResolutions.has(e))return n.scopedResolutions.get(e);var t,r=e.options.lifecycle===u.Singleton,o=e.options.lifecycle===u.ContainerScoped,i=r||o;return t=x(e.provider)?e.provider.useValue:P(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,n)):this.resolve(e.provider.useToken,n):C(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,n)):this.construct(e.provider.useClass,n):I(e.provider)?e.provider.useFactory(this):this.construct(e.provider,n),e.options.lifecycle===u.ResolutionScoped&&n.scopedResolutions.set(e,t),t},e.prototype.resolveAll=function(e,n){var t=this;void 0===n&&(n=new R),this.ensureNotDisposed();var r=this.getAllRegistrations(e);if(!r&&E(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),r){var o=r.map((function(e){return t.resolveRegistration(e,n)}));return this.executePostResolutionInterceptor(e,o,"All"),o}var i=[this.construct(e,n)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,n){return void 0===n&&(n=!1),this.ensureNotDisposed(),this._registry.has(e)||n&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,n;this.ensureNotDisposed();try{for(var t=y(this._registry.entries()),r=t.next();!r.done;r=t.next()){var o=w(r.value,2),i=o[0],a=o[1];this._registry.setAll(i,a.filter((function(e){return!x(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(n){e={error:n}}finally{try{r&&!r.done&&(n=t.return)&&n.call(t)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var n,t;this.ensureNotDisposed();var r=new e(this);try{for(var o=y(this._registry.entries()),i=o.next();!i.done;i=o.next()){var a=w(i.value,2),s=a[0],c=a[1];c.some((function(e){return e.options.lifecycle===u.ContainerScoped}))&&r._registry.setAll(s,c.map((function(e){return e.options.lifecycle===u.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}return r},e.prototype.beforeResolution=function(e,n,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:n,options:t})},e.prototype.afterResolution=function(e,n,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:n,options:t})},e.prototype.dispose=function(){return g(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(n){var t=n.dispose();t&&e.push(t)})),[4,Promise.all(e)];case 1:return n.sent(),[2]}}))}))},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,n){var t=this;if(e instanceof S)return e.createProxy((function(e){return t.resolve(e,n)}));var r=function(){var r=V.get(e);if(!r||0===r.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var o=r.map(t.resolveParams(n,e));return new(e.bind.apply(e,_([void 0],o)))}();return function(e){return"function"==typeof e.dispose&&!(e.dispose.length>0)}(r)&&this.disposables.add(r),r},e.prototype.resolveParams=function(e,n){var t=this;return function(r,o){var i,a,s;try{return function(e){return"object"==_typeof(e)&&"token"in e&&"multiple"in e}(r)?T(r)?r.multiple?(i=t.resolve(r.transform)).transform.apply(i,_([t.resolveAll(r.token)],r.transformArgs)):(a=t.resolve(r.transform)).transform.apply(a,_([t.resolve(r.token,e)],r.transformArgs)):r.multiple?t.resolveAll(r.token):t.resolve(r.token,e):T(r)?(s=t.resolve(r.transform,e)).transform.apply(s,_([t.resolve(r.token,e)],r.transformArgs)):t.resolve(r,e)}catch(e){throw new Error(L(n,o,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),B=new F;var q=function(e){return function(e,n){return function(t,r,o){var i=Reflect.getOwnMetadata(k,t)||{};i[o]=n?{token:e,transform:n.transformToken,transformArgs:n.args||[]}:e,Reflect.defineMetadata(k,i,t)}}(e)};var z=function(){return function(e){V.set(e,function(e){var n=Reflect.getMetadata("design:paramtypes",e)||[],t=Reflect.getOwnMetadata(k,e)||{};return Object.keys(t).forEach((function(e){n[+e]=t[e]})),n}(e))}};var H=function(e){return void 0===e&&(e=[]),function(n){return e.forEach((function(e){var n=e.token,t=e.options,r=f(e,["token","options"]);return B.register(n,r,t)})),n}};var W,G,J,Q,Y=function(){return function(e){z()(e),B.registerSingleton(e)}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");if(window.pnInitPerformance=performance.now(),window.pnHasPolyfilled||(window.pnHasPolyfilled=!1),window.pnFullTPVersion||(window.pnFullTPVersion=!1),void 0!==window.pn&&void 0!==window.pn.container)throw new Error("Piano SDK is loaded twice on same page. Try to fix that to prevent the message.");!window.pnFullTPVersion&&"undefined"!=typeof Proxy&&(W=function(){return G},G=new Proxy({},{get:function(e,n,t){return"isv"===n||W},apply:function(e,n,t){return G}}),B.resolve=new Proxy(B.resolve,{apply:function(e,n,t){if(B.isRegistered(t[0]))return Reflect.apply(e,n,t);B.register(t[0],{useValue:G});var r=B.resolve(t[0]);return Q[t[0]]=r,r}})),J=window.pn||{},(Q=window.pn={}).container=B,Q.singleton=Y,Q.injectable=z,Q.inject=q,Q.registry=H,Q.instanceCachingFactory=function(e){var n;return function(t){return null==n&&(n=e(t)),n}},Q.predefinedOptions=J,B.register("predefinedOptions",{useValue:J});var X,$,K=!1;try{if(!window.pnHasPolyfilled){if("undefined"==typeof Proxy)throw new Error("The browser cannot Proxy");if(new Promise((function(e){})),Object.assign({},{}),[""].includes(""),!Element.prototype.closest)throw new Error("There is no closest method of a DOM element")}}catch(s){K=!0}if(K)throw X=function(){var e,n=document.querySelectorAll("script");if(n.length)for(var t=0,r=n;t<r.length;t++){var o=r[t],i=null===(e=null==o?void 0:o.src)||void 0===e?void 0:e.match(/^.*?(tinypass.com|piano.io)/i);if(i)return i[0]}return"https://sandbox.tinypass.com"}(),delete window.pn,($=document.createElement("script")).type="text/javascript",$.async=!0,$.src="".concat(X,"/api/piano.es5.js"),document.getElementsByTagName("head")[0].appendChild($),new Error("Load full version of piano SDK");var Z,ee=(Z=function(e){return new Promise((function(n,t){var r=document.createElement("style");r.type="text/css",r.innerHTML=e,r.onload=n,r.onerror=t,document.getElementsByTagName("head")[0].appendChild(r)}))},{name:"css",loadOfferCss:function(){Z(".tp-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#121214;z-index:300000;opacity:0;transition:opacity .25s linear}.tp-backdrop.tp-active{opacity:.9}.tp-modal .tp-close.tp-square{background:#ccc;border-radius:0;border:0;top:0;right:-40px}.tp-modal .tp-close{display:none;position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:#fff url(\"data:image/svg+xml,%3Csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.51 7.208l-.706-.708-2.798 2.798L7.207 6.5l-.707.707 2.798 2.799L6.503 12.8l.707.707 2.796-2.795 2.792 2.792.707-.707-2.792-2.792 2.798-2.798z' fill='%23000' fill-opacity='.4'/%3E%3C/svg%3E\") center center no-repeat;border:none;box-shadow:0 0 10px rgba(28,37,68,.15);outline:none;z-index:300100;border-radius:40px;opacity:0;cursor:pointer;transform:scale(.25);-webkit-appearance:none;-moz-appearance:none;appearance:none}.tp-modal .tp-close:hover,.tp-modal .tp-close:focus{box-shadow:0 0 10px 2px rgba(28,37,68,.15)}.tp-modal .tp-close:focus{border:1px solid}.tp-modal .tp-close.tp-active{display:block;opacity:1;transform:scale(1)}.tp-modal .tp-iframe-wrapper[dir=rtl] .tp-close{right:initial;left:-20px}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close{top:0;right:0;width:64px;height:64px;box-shadow:none;outline:none;border-radius:0;border-left:1px solid rgba(15,15,21,.2);background:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg %3E%3Cpath d='M3 3L13 13M13 3L3 13' stroke='%230F0F15' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E%0A\") center center no-repeat;opacity:.3}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close.tp-active{opacity:.3}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close:hover,.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close:focus{box-shadow:none;border:none;border-left:1px solid rgba(15,15,21,.06);opacity:1}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close{right:auto;left:0;border-left:none;border-right:1px solid rgba(15,15,21,.2)}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close:hover,.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close:focus{border-left:none;border-right:1px solid rgba(15,15,21,.06)}.tp-modal{z-index:300050}@media screen and (max-width: 650px){.tp-modal .tp-close{right:0}.tp-modal .tp-iframe-wrapper[dir=rtl] .tp-close{right:initial;left:0}}.tp-modal .tp-iframe-wrapper.tp-curtain{width:600px;height:480px}.tp-modal-open{overflow:hidden!important;height:100vh;-webkit-overflow-scrolling:touch}.tp-modal-open.tp-modal-resizing{-webkit-overflow-scrolling:auto}.tp-modal-close{overflow:auto}.tp-iframe-wrapper{position:relative;margin:50px auto;box-shadow:0 0 10px rgba(0,0,0,.21)}.tp-iframe-wrapper.no-shadow{box-shadow:unset}.tp-modal{overflow-x:hidden;overflow-y:scroll!important;display:none;position:fixed;top:0;bottom:0;left:0;right:0;transform:translateZ(0)}.tp-modal .tp-message{font-family:Graphik Web Regular,Helvetica,Arial,sans-serif;padding:10px}.tp-modal .tp-btn-container{padding-left:10px;padding-bottom:10px}.tp-cxense-placeholder-modal{width:100%;background-color:#fff;max-width:912px;display:block;overflow:hidden;height:auto;opacity:1}.tp-widget-placeholder>div:after{display:block;content:\"\";clear:both}.tp-btn{text-decoration:none;cursor:pointer;padding:0 18px;line-height:40px;border-collapse:separate;border-radius:4px;text-align:center;vertical-align:middle;display:inline-block;color:#fff;border:none;box-shadow:inset 0 -1px rgba(216,218,221,0);background:#3878D8;background-position:bottom;text-shadow:none;font-family:Graphik Web Regular,Helvetica,Arial,sans-serif;white-space:nowrap;outline:0}.tp-please-wait.tp-active{display:block;opacity:.9;transition:opacity .25s linear}.tp-please-wait{position:absolute;top:0;left:0;background-color:#999;opacity:0;width:100%;height:100%;display:none;text-align:center;color:#fff;font-weight:lighter;font-family:Open Sans,sans-serif;font-size:15px}.tp-please-wait.tp-overlap{position:fixed;z-index:300150}.tp-please-wait.tp-local-overlap{position:absolute}.tp-please-wait>.tp-icon{width:80px;height:80px;margin:100px auto 20px}.pn-spinner{color:gray;display:inline-block;position:relative;width:80px;height:80px}.pn-spinner div{transform-origin:40px 40px;animation:pn-spinner 1.2s linear infinite}.pn-spinner div:after{content:\" \";display:block;position:absolute;top:3px;left:37px;width:6px;height:18px;border-radius:20%;background:#fff}.pn-spinner div:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.pn-spinner div:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.pn-spinner div:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.pn-spinner div:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.pn-spinner div:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.pn-spinner div:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.pn-spinner div:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.pn-spinner div:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.pn-spinner div:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.pn-spinner div:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.pn-spinner div:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.pn-spinner div:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes pn-spinner{0%{opacity:1}to{opacity:0}}.tp-please-wait>.tp-icon.tp-centered{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tp-iframe-wrapper.no-width .tp-close,.tp-iframe-wrapper.no-height .tp-close,.tp-modal.no-width .tp-close,.tp-modal.no-height .tp-close{display:none}.tp-banner{position:fixed;bottom:0;left:0;width:100%}.tp-banner>.tp-container-inner,.tp-banner>.tp-container-inner>iframe{width:inherit!important}.tp-modal-overscroll-prevented{overscroll-behavior:contain;width:100%;overflow-x:unset;overflow-y:scroll}.tp-scroll-prevented{height:100vh;overflow:hidden;touch-action:none}.tp-body-scroll-prevented{touch-action:none}\n")}});pn.container.register("css",{useValue:ee}),pn.css=pn.container.resolve("css");var ne,te,re=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},oe=Math.round(1e4*Math.random()),ie=window.document,ae=/^(?:text|application)\/javascript/i,se=/^(?:text|application)\/xml/i,ce="application/json",ue="text/html",le=/^\s*$/,de=function e(n){var t=ke({},n||{});for(ne in e.settings)void 0===t[ne]&&(t[ne]=e.settings[ne]);fe(t),t.crossDomain||(t.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(t.url)&&RegExp.$2!=window.location.host);var r=t.dataType,o=/=\?/.test(t.url);if("jsonp"==r||o)return o||(t.url=ye(t.url,"callback=?")),e.JSONP(t);t.url||(t.url=window.location.toString()),we(t);var i,a=t.accepts[r],s={},c=/^([\w-]+:)\/\//.test(t.url)?RegExp.$1:window.location.protocol,u=e.settings.xhr();t.crossDomain||(s["X-Requested-With"]="XMLHttpRequest"),a&&(s.Accept=a,a.indexOf(",")>-1&&(a=a.split(",",2)[0]),u.overrideMimeType&&u.overrideMimeType(a)),(t.contentType||t.data&&"GET"!=t.type.toUpperCase())&&(s["Content-Type"]=t.contentType||"application/x-www-form-urlencoded"),t.headers=ke(s,t.headers||{});var l=t.xhrFields&&t.xhrFields.withCredentials;l&&(u.withCredentials=l),u.onreadystatechange=function(){if(4==u.readyState){clearTimeout(i);var e,n=!1;if(u.status>=200&&u.status<300||304==u.status||0==u.status&&"file:"==c){r=r||function(e){return e&&(e==ue?"html":e==ce?"json":ae.test(e)?"script":se.test(e)&&"xml")||"text"}(u.getResponseHeader("content-type")),e=u.responseText;try{"script"==r?(0,eval)(e):"xml"==r?e=u.responseXML:"json"==r&&(e=le.test(e)?null:JSON.parse(e))}catch(e){n=e}n?ve(n,"parsererror",u,t):me(e,u,t)}else ve(null,"error",u,t)}};var d=!("async"in t)||t.async;for(te in u.open(t.type,t.url,d),t.headers)u.setRequestHeader(te,t.headers[te]);return!1===function(e,n){var t=n.context;if(!1===n.beforeSend.call(t,e,n)||!1===pe(n,t,"ajaxBeforeSend",[e,n]))return!1;pe(n,t,"ajaxSend",[e,n])}(u,t)?(u.abort(),!1):(t.timeout>0&&(i=setTimeout((function(){u.onreadystatechange=he,u.abort(),ve(null,"timeout",u,t)}),t.timeout)),u.send(t.data?t.data:null),u)};function pe(e,n,t,r){if(e.global)return!0}function fe(e){e.global&&0==de.active++&&pe(e)}function me(e,n,t){var r=t.context,o="success";t.success.call(r,e,o,n),pe(t),ge(o,n,t)}function ve(e,n,t,r){var o=r.context;r.error.call(o,t,n,e),pe(r),ge(n,t,r)}function ge(e,n,t){var r=t.context;t.complete.call(r,n,e),pe(t),function(e){e.global&&! --de.active&&pe(e)}(t)}function he(){}function ye(e,n){return(e+"&"+n).replace(/[&?]{1,2}/,"?")}function we(e){"object"===re(e.data)&&(e.data=function(e,n){var t=[];return t.add=function(e,n){void 0!==n&&(n=null==n?"":n,this.push(_e(e)+"="+_e(n)))},be(t,e,n),t.join("&").replace("%20","+")}(e.data)),e.data&&(!e.type||"GET"==e.type.toUpperCase())&&(e.url=ye(e.url,e.data))}de.active=0,de.JSONP=function(e){if(!("type"in e))return de(e);var n,t="jsonp"+(e.cache?"Callback":++oe),r=ie.createElement("script"),o={abort:function(){t in window&&(window[t]=he),ge("abort",o,e)}},i=ie.getElementsByTagName("head")[0]||ie.documentElement;return e.error&&(r.onerror=function(){o.abort(),e.error()}),window[t]=function(r){clearTimeout(n),delete window[t],me(r,o,e)},we(e),r.src=e.url.replace(/=\?/,"="+t),i.insertBefore(r,i.firstChild),e.timeout>0&&(n=setTimeout((function(){o.abort(),ge("timeout",o,e)}),e.timeout)),o},de.settings={type:"GET",beforeSend:he,success:he,error:he,complete:he,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:ce,xml:"application/xml, text/xml",html:ue,text:"text/plain"},crossDomain:!1,timeout:0},de.get=function(e,n){return de({url:e,success:n})},de.post=function(e,n,t,r){return"function"===re(n)&&(r=r||t,t=n,n=null),de({type:"POST",url:e,data:n,success:t,dataType:r})},de.getJSON=function(e,n){return de({url:e,success:n,dataType:"json"})};var _e=encodeURIComponent;function be(e,n,t,r){var o="array"===re(n);for(var i in n){var a=n[i];r&&(i=t?r:r+"["+(o?"":i)+"]"),!r&&o?e.add(a.name,a.value):(t?"array"===re(a):"object"===re(a))?be(e,a,t,i):e.add(i,a)}}function ke(e){return Array.prototype.slice.call(arguments,1).forEach((function(n){for(ne in n)void 0!==n[ne]&&(e[ne]=n[ne])})),e}var Ce=de,Ie={send:function(e,n,t,r,o,i){void 0===i&&(i=!0),void 0===i&&(i=!0);var a=new XMLHttpRequest;a.open(t,e,i),a.onreadystatechange=function(){4===a.readyState&&n&&n(a.responseText)},a.setRequestHeader("Content-type",o),a.send(r)},request:function(e){return e.dataType=e.dataType||"json",Ce(e)}};pn.container.register("ajax",{useValue:Ie}),pn.ajax=pn.container.resolve("ajax");var Se,Ee,Te,Pe,xe;pn.container.register("jqUtils",{useValue:(Se=function(e){return"function"==typeof e},Ee=function(e,n){return e?Te(e,n)[0]:null},Te=function(e,n){if(!e)return[];var t=n||document,r=e.split(","),o=[];return r.forEach((function(e){var n=e.trim();try{o=o.concat(Array.prototype.slice.call(t.querySelectorAll(n)))}catch(e){var r=n.indexOf(" ")>-1;if("."!==n[0]||r)if("#"!==n[0]||r)o=o.concat(Array.prototype.slice.call(t.querySelectorAll(n)));else{var i=document.getElementById(n.substring(1));o=o.concat(i?[i]:[])}else o=o.concat(Array.prototype.slice.call(t.getElementsByClassName(n.substring(1))))}})),o},Pe=function(e,n,t){t.setAttribute(e,n)},xe=[],{scrollTop:function(){return window.pageYOffset||document.documentElement.scrollTop},winSize:function(){var e=window,n=document,t=n.documentElement,r=n.getElementsByTagName("body")[0],o=e.innerWidth||t.clientWidth||r.clientWidth;return{height:e.innerHeight||t.clientHeight||r.clientHeight,width:o}},isPlainObject:function(e){return"[object Object]"===Object.prototype.toString.call(e)},isEmptyObject:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isFunction:Se,inArray:function(e,n){return n.indexOf(e)},type:function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},remove:function(e){var n;null===(n=e.parentNode)||void 0===n||n.removeChild(e)},empty:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},queryEl:Ee,qa:Te,filter:function(e,n){return Array.prototype.filter.call(document.querySelectorAll(e),n)},addClass:function(e,n){n.classList.add(e)},toggleClass:function(e,n){n.classList.toggle(e)},removeClass:function(e,n){n.classList.remove(e)},getWidth:function(e){var n=getComputedStyle(e,null),t=n.paddingLeft,r=n.paddingRight,o=e.getBoundingClientRect().width;return o-=parseFloat(t)+parseFloat(r)},show:function(e){e.style.display="block"},hide:function(e){e.style.display="none"},getHeight:function(e){var n=getComputedStyle(e,null),t=n.paddingTop,r=n.paddingBottom,o=e.getBoundingClientRect().height;return o-=parseFloat(t)+parseFloat(r)},visible:function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},append:function(e,n){e.appendChild(n)},setAttr:Pe,setAttrs:function(e,n){Object.keys(e).forEach((function(t){Pe(t,e[t],n)}))},getAttr:function(e,n){return"string"==typeof e&&(e=Ee(e)),e?e.getAttribute(n):null},ready:function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){return e()}))},delegate:function(e,n,t,r){var o=function(t){for(var o=t.target;o&&null!=o;o=o.parentNode){var i=xe.findIndex((function(t){return t.parentEl===e&&t.elementSelector===n}));if(o.matches&&o.matches(n)&&i>=0){r.call(o,t);break}}};xe.push({parentEl:e,elementSelector:n,handler:o,eventName:t}),e.addEventListener(t,o,!1)},undelegate:function(e,n){xe=xe.filter((function(t){var r=t.parentEl!==e&&t.elementSelector!==n;return r||t.parentEl.removeEventListener(t.eventName,t.handler),r}))},on:function(e,n,t){e.addEventListener(n,(function(e){t(e)}),!1)},off:function(e,n,t){e.removeEventListener(n,t)},deepExtend:function e(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var r={},o=0,i=function(n){for(var t in n)n.hasOwnProperty(t)&&("[object Object]"===Object.prototype.toString.call(n[t])?r[t]=e(r[t],n[t]):r[t]=n[t])};o<n.length;o++)i(n[o]);return r},param:function(e,n){var t=[],r=function(e,n){return encodeURIComponent(e)+"="+encodeURIComponent(Se(n)?n():n||0===n||!1===n?n:"")};return Object.keys(e).forEach((function(o){n&&n[o]||(Array.isArray(e[o])?e[o].forEach((function(e){t.push(r(o,e))})):t.push(r(o,e[o])))})),t.join("&")}})}),pn.jqUtils=pn.container.resolve("jqUtils");var Ae={};!function(n,t){for(var r in t)e(n,r,{get:t[r],enumerable:!0})}(Ae,{cookie:function(){return Re},localStorage:function(){return Le},sessionStorage:function(){return Ue}});var Oe=function(e){var n=new Date,t=function(e){e&&n.setDate(n.getDate()+e)};if(e instanceof Date)n=e;else if("number"==typeof e)t(e);else{var r=e,o=r.days,i=r.minutes;t(o),i&&n.setMinutes(n.getMinutes()+i)}return n},Ne=function(e){var n=e.replace(/\+/g," ").replace(/^\s+|\s+$/g,"");try{return decodeURIComponent(n)}catch(e){return n}},Me=function(e){return 0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),Ne(e)},Re=function(){var e=function(e,n,t){var r=void 0===t?{}:t,o=r.path,i=r.domain,a=r.expires,s=r.secure,c=r.samesite,u=r.raw,l=r.priority;return(u?e:encodeURIComponent(e))+"="+(u?n:encodeURIComponent(n))+(a?"; expires=".concat(Oe(a).toUTCString()):"")+(o?"; path=".concat(o):"")+(i?"; domain=".concat(i):"")+(s?"; secure":"")+(c?"boolean"==typeof c?"; sameSite":"; sameSite=".concat(c):"")+(l?"; priority=".concat(l):"")},n=function(n,t,r,o){void 0===t||void 0!==o&&function(e){return encodeURI(e).split(/%(?:u[\dA-F]{2})?[\dA-F]{2}|./).length-1}(t)>o||(document.cookie=e(n,t,r))},t=function(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].split("=");if(e(Ne(r[0]),r[1]||""))return}};function r(e){var n=null,r={};return t((function(t,o){if(e){if(t===e)return n=Me(o),!0}else r[t]=Me(o)})),e?n:r}var o,i=function(e,t){n(e,"",Object.assign({},t,{expires:-1}))},a=(o="_cookie_test",function(e){void 0===e&&(e=[]);var t=window.location.hostname.split("."),a=(new Date).getTime().toString(36)+Math.round(2147483647*Math.random()).toString(36),s=new Date;s.setSeconds(s.getSeconds()+30);for(var c=0;c<t.length;c++)try{var u=t.slice(-(c+1)).join(".");if(!e.includes(u)){n(o,a,{expires:s,path:"/",domain:u});var l=r(o)===a;if(i(o,{path:"/",domain:u}),l)return u}}catch(e){}});return{set:n,get:r,getNames:function(){var e=[];return t((function(n){e.push(n)})),e},remove:i,getTopLevelDomain:a,__private__:{_generateCookieString:e}}}(),Le=function(){var e="_ls_ttl",n=function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):null}catch(e){return null}},t=function(n){try{Object.keys(n).length?window.localStorage.setItem(e,JSON.stringify(n)):window.localStorage.removeItem(e)}catch(e){}},r=function(){var e=o(),r=n(),i={};!r||(Object.keys(r).forEach((function(n){if(e.includes(n))if(function(e){return!e||e>Date.now()}(r[n]?parseInt(r[n],36):null))i[n]=r[n];else try{window.localStorage.removeItem(n)}catch(e){}})),JSON.stringify(r)!==JSON.stringify(i)&&t(i))},o=function(){try{return Object.keys(window.localStorage)}catch(e){return[]}};return r(),{get:function(e){var n;r();try{return null!==(n=window.localStorage.getItem(e))&&void 0!==n?n:null}catch(e){return null}},set:function(e,r,o){if(void 0===o&&(o={}),function(e,r){var o=n();if(void 0===r)return null!=o&&o[e]&&(delete o[e],t(o)),!0;var i=Oe(r).getTime();return i>Date.now()&&((o=o||{})[e]=i.toString(36),t(o),!0)}(e,o.expires))try{window.localStorage.setItem(e,r)}catch(e){}},getNames:o,remove:function(e){try{window.localStorage.removeItem(e)}catch(e){}r()},expires:r,__protected__:{get ttlName(){return e}}}}(),Ue={get:function(e){try{return window.sessionStorage.getItem(e)}catch(e){return null}},set:function(e,n){try{window.sessionStorage.setItem(e,n)}catch(e){}},getNames:function(){try{return Object.keys(window.sessionStorage)}catch(e){return[]}},remove:function(e){try{window.sessionStorage.removeItem(e)}catch(e){}}},De=function(){return De=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},De.apply(this,arguments)},je=function(e,n){return void 0===n&&(n="_pctx"),{cookieName:n,readonly:!1,init:function(n){var t;return null!==(t=null!=n?n:e)&&void 0!==t?t:null},refresh:function(e){return e},update:function(e){return e},set:function(e){return e},get:function(e){return e}}},Ve=function(e){return De(De({},je(e)),{cookieName:null})},Fe=je("anon"),Be=function(e){return e?Object.keys(e):[]},qe=function(e){return Array.isArray(e)},ze=function(e){return null==e},He=function(e){return!ze(e)},We=function(e){return"object"==_typeof(e)},Ge=function(e){return"string"==typeof e},Je=function(){for(var e=(new Date).getTime().toString(36);e.length<16;)e+=Math.round(2147483647*Math.random()).toString(36);return e.substr(0,16)},Qe=function(e,n){return e&&Be(e).filter((function(t){return n(e[t])})).reduce((function(n,t){var r;return De(De({},n),((r={})[t]=e[t],r))}),{})},Ye=function(){var e={};return{add:function(n){e[n]=!0},values:function(){return Be(e)}}},Xe=function(e){return"true"===e||!0===e},$e=function(e,n){var t,r=NaN,o=NaN;return function(i){var a=null==n?void 0:n();return(i!==o||r!==a)&&(r=a,o=i,t=e(i)),t}},Ke=function(e){var n;return function(t){var r=e();r!==n&&(n=r,t(r))}},Ze=function e(n,t){try{return n()}catch(n){return t?e(t):null}},en=function(e,n){return void 0===n&&(n=!1),Ze((function(){return JSON.parse(e)}),(function(){return n?JSON.parse(window.atob(e)):null}))||null},nn=function(e,n){if(e===n)return!0;if(!e||!n)return null;var t=Be(e),r=Be(n);return t.length===r.length&&!t.some((function(t){return e[t]!==n[t]}))},tn=function(e){return Qe(e,(function(e){return"CX"!==(null==e?void 0:e.type)}))},rn=De(De({},je(null)),{init:function(e){return tn(e||null)},refresh:tn,set:function(e,n){return null===e?null:Qe(De(De({},n),e),(function(e){return null!==e}))}}),on=function(){return window.pdl||{}},an=function(e,n){return n({protect:!0}),Je()},sn=De(De({},Ve()),{init:function(e,n){return n({protect:!0}),on().pageViewId||Je()},refresh:an,update:an,set:function(e,n,t){return t({protect:!0}),e}}),cn="DL",un=["PA","DMP","COMPOSER","ID","VX","ESP","SOCIAL_FLOW",cn].map((function(e,n){return{name:e,id:n}})),ln=un.reduce((function(e,n,t){var r,o=n.name;return De(De({},e),((r={})[o]=t,r[o.toLowerCase()]=t,r))}),{});ln["social flow"]=ln.SOCIAL_FLOW,ln["Social Flow"]=ln.SOCIAL_FLOW;var dn=Ke((function(){var e;return null===(e=Zn(on().consent))||void 0===e?void 0:e.products})),fn=function(){var e=un;return function(){return dn((function(n){e=n?un.filter((function(e){return n.includes(e.name)||e.name===cn})):un})),e}}(),mn=function(e,n,t){var r=fn().reduce((function(r,o){var i=o.id;return r[i]=t(null==e?void 0:e[i],null==n?void 0:n[i],i),r}),{});return nn(r,n)?n:r},vn=function(e){var n=Number(e);if(Number.isNaN(n)){var t=ln[e.toLowerCase()];return null!=t?t:null}return n<un.length?n:null},gn=function(e,n){return Be(e).reduce((function(t,r){var o=un[Number(r)].name,i=e[r];return t[o]=n?n(i,o):i,t}),{})},hn="opt-in",yn="essential",wn="opt-out",_n="custom",bn=[hn,yn,wn],kn=bn.concat(_n),Cn=kn.reduce((function(e,n,t){var r;return De(De({},e),((r={})[t]=n,r))}),{}),In=[hn,_n,yn,wn],Sn=function(e){return kn.includes(e)},En={AD:["DMP","SOCIAL_FLOW"],CP:["COMPOSER"],AM:["PA"],PR:["ESP","VX","ID"],DL:["DL"]},Tn=Be(En).reduce((function(e,n){return En[n].forEach((function(t){var r=ln[t];e[r]=n})),e}),{}),Pn=Ke((function(){var e;return null===(e=Zn(on().consent))||void 0===e?void 0:e.defaultPurposes})),xn=function(){var e=De({},Tn);return function(){return Pn((function(n){e=De({},Tn),n&&Be(n).forEach((function(t){var r,o=ln[t];e[o]=null===(r=n[t])||void 0===r?void 0:r.substring(0,32)}))})),e}}(),An=function(e,n){return mn(e,n,(function(e,n,t){return e||n||xn()[t]}))},On=De(De({},je(null,"_pprv")),{init:function(e){return Rn()?An(e||null,null):null},set:function(e,n){return Rn()?null==e?n:An(function(e){return Be(e).reduce((function(n,t){var r=vn(t),o=Vn(e[t]);return null===r||o===Un||r===ln[cn]||o&&(n[r]=o),n}),{})}(e),n):null}}),Nn=function(){return on().consent_modifiers||null},Mn=function(){return!!on().requireConsent},Rn=function(){return"v2"===on().requireConsent},Ln=function(e,n){var t;return e===_n&&!(null!==(t=Nn())&&void 0!==t&&t[n])},Un="DL",Dn=["AD","AM","CP","PR",Un].reduce((function(e,n){var t;return De(De({},e),((t={})[n]=n,t[n.toLowerCase()]=n,t))}),{}),jn=function(e){return Dn[(null==e?void 0:e.toLowerCase())||""]||null},Vn=function(e){return jn(e)||(null==e?void 0:e.substring(0,32))},Fn=function(e,n,t){return"".concat(e.join(", ")," ").concat(e.length>1?t:n)},Bn=function(e){return'"'.concat(e,'" can not be applied for the dl product')};function qn(e,n,t,r,o){var i=function(e){return{error:e}},a=function(n,t,r){var o=[];if(!Sn(n))return i(function(e){return"".concat(e," is unknown consent mode")}(n));var a=fn().reduce((function(i,a){var s=a.id,c=a.name;return(!t||(null==e?void 0:e[s])===t||(null==r?void 0:r.includes(s)))&&(Ln(n,c)?o.push(c):i[s]={mode:n}),i}),{});return o.length?i(function(e){return Fn(e,"does","do")+"n't have modifier in the pdl. Custom mode can't be applied"}(o)):Object.keys(a).length?{consent:a}:null},s=function(n,t){var r=Vn(t);return Dn[r]||Object.values(e||{}).includes(r)?a(n,r):i("Unknown purpose. Provide a product or define within pdl config")};return Rn()?o?function(e,n,t){var r=Vn(n),o=qe(t)?t:[t],c=o.map(vn).filter(He);if(!c.length)return jn(n)?s(e,n):i(function(e){return"Custom purpose: "+Fn(e,"is","are")+" unknown"}(o));if(r!==Un&&c.includes(ln.DL))return{error:Bn(r)};if(r===Un&&c.some((function(e){return e!==ln.DL})))return i('the "DL" purpose is reserved');var u=a(e,r,c);if(null!=u&&u.error)return u;var l=c.reduce((function(e,n){return e[n]=r,e}),{});return{consent:(null==u?void 0:u.consent)||null,purposes:l}}(r,t,o):r?s(r,t):function(e){return a(e)}(t):i("Consent v2 is disabled")}var zn=function(e,n){if(!e)return null;var t=gn(n||Tn);return fn().reduce((function(n,r){var o,i=r.name,a=t[i],s=(null===(o=e[i])||void 0===o?void 0:o.mode)||hn;return n[a]?(n[a].mode=function(e,n){var t=In.indexOf(e),r=In.indexOf(n);return In[Math.max(t,r)]}(n[a].mode,s),n[a].products.push(i)):n[a]={mode:s,products:[i]},n}),{})},Hn=["include","exclude","obfuscate"],Wn=function(e){var n=e&&e.length;return 16===n||36===n?e:null},Gn=function(e,n){return'"'.concat(e,'" should be one of ').concat(n.join(", "))},Jn=function(){},Qn=function(e,n){return function(t){return n(e+t)}},Yn=function(e,n){void 0===n&&(n=Jn);var t=ln[e.toLowerCase()];return void 0!==t?un[t].name:(n('"'.concat(e,'" is not found')),null)},Xn=function(e){return function(e){return bn.includes(e)}(e)?e:null},$n=function(e,n){void 0===n&&(n=Jn);var t=e.source,r=e.patches||[];return Xn(t)||(n(Gn("source",bn)),t=hn),qe(r)||(n('"patches" should be an array'),r=[]),r=r.reduce((function(e,t,r){if(!We(t)||qe(t))return n("patch[".concat(r,"]: should be type of {action, item, with?}")),e;var o=t.action,i=t.item;return Hn.includes(o)?i&&We(i)&&i.key&&i.type?(e.push(t),e):(n("patch[".concat(r,']: "item" should be type of {key, type}')),e):(n("patch[".concat(r,"]: ")+Gn("action",Hn)),e)}),[]),{source:t,patches:r}},Kn=function(e,n){if(void 0===n&&(n=Jn),!e)return null;var t={};e.products&&(qe(e.products)?t.products=e.products.reduce((function(e,t){var r=Yn(t,Qn("consent.products: ",n));return r&&e.push(r),e}),[]):n("consent.products: should be an array")),e.defaultPreset&&(t.defaultPreset=Be(e.defaultPreset).reduce((function(t,r){var o=Yn(r,Qn("consent.defaultPreset: ",n)),i=Xn(e.defaultPreset[r]);return i||n("consent.defaultPreset: "+Gn(r,bn)),o&&i&&(t[o]=i),t}),{}));var r=e.defaultPurposes;return r&&(t.defaultPurposes=Be(r).reduce((function(e,t){var o=Qn("consent.defaultPurposes: ",n),i=Yn(t,o),a=r[t],s=Vn(a);return s===Un||i===cn?o('"'.concat(t,": ").concat(a,'" - invalid config')):i&&s&&(e[i]=s),e}),{})),t},Zn=$e(Kn),et=De(De({},je(null,"_pcid")),{init:function(e,n){return n({protect:!0}),Wn(on().browserId||null)||e||Je()},update:function(e,n){return n({protect:!0}),Je()},set:function(e,n,t){return t({protect:!0}),e}}),nt=[[0,0,0,0,0,0,0,0],[0,0,2,2,2,2,2,0],[1,2,2,2,2,2,2,1],[0,2,0,2,2,2,0,0],[1,2,2,2,2,2,1,1],[2,0,0,2,2,2,2,0],[2,0,2,2,2,2,2,0],[2,2,2,2,2,2,0,2],[2,2,0,0,0,0,2,0],[2,2,1,2,1,2,2,1],[2,2,1,1,2,2,2,1]],tt=function(e){return e.reduce((function(e,n,t){var r;return De(De({},e),((r={})[t]={mode:Cn[n]},r))}),{})},rt=nt.map((function(e,n){return{id:n,preset:tt(e)}})),ot=Ke((function(){var e;return null===(e=Zn(on().consent))||void 0===e?void 0:e.defaultPreset})),it=function(){var e=rt;return function(){return ot((function(n){e=rt.slice(),n&&(e[0]={id:0,preset:De({},e[0].preset)},Be(n).forEach((function(t){var r=n[t],o=ln[t];e[0].preset[o]={mode:r}})))})),e}}(),at=function(e,n){return mn(e,n,(function(e,n,t){var r=(null==e?void 0:e.mode)||(null==n?void 0:n.mode)||it()[0].preset[t].mode;return r!==(null==n?void 0:n.mode)?{mode:r}:n}))},st=De(De({},je(null,"_pprv")),{init:function(e){return Mn()&&e?at(e,null):null},set:function(e,n){var t,r;return Mn()?null==e?n:(r=function(e){return"number"==typeof e}(e)?(null===(t=it()[e])||void 0===t?void 0:t.preset)||null:qe(e)?function(e){var n=null;return e.forEach((function(e){var t=nt[e];n||!t?!n||!t||(n=n.map((function(e,n){return Math.min(e,t[n])}))):n=t})),n&&tt(n)}(e):function(e){return Be(e).reduce((function(n,t){var r=e[t],o=vn(t);if(null===o)return n;var i=Sn(r.mode)?r.mode:null;return i&&(n||(n={}),n[o]={mode:i}),n}),null)}(e),r?at(r,n):n):null},get:$e((function(e){return e&&gn(e,(function(e,n){var t,r=De({},e);return r.mode===_n&&(r.modifier=(null===(t=Nn())||void 0===t?void 0:t[n])||null),r}))}),(function(){return Nn()}))}),ct=De(De({},Ve()),{init:it,set:it}),ut=De(De({},Ve()),{init:fn,set:fn}),lt=De(De({},Ve(null)),{readonly:!0,set:function(){return null},get:Nn}),dt=function(e){var n=Number(e);return Number.isNaN(n)?String(e):n},pt=function(e){return qe(e)?e:e.split(",").map((function(e){return e.trim().replace(/^['"](.+)['"]$/,"$1")}))},ft=function(e){return e},mt={id:ft,type:ft,zone:ft,createdAt:dt,modifiedAt:dt,authors:pt,section:ft,tags:pt,keywords:pt,title:ft,description:ft,isNative:Xe},vt=function(e){return"last"===e};function gt(e,n){if(void 0===e&&(e="meta"),function(e){return"first"===e}(n))return document.querySelector(e);var t=document.querySelectorAll(e);return vt(n)?t[t.length-1]:Array.from(t)}var ht=function(){var e=null;return{refresh:function(){(e=gt()||null)&&setTimeout((function(){e=null}),0)},find:function(n,t){return void 0===t&&(t=!1),e?e.reduce((function(e,r){for(var o=0,i=n;o<i.length;o++){var a=i[o],s=(("name"===a?r.name:r.getAttribute(a))||"").trim().toLowerCase(),c=r.content;if(s&&(!t||c)){e[s]||(e[s]=[]),e[s].push(r);break}}return e}),{}):null}}}(),yt=function(e){var n,t=e.getContent||function(e){return e.content};return e.selector?(n=gt(e.selector,e.take||"first"))&&t(n)||null:function(){var n=ht.find(e.attr||["name"],e.hasContent),r=e.names||[],o=!function(e){return"all"===e}(e.take),i=vt(e.take);if(!n)return null;for(var a=function(e){var r=[],a=n[e];if(a){if(o){var s=a[i?a.length-1:0];return{value:t(s)||""}}a.forEach((function(e){r=r.concat(t(e)||"")}))}if(r.length)return{value:r}},s=0,c=r;s<c.length;s++){var u=a(c[s]);if("object"==_typeof(u))return u.value}return null}()},wt=function(e){for(var n=0,t=e;n<t.length;n++){var r=t[n],o=yt(r);if(o)return o}},_t=function(e,n,t){var r=mt[n];if(!Boolean(e[n])&&r){var o=("function"==typeof t?t:function(){return qe(t)?wt(t):yt(t)})(),i=o&&r(o);i&&(e[n]=i)}},bt=function(e){return{names:[e]}},kt={januar:"01",january:"01",jan:"01",februar:"02",february:"02",feb:"02",mars:"03",march:"03",mar:"03",april:"04",apr:"04",mai:"05",may:"05",juni:"06",june:"06",jun:"06",juli:"07",july:"07",jul:"07",august:"08",aug:"08",september:"09",sept:"09",sep:"09",oktober:"10",october:"10",okt:"10",oct:"10",november:"11",nov:"11",desember:"12",december:"12",dec:"12",des:"12"},Ct=function(e){var n=e.replace(/DAY/g,"(0?[1-9]|[12][0-9]|3[01])").replace(/MONTHLONG/g,"("+Be(kt).join("|")+")").replace(/MONTH/g,"(0?[1-9]|1[012])").replace(/YEAR2/g,"([0-9][0-9])").replace(/YEAR/g,"(197[1-9]|19[8-9][0-9]|20[0-9][0-9])").replace(/TIME/g,"([0-9][0-9]):([0-9][0-9]):([0-9][0-9])(?:\\.[0-9][0-9][0-9])?([zZ]|[+-][0-9][0-9](?::?[0-9][0-9])?)?"),t=e.replace(/.*?([YMD])(EAR|ONTH|AY).*?/g,"$1").substring(0,3);return[new RegExp(n),t]},It=["\\bDAY\\.MONTH\\.YEAR\\b","\\bDAY\\.?\\s{0,3}MONTHLONG\\.?\\s{1,3}YEAR\\b","\\bYEAR-MONTH-DAY(?:[tT]|\\b)","\\bMONTHLONG\\.?\\s{0,3}DAY(?:st|nd|rd|th)?,?\\s{1,3}YEAR\\b","\\bDAY(?:st|nd|rd|th|\\.)?\\s{0,3}MONTHLONG\\.?,?\\s{1,3}YEAR\\b","\\bYEAR[/年]MONTH[/月]DAY(?=\\b|日)","\\bDAY\\.MONTH\\.YEAR2\\b","\\bDAY/MONTH/YEAR\\b"].map(Ct),St=Ct("YEAR-MONTH-DAY[tT]TIME")[0],Et=function(e){return e&&parseInt(e,10)||0};function Tt(e,n,t,r,o,i,a){var s=new Date(Date.UTC(Et(e),Et(n)-1,Et(t),Et(r),Et(o),Et(i))),c=(a||"").match(/^([+-][0-9][0-9])(?::?([0-9][0-9])?)$/);c&&(s=new Date(s.getTime()-36e5*Number(c[1])-6e4*(Number(c[2])||0)));var u=Date.now()-s.getTime();return u>0||-u<1728e5?s.toISOString():null}var Pt=function(e){return e.replace(/<\/?[^>?]*\/?>/g," ").replace(/\s+/g," ").trim()};function xt(e){return void 0===e&&(e=""),Pt(e.replace(/,(?=\s*(jr|sr)(\.?)\b)/g," "))}var At,Ot=function(e){return De(De({},e),{take:"last"})},Nt=function(e){return De(De({},e),{take:"last",hasContent:!0,getContent:function(e){return Pt(e.content||"")}})},Mt=[Ot({attr:["name","property","itemprop"],names:["cxenseparse:publishtime","cxenseparse:recs:publishtime","article:published_time","date","dc.date","dc.date.created","dc.terms.issued","pub_date","article.published","datepublished","og:article:published_time"]}),Ot({selector:"time.published[datetime],time[pubdate][datetime]",getContent:function(e){return e.getAttribute("datetime")}}),Ot({selector:"time[datetime]",getContent:function(e){return e.getAttribute("datetime")}})],Rt={attr:["itemprop","property"],names:["article:modified_time","datemodified"]},Lt=[{attr:["property","name"],names:["cxenseparse:author","og:article:author","article:author","og:book:author","book:author","author","dc.creator","article.author"],take:"all",getContent:function(e){var n=e.getAttribute("data-separator"),t=e.content;return n?xt(t).split(n):function(e){return void 0===e&&(e=""),xt(e.replace(/\n+/,";").replace(/(\<|<)br(\>|>)/,";").replace(/\b(and|und|og)\b/g,";")).split(/[,;]/)}(t)}}],Ut=[Nt({names:["cxenseparse:keywords"]}),Nt({attr:["property","name"],names:["news_keywords"]}),Nt({names:["keywords"]})],Dt=[Nt({names:["cxenseparse:description"]}),Nt({attr:["property"],names:["og:description"]}),Nt({names:["description"]})],jt=[{names:["cxenseparse:title"]},Ot({attr:["property","name"],names:["og:title"]})],Vt=function(e){_t(e,"createdAt",(function(){var e=wt(Mt);return e?function(e){var n=(e=e.toLowerCase()).match(St);if(n)return Tt(n[1],n[2],n[3],n[4],n[5],n[6],n[7]);for(var t=0,r=It;t<r.length;t++){var o=r[t],i=e.match(o[0]);if(i)return Tt(2===(i="DMY"===o[1]?["",i[3],i[2],i[1]]:"MDY"===o[1]?["",i[3],i[1],i[2]]:i)[1].length?(Et(i[1])<60?"20":"19")+i[1]:i[1],i[2].length<=2?i[2]:kt[i[2]],i[3])}}(e.toLowerCase()):null})),_t(e,"modifiedAt",Rt),_t(e,"authors",Lt),_t(e,"keywords",(function(){var e=wt(Ut);return e&&e.length<=1024?e:null})),_t(e,"title",jt),_t(e,"description",Dt)},Ft=function(){var e=Array.from(document.querySelectorAll("meta[property^=content]")).reduce((function(e,n){var t,r=null===(t=null==n?void 0:n.getAttribute("property"))||void 0===t?void 0:t.split(":").pop(),o=mt[r];return o&&n&&(e[r]=o((null==n?void 0:n.getAttribute("content"))||"")),e}),{});return ht.refresh(),function(e){_t(e,"type",{attr:["property"],names:["og:type"]}),_t(e,"section",bt("section")),_t(e,"id",bt("id")),_t(e,"authors",bt("author"))}(e),Vt(e),e},Bt=De(De({},Ve(null)),{init:function(){return Ft()},refresh:function(e){var n=Ft();return null!=e&&e._fixed_&&(null==e||e._fixed_.forEach((function(e){delete n[e]}))),De(De({},e),n)},set:function(e,n){if(null===e)return{};var t=new Set(n&&n._fixed_),r=function(n,t){Be(Qe(e,n)).forEach(t)};return r(He,(function(e){t.add(e)})),r(ze,(function(e){t.delete(e)})),Qe(De(De(De({},n),e),{_fixed_:Array.from(t.values())}),He)},get:$e((function(e){var n=De({},e);return delete n._fixed_,e&&n}))}),qt=De(De({},je(null,"_pcus")),{init:function(e){return void 0===e&&(e=null),e&&Qe(e,(function(e){return We(e)&&Array.isArray(e.segments)}))}}),zt={pageViewId:sn,browserId:et,users:rn,userStatus:Fe,siteId:je(),consent:st,consentPresets:ct,products:ut,consentModifiers:lt,purposes:On,content:Bt,userSegments:qt},Ht={path:"/",expires:395,samesite:"lax",secure:"https:"===window.location.protocol,domain:Re.getTopLevelDomain(["pantheon.io","go-vip.net","go-vip.co"])},Wt=function(e){return e.getTime().toString(36)},Gt=function(e){return e?Ze((function(){return new Date(parseInt(e,36))})):null},Jt="_t",Qt=function(e,n){var t=n.encode,r=n.decode,o=!1,i=null,a=null,s=null;!function(){var n,t=null===(n=r(e||""))||void 0===n?void 0:n[Jt];if(t){var s=t.split("|");i=Gt(s[0]),a=Gt(s[1]),o=!!i}}();var c=function(e){return i=i||function(e){var n=new Date;if(e instanceof Date)n=e;else{if("number"!=typeof e)return null;n.setDate(n.getDate()+e)}return n}(e.expires),i};return{get fixedAt(){return o?[a,i]:null},onChange:function(e){s=e},setMode:function(e){var n=o;(o=e)!==n&&(i=null,a=null,null==s||s(o))},bindOptions:function(e){return o&&(i=c(e))?De(De({},e),{expires:i}):e},decode:function(e){var n=r(e);return null!=n&&n[Jt]&&delete n[Jt],n},encode:function(e,n){return o?(i=c(n))&&(e[Jt]=Wt(i)+"|"+Wt(a=a||new Date)):delete e[Jt],t(e)}}},Yt="essential",Xt="optional",$t="mandatory",Kt=function(e,n,t){return void 0===n&&(n=Xt),void 0===t&&(t=!1),{cookieName:e,consent:n,encode:function(e){return function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(e);return Ze((function(){return n?window.btoa(t):t}))||t}(e,t)},decode:function(e){return en(e,!0)}}},Zt=String.fromCharCode,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",nr={};function tr(e){return null==e?"":function(e,n,t){if(null==e)return"";var r,o,i,a={},s={},c="",u="",l="",d=2,p=3,f=2,m=[],v=0,g=0;for(i=0;i<e.length;i+=1)if(c=e.charAt(i),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=p++,s[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(a,u))l=u;else{if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)v<<=1,g==n-1?(g=0,m.push(t(v)),v=0):g++;for(o=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}else{for(o=1,r=0;r<f;r++)v=v<<1|o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o=0;for(o=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[l]}else for(o=a[l],r=0;r<f;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1;0==--d&&(d=Math.pow(2,f),f++),a[u]=p++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)v<<=1,g==n-1?(g=0,m.push(t(v)),v=0):g++;for(o=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}else{for(o=1,r=0;r<f;r++)v=v<<1|o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o=0;for(o=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[l]}else for(o=a[l],r=0;r<f;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(o=2,r=0;r<f;r++)v=v<<1|1&o,g==n-1?(g=0,m.push(t(v)),v=0):g++,o>>=1;for(;;){if(v<<=1,g==n-1){m.push(t(v));break}g++}return m.join("")}(e,6,(function(e){return er.charAt(e)}))}function rr(e){return null==e?"":""==e?null:function(e,n,t){var r,o,i,a,s,c,u,l=[],d=4,p=4,f=3,m="",v=[],g={val:t(0),position:n,index:1};for(r=0;r<3;r+=1)l[r]=r;for(i=0,s=Math.pow(2,2),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;switch(i){case 0:for(i=0,s=Math.pow(2,8),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;u=Zt(i);break;case 1:for(i=0,s=Math.pow(2,16),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;u=Zt(i);break;case 2:return""}for(l[3]=u,o=u,v.push(u);;){if(g.index>e)return"";for(i=0,s=Math.pow(2,f),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;switch(u=i){case 0:for(i=0,s=Math.pow(2,8),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;l[p++]=Zt(i),u=p-1,d--;break;case 1:for(i=0,s=Math.pow(2,16),c=1;c!=s;)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=t(g.index++)),i|=(a>0?1:0)*c,c<<=1;l[p++]=Zt(i),u=p-1,d--;break;case 2:return v.join("")}if(0==d&&(d=Math.pow(2,f),f++),l[u])m=l[u];else{if(u!==p)return null;m=o+o.charAt(0)}v.push(m),l[p++]=o+m.charAt(0),o=m,0==--d&&(d=Math.pow(2,f),f++)}}((e=e.replace(/ /g,"+")).length,32,(function(n){return function(e,n){if(!nr[e]){nr[e]={};for(var t=0;t<e.length;t++)nr[e][e.charAt(t)]=t}return nr[e][n]}(er,e.charAt(n))}))}!function(e){e.URI="URI"}(At||(At={}));var or={URI:{prefix:"{u}",compress:tr,decompress:rr}},ir=Be(or).reduce((function(e,n){return e[or[n].prefix]=or[n],e}),{}),ar={cookieName:"_pctx",consent:$t,encode:function(e,n){void 0===n&&(n=At.URI);var t=JSON.stringify(e),r=or[n].compress(t);return or[n].prefix+r},decode:function(e){var n=function(e){var n=e.slice(0,3),t=e.slice(3);if(!ir[n])return null;var r=ir[n].decompress(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return null}}(e||"");return We(n)?n:null}},sr=function(){var e,n;return!(null===(n=null===(e=on().cookies)||void 0===e?void 0:e._pprv)||void 0===n||!n.jsonOnly)},cr={_pprv:Kt("_pprv",$t,!sr()),_pcid:Kt("_pcid",Yt),_pcus:Kt("_pcus",Xt,!0),_pctx:ar},ur=function(e){return Be(e).reduce((function(n,t){return n[t]=function(e){var n=e.cookieName,t=e.consent,r=Re.get(n),o=!!r,i=o,a=Qt(r,e),s=!!a.fixedAt,c=o,u=null,l=De({},Ht),d=null,p=function(){return o&&c},f=function(e){var t=m(e),r=u||(d?a.encode(d,t):"");if(!r){var o=Re.get(n),c=a.decode(o||"");r=c?a.encode(c,t):""}r&&(s=!0,Re.set(n,r,a.bindOptions(t)),i=!0)},m=function(e){return De(De({},l),Qe(e||{},He))},v=function(e){!p()||(i&&Re.remove(n,m(e)),i=!1)},g=function(e,n){var t=e&&n;!p()&&t&&f(),p()&&!t&&v(),p()&&t&&!s&&f(),o=e,c=n};return a.onChange((function(){p()&&(s=!1,f())})),{get cookieName(){return n},get cookieEnabled(){return p()},get fixedAt(){return a.fixedAt},get consent(){return t},set:function(e,n){d=e,p()&&f(n)},get:function(){return a.decode(Re.get(n)||"")},remove:v,setCookieOptions:function(e){l=m(e),p()&&f()},setCookieEnabled:function(e,n){void 0===n&&(n=null),u=e?n:null,g(e,c)},lazyActive:function(){g(o,!0)},setFixedMode:function(e){a.setMode(e)}}}(e[t]),n}),{})}(cr),lr="__pctx_connection__",dr="uvm42pas28m",pr={},fr=function(){var e=function(){var e=null,n=null;return{register:function(t){return e=De(De({},t.fields),e),n=De(De({},t.cookieByName),n)},get wrappers(){return n},get:function(){var e={};return n&&Be(n).forEach((function(t){e=De(De({},e),n[t].get())})),e},set:function(t,r){void 0===r&&(r=null);var o={};Be(t).forEach((function(i){var a=t[i],s=null==e?void 0:e[i];s&&(o[s]||(o[s]={wrapper:null==n?void 0:n[s],data:{},update:!1,remove:!0}),o[s].data[i]=a,o[s].remove=o[s].remove&&null===a,(!r||!o[s].update&&a!==r[i])&&(o[s].update=!0))})),Be(o).forEach((function(e){var n=o[e],t=n.wrapper,r=n.update,i=n.remove;i&&t.remove(),r&&!i&&t.set(o[e].data)}))}}}(),n={},t=null,r=new Map,o=new Map,i=[],a=function(e,n,t){void 0===t&&(t=!1);var r=[];return Be(n).forEach((function(i){var a=n[i],s=!o.has(i)||o.get(i)===e||t;a&&s?o.set(i,e):!a&&s?o.delete(i):r.push(i)})),r.length>0?r:null};return function(s,c){var u=Je();return r.set(u,s),c&&e.register(c),n=De(De({},e.get()),n),{getInitCookieData:function(){return n},getCachedData:function(){return t||pr},setProtectionData:function(e){return a(u,e)},setProtectionDataUnsafe:function(e){return a(u,e,!0)},updateData:function(r){return function(r,a){var s={},c={};Be(a).forEach((function(e){o.has(e)?s[e]=(null==t?void 0:t[e])||null:c[e]=a[e]}));var u=t||n,l=De(De({},t),c);return nn(l,u)||(e.set(l,u),t=l,i.forEach((function(e){return(0,e[1])(c)}))),Be(s).length>0?s:null}(0,r)},onUpdateData:function(e){!function(e,n){i.push([e,n])}(u,e)},terminate:function(){(function(e){i=i.filter((function(n){return n[0]!==e}))})(u),r.delete(u)},setCookieOptions:function(){return null},setCookieEnabled:function(){return null},get registeredCookiesWrapper(){return e.wrappers}}}},mr=function(e){return void 0===e&&(e=!1),function(n,t){var r=fr();try{Object.defineProperty(window,lr,{configurable:e,set:function(e){var n=e();n===dr?e(r):"mrlqf5trgho"===n&&(r=fr())}})}catch(e){}return window[lr]=function(e){return e&&(r=e),dr},r(n,t)}}(),vr=function(e){return e.includes("*")},gr=function(e,n){return[new RegExp("^"+e.replace(/\*/g,".*")+"$"),n]},hr=function(e){return Be(e).filter(vr).map((function(n){return gr(n,e[n])}))},yr=function(e,n){for(var t=0,r=n;t<r.length;t++){var o=r[t];if(o[0].test(e))return o[1]}return null},wr=function(e,n){switch(e){case hn:return!0;case yn:return n===Yt||n===$t;case wn:return n===$t;default:return!0}},_r=function(e){switch(e){case"include":case"obfuscate":return!0;case"exclude":return!1}},br=function(e){var n=Object.assign({},e.items),t=hr(n),r=function(e){return n[e]||yr(e,t)||Xt};return function(n,t){var o=on().requireConsent,i=!qe(n),a=i?[n]:n,s=function(){var n=function(){return a.map((function(e){return{name:e,allowed:!o}}))},i=t||e.getConsent();if(!i)return n();if(i.mode===_n){var s=function(e,n,t){var r=n&&$n(n,t);if(!r)return null;for(var o=[],i={},a=0,s=r.patches;a<s.length;a++){var c=s[a],u=c.action,l=c.with,d=void 0===l?null:l,p=c.item;if(p.type===e){var f={action:u,data:d};i[p.key]=f,vr(p.key)&&o.push(gr(p.key,f))}}return{source:r.source,getModifier:function(e){return i[e]||yr(e,o)}}}(e.type,i.modifier,e.log);if(!s)return n();var c=s.source;return a.map((function(e){var n=s.getModifier(e),t=function(e,n){return"obfuscate"===e?n:null}(null==n?void 0:n.action,null==n?void 0:n.data),o={name:e,allowed:null!=n&&n.action?_r(n.action):wr(c,r(e))};return null!==t&&(o.data=t),o}))}return a.map((function(e){return{name:e,allowed:wr(i.mode,r(e))}}))}();return i?s[0]:s}},kr=Object.freeze({__proto__:null,createCheckConsentWrapper:br,createMask:gr,getByMask:yr,isMask:vr,itemsToMask:hr}),Cr=function(){var e={pa_vid:function(e){return Wn(en(e||"",!0)||e)},atuserid:function(e){var n;return Wn((null===(n=en(e||"",!0))||void 0===n?void 0:n.val)||"")}};return function(n){for(var t=function(n){try{var t=function(){if(n.ls)return function(e){var n=function(e){return Ze((function(){return window.localStorage.getItem(e)}))},t=n(e),r=Ze((function(){return parseInt(en(n("_ls_ttl"))[e],36)}));return r&&r<=Date.now()?null:t}(n.ls)||null;var t=Re.get(n);return e[n]&&t?e[n](t):t}();if(t)return{value:t}}catch(e){}},r=0,o=n;r<o.length;r++){var i=t(o[r]);if("object"==_typeof(i))return i.value}return null}}(),Ir={PA:{browserId:["pa_vid","atuserid"]}},Sr=function(e){var n,t=De({},function(e,n){return void 0===n&&(n=Jn),Be(e||{}).reduce((function(t,r){var o=null==e?void 0:e[r],i=Yn((null==o?void 0:o.source)||"",n);return t[r]=De(De({},o),{source:i}),t}),{})}(null===(n=on())||void 0===n?void 0:n.migration));Be(t).forEach((function(n){var r,o,i=e.params.get(n),a=null===(r=t[n])||void 0===r?void 0:r.source,s=a&&(null===(o=Ir[a])||void 0===o?void 0:o[n])||[];if(i&&s.length){var c=on()[n],u=Cr(s);u&&!c&&(i.readonly=!1,e.updateValues(n,u,!0),i.readonly=!0)}}))},Er="@@Data-layer/",Tr=Er+"update_value",Pr=Er+"refresh_value",xr=Er+"refresh_locked_key",Ar=function(){var e=De({},window.pdl),n=function(e){return function(e,n){return We(e)?Be(e).reduce((function(t,r){var o=e[r],i=n[r],a=i&&i(o);return void 0!==a&&(t[r]=a),t}),{}):e}(e,{path:String,domain:String,secure:Xe,expires:function(e){return e instanceof Date?e:Number(e)},samesite:function(e){return Ge(e)?e:Xe(e)}})};return null!=e&&e.cookies&&(e.cookies=Be(e.cookies).reduce((function(t,r){return t[r]=n(e.cookies[r]),t}),{})),null!=e&&e.cookieDefault&&(e.cookieDefault=n(e.cookieDefault)),e},Or=function(e){var n=function(e){var n,t,r=on(),o=(null===(n=r.consent)||void 0===n?void 0:n.products)||[],i=1===o.length&&"PA"===o[0],a="opt-out"===(null===(t=null==e?void 0:e.PA)||void 0===t?void 0:t.mode);return!!r.requireConsent&&i&&a}(e);return{_pprv:!on().requireConsent,_pctx:n,_pcid:n,_pcus:n}},Nr=function(e,n,t){var r=1===t?"can not be":"was";console.warn('[DL]: Consent v2: the "'.concat(e,'" has a conflicted consent mode, ')+"mode ".concat(r,' changed to "').concat(n,'"'))},Mr=function(e,n,t){var r,o=function(e,n){return{fields:Be(e).reduce((function(n,t){var r=e[t].cookieName;return null!==r&&(n[t]=r),n}),{}),cookieByName:n}}(e,n),i=mr("data-layer",o),a=!1,s=new Map,c=new Set,u=new Map,l=function(){if(!i)throw new Error("DataLayer can't be connected");return i},d=function(e){var n=l().registeredCookiesWrapper;n&&e(n)},p=function(e){d((function(n){e.forEach((function(e){var t=n[e];t&&t.lazyActive()}))}))},f=function(){var e=null;return d((function(n){e=Be(n).reduce((function(e,t){var r=n[t].cookieEnabled,o=n[t].fixedAt||null;return e[n[t].cookieName]=r?{enabled:r,fixedAt:o}:null,e}),{})})),e},m=function(){var e={},n=function(n){return Be(e).reduce((function(t,r){var o=e[r];return void 0!==o[n]&&(t[r]=o[n]),t}),{})};return{add:function(n,t){e[n]=t},call:function(){var e;e=n("protect"),Be(e).length>0&&l().setProtectionData(e),function(){var e=n("protectUnsafe");Be(e).length>0&&l().setProtectionDataUnsafe(e)}()}}},v=function(e,n){return Be(e).reduce((function(t,r){var o=u.get(r),i=e[r];return o&&(t[r]=n?n(o,i):o.get(i)),t}),{})},g=function(){return{params:u,getConnection:l,addChangeListener:C,get:w,updateValues:y}},h=function(e){var n=!1;Be(e).forEach((function(t){var o,i=t,a=u.get(i);if(a){var c=e[i];r[i]!==c&&(r[i]=c,n=!0,null===(o=s.get(i))||void 0===o||o.forEach((function(e){return e(a.get(c))})))}})),n&&c.forEach((function(e){return e(v(r))}))},y=function(e,n,t){var o;void 0===t&&(t=!1);var i=e,a=Ye();Ge(e)&&((o={})[e]=n,i=o);var s=m(),c=m();i=Be(i).reduce((function(e,n){var t=i[n],o=u.get(n),l=n;return null!=o&&o.readonly||(o&&o.cookieName&&a.add(o.cookieName),!o||t===r[n])?e:t===Pr?(e[n]=o.refresh(r[n],(function(e){c.add(l,e)})),e[n]!==r[n]&&s.add(l,{protectUnsafe:!1}),e):t===Tr?(e[n]=o.update(r[n],(function(e){c.add(l,e)})),e):(e[n]=o.set(t,r[n],(function(e){c.add(l,e)})),e)}),{}),p(a.values()),s.call();var d=l().updateData(i);if(d&&t){var f=Be(d).reduce((function(e,n){var t;return De(De({},e),((t={})[n]=!1,t))}),{});l().setProtectionDataUnsafe(f),l().updateData(i)}return c.call(),d&&v(d)};function w(e){var n,t,o=Ye(),i=Ge(e);return void 0===e?t=r:i?((n={})[e]=r[e],t=n):t=e.reduce((function(e,n){return u.has(n)&&(e[n]=r[n]),e}),{}),t=v(t,(function(e,n){return e.cookieName&&o.add(e.cookieName),e.get(n)})),p(o.values()),i?t[e]:t}function _(e,n){return y(e,n,!1)}var b=function(e,n){void 0===n&&(n=!1);var t=e;return qe(e)||(t=[e]),y(t.reduce((function(e,n){return e[n]=Tr,e}),{}),void 0,n)},k=function(e,n,t){var r;void 0===t&&(t=!1);var o=t?l().setProtectionDataUnsafe:l().setProtectionData,i=e;return Ge(e)&&((r={})[e]=n,i=r),o(i)};function C(e,n){var t;Ge(e)?null===(t=s.get(e))||void 0===t||t.add(n):c.add(e)}return{init:function(n){if(void 0===n&&(n={}),!a){i||(i=mr("data-layer",o)),function(e){var n=De(De({},e),Ar()),t=n.cookieDefault;d((function(e){Be(e).forEach((function(r){var o,i,a,s,c=e[r].cookieName,u=null===(o=n.cookies)||void 0===o?void 0:o[c],l="fixed"===(null===(i=n.cookies)||void 0===i?void 0:i.storageMode);null===(s=(a=e[r]).setFixedMode)||void 0===s||s.call(a,l),(t||u)&&e[r].setCookieOptions(De(De({},t),u))}))}))}(n),a=!0,Be(e).forEach((function(n){var t=e[n];s.set(n,new Set),u.set(n,t)}));var c=!1,p=l().getInitCookieData(),f=l().getCachedData(),v=m(),y=Be(e).reduce((function(n,t){var r=t,o=e[t];return n[t]=(null==f?void 0:f[r])||o.init(null==p?void 0:p[r],(function(e){v.add(r,e)})),null!=f&&f[r]||(c=!0),n}),{});r=y,c&&l().updateData(y),v.call(),l().onUpdateData((function(e){return h(e)})),null==t||t(g())}},set:_,get:w,update:function(e){return b(e)},refresh:function(){var e;if(l().setProtectionData(((e={})[xr]=!0,e)))return!1;var n=[];u.forEach((function(e,t){return n.push(t)}));var t=n.reduce((function(e,n){return e[n]=Pr,e}),{});return y(t),!0},protect:function(e,n){return k(e,n)},addChangeListener:C,removeChangeListener:function(e){c.delete(e),s.forEach((function(n){return n.delete(e)}))},terminate:function(){null==i||i.terminate(),s.clear(),c.clear(),i=null,a=!1,r={}},updateMigration:function(){a&&Sr(g())},get isReady(){return a},utils:{validateModifier:$n,validateConsent:Kn,checkConsent:kr,setConsent:function(e,n,t){w("consent");var r=qn(w("purposes"),0,e,n,t);return r?r.error?r.error:(_({consent:r.consent,purposes:r.purposes}),null):null},getConsent:function(){var e=w(["consent","purposes"]),n=e.consent,t=e.purposes;return zn(n,t)},notAcquiredConsent:Rn()?Be(En).reduce((function(e,n){return e[n]={mode:"not-acquired",products:En[n]},e}),{}):null,compressLz:tr,decompressLz:rr},get cookies(){return f()},get cookieEnabled(){return f()},setUnsafe:function(e,n){y(e,n,!0)},protectUnsafe:function(e,n){return k(e,n,!0)},updateUnsafe:function(e){return b(e,!0)},setCookieEnabled:function(e){d((function(n){var t=Be(e);t.length?t.forEach((function(t){var r=n[t];r&&r.setCookieEnabled(e[t])})):Be(n).forEach((function(t){n[t].setCookieEnabled(e)}))}))}}}(zt,ur,(function(e){(function(e){var n,t=Be(cr).reduce((function(e,n){return e[n]=cr[n].consent,e}),{}),r=function(n){var t;return n||(null===(t=e.get("consent"))||void 0===t?void 0:t.DL)||null},o=br({items:t,type:"cookie",getConsent:r}),i=r(),a=(null===(n=e.get("consent"))||void 0===n?void 0:n.PA)||null,s=function(n,t){var r,i=Or(t),a=null===(r=e.getConnection())||void 0===r?void 0:r.registeredCookiesWrapper;if(a){var s=Be(a).map((function(e){return a[e].cookieName}));o(s,n).forEach((function(e){var n=e.name,t=e.allowed,r=e.data,o=n,s=t&&!i[o];a[o].setCookieEnabled(s,r||null)}))}};e.addChangeListener("consent",(function(e){var n=(null==e?void 0:e.DL)||null,t=(null==e?void 0:e.PA)||null;((null==i?void 0:i.mode)!==(null==n?void 0:n.mode)||(null==a?void 0:a.mode)!==(null==t?void 0:t.mode))&&(i=n,a=t,s(n,e))})),s(i,e.get("consent"))})(e),Sr(e),function(e){var n=null,t={},r=function(n){var r=zn(n,e.get("purposes"));if(r&&n){var o=!1,i=Be(r).reduce((function(e,i){var a=r[i].mode;return r[i].products.forEach((function(r){var i;a!==(null===(i=n[r])||void 0===i?void 0:i.mode)&&(Ln(a,r)?t[r]||(t[r]=!0,Nr(r,a,1)):(e[r]={mode:a},o=!0,Nr(r,a,2)))})),e}),{});o&&e.updateValues({consent:i})}};e.addChangeListener("consent",(function(e){Rn()&&(n&&(clearTimeout(n),n=null),n=setTimeout((function(){r(e),n=null}),200))})),Rn()&&r(e.get("consent"))}(e)})),Rr=function(e){return function(){var n=e.dataLayer.get("consent");return n&&n[e.productName]||null}},Lr=function(e,n){var t=null,r=function(r){var o=(null==r?void 0:r[e.productName])||null;o!==t&&(t=o,n(o))};return e.dataLayer.addChangeListener("consent",r),function(){e.dataLayer.removeChangeListener(r)}},Ur=function(e,n){return e.utils.checkConsent.createCheckConsentWrapper(n)},Dr=function(e,n,t){var r=e.utils.checkConsent,o=r.itemsToMask(n),i=Object.keys(n).filter((function(e){return!r.isMask(e)}));return t().filter((function(e){return i.includes(e)||r.getByMask(e,o)}))},jr=function(e,n,t){var r=Rr(t),o=Ur(t.dataLayer,{items:t.items,type:n,getConsent:r}),i=function(n){var r;null===(r=o(Dr(t.dataLayer,t.items,e.getNames),n))||void 0===r||r.forEach((function(n){n.allowed?n.data&&e.set(n.name,n.data):e.remove(n.name)}))};return function(){var e=void 0===t.checkConsentOnInit&&t.enableAutoRemove;t.enableAutoRemove&&Lr(t,i),e&&i(r())}(),Object.assign({},e,{set:function(n,t,r){var i,a=o(n);if(null!=a&&a.allowed){var s=null!==(i=a.data)&&void 0!==i?i:t,c=r?[n,s,r]:[n,s];e.set.apply(null,c)}},check:o})},Vr=function(e){var n=function(e){var n,t,r=Le.__protected__.ttlName,o={dataLayer:e,productName:"DL"},i=(t=Ur(o.dataLayer,{items:(n={},n[r]="mandatory",n),type:"localStorage",getConsent:Rr(o)}),function(){var e=t(r);return e.allowed&&!e.data}),a=!0,s=function(){(a=i())||Le.remove(r)};return Lr(o,s),s(),function(){return a}}(e.dataLayer),t=jr(Le,"localStorage",e);return Object.assign({},t,{set:function(e,r,o){var i=o;return(null==o?void 0:o.expires)&&!n()&&delete(i=Object.assign({},o)).expires,t.set(e,r,i)}})},Fr=function(e){var n=e.dataLayer.utils.checkConsent,t=Rr(e),r={},o=[],i={},a={};Object.keys(e.items).forEach((function(t){var a=e.items[t];if(a.type){var s=a,c=s.type,u=s.domain,l=s.path,d={};i[t]=c,u&&(d.domain=u),l&&(d.path=l),n.isMask(t)?o.push(n.createMask(t,d)):r[t]=d}else i[t]=a}));var s,c=Ur(e.dataLayer,{items:i,type:"cookie",getConsent:t}),u=function(t){var s;null===(s=c(Dr(e.dataLayer,i,Re.getNames),t))||void 0===s||s.forEach((function(e){var t=function(){return r[e.name]||n.getByMask(e.name,o)||a};e.allowed?e.data&&Re.set(e.name,e.data,t()):Re.remove(e.name,t())}))};s=!(void 0!==e.checkConsentOnInit||!e.enableAutoRemove),e.enableAutoRemove&&(a=e.enableAutoRemove,Lr(e,u)),s&&u(t());return Object.assign({},Re,{check:c,set:function(e,n,t,r){var o,i=c(e);null!=i&&i.allowed&&Re.set(e,null!==(o=i.data)&&void 0!==o?o:n,t,r)}})},Br=function(e,n){return void 0===n&&(n=""),Object.entries(e).reduce((function(e,t){var r=t[0],o=t[1];return e[r]=function(e,n){void 0===n&&(n="Method");var t=function(){var t;return null===(t=null==pn?void 0:pn.util)||void 0===t||t.debug("".concat(n," is deprecated")),e.apply(this,arguments)};return t.skipLog=e,t}(o,n+String(r)),e}),{})},qr=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(location.hostname),zr=Ae.cookie.getTopLevelDomain(),Hr={COMPOSER:{cookie:{items:{__tbc:"mandatory",xbc:"mandatory",__tac:"mandatory",__tae:"mandatory",__pls:{type:"mandatory",domain:zr,path:"/"},"__pls_*":{type:"mandatory",domain:zr,path:"/"},"_pc_*":{type:"mandatory",domain:"",path:"/"},_pcfe:"optional",_pcus:"optional",_pcer:{type:"essential",domain:zr,path:"/"},_pnpd:"optional"}},localStorage:{items:{__pnml:"mandatory","__tp-customVariables":"essential","__tp-customVariables-expiration":"essential"},enableAutoRemove:!0}},VX:{cookie:{items:{"__ut_*":"mandatory",__ut:"mandatory",__pvi:"optional",__pat:"optional",__pnahc:"mandatory","glt_*":"optional","__utg_*":"optional",__gom:"optional","tpcc_*":{type:"optional",domain:qr?"":zr,path:"/"}}},localStorage:{items:{"__tp-gaAccount":"optional","__tp-trackOnlyAids":"optional","__tp-metricsGAAccount":"optional","__tp-exrs":"optional",tp__unprocessedCookies:"optional","tp__unprocessedСookies":"optional","__tp-gaAccount-expiration":"optional","__tp-trackOnlyAids-expiration":"optional","__tp-metricsGAAccount-expiration":"optional","__tp-exrs-expiration":"optional"},enableAutoRemove:!0}},DMP:{cookie:{items:{cX_P:"essential"},enableAutoRemove:{domain:zr,path:"/"}},localStorage:{items:{_cX_P:"essential"},enableAutoRemove:!0}},ID:{cookie:{items:{__utp:"mandatory","__utp_*":"mandatory",__pid:"mandatory",__pil:"essential",__idr:"essential",__eea:"essential","piano-id-initial-gm-sso-shown-*":"mandatory"}},localStorage:{items:{"pnid-tc-string":"optional"},enableAutoRemove:!0}}},Wr=["opt-in","essential","opt-out","custom"],Gr=["PA","DMP","COMPOSER","ID","VX","ESP","SOCIAL_FLOW","DL"].reduce((function(e,n,t){var r;return p(p({},e),((r={})[n.toLowerCase()]={name:n,id:t},r))}),{});Gr["social flow"]=Gr.SOCIAL_FLOW;var Jr=function(e){return Gr[e.toLowerCase()]||null},Qr=function(){return window.pdl||null},Yr=function(){var e;return!(null===(e=Qr())||void 0===e||!e.requireConsent)},Xr=function(){var e;return"v2"===(null===(e=Qr())||void 0===e?void 0:e.requireConsent)},$r=function(){return Yr()?Xr()?2:1:null},Kr=function(){return!(Yr()&&!Xr())||(console.error('Consent v2 is disabled. To use the feature set pdl.requireConsent = "v2"'),!1)},Zr=function(){return!Xr()||(console.error("Consent v2 is enabled. To change consent use tp.consent.setByPurpose or tp.consent.setAllPurposes"),!1)},eo=Object.entries({AD:["DMP","SOCIAL_FLOW"],CP:["COMPOSER"],AM:["PA"],PR:["ESP","VX","ID"],DL:["DL"]}).reduce((function(e,n){var t=n[0];return n[1].forEach((function(n){e[Jr(n).id]=t})),e}),{}),no=function(e){var n=e.reduce((function(e,n){var t,r=n.id;return p(p({},e),((t={})[r]=4,t))}),{}),t=Mr.get("purposes")||{};return{addConsent:function(e,t){var r=Jr(e).id;n[r]=function(e){return Wr.indexOf(e)}(t)},addPurpose:function(e,n){t[Jr(e).id]=n},toModeParamString:function(){return JSON.stringify(n)},toPurposeParamString:function(){return Object.entries(t).some((function(e){var n=e[0];return e[1]!==eo[n]}))?JSON.stringify(t):null}}};pn.container.register("consent",{useValue:function(){var e=!1,n=[],t={composer:null,vx:null,dmp:null,id:null};var r=function(e){e(t)},o=Br({setByPreset:function(e){Zr()&&Mr.set("consent",e)},set:function(e,n){var t;Zr()&&("string"==typeof e?Mr.set("consent",((t={})[e]=n,t)):Mr.set("consent",e))},get:function(e){var n=Mr.get("consent");return e&&n?n[e]:n}},"tp.consent.");return{setByPreset:o.setByPreset,set:o.set,get:o.get,setByPurpose:function(e,n,t){if(Kr()){if(!n)return void pn.util.error("consent.setByPurpose: mode is required");var r=Mr.utils.setConsent(e,n,t);r&&pn.util.error("consent.setByPurpose: [DL]: "+r)}},setAllPurposes:function(e){if(Kr()){var n=Mr.utils.setConsent(e);n&&pn.util.error("consent.setAllPurpose: [DL]: "+n)}},getByPurpose:function(){return Mr.utils.getConsent()},get composer(){return t.composer},get vx(){return t.vx},get dmp(){return t.dmp},get id(){return t.id},__protected__:{getVersion:$r,addConsentsToParams:function(e){var n,t=Mr.get("products"),r=2===$r()?Mr.utils.getConsent():null,o=1===$r()?Mr.get("consent"):null,i=!(null===(n=Qr())||void 0===n||!n.requireConsent);if(!(r&&o||i))return e;var a=no(t);o&&Object.keys(o).forEach((function(e){a.addConsent(e,o[e].mode)})),r&&Object.keys(r).forEach((function(e){var n=r[e],t=n.mode;n.products.forEach((function(n){a.addConsent(n,t),a.addPurpose(n,e)}))}));var s=a.toModeParamString(),c=a.toPurposeParamString();return s&&(e.consent_modes=s),c&&(e.consent_purposes=c),e},init:function(){var o,i=pn.debug?function(e){var n;null===(n=pn.util)||void 0===n||n.debug("[PDL validation]: "+e)}:void 0,a=Qr(),s=function(){var e;return(null===(e=Qr())||void 0===e?void 0:e.consent_modifiers)||null}();s&&(Object.keys(s).forEach((function(e){var n,t=s[e],r=null===(n=Jr(e))||void 0===n?void 0:n.name;r&&(delete s[e],s[r]=t)})),null===(o=Mr.get("products"))||void 0===o||o.forEach((function(e){var n=e.name;if(s[n]){var t=function(e){return pn.debug?function(n){var t;null===(t=pn.util)||void 0===t||t.debug("[PDL validation]: consent_modifier: ".concat(e," - ").concat(n))}:void 0}(n);s[n]=Mr.utils.validateModifier(s[n],t)}}))),null!=a&&a.consent&&(a.consent=Mr.utils.validateConsent(a.consent,i)||a.consent);var c={domain:pn.cookieDomain||Ae.cookie.getTopLevelDomain(),path:pn.cookiePath||"/"};Object.entries(Hr).forEach((function(e){var n,r=e[0],o=e[1],i=r,a=i.toLowerCase(),s={dataLayer:Mr,productName:i};t[a]={cookie:Fr(p(p(p({},s),o.cookie),{enableAutoRemove:null!==(n=o.cookie.enableAutoRemove)&&void 0!==n?n:c})),localStorage:Vr(p(p({},s),o.localStorage))}})),n.forEach(r),n=[],e=!0},getConsentConfig:function(){return pn.debug?Hr:null},async:function(t){e?r(t):n.push(t)}}}}()}),pn.consent=pn.container.resolve("consent");var to={name:"cookie",raw:!1,set:function(e,n,t){var r=t;Ae.cookie.set(e,n,r)},get:function(e){return Ae.cookie.get(e)||void 0},remove:function(e,n){return null!==Ae.cookie.get(e)&&(Ae.cookie.remove(e,n),!0)}};pn.container.register("cookie",{useValue:to}),pn.cookie=pn.container.resolve("cookie");var ro=function(){var e=function(){try{return window.localStorage}catch(e){return null}}();window.name||(window.name=Math.floor(1e8*Math.random()));return{get:function(n){if(e&&"function"==typeof e.getItem){var t=Ae.localStorage.get(n);try{return JSON.parse(t)}catch(e){return t}}},set:function(n,t){!e||"function"!=typeof e.getItem||Ae.localStorage.set(n,JSON.stringify(t))},remove:function(n){!e||"function"!=typeof e.getItem||Ae.localStorage.remove(n)}}}();pn.container.register("localStorage",{useValue:ro}),pn.localStorage=pn.container.resolve("localStorage");var oo=function(){var e=function(){return"1.12.25"};return window.__tpVersion="1.12.25",{name:"versionService",getTinypassVersion:e}}();pn.container.register("versionService",{useValue:oo}),pn.versionService=pn.container.resolve("versionService");var io=function(e){void 0===e&&(e=pn.container);var n,t,r,o=e.resolve("ajax"),i=e.resolve("localStorage"),a=e.resolve("consent"),s=3600,c=2500,u="tp__unprocessedCookies",l={};function d(){n&&clearTimeout(n),n=setTimeout((function(){o.request({url:pn.cloudflareWorkerUrl+"?maxAge=2628000",type:"POST",data:JSON.stringify(l),crossDomain:!0,xhrFields:{withCredentials:!0},success:function(){l={},i.remove(u)},error:function(e,n){console.error(n)}})}),c)}function p(){try{var e=i.get(u);e&&Object.keys(e).forEach((function(n){l[n]=e[n]}))}catch(e){console.error(e)}}return t="tp__unprocessedСookies",(r=i.get(t))&&(i.remove(t),i.get(u)||i.set(u,r)),{name:"itp",init:function(){!pn.cloudflareWorkerUrl||!pn.util.isSafariOrUiWebView()||(p(),Object.keys(l).length>0&&d())},synchronizeCookie:function(e,n,t){!pn.cloudflareWorkerUrl||!pn.util.isSafariOrUiWebView()||(p(),function(e,n,t){l[e]={value:n},t&&(t instanceof Date?l[e].expires=t:l[e].maxAge=t*s)}(e,n,t),function(){var e=a.vx;null!==e&&e.localStorage.set(u,JSON.stringify(l))}(),d())}}}();pn.container.register("itp",{useValue:io}),pn.itp=pn.container.resolve("itp");pn.container.register("util",{useValue:function(e){void 0===e&&(e=pn.container);var n,t=e.resolve("jqUtils"),r=e.resolve("cookie"),o=e.resolve("versionService"),i=e.resolve("itp"),a=e.resolve("consent"),s="",c={ENABLED_AFTER_DISABLED:-2,NOT_DETECTED:-1,DISABLED:0,ENABLED:1};void 0==="testString".toHex&&Object.defineProperty(String.prototype,"toHex",{enumerable:!1,value:function(){for(var e="",n=0;n<this.length;++n)e+=""+this.charCodeAt(n).toString(16);return e}});var u=function(e,n,t){var o={path:"/",expires:0};void 0!==n&&(o.domain=n),void 0!==t&&(o.path=t),r.remove(e,o)},l=function(e,n,t){-1!==n.indexOf("abril.com.br")&&u(e,".abril.com.br",t),-1!==n.indexOf("scotsman.com")&&u(e,".scotsman.com",t)},d=function(e){var n;if(0===document.cookie.length)return null;if(e instanceof RegExp)for(var t=document.cookie.split(";"),r=0;r<t.length;r++){var o=t[r].indexOf("=");if(-1!==o){var i,a=t[r].substr(0,o).trim();if(e.test(a)){i=t[r].substr(o+1).trim();try{return decodeURIComponent(i)}catch(n){m('Could not uri-decode cookie "'+e.toString()+'"',n)}return i}}}else{var s=("; "+document.cookie).split("; "+e+"=");if(s.length>=2){var c=null===(n=s.pop())||void 0===n?void 0:n.split(";").shift();if(void 0===c)return null;try{return decodeURIComponent(c)}catch(n){m('Could not uri-decode cookie "'+e+'"',n)}return c}}return null},f=function(e){if(0===document.cookie.length)return[];for(var n=[],t=document.cookie.split(";"),r=0;r<t.length;r++){var o=t[r].indexOf("=");if(-1!==o){var i,a=t[r].substr(0,o).trim();if(e instanceof RegExp&&e.test(a)){i=t[r].substr(o+1).replace(/^\s+|\s+$/g,"");try{i=decodeURIComponent(i)}catch(n){m('Could not uri-decode cookie "'+e.toString()+'"',n)}n.push({name:a,value:i})}else if(a===e){i=t[r].substr(o+1).replace(/^\s+|\s+$/g,"");try{i=decodeURIComponent(i)}catch(n){m('Could not uri-decode cookie "'+e+'"',n)}n.push({name:a,value:i})}}}return n};function m(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];!0===pn.debug&&g.apply(void 0,e)}function v(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t;g.apply(void 0,e),(t="string"==typeof arguments[0]?new Error(arguments[0]):new Error).stack&&g(t.stack)}function g(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(window.console&&window.console.log&&window.console.log.apply&&window.console.log.apply.call&&void 0!==window.console&&void 0!==window.console.log){var t=["TP:"];try{for(var r=0;r<e.length;r++)t.push(e[r])}catch(n){t=e}$()&&(t=y(t)),"object"==_typeof(window.console.log)?window.console.log.apply.call(this,console,t):console.log.apply(console,t)}}var h=function(){var e=0;return window.pageYOffset?e=window.pageYOffset:e="number"==typeof(e=document.documentElement||document.body.parentNode).scrollTop?e.scrollTop:document.body.scrollTop,e},y=function(e){var n="";try{for(var t=0;t<e.length;t++)try{n+=JSON.stringify(e[t])+", "}catch(e){n+=""+e}return[n]}catch(n){return e}},w=function(){var e,n;return"CSS1Compat"===document.compatMode?(e=document.documentElement.clientWidth,n=document.documentElement.clientHeight):(e=document.body.clientWidth,n=document.body.clientHeight),{x:e,y:n}},_=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},b=function(e){var n=e(location.href);if(history&&"function"==typeof history.replaceState){var t="object"==_typeof(window.next)&&"object"==_typeof(window.next.router)?{url:e(history.state.url||""),as:e(history.state.as||""),options:history.state.options}:history.state;history.replaceState(t,document.title,n)}else location.href=n},k=function(e,n,t){var r=p({path:"/",expires:730},t&&{domain:t}),o=T();for(var i in o)u(e,o[i]);r.domain&&l(e,r.domain),(pn.cookieDomain||pn.cookiePath)&&(r.domain=pn.cookieDomain?pn.cookieDomain:r.domain,u(e,r.domain,r.path),r.path=pn.cookiePath?pn.cookiePath:r.path,u(e,r.domain,r.path)),u(e),J("composer",e,n,r)},C=function(){return Ae.cookie.getTopLevelDomain()},I=function(e){return pn.useAidSpecifiedCookies&&pn.aid?e+"_"+pn.aid:e},S=function(){var e,n=I("__pls"),t=d(n);if(t)try{if((e=JSON.parse(t))&&!Array.isArray(e))throw new Error("Push list subscriptions must be an array")}catch(e){m("Can't get push list subscriptions",e)}return e},E=function(e){n=e;var t=C();J("vx","__pat",n,{path:"/",expires:30,domain:t})},T=function(){var e,n=[];n.push(document.domain);for(var t=(null===(e=document.domain)||void 0===e?void 0:e.split("."))||[];t.length>=2;)n.push("."+t.join(".")),t.shift();return n},P=function(e){var n=G(e);return"boolean"===t.type(n)||"string"===t.type(n)&&n.length?!0===n||"true"===n?c.ENABLED:c.DISABLED:c.NOT_DETECTED},x=function(){var e=G("__pnahc"),n=!1;return void 0===e&&(e="0",n=!0),{cookieValue:parseInt(e,10),isFirst:n}},A={},O=function(e){A[e]?A[e].counter++:A[e]={counter:1,waiters:[]}},N=function(e,n){if(A[e]&&(A[e].counter--,A[e].counter<=0)){var t=[];A[e].waiters.forEach((function(e){t.push(e)})),delete A[e],t.forEach((function(e){e(void 0!==n?n:{})}))}},M=function(){return navigator.userAgent||navigator.vendor||window.opera},R=function(){return o.getTinypassVersion().indexOf("SNAPSHOT")>=0},L=function(){return"https:"===document.location.protocol},U=function(e,n){var t=[],r=e.indexOf(n);return-1===r?t.push(e):(t.push(e.substr(0,r)),t.push(e.substr(r+1))),t},D=function(e){var n,t,r=U(e,"=");void 0!==e&&(n=r[0],t=r[1]);var o="";return void 0!==n&&(o+=encodeURIComponent(decodeURIComponent(n))),void 0!==t&&(o+="="+encodeURIComponent(decodeURIComponent(t))),o},j=function(e){if(!e)return"";var n=function(e){var n=e.indexOf("?"),t=e.indexOf("#"),r=!1;-1!==t&&(r=!0);var o=!1;-1!==n&&(o=!0),r&&o&&t<n&&(o=!1);var i,a="",s="";if(o){var c=U(e,"?");if(i=c[0],r){var u=U(c[1],"#");a=u[0],s=u[1]}else a=c[1]}else if(r){var l=U(e,"#");i=l[0],s=l[1]}else i=e;return{schemeDomainAndPath:i,queryString:a,hash:s,hasQueryString:o,hasHash:r}}(e=e.replace(/^((%20)|\s)+/,"")),t=encodeURI(decodeURI(n.schemeDomainAndPath));return n.hasQueryString&&(t+="?"+function(e){var n="";if(void 0!==e)for(var t=e.split("&"),r=0;r<t.length;r++)r>0&&(n+="&"),n+=D(t[r]);return n}(n.queryString)),n.hasHash&&(t+="#"+encodeURIComponent(decodeURIComponent(n.hash))),t},V=function(e){var n=parseInt(e,10);return!(isNaN(parseFloat(n))||n<0||n>255)},F=function(e){var n=document.createElement("a");n.href=/^https?:\/\//i.test(e)?e:"http://"+e;var t=n.hostname;return 0===t.indexOf("www.")&&(t=t.replace("www.","")),t};function B(){return null!==M().match(/Version.+Safari/)}var q=function(e,n){return new RegExp("\\?"+n,"gi").test(e)?e.split("&").length>1?e.replace(new RegExp(n+"[^&]+&?","gi"),""):e.replace(new RegExp("\\?"+n+"[^&]+&?","gi"),""):new RegExp("\\&"+n,"gi").test(e)?e.replace(new RegExp("\\&"+n+"[^&]+","gi"),""):e},z=function(e){try{var n=new Error;H({trace:ee(n.stack,6),desc:"clearing __tp cookie",accessTokenList:e})}catch(e){}},H=function(e){try{var n=pn.user.getProvider(),t=JSON.stringify([p({aid:pn.aid,up:n.getName(),url:window.location.href,t:(new Date).getTime(),v:o.getTinypassVersion(),tags:["sdk"]},e)]);pn.api.callApi("/anon/error/log",{log_message:t})}catch(e){}};var W=function(e){e||(e=730);var n=pn.getMaxCookieExpirationInDays();if(null!==n){var t;"number"==typeof e?(t=new Date).setDate(t.getDate()+e):t=e;var r=new Date;if(r.setDate(r.getDate()+n),t>r)return n}return e},G=function(e){return r.get(e)},J=function(e,n,t,o){var i;a[e]||m("CONSENT ERROR: Consent module was not initiliazed"),Q(n,t,o,(null===(i=a[e])||void 0===i?void 0:i.cookie.set)||r.set)},Q=function(e,n,t,o){void 0===o&&(o=r.set),t=t||{},"11C6aYHwtb"===pn.aid?(t.samesite="none",t.secure=!0):t.samesite="lax",t.expires&&(t.expires=W(t.expires)),o(e,n,t),void 0!==i.synchronizeCookie&&i.synchronizeCookie(e,n,t.expires)},Y="__tp-",X="-expiration",$=function(){var e=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"],n=["_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(var t in n){if(window[n[t]])return!0}for(var r in e){var o=e[r];if(window.document[o])return!0}for(var i in window.document)if(i.match(/\$[a-z]dc_/)&&window.document[i].cache_)return!0;return!!(window.external&&window.external.toString&&window.external.toString()&&-1!==window.external.toString().indexOf("Sequentum")||window.document.documentElement.getAttribute("selenium")||window.document.documentElement.getAttribute("webdriver")||window.document.documentElement.getAttribute("driver"))},K=function(){return G("__tac")},Z=function(){return document.referrer},ee=function(e,n){return e&&e.split("\n").filter((function(e,t){return t>1&&t<n+1})).map((function(e){return e.trim()})).join("")},ne=function e(n,t){try{return n()}catch(n){return t?e(t):null}},te=function(e,n){return void 0===n&&(n=!1),ne((function(){return JSON.parse(e)}),(function(){return n?JSON.parse(window.atob(e)):null}))||null},re=function(){return Mr.isReady?Mr.get("userSegments"):null};return{name:"util",__private__:{getAdjustedCookieExpiration:W},__protected__:{deleteTLDCookieForSpecificDomains:l,documentReady:function(e){var n=function n(){document.removeEventListener("DOMContentLoaded",n),window.removeEventListener("load",n),e()};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(e):(document.addEventListener("DOMContentLoaded",n),window.addEventListener("load",n))},getCookie:G,setCookieConsent:J,setCookie:Q,getLocalStorageItem:function(e){var n=Y+e,t=Ae.localStorage.get(n),r=Ae.localStorage.get(n+X);return r&&r<Math.floor((new Date).getTime()/1e3)?(Ae.localStorage.remove(n),Ae.localStorage.remove(n+X),null):t},hasLocalStorage:function(){try{return"object"==_typeof(window.localStorage)&&"function"==typeof window.localStorage.getItem}catch(e){return!1}},randomStringCxCompatible:function(){for(var e=(new Date).getTime().toString(36);e.length<16;)e+=Math.round(2147483647*Math.random()).toString(36);return e.substr(0,16)},setLocalStorageItem:function(e,n,t,r,o){void 0===o&&(o=!0);var i=(o?Y:"")+n,s=a[e];s?s.localStorage.set(i,t,{expires:r}):v("There is no such initiated consentProduct ->",e)},removeLocalStorageItem:function(e){var n=Y+e;Ae.localStorage.remove(n)},cameFromFbSubscriptions:function(){return 0===_("redirect_uri").indexOf("https://www.facebook.com/subscriptions/account-linking/confirm/")},logRemoveTokens:function(e){var n,t;H({uid:null!==(n=e.uid)&&void 0!==n?n:"n",desc:"clearing __utp cookie",actions:null!==(t=e.actions)&&void 0!==t?t:"n"})},waitAllPromises:function(e){return Promise.all(e)},isInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},racePromise:function(e){return Promise.race(e)},isCxenseBot:function(){var e=M();return/(cxensebot)/i.test(e)},isHttpsProtocol:L,isApplePayAllowed:function(){var e=!1;try{e=B()&&window.ApplePaySession&&window.ApplePaySession.canMakePayments()}catch(e){g("ApplePay error",e)}return(R()||L())&&e},isDevEndpoint:R,setVxUsersToDataLayer:function(e){var n=Mr.get("users"),t=!1,r=n?Object.keys(n).reduce((function(e,r){var o;return"VX"===(null===(o=n[r])||void 0===o?void 0:o.type)&&(t=!0,e[r]=null),e}),{}):{};(n&&t||e)&&Mr.set("users",p(p({},r),e))}},toJSON:function(e,n){void 0===n&&(n=!1);var t=JSON.stringify(e);return ne((function(){return n?window.btoa(t):t}))||t},parseJSON:te,addScript:function(e,n){var t,r=document.createElement("script"),o=document.getElementsByTagName("script")[0];null===(t=o.parentNode)||void 0===t||t.insertBefore(r,o),r.type="text/javascript",r.async=!0,r.onload=n,r.src=e},isScriptAdded:function(e){for(var n=document.getElementsByTagName("script"),t=0,r=n.length;t<r;t++)if(n[t].src.indexOf(e)>-1)return!0;return!1},fromUnderscoreToCamelCase:function(e){return e.slice().replace(/_[a-z]/g,(function(e){return e.replace("_","").toUpperCase()}))},randomString:function(e){e||(e=5);var n="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";if(window.crypto&&window.crypto.getRandomValues&&"function"==typeof Uint32Array){var r=new Uint32Array(e);window.crypto.getRandomValues(r);for(var o=0;o<e;o++)n+=t.charAt(r[o]%62)}else for(o=0;o<e;o++)n+=t.charAt(Math.floor(62*Math.random()));return n},log:g,debug:m,error:v,findCookieByName:d,findCookiesByName:f,removeVoucherCodeFromUrl:function(e){return q(e,"voucher_code")},removeSharedAccountCodeFromUrl:function(e){return q(e,"shared_account_code")},deleteCookie:u,mapArrayIndex:function(e,n){return n},getScroll:h,getPageSize:function(){return{x:Math.max(document.documentElement.clientWidth,document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth),y:Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}},getViewport:w,center:function(e,n){var t=h(),r=w();return(r={x:r.x/2-e/2,y:r.y/2-n/2+t}).x=Math.max(0,r.x),r.y=Math.max(10,r.y),r},centerScreen:function(e,n){e=e||0,n=n||0;var r=void 0!==window.screenLeft?window.screenLeft:window.screen.left,o=void 0!==window.screenTop?window.screenTop:window.screen.top,i=t.winSize();return{left:(i.width||document.documentElement.clientWidth||window.screen.width)/2-e/2+r,top:(i.height||document.documentElement.clientHeight||window.screen.height)/2-n/2+o}},getQueryParamByName:_,hasQueryParamByName:function(e){var n={};return location.search.substr(1).split("&").forEach((function(e){var t=e.split("="),r=t[0],o=t[1]&&decodeURIComponent(t[1]);r in n?n[r].push(o):n[r]=[o]})),n.hasOwnProperty(e)},removeQueryParamByName:function(e){b((function(n){return function(e,n){var t,r=e.split("#"),o=r[0].split("?");if(r.length>=2&&(t=r[1]),n=Array.isArray(n)?n:[n],o.length>=2){for(var i=o[1].split(/[&;]/g),a=0;a<n.length;a++)for(var s=encodeURIComponent(n[a])+"=",c=i.length;c-- >0;)-1!==i[c].lastIndexOf(s,0)&&i.splice(c,1);return e=o[0]+(i.length>0?"?"+i.join("&"):""),t?e+"#"+t:e}return e}(n,e)}))},setAccessTokenListCookie:function(e,n,r){var o=I("__ut");if(e&&"string"===t.type(e.value)){var i=new Date,a={domain:void 0,path:"/",expires:730,secure:!0};e.cookie_domain&&"localhost"!==e.cookie_domain&&t.inArray(e.cookie_domain,T())>=0&&(a.domain=e.cookie_domain),pn.cookieDomain&&(a.domain=pn.cookieDomain),pn.cookiePath&&(a.path=pn.cookiePath);var s=T();for(var c in s)u("__tac",s[c]),u("__tae",s[c]),u(o,s[c]);e.value&&J("composer","__tac",e.value,a),J("composer","__tae",i.getTime(),a),J("vx",o,n,a),""===n&&!r&&z(e)}else{var l=T();if(l.push(void 0),pn.cookieDomain&&l.push(pn.cookieDomain),pn.cookiePath)for(var c in l)u("__tac",l[c],pn.cookiePath),u("__tae",l[c],pn.cookiePath),u("__eea",l[c],pn.cookiePath),u(o,l[c],pn.cookiePath);for(var c in l)u("__tac",l[c]),u("__tae",l[c]),u("__eea",l[c]),u(o,l[c]);r||z(e)}},setTpccCookies:function(){var e=_("tpcc");if(e){var n=new Date,t=JSON.stringify({date:n.getTime()}),r=C();/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(location.hostname)&&(r=""),r||(r=""),J("vx","tpcc_"+e,t,{path:"/",expires:90,domain:r})}},getCampaigns:function(e){var n=f(/^tpcc_.+/),t=_("tpcc"),r="tpcc_".concat(t),o=!1;n.forEach((function(n){e[n.name]=n.value,t&&n.name===r&&(o=!0)})),t&&!o&&(e[r]=JSON.stringify({date:Date.now()}))},getCustomCookies:function(){var e={};return f(/^_pc_.+/).forEach((function(n){e[decodeURIComponent(n.name)]=n.value})),e},ADBLOCKER_STATUS:c,getAdblockStatus:function(){var e=c.NOT_DETECTED,n=x();return pn.adblockerCookieName&&(e=P(pn.adblockerCookieName)),e===c.NOT_DETECTED&&(e=P("__pac")),e===c.NOT_DETECTED&&(e=P("__adblocker")),function(e,n){e<<=1,n===c.ENABLED?e|=1:e&=-2,n!==c.NOT_DETECTED&&J("vx","__pnahc",e+"",{path:"/",expires:90})}(n.cookieValue,e),e===c.ENABLED&&(n.isFirst||function(e){return 1==(e>>0&1)}(n.cookieValue)||(e=c.ENABLED_AFTER_DISABLED)),e},getAdblockerStatusReason:function(){return void 0!==window.blockAdBlock?"1":"0"},getAdblockerHistoryCookieInfo:x,waitCall:function(e,n){A[e]?A[e].waiters.push(n):n()},startCall:O,doneCall:N,hasCall:function(e){return!!A[e]},debounce:function(e,n,t){var r;return function(){var o=this,i=Array.prototype.slice.call(arguments),a=t&&!r;clearTimeout(r),r=setTimeout((function(){r=null,t||e.apply(o,i)}),n),a&&e.apply(o,i)}},throttle:function(e,n){var t,r,o=!1;return function i(){if(o)return t=arguments,void(r=this);e.apply(this,arguments),o=!0,setTimeout((function(){o=!1,t&&(i.apply(r,t),t=r=null)}),n)}},profile:function(e){function n(){return n.__invokeCount++,e.apply(this,arguments)}return Object.defineProperty(n,"__invokeCount",{writable:!0,value:0}),Object.defineProperty(n,"invokeCount",{get:function(){return this.__invokeCount}}),n},setTbcCookieFromResponse:function(e){e&&e.browser&&void 0!==e.browser.tbc&&k("__tbc",e.browser.tbc,e.browser.cookie_domain),e&&e.tbc&&e.tbc.cookie_value&&k("__tbc",e.tbc.cookie_value,e.tbc.cookie_domain)},setTacCookieFromResponse:function(e){var n=(new Date).getTime(),t=K(),r=function(e,r){!e||e===t||(k("__tac",e,r),k("__tae",n,r))};e.browser&&r(e.browser.tac,e.browser.cookie_domain),e.tac&&r(e.tac.cookie_value,e.tac.cookie_domain)},setXbcCookieFromResponse:function(e){var n="xbc";if(e.xbc&&e.xbc.cookie_value){var t={path:"/",expires:730};if(e.xbc.cookie_domain&&"localhost"!==e.xbc.cookie_domain&&(t.domain=e.xbc.cookie_domain,l(n,e.xbc.cookie_domain)),pn.cookieDomain||pn.cookiePath){var r=T();for(var o in r)u(n,r[o]);t.domain=pn.cookieDomain?pn.cookieDomain:t.domain,l(n,t.domain,t.path),t.path=pn.cookiePath?pn.cookiePath:t.path,l(n,t.domain,t.path)}u(n),J("composer",n,e.xbc.cookie_value,t)}},getTbcCookie:function(){return G("__tbc")},getPcidCookie:function(){return G("_pcid")},getTacCookie:K,getAidSpecifiedName:I,getUserTokenCookie:function(){var e=I("__ut"),n=d(e);return void 0!==n&&n&&n.length>=0?n:null},getPushListsCookie:S,setPushListsCookie:function(e){if(e){var n=I("__pls"),t=S()||[];t.indexOf(e)>-1||(t.push(e),u(n),J("composer",n,JSON.stringify(t),{path:"/",expires:730,domain:C()}))}},setAppTimezoneOffsetFromResponse:function(e){e&&e.browser&&void 0!==e.browser.app_timezone_offset?E(e.browser.app_timezone_offset):e&&void 0!==e.timezone_offset&&E(e.timezone_offset)},setAppTimezoneOffset:E,getAppTimezoneOffset:function(){return null==n&&(n=G("__pat")),n||0},getBrowserTimezoneOffset:function(){return-Math.round((new Date).getTimezoneOffset())},str2timestamp:function(e){if(void 0!==e&&0!==e.length){if("string"!=typeof e&&(e=""+e),(e=e.trim()).match(/^[0-9]{0,10}$/))return parseInt(e);if(e.match(/^[0-9]{13,}$/))return parseInt(e)/1e3;var n=Date.parse(e);if(n)return n/1e3;if((e=(e=(e=(e=e.replace(/00:([0-9]{2}(:[0-9]{2})?\s*[AP]M)/i,"12:$1").replace(/([0-9]{2})([AP|M])/i,"$1 $2")).replace(/\s*(at|@|\-|on|\|)\s*/gi," ")).replace(/\s*(mon(day)?|tue(s?day)?|wed(nesday)?|thu((rs)?day)?|fri(day)?|sat(urday)?|sun(day)?)\s*/gi,"")).replace(/([0-9]{1,2})(st|nd|rd|th)/,"$1")).match(/\s+ET$/))e=240===(new Date).getTimezoneOffset()?e.replace(/\s+ET$/," EDT"):e.replace(/\s+ET$/," EST");if(e=e.trim(),n=Date.parse(e))return n/1e3;var t=e.match(/!^([a-z]+)[-/ ]([0-9]+)[-/ ]([0-9]+)(.*)$!i/);if(t?e=t[2]+" "+t[1]+" "+t[3]+t[4]:(t=e.match(/!^([0-9]+)[-/ ]([a-z]+)[-/ ]([0-9]+)(.*)$!i/))&&(e=t[1]+" "+t[2]+" "+t[3]+t[4]),n=Date.parse(e))return n/1e3}},getPossibleCookieDomains:T,isMobileTabletIOs:function(){var e=M();return/iPad|iPhone|iPod/.test(e)&&!window.MSStream},isIphone:function(){var e=M();return/iPhone/.test(e)&&!window.MSStream},isIphone17OrHigher:function(){var e=M().match(/iPhone OS (\d{2})/);if(e){e[0];var n=e[1];return n&&Number(n)>=17}return!1},isIOS:function(){var e=M();return/iPad|iPhone|iPod/.test(e)&&!window.MSStream},isIOsUiWebView:function(){var e=M();return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e)},isSafariOrIOsUiWebView:function(){var e=M();return/(iPhone|iPod|iPad).*AppleWebKit/i.test(e)},isSafariOrUiWebView:function(){var e=M();return/(Macintosh|iPhone|iPod|iPad)(?!.*Chrome)(?!.*Firefox)(?!.*Opera)(?!.*MSIE)(?!.*Trident)(.*AppleWebKit|.*Safari)/i.test(e)},isFBOrInstWebView:function(){var e=M();return e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1||e.indexOf("Instagram")>-1},isChrome:function(){var e=window.chrome,n=window.navigator,t=n.vendor,r=void 0!==window.opr,o=n.userAgent.indexOf("Edg")>-1;return!n.userAgent.match("CriOS")&&(null!=e&&"Google Inc."===t&&!1===r&&!1===o)},isAndroid:function(){var e=M();return/(android)/i.test(e)},isSafari:B,isIE:function(){var e=-1!==(navigator&&navigator.appVersion||"").indexOf("MSIE"),n=(navigator&&navigator.userAgent||"").indexOf("Trident/")>0;return e||n},isCriOS:function(){return-1!==(navigator&&navigator.userAgent||"").indexOf("CriOS")},isEdge:function(){return/Edg(e?)/i.test(M())},isRelativeUrl:function(e){return/^\/(?:\w+|\.{1,2}\/\w+)/.test(e)},prepareUrlParameter:j,getReferrer:Z,getHostname:F,extractCookieDomain:function(e){if(e&&e.length&&"."===e[0])return e;var n=e||window.location.href,t=F(n);return function(e){var n=e.split("."),t=!0;return 4===n.length&&V(n[0])&&V(n[1])&&V(n[2])&&V(n[3])||(t=!1),t}(t)?t:"localhost"===t?null:"."+t},setCurrentDomainFromResponse:function(e){e&&void 0!==e.browser&&void 0!==e.browser.cookie_domain&&N("domainIsReceived",e.browser.cookie_domain),e&&e.tbc&&e.tbc.cookie_domain&&N("domainIsReceived",e.tbc.cookie_domain)},getCurrentDomainFromCookie:function(e,n){void 0===n&&(n=!1);try{return te(G(e),n).domain}catch(e){O("domainIsReceived")}},isBot:$,getAffiliateToken:function(e){var n=window.location.hash.slice(1);if(n){var t=n.split("="),r=t[0],o=t[1];r&&o&&r===e&&(b((function(e){return e.split("#")[0]})),s=o)}return s},removeAffiliateToken:function(){s=""},asUint8Array:function(e){for(var n=new Uint8Array(e.length),t=e.split(""),r=0;r<e.length;r++)n[r]=t[r].charCodeAt(0);return n},setUserSegments:function(e){var n=e.userSegments||{},t=Object.keys(n).reduce((function(e,t){var r=n[t].segments;return Array.isArray(r)&&r.length&&(e[t]={segments:n[t].segments}),e}),{});Mr.set("userSegments",Object.keys(t).length?t:null)},getPageViewContext:function(){var e=Mr.isReady&&Mr.get("content")||{},n=e.createdAt?new Date(e.createdAt).getTime():0;return(!n||isNaN(n))&&(n=void 0),{pageTitle:e.title||window.document.title,referrerUrl:j(Z()||window.document.referrer),url:j(window.location.href),pageViewId:Mr.isReady&&Mr.get("pageViewId")||null,author:(e.authors||[]).join(","),created:n,section:e.section,tags:e.tags,contentType:e.type||""}},getBrowserId:function(){return Mr.isReady?Mr.get("browserId"):null},getCookieConsents:function(){return Mr.utils.getConsent()||Mr.utils.notAcquiredConsent},getUserSegments:re,getUserSegmentsString:function(){return JSON.stringify(re())},getUserState:function(){return Mr.isReady?Mr.get("userStatus"):null},requireJsFile:function(e){return new Promise((function(n,t){var r=document.createElement("script");r.onload=n,r.onerror=n,r.type="text/javascript",r.charset="utf-8",r.async=!0,r.src=e,document.getElementsByTagName("head")[0].appendChild(r)}))}}}()}),pn.util=pn.container.resolve("util");var ao=function(e){for(var n=0,t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t),n|=0}return n},so=function(e,n){return(ao(e)^ao(n)).toString(36)},co=function(){return Math.floor(Date.now()/6e4)},uo="_pcfe",lo="{kjfx}",po=129600,fo=Ae.cookie.getTopLevelDomain(),mo=/{[a-z0-9-]{1,7}}/g,vo=function(e,n){var t,r={os:"",e:{},v:"1"},o={};r.os=e.originStamp.toString(36);for(var i=0,a=Object.entries(e.events);i<a.length;i++){for(var s=a[i],c=s[0],u=s[1],l={},d=0,p=Object.entries(u.timeOffsetsByType);d<p.length;d++){var f=p[d],m=f[0],v=f[1];Object.assign(l,((t={})[m]=v.map((function(e){return e.toString(36)})).join(","),t))}o[c]={to:l}}r.e=o;var g=JSON.stringify(r),h=g.length.toString(36),y=Mr.utils.compressLz(g);return"".concat(lo,"{").concat(h,"}{").concat(so(y,n),"}").concat(y)},go=function(e,n,t){var r,o=e.match(mo)||[];if(3!=o.length||o[0]!==lo)throw new Error("Malformed input, invalid headers");for(var i=0,a=o;i<a.length;i++){var s=a[i];e=e.replace(s,"")}var c=Number.parseInt(o[1].replace(/[{}]/g,""),36),u=so(e,n),l=o[2].replace(/[{}]/g,"");if(t("".concat(l," : ").concat(u)),u!=l)throw new Error("Malformed input, invalid checksum header");var d,p={originStamp:0,events:{},v:void 0},f={},m=[],v=Mr.utils.decompressLz(e);if(!v)throw new Error("Malformed input, cann't be decoded");if(v.length!=c)throw new Error("Malformed input, invalid size header");try{d=JSON.parse(v)}catch(e){throw new Error("Malformed input, invalid format")}var g=Number.parseInt(d.os,36),h=0,y=co(),w=y-g>po,_=!1;t("origin stamps: ".concat(g,", now: ").concat(y,", rebase required: ").concat(w));for(var b=0,k=Object.entries(d.e);b<k.length;b++){for(var C=k[b],I=C[0],S=C[1],E={},T=!1,P=0,x=Object.entries(S.to);P<x.length;P++){for(var A=x[P],O=A[0],N=A[1],M=g,R=new Int32Array(30),L=0,U=0,D=0,j=N.split(",");D<j.length;D++){var V=j[D];if(L>=30)break;var F=Number.parseInt(V,36),B=y-(M+=F);B>po||B<0?(t("".concat(I,":").concat(O,":").concat(F," event age is ").concat(B,", drop")),U+=F):(w&&0==L&&(F<h||0==h)&&(h=F+U),t("".concat(I,":").concat(O,":").concat(F," event age is ").concat(B,", keep")),R[L]=F+U,U=0,L++)}(H=Array.from(R.subarray(0,L))).length>0&&(T=!0,m.push(H),Object.assign(E,((r={})[O]=H,r)))}T&&(_=!0,f[I]={timeOffsetsByType:E})}if(w){for(var q=0,z=m;q<z.length;q++){var H;(H=z[q])[0]=H[0]-h}t("originStamp after rebase is ".concat(g+=h,", used global smallest offset is ").concat(h))}return _?(p.originStamp=g,p.events=f,p.v=d.v,p):null},ho={close_click:1,visible_impression:2},yo=Object.values(ho),wo=function(e,n,t,r,o){var i,a,s,c,u,l=t;if("number"!=typeof t&&(l=function(e){var n=parseInt(e,10);return isNaN(n)?ho[e]||0:n}(t)),!function(e){return yo.includes(e)}(l))return o('eventType: "'.concat(t,'" is unknown')),"";var d=function(e){return ao(e).toString(36)}(n),f=null;try{f=e?go(e,r,o):null}catch(e){o("Decode Error: "+e.message)}if(null===f)return vo({originStamp:co(),events:(i={},i[d]={timeOffsetsByType:(a={},a[l]=[0],a)},i)},r);var m=(null===(c=f.events[d])||void 0===c?void 0:c.timeOffsetsByType[l])||null;if(null==m)return Object.keys(f.events).length>=12?(console.warn("".concat(12," is max frequency actions count, events from ").concat(n," won't be recorded")),vo(f,r)):(f.events[d]=p(p({},f.events[d]),{timeOffsetsByType:p(p({},null===(u=f.events[d])||void 0===u?void 0:u.timeOffsetsByType),(s={},s[l]=[co()-f.originStamp],s))}),vo(f,r));var v=m.reduce((function(e,n){return e+n}),0);if(m.length>=30){var g=m.shift()||0;m[0]+=g}var h=co()-f.originStamp-v;return m.push(h<0?0:h),vo(f,r)},_o=function(){return pn.aid},bo=function(e,n){for(var t=0;t<e.length;t++)if(!n(e[t]))return!1;return!0},ko=function(){var e=function(e){var n=e.replace(/\+/g," ").replace(/^\s+|\s+$/g,"");try{return decodeURIComponent(n)}catch(e){return n}};return document.cookie.split(";").map((function(n){var t=n.split("="),r=t[0],o=t[1];return e(r)===uo?e(o):null})).filter((function(e){return!!e}))},Co=function(e,n){var t=p(p({},e),{events:p({},e.events)});return Object.entries(e.events).forEach((function(e){var r=e[0],o=e[1];Object.entries(o.timeOffsetsByType).forEach((function(e){var o,i=e[0],a=e[1],s=i,c=n(a.slice(),s,r);c&&(t.events[r]={timeOffsetsByType:p(p({},t.events[r].timeOffsetsByType),(o={},o[s]=c,o))})}))})),t},Io=function(e){var n=e.originStamp,t=Co(e,(function(e){return e.map((function(e){return n+=e}))}));return t.originStamp=0,t},So=function(e,n){if(tp.cookieDomain&&tp.cookiePath)return null;var t=new Date;t.setSeconds(t.getSeconds()+30);var r={expires:t,domain:tp.cookieDomain||fo,path:tp.cookiePath||"/"},o=ko(),i=new Map,a=b([""],location.pathname.replace(/\/[^\/]+$/,"").split("/").map((function(e){return e.trim()})).filter((function(e){return!!e})).reduce((function(e,n,t){return t?e.push("".concat(e[e.length-1],"/").concat(n)):e.push("/".concat(n)),e}),["/"]).reverse(),!0),s=b([""],e.slice(0,e.length),!0),c=null;tp.cookiePath&&(a=a.filter((function(e){return!e||e.length-tp.cookiePath.length>=-1}))),tp.cookieDomain&&(s=s.filter((function(e){return!e||e.length-tp.cookieDomain.length>=-1}))),bo(s,(function(e){return bo(a,(function(t){r.domain=e,r.path=t,n("remove cookie: ".concat(JSON.stringify(r))),Ae.cookie.remove(uo,r);var o=Ae.cookie.get(uo);if(!o)return!1;if(o){var a=i.get(o)||null;if(!i.has(o))try{a=go(o,_o(),n),i.set(o,a)}catch(e){}if(null!=a&&a.v)return c=Io(a),!1}return!0}))}));var u=ko(),l=o.slice(0,o.length-u.length),d=[];return l.forEach((function(e){i.has(e)&&d.push(Io(i.get(e)));try{var t=go(e,_o(),n);t&&d.push(Io(t))}catch(e){}})),!d.length||1===d.length&&!c?null:(d.forEach((function(e){c?Co(e,(function(t,r,o){var i=c.events[o];if(!i)return Object.keys(c.events).length>=12?void n('Frequency action with hashId "'.concat(o,'" was skipped when merging legacy values')):void(c.events[o]=e.events[o]);i.timeOffsetsByType[r]?n('Frequency action with hashId "'.concat(o,'" and eventType "').concat(r,'" was skipped when merging legacy values')):i.timeOffsetsByType[r]=t})):c=e})),function(e){var n=1/0,t=0,r=Co(e,(function(e){var t=e.sort((function(e,n){return e-n}));if(t.length>30){var r=t.length-30;t.splice(0,r)}return n=Math.min(n,t[0]),t}));t=n;var o=Co(r,(function(e){return e.map((function(e){var n=e-t;return t=e,n}))}));return o.originStamp=n,o}(c))},Eo="piano_frequency_event",To=function(){var e=!1,n={},t=function(e){var t,r=e.experience_Id,o=e.experience_action_Id,i=null===(t=n[r])||void 0===t?void 0:t[o];i&&i(e)};return{on:function(r,o,i){e||(pn.offer.registerCallback(Eo,t),pn.template.registerCallback(Eo,t),function(e){window.addEventListener("message",(function(n){try{var t=JSON.parse(n.data);(null==t?void 0:t.event_name)===Eo&&e(t)}catch(e){}}))}(t)),e=!0,n[r]||(n[r]={}),n[r][o]=i},off:function(){return n={}}}}();pn.container.register("frequencyEvent",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("util"),t={expires:90,domain:fo,path:"/"},r=function(e){n.debug("PCFE: "+e)},o=function(){return pn.aid},i=function(){return n.__protected__.getCookie(uo)},a=function(e){!e||(pn.cookieDomain&&(t.domain=pn.cookieDomain),pn.cookiePath&&(t.path=pn.cookiePath),n.__protected__.setCookieConsent("composer",uo,e,t))},s=function(){pn.cookieDomain&&(t.domain=pn.cookieDomain),pn.cookiePath&&(t.path=pn.cookiePath),n.deleteCookie(uo,t.domain,t.path)};return{__protected__:{applyToParams:function(e){var t=function(){var e=i();if(!e)return null;var t=null;try{(t=go(e,o(),r))&&!t.v&&(r("migrate pcfe value"),(t=So(n.getPossibleCookieDomains(),r)||t).v="1")}catch(e){return r("Decode Error: "+e.message),s(),null}if(!t)return s(),null;var c=vo(t,o());return a(c),c}();return t&&(e.frequency=t),e},registerEvent:function(e){To.off(),e.result.events.forEach((function(e){var n,t,s,c;if(null!==(t=null===(n=e.eventExecutionContext)||void 0===n?void 0:n.frequency)&&void 0!==t&&t.track){var u=(null===(s=e.eventExecutionContext)||void 0===s?void 0:s.experienceId)||"noId",l=(null===(c=e.eventModuleParams)||void 0===c?void 0:c.moduleId)||"noId";To.on(u,l,(function(e){var n=wo(i(),e.experience_action_Id,e.event_type,o(),r);a(n)}))}}))}}}}()}),pn.frequencyEvent=pn.container.resolve("frequencyEvent");var Po="composer-control-policy",xo="composer-request-control-policy",Ao=["deny-fbia","deny-web","deny-all","deny-template-interaction"],Oo=function(e){var n={},t=e;if(e){if("object"!=_typeof(e))try{t=JSON.parse(e)}catch(e){}n=Ao.reduce((function(e,n){return t[n]&&(e[n]=t[n]),e}),{})}return n},No=function(e){var n=!1,t=Object.keys(e).reduce((function(t,r){return function(e){return!!e&&Math.ceil(Date.now()/1e3)<=e}(e[r])?t[r]=e[r]:n=!0,t}),{});return{needToRemove:!Object.keys(t).length,needToUpdate:n,newValue:t}};pn.container.register("composerControlPolicy",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("localStorage"),t=Oo(n.get(Po)),r=function(e){var r=No(t),o=r.needToUpdate,i=r.needToRemove,a=r.newValue;t=p(p({},a),e),(o||e)&&n.set(Po,JSON.stringify(t)),!e&&i&&n.remove(Po)};r();var o=function(e){return r(),!!t["deny-all"]||!!t[e]};return{get denyFbia(){return o("deny-fbia")},get denyWeb(){return o("deny-web")},get denyAll(){return o("deny-all")},get denyTI(){return o("deny-template-interaction")},__private__:{setPolicyByRequest:function(e){var n;if(e.getAllResponseHeaders().includes(xo)){var t=e.getResponseHeader(xo);t&&r(((n={})[t]=function(e){return void 0===e&&(e=15),Math.ceil(Date.now()/1e3)+60*e}(),n))}},checkLS:function(){t=Oo(n.get(Po))}}}}()}),pn.composerControlPolicy=pn.container.resolve("composerControlPolicy");var Mo=function(){pn.container.resolve("jqUtils");var e,n=pn.container.resolve("util"),t=pn.container.resolve("ajax"),r=n.findCookieByName(/__TP_*/);if(void 0!==window._tpm&&void 0!==window._tpm.paywallID){var o=window._tpm.paywallID;e=n.__protected__.getCookie("umc_"+o)}var i=function(){return pn.getApiEndpoint()},a=function(t,o){var i=n.__protected__.getCookie("__tac");(void 0===t||!t)&&(t={}),t.aid=pn.aid,e&&(t.umc=e),r&&(t.tp_access_token_v2=r),i&&(t.tac=i),!t.user_provider&&o&&!o.isv&&(t.user_provider=o.getName()),(void 0===t.user_token||!t.user_token)&&o&&!o.isv&&(t.user_token="string"==typeof o.getToken()?o.getToken():"");var a=n.getAffiliateToken(pn.affiliateTokenName);a&&(t.affiliate_token=a)};function s(e,r,o,s,c,u){var l;n.debug("Calling API method: "+e),l=void 0!==s?s:i(),l+=e,(void 0===r||!r)&&(r={});var d,f,m=n.getTbcCookie();m&&(r.tbc=m),pn.user&&(d=pn.user.getProvider()),a(r,d),f=function(e){n.debug("API Response",e),e&&(n.setTbcCookieFromResponse(e),n.setAppTimezoneOffsetFromResponse(e),n.setCurrentDomainFromResponse(e)),void 0!==o&&o(e)};var v=function(e){var n="/access/list",t="/access/check";if(e!==n&&e!==t&&"/user/access/list"!==e&&"/user/access/check.jwt"!==e)return null;var r=Math.floor((new Date).getTime()/1e3);return e===n?{code:0,count:0,data:[],limit:0,offset:0,total:0,ts:r}:e===t?{code:0,ts:1548942314,access:{access_id:null,parent_access_id:null,granted:!1,resource:null,user:null,expire_date:r}}:{code:403,ts:r,message:"User doesn't have permission to call this method"}}(e);if(null===v||pn.user.getProvider().isUserValid()){!function(e){!pn.isDoubleOptInCheckOnAccessCheckEnabled||"/access/check"===e&&pn.doubleOptIn.check()}(e);var g=r.aid,h=p({},r);delete h.aid;var y={type:null!=u?u:"POST",dataType:"json",data:h};l+="?aid="+g,y.url=l,c&&(y.async=!1),y.success=function(e){f(e)},y.error=function(e){var t={code:503,message:"Error: Received error when requesting API response from URL: "+l};n.log(t.message),f(t)},t.request(y)}else f(v)}return{name:"api",callApi:function(e,n,t,r,o,i){return s(e,n,t,r,o,i)},getEndpoint:function(){return i()},getCallParams:function(e,n){return a(e,n)}}}();pn.container.register("api",{useValue:Mo}),pn.api=pn.container.resolve("api");var Ro=function(){var e,n,t,r,o,i,a,s,c,u,l,d=pn.container.resolve("jqUtils"),p=pn.container.resolve("util"),f={},m={},v=[],g={},h=(e={},i=1,a=window,s=!1,u="addEventListener",l=a[c="postMessage"],e[c]=function(e,n,t){!n||(e="string"==typeof e?e:d.param(e),t=t||parent,l?t[c](e,n.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):n&&(t.location=n.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+e))},e.receiveMessage=o=function(e,i,c){l?(e&&(r&&o(),r=function(n){if("string"==typeof i&&n.origin!==i||d.isFunction(i)&&i(n.origin)===s)return s;e(n)}),a[u]?a[e?u:"removeEventListener"]("message",r,s):a[e?"attachEvent":"detachEvent"]("onmessage",r)):(n&&clearInterval(n),n=null,e&&(c="number"==typeof i?i:"number"==typeof c?c:100,n=setInterval((function(){var n=document.location.hash,r=/^#?\d+&/;n!==t&&r.test(n)&&(t=n,e({data:n.replace(r,"")}))}),c)))},e),y=function(e,n){var t={},r={true:!0,false:!1,null:null};return e.replace(/\+/g," ").split("&").forEach((function(e,o){var i=o.split("="),a="";try{a=decodeURIComponent(i[0])}catch(e){return}var s,c=t,u=0,l=a.split("]["),d=l.length-1;if(/\[/.test(l[0])&&/\]$/.test(l[d])?(l[d]=l[d].replace(/\]$/,""),d=(l=l.shift().split("[").concat(l)).length-1):d=0,2===i.length)if(s=decodeURIComponent(i[1]),n&&(s=s&&!isNaN(s)?+s:"undefined"===s?void 0:void 0!==r[s]?r[s]:s),d)for(;u<=d;u++)c=c[a=""===l[u]?c.length:l[u]]=u<d?c[a]||(l[u+1]&&isNaN(l[u+1])?{}:[]):s;else Array.isArray(t[a])?t[a].push(s):void 0!==t[a]?t[a]=[t[a],s]:t[a]=s;else a&&(t[a]=n?void 0:"")})),t};var w=function(e,n,t){t&&C(t)&&!(t in m)?p.error("Cannot send message to unmanaged iframe: "+t):t&&m[t].element&&("popup"===m[t].config.displayMode||"popup"!==m[t].config.displayMode&&m[t].element.contentWindow?_(e,n,t):(v.push({event:e,params:n,recipient:t}),d.on(m[t].element,"load",function(e){return function(){var n=v.filter((function(n){return n.recipient===e}));v=v.filter((function(n){return n.recipient!==e}));for(var t=n.length;t--;){var r=n.pop();_(r.event,r.params,r.recipient)}}}(t))))},_=function(e,n,t){var r,o={},i="popup"===m[t].config.displayMode?"opener":"parent";o.sender=C(t)?i:t,o.recipient=C(t)?t:i,o.event=e,o.params=n;var a=m[t].element;r="popup"===m[t].config.displayMode?m[t].container:a&&a.contentWindow?a.contentWindow:a&&"[object Window]"===a.toString()?m[t].element:window[i],h.postMessage(JSON.stringify(o),f[t].postMessageUrl,r)};var b=function(e){f[e.iframeId]={iframeConfig:null,receive:null,postMessageUrl:null,initializedListener:!1,initializedKeystrokeHandler:!1},m[e.iframeId]=e},k=function(e){return!(!f[e]||!f[e].iframeConfig)},C=function(e){return!(f[e]&&f[e].iframeConfig)},I=function(e){var n=S(e);return n.showCloseButton&&"inline"!==n.displayMode},S=function(e){var n=f[e],t=n&&n.iframeConfig&&n.iframeConfig.iframe;return t&&t.config};function E(e){var n,t,r=!1;try{n=JSON.parse(e.data)}catch(t){try{(n=y(e.data))&&(r=!0)}catch(n){return void p.debug("Error parsing postMessage: "+e.data)}}if(T(n),r){var o;for(var i in m)(t=m[i]).config.isCurtain&&(o=!0,t.config.parent&&f[t.config.parent].receive&&f[t.config.parent].receive(n),f[i].receive&&f[i].receive(n));o||p.debug("Error parsing postMessage: "+e.data)}else if(!C(n.sender)||n.sender&&n.sender in m){if(p.debug((k(n.sender)?"iframe("+n.recipient:"the parent")+") received event '"+n.event+"' from iframe("+n.sender+")",n),f[n.sender].receive&&f[n.sender].receive(n),m[n.sender]&&((t=m[n.sender]).config.parent&&f[t.config.parent].receive)){n.sender=t.config.parent,f[t.config.parent].receive(n,!0)}}else p.debug("Received message from unmanaged iframe: "+n.sender)}var T=function(e){(g[e.event]||[]).forEach((function(n){n(e)}))};return{name:"postmessage",init:function(e,n){if(b(e.iframe),e.postMessageUrl){if(e.iframe.iframeId){f[e.iframe.iframeId].initializedKeystrokeHandler||(f[e.iframe.iframeId].initializedKeystrokeHandler=!0,d.delegate(window,"#".concat(e.iframe.iframeId),"keyup",(function(e){return function(e){27===e.keyCode&&k(e.data.iframeId)&&I(e.data.iframeId)&&w("close",null,e.data.iframeId)}(e)}))),f[e.iframe.iframeId].postMessageUrl=e.postMessageUrl,f[e.iframe.iframeId].initializedListener||(f[e.iframe.iframeId].initializedListener=!0,f[e.iframe.iframeId].receive=e.receive,h.receiveMessage(E)),f[e.iframe.iframeId].iframeConfig=e;var t=n||{};t.height=document.documentElement.offsetHeight,t.width=e.iframeParams&&e.iframeParams.width?e.iframeParams.width:document.documentElement.offsetWidth,w("loaded",t,e.iframe.iframeId)}}else p.error("Must specify postMessageUrl to send and receive postMessages")},__protected__:{isIframeManaged:function(e){var n=m[e];return n&&C(n)}},send:w,removeIframe:function(e){delete m[e],delete f[e]},broadcast:function(e,n,t){for(var r in m)m.hasOwnProperty(r)&&r===t||w(e,n,r)},subscribe:function(e,n){g[e]=g[e]||[],g[e].push(n)},unsubscribe:function(e,n){g[e]instanceof Array&&(g[e]=g[e].filter((function(e){return e!==n})))}}}();pn.container.register("postmessage",{useValue:Ro}),pn.postmessage=pn.container.resolve("postmessage");var Lo=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("postmessage");return{name:"eventUtils",createEventManager:function(r){var o,i={};for(o=0;o<r.length;o++)i[r[o]]=[];var a={addEvent:function(e){void 0===i[e]&&(i[e]=[])},hasIframeCallback:function(e,n){var t,r;if(i[e]&&i[e].length>0)for(r=0,null,t=null;r<i[e].length;++r)if("object"==_typeof(t=i[e][r])&&n===t.iframeId)return!0;return!1},hasCallback:function(e){return i[e]&&i[e].length>0},registerCallback:function(e,t){var r,o,a,s="string"==typeof e?e:null,c="object"==_typeof(e)?e:null;if(s){if(r="function"==typeof t?t:null,void 0===i[s])return;i[s].push(r)}if(c)for(a in o="string"==typeof t?t:null,i)"function"==typeof c[a]&&(n.debug("Registering "+a+" callback for iframe "+o),i[a].push({iframeId:o,callback:c[a]}))},fireCallbacks:function(e,n,t,r){return a.fire(t,e,r,n)},fire:function(r,o,a,s,c,u){var l,d,p,f=!1,m=[];s&&m.push(s),c&&m.push(c),u&&m.push(u);var v=s&&s.resultCallbackId,g=function(t){if(a)try{if(m.length>1)return d.apply(null,m);if("loginRequired"===o){var i=e.deepExtend({},t.term);return delete t.term,d(t,r,i)}return d(t,r)}catch(e){n.debug(e)}};if(void 0!==i[o]){for(p=0,l=null,d=null;p<i[o].length;++p){if("function"==typeof(d=i[o][p]))n.debug("firing callback for event '"+o+"' from iframe("+r+")"),l=g(s),f=!0;else if("object"==_typeof(d)){if(r!==d.iframeId)continue;n.debug("firing callback for event '"+o+"' from iframe("+r+")"),d=d.callback,l=g(s),f=!0}v&&(s.result=l,s.event=o,t.send("resultCallback",s,r))}return!f&&v&&(s.callbackNotFound=!0,s.event=o,t.send("resultCallback",s,r)),l}},fireCallbacksAndStopOnFirstFalse:function(e,t,r,o){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];if(void 0===i[e])return!0;for(var c=!0,u=0;u<i[e].length;u++){var l=i[e][u];if("function"==typeof l){n.debug("firing callback for event '"+e+"'");try{var d=[];if(d.push(t),d.push(r),d.push(o),d=d.concat([].slice.call(a)),!1===l.apply(null,d)){n.debug("callback for event '"+e+"' returned false"),c=!1;break}}catch(t){n.debug("firing callback for event '"+e+"' failed",t)}}}return c}};return a}}}();pn.container.register("eventUtils",{useValue:Lo}),pn.eventUtils=pn.container.resolve("eventUtils");var Uo=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("api"),t=pn.container.resolve("eventUtils"),r=pn.container.resolve("localStorage"),o=t.createEventManager(["userChanged","logout"]),i="janrain",a=function(){return e.getUserTokenCookie()},s=function(){var e=a();return!!(void 0!==e&&e&&e.length>=0)},c=!1,u=!1,l={onCaptureSessionCreated:[]},d={loginRequiredScreen:"signIn",appName:null,appId:null,clientId:null,settings:null,disableLogout:!1,startCapture:!1},p={register:"traditionalRegistration",login:"signIn"};var f=function(e){return e&&p.hasOwnProperty(e.startScreen)?p[e.startScreen]:d.loginRequiredScreen};var m=function(){d.disableLogout||e.setAccessTokenListCookie(void 0,void 0,!0)},v=!0,g=function(){var e=window.janrain;return e&&e.capture&&e.capture.ui&&e.capture.ui.hasActiveSession()};function h(){e.log("JANRAIN:","Processing janrain user"),v?v=!1:e.startCall("refreshUserToken"),e.log("JANRAIN:","hasActiveSession:"+g());var t=y();if(!g())return e.log("JANRAIN:","No token found. Done processing user"),m(),void e.doneCall("refreshUserToken");if(s())return e.log("JANRAIN:","Using __ut. Done processing user"),void e.doneCall("refreshUserToken");var r={janrain_capture_token:t,url:e.prepareUrlParameter(window.location.href)};n.callApi("/anon/janrain/verifyAccountInfo",r,(function(n){if(n&&n.access)try{e.log("JANRAIN:","Verify success. Done processing user"),e.setAccessTokenListCookie(n.access.access_token,n.access.user_token);var t={access_token:n.access.access_token,user_token:n.access.user_token};n.access.user&&(t.user={uid:n.access.user.uid,email:n.access.user.email,firstName:n.access.user.first_name,lastName:n.access.user.last_name,valid:n.access.user.valid}),function(e,n){if(void 0!==l[e]&&0!==l[e].length)for(var t=0;t<l[e].length;++t)l[e][t].apply(null,arguments)}("onCaptureSessionCreated",t),o.fireCallbacks("userChanged",t,void 0,!0)}finally{e.doneCall("refreshUserToken")}else e.log("JANRAIN:","Verify failed")}))}var y=function(){return r.get("janrainCaptureToken")},w=function(){var n=window.janrain;n.events.onProviderLogoutComplete.addHandler((function(){m()})),n.events.onCaptureSessionEnded.addHandler((function(n){e.log("JANRAIN: Events received for logout",n),m()})),_()},_=function(){if(g())return e.log("JANRAIN:","Found early active session via function"),void h();if(!g()&&!s()&&!y())return e.log("JANRAIN:","not found __ut cookie and janrain token"),void h();var n=!1,t=window.janrain;t.events.onCaptureSessionFound.addHandler((function(t){b()?n&&(e.log("JANRAIN: Events received for logged in user",t),h()):h()})),t.events.onCaptureSessionNotFound.addHandler((function(t){b()?n&&(e.log("JANRAIN: Events received for logged out user",t),h()):h()})),t.events.onCaptureFederateNoLogin.addHandler((function(e){n=e})),t.events.onCaptureFederateLogin.addHandler((function(n){e.log("JANRAIN: Events received for SSO login",n),h()}))},b=function(){var e=window.janrain;return e&&e.settings&&e.settings.capture&&e.settings.capture.federate};function k(e,n){if(!c)throw"Janrain is not configured";var t=0;!function r(){var o=window.janrain;if(u)o.events[e].addHandler((function(e){n(e)}));else{if(t>100)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}()}return{name:i,isv:!1,init:function(n){if(!c){if(!n.appName||!n.appId||!n.clientId)throw"Must specify appName, appId, and clientId to initialize janrain";for(var t in d)void 0!==n[t]&&(d[t]=n[t]);if(n.settings&&(d.settings=n.settings),n.loginRequiredScreen&&(d.loginRequiredScreen=n.loginRequiredScreen),d.settings){"object"!=_typeof(window.janrain)&&(window.janrain={}),"object"!=_typeof(window.janrain.settings)&&(window.janrain.settings={});var r=window.janrain;r.settings=d.settings,"object"!=_typeof(window.janrain.settings.capture)&&(window.janrain.settings.capture={}),r.settings.appUrl="https://"+d.appName+".rpxnow.com",r.settings.capture.captureServer="https://"+d.appName+".janraincapture.com",r.settings.capture.appId=d.appId,r.settings.capture.clientId=d.clientId;var o,i=d.appName.replace(/\./g,"-"),a="http://widget-cdn.rpxnow.com/load/"+i,s="https://rpxnow.com/load/"+i;o=e.__protected__.isHttpsProtocol()?s:a,pn.push(["addExternalLibrary",o,function(){r.ready=!0}])}e.log("JANRAIN:","start refresh user token"),e.startCall("refreshUserToken",3e4),e.waitCall("refreshUserToken",(function(){e.log("JANRAIN:","end refresh user token")})),function(){var n=100,t=0;function r(){var o=window.janrain;if(window.janrain&&window.janrain.ready&&window.janrain.capture&&window.janrain.capture.ui&&window.janrain.capture.ui.hasActiveSession)(function(){var n=window.janrain,t=function(t){n.events[t].addHandler((function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.log("JANRAIN: ",t,n)}))};pn.debug&&n.events.captureEvents.forEach(t)})(),w(),d.startCapture&&o.capture.ui.start(),u=!0;else{if(t>n)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}r()}(),c=!0,pn.zIndexes={backdrop:900,modal:950,close:990};var l=function(n){e.log("JANRAIN: onLogin"),window.janrain.capture.ui.modal.close(),h()};k("onCaptureLoginSuccess",l),k("onCaptureRegistrationSuccess",l)}},isUserValid:s,getToken:a,getName:function(){return i},onLoginSuccess:function(n){e.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token)},login:function(e,n){if(!c)throw"Janrain is not configured";var t=0;!function r(){if(u)try{window.janrain.capture.ui.renderScreen(f(n)),"function"==typeof e&&function(e,n){l[e]=[],l[e].push(n)}("onCaptureSessionCreated",e)}catch(e){return t++,void window.setTimeout(r,100)}else{if(t>100)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}()},logout:function(e){if(!c)throw"Janrain is not configured";var n=100,t=0,r=0;function i(){r>n?e():g()?(r++,window.setTimeout(i,100)):e()}m(),function r(){if(u){var a=window.janrain;a.capture.ui.modal.close(),a.capture.ui.endCaptureSession(),o.fireCallbacks("logout",null,void 0,!0),e&&i()}else{if(t>n)throw"Janrain is not initialized";t++,window.setTimeout(r,100)}}()},isConfigured:function(){return c},getLoginRequiredScreen:f,addEventHandler:k,registerCallback:function(e,n){o.addEvent(e),o.registerCallback(e,(function(e){n(e)}))}}}();pn.container.register("janrain",{useValue:Uo}),pn.janrain=pn.container.resolve("janrain");var Do={name:"sha1",hash:function(e,n){function t(e,n){return e<<n|e>>>32-n}function r(e){var n,t="";for(n=7;n>=0;n--)t+=(e>>>4*n&15).toString(16);return t}n=n||32;var o,i,a,s,c,u,l,d,p,f=new Array(80),m=1732584193,v=4023233417,g=2562383102,h=271733878,y=3285377520;e=function(e){e=e.replace(/\r\n/g,"\n");for(var n="",t=0;t<e.length;t++){var r=e.charCodeAt(t);r<128?n+=String.fromCharCode(r):r>127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e);var w=e.length,_=new Array;for(i=0;i<w-3;i+=4)a=e.charCodeAt(i)<<24|e.charCodeAt(i+1)<<16|e.charCodeAt(i+2)<<8|e.charCodeAt(i+3),_.push(a);switch(w%4){case 0:i=2147483648;break;case 1:i=e.charCodeAt(w-1)<<24|8388608;break;case 2:i=e.charCodeAt(w-2)<<24|e.charCodeAt(w-1)<<16|32768;break;case 3:i=e.charCodeAt(w-3)<<24|e.charCodeAt(w-2)<<16|e.charCodeAt(w-1)<<8|128}for(_.push(i);_.length%16!=14;)_.push(0);for(_.push(w>>>29),_.push(w<<3&4294967295),o=0;o<_.length;o+=16){for(i=0;i<16;i++)f[i]=_[o+i];for(i=16;i<=79;i++)f[i]=t(f[i-3]^f[i-8]^f[i-14]^f[i-16],1);for(s=m,c=v,u=g,l=h,d=y,i=0;i<=19;i++)p=t(s,5)+(c&u|~c&l)+d+f[i]+1518500249&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;for(i=20;i<=39;i++)p=t(s,5)+(c^u^l)+d+f[i]+1859775393&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;for(i=40;i<=59;i++)p=t(s,5)+(c&u|c&l|u&l)+d+f[i]+2400959708&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;for(i=60;i<=79;i++)p=t(s,5)+(c^u^l)+d+f[i]+3395469782&4294967295,d=l,l=u,u=t(c,30),c=s,s=p;m=m+s&4294967295,v=v+c&4294967295,g=g+u&4294967295,h=h+l&4294967295,y=y+d&4294967295}return(p=r(m)+r(v)+r(g)+r(h)+r(y)).toLowerCase().slice(0,n)}};pn.sha1=Do,pn.container.register("sha1",{useValue:Do});var jo=function(){function e(e,n){this._isActive=!1,this.targets=[],this.timeout=200,this.util=n,this.callback=e}return e.prototype._mutationSearch=function(){var e=this;this.targets.forEach((function(n){var t=e._getState(n.element);!t===n.currentState&&(n.currentState=t,e.callback([{target:n.element}]))})),this._isActive&&setTimeout(this._mutationSearch.bind(this),this.timeout)},e.prototype._getState=function(e){var n=[].slice.call(e.attributes).reduce((function(n,t){return n[t.name]=e.getAttribute(t.name),n}),{});return JSON.stringify(n)},e.prototype.observe=function(e){this.targets.push({id:this.util.randomString(),element:e,currentState:this._getState(e)}),this._isActive||(this._isActive=!0,this._mutationSearch())},e.prototype.disconnect=function(){this._isActive=!1,this.targets=[]},e}(),Vo=function(){pn.container.resolve("jqUtils");var e=pn.container.resolve("util"),n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,t={attributes:!0};return{name:"observer",create:function(r,o){r||e.error("element must be NODE");var i=new(n||jo)((function(e){var n=e.map((function(e){return e.target}));return"function"==typeof o&&o(n)}),e);return i.observe(r,t),i}}}();pn.container.register("observer",{useValue:Vo}),pn.observer=pn.container.resolve("observer");var Fo,Bo,qo=function(){var e,n,t,r=pn.container.resolve("jqUtils"),o=pn.container.resolve("util"),i=pn.container.resolve("postmessage"),a=pn.container.resolve("eventUtils"),s=pn.container.resolve("sha1"),c={},u={},l=a.createEventManager(["close"]),d="tp-container-inner",p=new Map,f={continuation:!0},m=[],v="tp-modal-overscroll-prevented",g="tp-scroll-prevented",h="tp-body-scroll-prevented",y={_initialScrollPosition:{x:0,y:0},applyFix:function(){var e=window.visualViewport?Math.max(window.scrollY,document.documentElement.scrollTop,window.visualViewport.pageTop):Math.max(window.scrollY,document.documentElement.scrollTop);this.saveInitialScroll(window.scrollX,e),t&&(!o.isIphone17OrHigher()&&C(),_(),w(t,v))},removeFix:function(){document.querySelectorAll(".tp-iframe-wrapper.tp-active").length||(this._scrollBack(),n&&(n.disconnect(),n=null),k())},_scrollBack:function(){(this._initialScrollPosition.y||this._initialScrollPosition.x)&&I(this._initialScrollPosition.x,this._initialScrollPosition.y)},saveInitialScroll:function(e,n){this._initialScrollPosition.x=e,this._initialScrollPosition.y=n},modalOpened:function(){this.applyFix()},modalClosed:function(){this.removeFix()}},w=function(e,n){e.classList.add(n)},_=function(){w(document.documentElement,g),w(document.body,h)},b=function(e){document.querySelectorAll(".".concat(e)).forEach((function(n){n.classList.remove(e)}))},k=function(){b(g),b(h)},C=function(){var e=document.querySelectorAll(".tp-iframe-wrapper"),t=e[e.length-1];(n=new MutationObserver((function(e,n){for(var t=0,r=e;t<r.length;t++){var o=r[t];"attributes"===o.type&&"style"===o.attributeName&&I(0,0)}}))).observe(t,{attributes:!0,childList:!0,subtree:!0})},I=function(e,n){function t(e){return/\{\s*\[native code\]\s*\}/.test(""+e)}try{if(t(window.scrollTo))return void window.scrollTo(e,n);if(t(window.scroll))return void window.scroll(e,n);document.body&&(document.body.scrollTop=0)}catch(e){console.warn("Can not perform scroll: "+e.message)}};r.on(window,"resize",(function(){var e;if($(),o.isAndroid()){var n=null===(e=document.querySelector(".tp-iframe-wrapper.tp-active"))||void 0===e?void 0:e.closest(".tp-modal");n&&n.scrollBy(0,1)}})),o.isIOS()&&r.on(window,"orientationchange",(function(){setTimeout((function(){return $()}),100)})),i.subscribe("close",(function(){y.modalClosed()})),i.subscribe("toggleIframeShadow",(function(e){T(e.params.isEnabled)})),i.subscribe("toggleLoadingContainer",(function(e){if(e.params.isEnabled)return ne();te()}));var S,E,T=function(e){var n=document.querySelector(".tp-iframe-wrapper");if(n){if(e)return n.classList.contains("no-shadow")&&n.classList.remove("no-shadow");n.classList.add("no-shadow")}},P=function(e){(function(e){i.send("checkProccessesForClose",{},e.iframeId)})(e),"popup"===e.config.displayMode?e.container.close():(function(e){if(o.debug("Removing iframe",e),e.element&&(r.hide(e.element),"inline"===e.config.displayMode)){var n=e.element.parentElement;n&&r.hide(n)}e.resizeObserver&&e.resizeObserver.disconnect(),("modal"===e.config.displayMode||"inline"===e.config.displayMode)&&(e.waitFinishProcesses=!0)}(e),L(),D())},x=function(){for(var e in c){var n=c[e];if("modal"===n.config.displayMode&&!n.waitFinishProcesses&&!n.config.isPreload)return!0}return!1},A=function(e){var n=document.createElement("form"),t={id:"form_"+e.iframeId,method:"post",action:e.iframeSrc,target:e.iframeId};return r.setAttrs(t,n),[{name:"userToken",value:e.userToken}].forEach((function(e){var t=document.createElement("input"),o={type:"hidden",name:e.name};r.setAttrs(o,t),t.value=e.value,r.append(n,t)})),n},O=function(e){return c[e]},N=function(){function e(e,n,t){this.$=e,this._operationWithContainer=t,this.util=n,this._initModalContainer(),this.iOSBottomToolbarHeight=90}return e.prototype._initModalContainer=function(){var e=this;return this.container||(this.container=document.createElement("div"),this.element=this.container,this.$.addClass("tp-modal",this.container),this.close=document.createElement("button"),this.$.setAttr("type","button",this.close),this.$.setAttr("aria-label","Close",this.close),this.$.addClass("tp-close",this.close),this.iframeWrapper=document.createElement("div"),this.$.addClass("tp-iframe-wrapper",this.iframeWrapper),this.$.append(this.iframeWrapper,this.close),this.container.style.zIndex=pn.zIndexes.modal+"",this.close.style.zIndex=pn.zIndexes.close+"",this.$.on(this.close,"click",(function(){"function"==typeof e.closeClick&&e.closeClick()})),this.util.isIOS()&&!this.util.isFBOrInstWebView()&&(this.iframeWrapper.style.marginBottom="".concat(this.iOSBottomToolbarHeight,"px")),this.$.append(this.container,this.iframeWrapper),this._operationWithContainer("body",(function(n){e.$.append(n,e.container)}))),this.container},e.prototype.getContainer=function(e,n){return this._initModalContainer(),this.closeClick=n,void 0===e&&(e=!0),e?this.showCloseButton():this.hideCloseButton(),this.iframeWrapper},e.prototype.show=function(e){this._initModalContainer(),void 0===e&&(e=!0),e?this.showCloseButton():this.hideCloseButton(),this.$.addClass("tp-active",this.container)},e.prototype.hide=function(){this._initModalContainer(),this.$.removeClass("tp-active",this.container)},e.prototype.showCloseButton=function(){this._initModalContainer(),this.$.addClass("tp-active",this.close)},e.prototype.hideCloseButton=function(){this._initModalContainer(),this.$.removeClass("tp-active",this.close)},e}(),M=function(e,n,t){for(var r in o.debug("Search container to close",e,n,t),c){var i=c[r];e&&r!==e||t&&"inline"===i.config.displayMode||t&&i.config.isPreload||("modal"===i.config.displayMode&&R(i),P(i))}l.fireCallbacks("close",null,e,!0)},R=function(e){var n=m.shift();S&&!n&&r.removeClass("tp-active",S),e.iframeParams.shown=!1,r.removeClass("tp-active",e.container),n?(r.hide(t),t=n,r.show(t)):(L(),D())},L=function(){!t||(q("body",(function(e){r.addClass("tp-modal-close",e),r.removeClass("tp-modal-open",e),e.classList.contains("body-fixed")&&r.removeClass("body-fixed",e)})),r.hide(t))},U=function(e,n,i){if(function(){if(S)return S;var e=document.createElement("div");r.addClass("tp-backdrop",e),e.style.zIndex=pn.zIndexes.backdrop+"",q("body",(function(n){r.append(n,e)})),S=e}(),r.visible(S)){var a=r.qa(".tp-modal").find((function(e){return r.visible(e)}));n&&!i?(a&&(r.hide(a),m.unshift(a)),e&&r.show(e)):n&&(a?(e&&m.push(e),t=a):e&&r.show(e))}else r.show(S),e&&function(e){r.visible(e)||(q("body",(function(e){r.removeClass("tp-modal-close",e),r.addClass("tp-modal-open",e)})),r.show(e),(o.isIphone()||o.isSafariOrIOsUiWebView()||o.isAndroid())&&y.modalOpened())}(e),E=window.setTimeout((function(){r.addClass("tp-active",S)}),50)},D=function(){S&&(r.removeClass("tp-active",S),r.hide(S),clearTimeout(E)),y.modalClosed()},j=function(e){S&&(S.style.height="100%");var n=r.queryEl(".tp-close",e);n&&r.removeClass("tp-square",n)},V=function(e,n){if(e){K(e.element,n);var t=Object.assign({},n,{animate:!1});switch(e.config.displayMode){case"modal":K(e.container,t),q("body",(function(e){r.addClass("tp-modal-resizing",e),setTimeout((function(){r.removeClass("tp-modal-resizing",e)}),50)}));break;case"inline":var o=r.queryEl("."+d,e.container);o&&K(o,n)}}},F=function(e,n,o){var i=e.container,a=i.parentElement;a&&a.classList.contains("tp-modal")?t=a:a=t,e.iframeParams=e.iframeParams||{},e.iframeParams.shown||(e.iframeParams.shown=!0,U(a,n,o),o||(i.classList.contains("tp-active")||r.addClass("tp-active",i),j(i)))},B={},q=function e(n,t){var o=r.queryEl(n);B[n]||(B[n]=0),o?(delete B[n],t(o)):B[n]<100&&(B[n]+=1,setTimeout((function(){e(n,t)}),50))},z=function(e,n){if(void 0===e.showCloseButton&&(e.showCloseButton=!0),e.container)return e.container;var i=new N(r,o,q);return e.isPreload||(t=i.element),i.getContainer(e.showCloseButton,n)},H=function(e){var n={container:null,containerReady:!1};if(!e.iframeParams.containerSelector)return o.log("Inline offer must have a valid containerSelector"),n;if(n.container=e.singleContainer||r.queryEl(e.iframeParams.containerSelector),!n.container)return o.log("Invalid containerSelector"),n;var t=e.config,i="object"==_typeof(t)&&null!==t;return r.empty(n.container),i?!!t.preview||(e.iframeParams.width=r.getWidth(n.container)):e.iframeParams.width=e.iframeParams.width||r.getWidth(n.container),n.containerReady=!0,n},W=function(e){var n=r.winSize(),t=e.width?e.width:n.width,i=e.height?e.height:n.height,a=o.centerScreen(t,i);return{width:t,height:i,top:a.top,left:a.left}},G=function(e,n){var t=W(e),r=window.open(n,o.randomString(16),"scrollbars=yes,location=yes,status=0,toolbar=0,resizable=1, width="+t.width+", height="+t.height+", top="+t.top+", left="+t.left);return window.focus&&r&&r.focus(),r},J=1,Q=function(e,n,t){var i="iframe-"+J+++"-"+o.randomString();n.iframeId&&(i=n.iframeId);var a=document.createElement("iframe"),s={id:i,name:i,scrolling:"no",allowtransparency:"true",allow:"payment",allowfullscreen:"true"};(!pn.isSensitiveDataProtectionEnabled||e.isSensitiveDataProtectionDisabled)&&(s.src=t),Object.keys(s).forEach((function(e){r.setAttr(e,s[e],a)}));var c={overflow:"hidden",backgroundColor:"transparent",border:"0",width:"inline"===e.displayMode?n.width+"px":"0px",height:"0px"};Object.keys(c).forEach((function(e){a.style[e]=c[e]}));try{r.setAttr("frameBorder","0",a)}catch(e){o.log(e)}return a},Y=function(e,n){var t=function(e){return r.queryEl("."+d,e.container)?r.getWidth(e.container):0}(e);return!(!t||!n)&&Math.abs(t-n)<.1},X=function(e,n,t){var o=setInterval((function(){r.empty(e)}),150);r.ready((function(){clearInterval(o),r.append(e,n),pn.isSensitiveDataProtectionEnabled&&(r.append(n,t),t.submit())}))},$=function(){for(var e in c){var n=c[e];if(!n.config.preview&&"inline"===n.config.displayMode&&n.container&&V(n,{width:r.getWidth(n.container)}),"modal"===n.config.displayMode&&n.container){var t=Math.max(document.documentElement.clientWidth,document.body.offsetWidth,document.documentElement.offsetWidth);i.send("RESIZE_MODAL_CHECKOUT",{iframe:n,width:t},n.iframeId)}}},K=function(e,n){!e||(void 0!==n.width&&(e.style.width=n.width+"px",(0===n.width&&!e.classList.contains("no-width")||0!==n.width&&e.classList.contains("no-width"))&&r.toggleClass("no-width",e)),void 0!==n.height&&(n.animate,e.style.height=n.height+"px",(0===n.height&&!e.classList.contains("no-height")||0!==n.height&&e.classList.contains("no-height"))&&r.toggleClass("no-height",e)))},Z=function(e){var n=document.createElement("div");return n.innerHTML=e.trim(),n.firstChild},ee=function(e){return void 0===e&&(e=""),'<div class="tp-please-wait tp-active tp-overlap '.concat(e,'"><div class="tp-icon tp-centered"><div class="pn-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div></div>')},ne=function(){e||(e=Z(ee()))&&document.body.appendChild(e)},te=function(){!e||(document.body.removeChild(e),e=null)},re=function(e){if(e&&null!=e&&e.container&&!p.has(e.iframeId)){var n=Z(ee("tp-local-overlap"));n&&(e.container.appendChild(n),p.set(e.iframeId,n))}},oe=function(e){if(e&&null!=e&&e.container&&p.has(e.iframeId)){var n=p.get(e.iframeId);n&&(e.container.removeChild(n),p.delete(e.iframeId))}};function ie(e){!e||!e.element||(function(e){var n;return!!e&&!(null===(n=null==e?void 0:e.element.getBoundingClientRect())||void 0===n||!n.width)}(e)&&function(e){e&&e.container&&(re(e),e.container.addEventListener("load",(function(){oe(e)}),{once:!0,capture:!0}))}(e),e.element.src=e.element.src)}function ae(){for(var e in c){var n=c[e];n&&ie(n)}}return{name:"containerUtils",fakeOfferId:"fakeOfferId",createContainer:function(e){var n,t,a,p,m={},v=document.createElement("form"),g=!0,h=e.iframeParams;if("inline"!==h.displayMode&&!h.width&&(h.width=window.innerWidth),a=e.config.buildQueryStringFn?function(n){return e.config.buildQueryStringFn(n,r)}:function(e){var n=r.param(e,f);return n+"&_qh="+s.hash(n,10)},"popup"===h.displayMode){h.width||(h.width=window.innerWidth);var y=e.url+"?"+a(h);t=G(h,y);try{p=t.document}catch(e){try{p=t}catch(e){p=null,console.warn("Unable to get popup element")}}u[h.iframeId]={container:t,interval:setInterval((function(){u[h.iframeId].container.closed&&(clearInterval(u[h.iframeId].interval),u[h.iframeId].container.close(),e.onCloseCallback&&e.onCloseCallback())}),100)}}else{if("inline"===h.displayMode){void 0!==e.config.showCloseButton&&delete e.config.showCloseButton;var w=H(e);t=w.container,g=!!w.containerReady}else t=z(e.config,(function(){M(h.iframeId,e.parent)}));pn.isSensitiveDataProtectionEnabled&&(m={userToken:h.userToken,iframeId:h.iframeId},delete h.userToken),n=e.url+"?"+a(h),p=Q(e.config,h,n)}l.registerCallback(e,h.iframeId);var _=c[h.iframeId]={iframeId:h.iframeId,config:e.config,element:p,container:t,iframeParams:h,containerReady:g};if(i.init({postMessageUrl:e.postMessageUrl,parent:e.parent,receive:e.receive,iframe:_,iframeParams:h}),r.on(document,"keyup",(function(e){})),pn.isSensitiveDataProtectionEnabled&&(m.iframeSrc=n,v=A(m)),"modal"===h.displayMode)r.on(window,"resize",(function(){j(t)})),pn.isSensitiveDataProtectionEnabled?(r.append(t,p),r.append(t,v),null==v||v.submit()):r.append(t,p);else if("inline"===h.displayMode){if(c[h.iframeId].containerReady){var b=document.createElement("div");r.addClass(d,b),r.append(b,p),e.config.isPreload&&r.hide(b),("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)&&t?(r.empty(t),r.append(t,b),pn.isSensitiveDataProtectionEnabled&&(r.append(b,v),null==v||v.submit())):X(t,b,v)}else{var k=document.createElement("div");r.setAttr("id","temp-inline-"+h.iframeId,k),r.hide(k),q("body",(function(e){r.append(e,k)})),r.append(k,p)}if(window.ResizeObserver){var C=new ResizeObserver((function(e){var n=r.getWidth(_.container);if(n>0){if("inline"===_.config.displayMode&&Y(_,n))return;V(_,{width:n})}}));C.observe(_.container),_.resizeObserver=C}}return o.debug("creating iframe: ",e),_},showPreloadedContainer:function(e){if("modal"===e.config.displayMode){if(x())return void o.log("Modal is already shown; must be one modal per time");!function(e){(t=e.container.closest(".tp-modal"))||o.error("there is no such modal container"),F(e,!0,!0)}(e)}else"inline"===e.config.displayMode?function(e){r.show(e.container);var n=r.queryEl(".".concat(d),e.container);n&&r.show(n),V(e,{width:r.getWidth(e.container)})}(e):o.log("Unexpected displayMode of preloaded iframe\n");return e.config.isPreload=!1,e.iframeParams.isPreload=!1,o.debug("show preloaded iframe: ",e.config),e},redirectContainer:function(e,n){var t=n.url+"?"+r.param(n.iframeParams,f),o=c[e];if("popup"===o.config.displayMode)o.container.location=t;else{var a=o.element;(a.contentWindow||a).location=t}o.config=n.config,i.init({postMessageUrl:n.postMessageUrl,receive:n.receive,iframe:c[n.iframeParams.iframeId],iframeParams:n.iframeParams})},hasModalIframe:x,getForm:A,getIframe:O,generateIframe:Q,generateIframeWrapper:function(){var e=document.createElement("div"),n={overflow:"hidden",backgroundColor:"transparent",border:"0",width:"0px",height:"0px",position:"absolute",display:"block",top:"-1px",left:"-1px"};return Object.keys(n).forEach((function(t){e.style[t]=n[t]})),e},getPopupPosition:W,generatePopup:G,initInlineContainer:H,getModalContainer:z,centerBackdrop:function(e){if(S){var n=r.winSize();e.offsetHeight>n.height?S.style.height=n.height+"":S.style.height="100%"}},showBackdrop:U,hideBackdrop:D,checkBackdropAndContainer:F,resizeIframe:V,centerIt:j,operationWithContainer:q,closeContainer:M,closeModalContainer:function(e,n){M(e,n,!0)},purgeIframe:function(e,n){o.debug("Purging iframe",e);var t=c[e];try{if(t.resizeObserver&&t.resizeObserver.disconnect(),i.removeIframe(t.iframeId),r.remove(t.element),"inline"===t.config.displayMode){var a=r.queryEl(".tp-container-inner",t.container);a&&r.remove(a)}}catch(e){}delete c[e]},hideModalContainer:function(e){var n=[];for(var t in c){var o=c[t];e&&t!==e||"inline"!==o.config.displayMode&&"modal"===o.config.displayMode&&(R(o),r.hide(o.container),n.push(t))}return n},closeModal:R,hideCloseButton:function(e){if(e){var n=r.queryEl(".tp-close",e);n&&n.classList.contains("tp-active")&&r.removeClass("tp-active",n)}},activateContainers:function(e){if(e&&e.length)for(var n in c)for(var t=c[n],o=0;o<e.length;o++)if(n===e[o]){var i=t.container,a=i.parentElement;a&&U(a),r.addClass("tp-active",i),r.show(i)}},showWaitPanel:ne,hideWaitPanel:te,addClassToContainer:function(e,n){r.addClass(n,e.container)},turnOnRTL:function(e){e.container&&e.container.setAttribute&&e.container.setAttribute("dir","rtl")},turnOffRTL:function(e){e.container&&e.container.removeAttribute&&e.container.removeAttribute("dir")},setIframesPopstateHandlers:function(){!o.isIphone()&&!o.isSafariOrIOsUiWebView()||window.addEventListener("popstate",ae)},__protected__:{setElementSizes:K,closeInlineContainers:function(e){Array.prototype.slice.call(document.querySelectorAll(e+" > ."+d+" > iframe")).forEach((function(e){e.id&&function(e){var n=O(e);n.config.child&&M(n.config.child),M(e)}(e.id)}))},addChildToInlineIframe:function(e,n){if(e){var t=O(n);t&&t.config&&(t.config.child=e.iframeId)}},closeAndRemoveIframe:P},__private__:{mobileModalFix:y}}}();pn.container.register("containerUtils",{useValue:qo}),pn.containerUtils=pn.container.resolve("containerUtils"),function(e){e.EXTERNAL_LINK="EXTERNAL_LINK",e.EXTERNAL_EVENT="EXTERNAL_EVENT"}(Fo||(Fo={})),function(e){e.LOG_MICRO_CONVERSION="logMicroConversion",e.LOG_AUTO_MICRO_CONVERSION="logAutoMicroConversion",e.LOG_TELEMETRY="logTelemetry",e.LOG_CONVERSION="logConversion",e.LOG_FUNNEL_STEP="logFunnelStep",e.LOG_ESP_MICRO_CONVERSION="logEspMicroConversion",e.LOG_BEACON_REQUEST="logBeaconRequest",e.LOG_CUSTOM_FORM_IMPRESSION="logCustomFormImpression",e.LOG_CUSTOM_FORM_SUBMISSION="logCustomFormSubmission"}(Bo||(Bo={}));var zo;pn.container.register("log",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("ajax"),t=e.resolve("util");e.resolve("postmessage").subscribe("iframeLogRequest",(function(e){var n="browser_id"in e.queryParams?e.queryParams:a(e.queryParams);i(e.url,n)}));var r=function(e){var n=[];for(var t in e){var r=e[t];n.push(encodeURIComponent(t)+"="+encodeURIComponent("object"==_typeof(r)?JSON.stringify(r):r))}return n.join("&")},o=function(){var e=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;return!!e&&("1"===e.charAt(0)||"yes"===e)},i=function(e,o){var i=r(o);t.isRelativeUrl(e.trim())?i.length>6e3?n.request({type:"POST",url:pn.getTrackingEndpoint()+e,data:i}):n.request({url:pn.getTrackingEndpoint()+e+"?"+i,dataType:"jsonp"}):t.log("Url parameter is incorrect")},a=function(e,n){var r,o;void 0===n&&(n=!1);var i=t.getBrowserId(),a=p({},e),s=function(e,n){n&&(a[e]=n)};if(s("browser_id",i),n){var c=t.getPageViewContext();s("page_title",c.pageTitle),s("url",c.url),s("page_view_id",c.pageViewId),s("referrer",c.referrerUrl),s("content_author",c.author),s("content_created",null===(r=c.created)||void 0===r?void 0:r.toString()),s("content_section",c.section),s("tags",(null===(o=c.tags)||void 0===o?void 0:o.join(","))||null),s("content_type",c.contentType)}return a},s=function(e){return a(e,!0)},c=function(e,n,r){var o=s({tracking_id:e,event_group_id:n,custom_params:r||"",cookie_consents:t.getCookieConsents(),previous_user_segments:t.getUserSegmentsString(),user_state:t.getUserState()});e?n?i("/api/v3/conversion/logMicroConversion",o):t.log("Parameter eventGroupId is required to log micro conversion."):t.log("Parameter trackingId is required to log micro conversion.")},u=function(e,n,r,o){var a=s({tracking_id:e,event_type:r,event_group_id:n,custom_params:o||"",cookie_consents:t.getCookieConsents(),previous_user_segments:t.getUserSegmentsString(),user_state:t.getUserState()});e?n?(console.log(a),i("/api/v3/conversion/logAutoMicroConversion",a)):t.log("Parameter eventGroupId is required to log auto micro conversion."):t.log("Parameter trackingId is required to log auto micro conversion.")},l=function(e,n,r,o,a){var c=s({tracking_id:e,esp_widget_id:n,event_type:o,event_group_id:r,custom_params:a||"",cookie_consents:t.getCookieConsents(),previous_user_segments:t.getUserSegmentsString(),user_state:t.getUserState()});e?r?n?i("/api/v3/conversion/logEspMicroConversion",c):t.log("Parameter espWidgetId is required to log esp micro conversion."):t.log("Parameter eventGroupId is required to log esp micro conversion."):t.log("Parameter trackingId is required to log esp micro conversion.")},d=function(e,n,r,o,a,c,u,l){var d=s({tracking_id:e,term_id:n,term_name:r,cookie_consents:t.getCookieConsents(),previous_user_segments:t.getUserSegmentsString(),user_state:t.getUserState()});e?n?r?(void 0!==o&&(d.step_number=o),void 0!==a&&(d.amount=a),void 0!==c&&(d.currency=c),void 0!==u&&(d.custom_params=u),void 0!==l&&(d.conversion_category=l),i("/api/v3/conversion/log",d)):t.log("Parameter termName is required to log conversion."):t.log("Parameter termId is required to log conversion."):t.log("Parameter trackingId is required to log conversion.")},f=function(e,n,t,r,o,i,a,s){if("object"==_typeof(e)){var c=e;d(c.tracking_id,c.term_id,c.term_name,c.step_number,c.amount,c.currency,c.custom_params,c.conversion_category)}else d(e,n,t,r,o,i,a,s)},m=function(e,n,r,o){var a=s({tracking_id:e,step_number:n,step_name:r,custom_params:o||"",cookie_consents:t.getCookieConsents(),previous_user_segments:t.getUserSegmentsString(),user_state:t.getUserState()});e?n?r?i("/api/v3/conversion/logFunnelStep",a):t.log("Parameter stepName is required to log funnel step."):t.log("Parameter stepNumber is required to log funnel step."):t.log("Parameter trackingId is required to log funnel step.")},v=function(e,n,r){n||t.log("Parameter formName is required to log impression."),r||t.log("Parameter source is required to log impression.");var o={aid:pn.aid,pageview_id:pn.main.fetchPageViewId(),custom_form_name:n,custom_form_source:r,cookie_consents:t.getCookieConsents(),browser_id:t.getBrowserId()},a=pn.user.getProvider().getToken();return a&&(o.user_token=a),e&&(o.tracking_id=e),i("/api/v3/customform/log/impression",o)},g=function(e,n,r){n||t.log("Parameter formName is required to log submission."),r||t.log("Parameter source is required to log submission.");var o={aid:pn.aid,pageview_id:pn.main.fetchPageViewId(),custom_form_name:n,custom_form_source:r,cookie_consents:t.getCookieConsents(),browser_id:t.getBrowserId()},a=pn.user.getProvider().getToken();return a&&(o.user_token=a),e&&(o.tracking_id=e),i("/api/v3/customform/log/submission",o)},h=function(e,i){if(!o()){var a,s=r(i),c=e+"?"+s;if(navigator.sendBeacon)if(c.length>6e3){var u=new Blob([s],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(e,u)}else navigator.sendBeacon(c);else(a=-1!==navigator.appVersion.indexOf("MSIE 9")?{dataType:"jsonp",url:c}:{type:"post",url:c,async:!1,xhrFields:{withCredentials:!0}}).error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.debug.apply(t,b(["Beacon request has been failed"],e,!1))},n.request(a)}};return{name:"log",logMicroConversion:c,logConversion:f,logFunnelStep:m,logEspMicroConversion:l,logBeaconRequest:h,logAutoMicroConversion:u,__protected__:{handleEvent:function(e,t){var i=t.trackingId,a=t.termId,s=t.termName,d=t.stepNumber,p=t.stepName,y=t.amount,w=t.currency,_=t.customParams,b=t.conversionCategory,k=t.eventGroupId,C=t.eventType,I=t.url,S=t.params,E=t.formName,T=t.source,P=t.espWidgetId;t.body;switch(e){case Bo.LOG_TELEMETRY:return void function(e,t){if(!o()){var i=e+"?"+r(t);navigator.sendBeacon?navigator.sendBeacon(i):n.send(i,null,"POST",null,"application/json",!0)}}(I,S);case Bo.LOG_CONVERSION:return void f(i,a,s,d,y,w,_,b);case Bo.LOG_AUTO_MICRO_CONVERSION:return void u(i,k,C,_);case Bo.LOG_BEACON_REQUEST:return void h(I,S);case Bo.LOG_CUSTOM_FORM_IMPRESSION:return void v(i,E,T);case Bo.LOG_CUSTOM_FORM_SUBMISSION:return void g(i,E,T);case Bo.LOG_ESP_MICRO_CONVERSION:return void l(i,P,k,C,_);case Bo.LOG_FUNNEL_STEP:return void m(i,d,p,_);case Bo.LOG_MICRO_CONVERSION:return void c(i,k,_)}},logCustomFormImpression:v,logCustomFormSubmission:g,logEspMicroConversion:l,logAutoMicroConversion:u},__private__:{doLog:i,logBeaconRequest:h}}}()}),pn.log=pn.container.resolve("log"),function(e){e.TRACK_EVENT="track",e.TRACK_CUSTOM_EVENT="trackCustom"}(zo||(zo={}));var Ho=function(){var e=pn.container.resolve("util"),n=!1,t=function(t,r,o){n?(o||(o={}),e.log("fbpixel: Track Facebook Pixel event",r,o),window.fbq(t,r,o)):e.log("fbpixel: Skip tracking event - Facebook Pixel is not initalized",r,o)},r=function(){return n};return{name:"fbpixel",isInitialized:r,__private__:{isInitialized:r},__protected__:{init:function(){if(!n){var t=pn.getFbPixelId();if(!t)return void e.error("fbpixel: Facebook Pixel ID is not defined");e.log("fbpixel: Initialize Facebook Pixel tracking",t),function(e,n,t,r,o,i,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(i=n.createElement(t)).async=!0,i.src="https://connect.facebook.net/en_US/fbevents.js",(a=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,a))}(window,document,"script"),window.fbq("set","autoConfig","false",t),window.fbq("init",t),n=!0}},handleEvent:function(e,n){var r=n.eventName,o=n.eventParams;switch(e){case zo.TRACK_EVENT:return void t(zo.TRACK_EVENT,r,o);case zo.TRACK_CUSTOM_EVENT:return void t(zo.TRACK_CUSTOM_EVENT,r,o)}}}}}();pn.container.register("fbpixel",{useValue:Ho}),pn.fbpixel=pn.container.resolve("fbpixel");pn.container.register("clientConfiguration",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r=e.resolve("ajax");return{configuration:n,getConfiguration:function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){return n?[2,n]:(t||(t=new Promise((function(e,o){r.request({url:pn.getApiEndpoint()+"/anon/assets/sdk-runtime-config.js?aid="+pn.aid,type:"GET",success:function(r){0===(null==r?void 0:r.code)?(n=r.client_configurations_dto,e(r.client_configurations_dto),t=void 0):o()},error:function(){return o()}})}))),[2,t])}))}))}}}()});var Wo,Go=function(){var e={},n={};return{name:"gaCollectingService",setParam:function(e,t){t&&(n[e]=t)},getParams:function(){return p({aid:pn.aid,tags:pn.tags,debug:pn.debug,url:window.location.href},n)},setParamMap:function(e){n=p(p({},n),e)},isEventExcluded:function(n){return e[n]},setExcludedEvents:function(n){e=p(p({},e),n)}}}();pn.container.register("gaCollectingService",{useValue:Go}),pn.gaCollectingService=pn.container.resolve("gaCollectingService"),function(e){e.EMIT_GA_EVENT="emitGAEvent",e.EMIT_METRICS_EVENT="emitMetricsEvent"}(Wo||(Wo={}));var Jo={experienceExecute:!0,meterActive:!0,meterExpired:!0,beforeBrowserEvent:!1,setResponseVariable:!0,startCheckout:!1,showOffer:!0,showTemplate:!0,termSelected:!0,promoApplied:!0,promoInvalid:!0,submitPayment:!1,checkoutCustomEvent:!0,checkoutStateChange:!1,receiptDisplayed:!1,checkoutSuccess:!0,checkoutRestarted:!1,checkoutError:!0,checkoutClose:!1,publisherLoginRequired:!1,loginRequired:!1,loginDisplayed:!1,registrationDisplayed:!1,loginSuccess:!0,registrationSuccess:!0,logout:!1},Qo=function(){var e,n=pn.container.resolve("util"),t=(pn.container.resolve("api"),pn.container.resolve("postmessage")),r=pn.container.resolve("gaCollectingService"),o=pn.container.resolve("clientConfiguration"),i="pianoTracker",a="performanceTracker",s="gaAccount",c="metricsGAAccount",u="trackOnlyAids",l="disabled",d={gaAccount:void 0,trackerName:i,trackOnlyAids:[],metricsGAAccount:void 0,isGAEnabled:!1,isGAAppended:!1,isMetricsEnabled:!1,isTrackerAppended:!1,isMetricsTrackerAppended:!1},p=[],f=!1,m=!0,v=!1,y=!1,w=[],_=function(e){if(e.hitType="timing",!d.isMetricsTrackerAppended)return S("send",e),void function(){if(!y){if(y=!0,x(),!d.metricsGAAccount)return void function(){return g(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return[4,o.getConfiguration()];case 1:return e=n.sent(),[2,O({is_enabled:e.is_performance_metrics_enabled,ga_account:e.performance_metrics_ga_account,track_only_aids:e.performance_metrics_track_only_aids})]}}))}))}().then((function(){return M()})).catch((function(e){n.error("PN catch: something vent wrong with GA injection: ".concat(e))}));M().catch((function(e){n.error("PN catch: something vent wrong with GA injection: ".concat(e))}))}}();if(d.isMetricsEnabled){if(!window.ga||!d.isMetricsTrackerAppended)return void S("send",e);w.length&&E(),P("send",e)}};function b(){v||(v=!0,m?setTimeout((function(){m=!1,k()}),3e3):k())}function k(){x(),d.gaAccount?N().catch((function(){})):function(){return g(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return[4,o.getConfiguration()];case 1:return e=n.sent(),[2,A(e.ga_account)]}}))}))}().then((function(){return N()})).catch((function(){}))}var C=function(e,n){p.push({action:e,params:n})},I=function(){if(window.ga&&d.isTrackerAppended)for(;p.length;){var e=p.pop();T(e.action,e.params)}},S=function(e,n){w.push({action:e,params:n})},E=function(){if(window.ga&&d.isMetricsTrackerAppended)for(;w.length;){var e=w.pop();P(e.action,e.params)}},T=function(e,n){if(!r.isEventExcluded(n.eventCategory)){if(!window.ga||!d.isTrackerAppended)return void C(e,n);window.ga(d.trackerName+"."+e,n)}},P=function(e,n){if(d.isMetricsEnabled){if(!window.ga||!d.isMetricsTrackerAppended)return void S(e,n);window.ga(a+"."+e,n)}},x=function(){if(!f){if(tp.gaClientId&&(e=tp.gaClientId),n.__protected__.hasLocalStorage()){var t=n.__protected__.getLocalStorageItem(s),r=n.__protected__.getLocalStorageItem(c),o=n.__protected__.getLocalStorageItem(u);d.isGAEnabled=!!t&&t!==l,d.isMetricsEnabled=!!r&&r!==l,d.gaAccount=t,d.metricsGAAccount=r,d.trackOnlyAids=o||[]}f=!0}};var A=function(e){d.isGAEnabled=!!e,d.gaAccount=e||l,n.__protected__.setLocalStorageItem("vx",s,d.gaAccount,1)},O=function(e){d.isMetricsEnabled=JSON.parse(e.is_enabled),d.metricsGAAccount=d.isMetricsEnabled?e.ga_account:l,d.trackOnlyAids=d.isMetricsEnabled?JSON.parse(e.track_only_aids):[],n.__protected__.setLocalStorageItem("vx",u,d.trackOnlyAids,1),n.__protected__.setLocalStorageItem("vx",c,d.metricsGAAccount,1)};function N(){return new Promise((function(n,t){d.isGAEnabled?R().then((function(){if(d.isGAAppended)if(d.isTrackerAppended)n(null);else try{var r=document.createElement("script");r.innerHTML=function(){var n=new RegExp("^UA-[0-9a-zA-Z]*-[0-9a-zA-Z]*$").test(d.gaAccount),t=new RegExp("([{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?)|([0-9]*\\.[0-9]*)").test(e||"");if(!n)return"";var r="ga(function() {\n ga('create', '".concat(d.gaAccount,"', 'auto', '").concat(i,"'");return r+=e&&t?", { clientId: '".concat(e,"' });"):");\n tp.gaService.setClientId(ga.getByName('".concat(i,"').get('clientId'));"),r+="tp.gaService.trackerAppended(); });",r}(),document.head.appendChild(r),d.isTrackerAppended=!0,n(null)}catch(e){t()}else t()})).catch((function(e){})):t()}))}function M(){return new Promise((function(e,n){d.isMetricsEnabled?R().then((function(){if(d.isGAAppended)if(d.isMetricsTrackerAppended)e(null);else try{var t=!d.trackOnlyAids.length||d.trackOnlyAids.contains(tp.aid),r=document.createElement("script");if(!new RegExp("^UA-[0-9a-zA-Z]*-[0-9a-zA-Z]*$").test(d.metricsGAAccount))return void n();r.innerHTML="\n ga(function() {\n if (".concat(t,") {\n ga('create', '").concat(d.metricsGAAccount,"', 'auto', '").concat(a,"', { storage: 'none' });\n tp.gaService.metricsTrackerAppended();\n }\n });\n "),document.head.appendChild(r),d.isMetricsTrackerAppended=!0,e(null)}catch(e){n()}else n()})):e("isMetricsEnabled !== true")}))}function R(){return new Promise((function(e,n){if(d.isGAAppended)e(null);else try{var t=document.createElement("script");t.innerHTML="\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n ",document.head.appendChild(t),d.isGAAppended=!0,e(null)}catch(e){n()}}))}return{name:"gaService",getClientId:function(){return e},getGAAccount:function(){return d.gaAccount},metricsTrackerAppended:function(){d.isMetricsTrackerAppended=!0,y=!1,E()},recreateWithClientId:function(n){e=n,b()},setClientId:function(n){e=n},setTrackerName:function(e){d.trackerName=e},trackerAppended:function(){d.isTrackerAppended=!0,t.broadcast("gaAppended",{clientId:e,gaAccount:d.gaAccount}),v=!1,I()},__protected__:{handleEvent:function(e,n){switch(e){case Wo.EMIT_GA_EVENT:return void function(e){if(e.hitType="event",e.nonInteraction=Jo[e.eventCategory],!d.isTrackerAppended)return C("send",e),void b();if(d.isGAEnabled){if(!window.ga||!d.isTrackerAppended)return void C("send",e);p.length&&I(),T("send",e)}}(n);case Wo.EMIT_METRICS_EVENT:return void _(n)}}}}}();pn.container.register("gaService",{useValue:Qo}),pn.gaService=pn.container.resolve("gaService");var Yo=function(e){void 0===e&&(e=pn.container);var n=e.resolve("gaCollectingService"),t=["trackingId"],r={measurementId:""},o=[],i=function(){return"function"==typeof window.gtag},a=function(e){return e.eventParameters?"gtag('config', '".concat(e.measurementId,"', ").concat(function(e){return e||(e={}),JSON.stringify(e)}(e.eventParameters),");"):"gtag('config', '".concat(e.measurementId,"');")},s=function(e){var n=document.createElement("script");return n.innerHTML="".concat(i()?"":"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());","\n")+"function setGoogleTagConfig() {\n"+" if (".concat(!e.measurementId,") { return; }\n")+" ".concat(a(e),"\n")+"}\nsetGoogleTagConfig();",n},c=function(e,n,t,r){void 0===e&&(e="");return e&&e.includes(t)?e:["offerId","aid","templateId","templateVariantId"].reduce((function(e,o){return r[o]&&(e.length&&(e+=n),e+="".concat(o).concat(t).concat(r[o])),e}),e)},u=function(e,n){var r=p(p(p({},n),e),{non_interaction:Jo[e.eventCategory],event_action:c(e.eventAction,"____","_",n),event_label:c(e.eventLabel," ",":",n)});return Object.keys(r).reduce((function(e,n){var o=r[n];return function(e,n){return e.includes("user")||"nonInteraction"===e||"object"==_typeof(n)||"function"==typeof n}(n,o)||(e[function(e){return t.includes(e)&&(e="piano_"+e),function(e){return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(e,n){return n?"_"+e:e})).toLowerCase()}(e)}(n)]=o),e}),{})},l=function(){!r.measurementId||(function(){if(!i()){var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.measurementId),document.head.appendChild(e)}}(),document.head.appendChild(s(r)))},d=function(e){n.isEventExcluded(e.name)||window.gtag("event",e.name,p({send_to:e.sendTo},e.params))};return{name:"ga4Service",getMeasurementId:function(){return r.measurementId},appendGoogleTag:l,sendCustomEvent:d,setGa4Config:function(e){r=e,l()},__protected__:{handleEvent:function(e,t){if(e===Wo.EMIT_GA_EVENT){var a=function(e,t){return{name:t.eventCategory,sendTo:r.measurementId,params:u(t,n.getParams())}}(0,t);if(i()&&a.sendTo)return d(a),o.forEach((function(e){e.sendTo||(e.sendTo=r.measurementId),d(e)})),void(o=[]);!function(e){o.push(e)}(a)}}}}}();pn.container.register("ga4Service",{useValue:Yo}),pn.ga4Service=pn.container.resolve("ga4Service");var Xo,$o,Ko,Zo=void 0;!function(e){e.purge="purge",e.dismissTemplate="acp-close",e.retainSubscription="acp-retain-subscription",e.cancelSubscription="acp-cancel-subscription"}(Xo||(Xo={})),function(e){e.autoRenewalDisabled="acp-auto-renewal-disabled",e.subscriptionCancellation="acp-subscription-cancellation"}($o||($o={})),function(e){e.dismissTemplate="dismissTemplate",e.finalConfirmation="finalConfirmation",e.autoRenewalDisabled="autoRenewalDisabled",e.subscriptionCancellation="subscriptionCancellation"}(Ko||(Ko={}));var ei=function(e){void 0===e&&(e=pn.container);var n=e.resolve("postmessage"),t=pn.container.resolve("util"),r={autoRenewalDisabled:!1,subscriptionCancellation:!1},o={token:"",isFlowInProgress:!1,templateInteractionConfig:p({},r)},i=p({},o),a=function(e,r,o){n.broadcast(e,function(e,n){return"boolean"!=typeof(null==e?void 0:e.autoRenew)&&"string"!=typeof(null==e?void 0:e.cancellationType)?n instanceof Error:{isFlowError:n instanceof Error,autoRenew:null==e?void 0:e.autoRenew,cancellationType:null==e?void 0:e.cancellationType,pageViewId:Mr.get("pageViewId"),tbc:t.getTbcCookie(),subscriptionId:null==e?void 0:e.subscriptionId,trackingId:"string"==typeof n?n:void 0}}(r,o)),c(!1),o instanceof Error&&"Subscription was upgraded"===o.message&&window.location.reload()},s=function(e){n.broadcast("setTemplateInteractionConfig",e)},c=function(e){i.isFlowInProgress=e},u=function(e){i=p(p({},i),e)};return{handleAcpEvent:function(e,n,t,r){var o,i,s=(null===(o=n.params)||void 0===o?void 0:o.eventName)||n.event,u=t.experienceActionId,l=t.continuation,d=t.containerSelector,f=t.displayMode,m=t.trackingId,v="inline"===f?d:null,g=null===(i=n.params)||void 0===i?void 0:i.subscriptionId,h=function(){e("customEvent",p({experienceActionId:u,continuation:l,trackingId:m,customEventName:s,containerSelector:v},n.params),n.sender,r)};switch(s){case Xo.purge:e(Ko.dismissTemplate,p({experienceActionId:u,continuation:l,trackingId:m,offerType:t.offerType||null},n.params),n.sender,r);break;case Xo.retainSubscription:case Xo.cancelSubscription:e(Ko.finalConfirmation,p({experienceActionId:u,continuation:l,confirm:s===Xo.cancelSubscription,trackingId:m},n.params),n.sender,r),h();break;case $o.autoRenewalDisabled:e(Ko.autoRenewalDisabled,{templateType:1,continuation:a.bind(Zo,"".concat($o.autoRenewalDisabled,"-result"),p(p({},n.params),{trackingId:m})),subscriptionId:g},n.sender),c(!0);break;case $o.subscriptionCancellation:e(Ko.subscriptionCancellation,{templateType:1,continuation:a.bind(Zo,"".concat($o.subscriptionCancellation,"-result"),p(p({},n.params),{trackingId:m})),subscriptionId:g},n.sender),c(!0);break;default:h()}},extendByAcpParams:function(e,n,t){var r=t.experienceActionId,o=t.continuation;return p(p({},n),{experienceActionId:r,continuation:o,customEventName:e})},sendTemplateInteractionActive:function(e){if(e.activateTemplateInteraction&&pn.user.isUserValid()){var n=pn.user.getProvider().getToken();if(n===i.token||i.isFlowInProgress)s(i.templateInteractionConfig);else{var t=[Ko.subscriptionCancellation,Ko.autoRenewalDisabled];pn.experience.executeTemplateInteraction({templateType:1}).then((function(e){var n=e.registeredEvents;return t.reduce((function(e,t){var r;return n.includes(t)?p(p({},e),((r={})[t]=!0,r)):e}),p({},r))})).then((function(e){s(e),u({templateInteractionConfig:e,token:n})})).catch((function(){s(r),u(o)}))}}else s(r)},getComposerAcpEvents:function(){return Object.values(Ko)}}}();pn.container.register("acp",{useValue:ei}),pn.acp=pn.container.resolve("acp");pn.container.register("analytics",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r=e.resolve("gaService"),o=e.resolve("ga4Service"),i=e.resolve("fbpixel"),a=e.resolve("log"),s=function(e){return e||function(){}},c=function(e){return{initialize:s(e.__protected__.init),event:function(n){var t=n.eventType,r=n.payload;return e.__protected__.handleEvent(t,r)}}};return{name:"analytics",ga:(n=r,t=o,{initialize:function(){},event:function(e){var r=e.eventType,o=e.payload;n.__protected__.handleEvent(r,o),t.__protected__.handleEvent(r,o)}}),fbpixel:c(i),log:c(a)}}()}),pn.analytics=pn.container.resolve("analytics");var ni=function(){var e=pn.container.resolve("api"),n=pn.container.resolve("analytics"),t=[];setTimeout((function(){r()}),1e4);var r=function(r){if(Math.floor(500*Math.random())+1===255){var o=r||(pn.fullTPVersion?"ts_c":"ts_s"),i={aid:pn.aid,type:o,actions:t};n.log.event({eventType:Bo.LOG_TELEMETRY,payload:{url:e.getEndpoint()+"/telemetry/ux/timings",params:i}})}};return{name:"logging",setTime:function(e,n,r){t.push({name:e,time:n,tags:r})}}}();pn.container.register("logging",{useValue:ni}),pn.logging=pn.container.resolve("logging");var ti,ri="/execution/credit",oi="".concat(ri,"/redeem"),ii="".concat(ri,"/check");!function(e){e.AUTO="A",e.MANUAL="M"}(ti||(ti={}));var ai=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("ajax"),t=pn.container.resolve("jqUtils"),r=pn.container.resolve("eventUtils"),o=pn.container.resolve("consent"),i=function(e){return Object.entries(e).reduce((function(e,n){var t=n[0],r=n[1];return(r||0===r)&&(e[t]=r),e}),{})},a=r.createEventManager([]),s=function(){return e.__protected__.getCookie("xbc")||void 0},c=function(r,o,a){return new Promise((function(c,u){var l=a?"?"+t.param(a):"",d=function(){var e=pn.getExperienceEndpoint(!1);return"".concat(e,"/").concat(pn.aid)}()+r+l,f=i({xbc:s(),tbc:e.getTbcCookie()||void 0}),m=i(p(p({},f),o));if(!(m.cid&&m.itemId&&m.xbc)){var v="credit: Error: Required params are absent";e.debug(v),u({code:0,message:v})}n.request({type:"post",url:d,data:p(p({},f),o),xhrFields:{withCredentials:!0},error:function(n){var t="credit: Error: Received error:".concat(n.status," ").concat(n.responseText);e.debug(t),u({code:n.status,message:n.responseText})},success:function(e){c(e)}})}))},u=function(e,n,t,r){var o=function(e){return function(n){return a.fire(void 0,e,!0,n),n}},i=o("string"==typeof e?e:e.success),s=o("string"==typeof e?e:e.failure);return c(n,t,r).then(i).catch(s)};return{redeem:function(n){var t=o.__protected__.addConsentsToParams({}),r=t.consent_modes,i=t.consent_purposes;return u("manualCreditRedeemed",oi,p(p({},n),{previousUserSegments:Mr.get("userSegments"),consentModes:r,consentPurposes:i})).then((function(n){var t=n.xbc;t&&t!==s()&&e.setXbcCookieFromResponse({xbc:t})}))},check:function(e){return u("creditChecked",ii,e)},registerCallback:function(e,n){a.addEvent(e),a.registerCallback(e,n)}}}();pn.container.register("credit",{useValue:ai}),pn.credit=pn.container.resolve("credit");var si=function(){var e,n=pn.container.resolve("postmessage"),t=pn.container.resolve("containerUtils"),r=pn.container.resolve("util"),o=pn.container.resolve("eventUtils"),i=(pn.container.resolve("logging"),o.createEventManager(["resize","loginSuccess","logout"])),a=function(){return pn.getEndpointRoot(!0)+"/checkout/user/loginShow"};function s(o){r.debug("Login event received",o.event,o.params,o);var a=!t.getIframe(o.sender).config.parent;switch(o.event){case"loaded":e=!1,!0;break;case"close":t.closeModalContainer(),i.fireCallbacks(o.event,o.params,o.sender,a);break;case"cancel":case"error":case"customEvent":i.fireCallbacks(o.event,o.params,o.sender,a);break;case"loginSuccess":!function(e,n,o,a){var s=t.getIframe(o);r.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token),s.config.userToken=n.user_token,s&&s.config&&s.config.loginSuccess&&s.config.loginSuccess(n.event,n.params,n.sender),i.fireCallbacks(e,n,o,a),s&&s.config&&s.config.closeAfterSuccess&&t.closeModalContainer(o);var u={reloadAfterLogin:!0,userToken:n.user_token,user:n.user};c(u)}(o.event,o.params,o.sender,a);break;case"logoutSuccess":!function(e,n,t,o){i.fireCallbacks("logout",null,void 0,!0),r.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token,!0)}(o.event,o.params,o.sender);break;case"readyToSubmitStats":var s={pageViewId:pn.main.fetchPageViewId(),tbc:r.getTbcCookie()};n.send("submitStats",s,o.sender);break;default:return void r.debug("Received invalid event type: "+o.event)}}var c=function(e){n.broadcast("reloadOffer",e)};var u;function l(e){var n=performance.now();u&&t.closeModalContainer(u);var o={};Object.assign(o,{closeAfterSuccess:!0},e),o.displayMode="popup",o.width=360,o.height=660,o.state=o.state?o.state:"login";var c=function(e){var n={};return["displayMode","aid","width","height","state"].forEach((function(t){e[t]&&(n[t]=e[t])})),n}(o);c.iframeId=r.randomString(16),c.url=window.location.href,c.host_url=window.location.href,c.initTime=n,u=c.iframeId,function(e){["aid","gaClientId","tags","contentSection","contentAuthor"].forEach((function(n){pn[n]&&(e[n]=pn[n])})),pn.contentCreated&&(e.contentCreated=pn.contentCreated)}(c),c.user_provider="tinypass_accounts",e.userToken&&(c.user_token=e.userToken),r.getCampaigns(c);var l,d={url:a(),config:o,postMessageUrl:a(),receive:s,iframeParams:c};return o.iframeId?(d.iframeParams.iframeId=o.iframeId,l=t.redirectContainer(o.iframeId,d)):l=t.createContainer(d),i.registerCallback(o,c.iframeId),l}return{name:"tinypassLogin",show:function(n){if(e)return!1;e=!0,setTimeout((function(){e=!1}),1e4),l(n)||r.error("Could not initialize login; check configuration")},close:function(){t.closeModalContainer()},showBackdrop:function(){t.showBackdrop()},hideBackdrop:function(){t.hideBackdrop()},centerBackdrop:function(e){t.centerBackdrop(e)},registerCallback:function(e,n){i.registerCallback(e,n)},listenLogin:function(e){!function(e){i.registerCallback(e,e.iframeId);var t={iframeId:e.iframeId,config:e,iframeParams:e};n.init({postMessageUrl:a(),receive:s,iframe:t,iframeParams:{}})}(e)}}}();pn.container.register("tinypassLogin",{useValue:si}),pn.tinypassLogin=pn.container.resolve("tinypassLogin");var ci=function(){var e=pn.container.resolve("ajax"),n=pn.container.resolve("jqUtils"),t=pn.container.resolve("util"),r=pn.container.resolve("tinypassLogin"),o=pn.container.resolve("eventUtils").createEventManager(["logout"]),i=function(){return t.getUserTokenCookie()||null};return{name:"tinypassAccounts",isv:!1,isUserValid:function(){return!!t.getUserTokenCookie()},getToken:i,getName:function(){return"tinypass_accounts"},onLoginSuccess:function(e){t.setAccessTokenListCookie({value:e.token_list,cookie_domain:e.cookie_domain},e.user_token)},isConfigured:function(){return!0===pn.useTinypassAccounts||"string"==typeof pn.useTinypassAccounts&&"true"===pn.useTinypassAccounts},login:function(e){return(e=e||{}).userToken=i(),r.show(e)},logout:function(r){var i={aid:pn.aid,url:document.location.href},a=pn.getEndpointRoot(!0)+"/checkout/user/logout?"+n.param(i);t.setAccessTokenListCookie({value:null},void 0,!0),e.request({url:a,dataType:"jsonp",success:function(e){t.setAccessTokenListCookie({value:"",cookie_domain:e.models.cookie_domain},e.models.user_token,!0),o.fireCallbacks("logout",null,void 0,!0),r&&r(e)},error:function(e){t.setAccessTokenListCookie(null,void 0,!0),o.fireCallbacks("logout",null,void 0,!0),r&&r(e)}})},registerCallback:function(e,n){o.addEvent(e),o.registerCallback(e,n)}}}();pn.container.register("tinypassAccounts",{useValue:ci}),pn.tinypassAccounts=pn.container.resolve("tinypassAccounts");var ui=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("cookie"),t=pn.container.resolve("util"),r=pn.container.resolve("eventUtils").createEventManager(["logout"]);return{isv:!1,name:"condeUserProvider",getName:function(){return"conde"},isUserValid:function(){return!!t.getUserTokenCookie()},getToken:function(){var e=t.findCookieByName("amg_user_partner");return void 0!==e&&e&&e.length>=0?e:null},onLoginSuccess:function(r){t.setAccessTokenListCookie({value:r.token_list,cookie_domain:r.cookie_domain},r.user_token);var o={path:"/",expires:730};r.cookie_domain&&"localhost"!==r.cookie_domain&&e.inArray(r.cookie_domain,t.getPossibleCookieDomains())>=0&&(o.domain=r.cookie_domain),n.raw=!0,t.__protected__.setCookie(r.params.cookieName,r.params.cookieValue,o),t.__protected__.setCookie("amg_user_partner",r.params.externalId,o),t.__protected__.setCookie("amg_user_info",r.params.userName,o),t.__protected__.setCookie("amg_user_ext",r.params.siteUserId,o),r.params.updateToken&&t.__protected__.setCookie("amg_user_update",r.params.updateToken,o),n.raw=!1},logout:function(e){t.setAccessTokenListCookie({value:null},void 0,!0);var n=t.getPossibleCookieDomains();for(var o in n)t.deleteCookie("amg_user",n[o]),t.deleteCookie("amg_user_partner",n[o]),t.deleteCookie("amg_user_info",n[o]),t.deleteCookie("amg_user_ext",n[o]),t.deleteCookie("amg_user_update",n[o]);t.deleteCookie("amg_user"),t.deleteCookie("amg_user_partner"),t.deleteCookie("amg_user_info"),t.deleteCookie("amg_user_ext"),t.deleteCookie("amg_user_update"),r.fireCallbacks("logout",null,void 0,!0),e&&e()},isConfigured:function(){return!0===pn.useCondeUserProvider||"string"==typeof pn.useCondeUserProvider&&"true"===pn.useCondeUserProvider},registerCallback:function(e,n){r.addEvent(e),r.registerCallback(e,n)}}}();pn.container.register("condeUserProvider",{useValue:ui}),pn.condeUserProvider=pn.container.resolve("condeUserProvider");var li=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("api"),t=pn.container.resolve("eventUtils"),r=pn.container.resolve("jqUtils"),o=!1;var i=t.createEventManager(["userChanged","onHide","logout"]),a={apiKey:null,screenSet:"Default-RegistrationLogin",startScreen:null,enabledProviders:null,lang:null};function s(){var n=e.getUserTokenCookie();if(n&&e.findCookieByName("glt_"+a.apiKey)===e.findCookieByName("__utg_"+a.apiKey))return n;return null}function c(){var e=s();return!!(void 0!==e&&e&&e.length>=0)}var u=[];function l(t,s){if(!o)throw"Gigya is not configured";p();var l=e.findCookieByName("glt_"+a.apiKey),d=e.findCookieByName("__utg_"+a.apiKey);(l!==d||l&&l===d&&!c()||t)&&(u.push(s),1===u.length&&window.gigya.accounts.getAccountInfo({callback:function(t){if(0===t.errorCode){var o={uid:t.UID,signature:t.UIDSignature,signature_timestamp:t.signatureTimestamp,url:e.prepareUrlParameter(window.location.href)};e.startCall("refreshUserToken"),n.callApi("/anon/gigya/verifyAccountInfo",o,(function(n){if(n&&n.result){e.setAccessTokenListCookie(n.result.access_token,n.result.user_token);var t={path:"/",expires:730};if(n.result.access_token){var o=n.result.access_token.cookie_domain;o&&"localhost"!==o&&r.inArray(o,e.getPossibleCookieDomains())>=0&&(t.domain=o)}var s=e.findCookieByName("glt_"+a.apiKey);e.__protected__.setCookieConsent("vx","__utg_"+a.apiKey,s,t);for(var c=0;c<u.length;c++){var l=u[c];l&&l(n.result)}n.result.user&&(n.result.user={uid:n.result.user.uid,email:n.result.user.email,firstName:n.result.user.first_name,lastName:n.result.user.last_name,valid:n.result.user.valid}),i.fireCallbacks("userChanged",n.result,void 0,!0)}else e.log("Can't verify gigya user: may be the configuration of gigya user provider is invalid"),e.setAccessTokenListCookie();u=[],e.doneCall("refreshUserToken")}))}else e.setAccessTokenListCookie(),u=[]}}))}var d=!1;function p(){if(!window.gigya||!window.gigya.__initialized)throw"Gigya is not initialized"}return{isv:!1,name:"gigya",init:function(n){if(!o){for(var t in n)void 0!==n[t]&&(a[t]=n[t]);if(!a.screenSet)throw"Gigya is not configured: screenSet parameter required";if(!a.apiKey)throw"Gigya is not configured: apiKey parameter required";p(),window.gigya.accounts.addEventHandlers({onLogin:function(){d=!0,l()},onLogout:function(){e.setAccessTokenListCookie({value:null},void 0,!0),i.fireCallbacks("logout",null,void 0,!0)}}),o=!0,l()}},isUserValid:c,getToken:s,getName:function(){return"gigya"},onLoginSuccess:function(n){e.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token)},login:function(e){if(!o)throw"Gigya is not configured";p(),e&&window.gigya.accounts.addEventHandlers({onLogin:function(){l(!0,e)}});var n={screenSet:a.screenSet,onHide:function(){i.fireCallbacks("onHide",{afterLogin:d},void 0,!0)}},t=["apiKey","screenSet"];for(var r in a){r in t||(n[r]=a[r])}d=!1,window.gigya.accounts.showScreenSet(n)},logout:function(n){if(!o)throw"Gigya is not configured";p(),window.gigya.accounts.logout({callback:function(){i.fireCallbacks("logout",null,void 0,!0),n&&n(),e.setAccessTokenListCookie({value:null},void 0,!0)}}),e.setAccessTokenListCookie({value:null},void 0,!0)},isConfigured:function(){return!0===pn.useGigyaUserProvider||"string"==typeof pn.useGigyaUserProvider&&"true"===pn.useGigyaUserProvider},registerCallback:function(e,n){i.addEvent(e),i.registerCallback(e,(function(e){return n(e)}))},loginByPasswordless:function(n){if(!n)throw"Session info is empty";var t=n.accessTokenName,r=n.accessToken;e.__protected__.setCookie(t,r);var o="glt_"+a.apiKey;e.__protected__.setCookieConsent("vx",o,r),l(!0)}}}();pn.container.register("gigya",{useValue:li}),pn.gigya=pn.container.resolve("gigya");var di=function(){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n.prototype.construct=function(e){this.message=e,this.name="InvalidCharacterError"},n}(Error);function n(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}try{var t=window.atob&&window.atob.bind(window)||n}catch(e){t=n}var r=function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(t(e).replace(/(.)/g,(function(e,n){var t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return t(n)}};return function(e,n){if("string"!=typeof e)throw new Error("Invalid token specified");var t=!0===(n=n||{}).header?0:1;return JSON.parse(r(e.split(".")[t]))}}();pn.jwtDecode=di,pn.container.register("jwtDecode",{useValue:di});pn.container.register("urlManager",{useValue:function(e){void 0===e&&(e=pn.container);var n,t=function(){var e=pn.sandbox||pn.isNonProdEndpoint(),t=n||pn.pianoIdUrl||!e&&"https://id.tinypass.com"||"/";return"/"===t&&(t=pn.getEndpointRoot(!0)),t.replace(/\/$/,"")},r=function(){return"".concat(t(),"/id/")};return{getPianoIdDomain:t,getPianoIdUrl:r,getIdentifyUrl:function(){return"".concat(r(),"api/v1/identity")},iframeUrlFromGlobalConfig:n,setIframeUrlFromGlobalConfig:function(e){return n=e}}}()});var pi,fi;pn.container.register("langManager",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("util");return{getLang:function(){return pn.locale||n.__protected__.getCookie("__pil")||""}}}()}),function(e){e.Modal="modal",e.Inline="inline",e.Popup="popup",e.Redirect="redirect",e.InlinePopup="inlinePopup"}(pi||(pi={})),function(e){e.isPianoIdLiteConfigured=function(){return!0===pn.usePianoIdLiteUserProvider||"string"==typeof pn.usePianoIdLiteUserProvider&&"true"===pn.usePianoIdLiteUserProvider},e.isCustomForm=function(e,n){var t=!e.isRegistration,r=!/\.html$/.test(n);return!!e.formName&&r&&t}}(fi||(fi={}));var mi=fi.isCustomForm;pn.container.register("iframeBuilder",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("util"),t=e.resolve("langManager"),r=e.resolve("gaService"),o=e.resolve("jqUtils");return{buildIframeUrl:function(e,i,a,s){var c,u=n.getPageViewContext().contentType,l=n.getPageViewContext(),d=l.pageTitle,p=l.pageViewId,f=n.getUserState(),m={client_id:i.aid,sender:null==a?void 0:a.iframeId,origin:s||window.location.origin||window.location.href,site:window.location.href,display_mode:i.displayMode,page_view_id:null!=p?p:void 0,browser_id:null!==(c=n.getBrowserId())&&void 0!==c?c:void 0,page_title:d,tbc:n.getTbcCookie()};u&&(m.content_type=u),pn.staticDomain&&(m.static_domain=pn.staticDomain);var v=t.getLang();if(v&&(m.lang=v),r.getClientId()&&(m.ga_client_id=r.getClientId()),r.getGAAccount()&&(m.ga=r.getGAAccount()),i.disableSignUp&&(m.disable_sign_up=!0),i.screen&&(m.screen=i.screen),i.resetPasswordToken&&(m.reset=i.resetPasswordToken),i.verification_code&&(m.verification_code=i.verification_code),i.stage&&(m.stage=i.stage),i.resetPasswordLandingUrl&&(m.reset_uri=i.resetPasswordLandingUrl),i.width&&i.displayMode===pi.Modal&&(m.width=i.width),i.formName&&(m.form_name=i.formName),f&&(m.user_state=f),i.preview)switch(i.template){case"custom_form":e+="form";break;case"profile":e+="profile";break;case"newsletters":e+="newsletters";break;case"layout_gm_sso":case"sso_confirm":case"sso_confirm_before":e+="gm-sso"}else mi(i,e)&&(e+="form"),i.isGmSsoEnabled&&(e+="gm-sso");if(i.confirmation&&(m.gm_sso_confirm=i.confirmation),i.hideIfComplete&&(m.hide_if_complete=i.hideIfComplete),i.preview&&(m.preview=i.preview),i.templateVersion&&(m.templateVersion=i.templateVersion),i.template&&(m.template=i.template),i.accessToken&&(m.access_token=i.accessToken),i.email&&(m.email=i.email),i.singleStep&&(m.single_step=!0),i.createPasswordlessUser&&(m.create_passwordless_user=!0),i.customParams&&(m.custom_params=JSON.stringify(i.customParams)),i.customEvents){var g=Object.keys(i.customEvents);g.length&&(m.custom_events=JSON.stringify(g))}return i.jsonpError&&(m.jsonp_error=JSON.stringify(i.jsonpError)),i.passwordlessSuccess&&(m.passwordless_success=!0),i.passwordlessToken&&(m.passwordless_token=i.passwordlessToken),i.redirectUri&&(m.redirect_uri=i.redirectUri),null!=a&&a.iframeUrl&&(m.url=a.iframeUrl),i.returnBack&&(m.return_back=i.returnBack),null!=a&&a.pos&&(m.width=a.pos.width,m.height=a.pos.height,m.top=a.pos.top,m.left=a.pos.left),i.templateId&&(m.template_id=i.templateId),i.variantId&&(m.variant_id=i.variantId),i.sss&&(m.sss_mode=i.sss.sss_mode,m.sss_callback_url=i.sss.sss_callback_url,m.sss_origin_url=i.sss.sss_origin_url),i.trackingId&&(m.tracking_id=i.trackingId),i.response_id&&(m.response_id=i.response_id),i.transparentMode&&(m.transparent_mode=!0),[e,o.param(m)].join("?")}}}()});var vi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return d(n,e),n}(Error);pn.container.register("microsoftQuickAuth",{useValue:function(e){void 0===e&&(e=pn.container);var n,t="msqaLinkingState",r=e.resolve("util"),o=e.resolve("ajax"),i=e.resolve("localStorage"),a=e.resolve("gaService"),s="",c="",u=function(){return new Promise((function(e){var o,a=null!==(o=null==n?void 0:n.promptPosition)&&void 0!==o?o:"left";ms.auth.prompt(a,(function(n){n.displayed&&(r.debug("[Piano ID][Microsoft Quick Auth] Prompt displayed."),i.remove(t)),e(n)}))}))},l=function(){var e=new URL(s),n=r.getBrowserId();n&&e.searchParams.append("browser_id",n);var a=pn.main.fetchPageViewId();a&&e.searchParams.append("page_view_id",a);var u=r.getPageViewContext().contentType;return u&&e.searchParams.append("content_type",u),new Promise((function(n,r){return o.request({url:e.toString(),type:"POST",contentType:"application/json",dataType:"text",data:JSON.stringify({state:i.get(t),back_url:window.location.href,social_type:"MSQA",response_type:"token",prompt:!0,redirect_uri:c}),success:function(e){i.set(t,e),"ms"in window&&ms.auth.setRedirectState(e),n(e)},error:function(e){r(e)}})}))};return{init:function(e,o,a){return void 0===a&&(a=function(){}),g(void 0,void 0,void 0,(function(){var s,c;return h(this,(function(u){switch(u.label){case 0:if(!e||!o)throw new vi("[Piano ID] Microsoft Quick Auth configuration failed. Client ID or redirectUri are missed.");return[4,r.requireJsFile("https://edge-auth.microsoft.com/js/ms_auth_client.min.js")];case 1:if(u.sent(),r.debug("[Piano ID][Microsoft Quick Auth] Script loaded."),!ms)throw new vi("[Piano ID] Microsoft Quick Auth configuration failed. MSQA is not loaded.");if(s=ms.auth.initialize({client_id:e,callback:a,redirect_uri:o,ux_mode:"redirect",auto_prompt:!1,auto_sign_in:null==n?void 0:n.autoSignIn,context:null==n?void 0:n.context,cancel_on_tap_outside:null==n?void 0:n.cancelOnTapOutside,locale:null==n?void 0:n.locale}),(c=i.get(t))&&ms.auth.setRedirectState(c),"failure"===s.result)throw new vi("[Piano ID] Microsoft Quick Auth configuration failed due to ".concat(s.reason));return r.debug("[Piano ID][Microsoft Quick Auth] Initialized."),[2]}}))}))},showPrompt:u,fetchLinkingState:l,setLinkingStateUrl:function(e){return s=e},setLinkingRedirectUri:function(e,n,t,o){var i=new URL(e);i.searchParams.append("client_id",n),i.searchParams.append("origin",t),i.searchParams.append("site",window.location.href),i.searchParams.append("display_mode","modal");var s=pn.main.fetchPageViewId();s&&i.searchParams.append("page_view_id",s);var u=r.getBrowserId();u&&i.searchParams.append("browser_id",u);var l=r.getTbcCookie();l&&i.searchParams.append("tbc",l),a.getGAAccount()&&i.searchParams.append("ga",a.getGAAccount());var d=r.getPageViewContext();null!=d&&d.contentType&&i.searchParams.append("content_type",null==d?void 0:d.contentType),i.searchParams.append("lang",o),i.searchParams.append("width","400"),c=i.toString()},runLinkingStateAndPromptObserver:function(){r.debug("[Piano ID][Microsoft Quick Auth] Running linking state and prompt observer."),setInterval((function(){return l().then((function(){return u()}))}),6e5)},clearConfirmationParameters:function(){var e="internal_redirect_uri",n="response_id";r.hasQueryParamByName(e)&&r.removeQueryParamByName(e),r.hasQueryParamByName(n)&&r.removeQueryParamByName(n)},setConfiguration:function(e){return n=e}}}()});pn.container.register("selfServeSessions",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("langManager"),t=e.resolve("urlManager"),r=function(){var e=o(),n=e.sss_mode,t=e.sss_callback_url;return!!n&&!!t},o=function(){var e=pn.sssOriginUrl||window.location.href||window.location.origin;return{sss_mode:pn.sssMode,sss_callback_url:pn.sssCallbackUrl,sss_origin_url:e}};return{getAccessToken:function(){return pn.sssAccessToken},isSssEnabled:r,getSssParams:o,setSssAccessToken:function(e,r){if(void 0===r&&(r=!1),pn.setSssAccessToken(e),!r){var i="";i+="callback_url="+o().sss_callback_url,i+="&origin_url="+o().sss_origin_url,i+="&aid="+pn.aid,i+="&lang="+n.getLang(),i+="&token="+e,window.location.href=t.getPianoIdDomain()+"/id/api/v1/sss?"+i}},isRedirect:function(e){var n;return"redirect"===(null===(n=e.sss)||void 0===n?void 0:n.sss_mode)},logout:function(){r()&&pn.sssAccessToken&&pn.setSssAccessToken(void 0)}}}()});pn.container.register("tokenManager",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("util"),t=e.resolve("selfServeSessions"),r=n.getAidSpecifiedName("__utp"),o=function(){var e;return t.isSssEnabled()&&t.getAccessToken()?null!==(e=t.getAccessToken())&&void 0!==e?e:null:n.findCookieByName(r)||null};return{getToken:function(){return pn.externalJWT&&fi.isPianoIdLiteConfigured()?pn.externalJWT:o()},loadToken:o}}()});pn.container.register("configManager",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("tokenManager"),t=function(){var e=window.innerWidth||document.documentElement.clientWidth||window.screen.width;return Math.min(e,400)};return{prepareConfig:function(e,r){e.aid||(e.aid=pn.aid),e.displayMode||(e.displayMode=pi.Modal),e.displayMode===pi.Popup?(e.width=parseInt(String(e.width))||t(),e.height=parseInt(String(e.height))||460):e.displayMode===pi.Modal&&(e.width=parseInt(String(e.width))||t()),null==r||r(e),e.accessToken=n.loadToken()},getDefaultWidth:t}}()});var gi;pn.container.register("pianoIdRequestManager",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("util"),t=e.resolve("ajax"),r=function(e){var r=new URL(e.url),i=n.getPageViewContext(),a=i.pageTitle,s=i.pageViewId,c=o(),u=n.getUserState();c&&r.searchParams.append("browser_id",c),s&&r.searchParams.append("page_view_id",s);var l=n.getPageViewContext().contentType;l&&r.searchParams.append("content_type",l),r.searchParams.append("page_title",a),u&&("jsonp"===e.dataType?e.data=p(p({},e.data),{user_state:u}):e.headers=p(p({},e.headers),{"User-State":u})),e.url=r.toString(),t.request(e)},o=function(){var e;return null!==(e=n.getBrowserId())&&void 0!==e?e:void 0};return{oldRequest:r,request:function(e){return new Promise((function(n,t){return r(p(p({},e),{success:function(e){return n(e)},error:function(e){return t(e)}}))}))}}}()}),function(e){e.None="none",e.Before="before",e.After="after"}(gi||(gi={}));pn.container.register("pianoId",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r,o,i,a,s=e.resolve("cookie"),c=e.resolve("jqUtils"),u=e.resolve("pianoIdRequestManager"),l=e.resolve("jwtDecode"),d=e.resolve("util"),f=e.resolve("containerUtils"),m=e.resolve("postmessage"),v=e.resolve("observer"),y=(e.resolve("gaService"),e.resolve("api")),w=e.resolve("logging"),_=e.resolve("localStorage"),k=e.resolve("consent"),C=e.resolve("analytics"),I=e.resolve("clientConfiguration"),S=e.resolve("microsoftQuickAuth"),E=!1,T=e.resolve("selfServeSessions"),P=e.resolve("iframeBuilder"),x=e.resolve("configManager"),A=e.resolve("urlManager"),O=e.resolve("tokenManager"),N="gm_sso_redirect",M="token",R="term_id",L="offer_id",U="checkout_flow_id",D="experience_id",j="form_name",V="form_name_by_term_id",F="remember",B="registration",q="reset_token",z="passwordless_token",H="verification_code",W="piano_social_token",G=d.getAidSpecifiedName("__utp"),J="__pil",Q="__pid",Y="__idr",X="__eea",$="PIANOID",K="show_form",Z="registration",ee="checkout",ne=3e3,te="pnid-tc-string",re=["he_IL","ar_EG"],oe={},ie=[],ae={},se={loggedIn:[],loggedOut:[],loginSuccess:[],registrationSuccess:[],profileUpdate:[],langChange:[],fire_loginSuccess:[],loginDisplayed:[],registerDisplayed:[],loginFailed:[],registrationFailed:[],onShow:[],layoutReady:[]},ce={},ue={},le=[],de=!1,pe={};c.on(window,"resize",(function(){me(),ve()}));var fe=function(e){var n;de&&(e.confirmation=null!==(n=e.confirmation)&&void 0!==n?n:gi.After)},me=function(e){ie.filter((function(e){return"inline"===e.config.displayMode})).filter((function(n){return!e||e.some((function(e){return n.container===e}))})).forEach((function(e){var n=c.getWidth(e.container);f.resizeIframe(e,{width:n})}))},ve=function(){ie.filter((function(e){return"modal"===e.config.displayMode&&!e.closed})).forEach((function(e){var n=e.config;f.resizeIframe(e,{width:ze(n.width)})}))},ge=function(e){if(o&&!e)return o;var n;oe=Object.assign(oe,e),A.setIframeUrlFromGlobalConfig(oe.iframeUrl),e&&Be(e),Object.keys(se).forEach((function(e){!!oe[e]&&delete oe[e]})),o=new Promise((function(e){n=e})),fi.isPianoIdLiteConfigured()||pn.setUsePianoIdUserProvider(!0);var t=d.getQueryParamByName(q);if(void 0===oe.resetPasswordToken&&t&&(oe.resetPasswordToken=t),d.getQueryParamByName(N)){var r=d.getQueryParamByName(R),i=d.getQueryParamByName(L),a=d.getQueryParamByName(D),s=d.getQueryParamByName(U),c=d.getQueryParamByName(j),u=d.getQueryParamByName(V);r&&i&&(pe.termId=r,pe.offerId=i),a&&(pe.experienceId=a),s&&(pe.checkoutFlowId=s),c&&(pe.formName=c),u&&(pe.formNameByTermId=u),g(void 0,void 0,void 0,(function(){var e,n,t,r;return h(this,(function(o){switch(o.label){case 0:return e=d.getQueryParamByName(M),n=!!d.getQueryParamByName(F),t="true"===d.getQueryParamByName(B),d.removeQueryParamByName([N,M,F,R,L,D,U,j,V,B]),e?[4,ln({source:$,user:l(e),remember:n,token:e},!0)]:[3,2];case 1:o.sent(),(r=Me($))&&Ve("loginSuccess",r.params),t&&Fe("registrationSuccess",Re($)),o.label=2;case 2:return[2]}}))})),function(){var e=O.getToken(),n=l(e);e&&(pe.emailConfirmationRequired=n.email_confirmation_required)}()}var p=d.getQueryParamByName(z);void 0===oe.passwordlessToken&&p&&(oe.passwordlessToken=p);var f=d.getQueryParamByName(H);void 0===oe.verification_code&&f&&(oe.verification_code=f);var m=d.getQueryParamByName(W);return m&&(d.removeQueryParamByName(W),dn()||(pn.inappBrowserReturn=!0,function(e,n){var t=l(e);t.rememberMe=n,on({user:t,token:e})}(m,!0))),setTimeout((function(){return n()}),50),o},he=function(e,t){if(r&&!e)return r;var o;r=new Promise((function(e){o=e}));var i=function(){d.doneCall("refreshUserToken"),r=null,o()},a=!dn(),s=function(){var e=Me($);a&&e&&Ve("loginSuccess",e.params),i()},c=function(t){var r,o;if("token_not_valid"===t){if(i(),E)return;if(d.isEdge()){var a=d.getQueryParamByName("internal_redirect_uri"),s=d.getQueryParamByName("response_id");if(a&&s){S.clearConfirmationParameters();var c=Array.from(new URL(a).searchParams.entries());return ye(p(p(p({},oe),c.reduce((function(e,n){var t,r=n[0],o=n[1];return p(p({},e),((t={})[r]=o,t))}),{})),{response_id:s,transparentMode:!0})),void(E=!0)}S.setLinkingStateUrl("".concat(A.getIdentifyUrl(),"/social/").concat(oe.aid||pn.aid,"/state")),S.setLinkingRedirectUri(A.getPianoIdUrl(),oe.aid||pn.aid,A.getPianoIdUrl(),"en-US"),S.setConfiguration(p(p({},null==e?void 0:e.msqaPromptConfiguration),{locale:null!==(o=null===(r=null==e?void 0:e.msqaPromptConfiguration)||void 0===r?void 0:r.locale)&&void 0!==o?o:In().replace("_","-")})),n=I.getConfiguration().then((function(e){return g(void 0,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return e.msqa_client_id?[4,S.fetchLinkingState()]:[3,2];case 1:return n.sent(),[2,e];case 2:return[2,Promise.reject()]}}))}))})).then((function(e){return S.init(e.msqa_client_id,"".concat(A.getIdentifyUrl(),"/login/social/callback/MSQA"))})).then((function(){return S.runLinkingStateAndPromptObserver()})).then((function(){var n,t;if(null===(t=null===(n=null==e?void 0:e.msqaPromptConfiguration)||void 0===n?void 0:n.autoPrompt)||void 0===t||t)return S.showPrompt()})).then((function(){return E=!0})).catch((function(e){e instanceof vi&&console.error(e)}))}}else"request_failed"===t&&console.error("Opening the ID screen is prohibited because authentication via cookie failed.")};return e&&e.preview?(setTimeout((function(){return o()}),10),r):(d.startCall("refreshUserToken"),ge(e).then((function(){return oe.passwordlessToken?Ie().then(i,i):t?Promise.resolve().then(i,i):gn().then(s,c)})),r)},ye=function(e){var n=performance.now();he().then((function(){var r,o=p(p(p({},oe),e),{isRegistration:!0,initTime:n,isSensitiveDataProtectionDisabled:!0});dn()&&(null===(r=o.loggedIn)||void 0===r||r.call(o,{token:O.loadToken(),user:un()})),T.isSssEnabled()&&(o.sss=T.getSssParams()),de?Pn(o)?xn(o):mn(o):T.isSssEnabled()&&T.isRedirect(o)?Ze(o,(function(e){fe(e)})):dn()||(t?d.log("Modal login window already shown"):(x.prepareConfig(o,(function(e){fe(e)})),en(o)))}))},we=function(){var e="email_is_not_confirmed",n=un();if(n){var t=d.getQueryParamByName(e);if(t)d.removeQueryParamByName(e),ke({screen:"registration"===t?"email_is_not_confirmed":"email_confirmation_required",email:null==n?void 0:n.email})}},_e=function(e){t?d.log("Modal window already shown"):he().then((function(){var n=Object.assign({screen:"email_confirmation_required"},oe,e);x.prepareConfig(n,(function(e){fe(e)})),en(n)}))},be=function(e){t?d.log("Modal window already shown"):he().then((function(){var n=Object.assign({screen:"email_confirmation"},oe,e);Pn(n)&&(n.displayMode=pi.Modal),d.getQueryParamByName(H)&&d.removeQueryParamByName(H),x.prepareConfig(n,(function(e){fe(e)})),en(n)}))},ke=function(e){if(t)d.log("Modal window already shown");else{e||(e={});var n=p(p({},oe),e);e.customEvents&&"object"==_typeof(e.customEvents)&&(ce=e.customEvents),x.prepareConfig(n,(function(e){fe(e)})),en(n)}},Ce=function(e){var n=performance.now();he().then((function(){var r=Object.assign({},oe,e,{initTime:n,isRegistration:!1});if(!r.formName)throw new Error('Form name should be specified, like\ntp.pianosId.showForm({formName: "..."});');var o=function(){if(t)d.log("Modal login window already shown");else{if(x.prepareConfig(r,(function(e){fe(e)})),!r.preview&&i)return void d.log("Skip show form, register new user");if(!r.hideIfComplete)return void en(p(p({},r),{entityType:"customForm",readyCallback:function(e){m.send("setToken",O.getToken(),e.iframeId)}}));Tn(r).then((function(e){(null==e?void 0:e.has_all_custom_field_values_filled)&&r.hideIfComplete?d.log("Skip show form, all fields are completed"):en(p(p({},r),{entityType:"customForm",readyCallback:function(n){m.send("setToken",O.getToken(),n.iframeId),m.send("userData",e,n.iframeId)}}))}))}};if(e.preview||dn())o();else{var a=Object.assign({},e,{closedCallback:function(){dn()&&o()}});ye(a)}}))},Ie=function(){return new Promise((function(e,n){var t={aid:oe.aid||pn.aid,passwordless_token:oe.passwordlessToken,lang:In()};u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/passwordless/authorization/code?").concat(c.param(t)),type:"POST",success:function(n){Se(n),e(null)},error:function(e){var t=e.response,r=JSON.parse(t).error_code_list;Ee(r),n()}})}))},Se=function(e){return g(void 0,void 0,void 0,(function(){var n,t,r,o,i,a,s;return h(this,(function(c){switch(c.label){case 0:return n=e.access_token,t=e.error,r=e.token_type,o=e.direction_url,i=e.code,a=e.extend_expired_access_enabled,!t&&"code"===r&&o&&i?((s=new URL(o)).searchParams.append("code",i),window.open(s,window.name),[3,3]):[3,1];case 1:return!t&&n?(Te(e),delete oe.passwordlessToken,d.removeQueryParamByName(z),T.isSssEnabled()&&T.setSssAccessToken(n,!0),[4,ln({source:$,token:n,user:l(n),extendExpiredAccessEnabled:a})]):[3,3];case 2:c.sent(),T.isSssEnabled()&&T.setSssAccessToken(n),c.label=3;case 3:return d.doneCall("refreshUserToken"),[2]}}))}))},Ee=function(e){ke({screen:"passwordless_confirmation",jsonpError:{error_description:e.map((function(e){return e.message})).join("\n")}}),delete oe.passwordlessToken,d.removeQueryParamByName(z)},Te=function(e){var n={aid:oe.aid||pn.aid,login_token_id:e.login_token_id,user_token:e.access_token},t={passwordlessToken:e.passwordless_token,redirectUri:e.direction_url};Pe(n,t)},Pe=function(e,n){f.showWaitPanel(),y.callApi("/anon/passwordless/complete",e,(function(e){if(e.result&&e.result.polling_enabled)return xe(e).then((function(e){Oe(e,n)}));Oe(e,n)}))},xe=function(e){return new Promise((function(n){var t={aid:pn.aid,oid:e.result.oid,process_id:e.result.process_id,user_token:pn.user.getProvider().getToken()};Ae(t,0,e.result.polling_timeouts,n)}))},Ae=function e(n,t,r,o){y.callApi("/anon/passwordless/check",n,(function(i){t++,i&&i.result&&"waiting"!==i.result.poll_status?o(i):!i.result&&i.message?(d.error("Passwordless purchase failed",i.message),o()):t<=r.length?setTimeout((function(){e(n,t,r,o)}),r[t-1]):o()}))},Oe=function(e,n){try{var t=e.result.resource||{},r=JSON.parse(e.result.show_offer_params),o=Ne(n);if(!Object.keys(t).length&&!Object.keys(r).length)return ke(o);o=t.name?Ne(n,{customParams:{resourceName:t.name}}):Ne(n,{customEvents:{checkoutContinue:function(){tn(),f.closeModalContainer(),pn.offer.show(r)}}}),ke(o)}catch(e){ke(Ne(n))}finally{f.hideWaitPanel()}},Ne=function(e,n){var t={screen:"passwordless_confirmation"};return e&&(t.passwordlessToken=e.passwordlessToken,t.redirectUri=e.redirectUri),n?Object.assign(t,n):Object.assign(t,{passwordlessSuccess:!0})},Me=function(e,n){var t=un();if(t){var r={token:O.loadToken(),user:t,source:e,stage:n};return{payload:r,params:{event:"loginSuccess",params:r.user,user_token:r.token,registration:i,source:e,stage:n}}}},Re=function(e){var n=un(),t=O.loadToken();if(n&&t)return{token:t,user:n,source:e}},Le=function(e,n){var t={login:"loginDisplayed",register:"registerDisplayed"}[e];n||Ue(t,{}),Ve(t,{})},Ue=function(e,n){var t;De(e,n),null===(t=se[e])||void 0===t||t.forEach((function(e){return e(n)}))},De=function(e,n){ie.filter((function(e){return!e.closed})).map((function(n){return je(n.config,e)})).filter((function(e){return!!e})).forEach((function(e){return e(n)}))},je=function(e,n){return"function"==typeof(null==e?void 0:e[n])?e[n]:void 0},Ve=function(e,n){var t;null===(t=ue[e])||void 0===t||t.forEach((function(e){return e(n)}))},Fe=function(e,n){Ue(e,n),Ve(e,n)},Be=function(e){!e||Object.keys(se).forEach((function(n){var t,r=e[n];r&&(null===(t=se[n])||void 0===t||t.push(r))}))},qe=function(e){ne=e},ze=function(e){var n=window.innerWidth||document.documentElement.clientWidth||window.screen.width;return Math.min(n,e||400)},He=function(e,n,t){return g(void 0,void 0,void 0,(function(){return h(this,(function(r){switch(r.label){case 0:return i=!1,[4,wn()];case 1:return r.sent(),cn(),T.logout(),_.remove(te),d.setAccessTokenListCookie({value:null},void 0,!0),t||function(e){var n={source:e};Ue("loggedOut",n),Ve("logout",n)}(n),e&&e(),[2]}}))}))};function We(e){return function(n){var t,r,o,i,a,s,u,l=e.config,v=l.trackingId,g=l.formName;switch(n.event){case"updateToken":ln(n.params);break;case"loaded":l.displayMode===pi.Modal&&f.checkBackdropAndContainer(e,!0),null===(t=l.loadedCallback)||void 0===t||t.call(l,e);var h=pn.consent.getByPurpose();h&&m.send("consentWithModes",h,e.iframeId);break;case"stateReady":null===(r=l.readyCallback)||void 0===r||r.call(l,e);break;case"resize":var y="modal"===l.displayMode?ze(l.width):n.params;f.resizeIframe(e,p(p({},n.params),{width:y}));break;case"restoreSize":"inline"===e.config.displayMode&&f.resizeIframe(e,{width:c.getWidth(e.container)});break;case"loginSuccess":Xe(n,(function(){var e;null===(e=l.callback)||void 0===e||e.call(l),pn.user.refreshAccessToken(!0),m.broadcast("pianoIdLoginSuccess",n.params)}));break;case"loginFailed":Fe("loginFailed",n.params);break;case"registrationSuccess":Xe(n,(function(){Fe("registrationSuccess",n.params),m.broadcast("pianoIdLoginSuccess",n.params)}));break;case"registrationFailed":Fe("registrationFailed",n.params);break;case"lang":Cn(n.params.lang,!0),On(n.params.lang,e);break;case"customEvent":!function(e,n){var t;null===(t=null==e?void 0:e.customEvent)||void 0===t||t.call(e,n),Ve("customEvent",n)}(e.config,n.params);break;case"closed":"customForm"===e.config.entityType&&Ve("customFormClosed",{config:e.config,reason:null===(o=n.params)||void 0===o?void 0:o.reason}),bn(e,{force:!0}),null===(i=l.closedCallback)||void 0===i||i.call(l,e);break;case"cfFormSubmission":C.log.event({eventType:Bo.LOG_CUSTOM_FORM_SUBMISSION,payload:{trackingId:v,formName:g,source:K}});break;case"formSend":Ve("customFormSubmitted",{config:e.config,submittedFields:null===(a=n.params)||void 0===a?void 0:a.submittedFields}),bn(e,{reason:"customFormSubmitted"});break;case"formSkip":bn(e);break;case"cfAppImpression":C.log.event({eventType:Bo.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:v,formName:g,source:Z}});break;case"cfAppSubmission":C.log.event({eventType:Bo.LOG_CUSTOM_FORM_SUBMISSION,payload:{trackingId:v,formName:g,source:Z}});break;case"cfFormImpression":C.log.event({eventType:Bo.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:v,formName:g,source:K}});break;case"changeScreen":Le(n.params.screen);break;case"screenReady":l.initTime&&w.setTime("idShow",Math.floor(performance.now()-l.initTime),{aot:null===(s=n.params)||void 0===s?void 0:s.AOT,form_type:null!==(u=l.entityType)&&void 0!==u?u:""}),Fe("onShow");break;case"layoutReady":Fe("layoutReady",n.params);break;case"confirmationEmailSent":"inline"!==e.config.displayMode&&!n.params.isDOI&&!n.params.isPasswordlessDigitalCode&&bn(e);break;case"verificationCodeStartCheckout":var _={};try{_=JSON.parse(n.params.startCheckoutParams)}catch(e){d.log("error parse start checkout params"),_={}}gn(!0,!0).then((function(){bn(e,{force:!0})})),d.waitCall("refreshUserToken",(function(){pn.offer.show(_)}));break;case"removeParamFromGlobalConfig":Je(n);break;case"verifyCode":Qe(n,e);break;case"openPasswordlessLoginWithCreatingUser":Ge();break;case"fireCustomEvent":!function(e){ce&&"function"==typeof ce[e]&&ce[e]()}(n.params.name);break;case"passwordRestored":d.removeQueryParamByName(q),oe.resetPasswordToken=void 0;break;case Wo.EMIT_GA_EVENT:C.ga.event({payload:n.params,eventType:Wo.EMIT_GA_EVENT});break;case"redirect":document.location.href=n.params.url;break;case"designVersion":f.addClassToContainer(e,"piano-id-modal-ver-".concat(n.params.version));break;case"profileUpdated":Ue("profileUpdate",n.params);break;case"logout":dn()&&He();break;case"successDOI":m.broadcast(n.event,n.params),vn();break;default:d.debug("Received invalid event type: "+n.event)}}}var Ge=function(){ye({createPasswordlessUser:!0})},Je=function(e){var n=e.params.name,t=d.fromUnderscoreToCamelCase(n);delete oe[t],e.params.removeFromUrl&&d.removeQueryParamByName(n)},Qe=function(e,n){var t=e.params.verificationCode,r=e.params.locale,o=oe.aid||pn.aid,i=O.getToken(),a=document.location.href,s=n.config.trackingId;u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/verification/code"),dataType:"jsonp",data:{client_id:o,access_token:i,site:a,verification_code:t,lang:r,tracking_id:s},success:function(e){e.error||Ye(e,n)},xhrFields:{withCredentials:!0},crossDomain:!0})},Ye=function(e,n){!e.error&&e.access_token&&(on({token:e.access_token,user:l(e.access_token),cookie_domain:e.site_cookie_domain}),T.isSssEnabled()&&T.setSssAccessToken(e.access_token)),m.send("verificationCodeComplete",e,n.iframeId)},Xe=function(e,n){return g(void 0,void 0,void 0,(function(){var t,r;return h(this,(function(o){switch(o.label){case 0:return e&&e.params&&!e.params.areCookiesSet?(e.params.source=$,i=!!e.params.registration,[4,ln(e.params)]):[3,2];case 1:return t=o.sent(),n(t),Ke(null===(r=e.params)||void 0===r?void 0:r.user),[3,3];case 2:"function"==typeof n&&n(),o.label=3;case 3:return Mn(),[2]}}))}))},$e=function(){var e=pn.sandbox||pn.isNonProdEndpoint(),n=oe.iframeUrl||pn.pianoIdUrl||!e&&"https://id.tinypass.com"||"/";return"/"===n&&(n=pn.getEndpointRoot(!0)),n.replace(/\/$/,"")},Ke=function(e){var n=null==e?void 0:e.email_confirmation_required,t=oe.verification_code;n||t?f.hideCloseButton():kn()},Ze=function(e,n){x.prepareConfig(e,n),O.getToken()||window.open(P.buildIframeUrl(A.getPianoIdUrl(),e),window.name)},en=function(e){var n=e.containerSelector?c.queryEl(e.containerSelector):null,r="piano-id-".concat(e.isRegistration?"":"form-").concat(d.randomString());e.singleContainer=n;var o,i,a,s={iframeId:r,containerSelector:e.containerSelector,width:e.width,height:e.height},u=P.buildIframeUrl(A.getPianoIdUrl(),e,s),l=!0;if(e.iframeParams=s,e.displayMode===pi.Inline){var p=f.initInlineContainer(e);if(!(o=p.container))return;i=f.generateIframe(e,s,u),l=!!p.containerReady,e.observeContainer&&(a=v.create(o,me))}else if(e.displayMode===pi.Modal)o=f.getModalContainer(e,(function(){return bn(t)})),i=f.generateIframe(e,s,u);else if(e.displayMode===pi.Popup)if(d.isIE()){o=f.generateIframeWrapper(),u=P.buildIframeUrl(A.getPianoIdUrl(),e,s,A.getPianoIdUrl()+"proxy.html"),s.iframeUrl=u,s.pos=f.getPopupPosition(s);var m=P.buildIframeUrl(A.getPianoIdUrl()+"proxy.html",e,s);e.displayMode=pi.InlinePopup,i=f.generateIframe({},s,m)}else{o=f.generatePopup(s,u);try{try{i=o.document}catch(e){i=o}}catch(e){i=window.document}}var g={iframeId:s.iframeId,config:e,element:i,container:o,iframeParams:s,containerReady:l};if(nn(g),e.displayMode===pi.Inline){var h=document.createElement("div");c.addClass("piano-id-container",h),c.append(h,i),c.append(o,h)}else e.displayMode===pi.Modal?c.append(o,i):e.displayMode===pi.InlinePopup&&(c.append(o,i),c.append(document.body,o));if(d.debug("creating iframe: ",e),ie.push(g),e.displayMode===pi.Modal){(t=g).observer=a;var y=In();On(y,g)}return g},nn=function(e){var n={center:d.centerScreen(),originUrl:document.location.href};m.init({postMessageUrl:A.getPianoIdUrl(),receive:We(e),iframe:e,iframeParams:e.iframeParams},n)},tn=function(e){if(t){var n=f.__private__.mobileModalFix;f.closeModal(t),c.remove(t.element),t.observer&&t.observer.disconnect(),n.isIphoneCaretFixed&&n.modalClosed(),t=void 0}},rn=function(){var e={path:"/",secure:d.__protected__.isHttpsProtocol(),priority:"High"};if(pn.cookieDomain)e.domain=pn.cookieDomain;else{var n=d.__protected__.getCookie(Q),t=d.extractCookieDomain(n);t&&(e.domain=t)}return pn.cookiePath&&(e.path=pn.cookiePath),e},on=function(e){if(e&&e.user&&e.token){cn({keepRememberMe:!0,keepExtendExpiredAccess:!0}),e.cookie_domain&&sn(e.cookie_domain);var n={};if(("r"in e.user?e.user.r:e.user.rememberMe||En())&&(n.expires=new Date(1e3*e.user.exp),an(Y,1,n)),e.extendExpiredAccessEnabled&&(An("setExtendExpiredAccess",!0,"broadcast"),an(X,"true",n)),!T.isSssEnabled()){var t=d.getPossibleCookieDomains();for(var r in t)d.deleteCookie(G,t[r]);an(G,e.token,n)}}},an=function(e,n,t){d.__protected__.setCookieConsent("id",e,n,p(p({},rn()),t))},sn=function(e){an(Q,e,{domain:e,expires:30})},cn=function(e){var n=void 0===e?{}:e,t=n.keepRememberMe,r=n.keepExtendExpiredAccess,o=rn();d.getPossibleCookieDomains(o.domain).forEach((function(e){if(e){var n=p(p({},o),{domain:e});s.remove(G,n),r||s.remove(X,n),t||Sn(n)}}))},un=function(){var e=null,n=O.loadToken();if(n)try{if(e=l(n)){e.firstName=e.given_name,e.lastName=e.family_name,e.valid=!0,e.uid=e.sub,e.confirmed=!e.email_confirmation_required&&!e.pn_cr;var t=new Date;new Date(1e3*e.exp)<t&&(cn(),e=null)}}catch(e){}return e},ln=function(e,n){return g(void 0,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return on(e),[4,_n(e.token,e.rememberMe)];case 1:return t.sent(),!n&&function(e){var n=Me((e=e||{}).source,e.stage);!n||(Ue("loggedIn",n.payload),Ue("loginSuccess",n.payload),e.source===$&&(Ue("fire_loginSuccess",n.params),Ve("loginSuccess",n.params)))}({stage:e.stage,source:e.source}),[2]}}))}))},dn=function(){return fi.isPianoIdLiteConfigured()?!!pn.externalJWT:!!un()},fn=function(e,n,t){return g(void 0,void 0,void 0,(function(){var r,o;return h(this,(function(i){switch(i.label){case 0:return r=l(e.access_token),[4,ln({token:e.access_token,user:r,cookie_domain:e.site_cookie_domain,extendExpiredAccessEnabled:e.extend_expired_access_enabled},n)];case 1:return o=i.sent(),t&&Ke(r),d.doneCall("refreshUserToken"),[2,o]}}))}))},mn=function(e){return g(void 0,void 0,void 0,(function(){var n;return h(this,(function(r){return n=p(p({},e),{isGmSsoEnabled:de}),x.prepareConfig(n,(function(e){fe(e)})),t?(d.log("Modal login window already shown"),[2]):(O.getToken()?n.confirmation!==gi.None&&!Nn()&&n.displayMode!==pi.Popup&&(en(p(p({},n),{confirmation:gi.After})),Mn()):en(n),[2])}))}))},vn=function(){if((null==pe?void 0:pe.offerId)&&(null==pe?void 0:pe.termId)){var e={offerId:pe.offerId,termId:pe.termId,closeOnLogout:!0};return pe.formNameByTermId&&(e.formNameByTermId=pe.formNameByTermId),pe.experienceId&&(e.experienceId=pe.experienceId),pe.checkoutFlowId&&(e.checkoutFlowId=pe.checkoutFlowId),pn.offer.show(e),pe.offerId=void 0,pe.termId=void 0,pe.formNameByTermId=void 0,pe.experienceId=void 0,pe.checkoutFlowId=void 0,void(pe.emailConfirmationRequired=void 0)}if(null!=pe&&pe.emailConfirmationRequired)return _e({displayMode:pi.Modal}),void(pe.emailConfirmationRequired=void 0);null!=pe&&pe.formName&&(Ce({formName:null==pe?void 0:pe.formName}),pe.formName=void 0),oe.confirmation!==gi.None&&!Nn()&&mn({doNotCloseAfterLogin:!0,isRegistration:!0})},gn=function(e,n){return new Promise((function(e,n){d.startCall("refreshUserToken");var t=function(t){t.isSuccessful?(e(null),de&&vn(),S.clearConfirmationParameters()):n(t.failReason),d.doneCall("refreshUserToken")},r=function(e){return g(void 0,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return de=e.authorized_by_sso,!e.error&&e.access_token?fi.isPianoIdLiteConfigured()?[3,2]:[4,fn(e,!1,!0)]:[3,3];case 1:n.sent(),n.label=2;case 2:return t({isSuccessful:!0}),[3,4];case 3:e.site_cookie_domain&&sn(e.site_cookie_domain),cn(),t({isSuccessful:!1,failReason:"token_not_valid"}),n.label=4;case 4:return[2]}}))}))},o=O.getToken()||void 0,i={client_id:oe.aid||pn.aid,site:document.location.origin||document.location.href},a=hn();a&&(i.tcf=a),o?u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/token/validation"),data:{client_id:oe.aid||pn.aid,site:document.location.origin||document.location.href},headers:{Authorization:o},success:function(e){r(e),e.access_token&&yn(a)},error:function(){return t({isSuccessful:!1,failReason:"request_failed"})}}):u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/token/verify"),data:i,success:function(e){r(e),e.access_token&&(yn(a),T.isSssEnabled()&&T.setSssAccessToken(e.access_token))},error:function(){return t({isSuccessful:!1,failReason:"request_failed"})},dataType:"jsonp",xhrFields:{withCredentials:!0},crossDomain:!0})}))},hn=function(){var e,n=window;return function(e){if(!e)return!1;var n=e;if(!n||!n.tcString||!n.date)return!1;var t=new Date,r=new Date(n.date),o=Math.abs(r.getTime()-t.getTime());return Math.ceil(o/864e5)<=1}(_.get(te))?null:(e=null,n.__tcfapi&&n.__tcfapi("getTCData",2,(function(n,t){t&&n.tcString&&(e=n.tcString)}),[412]),e)},yn=function(e){if(e){var n={date:(new Date).toString(),tcString:e};Rn(te,JSON.stringify(n))}},wn=function(){return new Promise((function(e){var n=O.getToken(),t={client_id:oe.aid||pn.aid};n&&Object.assign(t,{token:n}),u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/logout"),data:t,dataType:"jsonp",complete:e,xhrFields:{withCredentials:!0},crossDomain:!0})}))},_n=function(e,n){return new Promise((function(t){var r=!(n||En());u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/vxauth/cookie"),data:{client_id:oe.aid||pn.aid,session_cookie:r},headers:{Authorization:e||void 0},complete:t})}))},bn=function e(n,t){var r=void 0===t?{}:t,o=r.force,i=r.reason;!n||(o?n.closed||(n.closed=!0,"inline"===n.config.displayMode?c.empty(n.container):"popup"===n.config.displayMode?n.container.close():"modal"===n.config.displayMode&&(tn(n),c.remove(n.container.parentElement)),de&&Mn()):(m.send("close",{reason:i},n.iframeId),ie=ie.filter((function(e){return e.iframeId!==n.iframeId})),setTimeout((function(){e(n,{force:!0})}),600)))},kn=function(){ie.filter((function(e){return!e.config.doNotCloseAfterLogin})).forEach((function(e){bn(e)})),ie=[]},Cn=function(e,n){var t=d.__protected__.getCookie(J),r=d.__protected__.getCookie(Q);t===e||!r||(an(J,e,{expires:30}),n||ie.forEach((function(n){m.send("lang",{lang:e},n.iframeId)})),Object.keys(ae).forEach((function(n){var t=ae[n];m.__protected__.isIframeManaged(n)&&t?t(e):delete ae[n]})),Fe("langChange",e))},In=function(){return pn.locale||d.__protected__.getCookie(J)||""},Sn=function(e){e&&s.remove(Y,e)},En=function(){return!!d.__protected__.getCookie(Y)},Tn=function(e){return new Promise((function(n){var t=Object.assign({},oe,e);u.oldRequest({url:"".concat(A.getIdentifyUrl(),"/userinfo"),data:{client_id:oe.aid||pn.aid,form_name:t.formName},headers:{Authorization:O.getToken()||void 0},success:n,complete:function(){return n(null)}}),setTimeout(n,ne)}))},Pn=function(e){var n=d.isSafariOrUiWebView()||d.isChrome(),t=(null==e?void 0:e.displayMode)===pi.Redirect||!(null!=e&&e.displayMode)&&(null==oe?void 0:oe.displayMode)===pi.Redirect,r=n&&!(null!=e&&e.displayMode)&&!(null!=oe&&oe.displayMode);return t||r},xn=function(e){var n,t,r;if(!O.getToken()){e=p(p(p({},oe),e),{redirectUri:null!==(n=e.redirectUri)&&void 0!==n?n:window.location.href});var o=function(e,n){return JSON.parse(e)[n]};x.prepareConfig(e,(function(e){fe(e)})),t=e,r=window.open(function(e,n){var t,r=d.getPageViewContext(),i=r.pageViewId,a=r.pageTitle,s=d.getUserState(),u={client_id:n.aid,gm_sso_piano_id_domain:$e(),site:document.location.href,display_mode:"redirect",gm_sso_redirect_container_width:null!==(t=n.width)&&void 0!==t?t:ze(),page_view_id:null!=i?i:void 0,page_title:a,browser_id:Ln()},l=In();l&&(u.lang=l),pn.staticDomain&&(u.static_domain=pn.staticDomain),n.screen&&(u.screen=n.screen),n.resetPasswordToken&&(u.reset=n.resetPasswordToken),n.redirectUri&&(u.redirect_uri=n.redirectUri),n.offerId&&(u.gm_sso_offer_id=n.offerId),n.termId&&(u.gm_sso_term_id=n.termId),n.experienceId&&(u.gm_sso_experience_id=n.experienceId),n.checkoutFlowId&&(u.gm_sso_checkout_flow_id=n.checkoutFlowId),n.confirmation&&(u.gm_sso_confirm=n.confirmation),n.transparentMode&&(u.transparent_mode=!0),s&&(u.user_state=s);var p=n.termId&&n.formNameByTermId;if(n.formName)u.form_name=n.formName;else if(p){var f=o(n.formNameByTermId,n.termId);f&&(u.form_name=f)}return n.formNameByTermId&&(u.form_name_by_term_id=n.formNameByTermId),n.sss&&(u.sss_mode=n.sss.sss_mode,u.sss_callback_url=n.sss.sss_callback_url,u.sss_origin_url=n.sss.sss_origin_url),[e+="gm-sso",c.param(u)].join("?")}(A.getPianoIdUrl(),t),window.name),r&&Mn()}},An=function(e,n,t){le.push({type:t,name:e,data:n})},On=function(e,n){re.includes(e)?f.turnOnRTL(n):f.turnOffRTL(n)},Nn=function(){return!!d.__protected__.getCookie("piano-id-initial-gm-sso-shown-"+(oe.aid||pn.aid))},Mn=function(){an("piano-id-initial-gm-sso-shown-".concat(oe.aid||pn.aid),!0,{expires:30})},Rn=function(e,n){k.id?k.id.localStorage.set(e,n):_.set(e,n)},Ln=function(){var e;return null!==(e=d.getBrowserId())&&void 0!==e?e:void 0};return{name:"pianoId",isv:!1,init:he,prepare:function(){return ge()},show:ye,showForm:Ce,checkAndShowEmailIsNotConfirmed:we,showEmailConfirmationRequired:_e,submitLoginForm:function(){m.send("submitLoginForm",null,null==t?void 0:t.iframeId)},loginByToken:function(e){return g(void 0,void 0,void 0,(function(){var n;return h(this,(function(t){switch(t.label){case 0:return n=l(e),[4,ln({user:n,token:e})];case 1:return t.sent(),Ke(n),[2]}}))}))},logout:He,getToken:O.getToken,getUser:un,loadExtendedUser:function(e){var n=Object.assign({},oe,e);Tn(n).then((function(e){var t=Object.assign({},e);e&&Array.isArray(e.custom_field_values)&&(e.custom_field_values=e.custom_field_values.map((function(e){var n;try{n=JSON.parse(e.value)}catch(t){n=e.value}return{field_name:e.field_name,value:n,created:e.created}}))),"function"==typeof n.extendedUserLoaded&&n.extendedUserLoaded(t),Ve("extendedUserLoaded",t)}))},getName:function(){return"piano_id"},isConfigured:function(){return!0===pn.usePianoIdUserProvider||"string"==typeof pn.usePianoIdUserProvider&&"true"===pn.usePianoIdUserProvider},onLoginSuccess:function(e){return g(void 0,void 0,void 0,(function(){var n;return h(this,(function(t){switch(t.label){case 0:return a?[2]:(a=!0,n={source:e.source,token:e.user_token,user:e.params||e.user,cookie_domain:e.cookie_domain,stage:e.stage},d.setAccessTokenListCookie({value:e.token_list,cookie_domain:e.cookie_domain},e.user_token),[4,ln(n)]);case 1:return t.sent(),Ke(n.user),a=!1,[2]}}))}))},onProfileUpdate:function(e,n){return g(void 0,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return t={token:e.token,user:e.user,cookie_domain:e.cookie_domain},[4,ln(t,!0)];case 1:return r.sent(),n(),Ue("profileUpdate",t),[2]}}))}))},onExtendedUserLoginRequired:function(){ke()},isUserValid:dn,setCallbacks:Be,getIframeUrl:A.getPianoIdUrl,updateLang:Cn,onLangChange:function(e,n){return ae[n]=e,function(){delete ae[n]}},getLang:In,isAot:function(){ie.forEach((function(e){m.send("isAOT",{},e.iframeId)}))},registerCallback:function(e,n){var t,r=null!==(t=ue[e])&&void 0!==t?t:[];ue[e]=b(b([],r,!0),[n],!1)},setRequestTimeout:qe,showMsqaPrompt:function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return d.isEdge()?[4,n]:[3,2];case 1:return e.sent(),[2,S.showPrompt()];case 2:return[2]}}))}))},updateUser:function(e){var n=e.firstName,t=e.lastName;return g(void 0,void 0,void 0,(function(){var e,r;return h(this,(function(o){switch(o.label){case 0:if(!(e=O.getToken()||void 0))throw new Error("The user must be logged in.");o.label=1;case 1:return o.trys.push([1,4,,5]),[4,u.request({type:"PUT",contentType:"application/json",dataType:"json",url:"".concat(A.getIdentifyUrl(),"/userinfo/name?").concat(c.param({lang:In()})),headers:{Authorization:e},data:JSON.stringify({aid:oe.aid||pn.aid,first_name:n,last_name:t})})];case 2:return r=o.sent().token,[4,ln({token:r,user:l(r)})];case 3:return o.sent(),[3,5];case 4:throw o.sent();case 5:return[2]}}))}))},__protected__:{offerMessageReceiver:function(e){switch(e.params.event){case"cfAppImpression":case"cfFormImpression":C.log.event({eventType:Bo.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:e.params.trackingId,formName:e.params.trackingId,source:ee}});break;case"cfFormSubmission":C.log.event({eventType:Bo.LOG_CUSTOM_FORM_SUBMISSION,payload:{trackingId:e.params.trackingId,formName:e.params.trackingId,source:ee}});break;case"updateToken":ln(e.params.params);break;case"changeScreen":Le(e.params.params.screen,!0);break;case"loginFailed":case"registrationFailed":case"successDOI":case"registrationSuccess":case"customEvent":Ve(e.params.event,e.params.params);break;case Wo.EMIT_GA_EVENT:C.ga.event({payload:e.params.params,eventType:Wo.EMIT_GA_EVENT});break;case"redirect":document.location.href=e.params.params.url;break;default:return void d.debug("Received invalid event type: "+e.params.event)}},showEmailConfirmation:be,checkAndShowEmailIsNotConfirmed:we,closeModalContainer:tn,executePostMessagesBatch:function(){for(;le.length;){var e=le.pop();"broadcast"===e.type?m.broadcast(e.name,e.data):m.send(e.name,e.data)}},isGmSso:function(){return de},isGmSsoRedirectEnabled:Pn,authByGmSsoRedirect:xn,extendUserToken:function(){var e=O.loadToken();if(e){var n=(new Date).getTime(),t=d.__protected__.getCookie(X),r=n-1e3*l(e).iat>864e5;t&&r&&gn(!1,!0)}},getStage:function(){return oe.stage},isSssEnabled:T.isSssEnabled,getSssParams:T.getSssParams,checkVerificationCode:function(){var e=d.getQueryParamByName(H);if(e){var n=d.getQueryParamByName("_ptid"),t=p({verification_code:e},n?{trackingId:n}:{});dn()?be(t):ye(t)}}},__private__:{prepareConfig:function(e){return x.prepareConfig(e,(function(e){fe(e)}))},setRequestTimeout:qe,createIframe:en,addEventsListener:nn,gmSsoActionAfterTokenVerify:vn}}}()}),pn.pianoId=pn.container.resolve("pianoId");var hi=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("pianoId"),t=pn.container.resolve("eventUtils").createEventManager(["userChanged","onHide","logout"]),r=e.getAidSpecifiedName("__utp"),o=function(){return pn.externalJWT||i()},i=function(){return e.findCookieByName(r)||null};return{name:"pianoIdLite",isv:!1,isConfigured:function(){return!0===pn.usePianoIdLiteUserProvider||"string"==typeof pn.usePianoIdLiteUserProvider&&"true"===pn.usePianoIdLiteUserProvider},isUserValid:function(){return!!o()},getToken:o,getName:function(){return"piano_id_lite"},onLoginSuccess:function(n){e.setAccessTokenListCookie({value:n.token_list,cookie_domain:n.cookie_domain},n.user_token)},registerCallback:function(e,n){t.addEvent(e),t.registerCallback(e,n)},loginByToken:function(e){n.loginByToken(e)},logout:function(n){e.waitCall("refreshUserToken",(function(){"function"==typeof n&&n()})),t.fireCallbacks("logout",null,void 0,!0)}}}();pn.container.register("pianoIdLite",{useValue:hi}),pn.pianoIdLite=pn.container.resolve("pianoIdLite");pn.container.register("user",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r=e.resolve("api"),o=e.resolve("util"),i=e.resolve("janrain"),a=e.resolve("tinypassAccounts"),s=e.resolve("condeUserProvider"),c=e.resolve("gigya"),u=e.resolve("pianoId"),l=e.resolve("pianoIdLite"),d=e.resolve("eventUtils"),p=d.createEventManager([]);n="logout",t=function(){o.__protected__.setVxUsersToDataLayer(null),Mr.set("userStatus","anon")},[i,a,s,c,u,l].forEach((function(e){e.registerCallback(n,t)}));var f={isv:!1,getName:function(){return"publisher_user_ref"},getToken:function(){return pn.userRef?pn.userRef.constructor==="".constructor?pn.userRef:pn.userRef.constructor==={}.constructor?"{jox}"+JSON.stringify(pn.userRef):pn.userRef:null},isUserValid:function(){return!!(void 0!==pn.userRef&&pn.userRef&&pn.userRef.length>0)},onLoginSuccess:function(e){o.setAccessTokenListCookie({value:e.token_list,cookie_domain:e.cookie_domain},e.user_token)},logout:function(e){o.setAccessTokenListCookie(),e&&e()}},m=function(){return[i,a,s,c,u,l].find((function(e){return e.isConfigured()&&!e.isv}))||f};return{name:"user",getProvider:m,providerInit:function(e){(void 0===e||!e)&&(e=function(){});var n=m();"function"==typeof n.prepare?"prepare"in n&&n.prepare().then(e,e):e()},refreshAccessToken:function(e,n){var t=!1,i=m().isUserValid();(function(){var e="__tac",n=o.__protected__.getCookie(e);if(void 0===n)return 0;var t=encodeURIComponent(n),r=new TextEncoder;try{return r.encode(t+e).byteLength}catch(n){return o.debug("couldn't encode __tac cookie",n),(t+e).length}})()>=4096?(t=!0,console.warn("__tac cookie exceeds max size equals ".concat(4096," bytes")),o.setAccessTokenListCookie(null,"",!0)):t=function(e,n){if(void 0!==n&&n)return!0;if(e){var t=o.__protected__.getCookie("__tae");if(void 0===t||!t)return!0;var r=new Date(parseInt(t));if((new Date).getTime()-r.getTime()>864e5)return!0}return!1}(i,e),(void 0===n||!n)&&(n=function(){}),t||!i?o.waitCall("refreshUserToken",(function(){o.waitCall("offerCreate",(function(){o.waitCall("experienceExecute",(function(){if(!m().isUserValid())return o.__protected__.getCookie("__tac")&&o.setAccessTokenListCookie(null,"",!0),void(n&&n(""));o.startCall("refreshAccessTokenList");var e={url:o.prepareUrlParameter(window.location.href)};r.callApi("/access/token/list",e,(function(e){o.doneCall("refreshAccessTokenList"),void 0!==e.access_token_list?(o.setAccessTokenListCookie(e.access_token_list),n&&n(e.access_token_list.value)):n&&n(null)}),void 0,void 0)}))}))})):n(null)},showLogin:function(e){var n=m().getName();if("tinypass_accounts"===n)a.login(e);else if("piano_id"===n){var t=e||{};u.show(t)}else"publisher_user_ref"===n&&p.fireCallbacks("loginRequired",{},void 0,!0)},isUserValid:function(){return m().isUserValid()},logout:function(e,n){m().logout(e,n)},registerCallback:function(e,n){p.addEvent(e),p.registerCallback(e,n)},getUserInfoParams:function(e){var n=e.userToken;if(!n){var t=m().getToken();n=t&&t.length>0?t:""}return{user_token:n,user_lang:o.__protected__.getCookie("LANG")||"",is_preview:e.preview,is_non_logged_user:e.previewNonLoggedUser}},isUserConfirmed:function(){return"piano_id"!==m().getName()||pn.pianoId.getUser().confirmed}}}()}),pn.user=pn.container.resolve("user");var yi=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t="viewport-exit-activated",r="viewport-exit-prepared",o=!1,i=!1,a=0,s=0,c=["top","right","bottom","left"],u=!0,l=!1,d=!1,p=[],f={top:{visited:!1,value:1},right:{visited:!1,value:2},bottom:{visited:!1,value:4},left:{visited:!1,value:8}},m=0,v=function(){if(!l){l=!0,m=0;var n=/(?:Firefox|Safari)[\/\s](\d+\.\d+)/.test(navigator.userAgent)?document.body:document;e.on(n,"mouseleave",(function(e){return g(e)})),e.on(document,"mousemove",(function(e){return h(e)}))}};var g=function(t){var r;r=function(e){return e.clientX===e.clientY&&e.clientX<0&&e.clientX>=-1}(t)?"":function(n,t){var r=e.winSize(),o=r.width,i=r.height,a="";return n>=o&&(a="right"),t>=i&&(a="bottom"),n<=0&&(a="left"),t<=0&&(a="top"),a}(t.clientX,t.clientY),r||(r=function(){if(!i)return"";var n=e.winSize(),t=n.width,r=n.height;return c[function(e){if(0===e.length)return-1;for(var n=e[0],t=0,r=1;r<e.length;r++)e[r]<n&&(t=r,n=e[r]);return t}([s,t-a,r-s,a])]}(),r||n.debug("viewportExit: the detect of the exit side failed")),r&&function(e){-1!==c.indexOf(e)?f[e].visited||(f[e].visited=!0,m+=f[e].value):n.debug("viewportExit: the detect of the exit side failed")}(r),y("all"),"top"===r&&y("top")},h=function(e){i=!0,s=e.clientY,a=e.clientX},y=function(e){if(u){for(var t,r=[],o=[],i=0;i<p.length;i++)((t=p[i]).detectExitMode===e||"back"===e&&t.detectBackButtonForMobile)&&t.consumeEventFn()?r.push(t):o.push(t);r.length&&n.debug("viewportExit: listeners was run fire with type: ",e),p=o;for(i=0;i<r.length;i++)(t=r[i]).callback()}};return{name:"viewportExit",initialize:v,isInitialized:function(){return l},addListener:function(e,n,i){("mobile"===n.clientDevice||"tablet"===n.clientDevice)&&!!n.detectBackButtonForMobile&&function(){if(!d){d=!0,window.addEventListener("popstate",(function(e){o&&e.state&&e.state.pianoViewportExitState===t&&(o=!1,y("back"))}));var e=window.history.state||{};e&&e.pianoViewportExitState!==r&&(e.pianoViewportExitState!==t&&(e.pianoViewportExitState=t,window.history.replaceState(e,document.title)),window.history.pushState({pianoViewportExitState:r},document.title)),o=!0}}(),v(),"function"!=typeof i&&(i=function(){return!0}),p.push({callback:e,detectExitMode:n.detectExitMode,detectBackButtonForMobile:n.detectBackButtonForMobile,consumeEventFn:i})},resetSumOfCodesDirectionToDefault:function(){m=0},getSumOfCodesDirection:function(){return m},removeListeners:function(){p=[]},enable:function(){u=!0},disable:function(){u=!1}}}();pn.container.register("viewportExit",{useValue:yi}),pn.viewportExit=pn.container.resolve("viewportExit");var wi,_i,bi,ki=function(){var e=pn.container.resolve("postmessage"),n=pn.container.resolve("containerUtils"),t=pn.container.resolve("user"),r=pn.container.resolve("api"),o=pn.container.resolve("util");function i(e){return s(e,"/checkout/template/show")}function a(e){return e.initContextLoadPromise=function(e,n){e.contextLoadingPromise=c(e,n)},s(e,"/checkout/template/cacheableShow")}var s=function(e,n){var t=pn.getEndpointRoot(!0)+n;return e.iframeUrl=t,e.postMessageUrl=t,e.widget="template",pn.offer.createOfferIframe(e)},c=function(e,n){var i=t.getUserInfoParams(e);return i.tracking_id=e.trackingId,i.templateId=e.templateId,i.templateVariantId=e.templateVariantId,i.aid=pn.aid,i.preload=e.isPreload,i.cookie_consents=JSON.stringify(o.getCookieConsents()),i.previous_user_segments=o.getUserSegmentsString(),i.userState=o.getUserState(),e.affiliateState&&(i.affiliateState=JSON.stringify(e.affiliateState)),Object.keys(n).forEach((function(e){i[e]=n[e]})),new Promise((function(e,n){r.callApi("/anon/template/loadTemplateContext",i,(function(t){var r=t.code,o=t.templateContext,i=t.message;0===r?e(o):n(i)}),void 0,void 0)}))},u=function(e,n){var t={};return["aid","templateId","templateVariantId","previewTemplateVersion","preload","preview","previewUncached","deploymentItemId","gaClientId","zuoraSelectedRatePlanIds","newscycleSelectedIds","addNewsletterAssets","offerId","experienceId","iframeId","displayMode","debug","pianoIdUrl","widget","url"].forEach((function(n){e[n]&&(t[n]=e[n])})),n.param(t)};function l(e){pn.getCacheableShowTemplate()?(function(e){e.deferredContextLoading=!0,e.buildQueryStringFn=u}(e),e.createIframeFn=a):e.createIframeFn=i}return{name:"template",show:function(e){return e.offerId=n.fakeOfferId,e.trackStatsOnShow=!0,l(e),pn.offer.show(e)},deferredShow:function(e){return e.offerId=n.fakeOfferId,l(e),pn.offer.deferredShow(e)},close:function(){n.closeModalContainer()},closeInline:function(e){n.__protected__.closeInlineContainers(e)},createTemplateIframe:i,showBackdrop:function(){n.showBackdrop()},hideBackdrop:function(){n.hideBackdrop()},centerBackdrop:function(e){n.centerBackdrop(e)},registerCallback:function(e,n){},refreshUser:function(n){t.refreshAccessToken(!0,(function(){e.send("externalLoginSuccess",{user_token:t.getProvider().getToken()},n)}))}}}();pn.container.register("template",{useValue:ki}),pn.template=pn.container.resolve("template"),function(e){e.COMMON="linkedTermData",e.SIGNED="linkTermSignedData"}(wi||(wi={})),function(e){e.LINKED="linked",e.LINK="link"}(_i||(_i={})),function(e){e.UPGRADE="upgradeOffer"}(bi||(bi={}));pn.container.register("offer",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r,o=e.resolve("jqUtils"),i=e.resolve("util"),a=e.resolve("postmessage"),s=e.resolve("user"),c=e.resolve("containerUtils"),u=e.resolve("eventUtils"),l=e.resolve("viewportExit"),d=e.resolve("gaService"),m=e.resolve("sha1"),v=e.resolve("logging"),g=e.resolve("template"),h=e.resolve("analytics"),y=e.resolve("gaCollectingService"),w=e.resolve("ajax"),_=e.resolve("acp"),k=e.resolve("api"),C=[],I={},S=0,E="close",T="OFFER",P=!1,x=!1,A=!1,O={},N=new Map,M={},R=["he_IL","ar_EG"],L="",U="pn_rurl_3ds",D=new Map,j=Symbol(),V=Symbol(),F=u.createEventManager(b(["complete","cancel","close","error","loginRequired","loginSuccess","loaded","customEvent","startCheckout","resize","onMeterExpired","onMeterActive","onAccessGranted","onShowOffer","pianoIdEvent","parentSize","redeemCredit","onStartCreditRedemption","showAuthForm","callLinkTermSelectedCallback","callLinkedTermSelectedCallback","callLinkTermSelectedCallback","visibleImpression","selectChangeOption","checkoutSelectChangeOption"],_.getComposerAcpEvents(),!0));c.setIframesPopstateHandlers();var B=function(){return pn.offerBaseUrl?pn.offerBaseUrl:pn.getEndpointRoot()+"/checkout/offer/show"},q=function(e){if(!e)return null;var n=e.linkedTermData,t=e.linkTermSignedData,r=e.linkedTermSignedData,o=f(e,["linkedTermData","linkTermSignedData","linkedTermSignedData"]),i=r||t;switch(!0){case Boolean(n):return p({linkedTermData:n},o);case Boolean(i):return p({linkTermSignedData:i},o);default:return o}},z=function(e,n){if(n===wi.COMMON)return e.externalTermId||"";if(n===wi.SIGNED)try{return JSON.parse(e.payload).externalTermId||""}catch(e){return console.warn(e),""}return""},H=function(e,n){void 0===e&&(e={}),void 0===n&&(n={});var t=pn.getApiEndpoint()+"/linkedTerm/session/create",r=p(p({tracking_id:L||"",tbc:i.getTbcCookie()||"",pcid:i.getPcidCookie()||"",consents:JSON.stringify(i.getCookieConsents()),previous_user_segments:i.getUserSegmentsString(),user_state:i.getUserState()},e),n);return new Promise((function(e,n){try{w.request({url:t,type:"POST",dataType:"json",data:JSON.stringify(r),contentType:"application/json",success:e,error:n})}catch(e){n(e)}}))},W=function(e,n){var t="".concat(pn.getApiEndpoint(),"/linkedTerm/subscription/hasActive"),r={aid:e,external_term_id:n,user_token:s.getProvider().getToken()};return new Promise((function(e,n){try{w.request({url:t,type:"POST",dataType:"json",data:r,contentType:"application/x-www-form-urlencoded",success:e,error:n})}catch(e){n(e)}}))},G=function(e,n){var t=function(e){switch(e){case"purge":return{eventCategory:"checkoutClose",eventLabel:"Checkout close"};case"customEvent":return{eventCategory:"checkoutCustomEvent",eventLabel:"Checkout custom event"};case"checkoutPaymentError":case"error":return{eventCategory:"checkoutError",eventLabel:"Checkout error"};case"checkoutStateChange":return{eventCategory:"checkoutStateChange",eventLabel:"Checkout state change"};case"showTemplate":return{eventCategory:"showTemplate",eventLabel:"Show template"};case"startCheckout":return{eventCategory:"startCheckout",eventLabel:"Start checkout",isModalOnly:!0};case"logout":return{eventCategory:"logout",eventLabel:"Logout event"};case"loginRequired":return{eventCategory:"loginRequired",eventLabel:"Login required"};default:return null}}(e);(null==t?void 0:t.isModalOnly)&&"modal"!==n.displayMode||t&&r!==t.eventCategory&&(h.ga.event({eventType:Wo.EMIT_GA_EVENT,payload:p(p({iframeId:n.sender},t),n.params)}),r=t.eventCategory)};function J(e,n){var r,u,d,m=c.getIframe(e.sender),g=!0;switch(m&&m.config&&(g=!m.config.parent),e.event){case"initContext":if(e.params&&e.params.resultCallbackId){var y={resultCallbackId:e.params.resultCallbackId,affiliateState:m.config.affiliateState};a.send("resultCallback",y,e.sender)}break;case"storeCustomVariables":tp.saveCustomVariablesToLocalStorage(300);break;case"fullRedirectThreeDS":window.location.href=e.params.bankSecureUrl;break;case"resize":if(e.params.iframeId===e.sender){var w=void 0===e.params.width?p(p({},e.params),{width:o.getWidth(m.container)}):e.params;c.resizeIframe(m,w),"modal"===m.config.displayMode&&("boilerplate"===e.params.closeButtonType&&c.hideCloseButton(m.container),c.centerIt(m.container)),a.send("afterResize",{},m.iframeId)}F.fireCallbacks(e.event,e.params,e.sender,g),C.forEach((function(e){$e(e)&&oe(e.iframeId)}));break;case"startCheckout":if(e.params.width=null,"inline"===e.displayMode){e.params.closeOnLogout=!0;var b=Ne(e.params,m.statParams);b.browserId=m.browserId,b.isOpenedFromInlineCheckout=!0,He(b,e.sender)}e.params.iframeId===e.sender?(F.fireCallbacks(e.event,e.params,e.sender,g),G(e.event,e)):(Q(e.params.iframeId,{isVisibleImpressionEventSent:!0}),null!==(r=D.get(e.sender))&&void 0!==r&&r.isVisibleImpressionEventSent&&ue(null===(u=C.find((function(n){return n.iframeId===e.sender})))||void 0===u?void 0:u.displayMode));break;case"showAuthForm":var k=e.params,I=void 0===k?{}:k;pn.pianoId.show(p({closedCallback:function(){a.send("authFormClosed",{},e.sender)}},I));break;case"callLinkTermSelectedCallback":case"callLinkedTermSelectedCallback":if(!e.params||!tp.linkedTermSelectedCallbacks.length)return;var S=e.params,T=S.linkedTermData,x=S.linkTermData,A=S.offerStatData,N=S.pageViewData,M=f(S,["linkedTermData","linkTermData","offerStatData","pageViewData"]),L=q(T||x)||M,U=L.linkedTermData?wi.COMMON:wi.SIGNED,j=z(L[U],U);Promise.all([H(A,N),W(tp.aid,j)]).then((function(e){var n=e[0].data,t=e[1].data;c.hasModalIframe()&&c.closeModalContainer(),tp.linkedTermSelectedCallbacks.forEach((function(e){var r;"function"==typeof e&&e(n||"",p(p({},L),((r={})[U]=p(p({},L[U]),{userHasActiveSubscriptionToTerm:t}),r)))}))})).catch(i.debug);break;case"loaded":if(e.params.iframeId===e.sender){if(a.send("setupCustomVariables",O[e.params.iframeId],e.params.iframeId),a.send("setupEVTFields",m.config.externalVerificationFields,e.params.iframeId),Pe(m),xe(m),Ae(m),m.config.deferredContextLoading&&X(m,e),m.waitFinishProcesses)return void c.__protected__.closeAndRemoveIframe(m);"pianoId"===s.getProvider().name&&pn.pianoId.__protected__.executePostMessagesBatch(),"modal"===m.config.displayMode&&(c.resizeIframe(m,e.params),m.config.isPreload||c.checkBackdropAndContainer(m,!0)),"popup"===m.config.displayMode&&c.resizeIframe(m,e.params),(!m.config.isPreload&&!m.config.trackStatsOnShow||m.config.forceTrackStat)&&Se(m),Ee(m),Te(m),Oe(m),F.fireCallbacks(e.event,e.params,e.sender,g),"inline"===m.config.displayMode&&(m.containerReady?c.resizeIframe(m,e.params):c.operationWithContainer(m.iframeParams.containerSelector,(function(n){var t=o.queryEl("#temp-inline-"+m.iframeId);t&&(n.innerHTML=t.innerHTML,o.remove(t)),m.element=o.queryEl("iframe",n),m.containerReady=!0,c.resizeIframe(m,e.params)})));var V=m.iframeParams,B=V.offerId,J=V.templateId,Z=V.initTime,ne=V.logType;v.setTime(ne,Math.floor(performance.now()-Z),{offer_id:"fakeOfferId"===B?void 0:B,template_id:J}),ee(m.config),i.doneCall("offerCreate")}break;case"downForMaintenance":c.resizeIframe(m,{width:300,height:200}),"modal"===m.config.displayMode&&(m.config.isPreload||c.checkBackdropAndContainer(m));break;case"removeQueryParamByName":e&&e.params&&Array.isArray(e.params.paramsToRemove)&&e.params.paramsToRemove.forEach((function(e){i.removeQueryParamByName(e)}));break;case"purge":n||(e&&e.params&&e.params.alreadyPurchased&&(E="alreadyHasAccess"),e&&e.params&&e.params.completePayment&&(E="checkoutCompleted"),le()&&ue(null==m?void 0:m.config.displayMode),c.purgeIframe(e.sender,m.config.parent),_.handleAcpEvent(F.fireCallbacks,e,m.config,g),ee(m.config),G(e.event,e));break;case"close":n||(e&&e.params&&e.params.alreadyPurchased&&(E="alreadyHasAccess"),e&&e.params&&e.params.completePayment&&(E="checkoutCompleted"),i.hasQueryParamByName("voucher_code")&&(E="voucherRedemptionCompleted"),c.closeContainer(e.sender,m.config.parent),ee(m.config));break;case"closeAndRefresh":var te=e.params;te?window.location.assign(te):window.location.reload();break;case"selectTerm":case"selectChangeOption":E=e&&e.params&&e.params.alreadyPurchased?"alreadyHasAccess":"close";break;case"submitPayment":F.fireCallbacks(e.event,Ne(e.params,{offerId:m.iframeParams.offerId}),e.sender,g);break;case"complete":if(void 0!==e.params.token_list){var re=s.getProvider().getToken();i.setAccessTokenListCookie({value:e.params.token_list,cookie_domain:e.params.cookie_domain},re)}var ie=Ne(e.params,{offerId:m.iframeParams.offerId});F.fireCallbacks(e.event,ie,e.sender,g),E="checkoutCompleted";break;case"checkoutSelectTerm":case"checkoutSelectChangeOption":F.fireCallbacks(e.event,Ne(e.params,{offerId:m.iframeParams.offerId}),e.sender,g);break;case"checkoutStateChange":Q(m.iframeId,{previousState:null===(d=D.get(m.iframeId))||void 0===d?void 0:d.currentState}),Q(m.iframeId,{currentState:e.params.stateName}),F.fireCallbacks(e.event,e.params,e.sender,g),G(e.event,e);break;case"checkoutPaymentError":case"alreadyPurchased":case"startThreeDBankSecure":case"cancel":case"error":case"completeUpgradePurchase":F.fireCallbacks(e.event,e.params,e.sender,g),G(e.event,e);break;case"customEvent":_.handleAcpEvent(F.fireCallbacks,e,m.config,g),G(e.event,e);break;case"loginRequired":P=!0,F.fireCallbacks(e.event,Je(m,e.params,e.sender),e.sender,g),G(e.event,e);break;case"logout":$(e.event,e.params,e.sender,m.config.parent,g),G(e.event,e);break;case"loginSuccess":K(e.event,e.params,e.sender,g);break;case"inputFocus":var ae=o.queryEl(".tp-modal");ae&&(ae.style.zIndex=pn.zIndexes.modal+1+"",ae.style.zIndex=pn.zIndexes.modal+"");break;case"inputBlur":var se=o.queryEl(".tp-modal");se&&(se.style.zIndex=pn.zIndexes.modal+1+"",se.style.zIndex=pn.zIndexes.modal+"");break;case"getLocation":e.params&&e.params.resultCallbackId&&(e.params.result=window.location.href,a.send("resultCallback",e.params,e.sender));break;case"setLocationHash":e.params&&e.params.hash&&(window.location.hash=e.params.hash);break;case"langChangedWithinOffer":pn.pianoId.isConfigured()&&pn.pianoId.updateLang(e.params.lang),R.indexOf(e.params.lang)>=0?c.turnOnRTL(m):c.turnOffRTL(m);break;case"loginStart":l.disable();break;case"loginEnd":l.enable();break;case"pianoIdEvent":e.params.iframeId===e.sender&&("closed"===e.params.event&&c.closeContainer(e.sender),pn.pianoId.__protected__.offerMessageReceiver(e)),Y(e.params,e.sender);break;case"swgCheckoutStart":break;case"sharedAccountsSuccessfullyAdded":a.broadcast("refreshMyAccount",{userToken:s.getProvider().getToken()});break;case"newsletterSignupImpression":case"newsletterSignupSubmission":pn.pianoEsp.__protected__.offerMessageReceiver(e),F.fireCallbacks(e.event,e.params,e.sender,g);break;case"parentSize":var ce=o.winSize(),de={width:ce.width,height:ce.height};a.send("parentSize",de,e.sender);break;case"gigyaPasswordlessLogin":e.params.iframeId===e.sender&&(t=e.params.iframeId,pn.gigya.loginByPasswordless(e.params));break;case Wo.EMIT_GA_EVENT:return void(!n&&h.ga.event({eventType:Wo.EMIT_GA_EVENT,payload:p({iframeId:e.sender},e.params)}));case Wo.EMIT_METRICS_EVENT:!n&&h.ga.event({eventType:Wo.EMIT_METRICS_EVENT,payload:e.params});break;case"bannerInit":m.config.singleContainer.classList.add("tp-banner");break;case"bannerDestroy":m.config.singleContainer.classList.remove("tp-banner");break;case"redeemCredit":var pe=F.fireCallbacks("onStartCreditRedemption",e.params,e.sender,g);pe&&pe.then&&pe.then((function(n){a.send("successfullyCreditRedeem",n,e.sender)}),(function(n){a.send("creditRedeemFailed",n,e.sender)}));break;case"scrollModalTo":if("modal"===e.displayMode){var fe=o.queryEl(".tp-modal");if(fe){var me=e.params.x||0,ve=e.params.y||0;fe.scrollTo(me,ve)}}break;case"frequencyEvent":var ge={event_name:"piano_frequency_event",event_type:"closeClick"===e.params.eventType?"close_click":"visible_impression",experience_Id:e.params.experienceId,experience_action_Id:e.params.experienceActionId};("closeClick"!==e.params.eventType&&!ye(m.iframeId)||"closeClick"===e.params.eventType)&&F.fireCallbacks("piano_frequency_event",ge,e.sender,g);default:return void i.debug("Received invalid event type: "+e.event)}}var Q=function(e,n){D.set(e,p(p({},D.get(e)),n))},Y=function(e,n){"successDOI"===e.event&&(e.iframeId!==n&&c.closeContainer(e.iframeId),a.send("afterSuccessDOI",e.params,n))},X=function(e,n){e.config.contextLoadingPromise.then((function(t){var r={iframeParams:e.iframeParams,userContext:t};r.iframeParams.url=i.prepareUrlParameter(window.location.href),a.send("userDataContextLoaded",r,n.params.iframeId)}))},$=function(e,n,t,r,o){s.logout((function(){var e,n,o={},i=null===(n=null===(e=C.find((function(e){return e.iframeId===t})))||void 0===e?void 0:e.config)||void 0===n?void 0:n.offerType;Ke(i)?c.closeContainer(t,r):(o.userProvider=s.getProvider().getName(),o.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",o.noNeedStartCheckout=!0,Ge(o))}),T),n.closeOnLogout&&c.closeModalContainer(t,r)},K=function(e,n,t,r){if(n.source=T,s.getProvider().onLoginSuccess(n),F.fireCallbacks("loginSuccess",n,t,r),!A){var o={userToken:n.user_token,user:n.user,reloadAfterLogin:!0};Ge(o,t)}},Z=function(e){var n=e.displayMode||"modal";return[e.offerId,n,e.containerSelector].join("|")},ee=function(e){var n=Z(e);delete I[n]},ne=function(e){if(E="close",je(e),void 0===e.displayMode)e.displayMode="modal";else if("modal"!==e.displayMode&&"inline"!==e.displayMode&&"popup"!==e.displayMode)return i.log("Invalid offer displayMode; must be one of: modal, inline, popup"),void ee(e);if("modal"===e.displayMode&&!e.isPreload&&c.hasModalIframe())return i.log("Modal offer is already shown; must be one modal offer per time"),void ee(e);if("modal"!==e.displayMode){var n,t=o.qa(e.containerSelector);if(!e.isPreload)if(t.forEach((function(t){var r=Ne({},e);r.singleContainer=t,n=re(r)})),n)return n;var r=t[t.length-1];r&&(e.singleContainer=r)}return re(e)};function te(e,n){var t=i.getPageViewContext(),r=t.pageTitle,o=t.url,a=t.referrerUrl,s=t.contentType;n.pageTitle=r,n.url=o,n.referrerUrl=a,n.contentType=s}function re(e,r){var u=function(e){var n,t={};e.termIds&&(e.termIds instanceof Array||(e.termIds=[e.termIds])),null!==(n=e.changeOptions)&&void 0!==n&&n.length&&(e.changeOptions=JSON.stringify(e.changeOptions));var r=e.additionalParamNames?e.additionalParamNames:[];["displayMode","containerSelector","templateId","templateVariantId","offerId","termId","termIds","rid","aid","isCheckout","isOpenedFromInlineCheckout","pw_id","paywallId","width","preview","previewUncached","previewTemplateType","previewTemplateVersion","tokenType","janrainCaptureToken","closeOnLogout","voucherCode","isRedemption","allowReturnToStartState","startFromInlineCheckout","formNameByTermId","hideCompletedFields","startFromInlineCheckout","reloadAfterLogin","preventReloadAfterLogin","isAuth","authStartScreen","showCloseButton","closeButtonType","checkoutFlowId","offerState","oid","promoCode","promoCodeId","promoCodeTermId","rurl_3ds","thirdPartyParams","termId3ds","providerId","deploymentItemId","sharedAccountCode","targetedTermId","widget","linkTermCheckoutState","linkedTermCheckoutState","purchasedLinkTermData","purchasedLinkedTermData","subscriptionId","experienceActionId","continuation","offerType","termChangeOptionId","changeOptions"].concat(["trackingId","experienceId","experienceActionId","activeMeters","directCheckout"],r).forEach((function(n){e[n]&&(t[n]=e[n]),"showCloseButton"===n&&(void 0===e[n]?t[n]=!0:t[n]=e[n])}));var o=decodeURIComponent(i.getQueryParamByName("_ptid"));return o&&(t.trackingId=o,_e(o)),e.preview&&(t.activeMeters=JSON.stringify([{meterName:"preview-meter",views:10,viewsLeft:5,maxViews:20,totalViews:20}])),t}(e),l=performance.now();u.widget||(u.widget="offer");var p=i.getTbcCookie();p&&p.length>0&&(u.tbc=p),e.deferredContextLoading?(u.iframeId=be(e),u.url=window.location.origin):(u.iframeId="offer-"+S+++"-"+i.randomString(),u.url=i.prepareUrlParameter(window.location.href));var f=o.winSize();u.parentDualScreenLeft=void 0!==window.screenLeft?window.screenLeft:screen.left,u.parentDualScreenTop=void 0!==window.screenTop?window.screenTop:screen.top,u.parentWidth=f.width?f.width:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,u.parentHeight=f.height?f.height:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,u.parentOuterHeight=window.outerHeight,e.previewNonLoggedUser&&(u.previewNonLoggedUser=e.previewNonLoggedUser),e.isPreload&&(u.preload=1),pn.locale&&(u.lang=pn.locale),d.getClientId()&&(u.gaClientId=d.getClientId()),d.getGAAccount()&&(u.gaAccount=d.getGAAccount()),function(e){["debug","aid","gaClientId","tags","contentSection","contentAuthor","debug","zone"].forEach((function(n){pn[n]&&(e[n]=pn[n])})),pn.customVariables&&(O[e.iframeId]=JSON.stringify(pn.customVariables),e.customVariables=O[e.iframeId]);var n=pn.contentCreated;if(n&&(e.contentCreated=n),pn&&pn.main&&(e.visitId=pn.main.fetchVisitId()),pn&&pn.util){var t=pn.util.getPageViewContext(),r=t.pageTitle,o=t.pageViewId;e.browserId=pn.util.getBrowserId(),e.pageViewId=o,e.pageTitle=r,e.userState=pn.util.getUserState()}}(u);var m=F.hasCallback("loginRequired");if(!pn.janrain.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(!pn.gigya.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(pn.pianoId.isConfigured()){(void 0===e.loginRequired||!e.loginRequired)&&(e.loginRequired=function(e){if(!e.preventExternalLogin)return n=e.termId,t=u.iframeId,pn.pianoId.show({screen:e.startScreen}),!1}),Le(),u.pianoIdUrl=pn.pianoId.getIframeUrl(),u.pianoIdStage=pn.pianoId.__protected__.getStage(),e.isGmSso&&(u.isGmSso=e.isGmSso),pn.staticDomain&&(u.staticDomain=pn.staticDomain);var v=pn.pianoId.getLang();v&&(u.lang=v),pn.pianoId.onLangChange((function(e){a.send("langChanged",{lang:e},u.iframeId)}),u.iframeId)}else pn.pianoIdLite.isConfigured()&&(u.pianoIdUrl=pn.pianoId.getIframeUrl());else{g=[];pn.gigya.registerCallback("onHide",(function(e){e&&e.afterLogin?c.activateContainers(g):pn.offer.close(),a.send("gigyaHide",e,t)})),Me(),e.loginRequired=function(e){return x=e.allowReturnToStartState,P=!1,g=c.hideModalContainer(),n=e.termId,t=u.iframeId,i.waitCall("refreshUserToken",(function(){pn.gigya.login()})),!1}}else{var g=[];pn.janrain.addEventHandler("onModalClose",(function(){c.activateContainers(g)})),Re(),e.loginRequired=function(e){return g=c.hideModalContainer(),x=e.allowReturnToStartState,P=!1,n=e.termId,t=u.iframeId,i.waitCall("refreshUserToken",(function(){pn.janrain.login(void 0,e)})),!1}}u.userProvider=s.getProvider().getName(),e.userToken?u.userToken=e.userToken:u.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",i.getCampaigns(u),u.customCookies=JSON.stringify(i.getCustomCookies()),F.registerCallback(e,u.iframeId),u.hasLoginRequiredCallback=F.hasIframeCallback("loginRequired",u.iframeId)||m,u.initMode="context",ke(u);var h=e.iframeUrl?e.iframeUrl:u.isCheckout?pn.getEndpointRoot(!0)+"/checkout/offer/show":B(),y=e.postMessageUrl?e.postMessageUrl:B();if(e.deferredContextLoading){var w=Ce(u);te(0,w),e.initContextLoadPromise(e,w)}var _=Ie(u,e);if(pn.pianoId.__protected__.isSssEnabled()){var b=pn.pianoId.__protected__.getSssParams();u.sss_mode=b.sss_mode,u.sss_callback_url=b.sss_callback_url,u.sss_origin_url=b.sss_origin_url}e.splitTestIds&&(u.abTestIds=e.splitTestIds),e.socialName&&(u.socialName=e.socialName),e.responseType&&(u.responseType=e.responseType),u.requestUserAuthForLinkedTerm=tp.requestUserAuthForLinkedTerm,u.initTime=l;var k=h.indexOf("/offer/")>=0?"offerShow":"templateShow";u.logType=k;var I=c.createContainer({url:h,config:e,parent:e.parent,postMessageUrl:y,receive:J,iframeParams:u,singleContainer:e.singleContainer,close:function(){F.fireCallbacks("close",{state:E},u.iframeId,!0)}});return M=h.indexOf("/template/")>=0&&u.offerId===c.fakeOfferId?u:M,we(u,"offerId","width","termId","displayMode","experienceId","iframeId","templateId","templateVariantId"),I.statParams=_,I.browserId=e.browserId,C.push(I),I}var oe=function(e){var n;if(!ye(e)){document.getElementById(e)&&(null===(n=D.get(e))||void 0===n||!n.initiatedFirstCheckVisibleImpression)&&(Q(e,{initiatedFirstCheckVisibleImpression:!0}),de(e));var t=C.find((function(n){return n.iframeId===e}));"modal"===(null==t?void 0:t.config.displayMode)?se(e):ie(e)}},ie=function(e){e,document.addEventListener("scroll",ae)},ae=function e(){var n;le()?document.removeEventListener("scroll",e):null===(n=C.filter((function(e){return"inline"===e.iframeParams.displayMode})))||void 0===n||n.forEach((function(e){de(e.iframeId)}))},se=function(e){var n;e,null===(n=document.getElementsByClassName("tp-modal")[0])||void 0===n||n.addEventListener("scroll",ce)},ce=function e(){var n,t;le()?null===(n=document.getElementsByClassName("tp-modal")[0])||void 0===n||n.removeEventListener("scroll",e):null===(t=C.filter((function(e){return"inline"!==e.iframeParams.displayMode})))||void 0===t||t.forEach((function(e){de(e.iframeId)}))},ue=function(e){var n;"modal"===e?null===(n=document.getElementsByClassName("tp-modal")[0])||void 0===n||n.removeEventListener("scroll",ce):document.removeEventListener("scroll",ae)},le=function(){return C.every((function(e){var n;return!(null===(n=D.get(e.iframeId))||void 0===n||!n.isVisibleImpressionEventSent)}))},de=function(e){var n=pe(e);me(n)&&fe(n,e)},pe=function(e){var n,t,r,o=null===(n=document.getElementById(e))||void 0===n?void 0:n.getBoundingClientRect();return{top:(null==o?void 0:o.top)||0,bottom:(null==o?void 0:o.bottom)||0,left:(null==o?void 0:o.left)||0,right:(null==o?void 0:o.right)||0,iframeHeight:(null==o?void 0:o.height)||0,iframeWidth:(null==o?void 0:o.width)||0,viewportHeight:(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||0,viewportWidth:(null===(r=window.visualViewport)||void 0===r?void 0:r.width)||0}},fe=function(e,n){setTimeout((function(){me(e)&&he(n)}),1e3)},me=function(e){return 0!==e.iframeHeight&&0!==e.iframeWidth&&(e.iframeHeight>e.viewportHeight?ve(e):ge(e))},ve=function(e){return e.viewportWidth>e.iframeWidth?e.top<0&&Math.abs(e.top)>=e.iframeHeight/2-e.viewportHeight&&Math.abs(e.top)<=e.iframeHeight/2&&(e.left>=0&&e.left<=e.viewportWidth-e.iframeWidth/2||e.left<0&&e.right>=e.iframeWidth/2):e.top<0&&Math.abs(e.top)>=e.iframeHeight/2-e.viewportHeight&&Math.abs(e.top)<=e.iframeHeight/2&&e.left<=0&&Math.abs(e.left)>=e.iframeWidth/2-e.viewportWidth&&Math.abs(e.left)<=e.iframeWidth/2},ge=function(e){return e.viewportWidth>e.iframeWidth?(e.top>=0&&e.top<=e.viewportHeight-e.iframeHeight/2||e.top<0&&e.bottom>=e.iframeHeight/2)&&(e.left>=0&&e.left<=e.viewportWidth-e.iframeWidth/2||e.left<0&&e.right>=e.iframeWidth/2):(e.top>=0&&e.top<=e.viewportHeight-e.iframeHeight/2||e.top<0&&e.bottom>=e.iframeHeight/2)&&e.left<=0&&Math.abs(e.left)>=e.iframeWidth/2-e.viewportWidth&&Math.abs(e.left)<=e.iframeWidth/2},he=function(e){var n,t,r=C.find((function(n){return n.iframeId===e})),o={event_name:"piano_frequency_event",event_type:"visible_impression",experience_Id:null===(n=null==r?void 0:r.iframeParams)||void 0===n?void 0:n.experienceId,experience_action_Id:null===(t=null==r?void 0:r.iframeParams)||void 0===t?void 0:t.experienceActionId};r&&!ye(e)&&document.getElementById(e)&&(F.fireCallbacks("piano_frequency_event",o,e,!0),Q(e,{isVisibleImpressionEventSent:!0}))},ye=function(e){var n;return!(null===(n=D.get(e))||void 0===n||!n.isVisibleImpressionEventSent)},we=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=n.reduce((function(n,t){var r;return p(p({},n),((r={})[t]=e[t],r))}),{});y.setParamMap(r)},_e=function(e){y.setParam("trackingId",e)},be=function(e){var n=0,t="offer_"+m.hash(e.iframeUrl+"?"+e.buildQueryStringFn(e,o),20);return N.has(t)&&(n=N.get(t)+1),N.set(t,n),t+"-"+n},ke=function(e){var n=i.getQueryParamByName("termId"),t=i.getQueryParamByName("paySource");n&&(e.termId=n),t&&(e.paySource=t)},Ce=function(e){var n={};return["tbc","trackingId","pageViewId","visitId","tags","contentCreated","contentSection","contentAuthor","pageTitle","referrerUrl"].forEach((function(t){e[t]&&(n[t]=e[t])})),Object.keys(e).forEach((function(t){0===t.indexOf("tpcc_")&&(n[t]=e[t])})),n},Ie=function(e,n){var t={};return n.trackStatsOnShow||n.deferredContextLoading||(t=Ce(e),Object.keys(t).forEach((function(n){delete e[n]}))),t},Se=function(e){var n=Ne(e.iframeParams,e.statParams);e.config.affiliateState&&(n.affiliateState=e.config.affiliateState),te(e.config,n),a.send("trackStat",n,e.iframeId)},Ee=function(e){var n={browserId:e.browserId};a.send("passBrowserId",n,e.iframeId)},Te=function(e){a.send("passPcidBrowserId",{browser_id:i.getBrowserId()},e.iframeId)},Pe=function(e){a.send("passCookieConsents",i.getCookieConsents(),e.iframeId)},xe=function(e){a.send("passUserSegments",i.getUserSegmentsString(),e.iframeId)},Ae=function(e){a.send("passUserState",i.getUserState(),e.iframeId)},Oe=function(e){var n=i.getPageViewContext(),t=n.pageTitle,r=n.url,o=n.pageViewId,s=n.referrerUrl,c=n.author,u=n.created,l=n.section,d=n.tags,p=n.contentType;a.send("passPageViewContext",{page_title:t,url:r,page_view_id:o,referrer:s,content_author:c,content_created:null==u?void 0:u.toString(),content_section:l,tags:d?JSON.stringify(d):null,content_type:p},e.iframeId)},Ne=function(e,n){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n]})),Object.keys(n).forEach((function(e){t[e]=n[e]})),t},Me=function(){A||(pn.gigya.registerCallback("userChanged",(function(e){if(e&&e.user_token){var r={token_list:e.access_token.value,user_token:e.user_token,userToken:e.user_token,cookie_domain:e.access_token.cookie_domain,user:e.user,allowReturnToStartState:x,termId:n};if(t)c.getIframe(t)?(a.send("externalLoginSuccess",r,t),delete r.termId,Ge(r,t)):Ge(r);else Ge(r)}})),pn.gigya.registerCallback("logout",(function(){var e,r={};r.userProvider=s.getProvider().getName(),r.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",r.noNeedStartCheckout=!0,t&&(e=c.getIframe(t)),e&&"inline"===e.config.displayMode&&c.closeModalContainer(),n="",t="",x=!1,Ge(r)})),A=!0)},Re=function(){A||(pn.janrain.registerCallback("userChanged",(function(e){if(e&&e.user_token){var r={token_list:e.access_token.value,user_token:e.user_token,userToken:e.user_token,cookie_domain:e.access_token.cookie_domain,user:e.user,allowReturnToStartState:x,termId:n};if(t)c.getIframe(t)?(a.send("externalLoginSuccess",r,t),delete r.termId,Ge(r,t)):Ge(r);else Ge(r)}})),pn.janrain.addEventHandler("onCaptureSessionEnded",(function(){var e,r={};r.userProvider=s.getProvider().getName(),r.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",r.noNeedStartCheckout=!0,t&&(e=c.getIframe(t)),e&&"inline"===e.config.displayMode&&c.closeModalContainer(),n="",t="",x=!1,Ge(r)})),A=!0)},Le=function(){A||(pn.pianoId.setCallbacks({loggedIn:function(e){i.log("offer.js - piano id user logged in");var r={user_token:e.token,userToken:e.token,user:e.user,reloadAfterLogin:!0,termId:n};t?c.getIframe(t)?(a.send("externalLoginSuccess",r,t),We(t,r),delete r.termId,Ge(r,t)):Ge(r):Ge(r)},loggedOut:function(e){if(e.source!==T){var r={};r.userProvider=s.getProvider().getName(),r.userToken=s.getProvider().getToken()&&s.getProvider().getToken().length>0?s.getProvider().getToken():"",r.noNeedStartCheckout=!0,Ge(r)}n="",t=""}}),A=!0)};function Ue(e){return c.showPreloadedContainer(e)}var De=function(e){var n=e.offerId===c.fakeOfferId?"showTemplate":"showOffer";F.hasCallback(n)&&F.fireCallbacks(n,e,void 0,!0),G(n,{params:e})},je=function(e){[{queryParam:"promo_code",configParam:"promoCode"}].forEach((function(n){var t=i.getQueryParamByName(n.queryParam);t.length&&(e[n.configParam]=t)}))},Ve=function(){return i.getQueryParamByName(U)},Fe=function(e){if(e.offerId||!0===e.preview)return!function(e){var n=Z(e);return!!I[n]}(e)&&void(function(e){return Ve()&&!e.rurl_3ds&&"modal"===e.displayMode}(e)||(L=e.trackingId,_e(L),!e.preview&&!tp.disableLockConfig&&function(e){var n=Z(e);I[n]=!0}(e),setTimeout((function(){ee(e)}),1e4),Ke(e.offerType)?en(e):Be(e)));i.error("Must specify offerId")};function Be(e){i.waitCall("refreshUserToken",(function(){i.waitCall("refreshAccessTokenList",(function(){i.waitCall("myAccountLogin",(function(){var n;if(i.startCall("offerCreate"),e.createIframeFn?(je(e),n=e.createIframeFn(e)):n=ne(e),!n)return i.doneCall("offerCreate"),void i.error("Could not initialize offer; check configuration");qe(e)&&(Q(n.iframeId,{isDirectCheckout:!0}),ze(n.iframeId)),De(e)}))}))}))}var qe=function(e){return!!e.directCheckout&&"inline"!==e.displayMode},ze=function(e){i.waitCall("offerCreate",(function(){a.send("startDirectCheckout",{},e)}))},He=function(e,n){if(!function(e){return!e.offerId&&!e.isRedemption&&!e.preview}(e)){var t=F.hasCallback("loginRequired");if(e.isSiteLicensing&&t&&(Qe()||Ye()))return void g.refreshUser(M.iframeId);c.hasModalIframe()&&!Xe(e)&&c.closeModalContainer(),i.debug("creating checkout: ",e),e.displayMode="popup"===e.displayMode?"popup":"modal",e.isCheckout=!0,e.parent=n,i.waitCall("refreshUserToken",(function(){i.waitCall("refreshAccessTokenList",(function(){var t,r;if(Xe(e)&&e.reloadAfterLogin&&Ye()){var o=null===(t=s.getProvider())||void 0===t?void 0:t.getToken();return o&&e[V]?void function(e){var n,t=e.token,r=e.termId,o=e.iframeId;a.send("startLinkedTermProcessAfterExternalLogin",{termId:r},o),P&&(Ge({userProvider:null===(n=s.getProvider())||void 0===n?void 0:n.getName(),userToken:t,noNeedStartCheckout:!0,noNeedStartCheckoutAfterLogin:!0}),P=!1)}({token:o,termId:e.termId,iframeId:e[V]}):void i.log("external checkout cannot be continued.")}if(i.startCall("offerCreate"),pn.pianoId.__protected__.isGmSso()){if(pn.pianoId.__protected__.isGmSsoRedirectEnabled()&&!pn.pianoId.getToken())return void pn.pianoId.__protected__.authByGmSsoRedirect(e);e=p(p({},e),{isGmSso:!0})}r=e.createIframeFn?e.createIframeFn(e):ne(e),c.__protected__.addChildToInlineIframe(r,n),r?P&&i.waitCall("offerCreate",(function(){P=!1;var e={};e.userProvider=s.getProvider().getName(),s.getProvider().getToken()&&s.getProvider().getToken().length>0?e.userToken=s.getProvider().getToken():e.userToken="",e.noNeedStartCheckout=!0,e.noNeedStartCheckoutAfterLogin=!0,Ge(e,r.iframeId)})):(i.doneCall("offerCreate"),i.error("Could not start checkout; check configuration"))}))}))}},We=function(e,n){a.send("reloadOffer",n,e)},Ge=function(e,n){a.broadcast("reloadOffer",e,n)},Je=function(e,n,t){var r={reloadAfterLogin:!0};return Object.assign(r,e.config),r.singleContainer&&delete r.singleContainer,n.termId&&(r.termId=n.termId),n.term&&(r.term={},r.term=Ne(r.term,n.term)),n.startScreen&&(r.startScreen=n.startScreen),n.isRedemption&&(r.isRedemption=n.isRedemption,r.voucherCode=n.redemption&&n.redemption.form&&n.redemption.form.redeemCode,r.termId=null),n&&n.currentState&&"modal"===e.config.displayMode&&(r.allowReturnToStartState=!0),n.preventExternalLogin&&(r.preventExternalLogin=n.preventExternalLogin),n.sharedAccountCode&&(r.sharedAccountCode=n.sharedAccountCode),n.isSiteLicensing&&(r.isSiteLicensing=n.isSiteLicensing),n.campaignCode&&(r.campaignCode=n.campaignCode),n.campaignGroupId&&(r.campaignGroupId=n.campaignGroupId),n.termType&&(r[j]=n.termType),t&&(r[V]=t),r.displayMode="modal",r},Qe=function(){return"publisher_user_ref"===s.getProvider().getName()},Ye=function(){return"piano_id_lite"===s.getProvider().getName()},Xe=function(e){var n=e[j]===_i.LINKED,t=e[j]===_i.LINK;return n||t},$e=function(e){var n,t;return(null===(n=null==e?void 0:e.iframeParams)||void 0===n?void 0:n.experienceId)&&(null===(t=null==e?void 0:e.iframeParams)||void 0===t?void 0:t.experienceActionId)&&0!==pe(e.iframeId).iframeWidth&&0!==pe(e.iframeId).iframeHeight},Ke=function(e){return e===bi.UPGRADE},Ze=function(e){(function(e){var n=s.getUserInfoParams(e);return n.user_provider=s.getProvider().getName(),n.aid=pn.aid,n.offer_id=e.offerId,new Promise((function(e,t){k.callApi("/anon/term/change/offer/get",n,(function(n){var r=n.code,o=n.upgrade_offer_data,i=n.message;0===r?e(o):t(i)}),void 0,void 0)}))})(e).then((function(n){var t;((null===(t=null==n?void 0:n.change_options)||void 0===t?void 0:t.length)||e.preview)&&Be(e)}))},en=function(e){tp.enableDoubleOptInCheckOnAccessCheck(),s.isUserValid()&&s.isUserConfirmed()||e.preview?Ze(e):s.isUserValid()&&!s.isUserConfirmed()?nn(e):tn(e)},nn=function(e){pn.doubleOptIn.check(),rn(e)},tn=function(e){s.showLogin({}),rn(e)},rn=function(e){var n=void 0===e.loginRequired||!e.loginRequired;pn.janrain.isConfigured()&&n?on(e):pn.gigya.isConfigured()&&n?an(e):pn.pianoId.isConfigured()&&sn(e)},on=function(e){pn.janrain.registerCallback("userChanged",(function(n){n&&n.user_token&&Ze(e)}))},an=function(e){pn.janrain.registerCallback("userChanged",(function(n){n&&n.user_token&&Ze(e)}))},sn=function(e){pn.pianoId.setCallbacks({loggedIn:function(n){var t;s.isUserValid()&&(null===(t=n.user)||void 0===t?void 0:t.confirmed)&&Ze(e)}})};return{name:"offer",show:function(e){"inline"===e.displayMode?c.operationWithContainer(e.containerSelector,(function(){Fe(e)})):Fe(e)},deferredShow:function(e){return function(e){var n,t,r,o=new Promise((function(e,r){n=e,t=r})),a=new Promise((function(e,n){r=e}));return"popup"!==e.displayMode&&e.offerId?i.waitCall("refreshAccessTokenList",(function(){var o;e.isPreload=!0,i.startCall("offerCreate"),e.createIframeFn?(je(e),o=e.createIframeFn(e)):o=ne(e),o?(o.element.onload=function(){r(o)},n(o)):(i.doneCall("offerCreate"),i.error("Could not initialize offer; check configuration"),t())})):t(),{promise:o,show:function(){o.then(Ue).then((function(){return a})).then((function(n){Se(n),qe(e)&&ze(n.iframeId),De(e)}),(function(){Fe(e),delete e.isPreload}))}}}(e)},close:function(){c.closeModalContainer()},closeInline:function(e){c.__protected__.closeInlineContainers(e)},startCheckout:He,startLinkedTermCheckout:function(e,n){if(C.length)if(n){var t=C.find((function(e){var t,r;return(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.offerId)===n||(null===(r=null==e?void 0:e.iframeParams)||void 0===r?void 0:r.offerId)===n}));t?a.send("tpStartLinkedTermCheckout",{termId:e},t.iframeId):i.debug("offer iframe ".concat(n," was not found"))}else C.forEach((function(n){a.send("tpStartLinkedTermCheckout",{termId:e},n.iframeId)}));else i.debug("there are not offer iframes.")},startRedeemVoucher:function(e,n){c.closeModalContainer(),e||(e={}),e.isRedemption=!0,i.debug("starting redeem voucher: ",e),e.displayMode="popup"===e.displayMode?"popup":"modal",e.isCheckout=!1,e.parent=n,i.waitCall("refreshAccessTokenList",(function(){i.startCall("offerCreate"),(e.createIframeFn?e.createIframeFn(e):ne(e))||(i.doneCall("offerCreate"),i.error("Could not start redeem; check configuration"))}))},createOfferIframe:ne,showBackdrop:function(){c.showBackdrop()},hideBackdrop:function(){c.hideBackdrop()},centerBackdrop:function(e){c.centerBackdrop(e)},registerCallback:function(e,n){F.addEvent(e),F.registerCallback(e,n)},reload:We,reloadAll:function(e,n){var t=e||{};i.waitCall("refreshUserToken",(function(){Ge(Object.assign(t,{userToken:pn.user.getProvider().getToken()}),n)}))},resetUserAndReloadAll:function(e,n){var t=e||{};Ge(Object.assign(t,{userToken:""}),n)},checkThreeDSRedirect:function(){var e=Ve();if(e){var n={offerId:"pn_offer_id",oid:"pn_oid",termId3ds:"pn_term_id",providerId:"pn_provider_id",thirdPartyParams:"third_party_params"},t=[U],r=Object.keys(n).reduce((function(e,r){var o=Object.assign({},e);return o[r]=i.getQueryParamByName(n[r]),t.push(n[r]),o}),{});i.removeQueryParamByName(t),Fe(Object.assign({displayMode:"modal",rurl_3ds:e},r))}},passUserSegments:xe,passCookieConsents:Pe,passUserState:Ae}}()}),pn.offer=pn.container.resolve("offer");var Ci=function(){var e,n=pn.container.resolve("jqUtils"),t=pn.container.resolve("util"),r=pn.container.resolve("postmessage"),o=pn.container.resolve("offer"),i=pn.container.resolve("user"),a=pn.container.resolve("containerUtils"),s=pn.container.resolve("pianoId"),c=pn.container.resolve("logging"),u=pn.container.resolve("microsoftQuickAuth"),l=pn.container.resolve("acp"),d={},p=!1,f={loginRequired:[],loginSuccess:[],autoRenewalDisabled:[],subscriptionCancellation:[]},m=function(){return pn.getEndpointRoot()+"/checkout/myaccount/show"},v=function(e,n){e.element.style.height=(e.config.maxHeight?Math.min(n.height,e.config.maxHeight):n.height)+"px",e.container.style.height=(e.config.maxHeight?Math.min(n.height,e.config.maxHeight):n.height)+"px",e.element.style.width=n.width+"px","modal"===e.config.displayMode&&(e.container.style.width=n.width+"px"),r.send("resized",{height:e.config.maxHeight?Math.min(n.height,e.config.maxHeight):n.height,width:n.width},e.iframeId)},g=function(t,r,i){return function(){e&&(n.removeClass("tp-active",e),o.hideBackdrop(),window.setTimeout((function(){n.remove(e)}),250),r.result=i,t(r))}},h=function(e){var t=n.winSize();e.offsetHeight>t.height?(!1===p&&(e.style.position="absolute",p=!0),e.style.marginTop=window.scrollY-.5*t.height+""):(!0===p&&(e.style.position="fixed",p=!1),e.style.marginTop=0-.5*e.offsetHeight+""),o.centerBackdrop(e),e.style.marginLeft=0-.5*e.offsetWidth+""},y=function(t,i){!function(t,r){var i=document.createElement("div");n.addClass("tp-modal",i);var a=document.createElement("div");n.addClass("tp-close",a);var s=document.createElement("div");n.addClass("tp-message",s),i.style.width=(t.width?t.width:400)+"px",s.innerHTML=t.message;var c=document.createElement("div");n.addClass("tp-btn-container",c);var u=document.createElement("button");n.addClass("tp-btn",u),n.addClass("tp-ok-btn",u),u.innerHTML=t.ok?t.ok:"Ok";var l=document.createElement("button");n.addClass("tp-btn",l),n.addClass("tp-cancel-btn",l),l.innerHTML=t.cancel?t.cancel:"Cancel",n.on(a,"click",g(r,t,"cancel")),n.on(l,"click",g(r,t,"cancel")),n.on(u,"click",g(r,t,"ok")),n.append(i,a),n.append(i,s),n.append(c,u),n.append(c,l),n.append(i,c),n.append(document.body,i),o.showBackdrop(),n.addClass("tp-active",i),h(i),e=i}(i.params,(function(e){r.send("closeDialog",e,d[i.sender].iframeId)}))},w=function(e,n){f[e]=f[e]||[],f[e].push(n)},_=function(e,n,o){if(t.debug("received event: "+e,n),void 0!==f[e]){for(var i=0;i<f[e].length;++i){t.debug("firing callback for event: "+e);var a=f[e][i](n);n&&n.resultCallbackId&&(n.result=a,n.event=e,r.send("resultCallback",n,o))}!f[e].length&&n&&n.resultCallbackId&&(n.callbackNotFound=!0,n.event=e,r.send("resultCallback",n,o))}},b=function(e){switch(t.log("*** My account event received",e.event,e.params),e.event){case"resize":t.debug("*** Resize event",e.params.width,e.params.height),v(d[e.sender],e.params),"modal"===d[e.sender].config.displayMode&&h(d[e.sender].container);break;case"loaded":var o=d[e.sender];r.send("initMaxHeight",{height:o.config.maxHeight},o.iframeId),pn.offer.passCookieConsents(o),pn.offer.passUserSegments(o),pn.offer.passUserState(o),v(o,e.params),"pianoId"===i.getProvider().name&&s.__protected__.executePostMessagesBatch(),"modal"===o.config.displayMode&&window.setTimeout((function(){n.addClass("tp-active",o.container),h(o.container)}),25),c.setTime("myAccountShow",Math.floor(performance.now()-o.config.initTime));break;case"cancel":case"complete":case"error":case"loginRequired":case"customEvent":case"completeUpgradePurchase":_(e.event,e.params,e.sender);break;case"openDialog":y(e.event,e);break;case"pianoIdProfileUpdated":s.onProfileUpdate(e.params,(function(){var n=e.params;n&&n.resultCallbackId&&r.send("resultCallback",n,e.sender);var t={userToken:e.params.token,user:e.params.user};k(t)}));break;case"extendedUserLoginRequired":s.onExtendedUserLoginRequired();break;case"loginSuccess":i.getProvider().onLoginSuccess(e.params);var a={reloadAfterLogin:!0,userToken:e.params.user_token,user:e.params.user};k(a),_(e.event,e.params,e.sender);break;case"logout":i.logout((function(){var e={};e.userProvider=i.getProvider().getName(),e.userToken=i.getProvider().getToken()&&i.getProvider().getToken().length>0?i.getProvider().getToken():"",k(e)})),_(e.event,e.params,e.sender);break;case"userProfileUpdateSuccess":var u=e,p=u.event,f=u.params,m=u.sender;i.getProvider().onLoginSuccess(f);var g={userProvider:f.user_provider,userToken:f.user_token};for(var w in k(g),_(p,f,m),d)if(d.hasOwnProperty(w)){var b=d[w].config;b.hasOwnProperty("userToken")&&delete b.userToken,S(b)}break;case"langChangedWithinMyAccount":s.isConfigured()&&s.updateLang(e.params.lang);break;case"requestScrollData":C(e.sender);break;case"downForMaintenance":v(d[e.sender],{width:300,height:200});break;case"removeQueryParamByName":Array.isArray(e.params.paramsToRemove)&&e.params.paramsToRemove.forEach((function(e){t.removeQueryParamByName(e)}));break;case"getTrackingData":r.send("getTrackingDataResponseEvent",{pageViewId:pn.main.fetchPageViewId(),tbc:t.getTbcCookie()},e.sender);break;case"redirect":document.location.href=e.params.url;break;case"getTemplateInteractionConfig":l.sendTemplateInteractionActive(d[e.sender].config);break;case $o.autoRenewalDisabled:case $o.subscriptionCancellation:l.handleAcpEvent(_,e,d[e.sender].config,!0);break;default:return void t.log("Received invalid event type: "+e.event)}},k=function(e){r.broadcast("reloadOffer",e)},C=function(e){var n=d[e].element.getBoundingClientRect(),t={iframeRect:{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}};r.send("returnScrollData",t,e)};function I(e){e.initTime=performance.now();var o={widget:"myaccount"};if(pn.staticDomain&&(o.staticDomain=pn.staticDomain),e.templateId&&(o.templateId=e.templateId),void 0===e.displayMode)e.displayMode="inline";else if("modal"!==e.displayMode&&"inline"!==e.displayMode)return void t.log("Invalid offer displayMode; must be one of: modal, inline");if(o.displayMode=e.displayMode,o.iframeId=t.randomString(16),o.url=window.location.href,o.initialWidth=e.width,o.initialHeight=e.height,o.maxHeight=e.maxHeight,o.v3ApiEndpoint=pn.getApiEndpoint(),i.getProvider().getName()===s.getName()&&s.__protected__.isSssEnabled()){var c=s.__protected__.getSssParams();o.piano_id_sss_mode=c.sss_mode,o.piano_id_sss_callback_url=c.sss_callback_url,o.piano_id_sss_origin_url=c.sss_origin_url}if(pn.locale&&(o.lang=pn.locale),!pn.janrain.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(!pn.gigya.isConfigured()||void 0!==e.loginRequired&&e.loginRequired)if(pn.pianoId.isConfigured()){y=e;if(pn.pianoId.setCallbacks({loggedIn:function(n){var t;o.userToken!==n.token&&(e.loginSuccess&&(t=e.loginSuccess(n)),(void 0===t||t)&&(y.userToken=n.token,S(y)))},loggedOut:function(){var e={};e.userProvider=i.getProvider().getName(),e.userToken=i.getProvider().getToken()&&i.getProvider().getToken().length>0?i.getProvider().getToken():"",k(e)}}),null!==pn.pianoId.getToken()&&u.clearConfirmationParameters(),void 0===e.loginRequired||!e.loginRequired){var l=0;e.loginRequired=function(){if(++l>10)t.log("Too many attemps to login for myAccount");else{var e=t.getQueryParamByName("verification_code"),n=t.getQueryParamByName("internal_redirect_uri"),r=t.getQueryParamByName("response_id"),o=n&&r,i=pn.pianoId.__protected__,a=i.isGmSso,s=i.isGmSsoRedirectEnabled;!(a()&&s()||o)?pn.pianoId.show({verificationCode:e}):pn.pianoId.init()}}}o.pianoIdUrl=pn.pianoId.getIframeUrl();var p=pn.pianoId.getLang();p&&(o.lang=p),pn.pianoId.onLangChange((function(e){r.send("langChanged",{lang:e},o.iframeId)}),o.iframeId)}else pn.pianoIdLite.isConfigured()&&(o.pianoIdUrl=pn.pianoId.getIframeUrl());else{g=[];pn.gigya.registerCallback("onHide",(function(){a.activateContainers(g),t.doneCall("myAccountLogin")})),e.loginRequired=function(){var n=e;t.waitCall("refreshAccessTokenList",(function(){t.waitCall("offerCreate",(function(){t.startCall("myAccountLogin"),g=a.hideModalContainer(),pn.gigya.login((function(t){var r;e.loginSuccess&&(r=e.loginSuccess(t)),(void 0===r||r)&&(n.userToken=t.user_token,S(n))}))}))}))}}else{var g=[],y=e;pn.janrain.addEventHandler("onModalClose",(function(){a.activateContainers(g),t.doneCall("myAccountLogin")})),pn.janrain.registerCallback("userChanged",(function(n){var t;n&&n.user_token&&(e.loginSuccess&&(t=e.loginSuccess(n)),(void 0===t||t)&&(y.userToken=n.user_token,S(y)))})),pn.janrain.addEventHandler("onCaptureSessionEnded",(function(n){var t;e.loginSuccess&&(t=e.loginSuccess(n)),(void 0===t||t)&&(y.userToken=null,S(y))})),e.loginRequired=function(){return t.waitCall("refreshAccessTokenList",(function(){t.waitCall("offerCreate",(function(){t.startCall("myAccountLogin"),g=a.hideModalContainer(),pn.janrain.login()}))})),!1}}return new Promise((function(s){t.waitCall("refreshUserToken",(function(){var c,u={};if("inline"===e.displayMode){if(!e.containerSelector)return void t.log("My account must have a valid containerSelector");if(!(c=n.queryEl(e.containerSelector)))return void t.log("My account must have a valid containerSelector");o.width=n.getWidth(c)}else c=function(){var e=document.createElement("div");n.addClass("tp-modal",e);var t=document.createElement("div");return n.addClass("tp-close",t),n.append(e,t),n.append(document.body,e),e}();var l=t.getPageViewContext(),p=l.pageTitle,g=l.pageViewId;for(var y in o.pageViewId=g,o.tbc=t.getTbcCookie(),o.browserId=t.getBrowserId(),o.contentType=t.getPageViewContext().contentType,o.pageTitle=p,o.userState=t.getUserState(),o.userProvider=i.getProvider().getName(),e.userToken?o.userToken=e.userToken:o.userToken=i.getProvider().getToken(),f)"function"==typeof e[y]&&(t.debug("Registering "+y+" callback for iframe "+o.iframeId),w(y,e[y]));o.aid=pn.aid,pn.isSensitiveDataProtectionEnabled&&(u={userToken:o.userToken,iframeId:o.iframeId},delete o.userToken);var _=m()+"?"+n.param(o),k=document.createElement("iframe"),C={scrolling:"no",allowtransparency:"true",name:o.iframeId,id:o.iframeId,allow:"payment"};pn.isSensitiveDataProtectionEnabled||(C.src=_),Object.keys(C).forEach((function(e){n.setAttr(e,C[e],k)}));var I={overflow:"hidden",border:"0",height:"0"};if("inline"===e.displayMode?I.width=o.width+"px":I.width=0,Object.keys(I).forEach((function(e){k.style[e]=I[e]})),d[o.iframeId]={iframeId:o.iframeId,config:e,element:k,container:c,containerWidth:n.getWidth(c),containerHeight:n.getHeight(c)},r.init({postMessageUrl:m(),receive:b,iframe:d[o.iframeId]}),n.on(window,"keyup",(function(e){})),"modal"===e.displayMode&&n.on(window,"resize",(function(){h(c)})),"modal"===e.displayMode?h(c):n.empty(c),pn.isSensitiveDataProtectionEnabled){u.iframeSrc=_;var S=a.getForm(u);n.append(c,k),n.append(c,S),S.submit()}else n.append(c,k);if(n.on(window,"resize",(function(){!function(){for(var e in d){var t=d[e],o=!1,i=n.getWidth(t.container);i!==t.containerWidth&&(t.element.style.width=i+"",t.containerWidth=i,o=!0);var a=n.getHeight(t.container);a!==t.containerHeight&&(t.element.style.height=a+"",t.containerHeight=a,o=!0),o&&r.send("resize",{width:i,height:a},e)}}()})),"inline"===e.displayMode&&window.ResizeObserver){var E=new ResizeObserver((function(e){var t=n.getWidth(c);t>0&&v(d[o.iframeId],{width:t})}));E.observe(c),d[o.iframeId].resizeObserver=E}pn.offer&&pn.offer.registerCallback("complete",(function(){r.send("refreshNow",{},o.iframeId)})),s(d[o.iframeId])}))}))}var S=function(e){t.waitCall("offerCreate",(function(){t.waitCall("refreshAccessTokenList",(function(){var n;null===(n=I(e))||void 0===n||n.then((function(e){e||t.log("Could not initialize my account; check configuration")}))}))}))};return{name:"myaccount",show:S,registerCallback:w}}();pn.container.register("myaccount",{useValue:Ci}),pn.myaccount=pn.container.resolve("myaccount");var Ii=function(){var e="This functionality is deprecated and code will be deleted soon, get rid of its usage";return{name:"meter",init:function(n){console.warn(e)},isExpired:function(){return console.warn(e),!1},isExpiredNextClick:function(){return console.warn(e),!1},checkMeter:function(n){console.warn(e)},showCurtain:function(n){console.warn(e)},last:function(){return console.warn(e),{}},registerCallback:function(e,n){}}}();pn.container.register("meter",{useValue:Ii}),pn.meter=pn.container.resolve("meter");var Si=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("sha1"),t="",r=function(){var e="";return["ShockwaveFlash.ShockwaveFlash.6","ShockwaveFlash.ShockwaveFlash.7","SWCt1.SWCt1.9","SWCtl.SWCtl","Adobe.SVGCtl","WMPlayer.OCX","AgControl.AgControl","AcroPDF.PDF","PDF.PdfCtrl","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealPlayer","Skype.Detection","3dmlw.IEPlugin","GoogleTalk.Plugin","GoogleTalk.Plugin.1"].map((function(n){try{new window.ActiveXObject(n),e+=n+"|"}catch(e){}})),e},o=function(){if(t)return t;var o=function(){try{var e;return e=window.navigator.userLanguage||window.navigator.language,(new Date).getTimezoneOffset()+":"+e}catch(e){return""}}();return o+=function(){if(window.ActiveXObject)return r();try{var e="",n=navigator.plugins.length;if(n>0)for(var t=0;t<n;t++)e+=navigator.plugins[t].name+"|";return e}catch(e){return""}}(),o+=function(){try{return screen.height+"x"+screen.width+"+"+screen.colorDepth}catch(e){return""}}(),o+=navigator.userAgent,o+=function(){var e="";try{e+=document.getElementById?1:0,e+=window.getComputedStyle?1:0,e+=screen.globalStorage?1:0,e+=window.localStorage?1:0,e+=window.sessionStorage?1:0,e+=document.getElementsByClassName?1:0,e+=document.querySelector?1:0,e+=document.all?1:0,e+=window.attachEvent?1:0,e+=window.createPopup?1:0,e+=window.XMLHttpRequest?1:0,e+=window.ActiveXObject?1:0,e+=window.XDomainRequest?1:0,e+=window.msPerformance?1:0,e+=document.documentMode?1:0,e+=navigator.cpuClass?1:0,e+=navigator.browserLanguage?1:0,e+=window.opera?1:0,e+=window.chrome?1:0}catch(e){}return e}(),t=n.hash(o),e.debug("Current browser fingerprint is: "+t),t};return o(),{name:"fingerprint",getFingerprint:o}}();pn.container.register("fingerprint",{useValue:Si}),pn.fingerprint=pn.container.resolve("fingerprint");var Ei=function(){var e,n=pn.container.resolve("jqUtils"),t=0,r=0,o=200,i=0,a=[];n.on(window,"scroll",(function(){c()}));var s=function(){var e=n.scrollTop();e>i&&(i=e)},c=function(){s(),l()},u=function(e){if(e.consumeEventFn()){if("pixels"===e.measureType)return e.position<=i;if("percentage"===e.measureType)return i/(t-n.winSize().height)>=e.position/100}},l=function(){for(var e,n=[],t=[],r=0;r<a.length;r++)e=a[r],u(e)?n.push(e):t.push(e);a=t;for(r=0;r<n.length;r++)n[r].callback()};return{name:"scrollDepth",initialize:function(i){var a=document;i&&i>0&&(o=i||o);!function i(){var s=a.body||{},c=a.documentElement||{},u=Math.max(s.scrollHeight,c.scrollHeight,s.offsetHeight,c.offsetHeight,s.clientHeight,c.clientHeight);u>t&&(t=u);var l=n.scrollTop()+n.winSize().height;l>r&&((r=l)>t&&(t=r)),e&&clearTimeout(e),e=setTimeout(i,o)}()},getMaxScrollDepth:function(){return r},getMaxDocumentHeight:function(){return t},addListener:function(e,n,t){"function"!=typeof t&&(t=function(){return!0}),a.push({callback:e,position:n.scrollDepth,measureType:n.measureType,repeat:"once",consumeEventFn:t}),s(),l()},removeListeners:function(){a=[]},clearMaxScrolledPosition:function(){i=0,r=0,t=0}}}();pn.container.register("scrollDepth",{useValue:Ei}),pn.scrollDepth=pn.container.resolve("scrollDepth");var Ti=function(){var e,n=pn.container.resolve("util"),t=pn.container.resolve("jqUtils"),r=!1,o=[],i=200;function a(){r||(r=!0,t.on(document,"mousemove",(function(){return c()})),t.on(document,"keypress",(function(){return c()})),t.on(window,"scroll",(function(){return c()})))}function s(){o.length&&function(){for(var e,t,r,i=[],a=[],s=Date.now(),c=0;c<o.length;c++)e=o[c],t=s-e.startTime,r=!1,t>=e.idleTime&&(e.consumeEventFn()?r=!0:e.startTime=s),r?i.push(e):a.push(e);i.length&&n.debug("idle: run fire"),o=a;for(c=0;c<i.length;c++)(e=i[c]).callback()}(),e&&clearTimeout(e),o.length&&(e=setTimeout((function(){return s()}),i))}function c(){for(var n=Date.now(),t=0;t<o.length;t++)o[t].startTime=n;clearTimeout(e),o.length&&(e=setTimeout((function(){return s()}),i))}return{name:"idle",initialize:a,addListener:function(n,t,r){a(),"function"!=typeof r&&(r=function(){return!0}),o.push({callback:n,idleTime:1e3*t,startTime:Date.now(),consumeEventFn:r}),e||(e=setTimeout((function(){return s()}),i))},removeListeners:function(){o=[]}}}();pn.container.register("idle",{useValue:Ti}),pn.idle=pn.container.resolve("idle");var Pi=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("jqUtils"),t=[];return{name:"interaction",bind:function(r,o,i){var a=function(e){for(var n={click:"click",doubleClick:"dblclick",rightClick:"contextmenu",mouseOut:"mouseout",mouseIn:"mouseover"},t=[],r=0;r<e.length;r++){var o=e[r];t.push(n[o])}return t};"function"!=typeof i&&(i=function(){return!0}),e.__protected__.documentReady((function(){for(var e=0;e<o.length;e++){var s=o[e],c=a(s.elementActions).join(" "),u=s.elementSelector,l=s.repetitive;c.trim().length&&function(e,o,a){var s=function(){!i()||(a||n.undelegate(document.body,e),r())};n.delegate(document.body,e,o,s),t.push({action:c,selector:u,func:s})}(u,c,l)}}))},unbindAll:function(){t.forEach((function(e){n.undelegate(document.body,e.selector)})),t=[]}}}();pn.container.register("interaction",{useValue:Pi}),pn.interaction=pn.container.resolve("interaction");var xi=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("containerUtils"),r=function(e){return"inline"===e.displayMode},o=function(e){return"modal"===e.displayMode};return{name:"recWidgetService",__protected__:{getInstance:function(){var i,a=[];function s(n){var s=n||{},c=s.widget||{};r(c.config)?e.empty(c.container):o(c.config)&&(function(n){if(i){t.closeModal(i),e.empty(i.container);var r=t.__private__.mobileModalFix;r.isIphoneCaretFixed&&r.modalClosed(),i=null}}(),e.remove(c.container)),!s.skipOnclose&&e.isFunction(c.onclose)&&c.onclose(),s.experienceActionId&&s.experienceId&&window.postMessage(JSON.stringify({event_name:"piano_frequency_event",event_type:"close_click",experience_Id:s.experienceId,experience_action_Id:s.experienceActionId}),"*"),a=a.filter((function(e){return e.uuid!==c.uuid}))}function c(e){return a.filter((function(n){return e===n.widgetId}))[0]}return{showRecommendation:function(u){var l=u.widgetConfig||{},d=u.createPlaceholderFn,p=l.widgetId;if(!p)throw new Error("widgetId should be specified");if(c(p))n.log("widget with id "+l.widgetId+" already initialize");else if(o(l)&&i)n.log("modal widget already shown");else{var f=function(t){var r=e.queryEl(t.containerSelector),o="widget-id-"+n.randomString(),i={singleContainer:r||void 0,displayMode:t.displayMode||"modal",showCloseButton:t.showCloseButton,iframeParams:{iframeId:o,containerSelector:t.containerSelector,width:t.width,height:t.height}};return{uuid:o,widgetId:t.widgetId,placeholder:t.placeholder,trackingId:t.trackingId,config:i}}(l),m=f.config,v=d();if(f.container=function(e,n){var i;return r(e)?i=t.initInlineContainer(e).container:o(e)&&(i=t.getModalContainer(e,(function(){n instanceof Function&&n()}))),i}(m,(function(){s({widget:f,experienceId:l.experienceId,experienceActionId:l.experienceActionId})})),f.container)return e.append(f.container,v),f.element=v,o(m)&&(i=f),function(n,t){void 0===t&&(t={}),Object.keys(t).forEach((function(r){e.isFunction(t[r])&&(n[r]=t[r](n))}))}(f,u.widgetCallbacks),a.push(f),f;n.log('widget has invalid selector "'.concat(m.iframeParams.containerSelector,'"'))}},fireWidgetCallback:function(n,t,r){a.forEach((function(o){if(o.widgetId===t.toString()){var i=o["on"+n];e.isFunction(i)&&i(r)}}))},findWidget:c,clearWidgets:function(){a=[],i=null},closeWidget:s,fixWidgetModalWidth:function(n,r){if(!n||o(n.config)){var i=n.container,a=r?e.queryEl("iframe",i):e.queryEl(".tp-widget-placeholder",i);t.checkBackdropAndContainer(n,!0,!0),setTimeout((function(){a&&t.__protected__.setElementSizes(i,{width:e.getWidth(a)})}),100)}}}},insertWidgetLib:function(n){var t=document.getElementsByTagName("script")[0],r=document.createElement("script");n.id&&r.setAttribute("id",n.id),e.isFunction(n.onerror)&&(r.onerror=n.onerror),e.isFunction(n.onload)&&(r.onload=n.onload),n.defer&&(r.defer=!0),r.type="text/javascript",r.src=n.src,t&&t.parentNode&&t.parentNode.insertBefore(r,t)}}}}();pn.container.register("recWidgetService",{useValue:xi}),pn.recWidgetService=pn.container.resolve("recWidgetService");var Ai=function(){pn.container.resolve("predefinedOptions");return{testPianoOption:""}}();pn.container.register("piano",{useValue:Ai});var Oi,Ni=pn.container.resolve("piano");for(Oi in Ni)pn[Oi]=Ni[Oi];pn.container.register("pianoEsp",{useValue:function(e){void 0===e&&(e=pn.container);var n,t=e.resolve("util"),r=e.resolve("user"),o=(e.resolve("api"),e.resolve("jqUtils")),i=e.resolve("consent"),a=e.resolve("analytics"),s=e.resolve("recWidgetService"),c="__pnml",u="_pnpd",l={granted:"ALLOWED",default:"UNKNOWN",denied:"FORBIDDEN"},d=s.__protected__.getInstance();function f(){return new Promise((function(e,n){window.PianoESPConfig=p(p({},window.PianoESPConfig||{}),{onload:e,widget_init_on_event:{rec:!0,"opt-in":!1},onclick:function(e){d.fireWidgetCallback("click",e.widgetId,e)},onwidgetinit:function(e){d.fireWidgetCallback("init",e.widgetId,e)},onrecsloaded:function(e){d.fireWidgetCallback("recsloaded",e.widgetId,e)}}),t.debug("pianoESP: loading PianoESP with config:",window.PianoESPConfig),s.__protected__.insertWidgetLib({id:"pnesplucidsdksel",src:h()+"/public/sdk/v04/sdk.js?v="+(localStorage&&localStorage.lucidsdkver||"xxx"),onerror:n})}))}function m(){return n||(n=new Promise((function(e,n){var t,r=function(){return e(null)};if(null!==(t=window.PianoESPConfig)&&void 0!==t&&t.id)f().then(r,n);else var o=0,i=setInterval((function(){var e;return null!==(e=window.PianoESPConfig)&&void 0!==e&&e.id?(f().then(r,n),void clearInterval(i)):o>=5e3?(clearInterval(i),void n()):void(o+=500)}),500)})))}setTimeout((function(){pn.addHandler("logout",(function(){b([])}));var e=r.getProvider();e.registerCallback&&e.registerCallback("logout",(function(){b([])}))}),300);var v,g,h=function(){var e="//api-esp.piano.io";return pn.espEndpoint?e=pn.espEndpoint.replace(/^http[s]*:/,""):pn.isSandbox()&&(e="//sandbox-api-esp.piano.io"),("https:"===window.location.protocol?"https:":"http:")+e},y=function(e,n){m().then((function(){window.PianoESP.getCurrentPushState().then((function(e){"prompt"===e&&a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"showPrompt"}})})),window.PianoESP.subscribeToPushSquads([e]).then((function(r){var o=r||{};!0===o.result?(t.setPushListsCookie(e),t.debug("pianoESP: Push notification was set:",o),a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"enrollPushCampaign"}})):!1===o.result&&("closed"===o.reason?a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"closePrompt"}}):a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n,eventGroupId:"declineEnrollPushCampaign"}}))})).catch((function(e){t.log("pianoESP: Push notification error:",e)}))}))},w=(v=function(){return t.deleteCookie(u,pn.cookieDomain,pn.cookiePath)},g=function(){return t.__protected__.getCookie(u)||null},setTimeout((function(){var e=g();!e||_()!==e&&v()}),100),{block:function(){var e=_();"denied"!==e?t.__protected__.setCookieConsent("composer",u,e,function(){var e={expires:730,path:"/"};return pn.cookieDomain&&(e.domain=pn.cookieDomain),pn.cookiePath&&(e.path=pn.cookiePath),e}()):v()},reset:v,get:g}),_=function(){return window.Notification?window.Notification.permission:"default"},b=function(e){try{var n=JSON.stringify(e);i.composer?i.composer.localStorage.set(c,n):localStorage.setItem(c,n)}catch(e){t.debug("can't save mailing lists to storage",e)}},k=function(){var e=[];try{var n=localStorage.getItem(c);if(!n)return[];if(e=JSON.parse(n),!Array.isArray(e))throw new Error("MAINLING_LIST should be array")}catch(e){t.debug("can't load mailing lists from storage",e)}return e||[]};var C=function(e){return function(){var n=document.createElement("pnespwgtplaceholder");return o.setAttr("holdername",e,n),n}};function I(){return{onrecsloaded:function(e){return function(n){0!==n.countOfRecs?(d.fixWidgetModalWidth(e,!0),a.log.event({eventType:Bo.LOG_ESP_MICRO_CONVERSION,payload:{trackingId:e.trackingId,espWidgetId:e.widgetId,eventGroupId:"init",eventType:Fo.EXTERNAL_EVENT}}),t.debug("creating recommendation widget: ",e.config)):d.closeWidget({widget:e,skipOnclose:!0})}},onclick:function(e){return function(n){var t={href:n.url};a.log.event({eventType:Bo.LOG_ESP_MICRO_CONVERSION,payload:{trackingId:e.trackingId,espWidgetId:e.widgetId,eventGroupId:"click",eventType:Fo.EXTERNAL_LINK,customParams:t}})}},onclose:function(e){return function(){a.log.event({eventType:Bo.LOG_ESP_MICRO_CONVERSION,payload:{trackingId:e.trackingId,espWidgetId:e.widgetId,eventGroupId:"close",eventType:Fo.EXTERNAL_EVENT,customParams:{event:"widgetClosed"}}})}}}}return{name:"pianoEsp",__protected__:{init:m,setVisitorId:function(e){window.PianoESPConfig=Object.assign({},window.PianoESPConfig,{visitor:e})},showRecommendation:function(e){var n=I();return d.showRecommendation({widgetConfig:e,widgetCallbacks:n,createPlaceholderFn:C(e.placeholder)}),m().then((function(){window.PianoESP.initWidget(parseInt(e.widgetId))}))},showPushSignup:function(e){var n=e||{};n.templateId?(a.log.event({eventType:Bo.LOG_CUSTOM_FORM_IMPRESSION,payload:{trackingId:n.trackingId,formName:"pushSignup",source:"show_form"}}),pn.template.show(p(p({},n),{customEvent:function(e){switch(e.eventName){case"push-allow":a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n.trackingId,eventGroupId:"allowSoftEnrollPushCampaign"}}),w.reset(),y(n.pushListId,n.trackingId);break;case"push-dont-allow":a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n.trackingId,eventGroupId:"declineSoftEnrollPushCampaign"}}),w.block();break;case"push-close":a.log.event({eventType:Bo.LOG_MICRO_CONVERSION,payload:{trackingId:n.trackingId,eventGroupId:"close"}}),w.block()}}}))):y(n.pushListId,n.trackingId)},getNotificationStatus:function(){var e=w.get()?l.denied:null,n=_();return e||l[n]},showNewsletterSignup:function(e){if(e&&e.mailingListIds){var n=k().indexOf(e.mailingListIds)>-1;e.notShowIfFilled&&n?t.log("Mailing list with ids "+e.mailingListIds+" already shown"):pn.template.show(e)}else t.log("mailingListIds should be specified")},offerMessageReceiver:function(e){if("newsletterSignupSubmission"===e.event){var n=k();-1===n.indexOf(e.params.mailingListIds)&&(n.push(e.params.mailingListIds),b(n))}},loadCompleteMailingLists:k},__private__:{removeWidgetsAndSdk:function(){d.clearWidgets(),n=null,delete window.PianoESP},getWidgetCallbacks:I,onInit:function(e){!n||"function"==typeof e&&n.then(e)}}}}()}),pn.pianoEsp=pn.container.resolve("pianoEsp");var Mi=function(){var e,n=pn.container.resolve("postmessage"),t=pn.container.resolve("user"),r=pn.container.resolve("util"),o=pn.container.resolve("eventUtils"),i=pn.container.resolve("containerUtils"),a="externalCheckoutComplete",s="loginPrompt",c="deferredAccountCreation",u="buy",l=o.createEventManager([a]),d="__gom",p=!1,f=!1,m=!1,v=[];window.SWG=window.SWG||[],window.SWG.push((function(n){n.setOnPaymentResponse((function(t){f||(r.debug("swg: onPaymentResponse is triggered"),f=!0,t.then((function(t){r.debug("swg: onPaymentResponse",t),e&&C(t,t.purchaseData,t.userData,n,e,u)})).catch((function(e){r.log("swg: onPaymentResponse failed",e)})))}))})),n.subscribe("swgCheckoutStart",(function(n){p||r.log("swg: incorrect SwG configuration. Please make sure that Experience user segment is configured properly. Details at https://docs.piano.io/subscribe-with-google/#SwGscript");var t=n.params.sku;e=n.params.termId,window.SWG.push((function(e){e.subscribe(t)}))}));var g=function(e){if(l.hasCallback(a)){var n={type:"swg",flow:e};l.fireCallbacks(a,n,void 0,!0)}},h=function(e){for(var n=!1,t=v.reduce((function(e,n){return e.concat(n.products)}),[]),r=0;r<e.length;r++)if(-1===t.indexOf(e[r])){n=!0;break}return n},y=function(e){if(p&&!m){var n=e||t.getProvider().getToken();!n||(m=!0,function(e){var n="/swg/sync";return"piano_id_lite"===t.getProvider().getName()&&(n+="/external"),new Promise((function(t,r){pn.api.callApi(n,{aid:pn.aid,access_token:e},(function(e){var n;0!==e.code&&r(),t(null!==(n=e.SwgResponse)&&void 0!==n?n:{products:[]})}))}))}(n).then((function(e){return e.products&&h(e.products)})).then((function(e){e&&function(e){window.SWG.push((function(n){n.saveSubscription((function(){return{token:e}})).then((function(e){!e&&r.log("swg: save subscription process was stopped")}))}))}(n),m=!1})).catch((function(e){r.log("swg: save subscription flow failed with error - ",e),m=!1})))}},w=function e(){y(),n.unsubscribe("purge",e)},_=function(){n.subscribe("loginSuccess",(function(e){if(i.hasModalIframe())n.subscribe("purge",w);else{var t=e.params.token||e.params.user_token;y(t)}})),n.subscribe("purge",(function(e){e.params&&e.params.completePayment&&y()}))},b=function(e){return new Promise((function(n,t){pn.api.callApi("/swg/check",{entitlement:JSON.stringify(e)},(function(e){0!==e.code&&(r.log("swg: check subscription response - "+e.message),t()),n(e.CheckSubscriptionResponse)}))}))},k=function(e){return new Promise((function(n,t){pn.api.callApi("/swg/check/external",{entitlements:JSON.stringify(e)},(function(e){0!==e.code&&(r.log("swg: check external entitlement response - "+e.message),t());var o=e.data;o||(r.log("swg: check external entitlement empty response"),t()),n(o)}))}))},C=function(e,t,o,i,a,s){pn.api.callApi("/swg/subscribe",{term_id:a,purchase_data:JSON.stringify(t),user_data:JSON.stringify(o)},(function(t){if(t){if(0!==t.code)return function(e){e.reset().then((function(){return e.getEntitlements()})).then((function(e){r.debug("swg: reload entitlements - ",e.entitlements)})).catch((function(e){r.debug("swg: entitlements reload failed - ",e)}))}(i),void r.log("swg: subscribe response - "+t.message);t.data&&I(t.data)}else r.log("swg: empty response");n.broadcast("swgCheckoutComplete"),e.complete().then((function(){g(s)})).catch((function(e){r.log("swg: complete failed:",e)}))}))},I=function(e){e&&t.getProvider().loginByToken&&t.getProvider().loginByToken(e)},S=!1,E=!1;return{name:"swg",__protected__:{injectMarkup:function(e){var n;if(!S&&e){r.debug("swg: rendering swg markup with config:",e);var t='{\n "@context": "http://schema.org",\n "@type": "CreativeWork",\n "isAccessibleForFree": '+e.isAccessibleForFree;!1===e.isAccessibleForFree&&e.productId&&(t=t+',\n "isPartOf": {\n "@type": ["CreativeWork", "Product"],\n "name" : "'+e.resourceName+'",\n "productID": "'+e.productId+'"\n }'),e.publisherName&&(t+=',\n "publisher": {\n "@type": "Organization",\n'+' "name": "'.concat(e.publisherName,'"\n')+" }"),t+="\n}";var o=document.createElement("script");o.type="application/ld+json",o.innerHTML=t,null===(n=document.getElementsByTagName("script")[0].parentNode)||void 0===n||n.appendChild(o),S=!0}},addLibrary:function(){var e;if(!E){r.debug("swg: adding swg.js library");var n=document.createElement("script");n.type="text/javascript",n.setAttribute("subscriptions-control","manual"),n.async=!0,n.src="https://news.google.com/swg/js/v1/swg.js",null===(e=document.getElementsByTagName("script")[0].parentNode)||void 0===e||e.appendChild(n),E=!0}},initSwgFlow:function(){window.SWG.push((function(e){e.getEntitlements().then((function(n){if(p=!0,r.debug("swg: getEntitlements",n),n.enablesThis()){var o=n.getEntitlementForSource("google");if(v=n.entitlements,!o)return void(v&&k(v).then((function(){r.debug("swg: checkExternalEntitlement"),n.ack()}),(function(){r.log("swg: checkExternalEntitlement failed")})));b(o).then((function(o){if(f)r.debug("swg: onPaymentResponse is already triggered. Skipping entitlements flow.");else if(o)switch(o.type){case"USER_FOUND":if(t.isUserValid())return void r.error("swg: user found, but not valid");r.debug("swg: user found, initiate login prompt");var i=o.user_token;if(function(e){return r.__protected__.getCookie(d)&&r.__protected__.getCookie(d).includes(e)}(o.type))return;e.showLoginPrompt().then((function(){I(i),g(s)})).catch((function(e){(function(e){r.__protected__.setCookieConsent("vx",d,e,{expires:30,path:"/"})})(o.type),r.log("swg: showLoginPrompt failed",e)}));break;case"TERM_FOUND":r.debug("swg: term found, initiate deferred account creation");var a=o.term_id;e.completeDeferredAccountCreation({entitlements:n,consent:!0}).then((function(n){r.debug("swg: completeDeferredAccountCreation",n),C(n,n.purchaseData,n.userData,e,a,c)})).catch((function(e){r.log("swg: completeDeferredAccountCreation failed",e)}));break;default:r.debug("swg: check subscription response type "+o.type+". Nothing to do")}}),(function(){r.log("swg: checkSubscription failed")})),n.ack()}})).catch((function(e){r.log("swg: get entitlements failed",e)}))})),_()}},registerCallback:function(e,n){l.addEvent(e),l.registerCallback(e,n)}}}();pn.container.register("swg",{useValue:Mi}),pn.swg=pn.container.resolve("swg");var Ri=function(){var e=pn.container.resolve("util"),n=pn.container.resolve("analytics"),t=pn.container.resolve("offer"),r=pn.container.resolve("user"),o=pn.container.resolve("api"),i=!1,a="",s={},c={};function u(n){return new Promise((function(t){var i={aid:pn.aid,rid:"",account_linking_token:e.getQueryParamByName("account_linking_token"),user_token:r.getProvider().getToken(),user_provider:r.getProvider().getName()};n&&(i.rid=n),o.callApi("/fbia/subscriptionPayload/generate",i,(function(e){e&&e.data&&(a=e.data),t(null)}))}))}var l=function(){u().then((function(){a&&p()}))},d=function(n){if(n){var t=new Promise((function(e){setTimeout((function(){e(null)}),1e3*pn.redirectToFbTimeout)})),r=u(n);e.__protected__.waitAllPromises([t,r]).then((function(){p()}))}else e.error("fbsubscriptions: 'rid' could not be empty on generating subscription payload")},p=function(){var n=e.getQueryParamByName("account_linking_token"),t=e.getQueryParamByName("redirect_uri")+"?account_linking_token="+encodeURIComponent(n);a&&(t+="&subscription_payload="+encodeURIComponent(a)),window.location.href=t},f=function(e,t){s[e]||(s[e]=!0,n.fbpixel.event({eventType:zo.TRACK_EVENT,payload:{eventName:e,eventParams:t}}))},m=function(e,t){c[e]||(c[e]=!0,n.fbpixel.event({eventType:zo.TRACK_CUSTOM_EVENT,payload:{eventName:e,eventParams:t}}))},v=function(){return i};return{name:"fbsubscriptions",checkUserAccessAndRedirectToFb:function(){u().then((function(){p()}))},isInitialized:v,__private__:{isInitialized:v},__protected__:{init:function(){if(!i){n.fbpixel.initialize(),t.registerCallback("loaded",(function(){var n=e.getQueryParamByName("surface");("meter_limit_reached"===n||"locked_article"===n)&&!pn.inappBrowserReturn&&m("ViewPaywall",{surface:"IA"})}));pn.addHandler("loginSuccess",(function(e){u().then((function(){e.registration?m("CreateAccount"):m("LogIntoAccount",{is_subscriber:!!a}),a&&setTimeout((function(){p()}),200)}))})),pn.addHandler("experienceExecute",(function(){r.isUserValid()&&l()})),t.registerCallback("alreadyPurchased",(function(e){d(e.rid)})),t.registerCallback("startCheckout",(function(e){f("InitiateCheckout",{offer_code:e.offerId,campaign_code:e.termId})})),t.registerCallback("complete",(function(e){e.hasOwnProperty("chargeCurrency")&&e.hasOwnProperty("chargeAmount")&&f("Purchase",{currency:e.chargeCurrency,value:e.chargeAmount,offer_code:e.offerId,campaign_code:e.termId}),d(e.rid)})),t.registerCallback("close",(function(){p()})),i=!0}}}}}();pn.container.register("fbsubscriptions",{useValue:Ri}),pn.fbsubscriptions=pn.container.resolve("fbsubscriptions");pn.container.register("cxense",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("jqUtils"),t=e.resolve("util"),r=e.resolve("analytics"),o=e.resolve("recWidgetService").__protected__.getInstance(),i=[],a=function(){return void 0!==pn.cxCdnUrl&&""!==pn.cxCdnUrl?pn.cxCdnUrl:"https://cdn.cxense.com"},s=function(){return void 0!==pn.cxenseSiteId&&""!==pn.cxenseSiteId},c=function(e){return void 0!==window.cX&&void 0!==window.cX.library&&(e||void 0!==window.cX.CCE&&void 0!==window.cX.CCE.library)},u=function(e){return void 0!==e.cxenseCustomerPrefix&&""!==e.cxenseCustomerPrefix},l=function(e,n){var r,o,i,a="anon",s=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n&&t.debug.apply(t,e)};e.uid&&"anon"!==e.uid&&""!==e.uid&&(a=!(null===(i=null===(o=e.eventExecutionContext)||void 0===o?void 0:o.accessList)||void 0===i||!i.length)?"hasActiveAccess":"registered",s("c1x: adding externalId",{uid:e.uid,prefix:e.cxenseCustomerPrefix}));if(s("c1x: adding CustomParameters userState",{userState:a}),s("c1x: sending pageview event"),"anon"!==a?t.__protected__.setVxUsersToDataLayer(((r={})[e.uid]={prefix:e.cxenseCustomerPrefix||"",type:"VX"},r)):t.__protected__.setVxUsersToDataLayer(null),Mr.set("userStatus",a),n){Mr.set("siteId",pn.cxenseSiteId);var c=window.cX=window.cX||{};c.callQueue=c.callQueue||[],c.callQueue.push(["sendPageViewEvent",{location:pn.customPageUrl||void 0}])}},d=function(e){var n=null,t=[];function r(){n&&clearTimeout(n),n=null,e(t),t=[]}return function(e){n||(n=setTimeout(r,10)),t.push(e)}}((function(e){if(s()){for(var n=[],a=function(){var t=e[c]||{};o.showRecommendation({widgetConfig:t,createPlaceholderFn:p(t.widgetId,t.displayMode)})&&n.push({widgetParams:{widgetId:t.widgetId,targetElementId:"cxense-"+t.widgetId,experienceId:t.experienceId,experienceActionId:t.experienceActionId,trackingId:t.trackingId},widgetCallback:function(e){var n=e&&e.response;if(n&&!e.response.error){"modal"===t.displayMode&&o.fixWidgetModalWidth(o.findWidget(t.widgetId));for(var a=0;a<n.items.length;a++){var s=n.items[a].id;-1===i.indexOf(s)&&i.push(s)}r.log.event({eventType:Bo.LOG_AUTO_MICRO_CONVERSION,payload:{trackingId:t.trackingId,eventGroupId:"init",eventType:Fo.EXTERNAL_EVENT,customParams:{source:"CX"}}})}}})},c=0;c<e.length;c++)a();f((function(){(function(){var e=pn.cxenseSiteId;t.debug("c1x: setting siteId: ",e),window.cX.setSiteId(e)})(),window.cX.CCE.runMulti(n,["id"],i)}))}else t.debug("c1x: can not show recommendation because siteId is not configured using `setCxenseSiteId`")})),p=function(e,t){return function(){var r=document.createElement("div");n.addClass("tp-cxense-placeholder-".concat(t),r),n.addClass("tp-widget-placeholder",r);var o=document.createElement("div");return o.id="cxense-".concat(e),r.appendChild(o),r}},f=function(e){window.cX=window.cX||{},window.cX.CCE=window.cX.CCE||{},window.cX.CCE.callQueue=window.cX.CCE.callQueue||[],window.cX.CCE.callQueue.push(["invoke",e])},m=function(e){return c(e)};return{name:"cxense",__protected__:{showRecommendation:d,clearWidgets:function(){o.clearWidgets()},sendPageViewEvent:function(e){var n=!0;!s()&&!u(e)&&(n=!1),!s()&&u(e)&&(t.debug("cxense: can not send pageview because siteId is not configured using `setCxenseSiteId`"),n=!1),s()&&!u(e)&&(t.debug("cxense: can not send pageview because customer prefix is not configured in app settings"),n=!1),l(e,n)},isActivated:s,isCustomerPrefixConfigured:u,isConfiguredPollingAsync:function(e,n,t){n=n||0,t=t||0;var r=0;return new Promise((function(o,i){m(e)?o(!0):setTimeout((function a(){m(e)?o(!0):r>=t?i(e?"c1x: cX object is not found after "+t+" retries with "+n+"ms interval":"c1x: cX and cX.CCE objects are not found after "+t+" retries with "+n+"ms interval"):(r++,setTimeout(a,n))}),n)}))},invokeCxenseFn:f,getC1XIntegrationVersion:function(){return void 0!==pn.c1XIntegrationVersion&&""!==pn.cxenseSiteId?pn.c1XIntegrationVersion:"N/A"},loadCxLibIfNeeded:function(){var e="cxLibLoading";t.waitCall(e,(function(){var n;if(!s()||!c(!0)){t.startCall(e);var r,o=document.getElementsByTagName("script")[0],i=document.createElement("script");i.onerror=function(n){r&&clearTimeout(r),t.doneCall(e),t.debug("c1x: error during load of cx.js. ",n)},i.onload=function(){r=setTimeout((function(){t.doneCall(e)}),500),t.debug("c1x: cx.js has been successfully loaded")},i.async=!0,i.type="text/javascript",pn.c1XLoadCce?i.src=a()+"/cx.cce.js":i.src=a()+"/cx.js",t.debug("c1x: start loading cx.js on the page..."),null===(n=o.parentNode)||void 0===n||n.insertBefore(i,o)}}))}}}}()}),pn.cxense=pn.container.resolve("cxense");var Li,Ui,Di,ji,Vi,Fi=p({1:"autoRenewalDisabled",2:"subscriptionCancellation",3:"dismissTemplate",4:"customEvent"},{5:"customFormSubmitted",6:"customFormSubmitted",7:"customFormClosed"}),Bi="templateInteractionEvent",qi="formInteractionEvent",zi="executeTemplateInteraction",Hi="/xbuilder/experience/"+zi,Wi="finalConfirmation",Gi=[1],Ji=function(e){var n={},t=function(){var e={};return{add:function(n,t,r){e[n]||(e[n]={}),e[n][t]||(e[n][t]=[]),e[n][t].push(r)},get:function(n,t){var r;return(null===(r=e[n])||void 0===r?void 0:r[t])||null},clear:function(){e={}}}}(),r=function(e){return Fi[e]||e},o=function(e,n){return t.get(e,r(n))};return{clear:function(){Object.keys(n).forEach((function(e){n[e]=[]})),t.clear()},on:function(o,i,a,s,c){void 0===s&&(s=function(){return!0}),void 0===c&&(c=!1);var u=r(o),l={cb:a,check:s,skip:c};n[u]||(n[u]=[],e(u,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n[u].forEach((function(e){return e.res=null})),n[u].forEach((function(n){var t,r=n.cb,o=n.check,i=n.skip;o.apply(void 0,e)&&(i?n.skip=!1:n.res=null!==(t=r.apply(void 0,e))&&void 0!==t?t:null)}))}))),i&&t.add(i,u,l),n[u].push(l)},has:function(e,n){return!!o(e,n)},get:o,skipOne:function(e,n){var o=r(n),i=t.get(e,o);return null==i||i.forEach((function(e){e.skip=!0})),!!i}}},Qi=function(e,n){return function(t){return null!==t?n(t):e()}},Yi=function(e){return(e||{}).continuation||null},Xi=function(e){return(e||{}).trackingId||null},$i=function(e){return(e||{}).experienceActionId||null},Ki=[Bi,qi],Zi=function(e){return Ki.includes(e)},ea=function(e){return 1===e.eventType||2===e.eventType},na=function(e){return Zi(e.type)&&ea(e)},ta=function(e){return e&&e.find(na)||null};!function(e){e.EQUALS="equals",e.NOT_EQUALS="notEquals",e.GREATER="greater",e.LESS="less",e.MATCHES="matches",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.OCCURS_BEFORE="occursBefore",e.OCCURS_AFTER="occursAfter",e.OCCURS_ON="occursOn",e.OCCURS_WITHIN="occursWithin",e.NOT_OCCURS_WITHIN="notOccurWithin",e.ANY_OF="anyOf",e.EMPTY="empty",e.NOT_EMPTY="notEmpty"}(Li||(Li={})),function(e){e.TEXT="TEXT",e.ISO_DATE="ISO_DATE",e.BOOLEAN="BOOLEAN",e.NUMBER="NUMBER",e.SINGLE_SELECT_LIST="SINGLE_SELECT_LIST",e.MULTI_SELECT_LIST="MULTI_SELECT_LIST"}(Ui||(Ui={})),function(e){e.VOID="void",e.STRING_LIST="stringList",e.NUMBER="number",e.BOOLEAN="boolean",e.DATE="date",e.RELATIVE_DATE="relativeDate",e.DATE_RANGE="dateRange",e.RELATIVE_DATE_RANGE="relativeDateRange"}(Di||(Di={})),function(e){e.DAYS="days",e.WEEKS="weeks",e.MONTHS="months",e.YEARS="years"}(ji||(ji={})),function(e){e.AGO="ago",e.FROM_NOW="fromNow"}(Vi||(Vi={}));var ra,oa=function(e){return e.getFullYear()},ia=function(e){return e.getMonth()},aa=function(e){return e.getDate()},sa=function(e,n){return e.setFullYear(n)},ca=function(e){return Number(e)},ua=function(e,n,t){var r=oa(t),o=new Date(e);sa(o,r);var i=new Date(n);return sa(i,r),t<=i&&t>=o},la=function(e,n,t){if(e>n)return!1;if(function(e,n){var t=e.getTime()-n.getTime();return Math.floor(t/31536e6)}(e,n)>=1)return!0;if(oa(e)==oa(n))return ua(e,n,t);var r=function(e){return new Date(oa(e),0,1)}(n),o=function(e){return new Date(oa(e),11,31)}(e),i=ua(e,o,t),a=ua(r,n,t);return i||a},da=function(e,n,t){if(!e)return null;var r=new Date(n);switch(e){case ji.DAYS:r.setDate(aa(r)+t);break;case ji.MONTHS:r.setMonth(ia(r)+t);break;case ji.YEARS:r.setFullYear(oa(r)+t);break;case ji.WEEKS:r.setDate(aa(r)+7*t)}return r},pa=/^(\d{4})(?:-(\d{2}))?(?:-(\d{2}))?$/,fa=function(e,n){if(!e)return n?new Date(n):null;var t;if(pa.test(e)){var r=e.match(pa)||[],o=r[1],i=r[2],a=void 0===i?"1":i,s=r[3],c=void 0===s?"1":s;t=new Date(ca(o),ca(a)-1,ca(c))}else t=new Date(e);return isNaN(t.getTime())?null:t},ma=function(e,n){return"Not supported operator '".concat(e,"' for ").concat(n)},va=function(e,n,t){return void 0===t&&(t=function(){}),n.every((function(n){var r=function(e,n){try{return n.filter((function(n){return n.fieldName===e.fieldName}))}catch(e){return[]}}(n,e);if(!r.length)return t("Values of custom fields ".concat(n.fieldName," is not found")),!1;var o=r.some((function(e){return function(e,n,t){if(!(n.dataType in Ui))return!1;var r=n.dataType,o=ga[r];if(!o)return t("dataType: ".concat(r," is not supported")),!1;var i="";try{i=JSON.parse(n.value||"")}catch(e){i=n.value||null}try{return o(e,i,t)}catch(e){return!1}}(n,e,t)}));if(!o){var i=n.fieldName,a=r.map((function(e){return e.value})).join(", "),s='"'.concat(n.operator,'": ').concat(JSON.stringify(n.ruleValue));return t('field "'.concat(i,'":[').concat(a,"] does not match a rule ").concat(s)),!1}return!0}))},ga=((ra={})[Ui.TEXT]=function(e,n,t){var r,o,i=e.operator,a=wa(n,i);if(!a.proceed)return a.result;var s=String(n).trim().toLowerCase();ha(e,[Di.STRING_LIST],t);var c=null!==(o=null===(r=e.ruleValue.value)||void 0===r?void 0:r.map((function(e){return e.trim().toLowerCase()})))&&void 0!==o?o:[];switch(i){case Li.MATCHES:return c.some((function(e){return s===e}));case Li.CONTAINS:return c.some((function(e){return s.includes(e)}));case Li.NOT_CONTAINS:return c.every((function(e){return!s.includes(e)}));default:return t(ma(i,Ui.TEXT)),!1}},ra[Ui.NUMBER]=function(e,n,t){var r=e.operator,o=wa(n,r);if(!o.proceed)return o.result;var i=parseInt(n,10);if(isNaN(i))return t("".concat(n," is not a number")),!1;ha(e,[Di.NUMBER],t);var a=e.ruleValue.value;switch(r){case Li.EQUALS:return i===a;case Li.NOT_EQUALS:return i!==a;case Li.GREATER:return i>a;case Li.LESS:return i<a;default:return t(ma(r,Ui.TEXT)),!1}},ra[Ui.ISO_DATE]=function(e,n,t){var r,o,i=e.operator,a=wa(n,i);if(!a.proceed)return a.result;var s=fa(n,null);if(!s)return t("".concat(n," is not an ISO date")),!1;var c=function(){var e=new Date;return new Date(oa(e),ia(e),aa(e))}(),u=null,l=null,d=null,p=!1;if((i===Li.OCCURS_BEFORE||i===Li.OCCURS_AFTER)&&(ha(e,[Di.DATE],t),u=fa(null===(r=e.ruleValue)||void 0===r?void 0:r.value,c)),i===Li.OCCURS_ON){ha(e,[Di.DATE,Di.RELATIVE_DATE],t);var f=e.ruleValue,m=e.ruleValue;f.timeUnit||f.regardlessOfYears?(p=null!==(o=f.regardlessOfYears)&&void 0!==o&&o,u=da(f.timeUnit,c,f.timeType===Vi.AGO?-f.timeUnitNumber:+f.timeUnitNumber)):u=fa(null==m?void 0:m.value,c)}if(i===Li.OCCURS_WITHIN||i===Li.NOT_OCCURS_WITHIN){ha(e,[Di.DATE_RANGE,Di.RELATIVE_DATE_RANGE],t);var v=e.ruleValue;if(v.fromTimeType||v.toTimeUnit)p=v.regardlessOfYears,l=da(v.fromTimeUnit,c,v.fromTimeType===Vi.AGO?-v.fromTimeUnitNumber:+v.fromTimeUnitNumber),d=da(v.toTimeUnit,c,v.toTimeType===Vi.AGO?-v.toTimeUnitNumber:+v.toTimeUnitNumber);else{var g=e.ruleValue;l=fa(null==g?void 0:g.from,c),d=fa(null==g?void 0:g.to,c)}}switch(i){case Li.OCCURS_BEFORE:return s<u;case Li.OCCURS_AFTER:return s>u;case Li.OCCURS_ON:return p?function(e,n){var t=oa(e),r=new Date(e);sa(r,t);var o=new Date(n);return sa(o,t),r.getTime()===o.getTime()}(s,u):s.getTime()===(null==u?void 0:u.getTime());case Li.OCCURS_WITHIN:return p?la(l,d,s):!(s<l||s>d);case Li.NOT_OCCURS_WITHIN:return p?!la(l,d,s):s<l||s>d;default:return t(ma(i,Ui.ISO_DATE)),!1}},ra[Ui.BOOLEAN]=function(e,n,t){var r=e.operator,o=wa(n,r);if(!o.proceed)return o.result;ha(e,[Di.BOOLEAN],t);var i=e.ruleValue.value,a=Boolean(n);return r===Li.EQUALS?a===i:(t(ma(r,Ui.BOOLEAN)),!1)},ra[Ui.SINGLE_SELECT_LIST]=function(e,n,t){var r=e.operator,o=n||[];if(!Array.isArray(o))return t("".concat(n," is not an array of string")),!1;var i=_a(o,r);if(!i.proceed)return i.result;ha(e,[Di.STRING_LIST],t);var a=e.ruleValue.value;switch(r){case Li.EQUALS:return 1===(null==a?void 0:a.length)&&1===o.length&&o[0]===a[0];case Li.NOT_EQUALS:return 0!==o.length&&(!a||1!==a.length||1!==o.length||o[0]!==a[0]);case Li.ANY_OF:return 0!==o.length&&!!a&&a.some((function(e){return e===o[0]}));default:return t(ma(r,Ui.SINGLE_SELECT_LIST)),!1}},ra[Ui.MULTI_SELECT_LIST]=function(e,n,t){var r=e.operator,o=n||[];if(!Array.isArray(o))return t("".concat(n," is not an array of string")),!1;var i=_a(o,r);if(!i.proceed)return i.result;ha(e,[Di.STRING_LIST],t);var a=e.ruleValue.value;switch(r){case Li.EQUALS:return(null==o?void 0:o.length)>0&&o.length===(null==a?void 0:a.length)&&o.every((function(e){return a.includes(e)}));case Li.NOT_EQUALS:return o.length>0&&(o.length!==(null==a?void 0:a.length)||!o.every((function(e){return a.includes(e)})));case Li.ANY_OF:return!!a&&o.some((function(e){return a.includes(e)}));default:return t(ma(r,Ui.MULTI_SELECT_LIST)),!1}},ra);function ha(e,n,t){var r;n.some((function(n){var t;return n===(null===(t=e.ruleValue)||void 0===t?void 0:t.valueType)}))||t("Incorrect value type '".concat(null===(r=e.ruleValue)||void 0===r?void 0:r.valueType,"' for operator '").concat(e.operator,"'"))}var ya=function(e,n){var t=function(e,n){return{result:e,proceed:n}};return n===Li.EMPTY?t(e,!1):n===Li.NOT_EMPTY?t(!e,!1):t(e,!0)};function wa(e,n){var t="string"==typeof e?!e.trim():null===e;return ya(t,n)}function _a(e,n){var t=!e||0===e.length;return ya(t,n)}var ba=Ji(pn.myaccount.registerCallback),ka=Ji(pn.offer.registerCallback),Ca=Ji(pn.template.registerCallback),Ia=Ji(pn.pianoId.registerCallback),Sa=Qi(pn.offer.close,pn.offer.closeInline),Ea=Qi(pn.template.close,pn.template.closeInline),Ta=function(e){return"receipt"===e},Pa=function(e,n,t){var r=e.eventType,o=e.parentId,i=e.autoClose,a=function(e){return t("ExpInt: eventType=".concat(r,": ").concat(e))},s=function(e){return $i(e||{})===o},c=function(e){var n=Yi(e),t=Xi(e)||void 0;n&&!n.done&&(n(t),n.done=!0)},u=function(e){var t=Yi(e);n(t)},l=function(e){var n=e.offerType,t=e.currentState,r=Yi(e),o=Xi(e)||void 0;if(!r)return u(e);if("upgrade"===n&&Ta(t))return r.done=!0,r(new Error("Subscription was upgraded"));if("purchase"===n){if(Ta(t))return r.done=!0,r(o);if(function(e){return"alreadyHasAccess"===e}(t))return r.done=!0,r(new Error("Subscription already has access"))}u(e)},d=function(n,t){var r=t||{},a=r.customEventName,u=void 0===a?null:a,l=r.containerSelector,d=void 0===l?null:l,p=s(t)&&(e.customEventNames||[]).includes(u);return!!p&&(i&&(ka.skipOne(o,3)||ka.on(3,o,c,s,!0),Ca.skipOne(o,3)||Ca.on(3,o,c,s,!0),n(d)),p)},p=function(e){var n=e.config,t=e.reason;return s(n)&&"customFormSubmitted"!==t};switch(Number(r)){case 1:case 2:ba.on(r,o,(function(e){var t=Yi(e),r=(e||{}).subscriptionId,o=void 0===r?null:r;t&&o&&(t.subscriptionId=o),t&&(t.forceTrackStat=!0),n(t)}));break;case 3:ka.on(r,o,l,s),Ca.on(r,o,l,s);break;case 4:ka.on(r,o,u,d.bind(null,Sa)),Ca.on(r,o,u,d.bind(null,Ea));break;case 5:case 7:Ia.on(r,o,(function(e){return u(e.config),!0}),p);break;case 6:Ia.on(r,o,(function(t){var r=Yi(t.config);return!!function(e,n,t){var r,o=(t||{}).submittedFields,i=void 0===o?null:o,a=e.fieldRules,s=i&&va(i,a.targetRules||[],n),c=i&&!(null===(r=a.ignoreRules)||void 0===r||!r.length)&&va(i,a.ignoreRules||[],n);return!(!i||!s||c)||(n("submitted fields are not equal provided rules"),!1)}(e,a,t)&&(n(r),!0)}),p);break;default:return void a(r+"is not supported")}},xa=["userSegmentTrue","userSegmentFalse"],Aa=new Set(b(["showForm","showOffer","showTemplate","showRecommendations","showZuoraOffer","showNewscycleOffer"],xa,!0)),Oa=new Set(xa),Na="continuation",Ma=function(e){return e[Na]||null},Ra=function(e){var n=Ma(e);return n&&n.subscriptionId},La=function(e){var n=function(e){return Fi[e]||null}(e.eventType||-1);return Zi(e.type)?n:null},Ua=function(e,n){return g(void 0,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:if(!function(e){return!(!e||!Gi.includes(e))}(e))throw{code:1};return t=function(){var e={},n={};return{endpoint:Hi,name:zi,isDenied:function(){var e;return!(null===(e=pn.composerControlPolicy)||void 0===e||!e.denyTI)},add:function(t,r){var o=La(t),i=ta(r),a=i?i.moduleId:null;o&&(e[o]=!0),a&&(n[a]=n[a]||{},r.forEach((function(e){var t=La(e);t&&!ea(e)&&(n[a][e.moduleId]=t)})))},get:function(){return Object.keys(e)},getEventsByModelId:function(e){var t=n[e||""];return t?Object.keys(t):[]}}}(),[4,n(t)];case 1:return r.sent(),function(){var e=function(e){var n=Yi(e),t=Xi(e)||void 0,r=e.confirm;if(n){var o=void 0!==r&&r?t:new Error("Final confirmation: confirm is false");n.apply(void 0,[o]),n.done=!0}};ka.on(Wi,null,e),Ca.on(Wi,null,e)}(),function(){var e=function(e){var n=Yi(e),t=$i(e),r=Xi(e);if(t&&n)return{id:t,run:function(){if(!n.done)return n.done=!0,n(r)}}},n=function(n,t){var r=e(t);r&&!n.has(r.id,3)&&r.run()};ka.on(Fi[3],null,n.bind(ka)),Ca.on(Fi[3],null,n.bind(Ca)),Ia.on(Fi[7],null,(function(n){var t=n.config,r=n.reason,o=e(t);if(o){if("customFormSubmitted"===r){var i=Ia.get(o.id,6);return void((!i||i.every((function(e){return!e.res})))&&o.run())}Ia.has(o.id,7)||o.run()}}))}(),[2,{registeredEvents:t.get()}]}}))}))},Da={linkedNodes:{},executedNodes:[],executedHandlers:{}},ja=function(){return Da.executedNodes},Va=function(){Da.executedNodes=[]},Fa=function(){ba.clear(),ka.clear(),Ca.clear(),Ia.clear(),Va(),Da.linkedNodes={},Da.executedHandlers={}};pn.container.register("experience",{useValue:function(e){void 0===e&&(e=pn.container);var n,t,r,o=e.resolve("jqUtils"),i=e.resolve("util"),a=e.resolve("consent"),s=e.resolve("api"),c=e.resolve("eventUtils"),u=e.resolve("scrollDepth"),l=e.resolve("ajax"),d=e.resolve("viewportExit"),f=e.resolve("idle"),m=e.resolve("interaction"),v=e.resolve("pianoEsp"),g=e.resolve("swg"),h=e.resolve("fbsubscriptions"),y=e.resolve("user"),w=e.resolve("cxense"),_=e.resolve("logging"),b=e.resolve("composerControlPolicy"),k=e.resolve("analytics"),C=e.resolve("gaCollectingService"),I=e.resolve("frequencyEvent"),S=[],E={},T="",P=!1,x="reader_id",A={},O=!1,N={},M=(n={applyCss:{fn:function(e){e.eventParams.ruleList.forEach((function(e){var n,t=e.classes,r=e.elements;t&&(t=t.replace(/[,.]/g," ").split(" ").filter((function(e){return""!==e})),"add"===e.type&&(n=o.qa(r))&&n.length&&n.forEach((function(e){t.forEach((function(n){o.addClass(n,e)}))})),"remove"===e.type&&(n=o.qa(r))&&n.length&&n.forEach((function(e){t.forEach((function(n){o.removeClass(n,e)}))})));i.debug("exp: css applied with rule:",e)}))},isAction:!0,shouldFireCallback:!0},runJs:{fn:function(e){if(e.eventParams&&e.eventParams.snippet){var n=e.eventParams.snippet;i.debug("exp: run js with snippet:",n);var t=e.eventExecutionContext;i.debug("exp: set publisher's context and custom:",t),we("var context = "+JSON.stringify(t)+";\nvar custom = "+JSON.stringify(pn.customVariables)+";\n"+n)}},isAction:!0,shouldFireCallback:!0},setCookie:{fn:function(e){var n=e.eventParams;if(n&&void 0!==n.cookieName&&void 0!==n.cookieValue){i.debug("exp: set cookie with parameters:",n);var t=(n.isReadableCookie?"_pc_":"")+n.cookieName,r={domain:n.cookieDomain,path:n.cookiePath};if(!n.isSessionCookie){var o=new Date;switch(n.expirationUnit){case"seconds":o.setSeconds(o.getSeconds()+n.expirationValue);break;case"minutes":o.setMinutes(o.getMinutes()+n.expirationValue);break;case"hours":o.setHours(o.getHours()+n.expirationValue);break;case"days":o.setDate(o.getDate()+n.expirationValue);break;case"months":o.setMonth(o.getMonth()+n.expirationValue);break;case"years":o.setFullYear(o.getFullYear()+n.expirationValue);break;default:i.log("Wrong eventParams.expirationUnit : ",n.expirationUnit)}r.expires=o}i.__protected__.setCookieConsent("composer",t,n.cookieValue,r)}},isAction:!0,shouldFireCallback:!0},nonSite:{fn:function(e){i.debug("exp: non-site action:",e)},isAction:!0,shouldFireCallback:!0},showForm:{fn:function(e){var n=e.eventParams;if(n&&n.formName){var t={formName:n.formName,hideIfComplete:n.hideCompletedFields,trackingId:e.eventExecutionContext.trackingId,displayMode:n.displayMode,containerSelector:n.containerSelector,showCloseButton:n.showCloseButton,templateId:n.templateId,variantId:n.templateVariantId,accessToken:y.getProvider().getToken(),experienceActionId:e.eventModuleParams.moduleId,continuation:Ma(e),subscriptionId:Ra(e)};n.formWidth&&n.formWidth.enabled&&(t=o.deepExtend({},{width:n.formWidth.width},t)),i.debug("exp: show form with params:",n),pn.pianoId.showForm(t)}},isAction:!0,shouldFireCallback:!0},showRecommendations:{fn:function(e,n,t,r){return _e(e,function(e){var n={ESP:v.__protected__.showRecommendation.bind(v),CXENSE:w.__protected__.showRecommendation.bind(w)};return n[e]||function(){}}(e.eventParams.type),be(r))},isAction:!0,shouldFireCallback:!0},showOffer:{fn:function(e,n,t,r){return _e(e,(function(e){return pn.offer.show(e)}),be(r))},isAction:!0,shouldFireCallback:!1},showTemplate:{fn:ke,isAction:!0,shouldFireCallback:!1},showZuoraOffer:{fn:ke,isAction:!0,shouldFireCallback:!1},showNewscycleOffer:{fn:ke,isAction:!0,shouldFireCallback:!1},showNewsletterSignup:{fn:function(e,n,t,r){return _e(e,(function(e){return v.__protected__.showNewsletterSignup(e)}),be(r))},isAction:!0,shouldFireCallback:!1},showPushSignUp:{fn:function(e,n,t,r){return _e(e,(function(e){return v.__protected__.showPushSignup(e)}),be(r))},isAction:!0,shouldFireCallback:!1},showLogin:{fn:function(e){y.showLogin({trackingId:e.eventExecutionContext.trackingId})},isAction:!0,shouldFireCallback:!0},continueExecution:{fn:function(e,n,t,r){i.debug("exp: continue execution action:",e,"with requestParameters",n);var o=n||{};o.experience_id=e.eventExecutionContext.experienceId,o.experience_version=e.eventExecutionContext.experienceVersion,o.context_data=e.eventParams.contextData,Y("auto",o,!0,r)},shouldFireCallback:!0},continueExecutionCompleted:{fn:Te,shouldFireCallback:!0},meterActive:{fn:Te,shouldFireCallback:!0,ga:function(e){return{eventCategory:"meterActive",eventLabel:"Meter active",experienceId:e.eventExecutionContext.experienceId,meterName:e.eventExecutionContext.currentMeterName}}},meterExpired:{fn:Te,shouldFireCallback:!0,ga:function(e){return{eventCategory:"meterExpired",eventLabel:"Meter expired",experienceId:e.eventExecutionContext.experienceId,meterName:e.eventExecutionContext.currentMeterName}}},userSegmentTrue:{fn:ye,shouldFireCallback:!0},userSegmentFalse:{fn:ye,shouldFireCallback:!0},experienceExecutionFailed:{fn:Te,shouldFireCallback:!0},log:{fn:function(e,n,t,r){var o=be(r);oe(e.eventModuleParams.moduleId,e,o)},shouldFireCallback:!1},experienceExecute:{fn:function(e,n,t){e.eventParams.result=t},shouldFireCallback:!0,ga:function(e){return{eventCategory:"experienceExecute",eventLabel:"Experience execute",experienceId:e.eventExecutionContext.experienceId}}},setResponseVariable:{fn:function(e){return e.eventParams},isAction:!0,shouldFireCallback:!0,ga:function(e){return p({eventCategory:"setResponseVariable",eventLabel:"Set response variable",experienceId:e.eventExecutionContext.experienceId,setResponseVariableId:e.eventModuleParams.moduleId},e.eventParams.responseVariables)}},creditRedeemed:{fn:function(e){i.debug("exp: credit redeemed action:",e)},isAction:!0,shouldFireCallback:!0}},t={},r=function(e,n){return function(t,r,o,a){var s=be(a);if(e.isAction){var c=function(e){var n=e.eventParams,t=e.eventModuleParams,r=e.eventExecutionContext;return i.debug("exp: fire event 'beforeComposerAction' with eventParams:",n,", moduleParams:",t,", context:",r),z.fireCallbacksAndStopOnFirstFalse("beforeComposerAction",n,t,r)}(t);if(!c)return;var u=se(t),l=ae(t);(u||l)&&oe(t.eventModuleParams.moduleId,t,s)}var d=t.eventModuleParams.moduleId,p=null!=a&&a.interactionContext?Da.executedHandlers:N;!p[d]&&"N/A"!==d&&(p[d]={experienceId:t.eventExecutionContext.experienceId,moduleName:t.eventModuleParams.moduleName});var f=(null==a?void 0:a.handlers)||{},m="on".concat(n[0].toUpperCase()).concat(n.slice(1));"function"==typeof(null==f?void 0:f[m])&&f[m](t,r);var v=Object.assign({},t);v.eventParams&&(v.eventParams=Object.assign({},t.eventParams)),e.fn(v,r,o,a),e.ga&&he(e.ga(v)),e.shouldFireCallback&&function(e){return function(n){var t=n.eventParams.callback,r=n.eventParams,o=n.eventModuleParams,a=n.eventExecutionContext;i.debug("exp: fire event ",e," with eventParams:",r,", moduleParams:",o,", context:",a),z.fire("experience",e,!0,r,o,a),t&&e!==t&&(i.debug("exp: execute event ",e," with callback: ",t),we(t))}}(n)(v)}},Object.keys(n).forEach((function(e){if("function"!=typeof n[e].fn)throw new Error("Unsupported config for "+e+" handler");t[e]=r(n[e],e)})),t),R={showOffer:function(e){return Ce(e,(function(e){return pn.offer.deferredShow(e)}))},showTemplate:Ie,showZuoraOffer:Ie,showNewscycleOffer:Ie},L=i.profile((function(e,n){b.__private__.checkLS(),Y("manual",e,!1,{overrides:e,handlers:n})})),U=function(e,n){z.addEvent(e),z.registerCallback(e,n)},D={},j="",V="",F="",B=[],q={HANDLER:"handler",EVENT_CONDITION:"eventCondition",INNER_EVENT_CONDITION:"innerEventCondition",PRELOAD:"preload"},z=c.createEventManager([]),H=["showOffer","showZuoraOffer","showNewscycleOffer","showTemplate"];var W,G=function(){return pn.getExperienceEndpoint(!1)+"/api/v3"},J=function(){h.__protected__.init()},Q=function e(n,t){void 0===t&&(t=!1);var r=function(e){return void 0===e&&(e=!1),e?ja():S}(t);r.length&&(k.log.event({eventType:Bo.LOG_BEACON_REQUEST,payload:{url:G()+"/composer/logExecutionStats",params:{aid:pn.aid,items:JSON.stringify(r),execution_stats_context:T,ts:(new Date).getTime(),source:n}}}),function(e){void 0===e&&(e=!1),e?Va():S=[]}(t)),window.clearTimeout(W),W=window.setTimeout((function(){e("timer"+W,t)}),2e3)},Y=function(e,n,t,r){Boolean((window.pdl||{}).requireConsent&&!pn.consent.get())&&i.debug("WARNING: The RequireConsent feature is enabled. The Piano services might be working unstable until user consent provided"),void 0===pn.main.appHasApplePay()&&z.fireCallbacks("experienceFlow",null,"experience",!0);var a=!(null==r||!r.interactionContext),s=new Promise((function(e){setTimeout((function(){e({})}),3e4)}));return Promise.race([pn.main.externalResourcesDelay(),s]).then((function(s){o.isPlainObject(s)||(i.error("exp: error get external resources ",s),s={});var c={new_bid:Mr.get("browserId")},u=a?X:$;if(w.__protected__.isActivated()){i.debug("c1x: integration is activated"),w.__protected__.loadCxLibIfNeeded();var l=o.deepExtend({},n,s,c,{c1x_integration_version:"v2"});return u(e,l,t,r)}return u(e,o.deepExtend({},n,s,c),t,r)})).catch((function(e){if(a)throw e}))},X=function(e,n,t,r){return new Promise((function(o,i){return $(e,n,t,r,o,i)}))},$=function(e,n,t,r,c,u){var d=null==r?void 0:r.interactionContext;n=n||{};var p=o.deepExtend({},{protocol_version:1},n);K(p),Z(p),ee(p),te(p),i.hasQueryParamByName(x)&&(p[x]=i.getQueryParamByName(x)),i.waitCall("refreshUserToken",(function(){if(t){var n=d?Da.executedHandlers:N;p.executed_nodes=JSON.stringify(n)}else{pn.main.trackPageUnloadIfNecessary.skipLog(),ne(p),s.getCallParams(p,y.getProvider()),i.removeAffiliateToken();var f={url:window.location.href,tags:pn.tags,submitType:e,skipPageViewTrack:ve(!!d)};pn.main.buildPageTrackParams(p,f)}a.__protected__.addConsentsToParams(p),I.__protected__.applyToParams(p),i.debug("exp: Experience initialized with params:",p),i.waitCall("refreshAccessTokenList",(function(){i.startCall((null==d?void 0:d.name)||"experienceExecute");var e,n=function(e,n){var t=e||null;return n?null:(t||(i.__protected__.cameFromFbSubscriptions()?b.denyFbia||(t="/xbuilder/experience/executeFbia",J()):b.denyWeb||(t="/xbuilder/experience/execute")),t&&pn.getExperienceEndpoint(!1)+t)}(null==d?void 0:d.endpoint,null==d?void 0:d.isDenied());if(!n){i.doneCall((null==d?void 0:d.name)||"experienceExecute"),t||Se(!!d);var a="execute is denied";return i.debug(a),void(null==u||u({code:424,message:"Error: "+a}))}if(-1!==navigator.appVersion.indexOf("MSIE 9"))e={dataType:"jsonp",url:n+"?"+o.param(p)};else{var s="?"+o.param({aid:p.aid});e={type:"post",url:n+s,data:o.deepExtend({},p,(null==r?void 0:r.overrides)||{}),xhrFields:{withCredentials:!0}}}e.success=function(e){i.doneCall((null==d?void 0:d.name)||"experienceExecute");var n=o.deepExtend({},p);t||(Se(!!d),pn.main.registerTrackUnload.skipLog()),re(e.errors),ge(e.models,n,r),null==c||c({code:0})},e.error=function(e){b.__private__.setPolicyByRequest(e),i.doneCall((null==d?void 0:d.name)||"experienceExecute"),t||Se(!!d);var r={code:503,message:"Error: Received error when requesting API response from URL: "+n};i.debug(r.message),null==u||u(r)},l.request(e)}))}))},K=function(e){var n=i.__protected__.getCookie("xbc");n&&(e.xbc=n);var t=i.getTbcCookie();t&&t.length>0&&(e.tbc=t);var r=i.__protected__.getCookie("_pcer");r&&(e.edge_result=r),i.getCampaigns(e),e.custom_cookies=JSON.stringify(i.getCustomCookies())},Z=function(e){var n=i.getPushListsCookie(),t=v.__protected__.getNotificationStatus();n&&n.length>0&&(e.push_list_subscriptions=JSON.stringify(n)),t&&(e.push_notification_settings=t)},ee=function(e){e.mailing_lists=JSON.stringify(v.__protected__.loadCompleteMailingLists())},ne=function(e){return[{property:"debug",parameter:"debug",skipFalse:!0},{property:"trackPageView",parameter:"increment_pageview_meter"}].forEach((function(n){void 0!==pn[n.property]&&(!n.skipFalse||pn[n.property])&&(e[n.parameter]=pn[n.property])})),e},te=function(e){var n=Mr.get("userSegments");n&&(e.previous_user_segments=JSON.stringify(n))},re=function(e){Array.isArray(e)&&(e.length&&i.debug("exp: composer execution has been failed with errors"),e.forEach((function(e){i.debug("exp: "+e.msg)})))},oe=function(e,n,t){void 0===t&&(t=!1),function(e,n){void 0===n&&(n=!1),(n?ja():S).push(e)}({mId:e,eId:n.eventExecutionContext.experienceId,eV:n.eventExecutionContext.experienceVersion,eeId:n.eventExecutionContext.executionId},t)};function ie(e,n,t,r,o){return{type:q.HANDLER,eventType:n.eventType,children:[],run:function(i,a,s){var c=function(e,n){var t;return n?p(p({},e),((t={})[Na]=n,t)):e}(n,i);e.bind(this,c,t,r,o)(),function(e,n,t,r){var o=e.eventType,i=e.eventConditions,a=e.eventExecutionContext.trackingId,s=!Aa.has(o),c=Oa.has(o)&&(t||0)<2,u=function(){var e;if(!s)return!1;var n=ta(i),t=i.length<2&&i[0]===n,o=!(null===(e=null==r?void 0:r.getEventsByModelId(null==n?void 0:n.moduleId))||void 0===e||!e.length);return t&&!o||!t}(),l=c||u;n&&!n.done&&l&&n(a)}(n,i,a,s)}}}var ae=function(e){var n,t=e.eventParams.delayBy||{};return t.value&&("time"===t.type?n={type:"timer",timer:t.value}:"scroll"===t.type&&(n={type:"scrollDepth",scrollDepth:t.value,measureType:"pixels"})),n},se=function(e){return e.eventConditions&&Array.isArray(e.eventConditions)?e.eventConditions.length:0},ce=function(e,n){return function(){var t,r=!1;return{type:q.PRELOAD,eventType:n.eventType,children:[],run:function(){!1===r&&(t=e(n),r=!0)},getPreloadResult:function(){return t}}}()};function ue(e,n){var t=function(){return function(e){A[e.type]||(he(p({eventCategory:"beforeBrowserEvent",eventLabel:"Before browser event"},e)),A[e.type]=!0)}(e),z.fireCallbacksAndStopOnFirstFalse("beforeBrowserEvent",e)};switch(e.type){case Bi:case qi:Pa(e,(function(e){return t()&&n(e)}),(function(e){return i.debug(e)}));break;case"viewportExit":d.addListener(n,{detectExitMode:e.detectExitMode,detectBackButtonForMobile:e.detectBackButtonForMobile,clientDevice:e.clientDevice},t);break;case"scrollDepth":u.addListener(n,{scrollDepth:e.scrollDepth,measureType:e.measureType},t);break;case"timer":var r=setTimeout((function(){t()&&n()}),1e3*e.timer);B.push(r);break;case"interaction":m.bind(n,e.interactions,t);break;case"idle":f.addListener(n,e.idleTime,t)}}var le=function(e){return e.type===q.HANDLER&&-1===["continueExecution","meterActive","meterExpired"].indexOf(e.eventType)};function de(e,n,t){return r=!1,o=!!t,a=t?Da.linkedNodes:E,s=function(s){oe(e.moduleId,n,o);for(var c=a[e.moduleId].children,u=0;u<c.length;u++){var l=c[u],d=a[l];if(!1===r||le(d))try{d.run(s,c.length,t)}catch(e){i.error("exp: error execute chain event",d,e)}}r=!0,P&&Q("chain",o)},null==t||t.add(e,n.eventConditions||[]),{type:q.EVENT_CONDITION,children:[],run:function(){ue(e,s)}};var r,o,a,s}function pe(e,n,t){return r=!1,o=t?Da.linkedNodes:E,a=function(){for(var e=o[n+q.INNER_EVENT_CONDITION].children,t=0;t<e.length;t++){var a=e[t],s=o[a];if(!1===r||le(s))try{s.run()}catch(e){i.error("exp: error execute chain event",s,e)}}r=!0},{type:q.INNER_EVENT_CONDITION,children:[n],run:function(){ue(e,a)}};var r,o,a}var fe=function(e){e.swgMarkupData&&(i.debug("exp: swg markup data :",e.swgMarkupData),function(e){g.__protected__.injectMarkup(e)}(e.swgMarkupData),e.swgMarkupData.isAccessibleForFree||g.__protected__.addLibrary()),e.swgEnabled&&g.__protected__.initSwgFlow()},me=function(e){if(e){for(var n={},t=0;t<e.events.length;t++){var r=e.events[t];try{"experienceExecute"===r.eventType&&((n=o.deepExtend({},r.eventExecutionContext)).result=o.deepExtend({},e))}catch(e){i.error("exp: error on execute event: ",r,e)}}return n}i.debug("exp: no composer execution result")},ve=function(e){return e&&(O||0!==L.invokeCount)},ge=function(e,n,t){if(e){var r=null==t?void 0:t.interactionContext,a=!!r,s=r?Da.linkedNodes:E;i.setTbcCookieFromResponse(e),i.setTacCookieFromResponse(e),i.setAppTimezoneOffsetFromResponse(e),i.setCurrentDomainFromResponse(e),ve(a)||function(e){w.__protected__.sendPageViewEvent({browserId:e.bid,uid:e.uid,cxenseCustomerPrefix:e.cxenseCustomerPrefix,pageViewId:pn.main.fetchPageViewId(),eventExecutionContext:me(e.result)})}(e),function(e){v.__protected__.setVisitorId(e.bid)}(e),function(e){j=e.bid}(e),function(e){e.iss&&(V=e.iss)}(e),function(e){F=e.itemId}(e),function(e){var n;null!==(n=e.result)&&void 0!==n&&n.onContentRestrictedFallback&&(i.debug("exp: fire event: contentRestrictedFallback"),z.fireCallbacks("contentRestrictedFallback",void 0,"experience",!0))}(e),I.__protected__.registerEvent(e),i.setXbcCookieFromResponse(e);var c=e.result,u={};if(!c)return void i.debug("exp: no composer execution result");fe(c),i.debug("exp: processed experiences :",c.experiences),T=e.executionStatsContext,c.debugMessages.forEach((function(e){i.debug("exp: execute :",e)}));for(var l,d=function(e,n,r){for(var o=e.eventConditions,a=0;a<o.length;a++){var c=o[a],u=c.moduleId,l=o[a-1],d=!o[a+1];if(s[u]||(s[u]=de(c,e,null==t?void 0:t.interactionContext)),d)if(s[u].children.push(n),-1!==H.indexOf(e.eventType)&&"viewportExit"===c.type&&!ae(e)){var p=R[e.eventType];if(!p){i.error("exp: not found preload handler for event: ",e);continue}var f=n+q.PRELOAD;s[f]=ce(p,e),l?s[l.moduleId].children.push(f):r.push(f)}l&&-1===s[l.moduleId].children.indexOf(u)&&s[l.moduleId].children.push(u)}},p=[],f=0,m=0;m<c.events.length;m++){var g=c.events[m];try{var h=g.eventType,y=g.eventModuleParams||{};if(i.debug("exp: process event '"+h+"' ("+y.moduleId+")"),"experienceExecute"===h&&((u=o.deepExtend({},g.eventExecutionContext)).result=o.deepExtend({},c),i.setUserSegments(u)),!(l=y.moduleId)){i.error("exp: not found moduleId for linked node event: ",g);continue}var _=M[h];if(!_){i.error("exp: not found handler for event: ",g);continue}s[l]=ie(_,g,n,c,t);var b=se(g),k=ae(g);if(b||k){var C=l;if(k){var S=pe(k,l,r);C=l+q.INNER_EVENT_CONDITION,s[C]=S}b?-1===p.indexOf(g.eventConditions[0].moduleId)&&p.push(g.eventConditions[0].moduleId):k&&p.push(C),d(g,C,p),f++}else p.push(l)}catch(e){i.error("exp: error on execute event: ",g,e)}}f<=3&&(P=!0);for(var x=0;x<p.length;x++)l=p[x],s[l]&&s[l].run();window.clearTimeout(W),W=window.setTimeout((function(){Q("rootTimer"+W,!!r)}),2e3),D=u}};function he(e){k.ga.event({eventType:Wo.EMIT_GA_EVENT,payload:p({aid:pn.aid},e)})}function ye(e,n,t,r){var o=se(e),i=be(r);o&&oe(e.eventModuleParams.moduleId,e,i)}function we(e){try{eval.call(window,"(function () {"+e+"\n})();")}catch(e){i.log("Error occurred in RunJS\n",e)}}function _e(e,n,t){void 0===t&&(t=!1);var r=(t?Da.linkedNodes:E)[e.eventModuleParams.moduleId+q.PRELOAD];return r&&r.getPreloadResult?r.getPreloadResult().show():Ee(e,n)}function be(e){return!(null==e||!e.interactionContext)}function ke(e,n,t,r){return _e(e,(function(e){return pn.template.show(e)}),be(r))}function Ce(e,n){return i.debug("exp: run preloading for:",e),Ee(e,(function(e){return n(e)}))}function Ie(e){return Ce(e,(function(e){return pn.template.deferredShow(e)}))}function Se(e){void 0===e&&(e=!1),Q("reset",e),e?Fa():(B.forEach((function(e){clearTimeout(e)})),B=[],d.removeListeners(),f.removeListeners(),u.removeListeners(),m.unbindAll(),E={},N={})}function Ee(e,n){var t=o.deepExtend({},e.eventParams),r=e.eventExecutionContext.splitTests,a=e.eventExecutionContext.activeMeters,s=e.eventParams.formNameByTermId,c=e.eventParams.hideCompletedFields,u=function(e){var n;if(!V)return null;var t=e||{};return{issuerId:V,premium:t.user&&t.user.premium||null,redemptionCandidateItemId:F||null,creditStates:t.creditStates||null,userId:(null===(n=t.user)||void 0===n?void 0:n.uid)||null,targetGroups:{l1:"target",l2:null}}}(e.eventExecutionContext),l=Ma(e),d=Ra(e),p=function(e){var n=Ma(e);return null==n?void 0:n.forceTrackStat}(e);if(t.trackingId=e.eventExecutionContext.trackingId,t.experienceId=e.eventExecutionContext.experienceId,t.experienceExecutionId=e.eventExecutionContext.executionId,t.experienceActionId=e.eventModuleParams.moduleId,t.experienceConditions=e.eventConditions,l&&(t.continuation=l,t.subscriptionId=d,t.forceTrackStat=p),t.browserId=j,t.onStartCreditRedemption=function(n){var t=o.deepExtend({},n),r="https://www.piano.io"===V,i=e.eventExecutionContext.user&&"anon"!==e.eventExecutionContext.uid;return t.trackingId=e.eventExecutionContext.trackingId||void 0,r&&i&&(t.uid=e.eventExecutionContext.user.uid||void 0),pn.credit.redeem(t)},r&&r.length>0){var f=r.map((function(e){return e.variantId}));t.splitTestIds=JSON.stringify(f)}if(t.additionalParamNames=[],a&&a.length>0&&(t.activeMeters=JSON.stringify(a)),"showZuoraOffer"===e.eventType){var m=e.eventParams.ratePlanIds;m&&m.length>0&&(t.zuoraSelectedRatePlanIds=JSON.stringify(m),t.additionalParamNames.push("zuoraSelectedRatePlanIds"))}if("showNewscycleOffer"===e.eventType){var v=e.eventParams.ids;v&&v.length>0&&(t.newscycleSelectedIds=JSON.stringify(v),t.additionalParamNames.push("newscycleSelectedIds","campaignCode","campaignGroupId"))}if("showNewsletterSignup"===e.eventType){var g=e.eventParams.mailingListIds,h=e.eventParams.siteId;g&&g.length>0&&(t.mailingListIds=JSON.stringify(g),t.siteId=h,t.additionalParamNames.push("mailingListIds","siteId"))}return"showRecommendations"===e.eventType&&(t.widgetId=e.eventParams.widgetId,t.placeholder=e.eventParams.placeholder),s&&(t.formNameByTermId=JSON.stringify(s),t.hideCompletedFields=c),u&&(t.affiliateState=u),i.debug("exp: show with params:",t),C.setParam("splitTestIds",t.splitTestIds),n(t)}function Te(){return function(){}}return{name:"experience",init:function(){if(!O&&!i.__protected__.isCxenseBot()){O=!0;var e=!0;if(pn.customPreChecks&&pn.customPreChecks.length)for(var n=null,t=pn.customPreChecks.length;t--;)try{1!==(n=pn.customPreChecks[t]())&&!0!==n&&(e=!1)}catch(e){}e&&Y("auto").then((function(){_.setTime("expExec",Math.floor(performance.now()-window.pnInitPerformance))}))}},execute:L,executeTemplateInteraction:function(e){return void 0===e&&(e={templateType:1}),Ua(e.templateType||1,(function(n){return Y("manual",{template_type:e.templateType||1},!1,{interactionContext:n})}))},_getLastExecutionResult:function(){return D},registerCallback:U,__private__:{handlers:M,executedNodes:S,linkedNodes:E,processResult:ge,processErrors:re,show:Ee,getTrackingEndpoint:G,initialized:O,registerCallback:U},__protected__:{sendStatisticsExecutedNodes:Q}}}()}),pn.experience=pn.container.resolve("experience");var Ba=function(){var e,n,t=0,r=document,o=!1,i="active",a=6e4,s=function(){var e,n,t;return e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},t={},n="__ceGUID",{add:function(e,r,o){return e[n]=void 0,e[n]||(e[n]="ifvisible.object.event.identifier"),t[e[n]]||(t[e[n]]={}),t[e[n]][r]||(t[e[n]][r]=[]),t[e[n]][r].push(o)},remove:function(e,r,o){var i,a,s,c,u;if(o){if(e[n]&&t[e[n]]&&t[e[n]][r])for(a=s=0,c=(u=t[e[n]][r]).length;s<c;a=++s)if((i=u[a])===o)return t[e[n]][r].splice(a,1),i}else if(e[n]&&t[e[n]]&&t[e[n]][r])return delete t[e[n]][r]},fire:function(e,r,o){var i,a,s,c,u;if(e[n]&&t[e[n]]&&t[e[n]][r]){for(u=[],a=0,s=(c=t[e[n]][r]).length;a<s;a++)i=c[a],u.push(i(o||{}));return u}}}}(),c=function(){var e;return function(n,t,r){return e||(e=n.addEventListener?function(e,n,t){return e.addEventListener(n,t.bind(Ba),!1)}:n.attachEvent?function(e,n,t){return e.attachEvent("on"+n,t,!1)}:function(e,n,t){return e["on"+n]=t}),e(n,t,r)}}(),u=function(){var e,n=r.createElement("div"),t=n.getElementsByTagName("i"),o=3;for(e=function(){return n.innerHTML="\x3c!--[if gt IE "+ ++o+"]><i></i><![endif]--\x3e",t[0]};e(););return o>4?o:void 0}();function l(){var s;return!!o||(e?c(r,n,(function(){return r.hidden?p():d()}),!1):(s="blur",u&&u<9&&(s="focusout"),c(window,s,(function(){return Ba.blur()})),c(window,"focus",(function(){return Ba.focus()}))),o=!0,function(){var e,n;return(n=function(){return clearTimeout(e),"active"!==i&&m(),t=+new Date,e=setTimeout((function(){if("active"===i)return f()}),a)})(),c(r,"mousemove",n),c(r,"mouseup",n),c(r,"keyup",n),c(r,"touchstart",n),c(window,"scroll",n),c(window,"resize",n),d(n),m(n)}())}void 0!==r.hidden?(e="hidden",n="visibilitychange"):void 0!==r.mozHidden?(e="mozHidden",n="mozvisibilitychange"):void 0!==r.msHidden?(e="msHidden",n="msvisibilitychange"):void 0!==r.webkitHidden&&(e="webkitHidden",n="webkitvisibilitychange");function d(e){return"function"==typeof e?v("focus",(function(n){e(n)})):(i="active",s.fire(Ba,"focus"),s.fire(Ba,"wakeup"),s.fire(Ba,"statusChanged",{status:i})),Ba}function p(e){return"function"==typeof e?v("blur",(function(n){e(n)})):(i="hidden",s.fire(Ba,"blur"),s.fire(Ba,"idle"),s.fire(Ba,"statusChanged",{status:i})),Ba}function f(e){return"function"==typeof e?v("idle",(function(n){e(n)})):(i="idle",s.fire(Ba,"idle"),s.fire(Ba,"statusChanged",{status:i})),Ba}function m(e){return"function"==typeof e?v("wakeup",(function(n){return e(n)})):(i="active",s.fire(Ba,"wakeup"),s.fire(Ba,"statusChanged",{status:i})),Ba}function v(e,n){return l(),s.add(Ba,e,n),Ba}return{name:"ifvisible",setIdleDuration:function(e){return a=1e3*e},getIdleDuration:function(){return a},getIdleInfo:function(){var e,n;return e=+new Date,n={},"idle"===i?(n.isIdle=!0,n.idleFor=e-t,n.timeLeft=0,n.timeLeftPer=100):(n.isIdle=!1,n.idleFor=e-t,n.timeLeft=t+a-e,n.timeLeftPer=(100-100*n.timeLeft/a).toFixed(2)),n},wakeup:m,idle:f,focus:d,blur:p,on:v,off:function(e,n){return l(),s.remove(Ba,e,n),Ba},onEvery:function(e,n){var t,r=!1;return l(),n&&(t=setInterval((function(){if("active"===i&&!r)return n()}),1e3*e)),{stop:function(){return clearInterval(t)},pause:function(){return r=!0},resume:function(){return r=!1},code:t,callback:n}},now:function(e){return l(),i===(e||"active")}}}();pn.container.register("ifvisible",{useValue:Ba}),pn.ifvisible=pn.container.resolve("ifvisible");var qa=function(){var e,n=pn.container.resolve("jqUtils"),t=pn.container.resolve("ifvisible"),r=0,o=[],i=60,a=!0,s=function(){m();var e=o[o.length-1];void 0!==e&&void 0===e.stopTime||o.push({startTime:new Date,startMinute:r,stopTime:void 0})},c=function(){if(0!==o.length&&!a){if(d())return void f();var e=o[o.length-1];void 0===e.stopTime&&(e.stopTime=new Date,e.stopMinute=r)}},u=function(e,n,t,r){var o=Math.abs(e.getTime()-n.getTime()),i=t-r;return o>6e4*(i+10)&&(o=6e4*i),o},l=function(e){var n=parseFloat(e);if(isNaN(n))throw{name:"InvalidDurationException",message:"An invalid duration time ("+e+") was provided."};t.setIdleDuration(n),i=n},d=function(){return!!(e=n.filter("video,audio",(function(e){return!e.paused}))).length},p=function(){setTimeout((function(){c()}),15e3)},f=function(){!e||e.forEach((function(e){n.on(e,"pause",p)}))},m=function(){!e||e.forEach((function(e){n.off(e,"pause",p)}))};return{name:"activetimer",setIdleDurationInSeconds:l,getActiveTimeInSeconds:function(){for(var e=0,n=0;n<o.length;n++){var t=o[n].startTime,i=o[n].stopTime,a=o[n].startMinute,s=o[n].stopMinute;void 0===i&&(i=new Date,s=r),e+=u(i,t,s,a)}return Math.floor(e/1e3)},getTotalTimeInSeconds:function(){var e=0,n=o[0];if(void 0!==n){var t=n.startTime,i=n.startMinute,a=new Date;e=u(a,t,r,i)}return Math.floor(e/1e3)},resetRecordedTime:function(){o=[],s()},startTimer:s,stopTimer:c,initialize:function(e){e&&l(e),t.on("blur",(function(){a=!1,c()})),t.on("focus",(function(){a=!0,s()})),t.on("idle",(function(){i>0&&(a=!1,c())})),t.on("wakeup",(function(){i>0&&(a=!0,s())})),s(),setInterval((function(){r++}),6e4)}}}();pn.container.register("activetimer",{useValue:qa}),pn.activetimer=pn.container.resolve("activetimer");var za=function(){var e,n={},t=[],r=!1,o={RENDERED_FOR_CURRENT_UNIT:1,DID_NOT_RENDER_BUT_VIEWED:2,RECIEVED_FROM_GET_SLOTS:3};function i(e){e&&(c(),r=!1),function(){if(r)return!1;r=!0;try{var e=window.googletag=window.googletag||{};return e.cmd=e.cmd||[],e.cmd.push((function(){e.pubads().addEventListener("slotRenderEnded",d),e.pubads().addEventListener("impressionViewable",p),e.companionAds().addEventListener("slotRenderEnded",d),e.companionAds().addEventListener("impressionViewable",p)})),e.apiReady&&e.cmd.push((function(){u(e.pubads().getSlots()),u(e.companionAds().getSlots())})),!0}catch(e){return m(e),!1}}()}function a(n,t){"function"==typeof e&&e(n,t)}function s(e){return e&&void 0!==n[e]&&null!==n[e]&&n.hasOwnProperty(e)}function c(){n={},t=[]}function u(e){for(var n=0;n<e.length;n++){var t=e[n];d({eventSource:o.RECIEVED_FROM_GET_SLOTS,slot:t})}}function l(e){var n;try{var t=e.serviceName,r=e.slot;if(!t){var o=e.slot.getServices();o&&o.length&&(t=o[0].getName())}var i=r.getResponseInformation()||{},a=r.getSlotId?r.getSlotId():{},s=r.getSlotElementId?r.getSlotElementId():a.getDomId?a.getDomId():null;n={companion:!!t&&"companion_ads"===t,adUnit:r.getAdUnitPath?r.getAdUnitPath():0,isEmpty:e.isEmpty,elementId:s,advertiserId:e.advertiserId||i.advertiserId,campaignId:e.campaignId||i.campaignId,lineItemId:e.lineItemId||i.lineItemId,creativeId:e.creativeId||i.creativeId,eventSource:e.eventSource||null,size:e.size&&e.size.slice(0,2)||null,viewed:!1,position:null};var c=document.getElementById(s);if(s&&c&&(n.position={top:c.offsetTop,left:c.offsetLeft},void 0===e.isEmpty&&(n.isEmpty=c.offsetWidth<=0&&c.offsetHeight<=0,!n.isEmpty&&!n.size))){var u=r.getSizes();u&&u.length&&(n.size="object"==_typeof(u[0])?[u[0].getWidth(),u[0].getHeight()]:u[0])}}catch(e){m(e)}return n}function d(e){e.eventSource=e.eventSource||o.RENDERED_FOR_CURRENT_UNIT;var r=l(e),i=f(e.slot);!i||(n[i]?r.viewed=n[i].viewed:t.push(i),n[i]=r,a(r,i))}function p(e){var r=f(e.slot);if(r){var i=n[r]||l(e);s(r)||(n[r]=i,t.push(r)),void 0===i.companion&&(i.companion="companion_ads"===e.serviceName),(!i.eventSource||i.eventSource>o.DID_NOT_RENDER_BUT_VIEWED)&&(i.eventSource=o.DID_NOT_RENDER_BUT_VIEWED),i.viewed=!0,a(i,r)}}function f(e){try{var n=e.getSlotId?e.getSlotId():{},t=e.getSlotElementId?e.getSlotElementId():n.getDomId?n.getDomId():null,r=e.getAdUnitPath?e.getAdUnitPath():0;return[t,n.getId?n.getId():0,r].join(":")}catch(e){m(e)}}function m(e){pn&&pn.util&&pn.util.error&&pn.util.error("DFP module error: ",e)}return i(),{name:"doubleClickForPublisher",initialize:i,setCustomHandler:function(n){e=n},getAds:function(e){var r=[],o=0,i=t.length;e&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)&&e>0&&e<i&&(o=i-e);for(var a=o;a<i;a++){var c=t[a];!s(c)||r.push(n[c])}return r},resetAds:c}}();pn.container.register("doubleClickForPublisher",{useValue:za}),pn.doubleClickForPublisher=pn.container.resolve("doubleClickForPublisher");var Ha=function(){var e,n,t,r,o,i,a,s,c=pn.container.resolve("postmessage"),u=pn.container.resolve("util"),l="https://js.braintreegateway.com/web/3.79.1/js/client.min.js",d="https://js.braintreegateway.com/web/3.79.1/js/apple-pay.min.js",p="https://js.braintreegateway.com/web/3.79.1/js/data-collector.min.js",f="";c.subscribe("loaded",(function(){m()})),c.subscribe("startCheckout",(function(){m()})),c.subscribe("applePayBtClientToken",(function(e){y(e.params.clientToken)})),c.subscribe("applePayBtCheckoutFlowProperties",(function(e){i=e.params.requestEmail,a=e.params.requestPostalAddress})),c.subscribe("applyTaxFailed",(function(n){e.abort()})),c.subscribe("checkApplePayBtInstance",(function(e){n&&c.broadcast("applePayInit",{})})),c.subscribe("applyTaxCompleted",(function(e){h(e.params)})),c.subscribe("applePayBtBeginSession",(function(t){var r={},s=t.params;s.resourceTitle&&(r=s),s.termId&&(f=s.termId||"");var u={currencyCode:s.currencyCode,total:{label:s.resourceTitle,amount:s.chargeAmount}};v(u);try{o=n.createPaymentRequest(u)}catch(e){c.broadcast("payment-error",{errorCode:101})}(e=new window.ApplePaySession(2,o)).onvalidatemerchant=function(t){n.performValidation({validationURL:t.validationURL,displayName:s.resourceTitle||r.resourceTitle},(function(n,t){if(n)return e.abort(),void c.broadcast("payment-error",{errorCode:102});e.completeMerchantValidation(t)}))},e.onpaymentauthorized=function(t){n.tokenize({token:t.payment.token},(function(n,r){if(n)return c.broadcast("payment-error",{errorCode:103}),void e.completePayment(window.ApplePaySession.STATUS_FAILURE);var o={nonce:r.nonce,cardType:r.details.cardType};i||a?g(t,o):h(o)}))},e.begin()}));var m=function(){var e=u.__protected__.isApplePayAllowed();c.broadcast("EVENT_APPLE_PAY_CAN_MAKE_PAYMENTS",{canMakePayments:e})},v=function(e){i&&(e.requiredShippingContactFields=["email"]),a&&(e.requiredBillingContactFields=["postalAddress"])},g=function(e,n){var t=e.payment.billingContact,r={countryCode:t.countryCode?t.countryCode.toUpperCase():t.countryCode,zipCode:t.postalCode,billingZipCode:t.postalCode,nonce:n.nonce,cardType:n.cardType};e.payment.shippingContact&&(r.user={email:e.payment.shippingContact.emailAddress}),c.broadcast("applePayPaymentAuthorized"+f,r)},h=function(n){e.completePayment(window.ApplePaySession.STATUS_SUCCESS),n.deviceData=r.deviceData,c.broadcast("applePayNonce"+f,n)},y=function(e){s=e,w()},w=function(){C()||k(l,(function(){!0,_()}))},_=function(){I()||k(p,(function(){!0,b()}))},b=function(){S()||k(d,(function(){!0,window.braintree.client.create({authorization:s}).then((function(e){return t=e,window.braintree.dataCollector.create({client:e,kount:!0,paypal:!0})})).then((function(e){return r=e,t})).then((function(e){window.braintree.applePay.create({client:e},(function(e,t){e?c.broadcast("payment-error",{errorCode:101}):(n=t,c.broadcast("applePayInit",{}))}))})).catch((function(e){if(e)return c.broadcast("payment-error",{errorCode:100}),void u.error("[TP] Client error: "+e.message)}))}))},k=function(e,n){u.addScript(e,n)},C=function(){return u.isScriptAdded(l)},I=function(){return u.isScriptAdded(p)},S=function(){return u.isScriptAdded(d)};return{name:"applePay"}}();pn.container.register("applePay",{useValue:Ha}),pn.applePay=pn.container.resolve("applePay");var Wa=function(){var e=pn.container.resolve("postmessage"),n=pn.container.resolve("util"),t="",r={environment:"",billingRequestFlowId:""},o={customer:"",mandate:"",bank_account_ending:"",bank_account_holder:"",bank_name:"",currency:""},i=!1;e.subscribe("LOAD_GOCARDLESS_DROPIN",(function(n){t=n.sender,i?e.send("GOCARDLESS_DROPIN_LOADED",null,t):s("https://pay.gocardless.com/billing/static/dropin/v2/initialise.js",(function(){i=!0,e.send("GOCARDLESS_DROPIN_LOADED",null,t)}))})),e.subscribe("GOCARDLESS_DROPIN_MANDATE_CREATION_INIT",(function(e){r=e.params,i&&a()}));var a=function(){window.GoCardlessDropin.create({billingRequestFlowID:r.billingRequestFlowId,environment:r.environment,onSuccess:function(n){var r=n.links,i=r.customer,a=r.mandate_request_mandate,s=n.resources.customer_bank_account,c=s.account_number_ending,u=s.account_holder_name,l=s.bank_name,d=n.mandate_request.currency;o={customer:i,mandate:a,bank_account_ending:c,bank_account_holder:u,bank_name:l,currency:d},null,e.send("GOCARDLESS_DROPIN_MANDATE_CREATION_COMPLETE",o,t)},onExit:function(n){null,n?e.send("payment-error",{message:n},t):e.send("GOCARDLESS_DROPIN_ENABLE_PLUGIN",null,t)}}).open()},s=function(e,t){n.addScript(e,t)};return{name:"goCardlessDropin"}}();pn.container.register("goCardlessDropin",{useValue:Wa}),pn.goCardlessDropin=pn.container.resolve("goCardlessDropin");var Ga=function(){var e,n,t,r,o,i=pn.container.resolve("postmessage"),a=pn.container.resolve("util"),s=!1,c=function(e){o=e.params,y("https://js.braintreegateway.com/web/3.76.4/js/client.min.js").then((function(){return y("https://js.braintreegateway.com/web/3.76.4/js/data-collector.min.js")})).then((function(){return y("https://js.braintreegateway.com/web/3.76.4/js/google-payment.min.js")})).then((function(){return y("https://pay.google.com/gp/p/js/pay.js")})).then((function(){return d()})).then((function(e){i.broadcast("braintree-google-pay-initiate-end",e)})).catch((function(e){a.error(e),i.broadcast("braintree-google-pay-error",e)}))},u=function(e){l(e.params)},l=function(e){var n=e.currencyCode,t=e.amount,o=r.createPaymentDataRequest({transactionInfo:{currencyCode:n,totalPriceStatus:"FINAL",totalPrice:t}}),s=o.allowedPaymentMethods[0];s.parameters.billingAddressRequired=!0,s.parameters.billingAddressParameters={format:"FULL",phoneNumberRequired:!0},o.callbackIntents=["PAYMENT_AUTHORIZATION"],v().loadPaymentData(o).then((function(e){return e})).catch((function(e){"CANCELED"!==e.statusCode&&(a.error(e),i.broadcast("braintree-google-pay-error",e.message||e.statusMessage))}))},d=function(){return p().then((function(){return f()})).then((function(){return m()}))},p=function(){return window.braintree.client.create({authorization:o.clientToken}).then((function(n){e=n}))},f=function(){return window.braintree.dataCollector.create({client:e,kount:!0,paypal:!0}).then((function(e){n=e}))},m=function(){return t=null,window.braintree.googlePayment.create({client:e,googlePayVersion:2,googleMerchantId:o.merchantId}).then((function(e){return r=e,v().isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:h(),existingPaymentMethodRequired:!0})}))},v=function(){return t||(t=new window.google.payments.api.PaymentsClient({environment:o.environment,paymentDataCallbacks:{onPaymentAuthorized:function(e){return g(e).then((function(e){return i.broadcast("braintree-google-pay-payment-complete",Object.assign({},e,n)),{transactionState:"SUCCESS"}})).catch((function(e){return a.error(e),i.broadcast("braintree-google-pay-error",e),{transactionState:"ERROR",error:e}}))}}}),t)},g=function(e){return r.parseResponse(e)},h=function(){return r.createPaymentDataRequest().allowedPaymentMethods.filter((function(e){return"PAYPAL"!==e.type}))},y=function(e){return new Promise((function(n){var t;if(a.isScriptAdded(e))n(null);else{var r=document.createElement("script"),o=document.getElementsByTagName("script")[0];null===(t=o.parentNode)||void 0===t||t.insertBefore(r,o),r.type="text/javascript",r.async=!0,r.onload=function(){n(null)},r.src=e}}))};return{name:"braintreeGooglePayIntegrationService",initialize:function(){s||(s=!0,i.subscribe("braintree-google-pay-initiate-start",c),i.subscribe("braintree-google-pay-show-pay-window",u))}}}();pn.container.register("braintreeGooglePayIntegrationService",{useValue:Ga}),pn.braintreeGooglePayIntegrationService=pn.container.resolve("braintreeGooglePayIntegrationService");var Ja=function(){var e,n,t,r=pn.container.resolve("postmessage"),o=pn.container.resolve("util"),i=!1;return{name:"applePayIntegrationService",initialize:function(){var a=function(){i=o.__protected__.isApplePayAllowed(),r.broadcast("EVENT_APPLE_PAY_CAN_MAKE_PAYMENTS",{canMakePayments:i})};r.subscribe("provider-component-initiated",(function(){i&&r.broadcast("apple-pay-init",{})})),r.subscribe("initPwApplePay",(function(){a()})),r.subscribe("startCheckout",(function(){a()})),r.subscribe("pay-session-received",(function(e){try{n.completeMerchantValidation(e.params.applePaySession)}catch(e){r.broadcast("payment-error",{errorCode:111,errors:e})}})),r.subscribe("apple-pay-complete-payment",(function(e){!function(e){return!t||t===e}(e.params.termId)||n.completePayment(e.params.status,e.params.errors)})),r.subscribe("start-purchase",(function(o){t=o.params.termId||"",e=o.params.resourceName,n=new window.ApplePaySession(3,function(e){return{countryCode:e.params.countryCode,currencyCode:e.params.currencyCode,supportedNetworks:["visa","masterCard","amex","discover"],merchantCapabilities:["supports3DS"],requiredShippingContactFields:e.params.requiredShippingContactFields||[],requiredBillingContactFields:e.params.requiredBillingContactFields||[],total:{label:e.params.resourceName,amount:e.params.chargeAmount}}}(o)),n.onvalidatemerchant=function(n){!function(e,n){var o={validationUrl:e,displayedCaption:n,userToken:null,userProvider:null,userRef:null,janrainCaptureToken:null,domainName:window.location.hostname,aid:null,termId:t,merchantIdentifier:tp.applePayMerchantId};r.broadcast("apple-pay-pay-session-request",o)}(n.validationURL,e)},n.onpaymentauthorized=function(e){try{r.broadcast("apple-pay-payment-authorized",{paymentData:e.payment,termId:t,merchantIdentifier:tp.applePayMerchantId})}catch(e){r.broadcast("payment-error",{errorCode:110,error:e})}};try{n.begin()}catch(e){r.broadcast("payment-error",{errorCode:112,error:e,termId:t})}})),r.subscribe("abort-apple-pay-session",(function(){!function(){try{n.abort()}catch(e){o.error(e)}}()}))},__protected__:{applePayCanMakePaymentsWithActiveCard:function(){var e={then:function(e){return e(null)},catch:function(){}};return pn.applePayMerchantId&&o.__protected__.isApplePayAllowed()&&pn.applePayMerchantId?window.ApplePaySession.canMakePaymentsWithActiveCard(pn.applePayMerchantId):e}}}}();pn.container.register("applePayIntegrationService",{useValue:Ja}),pn.applePayIntegrationService=pn.container.resolve("applePayIntegrationService");var Qa=function(){var e,n,t=pn.container.resolve("postmessage"),r=pn.container.resolve("util"),o=pn.container.resolve("ajax"),i="datatrans-applepay-button",a=!1,s=null,c=null,u=!1,l=function(n){e=n.sender,v().then(g).then(h)},d=function(n){t.send("datatrans-applepay-service-error",n,e)},p=function(e){n=e.params,v().then(g).then(f).catch((function(){d({eventName:"init-error",errorCode:110})}))},f=function(){PaymentButton.init(n.applePayConfig)},m=function(){var e=document.getElementById(i);null!==e&&null!==e.firstElementChild?e.firstElementChild.click():d({eventName:"system-error",errorCode:112})},v=function(){return null!==c||(c=new Promise((function(e){o.request({url:tp.getApiEndpoint()+"/anon/datatrans/applepay/config",data:{aid:tp.aid},dataType:"jsonp",jsonpCallback:"jsonpCallback",success:function(n){var t=n.config;e(t.url)}})}))),c},g=function(e){if(null!==s)return s;var n="datatrans-apple-pay";return document.getElementById(n)?void 0:s=new Promise((function(t){var r=document.createElement("script");r.addEventListener("load",(function(){return t(null)})),r.src=e,r.id=n,document.body.appendChild(r)}))},h=function(){u||(PaymentButton.on("init",y),PaymentButton.on("create",w),PaymentButton.on("token",_),PaymentButton.on("abort",(function(){d({eventName:"abort",errorCode:0})})),PaymentButton.on("unsupported",(function(){d({eventName:"unsupported",errorCode:113})})),PaymentButton.on("error",(function(e){e&&(r.error("datatransApplePayIntegrationService. apple pay button error: "+e),d({eventName:"error",errorCode:112}))})),u=!0)},y=function(){var e=b();PaymentButton.create(e,n.paymentConfig).catch((function(){d({eventName:"create-error",errorCode:111})}))},w=function(){r.log("datatransApplePayIntegrationService paymentButtonOnCreate"),t.send("datatrans-applepay-service-ready",null,e)},_=function(n){r.log("datatransApplePayIntegrationService paymentButtonOnToken"),t.send("datatrans-applepay-service-token",n.token.details.token,e)},b=function(){var e=document.getElementById(i);return null===e&&((e=document.createElement("div")).setAttribute("id",i),e.style.display="none",document.body.appendChild(e)),e.innerHTML="",e};return{name:"datatransApplePayIntegrationService",initialize:function(){!r.__protected__.isApplePayAllowed()&&a||(a=!0,t.subscribe("datatrans-applepay-loaded",l),t.subscribe("datatrans-applepay-checkout-initiate-purchase",p),t.subscribe("datatrans-applepay-make-purchase",m))}}}();pn.container.register("datatransApplePayIntegrationService",{useValue:Qa}),pn.datatransApplePayIntegrationService=pn.container.resolve("datatransApplePayIntegrationService");var Ya=function(){var e,n=pn.container.resolve("postmessage"),t=pn.container.resolve("util"),r=null,o=null,i=!1,a="";n.subscribe("stripe-applepay-initialized",(function(){s()})),n.subscribe("stripe-applepay-initiate-purchase",(function(e){s().then((function(){var n=e.params.apiKey,t=e.params.accountId;null===r&&(r=t?window.Stripe(n,{stripeAccount:t}):window.Stripe(n));var o=e.params.paymentRequestPayload;return r.paymentRequest(o)})).then((function(e){return o=e,e.canMakePayment()})).then((function(e){i=e&&e.applePay,n.broadcast("stripe-applepay-initiate-purchase-complete",{canMakePayment:i}),i&&(o.on("cancel",(function(){n.broadcast("stripe-applepay-start-purchase-complete"+a,{status:"fail"})})),o.on("paymentmethod",(function(e){var t=e.paymentMethod.billing_details.address,r={countryCode:t.country,zipCode:t.postal_code,billingZipCode:t.postal_code},o=e.paymentMethod.id;n.broadcast("stripe-applepay-start-purchase-complete"+a,{status:"success",paymentMethodId:o,payerEmail:e.payerEmail,billingAddress:r}),e.complete("success")})))})).catch((function(e){t.error(e),n.broadcast("stripe-applepay-initiate-purchase-complete",{canMakePayment:!1})}))})),n.subscribe("stripe-applepay-start-purchase",(function(e){a=e.params.termId||"";var n=e.params.paymentRequestPayload;o.update(n),o.show()})),n.subscribe("stripe-applepay-abort-request",(function(){o&&o.abort(),n.broadcast("stripe-applepay-reopen-request")}));var s=function(){if(null!=e)return e;if(!document.getElementById("stripe.js")){var n=document.createElement("script");return n.src="https://js.stripe.com/v3/",n.id="stripe.js",document.body.appendChild(n),e=new Promise((function(e){n.onload=function(){e(null)}}))}};return{name:"stripeApplePayIntegrationService"}}();pn.container.register("stripeApplePayIntegrationService",{useValue:Ya}),pn.stripeApplePayIntegrationService=pn.container.resolve("stripeApplePayIntegrationService");var Xa=function(){var e=pn.container.resolve("postmessage"),n=pn.container.resolve("util");e.subscribe("obi-handle-3ds-challenge",(function(e){var r=e.params;if(window.obick)t(r);else{if(-1===["https://jsl.qat.obi.aol.com/obipmservice/obick.umd.js","https://jsl.prod.obi.aol.com/obipmservice/obick.umd.js"].indexOf(r.obickUrl))return void n.error("Untrusted obickUrl detected: "+r.obickUrl);var o=document.createElement("script");o.src=r.obickUrl,o.id="obick.js",document.body.appendChild(o),o.onload=function(){n.log("".concat(o.id," onload")),t(r)}}}));var t=function(t){if(t.stepUpUrl&&0!==t.stepUpUrl.indexOf("http"))n.error("There is no link in params.stepUpUrl for OBI");else{var r={stepUpUrl:t.stepUpUrl,jwt:t.jwt,transactionId:t.transactionId,zIndex:t.zIndex};window.obick.handle3dsChallenge(r).then((function(t){n.debug(t),e.broadcast("obi-3ds-challenge-complete",{threeDSTransactionId:t.threeDSTransactionId,challengeStatus:t.challengeStatus})})).catch((function(t){n.error(t),e.broadcast("obi-3ds-challenge-complete",{error:"challenge-error",payload:t})}))}};return{name:"obi3DSChallenge"}}();pn.container.register("obi3DSChallenge",{useValue:Xa}),pn.obi3DSChallenge=pn.container.resolve("obi3DSChallenge");var $a=function(){var e=pn.container.resolve("jqUtils"),n=pn.container.resolve("util"),t=pn.container.resolve("api"),r=pn.container.resolve("user"),o=pn.container.resolve("pianoId"),i={displayMode:"inline",containerSelector:"body",loginSuccess:p},a="reader_id",s=function(){return"/"+pn.aid+"/execution/amp"},c=function(){return s()+"/login"},u=function(){window.location.href=n.getQueryParamByName("return")+"#success=true"};var l=function(e){return/^\w+$/i.test(e)},d=function(e){var r={};if(r.reader_id=n.getQueryParamByName(a),r.reader_id){var o=pn.getExperienceEndpoint(!1);t.callApi(s()+"/logout",r,e,o,!1)}else n.log("reader_id cannot be empty")};function p(e,r){var o=e||{};if(o.reader_id||(o.reader_id=n.getQueryParamByName(a)),o.reader_id){var i=pn.getExperienceEndpoint(!1);t.callApi(c(),o,r,i,!1)}else n.log("reader_id cannot be empty")}return{name:"amp",showLogin:function(t){t=t||{};var a=r.getProvider();if(a.getName()===o.getName()){var s;s=t.loginSuccess&&e.isFunction(t.loginSuccess)?t.loginSuccess:u;var c=function(){p({},s)},l=Object.assign({},i,t);r.isUserValid()?c():(l.loginSuccess=c,o.show(l))}else n.log("Current user provider"+a.name+" is not allowed for amp")},logout:function(n){n=e.isFunction(n)?n:u,r.getProvider().getName()===o.getName()?o.logout((function(){d(n)})):d(n)},login:function(t){var i=r.getProvider().getName();i===o.getName()&&(t=t?e.deepExtend({},t,{userProvider:i}):{userProvider:i});var a={user_transient:!0,user_provider:"publisher_user"};if(t&&t.readerId&&(a.reader_id=t.readerId),t&&t.userToken&&(a.user_token=t.userToken),t&&t.userProvider&&(a.user_provider=t.userProvider,a.user_transient=!1),!function(t){if(t&&t.userState&&e.isPlainObject(t.userState)){var r=Object.keys(t.userState);if(r.filter(l).length!==r.length)return n.error("user_state accept only contain letters, numbers and underscore"),!1}return!0}(t))return!1;t&&t.userState&&(a.user_state=JSON.stringify(t.userState));p(a,(function(n){0===n.code?t.loginSuccess&&e.isFunction(t.loginSuccess)&&t.loginSuccess():t.loginFail&&e.isFunction(t.loginFail)&&t.loginFail()}))}}}();pn.container.register("amp",{useValue:$a}),pn.amp=pn.container.resolve("amp");var Ka=function(){var e,n=pn.container.resolve("postmessage"),t=[{resourceRegExp:new RegExp("/checkout/offer/show"),label:"showOffer"},{resourceRegExp:new RegExp("tinypass.min.js$"),label:"tinypassMinJS"},{resourceRegExp:new RegExp("/xbuilder/experience/execute"),label:"experienceExecute"}],r=!1,o=[],i="EVENT_TP_PERFORMANCE_DATA";function a(e){e.forEach((function(e){!function(e){!function(e){return t.some((function(n){return e.name.match(n.resourceRegExp)}))}(e)||function(e){if(!s())return void o.push(e);o.push(e),c()}(e)}(e)}))}function s(){return r&&e}function c(){!s()||(o.forEach((function(t){n.send(i,{entry:t},e)})),o=[])}return function(){if(window.performance&&window.PerformanceObserver&&"function"==typeof performance.getEntries){var t=window.PerformanceObserver.prototype.observe;window.PerformanceObserver.prototype.observe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(this,e)}catch(e){}},n.subscribe("EVENT_LOGGER_READY",(function(n){e=n.sender,r=!0,c()})),a(performance.getEntries()),new PerformanceObserver((function(e){a(e.getEntries())})).observe({entryTypes:["measure","resource"]})}}(),{name:"performanceMetrics"}}();pn.container.register("performanceMetrics",{useValue:Ka}),pn.performanceMetrics=pn.container.resolve("performanceMetrics");var Za=function(){var e=pn.container.resolve("api"),n=pn.container.resolve("pianoId");return{name:"doubleOptIn",check:function(){!pn.user.isUserValid()||new Promise((function(n){e.callApi("/email/confirmation/check",{},(function(e){n(e)}))})).then((function(e){e&&!1===e.data&&n.showEmailConfirmationRequired()}))}}}();pn.container.register("doubleOptIn",{useValue:Za}),pn.doubleOptIn=pn.container.resolve("doubleOptIn");var es=function(){var e=pn.container.resolve("api"),n=pn.container.resolve("postmessage"),t=pn.container.resolve("util"),r=t.debounce((function(){o().then(i,a)}),1500),o=function(){return new Promise((function(n,t){var r={aid:pn.aid};e.callApi("/externalVerification/synchronizeSubscriptions",r,(function(e){e&&e.data&&n(e.data),t(e.message)}))}))},i=function(e){n.broadcast("NEWSCYCLE_HAS_BEEN_SYNCHRONIZED_SUCCESS",{data:e})},a=function(e){t.error("newscycle module: sync request failed with error: "+e)};return{name:"newscycle",syncSubscriptions:r}}();pn.container.register("newscycle",{useValue:es}),pn.newscycle=pn.container.resolve("newscycle");var ns=function(){var e=pn.container.resolve("postmessage"),n={enabled:!1,captcha3SiteKey:"",aid:""};function t(){window.grecaptcha.ready(r)}var r=function(){var e=document.createElement("div");e.id="tp-recaptcha",document.body.appendChild(e),window.grecaptcha.render("tp-recaptcha",{sitekey:n.captcha3SiteKey,size:"invisible","error-callback":function(){e.style.display="none"}})},o=function(){window.onCaptchaV3Load=t;var e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?onload=onCaptchaV3Load&render=explicit",e.type="text/javascript",e.async=!0,e.defer=!0,document.head.appendChild(e)},i=function(){e.subscribe("set-captcha-v3-config",(function(e){!function(e){e&&e.enabled&&(n=e,o())}(e.params.config)})),e.subscribe("get-captcha-v3-config",(function(){e.broadcast("get-captcha-v3-config-value",{config:n})}))};e.subscribe("get-captcha-v3-token",(function(e){window.grecaptcha.ready((function(){return a(e.params.action)}))}));var a=function(n){window.grecaptcha.execute({action:n}).then((function(n){e.broadcast("captcha-v3-token",{token:n})})).catch((function(){e.broadcast("captcha-v3-token",{token:""})}))};return{name:"captchaV3",addCaptchaV3:function(){i()}}}();pn.container.register("captchaV3",{useValue:ns}),pn.captchaV3=pn.container.resolve("captchaV3");pn.container.register("tinypassErrorHandler",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("postmessage"),t=e.resolve("api"),r=e.resolve("util"),o=e.resolve("analytics"),i=e.resolve("versionService"),a="EVENT_TP_ERROR_HANDLER",s="sdk",c=[],u=!0,l=function(e){if(h(e)&&!v(c,e)){e.tags||(e.tags=["unknown"]),e.aid=pn.aid,e.v=i.getTinypassVersion();var n={details:e};c.push(n)}};var d=function(e){var n=e.params;Array.isArray(n)&&n.forEach((function(e){e.tags.push(pn.aid),l(e)}))};function p(e){var n,t;if(e.message.toLowerCase().indexOf("script error")>-1)l({message:"Probably that is Piano error.",url:window.location.href,tags:[s]});else{var r=null==e?void 0:e.error;if(g(null==r?void 0:r.stack))return!1;l({stack:null!==(n=null==r?void 0:r.stack)&&void 0!==n?n:"n/a",message:null!==(t=null==r?void 0:r.message)&&void 0!==t?t:"n/a",userAgent:navigator.userAgent,tags:[s]})}return!1}var f=function(){setInterval((function(){m(),u=!1}),15e3)},m=function(){var e=c.filter((function(e){return!e.send}));if(0!==e.length){var n=e.map((function(e){return e.details})),r={type:"console-error-message",srcType:"ts",log_message:JSON.stringify(n)};o.log.event({eventType:Bo.LOG_BEACON_REQUEST,payload:{url:t.getEndpoint()+"/anon/error/log",params:r}}),e.forEach((function(e){return e.send=!0}))}},v=function(e,n){var t=e.map((function(e){return JSON.stringify(e.details)})),r=JSON.stringify(n);return-1!==t.indexOf(r)},g=function(e){return-1===(null==e?void 0:e.indexOf("tinypass"))},h=function(e){var n=!!r.__protected__.getLocalStorageItem("tinypassErrorHandlerTestMode");return e.tags.indexOf("wgt_err")>=0||n||0===y(0,1e3)},y=function(e,n){var t=e-.5+Math.random()*(n-e+1);return Math.round(t)},w=function(e,n){return void 0===e&&(e=[]),n?e.concat(n):e};return{name:"tinypassErrorHandler",addError:function(e,n){try{var t={place:n,tags:[s]};e instanceof Error?(t.stack=e.stack,t.message=e.message):t.stack=JSON.stringify(e),u&&(t.tags=w(t.tags,"initError")),l(t)}catch(e){}},initialize:function(){try{pn.isSandbox()||(n.subscribe(a,d),null===(e=window.addEventListener)||void 0===e||e.call(window,"error",p),f())}catch(e){console.warn("Cannot start watching errors",e)}var e}}}()}),pn.tinypassErrorHandler=pn.container.resolve("tinypassErrorHandler");pn.container.register("main",{useValue:function(e){void 0===e&&(e=pn.container);var n=e.resolve("api"),t=e.resolve("cookie"),r=e.resolve("jqUtils"),o=e.resolve("util"),i=e.resolve("logging"),a=e.resolve("fingerprint"),s=e.resolve("user"),c=e.resolve("sha1"),u=e.resolve("activetimer"),l=e.resolve("scrollDepth"),d=e.resolve("doubleClickForPublisher"),f=e.resolve("offer"),m=e.resolve("viewportExit"),v=e.resolve("idle"),g=e.resolve("experience"),h=e.resolve("pianoId"),y=e.resolve("pianoEsp"),w=e.resolve("applePayIntegrationService"),_=e.resolve("datatransApplePayIntegrationService"),b=e.resolve("braintreeGooglePayIntegrationService"),k=e.resolve("cxense"),C=(e.resolve("tinypassErrorHandler"),e.resolve("captchaV3")),I=pn.container.resolve("postmessage"),S=e.resolve("composerControlPolicy"),E=e.resolve("analytics"),T=e.resolve("consent"),P="exrs",x={minutes:120},A=null,O="voucher_code",N="passwordless_token",M="__pvi",R=!1,L=!1,U={},D=null,j={APPLE_PAY_BT:25,APPLE_PAY_SS:38,APPLE_PAY_STRIPE:41,APPLE_PAY_PW:42,DATATRANS_APPLE_PAY:61},V=new Set(Object.values(j)),F=void 0,B=[],q=!1,z=function(){if("iP"===navigator.platform.substr(0,2)){var e=/constructor/i.test(window.HTMLElement),n=window.navigator,t=n.userAgent,r=!!window.indexedDB;if((-1===t.indexOf("Safari")||-1===t.indexOf("Version")||n.standalone)&&(r||!e)&&window.statusbar.visible&&(window.webkit&&window.webkit.messageHandlers||!e||r))return!0}return!1}();var H,W,G,J=function(){return o.parseJSON(o.__protected__.getCookie(M),!0)||{}},Q=function(){return o.getCurrentDomainFromCookie(M,!0)},Y=function(e,n){var t=U;U={};var r={};for(var o in t)if(t.hasOwnProperty(o))for(var i in r[o]=r[o]||[],t[o])t[o].hasOwnProperty(i)&&r[o].push(t[o][i]);ke(r,e,n)},X=function(){return g.execute.invokeCount>0&&Mr.refresh(),k.__protected__.clearWidgets(),Mr.get("pageViewId")};function $(){function e(e,n,t){t=t||"0";var r=String(e);return r.length>=n?r:new Array(n-r.length+1).join(t)+r}if(Se())return Ee();var n=o.randomString(16),t=c.hash([a.getFingerprint(),window.location.href].join("")),r=new Date;return[[e(r.getFullYear(),4),e(r.getMonth()+1,2),e(r.getDate(),2),e(r.getHours(),2),e(r.getMinutes(),2),e(r.getSeconds(),2),e(r.getMilliseconds(),3)].join("-"),n,t].join("-")}var K=function(e){var n={path:"/",expires:1,domain:W.currentDomain};return e&&(n.domain=e),n},Z=function(e,n){e.domain=n.domain,e.time=(new Date).getTime(),o.__protected__.setCookieConsent("vx",M,o.toJSON(e,!0),n)},ee=function(e){var n=(new Date).getTime(),t=6e4*o.getBrowserTimezoneOffset(),r=o.getAppTimezoneOffset(),i=new Date(e.time).setHours(0,0,0,0)+864e5-t-r;return e.time+18e5<n||n>=i},ne=function(){if(o.__protected__.cameFromFbSubscriptions()||!W.currentDomain)return!1;var e=o.getReferrer();if(D&&D===e)return!1;var n=o.getHostname(e),t=new RegExp(W.currentDomain.replace(/\./g,"\\.").replace(/^\\./,"\\.?")+"$").test(n);return Boolean(n)&&!t},te=function(){var e=J();(!e||!e.id||!e.time||ee(e)||ne())&&(e.id="v-"+$()),function(e){var n=K();e.domain||W.currentDomain?Z(e,n):o.waitCall("domainIsReceived",(function(t){de(t),n.domain=t,Z(e,n)}))}(e),W.visit=e},re=function(e,n,t){var i,s,c,u="manual",l=!1;if(void 0===n)n=window.location.href;else{if("object"!=_typeof(n))throw new Error("First parameter to track page must be a URL or an object");var d=n;if(void 0===d.url)throw new Error("Must supply url property");n=d.url,void 0!==d.tags&&(t=d.tags),void 0!==d.submitType&&(u=d.submitType),l=d.skipPageViewTrack}t||(t=pn.tags),pn.customPageUrl&&(e.custom_page_url=o.prepareUrlParameter(pn.customPageUrl)),void 0!==t?"[object Array]"!==Object.prototype.toString.call(t)&&"[object String]"!==Object.prototype.toString.call(t)?(o.log("Tags must be an array or a comma-separated string, ignoring supplied tags"),t=""):t instanceof Array&&(t=t.join(",")):t="",l||G.track(),e.page_session_id=G.pageSessionId,e.track_count=G.trackCount,_e(e),pn.contentCreated?c=pn.contentCreated:pn.contentCreatedSelector&&r.queryEl(pn.contentCreatedSelector)&&(c=null===(i=r.queryEl(pn.contentCreatedSelector))||void 0===i?void 0:i.innerHTML),c&&(pn.contentCreated||(pn.contentCreated=c),e.content_created=c),"boolean"==typeof pn.contentIsNative&&(e.content_is_native=pn.contentIsNative),pn.zone&&(e.zone=pn.zone),pn.itemId&&(e.item_id=pn.itemId);var p=pn.contentSection||le("section");p&&(e.content_section=p);var f=pn.contentAuthor||le("author");f&&(e.content_author=f);var m=pn.contentId||le("id");m&&(e.content_id=m);var v,g=o.__protected__.getCookie("sailthru_hid");g&&(e.sailthru_hid=g),D&&D===o.getReferrer()?v="":(v=o.getReferrer(),D=v),e.referer=o.prepareUrlParameter(v),t&&(e.tags=t),e.url=o.prepareUrlParameter(n),e.fingerprint=a.getFingerprint(),e.adblocker=o.getAdblockStatus(),(e.adblocker===o.ADBLOCKER_STATUS.ENABLED_AFTER_DISABLED||e.adblocker===o.ADBLOCKER_STATUS.ENABLED)&&(pn.setCustomParam("_abr",o.getAdblockerStatusReason(),"user",!0),pn.setCustomParam("_absh",o.getAdblockerHistoryCookieInfo().cookieValue+"","user",!0)),e.timezone_offset=o.getBrowserTimezoneOffset(),e.submit_type=u;var h=ue();e.visit_id=h,e.new_visit=se(h);var y=function(){return Mr.get("content")||{}};return e.keywords=(null===(s=y().keywords)||void 0===s?void 0:s.join(","))||"",e.title=y().title||"",e.description=y().description||"",e.content_type=y().type||"",["keywords","title","description","content_type"].forEach((function(n){e[n]=e[n].substr(0,8192)})),e.custom_variables=JSON.stringify(pn.customVariables),ie(e),T.__protected__.addConsentsToParams(e),e},oe=function(){return ce(),{}},ie=function(e){var n={};return pn.customParams&&(n=r.deepExtend({},pn.customParams)),r.isEmptyObject(n)||(e.custom_params=JSON.stringify(n)),e},ae=function(){return G.id},se=function(e){var n=W.lastTrackedVisitId!==e;return W.lastTrackedVisitId=e,n},ce=function(){W.checkForRefresh=!0},ue=function(){return W.checkForRefresh&&(te(),W.checkForRefresh=!1),W.visit.id},le=function(e){return(document.head.querySelector("meta[name="+e+"]")||{}).content},de=function(e){W.currentDomain=e},pe=function(){return!(pn.endpoint&&pn.endpoint.match(/sandbox/))},fe=function(e,t,r,a){pn.aid&&0!==pn.aid.length?!pe()||(i.setTime("track",Math.floor(performance.now()-window.pnInitPerformance)),o.waitCall("refreshAccessTokenList",(function(){o.waitCall("offerCreate",(function(){o.startCall("pageTrack");n.callApi(e,t,(function(e){o.doneCall("pageTrack"),r&&r(e)}),pn.getExperienceEndpoint(!1)+"/api/v3",a)}))}))):o.log("Must supply a valid tp.aid before calling tp.init()")},me=function(){R&&G.trackCount>0&&(ve(),we())},ve=function(e){if(pe()&&!S.denyAll)try{oe(),m.isInitialized()&&m.resetSumOfCodesDirectionToDefault(),ye()}catch(e){o.error("main: error on tracking page unload event: ",e)}},ge=function(){L||(L=!0,ve(!0))},he=function(){R=!0},ye=function(){R=!1},we=function(){u.resetRecordedTime()},_e=function(e){e&&(e.pageview_id=ae())},be=function(e,n){if(pe()&&!S.denyAll)try{me();var t=re({},e,n);fe("/page/track",t),he()}catch(e){o.error("main: error on page tracking event: ",e)}},ke=function(e,n,t){},Ce=function(){var e=o.getQueryParamByName(O),n=o.getQueryParamByName(N);e&&!n&&f.startRedeemVoucher({voucherCode:e})},Ie=function(){return A||(A=new Promise((function(e){if(null!==o.__protected__.getLocalStorageItem(P)&&e({has_active_apple_pay_card:o.__protected__.getLocalStorageItem(P)}),!pn.applePayMerchantId)return e({has_active_apple_pay_card:null}),A;Pe((function(e){g.registerCallback("experienceFlow",(function(){F=!0,e(!0)}))})).then((function(n){var t=function(n){e({has_active_apple_pay_card:n}),o.__protected__.setLocalStorageItem("vx",P,n,x)};n?w.__protected__.applePayCanMakePaymentsWithActiveCard().then(t):t(null)}))})))};function Se(){return k.__protected__.isActivated()}var Ee=function(){return o.__protected__.randomStringCxCompatible()};function Te(e){return function(n){var t=n.params;void 0===F&&(F=function(e){if(!Array.isArray(e)||!e.length)return!1;for(var n=0,t=e;n<t.length;n++){var r=t[n];if(V.has(r))return!0}return!1}(t)),B=t||[],e(F)}}function Pe(e){return void 0!==F?Promise.resolve(F):z?(F=!1,Promise.resolve(!1)):new Promise((function(n){e(n)}))}var xe=function(){Pe((function(e){I.subscribe("ACTIVE_PAYMENT_METHODS_IDS_INITIALIZED",Te(e)),I.subscribe("MY_ACCOUNT_ACTIVE_PAYMENT_METHODS_IDS_INITIALIZED",Te(e))})).then((function(e){!e||(!q&&r.isFunction(w.initialize)&&(q=!0,w.initialize()),Ae(B))}))},Ae=function(e){var n=-1!==e.indexOf(j.DATATRANS_APPLE_PAY);r.isFunction(_.initialize)&&n&&_.initialize()};return p(p({name:"main",fetchVisitId:ue},Br({trackPageUnloadIfNecessary:me,trackPageUnload:ve,unregisterTrackUnload:ye,isRegisteredTrackUnload:function(){return R},registerTrackUnload:he})),{externalResourcesDelay:Ie,pageTrack:be,trackPage:function(e,n){return be(e,n)},buildPageTrackParams:re,fetchPageViewId:ae,resetTimer:we,resetAds:function(){d.resetAds()},trackAd:function(e,n,t){U[e]||(U[e]={}),U[e][n]=t,H()},init:function(){if(Mr.isReady||(o.log("DataLayer should be initialized while calling tp.init()"),o.log("DataLayer was initialized by default configs"),Mr.init()),pn.aid&&0!==pn.aid.length){H=o.debounce(Y,3e3),W={currentDomain:Q(),lastTrackedVisitId:J().id,visit:{},checkForRefresh:!1},G={id:X(),pageSessionId:"s-"+$(),trackCount:0,tracked:!1,track:function(){G.tracked?G.id=X():G.tracked=!0,G.trackCount++}},Se()&&pn.cxenseSiteId&&Mr.set("siteId",pn.cxenseSiteId),te(),pn.isMockMode||(r.isFunction(d.initialize)&&d.initialize(),r.isFunction(u.initialize)&&u.initialize(),r.isFunction(l.initialize)&&l.initialize()),r.isFunction(v.initialize)&&v.initialize(),xe(),r.isFunction(b.initialize)&&b.initialize(),r.isFunction(y.__protected__.init)&&y.__protected__.init().catch((function(){})),r.isFunction(s.refreshAccessToken)&&s.refreshAccessToken(),Ie();var e=s.getProvider();e.getName()===h.getName()&&e.__protected__.extendUserToken(),C.addCaptchaV3();var n="cxTrackingId",t=o.getQueryParamByName(n);t&&(o.removeQueryParamByName(n),E.log.event({eventType:Bo.LOG_AUTO_MICRO_CONVERSION,payload:{trackingId:t,eventGroupId:"click",eventType:Fo.EXTERNAL_LINK,customParams:{href:location.href,source:"CX"}}}))}else o.log("Must supply a valid tp.aid before calling tp.init()")},checkToRunWidgetImmediately:function(){Ce(),"pianoId"===s.getProvider().name&&o.waitCall("offerCreate",(function(){h.__protected__.checkVerificationCode()})),h.checkAndShowEmailIsNotConfirmed(),r.isFunction(f.checkThreeDSRedirect)&&f.checkThreeDSRedirect()},trackAds:ke,appHasApplePay:function(){return F},__private__:p(p({VISIT_ID_COOKIE:M,VOUCHER_QUERY:O,PASSWORDLESS_TOKEN_QUERY:N,collectedAds:U,unloadRegistered:R,unloadTriggered:L,getPageView:function(){return G},getVisitContainer:function(){return W},track:fe,checkVoucher:Ce,setPageViewId:_e,currentEnvironmentSupportsPageTrack:pe,invalidateLastVisit:function(){var e=K();t.remove(M,e)},getCurrentDomain:Q,loadLastVisit:J,setVisitCurrentDomain:de,saveVisitCookie:Z,getVisitCookieOptions:K,isTimeExpired:ee,refreshVisit:te,generatePageViewId:$,trackCollectedAds:Y},Br({buildPageUnloadParams:oe,unloadHandler:function(){R&&ge(),Y(!0,"beacon_request"),g.__protected__.sendStatisticsExecutedNodes("unload")},unloadAction:ge})),{buildPageCustomParams:ie,hasExternalReferrer:ne})})}()}),pn.main=pn.container.resolve("main");var ts=function(){var e=null,n=function(n){e=n&&p(p({},e),n),Mr.isReady&&n&&(Mr.set("content",e),e=null)};return{set:function(e,t){var r;return n(((r={})[e]=t,r))},get:function(n){var t;return Mr.isReady?null===(t=Mr.get("content"))||void 0===t?void 0:t[n]:null==e?void 0:e[n]},init:function(){return n(e)}}}(),rs={predefineValues:[]};window.tp&&window.tp.length&&(rs.predefineValues=b([],window.tp||[],!0)),pn.tpPredefinedOptions=rs,pn.container.register("tpPredefinedOptions",{useValue:rs});var os=function(){function e(e,n,t,r,o,i,a,s){this.tpPredefinedOptions=e,this.css=n,this.tinypassErrorHandler=t,this.gaService=r,this.ga4Service=o,this.gaCollectingService=i,this.utilService=a,this.consent=s,this.isDataLayerEnabled=!0,this.fullTPVersion=!1,this.isInitialized=!1,this.aid="",this.isSensitiveDataProtectionEnabled=!1,this.affiliateTokenName="affiliateToken",this.cxCdnUrl="https://cdn.cxense.com",this.c1XLoadCce=!0,this.c1XIntegrationVersion="v2",this.cxenseLibAwaitingTimeout=0,this.cxenseLibAwaitingRetryCount=0,this.trackPages=!0,this.debug=!1,this.userRef="",this.usePianoIdLiteUserProvider=!1,this.useTinypassAccounts=!1,this.useCondeUserProvider=!1,this.useGigyaUserProvider=!1,this.usePianoIdUserProvider=!1,this.useAidSpecifiedCookies=!1,this.sandbox=!1,this.zIndexes={backdrop:3e5,modal:300050,close:300100},this.linkedTermSelectedCallbacks=[],this.requestUserAuthForLinkedTerm=!0,this.customPreChecks=[],this.customParams={},this.externalLibraries=[],this.externalLibrariesCallbacks=[],this.customVariables={},this.locale="",this.trackPageView=!0,this.redirectToFbTimeout=3,this.isDoubleOptInCheckOnAccessCheckEnabled=!1,this.isMockMode=!1,this.inappBrowserReturn=!1,this.events=[],this.appList=[],this.cacheableShowTemplate=!0,this.disableLockConfig=!1,this.initCallbacks=[],this.mainModuleInited=!1,this.restCallbacks=[],this.initTries=0,this.listOfAddedHandlers=[],this.callbacks=[],n.loadOfferCss()}return Object.defineProperty(e.prototype,"tags",{get:function(){var e;return null===(e=ts.get("tags"))||void 0===e?void 0:e.join(",")},set:function(e){var n;n=Array.isArray(e)?e:"string"==typeof e?e.split(","):null,ts.set("tags",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentIsNative",{get:function(){return ts.get("isNative")},set:function(e){ts.set("isNative",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentId",{get:function(){return ts.get("id")},set:function(e){ts.set("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentCreated",{get:function(){var e;return(null===(e=ts.get("createdAt"))||void 0===e?void 0:e.toString())||""},set:function(e){ts.set("createdAt",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentAuthor",{get:function(){var e;return(null===(e=ts.get("authors"))||void 0===e?void 0:e.join(","))||""},set:function(e){ts.set("authors",[e])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentSection",{get:function(){return ts.get("section")},set:function(e){ts.set("section",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zone",{get:function(){return ts.get("zone")},set:function(e){ts.set("zone",e)},enumerable:!1,configurable:!0}),e.prototype.initTp=function(){var e=this;try{var n=this.tpPredefinedOptions.predefineValues;if(this.tpPredefinedOptions.predefineValues=[],n.forEach((function(n){"function"==typeof n[1]?"init"===n[0]?e.initCallbacks.push(n[1]):e.restCallbacks.push(n):"init"===n[1]&&"function"==typeof n[2]?e.initCallbacks.push(n[2]):e.push(n)})),!this.aid&&this.initTries<10)return this.initTries++,void setTimeout((function(){return e.initTp()}),50);if(!this.aid)return;for(this.tinypassErrorHandler.initialize();this.restCallbacks.length;)try{var t=this.restCallbacks.shift();this.push(t)}catch(e){console.error(e),pn.tinypassErrorHandler.addError(e)}this._init(),this.externalLibraries.length&&this.realizeExternalLibraries(),this.isInitialized=!0,window.___tp=function(){}}catch(e){pn.tinypassErrorHandler.addError(e,"initTP"),console.error("init PN process error",e)}},e.prototype.realizeExternalLibraries=function(){var e=this,n=[];this.externalLibraries.forEach((function(t){var r=e.utilService.requireJsFile(t);n.push(r)})),Promise.all(n).then((function(){if(e.externalLibraries=[],e.externalLibrariesCallbacks)for(var n=0;n<e.externalLibrariesCallbacks.length;++n)as.externalLibrariesCallbacks[n]();as.externalLibrariesCallbacks=[]}))},e.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t,r,o;for(t=0;t<e.length;t++)if("string"==typeof(r=(o=e[t]).shift())||r instanceof String){if(!this[r])return void console.error("Undefined method "+r);this[r].apply(this,o)}else r.apply(this,o)},e.prototype.init=function(e){this.isInitialized?(this.mainModuleInited||(this.mainModuleInited=!0,this.initMainModuleAfterInitCbk()),e&&e()):(e&&this.tpPredefinedOptions.predefineValues.push(["init",e]),this.initTp())},e.prototype._init=function(){var e={};if((this.cookieDomain||this.cookiePath)&&(e.cookieDefault={domain:this.cookieDomain,path:this.cookiePath}),Mr.init(e),ts.init(),this.cxenseSiteId&&Mr.set("siteId",this.cxenseSiteId),pn.consent.__protected__.init(),pn.util&&pn.util.hasQueryParamByName&&pn.util.hasQueryParamByName("xpdebug")&&pn.setDebug(!0),pn.util.setTpccCookies(),pn.util.isSafariOrIOsUiWebView()&&!pn.user.isUserValid()&&pn.util.getQueryParamByName("userToken")){var n=pn.util.getQueryParamByName("cookieDomain"),t=pn.util.getQueryParamByName("userToken"),r=pn.util.getQueryParamByName("tokenListValue");pn.util.setAccessTokenListCookie({cookie_domain:n,value:r},t),pn.util.removeQueryParamByName("userToken"),pn.util.removeQueryParamByName("cookieDomain"),pn.util.removeQueryParamByName("tokenListValue")}if(this.mainModuleInited||(this.mainModuleInited=!0,this.initMainModuleAfterInitCbk()),pn.itp.init(),!this.aid){var o=new Error("Incorrect aid integration: ".concat(as.aid," url: ").concat(window.location.href));this.tinypassErrorHandler.addError(o)}pn.logging.setTime("startInit",Math.floor(window.pnInitPerformance)),pn.logging.setTime("completeInit",Math.floor(performance.now()-window.pnInitPerformance))},e.prototype.initMainModuleAfterInitCbk=function(){for(pn.user.providerInit(),this.appList.indexOf(this.aid)<0&&(this.appList.push(this.aid),pn.main.init());this.initCallbacks.length;)try{this.initCallbacks.shift()()}catch(e){console.error(e),pn.tinypassErrorHandler.addError(e)}if(pn.main.checkToRunWidgetImmediately(),this.events){for(var e=0;e<this.events.length;e++)this.events[e]();this.events=[]}},e.prototype.setAid=function(e){this.aid=e},e.prototype.enableSensitiveDataProtection=function(e){this.isSensitiveDataProtectionEnabled=e},e.prototype.reload=function(){location.href=pn.util.removeVoucherCodeFromUrl(location.href)},e.prototype.removeSharedAccountCodeFromUrl=function(){location.href=pn.util.removeSharedAccountCodeFromUrl(location.href)},e.prototype.setGAClientId=function(e){this.gaClientId=e,this.gaService.recreateWithClientId(e)},e.prototype.getGAClientId=function(){return this.gaClientId},e.prototype.enableGACrossDomainLinking=function(e){var n=this;this.gaCrossDomainLinking=!0;var t=Date.now();!function r(){var o=window.ga;if(o&&"function"==typeof o)try{o((function(t){if(void 0!==t&&void 0===e)n.setGAClientId(t.get("clientId"));else if(void 0!==e)for(var r=o.getAll(),i=0;i<r.length;i++){var a=r[i];if(a.get("trackingId")===e){n.setGAClientId(a.get("clientId"));break}}}))}catch(e){}else Date.now()-t<6e4&&setTimeout(r,500)}()},e.prototype.setExcludedGAEvents=function(e){this.gaCollectingService.setExcludedEvents(e)},e.prototype.setGA4Config=function(e){this.ga4Service.setGa4Config(e)},e.prototype.setTags=function(e){this.tags=e instanceof Array?e.join(","):e},e.prototype.setCookieDomain=function(e){"."!==e[0]&&(e="."+e),this.cookieDomain=e},e.prototype.setStaticDomain=function(e){this.staticDomain=e},e.prototype.setCookiePath=function(e){this.cookiePath=e},e.prototype.setDontScrollTopModal=function(e){this.dontScrollTopModal=e},e.prototype.setUseExperience=function(e){this.useExperience=e},e.prototype.setExperimentalIosModal=function(e){this.experimentalIosModal=e},e.prototype.setApplePayMerchantId=function(e){this.applePayMerchantId=e},e.prototype.setContentIsNative=function(e){this.contentIsNative=e},e.prototype.setComposerHost=function(e){this.composerHost=e},e.prototype.setEndpoint=function(e){this.endpoint=e},e.prototype.setAffiliateTokenName=function(e){this.affiliateTokenName=e},e.prototype.setEspEndpoint=function(e){this.espEndpoint=e},e.prototype.setCxCdnUrl=function(e){this.cxCdnUrl=e},e.prototype.setC1XLoadCce=function(e){this.c1XLoadCce=e},e.prototype.setC1XIntegrationVersion=function(e){this.c1XIntegrationVersion=e},e.prototype.setDataLayerEnabled=function(e){this.isDataLayerEnabled=e},e.prototype.setCxenseSiteId=function(e){this.cxenseSiteId=e,Mr.set("siteId",e)},e.prototype.setCxenseLibAwaitingTimeout=function(e){this.cxenseLibAwaitingTimeout=e},e.prototype.setCxenseLibAwaitingRetryCount=function(e){this.cxenseLibAwaitingRetryCount=e},e.prototype.setContentId=function(e){this.contentId=e},e.prototype.setTrackPages=function(e){this.trackPages=e},e.prototype.setDebug=function(e){this.debug=e},e.prototype.setUserRef=function(e){this.userRef=e},e.prototype.setUsePianoIdLiteUserProvider=function(e){this.usePianoIdLiteUserProvider=e},e.prototype.setExternalJWT=function(e){this.externalJWT=e},e.prototype.getExternalJWT=function(){return this.externalJWT},e.prototype.setUseTinypassAccounts=function(e){this.useTinypassAccounts=e},e.prototype.setUseCondeUserProvider=function(e){this.useCondeUserProvider=e},e.prototype.setUseGigyaUserProvider=function(e){this.useGigyaUserProvider=e},e.prototype.setUsePianoIdUserProvider=function(e){this.usePianoIdUserProvider=e},e.prototype.setPianoIdUrl=function(e){this.pianoIdUrl=e},e.prototype.setItemId=function(e){this.itemId=e},e.prototype.setUseAidSpecifiedCookies=function(e){this.useAidSpecifiedCookies=e},e.prototype.setSandbox=function(e){this.sandbox=e},e.prototype.setContentCreatedSelector=function(e){this.contentCreatedSelector=e},e.prototype.setContentCreated=function(e){this.contentCreated=e},e.prototype.setContentAuthor=function(e){this.contentAuthor=e},e.prototype.setContentSection=function(e){this.contentSection=e},e.prototype.setZone=function(e){this.zone=e||""},e.prototype.isNonProdEndpoint=function(){return"sandbox"===this.endpoint||/^https?:\/\/(.*sandbox.*|\d+\.dev)\.(tinypass\.com|piano\.io)/i.test(this.endpoint)},e.prototype.setZIndexes=function(e){this.zIndexes=e},e.prototype.setCustomPreCheck=function(e){this.customPreChecks.push(e)},e.prototype.setLinkedTermSelected=function(e){"function"==typeof e&&this.linkedTermSelectedCallbacks.push(e)},e.prototype.setLinkTermSelected=function(e){this.setLinkedTermSelected(e)},e.prototype.setRequestUserAuthForLinkedTerm=function(e){this.requestUserAuthForLinkedTerm=e},e.prototype.setDisableLockConfig=function(e){this.disableLockConfig=e},e.prototype.setCustomParam=function(e,n,t,r){var o=["content","user","request"];if(t||(t="content"),t=t.toLowerCase(),o.indexOf(t)<0)throw new Error("Undefined scope "+t+"\nAvailable scopes: "+o.join(", "));void 0===this.customParams[t]&&(this.customParams[t]={}),(void 0===this.customParams[t][e]||r)&&(this.customParams[t][e]=[]);for(var i=[].concat(n),a=0;a<i.length;a++){if("string"!=typeof i[a])throw new Error("setCustomParam accept only string values or array of strings");this.customParams[t][e].push(i[a])}},e.prototype.resetCustomParam=function(e){e||(e="content"),delete this.customParams[e]},e.prototype.addExternalLibrary=function(e,n){if("string"==typeof e)this.externalLibraries.push(e);else for(var t=0;t<e.length;++t)this.externalLibraries.push(e[t]);n&&this.externalLibrariesCallbacks.push(n),this.isInitialized&&this.realizeExternalLibraries()},e.prototype.setCustomVariable=function(e,n){this.customVariables[e]=n},e.prototype.saveCustomVariablesToLocalStorage=function(e){var n=function(e,n){pn.consent.__protected__.async((function(t){var r;return null===(r=t.composer)||void 0===r?void 0:r.localStorage.set(e,n)}))},t="__tp-customVariables";n(t,JSON.stringify(this.customVariables)),e&&n(t+"-expiration",Math.floor((new Date).getTime()/1e3)+e+"")},e.prototype.restoreCustomVariablesFromLocalstorage=function(){if("localStorage"in window&&null!==window.localStorage){var e=as.util.__protected__.getLocalStorageItem("customVariables");if(as.util.__protected__.removeLocalStorageItem("customVariables"),e)for(var n in e)this.customVariables[n]=e[n]}},e.prototype.handler=function(e,n){var t=this.registerPrefixedEvents;return function(){for(var r,o=[pn.offer,pn.template,pn.meter,pn.experience,pn.myaccount,pn.pianoId,pn.tinypassLogin,pn.swg,pn.user,pn.credit],i=0;i<o.length;i++){var a=o[i];if(a){var s=a.registerCallback(e,n);void 0!==s&&(r=s),void 0!==(s=t(a,e,n))&&(r=s)}}return r}},e.prototype.registerPrefixedEvents=function(e,n,t){for(var r,o,i,a=[{module:"offer",prefix:"checkout"},{module:"pianoId",prefix:"pianoId"}],s=0;s<a.length;s++){var c=a[s];e.name===c.module&&n.substring(0,c.prefix.length)===c.prefix&&(r=n.substring(c.prefix.length,c.prefix.length+1).toLowerCase()+n.substring(c.prefix.length+1,n.length),void 0!==(o=e.registerCallback(r,t))&&(i=o))}return i},e.prototype.addHandler=function(e,n){var t=this.handler(e,n);this.isInitialized?t():this.events.push(t),this.listOfAddedHandlers.push(e)},e.prototype.getListOfAddedHandlers=function(){return this.listOfAddedHandlers},e.prototype.setTrackPageview=function(e){this.trackPageView=e},e.prototype.setLocale=function(e){var n=this;this.locale=e,this.utilService.__protected__.setCookie("LANG",this.locale),this.isInitialized?this.changeLocale(e):this.initCallbacks.push((function(){n.changeLocale(e)}))},e.prototype.setPageURL=function(e){this.customPageUrl=e},e.prototype.setAdblockerCookieName=function(e){this.adblockerCookieName=e},e.prototype.setMaxCookieExpirationInDays=function(e){var n="string"==typeof e?parseInt(e,10):e;if(!(isFinite(n)&&n>0))throw new Error("maxCookieExpirationInDays must be a positive number");this.maxCookieExpirationInDays=n},e.prototype.getMaxCookieExpirationInDays=function(){return this.maxCookieExpirationInDays},e.prototype.setFbPixelId=function(e){this.fbPixelId=e},e.prototype.getFbPixelId=function(){return this.fbPixelId},e.prototype.setRedirectToFbTimeout=function(e){this.redirectToFbTimeout=e},e.prototype.enableDoubleOptInCheckOnAccessCheck=function(){this.isDoubleOptInCheckOnAccessCheckEnabled=!0},e.prototype.setCloudflareWorkerUrl=function(e){this.cloudflareWorkerUrl=e},e.prototype.getEndpoint=function(e,n){return e.lastIndexOf("/")===e.length-1&&(e=e.substr(0,e.length-1)),e.match(/\/v3$/)&&(e=e.substr(0,e.lastIndexOf("/v3"))),e.match(/\/api$/)&&(e=e.substr(0,e.lastIndexOf("/api"))),e.match(/^(http[s]?:)?\/\//)||(e="//"+e),void 0!==n&&n&&!e.match(/^http[s]?:/)&&(e="https:"+e),e},e.prototype._getEndpointRoot=function(e){var n="https://buy.tinypass.com";return!0===this.sandbox&&(this.endpoint="sandbox"),this.endpoint&&("sandbox"===this.endpoint?n="https://sandbox.tinypass.com":"prod"!==this.endpoint&&"production"!==this.endpoint&&(n=this.endpoint)),this.getEndpoint(n,e)},e.prototype._getApiEndpoint=function(){return this._getEndpointRoot()+"/api/v3"},e.prototype._getTrackingEndpoint=function(e){void 0===e&&(e="");var n=e||this.endpoint;return!0===this.sandbox?n="https://sandbox.tinypass.com":(void 0===this.endpoint||null===this.endpoint||""===this.endpoint||"prod"===this.endpoint||"production"===this.endpoint||this.endpoint.match(/(buy|api|api-v3)\.tinypass\.com/))&&(n=e||"https://api-v3.tinypass.com"),this.getEndpoint(n,!0)},e.prototype._getExperienceEndpoint=function(e){var n="https://c2.piano.io";return this.composerHost?n=this.composerHost:(!0===this.sandbox&&(this.endpoint="sandbox"),this.endpoint&&("sandbox"===this.endpoint?n="https://c2-sandbox.piano.io":"prod"!==this.endpoint&&"production"!==this.endpoint&&(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=this.endpoint).replace("//buy.tinypass.com","//c2.piano.io")).replace("//api.tinypass.com","//c2.piano.io")).replace("//buy-au.piano.io","//c2-au.piano.io")).replace("//api-au.piano.io","//c2-au.piano.io")).replace("//buy-ap.piano.io","//c2-ap.piano.io")).replace("//api-ap.piano.io","//c2-ap.piano.io")).replace("//buy-eu.piano.io","//c2-eu.piano.io")).replace("//api-eu.piano.io","//c2-eu.piano.io")).replace("//sandbox.tinypass.com","//c2-sandbox.piano.io")).replace("//sandbox.piano.io","//c2-sandbox.piano.io")).replace("//experience-au.piano.io","//c2-au.piano.io")).replace("//experience-eu.piano.io","//c2-eu.piano.io")).replace("//experience-ap.piano.io","//c2-ap.piano.io")).replace("//experience.tinypass.com","//c2.piano.io")).replace("//buy.piano.io","//c2.piano.io")).replace("//api.piano.io","//c2.piano.io")).replace("//experience.piano.io","//c2.piano.io")))),this.getEndpoint(n,e)},e.prototype._isSandbox=function(){return this.sandbox||"sandbox"===this.endpoint||!!this.endpoint&&-1!==this.endpoint.indexOf("//sandbox.tinypass.com")},e.prototype.changeLocale=function(e){pn.pianoId.isConfigured()&&pn.pianoId.updateLang(e),pn.postmessage.broadcast("langChanged",{lang:e})},e.prototype.pageTrack=function(e,n){pn.main.pageTrack(e,n)},e.prototype.trackPage=function(e,n){pn.main.pageTrack(e,n)},e.prototype.trackPageUnload=function(){pn.main.trackPageUnload()},e.prototype.trackAds=function(e){pn.main.trackAds(e)},e.prototype.trackAd=function(e,n,t){pn.main.trackAd(e,n,t)},e.prototype.onLoad=function(e){this.callbacks.push(e)},e.prototype.getEndpointRoot=function(e){return this._getEndpointRoot(e)},e.prototype.getExperienceEndpoint=function(e){return this._getExperienceEndpoint(e)},e.prototype.getApiEndpoint=function(){return this._getApiEndpoint()},e.prototype.getTrackingEndpoint=function(e){return void 0===e&&(e=""),this._getTrackingEndpoint(e)},e.prototype.isSandbox=function(){return this._isSandbox()},e.prototype.setCacheableShowTemplate=function(e){this.cacheableShowTemplate=e},e.prototype.getCacheableShowTemplate=function(){return this.cacheableShowTemplate},e.prototype.setSssAccessToken=function(e){this.sssAccessToken=e},e.prototype.setSssCallbackUrl=function(e){this.sssCallbackUrl=e},e.prototype.setSssMode=function(e){this.sssMode=e},e.prototype.setSssOriginUrl=function(e){this.sssOriginUrl=e},e.prototype.verifySignature=function(e,n,t){var r=this.utilService.asUint8Array(window.atob(t)),o=this.utilService.asUint8Array(e),i=this.utilService.asUint8Array(window.atob(n)),a={name:"RSASSA-PKCS1-v1_5",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}};return crypto.subtle.importKey("spki",r,a,!1,["verify"]).then((function(e){return crypto.subtle.verify(a,e,i,o)}))},e=function(e,n,t,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a}([pn.singleton(),m(0,pn.inject("tpPredefinedOptions")),m(1,pn.inject("css")),m(2,pn.inject("tinypassErrorHandler")),m(3,pn.inject("gaService")),m(4,pn.inject("ga4Service")),m(5,pn.inject("gaCollectingService")),m(6,pn.inject("util")),m(7,pn.inject("consent")),v("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object,Object])],e),e}();pn.container.registerSingleton("tinypass",os);var is=pn.container.resolve("tinypass");[{n:"polyfill",hM:!1},{n:"predefine",hM:!1},{n:"predefineTinypass",hM:!1},{n:"checkTinypass",hM:!1},{n:"css",hM:!0},{n:"ajax",hM:!0},{n:"jqUtils",hM:!0},{n:"cookie",hM:!0},{n:"localStorage",hM:!0},{n:"versionService",hM:!0},{n:"itp",hM:!0},{n:"util",hM:!0},{n:"api",hM:!0},{n:"postmessage",hM:!0},{n:"eventUtils",hM:!0},{n:"janrain",hM:!0},{n:"sha1",hM:!0},{n:"containerUtils",hM:!0},{n:"tinypassLogin",hM:!0},{n:"tinypassAccounts",hM:!0},{n:"condeUserProvider",hM:!0},{n:"gigya",hM:!0},{n:"jwtDecode",hM:!0},{n:"log",hM:!0},{n:"logging",hM:!0},{n:"observer",hM:!0},{n:"gaCollectingService",hM:!0},{n:"gaService",hM:!0},{n:"ga4Service",hM:!0},{n:"acp",hM:!0},{n:"pianoIdLite",hM:!0},{n:"pianoId",hM:!0},{n:"user",hM:!0},{n:"viewportExit",hM:!0},{n:"template",hM:!0},{n:"offer",hM:!0},{n:"myaccount",hM:!0},{n:"meter",hM:!0},{n:"fingerprint",hM:!0},{n:"scrollDepth",hM:!0},{n:"idle",hM:!0},{n:"interaction",hM:!0},{n:"recWidgetService",hM:!0},{n:"piano",hM:!0},{n:"pianoEsp",hM:!0},{n:"swg",hM:!0},{n:"fbpixel",hM:!0},{n:"fbsubscriptions",hM:!0},{n:"cxense",hM:!0},{n:"experience",hM:!0},{n:"ifvisible",hM:!0},{n:"activetimer",hM:!0},{n:"doubleClickForPublisher",hM:!0},{n:"applePay",hM:!0},{n:"goCardlessDropin",hM:!0},{n:"braintreeGooglePayIntegrationService",hM:!0},{n:"applePayIntegrationService",hM:!0},{n:"datatransApplePayIntegrationService",hM:!0},{n:"stripeApplePayIntegrationService",hM:!0},{n:"obi3DSChallenge",hM:!0},{n:"amp",hM:!0},{n:"performanceMetrics",hM:!0},{n:"doubleOptIn",hM:!0},{n:"newscycle",hM:!0},{n:"captchaV3",hM:!0},{n:"main",hM:!0},{n:"tinypassErrorHandler",hM:!0},{n:"tinypass",hM:!0},{n:"postProcessing",hM:!1},{n:"clientConfiguration",hM:!0},{n:"microsoftQuickAuth",hM:!0},{n:"frequencyEvent",hM:!0}].forEach((function(e){e.hM&&!pn.container.isRegistered(e.n)&&pn.container.resolve(e.n)})),Object.assign(pn,is),Object.setPrototypeOf(pn,os.prototype);var as=window.tp=pn;pn.initTp()}();})()