y((2147483647-n)/c))&&d("overflow"),n+=l*c,u<=o?1:o+26<=u?26:u-o);if(ly(2147483647/(l=36-p))&&d("overflow"),c*=l}o=_(n-a,c=e.length+1,0==a),y(n/c)>2147483647-i&&d("overflow"),i+=y(n/c),n%=c,e.splice(n++,0,i)}return h(e)}function n(t){var e,r,n=[],i=(t=f(t)).length,o=128,s=0,a=72;for(l=0;ly((2147483647-s)/p)&&d("overflow"),s+=(u-o)*p,o=u,l=0;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=Math.floor,v=String.fromCharCode,b={version:"1.3.2",ucs2:{decode:f,encode:h},decode:r,encode:n,toASCII:function(t){return e(t,function(t){return l.test(t)?"xn--"+n(t):t})},toUnicode:function(t){return e(t,function(t){return u.test(t)?r(t.slice(4).toLowerCase()):t})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(s&&a)if(module.exports==s)a.exports=b;else for(o in b)b.hasOwnProperty(o)&&(s[o]=b[o]);else t.punycode=b})(this),((t,e)=>{"object"==typeof module&&module.exports?module.exports=e(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(this,function(a,e,u,r){function m(t,e){var r=1<=arguments.length;if(!(this instanceof m))return r?2<=arguments.length?new m(t,e):new m(t):new m;if(void 0===t){if(r)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&r)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}function i(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function s(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function c(t){return"Array"===s(t)}function o(t,e){var r={};if("RegExp"===s(e))r=null;else if(c(e))for(var n=0,i=e.length;n]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/gi,m.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},m.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},m.hostProtocols=["http","https"],m.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,m.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},m.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return m.domAttributes[e]}},m.encode=d,m.decode=decodeURIComponent,m.iso8859=function(){m.encode=escape,m.decode=unescape},m.unicode=function(){m.encode=d,m.decode=decodeURIComponent},m.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},m.encodeQuery=function(t,e){t=m.encode(t+"");return(e=void 0===e?m.escapeQuerySpace:e)?t.replace(/%20/g,"+"):t},m.decodeQuery=function(e,t){e+="",void 0===t&&(t=m.escapeQuerySpace);try{return m.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}},{encode:"encode",decode:"decode"});for(_ in w)m[_+"PathSegment"]=g("pathname",w[_]),m[_+"UrnPathSegment"]=g("urnpath",w[_]);m.decodePath=(w=function(i,o,s){return function(t){for(var e=s?function(t){return m[o](m[s](t))}:m[o],r=0,n=(t=(t+"").split(i)).length;r{"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=e():t.log=e()})(this,function(){function n(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(t,e){for(var r=0;r{t=(l[t]||"silent").toUpperCase();try{return window.localStorage[s]=t}catch(t){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(t){}})(t),a.call(o,t,r),typeof console===u&&t{var p=imt._logger,t=imt._URI,l={};imt.util.isLocalStorageAvailable()||p.info("Storage not available");let h=t.URI(window.location.href);var e=h.search(!0),r=null,n=null;document.referrer&&(n=(r=t.URI(document.referrer)).search(!0)),m(),imt.util.inFrame()&&p.info("Frame detected."),imt.util.inFrame()||(t=u(e),imt.util.isEmptyObject(t)&&r&&imt.settings.enable_referrer&&(e=r.host().toLowerCase(),h.host().toLowerCase()===e||(t=>{if(p.info("Checking linked domain for "+t),0<=(t=t.toLowerCase()).indexOf(":")&&(t=t.substr(0,t.indexOf(":"))),"auto"===imt.settings.cookie_domain&&(t===h.domain().toLowerCase()||t.endsWith("."+h.domain().toLowerCase())))return p.info("Linked domain match on auto cookie domain"),1;if(Array.isArray(imt.settings.linked_domains))for(var e=0;e{if(p.debug("lsget_result",t),p.debug("imt.c.p",imt.c.p),"key"in t&&t.key===imt.const.cookie_name){var e=t.value;if(e){(e=d(e)).tse.t?1:t.t{"hidden"===document.visibilityState&&(m(),imt.saveSessionsToCache())},!1),c(function(){p.debug("DOM ready");{var e=function(e){function s(){var r=[document];try{c("iframe").each(function(){try{var t=this.contentWindow,e=(t.document&&(t=t.document),c(t.body));e.addClass(imt.const.iframe_test_class),e.hasClass(imt.const.iframe_test_class)&&r.push(t)}catch(t){}})}catch(t){}return r}p.debug("IMTLS loaded");var r=!(l.append=function(t){p.debug("append",t),imt.util.isEmptyObject(t)||(t={p:t,e:window.location.href,r:document.referrer||"",t:new Date,tp:null},imt.c.p.push(t),p.debug(imt.c),imt.syncAndFlush())}),n=(l.touch=function(t){var e;p.debug("touch",imt.c),imt.settings.enable_touchpoints&&0');return r.attr("src",e),r.appendTo("body"),imt.on("messagereceived",function(t){t.msg===imt.const.messages.sync_ack&&t.msg_data===imt.const.messages.cookie_sync&&t.source===r.prop("contentWindow")&&(window.location.href=e)}),setTimeout(function(){window.location.href=e},imt.const.hook_link_timeout),!1})},l.clearCache=()=>{p.debug("clearCache"),imt.util.isLocalStorageAvailable()&&localStorage.removeItem(imt.const.cookie_name),f(e,imt.const.messages.clearCache,{key:imt.const.cookie_name,value:{}})},l.enableDebug=()=>{p.debug("enableDebug"),imt.util.isLocalStorageAvailable()&&localStorage.setItem("debug-mode","debug"),f(e,imt.const.messages.enableDebug,{key:"debug-mode",value:"debug"})},l.saveSessionsToCache=()=>{p.debug("saveSessionsToCache"),f(e,imt.const.messages.saveSessionsToCache,{key:imt.const.cookie_name,value:imt.c})},p.debug("lsq init",JSON.stringify(y())),imt.q=[["injectFields"],["updateFields"]].concat(imt.q).concat(y()),v([]),imt.q=imt.q.filter(function(t){return"flush"!==t[0]&&"touch"!==t[0]}),imt.util.inFrame()||(p.info("Queueing touchpoint check."),imt.q=imt.q.concat([["touch"]])),window.imtq=imt.q,p.debug("imt.q init",JSON.stringify(imt.q));for(var t=0;tr&&n.push(i)}return t.p=n,t}return{p:[],u:null,i:null,t:null,ts:new Date,v:6}}function f(t,e,r){e="imt-"+e,(r=r||null)&&(e=e+"("+JSON.stringify(r)+")");r=t,t=e;try{(r=r&&void 0===r.postMessage&&void 0!==r.contentWindow?r.contentWindow:r)&&void 0!==r.postMessage&&r.postMessage(t,"*")}catch(t){p.error("Error posting message",t)}}function g(t,e){imt.util.inFrame()&&f(window.parent,t,e)}function _(t,e){if(window.frames&&0imt.const.lsq_byte_limit&&(t="[]"),(t=JSON.parse(e)).length>imt.const.lsq_entry_limit&&(t=[]);0{if(!e)return"";let r="";return Object.keys(e).filter(t=>imt.const.available_external_click_ids.includes(t?.toLowerCase())).forEach(t=>r+=(r?"&":"")+t.toLowerCase()+"="+e[t]),r})(t);(r.external_click=s)&&++n,0{try{if(!t.ajax)return!1;for(var e=t.fn.jquery.split("."),r="1.7".split("."),n=Math.max(e.length,r.length),i=0;i