(()=>{var t={69089:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},9248:t=>{"use strict";t.exports=function(t){return t[1]}},56654:function(t,e,n){"use strict";var r=n(49091);!function(t){function e(){}function n(){}var r=String.fromCharCode,i={}.toString,o=i.call(t.SharedArrayBuffer),a=i(),s=t.Uint8Array,u=s||Array,c=s?ArrayBuffer:u,l=c.isView||function(t){return t&&"length"in t},f=i.call(c.prototype);c=n.prototype;var d=t.TextEncoder,h=new(s?Uint16Array:u)(32);e.prototype.decode=function(t){if(!l(t)){var e=i.call(t);if(e!==f&&e!==o&&e!==a)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");t=s?new u(t):t||[]}for(var n,c,d,p=e="",v=0,m=0|t.length,g=m-32|0,_=0,y=0,b=0,w=-1;v>4){case 15:if(2!=(d=255&t[v=v+1|0])>>6||247>6?y+4|0:24,c=c+256&768;case 13:case 12:_<<=6,_|=(31&c)<<6|63&(d=255&t[v=v+1|0]),y=y+7|0,v>6&&_>>y&&1114112>_?(c=_,0<=(_=_-65536|0)&&(w=55296+(_>>10)|0,c=56320+(1023&_)|0,31>b?(h[b]=w,b=b+1|0,w=-1):(d=w,w=c,c=d))):(v=v-(c>>=8)-1|0,c=65533),_=y=0,n=v<=g?32:m-v|0;default:h[b]=c;continue;case 11:case 10:case 9:case 8:}h[b]=65533}if(p+=r(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15],h[16],h[17],h[18],h[19],h[20],h[21],h[22],h[23],h[24],h[25],h[26],h[27],h[28],h[29],h[30],h[31]),32>b&&(p=p.slice(0,b-32|0)),v>>31,w=-1,p.length=a)r[i]=a;else{if(2047>=a)r[i]=192|a>>6;else{t:{if(55296<=a)if(56319>=a){var c=0|t.charCodeAt(e=e+1|0);if(56320<=c&&57343>=c){if(65535<(a=(a<<10)+c-56613888|0)){r[i]=240|a>>18,r[i=i+1|0]=128|a>>12&63,r[i=i+1|0]=128|a>>6&63,r[i=i+1|0]=128|63&a;continue}break t}a=65533}else 57343>=a&&(a=65533);!o&&e<<1>12,r[i=i+1|0]=128|a>>6&63}r[i=i+1|0]=128|63&a}}return s?r.subarray(0,i):r.slice(0,i)},d||(t.TextDecoder=e,t.TextEncoder=n)}(""+void 0==(void 0===n.g?"undefined":r(n.g))?""+void 0==("undefined"==typeof self?"undefined":r(self))?this:self:n.g)},25330:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Ln});var r=n(60901);function i(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n"],s="end",u="value",c="error",l="any";function f(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(0===t.length)return e;if(0===e.length)return t;for(o=0,n=new Array(t.length+e.length),r=t.length,i=0;i=0&&e0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===s?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var e=h(this._logHandlers,(function(e){return e.name===t}));-1!==e&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=function(e){var n="<"+e.type+">";e.type===s?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var e=h(this._spyHandlers,(function(e){return e.name===t}));-1!==e&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),y.prototype.toString=function(){return"["+this._name+"]"},o(b,y,{_name:"stream",getType:function(){return"stream"}}),o(w,y,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:u,value:t},this._activating||this._dispatcher.dispatch({type:u,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:c,value:t},this._activating||this._dispatcher.dispatch({type:c,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&g(t,e,this._currentEvent),this._alive||g(t,e,{type:s}),this},getType:function(){return"property"}});var S=new b;function E(){return S}function O(t){function e(t,e){var n=this;b.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return o(e,b,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){b.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}S._emitEnd(),S._name="never";var k=O({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}});var A=O({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}});var T=O({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=p(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}});var x=O({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}});function C(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emit(e.type,e.value),t._active}return{value:e,error:function(e){return t._emitError(e),t._active},end:function(){return t._emitEnd(),t._active},event:n,emit:e,emitEvent:n}}var I=O({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=C(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function P(t){b.call(this),this._fn=t,this._unsubscribe=null}function R(t){return new P(t)}function N(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}o(P,b,{_name:"stream",_onActivation:function(){var t=(0,this._fn)(C(this));this._unsubscribe="function"==typeof t?t:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){b.prototype._clear.call(this),this._fn=null}});var L=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function M(t){this._currentEvent={type:"value",value:t,current:!0}}function D(t){return new M(t)}function j(t){this._currentEvent={type:"error",value:t,current:!0}}function U(t,e){return function(n,r){var i=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return i._handleAny(t)}}}function F(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case u:return this._handleValue(t.value);case c:return this._handleError(t.value);case s:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function B(t,e){var n=U(b,t);return o(n,b,F(b),e),n}function V(t,e){var n=U(w,t);return o(n,w,F(w),e),n}o(M,w,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),o(j,w,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var z=V("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}});function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new z(t,{fn:e})}var H=B("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}});function G(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var Y=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t),K=Y.default?Y.default:Y;function W(t){this._observable=t.takeErrors(1)}function $(){return new W(this)}function Z(t,e,n){for(var r in t)t.hasOwnProperty(r)&&(e.push(r),n.push(t[r]))}function J(t,e,n){var r=this;b.call(this),this._activeCount=t.length,this._sources=f(t,e),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(t,e){var n=t.length,r=void 0;for(r=0;r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?N(n,t.length+e.length):function(t){return t},0===t.length?E():new J(t,e,n)}(t,e,n):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!==(0,r.A)(e)||Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");var i=[],o=[],a=[];return Z(t,i,o),Z(e,i,a),0===o.length?E():new J(o,a,(function(t){for(var e={},r=t.length-1;0<=r;r--)e[i[r]]=t[r];return n?n(e):e}))}(t,e,n)}i(W.prototype,{subscribe:function(t,e,n){var r=this,i="function"==typeof t?{next:t,error:e,complete:n}:t,o=function(t){t.type===s&&(a=!0),t.type===u&&i.next?i.next(t.value):t.type===c&&i.error?i.error(t.value):t.type===s&&i.complete&&i.complete(t.value)};this._observable.onAny(o);var a=!1;return{unsubscribe:function(){a=!0,r._observable.offAny(o)},get closed(){return a}}}}),W.prototype[K]=function(){return this},o(J,b,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t1&&void 0!==arguments[1]?arguments[1]:it;return new(t._ofSameType(nt,rt))(t,{fn:e})}var at={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)&&this._emitValue(t)}},st=B("filter",at),ut=V("filter",at),ct=function(t){return t};var lt={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){0!==this._n&&(this._n--,this._emitValue(t),0===this._n&&this._emitEnd())}},ft=B("take",lt),dt=V("take",lt);var ht={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){0!==this._n&&(this._n--,this._emitError(t),0===this._n&&this._emitEnd())}},pt=B("takeErrors",ht),vt=V("takeErrors",ht);var mt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)?this._emitValue(t):this._emitEnd()}},gt=B("takeWhile",mt),_t=V("takeWhile",mt),yt=function(t){return t};var bt={_init:function(){this._lastValue=a},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==a&&this._emitValue(this._lastValue),this._emitEnd()}},wt=B("last",bt),St=V("last",bt);var Et={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Ot=B("skip",Et),kt=V("skip",Et);var At={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Tt=B("skipWhile",At),xt=V("skipWhile",At),Ct=function(t){return t};var It={_init:function(t){var e=t.fn;this._fn=e,this._prev=a},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==a&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},Pt=B("skipDuplicates",It),Rt=V("skipDuplicates",It),Nt=function(t,e){return t===e};function Lt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt;return new(t._ofSameType(Pt,Rt))(t,{fn:e})}var Mt={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==a){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},Dt=B("diff",Mt),jt=V("diff",Mt);function Ut(t,e){return[t,e]}var Ft=V("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==a&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===c?this._emitValue(this._seed===a?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}});var Bt=B("flatten",{_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=(0,this._fn)(t),n=0;n=0)this._timeoutId=setTimeout(this._$later,this._wait-t);else{if(this._timeoutId=null,!this._immediate){var e=this._laterValue;this._laterValue=null,this._emitValue(e)}this._endLater&&this._emitEnd()}}},Jt=B("debounce",Zt),Xt=V("debounce",Zt);var Qt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},te=B("mapErrors",Qt),ee=V("mapErrors",Qt),ne=function(t){return t};var re={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){(0,this._fn)(t)&&this._emitError(t)}},ie=B("filterErrors",re),oe=V("filterErrors",re),ae=function(t){return t};var se={_handleValue:function(){}},ue=B("ignoreValues",se),ce=V("ignoreValues",se);var le={_handleError:function(){}},fe=B("ignoreErrors",le),de=V("ignoreErrors",le);var he={_handleEnd:function(){}},pe=B("ignoreEnd",he),ve=V("ignoreEnd",he);var me={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},ge=B("beforeEnd",me),_e=V("beforeEnd",me);var ye={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=function(t,e,n){var r=Math.min(n,t.length+1),i=t.length-r+1,o=new Array(r),a=void 0;for(a=i;a=this._min&&this._emitValue(this._buff)}},be=B("slidingWindow",ye),we=V("slidingWindow",ye);var Se={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),(0,this._fn)(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Ee=B("bufferWhile",Se),Oe=V("bufferWhile",Se),ke=function(t){return t};var Ae={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Te=B("bufferWithCount",Ae),xe=V("bufferWithCount",Ae);var Ce={_init:function(t){var e=this,n=t.wait,r=t.count,i=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=i,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},Ie=B("bufferWithTimeOrCount",Ce),Pe=V("bufferWithTimeOrCount",Ce);var Re={_init:function(t){var e,n=t.transducer;this._xform=n((e=this,{"@@transducer/step":function(t,n){return e._emitValue(n),null},"@@transducer/result":function(){return e._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},Ne=B("transduce",Re),Le=V("transduce",Re);var Me={_init:function(t){var e=t.fn;this._handler=e,this._emitter=C(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},De=B("withHandler",Me),je=V("withHandler",Me);var Ue=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Fe(t,e){var n=this;b.call(this),this._buffers=m(t,(function(t){return Ue(t)?p(t):[]})),this._sources=m(t,(function(t){return Ue(t)?E():t})),this._combinator=e?N(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push((function(e){return n._handleAny(t,e)}))},i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=e.queueLim,r=void 0===n?0:n,i=e.concurLim,o=void 0===i?-1:i,a=e.drop,s=void 0===a?"new":a;b.call(this),this._queueLim=r<0?-1:r,this._concurLim=o<0?-1:o,this._drop=s,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function qe(t){ze.call(this),this._addAll(t),this._initialised=!0}function He(t){return 0===t.length?E():new qe(t)}function Ge(t){var e=this;b.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}o(ze,b,{_name:"abstractPool",_add:function(t,e){e=e||Ve,-1===this._concurLim||this._curSources.lengthe&&t[e]})).setName("concat")}function We(){ze.call(this)}function $e(t,e,n){var r=this;ze.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function Ze(t,e){$e.call(this,t,e)}function Je(t,e){return function(n,r,i){var o=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=a,this._$handleSecondaryAny=function(t){return o._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return o._handlePrimaryAny(t)},this._init(i)}}function Xe(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case u:return this._handlePrimaryValue(t.value);case c:return this._handlePrimaryError(t.value);case s:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case u:return this._handleSecondaryValue(t.value);case c:return this._handleSecondaryError(t.value);case s:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Qe(t,e){var n=Je(b,t);return o(n,b,Xe(b),e),n}function tn(t,e){var n=Je(w,t);return o(n,w,Xe(w),e),n}o(We,ze,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),o($e,ze,{_onActivation:function(){ze.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){ze.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){t.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1);t.type===c&&this._emitError(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){ze.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),o(Ze,$e,{_handleMain:function(t){t.type===c&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1);t.type===u&&this._emitValue(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var en={_handlePrimaryValue:function(t){this._lastSecondary!==a&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==a&&this._lastSecondary||this._emitEnd()}},nn=Qe("filterBy",en),rn=tn("filterBy",en);var on=function(t,e){return e};var an={_handlePrimaryValue:function(t){this._lastSecondary!==a&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===a&&this._emitEnd()}},sn=Qe("skipUntilBy",an),un=tn("skipUntilBy",an);var cn={_handleSecondaryValue:function(){this._emitEnd()}},ln=Qe("takeUntilBy",cn),fn=tn("takeUntilBy",cn);var dn={_init:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).flushOnEnd,e=void 0===t||t;this._buff=[],this._flushOnEnd=e},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},hn=Qe("bufferBy",dn),pn=tn("bufferBy",dn);var vn={_init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,i=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===a||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==a&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},mn=Qe("bufferWhileBy",vn),gn=tn("bufferWhileBy",vn);var _n=function(){return!1},yn=function(){return!0};var bn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=(0,this._fn)(t);e.convert?this._emitError(e.error):this._emitValue(t)}},wn=B("valuesToErrors",bn),Sn=V("valuesToErrors",bn),En=function(t){return{convert:!0,error:t}};var On={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=(0,this._fn)(t);e.convert?this._emitValue(e.value):this._emitError(t)}},kn=B("errorsToValues",On),An=V("errorsToValues",On),Tn=function(t){return{convert:!0,value:t}};var xn={_handleError:function(t){this._emitError(t),this._emitEnd()}},Cn=B("endOnError",xn),In=V("endOnError",xn);y.prototype.toProperty=function(t){return q(this,t)},y.prototype.changes=function(){return new H(this)},y.prototype.toPromise=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G(),n=null;return new e((function(e,r){t.onAny((function(t){t.type===s&&null!==n?((n.type===u?e:r)(n.value),n=null):n=t}))}))}(this,t)},y.prototype.toESObservable=$,y.prototype[K]=$,y.prototype.map=function(t){return ot(this,t)},y.prototype.filter=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct;return new(t._ofSameType(st,ut))(t,{fn:e})}(this,t)},y.prototype.take=function(t){return function(t,e){return new(t._ofSameType(ft,dt))(t,{n:e})}(this,t)},y.prototype.takeErrors=function(t){return function(t,e){return new(t._ofSameType(pt,vt))(t,{n:e})}(this,t)},y.prototype.takeWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt;return new(t._ofSameType(gt,_t))(t,{fn:e})}(this,t)},y.prototype.last=function(){return new((t=this)._ofSameType(wt,St))(t);var t},y.prototype.skip=function(t){return function(t,e){return new(t._ofSameType(Ot,kt))(t,{n:e})}(this,t)},y.prototype.skipWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ct;return new(t._ofSameType(Tt,xt))(t,{fn:e})}(this,t)},y.prototype.skipDuplicates=function(t){return Lt(this,t)},y.prototype.diff=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return new(t._ofSameType(Dt,jt))(t,{fn:e||Ut,seed:n})}(this,t,e)},y.prototype.scan=function(t,e){return function(t,e){return new Ft(t,{fn:e,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:a})}(this,t,e)},y.prototype.flatten=function(t){return function(t){return new Bt(t,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt})}(this,t)},y.prototype.delay=function(t){return function(t,e){return new(t._ofSameType(Ht,Gt))(t,{wait:e})}(this,t)},y.prototype.throttle=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.leading,i=void 0===r||r,o=n.trailing,a=void 0===o||o;return new(t._ofSameType(Wt,$t))(t,{wait:e,leading:i,trailing:a})}(this,t,e)},y.prototype.debounce=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,r=void 0!==n&&n;return new(t._ofSameType(Jt,Xt))(t,{wait:e,immediate:r})}(this,t,e)},y.prototype.mapErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne;return new(t._ofSameType(te,ee))(t,{fn:e})}(this,t)},y.prototype.filterErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae;return new(t._ofSameType(ie,oe))(t,{fn:e})}(this,t)},y.prototype.ignoreValues=function(){return new((t=this)._ofSameType(ue,ce))(t);var t},y.prototype.ignoreErrors=function(){return new((t=this)._ofSameType(fe,de))(t);var t},y.prototype.ignoreEnd=function(){return new((t=this)._ofSameType(pe,ve))(t);var t},y.prototype.beforeEnd=function(t){return function(t,e){return new(t._ofSameType(ge,_e))(t,{fn:e})}(this,t)},y.prototype.slidingWindow=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(t._ofSameType(be,we))(t,{min:n,max:e})}(this,t,e)},y.prototype.bufferWhile=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Ee,Oe))(t,{fn:e||ke,flushOnEnd:r})}(this,t,e)},y.prototype.bufferWithCount=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Te,xe))(t,{count:e,flushOnEnd:r})}(this,t,e)},y.prototype.bufferWithTimeOrCount=function(t,e,n){return function(t,e,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,i=void 0===r||r;return new(t._ofSameType(Ie,Pe))(t,{wait:e,count:n,flushOnEnd:i})}(this,t,e,n)},y.prototype.transduce=function(t){return function(t,e){return new(t._ofSameType(Ne,Le))(t,{transducer:e})}(this,t)},y.prototype.withHandler=function(t){return function(t,e){return new(t._ofSameType(De,je))(t,{fn:e})}(this,t)},y.prototype.thru=function(t){return t(this)},y.prototype.combine=function(t,e){return X([this,t],e)},y.prototype.zip=function(t,e){return Be([this,t],e)},y.prototype.merge=function(t){return He([this,t])},y.prototype.concat=function(t){return Ke([this,t])};y.prototype.flatMap=function(t){return new $e(this,t).setName(this,"flatMap")},y.prototype.flatMapLatest=function(t){return new $e(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},y.prototype.flatMapFirst=function(t){return new $e(this,t,{concurLim:1}).setName(this,"flatMapFirst")},y.prototype.flatMapConcat=function(t){return new $e(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},y.prototype.flatMapConcurLimit=function(t,e){return new $e(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},y.prototype.flatMapErrors=function(t){return new Ze(this,t).setName(this,"flatMapErrors")},y.prototype.filterBy=function(t){return n=t,new((e=this)._ofSameType(nn,rn))(e,n);var e,n},y.prototype.sampledBy=function(t,e){return function(t,e,n){return X([e],[t],n?function(t,e){return n(e,t)}:on).setName(t,"sampledBy")}(this,t,e)},y.prototype.skipUntilBy=function(t){return n=t,new((e=this)._ofSameType(sn,un))(e,n);var e,n},y.prototype.takeUntilBy=function(t){return n=t,new((e=this)._ofSameType(ln,fn))(e,n);var e,n},y.prototype.bufferBy=function(t,e){return function(t,e,n){return new(t._ofSameType(hn,pn))(t,e,n)}(this,t,e)},y.prototype.bufferWhileBy=function(t,e){return function(t,e,n){return new(t._ofSameType(mn,gn))(t,e,n)}(this,t,e)};var Pn=!0;function Rn(t){if(Pn&&console&&"function"==typeof console.warn){console.warn(t,"\nHere is an Error object for you containing the call stack:",new Error)}}y.prototype.awaiting=function(t){return Rn("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(t,e){var n=He([ot(t,yn),ot(e,_n)]);return(n=q(n=Lt(n),_n)).setName(t,"awaiting")}(this,t)},y.prototype.valuesToErrors=function(t){return Rn("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:En;return new(t._ofSameType(wn,Sn))(t,{fn:e})}(this,t)},y.prototype.errorsToValues=function(t){return Rn("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn;return new(t._ofSameType(kn,An))(t,{fn:e})}(this,t)},y.prototype.endOnError=function(){return Rn("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((t=this)._ofSameType(Cn,In))(t);var t};var Nn={Observable:y,Stream:b,Property:w,never:E,later:function(t,e){return new k(t,{x:e})},interval:function(t,e){return new A(t,{x:e})},sequentially:function(t,e){return 0===e.length?E():new T(t,{xs:e})},fromPoll:function(t,e){return new x(t,{fn:e})},withInterval:function(t,e){return new I(t,{fn:e})},fromCallback:function(t){var e=!1;return R((function(n){e||(t((function(t){n.emit(t),n.end()})),e=!0)})).setName("fromCallback")},fromNodeCallback:function(t){var e=!1;return R((function(n){e||(t((function(t,e){t?n.error(t):n.emit(e),n.end()})),e=!0)})).setName("fromNodeCallback")},fromEvents:function(t,e,n){for(var r=void 0,i=void 0,o=0;o{"use strict";n.d(e,{A:()=>s});var r=n(9248),i=n.n(r),o=n(69089),a=n.n(o)()(i());a.push([t.id,".quiz-body .card__body {\n padding-left: 0;\n padding-right: 0;\n}\n\n.quiz-card {\n padding: 2rem 0 2rem;\n}\n\n.quiz-body .u--text-danger {\n padding-left: 0.25rem;\n}\n\n.quiz-body .error-block {\n max-width: 27rem;\n padding: 0;\n margin: 0 auto;\n}\n\n.quiz-body,\n.quiz-footer-mount-point {\n width: 80%;\n max-width: 45rem;\n margin: 0 auto;\n}\n\n.quiz-card .progress__bar {\n background: #080;\n}\n\n.quiz-lead-form {\n max-width: 25rem;\n margin: 0 auto\n}\n\n.quiz-body input, .quiz-body select {\n border-radius: 0.5rem;\n}\n\n.quiz-body select.control {\n background-size: 1.5rem;\n}\n\n.quiz-footer-container .progress__max {\n width: 80%;\n margin: auto ;\n background-color: #C5C5C5;\n}\n\n.quiz-footer-container .straight-line {\n position: relative;\n top: -1.3rem;\n height: 0.15rem;\n background-color: #C5C5C5;\n width: 100%;\n}\n\n.quiz-footer-container .progress__max,\n.quiz-footer-container .progress__bar {\n position: relative;\n border-radius: 1rem;\n height: 0.5rem;\n z-index: 100;\n}\n\n.quiz-footer-container .progress__bar {\n background: #4AB010;\n}\n\n@media only screen and (min-width: 768px) {\n .quiz-main-next {\n width: 8rem;\n }\n}\n\n.quiz-navigation {\n width: 80%;\n margin: 0 auto;\n}\n\n.quiz-body .label,\n.quiz-body .input,\n.quiz-body .control {\n font-size: 1.1rem;\n color: #565656;\n}\n.quiz-body .checkbox .control,\n.quiz-body .radio .control {\n transform: scale(1.5);\n top: 31%;\n}\n\n.quiz-body .checkbox .control {\n padding-left: 2rem;\n}\n\n.quiz-body .checkbox .label,\n.quiz-body .radio .label {\n padding-left: 2.5rem;\n}\n\n.quiz-body .checkbox,\n.quiz-body .radio {\n border: none;\n}\n\n.big-step-display:focus {\n -webkit-box-shadow: 0 0 0 2px white, 0 0 0 4px #036ad2;\n box-shadow: 0 0 0 2px white, 0 0 0 4px #036ad2;\n outline: none;\n -webkit-border-radius: 2px;\n border-radius: 2px;\n}\n\n.small-step-display,\n.small-step-display p {\n margin: 0;\n}\n\n.quiz-body .info-text {\n padding: 0 0 1rem !important;\n}\n\n.quiz-footer-mount-point .info-text {\n text-align: center;\n}\n\n.spinner--small {\n margin: 0 10px 2px 0;\n vertical-align: middle;\n}\n.spinner--small::before,\n.spinner--small::after {\n border-color: white white white transparent;\n border-width: 2px;\n left: -2px;\n top: -2px;\n}\n",""]);const s=a},85072:(t,e,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n{var r=n(49091).default;function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(e){d=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),a=new N(r||[]);return s(o,"_invoke",{value:C(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var v="suspendedStart",m="suspendedYield",g="executing",_="completed",y={};function b(){}function w(){}function S(){}var E={};d(E,c,(function(){return this}));var O=Object.getPrototypeOf,k=O&&O(O(L([])));k&&k!==o&&a.call(k,c)&&(E=k);var A=S.prototype=b.prototype=Object.create(E);function T(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,s,u){var c=p(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var i=v;return function(o,a){if(i===g)throw new Error("Generator is already running");if(i===_){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var c=p(t,n,r);if("normal"===c.type){if(i=r.done?_:m,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=_,r.method="throw",r.arg=c.arg)}}}function I(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},49091:t=>{function e(n){return t.exports=e="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},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2971:(t,e,n)=>{var r=n(49091),i=n(58636)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},60901:(t,e,n)=>{"use strict";function r(t){return 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},r(t)}n.d(e,{A:()=>r})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,r={};Object.keys(t).forEach((function(t){r[t]=e[t]}));var i="Datadog Browser SDK:",o={debug:r.debug.bind(e,i),log:r.log.bind(e,i),info:r.info.bind(e,i),warn:r.warn.bind(e,i),error:r.error.bind(e,i)};function a(t,e){return function(){for(var n=[],r=0;r=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==(0,k.A)(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o"}finally{r(),i(),o(),a()}}function q(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):j}var H=220*T,G="$",Y=3;function K(t,e){var n;void 0===e&&(e=H);var r=q(Object.prototype),i=q(Array.prototype),o=[],a=new WeakMap,s=W(t,G,void 0,o,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(u>e)){for(;o.length>0&&ue){$(e,"truncated",t);break}c.target[f]=d}else for(var f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){var d;if(void 0!==(d=W(c.source[f],c.path,f,o,a))&&(u+=JSON.stringify(d).length+l+f.length+Y,l=1),u>e){$(e,"truncated",t);break}c.target[f]=d}}return r(),i(),s}$(e,"discarded",t)}function W(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==(0,k.A)(o))return function(t){if("bigint"==typeof t)return"[BigInt] ".concat(t.toString());if("function"==typeof t)return"[Function] ".concat(t.name||"unknown");if("symbol"===(0,k.A)(t))return"[Symbol] ".concat(t.description||t.toString());return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var u=void 0!==n?"".concat(e,".").concat(n):e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function $(t,e,n){o.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var Z,J=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();function X(){for(var t=[],e=0;eQ&&(o.warn("The ".concat(tt[e]," data exceeds the recommended ").concat(Q/T,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}var nt=200;function rt(t,e){void 0===e&&(e=I);var n,r={},i=!1,o=new J,a=D((function(r){n=e(z(r)),i||(i=et(n,t))}),nt).throttled,s={getBytesCount:function(){return n},getContext:function(){return B(r)},setContext:function(t){"object"===U(t)?(r=K(t),a(r)):s.clearContext(),o.notify()},setContextProperty:function(t,e){r[t]=K(e),a(r),o.notify()},removeContextProperty:function(t){delete r[t],a(r),o.notify()},clearContext:function(){r={},n=0,o.notify()},changeObservable:o};return s}var it=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach((function(t){return t()})),this.buffer.length=0},t}();function ot(t){return 0!==t&&100*Math.random()<=t}function at(t,e){return+t.toFixed(e)}function st(t){return ut(t)&&t>=0&&t<=100}function ut(t){return"number"==typeof t}var ct,lt=1e3,ft=60*lt,dt=60*ft,ht=365*(24*dt);function pt(t){return{relative:t,timeStamp:vt(t)}}function vt(t){var e=gt()-performance.now();return e>kt()?Math.round(Et(e,t)):function(t){return Math.round(Et(kt(),t))}(t)}function mt(t){return ut(t)?at(1e6*t,0):t}function gt(){return(new Date).getTime()}function _t(){return gt()}function yt(){return performance.now()}function bt(){return{relative:yt(),timeStamp:_t()}}function wt(){return{relative:0,timeStamp:kt()}}function St(t,e){return e-t}function Et(t,e){return t+e}function Ot(t){return t-kt()}function kt(){return void 0===ct&&(ct=performance.timing.navigationStart),ct}function At(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,At)}var Tt,xt,Ct=/([\w-]+)\s*=\s*([^;]+)/g;function It(t,e){for(Ct.lastIndex=0;;){var n=Ct.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function Pt(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function Rt(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u)}function Nt(t){return It(document.cookie,t)}function Lt(t){return Tt||(Tt=function(t){var e=new Map;for(Ct.lastIndex=0;;){var n=Ct.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),Tt.get(t)}function Mt(t,e){Rt(t,"",0,e)}var Dt,jt="datadog-synthetics-public-id",Ut="datadog-synthetics-result-id",Ft="datadog-synthetics-injects-rum";function Bt(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Lt(Ft))}function Vt(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Lt(jt);return"string"==typeof t?t:void 0}function zt(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||Lt(Ut);return"string"==typeof t?t:void 0}function qt(){var t=A().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function Ht(t){var e;void 0===t&&(t=null===(e=A().location)||void 0===e?void 0:e.hostname);var n=qt();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r);var n,r}))}function Gt(t,e,n,r,i){return Yt(t,e,[n],r,i)}function Yt(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=d((function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&h(),r(e))})),l=u?{capture:s,passive:u}:s,f=P(e,"addEventListener");function h(){var t=P(e,"removeEventListener");n.forEach((function(n){return t.call(e,n,c,l)}))}return n.forEach((function(t){return f.call(e,t,c,l)})),{stop:h}}!function(t){t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage"}(Dt||(Dt={}));var Kt="_dd_c",Wt=[];function $t(t,e,n,r){void 0===r&&(r=I);var i=function(t,e){return"".concat(Kt,"_").concat(t,"_").concat(e)}(e,n),o=rt(n,r);return a(),Wt.push(Gt(t,window,Dt.STORAGE,(function(t){var e=t.key;i===e&&a()}))),o.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(o.getContext()))})),o;function a(){var t=localStorage.getItem(i),e=null!==t?JSON.parse(t):{};o.setContext(e)}}function Zt(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=I(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}var Jt="?";function Xt(t){var e=[],n=se(t,"stack"),r=String(t);return n&&b(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(t){var n=function(t){var e=ee.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=ne.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||Jt,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=re.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:Jt,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=ie.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||Jt,line:+e[3],url:e[2]}}(t)||function(t){var e=oe.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=ae.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||Jt,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=Jt),e.push(n))})),{message:se(t,"message"),name:se(t,"name"),stack:e}}var Qt="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",te="(?::(\\d+))",ee=new RegExp("^\\s*at (.*?) ?\\(".concat(Qt).concat(te,"?").concat(te,"?\\)?\\s*$"),"i"),ne=new RegExp("\\((\\S*)".concat(te).concat(te,"\\)"));var re=new RegExp("^\\s*at ?".concat(Qt).concat(te,"?").concat(te,"??\\s*$"),"i");var ie=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var oe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function se(t,e){if("object"===(0,k.A)(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}function ue(t,e,n,r){var i=[{url:e,column:r,line:n}],o=function(t){var e,n,r;"[object String]"==={}.toString.call(t)&&(n=(e=ce.exec(t))[1],r=e[2]);return{name:n,message:r}}(t);return{name:o.name,message:o.message,stack:i}}var ce=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;var le,fe="No stack, consider using an instance of Error";function de(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(z(K(r)))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?pe(e):fe,f=u?function(t,e){var n=t,r=[];for(;(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=Xt(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&pe(i)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:null==e?void 0:e.name,message:c,stack:l,causes:f,fingerprint:he(n)}}function he(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function pe(t){var e=ve(t);return t.stack.forEach((function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).concat(o)})),e}function ve(t){return"".concat(t.name||"Error",": ").concat(t.message)}function me(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return h((function(){var n=Xt(e);n.stack=n.stack.slice(2),t=pe(n)})),t}function ge(t){var e=S({},t);return["id","name","email"].forEach((function(t){t in e&&(e[t]=String(e[t]))})),e}function _e(t){var e="object"===U(t);return e||o.error("Unsupported user:",t),e}!function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.SCROLLMAP="scrollmap",t.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(le||(le={}));var ye=new Set;function be(t){return ye.has(t)}function we(){return ye}function Se(t){return S({},t)}function Ee(t,e){return Object.keys(t).some((function(n){return t[n]===e}))}function Oe(t){return 0===Object.keys(t).length}var ke,Ae=4*dt,Te=15*ft;function xe(){return null!=ke?ke:ke=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(t.document.documentMode)return 0;return 3}()}var Ce="_dd_s",Ie=/^([a-z]+)=([a-z0-9-]+)$/,Pe="&";function Re(t){return Oe(t)}function Ne(t){t.expire=String(gt()+Te)}function Le(t){return y(t).map((function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)})).join(Pe)}function Me(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(Pe)||Ie.test(t))}(t)&&t.split(Pe).forEach((function(t){var n=Ie.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}var De="_dd",je="_dd_r",Ue="_dd_l",Fe="rum",Be="logs";function Ve(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===xt){for(var t="dd_site_test_".concat(At()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Nt(t);)n="".concat(e.pop(),".").concat(n),Rt(t,"test",lt,{domain:n});Mt(t,{domain:n}),xt=n}return xt}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(At()),n="test";Rt(e,n,ft,t);var r=Nt(e)===n;return Mt(e,t),r}catch(t){return o.error(t),!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function ze(t){var e={isLockEnabled:1===xe(),persistSession:qe(t),retrieveSession:He,clearSession:Ge(t)};return function(t){if(!Lt(Ce)){var e=Lt(De),n=Lt(je),r=Lt(Ue),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i[Be]=r),n&&/^[012]$/.test(n)&&(i[Fe]=n),Re(i)||(Ne(i),t.persistSession(i))}}(e),e}function qe(t){return function(e){Rt(Ce,Le(e),Te,t)}}function He(){return Me(Nt(Ce))}function Ge(t){return function(){Mt(Ce,t)}}var Ye="_dd_test_";function Ke(t){localStorage.setItem(Ce,Le(t))}function We(){return Me(localStorage.getItem(Ce))}function $e(){localStorage.removeItem(Ce)}var Ze,Je=10,Xe=100,Qe=[];function tn(t,e,n){var r;void 0===n&&(n=0);var i=e.isLockEnabled,o=e.retrieveSession,a=e.persistSession,s=e.clearSession;if(Ze||(Ze=t),t===Ze)if(i&&n>=Xe)nn(e);else{var u,c=o();if(i){if(c.lock)return void en(t,e,n);if(u=At(),c.lock=u,a(c),(c=o()).lock!==u)return void en(t,e,n)}var l=t.process(c);if(i&&(c=o()).lock!==u)en(t,e,n);else{if(l&&(Re(l)?s():(Ne(l),a(l))),i&&(!l||!Re(l))){if((c=o()).lock!==u)return void en(t,e,n);delete c.lock,a(c),l=c}null===(r=t.after)||void 0===r||r.call(t,l||c),nn(e)}}else Qe.push(t)}function en(t,e,n){R((function(){tn(t,e,n+1)}),Je)}function nn(t){Ze=void 0;var e=Qe.shift();e&&tn(e,t)}var rn=lt;function on(t){var e=Ve(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=At(),e="".concat(Ye).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function an(t,e,n){var r=new J,i=new J,o="Cookie"===t.type?ze(t.cookieOptions):{isLockEnabled:!1,persistSession:Ke,retrieveSession:We,clearSession:$e},a=o.clearSession,s=o.retrieveSession,u=L((function(){tn({process:function(t){return d(t)?void 0:{}},after:l},o)}),rn),c=function(){var t=s();if(d(t))return t;return{}}();function l(t){return d(t)||(t={}),f()&&(!function(t){return c.id!==t.id||c[e]!==t[e]}(t)?c=t:(c={},i.notify())),t}function f(){return void 0!==c[e]}function d(t){return(void 0===t.created||gt()-Number(t.created)n||gn.test(e))&&o.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}function yn(t){var e=function(t){var e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[];return e&&o.push(_n("env",e)),n&&o.push(_n("service",n)),r&&o.push(_n("version",r)),i&&o.push(_n("datacenter",i)),o}(t),n=function(t,e){return{logsEndpointBuilder:vn(t,"logs",e),rumEndpointBuilder:vn(t,"rum",e),sessionReplayEndpointBuilder:vn(t,"replay",e)}}(t,e),r=_(n).map((function(t){return t.urlPrefix})),i=function(t,e,n){if(!t.replica)return;var r=S({},t,{site:hn,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:vn(r,"logs",n),rumEndpointBuilder:vn(r,"rum",n)};return e.push.apply(e,_(i).map((function(t){return t.urlPrefix}))),S({applicationId:t.replica.applicationId},i)}(t,r,e);return S({isIntakeUrl:function(t){return r.some((function(e){return 0===t.indexOf(e)}))},replica:i,site:t.site||hn},n)}var bn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function wn(t){var e,n,r;if(t&&t.clientToken)if(void 0===t.sessionSampleRate||st(t.sessionSampleRate))if(void 0===t.telemetrySampleRate||st(t.telemetrySampleRate)){if(void 0===t.telemetryConfigurationSampleRate||st(t.telemetryConfigurationSampleRate))return Array.isArray(t.enableExperimentalFeatures)&&t.enableExperimentalFeatures.filter((function(t){return Ee(le,t)})).forEach((function(t){ye.add(t)})),S({beforeSend:t.beforeSend&&a(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:on(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,batchBytesLimit:16*T,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*lt,batchMessagesLimit:50,messageBytesLimit:256*T},yn(t));o.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else o.error("Telemetry Sample Rate should be a number between 0 and 100");else o.error("Session Sample Rate should be a number between 0 and 100");else o.error("Client Token is not configured, we will not send any data.")}function Sn(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents}}function En(t){var e=U(t);return"string"===e||"function"===e||t instanceof RegExp}function On(t,e,n){return void 0===n&&(n=!1),t.some((function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?b(e,t):t===e}catch(t){o.error(t)}return!1}))}function kn(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function An(t,e,n,r){if(void 0!==Tn()&&n.findTrackedSession()){var i,o,a,s,u,c=g(t.allowedTracingUrls,(function(t){return On([t.match],e.url,!0)}));if(c)e.traceId=new xn,e.spanId=new xn,e.traceSampled=!ut(t.traceSampleRate)||ot(t.traceSampleRate),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach((function(t){switch(t){case"datadog":S(u,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":S(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":S(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":S(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}})),u))}}function Tn(){return window.crypto||window.msCrypto}var xn=function(){function t(){this.buffer=new Uint8Array(8),Tn().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}(),Cn=["tracecontext","datadog"];function In(t){var e,n;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||st(t.sessionReplaySampleRate))if(void 0===t.traceSampleRate||st(t.traceSampleRate))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var r=function(t){if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void o.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;En(t)?e.push({match:t,propagatorTypes:Cn}):"object"===U(n=t)&&En(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)})),e}return[]}(t);if(r){var i=wn(t);if(i)return S({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:Ee(bn,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:bn.MASK,customerDataTelemetrySampleRate:1},i)}}else o.error("Excluded Activity Urls should be an array");else o.error("Trace Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Application ID is not configured, no RUM data will be collected.")}function Pn(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){En(t)?Cn.forEach((function(t){return e.add(t)})):"object"===U(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),m(e)}function Rn(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function Nn(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var Ln,Mn={log:"log",configuration:"configuration"},Dn=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],jn=["ddog-gov.com"],Un={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function Fn(t,e){var n,r=new J;Un.telemetryEnabled=!v(jn,e.site)&&ot(e.telemetrySampleRate),Un.telemetryConfigurationEnabled=Un.telemetryEnabled&&ot(e.telemetryConfigurationSampleRate);var i={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Ln=function(e){if(Un.telemetryEnabled){var o=function(t,e,r){return V({type:"telemetry",date:_t(),service:t,version:"5.3.0",source:"browser",_dd:{format_version:2},telemetry:V(e,{runtime_env:r}),experimental_features:m(we())},void 0!==n?n():{})}(t,e,i);r.notify(o),Nn("telemetry",o)}},s=zn,S(Un,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){n=t},observable:r,enabled:Un.telemetryEnabled}}function Bn(t){return t.site===dn}function Vn(e,n){p(t.debug,e,n),Hn(S({type:Mn.log,message:e,status:"debug"},n))}function zn(t,e){Hn(S({type:Mn.log,status:"error"},function(t){if(t instanceof Error){var e=Xt(t);return{error:{kind:e.name,stack:pe(Gn(e))},message:e.message}}return{error:{stack:fe},message:"".concat("Uncaught"," ").concat(z(t))}}(t),e))}function qn(t){Un.telemetryConfigurationEnabled&&Hn({type:Mn.configuration,configuration:t})}function Hn(t){Ln&&Un.sentEventCountt[n])return!1;return!0}function er(t){var e=nr(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,f=e.requestStart,d=e.responseStart,h={download:ir(n,d,e.responseEnd),first_byte:ir(n,f,d)};return l!==r&&(h.connect=ir(n,u,l),tr(u,c,l)&&(h.ssl=ir(n,c,l))),s!==r&&(h.dns=ir(n,a,s)),rr(t)&&(h.redirect=ir(n,i,o)),h}}function nr(t){if(tr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!rr(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=0;e-=1){var n,r=t.body.childNodes[e];if(n=gr(r))return n;if(!sr(r))break}}(t);if(!e)return;return mr(It(e,"trace-id"),It(e,"trace-time"))}(t);if(e&&!(e.traceTime<=gt()-pr))return e.traceId}function mr(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function gr(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function _r(){return void 0!==window.performance&&"getEntries"in performance}function yr(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function br(t,e){if(function(t,e){Zn(t,"interactive",(function(){var t,n={entryType:hr.RESOURCE,initiatorType:Jn,traceId:vr(document),toJSON:function(){return S({},t,{toJSON:void 0})}};if(yr(hr.NAVIGATION)&&performance.getEntriesByType(hr.NAVIGATION).length>0){var r=performance.getEntriesByType(hr.NAVIGATION)[0];t=S(r.toJSON(),n)}else{var i=wr();t=S(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},n)}e(t)}))}(e,(function(n){Sr(t,e,[n])})),_r()){var n=performance.getEntries();R((function(){return Sr(t,e,n)}))}if(window.PerformanceObserver){var r=d((function(n){return Sr(t,e,n.getEntries())})),i=[hr.RESOURCE,hr.NAVIGATION,hr.LONG_TASK,hr.PAINT],o=[hr.LARGEST_CONTENTFUL_PAINT,hr.FIRST_INPUT,hr.LAYOUT_SHIFT,hr.EVENT];try{o.forEach((function(t){new window.PerformanceObserver(r).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){i.push.apply(i,o)}new PerformanceObserver(r).observe({entryTypes:i}),_r()&&"addEventListener"in performance&&Gt(e,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}yr(hr.NAVIGATION)||function(t,e){function n(){e(S(wr(),{entryType:hr.NAVIGATION}))}Zn(t,"complete",(function(){R(n)}))}(e,(function(n){Sr(t,e,[n])})),yr(hr.FIRST_INPUT)||function(t,e){var n=gt(),r=!1,i=Yt(t,window,[Dt.CLICK,Dt.MOUSE_DOWN,Dt.KEY_DOWN,Dt.TOUCH_START,Dt.POINTER_DOWN],(function(e){if(e.cancelable){var n={entryType:hr.FIRST_INPUT,processingStart:yt(),processingEnd:yt(),startTime:e.timeStamp,duration:0,name:""};e.type===Dt.POINTER_DOWN?o(t,n):a(n)}}),{passive:!0,capture:!0}).stop;function o(t,e){Yt(t,window,[Dt.POINTER_UP,Dt.POINTER_CANCEL],(function(t){t.type===Dt.POINTER_UP&&a(e)}),{once:!0})}function a(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=Dr);for(var e=0,n=this.entries;e0&&this.entries[this.entries.length-1].endTime=500}function Qr(t){try{return t.clone()}catch(t){return}}function ti(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(j),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;i.forEach((function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(d((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),d((function(t){return e(t)})))}()}var ei=1;function ni(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:kn,traceFetch:function(n){return An(t,n,e,(function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach((function(e){n.input.headers.append(e,t[e])}));else{n.init=Se(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,e){r.push([e,t])})):Array.isArray(n.init.headers)?n.init.headers.forEach((function(t){r.push(t)})):n.init.headers&&Object.keys(n.init.headers).forEach((function(t){r.push([t,n.init.headers[t]])})),n.init.headers=r.concat(y(t))}}))},traceXhr:function(n,r){return An(t,n,e,(function(t){Object.keys(t).forEach((function(e){r.setRequestHeader(e,t[e])}))}))}}}(e,n);!function(t,e,n){var r=Gr(e).subscribe((function(r){var i=r;if(ar(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=ri(),t.notify(5,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(6,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=$r().subscribe((function(r){var i=r;if(ar(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=ri(),t.notify(5,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&Qr(t.response);n&&n.body?ti(n.body,(function(){e(St(t.startClocks.timeStamp,_t()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(St(t.startClocks.timeStamp,_t()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(6,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function ri(){var t=ei;return ei+=1,t}function ii(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?j:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(11,(function(t){var e;if("view"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}}));return{stop:function(){a.unsubscribe()},eventCounts:o}}var oi=100,ai=100;function si(t,e,n,r,i){var o=function(t,e,n){var r=new J((function(){var i,o=[],a=0;o.push(e.subscribe(c),t.subscribe(0,(function(t){t.some((function(t){return t.entryType===hr.RESOURCE&&!ui(n,t.name)}))&&c()})),t.subscribe(5,(function(t){ui(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,c())})),t.subscribe(6,(function(t){ui(n,t.url)||void 0===i||t.requestIndex0})}}));return r}(t,e,n);return function(t,e,n){var r,i=!1,o=R(d((function(){return c({hadActivity:!1})})),oi),a=void 0!==n?R(d((function(){return c({hadActivity:!0,end:_t()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;N(o),N(r);var n=_t();e||(r=R(d((function(){return c({hadActivity:!0,end:n})})),ai))})),u=function(){i=!0,N(o),N(r),N(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function ui(t,e){return On(t.excludedActivityUrls,e)}var ci="data-dd-action-name";function li(t,e){return fi(t,ci)||e&&fi(t,e)||gi(t,e,pi)||gi(t,e,vi)||""}function fi(t,e){var n;if(function(){void 0===hi&&(hi="closest"in HTMLElement.prototype);return hi}())n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return yi(_i(n.getAttribute(e).trim()))}var di,hi,pi=[function(t,e){if(function(){void 0===di&&(di="labels"in HTMLInputElement.prototype);return di}()){if("labels"in t&&t.labels&&t.labels.length>0)return bi(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&g(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&bi(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return bi(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return bi(t,e)})).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return bi(t.options[0],e)}],vi=[function(t,e){return bi(t,e)}],mi=10;function gi(t,e,n){for(var r=t,i=0;i<=mi&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat(Pt(t,100)," [...]"):t}function bi(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i0&&(n=n.replace(a,""))}}};return 0===xe()&&r("script, style"),r("[".concat(ci,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var wi,Si=[ci,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ei=[Ti,function(t){if(t.id&&!Ai(t.id))return"#".concat(w(t.id))}],Oi=[Ti,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e").concat(e):t}var Ni=lt,Li=100;function Mi(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),N(n),n=R(s,Ni)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){N(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=Li)&&e.timeStamp-n.timeStamp<=Ni))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}function Di(){var t=window.getSelection();return!t||t.isCollapsed}function ji(t){return t.target instanceof Element&&!1!==t.isPrimary}var Ui=3;function Fi(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return 1===l||2===l},clone:function(){return Gi(t,e,n,r,i)},validate:function(e){if(h(),1===l){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,p=n.longTaskCount,v=S({type:"click",duration:o&&St(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:p},events:null!=e?e:[i],event:i},r);t.notify(1,v),l=2}},discard:function(){h(),l=2}}}function Yi(t,e){var n=Ki(t)?{action:{id:t.id,loading_time:mt(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:Ki(t)?void 0:t.context,rawRumEvent:V({action:{id:At(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:Ki(t)?{events:t.events}:{}}}function Ki(t){return"custom"!==t.type}function Wi(t){var e,n=function(e,n){var r=de({stackTrace:e,originalError:n,startClocks:bt(),nonErrorPrefix:"Uncaught",source:Er.SOURCE,handling:"unhandled"});t.notify(r)},r=(e=n,Vr(window,"onerror",{before:function(t,n,r,i,o){var a;a=o instanceof Error?Xt(o):ue(t,n,r,i),e(a,null!=o?o:t)}})).stop,i=function(t){return Vr(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=Xt(n);t(r,n)}})}(n).stop;return{stop:function(){r(),i()}}}var $i={};function Zi(n){var r=n.map((function(n){return $i[n]||($i[n]=function(n){var r=new J((function(){var i=e[n];return e[n]=function(){for(var e=[],o=0;o=r-o&&no(n)<=Et(i,o);var n,r,i,o}));return 1===n.length?n[0]:void 0}}}function no(t){return Et(t.startTime,t.duration)}function ro(t,e,n,r){t.subscribe(6,(function(i){var o=function(t,e,n,r){var i,o=eo(t),a=o?pt(o.startTime):t.startClocks,s=oo(e,n,a),u=function(t,e){var n=t.traceSampled&&t.traceId&&t.spanId;if(!n)return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:so(e)}}}(t,e);if(!s&&!u)return;var c="xhr"===t.type?"xhr":"fetch",l=o?ao(o):void 0,f=function(t,e,n){var r,i=null===(r=t.findAll(e.relative,n))||void 0===r?void 0:r.some((function(t){return"frozen"===t.state}));return i?void 0:mt(n)}(r,a,t.duration),d=uo(r,a,null!==(i=null==o?void 0:o.duration)&&void 0!==i?i:t.duration),h=V({date:a.timeStamp,resource:{id:At(),type:c,duration:f,method:t.method,status_code:t.status,url:t.url},type:"resource",_dd:{discarded:!s}},u,l,d);return{startTime:a.relative,rawRumEvent:h,domainContext:{performanceEntry:o,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(10,o)})),t.subscribe(0,(function(i){for(var o=0,a=i;o=0&&i.responseStart<=yt()?i.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})).stop,a=function(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=Yt(t,e,[Dt.PAGE_HIDE,Dt.VISIBILITY_CHANGE],(function(t){t.type!==Dt.PAGE_HIDE&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}(e),s=function(t,e,n){return{stop:t.subscribe(0,(function(t){var r=g(t,(function(t){return t.entryType===hr.PAINT&&"first-contentful-paint"===t.name&&t.startTime=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return t.entryType===hr.LARGEST_CONTENTFUL_PAINT&&t.startTime=0?o:0,time:i.startTime,targetSelector:a})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})).stop;return{stop:function(){o(),s(),u(),c(),a.stop()},initialViewMetrics:i}}function po(t,e,n){if(!yr(hr.LAYOUT_SHIFT))return{stop:j};var r=0;n({value:0});var i=function(){var t,e,n,r,i=0,o=0;return{update:function(a){var s,u;void 0===t||a.startTime-e>=lt||a.startTime-t>=5*lt?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o&&(o=a.value,r=a.startTime,n=(null===(s=a.sources)||void 0===s?void 0:s.length)?null===(u=g(a.sources,(function(t){return!!t.node&&ur(t.node)})))||void 0===u?void 0:u.node:void 0)},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:e.subscribe(0,(function(e){for(var o=0,a=e;or)){var u=at(r=i.value(),4),c=i.largestLayoutShiftTarget(),l=void 0;be(le.WEB_VITALS_ATTRIBUTION)&&c&&c.isConnected&&(l=ki(c,t.actionNameAttribute)),n({value:u,targetSelector:l})}}})).unsubscribe}}var vo=0,mo=1/0,go=0;var _o,yo=function(){return lo?vo:window.performance.interactionCount||0},bo=10,wo=1*ft;function So(t,e,n,r){if(!(yr(hr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:j,stop:j};var i,o=function(t){"interactionCount"in performance||lo||(lo=new window.PerformanceObserver(d((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(mo=Math.min(mo,e.interactionId),go=Math.max(go,e.interactionId),vo=(go-mo)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:yo(),n={stopped:!1};function r(){return yo()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,c=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(bo)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.lengthi.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),l=-1;return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,wo),targetSelector:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(0,(function(n){for(var r=0,o=n;r=e&&a.startTime<=u&&c.process(a)}var s=c.estimateP98Interaction();s&&(l=s.duration,i=be(le.WEB_VITALS_ATTRIBUTION)&&s.target&&ur(s.target)?ki(s.target,t.actionNameAttribute):void 0)})).unsubscribe}}function Eo(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Oo(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}function ko(t){return _o||(_o=function(t){var e=new J((function(){var n=D((function(){e.notify(Ao())}),200).throttled;return Gt(t,window,Dt.RESIZE,n,{capture:!0,passive:!0}).stop}));return e}(t)),_o}function Ao(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var To=lt;function xo(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=To);var n=new J((function(){function r(){var t,e,r,i;n.notify((t=Oo(),e=Ao().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(e+t),{scrollHeight:r,scrollDepth:i,scrollTop:t}))}if(window.ResizeObserver){var i=D(r,e,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(d(i.throttled));a.observe(o);var s=Gt(t,window,Dt.SCROLL,i.throttled,{passive:!0});return function(){i.cancel(),a.unobserve(o),s.stop()}}}));return n}(t));var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=yt();a=St(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function Co(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a="initial_load"===r,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}return{stop:si(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(St(i.timeStamp,t.end)),c())})).stop,setLoadEvent:function(t){a&&(a=!1,u.push(t),c())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=xo(n,o,(function(t){a.scroll=t})).stop,f=po(n,t,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=So(n,o.relative,i,t),h=d.stop,p=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:h,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=p(),a}}}var Io=3e3,Po=5*ft,Ro=5*ft;function No(t,e,n,r,i,a,s){var u,c=new Set,l=f("initial_load",wt(),s);function f(i,a,s){var u=function(t,e,n,r,i,a,s){void 0===a&&(a=bt());var u,c,l,f,d=At(),h=new J,p={},v=0,m=Se(r),g=!0;s&&(c=s.name,l=s.service,f=s.version);t.notify(2,{id:d,name:c,startClocks:a,service:l,version:f});var _=D(F,Io,{leading:!1}),y=_.throttled,b=_.cancel,w=Co(t,e,n,y,i,a),S=w.setLoadEvent,E=w.setViewEnd,O=w.stop,k=w.stopINPTracking,A=w.getCommonViewMetrics,T="initial_load"===i?ho(t,n,S,y):{stop:j,initialViewMetrics:{}},x=T.stop,C=T.initialViewMetrics,I=function(t,e,n){var r=ii({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,y),P=I.stop,N=I.eventCounts,U=L(F,Po);function F(){b(),v+=1;var e=void 0===u?_t():u.timeStamp;t.notify(3,{customTimings:p,documentVersion:v,id:d,name:c,service:l,version:f,loadingType:i,location:m,startClocks:a,commonViewMetrics:A(),initialViewMetrics:C,duration:St(a.timeStamp,e),isActive:void 0===u,sessionIsActive:g,eventCounts:N})}return F(),{name:c,service:l,version:f,stopObservable:h,end:function(e){var n,r,i=this;void 0===e&&(e={}),u||(u=null!==(n=e.endClocks)&&void 0!==n?n:bt(),g=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:u}),M(U),E(u.relative),O(),F(),R((function(){i.stop()}),Ro))},stop:function(){x(),P(),k(),h.notify()},addTiming:function(t,e){if(!u){var n=function(t){return t=this.messageBytesLimit?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(n,r,e))},t.prototype.push=function(t,e,n){var r=this;this.flushController.notifyBeforeAddMessage(e),void 0!==n?(this.upsertBuffer[n]=t,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t),(function(t){r.flushController.notifyAfterAddMessage(t-e)}))},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.encoder.estimateEncodedBytesCount(e);this.flushController.notifyAfterRemoveMessage(n)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}();function Go(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding,flushReason:e.reason}}var Yo=80*T,Ko=32,Wo=3*x,$o=ft,Zo=lt;function Jo(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Qo(t,e,n,{onSuccess:function(){return ta(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Xo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Xo(t,e,n,r){2===t.transportStatus&&R((function(){Qo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Zo,ta(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min($o,2*t.currentBackoffTime),Xo(t,e,n,r)}})}),t.currentBackoffTime)}function Qo(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||Xr(t.status))}(n)?(e.transportStatus=0,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function ta(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(Wo/x,"MiB"),source:Er.AGENT,startClocks:bt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=ea();o.size()>0;)Jo(o.dequeue(),e,n,r,i)}function ea(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Wo}}}function na(t,e,n,r){var i={transportStatus:0,currentBackoffTime:Zo,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Yo&&this.ongoingRequestCount=r&&d("bytes_limit"),f+=1,l+=t,void 0===e&&(e=R((function(){d("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,f>=n?d("messages_limit"):l>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(f-=1)&&h()}}}function aa(t,e,n,r,i,o){var a=u(t,e),s=n&&u(t,n);function u(t,e){var n=e.endpoint,a=e.encoder;return new Ho(a,na(t,n,t.batchBytesLimit,r),oa({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),t.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){a.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){a.stop(),null==s||s.stop()}}}var sa=Ae;function ua(t,e){var n=Se(e),r=new J((function(){var e=function(t,e){var n=Vr(history,"pushState",{after:e}).stop,r=Vr(history,"replaceState",{after:e}).stop,i=Gt(t,window,Dt.POP_STATE,e).stop;return{stop:function(){n(),r(),i()}}}(t,i).stop,n=function(t,e){return Gt(t,window,Dt.HASH_CHANGE,e)}(t,i).stop;return function(){e(),n()}}));function i(){if(n.href!==e.href){var t=Se(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}var ca=Ae,la=200;var fa,da,ha,pa=10*lt;function va(){0!==fa.batchCount&&(Vn("Customer data measures",fa),_a())}function ma(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function ga(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function _a(){fa={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function ya(){ha=!1,da={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var ba=4e3,wa=500,Sa=Ae;function Ea(t,e){void 0===e&&(e=wa);var n,r=new Ur(Sa,ba);o(Oa(),yt());var i=Yt(t,window,[Dt.PAGE_SHOW,Dt.FOCUS,Dt.BLUR,Dt.VISIBILITY_CHANGE,Dt.RESUME,Dt.FREEZE,Dt.PAGE_HIDE],(function(t){o(function(t){if(t.type===Dt.FREEZE)return"frozen";if(t.type===Dt.PAGE_HIDE)return t.persisted?"frozen":"terminated";return Oa()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,e){void 0===e&&(e=yt()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=St(t,u.startTime);o.push({state:u.state,start:mt(c)})}return o}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:o,stop:function(){i(),r.stop()}}}function Oa(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function ka(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,u,c,l=(u=(s=t).site,c=s.subdomain||function(t){switch(t.site){case hn:case pn:return"app";case dn:return"dd";default:return}}(s),"https://".concat(c?"".concat(c,"."):"").concat(u)),f="/rum/replay/sessions/".concat(o);return"".concat(l).concat(f,"?").concat(a.join("&"))}var Aa={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Ta={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},xa={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Ca={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},Ia={Play:0,Pause:1};function Pa(t,e){return{data:S({source:t},e),type:Aa.IncrementalSnapshot,timestamp:_t()}}var Ra={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:bn.ALLOW,MASK:bn.MASK,MASK_USER_INPUT:bn.MASK_USER_INPUT},Na="data-dd-privacy",La="allow",Ma="mask",Da="mask-user-input",ja="hidden",Ua="dd-privacy-allow",Fa="dd-privacy-mask",Ba="dd-privacy-mask-user-input",Va="dd-privacy-hidden",za="***",qa="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Ha={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Ga=1e5;function Ya(t,e){var n=dr(t),r=n?Ya(n,e):e;return Ka(Wa(t),r)}function Ka(t,e){switch(e){case Ra.HIDDEN:case Ra.IGNORE:return e}switch(t){case Ra.ALLOW:case Ra.MASK:case Ra.MASK_USER_INPUT:case Ra.HIDDEN:case Ra.IGNORE:return t;default:return e}}function Wa(t){if(ur(t)){var e=t.getAttribute(Na);if("BASE"===t.tagName)return Ra.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return Ra.MASK;if("hidden"===n.type)return Ra.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return Ra.MASK}return e===ja||t.classList.contains(Va)?Ra.HIDDEN:e===Ma||t.classList.contains(Fa)?Ra.MASK:e===Da||t.classList.contains(Ba)?Ra.MASK_USER_INPUT:e===La||t.classList.contains(Ua)?Ra.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Ra.IGNORE:void 0}}function $a(t,e){switch(e){case Ra.MASK:case Ra.HIDDEN:case Ra.IGNORE:return!0;case Ra.MASK_USER_INPUT:return sr(t)?Za(t.parentNode):Za(t);default:return!1}}function Za(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Ha[e.tagName]}var Ja=function(t){return t.replace(/\S/g,"x")};function Xa(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){var a=n;if("SCRIPT"===i)o=za;else if(a===Ra.HIDDEN)o=za;else if($a(t,a))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?za:Ja(o);return o}}var Qa=new WeakMap;function ts(t){return Qa.has(t)}function es(t){return Qa.get(t)}function ns(t,e){var n=t.tagName,r=t.value;if($a(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return za}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var rs=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,is=/^[A-Za-z]+:|^\/\//,os=/^data:.*,/i;function as(t,e){return t.replace(rs,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||is.test(s)||os.test(s))return t;var u=n||i||"";return"url(".concat(u).concat(function(t,e){try{return un(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}var ss=/[^a-z1-6-_]/;function us(t){var e=t.toLowerCase().trim();return ss.test(e)?"div":e}function cs(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function ls(t,e,n,r){if(e===Ra.HIDDEN)return null;var i=t.getAttribute(n);if(e===Ra.MASK&&n!==Na&&!Si.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return za}if(!("IMG"!==o&&"SOURCE"!==o||"src"!==n&&"srcset"!==n))return qa;if("A"===o&&"href"===n)return za;if(i&&b(n,"data-"))return za}return i&&"string"==typeof i&&i.length>Ga&&"data:"===i.slice(0,5)?"data:truncated":i}function fs(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch(t){}return e?as(Array.from(e,2===xe()?ds:hs).join(""),t.href):null}function ds(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return hs(t)}function hs(t){return function(t){return"styleSheet"in t}(t)&&fs(t.styleSheet)||t.cssText}function ps(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Ta.Document,childNodes:ms(t,e),adoptedStyleSheets:cs(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=lr(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Ta.DocumentFragment,childNodes:ms(t,e),isShadowRoot:n,adoptedStyleSheets:n?cs(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Ta.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=us(t.tagName),i=(a=t,"svg"===a.tagName||a instanceof SVGElement||void 0),o=Ka(Wa(t),e.parentNodePrivacyLevel);var a;if(o===Ra.HIDDEN){var s=t.getBoundingClientRect(),u=s.width,c=s.height;return{type:Ta.Element,tagName:r,attributes:(n={rr_width:"".concat(u,"px"),rr_height:"".concat(c,"px")},n[Na]=ja,n),childNodes:[],isSVG:i}}if(o===Ra.IGNORE)return;var l=function(t,e,n){var r;if(e===Ra.HIDDEN)return{};for(var i={},o=us(t.tagName),a=t.ownerDocument,s=0;s0||cr(t)}(t)&&"style"!==r){f=ms(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:S({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))}return{type:Ta.Element,tagName:r,attributes:l,childNodes:f,isSVG:i}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Xa(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Ta.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Ta.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=es(t)||vs++,i=n;return i.id=r,function(t,e){Qa.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}var vs=1;function ms(t,e){var n=[];return fr(t,(function(t){var r=ps(t,e);r&&n.push(r)})),n}function gs(t,e,n){return ps(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function _s(t){return Boolean(t.changedTouches)}function ys(t){return!0===t.composed&&cr(t.target)?t.composedPath()[0]:t.target}var bs=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},ws=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},Ss=50;function Es(t){var e=_s(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=bs(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};t.isTrusted&&Vn("mouse/touch event without x/y")}var Os,ks=100;var As=((Os={})[Dt.POINTER_UP]=Ca.MouseUp,Os[Dt.MOUSE_DOWN]=Ca.MouseDown,Os[Dt.CLICK]=Ca.Click,Os[Dt.CONTEXT_MENU]=Ca.ContextMenu,Os[Dt.DBL_CLICK]=Ca.DblClick,Os[Dt.FOCUS]=Ca.Focus,Os[Dt.BLUR]=Ca.Blur,Os[Dt.TOUCH_START]=Ca.TouchStart,Os[Dt.TOUCH_END]=Ca.TouchEnd,Os);function Ts(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=Yt(t,n,a?[Dt.CHANGE]:[Dt.INPUT,Dt.CHANGE],(function(t){var e=ys(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}).stop;if(a)r=j;else{var u=[zr(HTMLInputElement.prototype,"value",c),zr(HTMLInputElement.prototype,"checked",c),zr(HTMLSelectElement.prototype,"value",c),zr(HTMLTextAreaElement.prototype,"value",c),zr(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var e=Ya(t,i);if(e!==Ra.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if($a(t,e))return;n={isChecked:t.checked}}else{var o=ns(t,e);if(void 0===o)return;n={text:o}}l(t,n);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(w(u),'"]')),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(t,n){if(ts(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(S({id:es(t)},n)))}}}function xs(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}var Cs=200;var Is=100;function Ps(t){var e=j,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(d(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(d(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:Is})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}function Rs(t,e,n,r){var i=$n();if(!i)return{stop:j,flush:j};var o=Ps((function(r){!function(t,e,n,r){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){Ns(t,r.removeShadowRoot)}))}));var i=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!ts(e)&&!lr(e))return!1;e=dr(e)}return!0}(t.target)&&Ya(t.target,n.defaultPrivacyLevel)!==Ra.HIDDEN})),o=function(t,e,n){for(var r=new Set,i=new Map,o=function(t){t.addedNodes.forEach((function(t){r.add(t)})),t.removedNodes.forEach((function(e){r.has(e)||i.set(e,t.target),r.delete(e)}))},a=0,s=t;aUs&&function(){if(!js)return;if(js.keys)js.delete(js.keys().next().value);else{var t=!0;js.forEach((function(e,n){t&&(js.delete(n),t=!1)}))}}()),e}var Vs=function(){function t(t,e,n){this.encoder=t,this.encodedBytesCount=0;var r=e.view.id;this.metadata=S({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Fs(r),source:"browser"},e),function(t){Bs(t).segments_count+=1}(r)}return t.prototype.addRecord=function(t,e){var n,r=this;this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(n=this.metadata).has_full_snapshot||(n.has_full_snapshot=t.type===Aa.FullSnapshot),Nn("record",{record:t,segment:this.metadata}),Bs(this.metadata.view.id).records_count+=1;var i=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(i+JSON.stringify(t),(function(t){r.encodedBytesCount+=t,e(r.encodedBytesCount)}))},t.prototype.flush=function(t){var e=this;if(this.encoder.isEmpty)throw new Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n")),this.encoder.finish((function(n){var r,i;r=e.metadata.view.id,i=n.rawBytesCount,Bs(r).segments_total_raw_size+=i,t(e.metadata,n)}))},t}(),zs=30*lt,qs=6e4;function Hs(t,e,n,r,i,o){return function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=t.subscribe(2,(function(){s("view_change")})).unsubscribe,a=t.subscribe(9,(function(t){s(t.reason)})).unsubscribe;function s(t){1===i.status&&(i.segment.flush((function(e,r){var i=function(t,e,n){var r=new FormData;r.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var i=S({raw_segment_size:n,compressed_segment_size:t.byteLength},e),o=JSON.stringify(i);return r.append("event",new Blob([o],{type:"application/json"})),{data:r,bytesCount:t.byteLength}}(r.output,e,r.rawBytesCount);Wn(t)?n.sendOnExit(i):n.send(i)})),N(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==i.status){if(0===i.status){var n=e();if(!n)return;i={status:1,segment:new Vs(r,n,i.nextSegmentCreationReason),expirationTimeoutId:R((function(){s("segment_duration_limit")}),zs)}}i.segment.addRecord(t,(function(t){t>qs&&s("segment_bytes_limit")}))}},stop:function(){s("stop"),o(),a()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r)}),i,o)}function Gs(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Ys(t,e,n,r){var i=e.findTrackedSession(),o=function(t,e){if(!Gs())return"browser-not-supported";if(!t)return"rum-not-tracked";if(!t.sessionReplayAllowed)return"incorrect-session-plan";if(!e)return"replay-not-started"}(i,r);return ka(t,{viewContext:n.findView(),errorType:o,session:i})}function Ks(t,e,n){var r,i=0,o=[],a=0,s=[],u=Gt(t,e,"message",(function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),Vn("Worker responses received out of order."))}})).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return S(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}var Ws=10*lt;function $s(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;l>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&is){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Zs={status:0};function Js(t,e,n,r){switch(void 0===r&&(r=$s),0===Zs.status&&function(t,e,n){void 0===n&&(n=$s);try{var r=n(t),i=Gt(t,r,"error",(function(n){Qs(t,e,n)})).stop,a=Gt(t,r,"message",(function(n){var r=n.data;"errored"===r.type?Qs(t,e,r.error,r.streamId):"initialized"===r.type&&function(t){1===Zs.status&&(Zs={status:3,worker:Zs.worker,stop:Zs.stop,version:t})}(r.version)})).stop;r.postMessage({action:"init"}),R((function(){return function(t){1===Zs.status&&(o.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),Zs.initializationFailureCallbacks.forEach((function(t){return t()})),Zs={status:2})}(e)}),Ws),Zs={status:1,worker:r,stop:function(){i(),a()},initializationFailureCallbacks:[]}}catch(n){Qs(t,e,n)}}(t,e,r),Zs.status){case 1:return Zs.initializationFailureCallbacks.push(n),Zs.worker;case 3:return Zs.worker}}function Xs(){return Zs.status}function Qs(t,e,n,r){if(1===Zs.status||0===Zs.status){if(o.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(v(a=n.message,"Content Security Policy")||v(a,"requires 'TrustedScriptURL'"))){var i=void 0;i=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",o.error("".concat(i," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else zn(n);1===Zs.status&&Zs.initializationFailureCallbacks.forEach((function(t){return t()})),Zs={status:2}}else zn(n,{worker_version:3===Zs.status&&Zs.version,stream_id:r});var a}var tu=function(t,e){if(Ht()||!Gs())return{start:j,stop:j,getReplayStats:function(){},onRumStart:j,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}};return{start:function(){return r()},stop:function(){return i()},getSessionReplayLink:function(t,e,r){return Ys(t,e,r,0!==n.status)},onRumStart:function(o,a,s,u,c){a.startSessionReplayRecordingManually&&(n={status:0}),o.subscribe(7,(function(){2!==n.status&&3!==n.status||(i(),n={status:1})})),o.subscribe(8,(function(){1===n.status&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},Zn(a,"interactive",(function(){if(2===n.status)if(c||(c=Js(a,"Datadog Session Replay",(function(){i()}),e))){var r=t(o,a,s,u,Ks(a,c,1)).stop;n={status:3,stopRecording:r}}else n={status:0}}))):n={status:1}},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===Xs()&&3===n.status},getReplayStats:function(t){return 3===Xs()?function(t){return null==js?void 0:js.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a=o||na(e,e.sessionReplayEndpointBuilder,qs,(function(e){t.notify(12,{error:e}),Vn("Error reported to customer",{"error.message":e.message})})),s=Hs(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=Ds({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,h=l.flushMutations,p=t.subscribe(4,(function(){h(),u({timestamp:_t(),type:Aa.ViewEnd})})).unsubscribe,v=t.subscribe(2,(function(t){d(t.startClocks.timeStamp)})).unsubscribe;return{stop:function(){p(),v(),f(),c()}}})),eu=function(t,e,n){var r,i=void 0===n?{}:n,a=i.ignoreInitIfSyntheticsWillInjectRum,s=void 0===a||a,u=i.startDeflateWorker,c=i.createDeflateEncoder,l=!1,f=rt(2),p=rt(1),v=function(){},m=function(){},g=j,_=function(){},y=new it,b=function(t,e){void 0===e&&(e=_t()),y.add((function(){return b(t,e)}))},w=function(t,e){void 0===e&&(e=bt()),y.add((function(){return w(t,e)}))},O=function(t,n){void 0===n&&(n=Rn(f,p,e)),y.add((function(){return O(t,n)}))},A=function(t,n){void 0===n&&(n=Rn(f,p,e)),y.add((function(){return A(t,n)}))},T=function(){y.add((function(){return T()}))},x=function(){y.add((function(){return x()}))},C=function(t,e){y.add((function(){return C(t,e)}))};function I(n,i,o){if(n.storeContextsAcrossPages){var a=f.getContext();(f=$t(i,"rum",2)).setContext(V(f.getContext(),a));var s=p.getContext();(p=$t(i,"rum",1)).setContext(V(p.getContext(),s))}var u=t(n,i,e,f,p,o,r&&c?function(t){return c(i,r,t)}:Zt);_=function(){return e.getSessionReplayLink(i,u.session,u.viewContexts)},T=e.start,x=e.stop,w=u.startView,O=u.addAction,A=u.addError,b=u.addTiming,C=u.addFeatureFlagEvaluation,v=u.getInternalContext,g=u.stopSession,e.onRumStart(u.lifeCycle,i,u.session,u.viewContexts,r),y.drain()}var P=d((function(t){var e="object"===(0,k.A)(t)?t:{name:t};w(e)})),R=E({init:d((function(t){if(t){if(m=function(){return B(t)},!s||!Bt()){var e=Ht();if(e&&(t=function(t){return S({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(t)),function(t){if(l)return t.silentMultipleInit||o.error("DD_RUM is already initialized."),!1;return!0}(t)){var n=In(t);if(n)if(e||n.sessionStoreStrategyType){if(!n.compressIntakeRequests||e||!u||(r=u(n,"Datadog RUM",j))){if(n.trackViewsManually){var i=y;y=new it,w=function(e){I(t,n,e)},i.drain()}else I(t,n);l=!0}}else o.warn("No storage available for session. We will not send any data.")}}}else o.error("Missing configuration")})),setGlobalContextProperty:d((function(t,e){return f.setContextProperty(t,e)})),removeGlobalContextProperty:d((function(t){return f.removeContextProperty(t)})),getGlobalContext:d((function(){return f.getContext()})),setGlobalContext:d((function(t){return f.setContext(t)})),clearGlobalContext:d((function(){return f.clearContext()})),getInternalContext:d((function(t){return v(t)})),getInitConfiguration:d((function(){return m()})),addAction:d((function(t,e){O({name:K(t),context:K(e),startClocks:bt(),type:"custom"})})),addError:function(t,e){var n=me();h((function(){A({error:t,handlingStack:n,context:K(e),startClocks:bt()})}))},addTiming:d((function(t,e){b(K(t),e)})),setUser:d((function(t){_e(t)&&p.setContext(ge(t))})),getUser:d((function(){return p.getContext()})),setUserProperty:d((function(t,e){var n,r=ge((n={},n[t]=e,n))[t];p.setContextProperty(t,r)})),removeUserProperty:d((function(t){return p.removeContextProperty(t)})),clearUser:d((function(){return p.clearContext()})),startView:P,stopSession:d((function(){g()})),startSessionReplayRecording:d((function(){return T()})),stopSessionReplayRecording:d((function(){return x()})),addFeatureFlagEvaluation:d((function(t,e){C(K(t),K(e))})),getSessionReplayLink:d((function(){return _()}))});return R}((function(t,e,n,r,i,o,a){var s=[],u=new Mr;u.subscribe(11,(function(t){return Nn("rum",t)}));var c=function(t){var e=Fn("browser-rum-sdk",t);if(Ht()){var n=qt();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(e);c.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=m.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=O.findView())||void 0===n?void 0:n.id},action:{id:T.findActionId()}}}));var l=function(t){u.notify(12,{error:t}),Vn("Error reported to customer",{"error.message":t.message})},f=function(t,e){if(void 0===e&&(e=I),!be(le.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:j,stop:j};var n=new Ur(ca),r=0,i=!1;t.subscribe(4,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),t.subscribe(2,(function(t){var e=t.startClocks;n.add({},e.relative),r=0}));var o=D((function(t){r=e(z(t)),i||(i=et(r,0))}),la),a=o.throttled;return{findFeatureFlagEvaluations:function(t){return n.find(t)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(t,e){var r=n.find();r&&(r[t]=e,a(r))},stop:o.cancel}}(u),h=Kn(e),p=h.subscribe((function(t){u.notify(9,t)}));s.push((function(){return p.unsubscribe()}));var m=Ht()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:j,expireObservable:new J}}():zo(e,u);if(Ht())!function(t){var e=qt();t.subscribe(11,(function(t){e.send("rum",t)}))}(u);else{var g=function(t,e,n,r,i,o,a){var s=t.replica,u=aa(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return V(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(11,(function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)})),n.subscribe((function(e){return u.add(e,Bn(t))})),u}(e,u,c.observable,l,h,m.expireObservable,a);s.push((function(){return g.stop()})),function(t,e,n,r,i,o,a){e.enabled&&ot(t.customerDataTelemetrySampleRate)&&(_a(),ya(),n.subscribe(11,(function(t){ha=!0,ma(da.globalContextBytes,Oe(r.getContext())?0:r.getBytesCount()),ma(da.userContextBytes,Oe(i.getContext())?0:i.getBytesCount());var e=o.findFeatureFlagEvaluations(),n=v(["view","error"],t.type)&&e&&!Oe(e);ma(da.featureFlagBytes,n?o.getFeatureFlagBytesCount():0)})),a.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;ha&&(fa.batchCount+=1,ma(fa.batchBytesCount,e),ma(fa.batchMessagesCount,n),ga(fa.globalContextBytes,da.globalContextBytes),ga(fa.userContextBytes,da.userContextBytes),ga(fa.featureFlagBytes,da.featureFlagBytes),ya())})),L(va,pa))}(e,c,u,r,i,f,g.flushObservable)}var _,y,b=(_=$n(),y=new J((function(){if(_){var t=new _(d((function(){return y.notify()})));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),y),w=ua(e,location),E=function(t,e,n,r,i,o,a,s){var u=function(t){var e=new Ur(Fr);return t.subscribe(2,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(4,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(8,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),c=function(t,e,n){var r,i=new Ur(sa);t.subscribe(4,(function(t){var e=t.endClocks;i.closeActive(e.relative)})),t.subscribe(2,(function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o}));var o=e.subscribe((function(t){var e=t.newLocation,n=i.find();if(n){var r=yt();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}}));function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,i,n),l=Ea(e),f=function(t,e,n,r){t.subscribe(1,(function(e){return t.notify(10,Yi(e,r))}));var i={findActionId:j};return n.trackUserInteractions&&(i=Hi(t,e,n).actionContexts),{addAction:function(e,n){t.notify(10,S({savedCommonContext:n},Yi(e,r)))},actionContexts:i}}(t,o,e,l),d=f.addAction,h=f.actionContexts,p=function(t){var e=Ao();return{get:function(){return{viewport:e}},stop:ko(t).subscribe((function(t){e=t})).unsubscribe}}(e);return Rr(e,t,r,u,c,h,p,a,s),{viewContexts:u,pageStateHistory:l,urlContexts:c,addAction:d,actionContexts:h,stop:function(){p.stop(),l.stop(),c.stop(),u.stop(),l.stop()}}}(u,e,location,m,w,b,(function(){return Rn(r,i,n)}),l),O=E.viewContexts,k=E.pageStateHistory,A=E.urlContexts,T=E.actionContexts,x=E.addAction,C=E.stop;s.push(C),qn(function(t){var e=Sn(t);return S({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:Pn(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks},e)}(t)),function(t,e,n){t.subscribe(0,(function(r){for(var i=0,o=r;i=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ou={debug:"debug",error:"error",info:"info",warn:"warn"},au={console:"console",http:"http",silent:"silent"},su=Object.keys(ou),uu=function(){function t(t,e,n,r,i){void 0===n&&(n=au.http),void 0===r&&(r=ou.debug),void 0===i&&(i={}),this.handleLogStrategy=t,this.handlerType=n,this.level=r,this.contextManager=rt(3),this.contextManager.setContext(i),e&&this.contextManager.setContextProperty("logger",{name:e})}return t.prototype.log=function(t,e,n,r){var i;if(void 0===n&&(n=ou.info),null!=r){var o=de({stackTrace:r instanceof Error?Xt(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:Er.LOGGER,handling:"handled",startClocks:bt()});i={stack:o.stack,kind:o.type,message:o.message}}var a=K(e),s=i?V({error:i},a):a;this.handleLogStrategy({message:K(t),context:s,status:n},this)},t.prototype.debug=function(t,e,n){this.log(t,e,ou.debug,n)},t.prototype.info=function(t,e,n){this.log(t,e,ou.info,n)},t.prototype.warn=function(t,e,n){this.log(t,e,ou.warn,n)},t.prototype.error=function(t,e,n){this.log(t,e,ou.error,n)},t.prototype.setContext=function(t){this.contextManager.setContext(t)},t.prototype.getContext=function(){return this.contextManager.getContext()},t.prototype.setContextProperty=function(t,e){this.contextManager.setContextProperty(t,e)},t.prototype.removeContextProperty=function(t){this.contextManager.removeContextProperty(t)},t.prototype.clearContext=function(){this.contextManager.clearContext()},t.prototype.setHandler=function(t){this.handlerType=t},t.prototype.getHandler=function(){return this.handlerType},t.prototype.setLevel=function(t){this.level=t},t.prototype.getLevel=function(){return this.level},iu([f],t.prototype,"log",null),t}(),cu="logs";var lu="logs";function fu(t){var e=Bo(t,lu,(function(e){return function(t,e){var n=function(t){return"0"===t||"1"===t}(e)?e:du(t);return{trackingType:n,isTracked:"1"===n}}(t,e)}));return{findTrackedSession:function(t){var n=e.findActiveSession(t);return n&&"1"===n.trackingType?{id:n.id}:void 0},expireObservable:e.expireObservable}}function du(t){return ot(t.sessionSampleRate)?"1":"0"}var hu,pu=!1;function vu(t){var e=window;if(Bt()){var n=r(e.DD_RUM_SYNTHETICS);return n||pu||(pu=!0,Vn("Logs sent before RUM is injected by the synthetics worker",{testId:Vt(),resultId:zt()})),n}return r(e.DD_RUM);function r(e){if(e&&e.getInternalContext)return e.getInternalContext(t)}}var mu,gu=((hu={})[t.log]=ou.info,hu[t.debug]=ou.debug,hu[t.info]=ou.info,hu[t.warn]=ou.warn,hu[t.error]=ou.error,hu);var _u=((mu={})[Ji.cspViolation]=ou.error,mu[Ji.intervention]=ou.error,mu[Ji.deprecation]=ou.warn,mu);function yu(t,e){if(!t.forwardErrorsToLogs)return{stop:j};var n=Gr(t).subscribe((function(t){"complete"===t.state&&i("xhr",t)})),r=$r().subscribe((function(t){"resolve"===t.state&&i("fetch",t)}));function i(n,r){function i(t){e.notify(0,{rawLogsEvent:{message:"".concat(wu(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:t||"Failed to load"},http:{method:r.method,status_code:r.status,url:r.url},status:ou.error,origin:Er.NETWORK}})}t.isIntakeUrl(r.url)||!function(t){return 0===t.status&&"opaque"!==t.responseType}(r)&&!Xr(r.status)||("xhr"in r?function(t,e,n){"string"==typeof t.response?n(bu(t.response,e)):n(t.response)}(r.xhr,t,i):r.response?function(t,e,n){var r=Qr(t);r&&r.body?window.TextDecoder?function(t,e,n){ti(t,(function(t,e,r){if(t)n(t);else{var i=(new TextDecoder).decode(e);r&&(i+="..."),n(void 0,i)}}),{bytesLimit:e,collectStreamBody:!0})}(r.body,e.requestErrorResponseLengthLimit,(function(t,e){n(t?"Unable to retrieve response: ".concat(t):e)})):r.text().then(d((function(t){return n(bu(t,e))})),d((function(t){return n("Unable to retrieve response: ".concat(t))}))):n()}(r.response,t,i):r.error&&function(t,e,n){n(bu(pe(Xt(t)),e))}(r.error,t,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function bu(t,e){return t.length>e.requestErrorResponseLengthLimit?"".concat(t.substring(0,e.requestErrorResponseLengthLimit),"..."):t}function wu(t){return"xhr"===t?"XHR":"Fetch"}var Su,Eu=Lr,Ou=((Su={})[ou.debug]=0,Su[ou.info]=1,Su[ou.warn]=2,Su[ou.error]=3,Su);function ku(t){return{handleLog:function(n,i,o,a){var s=V(i.getContext(),n.context);Au(n.status,au.console,i)&&function(t,n){r[t.status].call(e,t.message,n)}(n,s),Au(n.status,au.http,i)&&t.notify(0,{rawLogsEvent:{date:a||_t(),message:n.message,status:n.status,origin:Er.LOGGER},messageContext:s,savedCommonContext:o})}}}function Au(t,e,n){var r=n.getHandler(),i=Array.isArray(r)?r:[r];return Ou[t]>=Ou[n.getLevel()]&&v(i,e)}var Tu=function(e){var n=!1,r=rt(2),i=rt(1),a={},s=function(){},u=new it,c=function(t,e,n,r){void 0===n&&(n=B(f())),void 0===r&&(r=_t()),u.add((function(){return c(t,e,n,r)}))},l=function(){};function f(){return{view:{referrer:document.referrer,url:window.location.href},context:r.getContext(),user:i.getContext()}}return E({logger:new uu((function(){for(var t=[],e=0;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=2&&0===i[1].indexOf("id:")&&(r.id=i[1].substring(3)),r.textContent=n,r.setAttribute("target","_blank"),r.setAttribute("rel","noopener"),r.style.color="#2071AB",r},Rc=function(t,e,n){var r=t.createDocumentFragment(),i=t.createElement("sup"),o=t.createElement("span"),a=t.createElement("button");o.textContent=n,i.textContent="?",o.style.borderBottom="1px dotted",a.style.backgroundColor="transparent",a.style.border="0 none",a.style.padding="0",a.className="tooltip",o.className="tooltip",a.appendChild(i),r.appendChild(o),r.appendChild(a),a.setAttribute("aria-label",e),o.setAttribute("aria-label",e);var s=function(e){var n=e.currentTarget,r=t.body.clientWidth,i=n.getBoundingClientRect().x/r*100,o="top-right";i>20&&i<70&&(o="top"),i>70&&(o="top-left"),a.className="tooltip tooltip--".concat(o)};return a.addEventListener("mouseover",s),a.addEventListener("focus",s),r};const Nc=function(t,e){var n=t.createDocumentFragment();return e.split(/(\[--.*?\[*--])/g).reduce((function(e,r){var i=function(t){var e={link:{tagRegex:Cc,tagRenderer:Pc},tip:{tagRegex:Ic,tagRenderer:Rc}},n=t.match(/\[--(\w*)/);return n?e[n[1]]:null}(r);if(i)return function(t,e,n,r){var i=r.tagRegex,o=r.tagRenderer,a=n.split(i),s=o(e,a[1],a[2]);return t.appendChild(s),t}(e,t,r,i);var o=t.createTextNode(r);return e.appendChild(o),n}),n)};function Lc(t,e,n){var r=t.createElement("label");return r.setAttribute("for",e),r.className="label",r.appendChild(Nc(t,n)),r}var Mc=function(t){return"fieldset"===t.tagName.toLowerCase()},Dc=function(t,e){t.setAttribute("aria-describedby",e)},jc=function(t,e,n,r){var i=n.id.concat("-helpText"),o=function(t,e,n){var r=t.createElement("div");return r.className="form-group__help-text",r.setAttribute("id",e),r.appendChild(Nc(t,n)),r}(t,i,r);Mc(n)?(!function(t,e){t.querySelectorAll("input").forEach((function(t){return Dc(t,e)}))}(n,i),n.appendChild(o),e.appendChild(n)):(Dc(n,i),e.appendChild(o))};const Uc=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"form-group",i=n.helpText,o=n.hidden,a=n.label,s=t.createElement("div");if(s.className=r,!Mc(e)){var u=Lc(t,e.id,o?"":a);s.appendChild(u)}return s.appendChild(e),i&&jc(t,s,e,i),o&&(s.style.display="none"),s};function Fc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bc(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:"form-group",i=t.createElement("div");return i.className=r,e.forEach((function(t){i.appendChild(t)})),n&&i.setAttribute("style","display: none;"),i}function $c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zc(t){for(var e=1;e0?e.label.toLowerCase():e.validationLabel),v="".concat(i,"-").concat(n.options[0].value.split(" ").join("-"));return h?e.required&&r.push({field:e.name,fieldId:i,validation:Wu.shouldHaveValue.bind(null,{name:e.name,type:"element",id:i,focusElement:v},e.errorMessage||p)}):r.push({field:e.name,fieldId:i,validation:Wu.shouldHaveCheckedInput.bind(null,s,{name:e.name,type:"element",id:i,focusElement:v},e.errorMessage||p)}),{el:Uc(t,c,e),ev:f,telemetryStream:Gu.Ay.merge(o),validations:r}}function Xc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qc(t){for(var e=1;e0){var u=tl(t,nl(nl({},e),{},{name:wc.retail[o]}),{channel:o,text:n.retailOptIn[o]}),c=u.el,l=u.ev,f=u.telemetryStream,d=u.validations;a.push(c),s=s.concat(d),r[wc.retail[o]]=l.conformed,i.push(f)}}));var u,c,l,f=Kc(t,[o].concat(a),e.hidden);if(f.classList.add("u--m0"),n.leadShareOptIn.text){(u=Yc(t,n.leadShareOptIn.text)).classList.add("u--mb2");var d=[],h=[];bc.forEach((function(o){if(n.leadShareOptIn[o].length>0){var a=tl(t,nl(nl({},e),{},{name:wc.share[o]}),{channel:o,text:n.leadShareOptIn[o]}),u=a.el,c=a.ev,l=a.telemetryStream,f=a.validations;d.push(u),s=s.concat(f),r[wc.share[o]]=c.conformed,h.push(c.raw.map((function(t){return{channel:o,value:t}}))),i.push(l)}}));var p=Gu.Ay.merge(h).scan((function(t,e){return t[e.channel]=e.value,t}),{}).map((function(t){for(var e=Object.keys(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:"").split(";"),e={};return t.forEach((function(t){e[t]=!0})),e}(n.defaultOption);n&&n.options&&n.options.length&&(n.options.forEach((function(e){var n="".concat(i,"-").concat(e.value.split(" ").join("-")),o=t.createElement("div");o.classList.add("checkbox");var u=t.createElement("input");u.setAttribute("type","checkbox"),u.setAttribute("id",n),u.classList.add("control"),u.setAttribute("data-value",e.value),s[e.value]&&u.setAttribute("checked","true"),a.push(u);var c=t.createElement("label");c.innerHTML=e.label,c.classList.add("label"),c.setAttribute("for",n),o.appendChild(u),o.appendChild(c),r.appendChild(o)})),e.required&&o.push({field:e.name,fieldId:i,validation:Wu.shouldHaveTextContent.bind(null,{name:e.name,type:"element",id:i},e.errorMessage||"Please select at least one option for ".concat(e.label.toLowerCase()))})),e.hidden&&r.setAttribute("style","display:none");var u=Yc(t,e.hidden?"":e.label),c=Kc(t,[u,r],e.hidden);c.setAttribute("id",i),c.setAttribute("name",e.name);var l=Gu.Ay.fromEvents(c,"change",(function(){return a.reduce((function(t,e){var n=e.getAttribute("data-value");return e.checked?"".concat(t).concat(t.length?";":"").concat(n):t}),"")})),f=Gu.Ay.constant(n.defaultOption?n.defaultOption:void 0),d=[];a.forEach((function(t){d.push(Gu.Ay.fromEvents(t,"blur",(function(){return{type:Qu}}))),d.push(Gu.Ay.fromEvents(t,"change",(function(){return{type:tc}}))),d.push(Gu.Ay.fromEvents(t,"focus",(function(){return{type:Xu}})))}));var h=Gu.Ay.merge(d).map((function(t){return bl(bl({},t),{},{name:e.name,html_id:i,field_type:e.type})}));return{el:Uc(t,c,e),ev:Gu.Ay.merge([l,f]),telemetryStream:h,validations:o}},fl,function(t,e,n){var r=t.createElement("input"),i="".concat(e.salt||"").concat(e.name);r.setAttribute("id",i),r.setAttribute("name",e.name),r.setAttribute("required","required"),r.setAttribute("type",e.hidden?"hidden":"email"),n&&n.text&&n.text.length&&r.setAttribute("value",n.text),r.className="control";var o=[];o.push({field:e.name,fieldId:i,validation:Wu.isValidEmail.bind(null,{name:e.name,type:"element",id:i},e.errorMessage||"Please enter a valid email format")});var a={},s=Gu.Ay.constant(n?n.text:""),u=Gu.Ay.fromEvents(r,"keyup").map((function(t){return t.target.value})),c=Gu.Ay.fromEvents(r,"change").map((function(t){return t.target.value})),l=Gu.Ay.merge([s,u,c]),f=Gu.Ay.constant(!0),d=l.map((function(t){return""===t})),h=Gu.Ay.merge([f,d]);a.email=l,a.email_opt_out=h;var p=Gu.Ay.fromEvents(r,"blur",(function(){return{type:Qu}})),v=Gu.Ay.fromEvents(r,"keydown",(function(){return{type:tc}})).take(1),m=Gu.Ay.fromEvents(r,"focus",(function(){return{type:Xu}})),g=Gu.Ay.merge([p,v,m]).map((function(t){return Gc(Gc({},t),{},{name:e.name,html_id:i,field_type:e.type})}));return{el:Uc(t,r,e),ev:a,telemetryStream:g,validations:o}},function(t,e,n){var r=t.createElement("input"),i="".concat(e.salt||"").concat(e.name);r.setAttribute("id",i),r.setAttribute("name",e.name),r.setAttribute("type",e.hidden?"hidden":"tel"),n&&n.text&&n.text.length&&r.setAttribute("value",n.text),r.className="control";var o={},a=Gu.Ay.constant(n?n.text:""),s=Gu.Ay.fromEvents(r,"keyup").map((function(t){return t.target.value})),u=Gu.Ay.fromEvents(r,"change").map((function(t){return t.target.value})),c=Gu.Ay.merge([a,s,u]),l=Gu.Ay.constant(!0),f=c.map((function(t){return""===t})),d=Gu.Ay.merge([l,f]);o.phone=c,o.do_not_call=d;var h=Gu.Ay.fromEvents(r,"blur",(function(){return{type:Qu}})),p=Gu.Ay.fromEvents(r,"keydown",(function(){return{type:tc}})).take(1),v=Gu.Ay.fromEvents(r,"focus",(function(){return{type:Xu}})),m=Gu.Ay.merge([h,p,v]).map((function(t){return _l(_l({},t),{},{name:e.name,html_id:i,field_type:e.type})}));return{el:Uc(t,r,e),ev:o,telemetryStream:m,validations:[]}},function(t,e,n){var r=t.createElement("div"),i="".concat(e.salt||"","info-text-submit-field-").concat(e.name);return r.setAttribute("id",i),r.appendChild(Nc(t,n.text)),r.classList.add("u--align-left","u--padding-top-2","u--font-size-0875","info-text"),e.hidden&&r.classList.add("u--hide"),{el:r,ev:Gu.Ay.never(),telemetryStream:Gu.Ay.never(),validations:[]}}];const Sl=wl;var El=["password"],Ol={password:"Password is missing the following required criteria:"};function kl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Al(t){for(var e=1;ee),t},function(t){var e=t.pop(),n=t.pop();return t.push(n>=e),t},function(t){var e=t.pop(),n=t.pop();return t.push(n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){if(t.toLowerCase().startsWith("state.")){var r=e[t.slice(6)];return void 0===r?{ready:!0,element:t}:r&&"function"==typeof r.pending_value?{ready:!1}:{ready:!0,element:r}}if(t.startsWith("$"))return{ready:!0,element:n[t]}}return{ready:!0,element:t}}const Ul=function(t,e,n){for(var r=[],i=0;i0&&void 0!==arguments[0]&&arguments[0],e=t?"development":"dev";return"staging"==="production".toLowerCase()?e=t?"staging":"stg":"production"==="production".toLowerCase()&&(e=t?"production":"prod"),e},Hl=function(t){return Du(t.document.body.querySelectorAll('[data-package-type="'.concat(gc,'"]')))},Gl=function t(e){var n={};return Object.getOwnPropertyNames(e).forEach((function(r){var i=Object.getOwnPropertyDescriptor(e,r);i.enumerable=!0,"object"===(0,k.A)(e[r])&&null!==e[r]&&(i.value=t(e[r])),Object.defineProperty(n,r,i)})),n},Yl=function(t,e,n){eu.addError(new Error(e),void 0,"source"),Tu.logger.error(e,"object"===(0,k.A)(t)&&null!==t?Gl(t):t),console.error(n)};function Kl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wl(t){for(var e=1;e2&&(o[0]=o.slice(1).join("=")),t.set(o[0],o[1])}return{ready:!0,result:n}},function(t,e,n){var r=Wl({},n),i=$l(t,e);return i.ready?(i.result&&(r.required=!1),{ready:!0,result:r}):{ready:!1,result:{}}},function(t,e,n){var r=Wl({},n),i=$l(t,e);return i.ready?(i.result&&(r.required=!0),{ready:!0,result:r}):{ready:!1,result:{}}}];var Jl=function(){function t(e,n,r,i,o,a,s){Cu(this,t),this.doc=e,this.progressBarMountElement=n,this.bigStepMountElement=a,this.smallStepMountElement=s,this.isQuiz=o,this.progressBarMountElement&&this.init(r,i)}return Ru(t,[{key:"initProgressBar",value:function(t,e){this.progressBarMountElement.classList.add("progress");var n=Pl(this.doc,"div",{class:"progress__max"}),r=Pl(this.doc,"div",{class:"progress__bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100});this.progressBar=r,n.appendChild(r),this.progressBarMountElement.appendChild(n),this.setFillWidth(t,e)}},{key:"init",value:function(t,e){if(this.isQuiz)this.initProgressBar(t,e),this.setQuizStepText(t,e);else{this.initProgressBar(t,e);var n=Pl(this.doc,"div",{class:"progress__label",tabIndex:"-1"});this.standardStepLabel=n,this.progressBarMountElement.appendChild(n),this.setStandardStepText(t,e)}}},{key:"update",value:function(t,e){this.isQuiz?(this.setQuizStepText(t,e),this.bigStepMountElement.focus()):(this.setStandardStepText(t,e),this.standardStepLabel.focus()),this.setFillWidth(t,e)}},{key:"setStandardStepText",value:function(t,e){var n="Step ".concat(parseInt(t,10)+1," of ").concat(e);this.standardStepLabel.textContent=n,this.standardStepLabel.setAttribute("aria-label",n)}},{key:"setQuizStepText",value:function(t,e){var n="".concat(parseInt(t,10)+1," of ").concat(e),r='

Step '.concat(parseInt(t,10)+1," of ").concat(e,"

");this.smallStepMountElement.innerHTML='

'.concat(parseInt(t,10)+1," of ").concat(e,"

"),this.smallStepMountElement.setAttribute("aria-label",n),this.bigStepMountElement.innerHTML=r,this.bigStepMountElement.setAttribute("aria-label","step ".concat(n))}},{key:"setFillWidth",value:function(t,e){var n=Math.min(Math.max(t/(e-1)*100,5),95);this.progressBar.style.width="".concat(n,"%"),this.progressBar.setAttribute("aria-valuenow",n)}}]),t}();const Xl=Jl;const Ql={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var tf,ef=new Uint8Array(16);function nf(){if(!tf&&!(tf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tf(ef)}for(var rf=[],of=0;of<256;++of)rf.push((of+256).toString(16).slice(1));function af(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return rf[t[e+0]]+rf[t[e+1]]+rf[t[e+2]]+rf[t[e+3]]+"-"+rf[t[e+4]]+rf[t[e+5]]+"-"+rf[t[e+6]]+rf[t[e+7]]+"-"+rf[t[e+8]]+rf[t[e+9]]+"-"+rf[t[e+10]]+rf[t[e+11]]+rf[t[e+12]]+rf[t[e+13]]+rf[t[e+14]]+rf[t[e+15]]}const sf=function(t,e,n){if(Ql.randomUUID&&!e&&!t)return Ql.randomUUID();var r=(t=t||{}).random||(t.rng||nf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return af(r)};function uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var cf=function(t){return t?"Opt In":"Opt Out"},lf=function(t){return t?"Opt Out":"Opt In"},ff=function(t){return t?"0":"1"},df={call_opt_in:{getFrom:"do_not_call",fx:function(t){return lf(t)}},email_opt_in:{getFrom:"email_opt_out",fx:function(t){return lf(t)}},lead_share_opt_in:{getFrom:"gdprProspect2uOptIn",fx:function(t){var e=JSON.parse(t);return cf(e)}},lead_capture_form_url:{getFrom:"page_url",fx:function(t){return t}},sms_opt_in:{getFrom:"sms_opt_in",fx:function(t){return cf(t)}},gdpr_prospectpartner_opt_in:{getFrom:"gdpr_prospectpartner_opt_in",fx:function(t){return"true"===t}}},hf={Broad_All_Biz_Email_Opt_In:{getFrom:"lead_share_opt_in",fx:function(t){return t?"1":"0"}},consent_by_email_mktg:{getFrom:"email_opt_out",fx:function(t){return ff(t)}},consent_by_telephone:{getFrom:"do_not_call",fx:function(t){return ff(t)}},final_url:{getFrom:"page_url",fx:function(t){return t}},sms_opt_out:{getFrom:"sms_opt_in",fx:function(t){return ff(t)}},UUID:{getFrom:"uuid",fx:function(t){return t},defaultValue:sf()},State:{getFrom:"state",fx:function(t){return t}}},pf=function(t,e){for(var n=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:Oc)===Oc?gf:_f;!t.uuid&&window.TAXI_FORM&&window.TAXI_FORM.createAnalytics&&(e=window.TAXI_FORM.createAnalytics().getUserId(),t.uuid=e||"");return n="BOOTCAMP"===t.credential_type?pf(t,hf):"SHORT_COURSE"===t.credential_type?pf(t,df):function(t){for(var e=1;e=400?t.json().then((function(t){throw t})):{success:!0}})).catch((function(t){return bf(t)}))}var bf=function(t){return{success:!1,error:{event:"imqSubmissionFailed",logMessage:"Interest Message Queue request failed with error: ".concat(JSON.stringify(t.message),", ").concat(JSON.stringify(t.validation_error)),uiMessageArray:[ac],rawError:t}}};function wf(t,e){return fetch(e+kc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}function Sf(t,e,n,r){return Ef.apply(this,arguments)}function Ef(){return(Ef=Uu(Hu().mark((function t(e,n,r,i){var o,a,s;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n+Ac,(a=r.createElement("form")).setAttribute("method","post"),a.setAttribute("action",o),a.setAttribute("id","sesame-callback-form"),(s=r.createElement("input")).setAttribute("id","sesame-callback-token-input"),s.setAttribute("type","text"),s.setAttribute("name","token"),s.setAttribute("value",e),a.appendChild(s),r.body.appendChild(a);try{a.submit()}catch(t){i[Ec.REQUEST_RESPONSE_ERROR]=t,Yl(i,"Submission to Sesame callback endpoint failed with error ".concat(JSON.stringify(Gl(t))),"Submission to Sesame callback endpoint failed with error ".concat(JSON.stringify(Gl(t))))}case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Of="stg.";"production"==="production".toLowerCase()&&(Of="prod.");var kf="https://tmq.".concat(Of,"2u.com/v1/tmq");function Af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tf(t){for(var e=1;e=400?t.json().then((function(t){throw t})):t.json()})).catch((function(t){return console.log(t)}));var e}},{key:"emitEvent",value:function(t){var e=Tf(Tf({},t),{},{session:this.formTelemUUID,formId:this.opts.formId,grouping:this.opts.grouping,userAgent:this.opts.userAgent});return this.sink(e)}}]),t}();function Cf(t){return t.value&&t.value.text?t.value.text:""}function If(t){return t.value&&t.value.defaultOption?t.value.defaultOption:null}function Pf(t){return t.value}function Rf(){return""}var Nf=[Cf,Pf,If,If,Rf,Pf,Pf,function(){},function(){return""},function(t){return t.value?t.value.gdprOnly:"false"},Pf,Rf,function(t){return t.value&&t.value.degreeOffering?t.value.degreeOffering:""},Cf,If,function(t){return t.value?t.value.text:"never"},Pf,Pf,Cf];const Lf=function(t){return Nf[t]||Pf};function Mf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Df(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};Cu(this,t),this.fields=Df(Df({},r),{},{_errors:[]}),this.activeSubs={},this.subscribable={emit:function(){}},this.changeStream=Gu.Ay.stream((function(t){n.subscribable=t})),e.reduce((function(t,e){return e.conditionallyRendered||void 0!==t[e.name]||(t[e.name]=Lf(e.type)(e)),t}),this.fields)}return Ru(t,[{key:"attachStreams",value:function(t){var e=this;Object.keys(t).forEach((function(n){t[n].onValue((function(t){e.fields[n]=t,e.subscribable.emit({name:n,value:t})}))}))}},{key:"set",value:function(t,e){this.fields[t]=e,this.subscribable.emit({name:t,value:e})}},{key:"get",value:function(t){return this.fields[t]}},{key:"current",value:function(){return this.fields}},{key:"observe",value:function(t){return this.activeSubs[t]||(this.activeSubs[t]={subscription:this.changeStream.filter((function(e){return e.name===t})).map((function(t){return t.value}))}),this.activeSubs[t].subscription}},{key:"observeMany",value:function(t,e){return e?this.changeStream.debounce(e).filter((function(e){return e&&t.includes(e.name)})):this.changeStream.filter((function(e){return t.includes(e.name)}))}},{key:"setFeatureFlags",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set(jf,t)}},{key:"getFeatureFlags",value:function(){return this.fields[jf]}}]),t}();function Ff(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bf(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"nextButton";return{nextButton:Zu,forwardButton:this.anyRequiredFields()?Zu:Ju}[t]}},{key:"startTelemetry",value:function(){this.telemetryService.emitEvent({type:"started",grouping:this.package.grouping,formType:this.formAttributes.formType,degreeOffering:this.package.degreeOffering,htmlSalt:this.salt,url:this.doc.location,taxiPluginVersion:xu,startStep:this.currentStepMarker,loopback:Object.prototype.hasOwnProperty.call(this.currentScreen.out,"0")})}},{key:"mountErrorLogger",value:function(t,e,n){"error"===t?console.error("Taxi can't ".concat(e,'. Template must include element with ID ending in "').concat(n,'".')):console.warn("Taxi can't ".concat(e,'. Template must include element with ID ending in "').concat(n,'".'))}},{key:"getEnvSubDomain",value:function(){var t="";return"development"==="production".toLowerCase()?t="dev.":"staging"==="production".toLowerCase()&&(t="stg."),t}},{key:"getGeo",value:function(){var t=this,e=Date.now(),n="https://geo.".concat(this.getEnvSubDomain(),"mktg.2u.com");return fetch(n).then((function(t){return t.status>=400?t.json().then((function(t){throw t})):t.json()})).then((function(n){var r=n.data||{};return t.dataStore.set("taxi_determined_geo",r.country_name||"undetermined"),t.dataStore.set("taxi_is_restricted",r.is_restricted_geo||!1),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_status",nc),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_value",r),r.is_restricted_geo?t.dataStore.set("no_klondike_carmen_sandiego_region","eu"):t.dataStore.set("no_klondike_carmen_sandiego_region","us"),eu.addTiming("taxi_plugin_csd_response",Date.now()-e),r})).catch((function(e){t.dataStore.set("taxi_determined_geo","undetermined"),t.dataStore.set("taxi_is_restricted",!1),t.dataStore.set("no_klondike_carmen_sandiego_region","us"),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_status",rc),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_value",e)}))}},{key:"initDataStore",value:function(){this.dataStore=new Uf(this.package.fields,this.presetFields),this.dataStore.set("no_klondike_carmen_sandiego_region",{pending_value:this.getGeo}),this.dataStore.set("_INTERNAL_carmen_sandiego_fetch_status",ec),this.dataStore.setFeatureFlags(this.package.featureFlags),this.validationErrorStream=this.dataStore.observe("_errors").onValue(this.renderErrors.bind(this))}},{key:"initBaseElements",value:function(){this.currentScreen=this.package.screens[this.startScreen],this.mountPoint.innerHTML=this.template,this.elementId={nextButton:"lead-form-next-action-button",errors:"lead-form-error-mount-point",fields:"lead-form-field-mount-point",footer:"lead-form-footer-mount-point",progress:"lead-form-progress-bar-mount-point"},this.fieldMountPoint=zl(this.doc,this.salt,this.elementId.fields),this.errorMountPoint=zl(this.doc,this.salt,this.elementId.errors),this.progressBarMountPoint=zl(this.doc,this.salt,this.elementId.progress),this.nextButton=zl(this.doc,this.salt,this.elementId.nextButton),this.footerMountPoint=zl(this.doc,this.salt,this.elementId.footer)}},{key:"initQuizElements",value:function(){this.elementId=Bf(Bf({},this.elementId),{},{bigStepDisplay:"lead-form-big-step-display-mount-point",smallStepDisplay:"lead-form-small-step-display-mount-point",backButton:"lead-form-back-button",forwardButton:"lead-form-forward-button"}),this.bigStepDisplayMountPoint=zl(this.doc,this.salt,this.elementId.bigStepDisplay),this.smallStepDisplayMountPoint=zl(this.doc,this.salt,this.elementId.smallStepDisplay),this.backButton=zl(this.doc,this.salt,this.elementId.backButton),this.forwardButton=zl(this.doc,this.salt,this.elementId.forwardButton)}},{key:"setSubmitTargets",value:function(){this.submitTargets=this.package.submitTargets?Bf(Bf({},ic),this.package.submitTargets):ic}},{key:"status",value:function(){return{currentScreen:this.currentScreen,dataStore:this.dataStore,submitted:this.submissionInProgress,klondikeOpts:this.klondikeOpts}}},{key:"isScreenValid",value:function(){var t=this,e=this.dataStore.get("_errors").reduce((function(t,e){return t+e.error}),""),n=this.activeValidations.map((function(e){return e.validation(t.dataStore)})).filter((function(t){return!t.ok}));return this.suppressValidationErrors||e!==n.reduce((function(t,e){return t+e.error}),"")&&this.dataStore.set("_errors",n),0===n.length}},{key:"handleInvalidEngineVariables",value:function(){this.telemetryService.emitEvent({type:"screenTransitionNextFailed",step:this.currentStepMarker}),this.emitEngineEvent("nextScreenTransitionFailed",{multiFormIdentifier:this.salt,failureReason:"The screen is not valid for transition"}),this.validatedFieldWatchStream=this.dataStore.observeMany(this.activeValidations.map((function(t){return t.field})),250),this.validatedFieldWatchStream.onValue(this.isScreenValid)}},{key:"didFieldExistOnUserPath",value:function(t){var e=this.package.fields[t],n=this.package.screens.find((function(e){return e.allFields.includes(parseInt(t,10))})).conditional[t];if(!n)return!0;var r=n[0],i=n[2];return!!Zl[r](this.dataStore,i,e).result}},{key:"handleThankYouPageRouting",value:function(){var t=this;Object.keys(this.package.thankYouPageURLs).forEach((function(e){var n=t.package.fields[e];if(t.didFieldExistOnUserPath(e)){var r=t.dataStore.get(n.name),i=t.package.thankYouPageURLs[e][r];i&&(t.hasSelectedTYRouteAnswer=!0,t.thankYouPageURL=i)}}))}},{key:"handleSkipLink",value:function(){var t=this.formAttributes,e=t.createStep,n=t.hasSkipLink,r="".concat(this.salt,"-skip-link"),i=this.currentStepMarker>e,o=!this.doc.getElementById(r);n&&i&&o&&this.addSkipLink(r)}},{key:"addSkipLink",value:function(t){var e=this,n=this.doc.createElement("a");if(n.id="".concat(this.salt,"-skip-link"),n.id=t,n.text="Skip",Object.assign(n.style,{display:"block",textAlign:"center",marginTop:"1rem"}),this.formAttributes.hardCodeSkipLink)return n.href=this.formAttributes.hardCodeSkipLink,void this.nextButton.after(n);n.href=this.thankYouPageURL;n.onclick=function(t){t.preventDefault(),e.package.thankYouPageURLs&&e.handleThankYouPageRouting(),e.telemetryService.emitEvent({type:Ju,step:e.currentStepMarker}).then((function(){window.location.assign(e.thankYouPageURL)})),setTimeout((function(){window.location.assign(e.thankYouPageURL)}),400)},this.nextButton.after(n)}}]),t}(),zf=function(t){return{first_name:t.first_name,last_name:t.last_name,email:t.email,password:t.password}},qf=function(t){var e=t.applyDomain,n=e?e.trim():"";return n.toLowerCase().startsWith("http")||(n="https://".concat(n)),n.endsWith("/")||(n="".concat(n,"/")),n},Hf=function(){var t=Uu(Hu().mark((function t(e,n,r,i,o,a,s,u){var c,l,f,d;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e("sesameSubmissionAttempt",{multiFormIdentifier:n}),c=qf(i),l=zf(a),o[Ec.SUBMISSION_URL]=c+kc,t.next=7,wf(l,c);case 7:return f=t.sent,t.next=10,f.json();case 10:if(d=t.sent,!(f.status>=400)&&d.token){t.next=13;break}throw d;case 13:return Tu.logger.info("Request to the Sesame Signup Endpoint completed",o),o[Ec.SUBMISSION_URL]=c+Ac,t.abrupt("return",Sf(d.token,c,u,o));case 18:return t.prev=18,t.t0=t.catch(0),t.abrupt("return",s(t.t0,"sesameSubmissionFailed"));case 21:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(e,n,r,i,o,a,s,u){return t.apply(this,arguments)}}(),Gf=function(t,e,n,r,i,o,a,s,u){var c=u.createElement("div");c.id="".concat(a.id,"-spinner"),c.setAttribute("class","spinner spinner--small"),a.prepend(c);var l=function(t){var e=t.form_id;return Fu(Fu(Fu(Fu(Fu(Fu(Fu({},Ec.USER_EMAIL,t.email||""),Ec.FORM_ID,null!=e?e:""),Ec.LEAD_SOURCE,t.lead_source||""),Ec.SUBMISSION_URL,""),Ec.INTEREST_SUBMISSION_ENDPOINT,"SESAME"),Ec.SUBMITTED_PAGE_HOST,t.submitted_page_host||""),Ec.TAXI_FORM_TYPE,t.taxi_form_type||"")}(r);return Tu.logger.info("Taxi Plugin attempting Sesame authentication",l),Hf(e,i,t,n,l,r,(function(t,n){var r;c.remove();var s="An unknown error occurred while trying to create a user. Please try again later.",u="submit",f="Unexpected error format received from Sesame Signup Endpoint (submission_url may be incorrect)";l[Ec.REQUEST_RESPONSE_ERROR]=t;var d=t.code&&t.errorInfo&&t.errorInfo.code||t.type&&t.code&&t.message,h=t.code&&t.errors&&t.message&&(null===(r=t.errors[0])||void 0===r?void 0:r.inputName);if(d)t.errorInfo&&"invalid_password"===t.errorInfo.code?(s="Password must be at least eight characters and contain three of the following: Uppercase Character, Lowercase Character, Number, Special Character",u="password",f="".concat(t.errorInfo.name,": ").concat(t.errorInfo.message)):t.errorInfo&&"invalid_signup"===t.errorInfo.code||"Duplicate username or email"===t.message?(s="A user with that email address already exists",u="email",f="".concat(t.errorInfo&&t.errorInfo.name?t.errorInfo.name:"BadRequestError",": ").concat(t.message)):f="".concat(t.errorInfo&&t.errorInfo.name?t.errorInfo.name:t.code,": ").concat(t.message);else if(h){var p;s=t.message,u=null===(p=t.errors[0])||void 0===p?void 0:p.inputName,f="".concat(t.message,", inputName:").concat(t.errors[0].inputName)}l[Ec.REQUEST_RESPONSE_ERROR_MSG]=f,Yl(l,"Request to Sesame Signup Endpoint failed with error. ".concat(f),"Request to Sesame Signup Endpoint failed with error. ".concat(f)),e(n,{multiFormIdentifier:i,failureReason:t});var v=Wu.makeError(u,s);o.set("_errors",[].concat(Du(o.get("_errors")),[v])),a.disabled=!1,!1}),u)};function Yf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kf(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;return Cu(this,n),(r=e.call(this)).firstScreenRenderingTime=t.firstScreenRenderingTime,r.package=t.formPackage,r.experimentalTrialAttribs=t.formPackage.experimentalTrialAttributes,r.mountPoint=t.mountPoint,r.hostProvidedThankYouPageURL=t.thankYouURL,r.thankYouPageURL=t.thankYouURL,r.formAttributes=t.formAttributes,r.template=t.template,r.screenPath=[0],r.salt=t.salt,r.eventSubscriptions=t.eventSubscriptions||{},r.activeValidations=[],r.validatedFieldWatchStream=null,r.doc=o,r.klondikeOpts=i,r.currentStepMarker=t.startScreen||0,r.startScreen=r.getNthScreen(r.currentStepMarker),r.initialProgress=t.initialProgress||0,r.presetFields=t.presetFields,r.isScreenValid=r.isScreenValid.bind(Bu(r)),r.suppressValidationErrors=t.suppressValidationErrors,r.formMetadata={form_id:r.package.id,programs_of_study:r.package.programsOfStudy,credential_type:r.package.credentialType,user_agent:navigator.userAgent,version:"compiler: ".concat(r.package.version," plugin: ").concat(xu),taxi_form_type:r.formAttributes.formType},r.telemetryService=new xf({enabled:t.telemetryEnabled,globalScope:o.defaultView,opts:{grouping:r.package.grouping,formId:r.formMetadata.form_id,userAgent:r.formMetadata.user_agent}}),r.engineEventStream=Gu.Ay.stream((function(t){r.engineEventEmitter=t})),r.engineEventStream.onValue((function(t){r.eventSubscriptions[t.type]&&r.eventSubscriptions[t.type](t)})),r}return Ru(n,[{key:"hasAcceptedCookieGroup",value:function(t,e){if(!t)return!0;var n=",C000".concat(e,",");return t.includes(n)}},{key:"subscribe",value:function(t,e){this.eventSubscriptions[t]=e}},{key:"unsubscribe",value:function(t){this.eventSubscriptions[t]=void 0}},{key:"getSubscription",value:function(t){return this.eventSubscriptions[t]}},{key:"emitEngineEvent",value:function(t,e){var n={campaign:this.dataStore.get("campaign_id"),creative_id:this.dataStore.get("creative_id"),ef_id:this.dataStore.get("ef_id"),lead_source:this.dataStore.get("lead_source"),landing_page:this.dataStore.get("landing_page"),permguid:this.dataStore.get("ignition_one_id"),sendid:this.dataStore.get("send_id")};Object.keys(n).forEach((function(t){return null==n[t]&&delete n[t]})),this.engineEventEmitter.emit({type:t,details:Kf(Kf({},e),{},{urlParams:n})})}},{key:"start",value:function(){this.initDataStore(),this.getGeo(),this.initBaseElements(),this.attachKefirToActionButton(this.nextButton),this.formAttributes.isQuizForm&&(this.initQuizElements(),this.attachKefirToActionButton(this.forwardButton),this.attachKefirToActionButton(this.backButton,!1)),this.emitEngineEvent("started",{multiFormIdentifier:this.salt}),this.startTelemetry(),this.setSubmitTargets(),this.renderProgress(),this.fieldMountPoint?this.renderState():this.mountErrorLogger("error","render form fields",this.elementId.fields)}},{key:"renderErrors",value:function(t){null!==this.errorMountPoint?Nl(this.errorMountPoint,t,this.activeValidations.map((function(t){return t.fieldId}))):this.mountErrorLogger("error","render form errors",this.elementId.errors)}},{key:"attachKefirToActionButton",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.formAttributes.createStep;t&&"object"===(0,k.A)(t)?Gu.Ay.fromEvents(t,"click").onValue(function(){var t=Uu(Hu().mark((function t(i){var o,a,s;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Il(e.doc),!n){t.next=12;break}if(o="object"===(0,k.A)(e.currentScreen.out[-1]),a=e.currentStepMarker>=r,s=!0,!a||!e.isScreenValid()||o){t.next=9;break}return t.next=8,e.submitForm();case 8:s=t.sent;case 9:s&&e.transition(i.target.dataset.transitionOrigin),t.next=13;break;case 12:e.backTransition();case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):this.mountErrorLogger("error","find Next Step button",this.elementId.nextButton)}},{key:"passValuesFromCookies",value:function(){this.onScreenFields.forEach((function(t){if(Object.keys(sc).includes(t.result.name)){0!==t.result.type&&console.warn("".concat(t.result.name," is type ").concat(t.result.type,", not type 0 (text field). Only text fields support autofilling from cookie data."));var e=Fl("taxi-".concat(sc[t.result.name]));null!=e&&(t.result.value.text=e)}}))}},{key:"anyRequiredFields",value:function(){return this.onScreenFields.some((function(t){return!t.hidden&&t.required}))}},{key:"setForwardButtonText",value:function(){this.forwardButton.textContent=this.anyRequiredFields()?"Next >":"Skip for now >"}},{key:"setNavigationButtonsVisibility",value:function(){this.backButton.style.visibility=this.screenPath&&1!==this.screenPath.length?"visible":"hidden",this.forwardButton.style.visibility="object"===(0,k.A)(this.currentScreen.out[-1])?"hidden":"visible"}},{key:"removeFutureScreenFields",value:function(t){for(var e=this,n=function(n){for(var r=0;r=i;this.nextButton.textContent=o?n:e}}},{key:"resetFooterElement",value:function(t){if(!t.length&&this.footerMountPoint.firstChild)for(;this.footerMountPoint.firstChild;)this.footerMountPoint.removeChild(this.footerMountPoint.firstChild)}},{key:"renderState",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.currentScreen.allFields,r=this.currentScreen.conditional;if(this.setNextButtonText(),this.formAttributes.isQuizForm&&this.setNavigationButtonsVisibility(),this.onScreenFields=this.currentScreen.allFields.map((function(e){return t.package.fields[e]})).map((function(e,i){var o=n[i];return"object"!==(0,k.A)(r[o])?{ready:!0,result:e}:Zl[r[o][0]](t.dataStore,r[o][2],e)})).filter((function(t){return null!==t.result})).map((function(e){return e.result.salt=t.salt,e})),this.passValuesFromCookies(),this.onScreenFields.filter((function(t){return!t.ready})).length)return window.setTimeout((function(){t.renderState()}),1e3);this.onScreenFields=this.onScreenFields.map((function(t){return t.result})),this.formAttributes.isQuizForm&&this.setForwardButtonText();var i=this.onScreenFields.filter((function(t){return!t.mountPoint||1===t.mountPoint})),o=this.onScreenFields.filter((function(t){return 2===t.mountPoint}));this.experimentalTrialAttribs&&Object.keys(this.experimentalTrialAttribs).includes("restricted-geo-implied-consent")&&(i=xl(i));var a=Cl(this.fieldMountPoint,i,this.dataStore),s=a.streams,u=a.validations,c=a.telemetryStream;return this.resetFooterElement(o),o.length?(this.footerMountPoint&&"object"===(0,k.A)(this.footerMountPoint)?Cl(this.footerMountPoint,o,this.dataStore):this.mountErrorLogger("error","render form footer",this.elementId.footer),this.emitEngineEvent("footerContentRendered",{multiFormIdentifier:this.salt})):this.emitEngineEvent("noFooterContentRendered",{multiFormIdentifier:this.salt}),this.handleSkipLink(),this.handleAddingStepContextInfo(),this.dataStore.attachStreams(s),c.onValue((function(e){return t.telemetryService.emitEvent(e)})),this.activeValidations=u,i.filter((function(t){return!t.hidden})).length||(e?this.transition():this.backTransition()),this.firstScreenRenderingTime.hasAlreadyReported||(this.firstScreenRenderingTime.hasAlreadyReported=!0,eu.addTiming("taxi_plugin_rendering",Date.now()-this.firstScreenRenderingTime.startTime)),{}}},{key:"handleAddingStepContextInfo",value:function(){var t=this.formAttributes.contextForSteps;if(t){var e=Vl(this.salt,"step-context-info"),n=this.doc.getElementById(e);n&&this.fieldMountPoint.removeChild(n);var r=t[this.currentStepMarker];if(r){var i=this.doc.createElement("p");i.id=e,i.textContent=r,i.style.marginBottom="1rem",this.fieldMountPoint.insertBefore(i,this.fieldMountPoint.firstChild);var o=this.fieldMountPoint.querySelector(".control");if(o){var a=o.getAttribute("aria-describedby")||"";o.setAttribute("aria-describedby",[a,e].join(" ").trim())}}}}},{key:"renderProgress",value:function(){this.package.screens.length>1&&(null!==this.progressBarMountPoint?this.progressBar=new Xl(this.doc,this.progressBarMountPoint,this.initialProgress,this.package.screens.length,this.formAttributes.isQuizForm,this.bigStepDisplayMountPoint,this.smallStepDisplayMountPoint):this.mountErrorLogger("warn","render form progress",this.elementId.progress))}},{key:"handleInferredFields",value:function(){var t=this.package.inferredFields||{};if(t.country)if(this.dataStore.get("_INTERNAL_carmen_sandiego_fetch_status")===nc){var e=this.dataStore.get("_INTERNAL_carmen_sandiego_fetch_value");this.dataStore.set("country",e.country_name||"undetermined")}else this.dataStore.set("country","undetermined");t.zip_code&&this.dataStore.set("state_used_inferred_geo",!0),(t.zip_code||t.country)&&this.dataStore.set("country_used_inferred_geo",!0)}},{key:"createSubmissionPackage",value:function(){var t=this,e=this.formAttributes,n=e.createStep,r=e.isQuizForm,i=Object.keys(this.dataStore.current()).reduce((function(e,n){return n.startsWith("no_klondike_")||n.startsWith("_INTERNAL_")||(e[n]=t.dataStore.get(n)),e}),{}),o={page_url:window.location.href,submitted_page_host:window.location.host};r&&this.removeAbandonedConditionalFields(i),Number.isNaN(n)||this.removeFutureScreenFields(i);var a=Kf(Kf(Kf(Kf({},o),this.klondikeOpts.fields||{}),i),{},{_errors:void 0,submission_time_ms:Date.now()},this.formMetadata);if(window.Optanon)if(a.ot_category_4_consent=this.hasAcceptedCookieGroup(window.OptanonActiveGroups,4),"function"==typeof window.Optanon.getDataSubjectId){var s=window.Optanon.getDataSubjectId();s&&(a.ot_consent_id=s)}else{var u=this.createPackageForLogging(a,Oc);Tu.logger.warn("OneTrust is enabled on site, but could not collect a consentId",u)}return Fl("barnacle_do_not_sell")&&(a.barnacle_do_not_sell=!0),a}},{key:"createPackageForLogging",value:function(t,e){var n,r=t.form_id;return Fu(Fu(Fu(Fu(Fu(Fu(Fu(Fu(Fu(Fu(n={},Zf,t.credential_type||"Credential type unavailable"),Jf,t.degree_offering||"Degree offering unavailable"),Xf,t.email||"Email unavailable"),Qf,null!=r?r:"Form ID unavailable"),td,t.lead_source||"Lead source unavailable"),ed,t.programs_of_study||"Programs of study unavailable"),nd,e),id,t.page_url||"Page url unavailable"),od,t.uuid||"UUID unavailable"),sd,t.submitted_page_host||"Submitted page host unavailable"),Fu(Fu(n,ud,t.taxi_form_type||"Taxi form type unavailable"),ad,this.package.grouping||"Grouping unavailable")}},{key:"navigateToThankYouPage",value:function(){var t=-1===this.thankYouPageURL.indexOf("?")?this.doc.location.search:"&".concat(this.doc.location.search.slice(1));return window.location.assign("".concat(this.thankYouPageURL).concat(t))}},{key:"submitForm",value:function(){var t=this,e=this.formAttributes.createStep;this.submissionInProgress=!0,this.handleInferredFields(),this.nextButton.disabled=!0,this.package.thankYouPageURLs&&this.handleThankYouPageRouting();var n=Number.isNaN(parseInt(e,10))||e===this.currentStepMarker?Oc:"UPDATE",r=this.createSubmissionPackage();if(this.formAttributes.isAuthForm)return Gf(this.submitTargets,this.emitEngineEvent.bind(this),this.package,r,this.salt,this.dataStore,this.nextButton,this.submissionInProgress,this.doc);var i=this.createPackageForLogging(r,n);return Tu.logger.info("Taxi Plugin attempting submission requests",i),r.credential_type||Yl(i,"submissionPackage does not have credential_type","submissionPackage does not have credential_type"),Bl(oc,r,30,sc),this.emitEngineEvent("imqSubmissionAttempt",{multiFormIdentifier:this.salt}),yf(r,n).then((function(e){if(i[Ec.INTEREST_SUBMISSION_ENDPOINT]="IMQ",!e.success)return t.handleSubmissionErrors(i,e.error),!1;if(Tu.logger.info("Request to Interest Message Queue completed",i),"object"===(0,k.A)(t.currentScreen.out[-1])||t.shouldImmediatelyGoToThankYouPage()){try{t.navigateToThankYouPage()}catch(t){i[rd]=t,Yl(i,"Redirecting user to thank you page failed with error: ".concat(t.message),"Redirecting user to thank you page failed with error: ".concat(t.message))}return!1}return t.nextButton.disabled=!1,e.success})).catch((function(e){return t.handleSubmissionErrors(i,bf(e))}))}},{key:"handleSubmissionErrors",value:function(t,e){var n=e.rawError,r=e.logMessage,i=e.uiMessageArray,o=e.event,a=Kf(Kf({},t),{},Fu({},rd,n));Yl(a,r,r),this.emitEngineEvent(o,{multiFormIdentifier:this.salt,failureReason:n});var s=i.map((function(t){return Wu.makeError("submit",t||ac)}));this.dataStore.set("_errors",[].concat(Du(this.dataStore.get("_errors")),Du(s))),this.submissionInProgress=!1,this.nextButton.disabled=!1}},{key:"shouldImmediatelyGoToThankYouPage",value:function(){var t=this.formAttributes,e=t.createStep,n=t.shouldFillOutUpdateSteps;return this.hasSelectedTYRouteAnswer&&e<=this.currentStepMarker&&!n}},{key:"updateScreenPath",value:function(t,e){t&&"-1"!==e&&this.screenPath.push(parseInt(e,10))}},{key:"renderNewScreen",value:function(t,e){this.currentScreen=this.package.screens[parseInt(t,10)],this.telemetryService.emitEvent({type:this.getTaximeterEventByOrigin(e),step:this.currentStepMarker}),this.emitEngineEvent($u,{multiFormIdentifier:this.salt}),this.renderState(),this.progressBar&&this.progressBar.update(this.currentStepMarker,this.package.screens.length)}},{key:"transition",value:function(t){var e=this;this.validatedFieldWatchStream&&this.validatedFieldWatchStream.offValue(this.isScreenValid);var n={$valid:this.isScreenValid()};n.$valid?this.currentStepMarker+=1:this.handleInvalidEngineVariables();var r=Object.keys(this.currentScreen.out)[0],i=Mu(this.currentScreen.out[r],2),o=i[0],a=i[1];if("$next"===o){this.updateScreenPath(n.$valid,r);var s=Ul(a,this.dataStore.current(),n);s.ready?s.result&&"-1"===r?(this.telemetryService.emitEvent({type:"interestSubmit"}),this.submitForm()):s.result&&this.renderNewScreen(r,t):(this.telemetryService.emitEvent({type:"screenTransitionWait"}),setTimeout((function(){e.transition()}),1e3))}}},{key:"backTransition",value:function(){this.dataStore.set("_errors",[]),this.currentStepMarker-=1,this.screenPath.pop();var t=this.screenPath[this.screenPath.length-1]||0;this.currentScreen=this.package.screens[t],this.telemetryService.emitEvent({type:"screenTransitionBack",step:this.currentStepMarker}),this.emitEngineEvent($u,{multiFormIdentifier:this.salt}),this.renderState(!1),this.progressBar&&this.progressBar.update(this.currentStepMarker,this.package.screens.length)}}]),n}(Vf);const ld=cd;var fd={ef_id:"ef_id",l:"landing_page",c:"creative_id",permguid:"ignition_one_id",campaign:"campaign_id",sendid:"send_id",s:"lead_source",lsrc:"lead_source",utm_source:"lead_source"};var dd=n(56654),hd=(window.TextEncoder||dd.TextEncoder,window.TextDecoder||dd.TextDecoder);!function(){for(var t=[],e="A".charCodeAt(0),n="a".charCodeAt(0),r="0".charCodeAt(0),i=0;i<26;++i)t.push(String.fromCharCode(e+i));for(var o=0;o<26;++o)t.push(String.fromCharCode(n+o));for(var a=0;a<10;++a)t.push(String.fromCharCode(r+a));t.push("+"),t.push("/")}();function pd(t){return new hd("utf-8").decode(function(t){for(var e,n=t.replace(/[^A-Za-z0-9+/]/g,""),r=Math.ceil(3*n.length+1>>2),i=new Uint8Array(r),o=0,a=0,s=0;s64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0)<<18-6*u,3===u||n.length-s==1){for(var c=0;c<3;c++)i[o++]=a>>>(16>>>c&24)&255;a=0}}return i}(t))}var vd=function(t,e,n){if(!n)return t;var r=function(t,e){var n=(new DOMParser).parseFromString(t,"text/html"),r=zl(n,e,"title"),i=zl(n,e,"intro_text"),o=zl(n,e,"intro_sub_text");return{title:r&&r.textContent,introText:i&&i.textContent,introSubText:o&&o.textContent}}(t,e),i=r.title,o=r.introText;return n===uc?function(t,e,n){return'\n
\n
\n
\n
\n
\n \n ').concat(e,'\n \n
\n

').concat(n,'

\n
\n
\n
\n \n
\n
\n
\n
\n \n Next\n \n
\n
\n
\n
\n\n \n \n
\n \n \n ')}(e,i,o):t};function md(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gd(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=JSON.parse(JSON.stringify(i)),a={};e=t.submitTargets,Boolean(e&&e.sesame)&&(a.isAuthForm=!0),n=t.featureFlags,Boolean(n&&n.formType===uc)&&(a.isQuizForm=!0),r=t.formAttributesConfig,Boolean(r&&void 0!==r.createStep)&&(a.isProgressiveForm=!0),function(t){var e=!!t.wasEmbedMounted;return e&&delete t.wasEmbedMounted,e}(o)&&(a.isEmbedForm=!0),function(t){return t.isExecEdForm}(o)&&(a.isExecEdForm=!0);var s,u,c,l,f,d,h=(u=(s=a).isAuthForm,c=s.isProgressiveForm,l=s.isQuizForm,f=s.isEmbedForm,d=s.isExecEdForm,f?c?hc:u?pc:vc:u?fc:c?lc:l?uc:d?dc:cc);return h===cc&&(a.isStandardForm=!0),gd(gd(gd({},o),a),{},{formType:h})};function yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bd(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Cu(this,t),this.firstScreenRenderingTime={startTime:Date.now(),hasAlreadyReported:!1},this.doc=e,this.mpElement=this.doc.getElementById(n),this.opts=r,this.salt=this.getSalt(this.opts),this.packageType=r.packageType||this.mpElement.getAttribute("data-package-type"),this.formPackage=r.package||this.getPackage(),this.formAttributes=wd(this.formPackage),this.templateType=r.templateType||this.mpElement.getAttribute("data-template-type"),this.template=r.template||this.getTemplate(),this.thankYouURL=r.thankYouURL||this.mpElement.getAttribute("data-thank-you-url"),this.startScreen=r.startScreen||0,this.initialProgress=r.initialProgress||0,this.telemetryEnabled=r.telemetryEnabled||!0,this.engineEventListeners=r.engineEventListeners,this.suppressValidationErrors=r.suppressValidationErrors,this.presetFields=this.getPresetFields(r.hostPresetFields),this.klondikeOpts=this.getMountOpts(r,this.formPackage,i)}return Ru(t,[{key:"getSalt",value:function(t){return t.salt||this.mpElement.getAttribute("data-salt")||new Array(10).fill(!0).map((function(){var t=Math.floor(26*Math.random());return String.fromCharCode(97+t)})).join("")}},{key:"getElementTypePackage",value:function(){var t=this.opts.packageFrom||this.mpElement.getAttribute("data-package-location");try{return JSON.parse(this.doc.getElementById(t).innerText.trim())}catch(e){console.error("Taxi plugin could not parse JSON package from element with ID:",t,"Failed with:",e)}return""}},{key:"getPackage",value:function(){var t;return this.packageType===mc?t=this.getElementTypePackage():console.warn("Taxi doesn't know how to load from package type: ",this.packageType),t}},{key:"getElementTypeTemplate",value:function(){var t=this.opts.templateFrom||this.mpElement.getAttribute("data-template-location"),e=this.doc.getElementById(t),n="";if(e.dataset.encoded&&"base64"===e.dataset.encoded)try{n=pd(e.innerHTML.trim())}catch(t){return console.error("Taxi plugin could not parse an encoded template from element with ID: ".concat(this.templateFrom,". Failed with: ").concat(t)),""}else n=e.innerHTML.trim();return vd(n,this.salt,this.formAttributes.templateOverride)}},{key:"getTemplate",value:function(){var t,e,n,r,i,o,a,s,u="";return this.templateType===_c?u=this.getElementTypeTemplate():this.templateType===yc?(t=this.salt,e=this.formPackage.embedFormData,n=e.title,r=void 0===n?"":n,i=e.introText,o=void 0===i?"":i,a=e.introSubText,s=void 0===a?"":a,u='\n
\n
\n
\n
\n \x3c!-- Copy added from program config --\x3e\n
\n

').concat(r,'

\n
\n

').concat(o,'

\n

').concat(s,'

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
')):console.warn("Taxi doesn't know how to load from location type: ",this.templateType),u}},{key:"getPresetFields",value:function(t){var e=function(t){for(var e=Object.keys(fd),n=t.slice(1).split("&"),r={},i={},o=0;o id = ").concat(e.id,'. Please verify the embedded form snippet\'s "data-package-id" and "data-grouping" attributes have the correct values.'),s={dev:"https://prospect-form-packages.dev.2u.com",stg:"https://prospect-form-packages.stg.2u.com",prod:"https://prospect-form-packages.2u.com"}[ql()],u="".concat(s,"/").concat(o,"/").concat(i,".json"),c=t.location.href,l={hasFailedFetch:!0},f=function(){return Fu(Fu(Fu(Fu({},Td,parseInt(i,10)),xd,o),Cd,c),Rd,u)};return fetch(u).then((function(t){return t.ok?t.json():function(t){var e=kd(kd({},f()),{},Fu({},Pd,t.status)),n=function(t,e){return"Fetching package failed for Package ".concat(t," on page ").concat(e)}(i,c);return Yl(e,n,a),l}(t)})).catch((function(t){var e=kd(kd({},f()),{},Fu(Fu({},Ld,t.message),Nd,t));return Yl(e,function(t,e){return"Fetch error occured for Package ".concat(t," on page ").concat(e)}(i,c),a),l}))}))},Ud=function(t,e,n,r){t.embedFormsState[n.id]=Dd,function(t){t.formAttributesConfig=t.formAttributesConfig||{},t.formAttributesConfig.wasEmbedMounted=!0}(e),function(t,e,n){var r=t.document.createElement("code");r.style="display:none;",r.id="".concat(n.id,"-package"),r.innerHTML=JSON.stringify(e),t.document.getElementsByTagName("body")[0].appendChild(r)}(t,e,n),function(t,e){var n=e.id,r=e.grouping,i=e.embedFormData,o=e.hasFailedFetch,a=e.applyDomain;if(o)return!1;var s=t.location.href,u=Fu(Fu(Fu(Fu(Fu({},Td,n),xd,r),Cd,s),Ad,e.degreeOffering),Id,e.programsOfStudy);return i?!(!i.thankYouURL&&!a&&(Yl(u,function(t,e){return"thankYouURL is missing from Package ".concat(t," on page ").concat(e)}(n,s),"The Embedded package ".concat(n,' is missing the thankYouURL property. Please add it to the "Embeddable Form Data" section in Taxi, then save and publish the form.')),1)):(Yl(u,function(t,e){return"embedFormData is missing from Package ".concat(t," on page ").concat(e)}(n,s),"The Embedded package ".concat(n,' is missing the embedFormData property. Please fill in the "Embeddable Form Data" section in Taxi, then save and publish the form.')),!1)}(t,e)&&(!function(t,e,n){var r,i,o={package:e,thankYouURL:e.embedFormData.thankYouURL||"",telemetryEnabled:!0};o.hostPresetFields={lead_source:(null==e||null===(r=e.embedFormData)||void 0===r?void 0:r.leadSource)||"embedmissingsource",splash_creative:(null==e||null===(i=e.embedFormData)||void 0===i?void 0:i.splashCreative)||""},new Ed(t.document,n.id,o).start(),t.embedFormsState[n.id]=Md}(t,e,n),eu.addTiming("taxi_plugin_embed_rendering",Date.now()-r))},Fd=function(t,e){var n=Date.now();return Promise.all(jd(t,e)).then((function(r){r.forEach((function(r,i){Ud(t,r,e[i],n)}))}))},Bd=function(){var t=Uu(Hu().mark((function t(e){var n;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Hl(e).filter((function(t){return!e.embedFormsState[t.id]&&(e.embedFormsState[t.id]=Dd,!0)})),t.abrupt("return",!!n.length&&Fd(e,n));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Vd=function(t){Hl(t).forEach((function(e){if(t.embedFormsState[e.id]!==Md){var n=t.location.href,r="Failed to load Lead Form with mount point id of ".concat(e.id,". Please check the form implementation."),i="Failed to load embed form on page ".concat(n," with mount point id ").concat(e.id),o=Fu(Fu({},Cd,n),"mount_point_id",e.id);Yl(o,i,r)}}))};window.addEventListener("popstate",(function(){window.selfMountAlreadyStarted=!1,zd(window)}));var zd=function(t){if(!t.selfMountAlreadyStarted){t.selfMountAlreadyStarted=!0,t.embedFormsState={};var e=setInterval(Bd,100,t);setTimeout(clearInterval,7e3,e),setTimeout(Vd,15e3,t)}},qd=n(85072),Hd=n.n(qd),Gd=n(15224),Yd={insert:"head",singleton:!1};Hd()(Gd.A,Yd);Gd.A.locals;window.LeadFormPlugin=Ed;var Kd;Kd=ql(),eu.init({applicationId:"4cdae478-7066-472c-a520-b85f5cafa276",clientToken:"pubd373056d358f696ec764c7ede84c5de1",site:"datadoghq.com",service:"Taxi-Plugin",silentMultipleInit:!0,env:Kd,version:xu,trackResources:!0,sessionSampleRate:100,sessionReplaySampleRate:100}),Tu.init({applicationId:"4cdae478-7066-472c-a520-b85f5cafa276",clientToken:"pubd373056d358f696ec764c7ede84c5de1",site:"datadoghq.com",service:"Taxi-Plugin",env:Kd,version:xu,forwardErrorsToLogs:!1,silentMultipleInit:!0,sessionSampleRate:100}),window.addEventListener("load",(function(){var t=window.document.getElementsByTagName("body")[0];if("self"===t.getAttribute("data-lead-form-mount")){var e=t.getAttribute("data-lead-form-mount-point");console.log("self mount detected, mounting at",e);var n={server:"https://prospects.api.2u.com/prospects",fields:{degree_offering:"unc-mba"}};window.LeadFormPlugin=new Ed(window.document,e,{klondike:n,telemetryEnabled:!0},!0),window.LeadFormPlugin.start();var r=document.getElementById("lead-forms-reset");r&&(r.onclick=function(){window.LeadFormPlugin=new Ed(window.document,e,{klondike:n,telemetryEnabled:!0},!0),window.LeadFormPlugin.start()})}})),zd(window)})()})();