1/*https://btloader.com/tag?o=5642230212591616&upapi=true*/ 2;try{window.__bt_edge_data = { 3 ...window.__bt_edge_data, 4 extensionsSignals: { 5 xAcceptableAdsHeader: "", 6 dnt: "" 7 } 8}; 9!function(){"use strict";var e,t,n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);r.length>s;s++)0>t.indexOf(r[s])&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(s,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((s=(s=o.trys).length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&s[3]>i[1])){o.label=i[1];break}if(6===i[0]&&s[1]>o.label){o.label=s[1],s=i;break}if(s&&s[2]>o.label){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function a(e,t,n){if(n||2===arguments.length)for(var r,s=0,i=t.length;i>s;s++)!r&&s in t||(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return e.concat(r||Array.prototype.slice.call(t))}function c(e){if(!e)return 0;var t=0;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n].max;r>t&&(t=r)}return t/100}function l(e,t){if(void 0===t&&(t={}),!e)return null;var n=0,r=1,s=c(t);return 1===s||(Object.values(t).length&&1>s&&(n=s,r=1-s),Object.keys(e).sort().forEach((function(s){var i=e[s];t[s]={min:Math.trunc(100*n),max:Math.trunc(100*(n+i*r))},n+=i*r}))),t}!function(e){e[e.soft=0]="soft",e[e.hard=1]="hard",e[e.adaptive=2]="adaptive"}(e||(e={})),function(e){e.BT_TRACE_ID="BT_traceID",e.BT_EXP_FLAGS="BT_EXP_FLAGS",e.BT_SESSION_ACTIONS="BT_SESSION_ACTIONS"}(t||(t={}));var u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty;function h(e,t){return function(n,r,s){return e(n,r,s)&&t(n,r,s)}}function v(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var s=r.cache,i=s.get(t),o=s.get(n);if(i&&o)return i===n&&o===t;s.set(t,n),s.set(n,t);var a=e(t,n,r);return s.delete(t),s.delete(n),a}}function f(e){return u(e).concat(d(e))}var m=Object.hasOwn||function(e,t){return p.call(e,t)};function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var b="__v",y="__o",w="_owner",E=Object.getOwnPropertyDescriptor,I=Object.keys;function _(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function S(e,t){return g(e.getTime(),t.getTime())}function C(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function R(e,t){return e===t}function A(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var s,i,o=Array(r),a=e.entries(),c=0;(s=a.next())&&!s.done;){for(var l=t.entries(),u=!1,d=0;(i=l.next())&&!i.done;)if(o[d])d++;else{var p=s.value,h=i.value;if(n.equals(p[0],h[0],c,d,e,t,n)&&n.equals(p[1],h[1],p[0],h[0],e,t,n)){u=o[d]=!0;break}d++}if(!u)return!1;c++}return!0}var L=g;function O(e,t,n){var r=I(e),s=r.length;if(I(t).length!==s)return!1;for(;s-- >0;)if(!N(e,t,n,r[s]))return!1;return!0}function D(e,t,n){var r,s,i,o=f(e),a=o.length;if(f(t).length!==a)return!1;for(;a-- >0;){if(!N(e,t,n,r=o[a]))return!1;
9if(s=E(e,r),i=E(t,r),(s||i)&&(!s||!i||s.configurable!==i.configurable||s.enumerable!==i.enumerable||s.writable!==i.writable))return!1}return!0}function P(e,t){return g(e.valueOf(),t.valueOf())}function T(e,t){return e.source===t.source&&e.flags===t.flags}function V(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var s,i,o=Array(r),a=e.values();(s=a.next())&&!s.done;){for(var c=t.values(),l=!1,u=0;(i=c.next())&&!i.done;){if(!o[u]&&n.equals(s.value,i.value,s.value,i.value,e,t,n)){l=o[u]=!0;break}u++}if(!l)return!1}return!0}function x(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function B(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function N(e,t,n,r){return!(r!==w&&r!==y&&r!==b||!e.$$typeof&&!t.$$typeof)||m(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var U=Array.isArray,k="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,M=Object.assign,F=Object.prototype.toString.call.bind(Object.prototype.toString);q(),q({strict:!0});var j=q({circular:!0});function q(e){void 0===e&&(e={});var t,n=e.circular,r=void 0!==n&&n,s=e.createInternalComparator,i=e.createState,o=e.strict,a=void 0!==o&&o,c=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,s={areArraysEqual:r?D:_,areDatesEqual:S,areErrorsEqual:C,areFunctionsEqual:R,areMapsEqual:r?h(A,D):A,areNumbersEqual:L,areObjectsEqual:r?D:O,arePrimitiveWrappersEqual:P,areRegExpsEqual:T,areSetsEqual:r?h(V,D):V,areTypedArraysEqual:r?D:x,areUrlsEqual:B};if(n&&(s=M({},s,n(s))),t){var i=v(s.areArraysEqual),o=v(s.areMapsEqual),a=v(s.areObjectsEqual),c=v(s.areSetsEqual);s=M({},s,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:c})}return s}(e),l=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,s=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,a=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,p=e.areUrlsEqual;return function(e,h,v){if(e===h)return!0;if(null==e||null==h)return!1;var f=typeof e;if(f!==typeof h)return!1;if("object"!==f)return"number"===f?o(e,h,v):"function"===f&&s(e,h,v);var m=e.constructor;if(m!==h.constructor)return!1;if(m===Object)return a(e,h,v);if(U(e))return t(e,h,v);if(null!=k&&k(e))return d(e,h,v);if(m===Date)return n(e,h,v);if(m===RegExp)return l(e,h,v);if(m===Map)return i(e,h,v);if(m===Set)return u(e,h,v);var g=F(e);return"[object Date]"===g?n(e,h,v):"[object RegExp]"===g?l(e,h,v):"[object Map]"===g?i(e,h,v):"[object Set]"===g?u(e,h,v):"[object Object]"===g?"function"!=typeof e.then&&"function"!=typeof h.then&&a(e,h,v):"[object URL]"===g?p(e,h,v):"[object Error]"===g?r(e,h,v):"[object Arguments]"===g?a(e,h,v):("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)&&c(e,h,v)}}(c);return function(e){var t=e.circular,n=e.comparator,r=e.createState,s=e.equals,i=e.strict;if(r)return function(e,o){var a=r(),c=a.cache,l=void 0===c?t?new WeakMap:void 0:c;return n(e,o,{cache:l,equals:s,meta:a.meta,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:s,meta:void 0,strict:i})};var o={cache:void 0,equals:s,meta:void 0,strict:i};return function(e,t){return n(e,t,o)}}({circular:r,comparator:l,createState:i,equals:s?s(l):(t=l,function(e,n,r,s,i,o,a){return t(e,n,a)}),strict:a})}q({circular:!0,strict:!0}),q({createInternalComparator:function(){return g}}),q({strict:!0,createInternalComparator:function(){return g}}),q({circular:!0,createInternalComparator:function(){return g}}),q({circular:!0,createInternalComparator:function(){return g},strict:!0});var H=function(){var e=window;try{if(top.document)return top}catch(e){}try{for(;e.parent.document;)e=e.parent}catch(e){}return e}(),G=function(){try{return""!==document.location.hostname&&document.location.hostname!==window.parent.location.hostname}catch(e){return!0}}();function K(){try{return new URL(G?H.document.referrer:H.location.href)}catch(e){return new URL(H.location.href)}}function W(e){if(G){var t=H.sessionStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}function z(e,t){if(G&&void 0!==t)try{H.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}}function J(e,n,r){var s,i,o,a,c,l;return void 0===r&&(r="singleAction"),!(!n||!(null===(o=null===(i=null===(s=H.__bt_intrnl.actions)||void 0===s?void 0:s[e])||void 0===i?void 0:i[n])||void 0===o?void 0:o[r])&&!(null===(l=null===(c=null===(a=W(t.BT_SESSION_ACTIONS))||void 0===a?void 0:a[e])||void 0===c?void 0:c[n])||void 0===l?void 0:l[r]))}function $(e,n,r){void 0===r&&(r="singleAction"),H.__bt_intrnl.actions=H.__bt_intrnl.actions||{};var s=H.__bt_intrnl.actions[e]=H.__bt_intrnl.actions[e]||{};(s[n]=s[n]||{})[r]=!0,z(t.BT_SESSION_ACTIONS,H.__bt_intrnl.actions)}function Q(e){return Math.floor(Math.random()*Math.floor(e))}function X(e){return Q(100)<e}function Y(){try{if(window.__bt=window.__bt||{},"function"==typeof window.__bt.customDetectDomain)return window.__bt.customDetectDomain()}catch(e){}}var Z,ee=!1;function te(e){var t;try{t=JSON.stringify(e)}catch(e){t="{}"}try{if(window.TextEncoder)return(new window.TextEncoder).encode(t).buffer;
9for(var n=unescape(encodeURIComponent(t)),r=new Uint8Array(n.length),s=0;n.length>s;s++)r[s]=n.charCodeAt(s);return r.buffer}catch(e){return t}}function ne(e,t){var n,r,s;if(e){var i=document.createElement("script");i.type=null!==(n=null==t?void 0:t.type)&&void 0!==n?n:"text/javascript",i.async=!0,i.src=e,null!==(null==t?void 0:t.crossOrigin)&&(i.crossOrigin=null!==(r=null==t?void 0:t.crossOrigin)&&void 0!==r?r:"anonymous"),null===(s=window.document.head||window.document.body||window.document.documentElement)||void 0===s||s.appendChild(i)}}function re(e){var t,n=e.src,r=e.referrerPolicy,s=e.style,i=void 0===s?"display: none !important; width: 0 !important; height: 0 !important;":s,o=e.sandbox,a=void 0===o?"allow-scripts allow-same-origin":o,c=document.createElement("iframe");return c.src=n,c.style.cssText=i,c.setAttribute("sandbox",a),void 0!==r&&(c.referrerPolicy=r),null===(t=document.head||document.body||document.documentElement)||void 0===t||t.appendChild(c),c}function se(e){var t=e.eventName,n=e.payload,r=n.bubbles,s=void 0!==r&&r,i=n.cancelable,o=void 0!==i&&i,a=n.detail,c=void 0===a?void 0:a;if(window.CustomEvent)try{var l=new window.CustomEvent(t,{bubbles:s,cancelable:o,detail:c});return void window.dispatchEvent(l)}catch(e){}var u=document.createEvent("CustomEvent");u.initCustomEvent(t,s,o,c),window.dispatchEvent(u)}function ie(e,t){var n;void 0===t&&(t=!1);var r=(n=t?performance.getEntriesByName(e,"resource")||[]:(performance.getEntriesByType("resource")||[]).filter((function(t){return t.name.includes(e)})))[n.length-1];return r?0===r.transferSize?1>r.duration?2:1:0:null}function oe(){return i(this,arguments,void 0,(function(e){return void 0===e&&(e=0),o(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))}function ae(e){return i(this,arguments,void 0,(function(e,t,n){var r,s,i;return void 0===t&&(t=10),void 0===n&&(n=500),o(this,(function(o){switch(o.label){case 0:r=performance.now(),s=1,o.label=1;case 1:if(s>t)return[3,8];o.label=2;case 2:return o.trys.push([2,4,,5]),[4,e()];case 3:return void 0!==(i=o.sent())?[2,{result:i,meta:{attempt:s,durMs:performance.now()-r}}]:[3,5];case 4:return o.sent(),[2,{result:void 0,meta:{attempt:s,durMs:performance.now()-r}}];case 5:return[4,oe(n)];case 6:o.sent(),o.label=7;case 7:return s++,[3,1];case 8:return[2,{result:void 0,meta:{attempt:t,durMs:performance.now()-r}}]}}))}))}function ce(e){if(!e)return e;var t,n=[Number,String,Boolean];try{if(n.forEach((function(n){e instanceof n&&(t=n(e))})),void 0===t)if("[object Array]"===Object.prototype.toString.call(e))t=[],e.forEach((function(e,n,r){t[n]=ce(e)}));else if("object"==typeof e)if(e.nodeType&&"function"==typeof e.cloneNode)t=e.cloneNode(!0);else if(e.prototype)t=e;else if(e instanceof Date)t=new Date(e);else for(var r in t={},e)t[r]=ce(e[r]);else t=e}catch(n){t=e}return t}Z={};var le,ue,de,pe,he,ve,fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function me(e,t,n){if(void 0===e&&(e=8),void 0===t&&(t=10),void 0===n&&(n=fe),!n||"number"!=typeof e||"number"!=typeof t||0>=e||0>=t||e>t)throw new TypeError;for(var r=Math.floor(Math.random()*(t+1-e))+e,s="",i=0;r>i;i++)s+=n.charAt(Math.floor(Math.random()*n.length));return s}function ge(){return"".concat(me(),"-").concat(me(),"-").concat(Date.now().toString(16).slice(-10))}ue="5642230212591616",de="btloader.com",pe="api.btloader.com",he="2.1.196";try{ve={"org":{"enabled":false,"allow_render_to_aa_users":true,"script_loading_mode":"inject_from_tag_script","wall_mode":0},"websites":{},"script":"https://cdn.btmessage.com/script/rlink.js?o=5642230212591616&bt_env=prod"}}catch(t){console.error("Error parsing RL settings",t),ve={script:"",org:{enabled:!1,script_loading_mode:"inject_from_tag_script",wall_mode:e.soft,allow_render_to_aa_users:!0}}}var be=null,ye={"1019therock.com":{"ce":true,"me":true,"w":"5199807724388352","widget":false,"a":false},"1023thebullfm.com":{"ce":true,"me":true,"w":"5751169151401984","widget":false,"a":false},"1025kiss.com":{"ce":true,"me":true,"w":"5765323518115840","widget":false,"a":false},"1027kord.com":{"ce":true,"me":true,"w":"5682413570097152","widget":false,"a":false},"1033uscountry.com":{"ce":false,"me":true,"w":"5752421100814336","widget":false,"a":false},"1035kissfmboise.com":{"ce":true,"me":true,"w":"5682992686039040","widget":false,"a":false},"1037theloon.com":{"ce":true,"me":true,"w":"5653081493602304","widget":false,"a":false},"1037thepeak.com":{"ce":true,"me":true,"w":"5663688049557504","widget":false,"a":false},"1039thebreezealbany.com":{"ce":false,"me":true,"w":"5666578461884416","widget":false,"a":false}
9,"1039thedoc.com":{"ce":false,"me":true,"w":"5705212464463872","widget":false,"a":false},"103gbfrocks.com":{"ce":true,"me":true,"w":"5668508445704192","widget":false,"a":false},"103kkcn.com":{"ce":true,"me":true,"w":"5666620438478848","widget":false,"a":false},"103wjod.com":{"ce":true,"me":true,"w":"5682643082412032","widget":false,"a":false},"1043wowcountry.com":{"ce":true,"me":true,"w":"5666434815361024","widget":false,"a":false},"1045theteam.com":{"ce":true,"me":true,"w":"5760989292134400","widget":false,"a":false},"1049theedge.com":{"ce":false,"me":true,"w":"5642104597381120","widget":false,"a":false},"1051theblock.com":{"ce":true,"me":true,"w":"5090131540180992","widget":false,"a":false},"1055thefan.com":{"ce":false,"me":true,"w":"5715050321936384","widget":false,"a":false},"1057thehawk.com":{"ce":true,"me":true,"w":"5720212537081856","widget":false,"a":false},"1061evansville.com":{"ce":true,"me":true,"w":"5702106968227840","widget":false,"a":false},"1063cowboycountry.com":{"ce":false,"me":true,"w":"5111037863919616","widget":false,"a":false},"1063nowfm.com":{"ce":true,"me":true,"w":"5141658220888064","widget":false,"a":false},"1063thebuzz.com":{"ce":true,"me":true,"w":"5730345941991424","widget":false,"a":false},"1073kissfmtexas.com":{"ce":true,"me":true,"w":"5741730826551296","widget":false,"a":false},"1073popcrush.com":{"ce":true,"me":true,"w":"5741402630651904","widget":false,"a":false},"1075zoofm.com":{"ce":false,"me":true,"w":"5719430148390912","widget":false,"a":false},"1079ishot.com":{"ce":true,"me":true,"w":"5669808814161920","widget":false,"a":false},"107jamz.com":{"ce":true,"me":true,"w":"5687089749295104","widget":false,"a":false},"1130thetiger.com":{"ce":true,"me":true,"w":"5760845846937600","widget":false,"a":false},"1170kbob.com":{"ce":false,"me":false,"w":"5680921236733952","widget":false,"a":false},"1230espn.com":{"ce":false,"me":false,"w":"5742163678724096","widget":false,"a":false},"1360binghamton.com":{"ce":false,"me":true,"w":"5735435914444800","widget":false,"a":false},"1390granitecitysports.com":{"ce":true,"me":true,"w":"5650059044585472","widget":false,"a":false},"1420wbec.com":{"ce":true,"me":true,"w":"5659306209837056","widget":false,"a":false},"1440wrok.com":{"ce":true,"me":true,"w":"5681858210693120","widget":false,"a":false},"1460espnyakima.com":{"ce":true,"me":true,"w":"5103628508463104","widget":false,"a":false},"1470kyyw.com":{"ce":true,"me":true,"w":"5650182659112960","widget":false,"a":false},"1520theticket.com":{"ce":true,"me":true,"w":"5106234043662336","widget":false,"a":false},"710keel.com":{"ce":true,"me":true,"w":"5664394336796672","widget":false,"a":false},"7220sports.com":{"ce":true,"me":true,"w":"5765273782059008","widget":false,"a":false},"920espnnewjersey.com":{"ce":true,"me":true,"w":"5741946547994624","widget":false,"a":false},"921thebridge.com":{"ce":false,"me":false,"w":"5655309004570624","widget":false,"a":false},"929jackfm.com":{"ce":false,"me":false,"w":"5743364793171968","widget":false,"a":false},"929nin.com":{"ce":true,"me":true,"w":"5696862376951808","widget":false,"a":false},"929thebull.com":{"ce":true,"me":true,"w":"5650868377485312","widget":false,"a":false},"929thelake.com":{"ce":true,"me":true,"w":"5721606119751680","widget":false,"a":false},"929theticket.com":{"ce":true,"me":true,"w":"5687864856674304","widget":false,"a":false},"92moose.fm":{"ce":true,"me":true,"w":"5679328206520320","widget":false,"a":false},"930kmpt.com":{"ce":true,"me":true,"w":"5165928552595456","widget":false,"a":false},"940sportsradio.com":{"ce":false,"me":false,"w":"5753541483298816","widget":false,"a":false},"943litefm.com":{"ce":true,"me":true,"w":"5674711989092352","widget":false,"a":false},"943thepoint.com":{"ce":true,"me":true,"w":"5751265486176256","widget":false,"a":false},"943thex.com":{"ce":false,"me":true,"w":"5722180135419904","widget":false,"a":false},"949whom.com":{"ce":true,"me":true,"w":"5754522749108224","widget":false,"a":false},"953thebear.com":{"ce":true,"me":true,"w":"5732561172037632","widget":false,"a":false},"95rockfm.com":{"ce":true,"me":true,"w":"5647026294358016","widget":false,"a":false},"961thebreeze.com":{"ce":false,"me":true,"w":"5080007094304768","widget":false,"a":false},"961theeagle.com":{"ce":true,"me":true,"w":"5683284911587328","widget":false,"a":false},"963theblaze.com":{"ce":true,"me":true,"w":"5648287739674624","widget":false,"a":false},"965kvki.com":{"ce":true,"me":true,"w":"5745986098954240","widget":false,"a":false},"965thefox.com":{"ce":false,"me":true,"w":"5715550182309888","widget":false,"a":false},"965therock.com":{"ce":true,"me":true,"w":"5724841236758528","widget":false,"a":false},"967theeagle.net":{"ce":true,"me":true,"w":"5662663733411840","widget":false,"a":false},"971kissfm.com":{"ce":false,"me":true,"w":"5729841048453120","widget":false,"a":false},"973espn.com":{"ce":true,"me":true,"w":"5684812141559808","widget":false,"a":false},"973kkrc.com":{"ce":true,"me":true,"w":"5658369638531072","widget":false,"a":false},"973thedawg.com":{"ce":true,"me":true,"w":"5746136020156416","widget":false,"a":false},"975kgkl.com":{"ce":true,"me":true,"w":"5118234819821568","widget":false,"a":false},"975kissfm.com":{"ce":false,"me":true,"w":"5645224421359616","widget":false,"a":false},"975now.com":{"ce":true,"me":true,"w":"5740800060162048","widget":false,"a":false},"979kickfm.com":{"ce":true,"me":true,"w":"5661061307957248","widget":false,"a":false},"97rockonline.com":{"ce":true,"me":true,"w":"5712137998565376","widget":false,"a":false},"97x.com":{"ce":true,"me":true,"w":"5758067103760384","widget":false,"a":false},"97zokonline.com":{"ce":true,"me":true,"w":"5726376754675712","
9widget":false,"a":false},"981thehawk.com":{"ce":true,"me":true,"w":"5679633686069248","widget":false,"a":false},"983thesnake.com":{"ce":true,"me":true,"w":"5638563933716480","widget":false,"a":false},"987jack.com":{"ce":true,"me":true,"w":"5745466944782336","widget":false,"a":false},"987kissfmsanangelo.com":{"ce":true,"me":true,"w":"5663329990213632","widget":false,"a":false},"987thebomb.com":{"ce":true,"me":true,"w":"5202323828637696","widget":false,"a":false},"991thewhale.com":{"ce":true,"me":true,"w":"5711882313793536","widget":false,"a":false},"999ktdy.com":{"ce":true,"me":true,"w":"5726585329025024","widget":false,"a":false},"999thepoint.com":{"ce":true,"me":true,"w":"5111762035671040","widget":false,"a":false},"99wfmk.com":{"ce":true,"me":true,"w":"5699234977284096","widget":false,"a":false},"acadianapostgame.com":{"ce":true,"me":true,"w":"5729115467415552","widget":false,"a":false},"alt1017.com":{"ce":false,"me":true,"w":"5721994512302080","widget":false,"a":false},"alt1035.com":{"ce":true,"me":true,"w":"5765686711287808","widget":false,"a":false},"alternativemissoula.com":{"ce":true,"me":true,"w":"5728544773636096","widget":false,"a":false},"antennamag.com":{"ce":true,"me":true,"w":"5129409687191552","widget":false,"a":false},"arcadesushi.com":{"ce":true,"me":true,"w":"5642756828430336","widget":false,"a":false},"awesome923.com":{"ce":true,"me":true,"w":"5699026402934784","widget":false,"a":false},"awesome98.com":{"ce":true,"me":true,"w":"5761281517682688","widget":false,"a":false},"b100quadcities.com":{"ce":true,"me":true,"w":"5747691469406208","widget":false,"a":false},"b1027.com":{"ce":true,"me":true,"w":"5158739247104000","widget":false,"a":false},"b105country.com":{"ce":true,"me":true,"w":"5678141050716160","widget":false,"a":false},"b93.net":{"ce":true,"me":true,"w":"5696246619570176","widget":false,"a":false},"b985.fm":{"ce":true,"me":true,"w":"5688987420196864","widget":false,"a":false},"banana1015.com":{"ce":true,"me":true,"w":"6285565054943232","widget":false,"a":false},"bigcountry969.com":{"ce":true,"me":true,"w":"5692480537231360","widget":false,"a":false},"bigfrog104.com":{"ce":true,"me":true,"w":"5705473685716992","widget":false,"a":false},"bozemanskissfm.com":{"ce":true,"me":true,"w":"5683099288469504","widget":false,"a":false},"brooklynvegan.com":{"ce":true,"me":true,"w":"5769945641123840","widget":false,"a":false},"buzzadamsshow.com":{"ce":true,"me":true,"w":"5744412396093440","widget":false,"a":false},"cajunradio.com":{"ce":true,"me":true,"w":"5676654958477312","widget":false,"a":false},"capital959.com":{"ce":true,"me":true,"w":"5633244683829248","widget":false,"a":false},"caspercowboy.com":{"ce":true,"me":true,"w":"5763520269385728","widget":false,"a":false},"catcountry1029.com":{"ce":true,"me":true,"w":"5727432108670976","widget":false,"a":false},"catcountry1073.com":{"ce":true,"me":true,"w":"5642476548259840","widget":false,"a":false},"catfishtuscaloosa.com":{"ce":true,"me":true,"w":"5706293487599616","widget":false,"a":false},"classicrock1051.com":{"ce":true,"me":true,"w":"5697542894387200","widget":false,"a":false},"classicrock1069.com":{"ce":false,"me":true,"w":"5091010565636096","widget":false,"a":false},"classicrock961.com":{"ce":true,"me":true,"w":"5183297299677184","widget":false,"a":false},"clrvynt.com":{"ce":true,"me":true,"w":"5082306009104384","widget":false,"a":false},"club937.com":{"ce":true,"me":true,"w":"5731624600731648","widget":false,"a":false},"cnynews.com":{"ce":true,"me":true,"w":"5748466811666432","widget":false,"a":false},"comicsalliance.com":{"ce":true,"me":true,"w":"5721887909871616","widget":false,"a":false},"cool987fm.com":{"ce":true,"me":true,"w":"5648767500943360","widget":false,"a":false},"danburycountry.com":{"ce":true,"me":true,"w":"5087441774968832","widget":false,"a":false},"diffuser.fm":{"ce":true,"me":true,"w":"5712657152737280","widget":false,"a":false},"eagle1023fm.com":{"ce":true,"me":true,"w":"5691286267887616","widget":false,"a":false},"elektrodaily.com":{"ce":true,"me":true,"w":"5768455623016448","widget":false,"a":false},"espn1170am.com":{"ce":false,"me":true,"w":"5664285486219264","widget":false,"a":false},"espn1420.com":{"ce":false,"me":true,"w":"5664693742993408","widget":false,"a":false},"espn960sanangelo.com":{"ce":true,"me":true,"w":"5724496364306432","widget":false,"a":false},"espn991.com":{"ce":false,"me":true,"w":"5695992679628800","widget":false,"a":false},"espnwesterncolorado.com":{"ce":true,"me":true,"w":"6294194541821952","widget":false,"a":false},"etsn.fm":{"ce":true,"me":true,"w":"5762757677809664","widget":false,"a":false},"foxsports1510.com":{"ce":true,"me":true,"w":"5631194239598592","widget":false,"a":false},"fun1043.com":{"ce":true,"me":true,"w":"5632809013084160","widget":false,"a":false},"fun107.com":{"ce":true,"me":true,"w":"5092359051149312","widget":false,"a":false},"gator995.com":{"ce":true,"me":true,"w":"5698432489488384","widget":false,"a":false},"gorillavsbear.net":{"ce":true,"me":true,"w":"5744521246670848","widget":false,"a":false},"highway989.com":{"ce":true,"me":true,"w":"5706923102961664","widget":false,"a":false},"hot1047.com":{"ce":true,"me":true,"w":"5723917181255680","widget":false,"a":false},"hot975fm.com":{"ce":true,"me":true,"w":"5641623728816128","widget":false,"a":false},"hot991.com":{"ce":true,"me":true,"w":"5706063975284736","widget":false,"a":false},"hudsonvalleycountry.com":{"ce":true,"me":true,"w":"5714288401448960","widget":false,"a":false},"hudsonvalleypost.com":{"ce":true,"me":true,"w":"5155611269398528","widget":false,"a":false},"i1071.com":{"ce":false,"me":false,"w":"5763956510556160","widget":false,"a":false},"i95rock.com":{"ce":true,"me":true,"w":"5761770640637952","widget":false,"a":false},"i95rocks.com":{"ce":true,"me":true,"w":"5675393177616384","widget":false,"a":false},"invisibleoranges.com":{"ce":true,"me":true,"w":"5640207866003456","widget":false,"a":false},"irock935.com":{"ce":true,"me":true,"w":"5650274766028800","widget":false,"a":false}
9,"jackfmcasper.com":{"ce":true,"me":true,"w":"5632702309990400","widget":false,"a":false},"juanhudsonvalley.com":{"ce":true,"me":true,"w":"5751513914802176","widget":false,"a":false},"k1025.com":{"ce":true,"me":true,"w":"5683379132432384","widget":false,"a":false},"k2radio.com":{"ce":true,"me":true,"w":"5729912586502144","widget":false,"a":false},"k923.fm":{"ce":true,"me":true,"w":"5735825867276288","widget":false,"a":false},"k945.com":{"ce":true,"me":true,"w":"5697614432436224","widget":false,"a":false},"k96fm.com":{"ce":true,"me":true,"w":"5714878691016704","widget":false,"a":false},"k985.com":{"ce":false,"me":false,"w":"5666137959301120","widget":false,"a":false},"kalamazoocountry.com":{"ce":true,"me":true,"w":"5665852075540480","widget":false,"a":false},"katsfm.com":{"ce":true,"me":true,"w":"5630822959808512","widget":false,"a":false},"kbat.com":{"ce":true,"me":true,"w":"5722086619217920","widget":false,"a":false},"kcrr.com":{"ce":true,"me":true,"w":"5750735493922816","widget":false,"a":false},"kdat.com":{"ce":true,"me":true,"w":"5742691456385024","widget":false,"a":false},"kdhlradio.com":{"ce":true,"me":true,"w":"5762726136643584","widget":false,"a":false},"keanradio.com":{"ce":true,"me":true,"w":"5630516440072192","widget":false,"a":false},"kekbfm.com":{"ce":true,"me":true,"w":"5769179794767872","widget":false,"a":false},"keyj.com":{"ce":true,"me":true,"w":"5164592180232192","widget":false,"a":false},"keyw.com":{"ce":true,"me":true,"w":"5759932629516288","widget":false,"a":false},"kezj.com":{"ce":true,"me":true,"w":"5637925594202112","widget":false,"a":false},"kffm.com":{"ce":true,"me":true,"w":"5708513046167552","widget":false,"a":false},"kfilradio.com":{"ce":true,"me":true,"w":"5656485792055296","widget":false,"a":false},"kfmx.com":{"ce":true,"me":true,"w":"5074975640780800","widget":false,"a":false},"kfox95.com":{"ce":true,"me":true,"w":"5176030886100992","widget":false,"a":false},"kfyo.com":{"ce":true,"me":true,"w":"5674952675033088","widget":false,"a":false},"kgab.com":{"ce":true,"me":true,"w":"5760892957360128","widget":false,"a":false},"khak.com":{"ce":true,"me":true,"w":"5640841776332800","widget":false,"a":false},"khmoradio.com":{"ce":true,"me":true,"w":"5667994324697088","widget":false,"a":false},"kickam1530.com":{"ce":true,"me":true,"w":"6291828459438080","widget":false,"a":false},"kicks105.com":{"ce":true,"me":true,"w":"5707067219247104","widget":false,"a":false},"kicks1055.com":{"ce":true,"me":true,"w":"5682882157740032","widget":false,"a":false},"kidotalkradio.com":{"ce":true,"me":true,"w":"5751506172116992","widget":false,"a":false},"kiik1049.com":{"ce":true,"me":true,"w":"5714096738533376","widget":false,"a":false},"kikn.com":{"ce":true,"me":true,"w":"5704514163179520","widget":false,"a":false},"kingfm.com":{"ce":true,"me":true,"w":"5074910343856128","widget":false,"a":false},"kissbinghamton.com":{"ce":true,"me":true,"w":"5154878440603648","widget":false,"a":false},"kisscasper.com":{"ce":true,"me":true,"w":"5742896507518976","widget":false,"a":false},"kisselpaso.com":{"ce":true,"me":true,"w":"5665258162094080","widget":false,"a":false},"kissfm969.com":{"ce":true,"me":true,"w":"5755645312630784","widget":false,"a":false},"kixs.com":{"ce":true,"me":true,"w":"5673655326474240","widget":false,"a":false},"kkam.com":{"ce":true,"me":true,"w":"5761084922265600","widget":false,"a":false},"kkyr.com":{"ce":true,"me":true,"w":"5742405572624384","widget":false,"a":false},"klaq.com":{"ce":true,"me":true,"w":"5158656166330368","widget":false,"a":false},"klaw.com":{"ce":true,"me":true,"w":"5741249286897664","widget":false,"a":false},"klyq.com":{"ce":true,"me":true,"w":"5115119559245824","widget":false,"a":false},"kmhk.com":{"ce":true,"me":true,"w":"5667821720698880","widget":false,"a":false},"kmmsam.com":{"ce":true,"me":true,"w":"5739478955065344","widget":false,"a":false},"knue.com":{"ce":true,"me":true,"w":"5641994069082112","widget":false,"a":false},"koel.com":{"ce":true,"me":true,"w":"5715249031282688","widget":false,"a":false},"kool1017.com":{"ce":true,"me":true,"w":"5649473486192640","widget":false,"a":false},"kool1079.com":{"ce":true,"me":true,"w":"5659063711956992","widget":false,"a":false},"kool965.com":{"ce":true,"me":true,"w":"5730875565146112","widget":false,"a":false},"koolam.com":{"ce":true,"me":true,"w":"5651018567122944","widget":false,"a":false},"koolfmabilene.com":{"ce":true,"me":true,"w":"5723448895602688","widget":false,"a":false},"kosy790am.com":{"ce":true,"me":true,"w":"5648546712780800","widget":false,"a":false},"kowb1290.com":{"ce":true,"me":true,"w":"5642996910391296","widget":false,"a":false},"kpel965.com":{"ce":true,"me":true,"w":"5709654802825216","widget":false,"a":false},"kqvt.com":{"ce":true,"me":true,"w":"5734688556580864","widget":false,"a":false},"krfofm.com":{"ce":true,"me":true,"w":"5684244434124800","widget":false,"a":false}
9,"krforadio.com":{"ce":true,"me":true,"w":"5769034034315264","widget":false,"a":false},"krna.com":{"ce":true,"me":true,"w":"5722522289963008","widget":false,"a":false},"kroc.com":{"ce":true,"me":true,"w":"5658288201924608","widget":false,"a":false},"krock1017fm.com":{"ce":true,"me":true,"w":"5759354822197248","widget":false,"a":false},"krocnews.com":{"ce":true,"me":true,"w":"5667347361693696","widget":false,"a":false},"krod.com":{"ce":true,"me":true,"w":"5740396165464064","widget":false,"a":false},"ksenam.com":{"ce":true,"me":true,"w":"5731337005694976","widget":false,"a":false},"ksfa860.com":{"ce":true,"me":true,"w":"5691617148141568","widget":false,"a":false},"ksisradio.com":{"ce":true,"me":true,"w":"5716367266283520","widget":false,"a":false},"ksoo.com":{"ce":true,"me":true,"w":"6269002050437120","widget":false,"a":false},"ktemnews.com":{"ce":true,"me":true,"w":"5631265777647616","widget":false,"a":false},"kxkx.com":{"ce":true,"me":true,"w":"5762289794809856","widget":false,"a":false},"kxrb.com":{"ce":true,"me":true,"w":"5769420480708608","widget":false,"a":false},"kygl.com":{"ce":true,"me":true,"w":"5743460926619648","widget":false,"a":false},"kyssfm.com":{"ce":true,"me":true,"w":"5641294761164800","widget":false,"a":false},"lamejor947.com":{"ce":true,"me":true,"w":"5638166280142848","widget":false,"a":false},"laramielive.com":{"ce":true,"me":true,"w":"5703552694484992","widget":false,"a":false},"lite987.com":{"ce":true,"me":true,"w":"5682098292654080","widget":false,"a":false},"liteonline.com":{"ce":true,"me":true,"w":"5694762540597248","widget":false,"a":false},"literock969.com":{"ce":true,"me":true,"w":"5682802432409600","widget":false,"a":false},"live959.com":{"ce":true,"me":true,"w":"5647100885860352","widget":false,"a":false},"lonestar1280.com":{"ce":true,"me":true,"w":"5642008262606848","widget":false,"a":false},"lonestar92.com":{"ce":false,"me":true,"w":"5760644419682304","widget":false,"a":false},"lonestar923.com":{"ce":true,"me":true,"w":"6195140885479424","widget":false,"a":false},"lonestar995fm.com":{"ce":true,"me":true,"w":"5703381063565312","widget":false,"a":false},"loudwire.com":{"ce":true,"me":true,"w":"5754804392427520","widget":false,"a":false},"mega993online.com":{"ce":true,"me":true,"w":"5751651932569600","widget":false,"a":false},"minnesotasnewcountry.com":{"ce":true,"me":true,"w":"5659980150603776","widget":false,"a":false},"mix1043fm.com":{"ce":true,"me":true,"w":"5671254540419072","widget":false,"a":false},"mix106radio.com":{"ce":true,"me":true,"w":"5725100209864704","widget":false,"a":false},"mix108.com":{"ce":true,"me":true,"w":"5629592485232640","widget":false,"a":false},"mix925abilene.com":{"ce":true,"me":true,"w":"5642584358649856","widget":false,"a":false},"mix931fm.com":{"ce":true,"me":true,"w":"5670773671854080","widget":false,"a":false},"mix941kmxj.com":{"ce":true,"me":true,"w":"5078344807743488","widget":false,"a":false},"mix949.com":{"ce":true,"me":true,"w":"5674730309812224","widget":false,"a":false},"mix957gr.com":{"ce":true,"me":true,"w":"5649702998507520","widget":false,"a":false},"mix979fm.com":{"ce":true,"me":true,"w":"5751077648465920","widget":false,"a":false},"montanatalks.com":{"ce":true,"me":true,"w":"5127528088862720","widget":false,"a":false},"mooseradio.com":{"ce":true,"me":true,"w":"5677472042450944","widget":false,"a":false},"my1035.com":{"ce":true,"me":true,"w":"5647807173099520","widget":false,"a":false},"my1053wjlt.com":{"ce":true,"me":true,"w":"5142166377594880","widget":false,"a":false},"myb106.com":{"ce":true,"me":true,"w":"5691671103668224","widget":false,"a":false},"mybeachradio.com":{"ce":true,"me":true,"w":"5736314705018880","widget":false,"a":false},"mycountry955.com":{"ce":true,"me":true,"w":"5176409279430656","widget":false,"a":false},"mykiss1031.com":{"ce":true,"me":true,"w":"5722957960708096","widget":false,"a":false},"mykisscountry937.com":{"ce":true,"me":true,"w":"5684658797805568","widget":false,"a":false},"mymagicgr.com":{"ce":true,"me":true,"w":"5736606930567168","widget":false,"a":false},"mymagiclc.com":{"ce":true,"me":true,"w":"5139044540350464","widget":false,"a":false},"mymajic933.com":{"ce":true,"me":true,"w":"5114742138994688","widget":false,"a":false},"myq1075.com":{"ce":true,"me":true,"w":"5714396211838976","widget":false,"a":false},"newcountry991.com":{"ce":true,"me":true,"w":"5654624594821120","widget":false,"a":false},"newsradio1310.com":{"ce":true,"me":true,"w":"5769873868193792","widget":false,"a":false},"newstalk1280.com":{"ce":true,"me":true,"w":"5713364312391680","widget":false,"a":false},"newstalk1290.com":{"ce":true,"me":true,"w":"5705536197623808","widget":false,"a":false},"newstalk870.am":{"ce":true,"me":true,"w":"5760410176192512","widget":false,"a":false},"newstalk940.com":{"ce":true,"me":true,"w":"6301780200652800","widget":false,"a":false},"newstalk955.com":{"ce":true,"me":true,"w":"5153516667535360","widget":false,"a":false},"newstalkkgvo.com":{"ce":true,"me":true,"w":"5658581232779264","widget":false,"a":false},"newstalkkit.com":{"ce":true,"me":true,"w":"5674469088559104","widget":false,"a":false},"nick975.com":{"ce":false,"me":true,"w":"5757707601575936","widget":false,"a":false},"nj1015.com":{"ce":true,"me":true,"w":"5633661832527872","widget":false,"a":false},"noisecreep.com":{"ce":true,"me":true,"w":"5636995264020480","widget":false,"a":false}
9,"northlandfan.com":{"ce":true,"me":true,"w":"4861627166883840","widget":false,"a":false},"notetoscene.com":{"ce":true,"me":true,"w":"5633471880888320","widget":false,"a":false},"popcrush.com":{"ce":true,"me":true,"w":"5722569098395648","widget":false,"a":false},"power1029noco.com":{"ce":true,"me":true,"w":"5768017502797824","widget":false,"a":false},"power105boise.com":{"ce":false,"me":true,"w":"5643928733745152","widget":false,"a":false},"power959.com":{"ce":true,"me":true,"w":"5747209996861440","widget":false,"a":false},"power96radio.com":{"ce":true,"me":true,"w":"5637588875476992","widget":false,"a":false},"powerboise.com":{"ce":false,"me":false,"w":"5849588224229376","widget":false,"a":false},"praise933.com":{"ce":true,"me":true,"w":"5725803779194880","widget":false,"a":false},"q1057.com":{"ce":true,"me":true,"w":"5151229832331264","widget":false,"a":false},"q1065.fm":{"ce":true,"me":true,"w":"5654332369272832","widget":false,"a":false},"q1077.com":{"ce":true,"me":true,"w":"5635165574397952","widget":false,"a":false},"q923fm.com":{"ce":false,"me":false,"w":"5675191750361088","widget":false,"a":false},"q961.com":{"ce":true,"me":true,"w":"5731526957334528","widget":false,"a":false},"q985.fm":{"ce":false,"me":false,"w":"5744786444124160","widget":false,"a":false},"q985online.com":{"ce":true,"me":true,"w":"5701617308401664","widget":false,"a":false},"quickcountry.com":{"ce":true,"me":true,"w":"5070711879106560","widget":false,"a":false},"radiotexaslive.com":{"ce":true,"me":true,"w":"5636336724738048","widget":false,"a":false},"restoretheshore.com":{"ce":true,"me":true,"w":"5704246767910912","widget":false,"a":false},"retro1025.com":{"ce":true,"me":true,"w":"5691188624490496","widget":false,"a":false},"river967.com":{"ce":true,"me":true,"w":"5707795249758208","widget":false,"a":false},"rivergrandrapids.com":{"ce":true,"me":true,"w":"5671793055498240","widget":false,"a":false},"rock1041.com":{"ce":true,"me":true,"w":"4849931635392512","widget":false,"a":false},"rock967online.com":{"ce":true,"me":true,"w":"5732049701830656","widget":false,"a":false},"screencrush.com":{"ce":true,"me":true,"w":"5179525076877312","widget":false,"a":false},"seacoastcurrent.com":{"ce":true,"me":true,"w":"5642148167811072","widget":false,"a":false},"shark1053.com":{"ce":true,"me":true,"w":"5693154477998080","widget":false,"a":false},"shoresportsnetwork.com":{"ce":false,"me":true,"w":"5198820687216640","widget":false,"a":false},"sojo1049.com":{"ce":true,"me":true,"w":"5120429179011072","widget":false,"a":false},"squatchrocks.com":{"ce":true,"me":true,"w":"5091382415851520","widget":false,"a":false},"starcrush.com":{"ce":true,"me":true,"w":"5705902209368064","widget":false,"a":false},"supertalk1270.com":{"ce":true,"me":true,"w":"5715057066377216","widget":false,"a":false},"talk1470.com":{"ce":true,"me":true,"w":"5710130420121600","widget":false,"a":false},"talkradio960.com":{"ce":true,"me":true,"w":"5097557807071232","widget":false,"a":false},"tasteofcountry.com":{"ce":true,"me":true,"w":"5764192855392256","widget":false,"a":false},"thebeet.com":{"ce":false,"me":true,"w":"5737179805384704","widget":false,"a":false},"theboombox.com":{"ce":true,"me":true,"w":"5124515202859008","widget":false,"a":false},"theboot.com":{"ce":true,"me":true,"w":"5755789248561152","widget":false,"a":false},"thebullamarillo.com":{"ce":true,"me":true,"w":"5720165627985920","widget":false,"a":false},"thedrop.fm":{"ce":true,"me":true,"w":"5744021117861888","widget":false,"a":false},"thefw.com":{"ce":true,"me":true,"w":"5653960519057408","widget":false,"a":false},"thegame730am.com":{"ce":true,"me":true,"w":"5638822906822656","widget":false,"a":false},"therockofrochester.com":{"ce":true,"me":true,"w":"5650758352502784","widget":false,"a":false},"thunder987.com":{"ce":false,"me":false,"w":"5716664894095360","widget":false,"a":false},"tide1009.com":{"ce":true,"me":true,"w":"5677769670262784","widget":false,"a":false},"townsquareblogs.com":{"ce":false,"me":false,"w":"5759523017981952","widget":false,"a":false},"townsquarenoco.com":{"ce":true,"me":true,"w":"5107873035059200","widget":false,"a":false}
9,"tuscaloosathread.com":{"ce":true,"me":true,"w":"5662135284662272","widget":false,"a":false},"ultimateclassicrock.com":{"ce":true,"me":true,"w":"5760699771912192","widget":false,"a":false},"ultimatemetallica.com":{"ce":true,"me":true,"w":"5709414720864256","widget":false,"a":false},"ultimatepearljam.com":{"ce":true,"me":true,"w":"5704366490124288","widget":false,"a":false},"ultimateprince.com":{"ce":true,"me":true,"w":"5074346092527616","widget":false,"a":false},"ultimateunexplained.com":{"ce":true,"me":true,"w":"5678334710120448","widget":false,"a":false},"us103.com":{"ce":true,"me":true,"w":"5135482536067072","widget":false,"a":false},"us1033.com":{"ce":false,"me":false,"w":"5742589314596864","widget":false,"a":false},"us105fm.com":{"ce":true,"me":true,"w":"5174229851963392","widget":false,"a":false},"wakeupwyo.com":{"ce":true,"me":true,"w":"5987527073726464","widget":false,"a":false},"wbckfm.com":{"ce":true,"me":true,"w":"5706994641010688","widget":false,"a":false},"wbkr.com":{"ce":true,"me":true,"w":"5738141710286848","widget":false,"a":false},"wbktfm.com":{"ce":true,"me":true,"w":"5768264866070528","widget":false,"a":false},"wblk.com":{"ce":true,"me":true,"w":"5725303650385920","widget":false,"a":false},"wblm.com":{"ce":true,"me":true,"w":"5750920613724160","widget":false,"a":false},"wbsm.com":{"ce":true,"me":true,"w":"5069859059662848","widget":false,"a":false},"wbuf.com":{"ce":true,"me":true,"w":"5769188737024000","widget":false,"a":false},"wchram.com":{"ce":true,"me":true,"w":"5636701427859456","widget":false,"a":false},"wcrz.com":{"ce":true,"me":true,"w":"5088049789665280","widget":false,"a":false},"wcyy.com":{"ce":true,"me":true,"w":"5670350886010880","widget":false,"a":false},"wdbqam.com":{"ce":true,"me":true,"w":"5132667050786816","widget":false,"a":false},"wdea.am":{"ce":true,"me":true,"w":"5089891458220032","widget":false,"a":false},"wdhifm.com":{"ce":true,"me":true,"w":"5702685379526656","widget":false,"a":false},"wdlafm.com":{"ce":true,"me":true,"w":"5719684759420928","widget":false,"a":false},"wfgr.com":{"ce":true,"me":true,"w":"5736802620014592","widget":false,"a":false},"wfnt.com":{"ce":true,"me":true,"w":"5686202268123136","widget":false,"a":false},"wgna.com":{"ce":true,"me":true,"w":"5724013314703360","widget":false,"a":false},"wgrd.com":{"ce":true,"me":true,"w":"5685394982043648","widget":false,"a":false},"wibx950.com":{"ce":true,"me":true,"w":"5169099748409344","widget":false,"a":false},"witl.com":{"ce":true,"me":true,"w":"5702534686572544","widget":false,"a":false},"wjbq.com":{"ce":true,"me":true,"w":"6253427995705344","widget":false,"a":false},"wjimam.com":{"ce":true,"me":true,"w":"5190591529877504","widget":false,"a":false},"wjon.com":{"ce":true,"me":true,"w":"5668590788280320","widget":false,"a":false},"wkdq.com":{"ce":true,"me":true,"w":"5082274467938304","widget":false,"a":false},"wkfr.com":{"ce":true,"me":true,"w":"5669562591739904","widget":false,"a":false},"wkmi.com":{"ce":true,"me":true,"w":"5667738639925248","widget":false,"a":false},"wkxzfm.com":{"ce":true,"me":true,"w":"5739550493114368","widget":false,"a":false},"wmmq.com":{"ce":true,"me":true,"w":"5086844447358976","widget":false,"a":false},"wnaw.com":{"ce":true,"me":true,"w":"5757103756017664","widget":false,"a":false},"wnbf.com":{"ce":true,"me":true,"w":"5674615654318080","widget":false,"a":false},"wobm.com":{"ce":true,"me":true,"w":"5651623889076224","widget":false,"a":false},"wokq.com":{"ce":true,"me":true,"w":"5659042673328128","widget":false,"a":false},"womiowensboro.com":{"ce":true,"me":true,"w":"5736014325743616","widget":false,"a":false},"wour.com":{"ce":true,"me":true,"w":"5730661252988928","widget":false,"a":false},"wpdh.com":{"ce":true,"me":true,"w":"5769391389016064","widget":false,"a":false},"wpgtalkradio.com":{"ce":true,"me":true,"w":"4790911671205888","widget":false,"a":false},"wpst.com":{"ce":true,"me":true,"w":"5655887415869440","widget":false,"a":false},"wrkr.com":{"ce":true,"me":true,"w":"5752465694654464","widget":false,"a":false},"wrrv.com":{"ce":true,"me":true,"w":"5749581523451904","widget":false,"a":false},"wsbs.com":{"ce":true,"me":true,"w":"5167711299567616","widget":false,"a":false},"wsrkfm.com":{"ce":true,"me":true,"w":"5637776411197440","widget":false,"a":false},"wtbdfm.com":{"ce":true,"me":true,"w":"5642350115160064","widget":false,"a":false},"wtug.com":{"ce":true,"me":true,"w":"5718281781510144","widget":false,"a":false},"wupe.com":{"ce":true,"me":true,"w":"5654201808977920","widget":false,"a":false},"wyopreps.com":{"ce":true,"me":true,"w":"5683571902644224","widget":false,"a":false},"wyrk.com":{"ce":true,"me":true,"w":"5665471266291712","widget":false,"a":false},"wzozfm.com":{"ce":true,"me":true,"w":"5647878711148544","widget":false,"a":false},"xlcountry.com":{"ce":true,"me":true,"w":"5690525555359744","widget":false,"a":false},"xxlmag.com":{"ce":true,"me":true,"w":"5703638245703680","widget":false,"a":false},"y101radio.com":{"ce":true,"me":true,"w":"5686083921641472","widget":false,"a":false},"y105fm.com":{"ce":true,"me":true,"w":"5758632596602880","widget":false,"a":false},"y105music.com":{"ce":true,"me":true,"w":"5170301835935744","widget":false,"a":false},"y95country.com":{"ce":true,"me":true,"w":"5720896846168064","widget":false,"a":false},"z1073.com":{"ce":true,"me":true,"w":"5112443224195072","widget":false,"a":false},"z94.com":{"ce":true,"me":true,"w":"5657600503840768","widget":false,"a":false}}
9,we={countryCode:"ZZ",isRestricted:!1};try{we=[[CountryData]]}catch(e){}var Ee=new Proxy(new URLSearchParams(window.location.search),{get:function(e,t){return e.get(t)}});G?H.addEventListener("unload",(function(){Object.values(t).forEach((function(e){H.sessionStorage.removeItem(e)}))})):Object.values(t).forEach((function(e){H.sessionStorage.removeItem(e)}));var Ie=(null===(le=H.__bt_intrnl)||void 0===le?void 0:le.traceID)||W(t.BT_TRACE_ID)||ge();z(t.BT_TRACE_ID,Ie);var _e=H.sessionStorage.getItem("BT_sid");_e||(_e=ge(),H.sessionStorage.setItem("BT_sid",_e));var Se={traceID:Ie,sessionID:_e},Ce=function(){return i(this,void 0,void 0,(function(){var e,t,n,r,s,i,a,c,l,u,d,p,h,v,f,m,g,b,y;return o(this,(function(o){switch(o.label){case 0:if(e={websiteID:void 0,contentEnabled:!1,mobileContentEnabled:!1,widget:!1},t=function(e,t){e=e.replace(/[\[\]]/g,"\\$&");var n=RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},n=Y()||function(){var e,n=K().hostname;try{"disqusservice.com"===n&&(n=(null!=(e=t("sourceUrl",H.location.href).match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i))&&e.length>2&&"string"==typeof e[2]&&e[2].length>0?e[2]:null)+"-disqus")}catch(e){n=H.location.hostname}return 0===n.indexOf("www.")&&(n=n.replace("www.","")),n}(),r=!1,0!==Object.keys(ye).length)return[3,5];(s=new URL("https://btloader.com/websiteconfig")).searchParams.set("bt_env",Ee.bt_env||"prod"),s.searchParams.set("o",ue),s.searchParams.set("w",n),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(""+s)];case 2:if(!(i=o.sent()).ok)throw Error();return[4,i.json()];case 3:return a=o.sent(),e.websiteID=a.tagData.w,e.contentEnabled=a.tagData.ce,e.mobileContentEnabled=a.tagData.me,e.widget=null!==(d=a.tagData.widget)&&void 0!==d&&d,[2,{siteInfo:e,bundleData:a.bundleData,rlSettings:a.messageWall,checksum:a.checksum}];case 4:return o.sent(),[3,5];case 5:return n&&n in ye?(e.websiteID=null!==(p=(l=ye[n]).w)&&void 0!==p?p:l.website_id,e.contentEnabled=null!==(h=l.ce)&&void 0!==h?h:l.content_enabled,e.mobileContentEnabled=null!==(v=l.me)&&void 0!==v?v:l.mobile_content_enabled,e.widget=null!==(f=l.widget)&&void 0!==f&&f,r=!0):(c=Object.keys(ye).reduce((function(e,t){var r=t.toLowerCase(),s=n.indexOf(r)>-1?n.indexOf(r):H.location.hostname.indexOf(r);return s>-1&&(!e||e.indexInHostname>s||s===e.indexInHostname&&t.length>e.site.length)?{site:t,indexInHostname:s}:e}),null))&&(r=!0,e.websiteID=null!==(m=(l=ye[c.site]).w)&&void 0!==m?m:l.website_id,e.contentEnabled=null!==(g=l.ce)&&void 0!==g?g:l.content_enabled,e.mobileContentEnabled=null!==(b=l.me)&&void 0!==b?b:l.mobile_content_enabled,e.widget=null!==(y=l.widget)&&void 0!==y&&y),r?(u=function(e){var t;return(null===(t=null==ve?void 0:ve.websites)||void 0===t?void 0:t[e])||(null==ve?void 0:ve.org)}(e.websiteID),[2,{siteInfo:e,rlSettings:u}]):[2,{siteInfo:e,hostname:n}]}}))}))}();function Re(){return Ce}Ce.then((function(e){window.__bt_tag_d={orgID:ue,domain:de,siteInfo:e.siteInfo,apiDomain:pe,version:he,websitesData:ye}}));var Ae="nlf";function Le(e,t){var n;void 0===e&&(e="/"),void 0===t&&(t={});var s=e;s.startsWith("/")||(s="/".concat(s));var i=r(r({},t),((n={}).tid=Se.traceID,n.sid=Se.sessionID,n.cv=he,n.upapi="true",n)),o="?";for(var a in i)if(i.hasOwnProperty(a)){var c=i[a];s+="".concat(o).concat(a,"=").concat(encodeURIComponent(c)),o="&"}return"https://".concat(pe).concat(s)}function Oe(e,t){return i(this,arguments,void 0,(function(e,t,n,r){var s;return void 0===n&&(n=!1),void 0===r&&(r=!1),o(this,(function(i){return s={websiteID:t,orgID:ue,pageUrl:K().href,extensionsData:e,sentOnUnload:n,sentOnSPAChange:r},n&&navigator.sendBeacon?[2,navigator.sendBeacon(Le("/exd"),te(s))]:[2,fetch(Le("/exd"),{method:"POST",body:te(s),keepalive:n})]}))}))}var De,Pe,Te,Ve,xe=(null===(Pe=K().href)||void 0===Pe?void 0:Pe.includes("bt_debug=true"))||"true"===H.localStorage.getItem("bt_debug"),Be=function(){function e(){}return e.getDuration=function(){var t=performance.now()-e.startTimestamp;return 1e3>t?"".concat(Math.round(t),"ms"):"".concat((t/1e3).toFixed(2),"s")},e.logToConsole=function(t,n){for(var r=[],s=2;arguments.length>s;s++)r[s-2]=arguments[s];if(e.isLoggingEnabled){var i=["color: black; background-color: ".concat(e.LEVEL_COLORS[t]),"background-color: inherit","font-weight: bold;","font-weight: normal;","color: #757575;","color: inherit"],o="%c[Blockthrough - ".concat(e.LEVEL_NAME[t],"]%c %c[tag.js]%c %c[").concat(e.getDuration(),"]%c ").concat(n),c=r;1===r.length&&Array.isArray(r[0])&&(c=r[0]);var l=c.filter((function(e){return!(Array.isArray(e)&&!e.length)}));console.info.apply(console,l.length?a(a([o],i,!1),l,!1):a([o],i,!1))}},e.sendToServer=function(e){(null==e?void 0:e.event)&&function(e){i(this,arguments,void 0,(function(e,t,n){var r,s;return void 0===t&&(t={}),void 0===n&&(n={}),o(this,(function(i){switch(i.label){case 0:return n.sendPercentage&&!X(n.sendPercentage)?[3,2]:[4,Re()];case 1:r=i.sent(),s={event:e,meta:t,orgID:ue,severity:n.severity||1,websiteID:((r||{}).siteInfo||{}).websiteID},fetch(Le("/log"),{method:"POST",body:te(s)}),i.label=2;case 2:return[2]}}
9))}))}(e.event,e.meta,{sendPercentage:e.sendPercentage,severity:e.severity})},e.logWithServer=function(t,n,r){for(var s=[],i=3;arguments.length>i;i++)s[i-3]=arguments[i];e.logToConsole.apply(e,a([t,n],s,!1)),e.sendToServer(r)},e.prototype.debug=function(t,n){for(var r=[],s=2;arguments.length>s;s++)r[s-2]=arguments[s];e.logWithServer.apply(e,a([e.LEVELS.DEBUG,t,n],r,!1))},e.prototype.info=function(t,n){for(var r=[],s=2;arguments.length>s;s++)r[s-2]=arguments[s];e.logWithServer.apply(e,a([e.LEVELS.INFO,t,n],r,!1))},e.prototype.warning=function(t,n){for(var r=[],s=2;arguments.length>s;s++)r[s-2]=arguments[s];e.logWithServer.apply(e,a([e.LEVELS.WARNING,t,n],r,!1))},e.prototype.error=function(t,n){for(var r=[],s=2;arguments.length>s;s++)r[s-2]=arguments[s];e.logWithServer.apply(e,a([e.LEVELS.ERROR,t,n],r,!1))},e.isLoggingEnabled=xe&&"function"==typeof(null==console?void 0:console.info),e.LEVEL_NAME=((De={})[(e.LEVELS={DEBUG:"DEBUG",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR"}).DEBUG]="DBG",De[e.LEVELS.INFO]="INF",De[e.LEVELS.WARNING]="WRN",De[e.LEVELS.ERROR]="ERR",De),e.LEVEL_COLORS={DEBUG:"#DCEDC8",INFO:"#B3E5FC",WARNING:"#FFE0B2",ERROR:"#E57373"},e.startTimestamp=performance.now(),e}(),Ne=new Be,Ue=function(e){return{data:e}},ke=function(){function e(){var e=this;this.beforeUnloadCallbacks=[],this.requestBatchByUrl={},window.addEventListener("beforeunload",(function(){e.beforeUnloadCallbacks.forEach((function(e){e()})),Object.keys(e.requestBatchByUrl).forEach((function(t){e.sendBatchRequests(t,!0)}))}))}return e.prototype.send=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(r,s){n.enqueueRequest(e,r,s,t)}))},e.prototype.resetAllBatches=function(){var e=this;Object.keys(this.requestBatchByUrl).forEach((function(t){return e.resetBatch(t)}))},e.prototype.beforeUnload=function(e){"function"==typeof e&&this.beforeUnloadCallbacks.push(e)},e.prototype.resetBatch=function(e){var t=this.requestBatchByUrl[e];(null==t?void 0:t.timeout)&&clearTimeout(t.timeout),delete this.requestBatchByUrl[e]},e.prototype.enqueueRequest=function(e,t,n,s){var i=this;void 0===s&&(s={}),e.method=e.method||"POST",s={batchSizeMax:s.batchSizeMax||64,batchInterval:s.batchInterval||3e4,preparePayload:s.preparePayload||Ue};var o=e.url,a=e.method;if(this.requestBatchByUrl[o]){if(a!==this.requestBatchByUrl[o].method){var c="BatchingService.enqueueRequest.methodMismatch";return Ne.error(c,{sendPercentage:1,event:c,meta:u={expectedMethod:this.requestBatchByUrl[o].method,actualMethod:a,request:e,severity:4}},u),void n()}}else this.requestBatchByUrl[o]=r({data:[],method:a},s),this.requestBatchByUrl[o].timeout=setTimeout((function(){return i.sendBatchRequests(o)}),this.requestBatchByUrl[o].batchInterval);var l=this.requestBatchByUrl[o];if(l.data.push({req:e,resolve:t,reject:n}),this.isBatchSizeLimitExceeded(l)){if(l.data.pop(),0===l.data.length){var u,d="BatchingService.enqueueRequest.requestTooLarge";return Ne.error(d,{sendPercentage:1,event:d,meta:u={request:e},severity:4},u),this.resetBatch(o),void n()}this.sendBatchRequests(o),t(),this.enqueueRequest(e,t,n,s)}},e.prototype.preparePayload=function(e){var t=e.data.map((function(e){return e.req.body}));return this.stringify(e.preparePayload(t))},e.prototype.stringify=function(e){var t;try{t=JSON.stringify(e)}catch(r){t="{}";var n="BatchingService.stringify.dataNotStringifiable";Ne.error(n,{sendPercentage:1,event:n,severity:4},e)}return t},e.prototype.isBatchSizeLimitExceeded=function(e){var t=this.preparePayload(e);return(window.TextEncoder?(new window.TextEncoder).encode(t).byteLength:new Blob([t]).size)>1e3*e.batchSizeMax},e.prototype.sendBatchRequests=function(e){return i(this,arguments,void 0,(function(e,t){var n,r,s;return void 0===t&&(t=!1),o(this,(function(i){return(null===(s=null==(n=this.requestBatchByUrl[e])?void 0:n.data)||void 0===s?void 0:s.length)?(t?"POST"===n.method?navigator.sendBeacon(new URL(e,"https://".concat(pe)),this.preparePayload(n)):Ne.error("BatchingService.sendBatchRequests.beaconMethodUnsupported",{event:"BatchingService.sendBatchRequests.beaconMethodUnsupported",sendPercentage:1,meta:r={url:e,requestBatch:n},severity:4},r):fetch(e,{method:n.method,body:this.preparePayload(n),keepalive:!0}).then((function(){n.data.forEach((function(e){return e.resolve()}))})).catch((function(e){n.data.forEach((function(t){return t.reject(e)}))})),this.resetBatch(e),[2]):[2]}))}))},e}(),Me=new ke,Fe=Date.now(),je=(window.performance.getEntriesByType("resource")||[]).find((function(e){var t,n,r;return e.name.includes(null!==(r=null===(n=null===(t=document.currentScript)||void 0===t?void 0:t.getAttribute)||void 0===n?void 0:n.call(t,"src"))&&void 0!==r?r:"")})),qe=Math.round(Date.now()-(null!==(Te=null==je?void 0:je.startTime)&&void 0!==Te?Te:0+(null!==(Ve=null==je?void 0:je.duration)&&void 0!==Ve?Ve:0))),He=je&&X(1),Ge=new Be;function Ke(e,t){He&&(Ge.info(e,{event:e,meta:t,sendPercentage:100},r({isLoggingSessionTimings:He},t)),function(e){i(this,void 0,void 0,(function(){var t,n,r,s,i,a,c,l;return o(this,(function(o){switch(o.label){case 0:t=(null===(l=window.navigator)||void 0===l?void 0:l.connection)||{},n=t.effectiveType,r=t.saveData,s=t.type,o.label=1;case 1:return o.trys.push([1,2,,4]),i=window.__bt_tag_d.siteInfo.websiteID,[3,4];case 2:return o.sent(),[4,Re()];case 3:return i=o.sent().siteInfo.websiteID,[3,4];case 4:return a={method:"POST",url:Le("/evts"),body:e},c=function(e){var t,o,a,c=ce(e),l=(t=c.map((function(e){var t=e.meta;return void 0===t?{}:t})),o={}
9,0===(a=ce(t)).length||Object.entries(a[0]).forEach((function(e){var t=e[0],n=e[1];a.every((function(e){return t in e&&j(e[t],n)}))&&(o[t]=n,a.forEach((function(e){delete e[t]})))})),{sharedFields:o,deduped:a}),u=l.sharedFields;return l.deduped.forEach((function(e,t){"object"!=typeof e||Object.keys(e).length?c[t].meta=e:delete c[t].meta})),{tid:Se.traceID,oid:ue,wid:i,d:K().host,uc:H.localStorage.getItem("btUserCountry")||"",evts:c,rv:ze.recoveryScriptVersion,tv:he,pbjsv:ze.pbjsVersion||void 0,net:{et:n,t:s,sd:r},meta:u}},Me.send(a,{preparePayload:c}),[2]}}))}))}(function(e,t){var n,r=t.timestamp,i=t.eventDurationMS,o=t.refreshDepth,a=t.auctionId,c=t.auctionGroupId,l=t.auctionIds,u=t.winningBid,d=t.pageURL,p=t.cached,h=t.cacheLevel,v=t.iterationOrder,f=t.stage,m=s(t,["timestamp","eventDurationMS","refreshDepth","auctionId","auctionGroupId","auctionIds","winningBid","pageURL","cached","cacheLevel","iterationOrder","stage"]);return u&&(n={ad_id:u.adId,cid_hash:u.contentIdHash,cpm:u.cpm,bidder:u.bidder,bid_code:u.bidderCode,size:u.size}),{evt:e,ts:r,dur:i,el_dur:Je(r),rd:o,auc_id:a,ag_id:c,auc_ids:l,win_bid:n,p_url:d,cached:p,cl:h,iter_order:v,stg:f||We.UNKNOWN,meta:Object.keys(m).length?m:void 0}}(e,t)))}var We,ze={sendTimingEvent:Ke};function Je(e){return e-qe}function $e(e){return Xe(e)}function Qe(){var e={timestamp:Date.now(),eventDurationMS:Date.now()-qe};Ke("timing.page_session_end",r(r({},e),{stage:We.USER_TRIGGERED}))}function Xe(e){var t=Date.now();return function(n){void 0===n&&(n={});var s=Date.now(),i=r(r({},n),{eventDurationMS:s-t,timestamp:s,stage:We.PRE_AUCTION});Ke(e,i)}}!function(e){e[e.UNKNOWN=null]="UNKNOWN",e[e.PRE_AUCTION=1]="PRE_AUCTION",e[e.IN_AUCTION=2]="IN_AUCTION",e[e.POST_AUCTION=3]="POST_AUCTION",e[e.USER_TRIGGERED=4]="USER_TRIGGERED"}(We||(We={}));var Ye=new Be,Ze=[];try{Ze=[[RestrictedCountriesData]]}catch(e){}function et(){return/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0}var tt=5;function nt(){return i(this,void 0,void 0,(function(){var e,t,n,s,i,a,c;return o(this,(function(o){switch(o.label){case 0:e={width:window.screen.width,height:window.screen.height,devicePixelRatio:window.devicePixelRatio},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,null===(a=null===(i=navigator.userAgentData)||void 0===i?void 0:i.getHighEntropyValues)||void 0===a?void 0:a.call(i,["model","platform","platformVersion","fullVersionList"])];case 2:return t=null!==(c=o.sent())&&void 0!==c?c:{},n=navigator.userAgent,t.platform||(/iPhone|iPad|iPod/.test(n)?t.platform="iOS":/Android/.test(n)?t.platform="Android":/Windows/.test(n)?t.platform="Windows":/Mac/.test(n)?t.platform="macOS":/Linux/.test(n)&&(t.platform="Linux")),[2,r(r({},e),t)];case 3:return s=o.sent(),Ye.warning("Failed to get user agent hints",{event:"high_entropy_hints_error",sendPercentage:1},s),[2,e];case 4:return[2]}}
9))}))}function rt(e,t){H.localStorage.setItem("btUserCountry",e),H.localStorage.setItem("btUserCountryExpiry",new Date(Date.now()+6e4*tt).getTime()+""),H.localStorage.setItem("btUserIsFromRestrictedCountry",t+"")}var st,it,ot,at,ct,lt,ut,dt,pt=function(){function t(t,n,r,s,i){void 0===t&&(t={enabled:!1,script_loading_mode:"inject_from_tag_script",wall_mode:e.soft,allow_render_to_aa_users:!0}),this.rlinkSettings=t,this.scriptSrc=n,this.insertScript=r,this.widget=s,this.isAAEnabled=i}return t.prototype.load=function(){this.shouldLoadRLinkScript()&&(this.cacheRLinkSettings(),this.insertScript(this.scriptSrc,{type:"module"}),window.__bt_rlink_loaded_from_tag=!0)},t.prototype.preventRecovery=function(){return this.rlinkSettings.enabled&&this.rlinkSettings.wall_mode===e.hard&&!(!this.rlinkSettings.allow_render_to_aa_users&&this.isAAEnabled)},t.prototype.isRecoveryAttributionValid=function(){var e=localStorage.getItem("BT_AM_ATTRIBUTION_EXPIRY");return!!e&&Date.now()<+e},t.prototype.shouldLoadRLinkScript=function(){var e=window.top!==window.self,t=this.scriptSrc&&"inject_from_tag_script"===this.rlinkSettings.script_loading_mode&&!this.widget&&!e;return this.rlinkSettings.enabled?t:t&&this.isRecoveryAttributionValid()},t.prototype.cacheRLinkSettings=function(){window.__bt_tag_am={settings:this.rlinkSettings}},t}(),ht="https://ad-delivery.net/px.gif?ch=1&e=",vt="https://ad-delivery.net/px.gif?ch=2&e=",ft="https://ad.doubleclick.net/favicon.ico?ad=300x250&ad_box_=1&adnet=1&showad=1&size=250x250&e=",mt="content-showcase-itru-sufficient-2d",gt={ELEMENT:{maxAttempts:10,delayMs:200},URL:{maxAttempts:5,delayMs:400}},bt=((st={})[ht]="timing.adDeliveryAADetection",st[vt]="timing.adDeliveryABDetection",st[ft]="timing.doubleclickABDetection",st),yt=function(){function e(){var e=this;this.isRetry=!1,this.iteration=1,this.baitDetectionSignals=[],this.baitsConfig={adBlockBaits:[{name:"ad-delivery-ab",type:"url",value:vt,signalKey:"ab",poll:{maxAttempts:2,delayMs:400}},{name:"doubleclick-ab",type:"url",value:ft,signalKey:"ab",poll:{maxAttempts:2,delayMs:400}},{name:"bt-legacy-bait-element",type:"element",value:"ad_row adbannertop ad-mobile ad_sidebar adpopup boxad contentAd",signalKey:"ab",poll:{maxAttempts:4,delayMs:200}}],acceptableAdsBaits:[{name:"ad-delivery-aa",type:"url",value:ht,signalKey:"aa",expectedToFail:!1,poll:{maxAttempts:2,delayMs:400}}],nlfBaits:[{name:"ab-dns-finder-nlf",type:"url",value:"https://ab.dns-finder.com/meta/dns",signalKey:"ab",expectedToFail:!0,poll:{maxAttempts:1}},{name:"wb-dns-finder-nlf",type:"url",value:"https://wb.dns-finder.com/meta/dns",signalKey:"wb",responseValue:"wb",poll:{maxAttempts:1}}]},this.experimentalBaitsConfig={acceptableAdsBaits:[{name:"element-aa-detection-m5c2t8q",type:"element",value:"".concat(mt," m5c2t8q"),signalKey:"aa",expectedToFail:!0,poll:{maxAttempts:4,delayMs:200}},{name:"element-aa-detection-v8n6y4p",type:"element",value:"".concat(mt," v8n6y4p"),signalKey:"aa",expectedToFail:!0,poll:{maxAttempts:4,delayMs:200}},{name:"element-aa-detection-w3p9m6d",type:"element",value:"".concat(mt," w3p9m6d"),signalKey:"aa",expectedToFail:!0,poll:{maxAttempts:4,delayMs:200}},{name:"element-aa-detection-k2y8f7x",type:"element",value:"".concat(mt," k2y8f7x"),signalKey:"aa",expectedToFail:!0,poll:{maxAttempts:4,delayMs:200}},{name:"element-aa-detection-q7d5z1l",type:"element",value:"".concat(mt," q7d5z1l"),signalKey:"aa",expectedToFail:!1,poll:{maxAttempts:4,delayMs:200}},{name:"element-aa-detection-x9a7b3k",type:"element",value:"".concat(mt," x9a7b3k"),signalKey:"aa",expectedToFail:!1,poll:{maxAttempts:4,delayMs:200}}]},this.nonCachedResultPromise=new Promise((function(t){e.nonCachedResultPromiseResolve=t}))}return e.evaluateBaits=function(e,t){return void 0===t&&(t=.6),e.reduce((function(e,t){return e+(t.signalValue?1:0)}),0)>=Math.ceil(e.length*t)},e.getCachedResult=function(){var t;try{var n=null===(t=H.localStorage)||void 0===t?void 0:t.getItem(e.statusCacheKey),r=JSON.parse(n);return window.__bt_intrnl.aaDetectionResults=r,r}catch(e){}},e.updateCacheResult=function(t){var n;null===(n=H.localStorage)||void 0===n||n.setItem(e.statusCacheKey,JSON.stringify(t)),window.__bt_intrnl.aaDetectionResults=t},e.isElementHidden=function(e){var t,n=(null===(t=window.getComputedStyle)||void 0===t?void 0:t.call(window,e))||(null==e?void 0:e.style);return"none"===(null==n?void 0:n.display)||"hidden"===(null==n?void 0:n.visibility)||null===(null==e?void 0:e.offsetParent)||0===(null==e?void 0:e.offsetHeight)||0===(null==e?void 0:e.clientHeight)},e.injectImagePixel=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,new Promise((function(t){var n,r=e.value||"",s=bt[r]&&$e(bt[r]),i=document.createElement("img"),o="".concat(r).concat(Math.random());i.src=o,i.style.setProperty("display","none","important"),i.style.setProperty("width","1px","important"),i.style.setProperty("height","1px","important");var a=function(e){i.remove(),null==s||s({cacheLevel:ie(o,!0)}),t(e)};i.addEventListener("error",(function(){return a(!0)})),i.addEventListener("load",(function(){return a(!1)})),null===(n=document.body||document.documentElement)||void 0===n||n.appendChild(i)}))]}))}))},e.fetchUrlBait=function(e){return i(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=bt[e.value]&&$e(bt[e.value]),n="".concat(e.value).concat(Math.random()),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,fetch(n,{method:"GET",mode:"no-cors"})];case 2:return[2,{isBlocked:!1,meta:{responseStatus:r.sent().status}}];case 3:return r.sent(),[2,{isBlocked:!0,meta:{responseStatus:null}}];case 4:return null==t||t({cacheLevel:ie(n,!0)}),[7];case 5:return[2]}}
9))}))},e.detectNLF=function(t){return i(this,void 0,void 0,(function(){var n,r,s,i;return o(this,(function(o){switch(o.label){case 0:return n=t.find((function(e){return"ab"===e.signalKey})),r=t.find((function(e){return"wb"===e.signalKey})),[4,Promise.all([n?e.fetchNLFBait(n):Promise.resolve({result:null,baitResults:[]}),r&&et()&&/safari/i.test(navigator.userAgent)&&!/chrome|crios|chromium|android|fxios|edgios/i.test(navigator.userAgent)?e.fetchNLFBait(r):Promise.resolve({result:null,baitResults:[]})])];case 1:return s=o.sent(),i=s[1],[2,{result:!1,baitResults:a(a([],s[0].baitResults,!0),i.baitResults,!0)}]}}))}))},e.fetchNLFBait=function(e){return i(this,void 0,void 0,(function(){var t,n,r,s,i,a,c,l,u,d,p;return o(this,(function(o){switch(o.label){case 0:t=e.value,n=e.name,r=e.type,s=e.signalKey,i=e.responseValue,a=e.expectedToFail,c=!1,l=null,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(t)];case 2:return u=o.sent(),d=u.headers,p=u.status,i&&(c=d.get("X-Resolver")===i),l=p,[3,4];case 3:return o.sent(),a&&(c=!0),[3,4];case 4:return[2,{result:c,baitResults:[{name:n,type:r,signalKey:s,signalValue:c,meta:{responseStatus:l}}]}]}}))}))},e.detectAAHeader=function(){var e,t;return"1"===(null===(t=null===(e=H.__bt_edge_data)||void 0===e?void 0:e.extensionsSignals)||void 0===t?void 0:t.xAcceptableAdsHeader)?{isHeaderPresent:!0,baitResults:[{name:"x-acceptable-ads-header",type:"header",signalKey:"aa",signalValue:!0}]}:{isHeaderPresent:!1,baitResults:[]}},e.detectDNTHeader=function(){var e,t,n=null===(t=null===(e=H.__bt_edge_data)||void 0===e?void 0:e.extensionsSignals)||void 0===t?void 0:t.dnt;return"0"===n?{isHeaderPresent:!0,baitResults:[{name:"dnt-header",type:"header",signalKey:"aa",signalValue:!1}]}:"1"===n?{isHeaderPresent:!0,baitResults:[{name:"dnt-header",type:"header",signalKey:"aa",signalValue:!0}]}:{isHeaderPresent:!1,baitResults:[]}},e.prototype.getBaitPollConfig=function(e){var t=e.poll,n=this.iteration>1||!t?gt["element"===e.type?"ELEMENT":"URL"]:t;return{maxAttempts:n.maxAttempts,delayMs:n.delayMs}},e.prototype.injectElement=function(t){return i(this,void 0,void 0,(function(){var n=this;return o(this,(function(r){return[2,new Promise((function(r){var s,a=document.createElement("div");a.className=t.value,a.style.cssText="display: block !important; width: 1px !important; height: 1px !important; position: absolute !important; left: -5000px !important; top: -5000px !important;",null===(s=document.body||document.documentElement)||void 0===s||s.appendChild(a),setTimeout((function(){return i(n,void 0,void 0,(function(){var n,s,i,c;return o(this,(function(o){switch(o.label){case 0:return[4,ae((function(){return e.isElementHidden(a)||void 0}),(n=this.getBaitPollConfig(t)).maxAttempts,n.delayMs)];case 1:return s=o.sent(),i=s.result,c=s.meta,a.remove(),r({result:!!i,meta:c}),[2]}}))}))}),100)}))]}))}))},e.prototype.detectBaits=function(t){return i(this,void 0,void 0,(function(){var n,s,a,c,l=this;return o(this,(function(u){switch(u.label){case 0:return n=function(e,t){return i(l,void 0,void 0,(function(){var n,s,a,c,l,u,d=this;return o(this,(function(p){switch(p.label){case 0:return s=void 0===(n=t.expectedToFail)||n,a=this.getBaitPollConfig(t),l={},[4,ae((function(){return i(d,void 0,void 0,(function(){var t,n,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,e()];case 1:return t=o.sent(),n=t.isBlocked,l=null!=(r=t.meta)?r:{},(i=s&&n||!s&&!n)?s?[3,4]:[4,oe(c/2)]:[2,void 0];case 2:return o.sent(),[4,e()];case 3:if(o.sent().isBlocked)return[2,void 0];o.label=4;case 4:return[2,i]}}))}))}),a.maxAttempts,c=a.delayMs)];case 1:return u=p.sent(),[2,r(r({},u),{meta:r(r({},null==u?void 0:u.meta),l)})]}}))}))},s=[],a=function(e){return s.push(e.blockedURI)},window.addEventListener("securitypolicyviolation",a,{passive:!0}),[4,Promise.all(t.map((function(t){return i(l,void 0,void 0,(function(){var r,a,c,l,u,d,p,h,v,f,m=this;return o(this,(function(g){switch(g.label){case 0:switch(r=t.name,c=t.signalKey,u=void 0===(l=t.expectedToFail)||l,d=a=t.type,a){case"pixel":return[3,1];case"element":return[3,3];case"url":return[3,5]}return[3,10];case 1:return[4,n((function(){return i(m,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return n={},[4,e.injectImagePixel(t)];case 1:return[2,(n.isBlocked=r.sent(),n)]}}))}))}),t)];case 2:return p=g.sent(),[3,10];case 3:return[4,this.injectElement(t)];case 4:return p=g.sent(),[3,10];case 5:return[4,n((function(){return e.fetchUrlBait(t)}),t)];case 6:return p=g.sent(),h=p.meta.attempt,v=this.getBaitPollConfig(t).maxAttempts,p.result&&u&&1===h||void 0===p.result&&!u&&h===v?[4,oe(200)]:[3,9];case 7:return g.sent(),s.some((function(e){return e.startsWith(t.value)}))?(d="pixel-fallback",[4,n((function(){return i(m,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return n={},[4,e.injectImagePixel(t)];case 1:return[2,(n.isBlocked=r.sent(),n)]}}))}))}),t)]):[3,9];case 8:p=g.sent(),g.label=9;case 9:return[3,10];case 10:return[2,{name:r,type:d,signalKey:c,signalValue:!!(f=p||{}).result,meta:f.meta}]}}))}))})))];case 1:return c=u.sent(),window.removeEventListener("securitypolicyviolation",a),[2,{result:e.evaluateBaits(c),baitResults:c}]}}))}))},e.prototype.detectExperimentalAA=function(t){return i(this,void 0,void 0,(function(){var n,s,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.detectBaits(t)];case 1:return n=o.sent().baitResults,s={}
9,n.forEach((function(e){var n,i=e.name.split("-").pop();s[i]=r({isHidden:e.signalValue},e.meta);var o=null===(n=t.find((function(t){return t.name===e.name})))||void 0===n?void 0:n.expectedToFail;e.signalValue=e.signalValue===o})),[2,{result:i=e.evaluateBaits(n,1),baitResults:[{name:"element-aa-detection",type:"element",signalKey:"aa",signalValue:i,meta:s}]}]}}))}))},e.prototype.run=function(){return i(this,void 0,void 0,(function(){var t,n,r,s=this;return o(this,(function(c){switch(c.label){case 0:return"function"==typeof(null===(r=window.__bt)||void 0===r?void 0:r.customDetectAdBlock)&&(t=i(s,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,window.__bt.customDetectAdBlock()];case 1:return[2,{result:e=t.sent(),baitResults:[{name:"client-based-ab",type:"custom",signalKey:"ab",signalValue:e}]}];case 2:return[2,{result:!1,baitResults:[{name:"client-based-ab",type:"custom",signalKey:"ab",signalValue:!1,meta:{error:!0,errorMessage:t.sent()+""}}]}];case 3:return[2]}}
9))}))),n=function(){return i(s,void 0,void 0,(function(){var n,r,s,i,c,l,u,d,p,h,v,f,m,g,b,y,w,E,I,_,S;return o(this,(function(o){switch(o.label){case 0:return[4,Promise.all([t||this.detectBaits(this.baitsConfig.adBlockBaits),this.detectBaits(this.baitsConfig.acceptableAdsBaits),e.detectNLF(this.baitsConfig.nlfBaits),this.detectExperimentalAA(this.experimentalBaitsConfig.acceptableAdsBaits)])];case 1:return n=o.sent(),r=n[1],s=n[2],i=n[3],this.abResult=n[0],this.aaResult=r,this.nlfResult=s,this.aaHeaderDetection=e.detectAAHeader(),this.dntHeaderBaitResults=e.detectDNTHeader(),this.baitDetectionSignals=this.mergeBaitResults(this.baitDetectionSignals,a(a(a(a(a(a([],null!==(d=null===(u=this.abResult)||void 0===u?void 0:u.baitResults)&&void 0!==d?d:[],!0),null!==(h=null===(p=this.aaResult)||void 0===p?void 0:p.baitResults)&&void 0!==h?h:[],!0),null!==(f=null===(v=this.nlfResult)||void 0===v?void 0:v.baitResults)&&void 0!==f?f:[],!0),null!==(g=null===(m=this.aaHeaderDetection)||void 0===m?void 0:m.baitResults)&&void 0!==g?g:[],!0),null!==(y=null===(b=this.dntHeaderBaitResults)||void 0===b?void 0:b.baitResults)&&void 0!==y?y:[],!0),null!==(w=null==i?void 0:i.baitResults)&&void 0!==w?w:[],!0)),e.updateCacheResult(this.toSimpleStatus()),this.isAAPV()&&(this.iteration>1?this.isRetry=!0:(c=(null!==(I=null===(E=this.abResult)||void 0===E?void 0:E.baitResults)&&void 0!==I?I:[]).filter((function(e){var t;return(null===(t=e.meta)||void 0===t?void 0:t.attempt)>1})).length,l=(null!==(S=null===(_=this.aaResult)||void 0===_?void 0:_.baitResults)&&void 0!==S?S:[]).filter((function(e){var t;return(null===(t=e.meta)||void 0===t?void 0:t.attempt)>1})).length,this.isRetry=!(2>c&&!l))),[2]}}))}))},[4,n()];case 1:return c.sent(),this.isAAPV()?[3,4]:[4,oe(200)];case 2:return c.sent(),this.iteration=2,[4,n()];case 3:c.sent(),c.label=4;case 4:return[2]}}
9))}))},e.prototype.mergeBaitResults=function(e,t){for(var n,s=a([],e,!0),i=200*(this.iteration-1),o=function(e,t,n){var s,o,a,c,l,u,d,p,h,v;if(void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n=!1),n){for(var f=r({},e),m=0,g=Object.keys(t);g.length>m;m++){var b=g[m],y=null!==(s=e[b])&&void 0!==s?s:{},w=null!==(o=t[b])&&void 0!==o?o:{},E=(null!==(a=y.attempt)&&void 0!==a?a:0)+(null!==(c=w.attempt)&&void 0!==c?c:0),I=(null!==(l=y.durMs)&&void 0!==l?l:0)+(null!==(u=w.durMs)&&void 0!==u?u:0)+i;f[b]=r(r(r({},y),w),E>0&&{attempt:E,durMs:I})}return f}var _=(null!==(d=e.attempt)&&void 0!==d?d:0)+(null!==(p=t.attempt)&&void 0!==p?p:0),S=(null!==(h=e.durMs)&&void 0!==h?h:0)+(null!==(v=t.durMs)&&void 0!==v?v:0)+i;return r(r(r({},e),t),_>0&&{attempt:_,durMs:S})},c=function(e){var t=s.find((function(t){return t.name===e.name&&t.signalKey===e.signalKey})),i="element-aa-detection"===e.name,a=null!==(n=e.meta)&&void 0!==n?n:{};t?(t.meta=o(t.meta,a,i),t.signalValue=e.signalValue):s.push(r(r({},e),{meta:o(void 0,a,i)}))},l=0,u=t;u.length>l;l++)c(u[l]);return s},e.prototype.toSimpleStatus=function(){var e,t,n;return{ab:!!(null===(e=this.abResult)||void 0===e?void 0:e.result),aa:!!(null===(t=this.aaResult)||void 0===t?void 0:t.result),nlf:!!(null===(n=this.nlfResult)||void 0===n?void 0:n.result)}},e.prototype.isAAPV=function(e){var t=e||this.toSimpleStatus();return!(!t.ab||!t.aa)},e.prototype.isMonetizablePV=function(e){return e||this.toSimpleStatus(),!et()&&this.isAAPV(e)},e.prototype.toReportFormat=function(){return this.baitDetectionSignals.map((function(e){var t,n=e.meta;return{name:e.name,type:e.type,signals:(t={},t[e.signalKey]=e.signalValue,t),meta:n}}))},e.prototype.getResults=function(){return i(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,new Promise((function(n){return i(t,void 0,void 0,(function(){var t,s,i,a;return o(this,(function(o){switch(o.label){case 0:return t=Xe("timing.ABDetection"),i=e.getCachedResult(),this.isMonetizablePV(i)&&(i.isCached=!0,n(i),t({cached:!0}),s=!0),[4,this.run()];case 1:return o.sent(),t({cached:!1}),a=r(r({},this.toSimpleStatus()),{isRetry:this.isRetry}),s&&!this.isMonetizablePV()&&(H.__bt_intrnl.stopFlag=!0),this.nonCachedResultPromiseResolve(a),n(a),[2]}}))}))}))]}))}))},e.prototype.getFirstIterationResults=function(){if(this.abResult&&this.aaResult)return r(r({},this.toSimpleStatus()),{isRetry:this.isRetry})},e.prototype.getNonCachedResults=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.nonCachedResultPromise]}))}))},e.statusCacheKey="BT_AA_DETECTION",e}(),wt=new yt;class Et extends Error{constructor(e){super(e),this.name="DecodingError"}}class It extends Error{constructor(e){super(e),this.name="EncodingError"}}class _t extends Error{constructor(e){super(e),this.name="GVLError"}}class St extends Error{constructor(e,t,n=""){super(`invalid value ${t} passed for ${e} ${n}`),this.name="TCModelError"}}class Ct{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]);static BASIS=6;static LCM=24;static encode(e){if(!/^[0-1]+$/.test(e))throw new It("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let n="";for(let t=0;e.length>t;t+=this.BASIS)n+=this.DICT[parseInt(e.substr(t,this.BASIS),2)];return n}static decode(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new Et("Invalidly encoded Base64URL string");let t="";for(let n=0;e.length>n;n++){const r=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-r.length)+r}return t}}class Rt{clone(){const e=new this.constructor;
9return Object.keys(this).forEach((t=>{const n=this.deepClone(this[t]);void 0!==n&&(e[t]=n)})),e}deepClone(e){const t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){const t=[];for(const n of e)t.push(this.deepClone(n));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=this.deepClone(e[n]));return t}}}}class At extends Rt{root=null;getRoot(){return this.root}isEmpty(){return!this.root}add(e){const t={value:e,left:null,right:null};let n;if(this.isEmpty())this.root=t;else for(n=this.root;;)if(n.value>e){if(null===n.left){n.left=t;break}n=n.left}else{if(n.value>=e)break;if(null===n.right){n.right=t;break}n=n.right}}get(){const e=[];let t=this.root;for(;t;)if(t.left){let n=t.left;for(;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e}contains(e){let t=!1,n=this.root;for(;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:n.value>e&&(n=n.left)}return t}min(e=this.root){let t;for(;e;)e.left?e=e.left:(t=e.value,e=null);return t}max(e=this.root){let t;for(;e;)e.right?e=e.right:(t=e.value,e=null);return t}remove(e,t=this.root){let n=null,r="left";for(;t;)if(t.value>e)n=t,t=t.left,r="left";else if(e>t.value)n=t,t=t.right,r="right";else{if(t.left||t.right)if(t.left)if(t.right){const e=this.min(t.right);this.remove(e,t.right),t.value=e}else n?n[r]=t.left:this.root=t.left;else n?n[r]=t.right:this.root=t.right;else n?n[r]=null:this.root=null;t=null}}static build(e){if(e&&0!==e.length){if(1===e.length){const t=new At;return t.add(e[0]),t}{const t=e.length>>1,n=new At;n.add(e[t]);const r=n.getRoot();if(r){if(e.length>t+1){const n=At.build(e.slice(t+1));r.right=n?n.getRoot():null}if(t-1>0){const n=At.build(e.slice(0,t-1));r.left=n?n.getRoot():null}}return n}}return null}}class Lt{static langSet=new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]);has(e){return Lt.langSet.has(e)}forEach(e){Lt.langSet.forEach(e)}get size(){return Lt.langSet.size}}class Ot{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";static supportOOB="supportOOB";static isServiceSpecific="isServiceSpecific";static lastUpdated="lastUpdated";static numCustomPurposes="numCustomPurposes";static policyVersion="policyVersion";static publisherCountryCode="publisherCountryCode";static publisherCustomConsents="publisherCustomConsents";static publisherCustomLegitimateInterests="publisherCustomLegitimateInterests";static publisherLegitimateInterests="publisherLegitimateInterests";static publisherConsents="publisherConsents";static publisherRestrictions="publisherRestrictions";static purposeConsents="purposeConsents";static purposeLegitimateInterests="purposeLegitimateInterests";static purposeOneTreatment="purposeOneTreatment";static specialFeatureOptins="specialFeatureOptins";static useNonStandardStacks="useNonStandardStacks";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(it||(it={}));class Dt extends Rt{static hashSeparator="-";purposeId_;restrictionType;constructor(e,t){super(),void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){const t=e.split(this.hashSeparator),n=new Dt;if(2!==t.length)throw new St("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}get hash(){if(!this.isValid())throw Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${Dt.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===it.NOT_ALLOWED||this.restrictionType===it.REQUIRE_CONSENT||this.restrictionType===it.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class Pt extends Rt{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,n){let r=!0;if(this.gvl?.vendors){const s=this.gvl.vendors[n];if(s)if(e===it.NOT_ALLOWED)r=s.legIntPurposes.includes(t)||s.purposes.includes(t);else if(s.flexiblePurposes.length)switch(e){case it.REQUIRE_CONSENT:r=s.flexiblePurposes.includes(t)&&s.legIntPurposes.includes(t);break;case it.REQUIRE_LI:r=s.flexiblePurposes.includes(t)&&s.purposes.includes(t)}else r=!1;else r=!1}return r}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const n=t.hash;this.has(n)||(this.map.set(n,new At),this.bitLength=0),this.map.get(n).add(e)}}
9restrictPurposeToLegalBasis(e){const t=this.gvl.vendorIds,n=e.hash,r=function(){let e;for(e of t);return e}(),s=[...Array(r).keys()].map((e=>e+1));for(let e=1;r>=e;e++)this.has(n)||(this.map.set(n,At.build(s)),this.bitLength=0),this.map.get(n).add(e)}getVendors(e){let t=[];if(e){const n=e.hash;this.has(n)&&(t=this.map.get(n).get())}else{const e=new Set;this.map.forEach((t=>{t.get().forEach((t=>{e.add(t)}))})),t=Array.from(e)}return t}getRestrictionType(e,t){let n;return this.getRestrictions(e).forEach((e=>{e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n}vendorHasRestriction(e,t){let n=!1;const r=this.getRestrictions(e);for(let e=0;r.length>e&&!n;e++)n=t.isSameAs(r[e]);return n}getMaxVendorId(){let e=0;return this.map.forEach((t=>{e=Math.max(t.max(),e)})),e}getRestrictions(e){const t=[];return this.map.forEach(((n,r)=>{e?n.contains(e)&&t.push(Dt.unHash(r)):t.push(Dt.unHash(r))})),t}getPurposes(){const e=new Set;return this.map.forEach(((t,n)=>{e.add(Dt.unHash(n).purposeId)})),Array.from(e)}remove(e,t){const n=t.hash,r=this.map.get(n);r&&(r.remove(e),r.isEmpty()&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach(((e,t)=>{const n=Dt.unHash(t);e.get().forEach((t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.remove(t)}))})))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(ot||(ot={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(at||(at={}));class Tt{static ID_TO_KEY=[at.CORE,at.VENDORS_DISCLOSED,at.VENDORS_ALLOWED,at.PUBLISHER_TC];static KEY_TO_ID={[at.CORE]:0,[at.VENDORS_DISCLOSED]:1,[at.VENDORS_ALLOWED]:2,[at.PUBLISHER_TC]:3}}class Vt extends Rt{bitLength=0;maxId_=0;set_=new Set;*[Symbol.iterator](){for(let e=1;this.maxId>=e;e++)yield[e,this.has(e)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach((e=>this.unset(e))):"object"==typeof e?this.unset(Object.keys(e).map((e=>+e))):(this.set_.delete(+e),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((e=>{this.maxId_=Math.max(this.maxId,e)}))))}isIntMap(e){let t="object"==typeof e;return t=t&&Object.keys(e).every((t=>{let n=Number.isInteger(parseInt(t,10));return n=n&&this.isValidNumber(e[t].id),n=n&&void 0!==e[t].name,n})),t}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach((e=>this.set(e)));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((e=>+e)));else{if(!this.isValidNumber(e))throw new St("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(let t=1;this.maxId>=t;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}class xt{static[Ot.cmpId]=12;static[Ot.cmpVersion]=12;static[Ot.consentLanguage]=12;static[Ot.consentScreen]=6;static[Ot.created]=36;static[Ot.isServiceSpecific]=1;static[Ot.lastUpdated]=36;static[Ot.policyVersion]=6;static[Ot.publisherCountryCode]=12;static[Ot.publisherLegitimateInterests]=24;static[Ot.publisherConsents]=24;static[Ot.purposeConsents]=24;static[Ot.purposeLegitimateInterests]=24;static[Ot.purposeOneTreatment]=1;static[Ot.specialFeatureOptins]=12;static[Ot.useNonStandardStacks]=1;static[Ot.vendorListVersion]=12;static[Ot.version]=6;static anyBoolean=1;static encodingType=1;static maxId=16;static numCustomPurposes=6;static numEntries=12;static numRestrictions=12;static purposeId=6;static restrictionType=2;static segmentType=3;static singleOrRange=1;static vendorId=16}class Bt{static encode(e){return+e+""}static decode(e){return"1"===e}}class Nt{static encode(e,t){let n;if("string"==typeof e&&(e=parseInt(e,10)),n=e.toString(2),n.length>t||0>e)throw new It(`${e} too large to encode into ${t}`);return t>n.length&&(n="0".repeat(t-n.length)+n),n}static decode(e,t){if(t!==e.length)throw new Et("invalid bit length");return parseInt(e,2)}}class Ut{static encode(e,t){return Nt.encode(Math.round(e.getTime()/100),t)}static decode(e,t){if(t!==e.length)throw new Et("invalid bit length");const n=new Date;return n.setTime(100*Nt.decode(e,t)),n}}class kt{static encode(e,t){let n="";for(let r=1;t>=r;r++)n+=Bt.encode(e.has(r));return n}static decode(e,t){if(e.length!==t)throw new Et("bitfield encoding length mismatch");const n=new Vt;for(let r=1;t>=r;r++)Bt.decode(e[r-1])&&n.set(r);return n.bitLength=e.length,n}}
9class Mt{static encode(e,t){const n=(e=e.toUpperCase()).charCodeAt(0)-65,r=e.charCodeAt(1)-65;if(0>n||n>25||0>r||r>25)throw new It("invalid language code: "+e);if(t%2==1)throw new It(`numBits must be even, ${t} is not valid`);return Nt.encode(n,t/=2)+Nt.encode(r,t)}static decode(e,t){let n;if(t!==e.length||e.length%2)throw new Et("invalid bit length for language");{const t=65,r=e.length/2,s=Nt.decode(e.slice(0,r),r)+t,i=Nt.decode(e.slice(r),r)+t;n=String.fromCharCode(s)+String.fromCharCode(i)}return n}}class Ft{static encode(e){let t=Nt.encode(e.numRestrictions,xt.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((n=>{t+=Nt.encode(n.purposeId,xt.purposeId),t+=Nt.encode(n.restrictionType,xt.restrictionType);const r=e.getVendors(n),s=r.length;let i=0,o=0,a="";for(let t=0;s>t;t++){const n=r[t];0===o&&(i++,o=n);const c=r[s-1],l=e.gvl.vendorIds,u=e=>{for(;++e<=c&&!l.has(e););return e};if(t===s-1||r[t+1]>u(n)){const e=!(n===o);a+=Bt.encode(e),a+=Nt.encode(o,xt.vendorId),e&&(a+=Nt.encode(n,xt.vendorId)),o=0}}t+=Nt.encode(i,xt.numEntries),t+=a})),t}static decode(e){let t=0;const n=new Pt,r=Nt.decode(e.substr(t,xt.numRestrictions),xt.numRestrictions);t+=xt.numRestrictions;for(let s=0;r>s;s++){const r=Nt.decode(e.substr(t,xt.purposeId),xt.purposeId);t+=xt.purposeId;const s=Nt.decode(e.substr(t,xt.restrictionType),xt.restrictionType);t+=xt.restrictionType;const i=new Dt(r,s),o=Nt.decode(e.substr(t,xt.numEntries),xt.numEntries);t+=xt.numEntries;for(let r=0;o>r;r++){const r=Bt.decode(e.substr(t,xt.anyBoolean));t+=xt.anyBoolean;const s=Nt.decode(e.substr(t,xt.vendorId),xt.vendorId);if(t+=xt.vendorId,r){const r=Nt.decode(e.substr(t,xt.vendorId),xt.vendorId);if(t+=xt.vendorId,s>r)throw new Et(`Invalid RangeEntry: endVendorId ${r} is less than ${s}`);for(let e=s;r>=e;e++)n.add(e,i)}else n.add(s,i)}}return n.bitLength=t,n}}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(ct||(ct={}));class jt{static encode(e){const t=[];let n,r=[],s=Nt.encode(e.maxId,xt.maxId),i="";const o=xt.maxId+xt.encodingType,a=o+e.maxId,c=2*xt.vendorId+xt.singleOrRange+xt.numEntries;let l=o+xt.numEntries;return e.forEach(((s,o)=>{i+=Bt.encode(s),n=e.maxId>c&&a>l,n&&s&&(e.has(o+1)?0===r.length&&(r.push(o),l+=xt.singleOrRange,l+=xt.vendorId):(r.push(o),l+=xt.vendorId,t.push(r),r=[]))})),n?(s+=ct.RANGE+"",s+=this.buildRangeEncoding(t)):(s+=ct.FIELD+"",s+=i),s}static decode(e,t){let n,r=0;const s=Nt.decode(e.substr(r,xt.maxId),xt.maxId);r+=xt.maxId;const i=Nt.decode(e.charAt(r),xt.encodingType);if(r+=xt.encodingType,i===ct.RANGE){if(n=new Vt,1===t){if("1"===e.substr(r,1))throw new Et("Unable to decode default consent=1");r++}const s=Nt.decode(e.substr(r,xt.numEntries),xt.numEntries);r+=xt.numEntries;for(let t=0;s>t;t++){const t=Bt.decode(e.charAt(r));r+=xt.singleOrRange;const s=Nt.decode(e.substr(r,xt.vendorId),xt.vendorId);if(r+=xt.vendorId,t){const t=Nt.decode(e.substr(r,xt.vendorId),xt.vendorId);r+=xt.vendorId;for(let e=s;t>=e;e++)n.set(e)}else n.set(s)}}else{const t=e.substr(r,s);r+=s,n=kt.decode(t,s)}return n.bitLength=r,n}static buildRangeEncoding(e){let t=Nt.encode(e.length,xt.numEntries);return e.forEach((e=>{const n=1===e.length;t+=Bt.encode(!n),t+=Nt.encode(e[0],xt.vendorId),n||(t+=Nt.encode(e[1],xt.vendorId))})),t}}function qt(){return{[Ot.version]:Nt,[Ot.created]:Ut,[Ot.lastUpdated]:Ut,[Ot.cmpId]:Nt,[Ot.cmpVersion]:Nt,[Ot.consentScreen]:Nt,[Ot.consentLanguage]:Mt,[Ot.vendorListVersion]:Nt,[Ot.policyVersion]:Nt,[Ot.isServiceSpecific]:Bt,[Ot.useNonStandardStacks]:Bt,[Ot.specialFeatureOptins]:kt,[Ot.purposeConsents]:kt,[Ot.purposeLegitimateInterests]:kt,[Ot.purposeOneTreatment]:Bt,[Ot.publisherCountryCode]:Mt,[Ot.vendorConsents]:jt,[Ot.vendorLegitimateInterests]:jt,[Ot.publisherRestrictions]:Ft,segmentType:Nt,[Ot.vendorsDisclosed]:jt,[Ot.vendorsAllowed]:jt,[Ot.publisherConsents]:kt,[Ot.publisherLegitimateInterests]:kt,[Ot.numCustomPurposes]:Nt,[Ot.publisherCustomConsents]:kt,[Ot.publisherCustomLegitimateInterests]:kt}}class Ht{1={[at.CORE]:[Ot.version,Ot.created,Ot.lastUpdated,Ot.cmpId,Ot.cmpVersion,Ot.consentScreen,Ot.consentLanguage,Ot.vendorListVersion,Ot.purposeConsents,Ot.vendorConsents]};2={[at.CORE]:[Ot.version,Ot.created,Ot.lastUpdated,Ot.cmpId,Ot.cmpVersion,Ot.consentScreen,Ot.consentLanguage,Ot.vendorListVersion,Ot.policyVersion,Ot.isServiceSpecific,Ot.useNonStandardStacks,Ot.specialFeatureOptins,Ot.purposeConsents,Ot.purposeLegitimateInterests,Ot.purposeOneTreatment,Ot.publisherCountryCode,Ot.vendorConsents,Ot.vendorLegitimateInterests,Ot.publisherRestrictions],[at.PUBLISHER_TC]:[Ot.publisherConsents,Ot.publisherLegitimateInterests,Ot.numCustomPurposes,Ot.publisherCustomConsents,Ot.publisherCustomLegitimateInterests],[at.VENDORS_ALLOWED]:[Ot.vendorsAllowed],[at.VENDORS_DISCLOSED]:[Ot.vendorsDisclosed]}}class Gt{1=[at.CORE];2=[at.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(at.PUBLISHER_TC);else{const n=!(!t||!t.isForVendors);n&&!0!==e[Ot.supportOOB]||this[2].push(at.VENDORS_DISCLOSED),n&&(e[Ot.supportOOB]&&e[Ot.vendorsAllowed].size>0&&this[2].push(at.VENDORS_ALLOWED),this[2].push(at.PUBLISHER_TC))}}}class Kt{static fieldSequence=new Ht;static encode(e,t){let n;try{n=this.fieldSequence[e.version+""][t]}
9catch(n){throw new It(`Unable to encode version: ${e.version}, segment: ${t}`)}let r="";t!==at.CORE&&(r=Nt.encode(Tt.KEY_TO_ID[t],xt.segmentType));const s=qt();return n.forEach((n=>{const i=e[n],o=s[n];let a=xt[n];void 0===a&&this.isPublisherCustom(n)&&(a=+e[Ot.numCustomPurposes]);try{r+=o.encode(i,a)}catch(e){throw new It(`Error encoding ${t}->${n}: ${e.message}`)}})),Ct.encode(r)}static decode(e,t,n){const r=Ct.decode(e);let s=0;n===at.CORE&&(t.version=Nt.decode(r.substr(s,xt[Ot.version]),xt[Ot.version])),n!==at.CORE&&(s+=xt.segmentType);const i=this.fieldSequence[t.version+""][n],o=qt();return i.forEach((e=>{const n=o[e];let i=xt[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=+t[Ot.numCustomPurposes]),0!==i){const o=r.substr(s,i);if(t[e]=n.decode(o,n===jt?t.version:i),Number.isInteger(i))s+=i;else{if(!Number.isInteger(t[e].bitLength))throw new Et(e);s+=t[e].bitLength}}})),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class Wt{static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);const n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(((n,r)=>{n.forEach(((s,i)=>{if(s){const s=t.vendors[i];if(!s||s.deletedDate)n.unset(i);else if(0===s[r].length)if("legIntPurposes"===r&&0===s.purposes.length&&0===s.legIntPurposes.length&&s.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===s.flexiblePurposes.length)n.unset(i);else{const t=e.publisherRestrictions.getRestrictions(i);let s=!1;for(let e=0,n=t.length;n>e&&!s;e++)s=t[e].restrictionType===it.REQUIRE_CONSENT&&"purposes"===r||t[e].restrictionType===it.REQUIRE_LI&&"legIntPurposes"===r;s||n.unset(i)}else n.unset(i)}}))})),e.vendorsDisclosed.set(t.vendors),e}];static process(e,t){const n=e.gvl;if(!n)throw new It("Unable to encode TCModel without a GVL");if(!n.isReady)throw new It("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.toUpperCase(),e.version=t?.version>0&&this.processor.length>=t?.version?t.version:this.processor.length;const r=e.version-1;if(!this.processor[r])throw new It("Invalid version: "+e.version);return this.processor[r](e,n)}}class zt{static absCall(e,t,n,r){return new Promise(((s,i)=>{const o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",(()=>{if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&300>o.status){let e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}s(e)}else i(Error(`HTTP Status: ${o.status} response type: ${o.responseType}`))})),o.addEventListener("error",(()=>{i(Error("error"))})),o.addEventListener("abort",(()=>{i(Error("aborted"))})),o.open(null===t?"GET":"POST",e,!0),o.responseType="json",o.timeout=r,o.ontimeout=()=>{i(Error("Timeout "+r+"ms "+e))},o.send(t)}))}static post(e,t,n=!1,r=0){return this.absCall(e,JSON.stringify(t),n,r)}static fetch(e,t=!1,n=0){return this.absCall(e,null,t,n)}}class Jt extends Rt{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new Lt;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new _t("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}static latestFilename="vendor-list.json";static versionedFilename="archives/vendor-list-v[VERSION].json";static languageFilename="purposes-[LANG].json";readyPromise;gvlSpecificationVersion;vendorListVersion;tcfPolicyVersion;lastUpdated;purposes;specialPurposes;features;specialFeatures;isReady_=!1;vendors_;vendorIds;fullVendorList;byPurposeVendorMap;bySpecialPurposeVendorMap;byFeatureVendorMap;bySpecialFeatureVendorMap;stacks;lang_;isLatest=!1;constructor(e){super();let t=Jt.baseUrl;if(this.lang_=Jt.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new _t("must specify GVL.baseUrl before loading GVL json");if(e>0){const n=e;Jt.CACHE.has(n)?(this.populate(Jt.CACHE.get(n)),this.readyPromise=Promise.resolve()):(t+=Jt.versionedFilename.replace("[VERSION]",n+""),this.readyPromise=this.fetchJson(t))}else Jt.CACHE.has(Jt.LATEST_CACHE_KEY)?(this.populate(Jt.CACHE.get(Jt.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+Jt.latestFilename))}}static emptyLanguageCache(e){let t=!1;return void 0===e&&Jt.LANGUAGE_CACHE.size>0?(Jt.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(Jt.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(Jt.CACHE.delete(e),t=!0):void 0===e&&(Jt.CACHE=new Map,t=!0),t}cacheLanguage(){Jt.LANGUAGE_CACHE.has(this.lang_)||Jt.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})}async fetchJson(e){try{this.populate(await zt.fetch(e))}catch(e){throw new _t(e.message)}}getJson(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,vendors:this.fullVendorList}))}async changeLanguage(e){const t=e.toUpperCase();if(!Jt.consentLanguages.has(t))throw new _t("unsupported language "+e);if(t!==this.lang_)if(this.lang_=t,Jt.LANGUAGE_CACHE.has(t)){const e=Jt.LANGUAGE_CACHE.get(t);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const t=Jt.baseUrl+Jt.languageFilename.replace("[LANG]",e);try{await this.fetchJson(t),this.cacheLanguage()}catch(e){throw new _t("unable to load language: "+e.message)}}}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vend
9ors,this.mapVendors(),this.isReady_=!0,this.isLatest&&Jt.CACHE.set(Jt.LATEST_CACHE_KEY,this.getJson()),Jt.CACHE.has(this.vendorListVersion)||Jt.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((e=>{this.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((e=>{this.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((e=>{this.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((e=>+e))),this.vendorIds=new Set(e),this.vendors_=e.reduce(((e,t)=>{const n=this.vendors_[t+""];return n&&void 0===n.deletedDate&&(n.purposes.forEach((e=>{this.byPurposeVendorMap[e+""].consent.add(t)})),n.specialPurposes.forEach((e=>{this.bySpecialPurposeVendorMap[e+""].add(t)})),n.legIntPurposes.forEach((e=>{this.byPurposeVendorMap[e+""].legInt.add(t)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((e=>{this.byPurposeVendorMap[e+""].flexible.add(t)})),n.features.forEach((e=>{this.byFeatureVendorMap[e+""].add(t)})),n.specialFeatures.forEach((e=>{this.bySpecialFeatureVendorMap[e+""].add(t)})),e[t]=n),e}),{})}getFilteredVendors(e,t,n,r){const s=e.charAt(0).toUpperCase()+e.slice(1);let i;const o={};return i="purpose"===e&&n?this["by"+s+"VendorMap"][t+""][n]:this["by"+(r?"Special":"")+s+"VendorMap"][t+""],i.forEach((e=>{o[e+""]=this.vendors[e+""]})),o}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){const e=new Jt(this.getJson());return this.lang_!==Jt.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class $t extends Rt{static consentLanguages=Jt.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardStacks_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=2;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new Vt;purposeConsents=new Vt;purposeLegitimateInterests=new Vt;publisherConsents=new Vt;publisherLegitimateInterests=new Vt;publisherCustomConsents=new Vt;publisherCustomLegitimateInterests=new Vt;customPurposes;vendorConsents=new Vt;vendorLegitimateInterests=new Vt;vendorsDisclosed=new Vt;vendorsAllowed=new Vt;publisherRestrictions=new Pt;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){Jt.isInstanceOf(e)||(e=new Jt(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(!Number.isInteger(e=+e)||1>=e)throw new St("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(!Number.isInteger(e=+e)||-1>=e)throw new St("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(!Number.isInteger(e=+e)||-1>=e)throw new St("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new St("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if(0>(e=+e>>0))throw new St("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),0>this.policyVersion_)throw new St("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardStacks(e){this.useNonStandardStacks_=e}get useNonStandardStacks(){return this.useNonStandardStacks_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){const t=Object.keys(this.customPurposes).sort(((e,t)=>+e-+t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),0>this.numCustomPurposes_)throw new St("numCustomPurposes",e)}updated(){const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}class Qt{static encode(e,t){let n,r="";return e=Wt.process(e,t),n=Array.isArray(t?.segments)?t.segments:new Gt(e,t)[""+e.version],n.forEac
9h(((t,s)=>{let i="";n.length-1>s&&(i="."),r+=Kt.encode(e,t)+i})),r}static decode(e,t){const n=e.split("."),r=n.length;t||(t=new $t);for(let e=0;r>e;e++){const r=n[e],s=Ct.decode(r.charAt(0)).substr(0,xt.segmentType),i=Tt.ID_TO_KEY[""+Nt.decode(s,xt.segmentType)];Kt.decode(r,t,i)}return t}}function Xt(e){var t={};return e.forEach((function(e,n){t[""+n]=e})),t}var Yt=new Promise((function(e){dt=e})),Zt=function(e){e&&(H.__bt_intrnl.tcData=e),dt(e),lt(e)};function en(){return i(this,arguments,void 0,(function(e){var t,n,r,s=this;return void 0===e&&(e=!0),o(this,(function(a){if(ut){if(!e)try{n=sn(),r=n.tcfapiFunc,n.isFunction?r("addEventListener",2,(function(e,t){var n=(e||{}).eventStatus;t&&("tcloaded"===n||"useractioncomplete"===n)||!1===(null==e?void 0:e.gdprApplies)?Zt(e):dt(null)})):dt(null)}catch(e){dt(null)}}else t=Xe("timing.consent"),ut=new Promise((function(n){return i(s,void 0,void 0,(function(){var r,s,i,a;return o(this,(function(o){switch(o.label){case 0:lt=n,o.label=1;case 1:return o.trys.push([1,4,,5]),r=function(){var e,t,n=(null===(e=window.__bt)||void 0===e?void 0:e.tcf)||(null===(t=H.__bt)||void 0===t?void 0:t.tcf);if((null==n?void 0:n.hasOwnProperty("GDPRApplies"))&&(null==n?void 0:n.hasOwnProperty("TCFString")))try{var r=Qt.decode(n.TCFString),s=r.vendorConsents;return{isCustomTCF:!0,gdprApplies:!!n.GDPRApplies,tcString:n.TCFString,purpose:{consents:Xt(r.purposeConsents)},vendor:{consents:Xt(s)}}}catch(e){return console.warn("Failed to decode TCF string:",e),null}return null}(),r?(t({customTCF:!0}),[2,Zt(r)]):e?[4,tn()]:[3,3];case 2:o.sent(),o.label=3;case 3:return s=sn(),i=s.tcfapiFunc,s.isFunction?i("addEventListener",2,(function(n,r){var s=(n||{}).eventStatus;return!r||"tcloaded"!==s&&"useractioncomplete"!==s?!1===(null==n?void 0:n.gdprApplies)?(t({cached:!1}),Zt(n)):void(e||dt(null)):(t({cached:"tcloaded"===s}),Zt(n))})):(t({noCMP:!0}),Zt(null)),[3,5];case 4:return a=o.sent(),H.__bt_intrnl.tcData={error:a},t({error:!0}),Zt(null),[3,5];case 5:return[2]}}
9))}))}));return[2,e?ut:Yt]}))}))}function tn(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return[2,new Promise((function(e){if(sn().isFunction||rn())e();else var t=setInterval((function(){(sn().isFunction||rn())&&(clearInterval(t),e())}),50)}))]}))}))}var nn=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"];function rn(){var e=H.localStorage.getItem("btUserCountry");return e&&!nn.includes(e)}function sn(){var e=window.__tcfapi||H.__tcfapi;return{tcfapiFunc:e,isFunction:"function"==typeof e}}var on=815,an=[1,2,3,4,7,9,10];function cn(){return i(this,arguments,void 0,(function(e){var t,n,r,s,i,a,c,l,u;return void 0===e&&(e=!0),o(this,(function(o){switch(o.label){case 0:return[4,en(e)];case 1:if(!(t=o.sent())||!1===t.gdprApplies)return[2,null];try{return n=null!==(c=null===(a=t.purpose)||void 0===a?void 0:a.consents)&&void 0!==c?c:{},r=null!==(u=null===(l=t.vendor)||void 0===l?void 0:l.consents)&&void 0!==u?u:{},s=an.every((function(e){return!!n[e]})),i=!0===r[on],[2,s&&i]}catch(e){return[2,null]}return[2]}}
9))}))}var ln,un={SAFARI:"safari",CHROME:"chrome",FIREFOX:"firefox",IE:"ie"};function dn(e){var t,n,r=e.name,s=e.message;(ln=null!=ln?ln:{}).trustedIframe=null!==(t=ln.trustedIframe)&&void 0!==t?t:{},ln.trustedIframe.errors=null!==(n=ln.trustedIframe.errors)&&void 0!==n?n:[],ln.trustedIframe.errors.push({name:r,message:s})}function pn(e,t){var n,r;(ln=null!=ln?ln:{}).trustedIframe=null!==(n=ln.trustedIframe)&&void 0!==n?n:{},ln.trustedIframe.meta=null!==(r=ln.trustedIframe.meta)&&void 0!==r?r:{},ln.trustedIframe.meta.loadStatus=e,void 0!==t&&(ln.trustedIframe.meta.loadTime=t)}function hn(){return ln}var vn,fn,mn,gn,bn,yn,wn=function(){var e,t=(null===(e=hn())||void 0===e?void 0:e.trustedIframe)||{},n=t.htmlSignalAttributes,r=t.errors;if(void 0===n)return!1;if((null==r?void 0:r.length)||!n.length)return!0;var s=t.apiResponses||{};return!!s.getStatus&&!!s.getExperimentFlags},En=function(e){var t,n,r;return!!(null===(r=null===(n=null===(t=hn())||void 0===t?void 0:t.trustedIframe)||void 0===n?void 0:n.htmlSignalAttributes)||void 0===r?void 0:r.includes("data-".concat(e)))},In=function(e){var t,n,r,s,i,o;return!!(null===(o=null===(i=null===(s=null===(r=null===(n=null===(t=hn())||void 0===t?void 0:t.trustedIframe)||void 0===n?void 0:n.apiResponses)||void 0===r?void 0:r.getStatus)||void 0===s?void 0:s.find((function(t){return t.name===e})))||void 0===i?void 0:i.result)||void 0===o?void 0:o.hasPremium)},_n=function(e){var t,n,r,s,i;return null===(i=null===(s=null===(r=null===(n=null===(t=hn())||void 0===t?void 0:t.trustedIframe)||void 0===n?void 0:n.apiResponses)||void 0===r?void 0:r.getExperimentFlags)||void 0===s?void 0:s.find((function(t){return t.name===e})))||void 0===i?void 0:i.result};function Sn(e){if("https://btloader.com"===e.origin&&e.data&&"object"==typeof e.data&&"string"==typeof e.data.type){var t=e,n=t.data;switch(n.type){case"loaded":null==fn||fn();break;case"error":var r=Error(n.message);r.name=n.name,null==mn||mn(r);break;case"get_status_api_response":null==gn||gn(n.response);break;case"get_experiment_flags_api_response":null==bn||bn(n.response);break;case"html_signal_attributes":null==yn||yn(n.response.attributes);break;default:return}null==vn||vn(t)}}var Cn=null,Rn=0,An=function(){null==Cn||Cn.remove(),Cn=null},Ln=function(e){function t(t){var n=e.call(this,t)||this;return n.name="trusted_iframe_load_timeout",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error),On=function(e){H.__bt_intrnl.experimentFlags=e},Dn=new Be,Pn="__exp_cache_start",Tn="2026-09-24";var Vn=function(e){return i(void 0,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=Date.now(),r.label=1;case 1:return r.trys.push([1,3,,4]),J("trustedIframeInjected",e,Se.traceID)?[2]:($("trustedIframeInjected",e,Se.traceID),pn("LOADING"),[4,i(void 0,void 0,void 0,(function(){var e,t,n;return o(this,(function(r){switch(r.label){case 0:e=null,Ke("timing.trustedIframeStart",{timestamp:Date.now(),stage:We.PRE_AUCTION}),t=Xe("timing.trustedIframeEnd"),r.label=1;case 1:if(Rn>=2)return[3,7];r.label=2;case 2:return r.trys.push([2,4,5,6]),[4,new Promise((function(e,t){var n=!1;Cn=re({src:"https://btloader.com/trustedIframe.html?o=".concat(ue,"&upapi=true"),referrerPolicy:"origin"}),fn=function(){n=!0,e()},setTimeout((function(){n||(An(),t(new Ln("Trusted iframe load timed out")))}),3e4)}))];case 3:return r.sent(),t({status:"SUCCESS",details:{attempt:Rn}}),[2];case 4:return n=r.sent(),e=n,[3,6];case 5:return Rn+=1,[7];case 6:return[3,1];case 7:if(e)throw t({status:e instanceof Ln?"TIMED_OUT":"ERROR",details:{attempt:Rn}}),e;return[2]}}))}))]);case 2:return r.sent(),pn("LOADED",Date.now()-t),[3,4];case 3:return pn((n=r.sent())instanceof Ln?"TIMED_OUT":"ERROR",Date.now()-t),dn(n),[3,4];case 4:return[2]}}
9))}))},xn=function(e){var n;On(function(){var e=H.localStorage.getItem(t.BT_EXP_FLAGS);if(e)try{var n=JSON.parse(e),r=n[Pn],i=s(n,[Pn+""]);return r&&r===Tn?i:void 0}catch(t){Dn.error("Failed to parse experiment flags from localStorage",{sendPercentage:1,event:"getExperimentFlags.error"},{experimentFlagsString:e})}}()),Bn(),n=function(){if(function(e){H.__bt_intrnl.extensionsData=e}(hn()),wn()){var n=function(){if(wn()){var e=En("adblock"),t=In("adblock"),n=_n("adblock"),r=En("adblockplus"),s=In("adblockplus"),i=_n("adblockplus");return e&&!t&&n?n:r&&!s&&i?i:void 0}}();!function(e){var n;if(e&&Tn){var s=r(r({},e),((n={})[Pn]=Tn,n));H.localStorage.setItem(t.BT_EXP_FLAGS,JSON.stringify(s))}else H.localStorage.removeItem(t.BT_EXP_FLAGS)}(n),On(n),J("extensionDataReported",e,Se.traceID)||($("extensionDataReported",e,Se.traceID),Oe(hn(),e)),An(),window.removeEventListener("message",Sn)}},vn=n,window.addEventListener("message",Sn)},Bn=function(){mn=function(e){return dn(e)},gn=function(e){return function(e){var t,n;(ln=null!=ln?ln:{}).trustedIframe=null!==(t=ln.trustedIframe)&&void 0!==t?t:{},ln.trustedIframe.apiResponses=null!==(n=ln.trustedIframe.apiResponses)&&void 0!==n?n:{},ln.trustedIframe.apiResponses.getStatus=e}(e)},bn=function(e){return function(e){var t,n;(ln=null!=ln?ln:{}).trustedIframe=null!==(t=ln.trustedIframe)&&void 0!==t?t:{},ln.trustedIframe.apiResponses=null!==(n=ln.trustedIframe.apiResponses)&&void 0!==n?n:{},ln.trustedIframe.apiResponses.getExperimentFlags=e}(e)},yn=function(e){return function(e){var t;(ln=null!=ln?ln:{}).trustedIframe=null!==(t=ln.trustedIframe)&&void 0!==t?t:{},ln.trustedIframe.htmlSignalAttributes=e}(e)}},Nn=144e5,Un="BT_tpc",kn="BT_device";H.__bt_intrnl=H.__bt_intrnl||{traceID:Se.traceID,stopFlag:!1,timingLoggerBridge:ze,aaDetectionResults:null,pageURL:""+K(),tcData:void 0,actions:{},experimentFlags:void 0},window.__bt_intrnl=H.__bt_intrnl;var Mn=new Be;function Fn(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,Re()];case 1:return function(e){i(this,void 0,void 0,(function(){var t,n,r;return o(this,(function(s){switch(s.label){case 0:return(null===(t=window.__bt)||void 0===t?void 0:t.disableRecovery)?[2]:(function(e){var t;void 0!==e&&((ln=null!=ln?ln:{}).signals=null!==(t=ln.signals)&&void 0!==t?t:{},ln.signals.xAcceptableAdsHeader=e)}(null===(r=null===(n=H.__bt_edge_data)||void 0===n?void 0:n.extensionsSignals)||void 0===r?void 0:r.xAcceptableAdsHeader),xn(e),[4,Vn(e)]);case 1:return s.sent(),[2]}}))}))}(((null==(e=t.sent())?void 0:e.siteInfo)||{}).websiteID),[2,e]}}))}))}function jn(e,t){return i(this,void 0,void 0,(function(){var n,r,s,a,c,l,u,d,p,h,v,f,m,g;return o(this,(function(b){return n=e.bundleID,s=void 0!==(r=e.isSPAViewChange)&&r,c=void 0!==(a=e.isPageUnload)&&a,u=void 0!==(l=e.shouldLoadRecoveryScript)&&l,h=(d=e.websiteConfig||{}).checksum,f=(v=(p=d.siteInfo)||{}).widget,(m=v.websiteID)?(J("pvSent",m,Se.traceID)||($("pvSent",m,Se.traceID),Promise.all([cn(!1),new Promise((function(e){switch(t=window.navigator.userAgent,/chrome|chromium/i.test(t)?un.CHROME:/firefox|iceweasel|fxios/i.test(t)?un.FIREFOX:/msie|trident/i.test(t)?un.IE:/^((?!chrome|android).)*safari/i.test(t)?un.SAFARI:window.chrome?un.CHROME:void 0){case un.SAFARI:void 0!==window.navigator.maxTouchPoints?function(){var t=Math.random()+"";try{window.indexedDB.open(t,1).onupgradeneeded=function(n){var r,s,i=null===(r=n.target)||void 0===r?void 0:r.result;try{i.createObjectStore("test",{autoIncrement:!0}).put(new Blob),e(!1)}catch(t){var o=t;if(t instanceof Error&&(o=null!==(s=t.message)&&void 0!==s?s:t),"string"!=typeof o)return e(!1);e(/BlobURLs are not yet supported/.test(o))}finally{i.close(),window.indexedDB.deleteDatabase(t)}}}catch(t){return e(!1)}}():function(){var t=window.openDatabase,n=window.localStorage;try{t(null,null,null,null)}catch(t){return e(!0)}try{n.setItem("test","1"),n.removeItem("test")}catch(t){return e(!0)}e(!1)}();break;case un.CHROME:void 0!==window.Promise&&void 0!==window.Promise.allSettled?function(){try{window.navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){var r=Math.round(n/1048576),s=2*Math.round(function(){var e,t;return(null===(t=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===t?void 0:t.jsHeapSizeLimit)||1073741824}()/1048576);e(s>r)}),(function(){return e(null)}))}catch(t){return e(null)}}():function(){try{(0,window.webkitRequestFileSystem)(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}catch(t){return e(null)}}();break;case un.FIREFOX:e(void 0===window.navigator.serviceWorker);break;case un.IE:e(void 0===window.indexedDB);break;default:e(null)}var t}))]).then((function(e){var r=e[0],a=e[1];(function(e){i(this,void 0,void 0,(function(){var t,n,r,s;return o(this,(function(i){return t=(e.config||{}).isPageUnload,(s={})[Ae]=!!((e.detectionResults||{}).adBlockDetection||{}).nlf,n=s,r=function(e){var t=e.consent,n=e.privateMode,r=e.config||{},s=r.checksum,i=r.bundleID,o=r.isSPAViewChange,a=r.isPageUnload,c=e.detectionResults||{},l=c.adBlockDetection,u=c.baitResults,d={w:r.websiteID,o:ue,widget:r.widget,vr:{w:H.innerWidth,h:H.innerHeight},pageURL:K().href,checksum:s,spa_view_change:!!o,un:!!a};return l&&(d.r=l.ab,l.ab&&(d.rt=0,d.aa=l.aa,d.retry=l.isRetry),(null==u?void 0:u.length)&&(d.br=u)),i&&(d.bv=parseInt(i)),null!==t&&(d.c=t),null!==n&&(d.pm=n),"globalPrivacyControl"in navigator&&(d.gpc=navigator.globalPrivacyControl),d}(e),t&&navigator.sendBeacon?[2,navigator.sendBeacon(Le("pv",n),te(r))]:[2,fetch(Le("pv",n),{method:"POST",body:te(r),keepalive:t})]}))}))})({config:{websiteID:m,widget:f,checksum:h,bundleID:n,isSPAViewChange:s,isPageUnload:c},detectionResults:{adBlockDetection:t,baitResults:wt.toReportFormat()},consent:r,privateMode:a}),u&&en().then((function(e){return function(e){return i(this,void 0,void 0,(function(){var t,n,r,s,i,a,c,l,u,d;return o(this,(function(o){var p;return t=e.siteInfo,n=e.nlf,s={}
9,!(r=e.tcData)||r.error?(s.gdprApplies=null,s.error=(p=(null==r?void 0:r.error)||"").length>1024?p.substring(0,1024):p):(i=[10,13,25,28,32,52,69,76,91,755,815],s.cmpVersion=r.cmpVersion,s.gdprApplies=r.gdprApplies,s.tcfPolicyVersion=r.tcfPolicyVersion,s.tcString=r.tcString,r.gdprApplies&&(a={},Object.entries((null===(d=r.vendor)||void 0===d?void 0:d.consents)||{}).forEach((function(e){var t=e[0],n=e[1];i.includes(+t)&&(a[t]=n)})),Object.keys(a).length&&(s.vendor={consents:a}),s.purpose=r.purpose)),(u={})[Ae]=!!n,c=u,l={tcData:s,pageURL:K().href,organizationID:parseInt(ue),websiteID:parseInt(t.websiteID),clientVersion:he},[2,fetch(Le("/ce",c),{method:"POST",body:te(l)})]}))}))}({siteInfo:p,nlf:null==t?void 0:t.nlf,tcData:e})}))}))),c&&!J("extensionDataReported",m,Se.traceID)&&(g=hn())&&($("extensionDataReported",m,Se.traceID),Oe(g,m,c,s)),[2]):[2]}))}))}!function(){i(this,void 0,void 0,(function(){var e,n,s,a,u,d,p,h,v,f;return o(this,(function(m){switch(m.label){case 0:return window.__bt_already_invoked?[2]:(window.__bt_already_invoked=!0,function(){var e;Ke("timing.navigationStart",r(r({},{timestamp:qe}),{stage:We.PRE_AUCTION}));var t={eventDurationMS:Math.round(null!==(e=null==je?void 0:je.duration)&&void 0!==e?e:0),timestamp:Fe,cacheLevel:ie("".concat(de,"/tag"))};Ke("timing.tagScriptLoaded",r(r({},t),{stage:We.PRE_AUCTION})),Me.beforeUnload(Qe)}(),function(){return i(this,void 0,void 0,(function(){var e,t,n,r,s,i,a,c,l,u;return o(this,(function(o){switch(o.label){case 0:if(Ke("timing.deviceDataFetchStart",{timestamp:Date.now(),stage:We.PRE_AUCTION}),e=Xe("timing.deviceDataFetchEnd"),null!==(t=H.localStorage.getItem(kn)))try{if(n=JSON.parse(t),r=n.value,s=n.expiresAt,Date.now()<s)return e({cached:!0}),[2,r];H.localStorage.removeItem(kn)}catch(e){H.localStorage.removeItem(kn)}return[4,nt()];case 1:i=o.sent(),(a=new URLSearchParams).set("orgid",ue),i.model&&a.set("model",i.model),i.platformVersion&&a.set("platformVersion",i.platformVersion),i.fullVersionList&&a.set("fullVersionList",JSON.stringify(i.fullVersionList)),a.set("upapi","true"),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch("https://cdn.api.btloader.com/device?".concat(""+a))];case 3:return(c=o.sent()).ok?[4,c.json()]:(e({success:!1}),[2,null]);case 4:return l=o.sent(),e({success:!0,cached:!1}),H.localStorage.setItem(kn,JSON.stringify({value:l.device,expiresAt:Date.now()+Nn})),[2,null!==(u=l.device)&&void 0!==u?u:null];case 5:return o.sent(),e({success:!1}),[2,null];case 6:return[2]}}
9))}))}().then((function(e){if(e){var t=H.__bt_intrnl,n=t.device;t.device=r(r({},e),n),(e.ext||(null==n?void 0:n.ext))&&(t.device.ext=r(r({},e.ext),null==n?void 0:n.ext))}})),function(){var e=(Ke("timing.tpcCheckStart",{timestamp:Date.now(),stage:We.PRE_AUCTION}),Xe("timing.tpcCheckEnd")),t=H.localStorage.getItem(Un);if(null!==t)try{var n=JSON.parse(t),r=n.value,s=n.expiresAt;if(Date.now()<s)return e({cached:!0}),Promise.resolve({tpc:r});H.localStorage.removeItem(Un)}catch(e){H.localStorage.removeItem(Un)}return new Promise((function(t){var n=re({src:"https://cdn.btloader.com/cchecker.html?upapi=true"}),r=function(){window.removeEventListener("message",i),n.remove()},s=setTimeout((function(){r(),e({cached:!1}),t({tpc:null})}),5e3),i=function(n){if(n.data&&"object"==typeof n.data&&"bt_cookie_check"===n.data.type){clearTimeout(s),r(),e({cached:!1});var i=n.data.available?1:0;H.localStorage.setItem(Un,JSON.stringify({value:i,expiresAt:Date.now()+Nn})),t({tpc:i})}};window.addEventListener("message",i)}))}().then((function(e){if(null!==e.tpc){var t=H.__bt_intrnl;t.device=t.device||{},t.device.ext=t.device.ext||{},t.device.ext.fod=t.device.ext.fod||{},t.device.ext.fod.tpc=e.tpc}})),window.__bt.disableRecovery||H.addEventListener("beforeunload",(function(){jn({websiteConfig:e,bundleID:a,isSPAViewChange:!1,isPageUnload:!0},n||wt.getFirstIterationResults())})),[4,Promise.allSettled([Fn(),wt.getResults()])]);case 1:return u=m.sent(),d=u[0],"fulfilled"===(p=u[1]).status&&Mn.info("AdBlock detection results:",null,n=p.value),"fulfilled"===d.status&&(e=d.value),s=null==(h=(e||{}).siteInfo)?void 0:h.websiteID,se({eventName:"BTAADetection",payload:{detail:{ab:n.ab,acceptable:n.aa}}}),s?window.__bt.disableRecovery?(Mn.warning("Stop recovering because of __bt.disableRecovery flag."),[2]):(function(e){var t,n;if("ZZ"===we.countryCode){if("function"==typeof window.__bt.customDetectCountry){var r=null===(n=null===(t=window.__bt.customDetectCountry())||void 0===t?void 0:t.toUpperCase)||void 0===n?void 0:n.call(t);if(2===r.length)return void rt(r,Ze.includes(r))}var s=Xe("timing.countryDetection"),i=H.localStorage.getItem("btUserCountryExpiry"),o="https://".concat(pe,"/country?o=").concat(e);i&&parseInt(i)>Date.now()?s({cached:!0,cacheLevel:ie(o,!0)}):fetch(o).then((function(e){return e.json()})).then((function(e){rt(e.country,e.isRestricted),s({cached:!1,cacheLevel:ie(o,!0)})})).catch((function(){s({cached:!1,error:!0,cacheLevel:ie(o,!0)})}))}else rt(we.countryCode,we.isRestricted)}(ue),v=function(e,t){var n=e||{},r=new pt(n.rlSettings,ve.script,ne,n.siteInfo.widget,t);return r.load(),r.preventRecovery()}(e,n.aa),(f=!v&&wt.isMonetizablePV(n)&&function(e,t){!function(e){(H.location.href.includes("bt_debug=true")||"true"===H.localStorage.getItem("bt_debug"))&&(e.contentEnabled="true"===H.localStorage.getItem("forceContent")||e.contentEnabled,e.mobileContentEnabled="true"===H.localStorage.getItem("forceMobileContent")||e.mobileContentEnabled)}(e);var n=e||{};return n.contentEnabled&&(!t||n.mobileContentEnabled)}(h,function(){if("function"==typeof window.bt_isMobileCustom)return window.bt_isMobileCustom();if(et())return!0;var e=navigator.userAgent;return!!/Android/i.test(e)||!!/Mobile|Phone|IEMobile|Opera Mini/i.test(e)}()))?(a=function(e){var t=e.siteInfo,n=e.bundleData,r="latest",s="BT_BUNDLE_VERSION_".concat(t.websiteID),i="BT_DIGEST_VERSION_".concat(t.websiteID);!Z[t.websiteID]&&(null==n?void 0:n.bundles)&&(Z[t.websiteID]=n);var o=function(e,t,n){if(void 0===n&&(n="latest"),!e)return null;if(!t||"object"!=typeof t||0>=Object.keys(t).length)return null;var r={},s=t[e],i=t[0],o=t.global;if((null==s?void 0:s.bundles)&&(r=l(s.bundles)),(null==i?void 0:i.bundles)&&(r=l(i.bundles,r)),(null==o?void 0:o.bundles)&&(r=l(o.bundles,r)),0>=Object.keys(r).length)return null;var a=c(r);return 1>a&&(r[n]={min:Math.trunc(100*a),max:100}),r}(t.websiteID,Z,r);if(window.__bt_tag_d&&(window.__bt_tag_d.probabilities=o),o&&Object.keys(o).length>0){var a=Z[t.websiteID]||Z[0]||Z.global;if(a){var u=a.digest;H.localStorage.getItem(i)!==u+""&&(H.localStorage.setItem(i,u+""),H.localStorage.removeItem(s));var d=H.localStorage.getItem(s);return d||(d=function(e,t){if("number"!=typeof e||0>e||e>100)return null;if(!t||"object"!=typeof t)return null;for(var n=Object.keys(t),r=0;n.length>r;r++){var s=n[r],i=t[s];if(e>=i.min&&i.max>e)return s}return null}(Q(100),o)||r,H.localStorage.setItem(s,d)),d===r?void 0:d}}}(e),function(e){i(this,void 0,void 0,(function(){var t,n,r,s,i,a,c;return o(this,(function(o){switch(o.label){case 0:return t=e.websiteID,n=e.bundleID,[4,cn()];case 1:return r=o.sent(),Mn.info("Consent results:",null,r),r||null===r?(s=function(e,t,n,r){var s=new URL("https://btloader.com");return s.pathname="recovery",s.searchParams.append("w",t),r&&s.searchParams.append("b",r),n&&n.split("&").forEach((function(e){var t=e.split("=");2==t.length&&t[0]&&t[1]&&s.searchParams.append(t[0],t[1])})),s.searchParams.append("upapi","true"),""+s}
9(0,t,"",n),Mn.info("Loading Recovery script"),ne(s)):(Mn.warning("Consentless user - do not load Recovery script"),(null===(c=null===(a=null==be?void 0:be.settings)||void 0===a?void 0:a.monetizeConsentlessUsers)||void 0===c?void 0:c._enabled)&&window===window.top&&(i=function(e){var t=Y()||H.location.href,n=new URL(t).origin;return"https://brwsrfrm.com/i/script/".concat(e,"?ref=").concat(n)}(t),Mn.info("Loading consentless Recovery script"),ne(i,{crossOrigin:null}))),[2]}}))}))}({websiteID:s,bundleID:a})):(se({eventName:"AcceptableAdsInit",payload:{detail:!1}}),se({eventName:"uponitInit",payload:{detail:!1}}),v&&Mn.warning("Recovery is not allowed by RLink settings.")),function(e,n){i(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return n.isCached?[4,wt.getNonCachedResults()]:[3,2];case 1:n=r.sent(),r.label=2;case 2:return jn(e,n),function(){if(!ee){ee=!0;try{var e=function(){window.dispatchEvent(new Event("locationChange"))},t=history.pushState;history.pushState=function(){for(var n=[],r=0;arguments.length>r;r++)n[r]=arguments[r];t.apply(this,n),e()};var n=history.replaceState;history.replaceState=function(){for(var t=[],r=0;arguments.length>r;r++)t[r]=arguments[r];n.apply(this,t),e()},window.addEventListener("popstate",e)}catch(e){}}}(),H.addEventListener("locationChange",(function(){var r,s=K();s.search="";var i=(""+s).split("#")[0];(null===(r=H.__bt_intrnl.pageURL)||void 0===r?void 0:r.split("#")[0])!==i&&(H.__bt_intrnl.pageURL=""+s,e.isPageUnload=!0,jn(e,n),Ie=ge(),H.__bt_intrnl.traceID=Ie,z(t.BT_TRACE_ID,Ie),Se={traceID:Ie,sessionID:_e},e.isSPAViewChange=!0,e.isPageUnload=!1,jn(e,n))})),[2]}}))}))}({websiteConfig:e,bundleID:a,shouldLoadRecoveryScript:f},n),[2]):(function(e){i(this,void 0,void 0,(function(){var t;return o(this,(function(n){return e&&X(1)&&(t={domain:e,orgID:parseInt(ue)},fetch(Le("/events/unknown_domains"),{method:"POST",body:te(t)})),[2]}))}))}(null==e?void 0:e.hostname),Mn.error("Website ID for %o not found.",null,K().hostname),[2])}}))}))}()}(); 10}catch(e){console.log(e);} 11/*https://cdn.p-n.io/pushly-sdk.min.js?domain_key=yezv5SnMFbRJsZfzJHoTqLQ3auYdIxYPXiwX*/ 12;try{var e=function(e){"use strict";var t,s,i,r,n,o,a,l,u,c,d=Object.defineProperty,h=Object.defineProperties,_=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,f=Reflect.get,E=Math.pow,b=(e,t,s)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,y=(e,t)=>{for(var s in t||(t={}))m.call(t,s)&&b(e,s,t[s]);if(p)for(var s of p(t))S.call(t,s)&&b(e,s,t[s]);return e},v=(e,t)=>h(e,_(t)),I=(e,t)=>{var s={};for(var i in e)m.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&p)for(var i of p(e))t.indexOf(i)<0&&S.call(e,i)&&(s[i]=e[i]);return s},P=(e,t,s)=>(b(e,"symbol"!=typeof t?t+"":t,s),s),w=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},D=(e,t,s)=>(w(e,t,"read from private field"),s?s.call(e):t.get(e)),O=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},T=(e,t,s,i)=>(w(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),k=(e,t,s)=>new Promise(((i,r)=>{var n=e=>{try{a(s.next(e))}catch(t){r(t)}},o=e=>{try{a(s.throw(e))}catch(t){r(t)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(n,o);a((s=s.apply(e,t)).next())})),C=(e=>(e.VERBOSE="verbose",e.DEBUG="debug",e.INFO="info",e.WARN="warn",e.ERROR="error",e.CRITICAL="critical",e.NONE="none",e))(C||{}),N="production",R="@pushly/push-sdk-web",A="3.6.1",M="@pushly/push-sdk-core",L="3.2.0",U="cdn.p-n.io",x="k.p-n.io",$="PushlySDK";let W=class{static get _env(){return N}static get _libraryName(){return R}static get _libraryVersion(){return A}static get _coreName(){return M}static get _coreVersion(){return L}static get _cdnDomain(){return U}static get _kApiDomain(){return x}static get _publicNamespace(){return $}static get _kApiEventsUrl(){return`https://${this._kApiDomain}/event-stream`}static get _kApiAllowUrl(){return`https://${this._kApiDomain}/allow`}static get _cdnDomainSettingsUrl(){return`https://${this._cdnDomain}/domain-settings`}static get _isDev(){return"development"===this._env}static get _isProd(){return"production"===this._env}static get _sdkHasEventsOnlyDomainsFlag(){return"FEAT_SDK_EVENT_ONLY_DOMAINS"}static get _sdkHasForceDebugLogsEnabledFlag(){return"FEAT_WEB_FORCE_DEBUG_LOGS"}static get _sdkDebugEventsEnabledFlag(){return"SDK_DEBUG_EVENTS"}static get _pnCookieStorageKey(){return"_pn"}static get _pnCookieStorageKeyRegex(){return new RegExp(`^${this._pnCookieStorageKey}(_[0-9A-Za-z]{8})?=`)}static get _pnCookieStorageLegacyKeyPrefix(){return"_pn"}static get _pnCookieStorageLegacyKeyPrefixRegex(){return new RegExp(`^((${this._pnCookieStorageLegacyKeyPrefix}.+)|(pushly.+))`)}static get _pnStorageTypeLuaKey(){return"lua"}static get _pnStorageUpdatedAtKey(){return"ts"}static get _pnSessionStorageKey(){return"_ps"}static get _pnSettingsSessionStorageKey(){return"_pnset"}static get _pnCookieStorageMaxDays(){return 180}static get _pnDomainSettingsCacheTtlSeconds(){return 300}static get _pnDomainSettingsStaleWhileRevalidateSeconds(){return 86400}static get _pnPreviewUrlSearchParameter(){return"pn_preview"}static get _pnPreviewCookieName(){return"_pn_preview"}static get _eventQueueMaxSize(){return 100}static get _eventQueueFlushIntervalMS(){return 1e3}static get _eventMaxSendAttempts(){return 4}static get _eventQueueFlushTriggerSize(){return 10}static get _tevChannel(){return"WEB"}static get _tevVapidProvider(){return"VAPID"}static get _tevFieldErrorType(){return"error_type"}static get _tevFieldErrorMessage(){return"error_message"}static get _tevFieldErrorBacktrace(){return"backtrace"}static get _tevFieldErrorContext(){return"context"}};function K(e){try{const t=parseInt(String(e));return isNaN(t)?e:t}catch(t){return e}}const F={V8:{signature:/^\s*at\s+\S+\s+\(?\S+\)?$/,split:/:(?!\/)|\s+/},SpiderMonkeyOrJSCore:{signature:/^[^@]*@\S*$/,split:/:(?!\/)|@+/}};function B(e,t){if(!e)return[];let s=e.replace(/(.*?\()(?:eval\s)?(at(?!.+at).*?)\),\s?(.*)/gm,"$1$3\n$2").split(/[\n\r]\s*/).map((e=>[e,Object.keys(F).find((t=>F[t].signature.test(e)))])).filter((([,e])=>e)).map((([e,t])=>e.split(F[t].split).filter((e=>"at"!==e)).map((e=>e.replace(/^\(|\)$/g,""))))).map((([e,t,s,i])=>({function:e||"unknown",file:t||"unknown",line:void 0===s?0:K(s),column:void 0===i?0:K(i)})));return null==t||t.forEach((e=>{s=e(s)})),s}function V(e){return{message:e}}function G(e){return{message:e,isExitException:!0}}var H=(e=>(e.EXCEPTION="exception",e.DUPLICATE_SDK_DETECTED="duplicate_sdk_detected",e.SDK_ALREADY_LOADED="sdk_already_loaded",e.DOMAIN_CONFIGURATION_LOAD_FAILED="domain_config_load_failed",e.HOST_NOT_ALLOWED="host_not_allowed",e.PROMPTS_LOAD_FAILED="prompts_load_failed",e.WEB_PUSH_
12NOT_SUPPORTED="web_push_not_supported",e.WEB_PUSH_CONFIGURATION_MISSING="web_push_config_missing",e.WEB_PUSH_SUBSCRIPTION_FAILED="web_push_subscription_failed",e.PUSH_WORKER_NOT_FOUND_EXCEPTION="push_worker_not_found_exception",e.PUSH_WORKER_REGISTRATION_EXCEPTION="push_worker_registration_exception",e.PUSH_WORKER_SUBSCRIPTION_EXCEPTION="push_worker_subscription_exception",e.STORAGE_NOT_AVAILABLE="storage_not_available",e.STORAGE_FAILED_TO_OPEN="storage_failed_to_open",e.STORAGE_NS_REQUIRED="storage_ns_required",e.STORAGE_KEY_EMPTY="storage_key_empty",e.IDB_INVALID_STORE_NAME="idb_invalid_store_name",e.IDB_BLOCKED="idb_blocked",e.REQUEST_FAILED="request_failed",e.REQUEST_URL_INVALID="request_url_invalid",e.REQUEST_NO_RESULT="request_no_result",e.REQUEST_DESERIALIZATION_FAILED="request_deserialization_failed",e.UNKNOWN_CONTEXT_KEY="unknown_context_key",e.UNKNOWN_CONFIG_KEYS="unknown_config_keys",e.UNKNOWN_ASYNC_COMMAND="unknown_async_command",e.UNKNOWN_PROMPT_MESSAGE="unknown_prompt_message",e.WORKER_MISSING_PUSH_DATA="worker_missing_push_data",e.UNKNOWN_WORKER_PUSH="unknown_worker_push",e.UNKNOWN_WORKER_PUSHLY_INTERACTION="unknown_worker_pushly_interaction",e.UNKNOWN_WORKER_3P_INTERACTION="unknown_worker_3p_interaction",e))(H||{});const q={exception:V("Unknown exception"),duplicate_sdk_detected:G("Another instance of the SDK is already running"),sdk_already_loaded:G("The SDK has already been loaded"),domain_config_load_failed:G("Failed to load Domain configuration from remote"),host_not_allowed:G("Current host is not allowed for use"),prompts_load_failed:V("Failed to load Prompts from remote"),web_push_not_supported:G("Web push not supported"),web_push_subscription_failed:V("Error encountered during subscription"),web_push_config_missing:G("Web push configuration missing"),push_worker_not_found_exception:V("Service Worker file not found"),push_worker_registration_exception:V("Service Worker registration exception encountered"),push_worker_subscription_exception:V("Web push subscription exception encountered"),storage_not_available:V("Storage not available"),storage_failed_to_open:V("Storage failed to open"),storage_ns_required:V("Store name is required"),storage_key_empty:V("No data for storage key"),idb_invalid_store_name:V("IndexedDB requires a valid store name; `null` provided"),idb_blocked:V("IndexedDB is blocked"),request_failed:V("Request exception encountered"),request_url_invalid:V("Invalid URL"),request_no_result:V("No result"),request_deserialization_failed:V("Failed to decode response"),unknown_context_key:V("Unknown context key"),unknown_config_keys:V("Unknown configuration key"),unknown_async_command:V("Unknown pushly() command"),unknown_prompt_message:V("Unknown prompt message"),worker_missing_push_data:V("Push event data missing"),unknown_worker_push:V("Unknown worker push event"),unknown_worker_pushly_interaction:V("Unknown worker pushly interaction"),unknown_worker_3p_interaction:V("Unknown worker 3rd-party interaction")};function j(e,t){let s=new Error(null!=t?t:"Unknown error");if(e instanceof Error)s=e;else if(null!=e)try{s=new Error(String(e))}catch(i){}return s}const Q=class e extends Error{constructor(t,s,i,r=!1){null!=t||(t=H.EXCEPTION);const n=[q[t].message];i&&n.push(i),super(n.join(" - ")),P(this,"originalError"),P(this,"code"),this.details=i,this.isSuppressed=r,this.originalError=null!=s?s:void 0,this.code=t,Object.setPrototypeOf(this,e.prototype),this.name="PNException"}static _from(t,s,i,r=!1){return t instanceof e?t:s?s(t):new e(i,null===t?null:j(t),void 0,r)}static _filterBuilderStackEntry(t){return t.filter((t=>t.function!==`${e.name}.${e._from.name}`))}static _isSuppressed(t){const s=t instanceof e?t._name:t.name,i=t instanceof e?t._compositeMessage:t.message,r=t instanceof e&&t.isSuppressed,n=e.KNOWN_NAMES.includes(s),o=e.KNOWN_NAMES.some((e=>new RegExp(e).test(i)));return!e.FORCE_ALLOW_MESSAGE_PATTERNS.some((e=>e.test(i)))&&(r||n||o)}get _compositeMessage(){var t,s,i;let r=this.message;return this.originalError instanceof e?r=`${r.replace(/\.$/,"")}. ${this.originalError._compositeMessage}`:(null==(t=this.originalError)?void 0:t.message)&&(null==(s=this.originalError)?void 0:s.message)!==r&&(r=`${r.replace(/\.$/,"")}. ${null==(i=this.originalError)?void 0:i.message}`),r}
12get _isExitException(){return!!q[this.code].isExitException}get _name(){var e,t;return null!=(t=null==(e=this.originalError)?void 0:e.name)?t:this.name}get _stack(){var t;const s=B(null==(t=this.originalError)?void 0:t.stack,[e._filterBuilderStackEntry]),i=B(this.stack,[e._filterBuilderStackEntry]);return s.length?s:i}toString(){return this._compositeMessage}};P(Q,"KNOWN_NAMES",["AbortError","SecurityError","NetworkError"]),P(Q,"FORCE_ALLOW_MESSAGE_PATTERNS",[/no active service worker/i]);let z=Q;function Y(e){return Object.keys(e).filter((t=>(isNaN(Number(t))||/^0\d+/.test(t))&&("string"==typeof e[t]||"number"==typeof e[t])))}function X(e,t){const s=function(e){return Y(e).map((t=>e[t]))}(e).includes(t)?t:void 0;if(void 0===s)throw new Error(`Invalid enum member ${"string"==typeof t?`"${t}"`:t}. ${JSON.stringify(function(e){return Object.fromEntries(Y(e).map((t=>[t,e[t]])))}(e))}`);return s}function Z(e,t){try{return X(e,t)}catch(s){}}const J={[C.VERBOSE]:{intValue:0,label:"Verbose",logMethod:"debug"},[C.DEBUG]:{intValue:1,label:"Debug",logMethod:"debug"},[C.INFO]:{intValue:2,label:"Info",logMethod:"info"},[C.WARN]:{intValue:3,label:"Warn",logMethod:"warn"},[C.ERROR]:{intValue:4,label:"Error",logMethod:"error"},[C.CRITICAL]:{intValue:5,label:"Critical",logMethod:"error"},[C.NONE]:{intValue:6,label:"None",logMethod:"info"}},ee="pn_ll",te=[],se={},ie={};class re{constructor(e){P(this,"_logLevel"),this.name=e,this._logLevel=C.NONE,this._restorePrevLogLevel()}static _getInstance(e){return e||(e=W._publicNamespace),se[e]||(se[e]=new re(e)),se[e]}get logLevel(){return this._logLevel}set logLevel(e){this._logLevel=e,this.persistLogLevel(e)}_restorePrevLogLevel(){if("localStorage"in self)try{const e=self.localStorage.getItem(ee);e&&Z(C,e)?(this._log("Logger",C.VERBOSE,["Restoring previous log level",this.logLevel]),this.logLevel=e):(this._log("Logger",C.VERBOSE,["Previous log level not found - setting default",this.logLevel]),this.persistLogLevel(this.logLevel))}catch(e){this._log("Logger",C.VERBOSE,["Unable to restore previous log level",e])}else this._log("Logger",C.VERBOSE,["Skipping log level restore in worker global scope"])}persistLogLevel(e){if("localStorage"in self)try{self.localStorage.setItem(ee,e)}catch(t){}}_log(e,t,s){const i=J[t],r=J[this.logLevel];e&&(s=s.slice()).unshift(`[${e}]`);let n=i.label[0];if(t===C.CRITICAL&&(n="!"+n),te.push([new Date,n,...s]),this.logLevel!=C.NONE&&t!=C.NONE&&i.intValue>=r.intValue)try{"console"in self&&"object"==typeof console&&i.logMethod in console&&"function"==typeof console[i.logMethod]&&console[i.logMethod](`[${this.name}: ${n}]`,...s)}catch(o){te.push([new Date,`!${J[C.CRITICAL].label[0]}`,o])}}}class ne{constructor(e,t){P(this,"_globalLogger"),P(this,"_tag"),this._globalLogger=re._getInstance(t),this._tag=null!=e?e:null}static _getInstance(e,t){const s=null!=e?e:"root";return se[s]||(ie[s]=new ne(e,t)),ie[s]}get logLevel(){return this._globalLogger.logLevel}set logLevel(e){this._globalLogger.logLevel=e}_getLogs(e=!1){return e?te.map((([e,t,...s])=>[`${e.toISOString()} [${this._globalLogger.name}: ${t}]`,...s].map((e=>{if(e&&!Array.isArray(e)&&"object"==typeof e)try{return e instanceof z?e._compositeMessage:e instanceof Error?e.message:JSON.stringify(e)}catch(t){}return e})).join(" "))):te.map((([,...e])=>e))}verbose(...e){this._log(C.VERBOSE,...e)}debug(...e){this._log(C.DEBUG,...e)}info(...e){this._log(C.INFO,...e)}warn(...e){this._log(C.WARN,...e)}error(...e){this._log(C.ERROR,...e)}critical(...e){this._log(C.CRITICAL,...e)}_log(e,...t){this._globalLogger._log(this._tag,e,t)}}var oe=(e=>(e.LOAD="load",e.SHOW_PROMPT="show_prompt",e.PROFILE="profile",e.PROFILE_APPEND="profile_append",e.PROFILE_REMOVE="profile_remove",e.PAGE_TAG_VISIT="page_tag_visit",e.EXTERNAL_ID="external_id",e.DEREGISTER_EXTERNAL_ID="deregister_external_id",e.REQUEST_USER_DELETION="request_user_deletion",e.VIEW_ITEM="view_item",e.SAVE_ITEM="save_item",e.UNSAVE_ITEM="unsave_item",e.COMPLETE_ITEM="complete_item",e.UNCOMPLETE_ITEM="uncomplete_item",e.RATE_ITEM="rate_item",e.UNRATE_ITEM="unrate_item",e.ADD_TO_CART="add_to_cart",e.PURCHASE="purchase",e.UPDATE_CART="update_cart",e.DEBUG="debug",e.CONFIRM_CONSENT="confirm_consent",e.PAUSE_PUSH_NOTIFICATIONS="pause_notifications",e.RESUME_PUSH_NOTIFICATIONS="resume_notifications",e.GET_PUSH_NOTIFICATIONS_PAUSED_STATE="get_notifications_paused_state",e.SUPPRESS_PROMPTS="suppress_prompts",e.ALLOW_PROMPTS="allow_prompts",e.GET_PROMPTING_SUPPRESSED_STATE="get_prompting_suppressed_state",e))(oe||{}),ae=(e=>(e.WEB_PUSH_SUPPORTED="web_push_supported",e.WEB_PUSH_UNSUPPORTED="web_push_unsupported",e.LOADED="loaded",e.READY="ready",e.PROMPT_ELIGIBLE="prompt_eligible",e.PROMPT_INELIGIBLE="prompt_ineligible",e.PROMPT_SHOWN="prompt_shown",e.PROMPT_DISMISSED="prompt_dism
12issed",e.PROMPT_ALLOWED="prompt_allowed",e.PERMISSION_SHOWN="permission_shown",e.PERMISSION_ALLOWED="permission_allowed",e.PERMISSION_DENIED="permission_denied",e.PERMISSION_DISMISSED="permission_dismissed",e.LEGACY_PERMISSION_SHOWN="permission_prompted",e.LEGACY_PERMISSION_ALLOWED="permission_accepted",e))(ae||{});const le=["subscribe"];var ue=(e=>(e.ERROR="error",e.SDK_IMPRESSION="sdk_impression",e.SDK_IMPRESSION_END="sdk_impression_end",e.DEBUG="debug",e.PROFILE="profile",e.PROFILE_APPEND="profile_append",e.PROFILE_REMOVE="profile_remove",e.EXTERNAL_ID="external_id",e.DEREGISTER_EXTERNAL_ID="deregister_external_id",e.USER_DELETION_REQUEST="udr",e.VIEW_PAGE="view_page",e.VIEW_SCREEN="view_screen",e.ANONYMOUS_VIEW_PAGE="anonymous_view_page",e.PAGE_TAG_VISIT="page_tag_visit",e.ADD_TO_CART="add_to_cart",e.UPDATE_CART="update_cart",e.PURCHASE="purchase",e.VIEW_ITEM="view_item",e.SAVE_ITEM="save_item",e.UNSAVE_ITEM="unsave_item",e.COMPLETE_ITEM="complete_item",e.UNCOMPLETE_ITEM="uncomplete_item",e.RATE_ITEM="rate_item",e.UNRATE_ITEM="unrate_item",e.PROMPT_SHOWN="prompt_shown",e.PROMPT_ACCEPTED="prompt_allow",e.PROMPT_DISMISSED="prompt_dismiss",e.PROMPT_NOT_SHOWN="prompt_not_shown",e.PERMISSION_SHOWN="permission_prompted",e.PERMISSION_ACCEPTED="permission_accepted",e.PERMISSION_DISMISSED="permission_dismissed",e.PERMISSION_DENIED="permission_denied",e.PERMISSION_CHANGED="permission_changed",e.IAM_IMPRESSION="iam_impression",e.IAM_CLICK="iam_click",e.IAM_SUBSCRIBE="iam_subscribe",e.IAM_CLOSE="iam_close",e.IAM_NOT_SHOWN="iam_not_shown",e.TOKEN_RECEIVED="subscribed",e.TOKEN_REFRESHED="subscription_change",e.UNSUBSCRIBED="unsubscribed",e.MANUAL_UNSUBSCRIBED="manual_unsubscribed",e.SOFT_UNSUBSCRIBE="soft_unsubscribe",e.SOFT_RESUBSCRIBE="soft_resubscribe",e.NOTIFICATION_IMPRESSION="notification_impression",e.NOTIFICATION_CLICK="notification_click",e.NOTIFICATION_CLOSE="notification_close",e.LIVE_ACTIVITY_REGISTER="la_register",e.LIVE_ACTIVITY_END="la_end",e.SESSION_START="session_start",e.SESSION_HEARTBEAT="session_heartbeat",e))(ue||{});const ce=e=>["external_id","deregister_external_id","permission_changed","profile","profile_append","profile_remove","page_tag_visit","purchase","update_cart","add_to_cart","view_item","notification_impression","notification_click","notification_close","soft_unsubscribe","soft_resubscribe","manual_unsubscribed","unsubscribed","session_heartbeat","session_start"].includes(e),de=e=>["debug","sdk_impression","prompt_not_shown"].includes(e),he=e=>{let t=null==e?"":e;if("string"!=typeof e)try{t=JSON.stringify(e)}catch(r){t=""}let s=5381,i=Uint8Array.from(Array.from(t).map((e=>e.charCodeAt(0))));for(let n of i)s=(s<<5)+s+n&4294967295;return s};function _e(){const e=Date.now(),t=new Uint8Array(16);t[0]=255&Math.floor(e/1099511627776),t[1]=255&Math.floor(e/4294967296),t[2]=255&Math.floor(e/16777216),t[3]=255&Math.floor(e/65536),t[4]=255&Math.floor(e/256),t[5]=255&e,function(e){const t=null==globalThis?void 0:globalThis.crypto;if(t&&"function"==typeof t.getRandomValues)return void t.getRandomValues(e);for(let s=0;s<e.length;s++)e[s]=Math.floor(256*Math.random())}(t.subarray(6)),t[6]=15&t[6]|112,t[8]=63&t[8]|128;let s="";for(let i=0;i<16;i++)s+=t[i].toString(16).padStart(2,"0"),3!==i&&5!==i&&7!==i&&9!==i||(s+="-");return s}const pe=e=>Object.assign(Object.create(null),e);function ge(e){return e.replace(/([A-Z]+)/g,(e=>`_${e.toLowerCase()}`)).replace(/^_|_$/,"")}function me(e){if(!e||Array.isArray(e)||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(me);const t={};return Object.keys(e).sort().forEach((s=>{t[s]=me(e[s])})),t}const Se=class{static _build(e,t,s){return k(this,null,(function*(){var i,r;const n=pe({sendAttemptCount:0,event_id:_e(),session_id:this._sessionId,occurred_at:Date.now(),seq:++this._seq,channel:W._tevChannel,provider:W._tevVapidProvider,action:e,domain_id:this._domainId,domain_key:this._domainKey,pushly_unique_user_id:this._anonymousId,token:this._token,meta:pe({sdk:{name:W._libraryName,version:W._libraryVersion,library:W._coreName,library_version:W._coreVersion},event:{version:3}}),data:null!=t?t:{}});return s&&(n.jxms=s),(null==(i=this._loadConfig)?void 0:i.externalId)&&!n.data[ue.EXTERNAL_ID]&&(n.data[ue.EXTERNAL_ID]=null==(r=this._loadConfig)?void 0:r.externalId),n}))}static _getErrorEvent(e,t){return k(this,null,(function*(){const s=e instanceof z?e._stack:B(e.stack,[z._filterBuilderStackEntry]),i=s.length?s.map((e=>{var t;return`${null!=(t=e.function)?t:"<anonymous>"} (${e.file}:${e.line}:${e.column})`})):void 0;return this._build(ue.ERROR,y(y({[W._tevFieldErrorType]:e instanceof z?(r=e.code,r.replace(/^.|_+[a-z]/gi,(e=>e.replace(/_+/,"").toUpperCase()))):e.name,[W._tevFieldErrorMessage]:e instanceof z?e._compositeMessage:e.message},i?{[W._tevFieldErrorBacktrace]:i}:{}),null!=t?t:{}));var r}))}static _getProfileExternalIdEvent(e){return k(this,null,(function*(){return this._build(ue.PROFILE,{external_id:e})}))}static _getProfileLanguageEvent(e){return k(this,null,(function*(){return this._build(ue.PROFILE,{language:e})}))}static _getProfileTimeZoneEvent(e){return k(this,null,(function*(){return this._build(ue.PROFILE,{time_zone:e})}))}static _isEqual(e,t){return((e,t)=>he(e)===he(t))(this._getEventHashParts(e),this._getEventHashParts(t))}static _prepareSendEvent(e){e.sendAttemptCount+=1,e.sent_at=Date.now(),this._ensureLateInitValues(e)}static _ensureLateInitValues(e){!e.pushly_unique_user_id&&this._anonymousId&&(e.pushly_unique_user_id=this._anonymousId),null==e.session_id&&null!=this._sessionId&&(e.session_id=this._sessionId),!e.domain_id&&this._domainId&&(e.domain_id=this._domainId),e.domain_id||e.domain_key||!this._domainKey||(e.domain_key=this._domainKey
12),e.domain_id&&e.domain_key&&delete e.domain_key,!e.token&&this._token&&(e.token=this._token)}static _clone(e){let t;if("structuredClone"in self)try{t=structuredClone(e)}catch(s){}if(!t){const s=e,{sendAttemptCount:i,event_id:r,data:n}=s,o=I(s,["sendAttemptCount","event_id","data"]);t=pe(y({},o))}return t.sendAttemptCount=0,t.event_id=_e(),t.occurred_at=Date.now(),t.seq=++this._seq,t.sent_at=void 0,t.data=pe(e.data),t}static _getEventHashParts(e){var t,s;return pe({a:e.action,di:null!=(t=e.domain_id)?t:"unknown",dk:null!=(s=e.domain_key)?s:"unknown",puuid:e.pushly_unique_user_id,t:e.token?Object.fromEntries(Object.keys(e.token).sort().entries()):"none",d:me(e.data)})}};P(Se,"_domainKey"),P(Se,"_domainId"),P(Se,"_anonymousId"),P(Se,"_loadConfig"),P(Se,"_token"),P(Se,"_sessionId"),P(Se,"_seq"),Se._domainKey=null,Se._domainId=null,Se._anonymousId=null,Se._loadConfig=null,Se._token=null,Se._sessionId=null,Se._seq=0;let fe=Se;var Ee=(e=>(e.VAPID="VAPID",e.APNS="APNS",e))(Ee||{});let be=(P(t=class{static get _scope(){return this._isInSourcelessIFrame?top:this._isInWorkerGlobalScope?self:window}static get _location(){return this._scope.location}static get _navigator(){return this._scope.navigator}static get _document(){return this._scope.document}static get _isInWorkerGlobalScope(){return self&&"WorkerGlobalScope"in self}static get _isInSourcelessIFrame(){return!this._isInWorkerGlobalScope&&window&&"object"==typeof window&&!!top&&top!==window.self&&!!window.frameElement&&"about:blank"===window.frameElement.src}static get _devicePlacement(){let e;if(this._navigator.userAgentData)e=this._navigator.userAgentData.mobile?"mobile":"desktop";else try{e=this._scope.matchMedia("only screen and (max-device-width: 768px)").matches?"mobile":"desktop"}catch(t){e=[/Android/i,/webOS/i,/iPhone|iPad|iPod/i,/Blackberry/i,/Windows Phone/i].some((e=>e.test(this._navigator.userAgent)))?"mobile":"desktop"}return e}static get _isSafari(){const e=this._navigator;if(!(!e.userAgent.match(/crios/i)&&!e.userAgent.match(/fxios/i)&&!e.userAgent.match(/Opera|OPT\//)))return!1;if("safari"in t._scope)return!0;if(this._isStandalonePWA){if("vendor"in e&&!!e.vendor.match(/apple/i))return!0}return!1}static get _isStandalonePWA(){try{return"standalone"in this._navigator&&!0===this._navigator.standalone||this._scope.matchMedia("(display-mode: standalone)").matches}catch(e){return!1}}static get _requires2Step(){var e,t;if(void 0!==this._requires2StepCache)return this._requires2StepCache;if(this._isSafari)return this._requires2StepCache=!0,this._requires2StepCache;const s=this._navigator,i=s.userAgentData;if(i&&Array.isArray(i.brands)&&i.brands.length>0){for(const t of i.brands){const s=(null!=(e=null==t?void 0:t.brand)?e:"").toLowerCase();if(s.includes("firefox")||s.includes("edge"))return this._requires2StepCache=!0,this._requires2StepCache}return this._requires2StepCache=!1,this._requires2StepCache}const r=null!=(t=s.userAgent.toLowerCase())?t:"";return r&&-1!==r.indexOf("firefox")||r&&-1!==r.indexOf(" edg/")||r&&-1!==r.indexOf(" microsoft edge")?(this._requires2StepCache=!0,this._requires2StepCache):(this._requires2StepCache=!1,this._requires2StepCache)}static get _isPushManagerInScope(){return"PushManager"in this._scope}static get _pushProvider(){return this._isInWorkerGlobalScope||!this._isSafari||this._isPushManagerInScope?Ee.VAPID:Ee.APNS}static get _isLocal(){return"localhost"===this._location.hostname||"127.0.0.1"===this._location.hostname}static get _isHttps(){return"https:"===this._location.protocol}static get _isArrayFullySupported(){return"Array"in this._scope&&"from"in Array&&"some"in[]}static _getIsUserAgentSupported(){try{if(!("userAgent"in this._navigator))return[!1,"self.userAgent not accessible"];const e=/bot|spider|crawl|xwarler|disqus|hatena|okhttp|headless|flipboard|linkcheck|coccoc|kddi|ichiro|libwww|wget|apache-http|miniflux|digg|bingpreview|sleuth|pcore|pingdom|snacktory|ning|opengraph|woorank|validator|python|steamchat|whatsapp|slurp|feedbin|appengine|php-curl|meta(insp|-ext)|internet-measure|gb\.gy|findlinks|heritrix|ec2link|facebook(ext|cat)|analyzer|ichigo|europarchive|curl|tiny\stiny|feedfetch|mediapartner|google(other|-(inspect|ext)|\sfav)/im;if(e.test(this._navigator.userAgent))return[!1,"self.navigator.userAgent is recognizedBot"];if("appVersion"in this._navigator&&e.test(this._navigator.appVersion))return[!1,"self.navigator.appVersion is recognizedBot"];if("appCodeName"in this._navigator&&e.test(this._navigator.appCodeName))return[!1,"self.navigator.appCodeName is recognizedBot"];if("product"in this._navigator&&e.test(this._navigator.product))return[!1,"self.navigator.product is recognizedBot"];if("vendor"in this._navigator&&e.test(this._navigator.vendor))return[!1,"self.navigator.vendor is recognizedBot"];return/fb(ios|an)|instagram|twitter|pinterest|micromessenger/i.test(this._navigator.userAgent)?[!1,"self.navigator.userAgent is not supported"]:[!0]}catch(e){return[!1,j(e).message]}}static _getIsEnvBaseSupported(){try{if(!this._isLocal&&!this._isHttps)return[!1,"self.location.protocol is not secure context (http:)"];if(!("location"in this._scope))return[!1,"self.location not accessible"];if(!("navigator"in this._scope))return[!1,"self.navigator not accessible"];if(!("Notification"in this._scope))return[!1,"self.Notification not accessible"];if(!this._isArrayFullySupported)return[!1,"required Array functionality not accessible"];if(!this._location.host)return[!1,"self.location.host is undefined"];if(!this._location.hostname)return[!1,"self.location.hostname is undefined"];try{if(!this._location.hostname.split("").length)return[!1,"self.location.hostname is empty"]}catch(e){return[!1,"self.location.hostname is not a valid String"]}const[t,s]=this._getIsUserAgentSupported();if(!t)return[!1,s];if(!this._isPushManagerInScope){const e=/iphone|ipad/i;return e.test(this._navigator.userAgent)?[!1,"self.navigator.userAgent is iDevice"]:"platform"in this._navigator&&e.test(this._navigator.platform)?[!1,"self.navigator.platform is iDevice"]:[!1,"self.PushManager is not accessible"]}
12if(!("PushSubscription"in this._scope))return[!1,"self.PushSubscription is not accessible"];const i=this._scope.PushSubscription;if(!(null==i?void 0:i.prototype.hasOwnProperty("getKey")))return[!1,"self.PushSubscription.prototype.getKey is not accessible"];if(!("ServiceWorker"in this._scope))return[!1,"self.ServiceWorker is not accessible"];if(!("serviceWorker"in this._navigator))return[!1,"self.navigator.serviceWorker is not accessible"];if(!("ServiceWorkerRegistration"in this._scope))return[!1,"self.ServiceWorkerRegistration is not accessible"];const r=this._scope.ServiceWorkerRegistration;if(!(null==r?void 0:r.prototype.hasOwnProperty("showNotification")))return[!1,"self.ServiceWorkerRegistration.prototype.showNotification is not accessible"]}catch(t){return[!1,j(t).message]}return[!0]}},"_requires2StepCache"),t);class ye extends be{static get _isDevMode(){return"development"===W._env}static _getIsWebPushSupported(){return k(this,null,(function*(){try{const[t,s]=this._getIsEnvBaseSupported();if(!t)return[!1,s];if(this._pushProvider===Ee.APNS)return[!1,"APNS subscriptions are not supported"];if(!this._navigator.cookieEnabled)return[!1,"self.navigator.cookieEnabled is FALSE"];try{yield this._navigator.serviceWorker.getRegistration()}catch(e){return[!1,"call to self.navigator.serviceWorker.getRegistration() failed"]}}catch(e){return[!1,j(e).message]}return[!0]}))}static get _isSafariPushCapable(){return this._isSafari&&"object"==typeof this._scope.safari&&"object"==typeof this._scope.safari.pushNotification}static isAnimationApiSupported(){try{return!!this._document.getAnimations()&&!!this._scope.navigator.userAgentData}catch(e){return!1}}}class ve extends W{static get _dynamicDomainKey(){var e,t,s;return null!=(s=null!=(t=ve._injectedDomainKey)?t:null==(e=ve._injectedDomainConfig)?void 0:e.domain_key)?s:ve._requestingScriptDomainKey}static get _requestingScriptDomainKey(){var e,t,s,i;try{const r=new URLSearchParams(null!=(s=null==(t=null==(e=document.currentScript)?void 0:e.getAttribute("src"))?void 0:t.split("?")[1])?s:"");return null!=(i=r.get("domain_key"))?i:r.get("domainKey")}catch(r){}return null}static get _udrUrlSearchParameter(){return"pushly_udr"}static get _isPreviewModeEnabled(){return this._isPreviewEnabledByUrl||this._isPreviewEnabledByCookie}static get _isPreviewEnabledByUrl(){try{const e=new URLSearchParams(ye._location.search);return this._isPreviewOptInValue(e.get(this._pnPreviewUrlSearchParameter))}catch(e){return!1}}static get _isPreviewEnabledByCookie(){try{const e=ye._document.cookie.split(";");for(const t of e){const e=t.indexOf("=");if(-1!==e&&t.slice(0,e).trim()===this._pnPreviewCookieName)return this._isPreviewOptInValue(decodeURIComponent(t.slice(e+1).trim()))}}catch(e){}return!1}static _isPreviewOptInValue(e){const t=null==e?void 0:e.trim().toLowerCase();return!!t&&"0"!==t&&"false"!==t}static get _swUseRootScopeFlag(){return"USE_ROOT_SW_SCOPE"}static get _swUsePathWithoutDomainKeyFlag(){return"SW_NO_DOMAIN_KEY_PARAM"}static get _swShouldReplaceExistingWorkerInPushlyScopeFlag(){return"REPLACE_EXISTING_WORKERS"}static get _swShouldUnregisterNonPushlyWorkersFlag(){return"UNREGISTER_ALL_NON_PUSHLY_WORKERS"}static get _swDisableDuplicateWorkerCleanupFlag(){return"DISABLE_DUPLICATE_SW_CLEANUP"}static get _domainFeatInformedContentFlag(){return"FEAT_INFORMED_CONTENT"}static get _domainFeatIntegrationsECommFlag(){return"FEAT_DOMAIN_INTEGRATIONS_ECOMM"}static get _domainFeatUseIsolatedCookiesFlag(){return"USE_ISOLATED_COOKIE_STORAGE_LOCATION"}static get _disableSessionTracking(){return"FEAT_SDK_WEB_DISABLE_SESSION_TRACKING"}static get _defaultDismissedStatusExpirationSeconds(){return 604800}static get _coldSubscriptionResolutionBudgetMs(){return 5e3}static get _injectedDomainKey(){try{return self._PN_IDK_&&"string"==typeof self._PN_IDK_?self._PN_IDK_:null}catch(e){return null}}static get _injectedDomainConfig(){try{return self._PN_IDC_&&"object"==typeof self._PN_IDC_&&!Array.isArray(self._PN_IDC_)&&"domain_key"in self._PN_IDC_?self._PN_IDC_:null}catch(e){return null}}static get _injectedPromptGroups(){try{return self._PN_IPG_&&Array.isArray(self._PN_IPG_)&&self._PN_IPG_.length&&self._PN_IPG_.every((e=>"prompts"in e))?self._PN_IPG_:null}catch(e){return null}}static get _tevSubscribedUrlKey(){return"subscribed_url"}static get _tevDataPageUrlKey(){return"page_url"}static get _tevDataPageTagsKey(){return"page_tags"}static get _tevDataPromptNotShownKey(){return"prompt_not_shown_reason"}}var Ie=(e=>(e.PRODUCT="product",e.EVENT="event",e))(Ie||{});function Pe(e){switch(e){case"product":return"products";case"event":return"events";default:return"unknown"}}function we(e,t){let s,i,r;try{s="item_type"in e?Z(Ie,e.item_type):"event_id"in e?Ie.EVENT:"product_id"in e?Ie.PRODUCT:t,i="id"in e?e.id:"event_id"in e?String(e.event_id):"product_id"in e?String(e.product_id):"",r="quantity"in e?e.quantity:void 0}catch(o){throw new TypeError(`ECommItem could not be parsed: ${j(o).message}. ${JSON.stringify(e)}`)}if(!s)throw new TypeError(`ECommItem.item_type could not be parsed. ${JSON.stringify(e)}`);
12if("string"!=typeof i||!i)throw new TypeError(`ECommItem.id could not be parsed. ${JSON.stringify(e)}`);if(null!=r&&Number.isNaN(Number(r)))throw new TypeError(`ECommItem.quantity is not numeric. ${JSON.stringify(e)}`);const n={item_type:s,id:i,quantity:r};return null!=r?{item_type:n.item_type,id:n.id,quantity:n.quantity}:{item_type:n.item_type,id:n.id}}function De(e){if(null==e)return;const t=function(e){if("number"==typeof e)return e;if("string"==typeof e&&e.trim().length){const t=Number(e);return Number.isNaN(t)?void 0:t}}(e);if(void 0===t||!function(e){if(!Number.isFinite(e))return!1;if(e<0||e>100)return!1;const t=10*e;return Math.abs(t-Math.round(t))<1e-6}(t))throw new TypeError(`ECommItem.rating is invalid. ${JSON.stringify(e)}`);return t}class Oe{constructor(e,t){O(this,s,void 0),O(this,i,void 0),T(this,s,e),T(this,i,null!=t?t:ne._getInstance("UserProfile"))}getAnonymousId(){return k(this,null,(function*(){return D(this,s).userStore._getAnonymousId()}))}getToken(){return k(this,null,(function*(){if(!D(this,s).notificationPermissionService)return null;return(yield D(this,s).notificationPermissionService._getCurrentPermissions()).token}))}setExternalId(e){return k(this,null,(function*(){if(!D(this,s).isLoaded)return void D(this,s)._registerOnLoadedCallback((()=>this.setExternalId(e)));const t=yield D(this,s).userStore._getExternalId();if(!t||e!==t){yield D(this,s).userStore._setExternalId(e);const t=yield fe._getProfileExternalIdEvent(e);D(this,s).eventManager._track(t)}}))}getExternalId(){return k(this,null,(function*(){return D(this,s).userStore._getExternalId()}))}unsetExternalId(){return k(this,null,(function*(){(()=>{k(this,null,(function*(){if(null!==this.getExternalId()){yield D(this,s).userStore._removeExternalId();const e=yield fe._build(ue.DEREGISTER_EXTERNAL_ID);D(this,s).eventManager._track(e)}}))})()}))}getSubscriberStatus(){return k(this,null,(function*(){return D(this,s).userStore._getSubscriberStatus()}))}getIsDeleted(){return k(this,null,(function*(){return D(this,s).userStore._getIsInDeletedState()}))}requestUserDeletion(){D(this,s)._executeWhenConfigured((()=>D(this,s)._handleUserDeletionRequest()))}set(e,t){const r="string"==typeof e?{[e]:t}:e;D(this,s)._executeWhenConfiguredIfEnabled((()=>{D(this,i).verbose(`Setting to profile: ${r}`),D(this,s).eventManager._track(ue.PROFILE,r)}))}append(e,t){D(this,s)._executeWhenConfiguredIfEnabled((()=>{D(this,i).verbose(`Appending to profile ${e}: ${t}`),D(this,s).eventManager._track(ue.PROFILE_APPEND,{[e]:t})}))}remove(e,t){D(this,s)._executeWhenConfiguredIfEnabled((()=>{D(this,i).verbose(`Removing from profile ${e}: ${t}`),D(this,s).eventManager._track(ue.PROFILE_REMOVE,{[e]:t})}))}saveItem(e){return k(this,null,(function*(){return this.saveItems([e])}))}viewItem(e){return k(this,null,(function*(){return this.viewItems([e])}))}completeItem(e){return k(this,null,(function*(){return this.completeItems([e])}))}unsaveItem(e){return k(this,null,(function*(){return this.unsaveItems([e])}))}uncompleteItem(e){return k(this,null,(function*(){return this.uncompleteItems([e])}))}unrateItem(e){return k(this,null,(function*(){return this.unrateItems([e])}))}rateItem(e){return k(this,null,(function*(){return this.rateItems([e])}))}saveItems(e){return k(this,null,(function*(){this._trackItemsWithoutQuantity(e,"saveItems",ue.SAVE_ITEM,"saved items")}))}viewItems(e){return k(this,null,(function*(){this._trackItemsWithoutQuantity(e,"viewItems",ue.VIEW_ITEM,"viewed items")}))}completeItems(e){return k(this,null,(function*(){this._trackItemsWithoutQuantity(e,"completeItems",ue.COMPLETE_ITEM,"completed items")}))}unsaveItems(e){return k(this,null,(function*(){this._trackItemsWithoutQuantity(e,"unsaveItems",ue.UNSAVE_ITEM,"saved items")}))}uncompleteItems(e){return k(this,null,(function*(){this._trackItemsWithoutQuantity(e,"uncompleteItems",ue.UNCOMPLETE_ITEM,"completed items")}))}unrateItems(e){return k(this,null,(function*(){this._trackItemsWithoutQuantity(e,"unrateItems",ue.UNRATE_ITEM,"rated items")}))}rateItems(e){return k(this,null,(function*(){this._trackItemsWithRating(e,"rateItems",ue.RATE_ITEM,"rated items")}))}addToCart(e){return k(this,null,(function*(){D(this,s)._executeWhenConfiguredIfEnabled((()=>{this._withECommConfig("addToCart",(t=>{const r=Pe(t.item_type),n={[r]:e.map((e=>we(e,t.item_type)))};D(this,i).verbose(`Adding ${e.length} item${e.length>
121?"s":""} to cart`),D(this,s).eventManager._track(ue.ADD_TO_CART,n)}))}))}))}updateCart(e){return k(this,null,(function*(){D(this,s)._executeWhenConfiguredIfEnabled((()=>{this._withECommConfig("updateCart",(t=>{const r=Pe(t.item_type),n={[r]:e.map((e=>we(e,t.item_type)))};D(this,i).verbose(`Updating cart with ${e.length} item${e.length>1?"s":""}.`),D(this,s).eventManager._track(ue.UPDATE_CART,n)}))}))}))}clearCart(){return k(this,null,(function*(){D(this,s)._executeWhenConfiguredIfEnabled((()=>{this._withECommConfig("clearCart",(e=>{const t=Pe(e.item_type),r={[t]:[]};D(this,i).verbose("Clearing cart"),D(this,s).eventManager._track(ue.UPDATE_CART,r)}))}))}))}purchase(e,t,r){return k(this,null,(function*(){D(this,s)._executeWhenConfiguredIfEnabled((()=>{this._withECommConfig(`purchase(${e?"items":""}${t?":purchaseId":""}${r?":priceValue":""})`,(n=>{const o={},a=void 0===e&&(void 0!==t||void 0!==r),l=Pe(n.item_type);if(void 0!==e&&(o[l]=e.map((e=>we(e,n.item_type)))),t&&(o.purchase_id=t),r&&(o.price_value=r),void 0===e&&!a)return D(this,i).verbose("Tracking purchase"),void D(this,s).eventManager._track(ue.PURCHASE);const u=["Tracking purchase"];(null==e?void 0:e.length)&&u.push(`of ${e.length} item${e.length>1?"s":""}`),t&&u.push(`Purchase ID: ${t}`),r&&u.push(`Total value: ${r}`),D(this,i).verbose(u.join(" ")),D(this,s).eventManager._track(ue.PURCHASE,o)}))}))}))}trackActivity(e,t){D(this,s)._executeWhenConfiguredIfEnabled((()=>{const i={page_url:e};(null==t?void 0:t.length)&&(i.tags=t),D(this,s).eventManager._track(ue.VIEW_PAGE,i)}))}_withECommConfig(e,t){return k(this,null,(function*(){D(this,s)._executeWhenConfigured((()=>k(this,null,(function*(){const r=yield D(this,s).domainConfigProvider._get();if(r.isErr())return D(this,i).warn(r.getErr()),void D(this,i).warn(`${e} Unable to load Domain Config`);const n=r.unwrap(),o=n.ecomm_config;o?"unknown"!==Pe(o.item_type)?n.flags.includes(ve._domainFeatIntegrationsECommFlag)?t(o):D(this,i).warn("E-Commerce support is not currently enabled for this domain"):D(this,i).warn(`E-Commerce configuration has unrecognized item type: ${o.item_type}`):D(this,i).warn("E-Commerce configuration is not defined for this domain")}))))}))}_trackItemsWithoutQuantity(e,t,r,n){const o=e.map((({id:e,item_type:t})=>({id:e,item_type:t})));D(this,s)._executeWhenConfiguredIfEnabled((()=>{this._withECommConfig(t,(t=>{const a=Pe(t.item_type),l={[a]:o.map((e=>we(e,t.item_type)))};D(this,i).verbose(`Adding ${e.length} item${e.length>1?"s":""} to ${n}`),D(this,s).eventManager._track(r,l)}))}))}_trackItemsWithRating(e,t,r,n){const o=e.map((({id:e,item_type:t,rating:s})=>({id:e,item_type:t,rating:De(s)})));D(this,s)._executeWhenConfiguredIfEnabled((()=>{this._withECommConfig(t,(t=>{const a=Pe(t.item_type),l={[a]:o.map((e=>function(e,t){const s=we(e,t),i=De("rating"in e?e.rating:void 0);return void 0===i?{item_type:s.item_type,id:s.id}:{item_type:s.item_type,id:s.id,rating:i}}(e,t.item_type)))};D(this,i).verbose(`Adding ${e.length} item${e.length>1?"s":""} to ${n}`),D(this,s).eventManager._track(r,l)}))}))}}s=new WeakMap,i=new WeakMap;var Te=(e=>(e.SUBSCRIBED="subscribed",e.DISMISSED="dismissed",e.DENIED="denied",e.NOT_DETERMINED="not_determined",e))(Te||{});const ke={not_determined:0,dismissed:1,subscribed:2,denied:-1},Ce=e=>{switch("string"==typeof e&&(e=e.toLowerCase()),e){case"subscribed":case ke.subscribed:return"subscribed";case"dismissed":case ke.dismissed:return"dismissed";case"blocked":case"denied":case ke.denied:return"denied";default:return"not_determined"}},Ne=e=>"not_determined"===e?"not determined":e;class Re{constructor(e,t){O(this,r,void 0),O(this,n,void 0),T(this,r,e),T(this,n,null!=t?t:ne._getInstance("Notifications"))}showPermissionPrompt(e,t){let s,i={};"number"==typeof e?(s=e,i=null!=t?t:{}):i=null!=e?e:{},D(this,r)._executeWhenConfiguredIfEnabled((()=>{var e;null==(e=D(this,r).promptsController)||e._showPrompt(s,i)}))}getIsEligibleToPrompt(){return k(this,null,(function*(){const e=yield D(this,r).userStore._getIsInDeletedState(),t=yield D(this,r).userStore._getIsSubscribed(),s=yield D(this,r).userStore._getIsUserInSoftUnsubscribedState(),i=yield D(this,r).userStore._getSubscriberStatus();return D(this,r).isLoaded&&D(this,r).isEnabled&&!e&&!t&&i!=Te.DENIED&&i!=Te.DISMISSED&&!s}))}pause(){return k(this,null,(function*(){this._executeIfSubscribed((()=>k(this,null,(function*(){(yield D(this,r).userStore._getIsUserInSoftUnsubscribedState())?D(this,n).info("The user is already in soft unsubscribe status."):(D(this,r).userStore._setIsUserInSoftUnsubscribedState(),D(this,r).eventManager._track(ue.SOFT_UNSUBSCRIBE),D(this,n).info("The user's notifications have been paused."))}))))}
12))}resume(){return k(this,null,(function*(){this._executeIfSubscribed((()=>k(this,null,(function*(){(yield D(this,r).userStore._getIsUserInSoftUnsubscribedState())?(D(this,r).userStore._unsetIsUserInSoftUnsubscribedState(),D(this,r).eventManager._track(ue.SOFT_RESUBSCRIBE),D(this,n).info("The user's notifications have been resumed.")):D(this,n).info("The user is not in a soft unsubscribe status.")}))))}))}getIsPaused(){return k(this,null,(function*(){return D(this,r).userStore._getIsUserInSoftUnsubscribedState()}))}getIsSubscribed(){return k(this,null,(function*(){return D(this,r).userStore._getIsSubscribed()}))}suppressPrompts(){D(this,r)._executeWhenConfiguredIfEnabled((()=>{var e;null==(e=D(this,r).promptsController)||e._suppressPrompts()}))}allowPrompts(){D(this,r)._executeWhenConfiguredIfEnabled((()=>{var e;null==(e=D(this,r).promptsController)||e._allowPrompts()}))}getIsPromptingSuppressed(){var e,t;return null!=(t=null==(e=D(this,r).promptsController)?void 0:e._getIsPromptingSuppressed())&&t}_executeIfSubscribed(e){return k(this,null,(function*(){yield D(this,r)._executeWhenConfigured((()=>k(this,null,(function*(){if(yield this.getIsSubscribed())try{yield e()}catch(t){const e=j(t);D(this,n).error(e),D(this,r).eventManager._track(e)}else D(this,n).warn("User is not currently subscribed and can not use this method")}))))}))}}r=new WeakMap,n=new WeakMap;class Ae{constructor(e){O(this,o,void 0),T(this,o,e)}trackSavedItem(e){return k(this,null,(function*(){return D(this,o).saveItem(e)}))}trackSavedItems(e){return k(this,null,(function*(){return D(this,o).saveItems(e)}))}trackCompletedItem(e){return k(this,null,(function*(){return D(this,o).completeItem(e)}))}trackCompletedItems(e){return k(this,null,(function*(){return D(this,o).completeItems(e)}))}unsaveItem(e){return k(this,null,(function*(){return D(this,o).unsaveItem(e)}))}unsaveItems(e){return k(this,null,(function*(){return D(this,o).unsaveItems(e)}))}uncompleteItem(e){return k(this,null,(function*(){return D(this,o).uncompleteItem(e)}))}uncompleteItems(e){return k(this,null,(function*(){return D(this,o).uncompleteItems(e)}))}unrateItem(e){return k(this,null,(function*(){return D(this,o).unrateItem(e)}))}unrateItems(e){return k(this,null,(function*(){return D(this,o).unrateItems(e)}))}trackRatedItem(e){return k(this,null,(function*(){return D(this,o).rateItem(e)}))}trackRatedItems(e){return k(this,null,(function*(){return D(this,o).rateItems(e)}))}trackViewedItem(e){return k(this,null,(function*(){return D(this,o).viewItem(e)}))}trackViewedItems(e){return k(this,null,(function*(){return D(this,o).viewItems(e)}))}addToCart(e){return k(this,null,(function*(){return D(this,o).addToCart(e)}))}updateCart(e){return k(this,null,(function*(){return D(this,o).updateCart(e)}))}clearCart(){return k(this,null,(function*(){return D(this,o).clearCart()}))}trackPurchase(e,t,s){return k(this,null,(function*(){return D(this,o).purchase(e,t,s)}))}}o=new WeakMap;class Me{constructor(e,t){O(this,a,void 0),O(this,l,void 0),T(this,a,e),T(this,l,null!=t?t:ne._getInstance("Prompts"))}dispatch(e){return k(this,null,(function*(){var t;e.prompt_action?yield null==(t=D(this,a).promptsController)?void 0:t._processDispatchMessage(e):D(this,l).debug("Received unknown Prompt message:",e)}))}}a=new WeakMap,l=new WeakMap;const Le=["domainKey","sw","swScope","externalId","classNames","consentRequired","requireConsent","frameMessenger"];function Ue(e=32){let t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",s="";for(let i=0;i<e;i++)s+=t[Math.floor(62*Math.random())];return/undefined/i.test(s)&&"crypto"in self&&"getRandomValues"in crypto&&"Uint32Array"in self&&(s=crypto.getRandomValues(new Uint32Array(4)).join("")),/undefined/i.test(s)&&(s="INVALID_RANDOM_STRING"),s}class xe{constructor(e,t=null){P(this,"ok"),P(this,"err",null),P(this,"toString",(()=>{if(this.isErr()){const e=this.getErr();return`Result.Err: ${e instanceof Error?e.message:e}`}return`Result.Ok: ${this.unwrapOrNull()}`})),null!==t?this.err=t:void 0!==e&&(this.ok=e)}static Ok(e){return new xe(e)}static Err(e){return new xe(void 0,e)}unwrap(){if(this.isOk())return this.ok;if(this.isErr())throw this.err;throw new Error("Unknown error")}unwrapOr(e){var t;return null!=(t=this.ok)?t:e}unwrapOrNull(){var e;return null!=(e=this.ok)?e:null}isOk(){return null===this.err&&void 0!==this.ok}isErr(){return null!==this.err}getErr(){return this.err}}
12function $e(){const e=window.PushlySDK;return(t=e)&&"object"==typeof t&&"iid"in t&&"string"==typeof t.iid?e:null;var t}var We=(e=>(e.GET="GET",e.POST="POST",e))(We||{});function Ke(e){return k(this,null,(function*(){return new Promise((t=>setTimeout(t,e)))}))}const Fe=[429,503];const Be=e=>new z(H.REQUEST_URL_INVALID,null,e),Ve=()=>new z(H.REQUEST_NO_RESULT),Ge=e=>new z(H.REQUEST_FAILED,null,String(e)),He=(e,t)=>new z(H.REQUEST_DESERIALIZATION_FAILED,t,e),qe=e=>new z(H.REQUEST_FAILED,e);class je{constructor(e,t,s=null,i={},r){var n,o,a,l,u;P(this,"_id"),P(this,"_method"),P(this,"_requestUrl"),P(this,"_data"),P(this,"_headers"),P(this,"_parameters"),P(this,"_logger"),P(this,"jitterMillis"),P(this,"_timeoutMillis"),P(this,"_maxAttempts"),P(this,"_cacheMode"),this._logger=null!=r?r:ne._getInstance("Request"),this._id=Ue(5),this._method=e,this._requestUrl=t,this._data=s,this._headers=y({},e===We.POST?{"Content-Type":"text/plain"}:{}),this._parameters=null!=(n=i.parameters)?n:{},this.jitterMillis=null!=(o=i.jitterMillis)?o:null,this._timeoutMillis=null!=(a=i.timeoutMillis)?a:null,this._maxAttempts=null!=(l=i.maxAttempts)?l:W._eventMaxSendAttempts,this._cacheMode=null!=(u=i.cacheMode)?u:null}_getParameter(e){var t;return null!=(t=this._parameters[e])?t:null}_setParameter(e,t){this._parameters[e]=t}_removeParameter(e){delete this._parameters[e]}_getHeader(e){var t;return null!=(t=this._headers[e])?t:null}_setHeader(e,t){this._headers[e]=t}_removeHeader(e){delete this._headers[e]}_getJitterMillis(){var e;return null!=(e=this.jitterMillis)?e:null}_setJitterMillis(e){this.jitterMillis=e}get _url(){try{let e=new URL(this._requestUrl);return Object.keys(this._parameters).length&&Object.entries(this._parameters).forEach((([t,s])=>{e.searchParams.append(t,s)})),xe.Ok(e)}catch(e){return xe.Err(Be(this._requestUrl))}}get _requestOptions(){const e=this._url;return e.isErr()?e:xe.Ok([e.unwrap(),y({method:this._method,headers:this._headers,body:this._data?JSON.stringify(this._data):void 0,keepalive:!0},this._cacheMode?{cache:this._cacheMode}:{})])}_perform(){return k(this,null,(function*(){return new Promise((e=>{let t,s=0;const i=()=>`(${this._id}-${s})`,r=()=>{t=new Date,s+=1,this._logger.verbose(`${i()} Opening ${this._requestUrl}`)},n=()=>{const e=((new Date).getTime()-t.getTime())/1e3;this._logger.verbose(`${i()} Closed (${e.toFixed(4)}) ${this._requestUrl}`)},o=(e,t)=>!(s>=this._maxAttempts)&&(!!function(e){return void 0===e||408===e||429===e||e>=500&&e<=599}(e)&&(n(),setTimeout((()=>a()),function(e,t){if(void 0!==t){const e=Math.min(1e3*t,1e4);return e+Math.random()*e*.2}const s=Math.min(1e4,500*E(2,e-1));return Math.random()*s}(s,t)),!0)),a=()=>k(this,null,(function*(){r();const t=new AbortController;let s;try{const[r,l]=this._requestOptions.unwrap();this.jitterMillis&&(yield Ke(this.jitterMillis)),null!==this._timeoutMillis&&(s=setTimeout((()=>t.abort()),this._timeoutMillis));const u=yield fetch(r,v(y({},l),{signal:t.signal}));if(!u.ok){const e=function(e,t){if(null===t||!Fe.includes(e))return;if(!t.trim())return;const s=Number(t);return!Number.isFinite(s)||s<0?void 0:s}(u.status,u.headers.get("Retry-After"));if(o(u.status,e))return}if(204===u.status)return n(),void e(xe.Ok({response:u}));if(!u.ok)return n(),void e(xe.Err(Ge(u.status)));const c=yield u.text();if(!c)return n(),void e(xe.Err(Ve()));try{n(),e(xe.Ok({data:JSON.parse(c),response:u}))}catch(a){this._logger.warn(`${i()} Unable to decode response: ${c}`),e(xe.Err(He(c,j(a))))}}catch(l){if(!o()){n();const t=j(l);e(xe.Err(qe(t)))}}finally{s&&clearTimeout(s)}}));a()}))}))}}const Qe=e=>{const t="number"==typeof e?new Date(e):e,s=new Date;return t.getTime()-s.getTime()};class ze{constructor(e,t,s){P(this,"logger"),P(this,"cached",null),P(this,"hydrating",null),P(this,"previewed",null),this.domainKey=e,this.settingsStore=t,this.logger=null!=s?s:ne._getInstance("DomainSettingsProvider")}static get _servableForMs(){return 1e3*(ve._pnDomainSettingsCacheTtlSeconds+ve._pnDomainSettingsStaleWhileRevalidateSeconds)}_get(){return k(this,null,(function*(){if(ve._isPreviewModeEnabled){if(this.previewed)return xe.Ok(this.previewed);this.logger.debug("Preview mode - ignoring stored settings");const e=yield this._hydrate();return e.isOk()&&(this.previewed=e.unwrap()),e}const e=yield this._getFromCache();return e?(e.isStale?(this.logger.verbose("Serving stale settings while revalidating"),this._hydrate().catch((e=>this.logger.error(e)))):this.logger.verbose("Hydrated from cache"),xe.Ok(e.value)):this._hydrate()}))}get _configProvider(){return{_get:()=>k(this,null,(function*(){const e=yield this._get();return e.isErr()?e:xe.Ok(e.unwrap().config)})),_getCachedSync:()=>{var e,t;return null!=(t=null==(e=this._getCachedSync())?void 0:e.config)?t:null}}}
12get _promptsProvider(){return{_get:()=>k(this,null,(function*(){const e=yield this._get();return e.isErr()?e:xe.Ok(e.unwrap().prompts)})),_getCachedSync:()=>{var e,t;return null!=(t=null==(e=this._getCachedSync())?void 0:e.prompts)?t:null}}}_getFromCache(){return k(this,null,(function*(){const e=yield this.settingsStore._getDomainSettings();if(!e)return null;const t=Math.abs(Qe(e.ts)),s=1e3*ve._pnDomainSettingsCacheTtlSeconds;return t<s?(this.logger.verbose(`${((s-t)/1e3).toFixed(2)}s until next fetch from remote`),this.cached=e,{value:e.value,isStale:!1}):t<ze._servableForMs?(this.cached=e,{value:e.value,isStale:!0}):(this.cached=null,null)}))}_getCachedSync(){const e=this._injectedSettings;return e||(this.previewed?this.previewed:this.cached&&Math.abs(Qe(this.cached.ts))<ze._servableForMs?this.cached.value:null)}get _injectedSettings(){const e=ve._injectedDomainConfig,t=ve._injectedPromptGroups;return e&&t?{config:e,prompts:t}:null}_hydrate(){return null!=this.hydrating||(this.hydrating=this._hydrateFromRemote().finally((()=>this.hydrating=null))),this.hydrating}_hydrateFromRemote(){return k(this,null,(function*(){const e=yield this._resolveSettings();if(e.isErr())return e;const t=e.unwrap();this.cached={value:t,ts:Date.now()};try{yield this.settingsStore._setDomainSettings(t)}catch(s){this.logger.error(j(s))}return xe.Ok(t)}))}_resolveSettings(){return k(this,null,(function*(){const e=ve._injectedDomainConfig;if(e){this.logger.debug("Using injected domain settings");const t=ve._injectedPromptGroups,s=null!=t?t:(yield this._fetchPrompts()).unwrapOr([]);return xe.Ok({config:e,prompts:s})}const t=yield this._fetchMergedDocument();return t.isOk()?t:(this.logger.verbose("Merged settings document unavailable - falling back to separate documents"),this._fetchSeparateDocuments())}))}get _requestOptions(){return ve._isPreviewModeEnabled?{cacheMode:"reload"}:{}}_fetchMergedDocument(){return k(this,null,(function*(){var e;const t=`${ve._cdnDomainSettingsUrl}/${this.domainKey}/web/settings`,s=new je(We.GET,t,null,v(y({},this._requestOptions),{maxAttempts:1})),i=yield s._perform();if(i.isErr())return i;const r=i.unwrap().data;return(null==r?void 0:r.config)&&"prompts"in r?(this.logger.verbose("Hydrated from remote"),xe.Ok({config:pe(r.config),prompts:(null!=(e=r.prompts)?e:[]).map((e=>pe(e)))})):xe.Err(new z(H.DOMAIN_CONFIGURATION_LOAD_FAILED))}))}_fetchSeparateDocuments(){return k(this,null,(function*(){const[e,t]=yield Promise.all([this._fetchConfig(),this._fetchPrompts()]);return e.isErr()?e:xe.Ok({config:e.unwrap(),prompts:t.unwrapOr([])})}))}_fetchConfig(){return k(this,null,(function*(){const e=`${ve._cdnDomainSettingsUrl}/${this.domainKey}/web/config`,t=yield new je(We.GET,e,null,this._requestOptions)._perform();if(t.isErr())return t;const s=t.unwrap().data;return s?xe.Ok(pe(s)):xe.Err(new z(H.DOMAIN_CONFIGURATION_LOAD_FAILED))}))}_fetchPrompts(){return k(this,null,(function*(){const e=`${ve._cdnDomainSettingsUrl}/${this.domainKey}/web/prompts`,t=yield new je(We.GET,e,null,this._requestOptions)._perform();if(t.isErr())return t;const s=t.unwrap().data;return s?xe.Ok(s.map((e=>pe(e)))):xe.Err(new z(H.PROMPTS_LOAD_FAILED))}))}}const Ye=512,Xe="(?:\\+|%20)";function Ze(e,t){if(!t)return;const s=e[e.length-1];"literal"!==(null==s?void 0:s.type)?e.push({type:"literal",value:t}):s.value+=t}function Je(e){if(!function(e){return!(!e||e.length>Ye||/\\[1-9]|\(\?(?!:)|\{(?:\d{4,}|\d+,\d{4,})\}/.test(e))}(e))return null;const t=[];let s="";for(let i=0;i<e.length;i++){if(e.startsWith(Xe,i)){Ze(t,s),s="",t.push({type:"alternatives",values:["+","%20"]}),i+=Xe.length-1;continue}const r=e[i];if("^"!==r&&"$"!==r)if("\\"!==r)if("."!==r||"*"!==e[i+1])if("*"!==r)if("("!==r)s+=r;else{const r=e.indexOf(")",i+1);if(-1===r)return null;const n=e.slice(i+1,r),o=n.startsWith("?:")?n.slice(2):n;if(o.includes("|")){Ze(t,s),s="",t.push({type:"alternatives",values:o.split("|").map((e=>e.replace(/\\(.)/g,"$1")))}),i=r;continue}s+=o.replace(/\\(.)/g,"$1"),i=r}else Ze(t,s),s="",t.push({type:"wildcard"});else Ze(t,s),s="",t.push({type:"wildcard"}),i+=1;else{const t=e[i+1];if(!t)return null;s+=t,i+=1}else Ze(t,s),s="",t.push({type:"^"===r?"anchorStart":"anchorEnd"})}return Ze(t,s),t}function et(e,t,s={}){const i=Je(t);if(!i)return!1;const r=e.toLowerCase();
12for(const a of i)"literal"===a.type?a.value=a.value.toLowerCase():"alternatives"===a.type&&(a.values=a.values.map((e=>e.toLowerCase())));const n=!0===s.anchored,o=function(e,t,s){const i=e.length,r=Array.from({length:t.length+1},(()=>new Array(i+1).fill(!1)));for(let n=0;n<=i;n++)r[t.length][n]=!s||n===i;for(let n=t.length-1;n>=0;n--){const s=t[n];for(let t=i;t>=0;t--){let o=!1;o="anchorStart"===s.type?0===t&&r[n+1][t]:"anchorEnd"===s.type?t===i&&r[n+1][t]:"wildcard"===s.type?r[n+1][t]||t<i&&r[n][t+1]:"literal"===s.type?e.startsWith(s.value,t)&&r[n+1][t+s.value.length]:s.values.some((s=>e.startsWith(s,t)&&r[n+1][t+s.length])),r[n][t]=o}}return r}(r,i,n);return n?o[0][0]:o[0].some(Boolean)}function tt(e){var t,s;const i=null!=(t=e.whitelist_domains)?t:[],r=null!=(s=e.sdk_event_only_domains)?s:[],n=e.flags.includes(W._sdkHasEventsOnlyDomainsFlag),o=be._location,a=i.some((e=>rt(e,o))),l=r.some((e=>rt(e,o)));return n&&a&&l}function st(e){if(!e.endsWith("*")||e.endsWith("\\*"))return e;const t=e.slice(0,e.endsWith(".*")?-2:-1);return 0===t.length?e:function(e){return!/[/:?#]/.test(e.replace(/^https?:\/\//i,""))}(t)?t:e}function it(e){return(e.startsWith("*.")?[e,e.slice(2)]:[e]).map(st)}function rt(e,t){const s=`${t.protocol}//${t.hostname}`,i=`${t.protocol}//${t.host}`,r=t.href,n=[s,i,r,s.replace(/^https?:\/\//i,""),i.replace(/^https?:\/\//i,""),r.replace(/^https?:\/\//i,"")];return function(e){var t;const s=[];let i=0,r="";for(let n=0;n<e.length;n++){const o=e[n];if("\\"!==o){if("("===o)i+=1;else if(")"===o)i=Math.max(0,i-1);else if("|"===o&&0===i){s.push(r),r="";
12continue}r+=o}else r+=o+(null!=(t=e[n+1])?t:""),n+=1}return s.push(r),s.filter((e=>e.length>0))}(e).flatMap(it).some((e=>n.some((t=>et(t,e,{anchored:!0})))))}class nt{constructor(e,t,s){this.delegate=e,this.domain=t,this.logger=s}static get _defaultPermissions(){return{permission:"default",token:null}}}class ot extends nt{constructor(e,t,s,i){super(t,s,null!=i?i:ne._getInstance("WebPushRegistrationService")),this.workerService=e}get _permissionsApi(){return ye._navigator.permissions}get _notificationApi(){return ye._scope.Notification}_getToken(){return k(this,null,(function*(){return(yield this._getCurrentPermissions()).token}))}_getCurrentPermissions(){return k(this,null,(function*(){let e=nt._defaultPermissions;try{const t=yield this._permissionsApi.query({name:"notifications"});e.permission="prompt"===t.state?"default":t.state}catch(t){this._notificationApi&&(e.permission=this._notificationApi.permission)}if("granted"===e.permission)try{const t=yield this.workerService._getSubscription();t&&(e.token=t.toJSON())}catch(s){this.logger.warn("Unable to read current subscription.",j(s).message)}return e}))}_requestNotificationPermission(e){return k(this,null,(function*(){if(null!=e||(e=yield this._getCurrentPermissions()),"denied"===e.permission||"granted"===e.permission&&e.token)return this.logger.debug(`Permissions already ${e.permission}`),e;"granted"===e.permission&&this.logger.info("Subscription not found. Attempting to resubscribe.");try{return this._requestWebPushPermissions(e)}catch(t){return this.logger.debug("RNP",t),this._getCurrentPermissions()}}))}_requestWebPushPermissions(e){return k(this,null,(function*(){var t,s;const i=null!=e?e:yield this._getCurrentPermissions();switch("default"===i.permission&&(null==(s=null==(t=this.delegate)?void 0:t._onPushPermissionRequested)||s.call(t),this.logger.info("Requesting permission")),i.permission=yield this._notificationApi.requestPermission(),i.permission){case"granted":yield this._handlePermissionGranted();break;case"denied":yield this._handlePermissionDenied();break;case"default":yield this._handlePermissionDismissed()}return i}))}_handlePermissionGranted(){return k(this,null,(function*(){var e,t,s,i,r,n;this.logger.verbose("Handling permission granted status"),null==(t=null==(e=this.delegate)?void 0:e._onPushPermissionGranted)||t.call(e);const o=yield this.workerService._subscribe();if(o.isOk()&&o.unwrap()){const e=o.unwrap();e?null==(i=null==(s=this.delegate)?void 0:s._onPushSubscriptionSucceeded)||i.call(s,e.toJSON()):this.logger.warn("Subscription request returned null.")}else{const e=o.getErr();this.logger.error("Unable to perform subscription",e),null==(n=null==(r=this.delegate)?void 0:r._onPushSubscriptionFailed)||n.call(r,e)}}))}_handlePermissionDenied(){return k(this,null,(function*(){var e,t;null==(t=null==(e=this.delegate)?void 0:e._onPushPermissionDenied)||t.call(e)}))}_handlePermissionDismissed(){return k(this,null,(function*(){var e,t;null==(t=null==(e=this.delegate)?void 0:e._onPushPermissionDismissed)||t.call(e)}))}}var at=(e=>(e.GRANTED="granted",e.DENIED="denied",e.DISMISSED="dismissed",e.DEFAULT="default",e))(at||{});function lt(e){switch(e){case"granted":return"granted";case"denied":return"denied";default:return"default"}}var ut=(e=>(e.WEB_PUSH_UNSUPPORTED="web_push_unsupported",e.HOST_NOT_WHITELISTED="host_not_whitelisted",e.SW_INSTALL_FAILED="sw_install_failed",e.PROMPTS_LOAD_FAILED="load_failed",e.NO_ELIGIBLE_PROMPTS="no_eligible_prompts",e.PROMPTING_SUPPRESSED="prompting_suppressed",e.USER_PERMISSION_DENIED="user_permission_denied",e.USER_PERMISSION_DISMISSED="user_permission_dismissed",e.USER_PERMISSION_GRANTED="user_permission_granted",e.PROMPT_INELIGIBLE_FCAP="prompt_ineligible_fcap",e.SLIDE_PROMPT_THEME_UNUSABLE="slide_prompt_theme_unusable",e.USER_DELETED="user_deleted",e))(ut||{});class ct{constructor(e,t){P(this,"status",null),P(this,"handler",(()=>{this.listener()})),this.listener=e,this.logger=t}static get _isSupported(){var e;return"permissions"in ye._navigator&&"function"==typeof(null==(e=ye._navigator.permissions)?void 0:e.query)}_start(){return k(this,null,(function*(){if(!this.status)try{this.status=yield ye._navigator.permissions.query({name:"notifications"}),this.status.addEventListener("change",this.handler),this.logger.debug("Watching notification permission for changes")}
12catch(e){this.logger.debug("Permissions API unavailable for notifications; permission changes detected at next load only")}}))}_stop(){var e;null==(e=this.status)||e.removeEventListener("change",this.handler),this.status=null}}class dt{constructor(e,t,s,i,r,n){P(this,"registrationService"),P(this,"additionalEventData",{}),P(this,"additionalEventContext",{}),P(this,"permissionChangeObserver",null),P(this,"logger"),this.domain=e,this.workerService=t,this.eventManager=s,this.userStore=i,this.lifecycleCallbacks=r,this.logger=null!=n?n:ne._getInstance("NotificationPermissionService"),this.registrationService=new ot(this.workerService,this,this.domain)}static _getWebPushSupport(){return k(this,null,(function*(){const[e,t]=yield ye._getIsWebPushSupported();return e?xe.Ok(!0):xe.Err(new z(H.WEB_PUSH_NOT_SUPPORTED,null,t))}))}get _provider(){return ye._pushProvider}get _currentHref(){return ye._location.href}_init(){return k(this,null,(function*(){return this.domain.vapid_public_key?xe.Ok(!0):xe.Err(new z(H.WEB_PUSH_CONFIGURATION_MISSING))}))}_getCurrentPermissions(){return k(this,null,(function*(){const e=yield this.registrationService._getCurrentPermissions();return y({provider:this._provider},e)}))}_synchronize(){return k(this,null,(function*(){var e,t;if(tt(this.domain))return this.logger.debug("[Event Only Mode] Skipping notification permission check"),null;if((yield dt._getWebPushSupport()).isErr())return this.logger.warn("Permission synchronization failed - WebPush is not supported"),null;this._provider===Ee.VAPID&&(yield this.workerService._ready(200)),this.logger.debug("Checking current notification permissions");const s=yield this._getCurrentPermissions(),i=yield this.userStore._getSubscriberStatus();s.token&&(fe._token=s.token),yield this._reconcileSubscriberStatus(s,i);const r=yield this._getCurrentPermissions();"granted"!==r.permission?fe._token=null:r.token?(fe._token=r.token,this.logger.info("Current token:",r.token)):this.logger.warn("Unable to resolve current token");const n=yield this.userStore._getLastNotificationPermission();return n&&n!==r.permission&&(null==(t=null==(e=this.lifecycleCallbacks)?void 0:e.onPushSDKDidReceivePermissionStatusChange)||t.call(e,lt(r.permission))),yield this.userStore._setLastNotificationPermission(r.permission),r}))}_watch(e){tt(this.domain)||(ct._isSupported?(null!=this.permissionChangeObserver||(this.permissionChangeObserver=new ct((()=>k(this,null,(function*(){this.logger.debug("Notification permission changed â re-synchronizing"),yield this._synchronize(),yield null==e?void 0:e()}))),this.logger)),this.permissionChangeObserver._start()):this.logger.debug("Permissions API change events unavailable; permission changes reconciled at next load"))}_reconcileSubscriberStatus(e,t){return k(this,null,(function*(){switch(e.permission){case"granted":return this._reconcileGrantedPermission(t,e.token);case"denied":return this._reconcileDeniedPermission(t);case"default":return this._reconcileDefaultPermission(t);default:this.logger.warn("Unhandled permission and subscription status combination:",{provider:e.provider,permission:e.permission,token:e.token,subscriptionStatus:t})}}))}_reconcileGrantedPermission(e,t){return k(this,null,(function*(){if(e===Te.SUBSCRIBED&&t)return(yield this.workerService._hasStaleVapidSubscription())?(this.logger.info("VAPID applicationServerKey rotated; re-subscribing under the current key"),void(yield this._attemptSilentSubscription())):(yield this._reconcileReportedSubscription(t),void this.logger.info("Current notification permissions:",Ne(e)));if(e===Te.SUBSCRIBED&&!t){const e=yield this._resolveExistingSubscriptionToken();return e?(this.logger.debug("Existing subscription surfaced after service worker warm-up; skipping re-subscribe"),fe._token=e,void(yield this._reconcileReportedSubscription(e))):(this.logger.verbose("Subscription genuinely missing for granted permissions; recovering"),void(yield this._attemptSilentSubscription()))}const s=yield this._resolveExistingSubscriptionToken();if(s)return this.logger.debug("Adopting existing subscription for granted user; promoting status without re-report"),fe._token=s,yield this._reconcileReportedSubscription(s),void(yield this.userStore._setSubscriberStatus(Te.SUBSCRIBED));(yield this._attemptSilentSubscription())&&(this.logger.debug("Updating subscriber status to",Ne(Te.SUBSCRIBED)),yield this.userStore._setSubscriberStatus(Te.SUBSCRIBED))}))}_reconcileDeniedPermission(e){return k(this,null,(function*(){switch(e){case Te.DENIED:return void this.logger.info("Current notification permissions:",Ne(e));case Te.SUBSCRIBED:return yield this.userStore._setSubscriberStatus(Te.DENIED),void(yield this._revokePermission());case Te.DISMISSED:case Te.NOT_DETERMINED:default:return this.logger.debug("Updating subscriber status to",Ne(Te.DENIED)),void(yield this.userStore._setSubscriberStatus(Te.DENIED))}}))}_reconcileDefaultPermission(e){return k(this,null,(function*(){switch(e){case Te.NOT_DETERMINED:return void this.logger.info("Current notification permissions:",Ne(e));case Te.DISMISSED:return void this.logger.info(`User has recently ${Ne(Te.DISMISSED)} permissions`);case Te.SUBSCRIBED:return this.logger.debug("Updating subscriber status to",Ne(Te.NOT_DETERMINED)),yield this.userStore._setSubscriberStatus(Te.NOT_DETERMINED),void(yield this._revokePermission());case Te.DENIED:default:return this.logger.debug("Updating subscriber status to",Ne(Te.NOT_DETERMINED)),void(yield this.userStore._setSubscriberStatus(Te.NOT_DETERMINED))}}))}_requestPermission(e){return k(this,null,(function*(){var t,s,i,r,n;null!=e||(e=ve._defaultDismissedStatusExpirationSeconds);const o=yield this._getCurrentPermissions();if("denied"===o.permission)return this.logger.info("Permission already denied"),o;if("granted"===o.permission)return this.logger.info("Permission already granted"),o;let a;null==(t=this.permissionChangeObserver)||t._stop();try{a=yield null==(s=this.registrationService)?void 0:s._requestNotificationPermission({permission:o.permission,token:o.token})}finally{null==(i=this.permissionChangeObserver)||i._start()}const l=v(y({},a),{provider:this._provider});return l.permission===o.permission&&l.token===o.token||null==(n=null==(r=this.lifecycleCallbacks)?void 0:r.onPushSDKDidReceivePermissionStatusChange)||n.call(r,lt(l.permission)),l}))}_revokePermission(){return k(this,null,(function*(){(yield this.workerService._unsubscribe())&&this.eventManager._track(ue.MANUAL_UNSUBSCRIBED)}))}_attemptSilentSubscription(){return k(this,null,(function*(){this.logger.verbose("Attempting silent subscription");const e=yield this.workerService._subscribe();if(e.isErr())return this.logger.warn(e.getErr()),this.eventManager._track(e.getErr()),!1;let t=null;if(e.isOk()){const s=e.unwrap();t=s?s.toJSON():null}return t?(this.logger.debug("Silent subscription succeeded:",t),fe._token=t,this.eventManager._track(yield this._getBaseSubscriptionEvent()),yield this._recordReportedSubscription(t),!0):(this.logger.debug("Silent subscription failed"),!1)}))}_resolveExistingSubscriptionToken(){return k(this,arguments,(function*(e=ve._coldSubscriptionResolutionBudgetMs){if(!(yield this.workerService._getRegistration()))return null;yield this.workerService._ready(e);
12const t=yield this.workerService._getSubscription();return t?t.toJSON():null}))}_reconcileReportedSubscription(e){return k(this,null,(function*(){const t=dt._subscriptionFingerprint(e);if(!t)return;(yield this.userStore._getReportedSubscriptionFingerprint())!==t&&(this.logger.info("Live subscription differs from last reported value; re-reporting subscription_data"),yield this.eventManager._track(ue.TOKEN_REFRESHED,{[ve._tevDataPageUrlKey]:this._currentHref}),yield this.userStore._setReportedSubscriptionFingerprint(t))}))}_recordReportedSubscription(e){return k(this,null,(function*(){const t=dt._subscriptionFingerprint(e);t&&(yield this.userStore._setReportedSubscriptionFingerprint(t))}))}static _subscriptionFingerprint(e){var t,s,i,r;return e&&e.endpoint?`${e.endpoint}|${null!=(s=null==(t=e.keys)?void 0:t.p256dh)?s:""}|${null!=(r=null==(i=e.keys)?void 0:i.auth)?r:""}`:null}_getIsEligibleToPrompt(){return k(this,null,(function*(){const e=yield this.userStore._getIsInDeletedState(),t=yield this.userStore._getIsSubscribed(),s=yield this.userStore._getIsUserInSoftUnsubscribedState(),i=yield this.userStore._getSubscriberStatus();return e?xe.Err(ut.USER_DELETED):t?xe.Err(ut.USER_PERMISSION_GRANTED):s||i===Te.DENIED?xe.Err(ut.USER_PERMISSION_DENIED):i===Te.DISMISSED?xe.Err(ut.USER_PERMISSION_DISMISSED):xe.Ok(!0)}))}_setPermissionEventContext(e){this.additionalEventContext=e}_resetPermissionEventContext(){this.additionalEventContext={}}_setAdditionalPermissionEventData(e){this.additionalEventData=e}_onPushPermissionRequested(){return k(this,null,(function*(){var e,t;this.eventManager._track(ue.PERMISSION_SHOWN,y({},this.additionalEventData)),null==(t=null==(e=this.lifecycleCallbacks)?void 0:e.onPushSDKDidRequestNotificationPermissions)||t.call(e)}))}_onPushPermissionDenied(){return k(this,null,(function*(){var e,t;yield this.userStore._setSubscriberStatus(Te.DENIED),null==(t=null==(e=this.lifecycleCallbacks)?void 0:e.onPushSDKDidReceivePermissionResponse)||t.call(e,at.DENIED),this.eventManager._track(ue.PERMISSION_DENIED,y({},this.additionalEventData)),this._resetPermissionEventContext()}))}_onPushPermissionDismissed(){return k(this,null,(function*(){var e,t,s;const i=null!=(e=this.additionalEventContext.dismissalExpirationSeconds)?e:ve._defaultDismissedStatusExpirationSeconds;0===i?(this.logger.debug("Setting subscriber status to NOT_DETERMINED"),yield this.userStore._setSubscriberStatus(Te.NOT_DETERMINED)):(this.logger.debug(`Setting subscriber status to DISMISSED for ${i}s`),yield this.userStore._setSubscriberStatusDismissed(i)),null==(s=null==(t=this.lifecycleCallbacks)?void 0:t.onPushSDKDidReceivePermissionResponse)||s.call(t,at.DISMISSED),this.eventManager._track(ue.PERMISSION_DISMISSED,y({},this.additionalEventData)),this._resetPermissionEventContext()}))}_onPushPermissionGranted(){return k(this,null,(function*(){var e,t;yield this.userStore._setSubscriberStatus(Te.SUBSCRIBED),null==(t=null==(e=this.lifecycleCallbacks)?void 0:e.onPushSDKDidReceivePermissionResponse)||t.call(e,at.GRANTED),this.eventManager._track(ue.PERMISSION_ACCEPTED,y({},this.additionalEventData))}))}_onPushSubscriptionSucceeded(e){return k(this,null,(function*(){var t,s;fe._token=e,null==(s=null==(t=this.lifecycleCallbacks)?void 0:t.onPushSDKDidRegisterForRemoteNotificationsWithDeviceToken)||s.call(t,e);const i=yield this._getBaseSubscriptionEvent();i.data=y(y({},this.additionalEventData),i.data),this.eventManager._track(i),yield this._recordReportedSubscription(e),this._resetPermissionEventContext()}))}_getBaseSubscriptionEvent(){return k(this,null,(function*(){return fe._build(ue.TOKEN_RECEIVED,{[ve._tevDataPageUrlKey]:this._currentHref,[ve._tevSubscribedUrlKey]:this._currentHref})}))}_onPushSubscriptionFailed(e){return k(this,null,(function*(){var t,s;fe._token=null,this.logger.info(`event:${ue.ERROR}`,e),null==(s=null==(t=this.lifecycleCallbacks)?void 0:t.onPushSDKDidFailToRegisterForRemoteNotificationsWithError)||s.call(t,new z(H.WEB_PUSH_SUBSCRIPTION_FAILED,e)),e&&this.eventManager._track(e),this._resetPermissionEventContext()}))}}const ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
12+/=",_t=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,pt=/^[A-Za-z0-9+/\-_]*={0,2}$/,gt=e=>{let t="";try{if(t=window.atob(e),"string"==typeof t)return t}catch(o){}if(t="",e=String(e).replace(/[\t\n\f\r ]+/g,""),!_t.test(e))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");e+="==".slice(2-(3&e.length));let s,i,r,n=0;for(;n<e.length;)s=ht.indexOf(e.charAt(n++))<<18|ht.indexOf(e.charAt(n++))<<12|(i=ht.indexOf(e.charAt(n++)))<<6|(r=ht.indexOf(e.charAt(n++))),t+=64===i?String.fromCharCode(s>>16&255):64===r?String.fromCharCode(s>>16&255,s>>8&255):String.fromCharCode(s>>16&255,s>>8&255,255&s);return t},mt=e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=gt(t),i=new Uint8Array(s.length);for(let r=0;r<s.length;++r)i[r]=s.charCodeAt(r);return i},St=e=>{let t;try{"TextEncoder"in self&&"function"==typeof self.TextEncoder&&"encode"in self.TextEncoder.prototype?(s=(new self.TextEncoder).encode(e),t=window.btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(s)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")):(t=window.btoa(e),"string"!=typeof t&&(t=void 0))}catch(i){console.warn("Unable to encode base64 string",i)}var s;return null!=t?t:e};function ft(e,t){return Promise.race(["function"==typeof t?t():Promise.resolve(t),new Promise((t=>{setTimeout((()=>t()),e)}))])}var Et=(e=>(e[e.ERROR=1]="ERROR",e))(Et||{});const bt=class{static _setEventManager(e){this.eventManager=e}static _dispatch(e,t){try{if(!this.eventManager)return void this.logger.verbose("Received",t);if(1===e)this.logger.verbose("Received",t)}catch(s){this.logger.warn(j(s))}}};P(bt,"eventManager"),P(bt,"logger"),bt.logger=ne._getInstance("Dispatch"),P(bt,"EventType",Et);let yt=bt;const vt=(e,t=!1)=>{const s=e?j(e):void 0;return z._from(s,null,H.PUSH_WORKER_REGISTRATION_EXCEPTION,t)},It=e=>{const t=e?j(e):void 0;return z._from(t,null,H.PUSH_WORKER_NOT_FOUND_EXCEPTION)},Pt=(e,t=!1)=>{const s=e?j(e):void 0;return z._from(s,null,H.PUSH_WORKER_SUBSCRIPTION_EXCEPTION,t)};class wt{constructor(e,t,s){P(this,"logger"),P(this,"_getRegistrationInFlight",null),P(this,"_subscribeInFlight",null),this.pushSdkConfig=e,this.domain=t,this.logger=null!=s?s:ne._getInstance("PushWorkerService")}get _worker(){return ye._navigator.serviceWorker}get _location(){return ye._location}_ready(e){return k(this,null,(function*(){return ft(null!=e?e:50,this._worker.ready)}))}_getRegistration(){return k(this,null,(function*(){if(this._getRegistrationInFlight)return this._getRegistrationInFlight;this._getRegistrationInFlight=this._resolveRegistration();try{return yield this._getRegistrationInFlight}finally{this._getRegistrationInFlight=null}}))}_resolveRegistration(){return k(this,null,(function*(){try{const e=yield this._worker.getRegistrations();if(!e||!e.length)return null;const[t,s]=this._getRegistrationOptions(),i=t.split("?")[0],r=e=>e.replace(/\/+$/,""),n=s.scope?r(s.scope):void 0,o=this.domain.flags.includes(ve._swShouldUnregisterNonPushlyWorkersFlag),a=[];for(let d of e){yield this._ready(50);const e=this._resolveRegistrationScriptUrl(d),t=r(d.scope)===n;!!e&&e.includes(i)?a.push(d):t||!o?t&&!this.domain.flags.includes(ve._swShouldReplaceExistingWorkerInPushlyScopeFlag)&&this.logger.warn(`Implementation Error. An existing, non-push, service worker was found at scope: ${s.scope}.`):(yield d.unregister(),this.logger.info(`Removed worker ${e} at scope ${d.scope}`))}a.sort(((e,t)=>e.scope.localeCompare(t.scope)));const l=yield this._selectKeeperRegistration(a),u=this.domain.flags.includes(ve._swDisableDuplicateWorkerCleanupFlag),c=null!==this._subscribeInFlight;for(let d of a)d!==l&&(u||c?this.logger.info(`Duplicate pushly worker at scope ${d.scope} left in place (${u?"cleanup disabled":"subscribe in flight"})`):(yield d.unregister(),this.logger.info(`Removed duplicate pushly worker at scope ${d.scope}`)));return l}catch(e){const t=j(e);yt._dispatch(yt.EventType.ERROR,t),this.logger.error(t)}return null}))}_resolveRegistrationScriptUrl(e){var t,s,i;return(null==(t=e.active)?void 0:t.scriptURL)||(null==(s=e.waiting)?void 0:s.scriptURL)||(null==(i=e.installing)?void 0:i.scriptURL)||""}_selectKeeperRegistration(e){return k(this,null,(function*(){if(!e.length)return null;for(let s of e)try{if(yield s.pushManager.getSubscription())return s}catch(t){}return e[0]}))}_register(e){return k(this,null,(function*(){let t=void 0===e?yield this._getRegistration():e;if(t)return t;const[s,i]=this._getRegistrationOptions();this.logger.info(`Installing new registration: ${s}`);try{t=yield this._worker.register(s,i)}catch(r){throw yield this._sanitizeRegistrationError(j(r),s)}return yield ft(500,(()=>k(this,null,(function*(){const e=new Date,s=()=>new Promise((i=>{if(null==t?void 0:t.active)return this.logger.verbose("New registration is ready",((new Date).getTime()-e.getTime())/1e3+"s"),i();setTimeout(s,10)}));return s()})))),t}))}_getSubscription(e){return k(this,null,(function*(){const t=void 0===e?yield this._getRegistration():e;if(!t)return null;try{return yield t.pushManager.getSubscription()}catch(s){const e=j(s);
12yt._dispatch(yt.EventType.ERROR,e),this.logger.error(e)}return null}))}_resolveColdSubscription(){return k(this,null,(function*(){const e=yield this._getRegistration();return e?(yield this._ready(ve._coldSubscriptionResolutionBudgetMs),this._getSubscription(e)):null}))}_hasStaleVapidSubscription(){return k(this,null,(function*(){const e=yield this._getSubscription();return!!e&&!this._subscriptionUsesCurrentVapidKey(e)}))}_subscriptionUsesCurrentVapidKey(e){var t;const s=null==(t=e.options)?void 0:t.applicationServerKey;if(!(s instanceof ArrayBuffer))return!0;try{return this._areApplicationServerKeysEqual(s,mt(this.domain.vapid_public_key))}catch(i){return!0}}_areApplicationServerKeysEqual(e,t){const s=new Uint8Array(e),i=t instanceof Uint8Array?t:new Uint8Array(t);if(s.byteLength!==i.byteLength)return!1;for(let r=0;r<s.byteLength;r++)if(s[r]!==i[r])return!1;return!0}_subscribe(){return k(this,null,(function*(){if(this._subscribeInFlight)return this._subscribeInFlight;this._subscribeInFlight=this._performSubscribe();try{return yield this._subscribeInFlight}finally{this._subscribeInFlight=null}}))}_performSubscribe(){return k(this,null,(function*(){let e=yield this._getSubscription();if(e||(e=yield this._resolveColdSubscription()),e){if(this._subscriptionUsesCurrentVapidKey(e))return this.logger.debug("Existing subscription found"),xe.Ok(e);this.logger.info("Existing subscription uses a stale VAPID key; re-subscribing under the current key");try{yield e.unsubscribe()}catch(r){this.logger.warn("Failed to remove stale-key subscription",j(r).message)}}let t=yield this._getRegistration();if(!t)try{t=yield this._register(t)}catch(r){return xe.Err(vt(r))}this.logger.info("Subscribing");const s=mt(this.domain.vapid_public_key);let i=xe.Ok(null);for(let n=0;n++<10;){try{yield this._ready();const e=yield t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:s});if(e){i=xe.Ok(e);break}}catch(r){const e=j(r),t=this._sanitizeSubscriptionError(e);if(10===n||!this._isRetryableSubscriptionError(e)){i=xe.Err(t);break}this.logger.warn(t)}this.logger.debug("Retrying subscription"),yield Ke(Math.floor(500*Math.random()))}return i}))}_isRetryableSubscriptionError(e){return"NotAllowedError"!==e.name&&!/could not retrieve the public key/i.test(e.message)}_unsubscribe(){return k(this,null,(function*(){try{const e=yield this._getSubscription();return e&&(yield e.unsubscribe()),!0}catch(e){const t=j(e);yt._dispatch(yt.EventType.ERROR,t),this.logger.error(t.message)}return!1}))}_getRegistrationOptions(){const e=this._location,t=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`,s=this.pushSdkConfig.sw,i=this.pushSdkConfig.swScope,r=e=>e.replace(/^https?:\/\/[^/]+/i,"").replace(/^\/+/,"");let n=s?r(s):null;n&&!n.includes(t)&&(n=`/${n}`);let o=i?r(i):null;o&&!o.includes(t)&&(o=`/${o}`);let a=n||"/pushly-sdk-worker.js";const l=a.substr(0,a.lastIndexOf("/")+1)||"/",u=this.domain.flags.includes(ve._swUseRootScopeFlag);let c=l;o?c=o:u&&(c="/");let d=c.includes(t)?c:`${t.replace(/\/$/,"")}${c}`;d=`${d.replace(/\/$/,"")}/`;return!this.domain.flags.includes(ve._swUsePathWithoutDomainKeyFlag)&&(a=`${a}${a.includes("?")?"&":"?"}domain_key=${this.pushSdkConfig.domainKey}`),[a,{updateViaCache:"none",scope:d}]}_tryFetchResourceStatus(e){return k(this,null,(function*(){try{return(yield fetch(e)).status}catch(t){return 0}}))}_sanitizeRegistrationError(e,t){return k(this,null,(function*(){if(z.KNOWN_NAMES.includes(e.name)||[/SSL certificate/i,/Failed to access storage/i,/Operation has been aborted/i,/unknown error occurred when fetching the script/i,/403/].some((t=>t.test(e.message))))return vt(e,!0);const s=yield this._tryFetchResourceStatus(t);if(/404/.test(e.message)||404===s)throw It(e);return new z(H.PUSH_WORKER_REGISTRATION_EXCEPTION,e,`sw=${t} fetchStatus=${s} errorName=${e.name}`)}))}_sanitizeSubscriptionError(e){const t=z.KNOWN_NAMES.includes(e.name)||[/push service error/i,/could not retrieve the public key/i].some((t=>t.test(e.message)))||"NotAllowedError"===e.name;return Pt(e,t)}}class Dt{constructor(e,t,s,i){P(this,"_name"),P(this,"_task"),P(this,"_intervalMilliseconds"),P(this,"_options"),P(this,"_timer"),P(this,"_isStarted"),P(this,"_isPaused"),P(this,"_startTime"),P(this,"_stopTime"),P(this,"_pausedStartTime"),P(this,"_totalPausedTime"),P(this,"_expectedTime"),P(this,"_timerDidIncrementListeners"),this._name=e,this._task=t,this._intervalMilliseconds=1e3*(null!=s?s:1),this._options=null!=i?i:{},this._isStarted=!1,this._isPaused=!1,this._startTime=0,this._stopTime=0,this._pausedStartTime=0,this._totalPausedTime=0,this._expectedTime=0,this._timerDidIncrementListeners=new Set,!1!==(null==i?void 0:i.autoStart)&&this._start()}get repeats(){var e;return!1!==(null==(e=this._options)?void 0:e.repeats)}get runtimeMilliseconds(){if(!this._startTime)return 0;const e=this._stopTime||Date.now();let t=e-this._startTime-this._totalPausedTime;return this._isPaused&&(t-=e-this._pausedStartTime),t}get runtimeSeconds(){return Math.floor(this.runtimeMilliseconds/1e3)}get isStarted(){return this._isStarted}get isPaused(){return this._isPaused}_addTimerDidIncrementListener(e){this._timerDidIncrementListeners.add(e)}_removeTimerDidIncrementListener(e){this._timerDidIncrementListeners.delete(e)}_start(){this.isStarted||(this._isStarted=!0,this._startTime=Date.now(),this._stopTime=0,this._expectedTime=this._startTime,this._options.runImmediatelyOnStart&&this._executeTask(),this._run())}_stop(){this.isStarted&&(clearTimeout(this._timer),this._stopTime=Date.now(),this._isStarted=!1,this._timer=void 0)}_pause(){this.isStarted&&!this.isPaused&&(clearTimeout(this._timer),this._pausedStartTime=Date.now(),this._isPaused=!0,this._timer=void 0)}_unpause(){if(!this.isStarted||!this.isPaused)return;this._isPaused=!1;const e=Date.now()-this._pausedStartTime;this._totalPausedTime+=e,this._expectedTime+=e,this._run()}_run(){if(!this.isStarted||this.isPaused)return;const e=Date.now()-this._expectedTime;this._expectedTime+=this._intervalMilliseconds;const t=Math.max(0,this._intervalMilliseconds-e);this._timer=setTimeout((()=>
12{this._executeTask(),this._timerDidIncrementListeners.forEach((e=>{e.onIncrement(this.runtimeSeconds)})),this.repeats?this._run():this._stop()}),t)}_executeTask(){"function"==typeof this._task?this._task(this):this._task._run(this)}}class Ot{constructor(e){P(this,"handler",(()=>{this.listener()})),this.listener=e}static get _isSupported(){const e=be._scope.navigation;return!!e&&"function"==typeof e.addEventListener}get _navigation(){return be._scope.navigation}_start(){this._navigation.addEventListener("currententrychange",this.handler)}_stop(){this._navigation.removeEventListener("currententrychange",this.handler)}}class Tt{constructor(e){P(this,"timer",null),this.listener=e}_start(){this.timer||(this.timer=new Dt("pvp_timer",(()=>{this.listener()}),1,{autoStart:!1,runImmediatelyOnStart:!1}),this.timer._start())}_stop(){var e;null==(e=this.timer)||e._stop(),this.timer=null}}const kt=class e{constructor(e,t,s,i,r,n){P(this,"previousSubscriberState",null),P(this,"lastPageViewed",null),P(this,"navigationObserver",null),this.domainConfig=e,this.eventManager=t,this.userStore=s,this.sessionStore=i,this.pageChangeListener=r,this.logger=n,this.evaluateInitialSubscriberStatus()}static _init(t,s,i,r,n,o){return null!=o||(o=ne._getInstance("PageViewProcessor")),new e(t,s,i,r,n,o)}evaluateInitialSubscriberStatus(){return k(this,null,(function*(){const e=yield this.userStore._getSubscriberStatus();null!=this.previousSubscriberState||(this.previousSubscriberState=e)}))}_start(){var e,t;this.navigationObserver||(this.navigationObserver=(e=()=>this._run(),t=this.logger,Ot._isSupported?(t.debug("Using Navigation API for page view detection"),new Ot(e)):(t.debug("Navigation API unavailable â falling back to polling for page view detection"),new Tt(e))),this._run(),this.navigationObserver._start())}_stop(){var e;null==(e=this.navigationObserver)||e._stop(),this.navigationObserver=null}_run(){return k(this,null,(function*(){var e;try{const t=this._currentLocation.href,s=this.lastPageViewed,i=yield this.userStore._getSubscriberStatus(),r=i!==this.previousSubscriberState&&i===Te.SUBSCRIBED;this.previousSubscriberState=i,s&&s===t&&!r||(r||(this.lastPageViewed=t,this.logger.verbose("Incrementing page views"),yield this.sessionStore._incrementSessionPageViewCount()),null==(e=this.pageChangeListener)||e.onPageChanged(),i===Te.SUBSCRIBED?(this.logger.verbose("Preparing page view event"),yield this._track(ue.VIEW_PAGE,t)):this.domainConfig.flags.includes(ve._domainFeatInformedContentFlag)?(this.logger.verbose("Preparing anonymous page view event"),yield this._track(ue.ANONYMOUS_VIEW_PAGE,t)):this.logger.debug("Page View tracking is not enabled"))}catch(t){const e=j(t);this.eventManager._track(e),this.logger.warn(e)}}))}_evaluate(){return this._run()}get _currentLocation(){return be._location}_track(e,t){return k(this,null,(function*(){const s={[ve._tevDataPageUrlKey]:t};this.eventManager._track(e,s)}))}};P(kt,"PAGE_VIEW_INTERVAL_SECONDS",1);let Ct=kt;const Nt=class e{constructor(e,t){P(this,"maxDepth",0),P(this,"tracking",!1),P(this,"framePending",!1),P(this,"frameHandle",null),P(this,"pendingTargets",new Set),P(this,"documentBaseline",{range:null,candidateHeight:null}),P(this,"elementStates",new WeakMap),P(this,"generation",0),P(this,"gestureGatingEnabled",!1),P(this,"lastGestureAt",0),P(this,"gestureHandler"),P(this,"gestureDocument"),this.scrollDepthTrackingEnabled=e,this.logger=t}static _init(t,s){return null!=s||(s=ne._getInstance("ScrollDepthObserver")),new e(t,s)}get _currentMaxDepth(){return this.maxDepth}_start(){this.scrollDepthTrackingEnabled?this.tracking=!0:this.logger.verbose("Scroll depth tracking disabled - not subscribing to scroll signal")}_stop(){this.tracking=!1,this._unbindGestureSignals(),this._cancelPendingFrame(),this.pendingTargets.clear()}_onScroll(e){var t;if(!this.scrollDepthTrackingEnabled||!this.tracking)return;const s=null!=(t=null==e?void 0:e.target)?t:null;(this.pendingTargets.size<4||this.pendingTargets.has(s))&&this.pendingTargets.add(s),this._scheduleSample()}_bindGestureSignals(){const t=ye._scope.document;if(!this.gestureHandler&&"function"==typeof(null==t?void 0:t.addEventListener)&&"function"==typeof t.removeEventListener){this.gestureGatingEnabled=!0,this.gestureDocument=t,this.gestureHandler=()=>this._onUserGesture();for(const s of e.GESTURE_EVENTS)t.addEventListener(s,this.gestureHandler,e.GESTURE_LISTENER_OPTIONS)}}_unbindGestureSignals(){const t=this.gestureDocument,s=this.gestureHandler;if(t&&s)for(const i of e.GESTURE_EVENTS)t.removeEventListener(i,s,e.GESTURE_LISTENER_OPTIONS);this.gestureDocument=void 0,this.gestureHandler=void 0,this.gestureGatingEnabled=!1,this.lastGestureAt=0}_onUserGesture(){this.lastGestureAt=Date.now()}_onPageChanged(){this._cancelPendingFrame(),this.pendingTargets.clear(),this.maxDepth=0,this.documentBaseline.range=null,this.documentBaseline.candidateHeight=null,this.generation++}_scheduleSample(){if(this.framePending)return;this.framePending=!0;const e=ye._scope,t=()=>{this.framePending=!1,this.frameHandle=null,this._sampleDepth()};"function"==typeof e.requestAnimationFrame?this.frameHandle=e.requestAnimationFrame(t):t()}_cancelPendingFrame(){var e;if(null!==this.frameHandle){const t=ye._scope;null==(e=t.cancelAnimationFrame)||e.call(t,this.frameHandle),this.frameHandle=null}this.framePending=!1}_sampleDepth(){let e=0;try{for(const s of this.pendingTargets)try{const t=this._depthFor(s);t>e&&(e=t)}catch(t){this.logger.verbose("Scroll depth sample failed",t)}}finally{this.pendingTargets.clear()}e>this.maxDepth&&(this.maxDepth=e)}_depthFor(e){if(null===e)return this._computeDepthPct();const t=ye._scope,s=t.document;return e===t||e===s?this._computeDepthPct():!s||e!==s.documentElement&&e!==s.scrollingElement?1!==e.nodeType?0:this._computeElementDepthPct(e):this._computeDepthPct()}_computeDepthPct(){var e;const t=ye._scope,s=t.document,i=null==s?void 0:s.documentElement,r=null!=(e=null==s?void 0:s.scrollingElement)?e:i;if(!r||!i)return 0;
12const n=i.clientHeight||t.innerHeight,o=this._resolveBaselineRange(this.documentBaseline,r.scrollHeight,n);return null===o?0:this._progressPct(t.scrollY,o)}_computeElementDepthPct(e){const t=this._stateFor(e);if(!t.eligible)return 0;const s=this._resolveBaselineRange(t,e.scrollHeight,e.clientHeight);return null===s?0:this._progressPct(e.scrollTop,s)}_resolveBaselineRange(e,t,s){if(null!==e.range)return e.range;const i=t-s;return i<200?(e.candidateHeight=null,null):e.candidateHeight===t&&this._gestureAllowsBaseline()?(e.range=i,i):(e.candidateHeight=t,null)}_gestureAllowsBaseline(){return!this.gestureGatingEnabled||Date.now()-this.lastGestureAt<=1500}_progressPct(e,t){return e>=t-1?100:this.clamp(Math.floor(e/t*100),0,100)}_stateFor(e){const t=this.elementStates.get(e);if(t&&t.generation===this.generation){if(!(!t.eligible&&!t.staticVerdict&&Date.now()-t.evaluatedAt>2e3))return t}const s=this._evaluateEligibility(e);return this.elementStates.set(e,s),s}_evaluateEligibility(e){const t={generation:this.generation,evaluatedAt:Date.now(),range:null,candidateHeight:null},s=e=>v(y({},t),{eligible:!1,staticVerdict:e}),i="string"==typeof e.tagName?e.tagName.toUpperCase():"";if("TEXTAREA"===i||"SELECT"===i||"INPUT"===i)return s(!0);if(e.isContentEditable)return s(!0);if("function"==typeof e.closest&&e.closest(".push-sdk-prompt-container"))return s(!0);if(e.scrollHeight-e.clientHeight<200)return s(!1);const r=ye._scope;if("function"==typeof r.getComputedStyle){const t=r.getComputedStyle(e).overflowY;if("auto"!==t&&"scroll"!==t&&"overlay"!==t)return s(!1)}const n=r.innerWidth,o=r.innerHeight;if(!n||!o||"function"!=typeof e.getBoundingClientRect)return s(!1);const a=e.getBoundingClientRect();return a.height<.5*o||a.width<.5*n?s(!1):(this.logger.verbose("Qualified scroll container for depth tracking"),v(y({},t),{eligible:!0,staticVerdict:!1}))}clamp(e,t,s){return Math.min(Math.max(e,t),s)}};P(Nt,"GESTURE_EVENTS",["wheel","touchstart","touchmove","keydown","mousedown"]),P(Nt,"GESTURE_LISTENER_OPTIONS",{passive:!0,capture:!0});let Rt=Nt;var At=(e=>(e.SLIDE="SLIDE",e.PUBLISHER_CUSTOM="PUBLISHER_CUSTOM",e.NATIVE="NATIVE",e))(At||{}),Mt=(e=>(e.SECONDS="seconds",e.MINUTES="minutes",e.HOURS="hours",e.DAYS="days",e.MONTHS="months",e))(Mt||{}),Lt=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(Lt||{}),Ut=(e=>(e.SESSION_START="SESSION_START",e.SESSION_TIME_ON_SITE="SESSION_TIME_ON_SITE",e.SESSION_TIME_ON_PAGE="SESSION_TIME_ON_PAGE",e.SESSION_PAGE_VIEWS="SESSION_PAGE_VIEWS",e.SCROLL_DEPTH="SCROLL_DEPTH",e))(Ut||{});function xt(e){const t=null==e?void 0:e.visitor;if(t&&"object"==typeof t){if("session_page_views"in t)return{type:"SESSION_PAGE_VIEWS",minPageViews:t.session_page_views};if("session_time_on_site_seconds"in t||"time_on_page_seconds"in t)return{type:"session_time_on_site_seconds"in t?"SESSION_TIME_ON_SITE":"SESSION_TIME_ON_PAGE",timeInterval:{intervalSeconds:"session_time_on_site_seconds"in t?t.session_time_on_site_seconds:t.time_on_page_seconds,displayMetric:Mt.SECONDS}};if("scroll_depth_pct"in t&&Number.isInteger(t.scroll_depth_pct)&&t.scroll_depth_pct>=1&&t.scroll_depth_pct<=100)return{type:"SCROLL_DEPTH",minScrollDepthPct:t.scroll_depth_pct}}return{type:"SESSION_START"}}function $t(e){return"SCROLL_DEPTH"===e.type}function Wt(e){var t;return e.style!==At.PUBLISHER_CUSTOM&&(null==(t=e.behavior.is_auto_show)||t)}var Kt=(e=>(e.CUT="CUT",e.FADE="FADE",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.SLIDE_UP="SLIDE_UP",e.SLIDE_DOWN="SLIDE_DOWN",e.SLIDE_RIGHT="SLIDE_RIGHT",e.SLIDE_LEFT="SLIDE_LEFT",e))(Kt||{}),Ft=(e=>(e.ENTRY="entry",e.EXIT="exit",e))(Ft||{});function Bt(e){return`matrix(${e.scaleX}, ${e.skewY}, ${e.skewX}, ${e.scaleY}, ${e.translateX}, ${e.translateY})`}class Vt{constructor(e,t){var s;P(this,"currentOrientation"),this.prompt=e,this.logger=t,(null==(s=this._screen)?void 0:s.orientation)&&(this.currentOrientation=this._screen.orientation.type,this._screen.orientation.addEventListener("change",this._onOrientationChange.bind(this)))}static get ANIMATION_PREFIX(){return"pnax"}get _screen(){return"screen"in ye._scope?ye._scope.screen:null}get _document(){return ye._document}get _promptPackageId(){return`push-sdk-prompt-${this.prompt.id}`}get _promptPackageElement(){const e=this._document.getElementById(this._promptPackageId);return e||(this.logger.error("Unable to find injected prompt element"),null)}get _promptElement(){const e=this._promptPackageElement;if(!e)return null;const t=e.querySelector(".push-sdk-prompt-container");return t||(this.logger.error("Unable to find prompt element"),null)}get _currentAnimationTransformConfig(){const e=this._promptElement,t=e?function(e){const t=e.match(new RegExp("matrix\\((?<scale
12X>-?[0-9.]+),\\s?(?<skewY>-?[0-9.]+),\\s?(?<skewX>-?[0-9.]+),\\s?(?<scaleY>-?[0-9.]+),\\s?(?<translateX>-?[0-9.]+),\\s?(?<translateY>-?[0-9.]+)\\)"));try{return{scaleX:parseInt(t.groups.scaleX),scaleY:parseInt(t.groups.scaleY),skewX:parseInt(t.groups.skewX),skewY:parseInt(t.groups.skewY),translateX:parseInt(t.groups.translateX),translateY:parseInt(t.groups.translateY)}}catch(s){return{scaleX:1,scaleY:1,skewX:0,skewY:0,translateX:0,translateY:0}}}(getComputedStyle(e).transform):{scaleX:1,scaleY:1,skewX:0,skewY:0,translateX:0,translateY:0};return{curr:t,start:Object.assign(Object.create(null),t),end:Object.assign(Object.create(null),t)}}get _entryAnimationConfig(){var e,t,s;return null!=(s=null==(t=null==(e=this.prompt.behavior)?void 0:e.display_animations)?void 0:t.enter)?s:{enabled:!0,animations:[Kt.FADE],duration_milliseconds:420}}get _exitAnimationConfig(){var e,t,s;return null!=(s=null==(t=null==(e=this.prompt.behavior)?void 0:e.display_animations)?void 0:t.exit)?s:{enabled:!0,animations:[Kt.FADE],duration_milliseconds:420}}_generateAnimationId(){return`${Vt.ANIMATION_PREFIX}_${this.prompt.id}_${Ue(5)}`}_animateIn(e,t){this._applyAnimation(Ft.ENTRY,e,t)}_animateOut(e,t){this._applyAnimation(Ft.EXIT,e,t)}_onOrientationChange(){var e;if(!(null==(e=this._screen)?void 0:e.orientation))return;const t=this.currentOrientation,s=this._screen.orientation.type;this.currentOrientation=this._screen.orientation.type,this._handleOrientationChange(s,t)}_getAnimationSteps(e,t,s){const i={from:{},to:{}},r=this._currentAnimationTransformConfig,n=new Set;t.animations.includes(Kt.FADE)&&(n.add("opacity"),i.from.opacity=e===Ft.ENTRY?0:1,i.to.opacity=e===Ft.ENTRY?1:0);t.animations.includes(Kt.ZOOM_IN)&&(n.add("transform"),e===Ft.ENTRY?(r.start.scaleX=0,r.start.scaleY=0):(r.end.scaleX=2,r.end.scaleY=2)),t.animations.includes(Kt.ZOOM_OUT)&&(n.add("transform"),e===Ft.ENTRY?(r.start.scaleX=2,r.start.scaleY=2):(r.end.scaleX=0,r.end.scaleY=0));const o=s.height/2,a=s.width/2;return t.animations.includes(Kt.SLIDE_DOWN)&&(n.add("transform"),e===Ft.ENTRY?r.start.translateY-=o:r.end.translateY+=o),t.animations.includes(Kt.SLIDE_UP)&&(n.add("transform"),e===Ft.ENTRY?r.start.translateY+=o:r.end.translateY-=o),t.animations.includes(Kt.SLIDE_RIGHT)&&(n.add("transform"),e===Ft.ENTRY?r.start.translateX-=a:r.end.translateX+=a),t.animations.includes(Kt.SLIDE_LEFT)&&(n.add("transform"),e===Ft.ENTRY?r.start.translateX+=a:r.end.translateX-=a),n.size&&(i.from.willChange=Array.from(n).join(","),i.to.willChange=Array.from(n).join(",")),i.from.transform=Bt(r.start),i.to.transform=Bt(r.end),i}}class Gt extends Vt{constructor(e,t){super(e,null!=t?t:ne._getInstance("CSSAnimationCoordinator")),P(this,"lastConfig")}_clearAnimationClassNames(e,t){const s=new RegExp(`^${Vt.ANIMATION_PREFIX}_`);Array.from(e.classList).forEach((i=>{i!==t&&s.test(i)&&e.classList.remove(i)}))}_handleOrientationChange(e,t){this._promptElement&&this.lastConfig&&e!==t&&this._clearAnimationClassNames(this._promptElement)}_applyAnimation(e,t,s){const i=this._promptElement;if(!i)return;if("function"==typeof t&&(t=t()),this.lastConfig=t,null!=t||(t=this._exitAnimationConfig),!t.enabled)return void this.logger.debug(`${e} animation disabled for Prompt ${this.prompt.id}`);const r=this._generateAnimationId(),n=this._getAnimationSteps(e,t,i.getBoundingClientRect()),o=this._document.createElement("style");o.id=`${r}_style`,o.setAttribute(`data-${Vt.ANIMATION_PREFIX}`,"true"),o.innerText=[[`@keyframes ${r} {`,`from { opacity: ${n.from.opacity}; transform: ${n.from.transform} }`,`to { opacity: ${n.to.opacity}; transform: ${n.to.transform} }`,"}"].join(" "),[`.push-sdk-prompt-container.${r} {`,`animation-name: ${r};`,`animation-duration: ${t.duration_milliseconds/1e3}s;`,"animation-fill-mode: forwards;","}"].join(" ")].join(" "),this._promptPackageElement.prepend(o),i.classList.add(r),this._clearAnimationClassNames(i,r);const a=Array.from(this._promptPackageElement.getElementsByTagName("style"));for(const l of a)l.id!==o.id&&l.dataset[Vt.ANIMATION_PREFIX]&&l.remove();i.addEventListener("animationend",(()=>{try{null==s||s()}catch(e){}}))}}
12const Ht={containerBackground:"--pushly-prompt-container-bg",titleColor:"--pushly-prompt-title-color",subtitleColor:"--pushly-prompt-subtitle-color",allowButtonBackground:"--pushly-prompt-allow-bg",allowButtonColor:"--pushly-prompt-allow-color",dismissButtonBackground:"--pushly-prompt-dismiss-bg",dismissButtonColor:"--pushly-prompt-dismiss-color",image:"--pushly-prompt-image",imageDisplay:"--pushly-prompt-image-display"},qt=".push-sdk-prompt-shell{position:fixed;z-index:999999999;transform:translate3d(0,0,0);top:0;bottom:0;width:90vw;left:5vw;pointer-events:none}.push-sdk-prompt-shell .push-sdk-prompt-container{pointer-events:auto}.push-sdk-prompt-container.s-slide{position:absolute;box-sizing:border-box;transform:translateX(-50%);left:50%;width:auto;max-width:100%;font-family:-apple-system,system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;font-size:14px;font-weight:400;line-height:1.24em;text-decoration:none;-webkit-font-smoothing:antialiased}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper{box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;gap:14px;width:450px;padding:14px;overflow:hidden;background:var(--pushly-prompt-container-bg,#FFFFFF);border:1px solid #00000011;border-top:var(--pushly-prompt-border-top,1px solid #00000011);border-bottom:var(--pushly-prompt-border-bottom,1px solid #00000011);border-radius:var(--pushly-prompt-radius-top,6px) var(--pushly-prompt-radius-top,6px) var(--pushly-prompt-radius-bottom,6px) var(--pushly-prompt-radius-bottom,6px);box-shadow:var(--pushly-prompt-shadow,none);text-wrap:wrap}@media only screen and (min-device-width:769px){.push-sdk-prompt-container.s-slide.pos-d-top{top:0;--pushly-prompt-radius-top:0;--pushly-prompt-border-top:none;--pushly-prompt-shadow:0 1px 2px #00000008}.push-sdk-prompt-container.s-slide.pos-d-bottom{bottom:0;--pushly-prompt-radius-bottom:0;--pushly-prompt-border-bottom:none;--pushly-prompt-shadow:0 -1px 2px #00000008}}@media only screen and (max-device-width:768px){.push-sdk-prompt-container.s-slide.pos-m-top{top:0;--pushly-prompt-radius-top:0;--pushly-prompt-border-top:none;--pushly-prompt-shadow:0 1px 2px #00000008}.push-sdk-prompt-container.s-slide.pos-m-bottom{bottom:0;--pushly-prompt-radius-bottom:0;--pushly-prompt-border-bottom:none;--pushly-prompt-shadow:0 -1px 2px #00000008}}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-image{box-sizing:border-box;flex:0 0 auto;display:var(--pushly-prompt-image-display,none);background-image:var(--pushly-prompt-image,none);background-size:cover;background-position:center;background-repeat:no-repeat;width:64px;height:64px;border-radius:4px}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-content{box-sizing:border-box;flex:1 1 auto}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy{box-sizing:border-box;display:flex;flex-direction:column;gap:8px}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy .pushly-prompt-title{font-weight:600;color:var(--pushly-prompt-title-color,#555)}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy .pushly-prompt-subtitle{color:var(--pushly-prompt-subtitle-color,#555)}.push-sdk-prompt-container.s-slide .pushly-prompt-btns{display:flex;flex-direction:row-reverse;justify-content:flex-start;gap:6px;margin-top:16px}.push-sdk-prompt-container.s-slide .pushly-prompt-btns button.pushly-prompt-btn{position:relative;overflow:hidden;padding:8px 24px;margin:0;border:none;border-radius:4px;background:none;cursor:pointer;font-size:1em;font-weight:500;font-family:inherit;text-align:center;text-decoration:none;text-transform:inherit}.push-sdk-prompt-container.s-slide .pushly-prompt-btns button.pushly-prompt-btn.pushly-prompt-btn-dismiss{background-color:var(--pushly-prompt-dismiss-bg,#fff);color:var(--pushly-prompt-dismiss-color,#555)}.push-sdk-prompt-container.s-slide .pushly-prompt-btns button.pushly-prompt-btn.pushly-prompt-btn-allow{background-color:var(--pushly-prompt-allow-bg,#555);color:var(--pushly-prompt-allow-color,#fff)}.push-sdk-prompt-container.s-slide .pushly-prompt-btns button.pushly-prompt-btn:hover::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:#0000000A}.push-sdk-prompt-container.s-slide.l-normal{display:flex;flex-direction:row;justify-content:center}.push-sdk-prompt-container.s-slide.l-normal .pushly-prompt-content .pushly-prompt-content-copy{display:flex;flex-direction:column}.push-sdk-prompt-container.s-slide.l-stacked .pushly-prompt-wrapper{display:flex;flex-direction:column;align-items:center}.push-sdk-prompt-container.s-slide.l-stacked .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy{display:flex;flex-direction:column;align-items:center}",jt="pushly-slide-prompt-stylesheet",Qt=new Set(["normal","stacked"]),zt=new Set(Object.values(Lt)),Yt=e=>e.trim().toLowerCase(),Xt=String.raw`[ \t\n\r\f]`,Zt=String.raw`[+-]?(?:\d+(?:\.\d+)?|\.\d+)`,Jt=String.raw`${Zt}%`,es=String.raw`(?:${Zt}|${Jt})`,ts=String.raw`${Zt}(?:deg|grad|rad|turn)?`,ss=String.raw`(?:${Zt}|${Jt})`,is=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,rs=[new RegExp(String.raw`^rgba?\(${Xt}*${ss}${Xt}*,${Xt}*${ss}${Xt}*,${Xt}*${ss}${Xt}*(?:,${Xt}*${es}${Xt}*)?\)$`,"i"),new RegExp(String.raw`^rgba?\(${Xt}*${ss}${Xt}+${ss}${Xt}+${ss}${Xt}
12*(?:\/${Xt}*${es}${Xt}*)?\)$`,"i"),new RegExp(String.raw`^hsla?\(${Xt}*${ts}${Xt}*,${Xt}*${Jt}${Xt}*,${Xt}*${Jt}${Xt}*(?:,${Xt}*${es}${Xt}*)?\)$`,"i"),new RegExp(String.raw`^hsla?\(${Xt}*${ts}${Xt}+${Jt}${Xt}+${Jt}${Xt}*(?:\/${Xt}*${es}${Xt}*)?\)$`,"i")],ns=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent","currentcolor"]);function os(e){if("string"!=typeof e)return!1;const t=e.trim();return 0!==t.length&&(!(!is.test(t)&&!ns.has(t.toLowerCase()))||rs.some((e=>e.test(t))))}function as(e){if("string"!=typeof e||0===e.trim().length)return!1;let t;try{t=new URL(e)}catch(s){return!1}return("https:"===t.protocol||"http:"===t.protocol)&&!/["'()\\\s]/.test(t.href)}function ls(e){return"object"==typeof e&&null!==e&&"string"==typeof e.text}function us(e){return ls(e)?e.text:""}function cs(e,t,s){const i=e.createElement("div");i.className=t;const r=e.createElement("span");return r.textContent=s,i.append(r),i}function ds(e,t,s,i){const r=e.createElement("button");r.type="button",r.className=`pushly-prompt-btn pushly-prompt-btn-${t}`;const n=e.createElement("span");return n.textContent=us(s),r.append(n),r.addEventListener("click",(()=>i())),r}function hs(e,t,s,i,r,n){for(const[o,a]of function(e,t,s,i,r){const n=[[Ht.containerBackground,e.background_color],[Ht.titleColor,null==t?void 0:t.text_color],[Ht.subtitleColor,null==s?void 0:s.text_color],[Ht.allowButtonBackground,null==i?void 0:i.background_color],[Ht.allowButtonColor,null==i?void 0:i.text_color],[Ht.dismissButtonBackground,null==r?void 0:r.background_color],[Ht.dismissButtonColor,null==r?void 0:r.text_color]].filter((([,e])=>null!=e&&""!==e));return n.some((([,e])=>!os(e)))?[]:n.map((([e,t])=>{const s=t.trim();return[e,ns.has(s.toLowerCase())?s.toLowerCase():s]}))}(t,s,i,r,n))e.style.setProperty(o,a);if(as(t.image)){const s=new URL(t.image).href;e.style.setProperty(Ht.image,`url("${s}")`),e.style.setProperty(Ht.imageDisplay,"block")}}function _s(e,t){const s=e.theme;if(!s||"object"!=typeof s||!function(e){return ls(e.title)||ls(e.subtitle)||ls(e.allow_button)||ls(e.dismiss_button)||os(e.background_color)||as(e.image)||"string"==typeof e.layout&&Qt.has(e.layout)}(s))return null;const i=ye._document;!function(e){var t;if(Array.from(e.getElementsByTagName("style")).some((e=>e.textContent===qt)))return;const s=e.createElement("style");s.id=jt,s.textContent=qt,(null!=(t=e.body)?t:e.head).append(s)}(i);const r=i.createElement("div");r.className="push-sdk-prompt-shell",r.id=`push-sdk-prompt-${e.id}`;
12const n=i.createElement("div");n.className=function(e){const t=["push-sdk-prompt-container","s-slide"];"string"==typeof e.layout&&Qt.has(e.layout)&&t.push(`l-${e.layout}`);const s=e.position;return s&&"object"==typeof s&&("string"==typeof s.desktop&&zt.has(Yt(s.desktop))&&t.push(`pos-d-${Yt(s.desktop)}`),"string"==typeof s.mobile&&zt.has(Yt(s.mobile))&&t.push(`pos-m-${Yt(s.mobile)}`)),t.join(" ")}(s);const o=i.createElement("div");o.className="pushly-prompt-wrapper";const a=i.createElement("div");a.className="pushly-prompt-image";const l=i.createElement("div");l.className="pushly-prompt-content";const u=i.createElement("div");u.className="pushly-prompt-content-copy",u.append(cs(i,"pushly-prompt-title",us(s.title)),cs(i,"pushly-prompt-subtitle",us(s.subtitle)));const c=i.createElement("div");return c.className="pushly-prompt-btns",c.append(ds(i,"allow",s.allow_button,t.onAllow),ds(i,"dismiss",s.dismiss_button,t.onDismiss)),l.append(u,c),o.append(a,l),n.append(o),r.append(n),hs(r,s,s.title,s.subtitle,s.allow_button,s.dismiss_button),r}var ps=(e=>(e.ALLOW="allow",e.DISMISS="dismiss",e))(ps||{});class gs{constructor(e,t,s,i,r){P(this,"logger"),P(this,"animationCoordinator"),P(this,"hidingElement",null),this.prompt=e,this.group=t,this.delegate=s,this.debugController=i,this.logger=null!=r?r:ne._getInstance("PromptView"),this.animationCoordinator=new Gt(e)}get document(){return ye._document}get isMobile(){return"mobile"===ye._devicePlacement}get position(){var e,t,s;const i=null==(e=this.prompt.theme)?void 0:e.position;return this.isMobile?null!=(t=null==i?void 0:i.mobile)?t:Lt.TOP:null!=(s=null==i?void 0:i.desktop)?s:Lt.TOP}get promptElementId(){return`push-sdk-prompt-${this.prompt.id}`}get promptElement(){return this.document.getElementById(this.promptElementId)}_display(){if(this.hidingElement&&(this.hidingElement.remove(),this.hidingElement=null),this.promptElement)return this.logger.warn(`Prompt ${this.prompt.id} is already displaying`),"already-displaying";const e=_s(this.prompt,{onAllow:()=>{this._allow()},onDismiss:()=>{this._dismiss()}});if(!e)return this.logger.warn(`Prompt ${this.prompt.id} has no usable theme; nothing will be displayed`),this.debugController._debugPromptNotShown(ut.SLIDE_PROMPT_THEME_UNUSABLE),"nothing-to-render";const t=this.document.createElement("style");return t.textContent=".push-sdk-prompt-container button { box-sizing: border-box !important; min-width: 0 !important; max-width: none !important; width: auto !important; }",e.append(t),ye._document.body.append(e),this.animationCoordinator._animateIn({enabled:!0,animations:[Kt.FADE,this.position===Lt.TOP?Kt.SLIDE_DOWN:Kt.SLIDE_UP],duration_milliseconds:420}),this.logger.verbose(`Displaying Prompt ${this.prompt.id}`),this.delegate._onPromptDidShow(this.prompt),"displayed"}_hide(){const e=this.promptElement;e?(this.logger.verbose(`Hiding ${this.prompt.id}`),this.hidingElement=e,this.delegate._onPromptDidHide(this.prompt),this.animationCoordinator._animateOut({enabled:!0,animations:[Kt.FADE,this.position===Lt.TOP?Kt.SLIDE_UP:Kt.SLIDE_DOWN],duration_milliseconds:420},(()=>{e.remove(),this.hidingElement===e&&(this.hidingElement=null)}))):this.logger.warn(`Prompt ${this.prompt.id} is already hidden`)}_allow(){return k(this,null,(function*(){yield this.delegate._processDispatchMessage({prompt_action:{id:this.prompt.id,type:ps.ALLOW}})}))}_dismiss(){return k(this,null,(function*(){yield this.delegate._processDispatchMessage({prompt_action:{id:this.prompt.id,type:ps.DISMISS}})}))}}var ms=(e=>(e.NOT_AVAILABLE="not_available",e.OTHER_PROMPT_SHOWING="other_prompt_showing",e.ALREADY_SHOWING="already_showing",e.USER_INELIGIBLE="user_eligible",e))(ms||{});const Ss=Symbol("lazy_empty_value");function fs(e,t,s){if(!s||void 0===s.get)throw`@lazy ${t} must be a getter`;if(s.set)throw`@lazy ${t} must not have an associated setter`;const i=`_lazy_${t}`,r=s.get;Object.defineProperty(e,i,{enumerable:!1,configurable:!1,writable:!0,value:Ss}),s.get=function(){return this[i]===Ss&&(this[i]=r.call(this)),this[i]}}var Es=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,ys=(e,t,s,i)=>{for(var r,n=i>1?void 0:i?bs(t,s):t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=(i?r(t,s,n):r(n))||n);return i&&n&&Es(t,s,n),n};const vs="pushly-prompt-visible";class Is{constructor(e,t,s,i,r,n,o,a){P(this,"_promptElements",null),P(this,"logger"),this.prompt=e,this.group=t,this.isEligible=s,this.pushSdkConfig=i,this.userStore=r,this.eventManager=n,this.delegate=o,this.logger=null!=a?a:ne._getInstance("CustomPromptView"),this._locateAndConfigure()}get _document(){return ye._document}get _defaultElementStub(){return this._document.createElement("div")}get _promptConfig(){let e=!1;const t=()=>{e||(e=!0,this.logger.warn("Custom prompt element has not been configured yet"),setTimeout((()=>{e=!1}),500))},s={actions:{allow:null,dismiss:null}};return Object.defineProperty(s,"element",{get:()=>{var e;return(null==(e=this._promptElements)?void 0:e.element)?this._promptElements.element:(t(),this._defaultElementStub)}}),s}_locateAndConfigure(){let e=null;const t=()=>k(this,null,(function*(){var s,i;try{clearTimeout(e);const r=this._document.getElementsByClassName("pushly-prompt-custom");if(!r.length)return void(e=setTimeout(t,500));const n=r[0],o={element:n,actions:{allow:null!=(s=n.getElementsByClassName("pushly-prompt-buttons-allow")[0])?s:null,dismiss:null!=(i=n.getElementsByClassName("pushly-prompt-buttons-dismiss")[0])?i:null}};o.actions.allow?o.actions.allow.addEventListener("click",this._allow.bind(this)):this.logger.warn("Prompt allow button cannot be located"),o.actions.dismiss?o.actions.dismiss.addEventListener("click",this._dismiss.bind(this)):this.logger.warn("Prompt dism
12iss button cannot be located"),this._promptElements=o,this.logger.info("Custom prompt located and configured"),this._setSupportedClassName(),yield this._setInitialSubscriptionClassName(),this.isEligible?this._setEligibleClassNames():this._setIneligibleClassNames()}catch(r){const e=j(r);this.logger.warn(e),this.eventManager._track(e)}}));t().then()}get _classNames(){const e=this.pushSdkConfig.classNames||{};return e.webPushUnsupported=e.webPushUnsupported||"pushly-web-push-unsupported",e.webPushSupported=e.webPushSupported||"pushly-web-push-supported",e.subscriptionNone=e.subscriptionNone||"pushly-subscription-none",e.subscriptionSubscribed=e.subscriptionSubscribed||"pushly-subscription-subscribed",e.subscriptionUnsubscribed=e.subscriptionUnsubscribed||"pushly-subscription-unsubscribed",e.subscriptionDenied=e.subscriptionDenied||"pushly-subscription-denied",e.subscriptionDismissed=e.subscriptionDismissed||"pushly-subscription-dismissed",e.promptIneligible=e.promptIneligible||"pushly-prompt-ineligible",e.promptEligible=e.promptEligible||"pushly-prompt-eligible",e}_display(){return this.delegate._onPromptDidShow(this.prompt),"displayed"}_hide(){this.delegate._onPromptDidHide(this.prompt)}_handlePermissionsResponse({permission:e}){switch(e){case"granted":this._setPromptCompositeSubscribedClassNames();break;case"denied":this._setSubscriptionDeniedClassNames();break;case"default":this._setSubscriptionDismissedClassNames()}}_allow(){return k(this,null,(function*(){yield this.delegate._processDispatchMessage({prompt_action:{id:this.prompt.id,type:ps.ALLOW,is_custom_prompt:!0}})}))}_dismiss(){return k(this,null,(function*(){this._setSubscriptionDismissedClassNames(),yield this.delegate._processDispatchMessage({prompt_action:{id:this.prompt.id,type:ps.DISMISS,is_custom_prompt:!0}})}))}_setInitialSubscriptionClassName(){return k(this,null,(function*(){const e=yield this.userStore._getSubscriberStatus();e===Te.DENIED?this._setDeniedClassNames():e===Te.DISMISSED?this._setDismissedClassNames():e===Te.SUBSCRIBED?this._setSubscribedClassNames():this._setNoSubscriptionClassNames()}))}_setPromptCompositeSubscribedClassNames(){this._setIneligibleClassNames(),this._setSubscribedClassNames(),this._promptConfig.element.classList.remove(vs)}_setSubscriptionDismissedClassNames(){this._setIneligibleClassNames(),this._setDismissedClassNames(),this._promptConfig.element.classList.remove(vs)}_setSubscriptionDeniedClassNames(){this._setIneligibleClassNames(),this._setDeniedClassNames(),this._promptConfig.element.classList.remove(vs)}_setUnsupportedClassName(){const{element:e}=this._promptConfig;e.classList.add(this._classNames.webPushUnsupported),e.classList.remove(this._classNames.webPushSupported)}_setSupportedClassName(){const{element:e}=this._promptConfig;e.classList.add(this._classNames.webPushSupported),e.classList.remove(this._classNames.webPushUnsupported)}_setEligibleClassNames(){const{element:e}=this._promptConfig;e.classList.remove(this._classNames.promptIneligible),e.classList.add(this._classNames.promptEligible)}_setIneligibleClassNames(){const{element:e}=this._promptConfig;e.classList.remove(this._classNames.promptEligible),e.classList.add(this._classNames.promptIneligible)}_setNoSubscriptionClassNames(){const{element:e}=this._promptConfig;e.classList.add(this._classNames.subscriptionNone),e.classList.remove(this._classNames.subscriptionSubscribed,this._classNames.subscriptionDismissed,this._classNames.subscriptionDenied,this._classNames.subscriptionUnsubscribed)}_setSubscribedClassNames(){const{element:e}=this._promptConfig;e.classList.add(this._classNames.subscriptionSubscribed),e.classList.remove(this._classNames.subscriptionNone,this._classNames.subscriptionDismissed,this._classNames.subscriptionDenied,this._classNames.subscriptionUnsubscribed)}_setDismissedClassNames(){const{element:e}=this._promptConfig;e.classList.add(this._classNames.subscriptionDismissed),e.classList.remove(this._classNames.subscriptionNone,this._classNames.subscriptionSubscribed,this._classNames.subscriptionDenied,this._classNames.subscriptionUnsubscribed)}_setDeniedClassNames(){const{element:e}=this._promptConfig;e.classList.add(this._classNames.subscriptionDenied),e.classList.remove(this._classNames.subscriptionNone,this._classNames.subscriptionSubscribed,this._classNames.subscriptionDismissed,this._classNames.subscriptionUnsubscribed)}}ys([fs],Is.prototype,"_document",1),ys([fs],Is.prototype,"_defaultElementStub",1),ys([fs],Is.prototype,"_promptConfig",1),ys([fs],Is.prototype,"_classNames",1);var Ps=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,Ds=(e,t,s,i)=>{for(var r,n=i>1?void 0:i?ws(t,s):t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=(i?r(t,s,n):r(n))||n);return i&&n&&Ps(t,s,n),n};class Os{constructor(e,t,s,i,r,n,o,a,l,u,c,d){P(this,"logger"),P(this,"isDisplayEvaluationReady",!1),P(this,"isPromptLoadingCompleted",!1),P(this,"timeInSessionTimer"),P(this,"manualShowRequestIsActive",!1),P(this,"isPromptingSuppressed",!1),P(this,"promptViewInitializedCallbacks",[]),P(this,"allPrompts",[]),P(this,"matchedPrompt"),P(this,"activeView"),P(this,"nativePromptCurrentlyShowing"),P(this,"lastPageViewed",null),this.pushSdkConfig=e,this.domain=t,this.promptsProvi
12der=s,this.notificationPermissionService=i,this.userStore=r,this.settingsStore=n,this.sessionManager=o,this.scrollDepthObserver=a,this.eventManager=l,this.debugController=u,this.promptLifecycleCallbacks=c,this.lastPageViewed=this._currentHref,this.timeInSessionTimer=new Dt("prompts_tis_timer",this._handleSessionTimerDidAdvance.bind(this),1),this.logger=null!=d?d:ne._getInstance("PromptsController"),this._load()}_load(){this._loadPrompts()}get _devicePlacement(){return ye._devicePlacement}get _isTwoStepPromptsRequired(){return ye._requires2Step}get _currentHref(){return ye._location.href}get _document(){return ye._document}get _currentPageMetaKeywords(){const e=["meta[name='keywords']","meta[name='parsely-tags']","meta[name='sailthru.tags']"];try{return Array.from(new Set(Array.from(this._document.querySelectorAll(e.join(","))).filter((e=>e instanceof HTMLMetaElement&&!!e.content)).flatMap((e=>e.content.split(","))).map((e=>e.toString().trim().toLowerCase())).filter((e=>e))))}catch(t){}return[]}get _isReady(){return this.isPromptLoadingCompleted&&this.isDisplayEvaluationReady}get _currentlyShowingPrompt(){var e,t;return null!=(t=null==(e=this.activeView)?void 0:e.prompt)?t:this.nativePromptCurrentlyShowing}setPromptViewInitializedCallbacks(e){this.activeView?e(this.activeView):this.promptViewInitializedCallbacks.push(e)}_setIsWebPushSupported(e){var t;e.isErr()&&this.debugController._debugPromptNotShown(ut.WEB_PUSH_UNSUPPORTED,null!=(t=e.getErr().details)?t:"unknown"),this.setPromptViewInitializedCallbacks((t=>{t instanceof Is&&(e?t._setSupportedClassName():t._setUnsupportedClassName())}))}_startDisplayEvaluations(){return k(this,null,(function*(){this.isDisplayEvaluationReady=!0,!this._isReady||this.matchedPrompt||this.isPromptingSuppressed||(yield this._startMatchedPromptSelection()),this.timeInSessionTimer._start(),this.isPromptingSuppressed&&this._disable()}))}get _isEnabled(){return this.timeInSessionTimer.isStarted&&!this.timeInSessionTimer.isPaused}_enable(){this.logger.verbose("Enabling session timer"),this.timeInSessionTimer._unpause()}_disable(){this.logger.verbose("Disabling session timer"),this.timeInSessionTimer._pause()}_getIsPromptingSuppressed(){return this.isPromptingSuppressed}_suppressPrompts(){this.isPromptingSuppressed||(this.logger.verbose("Suppressing prompts"),this.isPromptingSuppressed=!0,this._disable())}_allowPrompts(){this.isPromptingSuppressed&&(this.logger.verbose("Allowing prompts"),this.isPromptingSuppressed=!1,this._enable(),this._isReady&&this._startMatchedPromptSelection().then())}_loadPrompts(){return k(this,null,(function*(){this.logger.verbose("Loading prompts");const e=yield this.promptsProvider._get();if(e.isErr())return this.logger.warn("No prompts available",e.getErr()),void this.debugController._debugPromptNotShown(ut.PROMPTS_LOAD_FAILED);const t=e.unwrap();if(!t.length)return this.logger.warn("No prompts available"),void this.debugController._debugPromptNotShown(ut.NO_ELIGIBLE_PROMPTS);this.allPrompts=t.flatMap((e=>e.prompts.map((t=>({prompt:t,group:e}))))),yield this._handlePromptsLoaded()}))}_handlePromptsLoaded(){return k(this,null,(function*(){this.logger.verbose("Prompts loaded"),this.isPromptLoadingCompleted=!0,this._isReady&&!this.isPromptingSuppressed&&(yield this._startMatchedPromptSelection())}))}_handleSessionTimerDidAdvance(){return k(this,null,(function*(){if(!this._isReady)return;let e=this.matchedPrompt;e||this._currentHref===this.lastPageViewed||(this.lastPageViewed=this._currentHref,yield this._startMatchedPromptSelection(),this._enable()),e&&(this._currentlyShowingPrompt||!Wt(e.prompt)&&!this.manualShowRequestIsActive?this._disable():yield this._attemptToShowPrompt(e))}))}_setLastMatchedPrompt(e){return k(this,null,(function*(){var t,s;if((null==(t=this.matchedPrompt)?void 0:t.prompt.id)===e.prompt.id)return;const i=null!=(s=e.prompt.name)?s:e.group.name;this.logger.verbose(`Setting matched Prompt: ${e.prompt.id} (${e.prompt.style}) ${i}`),this.matchedPrompt=yield this._buildMatchedPrompt(e),this.settingsStore._setLastMatchedPromptId(e.prompt.id).then(),this.notificationPermissionService._setAdditionalPermissionEventData({prompt_id:e.prompt.
12id})}))}_clearLastMatchedPrompt(){return k(this,null,(function*(){this.matchedPrompt=void 0,yield this.settingsStore._setLastMatchedPromptId(null)}))}_showPrompt(e,t){return k(this,null,(function*(){var s,i,r,n;if(this.isPromptingSuppressed)return this.logger.info("Show prompt request ignored - prompting is suppressed"),void this.debugController._debugPromptNotShown(ut.PROMPTING_SUPPRESSED);this.manualShowRequestIsActive=!0;let o=null;if(void 0===e)this.logger.verbose("Show prompt invoked"),this.matchedPrompt||(yield this._startMatchedPromptSelection()),o=null!=(s=this.matchedPrompt)?s:null;else if(this.logger.verbose(`Show prompt invoked for ${e}`),(null==(i=this.matchedPrompt)?void 0:i.prompt.id)===e)o=this.matchedPrompt;else{const t=this.allPrompts.find((({prompt:t})=>t.id===e));t&&(o=yield this._buildMatchedPrompt(t))}if(!o)return this.logger.warn(`Prompt${void 0===e?"":` ${e}`} not found`),void(null==(n=null==(r=this.promptLifecycleCallbacks)?void 0:r.onPushSDKFailedToShowPrompt)||n.call(r,null!=e?e:null,ms.NOT_AVAILABLE));const a=yield this._hasMetGlobalAndUserConditions(o.prompt,t);if(o.prompt.style===At.PUBLISHER_CUSTOM){const e=o.displayCoordinator;a?e._setEligibleClassNames():e._setIneligibleClassNames()}a&&(this._isEnabled||this._enable(),yield this._attemptToShowPrompt(o))}))}_attemptToShowPrompt(e){return k(this,null,(function*(){if(this.isPromptingSuppressed)return this.logger.verbose("Prompt not shown - prompting is suppressed"),void this.debugController._debugPromptNotShown(ut.PROMPTING_SUPPRESSED);(e.prompt.style===At.PUBLISHER_CUSTOM||(yield this._evaluatePromptConditions(e.prompt)))&&(yield this._showMatchedPrompt(e))}))}_showMatchedPrompt(e){return k(this,null,(function*(){this._disable();const t=e.displayCoordinator?e:yield this._buildMatchedPrompt(e),s=t.displayCoordinator;if(t.prompt.style!==At.NATIVE){const e=s._display();return"nothing-to-render"===e?(this.activeView=void 0,void this._enable()):(this.activeView=s,void("displayed"===e&&(yield this.settingsStore._incrementViewedOccurrencesForPromptId(t.prompt.id))))}this.activeView=s,yield this.settingsStore._incrementViewedOccurrencesForPromptId(t.prompt.id),this.nativePromptCurrentlyShowing=t.prompt,this.notificationPermissionService._setPermissionEventContext({dismissalExpirationSeconds:this._extractPromptDismissalExpirationValue(t.prompt)}),yield this.notificationPermissionService._requestPermission()}))}_processDispatchMessage(e){return k(this,null,(function*(){var t,s,i,r,n;let o=this.activeView;if(!o&&e.prompt_action.is_custom_prompt&&(null==(t=this.matchedPrompt)?void 0:t.prompt.id)===e.prompt_action.id&&(o=this.matchedPrompt.displayCoordinator),!o||!e.prompt_action.id||e.prompt_action.id!==o.prompt.id)return void this.logger.debug("Prompt not available to receive message",e);o._hide();const a=this._extractPromptDismissalExpirationValue(o.prompt);switch(this.notificationPermissionService._setPermissionEventContext({dismissalExpirationSeconds:a}),e.prompt_action.type){case ps.ALLOW:{this.logger.debug("Received Prompt Allow"),this.eventManager._track(ue.PROMPT_ACCEPTED,{prompt_id:e.prompt_action.id}),null==(i=null==(s=this.promptLifecycleCallbacks)?void 0:s.onPushSDKDidReceivePromptResponse)||i.call(s,o.prompt.id,!0);const t=yield this.notificationPermissionService._requestPermission();o instanceof Is&&o._handlePermissionsResponse(t);break}case ps.DISMISS:this.logger.debug("Received Prompt Dismiss"),this.eventManager._track(ue.PROMPT_DISMISSED,{prompt_id:e.prompt_action.id}),0===a?(this.logger.debug("Setting subscriber status to NOT_DETERMINED"),yield this.userStore._setSubscriberStatus(Te.NOT_DETERMINED)):(this.logger.debug(`Setting subscriber status to DISMISSED for ${a}s`),yield this.userStore._setSubscriberStatusDismissed(a)),this.notificationPermissionService._resetPermissionEventContext(),null==(n=null==(r=this.promptLifecycleCallbacks)?void 0:r.onPushSDKDidReceivePromptResponse)||n.call(r,o.prompt.id,!1);break;default:this.logger.warn("Received unknown prompt message: ",e),this.debugController._debugUnknownPromptMessage(e)}}))}_onPromptDidShow(e){return k(this,null,(function*(){var t,s;this.eventManager._track(ue.PROMPT_SHOWN,{prompt_id:e.id}),null==(s=null==(t=this.promptLifecycleCallbacks)?void 0:t.onPushSDKDidShowPrompt)||s.call(t,e.id)}))}_onPromptDidHide(e){return k(this,null,(function*(){var t;e.style!==At.PUBLISHER_CUSTOM&&e.id===(null==(t=this.activeView)?void 0:t.prompt.
12id)?this.activeView=void 0:this.logger.verbose("Hidden prompt does not match active prompt")}))}_startMatchedPromptSelection(){return k(this,null,(function*(){var e,t,s,i;let r;if(this.logger.verbose("Starting matched prompt selection"),this.matchedPrompt)r=this.allPrompts.find((({prompt:e})=>e.id===this.matchedPrompt.prompt.id));else{const e=yield this.settingsStore._getLastMatchedPromptId();e&&(r=this.allPrompts.find((({prompt:t})=>t.id===e)))}if(r){const e=this._evaluatePromptGroupConditions(r.group);!e.isErr()&&e.unwrapOrNull()||(r=void 0)}if(!r){const e=this.allPrompts.sort((({group:e},{group:t})=>-(e.priority-t.priority)));this._isTwoStepPromptsRequired&&this.logger.info("Browser requires 2-step prompt experience. Filtering prompts.");const t=e.reduce(((e,t)=>{const s=t.group.prompts.filter((e=>!this._isTwoStepPromptsRequired||e.style!==At.NATIVE));return s.length?e.push([t.group,s]):this.logger.verbose(`Removing PromptGroup ${t.group.id} - no available prompts.`,t),e}),[]);for(const[s,i]of t){const e=this._evaluatePromptGroupConditions(s);if(e.isErr()){this.logger.debug(`Prompt not shown due to ${e.getErr()}`);break}e.unwrapOrNull()&&(r={group:s,prompt:1===i.length?i[0]:this._pickWeightedRandomPrompt(i)})}if(r&&void 0!==r.group.behavior.display_to_pct){const e=r.group.behavior.display_to_pct;if(e<100){Math.floor(100*Math.random())>e&&(r=void 0)}}}if(r&&(yield this._hasMetGlobalAndUserConditions(r.prompt))){if(this.logger.debug("Eligible prompt found",r),null==(t=null==(e=this.promptLifecycleCallbacks)?void 0:e.onPushSDKUserIsEligibleToPrompt)||t.call(e),yield this._setLastMatchedPrompt(r),!Wt(r.prompt))return;(n=r.prompt).style!==At.PUBLISHER_CUSTOM&&"SESSION_START"===xt(n.conditions).type?yield this._attemptToShowPrompt(r):this.logger.verbose("Eligible prompt display delayed due to conditions",r.prompt.conditions)}else this.logger.info("No matched prompts available"),this._disable(),yield this._clearLastMatchedPrompt(),null==(i=null==(s=this.promptLifecycleCallbacks)?void 0:s.onPushSDKUserIsIneligibleToPrompt)||i.call(s),r||this.debugController._debugPromptNotShown(ut.NO_ELIGIBLE_PROMPTS);var n}))}_hasMetGlobalAndUserConditions(e,t){return k(this,null,(function*(){if(null==t?void 0:t.skipEligibilityCheck)return e.style===At.PUBLISHER_CUSTOM||(yield this.userStore._getSubscriberStatus())!==Te.DENIED;const s=yield this.notificationPermissionService._getIsEligibleToPrompt();if(s.isErr()){const e=s.getErr();return(e===ut.USER_PERMISSION_DENIED||e===ut.USER_PERMISSION_DISMISSED||e===ut.USER_PERMISSION_GRANTED)&&(this.logger.debug(`Prompt not shown due to: ${e}`),this.debugController._debugPromptNotShown(e)),!1}const i=yield this._evaluateGlobalConditions(e);return!i.isErr()||(this.logger.debug(`Prompt not shown due to: ${i.getErr()}`),!1)}))}_extractPromptDismissalExpirationValue(e){const t=e.behavior.post_dismiss_redisplay;return t.enabled?t.fcap.interval_seconds:ve._defaultDismissedStatusExpirationSeconds}_pickWeightedRandomPrompt(e){const t=e.reduce(((e,t)=>e.concat(new Array(t.weight).fill(t))),[]);return t[Math.floor(Math.random()*t.length)]}_buildMatchedPrompt(e){return k(this,null,(function*(){return"displayCoordinator"in e&&e.displayCoordinator||e.prompt.style===At.NATIVE?e:v(y({},e),{displayCoordinator:e.prompt.style===At.PUBLISHER_CUSTOM?yield this._buildCustomPromptView(e):this._buildPromptView(e)})}))}_buildPromptView(e){if(e.displayCoordinator instanceof gs)return e.displayCoordinator;const t=new gs(e.prompt,e.group,this,this.debugController);return this.promptViewInitializedCallbacks.forEach((e=>e(t))),t}_buildCustomPromptView(e){return k(this,null,(function*(){if(e.displayCoordinator instanceof Is)return e.displayCoordinator;const t=new Is(e.prompt,e.group,yield this._hasMetGlobalAndUserConditions(e.prompt),this.pushSdkConfig,this.userStore,this.eventManager,this);return this.promptViewInitializedCallbacks.forEach((e=>e(t))),t}))}_evaluateGlobalConditions(e){return k(this,null,(function*(){var t,s,i,r,n;const o=e.id,a=this._currentlyShowingPrompt;if(a)return void 0!==o&&a.id===o?(null==(s=null==(t=this.promptLifecycleCallbacks)?void 0:t.onPushSDKFailedToShowPrompt)||s.call(t,o,ms.ALREADY_SHOWING),xe.Err(`Prompt ${o} is already showing`)):(null==(r=null==(i=this.promptLifecycleCallbacks)?void 0:i.onPushSDKFailedToShowPrompt)||r.call(i,null,ms.OTHER_PROMPT_SHOWING),xe.Err(`Another prompt, ${a.id}, is already showing.`));const l=null==(n=this.domain.frequency_caps)?void 0:n.prompts;if(l){const e=yield this._evaluateDomainPromptFCap(o,l);if(e.isErr())return this.debugController._debugPromptNotShown(ut.PROMPT_INELIGIBLE_FCAP),e}return xe.Ok(!0)}))}_evaluateDomainPromptFCap(e,t){return k(this,null,(function*(){var s,i;yield this.settingsStore._dropViewedPromptOccurrencesNotInInterval(t.interval_seconds);return(yield this.settingsStore._getViewedPromptOccurrencesCount())>=t.occurrences?(null==(i=null==(s=this.promptLifecycleCallbacks)?void 0:s.onPushSDKFailedToShowPrompt)||i.call(s,e,ms.USER_INELIGIBLE),xe.Err(ut.PROMPT_INELIGIBLE_FCAP)):xe.Ok(!0)}))}_evaluatePromptGroupConditions(e){var t,s;if(null==(t=e.conditions)?void 0:t.display){const t=this._evaluatePromptGroupDisplayConditions(e.conditions.display);if(!t.unwrapOrNull())return t}return(null==(s=e.conditions)?void 0:s.page)?this._evaluatePromptGroupPageConditions(e.conditions.page):xe.Ok(!0)}_evaluatePromptGroupDisplayConditions(e){var t;switch(String(null!=(t=null==e?void 0:e[this._devicePlacement])?t:"").trim().toLowerCase()){case"enabled":default:return xe.Ok(!0);case"pass":return xe.Ok(!1);case"disabled":return xe.Err(`platform_disabled_${this._devicePlacement}`)}}_evaluatePromptGroupPageConditions(e){const t=e=>{const t=e.replace(/\?/g,"\\?").replace(/\+|%20/g,"(?:\\+|%20)");return et(this._currentHref,t)};if(Array.isArray(e.excluded_page_urls)&&e.excluded_page_urls.length>0&&e.excluded_page_urls.some(t))return xe.Ok(!1);if(Array.isArray(e.keywords)&&e.keywords.length>0){if(!this._currentPageMetaKeywords.length)return xe.Ok(!1);
12if(!e.keywords.map((e=>e.trim().toLowerCase())).some((e=>this._currentPageMetaKeywords.includes(e))))return xe.Ok(!1)}return Array.isArray(e.page_urls)&&e.page_urls.length>0?xe.Ok(e.page_urls.some(t)):xe.Ok(!0)}_evaluatePromptConditions(e){return k(this,null,(function*(){const t=xt(e.conditions);return function(e){return["SESSION_TIME_ON_SITE","SESSION_TIME_ON_PAGE"].includes(e.type)}(t)?this._evaluatePromptSessionTimeIntervalCondition(t):function(e){return"SESSION_PAGE_VIEWS"===e.type}(t)?this._evaluatePromptPageViewsCondition(t):!$t(t)||this._evaluatePromptScrollDepthCondition(t)}))}_evaluatePromptPageViewsCondition(e){return k(this,null,(function*(){var t;this.logger.info(`Prompt condition: Page views [at least ${e.minPageViews} pages]`);return(yield this.sessionManager.transient.store._getSessionPageViewCount())>=(null!=(t=e.minPageViews)?t:0)}))}_evaluatePromptSessionTimeIntervalCondition(e){return k(this,null,(function*(){var t,s;switch(e.type){case Ut.SESSION_TIME_ON_SITE:this.logger.info(`Prompt condition: Time on site [at least ${e.timeInterval.intervalSeconds} seconds]`);return(yield this.sessionManager.transient.store._getSessionRuntimeSeconds())>=(null!=(t=e.timeInterval.intervalSeconds)?t:0);case Ut.SESSION_TIME_ON_PAGE:{this.logger.info(`Prompt condition: Time on page [at least ${e.timeInterval.intervalSeconds} seconds]`);const t=yield this.sessionManager.transient.store._getCurrentPageViewStart();if(!t)return!1;return Math.abs(Qe(t.getTime()))/1e3>=(null!=(s=e.timeInterval.intervalSeconds)?s:0)}}}))}_evaluatePromptScrollDepthCondition(e){const t=this.scrollDepthObserver._currentMaxDepth;return this.logger.info(`Prompt condition: Scroll depth [at least ${e.minScrollDepthPct}%]`),!!Number.isFinite(t)&&t>=e.minScrollDepthPct}}Ds([fs],Os.prototype,"_devicePlacement",1),Ds([fs],Os.prototype,"_isTwoStepPromptsRequired",1);var Ts=(e=>(e.sub="sub",e.sdk="sdk",e.WORKER="w",e))(Ts||{}),ks=(e=>(e.IDB="idb",e.COOKIE="cookie",e.LEGACY_COOKIE="legacy_cookie",e.MEM="mem",e.SESSION="session",e))(ks||{});class Cs{constructor(e,t,s){P(this,"_storageType"),P(this,"_storeName"),P(this,"_logger"),this._storageType=e,this._storeName=t,this._logger=null!=s?s:ne._getInstance(`${e}${t?`:${t}`:""}`)}get _isInWorkerGlobalScope(){return be._isInWorkerGlobalScope}_getLastUpdatedAt(){return k(this,null,(function*(){const e=yield this._getData(W._pnStorageTypeLuaKey);return e.isErr()?new Date(0):new Date(e.unwrap().ts)}))}_setLastUpdatedAt(e){return k(this,null,(function*(){const t=new Date(e),s=yield this._setData(W._pnStorageTypeLuaKey,t.getTime());return s.isErr()?s:xe.Ok(t)}))}}const Ns=new RegExp(`^${ve._pnCookieStorageKey}_[^;=\\s]{1,8}=`),Rs=()=>new z(H.STORAGE_NOT_AVAILABLE,null," - Cookie"),As=e=>new z(H.STORAGE_KEY_EMPTY,null,e),Ms=e=>new z(H.STORAGE_FAILED_TO_OPEN,e," - Cookie"),Ls=class e extends Cs{constructor(t,s=ne._getInstance("CookieStore")){super(ks.COOKIE,t,s),P(this,"_preDomainConfigTempData"),null!=e._domainKey||(e._domainKey=ve._dynamicDomainKey
12),null!=e._domain||(e._domain=ve._injectedDomainConfig)}static _setDomainKey(e){this._domainKey=e}static _setDomain(e){this._domain=e}get domainKey(){var t,s;return null!=(s=null==(t=e._domain)?void 0:t.domain_key)?s:e._domainKey}get allowedDomains(){var t;return null==(t=e._domain)?void 0:t.whitelist_domains}get isInIsolationMode(){var t;return!!(null==(t=e._domain)?void 0:t.flags.includes(ve._domainFeatUseIsolatedCookiesFlag))&&!!this.domainKey}get isolationKey(){var e;return null==(e=this.domainKey)?void 0:e.slice(-8)}get _isAvailable(){return!ye._isInWorkerGlobalScope&&"string"==typeof this._documentCookie}get _isUsingLegacyCookies(){return null===this._storeName}get _documentCookie(){return ye._document.cookie}set _documentCookie(e){ye._document.cookie=e}_getData(e){return k(this,null,(function*(){return this._getDataSync(e)}))}_setData(e,t){return k(this,null,(function*(){return this._setDataSync(e,t)}))}_removeData(e){return k(this,null,(function*(){return this._removeDataSync(e)}))}_getDataSync(e){var t,s,i;if(!this._isAvailable)return xe.Err(Rs());const r=this._openCookie();if(r.isErr())return r;const n=r.unwrap();let o;return o=this._isUsingLegacyCookies?n[this._buildName(e)]:e===ve._pnStorageTypeLuaKey?null!=(t=n[ve._pnStorageTypeLuaKey])?t:null:null==(s=n[this._storeName])?void 0:s[e],null==o&&e!==ve._pnStorageTypeLuaKey?xe.Err(As(e)):xe.Ok({value:o,ts:null!=(i=n[ve._pnStorageTypeLuaKey])?i:0,sourceType:this._storageType})}_setDataSync(e,t){var s;const i=this._openCookie();if(i.isErr())return i;const r=i.unwrap();let n,o;return this._isUsingLegacyCookies?(n=e,o=t):(e===ve._pnStorageTypeLuaKey?r[e]=t:(null!=r[s=this._storeName]||(r[s]={}),r[this._storeName][e]=t),n=ve._pnCookieStorageKey,o=r),this._persist(n,o,void 0,e===ve._pnStorageTypeLuaKey),xe.Ok(t)}_removeDataSync(e){const t=this._openCookie();if(t.isErr())return t;const s=t.unwrap();let i,r,n;return this._isUsingLegacyCookies?(i=e,r=null,n=-1):s[this._storeName]&&(delete s[this._storeName][e],i=ve._pnCookieStorageKey,r=s),i&&this._persist(i,r,n),xe.Ok(null)}_openCookie(){var e,t,s;let i={};try{const r=this._isUsingLegacyCookies?"":"{}",n=this._documentCookie.split(";").map((e=>e.trim()));let o,a;if(this._isUsingLegacyCookies){const e=ve._pnCookieStorageLegacyKeyPrefixRegex;o=Object.fromEntries(n.filter((t=>e.test(t))).map((e=>e.split(/=/))))}else{const t=`${this._buildName(ve._pnCookieStorageKey)}=`,s=n.filter((e=>e.startsWith(t)));a=s.find((e=>e.length>t.length)),o=null!=(e=null!=a?a:s[0])?e:""}if(!this._isUsingLegacyCookies){let e=!1;!o&&this._preDomainConfigTempData?(o=this._preDomainConfigTempData,e=!0):this._preDomainConfigTempData=void 0,a||e||(o=null!=(t=this._findUnsuffixedCookie(n))?t:o)}if(o&&"string"==typeof o){const e=o.indexOf("="),t=-1===e?"":o.slice(e+1);let n=r;t&&(n=this._isUsingLegacyCookies?t:null!=(s=(e=>{if(pt.test(e))try{return"TextDecoder"in self&&"function"==typeof self.TextDecoder&&"decode"in self.TextDecoder.prototype?(new self.TextDecoder).decode(mt(e)):gt(e)}catch(t){return}})(t))?s:t);const a=JSON.parse(n);a&&"object"==typeof a&&!Array.isArray(a)&&(i=a)}else i=o&&"object"==typeof o&&!Array.isArray(o)?o:{}}catch(r){const e=Ms(j(r));return this._logger.warn("Unable to open cookie",e.message),xe.Err(e)}return xe.Ok(i)}_persist(t,s,i,r){try{const o=null===this._storeName;o||!s||"object"!=typeof s||Array.isArray(s)||!0===r||(s[ve._pnStorageTypeLuaKey]=(new Date).getTime());let a=s;if("string"!=typeof s&&(a=JSON.stringify(s)),!o)try{a=St(a)}catch(n){}const l=`${this._buildName(t)}=${a}`;if(!e._domain)return void(this._preDomainConfigTempData=l);const u=new Date;u.setTime(u.getTime()+86400*(null!=i?i:ve._pnCookieStorageMaxDays)*1e3);const c=null===a?"-1":u.toUTCString(),d=this._getDomain();this._documentCookie=`${l};expires=${c};path=/;domain=${d};SameSite=Strict`}catch(o){this._logger.error(j(o))}}_findUnsuffixedCookie(e){const t=this._buildName(ve._pnCookieStorageKey);if(this.isInIsolationMode||t===ve._pnCookieStorageKey)return;if(e.find((e=>Ns.test(e)&&!e.startsWith(`${t}=`))))return;const s=`${ve._pnCookieStorageKey}=`;return e.find((e=>e.startsWith(s)&&e.length>s.length))}_buildName(e){return e===ve._pnCookieStorageKey&&this.isolationKey?`${e}_${this.isolationKey}`:e}_getDomain(){var e;let t=ye._location.hostname;if(!this.isInIsolationMode){if(1==(null==(e=this.allowedDomains)?void 0:e.length))t=this.allowedDomains[0];else{const e=(()=>{const e=ye._document;let t,s,i="_sw_tld_check=cookie",r=ye._location.hostname.split(".");for(t=r.length-2;t>=0;t--)if(s=r.slice(t).join("."),e.cookie=i+";domain=."+s+";SameSite=strict;",e.cookie.indexOf(i)>-1)return e.cookie=i.split("=")[0]+"=;domain=."+s+";SameSite=strict;expires=Thu, 01 Jan 1970 00:00:01 GMT;",s})();e&&(t=e)}t||(t=ye._location.hostname,"localhost"!==t&&(t=`.${t.split(".").splice(-2).join(".")}`))}return t}};P(Ls,"_domainKey"),P(Ls,"_domain");let Us=Ls;class xs{constructor(e,t){this.debugController=e,this.logger=t}get(e,t={}){return new Proxy(t,{get:(t,s,i)=>{var r;return s in t?t[s]:ge(String(s))in t?t[ge(String(s))]:void(["toJSON","children"].includes(String(s))||(this.logger.warn(`Unknown key: context.${e}.${String(s)}`),null==(r=this.debugController)||r._debugUnknownContextKey(`context.${e}.${String(s)}`)))}})}}const $s=class e{constructor(t,s,i,r,n=(()=>Promise.resolve(!1)),o){var a;P(this,"heartbeatInterval"),P(this,"inactivityTimeout"),P(this,"_logger"),P(this,"sessionStartThrottle",((e,t)=>
12{let s=!1;return function(){s||(e(),s=!0,setTimeout((function(){s=!1}),t))}})((()=>k(this,null,(function*(){return yield this._checkAndStartSession()}))),100)),P(this,"scrollSubscribers",[]),P(this,"sdkImpressionEndSent",!1),this.eventManager=t,this.userStore=s,this.sessionStore=i,this.debugEnabled=n;const l=null==(a=null==r?void 0:r.threshold)?void 0:a.intervalSeconds;this._logger=null!=o?o:ne._getInstance("HeartbeatManager"),this.heartbeatInterval=null,this.inactivityTimeout=1e3*(l||e.DEFAULT_INACTIVITY_TIMEOUT_SECONDS),this._initializeEventListeners()}get _window(){return ye._scope}get _document(){return ye._document}onSubscriptionChanged(e){return k(this,null,(function*(){e?yield this._checkAndStartSession():this._stopHeartbeat()}))}_initializeEventListeners(){this._document.addEventListener("visibilitychange",(()=>this._handleVisibilityChange(!this._document.hidden))),window.addEventListener("focus",this._handleFocus.bind(this)),window.addEventListener("blur",this._handleBlur.bind(this)),this._window.addEventListener("pagehide",(()=>{this._maybeSendSdkImpressionEnd("pagehide")}));["mousedown","keydown","mousemove","touchstart"].forEach((e=>{this._document.addEventListener(e,this._handleUserActivity.bind(this))})),this._document.addEventListener("scroll",this._handleScroll.bind(this),{passive:!0,capture:!0})}_subscribeToScroll(e){this.scrollSubscribers.push(e)}_handleScroll(e){this._handleUserActivity();for(const s of this.scrollSubscribers)try{s(e)}catch(t){this._logger.verbose("Scroll subscriber failed",t)}}_handleVisibilityChange(e){e?this.sessionStartThrottle():(this._maybeSendSdkImpressionEnd("hidden"),this._stopHeartbeat())}_maybeSendSdkImpressionEnd(e){return k(this,null,(function*(){if(this.sdkImpressionEndSent)return;if(this.sdkImpressionEndSent=!0,yield this.userStore._getIsSubscribed())return;if(!(yield this.debugEnabled()))return;const t=yield this._getTimeOnPageMs();this.eventManager._track(ue.SDK_IMPRESSION_END,{reason:e,time_on_page_ms:t}),this._logger.verbose(`Sending sdk_impression_end event (${e})`)}))}_getTimeOnPageMs(){return k(this,null,(function*(){const e=yield this.sessionStore._getCurrentPageViewStart();return e?Math.max(0,Date.now()-e.getTime()):0}))}_handleFocus(){this.sessionStartThrottle()}_handleBlur(){this._stopHeartbeat()}_handleUserActivity(){return k(this,null,(function*(){if(!this._document.hasFocus())return;(yield this.userStore._getIsSubscribed())&&(yield this._checkAndStartSession())}))}_checkAndStartSession(){return k(this,null,(function*(){if(!(yield this.userStore._getIsSubscribed()))return;const t=yield this.getDateString(),s=yield this.sessionStore._getLastActivity(),i=Date.now()-((null==s?void 0:s.getTime())||0),r=yield this.sessionStore._getHeartbeatSessionDate(),n=null!=r?yield this.getDateString(r):null;i>=this.inactivityTimeout||t!==n?(yield this._startNewSession(),yield Ke(e.HEARTBEAT_INTERVAL_TIME),yield this._startHeartbeat()):yield this._startHeartbeat()}))}_startNewSession(){return k(this,null,(function*(){yield this._rotateSessionId(),this.sdkImpressionEndSent=!1,yield this.sessionStore._setHeartbeatSessionDate(new Date),yield this.sessionStore._setLastActivity(new Date),this.eventManager._track(ue.SESSION_START),this._logger.verbose("Starting new heartbeat session")}))}_rotateSessionId(){return k(this,null,(function*(){const e=_e();yield this.sessionStore._setSessionId(e),fe._sessionId=e}))}_startHeartbeat(){return k(this,null,(function*(){if(this.heartbeatInterval)return;const t=yield this.userStore._getIsSubscribed();this._logger.verbose("Starting heartbeat session"),this.heartbeatInterval=setInterval((()=>{this._document.hasFocus()&&t?(this.eventManager._track(ue.SESSION_HEARTBEAT),this.sessionStore._setLastActivity(new Date),this._logger.verbose("Sending session heartbeat event")):this._stopHeartbeat()}),e.HEARTBEAT_INTERVAL_TIME)}))}_stopHeartbeat(){this.heartbeatInterval&&(this._logger.verbose("Stopping heartbeat session"),clearInterval(this.heartbeatInterval),this.heartbeatInterval=null)}getDateString(){return k(this,arguments,(function*(e=new Date){const t=yield this.userStore._getTimeZone();return e.toLocaleDateString("en-US",{timeZone:t||void 0})}))}};P($s,"DEFAULT_INACTIVITY_TIMEOUT_SECONDS",1800),P($s,"HEARTBEAT_INTERVAL_TIME",6e4);let Ws=$s;class Ks{constructor(e,t,s,i,r,n,o){P(this,"iid",Ue(5)),P(this,"domainConfigProvider"),P(this,"domainSettingsProvi
12der"),P(this,"notificationPermissionService",null),P(this,"promptsController",null),P(this,"_logger"),P(this,"isLoading"),P(this,"_isLoaded"),P(this,"_isExited"),P(this,"_isEnabled"),P(this,"_domainKey"),P(this,"_loadConfig"),P(this,"pageViewProcessor"),P(this,"scrollDepthObserver"),P(this,"_pushSdkLifecycleCallbacks"),P(this,"_permissionLifecycleCallbacks"),P(this,"_appMessageLifecycleCallbacks"),P(this,"promptLifecycleCallbacks"),P(this,"_onLoadedCallbacks"),P(this,"_postConfigActionsQueue"),P(this,"legacyEventCallbacks"),P(this,"_heartbeatManager"),this.eventManager=e,this.settingsStore=t,this.userStore=s,this.sessionManager=i,this.debugController=r,this.sessionStore=n,this.settingsStore=t,this.userStore=s,this._logger=null!=o?o:ne._getInstance(),this.isLoading=!1,this._isLoaded=!1,this._isExited=!1,this._isEnabled=!0,this.legacyEventCallbacks={},this._establishSessionId().finally((()=>this._sendImpressionEvent()))}_establishSessionId(){return k(this,null,(function*(){try{let e=yield this.sessionStore._getSessionId();e||(e=_e(),yield this.sessionStore._setSessionId(e)),fe._sessionId=e}catch(e){this._logger.error(j(e))}}))}get _currentPageSearchParams(){return new URLSearchParams(ye._location.search)}_executeWhenConfigured(e){return k(this,null,(function*(){return this._isLoaded?Promise.resolve(e()).catch((e=>{const t=j(e);this._logger.error(t),this.eventManager._track(t)})).then((e=>null!=e?e:null)):(null!=this._postConfigActionsQueue||(this._postConfigActionsQueue=[]),this._postConfigActionsQueue.push(e),null)}))}_executeWhenConfiguredIfEnabled(e){return k(this,null,(function*(){return this._executeWhenConfigured((()=>this._isEnabled?e():null))}))}get loadConfig(){return this._loadConfig}get isLoaded(){return this._isLoaded}get isExited(){return this._isExited}get isEnabled(){return this._isEnabled}get _legacyContext(){var e,t,s;const i=new xs(this.debugController,this._logger),r=null!=(s=null!=(t=ve._injectedDomainConfig)?t:null==(e=this.domainConfigProvider)?void 0:e._getCachedSync())?s:{},n=this.userStore._getAnonymousIdSync(),o={puuid:n,externalId:this.userStore._getExternalIdSync(),subscriberState:"none",isSubscribed:!1,getId:()=>n};try{const e=this.userStore._getSubscriberStatusSync();o.isSubscribed=e===Te.SUBSCRIBED,e!==Te.NOT_DETERMINED&&(o.subscriberState=e)}catch(a){}return{domainKey:this.loadConfig.domainKey,env:i.get("env"),app:i.get("app"),domain:i.get("domain",y({},r)),user:i.get("user",o)}}get _currentLocation(){return ye._location}_registerPushSdkLifecycleCallbacks(e){this._pushSdkLifecycleCallbacks=e}_registerPermissionLifecycleCallbacks(e){this._permissionLifecycleCallbacks=e}_registerAppMessageLifecycleCallbacks(e){this._appMessageLifecycleCallbacks=e}_registerPromptLifecycleCallbacks(e){this.promptLifecycleCallbacks=e}_registerLegacyEventCallback(e,t,s){var i;null!=(i=this.legacyEventCallbacks)[e]||(i[e]={});const r=Ue(8);this.legacyEventCallbacks[e][r]=s?(...s)=>{delete this.legacyEventCallbacks[e][r],t(...s)}:t}_registerOnLoadedCallback(e){null!=this._onLoadedCallbacks||(this._onLoadedCallbacks=[]),this._onLoadedCallbacks.push(e)}_setConfiguration(e){return k(this,null,(function*(){const t=function(e){const t=$e(
12);return void 0!==(null==t?void 0:t.iid)&&t.iid!==e.iid?xe.Err(new z(H.DUPLICATE_SDK_DETECTED)):e.isLoaded?xe.Err(new z(H.SDK_ALREADY_LOADED)):xe.Ok(!0)}(this);if(t.isErr())switch(t.getErr().code){case H.DUPLICATE_SDK_DETECTED:this._logger.warn("Unable to initialize PushSDK"),this._handleExit(t.getErr());break;case H.SDK_ALREADY_LOADED:this._logger.warn("SDK already loaded")}else if(this.isLoading)this._logger.warn("Initialization already started");else{if("string"!=typeof(null==e?void 0:e.domainKey)||!e.domainKey.trim())return this._logger.error("Unable to initialize PushSDK: a domainKey is required"),this.isLoading=!1,void(yield this._handleExit(new z(H.DOMAIN_CONFIGURATION_LOAD_FAILED)));this.isLoading=!0,Us._setDomainKey(e.domainKey),this.sessionManager._start(),this.sessionStore._purgeRetiredKeys().catch((e=>this._logger.verbose(`Unable to purge retired session keys: ${j(e).message}`))),this._loadConfig=e,fe._loadConfig=e,function(e){return Object.keys(e).some((e=>!Le.includes(e)))}(e)&&this.debugController._debugUnknownConfigurationKeys(e),this._domainKey=e.domainKey,this.domainSettingsProvider=new ze(e.domainKey,this.settingsStore),this.domainConfigProvider=this.domainSettingsProvider._configProvider;try{yield this._load()}catch(s){const e=j(s);this._logger.error(e),this.eventManager._track(e)}}}))}_handleExit(e){return k(this,null,(function*(){var t,s,i;if(this._isExited)return void this._logger.debug("SDK has already exited.");let r="SDK Exited";e&&(r+=`: ${"string"==typeof e?e:e._compositeMessage}`),this._logger.warn(r),this._isLoaded=!0,this._isExited=!0,this._isEnabled=!1,null==(t=this.promptsController)||t._disable(),this.sessionManager._stop(),null==(s=this.pageViewProcessor)||s._stop(),null==(i=this.scrollDepthObserver)||i._stop();try{const[e,t]=yield Promise.all([this.userStore._getSubscriberStatus(),this.userStore._getIsInDeletedState()]);this.onPushSDKDidExitWithSubscriberStatus(e,t)}catch(n){this._logger.error(j(n))}}))}_load(){return k(this,null,(function*(){yield this._logInitializingState();const e=yield this.domainConfigProvider._get();if(e.isErr()){const t=e.getErr();return void(yield this._handleExit(t.code===H.DOMAIN_CONFIGURATION_LOAD_FAILED?t:new z(H.DOMAIN_CONFIGURATION_LOAD_FAILED,e.getErr())))}const t=e.unwrap();Us._setDomain(t),fe._domainKey=this._domainKey,tt(t)&&this.userStore._setSharedStorageReadOnly(),yield this._handleDomainConfigInitialLoadCompleted(t)}))}_logInitializingState(){return k(this,null,(function*(){this._logger.debug(`Initializing SDK v${ve._libraryVersion} (${ve._isProd?"P":"D"}-${this.iid})`),this._logger.info(`Loading key: ${this._domainKey}`)}))}_activeConfigUsesScrollDepth(e){return k(this,null,(function*(){try{const t=yield e._get();return!t.isErr()&&t.unwrap().some((e=>e.prompts.some((e=>e.style!==At.PUBLISHER_CUSTOM&&$t(xt(e.conditions))))))}catch(t){return this._logger.warn(j(t)),!1}}))}_logUserInfo(){return k(this,null,(function*(){let e=yield this.userStore._getAnonymousId();e&&this._logger.info(`Anonymous ID: ${e}`);let t=yield this.userStore._getExternalId();t&&this._logger.info(`External ID: ${t}`)}))}_logCurrentSubscriptionStatus(){return k(this,null,(function*(){const[e,t]=yield Promise.all([this.userStore._getSubscriberStatus(),this.userStore._getSubscriberStatusDismissedExpiration()]);let s=`Current subscription status: ${Ne(e)}`;e===Te.DISMISSED&&null!==t&&(s+=` - expires in ${Math.round((t-(new Date).getTime())/1e3)}s`),this._logger.info(s)}))}_handleDomainConfigInitialLoadCompleted(e){return k(this,null,(function*(){if(!this._validateHostAvailability(e))return console.warn("%c[PushlySDK: WARNING]\n%cRefusing to run due to domain not present in allow list; This can be configured via the platform or by reaching out to your account manager.","font-size:1.25em;font-weight:600;font-style:italic;color:#4DBCA2;","font-size:1.25em;"),this.debugController._debugPromptNotShown(ut.HOST_NOT_WHITELISTED),void(yield this._handleExit(new z(H.HOST_NOT_ALLOWED)));yield this._dispatchLegacyEventCallbacks(ae.LOADED),this.loadConfig.externalId&&(yield this.userStore._setExternalId(this.loadConfig.externalId));const t=new wt(this.loadConfig,e);if(tt(e))this._logger.debug("[Event Only Mode] Skipping notification & prompt services"),yield this.userStore._synchronizeData();else{this._logger.debug("Starting notification services"),this.notificationPermissionService=new dt(e,t,this.eventManager,this.userStore,this);
12const i=this.domainSettingsProvider._promptsProvider,r=yield this._activeConfigUsesScrollDepth(i);this.scrollDepthObserver=Rt._init(r),r&&this.scrollDepthObserver._bindGestureSignals(),this.promptsController=new Os(this.loadConfig,e,i,this.notificationPermissionService,this.userStore,this.settingsStore,this.sessionManager,this.scrollDepthObserver,this.eventManager,this.debugController,this),this._heartbeatManager=new Ws(this.eventManager,this.userStore,this.sessionStore,e.session,(()=>this.debugController._getIsEventsEnabled())),this._heartbeatManager._subscribeToScroll((e=>{var t;return null==(t=this.scrollDepthObserver)?void 0:t._onScroll(e)}));let n=null;const o=yield dt._getWebPushSupport();if(o.isErr())n=o.getErr(),this.onPushSDKDidNotDetectWebPushSupport(n);else{this.onPushSDKDidDetectWebPushSupport(),yield this._logUserInfo(),yield this.userStore._synchronizeData(),yield this._logCurrentSubscriptionStatus();try{yield this.userStore._getAnonymousId().then((e=>{fe._anonymousId=e})).catch()}catch(s){}const e=yield this.notificationPermissionService._init();if(e.isErr()){const t=e.getErr();t instanceof z&&t._isExitException?(n=t,t.code===H.PUSH_WORKER_REGISTRATION_EXCEPTION&&this.debugController._debugPromptNotShown(ut.SW_INSTALL_FAILED)):this._logger.warn(t.message)}}if(this.promptsController._setIsWebPushSupported(o),n)return void(yield this._handleExit(n));yield this.notificationPermissionService._synchronize(),this.notificationPermissionService._watch((()=>{var e;return null==(e=this.pageViewProcessor)?void 0:e._evaluate()}))}this.pageViewProcessor=Ct._init(e,this.eventManager,this.userStore,this.sessionManager.transient.store,{onPageChanged:()=>k(this,null,(function*(){var e;null==(e=this.scrollDepthObserver)||e._onPageChanged(),yield t._getRegistration()}))}),function(e){return e.flags.includes(W._sdkHasForceDebugLogsEnabledFlag)}(e)&&(this._logger.debug("Forcing DEBUG logs"),this._logger.logLevel=C.VERBOSE),this._evaluateUserLocaleAndTimeZoneSettings().then(),yield this._setIsLoaded(e)}))}_evaluateUserLocaleAndTimeZoneSettings(){return k(this,null,(function*(){try{const[e,t,s,i]=yield Promise.all([this.userStore._getLocale(),Intl.DateTimeFormat().resolvedOptions().locale,this.userStore._getTimeZone(),Intl.DateTimeFormat().resolvedOptions().timeZone]),r=[];(!e||t&&e!==t)&&r.push(this.userStore._setLocale(t).then((()=>fe._getProfileLanguageEvent(t))).then((e=>this.eventManager._track(e)))),(!s||i&&s!==i)&&r.push(this.userStore._setTimeZone(i).then((()=>fe._getProfileTimeZoneEvent(i))).then((e=>this.eventManager._track(e)))),yield Promise.all(r).catch((e=>this._logger.error(e)))}catch(e){const t=j(e);this._logger.error(t)}}))}_getUserDetails(){return k(this,null,(function*(){var e,t,s;const i=yield this.userStore._getAnonymousId(),r=yield this.userStore._getSubscriberStatus(),n=yield this.userStore._getExternalId(),o=yield this._getBrowserPermissions();return{userId:i,subscriberStatus:r,externalId:n,browserPermission:null!=(e=null==o?void 0:o.permission)?e:null,endpoint:null!=(s=null==(t=null==o?void 0:o.token)?void 0:t.endpoint)?s:null}}))}_getBrowserPermissions(){return k(this,null,(function*(){return this.notificationPermissionService?yield this.notificationPermissionService._getCurrentPermissions():null}))}_toggleDebugPanel(e=!0){return k(this,null,(function*(){try{return e?this.debugController._showDebugPanel(yield this._getUserDetails()):this.debugController._hideDebugPanel()}catch(t){this.eventManager._track(j(t))}}))}_handleUserDeletionRequest(){return k(this,null,(function*(){(yield this.userStore._getIsInDeletedState())?this._logger.warn("User has already requested to be deleted."):(this._logger.verbose("Requesting user deletion"),yield this.eventManager._trackAsync(ue.USER_DELETION_REQUEST),yield this.userStore._setIsInDeletedState(!0),yield this._handleExit("User requested deletion."))}))}_validateHostAvailability(e){let t=!1,s=e.whitelist_domains;if(s)if(Array.isArray(s)&&0!==s.length){const e=this._currentLocation,i=["localhost","127.0.0.1"];t=[...s,...i].some((t=>rt(t,e)))}else t=!0;else t=!0;return t}_setIsLoaded(e){return k(this,null,(function*(){var t,s,i;if(this._isLoaded)return;this.isLoading=!1,this._isLoaded=!0,this._executePostConfigActions().catch((e=>this._logger.error(e)));if(yield this._evaluateUserDeletedState())return;
12this.debugController._shouldShowDebugPanel()&&(yield this.debugController._showDebugPanel(yield this._getUserDetails())),(null==(t=this._onLoadedCallbacks)?void 0:t.length)&&(yield Promise.all(this._onLoadedCallbacks.map((e=>Promise.resolve(e()).catch((e=>{this._logger.error(e)})))))),this._logger.debug("SDK load completed"),this._isEnabled||this._logger.debug("SDK has been disabled");const r=yield this.userStore._getSubscriberStatus();this.pageViewProcessor?this.pageViewProcessor._start():this._logger.warn("Page View timer not available"),null==(s=this.scrollDepthObserver)||s._start(),null==(i=this.promptsController)||i._startDisplayEvaluations(),this.onPushSDKDidFinishLoading(e,r)}))}_executePostConfigActions(){return k(this,null,(function*(){var e;const t=[...null!=(e=this._postConfigActionsQueue)?e:[]];if(this._postConfigActionsQueue=[],t.length)return Promise.all(t.map((e=>Promise.resolve(e()).catch((e=>this._logger.error(e)))))).then()}))}_evaluateUserDeletedState(){return k(this,null,(function*(){let e=yield this.userStore._getIsInDeletedState();return!e&&this._currentPageSearchParams.has(ve._udrUrlSearchParameter)?(yield this._handleUserDeletionRequest(),e=!0):e&&(yield this._handleExit("User is deleted.")),e}))}_dispatchLegacyEventCallbacks(e,...t){return k(this,null,(function*(){var s;const i=Object.values(null!=(s=this.legacyEventCallbacks[e])?s:{});i.length?(yield Promise.all(i.map((s=>Promise.resolve(s(...t)).catch((t=>{this._logger.error(`Error encountered in on_${e} handler:`,j(t).message)}))))),this._logger.verbose(`Completed ${i.length} on_${e} handler(s)`)):this._logger.verbose(`No on_${e} handlers found`)}))}_sendImpressionEvent(){(()=>k(this,null,(function*(){(yield this.userStore._getIsInDeletedState())||this.debugController._debug(ue.SDK_IMPRESSION)})))().then()}onPushSDKDidDetectWebPushSupport(){var e,t;null==(t=null==(e=this._pushSdkLifecycleCallbacks)?void 0:e.onPushSDKDidDetectWebPushSupport)||t.call(e),this._dispatchLegacyEventCallbacks(ae.WEB_PUSH_SUPPORTED)}onPushSDKDidNotDetectWebPushSupport(e){var t,s;null==(s=null==(t=this._pushSdkLifecycleCallbacks)?void 0:t.onPushSDKDidNotDetectWebPushSupport)||s.call(t),this._dispatchLegacyEventCallbacks(ae.WEB_PUSH_UNSUPPORTED,null==e?void 0:e.message,this.loadConfig,ye)}onPushSDKDidFinishLoading(e,t){var s,i;null==(i=null==(s=this._pushSdkLifecycleCallbacks)?void 0:s.onPushSDKDidFinishLoading)||i.call(s,e,t),this._dispatchLegacyEventCallbacks(ae.READY,this._legacyContext)}onPushSDKDidExitWithSubscriberStatus(e,t,s){var i,r;null==(r=null==(i=this._pushSdkLifecycleCallbacks)?void 0:i.onPushSDKDidExitWithSubscriberStatus)||r.call(i,e,t)}onPushSDKUserIsEligibleToPrompt(){return k(this,null,(function*(){var e,t;null==(t=null==(e=this.promptLifecycleCallbacks)?void 0:e.onPushSDKUserIsEligibleToPrompt)||t.call(e),this._dispatchLegacyEventCallbacks(ae.PROMPT_ELIGIBLE,{})}))}onPushSDKUserIsIneligibleToPrompt(){return k(this,null,(function*(){var e,t;null==(t=null==(e=this.promptLifecycleCallbacks)?void 0:e.onPushSDKUserIsIneligibleToPrompt)||t.call(e),this._dispatchLegacyEventCallbacks(ae.PROMPT_INELIGIBLE,{})}))}onPushSDKDidShowPrompt(e){return k(this,null,(function*(){var t,s;null==(s=null==(t=this.promptLifecycleCallbacks)?void 0:t.onPushSDKDidShowPrompt)||s.call(t,e);const i=yield this._getLegacyPromptEventPayload(e);this._dispatchLegacyEventCallbacks(ae.PROMPT_SHOWN,i)}))}onPushSDKFailedToShowPrompt(e,t){return k(this,null,(function*(){var s,i;null==(i=null==(s=this.promptLifecycleCallbacks)?void 0:s.onPushSDKFailedToShowPrompt)||i.call(s,e,t)}))}onPushSDKDidReceivePromptResponse(e,t){return k(this,null,(function*(){var s,i;null==(i=null==(s=this.promptLifecycleCallbacks)?void 0:s.onPushSDKDidReceivePromptResponse)||i.call(s,e,t);const r=yield this._getLegacyPromptEventPayload(e);t?this._dispatchLegacyEventCallbacks(ae.PROMPT_ALLOWED,r):this._dispatchLegacyEventCallbacks(ae.PROMPT_DISMISSED,r)}))}_getLegacyPromptEventPayload(e){return k(this,null,(function*(){return{prompt:{id:e},subscribed:yield this.userStore._getIsSubscribed()}}))}onPushSDKDidRequestNotificationPermissions(){return k(this,null,(function*(){var e,t;null==(t=null==(e=this._permissionLifecycleCallbacks)?void 0:e.onPushSDKDidRequestNotificationPermissions)||t.call(e),this._dispatchLegacyEventCallbacks(ae.PERMISSION_SHOWN,{}),this._dispatchLegacyEventCallbacks(ae.LEGACY_PERMISSION_SHOWN,{})}))}onPushSDKDidReceivePermissionResponse(e){return k(this,null,(function*(){var t,s;switch(null==(s=null==(t=this._permissionLifecycleCallbacks)?void 0:t.onPushSDKDidReceivePermissionResponse)||s.call(t,e),e){case at.GRANTED:this._dispatchLegacyEventCallbacks(ae.PERMISSION_ALLOWED,{}),this._dispatchLegacyEventCallbacks(ae.LEGACY_PERMISSION_ALLOWED,{});break;case at.DENIED:this._dispatchLegacyEventCallbacks(ae.PERMISSION_DENIED,{});break;case at.DISMISSED:this._dispatchLegacyEventCallbacks(ae.PERMISSION_DISMISSED,{})}}))}onPushSDKDidReceivePermissionResponseWithError(e,t){return k(this,null,(function*(){var s,i;null==(i=null==(s=this._permissionLifecycleCallbacks)?void 0:s.onPushSDKDidReceivePermissionResponseWithError)||i.call(s,e,t)}))}onPushSDKDidRegisterForRemoteNotificationsWithDeviceToken(e){return k(this,null,(function*(){var t,s;null==(s=null==(t=this._permissionLifecycleCallbacks)?void 0:t.onPushSDKDidRegisterForRemoteNotificationsWithDeviceToken)||s.call(t,e)}))}onPushSDKDidFailToRegisterForRemoteNotificationsWithError(e){return k(this,null,(function*(){var t,s;null==(s=null==(t=this._permissionLifecycleCallbacks)?void 0:t.onPushSDKDidFailToRegisterForRemoteNotificationsWithError)||s.call(t,e)}))}onPushSDKDidReceivePermissionStatusChange(e){return k(this,null,(function*(){var t,s,i,r,n;switch(null==(t=this._heartbeatManager)||t.onSubscriptionChanged(e==at.GRANTED),null==(i=null==(s=this._permissionLifecycleCallbacks)?void 0:s.onPushSDKDidReceivePermissionStatusChange)||i.call(s,e),e){case at.GRANTED:case at.DENIED:null==(r=this.promptsController)||r._disable();break;case at.DISMISSED:null==(n=this.promptsController)||n._enable()}}))}}const Fs=()=>new z(H.STORAGE_NOT_AVAILABLE,null," - IndexedDB"),Bs=()=>new z(H.IDB_INVALID_STORE_NAME),Vs=()=>new z(H.IDB_BLOCKED);class Gs extends Cs{constructor(e,t=ne._getInstance("IdbStore")){super(ks.IDB,e,t)}get _isAvailable(){return be._getIsEnvBaseSupported()[0]&&!!this._storeName&&!!this._indexedDB}get _indexedDB(){return be._scope.indexedDB}get _isSafari(){return be._isSafari}_getData(e){return k(this,null,(function*(){return this._executeTransaction("read",e)}))}_setData(e,t){return k(this,null,(function*(){return this._executeTransaction("write",[e,t],(()=>{e!==W._pnStorageTypeLuaKey&&this._updateLua()}))}))}_removeData(e){return k(this,null,(function*(){return this._executeTransaction("delete",e)}
12))}_openDatabase(){return k(this,null,(function*(){return new Promise((e=>{if(!this._indexedDB)return void e(xe.Err(Fs()));if(!this._storeName)return void e(xe.Err(Bs()));const t=this._indexedDB.open("pn_store",1);t.onerror=s=>{e(xe.Err(t.error||new Error(s)))},t.onsuccess=t=>{this._handleOnOpenSuccess(t.target.result,(t=>{e(xe.Ok(t))}))},t.onupgradeneeded=e=>{this._handleOnUpgradeNeeded(e.target.result)},t.onblocked=()=>{e(xe.Err(Vs()))}}))}))}_handleOnOpenSuccess(e,t){e.onversionchange=()=>{this._handleOnVersionChange(e)},this._isSafari&&this._selfHeal(e),t(e)}_handleOnUpgradeNeeded(e){e.objectStoreNames.contains(Ts.sub)||e.createObjectStore(Ts.sub,{keyPath:"k"}),e.objectStoreNames.contains(Ts.sdk)||e.createObjectStore(Ts.sdk,{keyPath:"k"}),e.objectStoreNames.contains(Ts.WORKER)||e.createObjectStore(Ts.WORKER,{keyPath:"k"})}_handleOnVersionChange(e){e.close()}_executeTransaction(e,t,s){return k(this,null,(function*(){const i=yield this._openDatabase();if(i.isErr())return i;const r=i.unwrap();return new Promise((i=>{let n=!1;const o=()=>{if(!n){n=!0;try{r.close()}catch(e){}}};try{const n=this._storeName,a="read"===e?"readonly":"readwrite",l=r.transaction(n,a),u=(new Date).getTime(),c=l.objectStore(n),d="write"===e?t[0]:t;let h;switch(e){case"read":h=c.get(d);break;case"write":h=c.put({k:d,value:t[1],ts:d===W._pnStorageTypeLuaKey?t[1]:u});break;
12case"delete":h=c.delete(d)}l.onabort=e=>{o(),i(xe.Err(h.error||new Error(e)))},l.oncomplete=()=>{var r,n,a,l;let u;switch(o(),e){case"read":u=xe.Ok({value:null!=(n=null==(r=h.result)?void 0:r.value)?n:null,ts:null!=(l=null==(a=h.result)?void 0:a.ts)?l:0,sourceType:this._storageType});break;case"write":u=xe.Ok(t[1]);break;case"delete":u=xe.Ok(null)}i(u),null==s||s(u)}}catch(a){o(),i(xe.Err(j(a)))}}))}))}_updateLua(){this._executeTransaction("write",[W._pnStorageTypeLuaKey,(new Date).getTime()]).then((e=>{var t;e.isErr()&&this._logger.verbose(`Unable to set lua for ${this._storeName}`,null==(t=e.getErr())?void 0:t.message)}))}_selfHeal(e){if(!Object.values(Ts).every((t=>e.objectStoreNames.contains(t))))try{this._handleOnUpgradeNeeded(e)}catch(t){this._logger.warn("Self-heal could not create a missing object store outside an upgrade.",j(t))}}}const Hs=()=>new z(H.STORAGE_NS_REQUIRED,null,"Mem");class qs extends Cs{constructor(e,t=ne._getInstance("MemStore")){super(ks.MEM,e,t),P(this,"_db"),this._db={}}get _isAvailable(){return null!==this._storeName}_getData(e){return k(this,null,(function*(){return this._getDataSync(e)}))}_setData(e,t){return k(this,null,(function*(){return this._setDataSync(e,t)}))}_removeData(e){return k(this,null,(function*(){return this._removeDataSync(e)}))}_getDataSync(e){var t,s,i;if(!this._storeName)return xe.Err(Hs());const r=null==(t=this._db[this._storeName])?void 0:t[e];return xe.Ok({value:null!=(s=null==r?void 0:r.value)?s:null,ts:null!=(i=null==r?void 0:r.ts)?i:0,sourceType:this._storageType})}_setDataSync(e,t){var s,i;return this._storeName?(null!=(s=this._db)[i=this._storeName]||(s[i]={}),this._db[this._storeName][e]={value:t,ts:(new Date).getTime()},xe.Ok(t)):xe.Err(Hs())}_removeDataSync(e){var t;return this._storeName?(void 0!==(null==(t=this._db[this._storeName])?void 0:t[e])&&delete this._db[this._storeName][e],xe.Ok(null)):xe.Err(Hs())}}const js=()=>new z(H.STORAGE_NOT_AVAILABLE,null," - Session"),Qs=e=>new z(H.STORAGE_KEY_EMPTY,null,e),zs=e=>new z(H.STORAGE_FAILED_TO_OPEN,e," - Session");class Ys extends Cs{constructor(e,t=ne._getInstance("SessionStore"),s){super(ks.SESSION,e,t),P(this,"_namespace"),this._namespace=null!=s?s:e}get _isAvailable(){return!!this._namespace&&!this._isInWorkerGlobalScope&&this.storageAvailable()}get _store(){return ye._scope.sessionStorage}_getData(e){return k(this,null,(function*(){if(!this._isAvailable)return xe.Err(js());const t=this._openStore();if(t.isErr())return t;const s=t.unwrap()[e]||null;return null==s&&e!==W._pnStorageTypeLuaKey?xe.Err(Qs(e)):xe.Ok(s)}))}_setData(e,t){return k(this,null,(function*(){if(!this._isAvailable)return xe.Err(js());const s=this._openStore();if(s.isErr())return s;const i=s.unwrap();return i[e]=e===W._pnStorageTypeLuaKey?t:{value:t,ts:(new Date).getTime()},this._persist(i),xe.Ok(t)}))}_removeData(e){return k(this,null,(function*(){const t=this._openStore();if(t.isErr())return t;const s=t.unwrap();return e in s&&(delete s[e],this._persist(s)),xe.Ok(null)}))}_openStore(){var e;let t={};if(!this._namespace)return xe.Err(zs(new Error("Store cannot be accessed without a store name set")));try{const s=null!=(e=this._store.getItem(this._namespace))?e:"{}",i=JSON.parse(s);i&&"object"==typeof i&&!Array.isArray(i)&&(t=i)}catch(s){const e=zs(j(s));return this._logger.warn(e.message),xe.Err(e)}return xe.Ok(t)}_persist(e){try{e&&"object"==typeof e&&!Array.isArray(e)&&(e[W._pnStorageTypeLuaKey]=(new Date).getTime()),this._store.setItem(this._namespace,JSON.stringify(e))}catch(t){this._logger.error(j(t))}}storageAvailable(){let e;try{e=this._store;const t=W._pnSessionStorageKey+"_test_";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&"QuotaExceededError"===t.name&&!!e&&0!==e.length}}}const Xs=e=>new Error(`No available stores found for ${e.join(", ")}`),Zs=e=>new z(H.STORAGE_KEY_EMPTY,null,e);class Js{constructor(e,t,s=ne._getInstance("StorageManager"),i){P(this,"_storeName"),P(this,"_logger"),P(this,"_stores"),P(this,"_preferredStores"),this._storeName=e,this._preferredStores=t,this._logger=s,this._stores=Object.fromEntries(this._preferredStores.map((t=>{switch(t){case ks.IDB:return[ks.IDB,new Gs(e)];case ks.COOKIE:return[ks.COOKIE,new Us(e)];case ks.LEGACY_COOKIE:return[ks.LEGACY_COOKIE,new Us(null)];case ks.MEM:return[ks.MEM,new qs(e)];case ks.SESSION:return[ks.SESSION,new Ys(e,void 0,i)]}})))}_getAvailableStores(e){const t=null!=e?e:this._preferredStores,s=t.filter((e=>!!this._stores[e]&&this._stores[e]._isAvailable));return 0===s.length?xe.Err(Xs(t)):xe.Ok(s.map((e=>this._stores[e])))}_getData(e,t){return k(this,null,(function*(){const s=yield this._getTimestampedData(e,t);return s.isErr()?s:xe.Ok(s.unwrap().value)}))}_getDataSync(e,t){const s=this._getTimestampedDataSync(e,t);return s.isErr()?s:xe.Ok(s.unwrap().value)}_getTimestampedData(e,t){return k(this,null,(function*(){const s=yield this._mGetTimestampedData(e,t),i=Object.values(s).filter((e=>e.isOk()&&null!==e.unwrap().value)).map((e=>e.unwrap()));return i.length?(i.length>1&&i.sort(((e,t)=>t.ts-e.ts)),xe.Ok(i[0])):xe.Err(Zs(e))}))}_getTimestampedDataSync(e,t){const s=this._mGetTimestampedDataSync(e,t),i=Object.values(s).filter((e=>e.isOk()&&null!==e.unwrap().value)).map((e=>e.unwrap()));return i.length?(i.length>1&&i.sort(((e,t)=>t.ts-e.ts)),xe.Ok(i[0])):xe.Err(Zs(e))}_mGetTimestampedData(e,t){return k(this,null,(function*(){var s;const i={},r=null!=(s=null==t?void 0:t.preferredStores)?s:this._preferredStores;return(yield Promise.all(r.map((t=>{var s;return(null==(s=this._stores[t])?void 0:s._isAvailable)?this._stores[t]._getData(e).then((e=>[t,e])):[t,xe.Ok({value:null,ts:0})]}
12)))).forEach((([e,t])=>{i[e]=t})),i}))}_mGetTimestampedDataSync(e,t){var s;const i={};return(null!=(s=null==t?void 0:t.preferredStores)?s:this._preferredStores).filter((e=>this._stores[e]&&"_getDataSync"in this._stores[e])).map((e=>this._stores[e])).map((t=>(null==t?void 0:t._isAvailable)?[t._storageType,t._getDataSync(e)]:[t._storageType,xe.Ok({value:null,ts:0})])).forEach((([e,t])=>{i[e]=t})),i}_setData(e,t,s){return k(this,null,(function*(){var i;const r=null!=(i=null==s?void 0:s.preferredStores)?i:this._preferredStores,n=yield Promise.all(r.map((s=>{var i;return(null==(i=this._stores[s])?void 0:i._isAvailable)?this._stores[s]._setData(e,t).then((t=>(t.isErr()&&this._logger.warn(`Unable to set [${s}:error] ${e}`,t.getErr().message),t))):Promise.resolve(null).then((t=>(this._logger.warn(`Unable to set [${s}:not_available] ${e}`),t)))})));return this._parseSetterResponse(n,r,t)}))}_setDataSync(e,t,s){var i;const r=null!=(i=null==s?void 0:s.preferredStores)?i:this._preferredStores,n=r.filter((e=>this._stores[e]&&"_getDataSync"in this._stores[e])).map((e=>this._stores[e])).map((s=>{if(null==s?void 0:s._isAvailable){const i=s._setDataSync(e,t);return i.isErr()&&this._logger.warn(`Unable to set [${s}:error] ${e}`,i.getErr().message),i}return this._logger.warn(`Unable to set [${s}:not_available] ${e}`),null}));return this._parseSetterResponse(n,r,t)}_removeData(e,t){return k(this,null,(function*(){var s;const i=null!=(s=null==t?void 0:t.preferredStores)?s:this._preferredStores,r=yield Promise.all(i.map((t=>{var s;return(null==(s=this._stores[t])?void 0:s._isAvailable)?this._stores[t]._removeData(e):null})));return this._parseSetterResponse(r,i,null)}))}_parseSetterResponse(e,t,s){if(e.every((e=>null===e||e.isErr()))){const s=e.find((e=>null==e?void 0:e.getErr()));return s?(yt._dispatch(yt.EventType.ERROR,s.getErr()),this._logger.warn(s.getErr().message),s):xe.Err(Xs(t))}return e.forEach((e=>{(null==e?void 0:e.isErr())&&yt._dispatch(yt.EventType.ERROR,e.getErr())})),xe.Ok(s)}}var ei=(e=>(e.anonymousId="id",e.locale="ll",e.timeZone="tz",e.token="t",e.externalId="xid",e.isSubscribed="s",e.subscriberStatus="ss",e.DISMISSED_STATUS_EXPIRATION="dse",e.isInDeletedState="udr",e.IS_USER_IN_SOFT_UNSUBSCRIBE_STATE="sunsub",e.reportedSubscriptionFingerprint="rsf",e.lastNotificationPermission="lnp",e))(ei||{});const ti={id:"pushly.user_puuid",t:"_pntx",xid:"_pnxd",ss:"_pnss",udr:"_pnudr",dse:"_pnpdm"};var si=(e=>(e.logLevel="log",e.eventsCache="ev",e.domainConfig="d",e.DOMAIN_SETTINGS="ds",e.PROMPTS_CACHE="p",e.PROMPTS_OCCURRENCES_MAP="pocm",e.PROMPTS_LAST_VIEWED="plv",e))(si||{}),ii=(e=>(e.SESSION_START="sxst",e.SESSION_RUNTIME="sxrt",e.SESSION_PAGE_VIEWS="sxpv",e.SESSION_PAGE_VIEW_START="sxpvs",e.SESSION_READY_PROMPT="sxrp",e.SESSION_LAST_ACTIVITY="ula",e.SESSION_HEARTBEAT_SESSION="hbs",e.SESSION_ID="sxid",e))(ii||{});function ri(e,t,s){const i=Array.from(e.entries()).reduce(t,null!=s?s:[]);return void 0!==s&&typeof e!=typeof s?i:new Map(i)}const ni=[ks.IDB,ks.MEM],oi=[ks.SESSION,ks.MEM],ai=[ks.SESSION,ks.IDB,ks.MEM];class li extends Js{constructor(e){super(Ts.sdk,[ks.MEM,ks.IDB,ks.SESSION],null!=e?e:ne._getInstance("SettingsStore"),W._pnSettingsSessionStorageKey)}_getDomainSettings(){return k(this,null,(function*(){return(yield this._getTimestampedData(si.DOMAIN_SETTINGS,{preferredStores:ai})).unwrapOrNull()}))}_setDomainSettings(e){return k(this,null,(function*(){const[t]=yield Promise.all([this._setData(si.DOMAIN_SETTINGS,e,{preferredStores:ai}),this._setDomainConfig(e.config)]);return t.unwrapOrNull()}))}_getDomainConfig(){return k(this,null,(function*(){return(yield this._getTimestampedData(si.domainConfig,{preferredStores:ni})).unwrapOrNull()}))}_setDomainConfig(e){return k(this,null,(function*(){return(yield this._setData(si.domainConfig,e,{preferredStores:ni})).unwrapOrNull()}))}_getCachedEvents(){return k(this,null,(function*(){return(yield this._getData(si.eventsCache,{preferredStores:ni})).unwrapOr([])}))}_setCachedEvents(e){return k(this,null,(function*(){return(yield this._setData(si.eventsCache,e,{preferredStores:ni})).unwrapOr([])}))}_getViewedPromptOccurrencesCount(){return k(this,null,(function*(){return ri(yield this._getViewedPromptOccurrencesM
12ap(),((e,[,t])=>e+t.length),0)}))}_getViewedPromptOccurrencesMap(){return k(this,null,(function*(){return(yield this._getData(si.PROMPTS_OCCURRENCES_MAP,{preferredStores:ni})).unwrapOr(new Map)}))}_dropViewedPromptOccurrencesNotInInterval(e){return k(this,null,(function*(){const t=ri(yield this._getViewedPromptOccurrencesMap(),((t,[s,i])=>{const r=i.filter((t=>Math.abs(Qe(t))<=e));return r.length>0&&t.push([s,r]),t}));yield this._setData(si.PROMPTS_OCCURRENCES_MAP,t)}))}_incrementViewedOccurrencesForPromptId(e){return k(this,null,(function*(){var t;const s=yield this._getViewedPromptOccurrencesMap();s.set(e,[(new Date).getTime(),...null!=(t=s.get(e))?t:[]]),yield this._setData(si.PROMPTS_OCCURRENCES_MAP,s)}))}_getLastViewedPromptId(){return k(this,null,(function*(){return(yield this._getData(si.PROMPTS_LAST_VIEWED,{preferredStores:ni})).unwrapOrNull()}))}_setLastViewedPromptId(e){return k(this,null,(function*(){return(yield this._setData(si.PROMPTS_LAST_VIEWED,e,{preferredStores:ni})).unwrapOrNull()}))}_setLastMatchedPromptId(e){return k(this,null,(function*(){return(null===e?yield this._removeData(ii.SESSION_READY_PROMPT,{preferredStores:oi}):yield this._setData(ii.SESSION_READY_PROMPT,e,{preferredStores:oi})).unwrapOrNull()}))}_getLastMatchedPromptId(){return k(this,null,(function*(){return(yield this._getData(ii.SESSION_READY_PROMPT,{preferredStores:oi})).unwrapOrNull()}))}}const ui=[ks.COOKIE,ks.IDB,ks.MEM],ci=[ks.IDB,ks.MEM];class di extends Js{constructor(e,t=ne._getInstance("UserStore")){super(Ts.sub,[ks.MEM,ks.IDB,ks.COOKIE,ks.SESSION],t),P(this,"_legacyStorage"),P(this,"_isSharedStorageReadOnly",!1),this._legacyStorage=e}_setSharedStorageReadOnly(){this._isSharedStorageReadOnly=!0}get _domainWideKeyWriteStores(){return this._isSharedStorageReadOnly?ci:ui}_synchronizeData(){return k(this,null,(function*(){const e=this._getAvailableStores([ks.IDB,ks.COOKIE]).unwrapOr([]);if(e.length<=1)this._logger.verbose("[Sync] No available stores to synchronize");else{const t=[ei.anonymousId,ei.subscriberStatus,ei.isInDeletedState,ei.DISMISSED_STATUS_EXPIRATION];this._logger.verbose("[Sync] Starting synchronization"),yield Promise.all(t.map((t=>this._synchronizeKey(t,e)))),this._logger.verbose("[Sync] Completed synchronization")}yield this._evaluateSubscriberDismissedState()}))}_synchronizeKey(e,t){return k(this,null,(function*(){const s=yield Promise.all(t.map((t=>t._getData(e).then((e=>({store:t,value:e.isOk()?e.unwrap().value:null,ts:e.isOk()?e.unwrap().ts:0})))))),i=s.filter((e=>null!==e.value&&void 0!==e.value));if(!i.length)return;const r=this._resolveSynchronizationWinner(e,i);yield Promise.all(s.filter((e=>e.store!==r.store&&e.value!==r.value)).filter((e=>!(this._isSharedStorageReadOnly&&e.store._storageType===ks.COOKIE))).map((t=>t.store._setData(e,r.value).then((s=>{s.isErr()?this._logger.verbose(`[Sync] Unable to synchronize ${e} value to ${t.store._storageType}. ${s.getErr().message}`):this._logger.verbose(`[Sync] Synchronized ${e} value to ${t.store._storageType}`)})))))}))}_resolveSynchronizationWinner(e,t){const s=e===ei.subscriberStatus?t.filter((e=>Ce(e.value)!==Te.NOT_DETERMINED)):t,i=s.length?s:t;if(this._isSharedStorageReadOnly){const e=i.find((e=>e.store._storageType===ks.COOKIE));if(e)return e}return i.reduce(((e,t)=>t.ts>e.ts?t:e))}_evaluateSubscriberDismissedState(){return k(this,null,(function*(){const e=yield this._getSubscriberStatus(),t=yield this._getSubscriberStatusDismissedExpiration();e===Te.DISMISSED&&(null===t||(new Date).getTime()>=t)?(this._logger.info("Removing subscriber dismissed state"),yield Promise.all([this._removeData(ei.DISMISSED_STATUS_EXPIRATION,{preferredStores:this._domainWideKeyWriteStores}),this._setSubscriberStatus(Te.NOT_DETERMINED)])):e!==Te.DISMISSED&&null!==t&&(this._logger.verbose("Removing subscriber dismissed expiration key"),yield this._removeData(ei.DISMISSED_STATUS_EXPIRATION,{preferredStores:this._domainWideKeyWriteStores}))}))}_getAnonymousId(){return k(this,null,(function*(){let e=(yield this._getData(ei.anonymousId,{preferredStores:ui})).unwrapOrNull();if(!e){const t=this._legacyStorage._getAnonymousId(),s=yield this._setData(ei.anonymousId,null!=t?t:Ue(),{preferredStores:this._domainWide
12KeyWriteStores});s.isOk()&&(e=s.unwrap(),this._removeLegacyKey(ti[ei.anonymousId]))}return e}))}_getAnonymousIdSync(){let e=this._getDataSync(ei.anonymousId,{preferredStores:ui}).unwrapOrNull();if(!e){const t=this._legacyStorage._getAnonymousId(),s=this._setDataSync(ei.anonymousId,null!=t?t:Ue(),{preferredStores:this._domainWideKeyWriteStores});s.isOk()&&(e=s.unwrap())}return e}_getLocale(){return k(this,null,(function*(){return(yield this._getData(ei.locale,{preferredStores:ci})).unwrapOrNull()}))}_setLocale(e){return k(this,null,(function*(){return(yield this._setData(ei.locale,e,{preferredStores:ci})).unwrapOrNull()}))}_getTimeZone(){return k(this,null,(function*(){return(yield this._getData(ei.timeZone,{preferredStores:ci})).unwrapOrNull()}))}_setTimeZone(e){return k(this,null,(function*(){return(yield this._setData(ei.timeZone,e,{preferredStores:ci})).unwrapOrNull()}))}_getExternalId(){return k(this,null,(function*(){let e=(yield this._getData(ei.externalId,{preferredStores:ci})).unwrapOrNull();if(!e){const t=this._legacyStorage._getExternalId();if(t){(yield this._setData(ei.externalId,t,{preferredStores:ci})).isOk()&&(e=t,this._removeLegacyKey(ti[ei.externalId]))}}return e}))}_getExternalIdSync(){let e=this._getDataSync(ei.externalId,{preferredStores:ui}).unwrapOrNull();if(!e){const t=this._legacyStorage._getExternalId();if(t){this._setDataSync(ei.externalId,t,{preferredStores:ci}).isOk()&&(e=t)}}return e}_setExternalId(e){return k(this,null,(function*(){return(yield this._setData(ei.externalId,e,{preferredStores:ci})).isOk()}))}_removeExternalId(){return k(this,null,(function*(){return(yield this._removeData(ei.externalId,{preferredStores:ci})).isOk()}))}_getIsSubscribed(){return k(this,null,(function*(){return(yield this._getSubscriberStatus())===Te.SUBSCRIBED}))}_getSubscriberStatus(){return k(this,null,(function*(){const e=yield this._mGetTimestampedData(ei.subscriberStatus,{preferredStores:ui});let t=Te.NOT_DETERMINED;const s=this._resolveStoredSubscriberStatus(e);if(null===s){const e=this._legacyStorage._getSubscriberStatus(),s=yield this._setData(ei.subscriberStatus,ke[null!=e?e:t],{preferredStores:null===e?ci:this._domainWideKeyWriteStores});s.isOk()&&(t=Ce(s.unwrap())),e&&this._removeLegacyKey(ti[ei.subscriberStatus])}else t=Ce(s);return t}))}_resolveStoredSubscriberStatus(e){const t=Object.values(e).filter((e=>e.isOk()&&null!==e.unwrap().value)).map((e=>e.unwrap()));if(!t.length)return null;const s=t.filter((e=>Ce(e.value)!==Te.NOT_DETERMINED));return(s.length?s:t).reduce(((e,t)=>t.ts>e.ts?t:e)).value}_getIsUserInSoftUnsubscribedState(){return k(this,null,(function*(){return!!(yield this._getData(ei.IS_USER_IN_SOFT_UNSUBSCRIBE_STATE,{preferredStores:ui})).unwrapOrNull()}))}_setIsUserInSoftUnsubscribedState(){return k(this,null,(function*(){yield this._setData(ei.IS_USER_IN_SOFT_UNSUBSCRIBE_STATE,1,{preferredStores:this._domainWideKeyWriteStores})}))}_unsetIsUserInSoftUnsubscribedState(){return k(this,null,(function*(){yield this._removeData(ei.IS_USER_IN_SOFT_UNSUBSCRIBE_STATE,{preferredStores:this._domainWideKeyWriteStores})}))}_getSubscriberStatusSync(){const e=this._mGetTimestampedDataSync(ei.subscriberStatus,{preferredStores:ui});let t=Te.NOT_DETERMINED;const s=this._resolveStoredSubscriberStatus(e);if(null===s){const e=this._legacyStorage._getSubscriberStatus(),s=this._setDataSync(ei.subscriberStatus,ke[null!=e?e:t],{preferredStores:null===e?ci:this._domainWideKeyWriteStores});s.isOk()&&(t=Ce(s.unwrap()))}else t=Ce(s);return t}_setSubscriberStatus(e){return k(this,null,(function*(){return(yield this._setData(ei.subscriberStatus,ke[e],{preferredStores:this._domainWideKeyWriteStores})).isOk()}))}_setSubscriberStatusDismissed(e){return k(this,null,(function*(){if(!(yield this._setSubscriberStatus(Te.DISMISSED)))return this._logger.warn("Unable to set subscriber dismissed status. Skipping dismissed expiration."),!1;const t=yield this._setData(ei.DISMISSED_STATUS_EXPIRATION,(new Date).getTime()+1e3*e,{preferredStores:this._domainWideKeyWriteStores});return t.isOk()||this._logger.warn("Unable to set subscriber dismissed expiration.",t.getErr()),t.isOk()}))}_getSubscriberStatusDismissedExpiration(){return k(this,null,(function*(){let e=(yield this._getData(ei.DISMISSED_STATUS_EXPIRATION,{preferredStores:ui})).unwrapOrNull();if(!e){const t=yield this._legacyStorage._getDismissedStatusExpiration();t&&(e=t,yield this._setData(ei.DISMISSED_STATUS_EXPIRATION,t,{preferredStores:this._domainWide
12KeyWriteStores}))}return e}))}_getIsInDeletedState(){return k(this,null,(function*(){let e=!1;const t=(yield this._getData(ei.isInDeletedState,{preferredStores:ui})).unwrapOrNull();if(null!==t)e=!!t;else{const t=this._legacyStorage._getIsInDeletedState(),s=(null!=t?t:e)?1:0,i=yield this._setData(ei.isInDeletedState,s,{preferredStores:null===t?ci:this._domainWideKeyWriteStores});i.isOk()&&(e=!!i.unwrap(),this._removeLegacyKey(ti[ei.isInDeletedState]))}return e}))}_setIsInDeletedState(e){return k(this,null,(function*(){return(yield this._setData(ei.isInDeletedState,e?1:0,{preferredStores:this._domainWideKeyWriteStores})).isOk()}))}_getReportedSubscriptionFingerprint(){return k(this,null,(function*(){return(yield this._getData(ei.reportedSubscriptionFingerprint,{preferredStores:ci})).unwrapOrNull()}))}_setReportedSubscriptionFingerprint(e){return k(this,null,(function*(){return(yield this._setData(ei.reportedSubscriptionFingerprint,e,{preferredStores:ci})).isOk()}))}_getLastNotificationPermission(){return k(this,null,(function*(){return(yield this._getData(ei.lastNotificationPermission,{preferredStores:ci})).unwrapOrNull()}))}_setLastNotificationPermission(e){return k(this,null,(function*(){return(yield this._setData(ei.lastNotificationPermission,e,{preferredStores:ci})).isOk()}))}_removeLegacyKey(e){this._logger.debug(`!! Legacy key removal DISABLED !! key: ${e}`)}}class hi extends Js{constructor(e){super(null,[ks.LEGACY_COOKIE],null!=e?e:ne._getInstance("LegacyStoreManager"))}_getAnonymousId(){return this._getDataSync(ti[ei.anonymousId]).unwrapOrNull()}_getExternalId(){return this._getDataSync(ti[ei.externalId]).unwrapOrNull()}_getSubscriberStatus(){let e=null;const t=this._getDataSync(ti[ei.subscriberStatus]).unwrapOrNull();return t&&(e=Ce(t)),e}_getIsInDeletedState(){return this._getDataSync(ti[ei.isInDeletedState]).unwrapOrNull()}_getDismissedStatusExpiration(){return k(this,null,(function*(){return(yield this._getData(ti[ei.DISMISSED_STATUS_EXPIRATION])).unwrapOrNull()}))}}class _i{constructor(e,t){P(this,"_userProfileMod"),this.settingsStore=e,this.userStore=t}get _isBaseEnvSupported(){return ye._getIsEnvBaseSupported()[0]}setUserProfileModule(e){this._userProfileMod=e}
12_canSend(){return k(this,null,(function*(){return this.userStore._getIsInDeletedState().then((e=>!e))}))}_getAnonymousId(){return k(this,null,(function*(){return this.userStore._getAnonymousId()}))}_getIsSubscribed(){return k(this,null,(function*(){return this.userStore._getIsSubscribed()}))}_getToken(){return k(this,null,(function*(){return this._isBaseEnvSupported&&this._userProfileMod?this._userProfileMod.getToken():null}))}_getDomainId(){return k(this,null,(function*(){var e,t,s,i;let r=null!=(t=null==(e=ve._injectedDomainConfig)?void 0:e.id)?t:null;if(!r){const e=yield this.settingsStore._getDomainConfig();r=null!=(i=null==(s=null==e?void 0:e.value)?void 0:s.id)?i:null}return r}))}_getCachedEvents(){return k(this,null,(function*(){return this.settingsStore._getCachedEvents()}))}_setCachedEvents(e){return k(this,null,(function*(){return this.settingsStore._setCachedEvents(e)}))}}class pi{constructor(e){P(this,"timer"),this.store=e,this.timer=new Dt("session_timer",this._handleSessionTimerDidAdvance.bind(this),1,{autoStart:!1})}_start(){this.timer.isStarted?this.timer._unpause():this.timer._start()}_stop(){this.timer._pause()}_handleSessionTimerDidAdvance(){return k(this,null,(function*(){const e=yield this.store._getSessionRuntimeSeconds();yield this.store._setSessionRuntimeSeconds(e+1)}))}}class gi{constructor(e){P(this,"transient"),this.transient=new pi(e)}_start(){this.transient._start()}_stop(){this.transient._stop()}}class mi extends Js{constructor(e){super(Ts.sdk,[ks.SESSION,ks.MEM],null!=e?e:ne._getInstance("SessionStore"))}_setSessionStart(e){return k(this,null,(function*(){return(yield this._setData(ii.SESSION_START,e)).unwrapOrNull()}))}_getSessionStart(){return k(this,null,(function*(){const e=(yield this._getData(ii.SESSION_START)).unwrapOrNull();return e?new Date(e):null}))}_getCurrentPageViewStart(){return k(this,null,(function*(){const e=(yield this._getData(ii.SESSION_PAGE_VIEW_START)).unwrapOrNull();return e?new Date(e):null}))}_getSessionPageViewCount(){return k(this,null,(function*(){return(yield this._getData(ii.SESSION_PAGE_VIEWS)).unwrapOr(0)}))}_getSessionRuntimeSeconds(){return k(this,null,(function*(){return(yield this._getData(ii.SESSION_RUNTIME)).unwrapOr(0)}))}_setSessionRuntimeSeconds(e){return k(this,null,(function*(){return(yield this._setData(ii.SESSION_RUNTIME,e)).unwrapOrNull()}))}_incrementSessionPageViewCount(){return k(this,null,(function*(){const e=yield this._getSessionPageViewCount();yield Promise.all([this._setData(ii.SESSION_PAGE_VIEWS,e+1),this._setData(ii.SESSION_PAGE_VIEW_START,(new Date).getTime())])}))}_setLastActivity(e){return k(this,null,(function*(){return(yield this._setData(ii.SESSION_LAST_ACTIVITY,e.getTime())).isOk()}))}_getLastActivity(){return k(this,null,(function*(){const e=(yield this._getData(ii.SESSION_LAST_ACTIVITY)).unwrapOrNull();return e?new Date(e):null}))}_setSessionId(e){return k(this,null,(function*(){return(yield this._setData(ii.SESSION_ID,e)).unwrapOrNull()}))}_getSessionId(){return k(this,null,(function*(){return(yield this._getData(ii.SESSION_ID)).unwrapOrNull()}))}_setHeartbeatSessionDate(e){return k(this,null,(function*(){return(yield this._setData(ii.SESSION_HEARTBEAT_SESSION,e.getTime())).isOk()}))}_getHeartbeatSessionDate(){return k(this,null,(function*(){const e=(yield this._getData(ii.SESSION_HEARTBEAT_SESSION)).unwrapOrNull();return e?new Date(e):null}))}_purgeRetiredKeys(){return k(this,null,(function*(){yield this._removeData(si.PROMPTS_CACHE)}))}}const Si="\n.sw-user-debug-drawer-wrapper {\n display: block !important;\n box-sizing: border-box;\n position: absolute;\n z-index: 9999;\n bottom: 120px;\n left: -320px;\n width: 320px;\n border-radius: 4px;\n box-shadow: 0 0 12px -3px #0003;\n background: rgb(251, 251, 251);\n transition: left .24s linear;\n font-family: -apple-system, system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n font-size: 13px;\n line-height: 1.15em;\n font-weight: 500;\n color: #545454;\n}\n\n.sw-user-debug-drawer-wrapper.open {\n left: 0;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-shadow {\n visibility: hidden;\n border: none;\n box-shadow: none;\n outline: none;\n position: absolute;\n z-index: -1;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-shadow.copying {\n visibility: visible;\n}\n\n.sw-user-debug-drawer-wrapper > .sw-user-debug-drawer > .sw-user-debug-drawer-handle {\n display: block;\n box-sizing: border-box;\n position: absolute;\n background: #0077a0;\n border-radius: 0 0 6px 6px;\n box-shadow: -1px 1px 10px -4px black;\n top: 50%;\n right: -66px;\n transform: translateY(-50%) rotate(-90deg);\n padding: 8px 20px 8px 20px;\n color: #fff;\n font-size: 13px;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.sw-user-debug-drawer-wrapper > .sw-user-debug-drawer > .sw-user-debug-drawer-handle > .sw-user-debug-label {\n display: block;\n box-sizing: border-box;\n width: 60px;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content {\n font-size: 12px;\n padding: 20px;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-label {\n color: #222;\n font-weight: bold;\n display: block;\n box-sizing: border-box;\n margin-bottom: 4px;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-value {\n display: block;\n word-break: keep-all;\n box-sizing: border-box;\n border: 1px #0002 solid;\n border-radius: 3px;\n padding: 6px;\n margin-bottom: 1em;\n width: 100%;\n background: #F2F2F2;\n font-size: 1em;\n line-height: 14px;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-actions {\n display: flex;\n align-content: flex-end;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 12px;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-actions > .sw-user-debug-btn {\n display: block;\n border: none;\n padding: 6px 14px;\n border-radius: 3px;\n transition: all .24s;\n cursor: pointer;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-actions > .sw-user-debug-btn.copy {\n background: #0077a0;\n color: #fff;\n transition: all 1s;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-actions > .sw-user-debug-btn.copy.success {\n background: green;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-actions > .sw-user-debug-btn.copy.success span {\n font-size: 12px;\n}\n\n.sw-user-debug-drawer-wrapper .sw-user-debug-drawer .sw-user-debug-drawer-content .sw-user-debug-actions > .sw-user-debug-btn.close {\n background: unset;\n color: #888888;\n}\n".trim();class fi{constructor(e,t){P(this,"debugPanelElement"),this.settingsStore=e,this.eventManager=t}_getIsEventsEnabled(){return k(this,null,(function*(){let e=[];const t=ve._injectedDomainConfig;if(t)e=t.flags;else{const t=yield this.settingsStore._getDomainConfig();(null==t?void 0:t.value.flags)&&(e=t.value.flags)}return e.includes(ve._sdkDebugEventsEnabledFlag)}))}_shouldShowDebugPanel(){return this._currLocation&&/(^|[?&#])(push(ly)?_debug(73485)?)=1(?=[&#]|$)/i.test(this._currLocation.href)}get _currLocation(){return be._location}get _document(){return be._document}get _clipboard(){return be._navigator.clipboard}get _userAgent(){return be._navigator.userAgent}_hideDebugPanel(){return k(this,null,(function*(){if(this.debugPanelElement)try{this._document.body.removeChild(this.debugPanelElement)}catch(e){}}))}_showDebugPanel(e){return k(this,arguments,(function*({userId:e,subscriberStatus:t,endpoint:s,externalId:i,browserPermission:r}){var n;const o=this._document,a=`Pushly ID: ${e}, Subscriber State: ${t}
12, External ID: ${i}, Endpoint: ${s}, Browser Permissions: ${r}, UserAgent: ${this._userAgent}`.trim(),l=`pushly_debug_handle_${Ue(12)}`,u=`pushly_debug_close_${Ue(12)}`,c=`pushly_debug_copy_${Ue(12)}`,d=`pushly_debug_shadow_${Ue(12)}`,h=null!=(n=this.debugPanelElement)?n:o.createElement("div");h.classList.add("sw-user-debug-drawer-wrapper");const _=o.createElement("style");_.textContent=Si;const p=o.createElement("div");p.classList.add("sw-user-debug-drawer");const g=o.createElement("div");g.id=l,g.classList.add("sw-user-debug-drawer-handle");const m=o.createElement("span");m.classList.add("sw-user-debug-label"),m.textContent="Push SDK",g.appendChild(m);const S=o.createElement("div");S.classList.add("sw-user-debug-drawer-content");const f=(e,t)=>{const s=o.createElement("div");s.classList.add("sw-user-debug-label"),s.textContent=e;const i=o.createElement("input");i.classList.add("sw-user-debug-value"),i.value=t,i.disabled=!0,S.append(s,i)};f("Pushly ID",null!=e?e:"Not set"),f("External ID",null!=i?i:"Not set");const E=o.createElement("div");E.classList.add("sw-user-debug-label"),E.textContent="Subscription State";const b=o.createElement("span");var y;b.textContent=(y=t).charAt(0).toUpperCase()+y.slice(1),S.append(E,b);const v=o.createElement("div");v.classList.add("sw-user-debug-actions");const I=o.createElement("button");I.id=u,I.classList.add("sw-user-debug-btn","close"),I.type="button",I.textContent="Close";const P=o.createElement("button");P.id=c,P.classList.add("sw-user-debug-btn","copy"),P.type="button",P.textContent="Copy",v.append(I,P),S.appendChild(v),p.append(g,S),h.replaceChildren(_,p);const w=()=>k(this,null,(function*(){h.classList.contains("open")?h.classList.remove("open"):h.classList.add("open")}));g.addEventListener("click",w),I.addEventListener("click",w);P.addEventListener("click",(()=>{let e=!1;try{this._clipboard.writeText(a),e=!0}catch(t){try{const t=o.createElement("input");o.body.appendChild(t),t.id=d,t.classList.add("sw-user-debug-shadow"),t.type="text",t.defaultValue=a,t.classList.add("copying"),t.select(),e=o.execCommand("copy"),t.classList.remove("copying")}catch(s){}}if(e){P.classList.add("success"),P.replaceChildren("Copied ");const e=o.createElement("span");e.textContent="â",P.appendChild(e),setTimeout((()=>{P.classList.remove("success"),P.textContent="Copy"}),1e3)}})),this.debugPanelElement||(o.body.appendChild(h),this.debugPanelElement=h)}))}_debug(e,t={},s=!1){(()=>k(this,null,(function*(){de(e)&&(s||(yield this._getIsEventsEnabled()))&&this.eventManager._track(e,t)})))().then()}_debugPromptNotShown(e,t){const s={[ve._tevDataPromptNotShownKey]:e};return t&&(s[ve._tevFieldErrorMessage]=t),this._debug(ue.PROMPT_NOT_SHOWN,s)}_debugUnknownAsyncBrowserCommand(e){return this.eventManager._track(new z(H.UNKNOWN_ASYNC_COMMAND,null,String(e[0])),{async_command:e})}_debugUnknownConfigurationKeys(e){return this.eventManager._track(new z(H.UNKNOWN_CONFIG_KEYS),{push_sdk_config:e})}_debugUnknownContextKey(e){return this.eventManager._track(new z(H.UNKNOWN_CONTEXT_KEY,null,e),{context_key:e})}_debugUnknownPromptMessage(e){return this.eventManager._track(new z(H.UNKNOWN_PROMPT_MESSAGE),{prompt_message:e})}}class Ei{constructor(e={},t){P(this,"_logger"),P(this,"_eventQueue"),P(this,"_trackedEventQueueTimer"),P(this,"_isEventQueueFlushing"),this.asyncProvider=e,this._logger=null!=t?t:ne._getInstance("EventManager"),this._eventQueue=[],this._isEventQueueFlushing=!1,this._setup()}_setup(){this._hydrateEventQueue().then((()=>this._startEventQueueTimer()))}_canSend(){return k(this,null,(function*(){var e,t,s;return null!=(s=null==(t=(e=this.asyncProvider)._canSend)?void 0:t.call(e))?s:Promise.resolve(!0)}))}_isSubscribed(){return k(this,null,(function*(){return!!this.asyncProvider._getIsSubscribed&&(yield this.asyncProvider._getIsSubscribed())}))}_track(e,t={}){this._trackAsync(e,t).then()}_trackAsync(e){return k(this,arguments,(function*(e,t={}){try{let s;if(e instanceof Error){if(z._isSuppressed(e))return;s=yield fe._getErrorEvent(e),s.data.logs=this._logger._getLogs(!0).splice(-10).reverse(),t&&(s.data[W._tevFieldErrorContext]=t)}else s="string"==typeof e?yield fe._build(e,t):e;return yield this._trackEvent(s)}catch(s){this._logger.error(s)}}))}_trackEvent(e){return k(this,null,(function*(){if(this._eventQueue.length>=W._eventQueueMaxSize&&(this._eventQueue=this._eventQueue.slice(0,W._eventQueueMaxSize-1),yield this._persistEventQueue()),this._eventQueue.find((t=>t.event_id===e.event_id)))return void this._logger.debug(`Event ${e.event_id} has already been added to the queue`);if(this._eventQueue.find((t=>fe._isEqual(t,e))))return void this._logger.debug(`Event ${e.event_id} is a duplicate event`);if(!(yield this._isSubscribed())&&(t=e.action,["permission_changed","page_tag_visit","view_page","view_screen","purchase","update_cart","add_to_cart","view_item"].includes(t)))return void this._logger.debug(`Ignoring event ${e.event_id} (${e.action}) - user is not subscribed.`);var t;if(!(yield this._canSend())||!(e=>["debug","sdk_impression","sdk_impression_end","prompt_not_shown","permission_accepted","permission_denied","permission_dismissed","prompt_allow","prompt_dism
12iss","error","subscribed","manual_unsubscribed","unsubscribed","udr","notification_impression","notification_click","notification_close","soft_unsubscribe","soft_resubscribe","la_register","la_end","iam_click","iam_subscribe","iam_impression","iam_close","session_start","session_heartbeat"].includes(e)||de(e))(e.action))return this._logger.debug(`Queueing event ${e.event_id} (${e.action})`),this._eventQueue.push(e),void(yield this._persistEventQueue());this._logger.debug(`Processing event ${e.event_id} (${e.action})`);const s=yield this._process([e],(e=>["subscribed"].includes(e)?W._kApiAllowUrl:W._kApiEventsUrl)(e.action));s.isErr()&&(this._logger.verbose(`Requeueing event ${e.event_id} (${e.action})`),this._eventQueue.unshift(e))}))}_hydrateEventQueue(){return k(this,null,(function*(){if(!this.asyncProvider._getCachedEvents)return void this._logger.verbose("Cache evaluator not set");const e=yield this.asyncProvider._getCachedEvents();if(!e.length)return void this._logger.verbose("Cache is empty");const t=e.filter((e=>-1===this._eventQueue.findIndex((t=>t.event_id===e.event_id))));this._eventQueue.push(...t),t.length&&(this._logger.verbose(`Rehydrated ${t.length} event(s) from cache`),yield this._persistEventQueue())}))}_startEventQueueTimer(){this._trackedEventQueueTimer?this._logger.verbose("Queue timer already initialized"):this._trackedEventQueueTimer=setTimeout((()=>{this._flushEventQueue().then((()=>{this._trackedEventQueueTimer=null,this._startEventQueueTimer()}))}),W._eventQueueFlushIntervalMS)}_flushEventQueue(){return k(this,null,(function*(){if(!this._eventQueue.length||this._isEventQueueFlushing||!(yield this._canSend()))return;yield this._cleanupEventQueue();const e=yield this._getNextBatch();if(!e.length)return void this._setEventQueueFlushingState(!1);(yield this._process(e,W._kApiEventsUrl)).isErr()&&this._eventQueue.push(...e)}))}_flushPendingEvents(){return k(this,null,(function*(){if(!this._eventQueue.length||!(yield this._canSend()))return;yield this._cleanupEventQueue();const e=yield this._isSubscribed(),t=[],s=this._eventQueue.filter((s=>{const i=e||!ce(s.action);return i&&t.push(s),!i}));if(!t.length)return;this._eventQueue=s,yield this._persistEventQueue();(yield this._process(t,W._kApiEventsUrl)).isErr()&&(this._eventQueue.push(...t),yield this._persistEventQueue())}))}_process(e,t){return k(this,null,(function*(){let s;yield this._preloadTrackedEventUtilProperties(),e.forEach((e=>{fe._prepareSendEvent(e)}));const i=e.map((e=>{const t=e,{sendAttemptCount:i,jxms:r,data:n}=t,o=I(t,["sendAttemptCount","jxms","data"]);return s=r,Object.assign((e=>{const t={};for(const s of Object.keys(e))void 0!==e[s]&&null!==e[s]&&(t[s]=e[s]);return t})(o),{data:n})}));let r;this._logger.verbose("Dispatching event processing");try{let n=1==i.length?i[0]:i;this._logger.verbose(`Building request data: ${n}`),r=new je(We.POST,t,n,{jitterMillis:s}),this._logger.debug(`Prepared ${e.length} event(s):`,n)}catch(n){const e=j(n);return this._logger.error(`Unable to prepare events: ${e.message}`),xe.Err(e)}if(r){const e=yield r._perform();return e.isErr()?(this._logger.error("Send failed;",e.getErr().message),e):(this._logger.verbose("Send successful"),xe.Ok(!0))}return this._logger.verbose("No request to process"),xe.Ok(!1)}))}_getNextBatch(){return k(this,null,(function*(){if(!(this._eventQueue.length>W._eventQueueFlushTriggerSize?W._eventQueueFlushTriggerSize:this._eventQueue.length))return[];const e=[],t=yield this._isSubscribed(),s=this._eventQueue.filter((s=>{let i=t||!ce(s.action);return i&&e.push(s),!i}));return e.length&&(this._eventQueue=s,yield this._persistEventQueue()),e}))}_cleanupEventQueue(){return k(this,null,(function*(){if(!this._eventQueue.length)return;const e=this._eventQueue.filter((e=>e.sendAttemptCount<W._eventMaxSendAttempts));e.length!==this._eventQueue.length&&(this._eventQueue=e,yield this._persistEventQueue())}))}_setEventQueueFlushingState(e){this._isEventQueueFlushing=e}_persistEventQueue(){return k(this,null,(function*(){if(this.asyncProvider._setCachedEvents)return this._eventQueue.forEach((e=>
12{e.token instanceof PushSubscription&&(e.token=e.token.toJSON())})),this.asyncProvider._setCachedEvents(this._eventQueue).catch((e=>this._logger.critical(e))).then()}))}_preloadTrackedEventUtilProperties(){return k(this,null,(function*(){var e,t,s,i,r,n,o,a,l;yield Promise.all([fe._domainId?null:null==(s=null==(t=(e=this.asyncProvider)._getDomainId)?void 0:t.call(e))?void 0:s.then((e=>{fe._domainId=e})),fe._anonymousId?null:null==(n=null==(r=(i=this.asyncProvider)._getAnonymousId)?void 0:r.call(i))?void 0:n.then((e=>{fe._anonymousId=e})),fe._token?null:null==(l=null==(a=(o=this.asyncProvider)._getToken)?void 0:a.call(o))?void 0:l.then((e=>{e&&(fe._token=e)}))]).catch()}))}}class bi extends Ei{_setup(){super._setup(),this._registerPageLifecycleFlush()}_registerPageLifecycleFlush(){const e=ye._document;e.addEventListener("visibilitychange",(()=>{"hidden"===e.visibilityState&&this._flushPendingEvents()})),ye._scope.addEventListener("pagehide",(()=>{this._flushPendingEvents()}))}_trackEvent(e){return k(this,null,(function*(){return this._ensurePageUrlProperty(e),(t=bi.prototype,s=this,i="_trackEvent",f(g(t),i,s)).call(this,e);var t,s,i}))}_ensurePageUrlProperty(e){var t;(t=e.action,[ue.PROMPT_SHOWN,ue.PROMPT_ACCEPTED,ue.PROMPT_DISMISSED,ue.PROMPT_NOT_SHOWN,ue.PERMISSION_SHOWN,ue.PERMISSION_ACCEPTED,ue.PERMISSION_DISMISSED,ue.PERMISSION_DENIED,ue.PERMISSION_CHANGED,ue.SDK_IMPRESSION,ue.SDK_IMPRESSION_END].includes(t))&&(e.data[ve._tevDataPageUrlKey]||(e.data[ve._tevDataPageUrlKey]=ye._location.href))}}function yi(e){return e.every((e=>"quantity"in e&&"number"==typeof e.quantity))}function vi(e){return e.map((({item_type:e,id:t})=>({item_type:e,id:t})))}u=new WeakMap,c=new WeakMap;let Ii=class e{constructor(e,t,s,i,r,n){P(this,"UserProfile"),P(this,"EComm"),P(this,"PushNotifications"),P(this,"Prompts"),O(this,u,void 0),O(this,c,void 0),T(this,u,e),T(this,c,null!=n?n:ne._getInstance()),this.UserProfile=t,this.EComm=s,this.PushNotifications=i,this.Prompts=r}
12static getInstance(){const t=$e();if(t)return t;const s=new li,i=new di(new hi),r=new mi,n=new _i(s,i),o=new bi(n);yt._setEventManager(o);const a=new Ks(o,s,i,new gi(r),new fi(s,o),r),l=new Oe(a),u=new Ae(l),c=new Re(a),d=new Me(a);return n.setUserProfileModule(l),new e(a,l,u,c,d)}setConfiguration(e){D(this,u)._setConfiguration(e)}getConfiguration(){var e;return null!=(e=D(this,u).loadConfig)?e:null}get version(){return ve._libraryVersion}get iid(){return D(this,u).iid}get isLoaded(){return D(this,u).isLoaded}registerPushSDKLifecycleCallbacks(e){D(this,u)._registerPushSdkLifecycleCallbacks(e)}registerPermissionLifecycleCallbacks(e){D(this,u)._registerPermissionLifecycleCallbacks(e)}registerAppMessageLifecycleCallbacks(e){D(this,u)._registerAppMessageLifecycleCallbacks(e)}registerPromptLifecycleCallbacks(e){D(this,u)._registerPromptLifecycleCallbacks(e)}get logLevel(){return D(this,c).logLevel}set logLevel(e){D(this,c).logLevel=e}debug(e=!0){return k(this,null,(function*(){yield D(this,u)._toggleDebugPanel(e)}))}load(e){this.setConfiguration(e)}requestNotificationPermission(e){return k(this,null,(function*(){void 0===e?this.PushNotifications.showPermissionPrompt():this.PushNotifications.showPermissionPrompt(e)}))}showLogs(e=!0){this.logLevel=e?C.VERBOSE:C.NONE}getLogs(){return D(this,c)._getLogs()}isUserSoftUnsubscribed(){return k(this,null,(function*(){return this.PushNotifications.getIsPaused()}))}isUserEligibleToPrompt(){return k(this,null,(function*(){return this.PushNotifications.getIsEligibleToPrompt()}))}isUserSubscribed(){return k(this,null,(function*(){return this.PushNotifications.getIsSubscribed()}))}get context(){return D(this,u)._legacyContext}getUser(){return this.context.user}on(e,t){this.push([`on_${e}`,t])}watch(e,t){this.on(e,t)}watchOnce(e,t){this.on(e,t)}trigger(e,t){this.push([e,t])}push(e,t){try{switch(e[0]){case oe.LOAD:this.setConfiguration(e[1]);break;case oe.REQUEST_USER_DELETION:this.UserProfile.requestUserDeletion();break;case oe.DEBUG:D(this,u)._toggleDebugPanel();break;case oe.CONFIRM_CONSENT:break;case oe.EXTERNAL_ID:this.UserProfile.setExternalId(e[1]);break;case oe.DEREGISTER_EXTERNAL_ID:this.UserProfile.unsetExternalId();break;case oe.PROFILE:this.UserProfile.set(e[1]);break;case oe.PROFILE_APPEND:Object.entries(e[1]).forEach((([e,t])=>{this.UserProfile.append(e,t)}));break;case oe.PROFILE_REMOVE:Object.entries(e[1]).forEach((([e,t])=>{this.UserProfile.remove(e,t)}));break;case oe.PAGE_TAG_VISIT:{const t=ye._location.href;let i=[];if(Array.isArray(e[1]))i=e[1];else try{i=[String(e[1])]}catch(s){}i=i.filter((e=>{try{return void 0!==e&&"undefined"!==e&&null!==e&&"null"!==e&&!!String(e).trim()}catch(s){}return!1})).map((e=>e.toString())),D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Sending ${i.length} tag${i.length>1?"s":""} for ${t}`),D(this,u).eventManager._track(ue.PAGE_TAG_VISIT,{[ve._tevDataPageUrlKey]:t,[ve._tevDataPageTagsKey]:i})}));break}case oe.SHOW_PROMPT:if(1===e.length)this.PushNotifications.showPermissionPrompt();else{const{id:t,checkEligibility:s}=e[1];null!=t?this.PushNotifications.showPermissionPrompt(t,{skipEligibilityCheck:!s}):this.PushNotifications.showPermissionPrompt({skipEligibilityCheck:!s})}break;case oe.PAUSE_PUSH_NOTIFICATIONS:this.PushNotifications.pause();break;case oe.RESUME_PUSH_NOTIFICATIONS:this.PushNotifications.resume();break;case oe.GET_PUSH_NOTIFICATIONS_PAUSED_STATE:this.PushNotifications.getIsPaused().then(e[1]);break;case oe.SUPPRESS_PROMPTS:this.PushNotifications.suppressPrompts();break;case oe.ALLOW_PROMPTS:this.PushNotifications.allowPrompts();break;case oe.GET_PROMPTING_SUPPRESSED_STATE:"function"==typeof e[1]&&e[1](this.PushNotifications.getIsPromptingSuppressed());break;case oe.SAVE_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Adding ${t.length} item${t.length>1?"s":""} to saved items`),D(this,u).eventManager._track(ue.SAVE_ITEM,e[1])}));break}case oe.UNSAVE_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Removing ${t.length} item${t.length>
121?"s":""} from saved items`),D(this,u).eventManager._track(ue.UNSAVE_ITEM,e[1])}));break}case oe.VIEW_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Adding ${t.length} item${t.length>1?"s":""} to viewed items`),D(this,u).eventManager._track(ue.VIEW_ITEM,e[1])}));break}case oe.COMPLETE_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Adding ${t.length} item${t.length>1?"s":""} to completed items`),D(this,u).eventManager._track(ue.COMPLETE_ITEM,e[1])}));break}case oe.UNCOMPLETE_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Removing ${t.length} item${t.length>1?"s":""} from completed items`),D(this,u).eventManager._track(ue.UNCOMPLETE_ITEM,e[1])}));break}case oe.RATE_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Adding ${t.length} item${t.length>1?"s":""} to rated items`),D(this,u).eventManager._track(ue.RATE_ITEM,e[1])}));break}case oe.UNRATE_ITEM:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Removing ${t.length} item${t.length>1?"s":""} from rated items`),D(this,u).eventManager._track(ue.UNRATE_ITEM,e[1])}));break}case oe.ADD_TO_CART:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{D(this,c).verbose(`Adding ${t.length} item${t.length>1?"s":""} to cart`),D(this,u).eventManager._track(ue.ADD_TO_CART,e[1])}));break}case oe.UPDATE_CART:{const t="products"in e[1]?e[1].products:e[1].events;Array.isArray(t)&&D(this,u)._executeWhenConfiguredIfEnabled((()=>{t.length?D(this,c).verbose(`Updating cart with ${t.length} item${t.length>1?"s":""}.`):D(this,c).verbose("Clearing cart"),D(this,u).eventManager._track(ue.UPDATE_CART,e[1])}));break}case oe.PURCHASE:if(1===e.length)D(this,c).verbose("Tracking purchase"),D(this,u).eventManager._track(ue.PURCHASE);else{let t;if("products"in e[1]){const s=e[1].products.map((e=>we(e,Ie.PRODUCT))),i=yi(s)?s:vi(s);e[1].products=i,t=i}if("events"in e[1]){const s=e[1].events.map((e=>we(e,Ie.EVENT))),i=yi(s)?s:vi(s);e[1].events=i,t=i}Array.isArray(t)||(t=void 0);const s=["Tracking purchase"];(null==t?void 0:t.length)&&s.push(`of ${t.length} item${t.length>1?"s":""}`),"purchase_id"in e[1]&&s.push(`Purchase ID: ${e[1].purchase_id}`),"price_value"in e[1]&&s.push(`Total value: ${e[1].price_value}`),D(this,c).verbose(s.join(" ")),D(this,u).eventManager._track(ue.PURCHASE,e[1])}break;case`on_${ae.LOADED}`:case`on_${ae.WEB_PUSH_SUPPORTED}`:case`on_${ae.WEB_PUSH_UNSUPPORTED}`:case`on_${ae.READY}`:case`on_${ae.PROMPT_ELIGIBLE}`:case`on_${ae.PROMPT_INELIGIBLE}`:case`on_${ae.PROMPT_SHOWN}`:case`on_${ae.PROMPT_DISMISSED}`:case`on_${ae.PROMPT_ALLOWED}`:case`on_${ae.PERMISSION_SHOWN}`:case`on_${ae.PERMISSION_ALLOWED}`:case`on_${ae.PERMISSION_DENIED}`:case`on_${ae.PERMISSION_DISMISSED}`:{const s=e[0].replace(/^on_/,"");"function"==typeof e[1]?D(this,u)._registerLegacyEventCallback(s,e[1],t):D(this,c).warn("Invalid SDK event handler callback specified:",e);break}default:!le.includes(e[0])&&D(this,u).debugController&&D(this,u).debugController._debugUnknownAsyncBrowserCommand(e),D(this,c).warn("Unknown SDK command received:",e)}}catch(i){const e=j(i);D(this,c).error(e),D(this,u).eventManager._track(e)}}};const Pi=Ii.getInstance();let wi;try{wi=ne._getInstance()}catch(Di){wi=console}try{if(window.self===window.top||window.self!==window.top&&window.frameElement&&"about:blank"===window.frameElement.src){const e=window.PushlySDK;if(e&&e instanceof Array)for(const t of e)Pi.push(t);window.PushlySDK=Pi}else wi.warn("PushlySDK must be loaded from the top frame or a sourceless iFrame")}catch(Oi){wi.warn("Unable to assign global PushlySDK"),wi.error(Oi)}return e.PushSDK=Pi,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({}); 13
14(function(){try{self._PN_IDK_="yezv5SnMFbRJsZfzJHoTqLQ3auYdIxYPXiwX"}catch(_){}})(); 15(function(){try{self._PN_IDC_={"id":17806,"name":"lasuper925.com","domain_key":"yezv5SnMFbRJsZfzJHoTqLQ3auYdIxYPXiwX","time_zone":"US/Eastern","integration_type":"direct","custom_allow_domain":null,"frequency_caps":null,"global_prompt_settings":{},"flags":["FEAT_NATIVE_ANDROID_NOTIFICATIONS_FG_DISPLAY","FEAT_NATIVE_IOS_NOTIFICATIONS_FG_DISPLAY"],"custom_sdk_package_name":null,"vapid_public_key":"BIFzMdbagtj9RG4uNNuPl11IN_f8-tRJlGAwRRlFWC4asDKwGSZPACMWFns6h21aWv2B6oPQQJyp_oM4U_FWxGE","additional_subscription_data":null,"whitelist_domains":["lasuper925.com","juan925fm.com"],"sdk_event_only_domains":[],"apns_configuration":{"is_active":false},"ecomm_config":null,"domain_integrations":null}}catch(_){}})(); 16(function(){try{self._PN_IPG_=[{"id":23801,"domain":17806,"name":"Native","priority":0,"conditions":{},"behavior":{"display_to_pct":100},"prompts":[{"id":21700,"domain":17806,"name":null,"style":"NATIVE","behavior":{"is_auto_show":true,"post_dismiss_redisplay":{"enabled":true,"fcap":{"interval_seconds":604800,"display_metric":"seconds"}}},"theme":null,"conditions":null,"weight":100}]},{"id":23802,"domain":17806,"name":"Slide","priority":1,"conditions":{"display":{"desktop":"enabled","mobile":"enabled"}},"behavior":{"display_to_pct":100},"prompts":[{"id":21701,"domain":17806,"name":null,"style":"SLIDE","template_html":"<div class=\"push-sdk-prompt-shell\" id=\"push-sdk-prompt-21701\"><style>.push-sdk-prompt-shell{position:fixed;z-index:999999999;transform:translate3d(0,0,0);top:0;bottom:0;width:90vw;left:5vw;pointer-events:none}.push-sdk-prompt-shell>.push-sdk-prompt-container{pointer-events:auto}.push-sdk-prompt-container.s-slide{position:absolute;box-sizing:border-box;transform:translateX(-50%);left:50%;width:auto;max-width:100%;font-family:-apple-system,system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;font-size:14px;font-weight:400;line-height:1.24em;text-decoration:none;webkit-font-smoothing:antialiased}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper{box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;gap:14px;width:450px;padding:14px;overflow:hidden;background:#fff;border:1px solid #00000011;border-radius:6px;text-wrap:wrap}@media only screen and (min-device-width:769px){.push-sdk-prompt-container.s-slide.pos-d-top{top:0}.push-sdk-prompt-container.s-slide.pos-d-top .pushly-prompt-wrapper{border-top-left-radius:0;border-top-right-radius:0;border-top:none;box-shadow:0 1px 2px #00000008}}@media only screen and (max-device-width:768px){.push-sdk-prompt-container.s-slide.pos-m-top{top:0}.push-sdk-prompt-container.s-slide.pos-m-top .pushly-prompt-wrapper{border-top-left-radius:0;border-top-right-radius:0;border-top:none;box-shadow:0 1px 2px #00000008}}@media only screen and (min-device-width:769px){.push-sdk-prompt-container.s-slide.pos-d-bottom{bottom:0}.push-sdk-prompt-container.s-slide.pos-d-bottom .pushly-prompt-wrapper{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none;box-shadow:0 -1px 2px #00000008}}@media only screen and (max-device-width:768px){.push-sdk-prompt-container.s-slide.pos-m-bottom{bottom:0}.push-sdk-prompt-container.s-slide.pos-m-bottom .pushly-prompt-wrapper{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none;box-shadow:0 -1px 2px #00000008}}\n.push-sdk-prompt-container.s-slide > .pushly-prompt-wrapper > .pushly-prompt-image{box-sizing:border-box;flex:0 0 auto;background-image:url(\"https://media.pushlycdn.com/domain_17806/images/Vbp4G8wL03jg9LLA6lk39GXRvm3nCgBDjNvT\");background-size:cover;background-position:center;background-repeat:no-repeat;width:64px;height:64px;border-radius:4px}\n.push-sdk-prompt-container.s-slide>.pushly-prompt-wrapper>.pushly-prompt-content{box-sizing:border-box;flex:1 1 auto}.push-sdk-prompt-container.s-slide>.pushly-prompt-wrapper>.pushly-prompt-content>.pushly-prompt-content-copy{box-sizing:border-box;display:flex;flex-direction:column;gap:8px}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy .pushly-prompt-title{font-weight:600;color:#555}.push-sdk-prompt-container.s-slide .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy .pushly-prompt-subtitle{color:#555}
16.push-sdk-prompt-container.s-slide .pushly-prompt-btns{display:flex;flex-direction:row-reverse;justify-content:flex-start;gap:6px;margin-top:16px}.push-sdk-prompt-container.s-slide .pushly-prompt-btns>button.pushly-prompt-btn{position:relative;overflow:hidden;padding:8px 24px;margin:0;border:none;border-radius:4px;background:0 0;cursor:pointer;font-size:1em;font-weight:500;font-family:inherit;text-align:center;text-decoration:none;text-transform:inherit}.push-sdk-prompt-container.s-slide .pushly-prompt-btns>button.pushly-prompt-btn.pushly-prompt-btn-dismiss{background-color:#fff;color:#555}.push-sdk-prompt-container.s-slide .pushly-prompt-btns>button.pushly-prompt-btn.pushly-prompt-btn-allow{background-color:#555;color:#fff}.push-sdk-prompt-container.s-slide .pushly-prompt-btns>button.pushly-prompt-btn:hover::after{content:\"\";position:absolute;top:0;right:0;bottom:0;left:0;background:#0000000A}.push-sdk-prompt-container.s-slide.l-normal{display:flex;flex-direction:row;justify-content:center}.push-sdk-prompt-container.s-slide.l-normal .pushly-prompt-content .pushly-prompt-content-copy{display:flex;flex-direction:column}.push-sdk-prompt-container.s-slide.l-normal .pushly-prompt-content .pushly-prompt-actions{display:flex;flex-direction:row;justify-content:flex-end}.push-sdk-prompt-container.s-slide.l-stacked .pushly-prompt-wrapper{display:flex;flex-direction:column;align-items:center}.push-sdk-prompt-container.s-slide.l-stacked .pushly-prompt-wrapper .pushly-prompt-content .pushly-prompt-content-copy{display:flex;flex-direction:column;align-items:center}.push-sdk-prompt-container.s-slide.l-stacked .pushly-prompt-content .pushly-prompt-actions{display:flex;flex-direction:row;justify-content:center;align-items:center}</style><div class=\"push-sdk-prompt-container s-slide l-normal pos-d-top pos-m-bottom\"><div class=\"pushly-prompt-wrapper\"><div class=\"pushly-prompt-image\"></div><div class=\"pushly-prompt-content\"><div class=\"pushly-prompt-content-copy\"><div class=\"pushly-prompt-title\"><span>Subscribe to Juan 92.5 FM for the latest news and information that matters to you.</span></div><div class=\"pushly-prompt-subtitle\"><span>Unsubscribe anytime from your browser settings.</span></div></div><div class=\"pushly-prompt-btns\"><button class=\"pushly-prompt-btn pushly-prompt-btn-allow\" onclick=\"PushlySDK.Prompts.dispatch({prompt_action:{type:"allow",id:21701}})\"><span>Continue</span></button> <button class=\"pushly-prompt-btn pushly-prompt-btn-dismiss\" onclick=\"PushlySDK.Prompts.dispatch({prompt_action:{type:"
16dismiss",id:21701}})\"><span>Maybe Later</span></button></div></div></div></div></div>","behavior":{"is_auto_show":true,"post_dismiss_redisplay":{"enabled":true,"fcap":{"interval_seconds":604800,"display_metric":"seconds"}}},"theme":{"position":{"desktop":"top","mobile":"bottom"},"layout":"normal","title":{"text":"Subscribe to Juan 92.5 FM for the latest news and information that matters to you.","text_color":"#555"},"subtitle":{"text":"Unsubscribe anytime from your browser settings.","text_color":"#555"},"image":"https://media.pushlycdn.com/domain_17806/images/Vbp4G8wL03jg9LLA6lk39GXRvm3nCgBDjNvT","allow_button":{"text":"Continue","text_color":"#FFF","background_color":"#df2a00"},"dismiss_button":{"text":"Maybe Later","text_color":"555555","background_color":"FFFFFF"},"background_color":"#F7F7F7"},"conditions":null,"weight":100}]}]}catch(_){}})();}catch(e){console.log(e);} 17/*https://townsquare.media/public/resources/js/pubcid.min.js*/ 18;try{!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=98)}([function(t,e,n){var r=n(6),o=n(10),i=n(46),u=n(14).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){"use strict";var r=n(2),o=n(42).f,i=n(62),u=n(6),c=n(29),a=n(12),f=n(10),s=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,l,p,v,d,h,y,m,g=t.target,x=t.global,b=t.stat,w=t.proto,S=x?r:b?r[g]:(r[g]||{}).prototype,O=x?u:u[g]||(u[g]={}),_=O.prototype;for(p in e)n=!i(x?p:g+(b?".":"#")+p,t.forced)&&S&&f(S,p),d=O[p],n&&(h=t.noTargetGet?(m=o(S,p))&&m.value:S[p]),v=n&&h?h:e[p],n&&typeof d==typeof v||(y=t.bind&&n?c(v,r):t.wrap&&n?s(v):w&&"function"==typeof v?c(Function.call,v):v,(t.sham||v&&v.sham||d&&d.sham)&&a(y,"sham",!0),O[p]=y,w&&(f(u,l=g+"Prototype")||a(u,l,{}),u[l][p]=v,t.real&&_&&!_[p]&&a(_,p,v)))}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(102))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(2),o=n(47),i=n(10),u=n(48),c=n(49),a=n(66),f=
18o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e,n){t.exports=n(100)},function(t,e){t.exports={}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(9),o=n(14),i=n(24);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(9),o=n(61),i=n(11),u=n(28),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(85);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}},function(t,e,n){var r=n(44),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(6),o=n(2),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e,n){var r=n(53),o=n(14).f,i=n(12),u=n(10),c=n(112),a=n(4)("toStringTag");t.exports=function(t,e,n,f){if(t){var s=n?t:t.prototype;u(s,a)||o(s,a,{configurable:!0,value:e}),f&&!r&&i(s,"toString",c)}}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(50),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(12);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r,o,i,u=n(108),c=n(2),a=n(8),f=n(12),s=n(10),l=n(31),p=n(32),v=c.WeakMap;if(u){var d=new v,h=d.get,y=d.has,m=d.set;r=function(t,e){return m.call(d,t,e),e},o=function(t){return h.call(d,t)||{}},i=function(t){return y.call(d,t)}}else{var g=l("state");p[g]=!0,r=function(t,e){return f(t,g,e),e},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(47),o=n(48),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e,n){var r,o=n(11),i=n(110),u=n(52),c=n(32),a=n(74),f=n(45),s=n(31),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;d=r?function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var n=u.length;n--;)delete d.prototype[u[n]];return d()};
18c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=d(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(72),o=n(52);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(53),o=n(20),i=n(4)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){t.exports=n(151)},function(t,e,n){t.exports=n(180)},function(t,e,n){var r=n(185),o=n(189);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){var r=n(63),o=n(193);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){var r=n(194),o=n(90);function i(e){return t.exports=i=o?r:function(t){return t.__proto__||r(t)},i(e)}t.exports=i},function(t,e,n){var r=n(9),o=n(43),i=n(24),u=n(16),c=n(28),a=n(10),f=n(61),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e,!0),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(3),o=n(20),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(2),o=n(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(21),o=n(65);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(3);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(10),o=n(18),i=n(31),u=n(71),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){n(114);var r=n(116),o=n(2),i=n(35),u=n(12),c=n(23),a=n(4)("toStringTag");for(var f in r){var s=o[f],l=s&&s.prototype;l&&i(l)!==a&&u(l,a,f),c[f]=c.Array}},function(t,e,n){var r,o,i=n(2),u=n(56),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(r=f.split("."))[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(19);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(6);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.BaseProxy=void 0;var o=r(n(200)),i=r(n(203)),u=r(n(37)),c=r(n(13)),a=r(n(15)),f=function(){function t(e){(0,c.default)(this,t),this.driver=e}return(0,a.default)(t,[{key:"fetchConsentData",value:function(t){var e=this,n=this.driver.getListenerCmd(),r=this.driver.getRmListenerCmd();n&&this.sendCmpRequests(n,(function(t,n){var o=e.driver.fetchDataCallback(t,n);o&&r&&e.sendCmpRequests(r,(function(){}),o)}),t)}},{key:"getConsent",value:function(t){this.driver.getConsent(t)}},{key:"sendCmpRequests",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4,o=[];this.driver||e(Error("No CMP/TCF found"),!1),(0,u.default)(t).call(t,(function(t){o.push(new i.default((function(e,r){n.callApi(t[0],t[1],(function(n,o){o?e(n):r(Error("Consent request "+t+" failed"))}))})))})),this.watchTimeout(i.default.all(o),r).then((function(t){e(t,!0)})).catch((function(t){e(t,!1)}))}},{key:"watchTimeout",value:function(t,e){var n=new i.default((function(t,n){var r=(0,o.default)((function(){clearTimeout(r),n(Error("Timeout "+e+" ms"))}),e)}));return i.default.race([t,n])}}]),t}();e.BaseProxy=f},function(t,e,n){"use strict";var r=n(17),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){n(101);var r=n(6).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},function(t,e,n){var r=n(9),o=n(3),i=n(45);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(103),o=n(117);function i(e){return t.exports=i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},i(e)}t.exports=i},function(t,e,n){n(0)("iterator")},function(t,e,n){var r=n(2),o=n(106),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var r=n(107).charAt,o=n(30),i=n(69),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(65),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){"use strict";var r=n(1),o=n(109),i=n(51),u=n(75),c=n(22),a=n(12),f=n(26),s=n(4),l=n(21),p=n(23),v=n(70),d=v.IteratorPrototype,h=v.BUGGY_SAFARI_ITERATORS,y=s("iterator"),m=function(){return this};t.exports=function(t,e,n,s,v,g,x){o(n,e,s);var b,w,S,O=function(t){if(t===v&&A)return A;if(!h&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",C=!1,E=t.prototype,P=E[y]||E["@@iterator"]||v&&E[v],A=!h&&P||O(v),j="Array"==e&&E.entries||P;if(j&&(b=i(j.call(new t)),d!==Object.prototype&&b.next&&(l||i(b)===d||(u?u(b,d):"function"!=typeof b[y]&&a(b,y,m)),c(b,_,!0,!0),l&&(p[_]=m))),"values"==v&&P&&"values"!==P.name&&(C=!0,A=function(){return P.call(this)}),l&&!x||E[y]===A||a(E,y,A),p[e]=A,v)if(w={values:O("values"),keys:g?A:O("keys"),entries:O("entries")},x)for(S in w)(h||C||!(S in E))&&f(E,S,w[S]);else r({target:e,proto:!0,forced:h||C},w);return w}},function(t,e,n){"use strict";var r,o,i,u=n(51),c=n(12),a=n(10),f=n(4),s=n(21),l=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),s||a(r,l)||c(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(16),i=n(111).indexOf,u=n(32);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(50),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(19);t.exports=r("document","documentElement")},function(t,e,n){var r=n(11),o=n(113);
18t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r=n(28),o=n(14),i=n(24);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(8),o=n(36),i=n(4)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(3),o=n(4),i=n(55),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e){},function(t,e,n){var r=n(72),o=n(52).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(29),o=n(44),i=n(18),u=n(25),c=n(77),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(v,d,h,y){for(var m,g,x=i(v),b=o(x),w=r(d,h,3),S=u(b.length),O=0,_=y||c,C=e?_(v,S):n?_(v,0):void 0;S>O;O++)if((p||O in b)&&(g=w(m=b[O],O,x),t))if(e)C[O]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:a.call(C,m)}else if(s)return!1;return l?-1:f||s?s:C}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(t,e,n){t.exports=n(144)},function(t,e){t.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},function(t,e,n){t.exports=n(150)},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.setCookie=u,e.getCookie=function(t){if(t&&window.document.cookie){var e=window.document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]*)\\s*(;|$)");return e?decodeURIComponent(e[2]):null}return null},e.delCookie=c,e.clearAllCookies=function(t,e){var n;(0,i.default)(n=document.cookie.split(";")).call(n,(function(n){var r=n.split("=")[0];r&&c((0,o.default)(r).call(r),t,e)}))},e.isCookieSupported=function(){return window.navigator.cookieEnabled||!!document.cookie.length};var o=r(n(83)),i=r(n(37));function u(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/",u=arguments.length>5?arguments[5]:void 0;t&&(n&&(r=new Date).setTime(r.getTime()+1e3*n*60),window.document.cookie=t+"="+encodeURIComponent(e)+";path="+i+(o?";domain="+o:"")+(r?";expires="+r.toUTCString():"")+(u?";SameSite="+u:""))}function c(t,e,n,r){u(t,"",-1,e,n,r)}},function(t,e,n){var r=n(9),o=n(3),i=n(10),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],f=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:a,l=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(f&&!r)return!0;var t={length:-1};f?u(t,1,{enumerable:!0,get:a}):t[1]=1,n.call(t,s,l)}))}},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.genRandomValue=u,e.uuid4=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^u()>>t/4).toString(16)}))},e.parseQueryString=function(t){var e={};"?"===t.charAt(0)&&(t=t.substring(1));for(var n=t.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");o[0]&&(e[o[0]]=decodeURIComponent(o[1]?o[1]:""))}return e},e.addQueryParam=function(t,e,n){var r=t.match(/([^?#]+)(\?[^#]*)?(#.*)?/),o=r[1]||"",i=r[2]||"",u=r[3]||"";if(e=encodeURIComponent(e),n=encodeURIComponent(n||""),i){for(var c=i.substr(1).split("&"),a=c.length,f=0;f<c.length;++f){if(c[f].split("=")[0]===e){a=f;break}}return c[a]=e+"="+n,o+"?"+c.join("&")+u}return o+"?"+e+"="+n+u},e.firePixel=function(t){var e=document.createElement("img");e.width=1,e.height=1,e.style.display="none",e.src=t},e.copyOptions=function(t,e){var n;t&&e&&(0,i.default)(n=(0,o.default)(e)).call(n,(function(n){var r=e[n];void 0!==r&&t.hasOwnProperty(n)&&(t[n]=r)}))};var o=r(n(157)),i=r(n(37));function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=window.crypto||window.msCrypto;return e&&e.getRandomValues?e.getRandomValues(new Uint8Array(1))[0]%t:Math.random()*t}},function(t,e,n){"use strict";
18n(5)(e,"__esModule",{value:!0}),e.LOCAL_STORAGE=e.COOKIE=void 0;e.COOKIE="cookie";e.LOCAL_STORAGE="html5"},function(t,e,n){t.exports=n(190)},function(t,e,n){var r=n(2);t.exports=r.Promise},function(t,e,n){var r=n(11),o=n(210),i=n(25),u=n(29),c=n(211),a=n(212),f=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,s,l){var p,v,d,h,y,m,g,x=u(e,n,s?2:1);if(l)p=t;else{if("function"!=typeof(v=c(t)))throw TypeError("Target is not iterable");if(o(v)){for(d=0,h=i(t.length);h>d;d++)if((y=s?x(r(g=t[d])[0],g[1]):x(t[d]))&&y instanceof f)return y;return new f(!1)}p=v.call(t)}for(m=p.next;!(g=m.call(p)).done;)if("object"==typeof(y=a(p,x,g.value,s))&&y&&y instanceof f)return y;return new f(!1)}).stop=function(t){return new f(!0,t)}},function(t,e,n){var r=n(11),o=n(17),i=n(4)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u=n(2),c=n(3),a=n(20),f=n(29),s=n(74),l=n(45),p=n(95),v=u.location,d=u.setImmediate,h=u.clearImmediate,y=u.process,m=u.MessageChannel,g=u.Dispatch,x=0,b={},w=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){w(t)}},O=function(t){w(t.data)},_=function(t){u.postMessage(t+"",v.protocol+"//"+v.host)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++x]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(x),x},h=function(t){delete b[t]},"process"==a(y)?r=function(t){y.nextTick(S(t))}:g&&g.now?r=function(t){g.now(S(t))}:m&&!p?(i=(o=new m).port2,o.port1.onmessage=O,r=f(i.postMessage,i,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||c(_)||"file:"===v.protocol?r="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(r=_,u.addEventListener("message",O,!1))),t.exports={set:d,clear:h}},function(t,e,n){var r=n(56);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(11),o=n(8),i=n(59);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";var r,o,i,u=n(99);r=window,o=document,i=window.pubcid_options,(0,u.setupPubcid)(r,o,i)},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.setupPubcid=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=("object"===(0,o.default)(t.PublisherCommonId)||(t.PublisherCommonId={}),t.PublisherCommonId),c=new i.default(n);r.getId=function(){return c.readPubcid()||""},r.init=function(){c.updatePubcidWithConsent()},r.createId=function(){c.createPubcid()},r.deleteId=function(){c.deletePubcid()},r.generateId=function(){return(0,u.uuid4)()},(void 0===n.autoinit||n.autoinit)&&r.init(n.consentData)};var o=r(n(63)),i=r(n(143)),u=n(88)},function(t,e,n){var r=n(60);t.exports=r},function(t,e,n){var r=n(1),o=n(9);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(14).f})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){t.exports=n(104)},function(t,e,n){var r=n(105);t.exports=r},function(t,e,n){n(64),n(67),n(54);var r=n(46);t.exports=r.f("iterator")},function(t,e,n){var r=n(2),o=n(12);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(50),o=n(27),i=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){var r=n(2),o=n(68),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){"use strict";var r=n(70).IteratorPrototype,o=n(33),i=n(24),u=n(22),c=n(23),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(9),o=n(14),i=n(11),u=n(34);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(25),i=n(73),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){"use strict";var r=n(53),o=n(35);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){"use strict";var r=n(16),o=n(115),i=n(23),u=n(30),c=n(69),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){t.exports=n(118)},function(t,e,n){var r=n(119);n(138),n(139),n(140),n(141),n(142),t.exports=r},function(t,e,n){n(120),n(79),n(121),n(123),n(124),n(125),n(126),n(64),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137);var r=n(6);t.exports=r.Symbol},function(t,e,n){"use strict";var r=n(1),o=n(3),i=n(36),u=n(8),c=n(18),a=n(25),f=n(76),s=n(77),l=n(78),p=n(4),v=n(55),d=p("isConcatSpreadable"),h=v>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),y=l("concat"),m=function(t){if(!u(t))return!1;var e=t[d];
vendor: 4,788 bytes, line 18
18return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!y},{concat:function(t){var e,n,r,o,i,u=c(this),l=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],m(i)){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,p++,i)}return l.length=p,l}})},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(19),u=n(21),c=n(9),a=n(49),f=n(66),s=n(3),l=n(10),p=n(36),v=n(8),d=n(11),h=n(18),y=n(16),m=n(28),g=n(24),x=n(33),b=n(34),w=n(80),S=n(122),O=n(81),_=n(42),C=n(14),E=n(43),P=n(12),A=n(26),j=n(47),k=n(31),T=n(32),L=n(48),I=n(4),M=n(46),R=n(0),D=n(22),F=n(30),N=n(82).forEach,G=k("hidden"),V=I("toPrimitive"),U=F.set,K=F.getterFor("Symbol"),B=Object.prototype,W=o.Symbol,q=i("JSON","stringify"),$=_.f,Y=C.f,H=S.f,Q=E.f,z=j("symbols"),J=j("op-symbols"),X=j("string-to-symbol-registry"),Z=j("symbol-to-string-registry"),tt=j("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=c&&s((function(){return 7!=x(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=$(B,e);r&&delete B[e],Y(t,e,n),r&&t!==B&&Y(B,e,r)}:Y,ot=function(t,e){var n=z[t]=x(W.prototype);return U(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},it=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},ut=function(t,e,n){t===B&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),l(z,r)?(n.enumerable?(l(t,G)&&t[G][r]&&(t[G][r]=!1),n=x(n,{enumerable:g(0,!1)})):(l(t,G)||Y(t,G,g(1,{})),t[G][r]=!0),rt(t,r,n)):Y(t,r,n)},ct=function(t,e){d(t);var n=y(e),r=b(n).concat(lt(n));return N(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=m(t,!0),n=Q.call(this,e);return!(this===B&&l(z,e)&&!l(J,e))&&(!(n||!l(this,e)||!l(z,e)||l(this,G)&&this[G][e])||n)},ft=function(t,e){var n=y(t),r=m(e,!0);if(n!==B||!l(z,r)||l(J,r)){var o=$(n,r);return!o||!l(z,r)||l(n,G)&&n[G][r]||(o.enumerable=!0),o}},st=function(t){var e=H(y(t)),n=[];return N(e,(function(t){l(z,t)||l(T,t)||n.push(t)})),n},lt=function(t){var e=t===B,n=H(e?J:y(t)),r=[];return N(n,(function(t){!l(z,t)||e&&!l(B,t)||r.push(z[t])})),r};(a||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),n=function(t){this===B&&n.call(J,t),l(this,G)&&l(this[G],e)&&(this[G][e]=!1),rt(this,e,g(1,t))};return c&&nt&&rt(B,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return K(this).tag})),A(W,"withoutSetter",(function(t){return ot(L(t),t)})),E.f=at,C.f=ut,_.f=ft,w.f=S.f=st,O.f=lt,M.f=function(t){return ot(I(t),t)},c&&(Y(W.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),u||A(B,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:W}),N(b(tt),(function(t){R(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=String(t);if(l(X,e))return X[e];var n=W(e);return X[e]=n,Z[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?x(t):ct(x(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:s((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(h(t))}}),q)&&r({target:"JSON",stat:!0,forced:!a||s((function(){var t=W();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(v(e)||void 0!==t)&&!it(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,q.apply(null,o)}});W.prototype[V]||P(W.prototype,V,W.prototype.valueOf),D(W,"Symbol"),T[G]=!0},function(t,e,n){var r=n(16),o=n(80).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){n(0)("asyncIterator")},function(t,e){},function(t,e,n){n(0)("hasInstance")},function(t,e,n){n(0)("isConcatSpreadable")},function(t,e,n){n(0)("match")},function(t,e,n){n(0)("matchAll")},function(t,e,n){n(0)("replace")},function(t,e,n){n(0)("search")},function(t,e,n){n(0)("species")},function(t,e,n){n(0)("split")},function(t,e,n){n(0)("toPrimitive")},function(t,e,n){n(0)("toStringTag")},function(t,e,n){n(0)("unscopables")}
18,function(t,e,n){n(22)(Math,"Math",!0)},function(t,e,n){var r=n(2);n(22)(r.JSON,"JSON",!0)},function(t,e,n){n(0)("asyncDispose")},function(t,e,n){n(0)("dispose")},function(t,e,n){n(0)("observable")},function(t,e,n){n(0)("patternMatch")},function(t,e,n){n(0)("replaceAll")},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(83)),i=r(n(13)),u=r(n(15)),c=n(86),a=n(88),f=n(161),s=r(n(172)),l=n(89),p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,i.default)(this,t),this.config={name:"_pubcid",optoutName:"_pubcid_optout",expInterval:525600,create:!0,cookieDomain:void 0,type:"html5,cookie",extend:!0,pixelUrl:"",consent:{type:"iab",alwaysCallback:!0}},(0,a.copyOptions)(this.config,e),this.cachedDomain=void 0,this.typeEnabled=null,"string"==typeof this.config.type)for(var n=this.config.type.split(","),r=0;r<n.length;++r){var u,s=(0,o.default)(u=n[r]).call(u);if(s===l.COOKIE){if((0,c.isCookieSupported)()){this.typeEnabled=l.COOKIE;break}}else if(s===l.LOCAL_STORAGE&&(0,f.isStorageSupported)()){this.typeEnabled=l.LOCAL_STORAGE;break}}}return(0,u.default)(t,[{key:"hasConsent",value:function(t){var e=this.config.optoutName,n=new s.default(this.config.consent);if(e&&((0,f.readValue)(l.COOKIE,e)||(0,f.readValue)(l.LOCAL_STORAGE,e)))return void t(!1);n.consentEnabled()?n.hasStorageConsent(t):t(!0)}},{key:"fetchPubcid",value:function(){return this.updatePubcidWithConsent(),this.readPubcid()}},{key:"updatePubcidWithConsent",value:function(t){var e=this;this.hasConsent((function(n){var r=null;n?(e.createPubcid(),r=e.readPubcid()):e.deletePubcid(),"function"==typeof t&&t(r)}))}},{key:"readPubcidWithConsent",value:function(t){var e=this;this.hasConsent((function(n){var r=n?e.readPubcid():null;"function"==typeof t&&t(r)}))}},{key:"getPixel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.config.pixelUrl){var e=(0,a.addQueryParam)(this.config.pixelUrl,"id","pubcid:"+t);(0,a.firePixel)(e)}}},{key:"createPubcid",value:function(){var t=this.config,e=t.name,n=t.create,r=t.expInterval,o=t.extend,i=t.pixelUrl,u=(0,f.readValue)(this.typeEnabled,this.config.name);u?o&&(i?this.getPixel(u):(0,f.writeValue)(this.typeEnabled,e,u,r,this.getDomain(this.typeEnabled))):(n&&(this.typeEnabled===l.LOCAL_STORAGE&&(u=(0,f.readValue)(l.COOKIE,e)),u||(u=(0,a.uuid4)()),(0,f.writeValue)(this.typeEnabled,e,u,r,this.getDomain(this.typeEnabled))),this.getPixel(u))}},{key:"deletePubcid",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.all,n=void 0===e||e,r=this.config.name;n?((0,f.deleteValue)(l.COOKIE,r,this.getDomain(l.COOKIE)),(0,f.deleteValue)(l.LOCAL_STORAGE,r,this.getDomain(l.LOCAL_STORAGE))):(0,f.deleteValue)(this.typeEnabled,r)}},{key:"readPubcid",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.any,n=void 0===e||e,r=this.config.name;return n?(0,f.readValue)(l.COOKIE,r)||(0,f.readValue)(l.LOCAL_STORAGE,r):(0,f.readValue)(this.typeEnabled,r)}},{key:"getDomain",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.COOKIE;if(t===l.COOKIE)return void 0!==this.config.cookieDomain?this.config.cookieDomain:(void 0!==this.cachedDomain||(this.cachedDomain=(0,f.extractDomain)(document.location.hostname)),this.cachedDomain)}}]),t}();e.default=p},function(t,e,n){var r=n(145);t.exports=r},function(t,e,n){var r=n(146),o=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===o||t instanceof String&&e===o.trim?r:e}},function(t,e,n){n(147);var r=n(57);t.exports=r("String").trim},function(t,e,n){"use strict";var r=n(1),o=n(148).trim;r({target:"String",proto:!0,forced:n(149)("trim")},{trim:function(){return o(this)}})},function(t,e,n){var r=n(27),o="["+n(84)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,e,n){var r=n(3),o=n(84);t.exports=function(t){return r((function(){return!!o[t]()||"âÂ
á "!="âÂ
á "[t]()||o[t].name!==t}))}},function(t,e,n){var r=n(60);t.exports=r},function(t,e,n){n(54);var r=n(152),o=n(35),i=Array.prototype,u={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===i||t instanceof Array&&e===i.forEach||u.hasOwnProperty(o(t))?r:e}},function(t,e,n){var r=n(153);t.exports=r},function(t,e,n){n(154);var r=n(57);t.exports=r("Array").forEach},function(t,e,n){"use strict";var r=n(1),o=n(155);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){"use strict";
18var r=n(82).forEach,o=n(156),i=n(87),u=o("forEach"),c=i("forEach");t.exports=u&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){t.exports=n(158)},function(t,e,n){var r=n(159);t.exports=r},function(t,e,n){n(160);var r=n(6);t.exports=r.Object.keys},function(t,e,n){var r=n(1),o=n(18),i=n(34);r({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.isStorageSupported=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e={};try{var n=window[t],r="__"+t+"_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},e.clearStorage=function(){try{localStorage.clear()}catch(t){u.default.debug(t)}},e.setStorageItem=f,e.getStorageItem=s,e.removeStorageItem=l,e.readValue=function(t,e){var n;t===c.COOKIE?n=(0,a.getCookie)(e):t===c.LOCAL_STORAGE&&(n=s(e));return"undefined"===n||"null"===n?null:n},e.writeValue=function(t,e,n,r,o){e&&n&&(t===c.COOKIE?(0,a.setCookie)(e,n,r,o,"/","Lax"):t===c.LOCAL_STORAGE&&f(e,n,r))},e.deleteValue=function(t,e,n){e&&(t===c.COOKIE?(0,a.delCookie)(e,n,"/","Lax"):t===c.LOCAL_STORAGE&&l(e))},e.extractDomain=function(t){for(var e,n=""+Math.floor(1e4*Math.random()),r="__dmtester_".concat(n),i=t.split("."),u=0,c=i.length;u<c;++u){var f=(0,o.default)(i).call(i,u).join(".");(0,a.setCookie)(r,n,1,f,"/","Lax");var s=(0,a.getCookie)(r);if(!s)break;if((0,a.delCookie)(r,f,"/","Lax"),s!==n){e=void 0;break}e=f}return e};var o=r(n(162)),i=r(n(167)),u=r(n(171)),c=n(89),a=n(86);function f(t,e,n){try{if(void 0!==n&&null!=n){var r=new Date((0,i.default)()+60*n*1e3).toUTCString();localStorage.setItem(t+"_exp",r)}localStorage.setItem(t,e)}catch(t){u.default.debug(t)}}function s(t){var e=null;try{var n=localStorage.getItem(t+"_exp");if(n)new Date(n).getTime()-(0,i.default)()>0?e=localStorage.getItem(t):l(t);else e=localStorage.getItem(t)}catch(t){u.default.debug(t)}return e}function l(t){try{localStorage.removeItem(t+"_exp"),localStorage.removeItem(t)}catch(t){u.default.debug(t)}}},function(t,e,n){t.exports=n(163)},function(t,e,n){var r=n(164);t.exports=r},function(t,e,n){var r=n(165),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||t instanceof Array&&e===o.slice?r:e}},function(t,e,n){n(166);var r=n(57);t.exports=r("Array").slice},function(t,e,n){"use strict";var r=n(1),o=n(8),i=n(36),u=n(73),c=n(25),a=n(16),f=n(76),s=n(4),l=n(78),p=n(87),v=l("slice"),d=p("slice",{ACCESSORS:!0,0:0,1:2}),h=s("species"),y=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!v||!d},{slice:function(t,e){var n,r,s,l=a(this),p=c(l.length),v=u(t,p),d=u(void 0===e?p:e,p);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return y.call(l,v,d);for(r=new(void 0===n?Array:n)(m(d-v,0)),s=0;v<d;v++,s++)v in l&&f(r,s,l[v]);return r.length=s,r}})},function(t,e,n){t.exports=n(168)},function(t,e,n){var r=n(169);t.exports=r},function(t,e,n){n(170);var r=n(6);t.exports=r.Date.now},function(t,e,n){n(1)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(13)),i=r(n(15)),u=new(function(){function t(){(0,o.default)(this,t),this.enabled=window.location.href.search(/[?&]?pubcid_debug=true[&$]?/)>=0}return(0,i.default)(t,[{key:"debug",value:function(){var t;this.enabled&&"undefined"!=typeof console&&(t=console).log.apply(t,arguments)}},{key:"errro",value:function(){var t;(t=console).error.apply(t,arguments)}}]),t}());e.default=u},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(173)),i=r(n(13)),u=r(n(15)),c=n(178),a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,t),this.config={timeout:1e3,alwaysCallback:!1,type:"iab"},(0,o.default)(this.config,e),"iab"===this.config.type&&(this.proxy=(0,c.createProxy)(),this.proxy&&this.proxy.fetchConsentData(this.config.timeout))}return(0,u.default)(t,[{key:"checkConsent",value:function(t){this.consentEnabled()?this.proxy?this.proxy.getConsent(t):t({}):t({gdprApplies:!1})}},{key:"consentEnabled",value:function(){return"iab"===this.config.type}},{key:"hasStorageConsent",value:function(t){var e=this;this.checkConsent((function(n){var r=n.gdprApplies;void 0===r&&(r=!e.config.alwaysCallback),t(!r||n.hasStorageAccess)}))}}]),t}();e.default=a},function(t,e,n){t.exports=n(174)},function(t,e,n){var r=n(175);t.exports=r},function(t,e,n){n(176);var r=n(6);t.exports=r.Object.assign},function(t,e,n){var r=n(1),o=n(177);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(9),o=n(3),i=n(34),u=n(81),c=n(43),a=n(18),f=n(44),s=Object.assign,l=Object.defineProperty;t.exports=!s||o((function(){if(r&&1!==s({b:1},s(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||"abcdefghijklmnopqrst"!=i(s({},e)).join("")}))?function(t,e){for(var n=a(t),o=arguments.length,s=1,l=u.f,p=c.f;o>s;)for(var v,d=f(arguments[s++]),h=l?i(d).concat(l(d)):i(d),y=h.length,m=0;y>m;)v=h[m++],r&&!p.call(d,v)||(n[v]=d[v]);return n}:s},function(t,e,n){"use strict";
18n(5)(e,"__esModule",{value:!0}),e.createProxy=function(){return function(t){var e,n;try{e=window[t.cmpApi]||window.top[t.cmpApi]}catch(t){}if("function"==typeof e)n=new o.LocalProxy(e,t);else if(window.$sf&&window.$sf.ext&&window.$sf.ext[t.safeframeCall])n=new i.SafeFrameProxy(t);else{var r=c(t.locatorFrame);r&&(n=new u.FrameProxy(r,t))}return n}(new r.Tcf)},e.findCmpFrame=c;var r=n(179),o=n(199),i=n(218),u=n(219);function c(t){for(var e,n=window;!e;){try{n.frames[t]&&(e=n)}catch(t){}if(n===window.top)break;n=n.parent}return e}},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.Tcf=e.TCF_API_VERSION=e.TCF_API=e.TCF_FRAME=e.TCF_GET_MSG=e.TCF_RETURN_MSG=e.TCF_GET_DATA=void 0;var o=r(n(38)),i=r(n(37)),u=r(n(184)),c=r(n(13)),a=r(n(15)),f=r(n(39)),s=r(n(40)),l=r(n(41)),p=n(198);function v(){if("undefined"==typeof Reflect||!o.default)return!1;if(o.default.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call((0,o.default)(Date,[],(function(){}))),!0}catch(t){return!1}}e.TCF_GET_DATA="getTCData";e.TCF_RETURN_MSG="__tcfapiReturn";e.TCF_GET_MSG="__tcfapiCall";e.TCF_FRAME="__tcfapiLocator";e.TCF_API="__tcfapi";e.TCF_API_VERSION=2;var d=function(t){(0,f.default)(r,t);var e,n=(e=r,function(){var t,n=(0,l.default)(e);if(v()){var r=(0,l.default)(this).constructor;t=(0,o.default)(n,arguments,r)}else t=n.apply(this,arguments);return(0,s.default)(this,t)});function r(){var t;return(0,c.default)(this,r),(t=n.call(this,"__tcfapi","__tcfapiReturn","__tcfapiCall","__tcfapiLocator")).cmpData={},t.consentCallbackList=[],t}return(0,a.default)(r,[{key:"formatData",value:function(t){var e={version:2};return t&&(e.gdprApplies=t.gdprApplies,e.consentString=t.tcString,e.tcData=t,e.hasStorageAccess=e.tcData&&e.tcData.purpose&&e.tcData.purpose.consents&&e.tcData.purpose.consents[1]),e}},{key:"createMsg",value:function(t,e,n){return(0,u.default)({},"__tcfapiCall",{command:t,version:2,parameter:e,callId:n})}},{key:"callCmp",value:function(t,e,n,r){t(e,2,n,r)}},{key:"getListenerCmd",value:function(){return[["addEventListener"]]}},{key:"getRmListenerCmd",value:function(){return[["removeEventListener"]]}},{key:"fetchDataCallback",value:function(t,e){var n=this;if(e){var r,o=t[0];if("loaded"===o.cmpStatus&&("tcloaded"===o.eventStatus||"useractioncomplete"===o.eventStatus))return this.cmpSuccess=e,this.cmpData=this.formatData(o),(0,i.default)(r=this.consentCallbackList).call(r,(function(t){t(n.cmpData,e)})),o.listenerId}else{var u;this.cmpSuccess=e,this.cmpData=this.formatData(void 0),(0,i.default)(u=this.consentCallbackList).call(u,(function(t){t(n.cmpData,e)}))}}},{key:"getConsent",value:function(t){void 0!==this.cmpSuccess?t(this.cmpData,this.cmpSuccess):this.consentCallbackList.push(t)}}]),r}(p.BaseCmp);e.Tcf=d},function(t,e,n){var r=n(181);t.exports=r},function(t,e,n){n(182);var r=n(6);t.exports=r.Reflect.construct},function(t,e,n){var r=n(1),o=n(19),i=n(17),u=n(11),c=n(8),a=n(33),f=n(183),s=n(3),l=o("Reflect","construct"),p=s((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),v=!s((function(){l((function(){}))})),d=p||v;r({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(v&&!p)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(f.apply(t,r))}var o=n.prototype,s=a(c(o)?o:Object.prototype),d=Function.apply.call(t,s,e);return c(d)?d:s}})},function(t,e,n){"use strict";var r=n(17),o=n(8),i=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("C,a","return new C("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?c(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,n){var r=n(85);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports=n(186)},function(t,e,n){var r=n(187);t.exports=r},function(t,e,n){n(188);var r=n(6).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(1)({target:"Object",stat:!0,sham:!n(9)},{create:n(33)})},function(t,e,n){var r=n(90);function o(e,n){return t.exports=o=r||function(t,e){return t.__proto__=e,t},o(e,n)}t.exports=o},function(t,e,n){var r=n(191);t.exports=r},function(t,e,n){n(192);var r=n(6);t.exports=r.Object.setPrototypeOf},function(t,e,n){n(1)({target:"Object",stat:!0},{setPrototypeOf:n(75)})},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){t.exports=n(195)},function(t,e,n){var r=n(196);t.exports=r},function(t,e,n){n(197);var r=n(6);t.exports=r.Object.getPrototypeOf},function(t,e,n){var r=n(1),o=n(3),i=n(18),u=n(51),c=n(71);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){"use strict";var r=n(7);
18n(5)(e,"__esModule",{value:!0}),e.BaseCmp=void 0;var o=r(n(13));e.BaseCmp=function t(e,n,r,i){(0,o.default)(this,t),this.cmpApi=e,this.returnMsgName=n,this.getMsgName=r,this.locatorFrame=i}},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.LocalProxy=e.LOCAL_PROXY_NAME=void 0;var o=r(n(38)),i=r(n(13)),u=r(n(15)),c=r(n(39)),a=r(n(40)),f=r(n(41)),s=n(58);function l(){if("undefined"==typeof Reflect||!o.default)return!1;if(o.default.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call((0,o.default)(Date,[],(function(){}))),!0}catch(t){return!1}}e.LOCAL_PROXY_NAME="localProxy";var p=function(t){(0,c.default)(r,t);var e,n=(e=r,function(){var t,n=(0,f.default)(e);if(l()){var r=(0,f.default)(this).constructor;t=(0,o.default)(n,arguments,r)}else t=n.apply(this,arguments);return(0,a.default)(this,t)});function r(t,e){var o;return(0,i.default)(this,r),(o=n.call(this,e)).name="localProxy",o.fCmp=t,o}return(0,u.default)(r,[{key:"callApi",value:function(t,e,n){this.driver.callCmp(this.fCmp,t,n,e)}}]),r}(s.BaseProxy);e.LocalProxy=p},function(t,e,n){t.exports=n(201)},function(t,e,n){n(202);var r=n(6);t.exports=r.setTimeout},function(t,e,n){var r=n(1),o=n(2),i=n(56),u=[].slice,c=function(t){return function(e,n){var r=arguments.length>2,o=r?u.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(o.setTimeout),setInterval:c(o.setInterval)})},function(t,e,n){t.exports=n(204)},function(t,e,n){var r=n(205);t.exports=r},function(t,e,n){n(79),n(67),n(54),n(206),n(216),n(217);var r=n(6);t.exports=r.Promise},function(t,e,n){"use strict";var r,o,i,u,c=n(1),a=n(21),f=n(2),s=n(19),l=n(91),p=n(26),v=n(207),d=n(22),h=n(208),y=n(8),m=n(17),g=n(209),x=n(20),b=n(68),w=n(92),S=n(213),O=n(93),_=n(94).set,C=n(214),E=n(96),P=n(215),A=n(59),j=n(97),k=n(30),T=n(62),L=n(4),I=n(55),M=L("species"),R="Promise",D=k.get,F=k.set,N=k.getterFor(R),G=l,V=f.TypeError,U=f.document,K=f.process,B=s("fetch"),W=A.f,q=W,$="process"==x(K),Y=!!(U&&U.createEvent&&f.dispatchEvent),H=T(R,(function(){if(!(b(G)!==String(G))){if
vendor: 3,243 bytes, line 18
18(66===I)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(a&&!G.prototype.finally)return!0;if(I>=51&&/native code/.test(G))return!1;var t=G.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[M]=e,!(t.then((function(){}))instanceof e)})),Q=H||!S((function(t){G.all(t).catch((function(){}))})),z=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;C((function(){for(var o=e.value,i=1==e.state,u=0;r.length>u;){var c,a,f,s=r[u++],l=i?s.ok:s.fail,p=s.resolve,v=s.reject,d=s.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?c=o:(d&&d.enter(),c=l(o),d&&(d.exit(),f=!0)),c===s.promise?v(V("Promise-chain cycle")):(a=z(c))?a.call(c,p,v):p(c)):v(o)}catch(t){d&&!f&&d.exit(),v(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Z(t,e)}))}},X=function(t,e,n){var r,o;Y?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},(o=f["on"+t])?o(r):"unhandledrejection"===t&&P("Unhandled promise rejection",n)},Z=function(t,e){_.call(f,(function(){var n,r=e.value;if(tt(e)&&(n=j((function(){$?K.emit("unhandledRejection",r,t):X("unhandledrejection",t,r)})),e.rejection=$||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){_.call(f,(function(){$?K.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},ot=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw V("Promise can't be resolved itself");var o=z(n);o?C((function(){var r={done:!1};try{o.call(n,nt(ot,t,r,e),nt(rt,t,r,e))}catch(n){rt(t,r,n,e)}})):(e.value=n,e.state=1,J(t,e,!1))}catch(n){rt(t,{done:!1},n,e)}}};H&&(G=function(t){g(this,G,R),m(t),r.call(this);var e=D(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},(r=function(t){F(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(G.prototype,{then:function(t,e){var n=N(this),r=W(O(this,G));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=$?K.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=D(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},A.f=W=function(t){return t===G||t===i?new o(t):q(t)},a||"function"!=typeof l||(u=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new G((function(t,e){u.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof B&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(G,B.apply(f,arguments))}}))),c({global:!0,wrap:!0,forced:H},{Promise:G}),d(G,R,!1,!0),h(R),i=s(R),c({target:R,stat:!0,forced:H},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),c({target:R,stat:!0,forced:a||H},{resolve:function(t){return E(a&&this===i?G:this,t)}}),c({target:R,stat:!0,forced:Q},{all:function(t){var e=this,n=W(e),r=n.resolve,o=n.reject,i=j((function(){var n=m(e.resolve),i=[],u=0,c=1;w(t,(function(t){var a=u++,f=!1;
18i.push(void 0),c++,n.call(e,t).then((function(t){f||(f=!0,i[a]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=W(e),r=n.reject,o=j((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(26);t.exports=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(19),o=n(14),i=n(4),u=n(9),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(4),o=n(23),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(35),o=n(23),i=n(4)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(11);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,u,c,a,f,s,l=n(2),p=n(42).f,v=n(20),d=n(94).set,h=n(95),y=l.MutationObserver||l.WebKitMutationObserver,m=l.process,g=l.Promise,x="process"==v(m),b=p(l,"queueMicrotask"),w=b&&b.value;w||(r=function(){var t,e;for(x&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},x?u=function(){m.nextTick(r)}:y&&!h?(c=!0,a=document.createTextNode(""),new y(r).observe(a,{characterData:!0}),u=function(){a.data=c=!c}):g&&g.resolve?(f=g.resolve(void 0),s=f.then,u=function(){s.call(f,r)}):u=function(){d.call(l,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(2);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(59),u=n(97),c=n(92);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,a=n.reject,f=u((function(){var n=o(e.resolve),i=[],u=0,a=1;c(t,(function(t){var o=u++,c=!1;i.push(void 0),a++,n.call(e,t).then((function(t){c||(c=!0,i[o]={status:"fulfilled",value:t},--a||r(i))}),(function(t){c||(c=!0,i[o]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return f.error&&a(f.value),n.promise}})},function(t,e,n){"use strict";var r=n(1),o=n(21),i=n(91),u=n(3),c=n(19),a=n(93),f=n(96),s=n(26);r({target:"Promise",proto:!0,real:!0,forced:!!i&&u((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=a(this,c("Promise")),n="function"==typeof t;return this.then(n?function(n){return f(e,t()).then((function(){return n}))}:t,n?function(n){return f(e,t()).then((function(){throw n}))}:t)}}),o||"function"!=typeof i||i.prototype.finally||s(i.prototype,"finally",c("Promise").prototype.finally)},function(t,e,n){"use strict";var r=n(7);n(5)(e,"__esModule",{value:!0}),e.SafeFrameProxy=void 0;var o=r(n(38)),i=r(n(13)),u=r(n(15)),c=r(n(39)),a=r(n(40)),f=r(n(41));function s(){if("undefined"==typeof Reflect||!o.default)return!1;if(o.default.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call((0,o.default)(Date,[],(function(){}))),!0}catch(t){return!1}}var l=function(t){(0,c.default)(r,t);var e,n=(e=r,function(){var t,n=(0,f.default)(e);if(s()){var r=(0,f.default)(this).constructor;t=(0,o.default)(n,arguments,r)}else t=n.apply(this,arguments);return(0,a.default)(this,t)});function r(t){return(0,i.default)(this,r),n.call(this,t)}return(0,u.default)(r,[{key:"callSafeFrame",value:function(t,e,n){window.$sf.ext.register(300,250,(function(t,e){if(t===this.driver.returnMsgName){var r=e;this.driver.getSafeFrameData&&(r=this.driver.getSafeFrameData(e)),n(r,e.success)}})),window.$sf.ext[this.driver.safeframeCall](t)}}]),r}(n(58).BaseProxy);e.SafeFrameProxy=l},function(t,e,n){"use strict";var r=n(7);
18n(5)(e,"__esModule",{value:!0}),e.FrameProxy=e.FRAME_PROXY_NAME=void 0;var o=r(n(38)),i=r(n(13)),u=r(n(15)),c=r(n(39)),a=r(n(40)),f=r(n(41)),s=n(58);function l(){if("undefined"==typeof Reflect||!o.default)return!1;if(o.default.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call((0,o.default)(Date,[],(function(){}))),!0}catch(t){return!1}}e.FRAME_PROXY_NAME="frameProxy";var p=function(t){(0,c.default)(r,t);var e,n=(e=r,function(){var t,n=(0,f.default)(e);if(l()){var r=(0,f.default)(this).constructor;t=(0,o.default)(n,arguments,r)}else t=n.apply(this,arguments);return(0,a.default)(this,t)});function r(t,e){var o;return(0,i.default)(this,r),(o=n.call(this,e)).cmpCallbacks={},o.cmpFrame=t,o.driver=e,o.name="frameProxy",o.fProcess=function(t){return o.processEvent(t)},o.setup(),o}return(0,u.default)(r,[{key:"processEvent",value:function(t){var e={};try{e="string"==typeof t.data?JSON.parse(t.data):t.data}catch(t){}if(e[this.driver.returnMsgName]&&e[this.driver.returnMsgName].callId){var n=e[this.driver.returnMsgName],r=this.cmpCallbacks[n.callId];void 0!==r&&(r(n.returnValue,n.success),delete this.cmpCallbacks[n.callId])}}},{key:"setup",value:function(){window.addEventListener?window.addEventListener("message",this.fProcess,!1):window.attachEvent("onmessage",this.fProcess)}},{key:"stop",value:function(){window.removeEventListener?window.removeEventListener("message",this.fProcess,!1):window.detachEvent("onmessage",this.fProcess())}},{key:"callApi",value:function(t,e,n){var r=Math.random()+"",o=this.driver.createMsg(t,e,r);this.cmpCallbacks[r]=n,this.cmpFrame.postMessage(o,"*")}}]),r}(s.BaseProxy);e.FrameProxy=p}]);}catch(e){console.log(e);} 19/*https://platform.twitter.com/widgets.js*/ 20;try{Function&&Function.prototype&&Function.prototype.bind&&(/(MSIE ([6789]|10|11))|Trident/.test(navigator.userAgent)||(window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.loaded&&window.twttr.widgets.load&&window.twttr.widgets.load(),window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.init||function(t){function e(e){for(var n,i,o=e[0],s=e[1],a=0,c=[];a<o.length;a++)i=o[a],r[i]&&c.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);for(u&&u(e);c.length;)c.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,i){n=r[t]=[e,i]});e.push(n[2]=o);var s,a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(t){return i.p+"js/"+({1:"broadcast",2:"dm_button",3:"button",4:"moment",5:"periscope_on_air",6:"timeline",7:"tweet"}[t]||t)+"."+{1:"32f7abac95f95f4b72697654e422bf03",2:"82e934513bb92e5e48c40f0a5dba5ac3",3:"2276a045429f6681b56da5eb1dcfa53c",4:"d66d66402934d0020bbb58072f5fd8fb",5:"9dc744c66140b0ec5438ccc0bc92bb0b",6:"9ee124fd8db0c3ba3796e9613bbc9e53",7:"7a6003258de838c35e66fd0f50ebdb0f"}[t]+".js"}(t),s=function(e){u.onerror=u.onload=null,clearTimeout(c);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src,s=new Error("Loading chunk "+t+" failed.\n("+i+": "+o+")");s.type=i,s.request=o,n[1](s)}r[t]=void 0}};var c=setTimeout(function(){s({type:"timeout",target:u})},12e4);u.onerror=u.onload=s,a.appendChild(u)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="https://platform.twitter.com/",i.oe=function(t){throw console.error(t),t};var o=window.__twttrll=window.__twttrll||[],s=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var u=s;i(i.s=84)}([function(t,e,n){var r=n(1);function i(t,e){var n;for(n in t)t.hasOwnProperty&&!t.hasOwnProperty(n)||e(n,t[n]);return t}function o(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function s(t){return t===Object(t)}function a(t){var e;if(!s(t))return!1;if(Object.keys)return!Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function u(t){return t?Array.prototype.slice.call(t):[]}
20t.exports={aug:function(t){return u(arguments).slice(1).forEach(function(e){i(e,function(e,n){t[e]=n})}),t},async:function(t,e){r.setTimeout(function(){t.call(e||null)},0)},compact:function t(e){return i(e,function(n,r){s(r)&&(t(r),a(r)&&delete e[n]),void 0!==r&&null!==r&&""!==r||delete e[n]}),e},contains:function(t,e){return!(!t||!t.indexOf)&&t.indexOf(e)>-1},forIn:i,isObject:s,isEmptyObject:a,toType:o,isType:function(t,e){return t==o(e)},toRealArray:u}},function(t,e){t.exports=window},function(t,e,n){var r=n(6);t.exports=function(){var t=this;this.promise=new r(function(e,n){t.resolve=e,t.reject=n})}},function(t,e){t.exports=document},function(t,e,n){var r=n(16),i=/(?:^|(?:https?:)?\/\/(?:www\.)?(?:x|twitter)\.com(?::\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,o=/(?:^|(?:https?:)?\/\/(?:www\.)?(?:x|twitter)\.com(?::\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,s=/^http(s?):\/\/(\w+\.)*(?:x|twitter)\.com([:/]|$)/i,a=/^http(s?):\/\/(ton|pbs)\.twimg\.com/,u=/^#?([^.,<>!\s/#\-()'"]+)$/,c=/(?:x|twitter)\.com(?::\d{2,4})?\/intent\/(\w+)/,d=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/\w+\/timelines\/(\d+)/i,f=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/i\/moments\/(\d+)/i,l=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/(\w+)\/(?:likes|favorites)/i,h=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/(\w+)\/lists\/([\w-%]+)/i,p=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/i\/live\/(\d+)/i,m=/^https?:\/\/syndication\.(?:x|twitter)\.com\/settings/i,v=/^https?:\/\/(localhost|platform)\.(?:x|twitter)\.com(?::\d+)?\/widgets\/widget_iframe\.(.+)/i,g=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/search\?q=(\w+)/i;function w(t){return"string"==typeof t&&i.test(t)&&RegExp.$1.length<=20}function y(t){if(w(t))return RegExp.$1}function b(t,e){var n=r.decodeURL(t);if(e=e||!1,n.screen_name=y(t),n.screen_name)return r.url("https://x.com/intent/"+(e?"follow":"user"),n)}function _(t){return"string"==typeof t&&u.test(t)}function E(t){return"string"==typeof t&&o.test(t)}t.exports={isHashTag:_,hashTag:function(t,e){if(e=void 0===e||e,_(t))return(e?"#":"")+RegExp.$1},isScreenName:w,screenName:y,isStatus:E,status:function(t){return E(t)&&RegExp.$1},intentForProfileURL:b,intentForFollowURL:function(t){return b(t,!0)},isTwitterURL:function(t){return s.test(t)},isTwimgURL:function(t){return a.test(t)},isIntentURL:function(t){return c.test(t)},isSettingsURL:function(t){return m.test(t)},isWidgetIframeURL:function(t){return v.test(t)},isSearchUrl:function(t){return g.test(t)},regexen:{profile:i},momentId:function(t){return f.test(t)&&RegExp.$1},collectionId:function(t){return d.test(t)&&RegExp.$1},intentType:function(t){return c.test(t)&&RegExp.$1},likesScreenName:function(t){return l.test(t)&&RegExp.$1},listScreenNameAndSlug:function(t){var e,n,r;if(h.test(t)){e=RegExp.$1,n=RegExp.$2;try{r=decodeURIComponent(n)}catch(t){}return{ownerScreenName:e,slug:r||n}}return!1},eventId:function(t){return p.test(t)&&RegExp.$1}}},function(t,e,n){var r=n(0),i=[!0,1,"1","on","ON","true","TRUE","yes","YES"],o=[!1,0,"0","off","OFF","false","FALSE","no","NO"];function s(t){return void 0!==t&&null!==t&&""!==t}function a(t){return c(t)&&t%1==0}function u(t){return c(t)&&!a(t)}function c(t){return s(t)&&!isNaN(t)}function d(t){return r.contains(o,t)}function f(t){return r.contains(i,t)}t.exports={hasValue:s,isInt:a,isFloat:u,isNumber:c,isString:function(t){return"string"===r.toType(t)},isArray:function(t){return s(t)&&"array"==r.toType(t)},isTruthValue:f,isFalseValue:d,asInt:function(t){if(a(t))return parseInt(t,10)},asFloat:function(t){if(u(t))return t},asNumber:function(t){if(c(t))return t},asBoolean:function(t){return!(!s(t)||!f(t)&&(d(t)||!t))}}},function(t,e,n){var r=n(1),i=n(20),o=n(45);i.hasPromiseSupport()||(r.Promise=o),t.exports=r.Promise},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=Array.prototype.slice.call(arguments,2);return function(){var i=r.toRealArray(arguments);return t.apply(e,n.concat(i))}}},function(t,e){t.exports=location},function(t,e,n){var r=n(47);t.exports=new r("__twttr")},function(t,e,n){var r=n(0),i=/\b([\w-_]+)\b/g;function o(t){return new RegExp("\\b"+t+"\\b","g")}function s(t,e){t.classList?t.classList.add(e):o(e).test(t.className)||(t.className+=" "+e)}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(o(e)," ")}function u(t,e){return t.classList?t.classList.contains(e):r.contains(c(t),e)}function c(t){return r.toRealArray(t.classList?t.classList:t.className.match(i))}t.exports={add:s,remove:a,replace:function(t,e,n){if(t.classList&&u(t,e))return a(t,e),void s(t,n);t.className=t.className.replace(o(e),n)},toggle:function(t,e,n){return void 0===n&&t.classList&&t.classList.toggle?t.classList.toggle(e,n):(n?s(t,e):a(t,e),n)},present:u,list:c}},function(t,e,n){var r=n(19),i=n(5),o=n(16),s=n(0),a=n(110);t.exports=function(t){var e=t.href&&t.href.split("?")[1],n=e?o.decode(e):{},u={lang:a(t),width:t.getAttribute("data-width")||t.getAttribute("width"),height:t.getAttribute("data-height")||t.getAttribute("height"),related:t.getAttribute("data-related"),partner:t.getAttribute("data-partner")};return i.asBoolean(t.getAttribute("data-dnt"))&&r.setOn(),s.forIn(u,function(t,e){var r=n[t];n[t]=i.hasValue(r)?r:e}),s.compact(n)}},function(t,e,n){var r=n(111),i=n(21);t.exports=function(){var t="data-twitter-extracted-"+i.generate();return function(e,n){return r(e,n).filter(function(e){return!e.hasAttribute(t)}).map(function(e){return e.setAttribute(t,"true"),e})}}},function(t,e){function n(t,e,n,r,i,o,s){this.factory=t,this.Sandbox=e,this.srcEl=o,this.targetEl=i,this.parameters=r,this.className=n,this.options=s}n.prototype.destroy=function(){this.srcEl=this.targetEl=null},t.exports=n},function(t,e){t.exports={BROADCAST:"twitter-broadcast",DM_BUTTON:"twitter-dm-button",FOLLOW_BUTTON:"twitter-follow-button",HASHTAG_BUTTON:"twitter-hashtag-button",MENTION_BUTTON:"twitter-mention-button",MOMENT:"twitter-moment",PE
20RISCOPE:"periscope-on-air",SHARE_BUTTON:"twitter-share-button",TIMELINE:"twitter-timeline",TWEET:"twitter-tweet"}},function(t,e,n){var r=n(6),i=n(19),o=n(50),s=n(34),a=n(5),u=n(0);t.exports=function(t,e,n){var c;return t=t||[],e=e||{},c="Æ("+t.join(", ")+", target, [options]);",function(){var d,f,l,h,p=Array.prototype.slice.apply(arguments,[0,t.length]),m=Array.prototype.slice.apply(arguments,[t.length]);return m.forEach(function(t){t&&(t.nodeType!==Node.ELEMENT_NODE?u.isType("function",t)?d=t:u.isType("object",t)&&(f=t):l=t)}),p.length!==t.length||0===m.length?(d&&u.async(function(){d(!1)}),r.reject(new Error("Not enough parameters. Expected: "+c))):l?(f=u.aug({},f||{},e),t.forEach(function(t){f[t]=p.shift()}),a.asBoolean(f.dnt)&&i.setOn(),h=s.getExperiments().then(function(t){return o.addWidget(n(f,l,void 0,t))}),d&&h.then(d,function(){d(!1)}),h):(d&&u.async(function(){d(!1)}),r.reject(new Error("No target element specified. Expected: "+c)))}}},function(t,e,n){var r=n(5),i=n(0);function o(t){return encodeURIComponent(t).replace(/\+/g,"%2B").replace(/'/g,"%27")}function s(t){return decodeURIComponent(t)}function a(t){var e=[];return i.forIn(t,function(t,n){var s=o(t);i.isType("array",n)||(n=[n]),n.forEach(function(t){r.hasValue(t)&&e.push(s+"="+o(t))})}),e.sort().join("&")}function u(t){var e={};return t?(t.split("&").forEach(function(t){var n=t.split("="),r=s(n[0]),o=s(n[1]);if(2==n.length){if(!i.isType("array",e[r]))return r in e?(e[r]=[e[r]],void e[r].push(o)):void(e[r]=o);e[r].push(o)}}),e):{}}t.exports={url:function(t,e){return a(e).length>0?i.contains(t,"?")?t+"&"+a(e):t+"?"+a(e):t},decodeURL:function(t){var e=t&&t.split("?");return 2==e.length?u(e[1]):{}},decode:u,encode:a,encodePart:o,decodePart:s}},function(t,e,n){var r=n(92),i=n(2),o=n(0);function s(t,e){return function(){try{e.resolve(t.call(this))}catch(t){e.reject(t)}}}t.exports={sync:function(t,e){t.call(e)},read:function(t,e){var n=new i;return r.read(s(t,n),e),n.promise},write:function(t,e){var n=new i;return r.write(s(t,n),e),n.promise},defer:function(t,e,n){var a=new i;return o.isType("function",t)&&(n=e,e=t,t=1),r.defer(t,s(e,a),n),a.promise}}},function(t,e,n){var r=n(8),i=n(1),o=n(0),s={},a=o.contains(r.href,"tw_debug=true");function u(){}function c(){}function d(){return i.performance&&+i.performance.now()||+new Date}function f(t,e){if(i.console&&i.console[t])switch(e.length){case 1:i.console[t](e[0]);break;case 2:i.console[t](e[0],e[1]);break;case 3:i.console[t](e[0],e[1],e[2]);break;case 4:i.console[t](e[0],e[1],e[2],e[3]);break;case 5:i.console[t](e[0],e[1],e[2],e[3],e[4]);break;default:0!==e.length&&i.console.warn&&i.console.warn("too many params passed to logger."+t)}}t.exports={devError:u,devInfo:c,devObject:function(t,e){},publicError:function(){f("error",o.toRealArray(arguments))},publicLog:function(){f("info",o.toRealArray(arguments))},publicWarn:function(){f("warn",o.toRealArray(arguments))},time:function(t){a&&(s[t]=d())},timeEnd:function(t){a&&s[t]&&(d(),s[t])}}},function(t,e,n){var r=n(3),i=n(8),o=n(38),s=n(96),a=n(5),u=n(33),c=!1,d=/https?:\/\/([^/]+).*/i;t.exports={setOn:function(){c=!0},enabled:function(t,e){return!!(c||a.asBoolean(u.val("dnt"))||s.isUrlSensitive(e||i.host)||o.isFramed()&&s.isUrlSensitive(o.rootDocumentLocation())||
20(t=d.test(t||r.referrer)&&RegExp.$1)&&s.isUrlSensitive(t))}}},function(t,e,n){var r=n(3),i=n(85),o=n(1),s=n(0),a=i.userAgent;function u(t){return/(Trident|MSIE|Edge[/ ]?\d)/.test(t=t||a)}t.exports={retina:function(t){return(t=t||o).devicePixelRatio?t.devicePixelRatio>=1.5:!!t.matchMedia&&t.matchMedia("only screen and (min-resolution: 144dpi)").matches},anyIE:u,ie9:function(t){return/MSIE 9/.test(t=t||a)},ie10:function(t){return/MSIE 10/.test(t=t||a)},ios:function(t){return/(iPad|iPhone|iPod)/.test(t=t||a)},android:function(t){return/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(t=t||a)},canPostMessage:function(t,e){return t=t||o,e=e||a,t.postMessage&&!(u(e)&&t.opener)},touch:function(t,e,n){return t=t||o,e=e||i,n=n||a,"ontouchstart"in t||/Opera Mini/.test(n)||e.msMaxTouchPoints>0},cssTransitions:function(){var t=r.body.style;return void 0!==t.transition||void 0!==t.webkitTransition||void 0!==t.mozTransition||void 0!==t.oTransition||void 0!==t.msTransition},hasPromiseSupport:function(){return!!(o.Promise&&o.Promise.resolve&&o.Promise.reject&&o.Promise.all&&o.Promise.race&&(new o.Promise(function(e){t=e}),s.isType("function",t)));var t},hasIntersectionObserverSupport:function(){return!!o.IntersectionObserver},hasPerformanceInformation:function(){return o.performance&&o.performance.getEntriesByType}}},function(t,e){var n="i",r=0,i=0;t.exports={generate:function(){return n+String(+new Date)+Math.floor(1e5*Math.random())+r++},deterministic:function(){return n+String(i++)}}},function(t,e,n){var r=n(46),i=n(49),o=n(0);t.exports=o.aug(r.get("events")||{},i.Emitter)},function(t,e,n){var r=n(6),i=n(2);function o(t,e){return t.then(e,e)}function s(t){return t instanceof r}t.exports={always:o,allResolved:function(t){var e;return void 0===t?r.reject(new Error("undefined is not an object")):Array.isArray(t)?(e=t.length)?new r(function(n,r){var i=0,o=[];function a(){(i+=1)===e&&(0===o.length?r():n(o))}function u(t){o.push(t),a()}t.forEach(function(t){s(t)?t.then(u,a):u(t)})}):r.resolve([]):r.reject(new Error("Type error"))},some:function(t){var e;return e=(t=t||[]).length,t=t.filter(s),e?e!==t.length?r.reject("non-Promise passed to .some"):new r(function(e,n){var r=0;function i(){(r+=1)===t.length&&n()}t.forEach(function(t){t.then(e,i)})}):r.reject("no promises passed to .some")},isPromise:s,allSettled:function(t){function e(){}return r.all((t||[]).map(function(t){return o(t,e)}))},timeout:function(t,e){var n=new i;return setTimeout(function(){n.reject(new Error("Promise timed out"))},e),t.then(function(t){n.resolve(t)},function(t){n.reject(t)}),n.promise}}},function(t,e,n){var r=n(1).JSON;t.exports={stringify:r.stringify||r.encode,parse:r.parse||r.decode}},function(t,e,n){var r=n(39),i=n(99),o=n(7);(r=Object.create(r)).build=o(r.build,null,i),t.exports=r},function(t,e,n){var r=n(25),i=n(112);t.exports=r.build([i])},function(t,e,n){var r=n(49).makeEmitter();t.exports={emitter:r,START:"start",ALL_WIDGETS_RENDER_START:"all_widgets_render_start",ALL_WIDGETS_RENDER_END:"all_widgets_render_end",ALL_WIDGETS_AND_IMAGES_LOADED:"all_widgets_and_images_loaded"}},function(t,e,n){var r=n(9),i=n(104),o="https://syndication.twitter.com",s="https://platform.twitter.com",a=["https://syndication.twitter.com","https://cdn.syndication.twimg.com","https://localhost.twitter.com:8444"],u=["https://syndication.twitter.com","https://localhost.twitter.com:8445"],c=["https://platform.twitter.com","https://localhost.twitter.com",/^https:\/\/ton\.local\.twitter\.com\/syndication-internal\/embed-iframe\/[0-9A-Za-z_-]+\/app/],d=function(t,e){return t.some(function(t){return t instanceof RegExp?t.test(e):t===e})},f=function(){var t=r.get("backendHost");return t&&d(a,t)?t:"https://cdn.syndication.twimg.com"},l=function(){var t=r.get("settingsSvcHost");return t&&d(u,t)?t:o};function h(t,e){var n=[t];return e.forEach(function(t){n.push(function(t){var e=(t||"").toString(),n="/"===e.slice(0,1)?1:0,r=function(t){return"/"===t.slice(-1)}(e)?-1:void 0;return e.slice(n,r)}(t))}),n.join("/")}t.exports={cookieConsent:function(t){var e=t||[];return e.unshift("cookie/consent"),h(l(),e)},embedIframe:function(t,e){var n=t||[],o=s,a=r.get("embedIframeURL");return a&&d(c,a)?h(a,n)+".html":(n.unshift(i.getBaseURLPath(e)),h(o,n)+".html")},embedService:function(t){var e=t||[],n=o;return e.unshift("srv"),h(n,e)},eventVideo:function(t){var e=t||[];return e.unshift("video/event"),h(f(),e)},grid:function(t){var e=t||[];
20return e.unshift("grid/collection"),h(f(),e)},moment:function(t){var e=t||[];return e.unshift("moments"),h(f(),e)},settings:function(t){var e=t||[];return e.unshift("settings"),h(l(),e)},settingsScribe:function(t){var e=t||[];return e.unshift("i/jot/embeds"),h(l(),e)},timeline:function(t){var e=t||[];return e.unshift("timeline"),h(f(),e)},tweetBatch:function(t){var e=t||[];return e.unshift("tweets.json"),h(f(),e)},video:function(t){var e=t||[];return e.unshift("widgets/video"),h(f(),e)}}},function(t,e,n){var r=n(3),i=n(0);t.exports=function(t,e,n){var o;if(n=n||r,t=t||{},e=e||{},t.name){try{o=n.createElement('<iframe name="'+t.name+'"></iframe>')}catch(e){(o=n.createElement("iframe")).name=t.name}delete t.name}else o=n.createElement("iframe");return t.id&&(o.id=t.id,delete t.id),o.allowtransparency="true",o.scrolling="no",o.setAttribute("frameBorder",0),o.setAttribute("allowTransparency",!0),i.forIn(t,function(t,e){o.setAttribute(t,e)}),i.forIn(e,function(t,e){o.style[t]=e}),o}},function(t,e,n){var r=n(25),i=n(102);t.exports=r.build([i])},function(t,e,n){var r=n(39),i=n(40),o=n(7);(r=Object.create(r)).build=o(r.build,null,i),t.exports=r},function(t,e,n){var r=n(71),i=n(19),o=n(5),s=n(21),a=n(0);t.exports=function(t){t.params({chrome:{},height:{transform:o.asInt},instanceId:{required:!0,fallback:s.deterministic},isPreconfigured:{},lang:{required:!0,transform:r.matchLanguage,fallback:"en"},theme:{},tweetLimit:{transform:o.asInt}}),t.defineProperty("endpoint",{get:function(){throw new Error("endpoint not specified")}}),t.define("queryParams",function(){return a.compact({dnt:i.enabled(),limit:this.params.tweetLimit,lang:this.params.lang})})}},function(t,e,n){var r,i=n(3);function o(t){var e,n,o,s=0;for(r={},e=(t=t||i).getElementsByTagName("meta");e[s];s++){if(n=e[s],/^twitter:/.test(n.getAttribute("name")))o=n.getAttribute("name").replace(/^twitter:/,"");else{if(!/^twitter:/.test(n.getAttribute("property")))continue;o=n.getAttribute("property").replace(/^twitter:/,"")}r[o]=n.getAttribute("content")||n.getAttribute("value")}}o(),t.exports={init:o,val:function(t){return r[t]}}},function(t,e,n){var r=n(106),i=n(24),o=n(1);function s(t){var e="";if(!t)return"";try{return e=i.stringify(t),o.btoa(e)}catch(t){return""}}function a(t){return r.settingsLoaded().then(function(e){return e[t]})}function u(){return a("features")}t.exports={encodeFeatures:s,shouldObtainCookieConsent:function(){return a("shouldObtainCookieConsent")},getExperiments:u,getExperiment:function(t){return u().then(function(e){if(!e[t])throw new Error("Experiment not found");return e[t]})},getHorizonSettings:function(){return r.settingsLoaded().then(function(t){return{features:t.features,sessionId:t.sessionId}})},getActiveExperimentDataString:function(){return u().then(function(t){return s(t)})},getExperimentKeys:function(){return u().then(function(t){return Object.keys(t)})},load:function(){r.load()}}},function(t,e,n){var r=n(10),i={},o=-1,s={};function a(t){var e=t.getAttribute("data-twitter-event-id");return e||(t.setAttribute("data-twitter-event-id",++o),o)}function u(t,e,n){var r=0,i=t&&t.length||0;for(r=0;r<i;r++)if(t[r].call(e,n,e),n.ceaseImmediately)return!1}function c(t,e,n){for(var i=n||t.target||t.srcElement,o=r.list(i).map(function(t){return"."+t}).concat(i.tagName),s=0,a=o.length;s<a;s++)if(!1===u(e[o[s]],i,t))return;t.cease||i!==this&&c.call(this,t,e,i.parentElement||i.parentNode)}function d(t,e,n,r){function i(r){c.call(t,r,n[e])}!function(t,e,n,r){t.id&&(s[t.id]=s[t.id]||[],s[t.id].push({el:t,listener:e,type:n,rootId:r}))}(t,i,e,r),t.addEventListener(e,i,!1)}function f(t){t&&t.preventDefault?t.preventDefault():t.returnValue=!1}function l(t){t&&(t.cease=!0)&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}t.exports={stop:function(t){return l(t),f(t),!1},stopPropagation:l,stopImmediatePropagation:function(t){t&&(t.ceaseImmediately=!0,l(t),t.stopImmediatePropagation())},preventDefault:f,delegate:function(t,e,n,r){var o=a(t);i[o]=i[o]||{},i[o][e]||(i[o][e]={},d(t,e,i[o],o)),i[o][e][n]=i[o][e][n]||[],i[o][e][n].push(r)},simulate:function(t,e,n){var r=a(e),o=i[r]&&i[r];c.call(e,{target:n},o[t])},removeDelegatesForWidget:function(t){var e=s[t];e&&(e.forEach(function(t){t.el.removeEventListener(t.type,t.listener,!1),delete i[t.rootId]}),delete s[t])}}},function(t,e,n){var r=n(0),i=n(48);t.exports={closest:function t(e,n,o){var s;if(n)return o=o||n&&n.ownerDocument,s=r.isType("function",e)?e:function(t){return function(e){return!!e.tagName&&i(e,t)}}(e),n===o?s(n)?n:void 0:s(n)?n:t(s,n.parentNode,o)}}},function(t,e,n){var r=n(42),i=n(3),o=n(19),s=n(36),a=n(75),u=n(24),c=n(9),d=n(4),f=n(0),l=1,h=r.version,p=c.get("clientEventEndpoint")||"https://syndication.twitter.com/i/jot";function m(t){return f.aug({client:"tfw"},t||{})}function v(t,e,n){return e=e||{},f.aug({},e,{_category_:t,triggered_on:e.triggered_on||+new Date,dnt:o.enabled(n)})}t.exports={extractTermsFromDOM:function t(e,n){var r;return n=n||{},e&&e.nodeType===Node.ELEMENT_NODE?((r=e.getAttribute("data-scribe"))&&r.split(" ").forEach(function(t){var e=t.trim().split(":"),r=e[0],i=e[1];r&&i&&!n[r]&&(n[r]=i)}),t(e.parentNode,n)):n},clickEventElement:function(t){var e=s.closest("[data-expanded-url]",t),n=e&&e.getAttribute("data-expanded-url");return n&&d.isTwitterURL(n)?"twitter_url":"url"},flattenClientEventPayload:function(t,e){return f.aug({},e,{event_namespace:t})},formatGenericEventData:v,formatClientEventData:function(t,e,n){var r=t&&t.widget_origin||i.referrer;return(t=v("tfw_client_event",t,r)).client_version=h,t.format_version=void 0!==n?n:1,e||(t.widget_origin=r),t},formatClientEventNamespace:m,formatHorizonTweetData:function(t){var e={item_ids:[],item_details:{}};return e.item_ids.push(t),e.item_details[t]={item_type:a.TWEET},e},formatTweetAssociation:function(t,e){var n={};return(e=e||{}).association_namespace=m(t),n[l]=e,n},noticeSeen:function(t){return"notice"===t.element&&"seen"===t.action},splitLogEntry:function(t){var e,n,r,i,o;return t.item_ids&&t.item_ids.length>1?(e=Math.floor(t.item_ids.length/2),n=t.item_ids.slice(0,e),r={},i=t.item_ids.slice(e),o={}
20,n.forEach(function(e){r[e]=t.item_details[e]}),i.forEach(function(e){o[e]=t.item_details[e]}),[f.aug({},t,{item_ids:n,item_details:r}),f.aug({},t,{item_ids:i,item_details:o})]):[t]},stringify:function(t){var e,n=Array.prototype.toJSON;return delete Array.prototype.toJSON,e=u.stringify(t),n&&(Array.prototype.toJSON=n),e},CLIENT_EVENT_ENDPOINT:p,RUFOUS_REDIRECT:"https://platform.twitter.com/jot.html"}},function(t,e,n){var r=n(8),i=n(74),o=n(0),s=i.getCanonicalURL()||r.href,a=s;t.exports={isFramed:function(){return s!==a},rootDocumentLocation:function(t){return t&&o.isType("string",t)&&(s=t),s},currentDocumentLocation:function(){return a}}},function(t,e,n){var r=n(97),i=n(98),o=n(0);t.exports={couple:function(){return o.toRealArray(arguments)},build:function(t,e,n){var o=new t;return(e=i(r(e||[]))).forEach(function(t){t.call(null,o)}),o.build(n)}}},function(t,e,n){var r=n(100),i=n(0),o=n(41);function s(){this.Component=this.factory(),this._adviceArgs=[],this._lastArgs=[]}i.aug(s.prototype,{factory:o,build:function(t){var e=this;return this.Component,i.aug(this.Component.prototype.boundParams,t),this._adviceArgs.concat(this._lastArgs).forEach(function(t){(function(t,e,n){var r=this[e];if(!r)throw new Error(e+" does not exist");this[e]=t(r,n)}).apply(e.Component.prototype,t)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(t){var e=this.Component.prototype.paramConfigs;t=t||{},this.Component.prototype.paramConfigs=i.aug({},t,e)},define:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.override(t,e)},defineStatic:function(t,e){this.Component[t]=e},override:function(t,e){this.Component.prototype[t]=e},defineProperty:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.overrideProperty(t,e)},overrideProperty:function(t,e){var n=i.aug({configurable:!0},e);Object.defineProperty(this.Component.prototype,t,n)},before:function(t,e){this._adviceArgs.push([r.before,t,e])},after:function(t,e){this._adviceArgs.push([r.after,t,e])},around:function(t,e){this._adviceArgs.push([r.around,t,e])},last:function(t,e){this._lastArgs.push([r.after,t,e])}}),t.exports=s},function(t,e,n){var r=n(0);function i(){return!0}function o(t){return t}t.exports=function(){function t(t){var e=this;t=t||{},this.params=Object.keys(this.paramConfigs).reduce(function(n,s){var a=[],u=e.boundParams,c=e.paramConfigs[s],d=c.validate||i,f=c.transform||o;if(s in u&&a.push(u[s]),s in t&&a.push(t[s]),a="fallback"in c?a.concat(c.fallback):a,n[s]=function(t,e,n){var i=null;return t.some(function(t){if(t=r.isType("function",t)?t():t,e(t))return i=n(t),!0}),i}(a,d,f),c.required&&null==n[s])throw new Error(s+" is a required parameter");return n},{}),this.initialize()}return r.aug(t.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),t}},function(t){t.exports={version:"6a3ad42b224df:1778106238597"}},function(t,e,n){var r=n(1);t.exports=function(t,e,n){var i,o=0;return n=n||null,function s(){var a=n||this,u=arguments,c=+new Date;if(r.clearTimeout(i),c-o>e)return o=c,void t.apply(a,u);i=r.setTimeout(function(){s.apply(a,u)},e)}}},function(t,e,n){var r=n(18);t.exports=function(){r.publicError("Error: This Timeline type is no longer supported (Likes, Collections, & Moments). \n\t","* Twitter still supports Profile and List Timelines \n\t","* You can learn more about this change in our announcement: \n\t","https://twittercommunity.com/t/removing-support-for-embedded-like-collection-and-moment-timelines/150313 \n\t","* In order to create a new Embedded Timeline, visit: https://publish.twitter.com")}},function(t,e,n){ 21/*! 22 * @overview es6-promise - a tiny implementation of Promises/A+. 23 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) 24 * @license Licensed under MIT license 25 * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE 26 * @version v4.2.5+7f2b526d 27 */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,i=void 0,o=function(t,e){l[n]=t,l[n+1]=e,2===(n+=2)&&(i?i(h):w())},s="undefined"!=typeof window?window:void 0,a=s||{},u=a.MutationObserver||a.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(h,1)}}var l=new Array(1e3);function h(){for(var t=0;t<n;t+=2)(0,l[t])(l[t+1]),l[t]=void 0,l[t+1]=void 0;n=0}var p,m,v,g,w=void 0;function y(t,e){var n=this,r=new this.constructor(E);void 0===r[_]&&k(r);var i=n._state;if(i){var s=arguments[i-1];o(function(){return D(i,r,s,n._result)})}else I(n,r,t,e);return r}function b(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(E);return C(e,t),e}c?w=function(){return process.nextTick(h)}:u?(m=0,v=new u(h),g=document.createTextNode(""),v.observe(g,{characterData:!0}
vendor: 3,739 bytes, line 27
27),w=function(){g.data=m=++m%2}):d?((p=new MessageChannel).port1.onmessage=h,w=function(){return p.port2.postMessage(0)}):w=void 0===s?function(){try{var t=Function("return this")().require("vertx");return void 0!==(r=t.runOnLoop||t.runOnContext)?function(){r(h)}:f()}catch(t){return f()}}():f();var _=Math.random().toString(36).substring(2);function E(){}var x=void 0,T=1,A=2,S={error:null};function R(t){try{return t.then}catch(t){return S.error=t,S}}function N(e,n,r){n.constructor===e.constructor&&r===y&&n.constructor.resolve===b?function(t,e){e._state===T?j(t,e._result):e._state===A?P(t,e._result):I(e,void 0,function(e){return C(t,e)},function(e){return P(t,e)})}(e,n):r===S?(P(e,S.error),S.error=null):void 0===r?j(e,n):t(r)?function(t,e,n){o(function(t){var r=!1,i=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(n,e,function(n){r||(r=!0,e!==n?C(t,n):j(t,n))},function(e){r||(r=!0,P(t,e))},t._label);!r&&i&&(r=!0,P(t,i))},t)}(e,n,r):j(e,n)}function C(t,e){var n,r;t===e?P(t,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=e),null===n||"object"!==r&&"function"!==r?j(t,e):N(t,e,R(e)))}function L(t){t._onerror&&t._onerror(t._result),O(t)}function j(t,e){t._state===x&&(t._result=e,t._state=T,0!==t._subscribers.length&&o(O,t))}function P(t,e){t._state===x&&(t._state=A,t._result=e,o(L,t))}function I(t,e,n,r){var i=t._subscribers,s=i.length;t._onerror=null,i[s]=e,i[s+T]=n,i[s+A]=r,0===s&&t._state&&o(O,t)}function O(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,s=0;s<e.length;s+=3)r=e[s],i=e[s+n],r?D(n,r,i,o):i(o);t._subscribers.length=0}}function D(e,n,r,i){var o=t(r),s=void 0,a=void 0,u=void 0,c=void 0;if(o){if((s=function(t,e){try{return t(e)}catch(t){return S.error=t,S}}(r,i))===S?(c=!0,a=s.error,s.error=null):u=!0,n===s)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else s=i,u=!0;n._state!==x||(o&&u?C(n,s):c?P(n,a):e===T?j(n,s):e===A&&P(n,s))}var z=0;function k(t){t[_]=z++,t._state=void 0,t._result=void 0,t._subscribers=[]}var M=function(){function t(t,n){this._instanceConstructor=t,this.promise=new t(E),this.promise[_]||k(this.promise),e(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&j(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===x&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===b){var i=R(t);if(i===y&&t._state!==x)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===U){var o=new n(E);N(o,t,i),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===x&&(this._remaining--,t===A?P(r,n):this._result[e]=n),0===this._remaining&&j(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;I(t,void 0,function(t){return n._settledAt(T,e,t)},function(t){return n._settledAt(A,e,t)})},t}(),U=function(){function e(t){this[_]=z++,this._result=this._state=void 0,this._subscribers=[],E!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e(function(e){C(t,e)},function(e){P(t,e)})}catch(e){P(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
27onstructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this.constructor;return t(e)?this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})}):this.then(e,e)},e}();return U.prototype.then=y,U.all=function(t){return new M(this,t).promise},U.race=function(t){var n=this;return e(t)?new n(function(e,r){for(var i=t.length,o=0;o<i;o++)n.resolve(t[o]).then(e,r)}):new n(function(t,e){return e(new TypeError("You must pass an array to race."))})},U.resolve=b,U.reject=function(t){var e=new this(E);return P(e,t),e},U._setScheduler=function(t){i=t},U._setAsap=function(t){o=t},U._asap=o,U.polyfill=function(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=U},U.Promise=U,U},t.exports=r()},function(t,e,n){var r=n(47);t.exports=new r("twttr")},function(t,e,n){var r=n(1),i=n(0);function o(t){return i.isType("string",t)?t.split("."):i.isType("array",t)?t:[]}function s(t,e){(e=e||r)[t]=e[t]||{},Object.defineProperty(this,"base",{value:e[t]}),Object.defineProperty(this,"name",{value:t})}i.aug(s.prototype,{get:function(t){return o(t).reduce(function(t,e){if(i.isObject(t))return t[e]},this.base)},set:function(t,e,n){var r=o(t),s=function(t,e){var n=o(e).slice(0,-1);return n.reduce(function(t,e,r){if(t[e]=t[e]||{},!i.isObject(t[e]))throw new Error(n.slice(0,r+1).join(".")+" is already defined with a value.");return t[e]},t)}(this.base,t),a=r.slice(-1);return n&&a in s?s[a]:s[a]=e},init:function(t,e){return this.set(t,e,!0)},unset:function(t){var e=o(t),n=this.get(e.slice(0,-1));n&&delete n[e.slice(-1)]},aug:function(t){var e=this.get(t),n=i.toRealArray(arguments).slice(1);if(e=void 0!==e?e:{},n.unshift(e),!n.every(i.isObject))throw new Error("Cannot augment non-object.");return this.set(t,i.aug.apply(null,n))},call:function(t){var e=this.get(t),n=i.toRealArray(arguments).slice(1);if(!i.isType("function",e))throw new Error("Function "+t+"does not exist.");return e.apply(null,n)},fullPath:function(t){var e=o(t);return e.unshift(this.name),e.join(".")}}),t.exports=s},function(t,e,n){var r=n(1).HTMLElement,i=r.prototype.matches||r.prototype.matchesSelector||r.prototype.webkitMatchesSelector||r.prototype.mozMatchesSelector||r.prototype.msMatchesSelector||r.prototype.oMatchesSelector;t.exports=function(t,e){if(i)return i.call(t,e)}},function(t,e,n){var r=n(0),i=n(7),o={bind:function(t,e){return this._handlers=this._handlers||{},this._handlers[t]=this._handlers[t]||[],this._handlers[t].push(e)},unbind:function(t,e){var n;this._handlers&&this._handlers[t]&&(e?(n=this._handlers[t].indexOf(e))>=0&&this._handlers[t].splice(n,1):this._handlers[t]=[])},trigger:function(t,e){var n=this._handlers&&this._handlers[t];(e=e||{}).type=t,n&&n.forEach(function(t){r.async(i(t,this,e))})}};t.exports={Emitter:o,makeEmitter:function(){return r.aug(function(){},o)}}},function(t,e,n){var r=n(91),i=n(93),o=n(6),s=n(23),a=n(7),u=n(0),c=new i(function(t){var e=function(t){return t.reduce(function(t,e){return t[e._className]=t[e._className]||[],t[e._className].push(e),t},{})}(t.map(r.fromRawTask));u.forIn(e,function(t,e){s.allSettled(e.map(function(t){return t.initialize()})).then(function(){e.forEach(function(t){o.all([t.hydrate(),t.insertIntoDom()]).then(a(t.render,t)).then(a(t.success,t),a(t.fail,t))})})})});t.exports={addWidget:function(t){return c.add(t)}}},function(t,e,n){var r=n(17);t.exports=function(t){return r.write(function(){t&&t.parentNode&&t.parentNode.removeChild(t)})}},function(t,e,n){var r=n(95),i=n(72),o=new(n(105))(function(t){(!function(t){return 1===t.length&&i.canFlushOneItem(t[0])}(t)?function(t){r.init(),t.forEach(function(t){var e=t.input.namespace,n=t.input.data,i=t.input.offsite,o=t.input.version;r.clientEvent(e,n,i,o)}),r.flush().then(function(){t.forEach(function(t){t.taskDoneDeferred.resolve()})},function(){t.forEach(function(t){t.taskDoneDeferred.reject()})})}:function(t){t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,o=t.input.version;i.clientEvent(e,n,r,o),t.taskDoneDeferred.resolve()})})(t)});t.exports={scribe:function(t,e,n,r){return o.add({namespace:t,data:e,offsite:n,version:r})},pause:function(){o.pause()},resume:function(){o.resume()}}},function(t,e,n){n(18),t.exports={log:function(t,e){}}},function(t,e,n){var r=n(1);
27function i(t){return(t=t||r).getSelection&&t.getSelection()}t.exports={getSelection:i,getSelectedText:function(t){var e=i(t);return e?e.toString():""}}},function(t,e,n){var r=n(3),i=n(1),o=n(2),s=2e4;t.exports=function(t){var e=new o,n=r.createElement("img");return n.onload=n.onerror=function(){i.setTimeout(e.resolve,50)},n.src=t,i.setTimeout(e.reject,s),e.promise}},function(t,e,n){var r,i=n(10),o=n(3),s=n(1),a=n(33),u=n(51),c=n(5),d=n(21),f="csptest";t.exports={inlineStyle:function(){var t=f+d.generate(),e=o.createElement("div"),n=o.createElement("style"),l="."+t+" { visibility: hidden; }";return!!o.body&&(c.asBoolean(a.val("widgets:csp"))&&(r=!1),void 0!==r?r:(e.style.display="none",i.add(e,t),n.type="text/css",n.appendChild(o.createTextNode(l)),o.body.appendChild(n),o.body.appendChild(e),r="hidden"===s.getComputedStyle(e).visibility,u(e),u(n),r))}}},function(t,e){t.exports=function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height}}},function(t,e,n){var r=n(103);t.exports=function(t){t.define("createElement",r),t.define("createFragment",r),t.define("htmlToElement",r),t.define("hasSelectedText",r),t.define("addRootClass",r),t.define("removeRootClass",r),t.define("hasRootClass",r),t.define("prependStyleSheet",r),t.define("appendStyleSheet",r),t.define("prependCss",r),t.define("appendCss",r),t.define("makeVisible",r),t.define("injectWidgetEl",r),t.define("matchHeightToContent",r),t.define("matchWidthToContent",r)}},function(t,e){t.exports=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments))}}},function(t,e,n){var r=n(3),i=n(13),o=n(26),s=n(118),a=n(14);t.exports=function(t,e,n){return new i(s,o,a.BROADCAST,t,e,n,{sandboxWrapperEl:r.createElement("div")})}},function(t,e,n){var r=n(13),i=n(120),o=n(121),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.DM_BUTTON,t,e,n)}},function(t,e,n){var r=n(25),i=n(122);t.exports=r.build([i])},function(t,e,n){var r=n(13),i=n(125),o=n(26),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.FOLLOW_BUTTON,t,e,n)}},function(t,e,n){var r=n(13),i=n(127),o=n(30),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.MOMENT,t,e,n)}},function(t,e,n){var r=n(13),i=n(129),o=n(30),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.PERISCOPE,t,e,n)}},function(t,e,n){var r=n(131),i=n(132),o=n(136),s=n(138),a=n(140),u={collection:i,likes:o,list:s,profile:a,url:d},c=[a,o,i,s];function d(t){return r(c,function(e){try{return new e(t)}catch(t){}})}t.exports=function(t){return t?function(t){var e,n;return e=(t.sourceType+"").toLowerCase(),(n=u[e])?new n(t):null}(t)||d(t):null}},function(t,e,n){var r=n(3),i=n(13),o=n(26),s=n(142),a=n(14);t.exports=function(t,e,n){var u=r.createElement("div");return new i(s,o,a.TIMELINE,t,e,n,{sandboxWrapperEl:u})}},function(t,e,n){var r=n(3),i=n(13),o=n(26),s=n(144),a=n(14);t.exports=function(t,e,n){return new i(s,o,a.TWEET,t,e,n,{sandboxWrapperEl:r.createElement("div")})}},function(t,e,n){var r=n(13),i=n(146),o=n(26),s=n(14);t.exports=function(t,e,n){var a=t&&t.type||"share",u="hashtag"==a?s.HASHTAG_BUTTON:"mention"==a?s.MENTION_BUTTON:s.SHARE_BUTTON;return new r(i,o,u,t,e,n)}},function(t,e,n){var r=n(52),i=n(38),o=n(0);t.exports=function(t){var e={widget_origin:i.rootDocumentLocation(),widget_frame:i.isFramed()?i.currentDocumentLocation():null,duration_ms:t.duration,item_ids:t.widgetIds||[]},n=o.aug(t.namespace,{page:"page",component:"performance"});r.scribe(n,e)}},function(t,e,n){var r=n(0),i=n(133),o=["ar","fa","he","ur"];t.exports={isRtlLang:function(t){return t=String(t).toLowerCase(),r.contains(o,t)},matchLanguage:function(t){return t=(t=(t||"").toLowerCase()).replace("_","-"),i(t)?t:(t=t.replace(/-.*/,""),i(t)?t:"en")}}},function(t,e,n){var r=n(53),i=n(16),o=n(37),s=n(28),a=n(0),u=n(9),c=n(6),d=u.get("scribeCallback"),f=2083,l=[],h=i.url(o.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),p=encodeURIComponent(h).length;function m(t,e,n,r,i){var u=!a.isObject(t),f=!!e&&!a.isObject(e);if(!u&&!f)return d&&d(arguments),e=e||{},c.resolve(v(o.formatClientEventNamespace(t),o.formatClientEventData(e,n,r),s.settingsScribe(),i))}function v(t,e,n,s){var u;n&&a.isObject(t)&&a.isObject(e)&&(r.log(t,e),u=o.flattenClientEventPayload(t,e),s=a.aug({},s,{l:o.stringify(u)}),u.dnt&&(s.dnt=1),w(i.url(n,s)))}function g(t){return l.push(t),l}function w(t){return(new Image).src=t}t.exports={canFlushOneItem:function(t){var e=o.stringify(t),n=encodeURIComponent(e).length+3;return p+n<f},_enqueueRawObject:g,scribe:v,clientEvent:m,enqueueClientEvent:function(t,e,n,r){var i=!a.isObject(t),s=!!e&&!a.isObject(e);
27if(!i&&!s)return g(o.flattenClientEventPayload(o.formatClientEventNamespace(t),o.formatClientEventData(e,n,r)))},interaction:function(t,e,n,r){var i=o.extractTermsFromDOM(t.target||t.srcElement);return i.action=r||"click",m(i,e,n)},placePixel:w}},function(t){t.exports={tweetButtonHtmlPath:"/widgets/tweet_button.1227a5674072e080ffb1ba14ac0c1079.{{lang}}.html",followButtonHtmlPath:"/widgets/follow_button.1227a5674072e080ffb1ba14ac0c1079.{{lang}}.html",hubHtmlPath:"/widgets/hub.html",widgetIframeHtmlPath:"/widgets/widget_iframe.1227a5674072e080ffb1ba14ac0c1079.html",resourceBaseUrl:"https://platform.twitter.com"}},function(t,e,n){var r=n(3),i=n(8),o=n(4);function s(t,e){var n,r;return e=e||i,/^https?:\/\//.test(t)?t:/^\/\//.test(t)?e.protocol+t:(n=e.host+(e.port.length?":"+e.port:""),0!==t.indexOf("/")&&((r=e.pathname.split("/")).pop(),r.push(t),t="/"+r.join("/")),[e.protocol,"//",n,t].join(""))}t.exports={absolutize:s,getCanonicalURL:function(){for(var t,e=r.getElementsByTagName("link"),n=0;e[n];n++)if("canonical"==(t=e[n]).rel)return s(t.href)},getScreenNameFromPage:function(){for(var t,e,n,i=[r.getElementsByTagName("a"),r.getElementsByTagName("link")],s=0,a=0,u=/\bme\b/;t=i[s];s++)for(a=0;e=t[a];a++)if(u.test(e.rel)&&(n=o.screenName(e.href)))return n},getHostname:function(t){var e=r.createElement("a");return e.setAttribute("href",t),e.hostname}}},function(t){t.exports={TWEET:0,RETWEET:10,CUSTOM_TIMELINE:17,LIVE_VIDEO_EVENT:28,QUOTE_TWEET:23}},,,,,,,,,function(t,e,n){var r,i=n(2),o=n(3),s=n(86),a=n(46),u=n(9),c=n(87),d=n(22),f=n(90),l=n(147),h=n(156),p=n(157),m=n(27),v=n(34);n(158),m.emitter.trigger(m.START),u.set("widgets.init",!0),a.set("init",!0),p(),r=new i,s.exposeReadyPromise(r.promise,a.base,"_e"),a.set("widgets",l),a.set("widgets.load",f.load),a.set("events",d),h(function(){v.load(),r.resolve(a.base),c.attachTo(o),f.loadPage()})},function(t,e){t.exports=navigator},function(t,e,n){var r=n(7);t.exports={exposeReadyPromise:function(t,e,n){e.ready=r(t.then,t),n&&Array.isArray(e[n])&&(e[n].forEach(r(t.then,t)),delete e[n])}}},function(t,e,n){var r=n(8),i=n(35),o=n(36),s=n(88),a=n(4);function u(t){var e,n,u;t.altKey||t.metaKey||t.shiftKey||(e=o.closest(function(t){return"A"===t.tagName||"AREA"===t.tagName},t.target))&&a.isIntentURL(e.href)&&(n=(n=(n=[u=e.href,"original_referer="+r.href].join(-1==u.indexOf("?")?"?":"&")).replace(/^http[:]/,"https:")).replace(/^\/\//,"https://"),s.open(n,e),i.preventDefault(t))}t.exports={attachTo:function(t){t.addEventListener("click",u,!1)}}},function(t,e,n){var r=n(4),i=n(89),o=n(22),s=n(16),a={favorite:["favorite","like"],follow:["follow"],like:["favorite","like"],retweet:["retweet"],tweet:["tweet"]};function u(t){this.srcEl=[],this.element=t}u.open=function(t,e,n){var u=(r.intentType(t)||"").toLowerCase();r.isTwitterURL(t)&&(function(t,e){i.open(t,e)}(t,n),e&&o.trigger("click",{target:e,region:"intent",type:"click",data:{}}),e&&a[u]&&a[u].forEach(function(n){o.trigger(n,{target:e,region:"intent",type:n,data:function(t,e){var n=s.decodeURL(e);switch(t){case"favorite":case"like":return{tweet_id:n.tweet_id};case"follow":return{screen_name:n.screen_name,user_id:n.user_id};case"retweet":return{source_tweet_id:n.tweet_id};default:return{}}}(u,t)})}))},t.exports=u},function(t,e,n){var r=n(1),i=n(35),o=n(36),s=n(20),a=n(4),u=n(21),c="intent_";function d(t){this.win=t}d.prototype.open=function(t,e){var n=e&&"click"==e.type&&o.closest("a",e.target),r=e&&(e.altKey||e.metaKey||e.shiftKey),d=n&&(s.ios()||s.android());if(a.isTwitterURL(t))return r||d?this:(this.name=c+u.generate(),this.popup=this.win.open(t,this.name),e&&i.preventDefault(e),this)},d.open=function(t,e){return new d(r).open(t,e)},t.exports=d},function(t,e,n){var r=n(3),i=n(6),o=n(23),s=n(50),a=n(33),u=n(9),c=n(52),d=n(22),f=n(5),l=n(0),h=n(34),p=n(108),m=n(27);function v(){var t=a.val("widgets:autoload")||!0;return!f.isFalseValue(t)&&(f.isTruthValue(t)?r.body:r.querySelectorAll(t))}function g(t,e){var n,i;return t=(t=t||r.body).length?l.toRealArray(t):[t],c.pause(),i=function(t,e){return t.reduce(function(t,n){return t.concat(p.reduce(function(t,r){return t.concat(r(n,e))},[]))},[])}(t,e),m.emitter.trigger(m.ALL_WIDGETS_RENDER_START,{widgets:i}),n=o.allResolved(i.map(function(t){return s.addWidget(t)})).then(function(t){d.trigger("loaded",{widgets:t}),t&&t.length&&m.emitter.trigger(m.ALL_WIDGETS_RENDER_END,{widgets:t})}),o.always(n,function(){c.resume()}),n}function w(t){return h.getExperiments().then(function(e){return g(t,e)})}t.exports={load:w,loadPage:function(){var t=v();return!1===t?i.resolve():(u.set("widgets.loaded",!0),w(t))},_getPageLoadTarget:v}},function(t,e,n){var r=n(10),i=n(17),o=n(22),s=n(51),a=n(6),u=n(23);function c(t,e){this._widget=null,this._sandbox=null,this._hydrated=!1,this._insertedIntoDom=!1,this._Sandbox=t.Sandbox,this._factory=t.factory,this._widgetParams=t.parameters,this._resolve=e,this._className=t.className,this._renderedClassName=t.className+"-rendered",this._errorClassName=t.className+"-error",this._srcEl=t.srcEl,this._targetGlobal=function(t){return(t.srcEl||t.targetEl).ownerDocument.defaultView}(t),this._sandboxWrapperEl=t.options?t.options.sandboxWrapperEl:null,this._insertionStrategy=function(e){var n,r=t.srcEl,i=t.targetEl,o=t.className,s=t.className+"-rendered",a=t.options?t.options.sandboxWrapperEl:null;a?(a.appendChild(e),a.classList.add(o,s),n=a):n=e,r?i.insertBefore(n,r):i.appendChild(n)}}c.fromRawTask=function(t){return new c(t.input,t.taskDoneDeferred.resolve)},c.prototype.initialize=function(){var t=this,e=new this._Sandbox(this._targetGlobal);return this._factory(this._widgetParams,e).then(function(n){return t._widget=n,t._sandbox=e,n._sandboxWrapperEl=t._sandboxWrapperEl,n})},c.prototype.insertIntoDom=function(){var t=this,e=this._sandboxWrapperEl?"":[this._className,this._renderedClassName].join(" ");return this._widget?this._sandbox.insert(this._widget.id,{class:e},null,this._insertionStrategy).then(function(){t._insertedIntoDom=!0}):a.reject(new Error("cannot insert widget into DOM before it is initialized"))},c.prototype.hydrate=function(){var t=this;return this._widget?this._widget.hydrate().then(function(){t._hydrated=!0}):a.reject(new Error("cannot hydrate widget before it is initialized"))},c.prototype.render=function(){var t=this;function e(e){var n=t._sandboxWrapperEl?t._sandboxWrapperEl:t._sandbox.sandboxEl;return s(n).then(function(){return a.reject(e)})}return this._hydrated?this._insertedIntoDom?t._widget.render(t._sandbox).then(function(){return t._sandbox.onResize(function(){return t._widget.resize().then(function(){var e=t._sandboxWrapperEl?t._sandboxWrapperEl:t._sandbox.sandboxEl;o.trigger("resize",{target:e})})}),t._widget.show()}).then(function(){return s(t._srcEl).then(function(){return t._sandbox.sandboxEl})},e):e(new Error("cannot render widget before DOM insertion")):e(new Error("cannot render widget before hydration"))},c.prototype.fail=function(){var t=this,e=t._errorClassName,n=t._sandboxWrapperEl?t._sandboxWrapperEl:t._srcEl;return this._srcEl?u.always(i.write(function(){r.add(n,e)}),function(){o.trigger("rendered",{target:n}),t._resolve(n)}):(t._resolve(),a.resolve())},c.prototype.success=function(){var t=this._sandboxWrapperEl?this._sandboxWrapperEl:this._sandbox.sandboxEl;o.trigger("rendered",{target:t}),this._resolve(t)},t.exports=c},function(t,e,n){var r;!function(){"use strict";var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)};function o(){this.frames=[],this.lastId=0,this.raf=i,this.batch={hash:{},read:[],write:[],mode:null}}o.prototype.read=function(t,e){var n=this.add("read",t,e),r=n.id;return this.batch.read.push(n.id),"reading"===this.batch.mode||this.batch.scheduled?r:(this.scheduleBatch(),r)},o.prototype.write=function(t,e){var n=this.add("write",t,e),r=this.batch.mode,i=n.id;return this.batch.write.push(n.id),"writing"===r||"reading"===r||this.batch.scheduled?i:(this.scheduleBatch(),i)},o.prototype.defer=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=1);var r=this,i=t-1;return this.schedule(i,function(){r.run({fn:e,ctx:n})})},o.prototype.clear=function(t){if("function"==typeof t)return this.clearFrame(t);t=Number(t);var e=this.batch.hash[t];if(e){var n=this.batch[e.type],r=n.indexOf(t);delete this.batch.hash[t],~r&&n.splice(r,1)}},o.prototype.clearFrame=function(t){var e=this.frames.indexOf(t);~e&&this.frames.splice(e,1)},o.prototype.scheduleBatch=function(){var t=this;this.schedule(0,function(){t.batch.scheduled=!1,t.runBatch()}),this.batch.scheduled=!0},o.prototype.uniqueId=function(){return++this.lastId},o.prototype.flush=function(t){for(var e;e=t.shift();)this.run(this.batch.hash[e])},o.prototype.runBatch=function(){try{this.batch.mode="reading",this.flush(this.batch.read),this.batch.mode="writing",this.flush(this.batch.write),this.batch.mode=null}catch(t){throw this.runBatch(),t}},o.prototype.add=function(t,e,n){var r=this.uniqueId();return this.batch.hash[r]={id:r,fn:e,ctx:n,type:t}},o.prototype.run=function(t){var e=t.ctx||this,n=t.fn;if(delete this.batch.hash[t.id],!this.onError)return n.call(e);try{n.call(e)}catch(t){this.onError(t)}},o.prototype.loop=function(){var t,e=this,n=this.raf,r=!1;function i(){var t=e.frames.shift();e.frames.length?n(i):e.looping=!1,t&&t()}this.looping||(t=setTimeout(function(){r=!0,i()},500),n(function(){r||(clearTimeout(t),i())}),this.looping=!0)},o.prototype.schedule=function(t,e){return this.frames[t]?this.schedule(t+1,e):(this.loop(),this.frames[t]=e)};var s=new o;void 0!==t&&t.exports?t.exports=s:void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){var r=n(2),i=n(94),o=n(7);function s(t){this._inputsQueue=[],this._task=t,this._hasFlushBeenScheduled=!1}s.prototype.add=function(t){var e=new r;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._hasFlushBeenScheduled||(this._hasFlushBeenScheduled=!0,i(o(this._flush,this))),e.promise},s.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(t){this._inputsQueue.forEach(function(e){e.taskDoneDeferred.reject(t)})}this._inputsQueue=[],this._hasFlushBeenScheduled=!1},t.exports=s},function(t,e,n){var r=n(45).Promise;t.exports=r._asap},function(t,e,n){var r,i,o,s=n(3),a=n(1),u=n(29),c=n(19),d=n(2),f=n(6),l=n(53),h=n(37),p=n(0),m=n(30),v=n(9).get("scribe
27Callback"),g=Math.floor(1e3*Math.random())+"_",w="rufous-frame-"+g+"-",y="rufous-form-"+g+"-",b=0,_=!1,E=new d;function x(){var t=o.createElement("form"),e=o.createElement("input"),n=o.createElement("input");return b++,t.action=h.CLIENT_EVENT_ENDPOINT,t.method="POST",t.target=w+b,t.id=y+b,e.type="hidden",e.name="dnt",e.value=c.enabled(),n.type="hidden",n.name="tfw_redirect",n.value=h.RUFOUS_REDIRECT,t.appendChild(e),t.appendChild(n),t}function T(){var t=w+b;return u({id:t,name:t,width:0,height:0,border:0},{display:"none"},o.doc)}t.exports={clientEvent:function(t,e,n,i){(function(t,e){var n=!p.isObject(t),r=!!e&&!p.isObject(e),i=n||r;return i})(t,e)||(v&&v(arguments),E.promise.then(function(){!function(t,e){var n,i,s;p.isObject(t)&&p.isObject(e)&&(l.log(t,e),s=h.flattenClientEventPayload(t,e),(n=r.firstChild).value=+(+n.value||s.dnt||0),(i=o.createElement("input")).type="hidden",i.name="l",i.value=h.stringify(s),r.appendChild(i))}(h.formatClientEventNamespace(t),h.formatClientEventData(e,n,i))}))},flush:function(){return E.promise.then(function(){var t;return r.children.length<=2?f.reject():(t=f.all([o.doc.body.appendChild(r),o.doc.body.appendChild(i)]).then(function(t){var e=t[0],n=t[1];return n.addEventListener("load",function(){!function(t,e){return function(){var n=t.parentNode;n&&(n.removeChild(t),n.removeChild(e))}}(e,n)()}),e.submit(),t}),r=x(),i=T(),t)})},init:function(){return _?E.promise:((o=new m(a)).insert("rufous-sandbox",null,{display:"none"},function(t){s.body.appendChild(t)}).then(function(){o.setTitle("Twitter analytics iframe"),r=x(),i=T(),E.resolve([r,i])}),_=!0,E.promise)}}},function(t,e,n){var r=n(8),i=/^[^#?]*\.(gov|mil)(:\d+)?([#?].*)?$/i,o={};function s(t){return t in o?o[t]:o[t]=i.test(t)}t.exports={isUrlSensitive:s,isHostPageSensitive:function(){return s(r.host)}}},function(t,e,n){var r=n(0);t.exports=function t(e){var n=[];return e.forEach(function(e){var i=r.isType("array",e)?t(e):[e];n=n.concat(i)}),n}},function(t,e){t.exports=function(t){return t.filter(function(e,n){return t.indexOf(e)===n})}},function(t,e,n){var r=n(40),i=n(0),o=n(101);function s(){r.apply(this,arguments)}s.prototype=Object.create(r.prototype),i.aug(s.prototype,{factory:o}),t.exports=s},function(t,e,n){var r=n(23),i=n(0),o=n(7);t.exports={before:function(t,e){return function(){var n,i=this,o=arguments;return n=e.apply(this,arguments),r.isPromise(n)?n.then(function(){return t.apply(i,o)}):t.apply(this,arguments)}},after:function(t,e){return function(){var n,i=this,o=arguments;function s(t,e){return r.isPromise(e)?e.then(function(){return t}):t}return n=t.apply(this,arguments),r.isPromise(n)?n.then(function(t){return s(t,e.apply(i,o))}):s(n,e.apply(this,arguments))}},around:function(t,e){return function(){var n=i.toRealArray(arguments);return n.unshift(o(t,this)),e.apply(this,n)}}}},function(t,e,n){var r=n(10),i=n(17),o=n(41),s=n(6),a=n(0);t.exports=function(){var t=o();function e(e){t.apply(this,arguments),Object.defineProperty(this,"targetGlobal",{value:e})}return e.prototype=Object.create(t.prototype),a.aug(e.prototype,{id:null,initialized:!1,width:0,height:0,sandboxEl:null,insert:function(){return s.reject()},onResize:function(){},addClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],i.write(function(){t.forEach(function(t){r.add(e,t)})})},removeClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],i.write(function(){t.forEach(function(t){r.remove(e,t)})})},styleSelf:function(t){var e=this;return i.write(function(){a.forIn(t,function(t,n){e.sandboxEl.style[t]=n})})}}),e}},function(t,e,n){var r=n(3),i=n(10),o=n(17),s=n(54),a=n(25),u=n(55),c=n(56),d=n(43),f=n(29),l=n(18),h=n(57),p=n(2),m=n(6),v=n(0),g=n(9),w=n(21),y=n(7),b={allowfullscreen:"true"},_={position:"absolute",visibility:"hidden",display:"block",width:"0px",height:"0px",padding:"0",border:"none"},E={position:"static",visibility:"visible"},x="SandboxRoot",T=".SandboxRoot { display: none; }",A=50;function S(t,e,n,r){return e=v.aug({id:t},b,e),n=v.aug({},_,n),f(e,n,r)}function R(t,e,n,i,s){var a=new p,u=w.generate(),c=S(t,e,n,s);return g.set(["sandbox",u],function(){var t=c.contentWindow.document;o.write(function(){t.write("<!DOCTYPE html><html><head></head><body></body></html>")}).then(function(){t.close(),a.resolve(c)})}),c.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+r.domain+'"; }',"window.parent."+g.fullPath(["sandbox",u])+"();"].join(""),c.addEventListener("error",a.reject,!1),o.write(function(){i.parentNode.replaceChild(c,i)}),a.promise}
27t.exports=a.couple(n(58),function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("_updateCachedDimensions",function(){var t=this;return o.read(function(){var e,n=h(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=h(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("_setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("_didResize",function(){var t=this,e=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){e.forEach(function(e){e(t)})})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.override("createElement",function(t){return this.doc.createElement(t)}),t.override("createFragment",function(){return this.doc.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!s.getSelectedText(this.win)}),t.override("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?o.write(function(){t.forEach(function(t){i.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?o.write(function(){t.forEach(function(t){i.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return i.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){var n,r=new p;return this.initialized?((n=this.createElement("link")).type="text/css",n.rel="stylesheet",n.href=t,n.addEventListener("load",r.resolve,!1),n.addEventListener("error",r.reject,!1),o.write(y(e,null,n)).then(function(){return u(t).then(r.resolve,r.reject),r.promise})):m.reject(new Error("sandbox not initialized"))}),t.override("prependStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){var n=e.head.firstElementChild;return n?e.head.insertBefore(t,n):e.head.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){return e.head.appendChild(t)})}),t.define("addCss",function(t,e){var n;return c.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.doc.createTextNode(t)),o.write(y(e,null,n))):(l.devError("CSP enabled; cannot embed inline styles"),m.resolve())}),t.override("prependCss",function(t){var e=this.doc;return this.addCss(t,function(t){var n=e.head.firstElementChild;return n?e.head.insertBefore(t,n):e.head.appendChild(t)})}),t.override("appendCss",function(t){var e=this.doc;return this.addCss(t,function(t){return e.head.appendChild(t)})}),t.override("makeVisible",function(){var t=this;return this.styleSelf(E).then(function(){t._updateCachedDimensions()})}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?m.reject(new Error("widget already injected")):o.write(function(){e.doc.body.appendChild(t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){var t,e=this;return o.read(function(){t=e.widgetEl?h(e.widgetEl).height:0}),o.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.override("matchWidthToContent",function(){var t,e=this;return o.read(function(){t=e.widgetEl?h(e.widgetEl).width:0}),o.write(function(){e.sandboxEl.style.width=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this,s=new p,a=this.targetGlobal.document,u=S(t,e,n,a);return o.write(y(r,null,u)),u.addEventListener("load",function(){(function(t){try{t.contentWindow.document}catch(t){return m.reject(t)}return m.resolve(t)})(u).then(null,y(R,null,t,e,n,u,a)).then(s.resolve,s.reject)},!1),u.addEventListener("error",s.reject,!1),s.promise.then(function(t){var e=d(i._didResize,A,i);return i._iframe=t,i.win.addEventListener("resize",e,!1),m.all([i._setTargetToBlank(),i.addRootClass(x),i.prependCss(T)])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){t.exports=function(){throw new Error("unimplemented method")}},function(t,e){t.exports={getBaseURLPath:function(t){switch(t&&t.tfw_team_holdback_11929&&t.tfw_team_holdback_11929.bucket){case"control":return"embed-holdback";case"holdback_prod":return"embed-holdback-prod";default:return"embed"}}}},function(t,e,n){var r=n(2),i=n(7),o=100,s=3e3;function a(t,e){this._inputsQueue=[],this._task=t,this._isPaused=!1,this._flushDelay=e&&e.flushDelay||o,this._pauseLength=e&&e.pauseLength||s,this._flushTimeout=void 0}a.prototype.add=function(t){var e=new r;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._scheduleFlush(),e.promise},a.prototype._scheduleFlush=function(){this._isPaused||(clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(i(this._flush,this),this._flushDelay))},a.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(t){this._inputsQueue.forEach(function(e){e.taskDoneDeferred.reject(t)})}this._inputsQueue=[],this._flushTimeout=void 0},a.prototype.pause=function(t){clearTimeout(this._flushTimeout),this._isPaused=!0,!t&&this._pauseLength&&setTimeout(i(this.resume,this),this._pauseLength)},a.prototype.resume=function(){this._isPaused=!1,this._scheduleFlush()},t.exports=a},function(t,e,n){var r=n(73),i=n(29),o=n(2),s=n(3),a=n(28),u=n(20),c=n(24),d=n(8),f=n(18),l=n(107),h=n(59),p=n(9),m=n(16),v=n(4),g=n(0),w=n(1),y=h(function(){return new o}),b={shouldObtainCookieConsent:!1,features:{}};t.exports={load:function(){var t,e,n,o;if(u.ie9()||u.ie10()||"http:"!==d.protocol&&"https:"!==d.protocol)return f.devError("Using default settings due to unsupported browser or protocol."),void y().resolve();t={origin:d.origin},a.settings().indexOf("localhost")>-1&&(t.localSettings=!0),e=m.url(r.resourceBaseUrl+r.widgetIframeHtmlPath,t),n=function(t){var n,r,i,o;if(r=v.isTwitterURL(t.origin),i=e.substr(0,t.origin.length)===t.origin,o=v.isTwimgURL(t.origin),i&&r||o)try{(n="string"==typeof t.data?c.parse(t.data):t.data).namespace===l.settings&&(b=g.aug(b,{features:n.settings.features,sessionId:n.sessionId}),y().resolve())}catch(t){f.devError(t)}},w.addEventListener("message",n),o=i({src:e,title:"Twitter settings iframe"},{display:"none"}),s.body.appendChild(o)},settingsLoaded:function(){var t,e;return t=p.get("experimentOverride"),y().promise.then(function(){return t&&t.name&&t.assignment&&((e={})[t.name]={bucket:t.assignment},b.features=g.aug(b.features,e)),b})}}},function(t,e){t.exports={settings:"twttr.settings"}},function(t,e,n){t.exports=[n(109),n(119),n(124),n(126),n(128),n(130),n(143),n(145)]},function(t,e,n){var r=n(0),i=n(11),o=n(12)(),s=n(60),a="blockquote.twitter-broadcast";
27t.exports=function(t,e){return o(t,a).map(function(t){return s(function(t){var e=i(t),n=t.getAttribute("data-broadcast-id");return r.aug(e,{broadcastId:n})}(t),t.parentNode,t,e)})}},function(t,e,n){var r=n(0);t.exports=function t(e){var n;if(e)return n=e.lang||e.getAttribute("data-lang"),r.isType("string",n)?n:t(e.parentElement)}},function(t,e,n){var r=n(0),i=n(48);t.exports=function(t,e){return i(t,e)?[t]:r.toRealArray(t.querySelectorAll(e))}},function(t,e,n){var r=n(17),i=n(113),o=n(59),s=n(29),a=n(2),u=n(6),c=n(7),d=n(0),f={allowfullscreen:"true"},l={position:"absolute",visibility:"hidden",width:"0px",height:"0px"},h={position:"static",visibility:"visible"},p={};i(function(t,e,n){var r=p[t];if(r)return e=e||1,n=n||1,r.styleSelf({width:e+"px",height:n+"px"}).then(function(){r.didResize()})},function(t){var e=p[t];if(e)return e._results.resolve()},function(t){var e=p[t];if(e)return e._rendered.resolve()},function(t,e){var n=p[t];n&&e&&n.setIframeVersion(e)},function(t){var e=p[t];if(e)return e._results.reject()}),t.exports=function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.iframeEl}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("iframeVersion",{get:function(){return this._iframeVersion}}),t.define("updateCachedDimensions",function(){var t=this;return this.initialized?r.read(function(){t._width=t.sandboxEl.offsetWidth,t._height=t.sandboxEl.offsetHeight}):u.resolve()}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.define("setWaitToSwapUntilRendered",function(t){this._waitToSwapUntilRendered=t}),t.define("setIframeVersion",function(t){this._iframeVersion=t}),t.define("getResultsPromise",function(){return this._results.promise}),t.define("getRenderedPromise",function(){return this._rendered.promise}),t.define("makeVisible",function(){return this.styleSelf(h)}),t.define("didResize",function(){var t=this,e=t._resizeHandlers.length>0;return this.updateCachedDimensions().then(function(){e&&t._resizeHandlers.forEach(function(e){e(t)})})}),t.define("loadDocument",function(t){var e=new a;return this.initialized?this.iframeEl.src?u.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",e.resolve,!1),this.iframeEl.addEventListener("error",e.reject,!1),this.iframeEl.src=t,e.promise):u.reject(new Error("sandbox not initialized"))}),t.after("initialize",function(){var t=new a,e=new a;this._iframe=null,this._iframeVersion=null,this._width=this._height=0,this._resizeHandlers=[],this._rendered=t,this._results=e,this._waitToSwapUntilRendered=!1}),t.override("insert",function(t,e,n,i){var a=this;return e=d.aug({id:t},f,e),n=d.aug({},l,n),this._iframe=s(e,n),p[t]=this,a._waitToSwapUntilRendered||this.onResize(o(function(){a.makeVisible()})),r.write(c(i,null,this._iframe))}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}},function(t,e,n){var r=n(1),i=n(114),o=n(116),s=n(22),a=n(5),u=n(117);t.exports=function(t,e,n,c,d){function f(t){var e=u(this);s.trigger(t.type,{target:e,region:t.region,type:t.type,data:t.data||{}})}function l(e){var n=u(this),r=n&&n.id,i=a.asInt(e.width),o=a.asInt(e.height);r&&void 0!==i&&void 0!==o&&t(r,i,o)}(new i).attachReceiver(new o.Receiver(r,"twttr.button")).bind("twttr.private.trigger",f).bind("twttr.private.resizeButton",l),(new i).attachReceiver(new o.Receiver(r,"twttr.embed")).bind("twttr.private.initialized",function(t){var e=u(this),n=e&&e.id,r=t.iframe_version;n&&r&&c&&c(n,r)}).bind("twttr.private.trigger",f).bind("twttr.private.results",function(){var t=u(this),n=t&&t.id;n&&e&&e(n)}).bind("twttr.private.rendered",function(){var t=u(this),e=t&&t.id;e&&n&&n(e)}).bind("twttr.private.no_results",function(){var t=u(this),e=t&&t.id;e&&d&&d(e)}).bind("twttr.private.resize",l)}},function(t,e,n){var r=n(24),i=n(115),o=n(0),s=n(6),a=n(23),u="2.0";function c(t){this.registry=t||{}}function d(t){var e,n;return e=o.isType("string",t),n=o.isType("number",t),e||n||null===t}function f(t,e){return{jsonrpc:u,id:d(t)?t:null,error:e}}c.prototype._invoke=function(t,e){var n,r,i;n=this.registry[t.method],r=t.params||[],r=o.isType("array",r)?r:[r];
27try{i=n.apply(e.source||null,r)}catch(t){i=s.reject(t.message)}return a.isPromise(i)?i:s.resolve(i)},c.prototype._processRequest=function(t,e){var n,r;return function(t){var e,n,r;return!!o.isObject(t)&&(e=t.jsonrpc===u,n=o.isType("string",t.method),r=!("id"in t)||d(t.id),e&&n&&r)}(t)?(n="params"in t&&(r=t.params,!o.isObject(r)||o.isType("function",r))?s.resolve(f(t.id,i.INVALID_PARAMS)):this.registry[t.method]?this._invoke(t,{source:e}).then(function(e){return n=t.id,{jsonrpc:u,id:n,result:e};var n},function(){return f(t.id,i.INTERNAL_ERROR)}):s.resolve(f(t.id,i.METHOD_NOT_FOUND)),null!=t.id?n:s.resolve()):s.resolve(f(t.id,i.INVALID_REQUEST))},c.prototype.attachReceiver=function(t){return t.attachTo(this),this},c.prototype.bind=function(t,e){return this.registry[t]=e,this},c.prototype.receive=function(t,e){var n,a,u,c=this;try{u=t,t=o.isType("string",u)?r.parse(u):u}catch(t){return s.resolve(f(null,i.PARSE_ERROR))}return e=e||null,a=((n=o.isType("array",t))?t:[t]).map(function(t){return c._processRequest(t,e)}),n?function(t){return s.all(t).then(function(t){return(t=t.filter(function(t){return void 0!==t})).length?t:void 0})}(a):a[0]},t.exports=c},function(t){t.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},function(t,e,n){var r=n(8),i=n(1),o=n(24),s=n(2),a=n(20),u=n(0),c=n(4),d=n(7),f=a.ie9();function l(t,e,n){var r;t&&t.postMessage&&(f?r=(n||"")+o.stringify(e):n?(r={})[n]=e:r=e,t.postMessage(r,"*"))}function h(t){return u.isType("string",t)?t:"JSONRPC"}function p(t,e){return e?u.isType("string",t)&&0===t.indexOf(e)?t.substring(e.length):t&&t[e]?t[e]:void 0:t}function m(t,e){var n=t.document;this.filter=h(e),this.server=null,this.isTwitterFrame=c.isTwitterURL(n.location.href),t.addEventListener("message",d(this._onMessage,this),!1)}function v(t,e){this.pending={},this.target=t,this.isTwitterHost=c.isTwitterURL(r.href),this.filter=h(e),i.addEventListener("message",d(this._onMessage,this),!1)}u.aug(m.prototype,{_onMessage:function(t){var e,n=this;this.server&&(this.isTwitterFrame&&!c.isTwitterURL(t.origin)||(e=p(t.data,this.filter))&&this.server.receive(e,t.source).then(function(e){e&&l(t.source,e,n.filter)}))},attachTo:function(t){this.server=t},detach:function(){this.server=null}}),u.aug(v.prototype,{_processResponse:function(t){var e=this.pending[t.id];e&&(e.resolve(t),delete this.pending[t.id])},_onMessage:function(t){var e;if((!this.isTwitterHost||c.isTwitterURL(t.origin))&&(e=p(t.data,this.filter))){if(u.isType("string",e))try{e=o.parse(e)}catch(t){return}(e=u.isType("array",e)?e:[e]).forEach(d(this._processResponse,this))}},send:function(t){var e=new s;return t.id?this.pending[t.id]=e:e.resolve(),l(this.target,t,this.filter),e.promise}}),t.exports={Receiver:m,Dispatcher:v,_stringifyPayload:function(t){return arguments.length>0&&(f=!!t),f}}},function(t,e,n){var r=n(3);t.exports=function(t){for(var e,n=r.getElementsByTagName("iframe"),i=0;n[i];i++)if((e=n[i]).contentWindow===t)return e}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(1).then(function(r){var o;try{o=n(76),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(16),i=n(5),o=n(0),s=n(11),a=n(12)(),u=n(61),c="a.twitter-dm-button";t.exports=function(t){return a(t,c).map(function(t){return u(function(t){var e=t.getAttribute("data-show-screen-name"),n=s(t),a=t.getAttribute("href"),u=t.getAttribute("data-screen-name"),c=e?i.asBoolean(e):null,d=t.getAttribute("data-size"),f=r.decodeURL(a),l=f.recipient_id,h=t.getAttribute("data-text")||f.text,p=t.getAttribute("data-welcome-message-id")||f.welcomeMessageId;return o.aug(n,{screenName:u,showScreenName:c,size:d,text:h,userId:l,welcomeMessageId:p})}(t),t.parentNode,t)})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(2).then(function(r){var o;try{o=n(77),i.resolve(new o(t,e))}catch(t){i.reject(t)}}
27.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(62),i=n(30);t.exports=r.isSupported()?r:i},function(t,e,n){var r=n(123),i=n(1),o=n(10),s=n(35),a=n(17),u=n(54),c=n(25),d=n(55),f=n(56),l=n(57),h=n(7),p=n(43),m=n(6),v=n(0),g=50,w={position:"absolute",visibility:"hidden",display:"block",transform:"rotate(0deg)"},y={position:"static",visibility:"visible"},b="twitter-widget",_="open",E="SandboxRoot",x=".SandboxRoot { display: none; max-height: 10000px; }";t.exports=c.couple(n(58),function(t){t.defineStatic("isSupported",function(){return!!i.HTMLElement.prototype.attachShadow&&f.inlineStyle()}),t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this._shadowHost}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this._shadowHost}}),t.define("_updateCachedDimensions",function(){var t=this;return a.read(function(){var e,n=l(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=l(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("_didResize",function(){var t=this,e=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){e.forEach(function(e){e(t)})})}),t.override("createElement",function(t){return this.targetGlobal.document.createElement(t)}),t.override("createFragment",function(){return this.targetGlobal.document.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!u.getSelectedText(this.targetGlobal)}),t.override("addRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?a.write(function(){t.forEach(function(t){o.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?a.write(function(){t.forEach(function(t){o.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return o.present(this._shadowRootBody,t)}),t.override("addStyleSheet",function(t,e){return this.addCss('@import url("'+t+'");',e).then(function(){return d(t)})}),t.override("prependStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){var n=e.firstElementChild;return n?e.insertBefore(t,n):e.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){return e.appendChild(t)})}),t.override("addCss",function(t,e){var n;return this.initialized?f.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.targetGlobal.document.createTextNode(t)),a.write(h(e,null,n))):m.resolve():m.reject(new Error("sandbox not initialized"))}),t.override("prependCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){var n=e.firstElementChild;return n?e.insertBefore(t,n):e.appendChild(t)})}),t.override("appendCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){return e.appendChild(t)})}),t.override("makeVisible",function(){return this.styleSelf(y)}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this._shadowRootBody.firstElementChild?m.reject(new Error("widget already injected")):a.write(function(){e._shadowRootBody.appendChild(t)}).then(function(){return e._updateCachedDimensions()}).then(function(){var t=p(e._didResize,g,e);new r(e._shadowRootBody,t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){return m.resolve()}),t.override("matchWidthToContent",function(){return m.resolve()}),t.override("insert",function(t,e,n,r){var i=this.targetGlobal.document,o=this._shadowHost=i.createElement(b),u=this._shadowRoot=o.attachShadow({mode:_}),c=this._shadowRootBody=i.createElement("div");return v.forIn(e||{},function(t,e){o.setAttribute(t,e)}),o.id=t,u.appendChild(c),s.delegate(c,"click","A",function(t,e){e.hasAttribute("target")||e.setAttribute("target","_blank")}),m.all([this.styleSelf(w),this.addRootClass(E),this.prependCss(x),a.write(r.bind(null,o))])}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("initialize",function(){this._shadowHost=this._shadowRoot=this._shadowRootBody=null,this._width=this._height=0,this._resizeHandlers=[]}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){var n;(n=function(t,e){function r(t,e){if(t.resizedAttached){if(t.resizedAttached)return void t.resizedAttached.add(e)}else t.resizedAttached=new function(){var t,e;this.q=[],this.add=function(t){this.q.push(t)},this.call=function(){for(t=0,e=this.q.length;t<e;t++)this.q[t].call()}},t.resizedAttached.add(e);t.resizeSensor=document.createElement("div"),t.resizeSensor.className="resize-sensor";var n="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",r="position: absolute; left: 0; top: 0; transition: 0s;";t.resizeSensor.style.cssText=n,t.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+n+'"><div style="'+r+'"></div></div><div class="resize-sensor-shrink" style="'+n+'"><div style="'+r+' width: 200%; height: 200%"></div></div>',t.appendChild(t.resizeSensor),{fixed:1,absolute:1}[function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e]}(t,"position")]||(t.style.position="relative");var i,o,s=t.resizeSensor.childNodes[0],a=s.childNodes[0],u=t.resizeSensor.childNodes[1],c=(u.childNodes[0],function(){a.style.width=s.offsetWidth+10+"px",a.style.height=s.offsetHeight+10+"px",s.scrollLeft=s.scrollWidth,s.scrollTop=s.scrollHeight,u.scrollLeft=u.scrollWidth,u.scrollTop=u.scrollHeight,i=t.offsetWidth,o=t.offsetHeight});c();var d=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)},f=function(){t.offsetWidth==i&&t.offsetHeight==o||t.resizedAttached&&t.resizedAttached.call(),c()};d(s,"scroll",f),d(u,"scroll",f)}var i=Object.prototype.toString.call(t),o="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements;if(o)for(var s=0,a=t.length;s<a;s++)r(t[s],e);else r(t,e);this.detach=function(){if(o)for(var e=0,r=t.length;e<r;e++)n.detach(t[e]);else n.detach(t)}}).detach=function(t){t.resizeSensor&&(t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached)},void 0!==t&&void 0!==t.exports?t.exports=n:window.ResizeSensor=n},function(t,e,n){var r=n(4),i=n(0),o=n(11),s=n(12)(),a=n(63),u=n(5),c="a.twitter-follow-button";t.exports=function(t){return s(t,c).map(function(t){return a(function(t){var e=o(t),n={screenName:r.screenName(t.href),showScreenName:"false"!==t.getAttribute("data-show-screen-name"),showCount:"false"!==t.getAttribute("data-show-count"),size:t.getAttribute("data-size"),count:t.getAttribute("data-count"),preview:t.getAttribute("data-preview")};return i.forIn(n,function(t,n){var r=e[t];e[t]=u.hasValue(r)?r:n}),e.screenName=e.screenName||e.screen_name,e}(t),t.parentNode,t)})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(3).then(function(r){var o;try{o=n(78),i.resolve(new o(t,e))}catch(t){i.reject(t)}}
27.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(5),i=n(0),o=n(4),s=n(11),a=n(12)(),u=n(64),c="a.twitter-moment";t.exports=function(t){return a(t,c).map(function(t){return u(function(t){var e=s(t),n={momentId:o.momentId(t.href),chrome:t.getAttribute("data-chrome"),limit:t.getAttribute("data-limit")};return i.forIn(n,function(t,n){var i=e[t];e[t]=r.hasValue(i)?i:n}),e}(t),t.parentNode,t)})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(4).then(function(r){var o;try{o=n(79),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(0),i=n(11),o=n(12)(),s=n(65),a="a.periscope-on-air",u=/^https?:\/\/(?:www\.)?(?:periscope|pscp)\.tv\/@?([a-zA-Z0-9_]+)\/?$/i;t.exports=function(t){return o(t,a).map(function(t){return s(function(t){var e=i(t),n=t.getAttribute("href"),o=t.getAttribute("data-size"),s=u.exec(n)[1];return r.aug(e,{username:s,size:o})}(t),t.parentNode,t)})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(5).then(function(r){var o;try{o=n(80),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(5),i=n(0),o=n(66),s=n(11),a=n(12)(),u=n(67),c=n(4),d=n(18),f="a.twitter-timeline,div.twitter-timeline,a.twitter-grid",l="Embedded Search timelines have been deprecated. See https://twittercommunity.com/t/deprecating-widget-settings/102295.",h="You may have been affected by an update to settings in embedded timelines. See https://twittercommunity.com/t/deprecating-widget-settings/102295.",p="Embedded grids have been deprecated and will now render as timelines. Please update your embed code to use the twitter-timeline class. More info: https://twittercommunity.com/t/update-on-the-embedded-grid-display-type/119564.";t.exports=function(t,e){return a(t,f).map(function(t){return u(function(t){var e=s(t),n=t.getAttribute("data-show-replies"),a={isPreconfigured:!!t.getAttribute("data-widget-id"),chrome:t.getAttribute("data-chrome"),tweetLimit:t.getAttribute("data-tweet-limit")||t.getAttribute("data-limit"),ariaLive:t.getAttribute("data-aria-polite"),theme:t.getAttribute("data-theme"),borderColor:t.getAttribute("data-border-color"),showReplies:n?r.asBoolean(n):null,profileScreenName:t.getAttribute("data-screen-name"),profileUserId:t.getAttribute("data-user-id"),favoritesScreenName:t.getAttribute("data-favorites-screen-name"),favoritesUserId:t.getAttribute("data-favorites-user-id"),likesScreenName:t.getAttribute("data-likes-screen-name"),likesUserId:t.getAttribute("data-likes-user-id"),listOwnerScreenName:t.getAttribute("data-list-owner-screen-name"),listOwnerUserId:t.getAttribute("data-list-owner-id"),listId:t.getAttribute("data-list-id"),listSlug:t.getAttribute("data-list-slug"),customTimelineId:t.getAttribute("data-custom-timeline-id"),staticContent:t.getAttribute("data-static-content"),url:t.href};return a.isPreconfigured&&(c.isSearchUrl(a.url)?d.publicError(l,t):d.publicLog(h,t)),"twitter-grid"===t.className&&d.publicLog(p,t),(a=i.aug(a,e)).dataSource=o(a),a.id=a.dataSource&&a.dataSource.id,a}(t),t.parentNode,t,e)})}},function(t,e){t.exports=function(t,e,n){for(var r,i=0;i<t.length;i++)if(r=e.call(n,t[i],i,t))return r}},function(t,e,n){var r=n(31);t.exports=r.build([n(32),n(135)])},function(t,e,n){var r=n(0),i=n(134);t.exports=function(t){return"en"===t||r.contains(i,t)}},function(t,e){t.exports=["hi","zh-cn","fr","zh-tw","msa","fil","fi","sv","pl","ja","ko","de","it","pt","es","ru","id","tr","da","no","nl","hu","fa","ar","ur","he","th","cs","uk","vi","ro","bn","el","en-gb","gu","kn","mr","ta","bg","ca","hr","sr","sk"]},function(t,e,n){var r=n(4),i=n(44),o="collection:";function s(t,e){return r.collectionId(t)||e}t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("id",{get:function(){var t=s(this.params.url,this.params.id);return o+t}}),t.before("initialize",function(){if(!s(this.params.url,this.params.id))throw new Error("one of url or id is required");i()})}},function(t,e,n){var r=n(31);t.exports=r.build([n(32),n(137)])},function(t,e,n){var r=n(4),i=n(44),o="likes:";function s(t){return r.likesScreenName(t.url)||t.screenName}t.exports=function(t){t.params({screenName:{},userId:{},url:{}}),t.overrideProperty("id",{get:function(){var t=s(this.params)||this.params.userId;return o+t}}
27),t.before("initialize",function(){if(!s(this.params)&&!this.params.userId)throw new Error("screen name or user id is required");i()})}},function(t,e,n){var r=n(31);t.exports=r.build([n(32),n(139)])},function(t,e,n){var r=n(4),i=n(0),o=n(28),s="list:";function a(t){var e=r.listScreenNameAndSlug(t.url)||t;return i.compact({screen_name:e.ownerScreenName,user_id:e.ownerUserId,list_slug:e.slug})}t.exports=function(t){t.params({id:{},ownerScreenName:{},ownerUserId:{},slug:{},url:{}}),t.overrideProperty("id",{get:function(){var t,e,n;return this.params.id?s+this.params.id:(e=(t=a(this.params))&&t.list_slug.replace(/-/g,"_"),n=t&&(t.screen_name||t.user_id),s+(n+":")+e)}}),t.overrideProperty("endpoint",{get:function(){var t,e=["timeline-list"];return this.params.id?e.push("list-id",this.params.id):(t=a(this.params),e.push("screen-name",t.screen_name,"slug",t.list_slug)),o.embedService(e)}}),t.before("initialize",function(){var t=a(this.params);if(i.isEmptyObject(t)&&!this.params.id)throw new Error("qualified slug or list id required")})}},function(t,e,n){var r=n(31);t.exports=r.build([n(32),n(141)])},function(t,e,n){var r=n(4),i=n(5),o=n(0),s=n(28),a="profile:";function u(t,e){return r.screenName(t)||e}t.exports=function(t){t.params({showReplies:{fallback:!1,transform:i.asBoolean},screenName:{},userId:{},url:{}}),t.overrideProperty("id",{get:function(){var t=u(this.params.url,this.params.screenName);return a+(t||this.params.userId)}}),t.overrideProperty("endpoint",{get:function(){var t=["timeline-profile"],e=u(this.params.url,this.params.screenName);return e?t.push("screen-name",e):t.push("user-id",this.params.userId),s.embedService(t)}}),t.around("queryParams",function(t){return o.aug(t(),{showReplies:this.params.showReplies?"true":"false"})}),t.before("initialize",function(){if(!u(this.params.url,this.params.screenName)&&!this.params.userId)throw new Error("screen name or user id is required")})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(6).then(function(r){var o;try{o=n(81),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(10),i=n(4),o=n(0),s=n(11),a=n(12)(),u=n(68),c="blockquote.twitter-tweet, blockquote.twitter-video",d=/\btw-align-(left|right|center)\b/;t.exports=function(t,e){return a(t,c).map(function(t){return u(function(t){var e=s(t),n=t.getElementsByTagName("A"),a=n&&n[n.length-1],u=a&&i.status(a.href),c=t.getAttribute("data-conversation"),f="none"==c||"hidden"==c||r.present(t,"tw-hide-thread"),l=t.getAttribute("data-cards"),h="none"==l||"hidden"==l||r.present(t,"tw-hide-media"),p=t.getAttribute("data-media-max-width"),m=t.getAttribute("data-align")||t.getAttribute("align"),v=t.getAttribute("data-theme");return!m&&d.test(t.className)&&(m=RegExp.$1),o.aug(e,{tweetId:u,hideThread:f,hideCard:h,mediaMaxWidth:p,align:m,theme:v,id:u})}(t),t.parentNode,t,e)})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(7).then(function(r){var o;try{o=n(82),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(10),i=n(0),o=n(11),s=n(12)(),a=n(69),u=n(5),c="a.twitter-share-button, a.twitter-mention-button, a.twitter-hashtag-button",d="twitter-hashtag-button",f="twitter-mention-button";t.exports=function(t){return s(t,c).map(function(t){return a(function(t){var e=o(t),n={screenName:t.getAttribute("data-button-screen-name"),text:t.getAttribute("data-text"),type:t.getAttribute("data-type"),size:t.getAttribute("data-size"),url:t.getAttribute("data-url"),hashtags:t.getAttribute("data-hashtags"),via:t.getAttribute("data-via"),buttonHashtag:t.getAttribute("data-button-hashtag")};return i.forIn(n,function(t,n){var r=e[t];e[t]=u.hasValue(r)?r:n}),e.screenName=e.screenName||e.screen_name,e.buttonHashtag=e.buttonHashtag||e.button_hashtag||e.hashtag,r.present(t,d)&&(e.type="hashtag"),r.present(t,f)&&(e.type="mention"),e}(t),t.parentNode,t)})}},function(t,e,n){var r=n(2);t.exports=function(t,e){var i=new r;return n.e(3).then(function(r){var o;try{o=n(83),i.resolve(new o(t,e))}catch(t){i.reject(t)}}
27.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(0);t.exports=r.aug({},n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155))},function(t,e,n){var r=n(60),i=n(15)(["broadcastId"],{},r);t.exports={createBroadcast:i}},function(t,e,n){var r=n(61),i=n(15)(["userId"],{},r);t.exports={createDMButton:i}},function(t,e,n){var r=n(63),i=n(15)(["screenName"],{},r);t.exports={createFollowButton:i}},function(t,e,n){var r=n(64),i=n(15)(["momentId"],{},r);t.exports={createMoment:i}},function(t,e,n){var r=n(65),i=n(15)(["username"],{},r);t.exports={createPeriscopeOnAirButton:i}},function(t,e,n){var r=n(8),i=n(18),o=n(4),s=n(0),a=n(5),u=n(66),c=n(67),d=n(15)([],{},c),f=n(6),l="Embedded grids have been deprecated. Please use twttr.widgets.createTimeline instead. More info: https://twittercommunity.com/t/update-on-the-embedded-grid-display-type/119564.",h={createTimeline:p,createGridFromCollection:function(t){var e=s.toRealArray(arguments).slice(1),n={sourceType:"collection",id:t};return e.unshift(n),i.publicLog(l),p.apply(this,e)}};function p(t){var e,n=s.toRealArray(arguments).slice(1);return a.isString(t)||a.isNumber(t)?f.reject("Embedded timelines with widget settings have been deprecated. See https://twittercommunity.com/t/deprecating-widget-settings/102295."):s.isObject(t)?(t=t||{},n.forEach(function(t){s.isType("object",t)&&function(t){t.ariaLive=t.ariaPolite}(e=t)}),e||(e={},n.push(e)),t.lang=e.lang,t.tweetLimit=e.tweetLimit,t.showReplies=e.showReplies,e.dataSource=u(t),d.apply(this,n)):f.reject("data source must be an object.")}o.isTwitterURL(r.href)&&(h.createTimelinePreview=function(t,e,n){var r={previewParams:t,useLegacyDefaults:!0,isPreviewTimeline:!0};return r.dataSource=u(r),d(e,r,n)}),t.exports=h},function(t,e,n){var r,i=n(0),o=n(68),s=n(15),a=(r=s(["tweetId"],{},o),function(){return i.toRealArray(arguments).slice(1).forEach(function(t){i.isType("object",t)&&(t.hideCard="none"==t.cards||"hidden"==t.cards,t.hideThread="none"==t.conversation||"hidden"==t.conversation)}),r.apply(this,arguments)});t.exports={createTweet:a,createTweetEmbed:a,createVideo:a}},function(t,e,n){var r=n(0),i=n(69),o=n(15),s=o(["url"],{type:"share"},i),a=o(["buttonHashtag"],{type:"hashtag"},i),u=o(["screenName"],{type:"mention"},i);function c(t){return function(){return r.toRealArray(arguments).slice(1).forEach(function(t){r.isType("object",t)&&(t.screenName=t.screenName||t.screen_name,t.buttonHashtag=t.buttonHashtag||t.button_hashtag||t.hashtag)}),t.apply(this,arguments)}}t.exports={createShareButton:c(s),createHashtagButton:c(a),createMentionButton:c(u)}},function(t,e,n){var r,i,o,s=n(3),a=n(1),u=0,c=[],d=s.createElement("a");function f(){var t,e;for(u=1,t=0,e=c.length;t<e;t++)c[t]()}/^loade|c/.test(s.readyState)&&(u=1),s.addEventListener&&s.addEventListener("DOMContentLoaded",i=function(){s.removeEventListener("DOMContentLoaded",i,!1),f()},!1),d.doScroll&&s.attachEvent("onreadystatechange",r=function(){/^c/.test(s.readyState)&&(s.detachEvent("onreadystatechange",r),f())}),o=d.doScroll?function(t){a.self!=a.top?u?t():c.push(t):function(){try{d.doScroll("left")}catch(e){return setTimeout(function(){o(t)},50)}t()}()}:function(t){u?t():c.push(t)},t.exports=o},function(t,e,n){var r=n(42),i=n(9);t.exports=function(){i.set("buildVersion",r.version)}},function(t,e,n){n(159),n(162),n(163)},function(t,e,n){var r=n(160),i=n(27),o=n(70),s=new r,a=function(t){t.widgets&&1===t.widgets.length&&(s.start(),i.emitter.unbind(i.ALL_WIDGETS_RENDER_START,a))},u=function(t){var e;t.widgets&&1===t.widgets.length&&(e=t.widgets[0],s.end(),e.dataset&&e.dataset.tweetId&&o({duration:s.duration(),namespace:{element:"tweet",action:"render"},widgetIds:[e.dataset.tweetId]})),i.emitter.unbind(i.ALL_WIDGETS_RENDER_END,u)};i.emitter.bind(i.ALL_WIDGETS_RENDER_START,a),i.emitter.bind(i.ALL_WIDGETS_RENDER_END,u)},function(t,e,n){var r=n(161);function i(){}i.prototype.start=function(){this._startTime=r()},i.prototype.end=function(){this._duration=r()-this._startTime},i.prototype.duration=function(){return this._duration},t.exports=i},function(t,e,n){var r=n(1);t.exports=function(){return r.performance&&r.performance.now?r.performance.now():Date.now()}},function(t,e,n){var r,i=n(27),o=0;function s(){r&&r.length===o&&(i.emitter.trigger(i.ALL_WIDGETS_AND_IMAGES_LOADED,r),r=null)}i.emitter.bind(i.ALL_WIDGETS_RENDER_END,function(t){r=t.widgets,s()}),t.exports={reportImagesLoadForAWidget:function(){o++,s()}}},function(t,e,n){var r=n(27),i=n(70),o=n(164),s=n(4),a=n(1),u=n(0),c=n(20),d=n(62);function f(t){return t.performance.getEntriesByType("resource").filter(function(t){return s.isTwimgURL(t.name)||s.isTwitterURL(t.name)}).reduce(function(t,e){return t[e.name]=e.duration,t},{})}r.emitter.bind(r.ALL_WIDGETS_AND_IMAGES_LOADED,function(t){var e,n,r=[];c.hasPerformanceInformation()&&(e=f(a),d.isSupported()||(r=function(t){return t.reduce(function(t,e){return u.aug(t,f(e.contentDocument.defaultView))},{})}(t)),n=u.aug({}
27,e,r),Object.keys(o).forEach(function(t){!function(t,e,n){var r=Object.keys(t).reduce(function(e,r){return n(r)?e+t[r]:e},0);i({duration:r,namespace:{element:e,action:"resource"}})}(n,t,o[t])}))})},function(t,e,n){var r=n(4),i={all:function(){return!0},image:function(t){return r.isTwimgURL(t)},settings:function(t){return r.isSettingsURL(t)},widget_iframe:function(t){return r.isWidgetIframeURL(t)}};t.exports=i}])));}catch(e){console.log(e);} 28/*https://apis.google.com/js/platform.js*/ 29;try{(function(){var p,aa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ba=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ca=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object"); 30},r=ca(this),u=function(a,b){if(b)a:{var c=r;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ba(c,a,{configurable:!0,writable:!0,value:b})}},da;if(typeof Object.setPrototypeOf=="function")da=Object.setPrototypeOf;else{var ea;a:{var fa={a:!0},ha={};try{ha.__proto__=fa;ea=ha.a;break a}catch(a){}ea=!1}da=ea?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null} 31var ia=da,ja=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},x=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:ja(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},ka=function(a){return y(a,a)},y=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};u("globalThis",function(a){return a||r}); 32u("Symbol",function(a){if(a)return a;var b=function(f,g){this.wa=f;ba(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.wa};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); 33u("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return la(ja(this))}});return a});var la=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}; 34u("Promise",function(a){function b(){this.v=null}function c(g){return g instanceof e?g:new e(function(k){k(g)})}if(a)return a;b.prototype.ca=function(g){if(this.v==null){this.v=[];var k=this;this.da(function(){k.Ba()})}this.v.push(g)};var d=r.setTimeout;b.prototype.da=function(g){d(g,0)};b.prototype.Ba=function(){for(;this.v&&this.v.length;){var g=this.v;this.v=[];for(var k=0;k<g.length;++k){var h=g[k];g[k]=null;try{h()}catch(l){this.za(l)}}}this.v=null};b.prototype.za=function(g){this.da(function(){throw g; 35})};var e=function(g){this.D=0;this.J=void 0;this.C=[];this.ja=!1;var k=this.T();try{g(k.resolve,k.reject)}catch(h){k.reject(h)}};e.prototype.T=function(){function g(l){return function(m){h||(h=!0,l.call(k,m))}}var k=this,h=!1;return{resolve:g(this.Ga),reject:g(this.Y)}};e.prototype.Ga=function(g){if(g===this)this.Y(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof e)this.La(g);else{a:switch(typeof g){case "object":var k=g!=null;break a;case "function":k=!0;break a;default:k= 36!1}k?this.Fa(g):this.ia(g)}};e.prototype.Fa=function(g){var k=void 0;try{k=g.then}catch(h){this.Y(h);return}typeof k=="function"?this.Ma(k,g):this.ia(g)};e.prototype.Y=function(g){this.ta(2,g)};e.prototype.ia=function(g){this.ta(1,g)};e.prototype.ta=function(g,k){if(this.D!=0)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.D);this.D=g;this.J=k;this.D===2&&this.Ha();this.Ca()};e.prototype.Ha=function(){var g=this;d(function(){if(g.Ea()){var k=r.console;typeof k!=="undefined"&& 37k.error(g.J)}},1)};e.prototype.Ea=function(){if(this.ja)return!1;var g=r.CustomEvent,k=r.Event,h=r.dispatchEvent;if(typeof h==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof k==="function"?g=new k("unhandledrejection",{cancelable:!0}):(g=r.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.J;return h(g)};e.prototype.Ca=function(){if(this.C!=null){for(var g=0;g<this.C.length;++g)f.ca(this.C[g]); 38this.C=null}};var f=new b;e.prototype.La=function(g){var k=this.T();g.K(k.resolve,k.reject)};e.prototype.Ma=function(g,k){var h=this.T();try{g.call(k,h.resolve,h.reject)}catch(l){h.reject(l)}};e.prototype.then=function(g,k){function h(q,v){return typeof q=="function"?function(w){try{l(q(w))}catch(t){m(t)}}:v}var l,m,n=new e(function(q,v){l=q;m=v});this.K(h(g,l),h(k,m));return n};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.K=function(g,k){function h(){switch(l.D){case 1:g(l.J); 39break;case 2:k(l.J);break;default:throw Error("Unexpected state: "+l.D);}}var l=this;this.C==null?f.ca(h):this.C.push(h);this.ja=!0};e.resolve=c;e.reject=function(g){return new e(function(k,h){h(g)})};e.race=function(g){return new e(function(k,h){for(var l=x(g),m=l.next();!m.done;m=l.next())c(m.value).K(k,h)})};e.all=function(g){var k=x(g),h=k.next();return h.done?c([]):new e(function(l,m){function n(w){return function(t){q[w]=t;v--;v==0&&l(q)}}var q=[],v=0;do q.push(void 0),v++,c(h.value).K(n(q.length- 401),m),h=k.next();while(!h.done)})};return e});var z=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; 41u("WeakMap",function(a){function b(){}function c(h){var l=typeof h;return l==="object"&&h!==null||l==="function"}function d(h){if(!z(h,f)){var l=new b;ba(h,f,{value:l})}}function e(h){var l=Object[h];l&&(Object[h]=function(m){if(m instanceof b)return m;Object.isExtensible(m)&&d(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;
41try{var h=Object.seal({}),l=Object.seal({}),m=new a([[h,2],[l,3]]);if(m.get(h)!=2||m.get(l)!=3)return!1;m.delete(h);m.set(l,4);return!m.has(h)&&m.get(l)==4}catch(n){return!1}}())return a; 42var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,k=function(h){this.H=(g+=Math.random()+1).toString();if(h){h=x(h);for(var l;!(l=h.next()).done;)l=l.value,this.set(l[0],l[1])}};k.prototype.set=function(h,l){if(!c(h))throw Error("Invalid WeakMap key");d(h);if(!z(h,f))throw Error("WeakMap key fail: "+h);h[f][this.H]=l;return this};k.prototype.get=function(h){return c(h)&&z(h,f)?h[f][this.H]:void 0};k.prototype.has=function(h){return c(h)&&z(h,f)&&z(h[f],this.H)}; 43k.prototype.delete=function(h){return c(h)&&z(h,f)&&z(h[f],this.H)?delete h[f][this.H]:!1};return k}); 44u("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),h=new a(x([[k,"s"]]));if(h.get(k)!="s"||h.size!=1||h.get({x:4})||h.set({x:4},"t")!=h||h.size!=2)return!1;var l=h.entries(),m=l.next();if(m.done||m.value[0]!=k||m.value[1]!="s")return!1;m=l.next();return m.done||m.value[0].x!=4||m.value[1]!="t"||!l.next().done?!1:!0}catch(n){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]= 45f();this.size=0;if(k){k=x(k);for(var h;!(h=k.next()).done;)h=h.value,this.set(h[0],h[1])}};c.prototype.set=function(k,h){k=k===0?0:k;var l=d(this,k);l.list||(l.list=this[0][l.id]=[]);l.entry?l.entry.value=h:(l.entry={next:this[1],o:this[1].o,head:this[1],key:k,value:h},l.list.push(l.entry),this[1].o.next=l.entry,this[1].o=l.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.o.next= 46k.entry.next,k.entry.next.o=k.entry.o,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].o=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,function(k){return k.value})};c.prototype.forEach= 47function(k,h){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,k.call(h,m[1],m[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,h){var l=h&&typeof h;l=="object"||l=="function"?b.has(h)?l=b.get(h):(l=""+ ++g,b.set(h,l)):l="p_"+h;var m=k[0][l];if(m&&z(k[0],l))for(k=0;k<m.length;k++){var n=m[k];if(h!==h&&n.key!==n.key||h===n.key)return{id:l,list:m,index:k,entry:n}}return{id:l,list:m,index:-1,entry:void 0}},e=function(k,h){var l=k[1];return la(function(){if(l){for(;l.head!= 48k[1];)l=l.o;for(;l.next!=l.head;)return l=l.next,{done:!1,value:h(l)};l=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.o=k.next=k.head=k},g=0;return c});var oa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};u("Array.prototype.keys",function(a){return a?a:function(){return oa(this,function(b){return b})}}); 49var pa=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};u("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=pa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}}); 50u("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=pa(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});u("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}}); 51u("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});u("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});u("String.prototype.includes",function(a){return a?a:function(b,c){return pa(this,b,"includes").indexOf(b,c||0)!==-1}});window.gapi=window.gapi||{};window.gapi.Oa=(new Date).getTime();/* 52 53 Copyright The Closure Library Authors. 54 SPDX-License-Identifier: Apache-2.0 55*/ 56var A=this||self,qa=function(a){var b=typeof a;b=b!="object"?b:a?Array.isArray(a)?"array":b:"null";return b=="array"||b=="object"&&typeof a.length=="number"},ra=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},sa="closure_uid_"+(Math.random()*1E9>>>0),ta=0,ua=function(a,b,c){return a.call.apply(a.bind,arguments)},va=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments); 57Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},wa=function(a,b,c){wa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ua:va;return wa.apply(null,arguments)},xa=function(a,b){function c(){}c.prototype=b.prototype;a.Na=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.G=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d, 58g)}},ya=function(a){return a};function za(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,za);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}xa(za,Error);za.prototype.name="CustomError";var Aa;function Ba(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");za.call(this,c+a[d])}xa(Ba,za);Ba.prototype.name="AssertionError";var Ca=function(a,b,c){if(!a){var d="Assertion failed";if(b){d+=": "+b;var e=Array.prototype.slice.call(arguments,2)}throw new Ba(""+d,e||[]);}};var Da=Array.prototype.forEach?function(a,b){Ca(a.length!=null);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)};function Ea(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};/* 59 60 Copyright Google LLC 61 SPDX-License-Identifier: Apache-2.0 62*/ 63var Fa="src srcdoc codebase data href rel action formaction sandbox icon".split(" ");var Ha={};function Ia(){if(Ha!==Ha)throw Error("Bad secret");};var Ja=function(a){Ia();this.pa=a};Ja.prototype.toString=function(){return this.pa};var Ka=ka([""]),La=y(["\x00"],["\\0"]),Ma=y(["\n"],["\\n"]),Na=y(["\x00"],["\\u0000"]),Oa=ka([""]),Pa=y(["\x00"],["\\0"]),Qa=y(["\n"],["\\n"]),Ra=y(["\x00"],["\\u0000"]);function Sa(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function Ta(a){return a.toString().indexOf("`")===-1}var Ua=Ta(function(a){return a(Ka)})||Ta(function(a){return a(La)})||Ta(function(a){return a(Ma)})||Ta(function(a){return a(Na)}),Va=Sa(Oa)&&Sa(Pa)&&Sa(Qa)&&Sa(Ra);function Wa(){var a=Xa;if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!Ua&&a===a.raw||!(Ua&&!Va||Sa(a))||1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################"); 64var b=a[0].toLowerCase();if(b.indexOf("on")===0||"on".indexOf(b)===0)throw Error("Prefix '"+a[0]+"' does not guarantee the attribute to be safe as it is also a prefix for event handler attributesPlease use 'addEventListener' to set event handlers.");
64Fa.forEach(function(c){if(c.indexOf(b)===0)throw Error("Prefix '"+a[0]+"' does not guarantee the attribute to be safe as it is also a prefix for the security sensitive attribute '"+(c+"'. Please use native or safe DOM APIs to set the attribute."));}); 65return new Ja(b)};var Ya=globalThis.trustedTypes,Za;function $a(){var a=null;if(!Ya)return a;try{var b=function(c){return c};a=Ya.createPolicy("gapi#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var ab=function(a){Ia();this.qa=a};ab.prototype.toString=function(){return this.qa+""};var B=function(a){Ia();this.ra=a};B.prototype.toString=function(){return this.ra};new B("about:blank");new B("about:invalid#zClosurez");var bb=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;function cb(a){if(a instanceof B)if(a instanceof B)a=a.ra;else throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");else{var b=!bb.test(a);b&&db(a);a=b?void 0:a}return a}var eb=[],db=function(){};fb(function(a){console.warn("A URL with content '"+a+"' was sanitized away.")});function fb(a){eb.indexOf(a)===-1&&eb.push(a);db=function(b){eb.forEach(function(c){c(b)})}};function gb(a){var b=[Wa()];if(b.length===0)throw Error("No prefixes are provided");if(b.map(function(c){if(c instanceof Ja)c=c.pa;else throw Error("Unexpected type when unwrapping SafeAttributePrefix, got '"+c+"' of type '"+typeof c+"'");return c}).every(function(c){return"data-gapiscan".indexOf(c)!==0}))throw Error('Attribute "data-gapiscan" does not match any of the allowed prefixes.');a.setAttribute("data-gapiscan","true")};var hb=function(a,b,c){function d(k){k&&b.appendChild(typeof k==="string"?a.createTextNode(k):k)}for(var e=1;e<c.length;e++){var f=c[e];if(!qa(f)||ra(f)&&f.nodeType>0)d(f);else{a:{if(f&&typeof f.length=="number"){if(ra(f)){var g=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){g=typeof f.item=="function";break a}}g=!1}Da(g?Ea(f):f,d)}}},ib=function(a){Ca(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},kb=function(a){this.U= 66a||A.document||document};p=kb.prototype;p.getElementsByTagName=function(a,b){return(b||this.U).getElementsByTagName(String(a))};p.createElement=function(a){var b=this.U;a=String(a);b.contentType==="application/xhtml+xml"&&(a=a.toLowerCase());return b.createElement(a)};p.createTextNode=function(a){return this.U.createTextNode(String(a))};p.appendChild=function(a,b){Ca(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};p.append=function(a,b){hb(ib(a),a,arguments)}; 67p.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};p.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; 68p.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/* 69 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/ 70var C=window,D=document,lb=C.location,mb=function(){},nb=/\[native code\]/,E=function(a,b,c){return a[b]=a[b]||c},ob=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1},pb=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b},qb=/&/g,rb=/</g,sb=/>/g,tb=/"/g,ub=/'/g,vb=function(a){return String(a).replace(qb,"&").replace(rb,"<").replace(sb,">").replace(tb,""").replace(ub,"'")},F=function(){var a;if((a=Object.create)&& 71nb.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},G=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},wb=function(a){if(nb.test(Object.keys))return Object.keys(a);var b=[],c;for(c in a)G(a,c)&&b.push(c);return b},H=function(a,b){a=a||{};for(var c in a)G(a,c)&&(b[c]=a[c])},xb=function(a){return function(){C.setTimeout(a,0)}},I=function(a,b){if(!a)throw Error(b||"");},J=E(C,"gapi",{});var L=function(a,b,c){var d=new RegExp("([#].*&|[#])"+b+"=([^&#]*)","g");b=new RegExp("([?#].*&|[?#])"+b+"=([^&#]*)","g");if(a=a&&(d.exec(a)||b.exec(a)))try{c=decodeURIComponent(a[2])}catch(e){}return c},yb=new RegExp(/^/.source+/([a-zA-Z][-+.a-zA-Z0-9]*:)?/.source+/(\/\/[^\/?#]*)?/.source+/([^?#]*)?/.source+/(\?([^#]*))?/.source+/(#((#|[^#])*))?/.source+/$/.source),zb=/[\ud800-\udbff][\udc00-\udfff]|[^!-~]/g,Ab=new RegExp(/(%([^0-9a-fA-F%]|[0-9a-fA-F]([^0-9a-fA-F%])?)?)*/.source+/%($|[^0-9a-fA-F]|[0-9a-fA-F]($|[^0-9a-fA-F]))/.source, 72"g"),Bb=/%([a-f]|[0-9a-fA-F][a-f])/g,Cb=/^(https?|ftp|file|chrome-extension):$/i,Db=function(a){a=String(a);a=a.replace(zb,function(e){try{return encodeURIComponent(e)}catch(f){return encodeURIComponent(e.replace(/^[^%]+$/g,"\ufffd"))}}).replace(Ab,function(e){return e.replace(/%/g,"%25")}).replace(Bb,function(e){return e.toUpperCase()});a=a.match(yb)||[];var b=F(),c=function(e){return e.replace(/\\/g,"%5C").replace(/\^/g,"%5E").replace(/`/g,"%60").replace(/\{/g,"%7B").replace(/\|/g,"%7C").replace(/\}/g, 73"%7D")},d=!!(a[1]||"").match(Cb);
73b.G=c((a[1]||"")+(a[2]||"")+(a[3]||(a[2]&&d?"/":"")));d=function(e){return c(e.replace(/\?/g,"%3F").replace(/#/g,"%23"))};b.query=a[5]?[d(a[5])]:[];b.j=a[7]?[d(a[7])]:[];return b},Eb=function(a){return a.G+(a.query.length>0?"?"+a.query.join("&"):"")+(a.j.length>0?"#"+a.j.join("&"):"")},Fb=function(a,b){var c=[];if(a)for(var d in a)if(G(a,d)&&a[d]!=null){var e=b?b(a[d]):a[d];c.push(encodeURIComponent(d)+"="+encodeURIComponent(e))}return c},Gb=function(a,b,c,d){a=Db(a); 74a.query.push.apply(a.query,Fb(b,d));a.j.push.apply(a.j,Fb(c,d));return Eb(a)},Hb=new RegExp(/\/?\??#?/.source+"("+/[\/?#]/i.source+"|"+/[\uD800-\uDBFF]/i.source+"|"+/%[c-f][0-9a-f](%[89ab][0-9a-f]){0,2}(%[89ab]?)?/i.source+"|"+/%[0-9a-f]?/i.source+")$","i"),Ib=function(a,b){var c=Db(b);b=c.G;c.query.length&&(b+="?"+c.query.join(""));c.j.length&&(b+="#"+c.j.join(""));var d="";b.length>2E3&&(d=b,b=b.substr(0,2E3),b=b.replace(Hb,""),d=d.substr(b.length));var e=a.createElement("div");a=a.createElement("a"); 75c=Db(b);b=c.G;c.query.length&&(b+="?"+c.query.join(""));c.j.length&&(b+="#"+c.j.join(""));b=b===null?"null":b===void 0?"undefined":b;if(typeof b!=="string")throw Error("Expected a string");b=new B(b);b=cb(b);b!==void 0&&(a.href=b);e.appendChild(a);a=e.innerHTML;Za===void 0&&(Za=$a());a=(b=Za)?b.createHTML(a):a;a=new ab(a);if(e.nodeType===1&&(b=e.tagName,/^(script|style)$/i.test(b)))throw d=b.toLowerCase()==="script"?"Use setScriptTextContent with a SafeScript.":"Use setStyleTextContent with a SafeStyleSheet.", 76Error(d);if(a instanceof ab)a=a.qa;else throw Error("Unexpected type when unwrapping SafeHtml");e.innerHTML=a;b=String(e.firstChild.href);e.parentNode&&e.parentNode.removeChild(e);c=Db(b+d);d=c.G;c.query.length&&(d+="?"+c.query.join(""));c.j.length&&(d+="#"+c.j.join(""));return d},Jb=/^https?:\/\/[^\/%\\?#\s]+\/[^\s]*$/i;var Kb;var Lb=function(a,b,c,d){if(C[c+"EventListener"])C[c+"EventListener"](a,b,!1);else if(C[d+"tachEvent"])C[d+"tachEvent"]("on"+a,b)},Mb=function(){var a=D.readyState;return a==="complete"||a==="interactive"&&navigator.userAgent.indexOf("MSIE")==-1},Pb=function(a){var b=Nb;if(!Mb())try{b()}catch(c){}Ob(a)},Ob=function(a){if(Mb())a();else{var b=!1,c=function(){if(!b)return b=!0,a.apply(this,arguments)};C.addEventListener?(C.addEventListener("load",c,!1),C.addEventListener("DOMContentLoaded",c,!1)):C.attachEvent&& 77(C.attachEvent("onreadystatechange",function(){Mb()&&c.apply(this,arguments)}),C.attachEvent("onload",c))}},Qb=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},Rb={button:!0,div:!0,span:!0};var M={};M=E(C,"___jsl",F());E(M,"I",0);E(M,"hel",10);var Sb=function(a){return M.dpo?M.h:L(a,"jsh",M.h)},Tb=function(a){var b=E(M,"sws",[]);b.push.apply(b,a)},Ub=function(a){return E(M,"watt",F())[a]},Vb=function(a){var b=E(M,"PQ",[]);M.PQ=[];var c=b.length;if(c===0)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)},Wb=function(a){return E(E(M,"H",F()),a,F())},Xb=function(){var a=M.ms||M.u;if(a)return(new URL(a)).origin};var Yb=E(M,"perf",F()),Zb=E(Yb,"g",F()),$b=E(Yb,"i",F());E(Yb,"r",[]);F();F(); 78var ac=function(a,b,c){var d=Yb.r;typeof d==="function"?d(a,b,c):d.push([a,b,c])},N=function(a,b,c){Zb[a]=!b&&Zb[a]||c||(new Date).getTime();ac(a)},cc=function(a,b,c){b&&b.length>0&&(b=bc(b),c&&c.length>0&&(b+="___"+bc(c)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),c=b,b=E($b,"_p",F()),E(b,c,F())[a]=(new Date).getTime(),ac(a,"_p",c))},bc=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var dc=F(),O=[],P=function(a){throw Error("Bad hint: "+a);};O.push(["jsl",function(a){for(var b in a)if(G(a,b)){var c=a[b];typeof c=="object"?M[b]=E(M,b,[]).concat(c):E(M,b,c)}if(b=a.u)a=E(M,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var ec=/^(\/[a-zA-Z0-9_\-]+)+$/,fc=[/\/amp\//,/\/amp$/,/^\/amp$/],hc=/^[a-zA-Z0-9\-_\.,!]+$/,ic=/^gapi\.loaded_[0-9]+$/,jc=/^[a-zA-Z0-9,._-]+$/,nc=function(a,b,c,d,e){var f=a.split(";"),g=f.shift(),k=dc[g],h=null;k?h=k(f,b,c,d):P("no hint processor for: "+g);h||P("failed to generate load url");b=h;c=b.match(kc);(d=b.match(lc))&&d.length===1&&mc.test(b)&&c&&c.length===1||P("failed sanity: "+a);try{a="?";if(e&&e.length>0){c=b=0;for(d={};c<e.length;){var l=e[c++],m=ra(l)?"o"+(Object.prototype.hasOwnProperty.call(l, 79sa)&&l[sa]||(l[sa]=++ta)):(typeof l).charAt(0)+l;Object.prototype.hasOwnProperty.call(d,m)||(d[m]=!0,e[b++]=l)}e.length=b;h=h+"?le="+e.join(",");a="&"}if(M.rol){var n=M.ol;n&&n.length&&(h=""+h+a+"ol="+n.length)}}catch(q){}return h},qc=function(a,b,c,d){a=oc(a);ic.test(c)||P("invalid_callback");b=pc(b);d=d&&d.length?pc(d):null;var e=function(f){return encodeURIComponent(f).replace(/%2C/g,",")};return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=", 80e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.ba?"/am="+e(a.ba):"",a.sa?"/rs="+e(a.sa
80):"",a.va?"/t="+e(a.va):"","/cb=",e(c)].join("")},oc=function(a){a.charAt(0)!=="/"&&P("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||a.indexOf(".")==0)P("empty/relative directory");else if(a.indexOf("=")>0){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),g=decodeURIComponent(f[0]),k=decodeURIComponent(f[1]);f.length==2&&g&&k&& 81(a[g]=a[g]||k)}b="/"+c.join("/");ec.test(b)||P("invalid_prefix");c=0;for(d=fc.length;c<d;++c)fc[c].test(b)&&P("invalid_prefix");c=rc(a,"k",!0);d=rc(a,"am");e=rc(a,"rs");a=rc(a,"t");return{pathPrefix:b,version:c,ba:d,sa:e,va:a}},pc=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");jc.test(e)&&b.push(e)}return b.join(",")},rc=function(a,b,c){a=a[b];!a&&c&&P("missing: "+b);if(a){if(hc.test(a))return a;P("invalid: "+b)}return null},mc=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/, 82lc=/\/cb=/g,kc=/\/\//g;dc.m=function(a,b,c,d){(a=a[0])||P("missing_hint");return"https://apis.google.com"+qc(a,b,c,d)};var sc=decodeURI("%73cript"),tc=/^[-+_0-9\/A-Za-z]+={0,2}$/,uc=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&ob.call(b,e)<0&&c.push(e)}return c},vc=function(){var a=M.nonce;return a!==void 0?a&&a===String(a)&&a.match(tc)?a:M.nonce=null:D.querySelector?(a=D.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match(tc)?M.nonce=a:M.nonce=null):null:null},yc=function(a){if(D.readyState!="loading")wc(a);else{var b=vc(),c="";b!==null&&(c=' nonce="'+ 83b+'"');a="<"+sc+' src="'+encodeURI(a)+'"'+c+"></"+sc+">";D.write(xc?xc.createHTML(a):a)}},wc=function(a){var b=D.createElement(sc);b.setAttribute("src",xc?xc.createScriptURL(a):a);a=vc();a!==null&&b.setAttribute("nonce",a);b.async="true";(a=D.getElementsByTagName(sc)[0])?a.parentNode.insertBefore(b,a):(D.head||D.body||D.documentElement).appendChild(b)},Ac=function(a,b,c){zc(function(){var d=b===Sb(lb.href)?E(J,"_",F()):F();d=E(Wb(b),"_",d);a(d)},c)},Cc=function(a,b){var c=b||{};typeof b=="function"&& 84(c={},c.callback=b);var d=(b=c)&&b._c;if(d)for(var e=0;e<O.length;e++){var f=O[e][0],g=O[e][1];g&&G(d,f)&&g(d[f],a,b)}b=[];a?b=a.split(":"):c.features&&(b=c.features);if(!(a=c.h)&&(a=Sb(lb.href),!a))throw Error("Bad hint: !hint");Bc(b||[],c,a)},Bc=function(a,b,c){a=pb(a)||[];var d=b.callback,e=b.config,f=b.timeout,g=b.ontimeout,k=b.onerror,h=void 0;typeof k=="function"&&(h=k);var l=null,m=!1;if(f&&!g||!f&&g)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=E(Wb(c), 85"r",[]).sort();var n=E(Wb(c),"L",[]).sort(),q=M.le||[],v=[].concat(k),w=function(T,ma){if(m)return 0;C.clearTimeout(l);n.push.apply(n,t);var na=((J||{}).config||{}).update;na?na(e):e&&E(M,"cu",[]).push(e);if(ma){cc("me0",T,v);try{Ac(ma,c,h)}finally{cc("me1",T,v)}}return 1};f>0&&(l=C.setTimeout(function(){m=!0;g()},f));var t=uc(a,n);if(t.length){t=uc(a,k);var K=E(M,"CP",[]),Q=K.length;K[Q]=function(T){if(!T)return 0;cc("ml1",t,v);var ma=function(Ga){K[Q]=null;w(t,T)&&Vb(function(){d&&d();Ga()})},na= 86function(){var Ga=K[Q+1];Ga&&Ga()};Q>0&&K[Q-1]?K[Q]=function(){ma(na)}:ma(na)};if(t.length){var jb="loaded_"+M.I++;J[jb]=function(T){K[Q](T);J[jb]=null};a=nc(c,t,"gapi."+jb,k,q);k.push.apply(k,t);cc("ml0",t,v);b.sync||C.___gapisync?yc(a):wc(a)}else K[Q](mb)}else w(t)&&d&&d()},Dc;var Ec=null,Fc=A.trustedTypes;if(Fc&&Fc.createPolicy)try{Ec=Fc.createPolicy("gapi#gapi",{createHTML:ya,createScript:ya,createScriptURL:ya})}catch(a){A.console&&A.console.error(a.message)}Dc=Ec;var xc=Dc;var zc=function(a,b){if(M.hee&&M.hel>0)try{return a()}catch(c){b&&b(c),M.hel--,Cc("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;}};var Gc=J.load;Gc&&E(M,"ol",[]).push(Gc);J.load=function(a,b){return zc(function(){return Cc(a,b)})};var R=function(a){var b=window.___jsl=window.___jsl||{};b[a]=b[a]||[];return b[a]},Hc=function(a){var b=window.___jsl=window.___jsl||{};b.cfg=!a&&b.cfg||{};return b.cfg},Ic=function(a){return typeof a==="object"&&/\[native code\]/.test(a.push)},Jc=function(a,b,c){if(b&&typeof b==="object")for(var d in b)!Object.prototype.hasOwnProperty.call(b,d)||c&&d==="___goc"&&typeof b[d]==="undefined"||(
86a[d]&&b[d]&&typeof a[d]==="object"&&typeof b[d]==="object"&&!Ic(a[d])&&!Ic(b[d])?Jc(a[d],b[d]):b[d]&&typeof b[d]=== 87"object"?(a[d]=Ic(b[d])?[]:{},Jc(a[d],b[d])):a[d]=b[d])},Mc=function(a,b){if(a&&!/^\s+$/.test(a)){for(;a.charCodeAt(a.length-1)==0;)a=a.substring(0,a.length-1);var c=""+a,d=R("dm");d.push(20);try{var e=window.JSON.parse(a)}catch(g){}if(typeof e==="object")return d.push(21),e;try{e=window.JSON.parse("{"+a+"}")}catch(g){}if(typeof e==="object")return d.push(22),e;a=a.replace(RegExp("([^\"',{}\\s]+?)\\s*:\\s*(.*?)[,}\\s]","g"),function(g,k,h){h=h.startsWith('"')?"%DOUBLE_QUOTE%"+h.substring(1):h;h=h.endsWith('"')? 88h.slice(0,-1)+"%DOUBLE_QUOTE%":h;return"%DOUBLE_QUOTE%"+k+"%DOUBLE_QUOTE%:"+h});a=a.replace(/\\'/g,"%SINGLE_QUOTE%");a=a.replace(/"/g,'\\"');a=a.replace(/'/g,'"');a=a.replace(/%SINGLE_QUOTE%/g,"'");a=a.replace(/%DOUBLE_QUOTE%/g,'"');try{e=window.JSON.parse(a)}catch(g){}if(typeof e==="object")return d.push(23),e;try{e=window.JSON.parse("{"+a+"}")}catch(g){}if(typeof e==="object")return d.push(24),e;a=document.getElementsByTagName("script")||[];var f;a.length>0&&(f=a[0].nonce||a[0].getAttribute("nonce")); 89if(f&&f===b||!f&&Kc())if(e=Lc(c),d.push(25),typeof e==="object")return e;return{}}},Kc=function(){var a=window.location.hostname;return a?/(^|\.)(2mdn|ampproject|android|appspot|blogger|blogspot|chrome|chromium|doubleclick|gcpnode|ggpht|gmail|google|google-analytics|googleadservices|googleapis|googleapis-cn|googleoptimize|googlers|googlesource|googlesyndication|googletagmanager|googletagservices|googleusercontent|googlevideo|gstatic|tiltbrush|waze|withgoogle|youtube|ytimg)(\.com?|\.net|\.org)?(\.[a-z][a-z]|\.cat)?$/.test(a): 90!1},Lc=function(a){try{var b=(new Function("return ("+a+"\n)"))()}catch(c){}if(typeof b==="object")return b;try{b=(new Function("return ({"+a+"\n})"))()}catch(c){}return b},Nc=function(a,b){var c={___goc:void 0};a.length&&a[a.length-1]&&Object.hasOwnProperty.call(a[a.length-1],"___goc")&&typeof a[a.length-1].___goc==="undefined"&&(c=a.pop());Jc(c,b);a.push(c)},Oc=function(a){Hc(!0);var b=window.___gcfg,c=R("cu"),d=window.___gu;b&&b!==d&&(Nc(c,b),window.___gu=b);b=R("cu");var e=document.getElementsByTagName("script")|| 91[];d=[];var f=[];f.push.apply(f,R("us"));for(var g=0;g<e.length;++g)for(var k=e[g],h=0;h<f.length;++h)k.src&&k.src.indexOf(f[h])==0&&d.push(k);d.length==0&&e.length>0&&e[e.length-1].src&&d.push(e[e.length-1]);for(e=0;e<d.length;++e)d[e].getAttribute("gapi_processed")||(d[e].setAttribute("gapi_processed",!0),(f=d[e])?(g=f.no
91deType,f=g==3||g==4?f.nodeValue:f.textContent||""):f=void 0,g=d[e].nonce||d[e].getAttribute("nonce"),(f=Mc(f,g))&&b.push(f));a&&Nc(c,a);d=R("cd");a=0;for(b=d.length;a<b;++a)Jc(Hc(), 92d[a],!0);d=R("ci");a=0;for(b=d.length;a<b;++a)Jc(Hc(),d[a],!0);a=0;for(b=c.length;a<b;++a)Jc(Hc(),c[a],!0)},S=function(a){var b=Hc();if(!a)return b;a=a.split("/");for(var c=0,d=a.length;b&&typeof b==="object"&&c<d;++c)b=b[a[c]];return c===a.length&&b!==void 0?b:void 0},Pc=function(a,b){var c;if(typeof a==="string"){var d=c={};a=a.split("/");for(var e=0,f=a.length;e<f-1;++e){var g={};d=d[a[e]]=g}d[a[e]]=b}else c=a;Oc(c)};var Qc=function(){var a=window.__GOOGLEAPIS;a&&(a.googleapis&&!a["googleapis.config"]&&(a["googleapis.config"]=a.googleapis),E(M,"ci",[]).push(a),window.__GOOGLEAPIS=void 0)};var Rc={callback:1,clientid:1,cookiepolicy:1,openidrealm:-1,includegrantedscopes:-1,requestvisibleactions:1,scope:1},Sc=!1,Tc=F(),Uc=function(){if(!Sc){for(var a=document.getElementsByTagName("meta"),b=0;b<a.length;++b){var c=a[b].name.toLowerCase();if(c.lastIndexOf("google-signin-",0)==0){c=c.substring(14);var d=a[b].content;Rc[c]&&d&&(Tc[c]=d)}}if(window.self!==window.top){a=document.location.toString();for(var e in Rc)Rc[e]>0&&(b=L(a,e,""))&&(Tc[e]=b)}Sc=!0}e=F();H(Tc,e);return e},Vc=function(a){return!!(a.clientid&& 93a.scope&&a.callback)};var Wc=function(){this.i=window.console};Wc.prototype.log=function(a){this.i&&this.i.log&&this.i.log(a)};Wc.prototype.error=function(a){this.i&&(this.i.error?this.i.error(a):this.i.log&&this.i.log(a))};Wc.prototype.warn=function(a){this.i&&(this.i.warn?this.i.warn(a):this.i.log&&this.i.log(a))};Wc.prototype.debug=function(){};var Xc=new Wc;var Yc=function(){return!!M.oa},Zc=function(){};var U=E(M,"rw",F()),$c=function(a){for(var b in U)a(U[b])},ad=function(a,b){(a=U[a])&&a.state<b&&(a.state=b)};var V=function(a){var b=window.___jsl=window.___jsl||{};b.cfg=b.cfg||{};b=b.cfg;if(!a)return b;a=a.split("/");for(var c=0,d=a.length;b&&typeof b==="object"&&c<d;++c)b=b[a[c]];return c===a.length&&b!==void 0?b:void 0};var bd=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,cd=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/b\/(\d{10,21})\//,dd=function(){var a=V("googleapis.config/sessionIndex");"string"===typeof a&&a.length>254&&(a=null);a==null&&(a=window.__X_GOOG_AUTHUSER);"string"===typeof a&&a.length>254&&(a=null);if(a==null){var b=window.google;b&&(a=b.authuser)}"string"===typeof a&&a.length>254&&(a=null);a==null&&(b=window.location.href,a=L(b,"authuser")|| 94null,a==null&&(a=(a=b.match(bd))?a[1]:null));if(a==null)return null;a=String(a);a.length>254&&(a=null);return a},ed=function(){var a=V("googleapis.config/sessionDelegate");"string"===typeof a&&a.length>21&&(a=null);a==null&&(a=(a=window.location.href.match(cd))?a[1]:null);if(a==null)return null;a=String(a);a.length>21&&(a=null);return a};var fd,gd,hd=void 0,W=function(a){try{return A.JSON.parse.call(A.JSON,a)}catch(b){return!1}},X=function(a){return Object.prototype.toString.call(a)},id=X(0),jd=X(new Date(0)),kd=X(!0),ld=X(""),md=X({}),nd=X([]),od=function(a,b){if(b)for(var c=0,d=b.length;c<d;++c)if(a===b[c])throw new TypeError("Converting circular structure to JSON");d=typeof a;if(d!=="undefined"){c=Array.prototype.slice.call(b||[],0);c[c.length]=a;b=[];var e=X(a);if(a!=null&&typeof a.toJSON==="function"&&(Object.prototype.hasOwnProperty.call(a, 95"toJSON")||(e!==nd||a.constructor!==Array&&a.constructor!==Object)&&(e!==md||a.constructor!==Array&&a.constructor!==Object)&&e!==ld&&e!==id&&e!==kd&&e!==jd))return od(a.toJSON.call(a),c);if(a==null)b[b.length]="null";else if(e===id)a=Number(a),isNaN(a)||isNaN(a-a)?a="null":a===-0&&1/a<0&&(a="-0"),b[b.length]=String(a);else if(e===kd)b[b.length]=String(!!Number(a));else{if(e===jd)return od(a.toISOString.call(a),c);if(e===nd&&X(a.length)===id){b[b.length]="[";var f=0;for(d=Number(a.length)>>0;f<d;++f)f&& 96(b[b.length]=","),b[b.length]=od(a[f],c)||"null";b[b.length]="]"}else if(e==ld&&X(a.length)===id){b[b.length]='"';f=0;for(c=Number(a.length)>>0;f<c;++f)d=String.prototype.charAt.call(a,f),e=String.prototype.charCodeAt.call(a,f),b[b.length]=d==="\b"?"\\b":d==="\f"?"\\f":d==="\n"?"\\n":d==="\r"?"\\r":d==="\t"?"\\t":d==="\\"||d==='"'?"\\"+d:e<=31?"\\u"+(e+65536).toString(16).substr(1):e>=32&&e<=65535?d:"\ufffd";b[b.length]='"'}else if(d==="object"){b[b.length]="{";d=0;for(f in a)Object.prototype.hasOwnProperty.call(a,
97f)&&(e=od(a[f],c),e!==void 0&&(d++&&(b[b.length]=","),b[b.length]=od(f),b[b.length]=":",b[b.length]=e));b[b.length]="}"}else return}return b.join("")}},pd=/[\0-\x07\x0b\x0e-\x1f]/,qd=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*[\0-\x1f]/,rd=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\[^\\\/"bfnrtu]/,sd=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\u([0-9a-fA-F]{0,3}[^0-9a-fA-F])/,td=/"([^\0-\x1f\\"]|\\[\\\/"bfnrt]|\\u[0-9a-fA-F]{4})*"/g,ud=/-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][-+]?[0-9]+)?/g,vd=/[ \t\n\r]+/g, 98wd=/[^"]:/,xd=/""/g,yd=/true|false|null/g,zd=/00/,Ad=/[\{]([^0\}]|0[^:])/,Bd=/(^|\[)[,:]|[,:](\]|\}|[,:]|$)/,Cd=/[^\[,:][\[\{]/,Dd=/^(\{|\}|\[|\]|,|:|0)+/,Ed=/\u2028/g,Fd=/\u2029/g,Gd=function(a){a=String(a);if(pd.test(a)||qd.test(a)||rd.test(a)||sd.test(a))return!1;var b=a.replace(td,'""');b=b.replace(ud,"0");b=b.replace(vd,"");if(wd.test(b))return!1;b=b.replace(xd,"0");b=b.replace(yd,"0");if(zd.test(b)||Ad.test(b)||Bd.test(b)||Cd.test(b)||!b||(b=b.replace(Dd,"")))return!1;a=a.replace(Ed,"\\u2028").replace(Fd, 99"\\u2029");b=void 0;try{b=hd?[W(a)]:eval("(function (var_args) {\n return Array.prototype.slice.call(arguments, 0);\n})(\n"+a+"\n)")}catch(c){return!1}return b&&b.length===1?b[0]:!1},Hd=function(){var a=((A.document||{}).scripts||[]).length;if((fd===void 0||hd===void 0||gd!==a)&&gd!==-1){fd=hd=!1;gd=-1;try{try{hd=!!A.JSON&&A.JSON.stringify.call(A.JSON,{a:[3,!0,new Date(0)],c:function(){}})==='{"a":[3,true,"1970-01-01T00:00:00.000Z"]}'&&W("true")===!0&&W('[{"a":3}]')[0].a===3}catch(b){}fd=hd&&!W("[00]")&& 100!W('"\u0007"')&&!W('"\\0"')&&!W('"\\v"')}finally{gd=a}}},Id=function(a){if(gd===-1)return!1;Hd();return(fd?W:Gd)(a)},Jd=function(a){if(gd!==-1)return Hd(),hd?A.JSON.stringify.call(A.JSON,a):od(a)},Kd=!Date.prototype.toISOString||typeof Date.prototype.toISOString!=="function"||(new Date(0)).toISOString()!=="1970-01-01T00:00:00.000Z",Ld=function(){var a=Date.prototype.getUTCFullYear.call(this);return[a<0?"-"+String(1E6-a).substr(1):a<=9999?String(1E4+a).substr(1):"+"+String(1E6+a).substr(1),"-",String(101+ 101Date.prototype.getUTCMonth.call(this)).substr(1),"-",String(100+Date.prototype.getUTCDate.call(this)).substr(1),"T",String(100+Date.prototype.getUTCHours.call(this)).substr(1),":",String(100+Date.prototype.getUTCMinutes.call(this)).substr(1),":",String(100+Date.prototype.getUTCSeconds.call(this)).substr(1),".",String(1E3+Date.prototype.getUTCMilliseconds.call(this)).substr(1),"Z"].join("")};Date.prototype.toISOString=Kd?Ld:Date.prototype.toISOString;var Md=function(a){this.ga=a;this.count=this.count=0},Nd=function(a,b,c){b?a.count+=b:a.count++;a.ga&&(c===void 0||c)&&a.ga()};Md.prototype.get=function(){return this.count};Md.prototype.reset=function(){this.count=0};var Pd=function(){var a=!0,b=this;a=a===void 0?!0:a;this.L=new Map;this.R=!1;this.xa="/js/gen_204";var c=Xb();c&&(this.url=""+c+this.xa,c=V("gen204logger")||{},this.V=c.interval,this.ha=c.rate,this.R=c.Pa,a&&this.url&&Od(this),document.addEventListener("visibilitychange",this.flush),this.flush(),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&b.flush()}),document.addEventListener("pagehide",this.flush.bind(this)))},Rd=function(a){var b=M.dm||[];if(b&&b.length!== 1020){b=x(b);for(var c=b.next();!c.done;c=b.next())Nd(Qd(a,c.value),1,!1);delete M.dm;a.flush()}},Qd=function(a,b){a.L.has(b)||a.L.set(b,new Md(a.R?void 0:function(){a.flush()}));return a.L.get(b)}; 103Pd.prototype.flush=function(){var a=this;if(this.url&&this.ha){Rd(this);for(var b="",c=x(this.L),d=c.next();!d.done;d=c.next()){var e=x(d.value);d=e.next().value;e=e.next().value;var f=e.get();f>0&&(b+=b.length>0?"&":"",b+="c=",b+=encodeURIComponent(d+":"+f),e.reset());if(b.length>1E3)break}if(b!==""&&Math.random()<this.ha){try{var g=AbortSignal.timeout(3E4)}catch(k){g=void 0}fetch(this.url+"?"+b,{method:"GET",mode:"no-cors",signal:g}).catch(function(){}).finally(function(){Od(a)})}}}; 104Pd.prototype.setInterval=function(a){this.V=a};var Od=function(a){a.V&&a.R&&setTimeout(function(){a.flush()},a.V)};var Y=function(){this.blockSize=-1;this.blockSize=64;this.g=[];this.S=[];this.ya=[];this.N=[];this.N[0]=128;for(var a=1;a<this.blockSize;++a)this.N[a]=0;this.O=this.B=0;this.reset()},Sd=function(){this.blockSize=-1};Y.prototype=aa(Sd.prototype);Y.prototype.constructor=Y;if(ia)ia(Y,Sd);else for(var Td in Sd)if(Td!="prototype")if(Object.defineProperties){var Ud=Object.getOwnPropertyDescriptor(Sd,Td);Ud&&Object.defineProperty(Y,Td,Ud)}else Y[Td]=Sd[Td];Y.Na=Sd.prototype; 105Y.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.g[4]=3285377520;this.O=this.B=0}; 106var Vd=function(a,b,c){c||(c=0);var d=a.ya;if(typeof b==="string")for(var e=0;e<16;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;e<16;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(b=16;b<80;b++)c=d[b-3]^d[b-8]^d[b-14]^d[b-16],d[b]=(c<<1|c>>>31)&4294967295;b=a.g[0];c=a.g[1];e=a.g[2];for(var f=a.g[3],g=a.g[4],k,h,l=0;l<80;l++)l<40?l<20?(k=f^c&(e^f),h=1518500249):(k=c^e^f,h=1859775393):l<60?(k=c&e|f&(c|e),h=2400959708):(k=c^e^f,h= 1073395469782),k=(b<<5|b>>>27)+k+g+h+d[l]&4294967295,g=f,f=e,e=(c<<30|c>>>2)&4294967295,c=b,b=k;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+c&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295;a.g[4]=a.g[4]+g&4294967295}; 108Y.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.S,f=this.B;d<b;){if(f==0)for(;d<=c;)Vd(this,a,d),d+=this.blockSize;if(typeof a==="string")for(;d<b;
108){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Vd(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Vd(this,e);f=0;break}}this.B=f;this.O+=b}}; 109Y.prototype.digest=function(){var a=[],b=this.O*8;this.B<56?this.update(this.N,56-this.B):this.update(this.N,this.blockSize-(this.B-56));for(var c=this.blockSize-1;c>=56;c--)this.S[c]=b&255,b/=256;Vd(this,this.S);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.g[c]>>d&255,++b;return a};var Wd=function(){this.Z=new Y};Wd.prototype.reset=function(){this.Z.reset()};var Xd=C.crypto,Yd=!1,Zd=0,$d=0,ae=1,be=0,ce="",de=function(a){a=a||C.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;ae=ae*b%be;Zd>0&&++$d==Zd&&Lb("mousemove",de,"remove","de")},ee=function(a){var b=new Wd;a=unescape(encodeURIComponent(a));for(var c=[],d=a.length,e=0;e<d;++e)c.push(a.charCodeAt(e));b.Z.update(c);b=b.Z.digest();a="";for(c=0;c<b.length;c++)a+="0123456789ABCDEF".charAt(Math.floor(b[c]/16))+"0123456789ABCDEF".charAt(b[c]%16);return a}; 110Yd=!!Xd&&typeof Xd.getRandomValues=="function";Yd||(be=(screen.width*screen.width+screen.height)*1E6,ce=ee(D.cookie+"|"+D.location+"|"+(new Date).getTime()+"|"+Math.random()),Zd=V("random/maxObserveMousemove")||0,Zd!=0&&Lb("mousemove",de,"add","at"));var fe=function(){var a=M.onl;if(!a){a=F();M.onl=a;var b=F();a.e=function(c){var d=b[c];d&&(delete b[c],d())};a.a=function(c,d){b[c]=d};a.r=function(c){delete b[c]}}return a},ge=function(a,b){b=b.onload;return typeof b==="function"?(fe().a(a,b),b):null},he=function(a){I(/^\w+$/.test(a),"Unsupported id - "+a);return'onload="window.___jsl.onl.e("'+a+'")"'},ie=function(a){fe().r(a)};var je={allowtransparency:"true",frameborder:"0",hspace:"0",marginheight:"0",marginwidth:"0",scrolling:"no",style:"",tabindex:"0",vspace:"0",width:"100%"},ke={allowtransparency:!0,onload:!0},le=0,me=function(a){I(!a||Jb.test(a),"Illegal url for new iframe - "+a)},ne=function(a,b,c,d,e){me(c.src);var f,g=ge(d,c),k=g?he(d):"";try{document.all&&(f=a.createElement('<iframe frameborder="'+vb(String(c.frameborder))+'" scrolling="'+vb(String(c.scrolling))+'" '+k+' name="'+vb(String(c.name))+'"/>'))}catch(l){}finally{f|| 111(f=(a?new kb(ib(a)):Aa||(Aa=new kb)).createElement("IFRAME"),g&&(f.onload=function(){f.onload=null;g.call(this)},ie(d)))}f.setAttribute("ng-non-bindable","");for(var h in c)a=c[h],h==="style"&&typeof a==="object"?H(a,f.style):ke[h]||f.setAttribute(h,String(a));(h=e&&e.beforeNode||null)||e&&e.dontclear||Qb(b);b.insertBefore(f,h);f=h?h.previousSibling:b.lastChild;c.allowtransparency&&(f.allowTransparency=!0);return f};var oe=/^:[\w]+$/,pe=/:([a-zA-Z_]+):/g,qe=function(){var a=dd()||"0",b=ed();var c=dd()||a;var d=ed(),e="";c&&(e+="u/"+encodeURIComponent(String(c))+"/");d&&(e+="b/"+encodeURIComponent(String(d))+"/");c=e||null;(e=(d=V("isLoggedIn")===!1)?"_/im/":"")&&(c="");var f=V("iframes/:socialhost:"),g=V("iframes/:im_socialhost:");return Kb={socialhost:f,ctx_socialhost:d?g:f,session_index:a,session_delegate:b,session_prefix:c,im_prefix:e}},re=function(a,b){return qe()[b]||""},se=function(a){return function(b, 112c){return a?qe()[c]||a[c]||"":qe()[c]||""}};var te=function(a){var b;a.match(/^https?%3A/i)&&(b=decodeURIComponent(a));a=b?b:a;return Ib(document,a)},ue=function(a){a=a||"canonical";for(var b=document.getElementsByTagName("link"),c=0,d=b.length;c<d;c++){var e=b[c],f=e.getAttribute("rel");if(f&&f.toLowerCase()==a&&(e=e.getAttribute("href"))&&(e=te(e))&&e.match(/^https?:\/\/[\w\-_\.]+/i)!=null)return e}return window.location.href};var ve={se:"0"},we={post:!0},xe={style:"position:absolute;top:-10000px;width:450px;margin:0px;border-style:none"},ye="onPlusOne _ready _close _open _resizeMe _renderstart oncircled drefresh erefresh".split(" "),ze=E(M,"WI",F()),Ae=function(a,b,c){var d;var e={};var f=d=a;a=="plus"&&b.action&&(d=a+"_"+b.action,f=a+"/"+b.action);(d=S("iframes/"+d+"/url"))||(d=":im_socialhost:/:session_prefix::im_prefix:_/widget/render/"+f+"?usegapi=1");for(var g in ve)e[g]=g+"/"+(b[g]||ve[g])+"/";e=Ib(D,d.replace(pe, 113se(e)));g="iframes/"+a+"/params/";f={};H(b,f);(d=S("lang")||S("gwidget/lang"))&&(f.hl=d);we[a]||(f.origin=window.location.origin||window.location.protocol+"//"+window.location.host);f.exp=S(g+"exp");if(g=S(g+"location"))for(d=0;d<g.length;d++){var k=g[d];f[k]=C.location[k]}switch(a){case "plus":case "follow":g=f.href;d=b.action?void 0:"publisher";g=(g=typeof g=="string"?g:void 0)?te(g):ue(d);f.url=g;delete f.href;break;case "plusone":g=(g=b.href)?te(g):ue();f.url=g;g=b.db;d=S();g==null&&d&&(g=d.db, 114g==null&&(g=d.gwidget&&d.gwidget.db));f.db=g||void 0;g=b.ecp;d=S();g==null&&d&&(g=d.ecp,g==null&&(g=d.gwidget&&d.gwidget.ecp));f.ecp=g||void 0;delete f.href;break;case "signin":f.url=ue()}M.ILI&&(f.iloader="1");delete f["data-onload"];delete f.rd;for(var h in ve)f[h]&&delete f[h];f.gsrc=S("iframes/:source:");h=S("inline/css");typeof h!=="undefined"&&c>0&&h>=c&&(f.ic="1");h=/^#|^fr-/;c={};for(var l in f)G(f,l)&&h.test(l)&&(c[l.replace(h,"")]=f[l],delete f[l]);l=S("iframes/"+a+"/params/si")=="q"?f: 115c;h=Uc();for(var m in h)!G(h,m)||G(f,m)||G(c,m)||(l[m]=h[m]);m=[].concat(ye);(l=S("iframes/"+a+"/methods"))&&typeof l==="object"&&nb.test(l.push)&&(m=m.concat(l));for(var n in b)G(b,n)&&/^on/.test(n)&&(a!="plus"||n!="onconnect")&&(m.push(n),delete f[n]);delete f.callback;c._methods=m.join(",");return Gb(e,f,c)},Be=["style","data-gapiscan"],De=function(a){for(var b=F(),c=a.nodeName.toLowerCase().indexOf("g:")!=0,d=a.attributes.length,e=0;e<d;e++){var f=a.attributes[e],g=f.name,k=f.value;ob.call(Be, 116g)>
116=0||c&&g.indexOf("data-")!=0||k==="null"||"specified"in f&&!f.specified||(c&&(g=g.substr(5)),b[g.toLowerCase()]=k)}a=a.style;(c=Ce(a&&a.height))&&(b.height=String(c));(a=Ce(a&&a.width))&&(b.width=String(a));return b},Ce=function(a){var b=void 0;typeof a==="number"?b=a:typeof a==="string"&&(b=parseInt(a,10));return b},Ge=function(){var a=M.drw;$c(function(b){if(a!==b.id&&b.state!=4&&b.type!="share"){var c=b.id,d=b.type,e=b.url;b=b.userParams;var f=D.getElementById(c);if(f){var g=Ae(d,b,0);g?(f= 117f.parentNode,Ee(e)!==Ee(g)&&(b.dontclear=!0,b.rd=!0,b.ri=!0,b.type=d,Fe(f,b),(d=U[f.lastChild.id])&&(d.oid=c),ad(c,4))):delete U[c]}else delete U[c]}})},Ee=function(a){var b=RegExp("(\\?|&)ic=1");return a.replace(/#.*/,"").replace(b,"")};var Xa=ka(["data-"]),He,Ie,Je,Ke,Le,Me=/(?:^|\s)g-((\S)*)(?:$|\s)/,Ne={plusone:!0,autocomplete:!0,profile:!0,signin:!0,signin2:!0};He=E(M,"SW",F());Ie=E(M,"SA",F());Je=E(M,"SM",F());Ke=E(M,"FW",[]);Le=null; 118var Oe=function(a,b){return(typeof a==="string"?document.getElementById(a):a)||b},Qe=function(a,b){Pe(void 0,!1,a,b)},Pe=function(a,b,c,d){N("ps0",!0);c=Oe(c,D);var e=D.documentMode;if(c.querySelectorAll&&(!e||e>8)){e=d?[d]:wb(He).concat(wb(Ie)).concat(wb(Je));for(var f=[],g=0;g<e.length;g++){var k=e[g];f.push(".g-"+k,"g\\:"+k)}e=c.querySelectorAll(f.join(","))}else e=c.getElementsByTagName("*");c=F();for(f=0;f<e.length;f++){g=e[f];var h=g;k=d;var l=h.nodeName.toLowerCase(),m=void 0;if(h.hasAttribute("data-gapiscan"))k= 119null;else{var n=l.indexOf("g:");n==0?m=l.substr(2):(n=(n=String(h.className||h.getAttribute("class")))&&Me.exec(n))&&(m=n[1]);k=!m||!(He[m]||Ie[m]||Je[m])||k&&m!==k?null:m}k&&(Ne[k]||g.nodeName.toLowerCase().indexOf("g:")==0||wb(De(g)).length!=0)&&(gb(g),E(c,k,[]).push(g))}if(b)for(var q in c)for(b=c[q],d=0;d<b.length;d++)b[d].setAttribute("data-onload",!0);for(var v in c)Ke.push(v);N("ps1",!0);if((q=Ke.join(":"))||a)try{J.load(q,a)}catch(t){Xc.log(t);return}if(Re(Le||{}))for(var w in c){a=c[w];v= 1200;for(b=a.length;v<b;v++)a[v].removeAttribute("data-gapiscan");Se(w)}else{d=[];for(w in c)for(a=c[w],v=0,b=a.length;v<b;v++)e=a[v],Te(w,e,De(e),d,b);Ue(q,d)}},Ve=function(a){var b=E(J,a,{});b.go||(b.go=function(c){return Qe(c,a)},b.render=function(c,d){d=d||{};d.type=a;return Fe(c,d)})},We=function(a){He[a]=!0},Xe=function(a){Ie[a]=!0},Ye=function(a){Je[a]=!0};var Se=function(a,b){var c=Ub(a);b&&c?(c(b),(c=b.iframeNode)&&c.setAttribute("data-gapiattached",!0)):J.load(a,function(){var d=Ub(a),e=b&&b.iframeNode,f=b&&b.userParams;e&&d?(d(b),e.setAttribute("data-gapiattached",!0)):(d=J[a].go,a=="signin2"?d(e,f):d(e&&e.parentNode,f))})},Re=function(){return!1},Ue=function(){},Te=function(a,b,c,d,e,f){switch(Ze(b,a,f)){case 0:a=Je[a]?a+"_annotation":a;d={};d.iframeNode=b;d.userParams=c;Se(a,d);break;case 1:if(b.parentNode){for(var g in c){if(f=G(c,g))f=c[g], 121f=!!f&&typeof f==="object"&&(!f.toString||f.toString===Object.prototype.toString||f.toString===Array.prototype.toString);if(f)try{c[g]=Jd(c[g])}catch(K){delete c[g]}}var k=!0;c.dontclear&&(k=!1);delete c.dontclear;Zc();f=Ae(a,c,e);g={allowPost:1,attributes:xe};g.dontclear=!k;e={};e.userParams=c;e.url=f;e.type=a;if(c.rd)var h=b;else h=document.createElement("div"),b.dataset.gapistub=!0,h.style.cssText="position:absolute;width:450px;left:-10000px;",b.parentNode.insertBefore(h,b);e.siteElement=h;h.id|| 122(b=h,E(ze,a,0),k="___"+a+"_"+ze[a]++,b.id=k);b=F();b[">type"]=a;H(c,b);k=f;c=h;f=g||{};b=f.attributes||{};I(!(f.allowPost||f.forcePost)||!b.onload,"onload is not supported by post iframe (allowPost or forcePost)");g=b=k;oe.test(b)&&(g=V("iframes/"+g.substring(1)+"/url"),I(!!g,"Unknown iframe url config for - "+b));k=Ib(D,g.replace(pe,re));b=c.ownerDocument||D;h=0;do g=f.id||["I",le++,"_",(new Date).getTime()].join("");while(b.getElementById(g)&&++h<5);I(h<5,"Error creating iframe id");h={};var l= 123{};b.documentMode&&b.documentMode<9&&(h.hostiemode=b.documentMode);H(f.queryParams||{},h);
123H(f.fragmentParams||{},l);var m=f.pfname;var n=F();V("iframes/dropLegacyIdParam")||(n.id=g);n._gfid=g;n.parent=b.location.protocol+"//"+b.location.host;var q=L(b.location.href,"parent");m=m||"";!m&&q&&(q=L(b.location.href,"_gfid","")||L(b.location.href,"id",""),m=L(b.location.href,"pfname",""),m=q?m+"/"+q:"");m||(q=Id(L(b.location.href,"jcp","")))&&typeof q=="object"&&(m=(m=q.id)?q.pfname+"/"+m:"");n.pfname= 124m;f.connectWithJsonParam&&(q={},q.jcp=Jd(n),n=q);q=L(k,"rpctoken")||h.rpctoken||l.rpctoken;if(!q){if(!(q=f.rpctoken)){q=String;m=Math;var v=m.round,w=Qd;Pd.la||(Pd.la=new Pd);Nd(w(Pd.la,50));Yd?(w=new C.Uint32Array(1),Xd.getRandomValues(w),w=Number("0."+w[0])):(w=ae,w+=parseInt(ce.substr(0,20),16),ce=ee(ce),w/=be+1.2089258196146292E24);q=q(v.call(m,w*1E8))}n.rpctoken=q}f.rpctoken=q;H(n,f.connectWithQueryParams?h:l);q=b.location.href;n=F();(m=L(q,"_bsh",M.bsh))&&(n._bsh=m);(q=Sb(q))&&(n.jsh=q);f.hintInFragment? 125H(n,l):H(n,h);k=Gb(k,h,l,f.paramsSerializer);l=F();H(je,l);H(f.attributes,l);l.name=l.id=g;l.src=k;f.eurl=k;h=f||{};n=!!h.allowPost;if(h.forcePost||n&&k.length>2E3){h=Db(k);l.src="";f.dropDataPostorigin||(l["data-postorigin"]=k);k=ne(b,c,l,g);if(navigator.userAgent.indexOf("WebKit")!=-1){var t=k.contentWindow.document;t.open();l=t.createElement("div");n={};q=g+"_inner";n.name=q;n.src="";n.style="display:none";ne(b,l,n,q,f)}l=(f=h.query[0])?f.split("&"):[];f=[];for(n=0;n<l.length;n++)q=l[n].split("=", 1262),f.push([decodeURIComponent(q[0]),decodeURIComponent(q[1])]);h.query=[];l=Eb(h);I(Jb.test(l),"Invalid URL: "+l);h=b.createElement("form");h.method="POST";h.target=g;h.style.display="none";g=cb(l);g!==void 0&&(h.action=g);for(g=0;g<f.length;g++)l=b.createElement("input"),l.type="hidden",l.name=f[g][0],l.value=f[g][1],h.appendChild(l);c.appendChild(h);h.submit();h.parentNode.removeChild(h);t&&t.close();t=k}else t=ne(b,c,l,g,f);e.iframeNode=t;e.id=t.getAttribute("id");t=e.id;c=F();c.id=t;c.userParams= 127e.userParams;c.url=e.url;c.type=e.type;c.state=1;U[t]=c;t=e}else t=null;t&&((e=t.id)&&d.push(e),Se(a,t))}},Ze=function(a,b,c){if(a&&a.nodeType===1&&b){if(c)return 1;if(Je[b]){if(Rb[a.nodeName.toLowerCase()])return(a=a.innerHTML)&&a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")?0:1}else{if(Ie[b])return 0;if(He[b])return 1}}return null},Fe=function(a,b){var c=b.type;delete b.type;var d=Oe(a);if(d){a={};for(var e in b)G(b,e)&&(a[e.toLowerCase()]=b[e]);a.rd=1;(b=!!a.ri)&&delete a.ri;e=[];Te(c,d,a,e,0,b);Ue(c, 128e)}else Xc.log("gapi."+c+".render: missing element "+typeof a==="string"?a:"")};E(J,"platform",{}).go=Qe;Re=function(a){for(var b=["_c","jsl","h"],c=0;c<b.length&&a;c++)a=a[b[c]];b=Sb(lb.href);return!a||a.indexOf("n;")!=0&&b.indexOf("n;")!=0&&a!==b};Ue=function(a,b){$e(a,b)};var Nb=function(a){Pe(a,!0)},af=function(a,b){b=b||[];for(var c=0;c<b.length;++c)a(b[c]);for(a=0;a<b.length;a++)Ve(b[a])}; 129O.push(["platform",function(a,b,c){Le=c;(b||c.features)&&Ke.push(b||c.features.join(":"));af(We,a);af(Xe,c._c.annotation);af(Ye,c._c.bimodal);Qc();Oc();if(S("parsetags")!="explicit"){Tb(a);Vc(Uc())&&!S("disableRealtimeCallback")&&Zc();if(c&&(a=c.callback)){var d=xb(a);delete c.callback}Pb(function(){Nb(d)})}}]);J._pl=!0;var bf=function(a){a=(a=U[a])?a.oid:void 0;if(a){var b=D.getElementById(a);b&&b.parentNode.removeChild(b);delete U[a];bf(a)}};var cf=/^\{h:'/,df=/^!_/,ef="",$e=function(a,b){function c(){Lb("message",d,"remove","de")}function d(f){var g=f.data,k=f.origin;if(ff(g,b)){var h=e;e=!1;h&&N("rqe");gf(a,function(){h&&N("rqd");c();for(var l=E(M,"RPMQ",[]),m=0;m<l.length;m++)l[m]({data:g,origin:k})})}}if(b.length!==0){ef=L(lb.href,"pfname","");var e=!0;Lb("message",d,"add","at");Cc(a,c)}},ff=function(a,b){a=String(a);if(cf.test(a))return!0;var c=!1;df.test(a)&&(c=!0,a=a.substr(2));if(!/^\{/.test(a))return!1;var d=Id(a);if(!d)return!1; 130a=d.f;if(d.s&&a&&ob.call(b,a)!=-1){if(d.s==="_renderstart"||d.s===ef+"/"+a+"::_renderstart")if(d=d.a&&d.a[c?0:1],b=D.getElementById(a),ad(a,2),d&&b&&d.width&&d.height){a:{c=b.parentNode;a=d||{};var e;if(Yc()&&(e=b.id)){d=(d=U[e])?d.state:void 0;if(d===1||d===4)break a;bf(e)}(d=c.nextSibling)&&d.dataset&&d.dataset.gapistub&&(c.parentNode.removeChild(d),c.style.cssText="");d=a.width;var f=a.height,g=c.style;g.textIndent="0";g.margin="0";g.padding="0";g.background="transparent";g.borderStyle="none"; 131g.cssFloat="none";g.styleFloat="none";g.lineHeight="normal";g.fontSize="1px";g.verticalAlign="baseline";c=c.style;c.display="inline-block";g=b.style;g.position="static";g.left="0";g.top="0";g.visibility="visible";d&&(c.width=g.width=d+"px");f&&(c.height=g.height=f+"px");a.verticalAlign&&(c.verticalAlign=a.verticalAlign);e&&ad(e,3)}b["data-csi-wdt"]=(new Date).getTime()}return!0}return!1},gf=function(a,b){Cc(a,b)};var hf=function(a,b){this.X=a;a=b||{};this.Da=Number(a.maxAge)||0;this.fa=a.domain;this.ma=a.path;this.Ia=!!a.secure};hf.prototype.read=function(){for(var a=this.X+"=",b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c];if(d.indexOf(a)==0)return d.substr(a.length)}}; 132hf.prototype.write=function(a,b){if(!jf.test(this.X))throw"Invalid cookie name";if(!kf.test(a))throw"Invalid cookie value";a=this.X+"="+a;this.fa&&(a+=";domain="+this.fa);this.ma&&(a+=";path="+this.ma);b=typeof b==="number"?b:this.Da;if(b>=0){var c=new Date;c.setSeconds(c.getSeconds()+b);a+=";expires="+c.toUTCString()}this.Ia&&(a+=";secure");document.cookie=a;return!0};hf.prototype.clear=function(){this.write("",0)};var kf=/^[-+/_=.:|%&a-zA-Z0-9@]*$/,jf=/^[A-Z_][A-Z0-9_]{0,63}$/; 133hf.iterate=function(a){for(var b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c].split("="),e=d.shift();a(e,d.join("="))}};var lf=function(a){this.M=a};lf.prototype.read=function(){if(Z.hasOwnProperty(this.M))return Z[this.M]};lf.prototype.write=function(a){Z[this.M]=a;return!0};lf.prototype.clear=function(){delete Z[this.M]};var Z={};lf.iterate=function(a){for(var b in Z)Z.hasOwnProperty(b)&&a(b,Z[b])};var mf=window.location.protocol==="https:",nf=mf||window.location.protocol==="http:"?hf:lf,of=function(a){var b=a.substr(1),c="",d=window.location.hostname;if(b!==""){c=parseInt(b,10);if(isNaN(c))return null;b=d.split(".");if(b.length<c-1)return null;
133b.length==c-1&&(d="."+d)}else d="";return{l:a.charAt(0)=="S",domain:d,A:c}},pf=function(){var a,b=null;nf.iterate(function(c,d){c.indexOf("G_AUTHUSER_")===0&&(c=of(c.substring(11)),!a||c.l&&!a.l||c.l==a.l&&c.A>a.A)&&(a=c,b=d)});return{Aa:a,P:b}};function qf(a){if(a.indexOf("GCSC")!==0)return null;var b={ka:!1};a=a.substr(4);if(!a)return b;var c=a.charAt(0);a=a.substr(1);var d=a.lastIndexOf("_");if(d==-1)return b;var e=of(a.substr(d+1));if(e==null)return b;a=a.substring(0,d);if(a.charAt(0)!=="_")return b;d=c==="E"&&e.l;return!d&&(c!=="U"||e.l)||d&&!mf?b:{ka:!0,l:d,Qa:a.substr(1),domain:e.domain,A:e.A}} 134var rf=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]},sf=function(a){a=a.split(":");return{clientId:a[0].split("=")[1],Ka:rf(a[1]),Sa:rf(a[2]),Ra:rf(a[3])}},tf=function(){var a=pf(),b=a.Aa;a=a.P;if(a!==null){var c;nf.iterate(function(f,g){(f=qf(f))&&f.ka&&f.l==b.l&&f.A==b.A&&(c=g)});if(c){var d=sf(c),e=d&&d.Ka[Number(a)];d=d&&d.clientId;if(e)return{P:a,Ja:e,clientId:d}}}return null};var vf=function(){this.ea=uf};p=vf.prototype;p.ua=function(){this.W||(this.F=0,this.W=!0,this.na())};p.na=function(){this.W&&(this.ea()?this.F=this.aa:this.F=Math.min((this.F||this.aa)*2,120),window.setTimeout(wa(this.na,this),this.F*1E3))};p.F=0;p.aa=2;p.ea=null;p.W=!1;var wf=null;Yc=function(){return M.oa=!0};Zc=function(){E(M,"dm",[]).push(30);M.oa=!0;var a=tf();(a=a&&a.P)&&Pc("googleapis.config/sessionIndex",a);wf||(wf=E(M,"ss",new vf));a=wf;a.ua&&a.ua()}; 135var uf=function(){var a=tf(),b=a&&a.Ja||null,c=a&&a.clientId;Cc("auth",{callback:function(){var d=C.gapi.auth,e={client_id:c,session_state:b};d.checkSessionState(e,function(f){var g=e.session_state,k=!!S("isLoggedIn");f=S("debug/forceIm")?!1:g&&f||!g&&!f;if(k=k!==f)Pc("isLoggedIn",f),Zc(),Ge(),f||((f=d.signOut)?f():(f=d.setToken)&&f(null));f=Uc();var h=S("savedUserState");g=d._guss(f.cookiepolicy);h=h!=g&&typeof h!="undefined";Pc("savedUserState",g);(k||h)&&Vc(f)&&!S("disableRealtimeCallback")&&d._pimf(f, 136!0)})}});return!0};O.unshift(["url",function(a,b,c){!a||b&&b!==""||!a.endsWith(".js")||(a=a.substring(0,a.length-3),b=a.lastIndexOf("/")+1,b>=a.length||(a=a.substr(b).split(":").filter(function(d){return!["api","platform"].includes(d)}),c.features=a))}]);N("bs0",!0,window.gapi._bs);N("bs1",!0);delete window.gapi._bs;window.gapi.load("",{callback:window["gapi_onload"],_c:{url:"https://apis.google.com/js/platform.js",jsl:{ci:{"oauth-flow":{authUrl:"https://accounts.google.com/o/oauth2/auth",proxyUrl:"https://accounts.google.com/o/oauth2/postmessageRelay",disableOpt:!0,idpIframeUrl:"https://accounts.google.com/o/oauth2/iframe",usegapi:!1},debug:{reportExceptionRate:1,forceIm:!1,rethrowException:!0,host:"https://apis.google.com"},gen204logger:{ interval: 30000, rate: 0.01, batch: false },enableMultilogin:!0,"googleapis.config":{auth:{useFirstPartyAuthV2:!0},root:"https://content.googleapis.com","root-1p":"https://clients6.google.com"}, 137inline:{css:1},disableRealtimeCallback:!1,drive_share:{skipInitCommand:!0},csi:{rate:.01},client:{cors:!1},signInDeprecation:{rate:0},include_granted_scopes:!0,llang:"en",iframes:{youtube:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi=1",methods:["scroll","openwindow"]},ytsubscribe:{url:"https://www.youtube.com/subscribe_embed?usegapi=1"},plus_circle:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi=1"}, 138plus_share:{params:{url:""},url:":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare=true&usegapi=1"},rbr_s:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},":source:":"3p",playemm:{url:"https://play.google.com/work/embedded/search?usegapi=1&usegapi=1"},savetoandroidpay:{url:"https://pay.google.com/gp/v/widget/save"},blogger:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/blogger?usegapi=1",methods:["scroll", 139"openwindow"]},evwidget:{params:{url:""},url:":socialhost:/:session_prefix:_/events/widget?usegapi=1"},partnersbadge:{url:"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi=1"},dataconnector:{url:"https://dataconnector.corp.google.com/:session_prefix:ui/widgetview?usegapi=1"},surveyoptin:{url:"https://www.google.com/shopping/customerreviews/optin?usegapi=1"},":socialhost:":"https://apis.google.com",shortlists:{url:""},hangout:{url:"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"}, 140plus_followers:{params:{url:""},url:":socialhost:/_/im/_/widget/render/plus/followers?usegapi=1"},post:{params:{url:""},url:":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi=1"},signin:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/signin?usegapi=1",methods:["onauth"]},rbr_i:{params:{url:""}
140,url:":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},share:{url:":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi=1"},plusone:{params:{count:"", 141size:"",url:""},url:":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi=1"},comments:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/comments?usegapi=1",methods:["scroll","openwindow"]},":im_socialhost:":"https://plus.googleapis.com",backdrop:{url:"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi=1"},visibility:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/visibility?usegapi=1"},autocomplete:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/autocomplete"}, 142":signuphost:":"https://plus.google.com",ratingbadge:{url:"https://www.google.com/shopping/merchantverse/?usegapi=1"},appcirclepicker:{url:":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},follow:{url:":socialhost:/:session_prefix:_/widget/render/follow?usegapi=1"},community:{url:":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi=1"},sharetoclassroom:{url:"https://classroom.google.com/sharewidget?usegapi=1"},"sharetoclassroom-boq":{url:"https://classroom.google.com/sharewidget-boq?usegapi=1"},ytshare:{params:{url:""}, 143url:":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi=1"},plus:{url:":socialhost:/:session_prefix:_/widget/render/badge?usegapi=1"},family_creation:{params:{url:""},url:"https://families.google.com/webcreation?usegapi=1&usegapi=1"},commentcount:{url:":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi=1"},configurator:{url:":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi=1"},zoomableimage:{url:"https://ssl.gstatic.com/microscope/embed/"},appfinder:{url:"https://workspace.google.com/:session_prefix:marketplace/appfinder?usegapi=1"}, 144savetowallet:{url:"https://pay.google.com/gp/v/widget/save"},person:{url:":socialhost:/:session_prefix:_/widget/render/person?usegapi=1"},savetodrive:{url:"https://drive.google.com/savetodrivebutton?usegapi=1",methods:["save"]},page:{url:":socialhost:/:session_prefix:_/widget/render/page?usegapi=1"},card:{url:":socialhost:/:session_prefix:_/hovercard/card"}}},h:"m;/_/scs/abc-static/_/js/k=gapi.lb.en.gh7qIZtzO5w.O/d=1/rs=AHpOoo84YKT1RVy0T6hcXi5rH3LooB1WCw/m=__features__",u:"https://apis.google.com/js/platform.js",hee:!0,dpo:!1,le:["scs"]},platform:"backdrop blogger comments commentcount community donation family_creation follow hangout health page partnersbadge person playemm playreview plus plusone post ratingbadge savetoandroidpay savetodrive savetowallet sharetoclassroom shortlists signin2 surveyoptin visibility youtube ytsubscribe zoomableimage".split(" "), 145annotation:["interactivepost","recobar","signin2","autocomplete"]}});E(M,"le",[]).push("fedcm_migration_mod");}).call(this); 146}catch(e){console.log(e);} 147/*https://connect.facebook.net/en_US/sdk.js*/ 148;try{/*1790852892,*/ 149 150/** 151 * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. 152 * 153 * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, 154 * copy, modify, and distribute this software in source code or binary form for use 155 * in connection with the web services and APIs provided by Facebook. 156 * 157 * As with any software that integrates with the Facebook platform, your use of 158 * this software is subject to the Facebook Platform Policy 159 * [http://developers.facebook.com/policy/]. This copyright notice shall be 160 * included in all copies or substantial portions of the software. 161 * 162 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 163 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 164 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 165 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 166 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 167 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 168 */ 169(function _(e,t,n,r,o,a,i){try{var l=window.console;l&&Math.floor(new Date().getTime()/1e3)-t>10080*60&&l.warn("The Facebook JSSDK is more than 7 days old.");var s=window;if(s[n]||!window.JSON)return;for(var u=window[n]={__buffer:{replay:function(){for(var e=u.__buffer.calls,t=function(){var t=window[n];e[r][0].split(".").forEach(function(e){return t=t[e]}),t.apply(null,e[r][1])},r=0;r<e.length;r++)t();u.__buffer.calls=[]},calls:[],opts:null},getUserID:function(){return""},getAuthResponse:function(){return null},getAccessToken:function(){return null},init:function(e){u.__buffer.opts=e}},c=0;c<r.length;c++){var d=r[c];if(!(d in u)){for(var m=d.split("."),p=m.pop(),f=u,g=0;g<m.length;
169g++)f=f[m[g]]||(f[m[g]]={});f[p]=(function(e){if(e!=="init")return function(){u.__buffer.calls.push([e,Array.from(arguments)])}})(d)}}var h=document.createElement("script");h.src=e,h.async=!0,h.addEventListener("load",function(){window.FB_LOCAL_GLOBAL.require.call(null,"sdk.dynamic-module-loader").load(a)}),o&&(h.crossOrigin="anonymous");var y=document.getElementsByTagName("script")[0];y.parentNode&&y.parentNode.insertBefore(h,y)}catch(e){if(i)throw e;var C,b=a.JSSDKRuntimeConfig,v=b.revision,S=v===void 0?"":v,R=b.scribeurl,L=R===void 0?"":R,E=new Image;E.dataset.testid="fbSDKErrorReport",E.crossOrigin="anonymous";var k={error:"LOAD",extra:{name:e.name,line:e.lineNumber||e.line,script:e.fileName||e.sourceURL||e.script,stack:e.stackTrace||e.stack,revision:S,namespace:n,message:e.message}},I=encodeURIComponent(JSON.stringify(k));E.src=L+"?c=jssdk_error&m="+I,(C=document.body)==null||C.appendChild(E)}})("https:\/\/connect.facebook.net\/en_US\/bundle\/sdk.js\/", 1790852891, "FB", ["AppEvents.EventNames","AppEvents.ParameterNames","AppEvents.activateApp","AppEvents.clearAppVersion","AppEvents.clearUserID","AppEvents.getAppVersion","AppEvents.getUserID","AppEvents.logEvent","AppEvents.logPageView","AppEvents.logPurchase","AppEvents.setAppVersion","AppEvents.setUserID","AppEvents.updateUserProperties","Canvas.Plugin.showPluginElement","Canvas.Plugin.hidePluginElement","Canvas.Prefetcher.addStaticResource","Canvas.Prefetcher.setCollectionMode","Canvas.getPageInfo","Canvas.scrollTo","Canvas.setAutoGrow","Canvas.setDoneLoading","Canvas.setSize","Canvas.setUrlHandler","Canvas.startTimer","Canvas.stopTimer","Event.subscribe","Event.unsubscribe","XFBML.parse","addFriend","api","getAccessToken","getAuthResponse","getLoginStatus","getUserID","init","login","logout","publish","share","ui"], true, {"JSSDKCanvasPrefetcherConfig":{"enabled":true,"excludedAppIds":[144959615576466,768691303149786,320528941393723],"sampleRate":500},"JSSDKConfig":{"features":{"allow_non_canvas_app_events":false,"error_handling":{"rate":4},"e2e_ping_tracking":{"rate":0.1},"xd_timeout":{"rate":1,"value":60000},"use_bundle":false,"should_log_response_error":true,"popup_blocker_scribe_logging":{"rate":100},"https_only_enforce_starting":2538809200000,"https_only_learn_more":"https:\/\/developers.facebook.com\/blog\/post\/2018\/06\/08\/enforce-https-facebook-login\/","https_only_scribe_logging":{"rate":1},"log_perf":{"rate":0.001},"use_x_xd":{"rate":100},"cache_auth_response":{"rate":100},"oauth_funnel_logger_version":1,"force_popup_to_canvas_apps_with_id":[],"force_popup_to_all_canvas_app":false,"max_oauth_dialog_retries":{"rate":100,"value":10},"plugin_tags_blacklist":[],"idle_callback_wait_time_ms":3000,"chat_plugin_facade_timeout_ms":8000,"chat_plugin_facade_enabled_pageids":["102493178867330","107331571710078","1032787970130843","107771111665395","261907812360345","101305975654752","275483104252055","101664622285042","112682113428700","271628573687012","385757598521443","100545935690488"],"should_enable_ig_login_status_fetch":true,"log_cookies_usage":{"rate":0.1},"allow_shadow_dom_for_apps_with_id":[520916077950649,152351391599356,132081130190180,468663283258845,409976882430412,189845245141894,360467581347,274266067164],"allow_shadow_dom":true,"use_extended_dialog_path":{"rate":100},"use_oauth_subdomain":{"rate":100},"fedcm_enabled":true}},"JSSDKCssConfig":{"rules":".fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0px;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:lucida grande,tahoma,verdana,arial,sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}\u0040keyframes fb_transform{0\u0025{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}\n\n.fb_dialog{background:#525252b3;position:absolute;top:-10000px;z-index:10001}.fb_dialog_advanced{border-radius:8px;padding:10px}.fb_dialog_content{background:#fff;color:#373737}.fb_dialog_close_icon{background:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/yq\/r\/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{left:5px;right:auto;top:5px}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/yq\/r\/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent}.fb_dialog_close_icon:active{background:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/yq\/r\/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:700;margin:0}.fb_dialog_content .dialog_title>span{background:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/yd\/r\/Cou7n-nqK52.gif) no-repeat 5px 50\u0025;float:left;padding:5px 0 7px 26px}body.fb_hidden{height:100\u0025;left:0;margin:0;overflow:visible;position:absolute;top:-10000px;transform:none;width:100\u0025}.fb_dialog.fb_dialog_mobile.loading{background:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/ya\/r\/3rhSv5V8j3o.gif) #fff no-repeat 50\u0025 50\u0025;min-height:100\u0025;min-width:100\u0025;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{background:none;height:auto;min-height:initial;min-width:initial;width:auto}.fb_dialog.fb_dialog_mobile.loading.centered #fb_dialog_loader_spinner{width:100\u0025}.fb_dialog.fb_dialog_mobile.loading.centered .fb_dialog_content{background:none}.loading.centered #fb_dialog_loader_close{clear:both;color:#fff;display:block;font-size:18px;padding-top:20px}#fb-root #fb_dialog_ipad_overlay{background:#0006;inset:0;min-height:100\u0025;position:absolute;width:100\u0025;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_mobile .fb_dialog_iframe{position:sticky;top:0}.fb_dialog_content .dialog_header{background:linear-gradient(from(#738aba),to(#2c4987));border-bottom:1px solid;border-color:#043b87;box-shadow:#fff 0 1px 1px -1px inset;color:#fff;font:700 14px Helvetica,sans-serif;text-overflow:ellipsis;text-shadow:rgba(0,30,84,.296875) 0px -1px 0px;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{height:43px;width:100\u0025}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:linear-gradient(from(#4267B2),to(#2a4887));background-clip:padding-box;border:1px solid #29487d;border-radius:3px;display:inline-block;line-height:18px;margin-top:3px;max-width:85px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{background:none;border:none;color:#fff;font:700 12px Helvetica,sans-serif;margin:2px -12px;padding:2px 6px 3px;text-shadow:rgba(0,30,84,.296875) 0px -1px 0px}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:700;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/y9\/r\/jKEcVPZFk-2.gif) no-repeat 50\u0025 50\u0025;border:1px solid #4A4A4A;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f5f6f7;border:1px solid #4A4A4A;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}
169#fb_dialog_loader_spinner{animation:rotateSpinner 1.2s linear infinite;background-color:transparent;background-image:url(https:\/\/connect.facebook.net\/rsrc.php\/v4\/y2\/r\/onuUJj0tCqE.png);background-position:50\u0025 50\u0025;background-repeat:no-repeat;height:24px;width:24px}\u0040keyframes rotateSpinner{0\u0025{transform:rotate(0)}to{transform:rotate(360deg)}}\n\n.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_fluid_desktop,.fb_iframe_widget_fluid_desktop span,.fb_iframe_widget_fluid_desktop iframe{max-width:100\u0025}.fb_iframe_widget_fluid_desktop iframe{min-width:220px;position:relative}.fb_iframe_widget_lift{z-index:1}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100\u0025}\n","components":["css:fb.css.base","css:fb.css.dialog","css:fb.css.iframewidget"]},"JSSDKRuntimeConfig":{"locale":"en_US","revision":"1048976053","rtl":false,"sdkab":null,"sdkns":"","sdkurl":"https:\/\/connect.facebook.net\/en_US\/sdk.js","scribeurl":"https:\/\/www.facebook.com\/platform\/scribe_endpoint.php\/"},"JSSDKXDConfig":{"XXdUrl":"\/x\/connect\/xd_arbiter\/?version=46","useCdn":true},"UrlMapConfig":{"www":"www.facebook.com","m":"m.facebook.com","business":"business.facebook.com","api":"api.facebook.com","api_read":"api-read.facebook.com","graph":"graph.facebook.com","an":"an.facebook.com","oauth":"oauth.facebook.com","fbcdn":"static.xx.fbcdn.net","cdn":"staticxx.facebook.com","graph_facebook":"graph.facebook.com","graph_gaming":"graph.fb.gg","graph_instagram":"graph.instagram.com","www_instagram":"www.instagram.com","social_plugin":"socialplugin.facebook.net"},"JSSDKShadowCssConfig":{"css:fb.shadow.css.fb_login_button":".fb_login_button_container{align-content:center;align-items:center;border:0;color:#fff;display:flex;font-family:Roboto,Freight Sans LF Pro,Helvetica,Arial,Lucida Grande,sans-serif;font-weight:700;margin:auto}.fb-button-main-element{display:flex;flex-wrap:nowrap;overflow:hidden}.fb-iframe-overlay{display:flex}.fb-button-main-element:hover{cursor:pointer}.fb-button-main-element:focus{filter:brightness(80\u0025)}.fb_button_label_element{align-items:center;display:flex;font-weight:700;justify-content:center}.fb_button_label{margin:auto;pointer-events:none}.fb_button_svg_logo{height:1.33em;margin-left:.4em;margin-right:.4em;padding:.065em}.login_fb_logo .f_logo_f{fill:transparent}.single_button_svg_logo{margin-bottom:.08em}\n"},"cr:6640":"PromiseImpl"}, false);}catch(e){console.log(e);} 170/*https://assets.pinterest.com/js/pinit.js*/ 171;try{!function(a,b,c){var d,e,f;d="PIN_"+~~((new Date).getTime()/864e5),a[d]?a[d]+=1:(a[d]=1,a.setTimeout(function(){e=b.getElementsByTagName("SCRIPT")[0],f=b.createElement("SCRIPT"),f.type="text/javascript",f.async=!0,f.src=c.mainUrl+"?"+Math.random(),e.parentNode.insertBefore(f,e)},10))}(window,document,{mainUrl:"https://assets.pinterest.com/js/pinit_main.js"});}catch(e){console.log(e);}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.