/** * @version v6.24.2 * @copyright Copyright 2017 Krux Digital, Inc. All Rights Reserved. */ !function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var r=e[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}var e={};return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.p="",__webpack_require__(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var r,i,o,a;null==(i=null!=window.Krux?window.Krux:window.Krux=function(){window.Krux.q.push(arguments)}).q&&(i.q=[]),r=window.Krux,o=n(2),a=/kxdebug=?(trace|debug|info|warn|error|silent)?/.exec(window.document.cookie),a?a[1]?o.setLevel(a[1],!1):o.setLevel("debug",!1):o.setLevel("silent",!1),r.commit&&!r.ns||(null==r.commit&&(r.commit=1),t.exports=window.Krux=function(t,e){var i,o,a;if(null==e.params&&(e.params={}),o=e.params.control_tag_namespace,window.Krux=r,i=n(4).init(o,function(){return n(67).call}))switch(!1){case"proxy"!==(null!=(a=r.q[0])?a[0]:void 0):r.q.shift(),n(54).server(e);break;case"marketer"!==e.params.client_type:n(28).init(i,e);break;default:n(97).init(i,e)}})},function(t,e,n){var r;r=n(3),t.exports=r.getLogger("Krux")},function(t,e,n){var r,i;!function(o,a){"use strict";r=a,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i))}(this,function(){"use strict";function realMethod(n){return typeof console!==e&&(void 0!==console[n]?bindMethod(console,n):void 0!==console.log?bindMethod(console,"log"):t)}function bindMethod(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function enableLoggingWhenConsoleArrives(t,n,r){return function(){typeof console!==e&&(replaceLoggingMethods.call(this,n,r),this[t].apply(this,arguments))}}function replaceLoggingMethods(e,r){for(var i=0;i=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(o=n,r!==!1&&persistLevelIfPossible(n),replaceLoggingMethods.call(a,n,t),typeof console===e&&n=0&&o0?0:a-1;return arguments.length<3&&(r=e[o?o[s]:s],s+=t),iterator(e,n,r,o,s,a)}}function createPredicateIndexFinder(t){return function(e,n,r){n=w(n,r);for(var i=T(e),o=t>0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(l.call(r,a,s),v.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o=0&&e<=x};v.each=v.forEach=function(t,e,n){e=y(e,n);var r,i;if(E(t))for(r=0,i=t.length;r=0},v.invoke=function(t,e){var n=l.call(arguments,2),r=v.isFunction(e);return v.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))},v.max=function(t,e,n){var r,i,o=-(1/0),a=-(1/0);if(null==e&&null!=t){t=E(t)?t:v.values(t);for(var s=0,u=t.length;so&&(o=r)}else e=w(e,n),v.each(t,function(t,n,r){i=e(t,n,r),(i>a||i===-(1/0)&&o===-(1/0))&&(o=t,a=i)});return o},v.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=E(t)?t:v.values(t);for(var s=0,u=t.length;sr||void 0===n)return 1;if(ne?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(r,i),a||(r=i=null)):a||n.trailing===!1||(a=setTimeout(u,l)),o}},v.debounce=function(t,e,n){var r,i,o,a,s,u=function(){var c=v.now()-a;c=0?r=setTimeout(u,e-c):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=v.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},v.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},v.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},v.once=v.partial(v.before,2);var C=!{"toString":null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];v.keys=function(t){if(!v.isObject(t))return[];if(d)return d(t);var e=[];for(var n in t)v.has(t,n)&&e.push(n);return C&&collectNonEnumProps(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return C&&collectNonEnumProps(t,e),e},v.values=function(t){for(var e=v.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},M=v.invert(R),P=function(t){var e=function(e){return t[e]},n="(?:"+v.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};v.escape=P(R),v.unescape=P(M),v.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),v.isFunction(r)?r.call(t):r};var L=0;v.uniqueId=function(t){var e=++L+"";return t?t+e:e},v.templateSettings={"evaluate":/<%([\s\S]+?)%>/g,"interpolate":/<%=([\s\S]+?)%>/g,"escape":/<%-([\s\S]+?)%>/g};var D=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,j=function(t){return"\\"+U[t]};v.template=function(t,e,n){!e&&n&&(e=n),e=v.defaults({},e,v.templateSettings);var r=RegExp([(e.escape||D).source,(e.interpolate||D).source,(e.evaluate||D).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(q,j),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,v)},u=e.variable||"obj";return s.source="function("+u+"){\n"+o+"}",s},v.chain=function(t){var e=v(t);return e._chain=!0,e};var F=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){v.each(v.functions(t),function(e){var n=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),F(this,n.apply(v,t))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=a[t];v.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],F(this,n)}}),v.each(["concat","join","slice"],function(t){var e=a[t];v.prototype[t]=function(){return F(this,e.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},r=[],i=function(){return v}.apply(e,r),!(void 0!==i&&(t.exports=i))}).call(this)},function(t,e,n){t.exports=function(t){switch(t){case"config":return n(7);case"data":return n(15);case"dom":return n(19);case"events":return n(10);case"feature":return n(11);case"http":return n(21);case"json":return n(8);case"marketer":return n(28);case"ns":return n(4);case"pixel":return n(50);case"routes":return n(67);case"scrape":return n(66);case"segments":return n(52);case"sha1":return n(31);case"sizzle":return n(19);case"sniff":return n(12);case"store":return n(9);case"tag":return n(91);case"test":return n(51);case"underscore":return n(5);case"util":return n(13);default:return}}},function(t,e,n){var r,i,o,a,s,u,c,l=function(t,e){return function(){return t.apply(e,arguments)}},f=function(t,e){function ctor(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return ctor.prototype=e.prototype,t.prototype=new ctor,t.__super__=e.prototype,t},h={}.hasOwnProperty,p=[].slice;o=n(5),s=n(8),u=n(9),i=n(18),c=n(13),r=function(t){function Config(){this._pointerPair=l(this._pointerPair,this),this._makeWatchers=l(this._makeWatchers,this),this.toString=l(this.toString,this),this.toJSON=l(this.toJSON,this),this.destroy=l(this.destroy,this),this.persist=l(this.persist,this),this.has=l(this.has,this),this.remove=l(this.remove,this),this.set=l(this.set,this),this.param=l(this.param,this),this.get=l(this.get,this),Config.__super__.constructor.apply(this,arguments),this._handles=[],this._persisted=[],this._defaults={"confid":"no-confid"}}return f(Config,t),Config.prototype.get=function(t,e){var n,r;if(n=this._pointerPair(t),r=o.isString(n[1])?c.deref(n[0],n[1]):n[0],o.isString(r)){if(/^\d{1,12}$/.test(r))return Number(r);if(/^(true|false)$/.test(r))return"true"===r}return null!=r?r:e},Config.prototype.param=function(t,e){return this.get("params."+t,e)},Config.prototype.set=function(t,e){var n,r;return r=this._pointerPair(t),o.isString(r[1])?(n=c.deref(r[0],r[1]),r[0][r[1]]=e,this._fire("set",t,n,e)):i.prototype.set.apply(this,arguments),this},Config.prototype.remove=function(t){var e,n;return n=this._pointerPair(t),o.isString(n[1])?(e=c.deref(n[0],n[1]),delete n[0][n[1]],this._fire("remove",t,e,void 0)):i.prototype.remove.apply(this,arguments),this},Config.prototype.has=function(t){return Config.__super__.has.call(this,t)||null!=this.get(t)},Config.prototype.persist=function(){var t,e,n,r,i,a;return e=1<=arguments.length?p.call(arguments,0):[],e=o.difference(e,this._persisted),n=function(t){return function(e){t.has(e,!0)&&u.set(e,t.get(e))}}(this),e=function(){var i,a,s;for(s=[],i=0,a=e.length;i0&&!this._has(t)&&(o=t.split("."),a=o[0],e=!0),s=i.prototype.get.call(this,a),e&&(r=o.slice(1,o.length-1).join("."),r&&(s=c.deref(s,r)),n=o.pop()),[s,n]},Config}(i),a=void 0,e.Config=r,e.init=function(t){return!t&&a||(a=new r(t)),a},e.param=function(t,n){return e.init().param(t,n)},e.get=function(t,n){return e.init().get(t,n)},e.set=function(t,n){return e.init().set(t,n)},e.remove=function(t){return e.init().remove(t)},e.has=function(t){return e.init().has(t)}},function(t,e){e.stringify=function(t,e){return null==e&&(e=""),null!=t?window.JSON.stringify(t):e},e.parse=function(t,e){return null==e&&(e={}),null!=t&&""!==t?window.JSON.parse(t):e}},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b,k,S,x,T,E,N={}.hasOwnProperty,O=[].slice;i=n(5),l=n(10),h=n(11),_=n(8),w=n(4),S=n(14),x=n(13),T=n(16),v=function(){try{return window.localStorage}catch(t){return c=t,null}}(),E=["set","get","remove","count","namespace"],f=E.concat(["clear","count","forEach"]),e.whitelist=T.init(T.ALL),e.allowAll=i.bind(e.whitelist.allowAll,e.whitelist),e.allowNone=i.bind(e.whitelist.allowNone,e.whitelist),e.allowOnly=i.bind(e.whitelist.allowOnly,e.whitelist),e.SECONDS=S.SECONDS,e.MINUTES=S.MINUTES,e.HOURS=S.HOURS,e.DAYS=S.DAYS,e.READY_EVENT=r="store:ready",k=function(t){return new Date(i.now()+1e3*t)},o=function(t){return e.prefix&&0!==t.indexOf(e.prefix)&&(t=e.prefix+t),t},b=function(t){return e.prefix?t.replace(new RegExp("^"+e.prefix),""):t},u={"domain":function(t){return"; domain="+t}},d=function(t){return e.whitelist.has(b(t))||e.whitelist.has(t)},e.cookie=s={"_COOKIE_START":"(?:^|\\s|;)","set":function(t,e,n,r){return d(t)&&null!=e&&""!==String(e)?s._set.apply(s,arguments):(s.remove(t),"")},"get":function(t,e){var n,r,i;return null==e&&(e=""),i=""+s._COOKIE_START+t+"=([^;]*)",n=null!=(r=window.document.cookie)?r.match(i):void 0,null!=n?window.decodeURIComponent(n[1]):e},"count":function(t,e,n){return null==e&&(e=1),null==n&&(n=S.endOfDay()),s.set(t,Number(s.get(t,0))+e,n)},"remove":function(t,e){null==e&&(e={}),s._set(t,0,-1,e)},"namespace":function(t){var e,n;return e={},n=new RegExp(""+s._COOKIE_START+t+"([^=]*)=([^;]*)","g"),window.document.cookie.replace(n,function(t,n){e[decodeURIComponent(t)]=decodeURIComponent(n)}),e},"forEach":function(t){return null==t&&(t=function(t,e){}),s.until(function(e,n){return t(e,n),!1})},"until":function(t){var n,r,i,o,a,s,u;for(null==t&&(t=x.yes),a=window.document.cookie.split(/\s*;\s*/),n=0,i=a.length;no;r=0<=o?++i:--i)n=t.charCodeAt(r),e+=function(){switch(!1){case!(n<256):return 1;case!(n<65536):return 2;case!(n<16777216):return 3;default:return 4}}();return 2*e},e.rate=function(t){return Math.random()<=t},e.cleanEmail=function(t){return null==t&&(t=""),t.toLowerCase().replace(/\s+/g,"").replace(/\+[^@]+@gmail/,"@gmail").replace(/\+[^@]+@googlemail/,"@googlemail")},e.numberToRangeBucket=function(t,e,n,r){var i,o;return null==n&&(n=0),null==r&&(r=Infinity),tr?r+"+":0===t&&0===n?"0":(i=e*Math.ceil(t/e),o=i-e,o+"-"+i)},e.collapse=function(t,e,n){var i;return null==e&&(e="."),null==n&&(n=10),i=function(t,a,s,u){var c,l;switch(null==s&&(s={}),null==u&&(u=n),!1){case!(u<0):break;case!!r.isObject(t):s[a]=t;break;default:for(c in t)o.call(t,c)&&(l=t[c],null!=l&&i(l,""+(null!=a?a+e:"")+c,s,u-1))}return s},r.isObject(t)?i(t):{}}},function(t,e,n){var r,i,o;r=n(5),i=n(15),o=function(t){return function(){return i.set(t,r.now())}},e.start=o("started"),e.end=o("ended"),e.SECONDS=1,e.MINUTES=60,e.HOURS=60*e.MINUTES,e.DAYS=24*e.HOURS,e.MONTHS=30*e.DAYS,e.YEARS=365*e.MONTHS,e.endOfDay=function(){var t;return t=new Date(r.now()+864e5),(new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date)/1e3}},function(t,e,n){var r,i,o,a,s,u,c,l={}.hasOwnProperty;r=n(5),i=n(10),c=n(13),e.root=s={},o=function(t){return/_/.test(t)?t:"_"+t},e.get=function(t,e){var n;return null!=(n=s[o(t)])?n:e},e.set=function(t,n){var o,a,s;return r.isString(t)?(a=u(t,n),i.fire("data:change",{"key":t,"value":a}),a):function(){var n;n=[];for(o in t)l.call(t,o)&&(s=t[o],n.push(e.set(o,s)));return n}()},e.setSilently=u=function(t,e){return s[o(t)]=e},e.remove=function(t){delete s[t]},e.append=function(t,n){var i,a,s;return r.isString(t)?(t=o(t),a=null!=e.get(t)?e.get(t):[],r.isArray(a)||(a=[a]),a.push(n),e.set(t,r.uniq(a))):function(){var n;n=[];for(i in t)l.call(t,i)&&(s=t[i],n.push(e.append(i,s)));return n}()},e.raw=function(){return s},e.namespace=a=function(t,n){var r,o,a,u;return a=t+"_",u=new RegExp(a+"(.+)"),r=c.attributes({"get":function(t){return e.get(a+t)},"set":function(t,n){return e.set(a+t,n)},"all":function(){var t,e,n,r;n={};for(t in s)l.call(s,t)&&(r=s[t],e=t.match(u),null!=e&&(n[e[1]]=r));return n},"values":n}),o=void 0,r.change=function(t){o||(o=[],i.on("data:change",function(e){var n,r;if(u.test(e.key))for(n=0,r=o.length;n"),e;if(e(">"),"string"==typeof o)e(o);else for(c=0,l=o.length;c"),e},p=function(t,e,n){var r;return null==e&&(e={}),null==n&&(n=[]),r="string"!=typeof t?t:{"tagName":t,"attributes":e,"children":n},W(r).data()},k=function(t){var e;return e=window.document.createElement("div"),e.innerHTML=t,e.childNodes},b=function(t){return k(t)[0]},e.byId=function(t){return(null!=t?t.nodeType:void 0)?t:window.document.getElementById(t)},e.head=w=function(t){return null==t&&(t=window.document),t.head||t.getElementsByTagName("head")[0]},e.document=function(t){return t.document||t.ownerDocument||t},e.window=function(t){var n,r;return n=e.document(t),null!=(r=n.parentWindow)?r:n.defaultView},e.create=e.createElement=function(){var t;return t=1<=arguments.length?z.call(arguments,0):[],b(p.apply(null,t))},e.remove=I=function(t){t.parentNode.removeChild(t)},e.isNode=function(t){return!!t.nodeType},e.before=h=function(t,e){t.parentNode.insertBefore(e,t)},e.append=l=function(t,e){t.appendChild(e)},e.after=function(t,e){var n;return n=t.nextSibling,n?h(n,e):l(t.parentNode,e)},e.prepend=function(t,e){var n;return n=t.firstChild,n?h(n,e):l(t,e)},e.insert=function(t,n,r){return 3===arguments.length?e[t](n,r):(r=t,h(window.document.getElementsByTagName("script")[0],r))},e.replace=function(t,e){return h(t,e),I(t)},e.scriptEval=function(t){var e;e=window.document.createElement("script"),e.text=t,w(window.document).appendChild(e)},e.winEval=function(t,e){var n;return t.kxeval||(n="(function(){,\n var win = this;,\n win.kxeval = win.execScript ? ,\n function(expr){return win.execScript(expr);} :,\n function(expr){return win.eval(expr);};,\n})();",t.execScript?t.execScript(n):t["eval"](n)),t.kxeval(e)},e.childElements=function(t){var e,n,r,i,o,a;for(n=[],a=null!=(o=null!=t?t.childNodes:void 0)?o:[],r=0,i=a.length;r-1||P.ie&&P.version<8||P.ff&&P.version<4||!window.document.readyState||function(){var t;try{return null==(null!=(t=window.JSON)&&"function"==typeof t.parse?t.parse("true"):void 0)}catch(t){return!0}}()||null==window.document.querySelectorAll},e.init=u.once(function(){var t;if(A.trace(o,"init called"),/^(complete|loaded)$/.test(window.document.readyState))_(i)();else{if(P.ie){c(window,i,_(a)),t=!1;try{t=null==window.frameElement}catch(t){}window.document.documentElement.doScroll&&t&&d()}for(B in M)H.call(M,B)&&(U=M[B],c(U.target,U.nativeName,_(B)))}window.setTimeout(function(){return _(i)({"timedout":!0})},6e3)})},function(t,e,n){var r,i,o,a;i=n(5),a=n(19),o={"target":null,"targetAction":"append","html":"","attr":{}},e.IFrame=r=function(){function IFrame(t){this.options=i.extend({},o,t||{}),this.node=a.createElement("iframe",this.options.attr),"function"==typeof this.options.onload&&a.onload(this.node,this.options.onload),this.insert(),this.options.attr.src&&!this.options.html||this.html(this.options.html||"")}return IFrame.prototype.insert=function(){var t,e,n;e=this.options,t=e.targetAction,n=e.target||window.document.body,a.insert(t,n,this.node)},IFrame.prototype.html=function(t){var e;e=this.doc(),t.match(/^/)||(t=""+t+""),e.open(),e.write(t),e.close()},IFrame.prototype.win=i.memoize(function(t){return t.contentWindow}),IFrame.prototype.doc=i.memoize(function(t){try{return IFrame.window(t).document}catch(t){}}),IFrame}()},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y={}.hasOwnProperty;i=n(5),s=n(15),u=n(10),c=n(11),f=n(8),d=n(12),m=n(13),v=n(22),e.protocol=p="https:"===window.location.protocol?"https:":"http:",r=e.REQUEST_ID_KEY="request_id",e.maxUrlLength=d.is===d.Browsers.IE?2030:8e3,e.param=h=function(t,e){var n;return n=i.isString(e)||i.isNumber(e)?e:f.stringify(e),encodeURIComponent(t)+"="+encodeURIComponent(n)},_=function(t,e){return t.match(/^\/\//)&&(t=p+t),e.length>0?t+"?"+e.join("&"):t},l=i.compose(function(t){return t.length>e.maxUrlLength},_),a=function(t,e){return[r+"="+e].concat(t)},o=function(t){return n(7).init().get("params.first_party_uid",!1)&&!c.hasThirdPartyCookies()&&(null==t.data&&(t.data={}),t.data._kuid=s.get("user")),t},e.srcs=g=function(t){var e,n,r,o,s,u,c,f,p,d,g,m,w;if(t=i.clone(t),m=t.url=t.url||"no_url",p=v.v4(),g=i.partial(_,m),n=i.partial(l,m),c=function(){var e,n;e=t.data,n=[];for(o in e)y.call(e,o)&&(w=e[o],null!=w&&""!==w&&n.push(h(o,w)));return n}(),t.noClip)return[g(c)];for(e=function(t,r){var i;for(r=r||[],i=[],t=a(t,p);n(t)&&t.length;)i.push(t.pop());return r.push(t),i.length>0&&t.length>0?e(i,r):(1===r.length&&r[0].shift(),r)},f=e(c),d=[],r=0,s=f.length;r1&&u.fire("http:error",{"code":"overflow","message":"Too many params for a single URL (max = "+e.maxUrlLength+").\nUsing first URL chunk; use http#srcs instead to handle long URLs"}),i.head(n)},e.willClip=function(t){var n;return n=e.src(i.extend({"noClip":!0},t)),n.length>e.maxUrlLength&&n.length-e.maxUrlLength},e.pixel=function(t){var n,r,i,a,s;try{for(a=g(o(t)),n=r=0,i=a.length;ru)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=f,c=h,s=l,f+=122192928e5;var d=(1e4*(268435455&f)+h)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var g=f/4294967296*1e4&268435455;o[r++]=g>>>8&255,o[r++]=255&g,o[r++]=g>>>24&15|16,o[r++]=g>>>16&255,o[r++]=l>>>8|128,o[r++]=255&l;for(var _=t.node||a,m=0;m<6;++m)o[r+m]=_[m];return e?e:i(o)}var r=n(24),i=n(25),o=r(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],s=16383&(o[6]<<8|o[7]),u=0,c=0;t.exports=v1},function(t,e){(function(e){var n,r=e.crypto||e.msCrypto;if(r&&r.getRandomValues){var i=new Uint8Array(16);n=function(){return r.getRandomValues(i),i}}if(!n){var o=new Array(16);n=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}t.exports=n}).call(e,function(){return this}())},function(t,e){function bytesToUuid(t,e){var r=e||0,i=n;return i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]}for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=bytesToUuid},function(t,e,n){function v4(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var a=t.random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}var r=n(24),i=n(25);t.exports=v4},function(t,e,n){var r,i,o,a,s={}.hasOwnProperty;i=n(10),o=n(21),a=n(4),e.createScript=function(t){var e,n;return n=window.document.createElement("script"),n.type="text/javascript",n.src=t,e=window.document.getElementsByTagName("script")[0],e.parentNode.insertBefore(n,e)},e.Request=r=function(){function Request(t){var e,n;if(null==t.data&&(t.data={}),this.options=t,!t.callback)throw new Error("Callback name is required");for(e in t)s.call(t,e)&&(n=t[e],this[e]=n);this.self&&(this.done=function(t){var e;return(e=this.self).done.apply(e,t)},this.fail=function(t){var e;return(e=this.self).fail.apply(e,t)}),this.plantReceiver(),this.src=o.src(this),Request.all.push(this)}return Request.all=[],Request.prototype.fail=function(t){var e;e=t&&t.status||"unknown",i.fire("error",{"message":"jsonp failed with status "+e+" src: "+this.src})},Request.prototype.done=function(){},Request.prototype.receive=function(t){return this.time.end=new Date,t.status?"200"===String(t.status)?this.done(t.body):this.fail(t):this.done(t)},Request.prototype.plantReceiver=function(){var t;t=this.options.callback,this.data.callback=a.path+"."+t,a.self[t]=function(t){return function(){t.receive.apply(t,arguments)}}(this)},Request.prototype.sendInline=function(){var t;return t='',window.document.write(t),this},Request.prototype.send=function(){return this.time={"start":new Date},this.inline?this.sendInline():e.createScript(this.src),this},Request.clear=function(){return Request.all=[]},Request}(),e.call=function(t){return new r(t).send()},e.clear=r.clear},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b,k,S,x,T,E,N,O,A;a=n(5),u=n(7),c=n(15),l=n(19),f=n(10),h=n(11),p=n(29),g=n(49),_=n(69),v=n(45),y=n(54),w=n(70).tag,b=n(71),k=n(66),S=n(46),x=n(9),T=n(91),E=n(51),N=n(95),O=n(14),o=n(47),A=n(13),r="data-kx-id",i=/^https?:\/\/([a-z0-9_\-\.]+\.)?krxd\.net(:\d{1,5})?(\/|$)/i,s=function(t,e){return l.attr(e,r,t),e},e.getParams=d=function(t){return A.urlParams(l.attr(t,"src"),"&;","=:")},e.next=m=function(t){var e;if(e=a.find(l.find("script[src*='"+t+"']"),function(t){return!l.attr(t,r)&&i.test(t.src)}),!e)throw new Error("No node found for "+t);return e},e.init=function(t,e){var n,r,i,y,k,A,C,B,I,R;if(k=new Date,n=u.init(e),r=n.get("confid"),R=r+"-"+k.getTime(),O.start(),T.claimOneTimers(n.get("tags")),l.init(),_.init(),c.init(),c.set("tags",n.get("tags")||[]),c.user_attr=c.namespace("user_attr"),c.page_attr=c.namespace("page_attr"),c.set("confid",r),c.set("domain",l.baseDomain(window.location.host)),c.set("schema_version",n.get("app.schema_version")),c.set("site",c.get("site")||n.get("site.name")||c.get("domain")),c.set("siteid",c.get("siteid")||n.get("site.id")),c.set("pubid",c.get("pubid")||n.get("publisher.uuid")),n.get("params.no_pii")&&(c.set("pixel_data__knopii",1),c.user_attr("kx_lang",null),c.user_attr("kx_tech_browser_language",null)),c.set("tags",n.get("tags")),c.set("url",window.location.href),c.set("config",n.toJSON()),c.set("pageview_uid",(new o).toLongId()),c.set("version_bucket",n.get("params.control_tag_version")),l.safeMode())return f.onOnce("dom:load",a.bind(f.fireOnce,null,"report")),void O.end();if(y=s(R,m(r)),A=d(y),C=n.get("services"),!C||!C.impression)throw new Error("impression service not specified");A.url=C.impression,c.namespace("url",n.get("services")),c.namespace("config_param",n.get("params")),E.init(),N.init(),x.init(),v.init(),n.get("params.fingerprint")&&!v.isOptOut()&&p.init(x),n.get("params.first_party_uid")&&!h.hasThirdPartyCookies()&&(i=x.get("kuid")||(new o).toShortId(),c.set("user",i),v.storeKuid()),I=function(){var t,e,n,r;for(n=c.get("tags")||[],r=[],t=0,e=n.length;t>>27}function rotl30(t){return t<<30|t>>>2}function ft(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var r=n(38),i=n(39),o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);r(Sha,i),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var c=0;c<80;++c){var l=~~(c/20),f=rotl5(n)+ft(l,r,i,a)+s+e[c]+o[l]|0;s=a,a=i,i=rotl30(r),r=n,n=f}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Sha.prototype._hash=function(){var t=new e(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=Sha}).call(e,n(34).Buffer)},function(t,e,n){(function(t){ "use strict";function typedArraySupport(){try{var t=new Uint8Array(1);return t.__proto__={"__proto__":Uint8Array.prototype,"foo":function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,e){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function SlowBuffer(t){return+t!=t&&(t=0),Buffer.alloc(+t)}function byteLength(t,e){if(Buffer.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(t).length;default:if(r)return utf8ToBytes(t).length;e=(""+e).toLowerCase(),r=!0}}function slowToString(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return hexSlice(this,e,n);case"utf8":case"utf-8":return utf8Slice(this,e,n);case"ascii":return asciiSlice(this,e,n);case"latin1":case"binary":return latin1Slice(this,e,n);case"base64":return base64Slice(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function swap(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function bidirectionalIndexOf(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Buffer.from(e,r)),Buffer.isBuffer(e))return 0===e.length?-1:arrayIndexOf(t,e,n,r,i);if("number"==typeof e)return e&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):arrayIndexOf(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,e,n,r,i){function read(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}var o=1,a=t.length,s=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,a/=2,s/=2,n/=2}var u;if(i){var c=-1;for(u=n;ua&&(n=a-s),u=n;u>=0;u--){for(var l=!0,f=0;fi&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128===(192&u)&&(f=(31&o)<<6|63&u,f>127&&(a=f));break;case 3:u=t[i+1],c=t[i+2],128===(192&u)&&128===(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return decodeCodePointsArray(r)}function decodeCodePointsArray(t){var e=t.length;if(e<=a)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function checkInt(t,e,n,r,i,o){if(!Buffer.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function objectWriteUInt16(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function objectWriteUInt32(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function checkIEEE754(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(t,e,n,r,o){return o||checkIEEE754(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(t,e,n,r,23,4),n+4}function writeDouble(t,e,n,r,o){return o||checkIEEE754(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(t,e,n,r,52,8),n+8}function base64clean(t){if(t=stringtrim(t).replace(s,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function stringtrim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function toHex(t){return t<16?"0"+t.toString(16):t.toString(16)}function utf8ToBytes(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function asciiToBytes(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function base64ToBytes(t){return r.toByteArray(base64clean(t))}function blitBuffer(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function isnan(t){return t!==t}var r=n(35),i=n(36),o=n(37);e.Buffer=Buffer,e.SlowBuffer=SlowBuffer,e.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:typedArraySupport(),e.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,e,n){return from(null,t,e,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{"value":null,"configurable":!0})),Buffer.alloc=function(t,e,n){return alloc(null,t,e,n)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=function(t){return!(null==t||!t._isBuffer)},Buffer.compare=function(t,e){if(!Buffer.isBuffer(t)||!Buffer.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},Buffer.prototype.compare=function(t,e,n,r,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;li)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return hexWrite(this,t,e,n);case"utf8":case"utf-8":return utf8Write(this,t,e,n);case"ascii":return asciiWrite(this,t,e,n);case"latin1":case"binary":return latin1Write(this,t,e,n);case"base64":return base64Write(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Buffer.prototype.toJSON=function(){return{"type":"Buffer","data":Array.prototype.slice.call(this._arr||this,0)}};var a=4096;Buffer.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},Buffer.prototype.readUInt8=function(t,e){return e||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,e){return e||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,e){return e||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,e){return e||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,e){return e||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||checkOffset(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},Buffer.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||checkOffset(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},Buffer.prototype.readInt8=function(t,e){return e||checkOffset(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},Buffer.prototype.readInt16LE=function(t,e){e||checkOffset(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function(t,e){e||checkOffset(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function(t,e){return e||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,e){return e||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;checkInt(this,t,e,n,i,0)}var o=1,a=0;for(this[e]=255&t;++a=0&&(a*=256);)this[e+o]=t/a&255;return e+n},Buffer.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Buffer.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},Buffer.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Buffer.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Buffer.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeFloatLE=function(t,e,n){return writeFloat(this,t,e,!0,n)},Buffer.prototype.writeFloatBE=function(t,e,n){return writeFloat(this,t,e,!1,n)},Buffer.prototype.writeDoubleLE=function(t,e,n){return writeDouble(this,t,e,!0,n)},Buffer.prototype.writeDoubleBE=function(t,e,n){return writeDouble(this,t,e,!1,n)},Buffer.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var o;if("number"==typeof t)for(o=e;o0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function byteLength(t){return 3*t.length/4-placeHoldersCount(t)}function toByteArray(t){var e,n,o,a,s,u,c=t.length;s=placeHoldersCount(t),u=new i(3*c/4-s),o=s>0?c-4:c;var l=0;for(e=0,n=0;e>16&255,u[l++]=a>>8&255,u[l++]=255&a;return 2===s?(a=r[t.charCodeAt(e)]<<2|r[t.charCodeAt(e+1)]>>4,u[l++]=255&a):1===s&&(a=r[t.charCodeAt(e)]<<10|r[t.charCodeAt(e+1)]<<4|r[t.charCodeAt(e+2)]>>2,u[l++]=a>>8&255,u[l++]=255&a),u}function tripletToBase64(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function encodeChunk(t,e,n){for(var r,i=[],o=e;oc?c:u+s));return 1===i?(e=t[r-1],o+=n[e>>2],o+=n[e<<4&63],o+="=="):2===i&&(e=(t[r-2]<<8)+t[r-1],o+=n[e>>10],o+=n[e>>4&63],o+=n[e<<2&63],o+="="),a.push(o),a.join("")}e.byteLength=byteLength,e.toByteArray=toByteArray,e.fromByteArray=fromByteArray;for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?h/u:h*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=d,a/=256,c-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{"constructor":{"value":t,"enumerable":!1,"writable":!0,"configurable":!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){(function(e){function Hash(t,n){this._block=new e(t),this._finalSize=n,this._blockSize=t,this._len=0,this._s=0}Hash.prototype.update=function(t,n){"string"==typeof t&&(n=n||"utf8",t=new e(t,n));for(var r=this._len+=t.length,i=this._s||0,o=0,a=this._block;i=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},Hash.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=Hash}).call(e,n(34).Buffer)},function(t,e,n){(function(e){function Sha1(){this.init(),this._w=a,i.call(this,64,56)}function rotl1(t){return t<<1|t>>>31}function rotl5(t){return t<<5|t>>>27}function rotl30(t){return t<<30|t>>>2}function ft(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var r=n(38),i=n(39),o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);r(Sha1,i),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=rotl1(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var c=0;c<80;++c){var l=~~(c/20),f=rotl5(n)+ft(l,r,i,a)+s+e[c]+o[l]|0;s=a,a=i,i=rotl30(r),r=n,n=f}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Sha1.prototype._hash=function(){var t=new e(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=Sha1}).call(e,n(34).Buffer)},function(t,e,n){(function(e){function Sha224(){this.init(),this._w=a,o.call(this,64,56)}var r=n(38),i=n(42),o=n(39),a=new Array(64);r(Sha224,i),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var t=new e(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=Sha224}).call(e,n(34).Buffer)},function(t,e,n){(function(e){function Sha256(){this.init(),this._w=a,i.call(this,64,56)}function ch(t,e,n){return n^t&(e^n)}function maj(t,e,n){return t&e|n&(t|e)}function sigma0(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function sigma1(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function gamma0(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function gamma1(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var r=n(38),i=n(39),o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);r(Sha256,i),Sha256.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,c=0|this._g,l=0|this._h,f=0;f<16;++f)e[f]=t.readInt32BE(4*f);for(;f<64;++f)e[f]=gamma1(e[f-2])+e[f-7]+gamma0(e[f-15])+e[f-16]|0;for(var h=0;h<64;++h){var p=l+sigma1(s)+ch(s,u,c)+o[h]+e[h]|0,d=sigma0(n)+maj(n,r,i)|0;l=c,c=u,u=s,s=a+p|0,a=i,i=r,r=n,n=p+d|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=c+this._g|0,this._h=l+this._h|0},Sha256.prototype._hash=function(){var t=new e(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=Sha256}).call(e,n(34).Buffer)},function(t,e,n){(function(e){function Sha384(){this.init(),this._w=a,o.call(this,128,112)}var r=n(38),i=n(44),o=n(39),a=new Array(160);r(Sha384,i),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){function writeInt64BE(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=new e(48);return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),t},t.exports=Sha384}).call(e,n(34).Buffer)},function(t,e,n){(function(e){function Sha512(){this.init(),this._w=a,i.call(this,128,112)}function Ch(t,e,n){return n^t&(e^n)}function maj(t,e,n){return t&e|n&(t|e)}function sigma0(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function sigma1(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function Gamma0(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function Gamma0l(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function Gamma1(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function Gamma1l(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function getCarry(t,e){return t>>>0>>0?1:0}var r=n(38),i=n(39),o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160); r(Sha512,i),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,u=0|this._fh,c=0|this._gh,l=0|this._hh,f=0|this._al,h=0|this._bl,p=0|this._cl,d=0|this._dl,g=0|this._el,_=0|this._fl,m=0|this._gl,v=0|this._hl,y=0;y<32;y+=2)e[y]=t.readInt32BE(4*y),e[y+1]=t.readInt32BE(4*y+4);for(;y<160;y+=2){var w=e[y-30],b=e[y-30+1],k=Gamma0(w,b),S=Gamma0l(b,w);w=e[y-4],b=e[y-4+1];var x=Gamma1(w,b),T=Gamma1l(b,w),E=e[y-14],N=e[y-14+1],O=e[y-32],A=e[y-32+1],C=S+N|0,B=k+E+getCarry(C,S)|0;C=C+T|0,B=B+x+getCarry(C,T)|0,C=C+A|0,B=B+O+getCarry(C,A)|0,e[y]=B,e[y+1]=C}for(var I=0;I<160;I+=2){B=e[I],C=e[I+1];var R=maj(n,r,i),M=maj(f,h,p),P=sigma0(n,f),L=sigma0(f,n),D=sigma1(s,g),U=sigma1(g,s),q=o[I],j=o[I+1],F=Ch(s,u,c),W=Ch(g,_,m),H=v+U|0,K=l+D+getCarry(H,v)|0;H=H+W|0,K=K+F+getCarry(H,W)|0,H=H+j|0,K=K+q+getCarry(H,j)|0,H=H+C|0,K=K+B+getCarry(H,C)|0;var z=L+M|0,Y=P+R+getCarry(z,L)|0;l=c,v=m,c=u,m=_,u=s,_=g,g=d+H|0,s=a+K+getCarry(g,d)|0,a=i,d=p,i=r,p=h,r=n,h=f,f=H+z|0,n=K+Y+getCarry(f,H)|0}this._al=this._al+f|0,this._bl=this._bl+h|0,this._cl=this._cl+p|0,this._dl=this._dl+d|0,this._el=this._el+g|0,this._fl=this._fl+_|0,this._gl=this._gl+m|0,this._hl=this._hl+v|0,this._ah=this._ah+n+getCarry(this._al,f)|0,this._bh=this._bh+r+getCarry(this._bl,h)|0,this._ch=this._ch+i+getCarry(this._cl,p)|0,this._dh=this._dh+a+getCarry(this._dl,d)|0,this._eh=this._eh+s+getCarry(this._el,g)|0,this._fh=this._fh+u+getCarry(this._fl,_)|0,this._gh=this._gh+c+getCarry(this._gl,m)|0,this._hh=this._hh+l+getCarry(this._hl,v)|0},Sha512.prototype._hash=function(){function writeInt64BE(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=new e(64);return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),writeInt64BE(this._gh,this._gl,48),writeInt64BE(this._hh,this._hl,56),t},t.exports=Sha512}).call(e,n(34).Buffer)},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b,k,S,x,T,E,N;u=n(5),c=n(7),l=n(15),f=n(10),h=n(11),d=n(21),b=n(12),k=n(46),S=n(9),E=n(14),s=n(47),N=n(13),r="optout:",e.USER_ID_TTL=a=6*E.MONTHS,e.Events=i={"ATTEMPT_CHANGE":r+"attemptChange","CHANGE":r+"change","ERROR":r+"error","REQUEST":r+"request","RESPONSE":r+"response","USER_UPDATE":"user:update"},e.OPTOUT_ALLOWED_KEYS=o=[/^tag\d*\.day$/,"optout"],m=function(t){return u.extend({"code":"success","type":"no_change","time":new Date},t)},y=!1,p=function(t){f.fire(i.REQUEST),d.jsonp({"callback":"kxjsonp_optOutCheck","done":t,"fail":u.partial(f.fire,i.ERROR),"url":c.get("services.is_optout")})},e.fetch=function(t){return null==t&&(t=u.noop),p(function(n){return e.handler(n),t(n)})},w=function(t){var e;f.fire(i.ATTEMPT_CHANGE),e=u.partial(f.fire,i.CHANGE),h.hasThirdPartyCookies()?d.jsonp({"callback":"kxjsonp_optOutChange","done":e,"fail":u.partial(f.fire,i.ERROR),"url":c.get("services.set_opt"+(t?"out":"in"))}):e(m({"type":"optout_change"}))},e.optOut=v=function(t,e){null==t&&(t=!0),null==e&&(e=!1),t?(_()||w(t),S.allowOnly.apply(S,o),S.clear(),e&&!h.hasThirdPartyCookies()||S.set("optout","true")):(_()&&w(t),S.allowAll(),S.remove("optout")),y=t,c.set("dnt",y)},T=function(){return"true"===("function"==typeof S.get?S.get("optout"):void 0)},e.isDnt=g=function(){var t;return!(b.ie&&b.version>=10)&&(t=N.deref("doNotTrack"),null==t&&(t=N.deref("navigator.doNotTrack")),/(?:yes|1)/i.test(t))},e.isOptOut=_=function(){return Boolean(y||c.get("dnt",!1)||T()||g())},e.storeKuid=x=function(t){var e,n;null==t&&(t=l.get("user")||("function"==typeof S.get?S.get("kuid"):void 0)),n="function"==typeof S.get?S.get("org_user_id"):void 0,y||null==t&&!n||(l.set("user",n||t),e=function(){switch(!1){case""===n:return n;case!c.param("dfp_premium",!1):return s.fromShort(t).toLongId();default:return t}}(),"function"==typeof S.set&&S.set("user",e,a),"function"==typeof S.set&&S.set("kuid",t,a),k.timeDeltaOnce("set_kuid"),f.fire(i.USER_UPDATE,{"kuid":e,"short":t,"long":s.fromShort(t).toLongId()}))},e.handler=function(t){var e;f.fire(i.RESPONSE,t),e=t._kuid_||t.kuid,t.optout||/^(?:OPTOUT|DNT)$/i.test(t._kuid_||"")?v():null!=t&&null==(null!=t?t.optout:void 0)&&null==e||v(!1),x(e)},e.handleOptOut=function(t,e){var n,r,o;return null==e&&(e=u.noop),null==t?_():t===_()?void e(null,m()):(r=function(){f.off(i.CHANGE,o),f.off(i.ERROR,n)},o=function(t){return e(null,t),r()},n=function(t){return e(new Error(t.message),t),r()},f.on(i.CHANGE,o),f.on(i.ERROR,n),void v(t))},e.init=function(){var t;f.onOnce("dom:load",function(){return p(e.handler)}),t=function(){g()?v(!0,!0):_()&&v(),f.off(S.READY_EVENT,t)},f.onOnce(S.READY_EVENT,t)}},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b={}.hasOwnProperty;i=n(5),a=n(7),s=n(15),c=n(10),f=n(21),d=n(2),_=n(12),o=n(13).collapse,r="[stats]",u={"count":{},"time":{}},e.get=l=function(t,e){return u[t][e]},e.set=g=function(t,e,n){u[t][e]=n},e.time=m=function(t,e){d.debug(r,"timing:",t,"at value",e),g("time",t,e)},e.timeOnce=w=i.memoize(m),e.timeDelta=v=function(t,e){var n,o,a;return null==e&&(e=i.now()),n=null!=(o=window.performance)&&null!=(a=o.timing)?a.navigationStart:void 0,null!=n?m(t,e-n):void d.warn(r,"skipping timeDelta for",t,"; no navigationStart available")},e.timeDeltaOnce=y=i.memoize(v),e.inc=h=function(t){var e;e=l("count",t)||0,g("count",t,e+1)},e.incPath=p=function(t){var e;e=t.split("."),i.times(e.length,function(t){h(i.first(e,t+1).join("."))})},e.init=i.once(function(){var t,e,n,r,i,l,d,g,m;if(d=a.param("controltag_performance_stats_export",!1),g=0,t="."+_.bucket,e="."+s.get("config_param_control_tag_version"),m=e+t,p("views"+m),n=null!=(i=window.performance)&&null!=(l=i.timing)?l.navigationStart:void 0,null!=n&&w("nav_start",Math.floor(n)),y("start",s.get("started")),c.onOnce("tag:started",function(){return y("tags_first")}),c.onOnce("dom:ready",function(){return y("dom_ready")}),c.onOnce("dom:load",function(){return y("dom_load")}),c.on("social",function(t){h(t.provider+"."+t.action)}),c.on("tag:done",function(){p("tags_delivered"+m)}),r=0,c.on("error",function(){var t;try{if(r>10)return;r++,p("js_errors"+m)}catch(e){return void(t=e)}}),g=".alpha"===e||d?1:".beta"===e||".steady"===e||".stable"===e?.01:.001,Math.random()8||u.test(t)||("function"==typeof t.indexOf?t.indexOf(c):void 0)!==-1},Uid.fromShort=function(t){return new Uid(Uid.isFallback(t)?t:a.SHORT_CODEC.decode(t))},Uid.fromLong=function(t){return new Uid(Uid.isFallback(t)?t:a.LONG_CODEC.decode(t))},Uid}();e["default"]=l},function(t,e){var n=function(t){void 0==t&&(t=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};n.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(1812433253*((4294901760&t)>>>16)<<16)+1812433253*(65535&t)+this.mti,this.mt[this.mti]>>>=0}},n.prototype.init_by_array=function(t,e){var n,r,i;for(this.init_seed(19650218),n=1,r=0,i=this.N>e?this.N:e;i;i--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+t[r]+r,this.mt[n]>>>=0,n++,r++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=e&&(r=0)}for(i=this.N-1;i;i--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648},n.prototype.random_int=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^e[1&t];for(;n>>1^e[1&t];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[1&t],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,t^=t>>>18,t>>>0},n.prototype.random_int31=function(){return this.random_int()>>>1},n.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},n.prototype.random=function(){return this.random_int()*(1/4294967296)},n.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},n.prototype.random_long=function(){var t=this.random_int()>>>5,e=this.random_int()>>>6;return(67108864*t+e)*(1/9007199254740992)},t.exports=n},function(t,e){"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var n=e.Codec=function(){function Codec(t){_classCallCheck(this,Codec),this.charMap=t,this.indexMap={};for(var e=this.charMap.length,n=0;n0;){var r=t%e;t=Math.floor(t/e),n.push(this.charMap[r])}return n.reverse().join("")},Codec.prototype.decode=function(t){for(var e=t.length,n=0,r=0;r=0})}},e.keys=o(i),e.pluckAll=a=function(t,e){var n,r,i,o,a,s,c,f,h;for(null==e&&(e=u.yes),n=u.deref(t),n.length||(n=function(){var t;t=[];for(i in n)l.call(n,i)&&(f=n[i],t.push(f));return t}()),c=[],r=0,a=n.length;r0))return v.fetch()},500))},e.stringifyValue=x=function(t){var e;return null==t&&(t=""),o.isArray(t)?function(){var n,r,i;for(i=[],n=0,r=t.length;n3e4?-1:n},o.extend(B,{"t_navigation_type":O.type,"t_dns":d("domainLookup"),"t_tcp":d("connect"),"t_http_request":d("request"),"t_http_response":d("response"),"t_content_ready":d("navigationStart","domInteractive"),"t_window_load":d("navigationStart","loadEventStart"),"t_redirect":d("redirect")})),F=n(66),z=f.happened("user_data_response"),A=n(4),y=A.isDefault?r:r[A.name]||{},o.extend(B,{"interchange_ran":y.hasOwnProperty("user"),"store_user":y.user,"store_segs":y.segments,"dart_user":F.dart("u"),"dart_segs":F.dart("ksgmnt")||F.dart("ksg"),"userdata_was_requested":!!f.happened("user_data_request"),"userdata_did_respond":!!z,"store_user_after":S.get("user"),"store_segs_after":S.get("segs")}),N=window.location.href.split("#")[0],p=F.link_rel("canonical")||F.opengraph("url")||N,N!==p&&(B._kurl_=p),z&&o.extend(B,{"userdata_user":[z.kuid,z.kuid_long],"userdata_segs":[].concat(function(){var t,e;t=z.segments,e=[];for(l in t)E.call(t,l)&&(G=t[l],e.push(G));return e}())}),C=S.get("org_user_id"),null!=C&&""!==C?(m.info(i,"Found org_user_id existy. Adding '_kuid="+C+"' to pixel."),o.extend(B,{"_kuid":C})):u.param("target_fingerprint",!1)&&!h.hasThirdPartyCookies()&&(m.info(i,"Found target_fingerprint param truthy and no third party cookies. Adding _kuid="+c.get("fp_id")),o.extend(B,{"_kuid":c.get("fp_id")})),u.param("no_pii",!1)?(m.info(i,"Found no_pii param truthy. Adding browser_bucket="+k.browser+", browser_version="+k.version),o.extend(B,{"browser_bucket":k.browser,"browser_version":k.version})):u.param("fingerprint",!1)&&(_=c.get("fp"),v=c.get("fp_id"),m.info(i,"Found fingerprint param truthy. Adding kfuid="+v+", kxfp="+_),o.extend(B,{"kfuid":v,"kxfp":_})),L={"user":"_kua_","page":"_kpa_"};for(K in L)if(E.call(L,K)){I=L[K],D=c[K+"_attr"]();for(x in D)E.call(D,x)&&(Y=D[x],B[I+x]=Y)}try{j=window.sessionStorage}catch(t){g=t,j=null}if(j)try{B.sview=j.krux_views=+(j.krux_views||0)+1}catch(t){}for(U=c.get("tags"),w=b=0,T=U.length;bh&&(h=s,m=w);e.failureGroup=m.code+(m.data?":"+m.data:""),e.phase=a.happened("dom:load")?"after_load":a.happened("dom:ready")?"after_ready_before_load":"before_ready"}a.fire("test:all_done",{"status":b})},e.init=r.once(function(){a.on("pixel",c),a.on("dom:beforeunload",c),a.on("dom:unload",c)})},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b,k,S,x,T,E,N,O,A,C,B,I,R,M,P,L,D,U,q,j,F,W,H,K,z,Y,G={}.hasOwnProperty,$=[].slice,V=[].indexOf||function(t){for(var e=0,n=this.length;ea[e]):return-1;default:return 1}}),F.timeDeltaOnce("proxy_segments"),U(s),e.set("segs",x.stringify(a))})})},j=function(t){return null==t&&(t=r),t===r?"segs":"segs_"+t},e.bucket=f=function(t){var e;return null==t&&(t=r),e=W.get(j(t)),e?e.split(","):[]},e.rete=L=l.once(function(){var t,e,n,r,i;for(t=new c,r=_.get("config_segments",[]),e=0,n=r.length;e=0)return r.push(n)});else for(e=0,a=t.length;e0&&o>0&&n.length>o&&(t=function(){var t,e,r;for(r=[],t=0,e=a.length;t=0&&r.push(s);return r}().slice(0,o),_.set("user_segments",t),W.set("segs",t.join(","),i)))},e.handleUserDataResponse=b=function(t){var n,a,s,u,c,f,h,d,g,v,y,w,b;if(y=t.segments,d=t.kuid,w=t.technographics,C.storeKuid(d),null!=y)if(l.isArray(y))W.set(j(),y.join(","),i);else if(l.isObject(y)){if(s=null!=(v=y[r])?v:[],a=p.param("controltag_interchange_segment_buckets",""),a.length>0)for(f=a.split(/\s*,\s*/),n=0,g=f.length;n0&&(V.call(n,r)<0&&n.push(r),w.data.buckets=n.join(","),E.debug(a,"Found "+n.length+" buckets (including default).")),p.param("fingerprint",!1)&&(o=_.get("fp"),w.data.kxfp=o,s=_.get("fp_id"),(null!=s?s.length:void 0)!==(null!=o?o.length:void 0)&&(w.data.kfuid=s)),I()||(w.data.technographics=1),!_.get("segWait")){switch(_.set("segWait",1,5*z.MINUTES),p.param("user_data_timing")){case"asap":y();break;case"ready":m.onOnce("dom:ready",y);break;default:m.onOnce("dom:load",y)}m.fire("user_data_fetch_scheduled")}return W.get("segs"),p.param("store_realtime_segments",!1)&&(H(),m.on("tag:done",H),m.onOnce("pixel",H),m.onOnce("dom:beforeunload",H)),h(),t=W.get("allsegs")?W.get("allsegs").split(","):[],_.set("all_user_segments",t),p.param("optimize_realtime_segments",!1)?(m.on("data:change",function(t){var e,n,r;if(e=t.key,r=t.value,n=L().results(),L().set("$"+e,r),l.difference(L().results(),n).length>0)return h()}),_.user_attr.change(h),_.page_attr.change(h)):(i=l.throttle(h,100),_.user_attr.change(i),_.page_attr.change(i)),_.namespace("event").change(h),K.module("segments",function(t){m.happened("user_data_fetch_scheduled")&&t("user_data_response",m.happened("user_data_response"))})})},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b,k,S;for(r=n(5),a=n(15),S=n(13),s={},u={},e.isIdDelivered=d=function(t){var e;return(null!=(e=r.find(a.get("tags",[]),function(e){return e.id===t}))?e.delivered:void 0)===!0},e.getDelimiter=h=function(t){return a.get(t+"DELIM")},e.setDelimiter=b=function(t,e){h(t)!==e&&a.setSilently(t+"DELIM",e)},e.get=f=function(t,e){var n,i;return i=a.get(t),e&&b(t,e),e=h(t),r.isArray(i)?i:e?i?null!=(n="function"==typeof i.split?i.split(e):void 0)?n:[i]:[]:i},e.parse=y=function(t){var e,n,i,o,a,s,u,c,l,h;switch(!1){case!!r.isString(t):return t;case!(a=t.match(/^\$([^:]+)(?::(.*))?$/)):return f(a[1],a[2]);case!(a=t.match(/^\[\s*((?:"|').*(?:"|'))\s*]$/)):for(u=a[1].replace(/(?:^\s*["'])|(?:["']\s*$)/g,"").split(/(?:['"]\s*,\s*['"])/),l=[],e=0,i=u.length;e":return function(t,e){return t>e};case"<=":return function(t,e){return t<=e};case">=":return function(t,e){return t>=e};case"==":return function(t,e){return t===e};case"!=":return function(t,e){return t!==e};default:return function(){return!1}}},w=["<",">","<=",">=","==","!="],p=0,g=w.length;p=c;s=0<=c?++u:--u)(o[s]!==window||e.self)&&l(o[s],t,e.domain)},e.listen=function(t,e){var n;return n=r.defaults(e||{},{"origin":i,"strict":!0,"win":window}),o.on(n.win,"message",function(e){var i;n.strict&&0!==String(e.origin||"").indexOf(n.origin)||t.call(this,{"data":function(){if(!r.isString(e.data)||!s(e.data))return e.data;try{return u.parse(e.data)}catch(t){return i=t,c.error("Got error while parsing message",i)}}(),"event":e})})},e.init=function(t){i=t}},function(t,e,n){var r,i,o,a,s,u,c=function(t,e){return function(){return t.apply(e,arguments)}};o=n(5),a=n(2),s=n(45),u=n(22),i=n(60).OPTOUT,t.exports=r=function(){function Client(t,e){this.uid=t,this.broker=e,this._handleSuccess=c(this._handleSuccess,this),this._publish=c(this._publish,this),this.remove=c(this.remove,this),this.count=c(this.count,this),this.clear=c(this.clear,this),this.set=c(this.set,this),this.get=c(this.get,this),this.stop=c(this.stop,this),this.run=c(this.run,this),this.inFlight={}}var t;return t="[proxy/client] ",Client.prototype.run=function(){return this.broker.run(),this.handle=this.broker.subscribe(this.uid,this._handleSuccess),this.handle=this.broker.subscribe("id",this._handleId),this},Client.prototype.stop=function(){var t;return null!=(t=this.handle)&&t.remove(),this},Client.prototype.get=function(t,e){return this._publish({"action":"get","key":t},e)},Client.prototype.set=function(t,e,n){return this._publish({"action":"set","key":t,"value":e},n)},Client.prototype.clear=function(t){return this._publish({"action":"clear"},t)},Client.prototype.count=function(t,e,n){return this._publish({"action":"count","key":t,"delta":e},n)},Client.prototype.remove=function(t,e){return this._publish({"action":"remove","key":t},e)},Client.prototype._publish=function(t,e){var n;return null==e&&(e=o.noop),n=u(),t.uid=n,this.broker.publish(this.uid,t),this.inFlight[n]=e,this},Client.prototype._handleId=function(e,n){var r,o;return r=n.current,o=n.previous,r===i?(a.info(t,"Found "+i+" signal; opting user out."),s.optOut()):o===i&&null!=r?(a.info(t,"Found transition from "+i+" signal to "+r+"; opting user back in."),s.optOut(!1),s.storeKuid(r)):o!==r?(a.info(t,"Found KUID change from "+o+" to "+r+"; updating LS."),s.storeKuid(r)):void 0},Client.prototype._handleSuccess=function(t,e){var n,r;r=e.uid,"function"==typeof(n=this.inFlight)[r]&&n[r](t,e),delete this.inFlight[r]},Client}()},function(t,e,n){var r,i,o,a,s=function(t,e){return function(){return t.apply(e,arguments)}};o=n(2),a=n(14),i=n(47),t.exports=r=function(){function Id(t,e,n){this.cookieStore=t,this.primaryStore=e,this.watchers=null!=n?n:[],this._poll=s(this._poll,this),this._stop=s(this._stop,this),this.watch=s(this.watch,this),this.run=s(this.run,this),this.put=s(this.put,this),this.optout=s(this.optout,this),this.isOptOut=s(this.isOptOut,this),this.get=s(this.get,this)}var t,e,n,r,u,c;return t={"domain":".krxd.net"},e=1e3,n="[proxy/id] ",r="_kuid_",u="OPTOUT",c=6*a.MONTHS,Id.prototype.get=function(){return this.cookieStore.get(r)},Id.prototype.isOptOut=function(){return this.get()===u},Id.prototype.optout=function(){return o.info(n,"Opting user out"),this.cookieStore.set(r,u,c,t),this.primaryStore.forEach(function(t){return function(e,n){return t.primaryStore.remove(n)}}(this))},Id.prototype.put=function(){return this.cookieStore.set(r,this.cookieStore.get(r,(new i).toShortId()),c,t),this.get()},Id.prototype.run=function(){return this._stop(),this._poll(),this},Id.prototype.watch=function(t){return this.watchers.push(t)},Id.prototype._stop=function(){return this.handle&&clearInterval(this._handle),this.handle=null},Id.prototype._poll=function(){var t;if(t=this.get(),t!==u)return this._handle=window.setInterval(function(e){return function(){var r,i,a,s,c;if(r=e.put(),r!==t){for(o.info(n,"Transitioning ID from "+t+" to "+r),r===u&&e.optout(),s=e.watchers,i=0,a=s.length;it},CookieCutter.prototype._trim=function(){try{this.isOverSize()&&(i.info("[proxy/cookie-cutter] Found "+this.store.size()+" bytes of cookies, trimming."),this.store.until(function(t){return function(n,r){return!(r in e)&&(t.store.remove(r,{"domain":".krxd.net"}),!t.isOverSize())}}(this)))}catch(t){}},CookieCutter}()},function(t,e,n){var r,i,o,a,s,u,c=function(t,e){return function(){return t.apply(e,arguments)}};o=n(19),a=n(8),s=n(31),u=n(14),i=n(5),t.exports=r=function(){function RemoteStore(t,e,n,r){this.key=t,this.store=e,this.cookies=null!=r&&r,this._read=c(this._read,this),this._persist=c(this._persist,this),this._listen=c(this._listen,this),this.set=c(this.set,this),this.remove=c(this.remove,this),this.count=c(this.count,this),this.clear=c(this.clear,this),this.get=c(this.get,this),this.run=c(this.run,this),this.cache={},this.checksum="",this.ttl=function(){return(n.param("realtime_segments_90d_ttl",!1)?90:3)*u.DAYS}}return RemoteStore.prototype.run=function(){var t;return this.cache=null!=(t=this._read())?t:{},this.store.until(),this.cookies||o.on(window,"storage",this._listen),this},RemoteStore.prototype.get=function(t){var e;return null!=(e=this.cache[t])?e:""},RemoteStore.prototype.clear=function(){return this.cache={},this._persist()},RemoteStore.prototype.count=function(t,e){var n;return null==e&&(e=1),n=Number(this.get(t)),(null==n||i.isNaN(n))&&(n=0),this.set(t,n+e),this.get(t)},RemoteStore.prototype.remove=function(t){return delete this.cache[t],this._persist()},RemoteStore.prototype.set=function(t,e){return this.cache[t]=String(e),this._persist()},RemoteStore.prototype._listen=function(t){var e;e=t.key,e===this.key&&this.checksum!==s.hash(this.store.get(this.key))&&(this.cache=this._read())},RemoteStore.prototype._persist=function(){return this.store.set(this.key,a.stringify(this.cache),this.ttl()),this},RemoteStore.prototype._read=function(){var t,e;return t=null!=(e=this.store.get(this.key))?e:"",this.checksum=s.hash(t),a.parse(t)},RemoteStore}()},function(t,e,n){var r,i,o=function(t,e){return function(){return t.apply(e,arguments)}},a=[].indexOf||function(t){for(var e=0,n=this.length;e=0&&(o=this[r](n),i={"uid":s},null!=o&&(i.value=o),this.broker.publish(e,i))},Server}()},function(t,e){var n,r=function(t,e){return function(){return t.apply(e,arguments)}},i=[].slice;t.exports=n=function(){function Recorder(){this.toArray=r(this.toArray,this),this.clear=r(this.clear,this),this.listen=r(this.listen,this),this.push=r(this.push,this),this._happened=[],this._listeners=[]}return Recorder.prototype.push=function(){var t,e,n,r,o,a,s,u,c;for(n=1<=arguments.length?i.call(arguments,0):[],(u=this._happened).push.apply(u,n),r=0,a=n.length;r=0)return!0;return!1},IntersectsNode.isMatch=function(t){return"intersects"===t},IntersectsNode}(r),w=function(t){function NotIntersectsNode(){return this._assert=R(this._assert,this),NotIntersectsNode.__super__.constructor.apply(this,arguments)}return M(NotIntersectsNode,t),NotIntersectsNode.prototype._assert=function(){return!NotIntersectsNode.__super__._assert.apply(this,arguments)},NotIntersectsNode.isMatch=function(t){return"notIntersects"===t},NotIntersectsNode}(p),s=function(t){function ContainsNode(){return ContainsNode.__super__.constructor.apply(this,arguments)}return M(ContainsNode,t),ContainsNode.isMatch=function(t){return"contains"===t},ContainsNode}(p),v=function(t){function NotContainsNode(){return this._assert=R(this._assert,this),NotContainsNode.__super__.constructor.apply(this,arguments)}return M(NotContainsNode,t),NotContainsNode.prototype._assert=function(){return!NotContainsNode.__super__._assert.apply(this,arguments)},NotContainsNode.isMatch=function(t){return"notContains"===t},NotContainsNode}(s),E=function(t){function StartsWithNode(){return this._assert=R(this._assert,this),StartsWithNode.__super__.constructor.apply(this,arguments)}return M(StartsWithNode,t),StartsWithNode.prototype._assert=function(t,e){var n,r,i,o;for(o=this.operands,n=0,r=o.length;ne},GreaterThanNode.isMatch=function(t){return">"===t},GreaterThanNode}(a),d=function(t){function LessThanEqualToNode(){return LessThanEqualToNode.__super__.constructor.apply(this,arguments)}return M(LessThanEqualToNode,t),LessThanEqualToNode.prototype.compare=function(t,e){return t<=e},LessThanEqualToNode.isMatch=function(t){return"<="===t},LessThanEqualToNode}(a),f=function(t){function GreaterThanEqualToNode(){return GreaterThanEqualToNode.__super__.constructor.apply(this,arguments)}return M(GreaterThanEqualToNode,t),GreaterThanEqualToNode.prototype.compare=function(t,e){return t>=e},GreaterThanEqualToNode.isMatch=function(t){return">="===t},GreaterThanEqualToNode}(a),c=function(t){function EqualsNode(){return EqualsNode.__super__.constructor.apply(this,arguments)}return M(EqualsNode,t),EqualsNode.prototype.compare=function(t,e){return t===e},EqualsNode.isMatch=function(t){return"=="===t||"equals"===t},EqualsNode}(a),y=function(t){function NotEqualsNode(){return NotEqualsNode.__super__.constructor.apply(this,arguments)}return M(NotEqualsNode,t),NotEqualsNode.prototype.compare=function(t,e){return t!==e},NotEqualsNode.isMatch=function(t){return"!="===t||"notEquals"===t},NotEqualsNode}(a),o=function(t){function BetaNode(){var t,e,n,r,i,o;for(e=arguments[0],i=2<=arguments.length?D.call(arguments,1):[],this.id=e,this.operands=i,this.productions=[],o=this.operands,t=0,n=o.length;t0))return!1;for(n=0,r=e.length;n0;){i=h.shift();for(s in i)if(T.call(i,s))if(_=i[s],x.isPrimitive(_))c(s,_);else if(r.isArray(_))for(a=0,u=_.length;a-1))return[];if(c=t.match(/^(.+):([^:]+)$/),i=c[0],f=c[1],s=c[2],a=h.find(f),!((null!=a?a.length:void 0)>0))return[];switch(!1){case"text"!==s&&"value"!==s:e=h[s],a=function(){var t,n,r;for(r=[],t=0,n=a.length;t1?n.apply(n,r.tail(e)):n:r.isFunction(t)?t.call(null,h):(i=a(t))?i[1].apply(null,e):void c.push(r.toArray(e))},e.understands=function(t){return!!a(t)},e.replay=f=function(){var t,e,n,i;for(i=r.clone(c),c.length=0,e=0,n=i.length;e10*Math.random())return;_.push(t.msg),t.type+="-postload",u.push(t),h.pixel(l()),u=[]}else u.push(t)},g=function(t){var e;return e=/https*:\/\/([^\/]+)\/([^?\/]+)/.exec(t),e&&"apiservices.krxd.net"===e[1]?"service:"+e[2]:e&&e[1].indexOf("krxd.net")>-1?"controltag":""},e.errorTypes=s=["controltag","tag","test","http","js"],d=window.onerror||function(){return!1},window.onerror=function(t,e,n){var r,i;try{return"string"!=typeof t?d.apply(window,arguments):(i=g(e)||"js",f({"type":i,"url":e,"line":n,"msg":t}),d.apply(window,arguments))}catch(t){r=t,p.error("Error in the error handler",r)}return d.apply(window,arguments)},e.sortByPriority=v=function(t){var e;return e=function(t){var e;return e=r.indexOf(s,t.type),e!==-1?e:s.length},r.clone(t).sort(function(t,n){var r,i;return r=e(t),i=e(n),ri?1:0})},i=void 0,e.getPixelOptions=l=function(t){var e,n;for(e=t||{"url":o.get("url_log"),"data":{"control_tag_version":window.Krux.version,"commit":window.Krux.commit,"pubid":o.get("pubid"),"siteid":o.get("siteid"),"site_name":o.get("site"),"browser_bucket":m.bucket,"version_bucket":i,"lang":m.lang,"log_version":1.1,"errors":v(u)}},n=e.data.errors;h.willClip(e)&&n.length;)n.pop();return e},e.init=r.once(function(){return c.on("tag:fail",function(t){f({"type":"tag","tagid":t.id,"msg":t.error})}),c.on("test:fail",function(t){f({"type":"test","msg":t.code+": "+t.data})}),c.on("test:all_done",function(){var t;t="alpha"===o.get("config_param_control_tag_version")?1:.1, u.length>0&&y.rate(t)&&(h.pixel(l()),c.fire("jslog.pixel",{"errors":u.length}),u=[])}),c.on("http:error",function(t){f({"type":"http","msg":t.code+": "+t.message})})})},function(t,e,n){var r,i,o,a,s,u,c,l,f;r=n(5),i=n(7),o=n(15),s=n(53),f=n(13),a=f.rewriter({"country":"user_attr_kx_geo_country","sub_section":"subsection","segment":"user_segments"}),c=f.rewriter({"=":"is","!=":"isnt","before":"<","after":">"}),l=function(t){return t=String(t),t.match(/,/)?"["+t.split(", ").join(",")+"]":t},e.expression=u=function(t){var e,n,i,o,u,f,h;if(n=c(t.operator),u=a(t.name),e=t.delimiter,h=r.isArray(t.value)?"["+t.value.join(",")+"]":l(t.value),o=function(t,e,n){var r,i,o,a;for(o=[],r=0,i=t.length;r=3||i.param("tag_source",!1)||(t=r.extend({},t,{"criteria":["and"].concat(function(){var n,r,i,o;if(t.criteria){for(i=t.criteria,o=[],n=0,r=i.length;n0?(c.debug("Received live response for "+t),"function"==typeof p&&p(r),i={},i[t]=r,l.handleResponse(i,e,n,f)):w()},"fail":w}):(c.debug("Not enabled for "+t),w())}},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b={}.hasOwnProperty;s=n(5),u=n(75),c=n(15),l=n(19),o=n(79),f=n(80),h=n(81),p=n(8),d=n(2),g=n(67),v=n(84),_=n(31),m=n(9),y=n(13),w=n(22),a=5e3,i=window.location.protocol+"//"+window.location.host+window.location.pathname,r=window.location.protocol+"//apiservices.krxd.net/click_tracker/track",e.compileTemplate=function(t){var e,n;if(null==t)throw new Error("Content connector requires a template");if(n=l.byId(t),null==n)throw new Error("Could not find content connector template for '"+t+"'.");if(e=l.text(n),null==e)throw new Error("Could not get content connector template for '"+t+"'.");return h.compile(e)},e.getUrlWithTracking=function(t,e){var n,r,i,o;i=y.urlParams(t),t=t.split("?")[0];for(n in e)b.call(e,n)&&(o=e[n],i[n]=o);return r=y.paramString(i),r.length>0?t+"?"+r:t},e.computeFinalRecommendations=function(t,e){var n,r,a,c,l,f,h,g,m,v,y,w,k,S,x;for(d.getLevel()<=1&&d.debug("Computing final recommendations for "+p.stringify(t)),w=e.algorithms,l=0,m=w.length;le.rank?-1:t.rank0){for(g=0,y=r.length;g0&&e.renderResponse(c,i)},e.handleTimeout=function(t,n){var r,i,o,a,s;for(d.warn("Timed out"),a={},s=n.algorithms,r=0,o=s.length;rthis.maxFrequencies)for(n=function(){var e,n,i;e=this.table,i=[];for(r in e)c.call(e,r)&&(n=e[r],t=n[0],f=n[1],i.push([r,f]));return i}.call(this),n.sort(function(t,e){return t[1]>e[1]?-1:t[1]0?new FrequencyTable(t):new i(t)},FrequencyTable}(),t.exports.NoopFrequencyTable=i=function(){function NoopFrequencyTable(t,e){this.cap=t,this.table=null!=e?e:{}}return NoopFrequencyTable.prototype.get=function(t){return[0,0]},NoopFrequencyTable.prototype.increment=function(t,e){},NoopFrequencyTable.prototype.save=function(){},NoopFrequencyTable}()},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y={}.hasOwnProperty;o=n(5),a=n(7),s=n(15),c=n(10),f=n(8),d=n(45),g=n(9),_=n(14),v=n(13),i=24*_.HOURS,h=function(t){return String(t).toLowerCase()},p=function(t){var e,n,r;for(e in t)y.call(t,e)&&(r=t[e],n=h(e),n!==e&&(delete t[e],t[n]=r));return t},u=function(t){var e,n,r,i;for(i=["country","region","city","dma"],e=0,r=i.length;e0;){if(c=e.shift(),s&&"<"==s.tag&&!(c.tag in u))throw new Error("Illegal content in < super tag.");if(t.tags[c.tag]<=t.tags["$"]||isOpener(c,i))r.push(c),c.nodes=buildTree(e,c.tag,r,i);else{if("/"==c.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+c.n);if(a=r.pop(),c.n!=a.n&&!isCloser(c.n,a.n,i))throw new Error("Nesting error: "+a.n+" vs. "+c.n);return a.end=c.i,o}"\n"==c.tag&&(c.last=0==e.length||"\n"==e[0].tag)}o.push(c)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return o}function isOpener(t,e){for(var n=0,r=e.length;n":7,"=":8,"_v":9,"{":10,"&":11,"_t":12},t.scan=function(n,r){function addBuf(){f.length>0&&(h.push({"tag":"_t","text":new String(f)}),f="")}function lineIsWhitespace(){for(var n=!0,r=g;r"==n.tag&&(n.indent=h[r].text.toString()),h.splice(r,1));else e||h.push({"tag":"\n"});p=!1,g=h.length}function changeDelimiters(t,e){var n="="+m,r=t.indexOf(n,e),i=trim(t.substring(t.indexOf("=",e)+1,r)).split(" ");return _=i[0],m=i[i.length-1],r+n.length-1}var i=n.length,o=0,a=1,s=2,u=o,c=null,l=null,f="",h=[],p=!1,d=0,g=0,_="{{",m="}}";for(r&&(r=r.split(" "),_=r[0],m=r[1]),d=0;d":createPartial,"<":function(e,n){var r={"partials":{},"code":"","subs":{},"inPartial":!0};t.walk(e.nodes,r);var i=n.partials[createPartial(e,n)];i.subs=r.subs,i.partials=r.partials},"$":function(e,n){var r={"subs":{},"code":"","partials":n.partials,"prefix":e.n};t.walk(e.nodes,r),n.subs[e.n]=r.code,n.inPartial||(n.code+='t.sub("'+esc(e.n)+'",c,p,i);')},"\n":function(t,e){e.code+=write('"\\n"'+(t.last?"":" + i"))},"_v":function(t,e){e.code+="t.b(t.v(t."+chooseMethod(t.n)+'("'+esc(t.n)+'",c,p,0)));'},"_t":function(t,e){e.code+=write('"'+esc(t.text)+'"')},"{":tripleStache,"&":tripleStache},t.walk=function(e,n){for(var r,i=0,o=e.length;i=0;u--)if(o=e[u],i=findInScope(t,o,s),void 0!==i){a=!0;break}return a?(r||"function"!=typeof i||(i=this.mv(i,e,n)),i):!r&&""},"ls":function(t,e,n,r,i){var o=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(coerceToString(t.call(e,r)),e,n)),this.options.delimiters=o,!1},"ct":function(t,e,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,n)},"b":function(t){this.buf+=t},"fl":function(){var t=this.buf;return this.buf="",t},"ms":function(t,e,n,r,i,o,a){var s,u=e[e.length-1],c=t.call(u);return"function"==typeof c?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,u,n,s.substring(i,o),a)):c},"mv":function(t,e,n){var r=e[e.length-1],i=t.call(r);return"function"==typeof i?this.ct(coerceToString(i.call(r)),r,n):i},"sub":function(t,e,n,r){var i=this.subs[t];i&&(this.activeSub=t,i(e,n,this,r),this.activeSub=!1)}};var e=/&/g,n=//g,i=/\'/g,o=/\"/g,a=/[&<>\"\']/,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},function(t,e,n){var r,i,o,a,s,u,c,l,f,h,p,d,g,_,m,v,y,w,b,k,S,x,T,E,N,O,A,C,B,I={}.hasOwnProperty;i=n(5),a=n(15),s=n(19),u=n(10),c=n(53),l=n(80),h=n(17),p=n(8),d=n(2),m=n(4),w=n(85),k=n(9),E=n(51),A=n(13),B=n(58),r="[tag-delivery]",N=function(){return new Date-a.get("started")},f=function(t){var e;return t&&t.nodeType?t:t&&(e=t.match(/^(head|body)$/))?window.document[e[1]]:window.document.getElementById(t)},S=null,e.forget=function(t){return t.metCriteria=void 0,t.time={},t.delivered=!1,t},x={},a.set("tagsByName",x),e.uniqueName=O=function(t){var e,n;if(!t.named){for(n=t.name,e=1;null!=x[n];)e++,n=t.name+"_"+e;t.name=n,t.named=!0,x[n]=t}},C=function(t,e,n,i){var o,a,s,u,c;t.root=e,null==t.content&&(t.content=""),null==t.template_replacement&&(t.template_replacement=!0),s=t.template_replacement?b(t.content):t.content,c=window.Krux,a=function(){m.isDefault||(d.debug(r,"taking global for",m.name),window.Krux=m.self),S=T(),S.tag={"id":t.id,"name":t.name,"method":t.method,"target":t.target,"target_action":t.target_action}},o=function(){m.isDefault||(d.debug(r,"returning global to original from",m.name),window.Krux=c),S=null};try{return w(e,s,{"afterDequeue":a,"afterStreamStart":o,"done":n,"error":i,"name":t.name,"releaseAsync":!0})}catch(t){return u=t,i(u)}},e.getTagContext=function(t){return null!=S?S[t]:void 0},y=function(t,e){var n,r;return r=t.target?f(t.target):s.kxhead||window.document.getElementsByTagName("script")[0].parentNode,r&&(n=t.target_action||"append",s[n](r,e)),r},o=function(t){var e;return e={"class":"kxtag","data-id":t.id},e["class"]+=t.target?" kxtargeted":" kxinvisible",e},g={"eval":function(t,e,n){var r;try{t.content&&/\S/.test(t.content)&&!function(t){return window["eval"].call(window,t)}(t.content)}catch(t){r=t,n(r)}e()},"apply":function(t,e,n){var i,o,a;a=void 0,o=window.Krux,m.isDefault||(d.debug(r,"taking global for",m.name),window.Krux=m.self);try{a=t.content.apply(null)}catch(t){i=t,n(i)}finally{m.isDefault||(d.debug(r,"returning global to original from",m.name),window.Krux=o)}return e(),a},"document":function(t,e,n){var r,i;return r=s.createElement("span",o(t)),i=y(t,r),i?C(t,r,e,n):e(),r},"iframeCommon":function(t,e,n,r){var i,a,u,c,l;return i=o(t),i.width=i.height=0,i.scrolling="no",i.style="overflow:hidden;",c=t.name.match(/(\d+)x(\d+)/),c&&(i.width=c[1]+"px",i.height=c[2]+"px"),a=s.createElement("iframe",i),l=y(t,a),l?(u=a.contentWindow.document,u.open(),u.write(''),r.leaveOpen||u.close(),r.onIframe&&r.onIframe(a),a.contentWindow.Krux=window.Krux,C(t,a.contentWindow.document.body,e,n)):e(),a},"nativeIframe":function(t,e,n,r){return r.leaveOpen=!0,g.iframeCommon(t,e,n,r)},"iframe":function(t,e,n,r){return g.iframeCommon(t,e,n,r)}},e.templateData=T=function(){var t;return{"id":null!=(t=a.get("currentTag"))?t.id:void 0,"pubid":a.get("pubid"),"site":a.get("site"),"geo":p.stringify(l.get()),"now":new Date}},e.runTemplate=b=function(t){var e,n,r;t=t.replace(/\{\{\s*([^}]+)\s*}}/g,"{{$1}}"),n=T();for(e in n)I.call(n,e)&&(r=n[e],t=t.replace("{{"+e+"}}",r));return t},e.meetsCriteria=function(t){var e,n,i,o;if(t.once_per_page&&v.has(t))return t.metCriteria=!1;if(null==t.criteria)return t.metCriteria=!0;a.set("now",new Date),t.freq_cap&&a.set("tag_deliveries_today",+k.get("tag"+t.id+".day",0)),o={"currentTag":t,"frequency":+k.get("visits"),"geolocation":l.get("country"),"throttle":t.random,"url":document.location.href};for(e in o)I.call(o,e)&&(i=o[e],a.setSilently(e,i));d.trace(r,"Considering tag",t.id,t.criteria),n=t.metCriteria=c.evaluate(t.criteria);for(e in o)I.call(o,e)&&a.remove(e);return n},_=0,v=m.self._oneTimeTags=m.self._oneTimeTags||h.create(function(t){return t.id}),e.deliver=function(t,e){var n,o,a,s,c,l;if(null==e&&(e={}),d.trace(r,"Will deliver",t.id,t),c=t.once_per_page,c&&v.has(t))return v.get(t).id;O(t),t.id=t.id||_++,t.time={"mode":"async","start":N()},null==t.method&&(t.method=i.isFunction(t.content)?"apply":"document"),t.delivered=!0,a=function(){t.time.end=N(),t.time.duration=t.time.end-t.time.start},s=function(e){t.error=e&&e.message&&e||{"message":"unknown error"},u.fire("tag:fail",{"id":t.id,"alias":t.name,"error":t.error.message}),d.debug(r,"Tag "+t.id+" failed")},u.fire("tag:started",{"id":t.id,"alias":t.name}),n=function(){a(),t.freq_cap&&k.count("tag"+t.id+".day"),d.debug(r,"Tag "+t.id+" done"),u.fire("tag:done",{"id":t.id,"alias":t.name}),"function"==typeof e.done&&e.done()};try{l=g[t.method](t,n,s,e),c&&v.put({"id":t.id})}catch(e){o=e,d.error(r,"Unable to deliver tag w/ ID: "+t.id),s(o)}return l},e.claimOneTimers=function(t){var e,n,r,o;null!=t&&(r=function(){var e,n,r;for(r=[],e=0,n=t.length;e=l.lastStart,s.name),l.lastStart=o)})})},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var r=e[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}var e={};return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.p="",__webpack_require__(0)}([function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),i=_interopRequireDefault(r);t.exports=i["default"]},function(t,e,n){"use strict";function _interopRequireWildcard(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function doNothing(){}function nextStream(){var t=l.shift();if(t){var e=s.last(t);e.afterDequeue(),t.stream=runStream.apply(void 0,t),e.afterStreamStart(); }}function runStream(t,e,n){function _write(t){t=n.beforeWrite(t),f.write(t),n.afterWrite(t)}f=new o["default"](t,n),f.id=c++,f.name=n.name||f.id,postscribe.streams[f.name]=f;var i=t.ownerDocument,a={"close":i.close,"open":i.open,"write":i.write,"writeln":i.writeln};r(i,{"close":doNothing,"open":doNothing,"write":function(){for(var t=arguments.length,e=Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:null,r=c+e;s.existy(n)&&""!==n?t.setAttribute(r,n):t.removeAttribute(r)}e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,WriteStream),this.root=t,this.options=e,this.doc=t.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new o["default"]("",{"autoFix":e.autoFix}),this.actuals=[t],this.proxyHistory="",this.proxyRoot=this.doc.createElement(t.nodeName),this.scriptStack=[],this.writeQueue=[],setData(this.proxyRoot,"proxyof",0)}return WriteStream.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();s.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},WriteStream.prototype._callFunction=function(t){var e={"type":"function","value":t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},WriteStream.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,n=void 0,r=void 0,i=[];(e=this.parser.readToken())&&!(n=s.isScript(e))&&!(r=s.isStyle(e));)e=this.options.beforeWriteToken(e),e&&i.push(e);i.length>0&&this._writeStaticTokens(i),n&&this._handleScriptToken(e),r&&this._handleStyleToken(e)},WriteStream.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,u&&(e.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),u&&(e.actualInnerHTML=this.root.innerHTML),e):null},WriteStream.prototype._buildChunk=function(t){for(var e=this.actuals.length,n=[],r=[],i=[],o=t.length,a=0;a)/," "+c+"id="+h+" $1")),s.attrs.id!==f&&s.attrs.id!==l&&i.push("atomicTag"===s.type?"":"<"+s.tagName+" "+c+"proxyof="+h+(s.unary?" />":">"))}}else r.push(u),i.push("endTag"===s.type?u:"")}return{"tokens":t,"raw":n.join(""),"actual":r.join(""),"proxy":i.join("")}},WriteStream.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];s.existy(t=e.shift());){var n=1===t.nodeType,r=n&&getData(t,"proxyof");if(!r){n&&(this.actuals[getData(t,"id")]=t,setData(t,"id"));var i=t.parentNode&&getData(t.parentNode,"proxyof");i&&this.actuals[i].appendChild(t)}e.unshift.apply(e,s.toArray(t.childNodes))}},WriteStream.prototype._handleScriptToken=function(t){var e=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),t.src=t.attrs.src||t.attrs.SRC,t=this.options.beforeWriteToken(t),t&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},WriteStream.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},WriteStream.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,l),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},WriteStream.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),s.eachKey(t.attrs,function(t,n){e.setAttribute(t,n)}),e},WriteStream.prototype._insertCursor=function(t,e){this._writeImpl('');var n=this.doc.getElementById(e);n&&n.parentNode.replaceChild(t,n)},WriteStream.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},WriteStream.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({"msg":"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},WriteStream.prototype._writeScriptToken=function(t,e){var n=this._buildScript(t),r=this._shouldRelease(n),i=this.options.afterAsync;t.src&&(n.src=t.src,this._scriptLoadHandler(n,r?i:function(){e(),i()}));try{this._insertCursor(n,f),n.src&&!r||e()}catch(t){this.options.error(t),e()}},WriteStream.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return s.eachKey(t.attrs,function(t,n){e.setAttribute(t,n)}),t.content&&(e.text=t.content),e},WriteStream.prototype._scriptLoadHandler=function(t,e){function cleanup(){t=t.onload=t.onreadystatechange=t.onerror=null}function success(){cleanup(),null!=e&&e(),e=null}function failure(t){cleanup(),n(t),null!=e&&e(),e=null}function reattachEventListener(t,e){var n=t["on"+e];null!=n&&(t["_on"+e]=n)}var n=this.options.error;reattachEventListener(t,"load"),reattachEventListener(t,"error"),r(t,{"onload":function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){failure({"msg":"onload handler failed "+e+" @ "+t.src})}success()},"onerror":function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void failure({"msg":"onerror handler failed "+e+" @ "+t.src})}failure({"msg":"remote script failed "+t.src})},"onreadystatechange":function(){/^(loaded|complete)$/.test(t.readyState)&&success()}})},WriteStream.prototype._shouldRelease=function(t){var e=/^script$/i.test(t.nodeName);return!e||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},WriteStream}();e["default"]=h},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var r=e[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}var e={};return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.p="",__webpack_require__(0)}([function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),i=_interopRequireDefault(r);t.exports=i["default"]},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function _interopRequireWildcard(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=n(2),i=_interopRequireWildcard(r),o=n(3),a=_interopRequireWildcard(o),s=n(6),u=_interopRequireDefault(s),c=n(5),l={"comment":/^");if(e>=0)return new i.CommentToken(t.substr(4,e-1),e+3)}function chars(t){var e=t.indexOf("<");return new i.CharsToken(e>=0?e:t.length)}function startTag(t){var e=t.indexOf(">");if(e!==-1){var n=t.match(o.startTag);if(n){var a=function(){var t={},e={},r=n[2];return n[2].replace(o.attr,function(n,i){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",e[arguments[5]]=!0):t[i]=arguments[2]||arguments[3]||arguments[4]||o.fillAttr.test(i)&&i||"":t[i]="",r=r.replace(n,"")}),{"v":new i.StartTagToken(n[1],n[0].length,t,e,!!n[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===("undefined"==typeof a?"undefined":r(a)))return a.v}}}function atomicTag(t){var e=startTag(t);if(e){var n=t.slice(e.length);if(n.match(new RegExp("","i"))){var r=n.match(new RegExp("([\\s\\S]*?)","i"));if(r)return new i.AtomicTagToken(e.tagName,r[0].length+e.length,e.attrs,e.booleanAttrs,r[1])}}}function endTag(t){var e=t.match(o.endTag);if(e)return new i.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.comment=comment,e.chars=chars,e.startTag=startTag,e.atomicTag=atomicTag,e.endTag=endTag;var i=n(4),o={"startTag":/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,"endTag":/^<\/([\-A-Za-z0-9_]+)[^>]*>/,"attr":/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,"fillAttr":/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,n){"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var r=n(5),i=(e.Token=function Token(t,e){_classCallCheck(this,Token),this.type=t,this.length=e,this.text=""},e.CommentToken=function(){function CommentToken(t,e){_classCallCheck(this,CommentToken),this.type="comment",this.length=e||(t?t.length:0),this.text="",this.content=t}return CommentToken.prototype.toString=function(){return"