diff --git a/.eslintignore b/.eslintignore index e823d3f49..7439d07bf 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ helix-importer-ui scripts/ffetch.js -campaigns \ No newline at end of file +campaigns +scripts/at.js diff --git a/scripts/at.js b/scripts/at.js new file mode 100644 index 000000000..eaf878eda --- /dev/null +++ b/scripts/at.js @@ -0,0 +1,18 @@ +/** + * @license + * at.js 2.11.4 | (c) Adobe Systems Incorporated | All rights reserved + * zepto.js | (c) 2010-2016 Thomas Fuchs | zeptojs.com/license +*/ +window.adobe=window.adobe||{},window.adobe.target=function(){"use strict";var e=window,t=document,n=!t.documentMode||t.documentMode>=11;var r,o,i,c=t.compatMode&&"CSS1Compat"===t.compatMode&&n&&(r=window.navigator.userAgent,o=r.indexOf("MSIE ")>0,i=r.indexOf("Trident/")>0,!(o||i)),s=e.targetGlobalSettings;if(!c||s&&!1===s.enabled){function u(){}function a(e){var t={then:function(n,r){return n(e),t},catch:function(e){return t},finally:function(n){return n(e),t}};return t}return e.adobe=e.adobe||{},e.adobe.target={VERSION:"",event:{},getOffer:u,getOffers:a,applyOffer:u,applyOffers:a,sendNotifications:a,trackEvent:u,triggerView:u,registerExtension:u,init:u},e.mboxCreate=u,e.mboxDefine=u,e.mboxUpdate=u,"console"in e&&"warn"in e.console&&(c||e.console.warn("AT: Adobe Target content delivery is disabled. Update your DOCTYPE to support Standards mode."),e.console.warn("AT: Adobe Target content delivery is disabled in targetGlobalSettings.")),e.adobe.target}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t} +/* + object-assign + (c) Sindre Sorhus + @license MIT + */var d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function m(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var g=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=m(e),i=1;it.forEach(e),N=(e,t)=>{I(n=>e(t[n],n),k(t))},O=(e,t)=>t.filter(e),_=(e,t)=>{const n={};return N((t,r)=>{e(t,r)&&(n[r]=t)},t),n};function A(e,t){if(v(t))return[];return(y(t)?O:_)(C(e),t)}function P(e){return v(e)?[]:[].concat.apply([],e)}function q(e){var t=this;const n=e?e.length:0;let r=n;for(;r-=1;)if(!E(e[r]))throw new TypeError("Expected a function");return function(){let r=0;for(var o=arguments.length,i=new Array(o),c=0;c-1&&e%1==0&&e<=9007199254740991}(e.length)&&!E(e)}const V=(e,t)=>t.map(e);function H(e){return v(e)?[]:j(e)?D(e)?e.split(""):function(e){let t=0;const{length:n}=e,r=Array(n);for(;tn[e],t));var t,n}const{prototype:U}=Object,{hasOwnProperty:B}=U;function F(e){if(null==e)return!0;if(j(e)&&(y(e)||D(e)||E(e.splice)))return!e.length;for(const t in e)if(B.call(e,t))return!1;return!0}const{prototype:z}=String,{trim:$}=z;function J(e){return v(e)?"":$.call(e)}function G(e){return D(e)?!J(e):F(e)}const Z=e=>!G(e);function W(e){return"number"==typeof e||R(e)&&"[object Number]"===w(e)}const{prototype:K}=Function,{prototype:X}=Object,{toString:Y}=K,{hasOwnProperty:Q}=X,ee=Y.call(Object);function te(e){if(!R(e)||"[object Object]"!==w(e))return!1;const t=function(e){return Object.getPrototypeOf(Object(e))}(e);if(null===t)return!0;const n=Q.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Y.call(n)===ee}function ne(e,t){return y(t)?t.join(e||""):""}const re=(e,t)=>{const n={};return N((t,r)=>{n[r]=e(t,r)},t),n};function oe(e,t){if(v(t))return[];return(y(t)?V:re)(C(e),t)}function ie(){return(new Date).getTime()}const ce=(e,t,n)=>n.reduce(e,t),se=(e,t,n)=>{let r=t;return N((t,n)=>{r=e(r,t,n)},n),r};function ue(e,t,n){if(v(n))return t;return(y(n)?ce:se)(C(e),t,n)}const{prototype:ae}=Array,{reverse:fe}=ae;function le(e,t){return G(t)?[]:t.split(e||"")}function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,Number(t)||0)}function pe(e){clearTimeout(e)}const he="server-side",me="edge",ge="local";function ve(e){return void 0===e}function ye(e){return!ve(e)}const be=()=>{},xe=e=>Promise.resolve(e);function we(e){return!!e.execute&&!!e.execute.pageLoad}function Se(e){return!!e.execute&&!!e.execute.mboxes&&e.execute.mboxes.length||0}function Ee(e){return!!e.prefetch&&!!e.prefetch.pageLoad}function Te(e){return!!e.prefetch&&!!e.prefetch.mboxes&&e.prefetch.mboxes.length||0}function Ce(e){return!!e.prefetch&&!!e.prefetch.views&&e.prefetch.views.length||0}function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(e&&W(e))return+e.toFixed(t)}function Ie(){let e=[];return{addEntry:function(t){e.push(t)},getAndClearEntries:function(){const t=e;return e=[],t},hasEntries:function(){return e.length>0}}}var Ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Oe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){(function(){var t,n,r,o,i,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),c=1e9*process.uptime(),i=o-c):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(Ne)}));const _e=function(){let e={},t={},n={};function r(t){const n=(ye(e[t])?e[t]:0)+1;return e[t]=n,""+t+n}return{timeStart:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=n?r(e):e;return ve(t[o])&&(t[o]=Oe()),o},timeEnd:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(ve(t[e]))return-1;const o=Oe()-t[e]-r;return n[e]=o,o},getTimings:()=>n,getTiming:e=>n[e],clearTiming:function(r){delete e[r],delete t[r],delete n[r]},reset:function(){e={},t={},n={}}}}();const Ae=new Uint8Array(256),Pe=function(){const e=window.crypto||window.msCrypto;return!v(e)&&e.getRandomValues&&E(e.getRandomValues)&&e.getRandomValues.bind(e)}();function qe(){return Pe(Ae)}const Me=function(){const e=[];for(let t=0;t<256;t+=1)e.push((t+256).toString(16).substr(1));return e}();function Re(e){const t=e();return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e){const t=[];for(let n=0;n<16;n+=1)t.push(Me[e[n]]);return ne("",t).toLowerCase()}(t)}function De(){return Re(qe)}const Le="type",je="content",Ve="selector",He="src",Ue='Adobe Target content delivery is disabled. Ensure that you can save cookies to your current domain, there is no "mboxDisable" cookie and there is no "mboxDisable" parameter in query string.',Be="options argument is required",Fe="Action has no content",ze="No actions to be rendered",$e="error",Je="valid",Ge="success",Ze="___target_traces",We="display";var Ke=document,Xe=window;const Ye=/^(?!0)(?!.*\.$)((1?\d?\d|25[0-5]|2[0-4]\d)(\.|$)){4}$/,Qe=/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i;let et={};const tt=["enabled","clientCode","imsOrgId","serverDomain","crossDomain","cookieDomain","timeout","mboxParams","globalMboxParams","defaultContentHiddenStyle","defaultContentVisibleStyle","deviceIdLifetime","bodyHiddenStyle","bodyHidingEnabled","selectorsPollingTimeout","visitorApiTimeout","overrideMboxEdgeServer","overrideMboxEdgeServerTimeout","optoutEnabled","optinEnabled","secureOnly","supplementalDataIdParamTimeout","authoringScriptUrl","urlSizeLimit","endpoint","pageLoadEnabled","viewsEnabled","analyticsLogging","serverState","decisioningMethod","pollingInterval","artifactLocation","artifactFormat","artifactPayload","environment","cdnEnvironment","telemetryEnabled","cdnBasePath","cspScriptNonce","cspStyleNonce","globalMboxName","allowHighEntropyClientHints","aepSandboxId","aepSandboxName","withWebGLRenderer"];function nt(e){if(function(e){return Ye.test(e)}(e))return e;const t=null==(n=le(".",e))?n:fe.call(n);var n;const r=t.length;return r>=3&&Qe.test(t[1])?t[2]+"."+t[1]+"."+t[0]:1===r?t[0]:t[1]+"."+t[0]}function rt(e,t,n){let r="";"file:"===e.location.protocol||(r=nt(e.location.hostname)),n.cookieDomain=r,n.enabled=function(e){const{compatMode:t}=e;return t&&"CSS1Compat"===t}(t)&&function(e){const{documentMode:t}=e;return!t||t>=10}(t),function(e,t){e.enabled&&(v(t.globalMboxAutoCreate)||(e.pageLoadEnabled=t.globalMboxAutoCreate),M(n=>{v(t[n])||(e[n]=t[n])},tt))}(n,e.targetGlobalSettings||{})}function ot(e){rt(Xe,Ke,e);const t="file:"===Xe.location.protocol;et=g({},e),et.deviceIdLifetime=e.deviceIdLifetime/1e3,et.sessionIdLifetime=e.sessionIdLifetime/1e3,et.scheme=et.secureOnly||t?"https:":""}function it(){return et}var ct={exports:{}}; +/*! + * JavaScript Cookie v2.2.1 + * https://github.com/js-cookie/js-cookie + * + * Copyright 2006, 2015 Klaus Hartl & Fagner Brack + * Released under the MIT license + */ct.exports=function(){function e(){for(var e=0,t={};e0&&s>c&&(s=c);for(var u=0;u=0?(a=p.substr(0,h),f=p.substr(h+1)):(a=p,f=""),l=decodeURIComponent(a),d=decodeURIComponent(f),ft(o,l)?Array.isArray(o[l])?o[l].push(d):o[l]=[o[l],d]:o[l]=d}return o},at.encode=at.stringify=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(lt(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(lt(e))})).join(t):o+encodeURIComponent(lt(e[r]))})).join(t):r?encodeURIComponent(lt(r))+n+encodeURIComponent(lt(e)):""};var dt=at,pt={parse:function(e){return"string"==typeof e&&(e=e.trim().replace(/^[?#&]/,"")),dt.parse(e)},stringify:function(e){return dt.stringify(e)}};const{parse:ht,stringify:mt}=pt,gt=Ke.createElement("a"),vt={};function yt(e){try{return window.URLSearchParams?[...new URLSearchParams(decodeURIComponent(e)).entries()].reduce((e,t)=>{let[n,r]=t;return e[n]=r,e},{}):ht(e)}catch(e){return{}}}function bt(e){try{return mt(e)}catch(e){return""}}function xt(e){try{return decodeURIComponent(e)}catch(t){return e}}function wt(e){try{return encodeURIComponent(e)}catch(t){return e}}function St(e){if(vt[e])return vt[e];gt.href=e;const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;const n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=n.parser[t.strictMode?"strict":"loose"].exec(e),o={};let i=14;for(;i--;)o[n.key[i]]=r[i]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,(function(e,t,r){t&&(o[n.q.name][t]=r)})),o}(gt.href);return t.queryKey=yt(t.query),vt[e]=t,vt[e]}const{get:Et,set:Tt,remove:Ct}=ut;function kt(e,t,n){return{name:e,value:t,expires:n}}const It={};function Nt(e,t,n){Tt(e,t,n),It[e]=t.toString()}function Ot(e){return void 0!==It[e]||(It[e]=Et(e)),It[e]}function _t(e){const t=le("#",e);return F(t)||t.length<3||isNaN(parseInt(t[2],10))?null:kt(xt(t[0]),xt(t[1]),Number(t[2]))}let At,Pt={};function qt(){const e=Ot("mbox");if(At===e)return Pt;At=e;const t=oe(_t,G(n=e)?[]:le("|",n));var n;const r=Math.ceil(ie()/1e3);return Pt=ue((e,t)=>(e[t.name]=t,e),{},A(e=>S(e)&&r<=e.expires,t)),Pt}let Mt={};function Rt(e){Mt=qt();const t=Mt[e];return S(t)?t.value:""}function Dt(e){return ne("#",[wt(e.name),wt(e.value),e.expires])}function Lt(e){return e.expires}function jt(e,t,n){Mt=e;const r=H(Mt),o=Math.abs(1e3*function(e){const t=oe(Lt,e);return Math.max.apply(null,t)}(r)-ie()),i=ne("|",oe(Dt,r)),c=new Date(ie()+o);Nt("mbox",i,g({domain:t,expires:c,secure:n},n?{sameSite:"None"}:{}))}function Vt(e){const{name:t,value:n,expires:r,domain:o,secure:i}=e;Mt||(Mt=qt()),Mt[t]=kt(t,n.toString(),Math.ceil(r+ie()/1e3)),jt(Mt,o,i)}function Ht(e,t,n){return function(e){return Z(Ot(e))}(n)||function(e,t){const{location:n}=e,{search:r}=n,o=yt(r);return Z(o[t])}(e,n)||function(e,t){const{referrer:n}=e;if(window.URL)return new URL(n,window.location).searchParams.has(t);const r=St(n).queryKey;return!v(r)&&Z(r[t])}(t,n)}function Ut(){const e=it(),t=e.cookieDomain,n=e.secureOnly;Nt("at_check","true",g({domain:t,secure:n},n?{sameSite:"None"}:{}));const r="true"===Ot("at_check");var o;return Ct(o="at_check"),delete It[o],r}function Bt(){return it().enabled&&Ut()&&!Ht(Xe,Ke,"mboxDisable")}function Ft(){return Ht(Xe,Ke,"mboxDebug")}function zt(){return Ht(Xe,Ke,"mboxEdit")}const $t="AT:";function Jt(e,t){const{console:n}=e;return!v(n)&&E(n[t])}function Gt(e,t){const{console:n}=e;Jt(e,"warn")&&n.warn.apply(n,[$t].concat(t))}function Zt(e,t){const{console:n}=e;Jt(e,"debug")&&Ft()&&n.debug.apply(n,[$t].concat(t))}function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n(t[n]=e[n],t),{},tt)}(t),r.clientTraces=[],r.serverTraces=[],r.push=function(e){r.serverTraces.push(g({timestamp:ie()},e)),o.call(this,e)}}function Yt(e,t,n,r){"serverTraces"===t&&e[Ze].push(n),r&&"serverTraces"!==t&&e[Ze][t].push(g({timestamp:ie()},n))}function Qt(e){Yt(Xe,"serverTraces",e,Ft())}function en(e){Yt(Xe,"clientTraces",e,Ft())}var tn=setTimeout;function nn(e){return Boolean(e&&void 0!==e.length)}function rn(){}function on(e){if(!(this instanceof on))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],ln(e,this)}function cn(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,on._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void un(t.promise,e)}sn(t.promise,r)}else(1===e._state?sn:un)(t.promise,e._value)}))):e._deferreds.push(t)}function sn(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof on)return e._state=3,e._value=t,void an(e);if("function"==typeof n)return void ln((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,an(e)}catch(t){un(e,t)}var r,o}function un(e,t){e._state=2,e._value=t,an(e)}function an(e){2===e._state&&0===e._deferreds.length&&on._immediateFn((function(){e._handled||on._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,g=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,v=/^(?:body|html)$/i,y=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],x=f.createElement("table"),w=f.createElement("tr"),S={tr:f.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:w,th:w,"*":f.createElement("div")},E=/complete|loaded|interactive/,T=/^[\w-]*$/,C={},k=C.toString,I={},N=f.createElement("div"),O={tabindex:"tabIndex",readonly:"readOnly",'for':"htmlFor",'class':"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},_=Array.isArray||function(e){return e instanceof Array};function A(e){return null==e?String(e):C[k.call(e)]||"object"}function P(e){return"function"==A(e)}function q(e){return null!=e&&e==e.window}function M(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function R(e){return"object"==A(e)}function D(e){return R(e)&&!q(e)&&Object.getPrototypeOf(e)==Object.prototype}function L(e){var t=!!e&&"length"in e&&e.length,r=n.type(e);return"function"!=r&&!q(e)&&("array"==r||0===t||"number"==typeof t&&t>0&&t-1 in e)}function j(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(e){return e in d?d[e]:d[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function H(e,t){return"number"!=typeof t||p[j(e)]?t:t+"px"}function U(e){return"children"in e?a.call(e.children):n.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function B(e,t){var n,r=e?e.length:0;for(n=0;n")),void 0===t&&(t=h.test(e)&&RegExp.$1),t in S||(t="*"),(c=S[t]).innerHTML=""+e,o=n.each(a.call(c.childNodes),(function(){c.removeChild(this)}))),D(r)&&(i=n(o),n.each(r,(function(e,t){b.indexOf(e)>-1?i[e](t):i.attr(e,t)}))),o},I.Z=function(e,t){return new B(e,t)},I.isZ=function(e){return e instanceof I.Z},I.init=function(e,t){var r,o;if(!e)return I.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&h.test(e))r=I.fragment(e,RegExp.$1,t),e=null;else{if(void 0!==t)return n(t).find(e);r=I.qsa(f,e)}else{if(P(e))return n(f).ready(e);if(I.isZ(e))return e;if(_(e))o=e,r=u.call(o,(function(e){return null!=e}));else if(R(e))r=[e],e=null;else if(h.test(e))r=I.fragment(e.trim(),RegExp.$1,t),e=null;else{if(void 0!==t)return n(t).find(e);r=I.qsa(f,e)}}return I.Z(r,e)},(n=function(e,t){return I.init(e,t)}).extend=function(e){var t,n=a.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach((function(n){F(e,n,t)})),e},I.qsa=function(e,t){var n,r="#"==t[0],o=!r&&"."==t[0],i=r||o?t.slice(1):t,c=T.test(i);return e.getElementById&&c&&r?(n=e.getElementById(i))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:a.call(c&&!r&&e.getElementsByClassName?o?e.getElementsByClassName(i):e.getElementsByTagName(t):e.querySelectorAll(t))},n.contains=f.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},n.type=A,n.isFunction=P,n.isWindow=q,n.isArray=_,n.isPlainObject=D,n.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},n.isNumeric=function(e){var t=Number(e),n=typeof e;return null!=e&&"boolean"!=n&&("string"!=n||e.length)&&!isNaN(t)&&isFinite(t)||!1},n.inArray=function(e,t,n){return c.indexOf.call(t,e,n)},n.camelCase=o,n.trim=function(e){return null==e?"":String.prototype.trim.call(e)},n.uuid=0,n.support={},n.expr={},n.noop=function(){},n.map=function(e,t){var r,o,i,c,s=[];if(L(e))for(o=0;o0?n.fn.concat.apply([],c):c},n.each=function(e,t){var n,r;if(L(e)){for(n=0;n=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){for(var t,n=this.length,r=0;r0&&I.matches(this[0],e)},not:function(e){var t=[];if(P(e)&&void 0!==e.call)this.each((function(n){e.call(this,n)||t.push(this)}));else{var r="string"==typeof e?this.filter(e):L(e)&&P(e.item)?a.call(e):n(e);this.forEach((function(e){r.indexOf(e)<0&&t.push(e)}))}return n(t)},has:function(e){return this.filter((function(){return R(e)?n.contains(this,e):n(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!R(e)?e:n(e)},last:function(){var e=this[this.length-1];return e&&!R(e)?e:n(e)},find:function(e){var t=this;return e?"object"==typeof e?n(e).filter((function(){var e=this;return c.some.call(t,(function(t){return n.contains(t,e)}))})):1==this.length?n(I.qsa(this[0],e)):this.map((function(){return I.qsa(this,e)})):n()},closest:function(e,t){var r=[],o="object"==typeof e&&n(e);return this.each((function(n,i){for(;i&&!(o?o.indexOf(i)>=0:I.matches(i,e));)i=i!==t&&!M(i)&&i.parentNode;i&&r.indexOf(i)<0&&r.push(i)})),n(r)},parents:function(e){for(var t=[],r=this;r.length>0;)r=n.map(r,(function(e){if((e=e.parentNode)&&!M(e)&&t.indexOf(e)<0)return t.push(e),e}));return z(t,e)},parent:function(e){return z(i(this.pluck("parentNode")),e)},children:function(e){return z(this.map((function(){return U(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||a.call(this.childNodes)}))},siblings:function(e){return z(this.map((function(e,t){return u.call(U(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return n.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,l[e]||(t=f.createElement(e),f.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),l[e]=n),l[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=P(e);if(this[0]&&!t)var r=n(e).get(0),o=r.parentNode||this.length>1;return this.each((function(i){n(this).wrapAll(t?e.call(this,i):o?r.cloneNode(!0):r)}))},wrapAll:function(e){if(this[0]){var t;for(n(this[0]).before(e=n(e));(t=e.children()).length;)e=t.first();n(e).append(this)}return this},wrapInner:function(e){var t=P(e);return this.each((function(r){var o=n(this),i=o.contents(),c=t?e.call(this,r):e;i.length?i.wrapAll(c):o.append(c)}))},unwrap:function(){return this.parent().each((function(){n(this).replaceWith(n(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(e){return this.each((function(){var t=n(this);(void 0===e?"none"==t.css("display"):e)?t.show():t.hide()}))},prev:function(e){return n(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return n(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var r=this.innerHTML;n(this).empty().append($(this,e,t,r))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var n=$(this,e,t,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var r;return"string"!=typeof e||1 in arguments?this.each((function(r){if(1===this.nodeType)if(R(e))for(t in e)J(this,t,e[t]);else J(this,e,$(this,n,r,this.getAttribute(e)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(e))?r:void 0},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){J(this,e)}),this)}))},prop:function(e,t){return e=O[e]||e,1 in arguments?this.each((function(n){this[e]=$(this,t,n,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=O[e]||e,this.each((function(){delete this[e]}))},data:function(e,t){var n="data-"+e.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,t):this.attr(n);return null!==r?W(r):void 0},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=$(this,e,t,this.value)}))):this[0]&&(this[0].multiple?n(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each((function(e){var r=n(this),o=$(this,t,e,r.offset()),i=r.offsetParent().offset(),c={top:o.top-i.top,left:o.left-i.left};"static"==r.css("position")&&(c.position="relative"),r.css(c)}));if(!this.length)return null;if(f.documentElement!==this[0]&&!n.contains(f.documentElement,this[0]))return{top:0,left:0};var r=this[0].getBoundingClientRect();return{left:r.left+e.pageXOffset,top:r.top+e.pageYOffset,width:Math.round(r.width),height:Math.round(r.height)}},css:function(e,r){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[o(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(_(e)){if(!i)return;var c={},s=getComputedStyle(i,"");return n.each(e,(function(e,t){c[t]=i.style[o(t)]||s.getPropertyValue(t)})),c}}var u="";if("string"==A(e))r||0===r?u=j(e)+":"+H(e,r):this.each((function(){this.style.removeProperty(j(e))}));else for(t in e)e[t]||0===e[t]?u+=j(t)+":"+H(t,e[t])+";":this.each((function(){this.style.removeProperty(j(t))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(e){return e?this.indexOf(n(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&c.some.call(this,(function(e){return this.test(G(e))}),V(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){r=[];var o=G(this);$(this,e,t,o).split(/\s+/g).forEach((function(e){n(this).hasClass(e)||r.push(e)}),this),r.length&&G(this,o+(o?" ":"")+r.join(" "))}})):this},removeClass:function(e){return this.each((function(t){if("className"in this){if(void 0===e)return G(this,"");r=G(this),$(this,e,t,r).split(/\s+/g).forEach((function(e){r=r.replace(V(e)," ")})),G(this,r.trim())}}))},toggleClass:function(e,t){return e?this.each((function(r){var o=n(this);$(this,e,r,G(this)).split(/\s+/g).forEach((function(e){(void 0===t?!o.hasClass(e):t)?o.addClass(e):o.removeClass(e)}))})):this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return void 0===e?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return void 0===e?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),r=this.offset(),o=v.test(t[0].nodeName)?{top:0,left:0}:t.offset();return r.top-=parseFloat(n(e).css("margin-top"))||0,r.left-=parseFloat(n(e).css("margin-left"))||0,o.top+=parseFloat(n(t[0]).css("border-top-width"))||0,o.left+=parseFloat(n(t[0]).css("border-left-width"))||0,{top:r.top-o.top,left:r.left-o.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||f.body;e&&!v.test(e.nodeName)&&"static"==n(e).css("position");)e=e.offsetParent;return e}))}},n.fn.detach=n.fn.remove,["width","height"].forEach((function(e){var t=e.replace(/./,(function(e){return e[0].toUpperCase()}));n.fn[e]=function(r){var o,i=this[0];return void 0===r?q(i)?i["inner"+t]:M(i)?i.documentElement["scroll"+t]:(o=this.offset())&&o[e]:this.each((function(t){(i=n(this)).css(e,$(this,r,t,i[e]()))}))}})),["after","prepend","before","append"].forEach((function(e,t){var r=t%2;n.fn[e]=function(){var e,o,i=n.map(arguments,(function(t){var r=[];return"array"==(e=A(t))?(t.forEach((function(e){return void 0!==e.nodeType?r.push(e):n.zepto.isZ(e)?r=r.concat(e.get()):void(r=r.concat(I.fragment(e)))})),r):"object"==e||null==t?t:I.fragment(t)})),c=this.length>1;return i.length<1?this:this.each((function(e,s){o=r?s:s.parentNode,s=0==t?s.nextSibling:1==t?s.firstChild:2==t?s:null;const u=n.contains(f.documentElement,o),a=/^(text|application)\/(javascript|ecmascript)$/,l=it(),d=l.cspScriptNonce,p=l.cspStyleNonce;i.forEach((function(e){if(c)e=e.cloneNode(!0);else if(!o)return n(e).remove();Z(d)&&"SCRIPT"===e.tagName&&e.setAttribute("nonce",d),Z(p)&&"STYLE"===e.tagName&&e.setAttribute("nonce",p),o.insertBefore(e,s),u&&K(e,(function(e){null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&!a.test(e.type.toLowerCase())||e.src||X(f,e.innerHTML,e.nonce)}))}))}))},n.fn[r?e+"To":"insert"+(t?"Before":"After")]=function(t){return n(t)[e](this),this}})),I.Z.prototype=B.prototype=n.fn,I.uniq=i,I.deserializeValue=W,n.zepto=I,n}();return function(t){var n=1,r=Array.prototype.slice,o=t.isFunction,i=function(e){return"string"==typeof e},c={},s={},u="onfocusin"in e,a={focus:"focusin",blur:"focusout"},f={mouseenter:"mouseover",mouseleave:"mouseout"};function l(e){return e._zid||(e._zid=n++)}function d(e,t,n,r){if((t=p(t)).ns)var o=(i=t.ns,new RegExp("(?:^| )"+i.replace(" "," .* ?")+"(?: |$)"));var i;return(c[l(e)]||[]).filter((function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||o.test(e.ns))&&(!n||l(e.fn)===l(n))&&(!r||e.sel==r)}))}function p(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function h(e,t){return e.del&&!u&&e.e in a||!!t}function m(e){return f[e]||u&&a[e]||e}function g(e,n,r,o,i,s,u){var a=l(e),d=c[a]||(c[a]=[]);n.split(/\s/).forEach((function(n){if("ready"==n)return t(document).ready(r);var c=p(n);c.fn=r,c.sel=i,c.e in f&&(r=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return c.fn.apply(this,arguments)}),c.del=s;var a=s||r;c.proxy=function(t){if(!(t=S(t)).isImmediatePropagationStopped()){t.data=o;var n=a.apply(e,null==t._args?[t]:[t].concat(t._args));return!1===n&&(t.preventDefault(),t.stopPropagation()),n}},c.i=d.length,d.push(c),"addEventListener"in e&&e.addEventListener(m(c.e),c.proxy,h(c,u))}))}function v(e,t,n,r,o){var i=l(e);(t||"").split(/\s/).forEach((function(t){d(e,t,n,r).forEach((function(t){delete c[i][t.i],"removeEventListener"in e&&e.removeEventListener(m(t.e),t.proxy,h(t,o))}))}))}s.click=s.mousedown=s.mouseup=s.mousemove="MouseEvents",t.event={add:g,remove:v},t.proxy=function(e,n){var c=2 in arguments&&r.call(arguments,2);if(o(e)){var s=function(){return e.apply(n,c?c.concat(r.call(arguments)):arguments)};return s._zid=l(e),s}if(i(n))return c?(c.unshift(e[n],e),t.proxy.apply(null,c)):t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(e,t,n){return this.on(e,t,n)},t.fn.unbind=function(e,t){return this.off(e,t)},t.fn.one=function(e,t,n,r){return this.on(e,t,n,r,1)};var y=function(){return!0},b=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(e,n){if(n||!e.isDefaultPrevented){n||(n=e),t.each(w,(function(t,r){var o=n[t];e[t]=function(){return this[r]=y,o&&o.apply(n,arguments)},e[r]=b}));try{e.timeStamp||(e.timeStamp=(new Date).getTime())}catch(e){}(void 0!==n.defaultPrevented?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=y)}return e}function E(e){var t,n={originalEvent:e};for(t in e)x.test(t)||void 0===e[t]||(n[t]=e[t]);return S(n,e)}t.fn.delegate=function(e,t,n){return this.on(t,e,n)},t.fn.undelegate=function(e,t,n){return this.off(t,e,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,c,s,u){var a,f,l=this;return e&&!i(e)?(t.each(e,(function(e,t){l.on(e,n,c,t,u)})),l):(i(n)||o(s)||!1===s||(s=c,c=n,n=void 0),void 0!==s&&!1!==c||(s=c,c=void 0),!1===s&&(s=b),l.each((function(o,i){u&&(a=function(e){return v(i,e.type,s),s.apply(this,arguments)}),n&&(f=function(e){var o,c=t(e.target).closest(n,i).get(0);if(c&&c!==i)return o=t.extend(E(e),{currentTarget:c,liveFired:i}),(a||s).apply(c,[o].concat(r.call(arguments,1)))}),g(i,e,s,c,n,f||a)})))},t.fn.off=function(e,n,r){var c=this;return e&&!i(e)?(t.each(e,(function(e,t){c.off(e,n,t)})),c):(i(n)||o(r)||!1===r||(r=n,n=void 0),!1===r&&(r=b),c.each((function(){v(this,e,r,n)})))},t.fn.trigger=function(e,n){return(e=i(e)||t.isPlainObject(e)?t.Event(e):S(e))._args=n,this.each((function(){e.type in a&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)}))},t.fn.triggerHandler=function(e,n){var r,o;return this.each((function(c,s){(r=E(i(e)?t.Event(e):e))._args=n,r.target=s,t.each(d(s,e.type||e),(function(e,t){if(o=t.proxy(r),r.isImmediatePropagationStopped())return!1}))})),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}})),t.Event=function(e,t){i(e)||(e=(t=e).type);var n=document.createEvent(s[e]||"Events"),r=!0;if(t)for(var o in t)"bubbles"==o?r=!!t[o]:n[o]=t[o];return n.initEvent(e,r,!0),S(n)}}(t),function(){try{getComputedStyle(void 0)}catch(n){var t=getComputedStyle;e.getComputedStyle=function(e,n){try{return t(e,n)}catch(e){return null}}}}(),function(e){var t=e.zepto,n=t.qsa,r=/^\s*>/,o="Zepto"+ +new Date,i=function(t,i){var c,s,u=i;try{u?r.test(u)&&(s=e(t).addClass(o),u="."+o+" "+u):u="*",c=n(t,u)}catch(e){throw e}finally{s&&s.removeClass(o)}return c};t.qsa=function(e,t){var n=t.split(":shadow");if(n.length<2)return i(e,t);for(var r=e,o=0;o")){var s=":host ";(r instanceof Element||r instanceof HTMLDocument)&&(s=":scope "),c=s+c}var u=i(r,c);if(0===u.length||!u[0]||!u[0].shadowRoot)return u;r=u[0].shadowRoot}else r=r.shadowRoot}}}(t),t}(window);const mn=Xe.MutationObserver||Xe.WebkitMutationObserver;function gn(){return E(mn)}function vn(e){return new mn(e)}function yn(){const e=Ke.createTextNode(""),t=[];return vn(()=>{const e=t.length;for(let n=0;n{t.push(n),e.textContent=e.textContent.length>0?"":"a"}}function bn(e){return new pn(e)}function xn(e){return pn.resolve(e)}function wn(e){return pn.reject(e)}function Sn(e){return y(e)?pn.all(e):wn(new TypeError("Expected an array of promises"))}function En(e,t,n){let r=-1;const o=bn((e,o)=>{r=de(()=>o(new Error(n)),t)});return(i=[e,o],y(i)?pn.race(i):wn(new TypeError("Expected an array of promises"))).then(e=>(pe(r),e),e=>{throw pe(r),e});var i}function Tn(e){if(v(e.adobe))return!1;const t=e.adobe;if(v(t.optIn))return!1;const n=t.optIn;return E(n.fetchPermissions)&&E(n.isApproved)}function Cn(e,t){if(!Tn(e))return!0;const n=e.adobe.optIn,r=(e.adobe.optIn.Categories||{})[t];return n.isApproved(r)}function kn(){const e=it().optinEnabled;return function(e,t){return!!t&&Tn(e)}(Xe,e)}function In(){return Cn(Xe,"TARGET")}function Nn(){return function(e,t){if(!Tn(e))return xn(!0);const n=e.adobe.optIn,r=(e.adobe.optIn.Categories||{})[t];return bn((e,t)=>{n.fetchPermissions(()=>{n.isApproved(r)?e(!0):t("Adobe Target is not opted in")},!0)})}(Xe,"TARGET")}pn._setImmediateFn&&(gn()?pn._setImmediateFn(yn()):-1!==Xe.navigator.userAgent.indexOf("MSIE 10")&&pn._setImmediateFn(e=>{let t=hn("