svrdntfctn.com Open in urlscan Pro
2a01:4f8:fff0:34::22  Public Scan

URL: https://svrdntfctn.com/stm.js?id=G7g0N4A6e7B6
Submission: On June 28 via manual from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
(function(){function N(p,r){function q(a){if(q[a]!==w)return q[a];var c;if("bug-string-char-index"==a)c="a"!="a"[0];else if("json"==a)c=q("json-stringify")&&q("json-parse");else{var e;if("json-stringify"==a){c=r.stringify;var b="function"==typeof c&&s;if(b){(e=function(){return 1}).toJSON=e;try{b="0"===c(0)&&"0"===c(new t)&&'""'==c(new A)&&c(u)===w&&c(w)===w&&c()===w&&"1"===c(e)&&"[1]"==c([e])&&"[null]"==c([w])&&"null"==c(null)&&"[null,null,null]"==c([w,u,null])&&'{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'==
c({a:[e,!0,!1,null,"\x00\b\n\f\r\t"]})&&"1"===c(null,e)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new C(-864E13))&&'"+275760-09-13T00:00:00.000Z"'==c(new C(864E13))&&'"-000001-01-01T00:00:00.000Z"'==c(new C(-621987552E5))&&'"1969-12-31T23:59:59.999Z"'==c(new C(-1))}catch(f){b=!1}}c=b}if("json-parse"==a){c=r.parse;if("function"==typeof c)try{if(0===c("0")&&!c(!1)){e=c('{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}');var n=5==e.a.length&&1===e.a[0];if(n){try{n=!c('"\t"')}catch(d){}if(n)try{n=
1!==c("01")}catch(g){}if(n)try{n=1!==c("1.")}catch(m){}}}}catch(X){n=!1}c=n}}return q[a]=!!c}p||(p=k.Object());r||(r=k.Object());var t=p.Number||k.Number,A=p.String||k.String,H=p.Object||k.Object,C=p.Date||k.Date,G=p.SyntaxError||k.SyntaxError,K=p.TypeError||k.TypeError,L=p.Math||k.Math,I=p.JSON||k.JSON;"object"==typeof I&&I&&(r.stringify=I.stringify,r.parse=I.parse);var H=H.prototype,u=H.toString,v,B,w,s=new C(-0xc782b5b800cec);try{s=-109252==s.getUTCFullYear()&&0===s.getUTCMonth()&&1===s.getUTCDate()&&
10==s.getUTCHours()&&37==s.getUTCMinutes()&&6==s.getUTCSeconds()&&708==s.getUTCMilliseconds()}catch(Q){}if(!q("json")){var D=q("bug-string-char-index");if(!s)var x=L.floor,M=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(a,c){return M[c]+365*(a-1970)+x((a-1969+(c=+(1<c)))/4)-x((a-1901+c)/100)+x((a-1601+c)/400)};(v=H.hasOwnProperty)||(v=function(a){var c={},e;(c.__proto__=null,c.__proto__={toString:1},c).toString!=u?v=function(a){var c=this.__proto__;a=a in(this.__proto__=null,this);this.__proto__=
c;return a}:(e=c.constructor,v=function(a){var c=(this.constructor||e).prototype;return a in this&&!(a in c&&this[a]===c[a])});c=null;return v.call(this,a)});B=function(a,c){var e=0,b,f,n;(b=function(){this.valueOf=0}).prototype.valueOf=0;f=new b;for(n in f)v.call(f,n)&&e++;b=f=null;e?B=2==e?function(a,c){var e={},b="[object Function]"==u.call(a),f;for(f in a)b&&"prototype"==f||v.call(e,f)||!(e[f]=1)||!v.call(a,f)||c(f)}:function(a,c){var e="[object Function]"==u.call(a),b,f;for(b in a)e&&"prototype"==
b||!v.call(a,b)||(f="constructor"===b)||c(b);(f||v.call(a,b="constructor"))&&c(b)}:(f="valueOf toString toLocaleString propertyIsEnumerable isPrototypeOf hasOwnProperty constructor".split(" "),B=function(a,c){var e="[object Function]"==u.call(a),b,h=!e&&"function"!=typeof a.constructor&&F[typeof a.hasOwnProperty]&&a.hasOwnProperty||v;for(b in a)e&&"prototype"==b||!h.call(a,b)||c(b);for(e=f.length;b=f[--e];h.call(a,b)&&c(b));});return B(a,c)};if(!q("json-stringify")){var U={92:"\\\\",34:'\\"',8:"\\b",
12:"\\f",10:"\\n",13:"\\r",9:"\\t"},y=function(a,c){return("000000"+(c||0)).slice(-a)},R=function(a){for(var c='"',b=0,h=a.length,f=!D||10<h,n=f&&(D?a.split(""):a);b<h;b++){var d=a.charCodeAt(b);switch(d){case 8:case 9:case 10:case 12:case 13:case 34:case 92:c+=U[d];break;default:if(32>d){c+="\\u00"+y(2,d.toString(16));break}c+=f?n[b]:a.charAt(b)}}return c+'"'},O=function(a,c,b,h,f,n,d){var g,m,k,l,p,r,s,t,q;try{g=c[a]}catch(z){}if("object"==typeof g&&g)if(m=u.call(g),"[object Date]"!=m||v.call(g,
"toJSON"))"function"==typeof g.toJSON&&("[object Number]"!=m&&"[object String]"!=m&&"[object Array]"!=m||v.call(g,"toJSON"))&&(g=g.toJSON(a));else if(g>-1/0&&g<1/0){if(E){l=x(g/864E5);for(m=x(l/365.2425)+1970-1;E(m+1,0)<=l;m++);for(k=x((l-E(m,0))/30.42);E(m,k+1)<=l;k++);l=1+l-E(m,k);p=(g%864E5+864E5)%864E5;r=x(p/36E5)%24;s=x(p/6E4)%60;t=x(p/1E3)%60;p%=1E3}else m=g.getUTCFullYear(),k=g.getUTCMonth(),l=g.getUTCDate(),r=g.getUTCHours(),s=g.getUTCMinutes(),t=g.getUTCSeconds(),p=g.getUTCMilliseconds();
g=(0>=m||1E4<=m?(0>m?"-":"+")+y(6,0>m?-m:m):y(4,m))+"-"+y(2,k+1)+"-"+y(2,l)+"T"+y(2,r)+":"+y(2,s)+":"+y(2,t)+"."+y(3,p)+"Z"}else g=null;b&&(g=b.call(c,a,g));if(null===g)return"null";m=u.call(g);if("[object Boolean]"==m)return""+g;if("[object Number]"==m)return g>-1/0&&g<1/0?""+g:"null";if("[object String]"==m)return R(""+g);if("object"==typeof g){for(a=d.length;a--;)if(d[a]===g)throw K();d.push(g);q=[];c=n;n+=f;if("[object Array]"==m){k=0;for(a=g.length;k<a;k++)m=O(k,g,b,h,f,n,d),q.push(m===w?"null":
m);a=q.length?f?"[\n"+n+q.join(",\n"+n)+"\n"+c+"]":"["+q.join(",")+"]":"[]"}else B(h||g,function(a){var c=O(a,g,b,h,f,n,d);c!==w&&q.push(R(a)+":"+(f?" ":"")+c)}),a=q.length?f?"{\n"+n+q.join(",\n"+n)+"\n"+c+"}":"{"+q.join(",")+"}":"{}";d.pop();return a}};r.stringify=function(a,c,b){var h,f,n,d;if(F[typeof c]&&c)if("[object Function]"==(d=u.call(c)))f=c;else if("[object Array]"==d){n={};for(var g=0,k=c.length,l;g<k;l=c[g++],(d=u.call(l),"[object String]"==d||"[object Number]"==d)&&(n[l]=1));}if(b)if("[object Number]"==
(d=u.call(b))){if(0<(b-=b%1))for(h="",10<b&&(b=10);h.length<b;h+=" ");}else"[object String]"==d&&(h=10>=b.length?b:b.slice(0,10));return O("",(l={},l[""]=a,l),f,n,h,"",[])}}if(!q("json-parse")){var V=A.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},b,J,l=function(){b=J=null;throw G();},z=function(){for(var a=J,c=a.length,e,h,f,k,d;b<c;)switch(d=a.charCodeAt(b),d){case 9:case 10:case 13:case 32:b++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=
D?a.charAt(b):a[b],b++,e;case 34:e="@";for(b++;b<c;)if(d=a.charCodeAt(b),32>d)l();else if(92==d)switch(d=a.charCodeAt(++b),d){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=W[d];b++;break;case 117:h=++b;for(f=b+4;b<f;b++)d=a.charCodeAt(b),48<=d&&57>=d||97<=d&&102>=d||65<=d&&70>=d||l();e+=V("0x"+a.slice(h,b));break;default:l()}else{if(34==d)break;d=a.charCodeAt(b);for(h=b;32<=d&&92!=d&&34!=d;)d=a.charCodeAt(++b);e+=a.slice(h,b)}if(34==a.charCodeAt(b))return b++,e;l();default:h=
b;45==d&&(k=!0,d=a.charCodeAt(++b));if(48<=d&&57>=d){for(48==d&&(d=a.charCodeAt(b+1),48<=d&&57>=d)&&l();b<c&&(d=a.charCodeAt(b),48<=d&&57>=d);b++);if(46==a.charCodeAt(b)){for(f=++b;f<c&&(d=a.charCodeAt(f),48<=d&&57>=d);f++);f==b&&l();b=f}d=a.charCodeAt(b);if(101==d||69==d){d=a.charCodeAt(++b);43!=d&&45!=d||b++;for(f=b;f<c&&(d=a.charCodeAt(f),48<=d&&57>=d);f++);f==b&&l();b=f}return+a.slice(h,b)}k&&l();if("true"==a.slice(b,b+4))return b+=4,!0;if("false"==a.slice(b,b+5))return b+=5,!1;if("null"==a.slice(b,
b+4))return b+=4,null;l()}return"$"},P=function(a){var c,b;"$"==a&&l();if("string"==typeof a){if("@"==(D?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(c=[];;b||(b=!0)){a=z();if("]"==a)break;b&&(","==a?(a=z(),"]"==a&&l()):l());","==a&&l();c.push(P(a))}return c}if("{"==a){for(c={};;b||(b=!0)){a=z();if("}"==a)break;b&&(","==a?(a=z(),"}"==a&&l()):l());","!=a&&"string"==typeof a&&"@"==(D?a.charAt(0):a[0])&&":"==z()||l();c[a.slice(1)]=P(z())}return c}l()}return a},T=function(a,b,e){e=S(a,b,e);e===
w?delete a[b]:a[b]=e},S=function(a,b,e){var h=a[b],f;if("object"==typeof h&&h)if("[object Array]"==u.call(h))for(f=h.length;f--;)T(h,f,e);else B(h,function(a){T(h,a,e)});return e.call(a,b,h)};r.parse=function(a,c){var e,h;b=0;J=""+a;e=P(z());"$"!=z()&&l();b=J=null;return c&&"[object Function]"==u.call(c)?S((h={},h[""]=e,h),"",c):e}}}r.runInContext=N;return r}var K=typeof define==="function"&&define.amd,F={"function":!0,object:!0},G=F[typeof exports]&&exports&&!exports.nodeType&&exports,k=F[typeof window]&&
window||this,t=G&&F[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;!t||t.global!==t&&t.window!==t&&t.self!==t||(k=t);if(G&&!K)N(k,G);else{var L=k.JSON,Q=k.JSON3,M=!1,A=N(k,k.JSON3={noConflict:function(){M||(M=!0,k.JSON=L,k.JSON3=Q,L=Q=null);return A}});k.JSON={parse:A.parse,stringify:A.stringify}}K&&define(function(){return A})}).call(this);

window.SV_JSON = 1 * ("JSON" in window && void 0 !== JSON.parse) ? window.JSON : JSON3.noConflict();
"use strict";
(function (win, doc) {
    if (win.addEventListener) {
        return;
    }
    function docHijack(p) { var old = doc[p]; doc[p] = function (v) { return addListen(old(v)); }; }
    function addEvent(on, fn, self) {
        return (self = this).attachEvent('on' + on, function (e) {
            e = e || win.event;
            e.preventDefault = e.preventDefault || function () { e.returnValue = false; };
            e.stopPropagation = e.stopPropagation || function () { e.cancelBubble = true; };
            fn.call(self, e);
        });
    }
    function addListen(obj, i) {
        if ((i = obj.length) > 0) {
            while (i--) {
                obj[i].addEventListener = addEvent;
            }
        }
        else {
            obj.addEventListener = addEvent;
        }
        return obj;
    }
    addListen([doc, win]);
    if ('Element' in win) {
        win.Element.prototype.addEventListener = addEvent;
    }
    else {
        docHijack('getElementsByTagName');
        docHijack('getElementById');
        docHijack('createElement');
        addListen(doc.all);
    }
})(window, document);

(function (win, doc) {
    if (!Object.assign) {
        Object.defineProperty(Object, "assign", {
            enumerable: false,
            configurable: true,
            writable: true,
            value: function (target) {
                "use strict";
                if (target === undefined || target === null) {
                    throw new TypeError(
                        "Cannot convert first argument to object"
                    );
                }

                var to = Object(target);
                for (var i = 1; i < arguments.length; i++) {
                    var nextSource = arguments[i];
                    if (nextSource === undefined || nextSource === null) {
                        continue;
                    }
                    nextSource = Object(nextSource);

                    var keysArray = Object.keys(Object(nextSource));
                    for ( var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++ ) {
                        var nextKey = keysArray[nextIndex];
                        var desc = Object.getOwnPropertyDescriptor(
                            nextSource,
                            nextKey
                        );
                        if (desc !== undefined && desc.enumerable) {
                            to[nextKey] = nextSource[nextKey];
                        }
                    }
                }
                return to;
            },
        });
    }
})(window, document);
(function (win, doc) {
    if (!Array.from) {
        Array.from = (function () {
            var toStr = Object.prototype.toString;
            var isCallable = function (fn) {
                return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
            };
            var toInteger = function (value) {
                var number = Number(value);
                if (isNaN(number)) { return 0; }
                if (number === 0 || !isFinite(number)) { return number; }
                return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
            };
            var maxSafeInteger = Math.pow(2, 53) - 1;
            var toLength = function (value) {
                var len = toInteger(value);
                return Math.min(Math.max(len, 0), maxSafeInteger);
            };
    
            // The length property of the from method is 1.
            return function from(arrayLike/*, mapFn, thisArg */) {
                // 1. Let C be the this value.
                var C = this;
    
                // 2. Let items be ToObject(arrayLike).
                var items = Object(arrayLike);
    
                // 3. ReturnIfAbrupt(items).
                if (arrayLike == null) {
                    throw new TypeError('Array.from requires an array-like object - not null or undefined');
                }
    
                // 4. If mapfn is undefined, then let mapping be false.
                var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
                var T;
                if (typeof mapFn !== 'undefined') {
                    // 5. else
                    // 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
                    if (!isCallable(mapFn)) {
                        throw new TypeError('Array.from: when provided, the second argument must be a function');
                    }
    
                    // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
                    if (arguments.length > 2) {
                        T = arguments[2];
                    }
                }
    
                // 10. Let lenValue be Get(items, "length").
                // 11. Let len be ToLength(lenValue).
                var len = toLength(items.length);
    
                // 13. If IsConstructor(C) is true, then
                // 13. a. Let A be the result of calling the [[Construct]] internal method
                // of C with an argument list containing the single item len.
                // 14. a. Else, Let A be ArrayCreate(len).
                var A = isCallable(C) ? Object(new C(len)) : new Array(len);
    
                // 16. Let k be 0.
                var k = 0;
                // 17. Repeat, while k < len… (also steps a - h)
                var kValue;
                while (k < len) {
                    kValue = items[k];
                    if (mapFn) {
                        A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
                    } else {
                        A[k] = kValue;
                    }
                    k += 1;
                }
                // 18. Let putStatus be Put(A, "length", len, true).
                A.length = len;
                // 20. Return A.
                return A;
            };
        }());
    }
})(window, document);

(function (win, doc) {
    if (!Array.prototype.includes) {
        Object.defineProperty(Array.prototype, 'includes', {
          value: function (searchElement, fromIndex) {
      
            // 1. Let O be ? ToObject(this value).
            if (this == null) {
              throw new TypeError('"this" is null or not defined');
            }
      
            var o = Object(this);
      
            // 2. Let len be ? ToLength(? Get(O, "length")).
            var len = o.length >>> 0;
      
            // 3. If len is 0, return false.
            if (len === 0) {
              return false;
            }
      
            // 4. Let n be ? ToInteger(fromIndex).
            //    (If fromIndex is undefined, this step produces the value 0.)
            var n = fromIndex | 0;
      
            // 5. If n ≥ 0, then
            //  a. Let k be n.
            // 6. Else n < 0,
            //  a. Let k be len + n.
            //  b. If k < 0, let k be 0.
            var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
      
            function sameValueZero(x, y) {
              return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));
            }
      
            // 7. Repeat, while k < len
            while (k < len) {
              // a. Let elementK be the result of ? Get(O, ! ToString(k)).
              // b. If SameValueZero(searchElement, elementK) is true, return true.
              // c. Increase k by 1.
              if (sameValueZero(o[k], searchElement)) {
                return true;
              }
              k++;
            }
      
            // 8. Return false
            return false;
          }
        });
      }
    })(window, document);
(function (win, doc) {
  if (!Array.prototype.find) {
    Object.defineProperty(Array.prototype, 'find', {
      enumerable: false,
      configurable: true,
      writable: true,
      value: function(predicate) {
        if (this == null) {
          throw new TypeError('Array.prototype.find called on null or undefined');
        }
        if (typeof predicate !== 'function') {
          throw new TypeError('predicate must be a function');
        }
        var list = Object(this);
        var length = list.length >>> 0;
        var thisArg = arguments[1];
        var value;
  
        for (var i = 0; i < length; i++) {
          if (i in list) {
            value = list[i];
            if (predicate.call(thisArg, value, i, list)) {
              return value;
            }
          }
        }
        return undefined;
      }
    });
  }
})(window, document);
(function (win, doc) {
    if (!String.prototype.repeat) {
        String.prototype.repeat = function(count) {
          'use strict';
          if (this == null) {
            throw new TypeError('can\'t convert ' + this + ' to object');
          }
          var str = '' + this;
          count = +count;
          if (count != count) {
            count = 0;
          }
          if (count < 0) {
            throw new RangeError('repeat count must be non-negative');
          }
          if (count == Infinity) {
            throw new RangeError('repeat count must be less than infinity');
          }
          count = Math.floor(count);
          if (str.length == 0 || count == 0) {
            return '';
          }
          // Ensuring count is a 31-bit integer allows us to heavily optimize the
          // main part. But anyway, most current (August 2014) browsers can't handle
          // strings 1 << 28 chars or longer, so:
          if (str.length * count >= 1 << 28) {
            throw new RangeError('repeat count must not overflow maximum string size');
          }
          var rpt = '';
          for (;;) {
            if ((count & 1) == 1) {
              rpt += str;
            }
            count >>>= 1;
            if (count == 0) {
              break;
            }
            str += str;
          }
          // Could we try:
          // return Array(count + 1).join(this);
          return rpt;
        }
      }
})(window, document);
!(function (e) {
    if (!e.WeakMap) {
        var t = Object.prototype.hasOwnProperty,
            n = function (e, t, n) {
                Object.defineProperty ? Object.defineProperty(e, t, { configurable: !0, writable: !0, value: n }) : (e[t] = n);
            };
        e.WeakMap = (function () {
            function e() {
                if (void 0 === this) throw new TypeError("Constructor WeakMap requires 'new'");
                if ((n(this, "_id", "_WeakMap" + "_" + i() + "." + i()), arguments.length > 0)) throw new TypeError("WeakMap iterable is not supported");
            }
            function o(e, n) {
                if (!r(e) || !t.call(e, "_id")) throw new TypeError(n + " method called on incompatible receiver " + typeof e);
            }
            function i() {
                return Math.random().toString().substring(2);
            }
            return (
                n(e.prototype, "delete", function (e) {
                    if ((o(this, "delete"), !r(e))) return !1;
                    var t = e[this._id];
                    return !(!t || t[0] !== e) && (delete e[this._id], !0);
                }),
                n(e.prototype, "get", function (e) {
                    if ((o(this, "get"), r(e))) {
                        var t = e[this._id];
                        return t && t[0] === e ? t[1] : void 0;
                    }
                }),
                n(e.prototype, "has", function (e) {
                    if ((o(this, "has"), !r(e))) return !1;
                    var t = e[this._id];
                    return !(!t || t[0] !== e);
                }),
                n(e.prototype, "set", function (e, t) {
                    if ((o(this, "set"), !r(e))) throw new TypeError("Invalid value used as weak map key");
                    var i = e[this._id];
                    return i && i[0] === e ? ((i[1] = t), this) : (n(e, this._id, [e, t]), this);
                }),
                n(e, "_polyfill", !0),
                e
            );
        })();
    }
    function r(e) {
        return Object(e) === e;
    }
})("undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== e ? e : this);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({18:function(e,t,n){"use strict";var r;!function(e){var t=function(){function e(t,n,r,i,o,a){if(this.endpoint="",this.features=[],this.timeDelta=0,this.videoEventQueue=[],this.videoDataQueue=[],this.eventDataQueue=[],this.isDebug=!1,i&&i.length<1)for(var s in e.installedTrackers)s&&i.push(s);i&&(this.features=i),a&&(this.isDebug=a),this.setSessionIdPersistent(n),o&&(this.endpoint=o),this.visitId=r,this.account=t,this.startTracking()}return e.installDataTracker=function(t){e.installedTrackers[t.featureName]=t},e.setXHR=function(t){e._xhr=t},e.load=function(t){return new e(t.sva||"",t.svs||"",t.svv||-1,[],t.endpoint||void 0,t.debug||!1)},e.init=function(t){var n={a:"pageView",u:""+window.location,r:""+(document.referrer||""),svs:t.svs,sva:t.sva};e.xhrRequest(t.endpoint,n,{async:!0,timeout:2e3},(function(n){var r=window.SV_JSON.parse(n.response);new e(r.sva||"",r.svs||"",r.svv||-1,[],t.endpoint||void 0,r.debug||!1)}))},e.getIndex=function(e){for(var t,n=e.parentElement||e.parentNode,r=-1;n&&(t=n.childNodes[++r]);)if(t===e)return r;return-1},e.getPath=function(t){var n,r=[],i=e.getIndex(t);return(n=t.parentElement||t.parentNode)&&(r=e.getPath(n)),i>-1&&r.push(i),r},e.getCursor=function(e){e=e||window.event;var t={x:0,y:0};return t.x=e.pageX?e.pageX:e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-(document.documentElement.clientLeft||0),t.y=e.pageY?e.pageY:e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-(document.documentElement.clientTop||0),t},e.xhrRequest=function(t,n,r,i){if(null===e._xhr)throw new Error("xhr not supported :(");r||(r={async:!0,timeout:2e3});var o=[];for(var a in n)n[a]&&o.push(encodeURIComponent(a)+"="+("string"==typeof n[a]?encodeURIComponent(n[a]):window.SV_JSON.stringify(n[a])));var s=o.join("&");try{e._xhr=e.getXhr(),e._xhr.open("POST",t,r.async),r.async&&(e._xhr.timeout=r.timeout),n&&"setRequestHeader"in e._xhr&&e._xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e._xhr.onload=function(){e._xhr&&(i||function(){})(e._xhr)},e._xhr.onerror=function(){throw new Error("Tracker._xhr.onerror")},e._xhr.send(s),r.async||setTimeout((function(){e._xhr&&e._xhr.abort()}),r.timeout)}catch(e){throw e}return!0},e.getXhr=function(){var e=window.XDomainRequest||window.XMLHttpRequest||!1;if(!e)throw new Error("no_xhr");return new e},e.prototype.getSessionId=function(){return this.sessionId},e.prototype.getVisitId=function(){return this.visitId},e.prototype.setTimeDelta=function(e){this.timeDelta=e},e.prototype.getDataObject=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t=[];for(var r=0;r<arguments.length-0;r++)t[r]=arguments[r+0];var i=this.sessionId?{svs:this.sessionId}:{};for(var o in this.account&&(i.svac=this.account),this.visitId&&(i.svv=this.visitId),i.v=e.version,t)if(t[o])for(var a in t[o])t[o][a]&&(i[a]=this.getObjectScalarData(t[o][a]));return i},e.prototype.getScreenData=function(){var e=window,t=document.documentElement,n=document.body;return{h:e.innerHeight||t.clientHeight||n.clientHeight||0,w:e.innerWidth||t.clientWidth||n.clientWidth||0,x:(pageXOffset||t.scrollLeft||n.scrollLeft||0)-(t.clientLeft||0),y:(pageYOffset||t.scrollTop||n.scrollTop||0)-(t.clientTop||0)}},e.prototype.acquireSessionData=function(){return{userAgent:navigator.userAgent,language:navigator.language,screen:this.getScreenData()}},e.prototype.acquireVisitData=function(){return{url:document.location.href,referrer:document.referrer}},e.prototype.trackEvent=function(e,t,n){n=n||0,this.videoEventQueue.push({type:e,args:t,ts:+new Date-n})},e.prototype.collectVideoData=function(e){this.videoDataQueue.push(e)},e.prototype.pageView=function(t){var n=this,r=this.getDataObject();r.a="spa",r.spaData={u:t.url,r:t.referer};e.xhrRequest(this.endpoint,r,{async:!0,timeout:2e3},(function(e){var t=e.getResponseHeader("Content-Type");if(t&&-1!==t.indexOf("application/json")){var r=window.SV_JSON.parse(e.response);switch(r.event){case"newVisit":if(r.data&&r.data.visitId)for(var i in n.visitId=r.data.visitId,n.features)"string"==typeof i&&"string"==typeof n.features[i]&&n.restartDataTracker(n.features[i])}}}))},e.prototype.getImage=function(e){new Image(1,1).src=this.endpoint+"/event.gif/?"+e},e.prototype.sendBecon=function(e){window.navigator.sendBeacon(this.endpoint+"/event.gif/?"+e)},e.prototype.sendEvent=function(e){var t=this.getDataObject();t.data=JSON.stringify(e),window.navigator.sendBeacon&&"function"==typeof navigator.sendBeacon?this.sendBecon(new URLSearchParams(t).toString()):this.getImage(new URLSearchParams(t).toString())},e.prototype.collectEventData=function(e){e.direct?(delete e.direct,this.sendEvent(e)):this.eventDataQueue.push(e)},e.prototype.sendNow=function(){this._doTrackSendLoop(!0)},e.prototype.addListener=function(e,t,n){return void 0!==e.addEventListener?e.addEventListener(t,n,{capture:!0,passive:!0}):void 0!==e.attachEvent?e.attachEvent("on"+t,n):null},e.prototype.setSessionIdPersistent=function(e){return e=e||this.sessionId,window.name="@@"+e,this.sessionId=e},e.prototype.startTracking=function(){var e=this;for(var t in this.features)"string"==typeof t&&"string"==typeof this.features[t]&&this.activateDataTracker(this.features[t]);this.addListener(window,"unload",(function(){return e._doTrackSendLoop(!0)})),this._doTrackSendLoop()},e.prototype._doTrackSendLoop=function(t){var n=this;void 0===t&&(t=!1);var r=this;void 0===t&&(t=!1);var i=1500;if(this.videoEventQueue.length||this.videoDataQueue.length||this.eventDataQueue.length){var o=this.getDataObject();if(o.a="combined",this.videoEventQueue.length){for(var a=new Array,s=0;this.videoEventQueue.length&&s++<99;)a.push(this.videoEventQueue.shift());s>99&&(i=100);var u=+new Date;for(var c in a)a[c]&&(a[c].delta=u-a[c].ts,delete a[c].ts);o.videoEvents=a.sort((function(e,t){return e.ts-t.ts}))}if(this.videoDataQueue.length){var d=new Array;for(s=0;this.videoDataQueue.length&&s++<99;)d.push(this.videoDataQueue.shift());s>99&&(i=100),o.videoData=JSON.stringify(d)}if(this.eventDataQueue.length){var f=new Array;for(s=0;this.eventDataQueue.length&&s++<99;)f.push(this.eventDataQueue.shift());s>99&&(i=100),o.eventData=JSON.stringify(f)}var v={async:!0,timeout:2e3};t&&(v.timeout=500),e.xhrRequest(this.endpoint,o,v,(function(e){var o=e.getResponseHeader("Content-Type");if(o&&-1!==o.indexOf("application/json")){var a=window.SV_JSON.parse(e.response);switch(a.event){case"newSession":for(var s in a.data&&(a.data.sessionId&&n.setSessionIdPersistent(a.data.sessionId),a.data.visitId&&(n.visitId=a.data.visitId)),n.features)"string"==typeof s&&"string"==typeof n.features[s]&&n.restartDataTracker(n.features[s]);t||setTimeout((function(){return r._doTrackSendLoop()}),i);break;case"newVisit":a.data&&a.data.visitId&&(n.visitId=a.data.visitId);break;case"deactivate":window.name="deactivated"}}else 410!==e.status?t||setTimeout((function(){return r._doTrackSendLoop()}),i):window.name="deactivated"}))}else t||setTimeout((function(){return r._doTrackSendLoop()}),i)},e.prototype.getObjectScalarData=function(e){if("object"!=typeof e)return e;var t={};for(var n in e)"object"!=typeof e[n]&&(t[n]=e[n]);return t},e.prototype.activateDataTracker=function(t){var n=this;if(!(t in e.installedTrackers))throw new Error('Tracker "'+t+'" not installed!');var r=e.installedTrackers[t];try{r.bind.call(this,(function(e,t){try{switch(r.featureName){case"video":n.collectVideoData(e);break;case"event":n.collectEventData(e);break;case"spa":n.pageView(e);break;default:n.trackEvent(r.featureName,e,t)}}catch(e){return}}))}catch(e){}},e.prototype.restartDataTracker=function(t){if(!(t in e.installedTrackers))throw new Error('Tracker "'+t+'" not installed!');var n=e.installedTrackers[t];n.restart&&n.restart.call(this)},e.body=document.body,e.version=5.4,e.installedTrackers={},e}();e.Tracker=t}(r||(r={})),window.st={},window.st.t=r.Tracker}});
!function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=53)}({53:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SVEventTracker=void 0;var n=function(){function t(t,e){this.filename="[a-zA-Z0-9\\._%-]+\\.",this._configDownloadExtensions=["7z","aac","apk","ai","arc","arj","asf","asx","avi","azw3","bin","csv","dot","docm","dotm","dotx","deb","dmg","doc","docx","psd","epub","exe","flv","gz","gzip","hqx","ibooks","jar","js","md","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","pps","ppt","pptx","qt","qtm","ra","ram","rar","rtf","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wmf","wpd","xls","xlsx","xlsm","xlsb","xps","xltx","xml","zip","tex","z"],this._downloadExtensionsPattern=new RegExp("\\.("+this._configDownloadExtensions.join("|")+")([?&#]|$)","i"),this._downloadExtensionsFilePattern=new RegExp(this.filename+"("+this._configDownloadExtensions.join("|")+")","i"),this._configDownloadImgExtensions=["gif","jpg","jpeg","png","bmp","tiff","tif","dng","webp","svg"],this._downloadImgExtensionsPattern=new RegExp("\\.("+this._configDownloadImgExtensions.join("|")+")([?&#]|$)","i"),this._downloadImgExtensionsFilePattern=new RegExp(this.filename+"("+this._configDownloadImgExtensions.join("|")+")","i"),this._tracker=t,this._collectCallback=e,this.initEventListener(),this.customerEventLoop(300)}return t.prototype.addCustomerEvent=function(t,e){var a={type:t};e.name&&(a.name=e.name),e.score&&!isNaN(e.score)&&(a.score=e.score),this._collectCallback({args:a,ts:+new Date,direct:!0,type:"custom"})},t.prototype.customerEventLoop=function(t){var e=this;setTimeout((function(){for(var a=window.sve||[];a.length;){var n=a.shift();2===n.length&&e.addCustomerEvent(n[0],n[1])}e.customerEventLoop(t)}),t)},t.prototype.getAttributes=function(t){for(var e={},a=0,n=t.attributes.length;a<n;a++){var i=t.attributes[a].nodeName;if("value"!==i){var r=t.attributes[a].nodeValue;e[i]=r}}return e},t.prototype.initEventListener=function(){var t=this,e=window;e.nfForms&&e.jQuery&&e.jQuery(document).on("nfFormSubmitResponse",(function(){t._collectCallback({type:"formSubmit",direct:!0,args:{attr:{}},ts:+new Date})})),this._tracker.addListener(document,"submit",(function(e){"form"==e.target.nodeName.toLowerCase()&&t._collectCallback({type:"formSubmit",direct:!0,args:{attr:t.getAttributes(e.target)},ts:+new Date})})),this._tracker.addListener(document,"change",(function(e){e.target&&["input","select","textarea"].includes(e.target.nodeName.toLowerCase())&&t._collectCallback({type:"formInteraction",direct:!0,args:{attr:t.getAttributes(e.target)},ts:+new Date})})),this._tracker.addListener(document,"mousedown",(function(e){var a=e.target||e.srcElement;a&&t.processLinkNode(a)}))},t.prototype.processLinkNode=function(t){if(this.hasNodeAttribute(t,"href")){if(void 0!==t.href){var e=this.getAttributeFromNode(t,"href"),a=(t.pathname,t.hostname.toLowerCase()),n=t.href.replace(t.hostname,a);if(!new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript):","i").test(n)){var i=this.getLinkType(n,t,t.hostname);if(i)switch(i){case"dataLink":this._collectCallback({direct:!0,args:{name:this.getAttributeFromNode(t,"data-name"),score:this.getAttributeFromNode(t,"data-value")||void 0,attr:{class:t.classList,id:t.id,data:t.dataset,name:t.name,title:t.title,text:t.textContent}},ts:+new Date,type:"dataNameClick"});break;case"image":var r=n.match(this._downloadImgExtensionsFilePattern),o=n.replace(/^.*[\\\/]/,"");r&&2===r.length&&(o=r[0]),o=decodeURI(o),this._collectCallback({direct:!0,args:{name:o,attr:{class:t.classList,id:t.id,data:t.dataset,name:t.name,title:t.title,text:t.textContent},url:n},ts:+new Date,type:"image"}),this._tracker.sendNow();break;case"download":var s=n.match(this._downloadExtensionsFilePattern),l=n.replace(/^.*[\\\/]/,"");s&&2===s.length&&(l=s[0]),l=decodeURI(l),this._collectCallback({direct:!0,args:{name:l,attr:{class:t.classList,id:t.id,data:t.dataset,name:t.name,title:t.title,text:t.textContent},url:n},ts:+new Date,type:"download"}),this._tracker.sendNow();break;case"external":this._collectCallback({direct:!0,args:{name:n,attr:{class:t.classList,id:t.id,data:t.dataset,name:t.name,title:t.title,text:t.textContent}},ts:+new Date,type:"external"}),this._tracker.sendNow();break;default:var c=n.replace(/tel:[\/]{0,2}/,"").replace(/mailto:[\/]{0,2}/,"");this._collectCallback({direct:!0,args:{name:c,class:t.classList,attr:{class:t.classList,id:t.id,data:t.dataset,name:t.name,title:t.title,text:t.textContent,href:e}},ts:+new Date,type:i})}}}}else if(this.hasNodeAttribute(t,"data-name"))if("input"===t.tagName.toLowerCase()||"textarea"===t.tagName.toLowerCase()||"select"===t.tagName.toLowerCase()){var d=this.getAttributes(t);this._collectCallback({type:"formInteraction",args:{attr:d},ts:+new Date})}else this._collectCallback({direct:!0,args:{name:this.getAttributeFromNode(t,"data-name"),attr:{class:t.classList,id:t.id,data:t.dataset,name:t.name,title:t.title,text:t.textContent}},ts:+new Date,type:"dataNameClick"});else{function u(t,e){var a=t;if(a==document.body)return!1;do{a=a.parentNode}while(a&&a!==document.body&&"function"==typeof a.matches&&!a.matches(e));return a!=document.body&&a}var m=u(t,"[data-name]");m||(m=u(t,"a")),m&&this.processLinkNode(m)}},t.prototype.getLinkType=function(t,e,a){return new RegExp("^mailto:").test(t)?"mail":new RegExp("^tel:").test(t)?"tel":new RegExp("^javascript:print();").test(t)?"print":this._downloadImgExtensionsPattern.test(t)?"image":this._downloadExtensionsPattern.test(t)?"download":location.hostname.replace(/www[0-9]{0,1}./,"")!=a.replace(/www[0-9]{0,1}./,"")?"external":this.hasNodeAttribute(e,"data-name")?"dataLink":void 0},t.prototype.getAttributeFromNode=function(t,e){if(this.hasNodeAttribute(t,e)){if(t&&t.getAttribute)return t.getAttribute(e);if(t&&t.attributes)if("undefined"!==typeof t.attributes[e]){if(t.attributes[e].value)return t.attributes[e].value;if(t.attributes[e].nodeValue)return t.attributes[e].nodeValue;var a,n=t.attributes;if(n){for(a=0;a<n.length;a++)if(n[a].nodeName===e)return n[a].nodeValue;return null}}}},t.prototype.hasNodeAttribute=function(t,e){return t&&t.hasAttribute?t.hasAttribute(e):!(!t||!t.attributes)&&"undefined"!==typeof t.attributes[e]},t}();e.SVEventTracker=n,st.t.installDataTracker({featureName:"event",bind:function(t){new n(this,t)}})}});
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t,n){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */Object.defineProperty(t,"__esModule",{value:!0}),t.__values=t.__spread=t.__read=t.__assign=void 0;var r=function(){return t.__assign=r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}t.__assign=r,t.__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},t.__read=i,t.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.queueToResolveTrees=t.polyfill=t.patch=t.on=t.iterateResolveTree=t.isTouchEvent=t.isSvBlocked=t.isIgnored=t.isIframeINode=t.isBlocked=t.isAncestorRemoved=t.hookSetter=t.hasShadowRoot=t.getWindowWidth=t.getWindowHeight=t.getBaseDimension=t.createMirror=t._mirror=t.TreeIndex=void 0;var r=n(0),i=n(2),a=n(4);t.on=function(e,t,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}},t.createMirror=function(){return{map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,n=e.__sn&&e.__sn.id;delete this.map[n],e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}}};var o="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",s={map:{},getId:function(){return console.error(o),-1},getNode:function(){return console.error(o),null},removeNodeFromMap:function(){console.error(o)},has:function(){return console.error(o),!1},reset:function(){console.error(o)}};t._mirror=s,"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(t._mirror=s=new Proxy(s,{get:function(e,t,n){return"map"===t&&console.error(o),Reflect.get(e,t,n)}})),t.throttle=function(e,t,n){void 0===n&&(n={});var r=null,i=0;return function(a){var o=Date.now();i||!1!==n.leading||(i=o);var s=t-(o-i),l=this,u=arguments;s<=0||s>t?(r&&(clearTimeout(r),r=null),i=o,e.apply(l,u)):r||!1===n.trailing||(r=setTimeout((function(){i=!1===n.leading?0:Date.now(),r=null,e.apply(l,u)}),s))}},t.hookSetter=function e(t,n,r,i,a){void 0===a&&(a=window);var o=a.Object.getOwnPropertyDescriptor(t,n);return a.Object.defineProperty(t,n,i?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),o&&o.set&&o.set.call(this,e)}}),function(){return e(t,n,o||{},!0)}},t.patch=function(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch(e){return function(){}}},t.getWindowHeight=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},t.getWindowWidth=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},t.isSvBlocked=function(e){return!!e.hasAttribute("data-plyr")||"hidden"===e.getAttribute("type")},t.isBlocked=function e(t,n){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){var r=!1;return t.classList&&("string"==typeof n?r=t.classList.contains(n):t.classList.forEach((function(e){n.test(e)&&(r=!0)}))),r||e(t.parentNode,n)}return t.nodeType,t.TEXT_NODE,e(t.parentNode,n)},t.isIgnored=function(e){return"__sn"in e&&e.__sn.id===a.IGNORED_NODE},t.isAncestorRemoved=function e(t,n){if(a.isShadowRoot(t))return!1;var r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))},t.isTouchEvent=function(e){return Boolean(e.changedTouches)},t.polyfill=function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})};var l=function(){function e(){this.reset()}return e.prototype.add=function(e){var t=this.indexes.get(e.parentId),n={id:e.node.id,mutation:e,children:[],texts:[],attributes:[]};t?(n.parent=t,t.children[n.id]=n):this.tree[n.id]=n,this.indexes.set(n.id,n)},e.prototype.remove=function(e,t){var n=this,r=this.indexes.get(e.parentId),i=this.indexes.get(e.id),a=function(e){n.removeIdSet.add(e);var r=t.getNode(e);null==r||r.childNodes.forEach((function(e){"__sn"in e&&a(e.__sn.id)}))},o=function(t){n.removeIdSet.add(t.id),Object.values(t.children).forEach((function(e){return o(e)}));var r=n.indexes.get(t.id);if(r){var i=r.parent;i&&(delete r.parent,delete i.children[r.id],n.indexes.delete(e.id))}};i?r?(delete i.parent,delete r.children[i.id],this.indexes.delete(e.id),o(i)):(delete this.tree[i.id],this.indexes.delete(i.id),o(i)):(this.removeNodeMutations.push(e),a(e.id))},e.prototype.text=function(e){var t=this.indexes.get(e.id);t?t.texts.push(e):this.textMutations.push(e)},e.prototype.attribute=function(e){var t=this.indexes.get(e.id);t?t.attributes.push(e):this.attributeMutations.push(e)},e.prototype.scroll=function(e){this.scrollMap.set(e.id,e)},e.prototype.input=function(e){this.inputMap.set(e.id,e)},e.prototype.flush=function(){var e,t,n,a,o=this,s=this.tree,l=this.removeNodeMutations,u=this.textMutations,c=this.attributeMutations,d={source:i.IncrementalSource.Mutation,removes:l,texts:u,attributes:c,adds:[]},f=function(e,t){t&&o.removeIdSet.add(e.id),d.texts=d.texts.concat(t?[]:e.texts).filter((function(e){return!o.removeIdSet.has(e.id)})),d.attributes=d.attributes.concat(t?[]:e.attributes).filter((function(e){return!o.removeIdSet.has(e.id)})),o.removeIdSet.has(e.id)||o.removeIdSet.has(e.mutation.parentId)||t?Object.values(e.children).forEach((function(e){return f(e,!0)})):(d.adds.push(e.mutation),e.children&&Object.values(e.children).forEach((function(e){return f(e,!1)})))};Object.values(s).forEach((function(e){return f(e,!1)}));try{for(var h=r.__values(this.scrollMap.keys()),p=h.next();!p.done;p=h.next()){var v=p.value;this.removeIdSet.has(v)&&this.scrollMap.delete(v)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}try{for(var m=r.__values(this.inputMap.keys()),y=m.next();!y.done;y=m.next()){v=y.value;this.removeIdSet.has(v)&&this.inputMap.delete(v)}}catch(e){n={error:e}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(n)throw n.error}}var g=new Map(this.scrollMap),_=new Map(this.inputMap);return this.reset(),{mutationData:d,scrollMap:g,inputMap:_}},e.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},e.prototype.idRemoved=function(e){return this.removeIdSet.has(e)},e}();t.TreeIndex=l,t.queueToResolveTrees=function(e){var t,n,i=[],a={},o=function(e,t){var n={value:e,parent:t,children:[]};return a[e.node.id]=n,n},s=[];try{for(var l=r.__values(e),u=l.next();!u.done;u=l.next()){var c=u.value,d=c.nextId,f=c.parentId;if(d&&d in a){var h=a[d];if(h.parent){var p=h.parent.children.indexOf(h);h.parent.children.splice(p,0,o(c,h.parent))}else{p=s.indexOf(h);s.splice(p,0,o(c,null))}}else if(f in a){var v=a[f];v.children.push(o(c,v))}else-1==i.indexOf(f)&&i.push(f),-1==i.indexOf(c.node.id)?s.push(o(c,null)):s.unshift(o(c,null))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s},t.iterateResolveTree=function e(t,n){n(t.value);for(var r=t.children.length-1;r>=0;r--)e(t.children[r],n)},t.isIframeINode=function(e){return"__sn"in e&&(e.__sn.type===a.NodeType.Element&&"iframe"===e.__sn.tagName)},t.getBaseDimension=function e(t,n){var r,i,a=null===(i=null===(r=t.ownerDocument)||void 0===r?void 0:r.defaultView)||void 0===i?void 0:i.frameElement;if(!a||a===n)return{x:0,y:0,relativeScale:1,absoluteScale:1};var o=a.getBoundingClientRect(),s=e(a,n),l=o.height/a.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:l,absoluteScale:s.absoluteScale*l}},t.hasShadowRoot=function(e){var t;return Boolean(null===(t=e)||void 0===t?void 0:t.shadowRoot)}},function(e,t,n){"use strict";var r,i,a,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ReplayerEvents=t.MouseInteractions=t.MediaInteractions=t.IncrementalSource=t.EventType=void 0,t.EventType=r,function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"}(r||(t.EventType=r={})),t.IncrementalSource=i,function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"}(i||(t.IncrementalSource=i={})),t.MouseInteractions=a,function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(a||(t.MouseInteractions=a={})),t.MediaInteractions=o,function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked"}(o||(t.MediaInteractions=o={})),t.ReplayerEvents=s,function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.MouseMove="mouse-move",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.FrameCompleted="frame-completed"}(s||(t.ReplayerEvents=s={}))},function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},o={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,a)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},function(e,t,n){"use strict";var r;function i(e){return e.nodeType===e.ELEMENT_NODE}function a(e){var t,n=null===(t=e)||void 0===t?void 0:t.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===e)}function o(e){var t=e.maskInputOptions,n=e.tagName,r=e.type,i=e.value,a=e.maskInputFn,o=i||"";return(t[n.toLowerCase()]||t[r])&&(o=a?a(o):"*".repeat(o.length)),o}Object.defineProperty(t,"__esModule",{value:!0}),t.transformAttribute=t.snapshot=t.serializeNodeWithId=t.rebuild=t.needMaskingText=t.maskInputValue=t.isShadowRoot=t.isElement=t.createCache=t.buildNodeWithSN=t.addHoverClass=t.NodeType=t.IGNORED_NODE=void 0,t.NodeType=r,function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(r||(t.NodeType=r={})),t.isElement=i,t.isShadowRoot=a,t.maskInputValue=o;var s=1,l=RegExp("[^a-z0-9-_:]");function u(e){try{var t=e.rules||e.cssRules;return(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&(t=e.cssRules),t?Array.from(t).map(c).join(""):null}catch(e){return null}}function c(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=u(e.styleSheet)||t}catch(e){}return t}t.IGNORED_NODE=-2;var d=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,f=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,h=/^(data:)([^,]*),(.*)/i;function p(e,t){return(e||"").replace(d,(function(e,n,r,i,a,o){var s,l=r||a||o,u=n||i||"";if(!l)return e;if(!f.test(l))return"url("+u+l+u+")";if(h.test(l))return"url("+u+l+u+")";if("/"===l[0])return"url("+u+(((s=t).indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+l)+u+")";var c=t.split("/"),d=l.split("/");c.pop();for(var p=0,v=d;p<v.length;p++){var m=v[p];"."!==m&&(".."===m?c.pop():c.push(m))}return"url("+u+c.join("/")+u+")"}))}var v=/^[^ \t\n\r\u000c]+/,m=/^[, \t\n\r\u000c]+/;function y(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function g(){var e=document.createElement("a");return e.href="",e.href}function _(e,t,n,r){return"src"===n||("href"===n||"xlink:href"===n)&&r?y(e,r):"background"!==n||!r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n&&r?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(m),!(n>=t.length);){var a=r(v);if(","===a.slice(-1))a=y(e,a.substring(0,a.length-1)),i.push(a);else{var o="";a=y(e,a);for(var s=!1;;){var l=t.charAt(n);if(""===l){i.push((a+o).trim());break}if(s)")"===l&&(s=!1);else{if(","===l){n+=1,i.push((a+o).trim());break}"("===l&&(s=!0)}o+=l,n+=1}}}return i.join(", ")}(e,r):"style"===n&&r?p(r,g()):r:y(e,r)}function b(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else e.classList.forEach((function(e){if(t.test(e))return!0}));return!(!n||!e.matches(n))||b(e.parentNode,t,n)}return e.nodeType,e.TEXT_NODE,b(e.parentNode,t,n)}function w(e,t){var n,i,a=t.doc,s=t.blockClass,c=t.blockSelector,d=t.maskTextClass,f=t.maskTextSelector,h=t.inlineStylesheet,v=t.maskInputOptions,m=void 0===v?{}:v,y=t.maskTextFn,w=t.maskInputFn,S=t.recordCanvas,k=t.keepIframeSrcFn;if(a.__sn){var x=a.__sn.id;n=1===x?void 0:x}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:r.Document,childNodes:[],compatMode:e.compatMode,rootId:n}:{type:r.Document,childNodes:[],rootId:n};case e.DOCUMENT_TYPE_NODE:return{type:r.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:n};case e.ELEMENT_NODE:for(var E=function(e,t,n){if(e.classList)if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var i=e.classList[r];if(t.test(i))return!0}return!!n&&e.matches(n)}(e,s,c),T=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return l.test(t)?"div":t}(e),I={},C=0,M=Array.from(e.attributes);C<M.length;C++){var N=M[C],O=N.name,R=N.value;I[O]=_(a,T,O,R)}if("link"===T&&h){var D,A=Array.from(a.styleSheets).find((function(t){return t.href===e.href}));(D=u(A))&&(delete I.rel,delete I.href,I._cssText=p(D,A.href))}if("style"===T&&e.sheet&&!(e.innerText||e.textContent||"").trim().length)(D=u(e.sheet))&&(I._cssText=p(D,g()));if("input"===T||"textarea"===T||"select"===T){R=e.value;"radio"!==I.type&&"checkbox"!==I.type&&"submit"!==I.type&&"button"!==I.type&&R?I.value=o({type:I.type,tagName:T,value:R,maskInputOptions:m,maskInputFn:w}):e.checked&&(I.checked=e.checked)}if("option"===T&&(e.selected?I.selected=!0:delete I.selected),"canvas"===T&&S&&(I.rr_dataURL=e.toDataURL()),"audio"!==T&&"video"!==T||(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop),E){var P=e.getBoundingClientRect(),F=P.width,L=P.height;I={class:I.class,rr_width:F+"px",rr_height:L+"px"}}return"iframe"!==T||k(I.src)||delete I.src,{type:r.Element,tagName:T,attributes:I,childNodes:[],isSVG:(i=e,"svg"===i.tagName||i instanceof SVGElement||void 0),needBlock:E,rootId:n};case e.TEXT_NODE:var z=e.parentNode&&e.parentNode.tagName,j=e.textContent,B="STYLE"===z||void 0,U="SCRIPT"===z||void 0;return B&&j&&(j=p(j,g())),U&&(j="SCRIPT_PLACEHOLDER"),!B&&!U&&b(e,d,f)&&j&&(j=y?y(j):j.replace(/[\S]/g,"*")),{type:r.Text,textContent:j||"",isStyle:B,rootId:n};case e.CDATA_SECTION_NODE:return{type:r.CDATA,textContent:"",rootId:n};case e.COMMENT_NODE:return{type:r.Comment,textContent:e.textContent||"",rootId:n};default:return!1}}function S(e){return void 0===e?"":e.toLowerCase()}function k(e,t){var n,o=t.doc,l=t.map,u=t.blockClass,c=t.blockSelector,d=t.maskTextClass,f=t.maskTextSelector,h=t.skipChild,p=void 0!==h&&h,v=t.inlineStylesheet,m=void 0===v||v,y=t.maskInputOptions,g=void 0===y?{}:y,_=t.maskTextFn,b=t.maskInputFn,x=t.slimDOMOptions,E=t.recordCanvas,T=void 0!==E&&E,I=t.onSerialize,C=t.onIframeLoad,M=t.iframeLoadTimeout,N=void 0===M?5e3:M,O=t.keepIframeSrcFn,R=void 0===O?function(){return!1}:O,D=t.preserveWhiteSpace,A=void 0===D||D,P=w(e,{doc:o,blockClass:u,blockSelector:c,maskTextClass:d,maskTextSelector:f,inlineStylesheet:m,maskInputOptions:g,maskTextFn:_,maskInputFn:b,recordCanvas:T,keepIframeSrcFn:R});if(!P)return console.warn(e,"not serialized"),null;n="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===r.Comment)return!0;if(e.type===r.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(S(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===S(e.attributes.name)||"icon"===S(e.attributes.rel)||"apple-touch-icon"===S(e.attributes.rel)||"shortcut icon"===S(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&S(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(S(e.attributes.property).match(/^(og|twitter|fb):/)||S(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===S(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===S(e.attributes.name)||"googlebot"===S(e.attributes.name)||"bingbot"===S(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===S(e.attributes.name)||"generator"===S(e.attributes.name)||"framework"===S(e.attributes.name)||"publisher"===S(e.attributes.name)||"progid"===S(e.attributes.name)||S(e.attributes.property).match(/^article:/)||S(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===S(e.attributes.name)||"yandex-verification"===S(e.attributes.name)||"csrf-token"===S(e.attributes.name)||"p:domain_verify"===S(e.attributes.name)||"verify-v1"===S(e.attributes.name)||"verification"===S(e.attributes.name)||"shopify-checkout-api-token"===S(e.attributes.name)))return!0}}return!1}(P,x)&&(A||P.type!==r.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?s++:-2;var F=Object.assign(P,{id:n});if(e.__sn=F,-2===n)return null;l[n]=e,I&&I(e);var L=!p;if(F.type===r.Element&&(L=L&&!F.needBlock,delete F.needBlock),(F.type===r.Document||F.type===r.Element)&&L){x.headWhitespace&&P.type===r.Element&&"head"===P.tagName&&(A=!1);for(var z={doc:o,map:l,blockClass:u,blockSelector:c,maskTextClass:d,maskTextSelector:f,skipChild:p,inlineStylesheet:m,maskInputOptions:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:x,recordCanvas:T,preserveWhiteSpace:A,onSerialize:I,onIframeLoad:C,iframeLoadTimeout:N,keepIframeSrcFn:R},j=0,B=Array.from(e.childNodes);j<B.length;j++){(H=k(B[j],z))&&F.childNodes.push(H)}if(i(e)&&e.shadowRoot){F.isShadowHost=!0;for(var U=0,W=Array.from(e.shadowRoot.childNodes);U<W.length;U++){var H;(H=k(W[U],z))&&(H.isShadow=!0,F.childNodes.push(H))}}}return e.parentNode&&a(e.parentNode)&&(F.isShadow=!0),F.type===r.Element&&"iframe"===F.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var i,a=!1;try{i=r.document.readyState}catch(e){return}if("complete"===i){"about:blank"===r.location.href&&"about:blank"!==e.src&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}else{var o=setTimeout((function(){a||(t(),a=!0)}),n);e.addEventListener("load",(function(){clearTimeout(o),a=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&C){var n=k(t,{doc:t,map:l,blockClass:u,blockSelector:c,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:x,recordCanvas:T,preserveWhiteSpace:A,onSerialize:I,onIframeLoad:C,iframeLoadTimeout:N,keepIframeSrcFn:R});n&&C(e,n)}}),N),F}t.transformAttribute=_,t.needMaskingText=b,t.serializeNodeWithId=k,t.snapshot=function(e,t){var n=t||{},r=n.blockClass,i=void 0===r?"rr-block":r,a=n.blockSelector,o=void 0===a?null:a,s=n.maskTextClass,l=void 0===s?"rr-mask":s,u=n.maskTextSelector,c=void 0===u?null:u,d=n.inlineStylesheet,f=void 0===d||d,h=n.recordCanvas,p=void 0!==h&&h,v=n.maskAllInputs,m=void 0!==v&&v,y=n.maskTextFn,g=n.maskInputFn,_=n.slimDOM,b=void 0!==_&&_,w=n.preserveWhiteSpace,S=n.onSerialize,x=n.onIframeLoad,E=n.iframeLoadTimeout,T=n.keepIframeSrcFn,I={};return[k(e,{doc:e,map:I,blockClass:i,blockSelector:o,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===m?{password:!0}:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===b,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===b?{}:b,recordCanvas:p,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,keepIframeSrcFn:void 0===T?function(){return!1}:T}),I]};var x=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function E(e,t){void 0===t&&(t={});var n=1,r=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=-1===i?r+e.length:e.length-i}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),h(),t}}var o=function(e){this.start=e,this.end={line:n,column:r},this.source=t.source};o.prototype.content=e;var s=[];function l(i){var a=new Error(t.source+":"+n+":"+r+": "+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a;s.push(a)}function u(){return f(/^{\s*/)}function c(){return f(/^}/)}function d(){var t,n=[];for(h(),p(n);e.length&&"}"!==e.charAt(0)&&(t=I()||C());)!1!==t&&(n.push(t),p(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function h(){f(/^\s*/)}function p(e){var t;for(void 0===e&&(e=[]);t=v();)!1!==t&&e.push(t),t=v();return e}function v(){var t=a();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}}function m(){var e=f(/^([^{]+)/);if(e)return T(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function y(){var e=a(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var n=T(t[0]);if(!f(/^:\s*/))return l("property missing ':'");var r=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),i=e({type:"declaration",property:n.replace(x,""),value:r?T(r[0]).replace(x,""):""});return f(/^[;\s]*/),i}}function g(){var e,t=[];if(!u())return l("missing '{'");for(p(t);e=y();)!1!==e&&(t.push(e),p(t)),e=y();return c()?t:l("missing '}'")}function _(){for(var e,t=[],n=a();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var b,w=E("import"),S=E("charset"),k=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=a(),r=f(t);if(r){var i={type:e};return i[e]=r[1].trim(),n(i)}}}function I(){if("@"===e[0])return function(){var e=a(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,i=t[1];if(!u())return l("@keyframes missing '{'");for(var o=p();r=_();)o.push(r),o=o.concat(p());return c()?e({type:"keyframes",name:i,vendor:n,keyframes:o}):l("@keyframes missing '}'")}}()||function(){var e=a(),t=f(/^@media *([^{]+)/);if(t){var n=T(t[1]);if(!u())return l("@media missing '{'");var r=p().concat(d());return c()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=a(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:T(t[1]),media:T(t[2])})}()||function(){var e=a(),t=f(/^@supports *([^{]+)/);if(t){var n=T(t[1]);if(!u())return l("@supports missing '{'");var r=p().concat(d());return c()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||w()||S()||k()||function(){var e=a(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=T(t[1]),r=T(t[2]);if(!u())return l("@document missing '{'");var i=p().concat(d());return c()?e({type:"document",document:r,vendor:n,rules:i}):l("@document missing '}'")}}()||function(){var e=a();if(f(/^@page */)){var t=m()||[];if(!u())return l("@page missing '{'");for(var n,r=p();n=y();)r.push(n),r=r.concat(p());return c()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=a();if(f(/^@host\s*/)){if(!u())return l("@host missing '{'");var t=p().concat(d());return c()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=a();if(f(/^@font-face\s*/)){if(!u())return l("@font-face missing '{'");for(var t,n=p();t=y();)n.push(t),n=n.concat(p());return c()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function C(){var e=a(),t=m();return t?(p(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){for(var r=t&&"string"==typeof t.type,i=r?t:n,a=0,o=Object.keys(t);a<o.length;a++){var s=o[a],l=t[s];Array.isArray(l)?l.forEach((function(t){e(t,i)})):l&&"object"==typeof l&&e(l,i)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((b=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:b,parsingErrors:s}}))}function T(e){return e?e.replace(/^\s+|\s+$/g,""):""}var I={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};var C=/([^\\]):hover/,M=new RegExp(C.source,"g");function N(e,t){var n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;var r=E(e,{silent:!0});if(!r.stylesheet)return e;var i=new Map,a=[];if(r.stylesheet.rules.forEach((function(e){var t;("selectors"in e?(e.selectors||[]).forEach((function(e){C.test(e)&&a.push(e)})):"rules"in e&&(e.rules||[]).forEach((function(e){"selectors"in e&&(e.selectors||[]).forEach((function(e){C.test(e)&&a.push(e)}))})),"rule"===e.type)&&(null===(t=e.declarations)||void 0===t||t.filter((function(e){var t;return"inset"===e.property&&-1!==(null===(t=e.value)||void 0===t?void 0:t.indexOf("unset"))})).map((function(e){var t,n,r="",a=-1!==(null===(t=e.value)||void 0===t?void 0:t.indexOf("!important"))?" !important":"",o=null===(n=e.value)||void 0===n?void 0:n.replace(/\s*!important/,"").split(/\s+/);if(o){1===o.length&&(o[1]=o[2]=o[3]=o[0]),2===o.length&&(o[2]=o[0],o[3]=o[1]),3===o.length&&(o[3]=o[1]),r+="top: "+o[0]+a+";",r+="right: "+o[1]+a+";",r+="bottom: "+o[2]+a+";",r+="left: "+o[3]+a+";";var s=new RegExp("\\b"+e.property+"\\s*:\\s*"+e.value+"\\s*;");i.set(s,r)}})))})),i.forEach((function(t,n){e=e.replace(n,t)})),0===a.length)return e;var o=new RegExp(a.filter((function(e,t){return a.indexOf(e)===t})).sort((function(e,t){return t.length-e.length})).map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})).join("|"),"g"),s=e.replace(o,(function(e){var t=e.replace(M,"$1.\\:hover");return e+", "+t}));return null==t||t.stylesWithHoverClass.set(e,s),s}function O(e,t){var n=t.doc,i=t.hackCss,a=t.cache;switch(e.type){case r.Document:return n.implementation.createDocument(null,"",null);case r.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case r.Element:var o,s=function(e){var t=I[e.tagName]?I[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);o=e.isSVG?n.createElementNS("http://www.w3.org/2000/svg",s):n.createElement(s);var l=function(t){if(!e.attributes.hasOwnProperty(t))return"continue";var r=e.attributes[t];if("option"===s&&"selected"===t&&!1===r)return"continue";if(r="boolean"==typeof r||"number"==typeof r?"":r,t.startsWith("rr_")){if("canvas"===s&&"rr_dataURL"===t){var l=document.createElement("img");l.src=r,l.onload=function(){var e=o.getContext("2d");e&&e.drawImage(l,0,0,l.width,l.height)}}if("rr_width"===t&&(o.style.width=r),"rr_height"===t&&(o.style.height=r),"rr_mediaCurrentTime"===t&&(o.currentTime=e.attributes.rr_mediaCurrentTime),"rr_mediaState"===t)switch(r){case"played":o.play().catch((function(e){return console.warn("media playback error",e)}));break;case"paused":o.pause()}}else{var u="textarea"===s&&"value"===t,c="style"===s&&"_cssText"===t;if(c&&i&&(r=N(r,a)),u||c){for(var d=n.createTextNode(r),f=0,h=Array.from(o.childNodes);f<h.length;f++){var p=h[f];p.nodeType===o.TEXT_NODE&&o.removeChild(p)}return o.appendChild(d),"continue"}try{if(e.isSVG&&"xlink:href"===t)o.setAttributeNS("http://www.w3.org/1999/xlink",t,r);else if("onload"===t||"onclick"===t||"onmouse"===t.substring(0,7))o.setAttribute("_"+t,r);else{if("meta"===s&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===t)return o.setAttribute("csp-content",r),"continue";"link"===s&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===s&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||o.setAttribute(t,r)}}catch(e){}}};for(var u in e.attributes)l(u);if(e.isShadowHost)if(o.shadowRoot)for(;o.shadowRoot.firstChild;)o.shadowRoot.removeChild(o.shadowRoot.firstChild);else o.attachShadow({mode:"open"});return o;case r.Text:return n.createTextNode(e.isStyle&&i?N(e.textContent,a):e.textContent);case r.CDATA:return n.createCDATASection(e.textContent);case r.Comment:return n.createComment(e.textContent);default:return null}}function R(e,t){var n=t.doc,a=t.map,o=t.skipChild,s=void 0!==o&&o,l=t.hackCss,u=void 0===l||l,c=t.afterAppend,d=t.cache,f=O(e,{doc:n,hackCss:u,cache:d});if(!f)return null;if(e.rootId&&console.assert(a[e.rootId]===n,"Target document should has the same root id."),e.type===r.Document&&(n.close(),n.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==r.DocumentType&&(e.childNodes[0].type===r.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),f=n),f.__sn=e,a[e.id]=f,(e.type===r.Document||e.type===r.Element)&&!s)for(var h=0,p=e.childNodes;h<p.length;h++){var v=p[h],m=R(v,{doc:n,map:a,skipChild:!1,hackCss:u,afterAppend:c,cache:d});m?(v.isShadow&&i(f)&&f.shadowRoot?f.shadowRoot.appendChild(m):f.appendChild(m),c&&c(m)):console.warn("Failed to rebuild",v)}return f}t.addHoverClass=N,t.createCache=function(){return{stylesWithHoverClass:new Map}},t.buildNodeWithSN=R,t.rebuild=function(e,t){var n=t.doc,i=t.onVisit,a=t.hackCss,o={},s=R(e,{doc:n,map:o,skipChild:!1,hackCss:void 0===a||a,afterAppend:t.afterAppend,cache:t.cache});return function(e,t){for(var n in e)e[n]&&(r=e[n],t(r));var r}(o,(function(e){i&&i(e),function(e){var t=e.__sn;if(t.type===r.Element){var n=e;for(var i in t.attributes)if(t.attributes.hasOwnProperty(i)&&i.startsWith("rr_")){var a=t.attributes[i];"rr_scrollLeft"===i&&(n.scrollLeft=a),"rr_scrollTop"===i&&(n.scrollTop=a)}}}(e)})),[s,o]}},function(e,t,n){"use strict";e.exports={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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,a=n(0),o=n(4),s=n(12),l=n(1),u=n(2),c=n(40),d=n(41);function f(e){return a.__assign(a.__assign({},e),{timestamp:Date.now()})}var h=l.createMirror();function p(e){void 0===e&&(e={});var t=e.emit,n=e.checkoutEveryNms,p=e.checkoutEveryNth,v=e.blockClass,m=void 0===v?"rr-block":v,y=e.blockSelector,g=void 0===y?null:y,_=e.ignoreClass,b=void 0===_?"rr-ignore":_,w=e.maskTextClass,S=void 0===w?"rr-mask":w,k=e.maskTextSelector,x=void 0===k?null:k,E=e.inlineStylesheet,T=void 0===E||E,I=e.maskAllInputs,C=e.maskInputOptions,M=e.slimDOMOptions,N=e.maskInputFn,O=e.maskTextFn,R=e.hooks,D=e.packFn,A=e.sampling,P=void 0===A?{}:A,F=e.mousemoveWait,L=e.recordCanvas,z=void 0!==L&&L,j=e.userTriggeredOnInput,B=void 0!==j&&j,U=e.collectFonts,W=void 0!==U&&U,H=e.plugins,V=e.keepIframeSrcFn,Z=void 0===V?function(){return!1}:V;if(!t)throw new Error("emit function is required");void 0!==F&&void 0===P.mousemove&&(P.mousemove=F);var Y,G=!0===I?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==C?C:{password:!0},X=!0===M||"all"===M?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===M,headMetaDescKeywords:"all"===M}:M||{};l.polyfill();var K=0;r=function(e,r){var a;if(!(null===(a=s.mutationBuffers[0])||void 0===a?void 0:a.isFrozen())||e.type===u.EventType.FullSnapshot||e.type===u.EventType.IncrementalSnapshot&&e.data.source===u.IncrementalSource.Mutation||s.mutationBuffers.forEach((function(e){return e.unfreeze()})),t(D?D(e):e,r),e.type===u.EventType.FullSnapshot)Y=e,K=0;else if(e.type===u.EventType.IncrementalSnapshot){if(e.data.source===u.IncrementalSource.Mutation&&e.data.isAttachIframe)return;K++;var o=p&&K>=p,l=n&&e.timestamp-Y.timestamp>n;(o||l)&&i(!0)}};var q=function(e){r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.Mutation},e)}))},$=function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.Scroll},e)}))},Q=new c.IframeManager({mutationCb:q}),J=new d.ShadowDomManager({mutationCb:q,scrollCb:$,bypassOptions:{blockClass:m,blockSelector:g,maskTextClass:S,maskTextSelector:x,inlineStylesheet:T,maskInputOptions:G,maskTextFn:O,maskInputFn:N,recordCanvas:z,sampling:P,slimDOMOptions:X,iframeManager:Q},mirror:h});i=function(e){var t,n,i,c;void 0===e&&(e=!1),r(f({type:u.EventType.Meta,data:{href:window.location.href,width:l.getWindowWidth(),height:l.getWindowHeight()}}),e),s.mutationBuffers.forEach((function(e){return e.lock()}));var d=a.__read(o.snapshot(document,{blockClass:m,blockSelector:g,maskTextClass:S,maskTextSelector:x,inlineStylesheet:T,maskAllInputs:G,maskTextFn:O,slimDOM:X,recordCanvas:z,onSerialize:function(e){l.isIframeINode(e)&&Q.addIframe(e),l.hasShadowRoot(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){Q.attachIframe(e,t)},keepIframeSrcFn:Z}),2),p=d[0],v=d[1];if(!p)return console.warn("Failed to snapshot the document");h.map=v,r(f({type:u.EventType.FullSnapshot,data:{node:p,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(c=null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.parentElement)||void 0===c?void 0:c.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),s.mutationBuffers.forEach((function(e){return e.unlock()}))};try{var ee=[];ee.push(l.on("DOMContentLoaded",(function(){r(f({type:u.EventType.DomContentLoaded,data:{}}))})));var te=function(e){return s.initObservers({mutationCb:q,mousemoveCb:function(e,t){return r(f({type:u.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.MouseInteraction},e)}))},scrollCb:$,viewportResizeCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.ViewportResize},e)}))},inputCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.Input},e)}))},mediaInteractionCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.StyleDeclaration},e)}))},canvasMutationCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.CanvasMutation},e)}))},fontCb:function(e){return r(f({type:u.EventType.IncrementalSnapshot,data:a.__assign({source:u.IncrementalSource.Font},e)}))},blockClass:m,ignoreClass:b,maskTextClass:S,maskTextSelector:x,maskInputOptions:G,inlineStylesheet:T,sampling:P,recordCanvas:z,userTriggeredOnInput:B,collectFonts:W,doc:e,maskInputFn:N,maskTextFn:O,blockSelector:g,slimDOMOptions:X,mirror:h,iframeManager:Q,shadowDomManager:J,plugins:(null==H?void 0:H.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return r(f({type:u.EventType.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},R)};Q.addLoadListener((function(e){ee.push(te(e.contentDocument))}));var ne=function(){i(),ee.push(te(document))};return"interactive"===document.readyState||"complete"===document.readyState?ne():ee.push(l.on("load",(function(){r(f({type:u.EventType.Load,data:{}})),ne()}),window)),function(){ee.forEach((function(e){return e()}))}}catch(e){console.warn(e)}}t.default=p,p.addCustomEvent=function(e,t){if(!r)throw new Error("please add custom event after start recording");r(f({type:u.EventType.Custom,data:{tag:e,payload:t}}))},p.freezePage=function(){s.mutationBuffers.forEach((function(e){return e.freeze()}))},p.takeFullSnapshot=function(e){if(!i)throw new Error("please take full snapshot after start recording");i(e)},p.mirror=h},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},function(e,t,n){"use strict";var r=n(3),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,t.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=0,a=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,r,i,a,s=t||e.length,u=new Array(2*s);for(r=0,n=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if((a=o[i])>4)u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<s;)i=i<<6|63&e[n++],a--;a>1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=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}},function(e,t,n){"use strict";e.exports={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_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}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mutationBuffers=t.initScrollObserver=t.initObservers=t.initMutationObserver=t.INPUT_TAGS=void 0;var i=n(0),a=n(4),o=n(1),s=n(2),l=r(n(39)),u=[];t.mutationBuffers=u;var c="undefined"!=typeof CSSGroupingRule,d="undefined"!=typeof CSSMediaRule,f="undefined"!=typeof CSSSupportsRule,h="undefined"!=typeof CSSConditionRule;function p(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function v(e,t,n,r,i,a,o,s,c,d,f,h,p,v,m,y){var g,_,b,w=new l.default;u.push(w),w.init(e,n,r,i,a,o,s,c,d,f,h,t,p,v,m);var S=window.MutationObserver||window.__rrMutationObserver,k=null===(b=null===(_=null===(g=window)||void 0===g?void 0:g.Zone)||void 0===_?void 0:_.__symbol__)||void 0===b?void 0:b.call(_,"MutationObserver");k&&window[k]&&(S=window[k]);var x=new S(w.processMutations.bind(w));return x.observe(y,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),x}function m(e,t,n,r,i){if(!1===i.mouseInteraction)return function(){};var a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,l=[];return Object.keys(s.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(i){var a=i.toLowerCase(),u=function(t){return function(i){var a=p(i);if(!o.isBlocked(a,r)){var l=o.isTouchEvent(i)?i.changedTouches[0]:i;if(l){var u=n.getId(a),c=l.clientX,d=l.clientY;e({type:s.MouseInteractions[t],id:u,x:c,y:d})}}}}(i);l.push(o.on(a,u,t))})),function(){l.forEach((function(e){return e()}))}}function y(e,t,n,r,i){var a=o.throttle((function(i){var a=p(i);if(a&&!o.isBlocked(a,r)){var s=n.getId(a);if(a===t){var l=t.scrollingElement||t.documentElement;e({id:s,x:l.scrollLeft,y:l.scrollTop})}else e({id:s,x:a.scrollLeft,y:a.scrollTop})}}),i.scroll||100);return o.on("scroll",a,t)}function g(e,t){var n=i.__assign({},e);return t||delete n.userTriggered,n}t.initMutationObserver=v,t.initScrollObserver=y;var _=["INPUT","TEXTAREA","SELECT"];t.INPUT_TAGS=_;var b=new WeakMap;function w(e){return function(e,t){if(c&&e.parentRule instanceof CSSGroupingRule||d&&e.parentRule instanceof CSSMediaRule||f&&e.parentRule instanceof CSSSupportsRule||h&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}t.initObservers=function(e,t){var n,r;void 0===t&&(t={});var l=e.doc.defaultView;if(!l)return function(){};!function(e,t){var n=e.mutationCb,r=e.mousemoveCb,a=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,l=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,d=e.styleDeclarationCb,f=e.canvasMutationCb,h=e.fontCb;e.mutationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mutation&&t.mutation.apply(t,i.__spread(e)),n.apply(void 0,i.__spread(e))},e.mousemoveCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mousemove&&t.mousemove.apply(t,i.__spread(e)),r.apply(void 0,i.__spread(e))},e.mouseInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mouseInteraction&&t.mouseInteraction.apply(t,i.__spread(e)),a.apply(void 0,i.__spread(e))},e.scrollCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.scroll&&t.scroll.apply(t,i.__spread(e)),o.apply(void 0,i.__spread(e))},e.viewportResizeCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.viewportResize&&t.viewportResize.apply(t,i.__spread(e)),s.apply(void 0,i.__spread(e))},e.inputCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.input&&t.input.apply(t,i.__spread(e)),l.apply(void 0,i.__spread(e))},e.mediaInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mediaInteaction&&t.mediaInteaction.apply(t,i.__spread(e)),u.apply(void 0,i.__spread(e))},e.styleSheetRuleCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.styleSheetRule&&t.styleSheetRule.apply(t,i.__spread(e)),c.apply(void 0,i.__spread(e))},e.styleDeclarationCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.styleDeclaration&&t.styleDeclaration.apply(t,i.__spread(e)),d.apply(void 0,i.__spread(e))},e.canvasMutationCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.canvasMutation&&t.canvasMutation.apply(t,i.__spread(e)),f.apply(void 0,i.__spread(e))},e.fontCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.font&&t.font.apply(t,i.__spread(e)),h.apply(void 0,i.__spread(e))}}(e,t);var u,S,k,x,E,T,I,C,M,N=v(e.mutationCb,e.doc,e.blockClass,e.blockSelector,e.maskTextClass,e.maskTextSelector,e.inlineStylesheet,e.maskInputOptions,e.maskTextFn,e.maskInputFn,e.recordCanvas,e.slimDOMOptions,e.mirror,e.iframeManager,e.shadowDomManager,e.doc),O=function(e,t,n,r){if(!1===t.mousemove)return function(){};var i,a="number"==typeof t.mousemove?t.mousemove:50,l="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,u=[],c=o.throttle((function(t){var n=Date.now()-i;e(u.map((function(e){return e.timeOffset-=n,e})),t),u=[],i=null}),l),d=o.throttle((function(e){var t=p(e),n=o.isTouchEvent(e)?e.changedTouches[0]:e,a=n.clientX,l=n.clientY;i||(i=Date.now()),u.push({x:a,y:l,id:r.getId(t),timeOffset:Date.now()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?s.IncrementalSource.Drag:e instanceof MouseEvent?s.IncrementalSource.MouseMove:s.IncrementalSource.TouchMove)}),a,{trailing:!1}),f=[o.on("mousemove",d,n),o.on("touchmove",d,n),o.on("drag",d,n)];return function(){f.forEach((function(e){return e()}))}}(e.mousemoveCb,e.sampling,e.doc,e.mirror),R=m(e.mouseInteractionCb,e.doc,e.mirror,e.blockClass,e.sampling),D=y(e.scrollCb,e.doc,e.mirror,e.blockClass,e.sampling),A=(u=e.viewportResizeCb,S=-1,k=-1,x=o.throttle((function(){var e=o.getWindowHeight(),t=o.getWindowWidth();S===e&&k===t||(u({width:Number(t),height:Number(e)}),S=e,k=t)}),200),o.on("resize",x,window)),P=function(e,t,n,r,s,l,u,c,d){function f(e){var n=p(e),i=e.isTrusted||!1;if(!(!n||!n.tagName||_.indexOf(n.tagName)<0||o.isBlocked(n,r)||o.isSvBlocked(n))){var c=n.type;if(!n.classList.contains(s)){var f=n.value,v=!1;"radio"===c||"checkbox"===c?v=n.checked:(l[n.tagName.toLowerCase()]||l[c])&&(f=a.maskInputValue({maskInputOptions:l,tagName:n.tagName,type:c,value:f,maskInputFn:u})),h(n,g({text:f,isChecked:v,userTriggered:i},d));var m=n.name;"radio"===c&&m&&v&&t.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach((function(e){e!==n&&h(e,g({text:e.value,isChecked:!v,userTriggered:!1},d))}))}}}function h(t,r){var a=b.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){b.set(t,r);var o=n.getId(t);e(i.__assign(i.__assign({},r),{id:o}))}}var v=("last"===c.input?["change"]:["input","change"]).map((function(e){return o.on(e,f,t)})),m=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"]];return m&&m.set&&v.push.apply(v,i.__spread(y.map((function(e){return o.hookSetter(e[0],e[1],{set:function(){f({target:this})}})})))),function(){v.forEach((function(e){return e()}))}}(e.inputCb,e.doc,e.mirror,e.blockClass,e.ignoreClass,e.maskInputOptions,e.maskInputFn,e.sampling,e.userTriggeredOnInput),F=(E=e.mediaInteractionCb,T=e.blockClass,I=e.mirror,C=function(e){return function(t){var n=p(t);n&&!o.isBlocked(n,T)&&E({type:e,id:I.getId(n),currentTime:n.currentTime})}},M=[o.on("play",C(0)),o.on("pause",C(1)),o.on("seeked",C(2))],function(){M.forEach((function(e){return e()}))}),L=function(e,t,n){var r=t.CSSStyleSheet.prototype.insertRule;t.CSSStyleSheet.prototype.insertRule=function(t,i){var a=n.getId(this.ownerNode);return-1!==a&&e({id:a,adds:[{rule:t,index:i}]}),r.apply(this,arguments)};var a=t.CSSStyleSheet.prototype.deleteRule;t.CSSStyleSheet.prototype.deleteRule=function(t){var r=n.getId(this.ownerNode);return-1!==r&&e({id:r,removes:[{index:t}]}),a.apply(this,arguments)};var o={};c?o.CSSGroupingRule=t.CSSGroupingRule:(d&&(o.CSSMediaRule=t.CSSMediaRule),h&&(o.CSSConditionRule=t.CSSConditionRule),f&&(o.CSSSupportsRule=t.CSSSupportsRule));var s={};return Object.entries(o).forEach((function(t){var r=i.__read(t,2),a=r[0],o=r[1];s[a]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=function(t,r){var o=n.getId(this.parentStyleSheet.ownerNode);return-1!==o&&e({id:o,adds:[{rule:t,index:i.__spread(w(this),[r||0])}]}),s[a].insertRule.apply(this,arguments)},o.prototype.deleteRule=function(t){var r=n.getId(this.parentStyleSheet.ownerNode);return-1!==r&&e({id:r,removes:[{index:i.__spread(w(this),[t])}]}),s[a].deleteRule.apply(this,arguments)}})),function(){t.CSSStyleSheet.prototype.insertRule=r,t.CSSStyleSheet.prototype.deleteRule=a,Object.entries(o).forEach((function(e){var t=i.__read(e,2),n=t[0],r=t[1];r.prototype.insertRule=s[n].insertRule,r.prototype.deleteRule=s[n].deleteRule}))}}(e.styleSheetRuleCb,l,e.mirror),z=function(e,t,n){var r=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=function(t,i,a){var o,s,l=n.getId(null===(s=null===(o=this.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return-1!==l&&e({id:l,set:{property:t,value:i,priority:a},index:w(this.parentRule)}),r.apply(this,arguments)};var i=t.CSSStyleDeclaration.prototype.removeProperty;return t.CSSStyleDeclaration.prototype.removeProperty=function(t){var r,a,o=n.getId(null===(a=null===(r=this.parentRule)||void 0===r?void 0:r.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==o&&e({id:o,remove:{property:t},index:w(this.parentRule)}),i.apply(this,arguments)},function(){t.CSSStyleDeclaration.prototype.setProperty=r,t.CSSStyleDeclaration.prototype.removeProperty=i}}(e.styleDeclarationCb,l,e.mirror),j=e.recordCanvas?function(e,t,n,r){var a,s,l=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),u=[],c=function(a){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])return"continue";var s=o.patch(t.CanvasRenderingContext2D.prototype,a,(function(t){return function(){for(var s=this,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return o.isBlocked(this.canvas,n)||setTimeout((function(){var t=i.__spread(l);if("drawImage"===a&&t[0]&&t[0]instanceof HTMLCanvasElement){var n=t[0],o=n.getContext("2d"),u=null==o?void 0:o.getImageData(0,0,n.width,n.height),c=null==u?void 0:u.data;t[0]=JSON.stringify(c)}e({id:r.getId(s.canvas),property:a,args:t})}),0),t.apply(this,l)}}));u.push(s)}catch(n){var l=o.hookSetter(t.CanvasRenderingContext2D.prototype,a,{set:function(t){e({id:r.getId(this.canvas),property:a,args:[t],setter:!0})}});u.push(l)}};try{for(var d=i.__values(l),f=d.next();!f.done;f=d.next()){c(f.value)}}catch(e){a={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}return function(){u.forEach((function(e){return e()}))}}(e.canvasMutationCb,l,e.blockClass,e.mirror):function(){},B=e.collectFonts?function(e,t){var n=t.defaultView;if(!n)return function(){};var r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){var r=new a(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=o.patch(t.fonts,"add",(function(t){return function(n){return setTimeout((function(){var t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}}));return r.push((function(){n.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e.fontCb,e.doc):function(){},U=[];try{for(var W=i.__values(e.plugins),H=W.next();!H.done;H=W.next()){var V=H.value;U.push(V.observer(V.callback,l,V.options))}}catch(e){n={error:e}}finally{try{H&&!H.done&&(r=W.return)&&r.call(W)}finally{if(n)throw n.error}}return function(){N.disconnect(),O(),R(),D(),A(),P(),F(),L(),z(),j(),B(),U.forEach((function(e){return e()}))}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Replayer=void 0;var s,l=n(0),u=n(4),c=a(n(42)),d=n(43),f=n(14),h=n(44),p=n(2),v=n(1),m=o(n(46)),y=n(47),g=(null===(s=c)||void 0===s?void 0:s.default)||c,_={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function b(e){return e.type==p.EventType.IncrementalSnapshot&&(e.data.source==p.IncrementalSource.TouchMove||e.data.source==p.IncrementalSource.MouseInteraction&&e.data.type==p.MouseInteractions.TouchStart)}var w=function(){function e(e,t){var n=this;if(this.svScrollPosition={x:0,y:0},this.mouseTail=null,this.tailPositions=[],this.emitter=g(),this.legacy_missingNodeRetryMap={},this.cache=u.createCache(),this.imageMap=new Map,this.mirror=v.createMirror(),this.firstFullSnapshot=null,this.newDocumentQueue=[],this.mousePos=null,this.touchActive=null,!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");var r={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:_};this.config=Object.assign({},r,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(p.ReplayerEvents.Resize,this.handleResize),this.setupDom(),this.treeIndex=new v.TreeIndex,this.fragmentParentMap=new Map,this.elementStateMap=new Map,this.virtualStyleRulesMap=new Map,this.emitter.on(p.ReplayerEvents.Flush,(function(){var e,t,r,i,a,o,s=n.treeIndex.flush(),u=s.scrollMap,c=s.inputMap;n.fragmentParentMap.forEach((function(e,t){return n.restoreRealParent(t,e)}));try{for(var d=l.__values(n.virtualStyleRulesMap.keys()),f=d.next();!f.done;f=d.next()){var h=f.value;n.restoreNodeSheet(h)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}n.fragmentParentMap.clear(),n.elementStateMap.clear(),n.virtualStyleRulesMap.clear();try{for(var p=l.__values(u.values()),v=p.next();!v.done;v=p.next()){var m=v.value;n.applyScroll(m)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var y=l.__values(c.values()),g=y.next();!g.done;g=y.next()){m=g.value;n.applyInput(m)}}catch(e){a={error:e}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(a)throw a.error}}})),this.emitter.on(p.ReplayerEvents.PlayBack,(function(){n.firstFullSnapshot=null,n.mirror.reset()}));var i=new f.Timer([],(null==t?void 0:t.speed)||r.speed);i.svOnFrameCompleted=function(){n.emitter.emit(p.ReplayerEvents.FrameCompleted)},this.service=h.createPlayerService({events:e.map((function(e){return t&&t.unpackFn?t.unpackFn(e):e})).sort((function(e,t){return e.timestamp-t.timestamp})),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((function(e){n.emitter.emit(p.ReplayerEvents.StateChange,{player:e})})),this.speedService=h.createSpeedService({normalSpeed:-1,timer:i}),this.speedService.start(),this.speedService.subscribe((function(e){n.emitter.emit(p.ReplayerEvents.StateChange,{speed:e})}));var a=this.service.state.context.events.find((function(e){return e.type===p.EventType.Meta})),o=this.service.state.context.events.find((function(e){return e.type===p.EventType.FullSnapshot}));if(a){var s=a.data,c=s.width,d=s.height;setTimeout((function(){n.emitter.emit(p.ReplayerEvents.Resize,{width:c,height:d})}),0)}o&&setTimeout((function(){n.firstFullSnapshot||(n.firstFullSnapshot=o,n.rebuildFullSnapshot(o),n.iframe.contentWindow.scrollTo(o.data.initialOffset))}),1),this.service.state.context.events.find(b)&&this.mouse.classList.add("touch-device")}return Object.defineProperty(e.prototype,"timer",{get:function(){return this.service.state.context.timer},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t){return this.emitter.on(e,t),this},e.prototype.off=function(e,t){return this.emitter.off(e,t),this},e.prototype.setConfig=function(e){var t=this;Object.keys(e).forEach((function(n){t.config[n]=e[n]})),this.config.skipInactive?this.svFindNextUserInteractionEvent(null):this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))},e.prototype.getMetaData=function(){var e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}},e.prototype.getCurrentTime=function(){return this.timer.timeOffset+this.getTimeOffset()},e.prototype.getTimeOffset=function(){var e=this.service.state.context;return e.baselineTime-e.events[0].timestamp},e.prototype.getMirror=function(){return this.mirror},e.prototype.play=function(e){var t;void 0===e&&(e=0),this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null===(t=this.iframe.contentDocument)||void 0===t||t.getElementsByTagName("html")[0].classList.remove("rrweb-paused"),this.emitter.emit(p.ReplayerEvents.Start)},e.prototype.pause=function(e){var t;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null===(t=this.iframe.contentDocument)||void 0===t||t.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(p.ReplayerEvents.Pause)},e.prototype.resume=function(e){void 0===e&&(e=0),console.warn("The 'resume' will be departed in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(p.ReplayerEvents.Resume)},e.prototype.startLive=function(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})},e.prototype.addEvent=function(e){var t=this,n=this.config.unpackFn?this.config.unpackFn(e):e;b(n)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((function(){return t.service.send({type:"ADD_EVENT",payload:{event:n}})}))},e.prototype.enableInteract=function(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"},e.prototype.disableInteract=function(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"},e.prototype.resetCache=function(){this.cache=u.createCache()},e.prototype.setupDom=function(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");var e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(d.polyfill(this.iframe.contentWindow,this.iframe.contentDocument),v.polyfill(this.iframe.contentWindow))},e.prototype.handleResize=function(e){var t,n;this.iframe.style.display="inherit";try{for(var r=l.__values([this.mouseTail,this.iframe]),i=r.next();!i.done;i=r.next()){var a=i.value;a&&(a.setAttribute("width",String(e.width)),a.setAttribute("height",String(e.height)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.applyEventsSynchronously=function(e){var t,n,r;try{for(var i=l.__values(e),a=i.next();!a.done;a=i.next()){var o=a.value;switch(o.type){case p.EventType.DomContentLoaded:case p.EventType.Load:case p.EventType.Custom:continue;case p.EventType.Meta:(null===(r=o.data)||void 0===r?void 0:r.href)&&this.emitter.emit(p.ReplayerEvents.EventCast,o);case p.EventType.FullSnapshot:case p.EventType.Plugin:break;case p.EventType.IncrementalSnapshot:switch(o.data.source){case p.IncrementalSource.MediaInteraction:continue}}this.getCastFn(o,!0)()}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this.mousePos&&this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null,!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.backToNormal(),this.nextUserInteractionEvent=null,this.svFindNextUserInteractionEvent(e[e.length-1])},e.prototype.svFindNextUserInteractionEvent=function(e){var t,n;e=e||this.service.state.context.lastPlayedEvent||this.service.state.context.events[0];var r,i=this.service.state.context.events.slice(-1)[0];if(i.delay-e.delay>3e3*this.speedService.state.context.timer.speed&&(r=i),null!==e&&this.config.skipInactive&&!this.nextUserInteractionEvent){try{for(var a=l.__values(this.service.state.context.events),o=a.next();!o.done;o=a.next()){var s=o.value;if(!(s.timestamp<=e.timestamp)&&this.isUserInteraction(s)){r=null,s.delay-e.delay>3e3*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=s);break}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(null==this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=r),this.nextUserInteractionEvent){var u=this.nextUserInteractionEvent.delay-e.delay,c={speed:u>6e4?Math.min(Math.floor(u/4e3),300):14};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(p.ReplayerEvents.SkipStart,c)}}},e.prototype.getCastFn=function(e,t){var n,r=this;switch(void 0===t&&(t=!1),e.type){case p.EventType.DomContentLoaded:case p.EventType.Load:break;case p.EventType.Custom:n=function(){r.emitter.emit(p.ReplayerEvents.CustomEvent,e)};break;case p.EventType.Meta:n=function(){return r.emitter.emit(p.ReplayerEvents.Resize,{width:e.data.width,height:e.data.height})};break;case p.EventType.FullSnapshot:n=function(){if(r.firstFullSnapshot){if(r.firstFullSnapshot===e)return void(r.firstFullSnapshot=!0)}else r.firstFullSnapshot=!0;r.rebuildFullSnapshot(e,t),r.iframe.contentWindow.scrollTo(e.data.initialOffset),r.svScrollPosition={x:e.data.initialOffset.left,y:e.data.initialOffset.top}};break;case p.EventType.IncrementalSnapshot:n=function(){r.svSmoothScrollDetection(e,t),r.applyIncremental(e,t),t||(e===r.nextUserInteractionEvent&&(r.nextUserInteractionEvent=null,r.backToNormal()),r.svFindNextUserInteractionEvent(e))}}return function(){var i,a;n&&n();try{for(var o=l.__values(r.config.plugins||[]),s=o.next();!s.done;s=o.next()){s.value.handler(e,t,{replayer:r})}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}r.service.send({type:"CAST_EVENT",payload:{event:e}});var u=r.service.state.context.events.length-1;if(e===r.service.state.context.events[u]){var c=function(){u<r.service.state.context.events.length-1||(r.backToNormal(),r.service.send("END"),r.emitter.emit(p.ReplayerEvents.Finish))};e.type===p.EventType.IncrementalSnapshot&&e.data.source===p.IncrementalSource.MouseMove&&e.data.positions.length?setTimeout((function(){c()}),Math.max(0,50-e.data.positions[0].timeOffset)):c()}}},e.prototype.svFindEventOffsetByTime=function(e){for(var t=this.service.state.context.events,n=t.length,r=0;r<n;r++){if(!(t[r].timestamp<e))return r}return t.length-1},e.prototype.svSmoothScrollDetection=function(e,t){if(!t&&e.data.source===p.IncrementalSource.Scroll){for(var n=0,r=null,i=this.service.state.context.events,a=i.length,o=this.svFindEventOffsetByTime(e.timestamp-1e3);o<a;o++){var s=i[o];if(!(s.timestamp<e.timestamp-1e3)){if(s.timestamp>e.timestamp+1e3||s.timestamp>e.timestamp&&s.type===p.EventType.FullSnapshot)break;if(s.type===p.EventType.IncrementalSnapshot&&s.data.source===p.IncrementalSource.Scroll){if(null!=r){var l=r.data.y-s.data.y;if(l>200||l<-200){r=s;continue}}r=s,n++}}}e.data.svIsSmoothScrolling=n>=6}},e.prototype.rebuildFullSnapshot=function(e,t){var n,r,i=this;if(void 0===t&&(t=!1),!this.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&console.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};var a=[];this.mirror.map=u.rebuild(e.data.node,{doc:this.iframe.contentDocument,afterAppend:function(e){i.collectIframeAndAttachDocument(a,e)},cache:this.cache})[1];var o=function(e,t){if(s.attachDocumentToIframe(e,t),s.newDocumentQueue=s.newDocumentQueue.filter((function(t){return t!==e})),t.contentDocument){var n=t.contentDocument,r=n.documentElement,i=n.head;s.insertStyleRules(r,i)}},s=this;try{for(var c=l.__values(a),d=c.next();!d.done;d=c.next()){var f=d.value;o(f.mutationInQueue,f.builtNode)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}var h=this.iframe.contentDocument,v=h.documentElement,m=h.head;this.insertStyleRules(v,m),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(p.ReplayerEvents.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()},e.prototype.insertStyleRules=function(e,t){var n=document.createElement("style");e.insertBefore(n,t);var r=m.default(this.config.blockClass).concat(this.config.insertStyleRules);this.config.pauseAnimation&&r.push("html.rrweb-paused * { animation-play-state: paused !important; }");for(var i=0;i<r.length;i++)n.sheet.insertRule(r[i],i)},e.prototype.attachDocumentToIframe=function(e,t){var n,r,i=this,a=[];if(!t.contentDocument)for(var o=t.parentNode;o;){if(this.fragmentParentMap.has(o)){var s=o,c=this.fragmentParentMap.get(s);this.restoreRealParent(s,c);break}o=o.parentNode}u.buildNodeWithSN(e.node,{doc:t.contentDocument,map:this.mirror.map,hackCss:!0,skipChild:!1,afterAppend:function(e){i.collectIframeAndAttachDocument(a,e)},cache:this.cache});var d=function(e,t){if(f.attachDocumentToIframe(e,t),f.newDocumentQueue=f.newDocumentQueue.filter((function(t){return t!==e})),t.contentDocument){var n=t.contentDocument,r=n.documentElement,i=n.head;f.insertStyleRules(r,i)}},f=this;try{for(var h=l.__values(a),p=h.next();!p.done;p=h.next()){var v=p.value;d(v.mutationInQueue,v.builtNode)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}},e.prototype.collectIframeAndAttachDocument=function(e,t){if(v.isIframeINode(t)){var n=this.newDocumentQueue.find((function(e){return e.parentId===t.__sn.id}));n&&e.push({mutationInQueue:n,builtNode:t})}},e.prototype.waitForStylesheetLoad=function(){var e,t=this,n=null===(e=this.iframe.contentDocument)||void 0===e?void 0:e.head;if(n){var r,i=new Set,a=this.service.state,o=function(){a=t.service.state};this.emitter.on(p.ReplayerEvents.Start,o),this.emitter.on(p.ReplayerEvents.Pause,o);var s=function(){t.emitter.off(p.ReplayerEvents.Start,o),t.emitter.off(p.ReplayerEvents.Pause,o)};n.querySelectorAll('link[rel="stylesheet"]').forEach((function(e){e.sheet||(i.add(e),e.addEventListener("load",(function(){i.delete(e),0===i.size&&-1!==r&&(a.matches("playing")&&t.play(t.getCurrentTime()),t.emitter.emit(p.ReplayerEvents.LoadStylesheetEnd),r&&clearTimeout(r),s())})))})),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(p.ReplayerEvents.LoadStylesheetStart),r=setTimeout((function(){a.matches("playing")&&t.play(t.getCurrentTime()),r=-1,s()}),this.config.loadTimeout))}},e.prototype.preloadAllImages=function(){var e,t,n=this;this.service.state;var r=function(){n.service.state};this.emitter.on(p.ReplayerEvents.Start,r),this.emitter.on(p.ReplayerEvents.Pause,r);try{for(var i=l.__values(this.service.state.context.events),a=i.next();!a.done;a=i.next()){var o=a.value;if(o.type===p.EventType.IncrementalSnapshot&&o.data.source===p.IncrementalSource.CanvasMutation&&"drawImage"===o.data.property&&"string"==typeof o.data.args[0]&&!this.imageMap.has(o)){var s=document.createElement("canvas"),u=s.getContext("2d"),c=null==u?void 0:u.createImageData(s.width,s.height);null==c||c.data;JSON.parse(o.data.args[0]),null==u||u.putImageData(c,0,0)}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.applyIncremental=function(e,t){var n,r,i=this,a=e.data;switch(a.source){case p.IncrementalSource.Mutation:t&&(a.adds.forEach((function(e){return i.treeIndex.add(e)})),a.texts.forEach((function(e){return i.treeIndex.text(e)})),a.attributes.forEach((function(e){return i.treeIndex.attribute(e)})),a.removes.forEach((function(e){return i.treeIndex.remove(e,i.mirror)})));try{this.applyMutation(a,t)}catch(e){this.warn("Exception in mutation "+(e.message||e),a)}break;case p.IncrementalSource.Drag:case p.IncrementalSource.TouchMove:case p.IncrementalSource.MouseMove:if(t){var o=a.positions[a.positions.length-1];this.mousePos={x:o.x,y:o.y,id:o.id,debugData:a},this.svEmitMouseMoveEvent(o)}else a.positions.forEach((function(n){var r={doAction:function(){i.moveAndHover(n.x,n.y,n.id,t,a),i.svEmitMouseMoveEvent(n)},delay:n.timeOffset+e.timestamp-i.service.state.context.baselineTime};i.timer.addAction(r)})),this.timer.addAction({doAction:function(){},delay:e.delay-(null===(n=a.positions[0])||void 0===n?void 0:n.timeOffset)});break;case p.IncrementalSource.MouseInteraction:if(-1===a.id)break;var s=new Event(p.MouseInteractions[a.type].toLowerCase());if(!(w=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);this.emitter.emit(p.ReplayerEvents.MouseInteraction,{type:a.type,target:w,position:{x:a.x,y:a.y}});var u=this.config.triggerFocus;switch(a.type){case p.MouseInteractions.Blur:"blur"in w&&w.blur();break;case p.MouseInteractions.Focus:u&&w.focus&&w.focus({preventScroll:!0});break;case p.MouseInteractions.Click:case p.MouseInteractions.TouchStart:case p.MouseInteractions.TouchEnd:t?(a.type===p.MouseInteractions.TouchStart?this.touchActive=!0:a.type===p.MouseInteractions.TouchEnd&&(this.touchActive=!1),this.mousePos={x:a.x,y:a.y,id:a.id,debugData:a},this.svEmitMouseMoveEvent({x:a.x,y:a.y})):(a.type===p.MouseInteractions.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(a.x,a.y,a.id,t,a),this.svEmitMouseMoveEvent({x:a.x,y:a.y}),a.type===p.MouseInteractions.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):a.type===p.MouseInteractions.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):a.type===p.MouseInteractions.TouchEnd&&this.mouse.classList.remove("touch-active"));break;case p.MouseInteractions.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:w.dispatchEvent(s)}break;case p.IncrementalSource.Scroll:if(-1===a.id)break;if(t){this.treeIndex.scroll(a);break}this.applyScroll(a);break;case p.IncrementalSource.ViewportResize:this.emitter.emit(p.ReplayerEvents.Resize,{width:a.width,height:a.height});break;case p.IncrementalSource.Input:if(-1===a.id)break;if(t){this.treeIndex.input(a);break}this.applyInput(a);break;case p.IncrementalSource.MediaInteraction:if(!(w=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);var c=w;try{a.currentTime&&(c.currentTime=a.currentTime),1===a.type&&c.pause(),0===a.type&&c.play()}catch(e){this.config.showWarning&&console.warn("Failed to replay media interactions: "+(e.message||e))}break;case p.IncrementalSource.StyleSheetRule:if(!(w=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);var d,f=w,h=w.parentNode,v=this.fragmentParentMap.has(h),m=v?null:f.sheet;m||(this.virtualStyleRulesMap.has(w)?d=this.virtualStyleRulesMap.get(w):(d=[],this.virtualStyleRulesMap.set(w,d))),a.adds&&a.adds.forEach((function(e){var t=e.rule,n=e.index;if(m)try{if(Array.isArray(n)){var r=y.getPositionsAndIndex(n),i=r.positions,a=r.index;y.getNestedRule(m.cssRules,i).insertRule(t,a)}else{a=void 0===n?void 0:Math.min(n,m.cssRules.length);m.insertRule(t,a)}}catch(e){}else null==d||d.push({cssText:t,index:n,type:y.StyleRuleType.Insert})})),a.removes&&a.removes.forEach((function(e){var t=e.index;if(v)null==d||d.push({index:t,type:y.StyleRuleType.Remove});else try{if(Array.isArray(t)){var n=y.getPositionsAndIndex(t),r=n.positions,i=n.index;y.getNestedRule(m.cssRules,r).deleteRule(i||0)}else null==m||m.deleteRule(t)}catch(e){}}));break;case p.IncrementalSource.StyleDeclaration:if(!(w=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);f=w;var g=w.parentNode,_=this.fragmentParentMap.has(g)?null:f.sheet,b=[];if(_||(this.virtualStyleRulesMap.has(w)?b=this.virtualStyleRulesMap.get(w):(b=[],this.virtualStyleRulesMap.set(w,b))),a.set)if(_)y.getNestedRule(_.rules,a.index).style.setProperty(a.set.property,a.set.value,a.set.priority);else b.push(l.__assign({type:y.StyleRuleType.SetProperty,index:a.index},a.set));if(a.remove)if(_)y.getNestedRule(_.rules,a.index).style.removeProperty(a.remove.property);else b.push(l.__assign({type:y.StyleRuleType.RemoveProperty,index:a.index},a.remove));break;case p.IncrementalSource.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;var w;if(!(w=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);try{var S=w.getContext("2d");if(a.setter)return void(S[a.property]=a.args[0]);var k=S[a.property];if("drawImage"===a.property&&"string"==typeof a.args[0]){var x=this.imageMap.get(e);a.args[0]=x,k.apply(S,a.args)}else k.apply(S,a.args)}catch(e){this.warnCanvasMutationFailed(a,a.id,e)}break;case p.IncrementalSource.Font:try{var E=new FontFace(a.family,a.buffer?new Uint8Array(JSON.parse(a.fontSource)):a.fontSource,a.descriptors);null===(r=this.iframe.contentDocument)||void 0===r||r.fonts.add(E)}catch(e){this.config.showWarning&&console.warn(e)}}},e.prototype.svEmitMouseMoveEvent=function(e){0===e.x&&0===e.y||this.emitter.emit(p.ReplayerEvents.MouseMove,{x:e.x,y:e.y})},e.prototype.applyMutation=function(e,t){var n,r,i=this;e.removes.forEach((function(t){var n=i.mirror.getNode(t.id);if(!n){if(e.removes.find((function(e){return e.id===t.parentId})))return;return i.warnNodeNotFound(e,t.id)}i.virtualStyleRulesMap.has(n)&&i.virtualStyleRulesMap.delete(n);var r=i.mirror.getNode(t.parentId);if(!r)return i.warnNodeNotFound(e,t.parentId);if(t.isShadow&&v.hasShadowRoot(r)&&(r=r.shadowRoot),i.mirror.removeNodeFromMap(n),r){var a=null,o="__sn"in r?i.fragmentParentMap.get(r):void 0;o&&o.contains(n)?r=o:i.fragmentParentMap.has(n)&&(a=i.fragmentParentMap.get(n),i.fragmentParentMap.delete(n),n=a);try{r.removeChild(n)}catch(t){if(!(t instanceof DOMException))throw t;i.warn("parent could not remove child in mutation",r,o,n,a,e)}}}));var a=l.__assign({},this.legacy_missingNodeRetryMap),o=[],s=function(e){var n,r;if(!i.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");var s=i.mirror.getNode(e.parentId);if(!s)return e.node.type===u.NodeType.Document?i.newDocumentQueue.push(e):o.push(e);var l=null;i.iframe.contentDocument.contains?l=i.iframe.contentDocument.contains(s):i.iframe.contentDocument.body.contains&&(l=i.iframe.contentDocument.body.contains(s));var c=(null===(r=(n=s).getElementsByTagName)||void 0===r?void 0:r.call(n,"iframe").length)>0;if(t&&l&&!v.isIframeINode(s)&&!c){var d=document.createDocumentFragment();for(i.mirror.map[e.parentId]=d,i.fragmentParentMap.set(d,s),i.storeState(s);s.firstChild;)d.appendChild(s.firstChild);s=d}e.node.isShadow&&v.hasShadowRoot(s)&&(s=s.shadowRoot);var f=null,h=null;if(e.previousId&&(f=i.mirror.getNode(e.previousId)),e.nextId&&(h=i.mirror.getNode(e.nextId)),function(e){var t=null;return e.nextId&&(t=i.mirror.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t}(e))return o.push(e);if(!e.node.rootId||i.mirror.getNode(e.node.rootId)){var p=e.node.rootId?i.mirror.getNode(e.node.rootId):i.iframe.contentDocument;if(v.isIframeINode(s))i.attachDocumentToIframe(e,s);else{var m=u.buildNodeWithSN(e.node,{doc:p,map:i.mirror.map,skipChild:!0,hackCss:!0,cache:i.cache});if(-1!==e.previousId&&-1!==e.nextId){if(f&&f.nextSibling&&f.nextSibling.parentNode)s.insertBefore(m,f.nextSibling);else if(h&&h.parentNode)s.contains(h)?s.insertBefore(m,h):s.insertBefore(m,null);else{if(s===p)for(;p.firstChild;)p.removeChild(p.firstChild);s.appendChild(m)}if(v.isIframeINode(m)){var y=i.newDocumentQueue.find((function(e){return e.parentId===m.__sn.id}));if(y&&(i.attachDocumentToIframe(y,m),i.newDocumentQueue=i.newDocumentQueue.filter((function(e){return e!==y}))),m.contentDocument){var g=m.contentDocument,_=g.documentElement,b=g.head;i.insertStyleRules(_,b)}}(e.previousId||e.nextId)&&i.legacy_resolveMissingNode(a,s,m,e)}else a[e.node.id]={node:m,mutation:e}}}};e.adds.forEach((function(e){s(e)}));for(var c=Date.now();o.length;){var d=v.queueToResolveTrees(o);if(o.length=0,Date.now()-c>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}try{for(var f=(n=void 0,l.__values(d)),h=f.next();!h.done;h=f.next()){var p=h.value;this.mirror.getNode(p.value.parentId)?v.iterateResolveTree(p,(function(e){s(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",p)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}Object.keys(a).length&&Object.assign(this.legacy_missingNodeRetryMap,a),e.texts.forEach((function(t){var n=i.mirror.getNode(t.id);if(!n){if(e.removes.find((function(e){return e.id===t.id})))return;return i.warnNodeNotFound(e,t.id)}i.fragmentParentMap.has(n)&&(n=i.fragmentParentMap.get(n)),n.textContent=t.value})),e.attributes.forEach((function(t){var n=i.mirror.getNode(t.id);if(!n){if(e.removes.find((function(e){return e.id===t.id})))return;return i.warnNodeNotFound(e,t.id)}for(var r in i.fragmentParentMap.has(n)&&(n=i.fragmentParentMap.get(n)),t.attributes)if("string"==typeof r){var a=t.attributes[r];if(null===a)n.removeAttribute(r);else if("string"==typeof a)try{n.setAttribute(r,a)}catch(e){i.config.showWarning&&console.warn("An error occurred may due to the checkout feature.",e)}else if("style"===r){var o=a,s=n;for(var l in o)if(!1===o[l])s.style.removeProperty(l);else if(o[l]instanceof Array){var u=o[l];s.style.setProperty(l,u[0],u[1])}else{var c=o[l];s.style.setProperty(l,c)}}}}))},e.prototype.applyScroll=function(e){var t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);if(t===this.iframe.contentDocument||1===e.id)this.svScrollPosition={x:e.x,y:e.y},this.svMousePosition&&this.moveAndHover(this.svMousePosition.x,this.svMousePosition.y,this.svMousePosition.id,!0,this.svMousePosition.debugData),this.iframe.contentWindow.scrollTo({top:e.y,left:e.x,behavior:e.svIsSmoothScrolling?"auto":"smooth"});else try{t.scrollTop=e.y,t.scrollLeft=e.x}catch(e){}},e.prototype.applyInput=function(e){var t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}},e.prototype.legacy_resolveMissingNode=function(e,t,n,r){var i=r.previousId,a=r.nextId,o=i&&e[i],s=a&&e[a];if(o){var l=o,u=l.node,c=l.mutation;t.insertBefore(u,n),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}if(s){var d=s;u=d.node,c=d.mutation;t.insertBefore(u,n.nextSibling),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}},e.prototype.moveAndHover=function(e,t,n,r,i){if(0!==e||0!==t){var a=this.mirror.getNode(n);if(!a)return this.debugNodeNotFound(i,n);this.svMousePosition={x:e,y:t,id:n,debugData:i},e+=this.svScrollPosition.x;var o=v.getBaseDimension(a,this.iframe),s=e*o.absoluteScale+o.x,l=t*o.absoluteScale+o.y;this.mouse.style.left=s+"px",this.mouse.style.top=l+"px",r||this.drawMouseTail({x:s,y:l}),this.hoverElements(a)}},e.prototype.drawMouseTail=function(e){var t=this;if(this.mouseTail){var n=!0===this.config.mouseTail?_:Object.assign({},_,this.config.mouseTail),r=n.lineCap,i=n.lineWidth,a=n.strokeStyle,o=n.duration,s=function(){if(t.mouseTail){var e=t.mouseTail.getContext("2d");e&&t.tailPositions.length&&(e.clearRect(0,0,t.mouseTail.width,t.mouseTail.height),e.beginPath(),e.lineWidth=i,e.lineCap=r,e.strokeStyle=a,e.moveTo(t.tailPositions[0].x,t.tailPositions[0].y),t.tailPositions.forEach((function(t){return e.lineTo(t.x,t.y)})),e.stroke())}};this.tailPositions.push(e),s(),setTimeout((function(){t.tailPositions=t.tailPositions.filter((function(t){return t!==e})),s()}),o/this.speedService.state.context.timer.speed)}},e.prototype.hoverElements=function(e){var t,n=function(){for(var t=[],n=e;n;)t.push(n),n=n.parentElement;return t}();null===(t=this.iframe.contentDocument)||void 0===t||t.querySelectorAll(".\\:hover").forEach((function(e){-1===n.indexOf(e)&&e.classList.remove(":hover")}));for(var r=e;r;)r.classList&&r.classList.add(":hover"),r=r.parentElement},e.prototype.isUserInteraction=function(e){return e.type===p.EventType.IncrementalSnapshot&&(e.data.source>p.IncrementalSource.Mutation&&e.data.source<=p.IncrementalSource.Input)},e.prototype.backToNormal=function(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(p.ReplayerEvents.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))},e.prototype.restoreRealParent=function(e,t){this.mirror.map[t.__sn.id]=t,t.__sn.type===u.NodeType.Element&&"textarea"===t.__sn.tagName&&e.textContent&&(t.value=e.textContent),t.appendChild(e),this.restoreState(t)},e.prototype.storeState=function(e){var t,n;if(e&&e.nodeType===e.ELEMENT_NODE){var r=e;(r.scrollLeft||r.scrollTop)&&this.elementStateMap.set(e,{scroll:[r.scrollLeft,r.scrollTop]}),"STYLE"===r.tagName&&y.storeCSSRules(r,this.virtualStyleRulesMap);var i=r.children;try{for(var a=l.__values(Array.from(i)),o=a.next();!o.done;o=a.next()){var s=o.value;this.storeState(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}},e.prototype.restoreState=function(e){var t,n;if(e.nodeType===e.ELEMENT_NODE){var r=e;if(this.elementStateMap.has(e)){var i=this.elementStateMap.get(e);i.scroll&&(r.scrollLeft=i.scroll[0],r.scrollTop=i.scroll[1]),this.elementStateMap.delete(e)}var a=r.children;try{for(var o=l.__values(Array.from(a)),s=o.next();!s.done;s=o.next()){var u=s.value;this.restoreState(u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}},e.prototype.restoreNodeSheet=function(e){var t=this.virtualStyleRulesMap.get(e);if("STYLE"===e.nodeName&&t){var n=e;y.applyVirtualStyleRulesToNode(t,n)}},e.prototype.warnNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.warn("Node with id '"+t+"' was previously removed. ",e):this.warn("Node with id '"+t+"' not found. ",e)},e.prototype.warnCanvasMutationFailed=function(e,t,n){this.warn("Has error on update canvas '"+t+"'",e,n)},e.prototype.debugNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.debug("[replayer]","Node with id '"+t+"' was previously removed. ",e):this.debug("[replayer]","Node with id '"+t+"' not found. ",e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showWarning&&console.warn.apply(console,l.__spread(["[replayer]"],e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showDebug&&console.log.apply(console,l.__spread(["[replayer]"],e))},e}();t.Replayer=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDelay=t.Timer=void 0;var r=n(2),i=function(){function e(e,t){void 0===e&&(e=[]),this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t}return e.prototype.addAction=function(e){var t=this.findActionIndex(e);this.actions.splice(t,0,e)},e.prototype.addActions=function(e){this.actions=this.actions.concat(e)},e.prototype.start=function(){this.timeOffset=0;var e=performance.now(),t=this.actions;t.sort((function(e,t){return e.delay-t.delay}));var n=this;this.raf=requestAnimationFrame((function r(){var i=performance.now();for(n.timeOffset+=(i-e)*n.speed,e=i;t.length;){var a=t[0];if(!(n.timeOffset>=a.delay))break;t.shift(),a.doAction()}n.svOnFrameCompleted&&n.svOnFrameCompleted(),(t.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(r))}))},e.prototype.clear=function(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0},e.prototype.setSpeed=function(e){this.speed=e},e.prototype.toggleLiveMode=function(e){this.liveMode=e},e.prototype.isActive=function(){return null!==this.raf},e.prototype.findActionIndex=function(e){for(var t=0,n=this.actions.length-1;t<=n;){var r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else{if(!(this.actions[r].delay>e.delay))return r+1;n=r-1}}return t},e}();t.Timer=i,t.addDelay=function(e,t){if(e.type===r.EventType.IncrementalSnapshot&&e.data.source===r.IncrementalSource.MouseMove){var n=e.data.positions[0].timeOffset,i=e.timestamp+n;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zlibSync=t.unzlibSync=t.strToU8=t.strFromU8=void 0;var r=Uint8Array,i=Uint16Array,a=Uint32Array,o=new r([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,0,0,0]),s=new r([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,0,0]),l=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var o=new a(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return[n,o]},c=u(o,2),d=c[0],f=c[1];d[28]=258,f[258]=28;for(var h=u(s,0),p=h[0],v=h[1],m=new i(32768),y=0;y<32768;++y){var g=(43690&y)>>>1|(21845&y)<<1;g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4,m[y]=((65280&g)>>>8|(255&g)<<8)>>>1}var _=function(e,t,n){for(var r=e.length,a=0,o=new i(t);a<r;++a)++o[e[a]-1];var s,l=new i(t);for(a=0;a<t;++a)l[a]=l[a-1]+o[a-1]<<1;if(n){s=new i(1<<t);var u=15-t;for(a=0;a<r;++a)if(e[a])for(var c=a<<4|e[a],d=t-e[a],f=l[e[a]-1]++<<d,h=f|(1<<d)-1;f<=h;++f)s[m[f]>>>u]=c}else for(s=new i(r),a=0;a<r;++a)s[a]=m[l[e[a]-1]++]>>>15-e[a];return s},b=new r(288);for(y=0;y<144;++y)b[y]=8;for(y=144;y<256;++y)b[y]=9;for(y=256;y<280;++y)b[y]=7;for(y=280;y<288;++y)b[y]=8;var w=new r(32);for(y=0;y<32;++y)w[y]=5;var S=_(b,9,0),k=_(b,9,1),x=_(w,5,0),E=_(w,5,1),T=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},I=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},C=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},M=function(e){return(e/8>>0)+(7&e&&1)},N=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var o=new(e instanceof i?i:e instanceof a?a:r)(n-t);return o.set(e.subarray(t,n)),o},O=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},R=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},D=function(e,t){for(var n=[],a=0;a<e.length;++a)e[a]&&n.push({s:a,f:e[a]});var o=n.length,s=n.slice();if(!o)return[new r(0),0];if(1==o){var l=new r(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var u=n[0],c=n[1],d=0,f=1,h=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};f!=o-1;)u=n[n[d].f<n[h].f?d++:h++],c=n[d!=f&&n[d].f<n[h].f?d++:h++],n[f++]={s:-1,f:u.f+c.f,l:u,r:c};var p=s[0].s;for(a=1;a<o;++a)s[a].s>p&&(p=s[a].s);var v=new i(p+1),m=A(n[f-1],v,0);if(m>t){a=0;var y=0,g=m-t,_=1<<g;for(s.sort((function(e,t){return v[t.s]-v[e.s]||e.f-t.f}));a<o;++a){var b=s[a].s;if(!(v[b]>t))break;y+=_-(1<<m-v[b]),v[b]=t}for(y>>>=g;y>0;){var w=s[a].s;v[w]<t?y-=1<<t-v[w]++-1:++a}for(;a>=0&&y;--a){var S=s[a].s;v[S]==t&&(--v[S],++y)}m=t}return[new r(v),m]},A=function(e,t,n){return-1==e.s?Math.max(A(e.l,t,n+1),A(e.r,t,n+1)):t[e.s]=n},P=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new i(++t),r=0,a=e[0],o=1,s=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==a&&l!=t)++o;else{if(!a&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(a),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(a);o=1,a=e[l]}return[n.subarray(0,r),t]},F=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},L=function(e,t,n){var r=n.length,i=M(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<r;++a)e[i+a+4]=n[a];return 8*(i+4+r)},z=function(e,t,n,r,a,u,c,d,f,h,p){O(t,p++,n),++a[256];for(var v=D(a,15),m=v[0],y=v[1],g=D(u,15),k=g[0],E=g[1],T=P(m),I=T[0],C=T[1],M=P(k),N=M[0],A=M[1],z=new i(19),j=0;j<I.length;++j)z[31&I[j]]++;for(j=0;j<N.length;++j)z[31&N[j]]++;for(var B=D(z,7),U=B[0],W=B[1],H=19;H>4&&!U[l[H-1]];--H);var V,Z,Y,G,X=h+5<<3,K=F(a,b)+F(u,w)+c,q=F(a,m)+F(u,k)+c+14+3*H+F(z,U)+(2*z[16]+3*z[17]+7*z[18]);if(X<=K&&X<=q)return L(t,p,e.subarray(f,f+h));if(O(t,p,1+(q<K)),p+=2,q<K){V=_(m,y,0),Z=m,Y=_(k,E,0),G=k;var $=_(U,W,0);O(t,p,C-257),O(t,p+5,A-1),O(t,p+10,H-4),p+=14;for(j=0;j<H;++j)O(t,p+3*j,U[l[j]]);p+=3*H;for(var Q=[I,N],J=0;J<2;++J){var ee=Q[J];for(j=0;j<ee.length;++j){var te=31&ee[j];O(t,p,$[te]),p+=U[te],te>15&&(O(t,p,ee[j]>>>5&127),p+=ee[j]>>>12)}}}else V=S,Z=b,Y=x,G=w;for(j=0;j<d;++j)if(r[j]>255){te=r[j]>>>18&31;R(t,p,V[te+257]),p+=Z[te+257],te>7&&(O(t,p,r[j]>>>23&31),p+=o[te]);var ne=31&r[j];R(t,p,Y[ne]),p+=G[ne],ne>3&&(R(t,p,r[j]>>>5&8191),p+=s[ne])}else R(t,p,V[r[j]]),p+=Z[r[j]];return R(t,p,V[256]),p+Z[256]},j=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new r(0),U=function(e,t,n,l,u){return function(e,t,n,l,u,c){var d=e.length,h=new r(l+d+5*(1+Math.floor(d/7e3))+u),p=h.subarray(l,h.length-u),m=0;if(!t||d<8)for(var y=0;y<=d;y+=65535){var g=y+65535;g<d?m=L(p,m,e.subarray(y,g)):(p[y]=c,m=L(p,m,e.subarray(y,d)))}else{for(var _=j[t-1],b=_>>>13,w=8191&_,S=(1<<n)-1,k=new i(32768),x=new i(S+1),E=Math.ceil(n/3),T=2*E,I=function(t){return(e[t]^e[t+1]<<E^e[t+2]<<T)&S},C=new a(25e3),O=new i(288),R=new i(32),D=0,A=0,P=(y=0,0),F=0,U=0;y<d;++y){var W=I(y),H=32767&y,V=x[W];if(k[H]=V,x[W]=H,F<=y){var Z=d-y;if((D>7e3||P>24576)&&Z>423){m=z(e,p,0,C,O,R,A,P,U,y-U,m),P=D=A=0,U=y;for(var Y=0;Y<286;++Y)O[Y]=0;for(Y=0;Y<30;++Y)R[Y]=0}var G=2,X=0,K=w,q=H-V&32767;if(Z>2&&W==I(y-q))for(var $=Math.min(b,Z)-1,Q=Math.min(32767,y),J=Math.min(258,Z);q<=Q&&--K&&H!=V;){if(e[y+G]==e[y+G-q]){for(var ee=0;ee<J&&e[y+ee]==e[y+ee-q];++ee);if(ee>G){if(G=ee,X=q,ee>$)break;var te=Math.min(q,ee-2),ne=0;for(Y=0;Y<te;++Y){var re=y-q+Y+32768&32767,ie=re-k[re]+32768&32767;ie>ne&&(ne=ie,V=re)}}}q+=(H=V)-(V=k[H])+32768&32767}if(X){C[P++]=268435456|f[G]<<18|v[X];var ae=31&f[G],oe=31&v[X];A+=o[ae]+s[oe],++O[257+ae],++R[oe],F=y+G,++D}else C[P++]=e[y],++O[e[y]]}}m=z(e,p,c,C,O,R,A,P,U,y-U,m),c||(m=L(p,m,B))}return N(h,0,l+M(m)+u)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,l,!u)};t.zlibSync=function(e,t){void 0===t&&(t={});var n=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)i+=r+=n[o];r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}}();n.p(e);var r=U(e,t,2,4);return function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)}(r,t),function(e,t,n){for(;n;++t)e[t]=n,n>>>=8}(r,r.length-4,n.d()),r},t.unzlibSync=function(e,t){return function(e,t,n){var i=e.length,a=!t||n,u=!n||n.i;n||(n={}),t||(t=new r(3*i));var c=function(e){var n=t.length;if(e>n){var i=new r(Math.max(2*n,e));i.set(t),t=i}},f=n.f||0,h=n.p||0,v=n.b||0,m=n.l,y=n.d,g=n.m,b=n.n,w=8*i;do{if(!m){n.f=f=I(e,h,1);var S=I(e,h+1,3);if(h+=3,!S){var x=e[(U=M(h)+4)-4]|e[U-3]<<8,O=U+x;if(O>i){if(u)throw"unexpected EOF";break}a&&c(v+x),t.set(e.subarray(U,O),v),n.b=v+=x,n.p=h=8*O;continue}if(1==S)m=k,y=E,g=9,b=5;else{if(2!=S)throw"invalid block type";var R=I(e,h,31)+257,D=I(e,h+10,15)+4,A=R+I(e,h+5,31)+1;h+=14;for(var P=new r(A),F=new r(19),L=0;L<D;++L)F[l[L]]=I(e,h+3*L,7);h+=3*D;var z=T(F),j=(1<<z)-1;if(!u&&h+A*(z+7)>w)break;var B=_(F,z,1);for(L=0;L<A;){var U,W=B[I(e,h,j)];if(h+=15&W,(U=W>>>4)<16)P[L++]=U;else{var H=0,V=0;for(16==U?(V=3+I(e,h,3),h+=2,H=P[L-1]):17==U?(V=3+I(e,h,7),h+=3):18==U&&(V=11+I(e,h,127),h+=7);V--;)P[L++]=H}}var Z=P.subarray(0,R),Y=P.subarray(R);g=T(Z),b=T(Y),m=_(Z,g,1),y=_(Y,b,1)}if(h>w)throw"unexpected EOF"}a&&c(v+131072);for(var G=(1<<g)-1,X=(1<<b)-1,K=g+b+18;u||h+K<w;){var q=(H=m[C(e,h)&G])>>>4;if((h+=15&H)>w)throw"unexpected EOF";if(!H)throw"invalid length/literal";if(q<256)t[v++]=q;else{if(256==q){m=null;break}var $=q-254;if(q>264){var Q=o[L=q-257];$=I(e,h,(1<<Q)-1)+d[L],h+=Q}var J=y[C(e,h)&X],ee=J>>>4;if(!J)throw"invalid distance";h+=15&J;Y=p[ee];if(ee>3){Q=s[ee];Y+=C(e,h)&(1<<Q)-1,h+=Q}if(h>w)throw"unexpected EOF";a&&c(v+131072);for(var te=v+$;v<te;v+=4)t[v]=t[v-Y],t[v+1]=t[v+1-Y],t[v+2]=t[v+2-Y],t[v+3]=t[v+3-Y];v=te}}n.l=m,n.p=h,n.b=v,m&&(f=1,n.m=g,n.d=y,n.n=b)}while(!f);return v==t.length?t:N(t,0,v)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)},t.strToU8=function(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new r(e.length+(e.length>>>1)),a=0,o=function(e){i[a++]=e},s=0;s<n;++s){if(a+5>i.length){var l=new r(a+8+(n-s<<1));l.set(i),i=l}var u=e.charCodeAt(s);u<128||t?o(u):u<2048?(o(192|u>>>6),o(128|63&u)):u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++s))>>>18),o(128|u>>>12&63),o(128|u>>>6&63),o(128|63&u)):(o(224|u>>>12),o(128|u>>>6&63),o(128|63&u))}return N(i,0,a)},t.strFromU8=function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MARK=void 0;t.MARK="v1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRecordConsolePlugin=t.PLUGIN_NAME=void 0;var r=n(0),i=n(1),a=n(50),o=n(51),s={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function l(e,t,n){var s,l,u,c=this,d=n.logger;if(!d)return function(){};u="string"==typeof d?t[d]:d;var f=0,h=[];if(n.level.includes("error")&&window){var p=window.onerror;window.onerror=function(t,r,i,s,l){p&&p.apply(c,[t,r,i,s,l]);var u=a.ErrorStackParser.parse(l).map((function(e){return e.toString()})),d=[o.stringify(t,n.stringifyOptions)];e({level:"error",trace:u,payload:d})},h.push((function(){window.onerror=p}))}try{for(var v=r.__values(n.level),m=v.next();!m.done;m=v.next()){var y=m.value;h.push(g(u,y))}}catch(e){s={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}return function(){h.forEach((function(e){return e()}))};function g(t,s){var l=this;return t[s]?i.patch(t,s,(function(t){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];t.apply(l,i);try{var c=a.ErrorStackParser.parse(new Error).map((function(e){return e.toString()})).splice(1),d=i.map((function(e){return o.stringify(e,n.stringifyOptions)}));++f<n.lengthThreshold?e({level:s,trace:c,payload:d}):f===n.lengthThreshold&&e({level:"warn",trace:[],payload:[o.stringify("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,r.__spread(["rrweb logger error:",e],i))}}})):function(){}}}t.PLUGIN_NAME="rrweb/console@1";t.getRecordConsolePlugin=function(e){return{name:"rrweb/console@1",observer:l,options:e?Object.assign({},s,e):s}}},,,,,,,,,,function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(28)),o=n(37);function s(e){var t=r(r({},e),{v:"v1"});return btoa(a.default.deflate(JSON.stringify(t),{to:"string",raw:!0}))}Number.prototype.isNaN||(Number.isNaN=isNaN),"function"!=typeof String.prototype.endsWith&&(String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)}),st.t.installDataTracker({featureName:"video",bind:function(e){window.smartlook&&"function"==typeof window.smartlook||o.record({emit:function(t){e(t,0)},blockClass:"svBlock",ignoreClass:"svIgnore",inlineStylesheet:!0,maskAllInputs:!0,userTriggeredOnInput:!0,packFn:s})},restart:function(){o.record.takeFullSnapshot(!0)}})},function(e,t,n){"use strict";var r={};(0,n(3).assign)(r,n(29),n(32),n(11)),e.exports=r},function(e,t,n){"use strict";var r=n(30),i=n(3),a=n(9),o=n(5),s=n(10),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});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 s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,c)))throw new Error(o[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}u.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=u,t.deflate=c,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},function(e,t,n){"use strict";var r,i=n(3),a=n(31),o=n(7),s=n(8),l=n(5);function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(e>4?9:0)}function d(e){for(var t=e.length;--t>=0;)e[t]=0}function f(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function h(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function m(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+258,h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===h&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<f);if(r=258-(f-a),a=f-258,r>o){if(e.match_start=t,o=r,r>=s)break;h=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function y(e){var t,n,r,a,l,u,c,d,f,h,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=p?r-p:0}while(--n);t=n=p;do{r=e.prev[--t],e.prev[t]=r>=p?r-p:0}while(--n);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,f=a,h=void 0,(h=u.avail_in)>f&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=o(u.adler,c,h,d):2===u.state.wrap&&(u.adler=s(u.adler,c,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function g(e,t){for(var n,r;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=m(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function _(e,t){for(var n,r,i;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=m(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(h(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&h(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function b(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function w(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),d(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}function S(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):u(e,-2)}function k(e){var t,n=S(e);return 0===n&&((t=e.state).window_size=2*t.w_size,d(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function x(e,t,n,r,a,o){if(!e)return-2;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return u(e,-2);8===r&&(r=9);var l=new w;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,k(e)}r=[new b(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,h(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)})),new b(4,4,8,4,g),new b(4,5,16,8,g),new b(4,6,32,32,g),new b(4,4,16,16,_),new b(8,16,32,32,_),new b(8,16,128,128,_),new b(8,32,128,256,_),new b(32,128,258,1024,_),new b(32,258,258,4096,_)],t.deflateInit=function(e,t){return x(e,t,8,15,8,0)},t.deflateInit2=x,t.deflateReset=k,t.deflateResetKeep=S,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||t>5||t<0)return e?u(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var m=8+(i.w_bits-8<<4)<<8;m|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=32),m+=31-m%31,i.status=113,v(i,m),0!==i.strstart&&(v(i,e.adler>>>16),v(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&f(e),i.pending+2<=i.pending_buf_size&&(p(i,255&e.adler),p(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(n)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var g=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=258-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==g&&4!==g||(i.status=666),1===g||3===g)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===g&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(d(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&e.adler),p(i,e.adler>>8&255),p(i,e.adler>>16&255),p(i,e.adler>>24&255),p(i,255&e.total_in),p(i,e.total_in>>8&255),p(i,e.total_in>>16&255),p(i,e.total_in>>24&255)):(v(i,e.adler>>>16),v(i,65535&e.adler)),f(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,a,s,l,u,c,f,h=t.length;if(!e||!e.state)return-2;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(e.adler=o(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(d(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,y(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,y(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,e.next_in=u,e.input=c,e.avail_in=l,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var r=n(3);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=[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],o=[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],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var c=new Array(60);i(c);var d=new Array(512);i(d);var f=new Array(256);i(f);var h=new Array(29);i(h);var p,v,m,y=new Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function b(e){return e<256?d[e]:d[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,w(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function k(e,t,n){S(e,n[2*t],n[2*t+1])}function x(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function E(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=x(a[s]++,s))}}function T(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function I(e){e.bi_valid>8?w(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function M(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&C(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!C(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function N(e,t,n){var r,i,s,l,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?k(e,i,t):(k(e,(s=f[i])+256+1,t),0!==(l=a[s])&&S(e,i-=h[s],l),k(e,s=b(--r),n),0!==(l=o[s])&&S(e,r-=y[s],l))}while(u<e.last_lit);k(e,256,t)}function O(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)M(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,M(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,v=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,v++),l[2*r+1]=a,r>u||(e.bl_count[a]++,o=0,r>=h&&(o=f[r-h]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==v){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,v-=2}while(v>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),E(a,u,e.bl_count)}function R(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function D(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)do{k(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),S(e,s-3,3)):(k(e,18,e.bl_tree),S(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}i(y);var A=!1;function P(e,t,n,i){S(e,0+(i?1:0),3),function(e,t,n,i){I(e),i&&(w(e,n),w(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}t._tr_init=function(e){A||(!function(){var e,t,n,r,i,l=new Array(16);for(n=0,r=0;r<28;r++)for(h[r]=n,e=0;e<1<<a[r];e++)f[n++]=r;for(f[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<o[r];e++)d[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<o[r]-7;e++)d[256+i++]=r;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,l[8]++;for(;e<=255;)u[2*e+1]=9,e++,l[9]++;for(;e<=279;)u[2*e+1]=7,e++,l[7]++;for(;e<=287;)u[2*e+1]=8,e++,l[8]++;for(E(u,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=x(e,5);p=new g(u,a,257,286,15),v=new g(c,o,0,30,15),m=new g(new Array(0),s,0,19,7)}(),A=!0),e.l_desc=new _(e.dyn_ltree,p),e.d_desc=new _(e.dyn_dtree,v),e.bl_desc=new _(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,T(e)},t._tr_stored_block=P,t._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),O(e,e.l_desc),O(e,e.d_desc),o=function(e){var t;for(R(e,e.dyn_ltree,e.l_desc.max_code),R(e,e.dyn_dtree,e.d_desc.max_code),O(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?P(e,t,n,r):4===e.strategy||a===i?(S(e,2+(r?1:0),3),N(e,u,c)):(S(e,4+(r?1:0),3),function(e,t,n,r){var i;for(S(e,t-257,5),S(e,n-1,5),S(e,r-4,4),i=0;i<r;i++)S(e,e.bl_tree[2*l[i]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),N(e,e.dyn_ltree,e.dyn_dtree)),T(e),r&&I(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(f[n]+256+1)]++,e.dyn_dtree[2*b(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){S(e,2,3),k(e,256,u),function(e){16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";var r=n(33),i=n(3),a=n(9),o=n(11),s=n(5),l=n(10),u=n(36),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(s[n])}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,u,d,f=this.strm,h=this.options.chunkSize,p=this.options.dictionary,v=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(h),f.next_out=0,f.avail_out=h),(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===o.Z_BUF_ERROR&&!0===v&&(n=o.Z_OK,v=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),u=f.next_out-l,d=a.buf2string(f.output,l),f.next_out=u,f.avail_out=h-u,u&&i.arraySet(f.output,f.output,l,u,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(v=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},function(e,t,n){"use strict";var r=n(3),i=n(7),a=n(8),o=n(34),s=n(35);function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function f(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e))):-2}function h(e,t){var n,r;return e?(r=new u,e.state=r,r.window=null,0!==(n=f(e,t))&&(e.state=null),n):-2}var p,v,m=!0;function y(e){if(m){var t;for(p=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),m=!1}e.lencode=p,e.lenbits=9,e.distcode=v,e.distbits=5}function g(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=d,t.inflateReset2=f,t.inflateResetKeep=c,t.inflateInit=function(e){return h(e,15)},t.inflateInit2=h,t.inflate=function(e,t){var n,u,c,d,f,h,p,v,m,_,b,w,S,k,x,E,T,I,C,M,N,O,R,D,A=0,P=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),f=e.next_out,c=e.output,p=e.avail_out,d=e.next_in,u=e.input,h=e.avail_in,v=n.hold,m=n.bits,_=h,b=p,O=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;m<16;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(2&n.wrap&&35615===v){n.check=0,P[0]=255&v,P[1]=v>>>8&255,n.check=a(n.check,P,2,0),v=0,m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=30;break}if(m-=4,N=8+(15&(v>>>=4)),0===n.wbits)n.wbits=N;else if(N>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<N,e.adler=n.check=1,n.mode=512&v?10:12,v=0,m=0;break;case 2:for(;m<16;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(n.flags=v,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(P[0]=255&v,P[1]=v>>>8&255,n.check=a(n.check,P,2,0)),v=0,m=0,n.mode=3;case 3:for(;m<32;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}n.head&&(n.head.time=v),512&n.flags&&(P[0]=255&v,P[1]=v>>>8&255,P[2]=v>>>16&255,P[3]=v>>>24&255,n.check=a(n.check,P,4,0)),v=0,m=0,n.mode=4;case 4:for(;m<16;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(P[0]=255&v,P[1]=v>>>8&255,n.check=a(n.check,P,2,0)),v=0,m=0,n.mode=5;case 5:if(1024&n.flags){for(;m<16;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(P[0]=255&v,P[1]=v>>>8&255,n.check=a(n.check,P,2,0)),v=0,m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>h&&(w=h),w&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,u,d,w,N)),512&n.flags&&(n.check=a(n.check,u,w,d)),h-=w,d+=w,n.length-=w),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===h)break e;w=0;do{N=u[d+w++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N))}while(N&&w<h);if(512&n.flags&&(n.check=a(n.check,u,w,d)),h-=w,d+=w,N)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===h)break e;w=0;do{N=u[d+w++],n.head&&N&&n.length<65536&&(n.head.comment+=String.fromCharCode(N))}while(N&&w<h);if(512&n.flags&&(n.check=a(n.check,u,w,d)),h-=w,d+=w,N)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;m<16;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(v!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=0,m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;m<32;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}e.adler=n.check=l(v),v=0,m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=f,e.avail_out=p,e.next_in=d,e.avail_in=h,n.hold=v,n.bits=m,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){v>>>=7&m,m-=7&m,n.mode=27;break}for(;m<3;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}switch(n.last=1&v,m-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===t){v>>>=2,m-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}v>>>=2,m-=2;break;case 14:for(v>>>=7&m,m-=7&m;m<32;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&v,v=0,m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(w=n.length){if(w>h&&(w=h),w>p&&(w=p),0===w)break e;r.arraySet(c,u,d,w,f),h-=w,d+=w,p-=w,f+=w,n.length-=w;break}n.mode=12;break;case 17:for(;m<14;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(n.nlen=257+(31&v),v>>>=5,m-=5,n.ndist=1+(31&v),v>>>=5,m-=5,n.ncode=4+(15&v),v>>>=4,m-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;m<3;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}n.lens[F[n.have++]]=7&v,v>>>=3,m-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},O=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,O){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;E=(A=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&A,!((x=A>>>24)<=m);){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(T<16)v>>>=x,m-=x,n.lens[n.have++]=T;else{if(16===T){for(D=x+2;m<D;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(v>>>=x,m-=x,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}N=n.lens[n.have-1],w=3+(3&v),v>>>=2,m-=2}else if(17===T){for(D=x+3;m<D;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}m-=x,N=0,w=3+(7&(v>>>=x)),v>>>=3,m-=3}else{for(D=x+7;m<D;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}m-=x,N=0,w=11+(127&(v>>>=x)),v>>>=7,m-=7}if(n.have+w>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=N}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},O=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,O){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},O=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,O){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(h>=6&&p>=258){e.next_out=f,e.avail_out=p,e.next_in=d,e.avail_in=h,n.hold=v,n.bits=m,o(e,b),f=e.next_out,c=e.output,p=e.avail_out,d=e.next_in,u=e.input,h=e.avail_in,v=n.hold,m=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;E=(A=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&A,!((x=A>>>24)<=m);){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(E&&0==(240&E)){for(I=x,C=E,M=T;E=(A=n.lencode[M+((v&(1<<I+C)-1)>>I)])>>>16&255,T=65535&A,!(I+(x=A>>>24)<=m);){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}v>>>=I,m-=I,n.back+=I}if(v>>>=x,m-=x,n.back+=x,n.length=T,0===E){n.mode=26;break}if(32&E){n.back=-1,n.mode=12;break}if(64&E){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&E,n.mode=22;case 22:if(n.extra){for(D=n.extra;m<D;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,m-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;E=(A=n.distcode[v&(1<<n.distbits)-1])>>>16&255,T=65535&A,!((x=A>>>24)<=m);){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(0==(240&E)){for(I=x,C=E,M=T;E=(A=n.distcode[M+((v&(1<<I+C)-1)>>I)])>>>16&255,T=65535&A,!(I+(x=A>>>24)<=m);){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}v>>>=I,m-=I,n.back+=I}if(v>>>=x,m-=x,n.back+=x,64&E){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&E,n.mode=24;case 24:if(n.extra){for(D=n.extra;m<D;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,m-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break e;if(w=b-p,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,S=n.wsize-w):S=n.wnext-w,w>n.length&&(w=n.length),k=n.window}else k=c,S=f-n.offset,w=n.length;w>p&&(w=p),p-=w,n.length-=w;do{c[f++]=k[S++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===p)break e;c[f++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;m<32;){if(0===h)break e;h--,v|=u[d++]<<m,m+=8}if(b-=p,e.total_out+=b,n.total+=b,b&&(e.adler=n.check=n.flags?a(n.check,c,b,f-b):i(n.check,c,b,f-b)),b=p,(n.flags?v:l(v))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=0,m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;m<32;){if(0===h)break e;h--,v+=u[d++]<<m,m+=8}if(v!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=0,m=0}n.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=f,e.avail_out=p,e.next_in=d,e.avail_in=h,n.hold=v,n.bits=m,(n.wsize||b!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&g(e,e.output,e.next_out,b-e.avail_out)?(n.mode=31,-4):(_-=e.avail_in,b-=e.avail_out,e.total_in+=_,e.total_out+=b,n.total+=b,n.wrap&&b&&(e.adler=n.check=n.flags?a(n.check,c,b,e.next_out-b):i(n.check,c,b,e.next_out-b)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===_&&0===b||4===t)&&0===O&&(O=-5),O)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,t,r,0)!==n.check?-3:g(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l,u,c,d,f,h,p,v,m,y,g,_,b,w,S,k,x,E,T;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),a=e.next_out,T=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,v=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),_=v[h&y];t:for(;;){if(h>>>=b=_>>>24,p-=b,0===(b=_>>>16&255))T[a++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=v[(65535&_)+(h&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&_,(b&=15)&&(p<b&&(h+=E[r++]<<p,p+=8),w+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),_=m[h&g];n:for(;;){if(h>>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=m[(65535&_)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&_,p<(b&=15)&&(h+=E[r++]<<p,(p+=8)<b&&(h+=E[r++]<<p,p+=8)),(S+=h&(1<<b)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=b,p-=b,S>(b=a-o)){if((b=S-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,x=f,0===d){if(k+=u-b,b<w){w-=b;do{T[a++]=f[k++]}while(--b);k=a-S,x=T}}else if(d<b){if(k+=u+d-b,(b-=d)<w){w-=b;do{T[a++]=f[k++]}while(--b);if(k=0,d<w){w-=b=d;do{T[a++]=f[k++]}while(--b);k=a-S,x=T}}}else if(k+=d-b,b<w){w-=b;do{T[a++]=f[k++]}while(--b);k=a-S,x=T}for(;w>2;)T[a++]=x[k++],T[a++]=x[k++],T[a++]=x[k++],w-=3;w&&(T[a++]=x[k++],w>1&&(T[a++]=x[k++]))}else{k=a-S;do{T[a++]=T[k++],T[a++]=T[k++],T[a++]=T[k++],w-=3}while(w>2);w&&(T[a++]=T[k++],w>1&&(T[a++]=T[k++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,h&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=h,n.bits=p}},function(e,t,n){"use strict";var r=n(3),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,u,c,d,f){var h,p,v,m,y,g,_,b,w,S=f.bits,k=0,x=0,E=0,T=0,I=0,C=0,M=0,N=0,O=0,R=0,D=null,A=0,P=new r.Buf16(16),F=new r.Buf16(16),L=null,z=0;for(k=0;k<=15;k++)P[k]=0;for(x=0;x<l;x++)P[t[n+x]]++;for(I=S,T=15;T>=1&&0===P[T];T--);if(I>T&&(I=T),0===T)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(E=1;E<T&&0===P[E];E++);for(I<E&&(I=E),N=1,k=1;k<=15;k++)if(N<<=1,(N-=P[k])<0)return-1;if(N>0&&(0===e||1!==T))return-1;for(F[1]=0,k=1;k<15;k++)F[k+1]=F[k]+P[k];for(x=0;x<l;x++)0!==t[n+x]&&(d[F[t[n+x]]++]=x);if(0===e?(D=L=d,g=19):1===e?(D=i,A-=257,L=a,z-=257,g=256):(D=o,L=s,g=-1),R=0,x=0,k=E,y=c,C=I,M=0,v=-1,m=(O=1<<I)-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){_=k-M,d[x]<g?(b=0,w=d[x]):d[x]>g?(b=L[z+d[x]],w=D[A+d[x]]):(b=96,w=0),h=1<<k-M,E=p=1<<C;do{u[y+(R>>M)+(p-=h)]=_<<24|b<<16|w|0}while(0!==p);for(h=1<<k-1;R&h;)h>>=1;if(0!==h?(R&=h-1,R+=h):R=0,x++,0==--P[k]){if(k===T)break;k=t[n+d[x]]}if(k>I&&(R&m)!==v){for(0===M&&(M=I),y+=E,N=1<<(C=k-M);C+M<T&&!((N-=P[C+M])<=0);)C++,N<<=1;if(O+=1<<C,1===e&&O>852||2===e&&O>592)return 1;u[v=R&m]=I<<24|C<<16|y-c|0}}return 0!==R&&(u[y+R]=k-M<<24|64<<16|0),f.bits=I,0}},function(e,t,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.utils=void 0;var o=n(38);Object.defineProperty(t,"addCustomEvent",{enumerable:!0,get:function(){return o.addCustomEvent}}),Object.defineProperty(t,"freezePage",{enumerable:!0,get:function(){return o.freezePage}});var s=n(48);Object.defineProperty(t,"pack",{enumerable:!0,get:function(){return s.pack}});var l=n(49);Object.defineProperty(t,"unpack",{enumerable:!0,get:function(){return l.unpack}});var u=n(17);Object.defineProperty(t,"PLUGIN_NAME",{enumerable:!0,get:function(){return u.PLUGIN_NAME}}),Object.defineProperty(t,"getRecordConsolePlugin",{enumerable:!0,get:function(){return u.getRecordConsolePlugin}});var c=n(52);Object.defineProperty(t,"getReplayConsolePlugin",{enumerable:!0,get:function(){return c.getReplayConsolePlugin}});var d=n(6);Object.defineProperty(t,"record",{enumerable:!0,get:function(){return d.default}});var f=n(2);Object.defineProperty(t,"EventType",{enumerable:!0,get:function(){return f.EventType}}),Object.defineProperty(t,"IncrementalSource",{enumerable:!0,get:function(){return f.IncrementalSource}}),Object.defineProperty(t,"MouseInteractions",{enumerable:!0,get:function(){return f.MouseInteractions}}),Object.defineProperty(t,"ReplayerEvents",{enumerable:!0,get:function(){return f.ReplayerEvents}});var h=n(13);Object.defineProperty(t,"Replayer",{enumerable:!0,get:function(){return h.Replayer}});var p=a(n(1));t.utils=p;var v=n(1);Object.defineProperty(t,"mirror",{enumerable:!0,get:function(){return v._mirror}})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.freezePage=t.addCustomEvent=t.utils=void 0;var s=o(n(6)),l=n(6);Object.defineProperty(t,"record",{enumerable:!0,get:function(){return l.default}});var u=n(13);Object.defineProperty(t,"Replayer",{enumerable:!0,get:function(){return u.Replayer}});var c=a(n(1));t.utils=c;var d=n(1);Object.defineProperty(t,"mirror",{enumerable:!0,get:function(){return d._mirror}});var f=n(2);Object.defineProperty(t,"EventType",{enumerable:!0,get:function(){return f.EventType}}),Object.defineProperty(t,"IncrementalSource",{enumerable:!0,get:function(){return f.IncrementalSource}}),Object.defineProperty(t,"MouseInteractions",{enumerable:!0,get:function(){return f.MouseInteractions}}),Object.defineProperty(t,"ReplayerEvents",{enumerable:!0,get:function(){return f.ReplayerEvents}});var h=s.default.addCustomEvent;t.addCustomEvent=h;var p=s.default.freezePage;t.freezePage=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),i=n(4),a=n(1);function o(e){return"__ln"in e}var s=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t},e.prototype.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&o(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&o(e.nextSibling)&&e.nextSibling.__ln.previous){n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++},e.prototype.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},e}(),l=function(e,t){return e+"@"+t};function u(e){return"__sn"in e}var c=function(){function e(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(e.processMutation),e.emit()},this.emit=function(){var t,n,o,l;if(!e.frozen&&!e.locked){for(var u=[],c=new s,d=function(t){for(var n=t,r=i.IGNORED_NODE;r===i.IGNORED_NODE;)r=(n=n&&n.nextSibling)&&e.mirror.getId(n);return r},p=function(t){var n,r=t.getRootNode?null===(n=t.getRootNode())||void 0===n?void 0:n.host:null,o=!(e.doc.contains(t)||r instanceof Node&&e.doc.contains(r));if(t.parentNode&&!o){var s=i.isShadowRoot(t.parentNode)?e.mirror.getId(r):e.mirror.getId(t.parentNode),l=d(t);if(-1===s||-1===l)return c.addNode(t);var f=i.serializeNodeWithId(t,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,onSerialize:function(n){a.isIframeINode(n)&&e.iframeManager.addIframe(n),a.hasShadowRoot(t)&&e.shadowDomManager.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n)}});f&&u.push({parentId:s,nextId:l,node:f})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var v=r.__values(e.movedSet),m=v.next();!m.done;m=v.next()){var y=m.value;f(e.removes,y,e.mirror)&&!e.movedSet.has(y.parentNode)||p(y)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(t)throw t.error}}try{for(var g=r.__values(e.addedSet),_=g.next();!_.done;_=g.next()){y=_.value;h(e.droppedSet,y)||f(e.removes,y,e.mirror)?h(e.movedSet,y)?p(y):e.droppedSet.add(y):p(y)}}catch(e){o={error:e}}finally{try{_&&!_.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}for(var b=null;c.length;){var w=null;if(b){var S=e.mirror.getId(b.value.parentNode),k=d(b.value);-1!==S&&-1!==k&&(w=b)}if(!w)for(var x=c.length-1;x>=0;x--){var E=c.get(x);if(E){S=e.mirror.getId(E.value.parentNode),k=d(E.value);if(-1!==S&&-1!==k){w=E;break}}}if(!w){for(;c.head;)c.removeNode(c.head.value);break}b=w.previous,c.removeNode(w.value),p(w.value)}var T={texts:e.texts.map((function(t){return{id:e.mirror.getId(t.node),value:t.value}})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:u};(T.texts.length||T.attributes.length||T.removes.length||T.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.emissionCallback(T))}},this.processMutation=function(t){var n,o,s,u;if(!a.isIgnored(t.target))switch(t.type){case"characterData":var c=t.target.textContent;a.isBlocked(t.target,e.blockClass)||c===t.oldValue||e.texts.push({value:i.needMaskingText(t.target,e.maskTextClass,e.maskTextSelector)&&c?e.maskTextFn?e.maskTextFn(c):c.replace(/[\S]/g,"*"):c,node:t.target});break;case"attributes":var f=t.target;c=t.target.getAttribute(t.attributeName);if("value"===t.attributeName){if("hidden"===t.target.getAttribute("type"))return;c=i.maskInputValue({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:c,maskInputFn:e.maskInputFn})}if(a.isBlocked(t.target,e.blockClass)||c===t.oldValue)return;var h=e.attributes.find((function(e){return e.node===t.target}));if(h||(h={node:t.target,attributes:{}},e.attributes.push(h)),"style"===t.attributeName){var p=e.doc.createElement("span");t.oldValue&&p.setAttribute("style",t.oldValue),void 0!==h.attributes.style&&null!==h.attributes.style||(h.attributes.style={});var v=h.attributes.style;try{for(var m=r.__values(Array.from(f.style)),y=m.next();!y.done;y=m.next()){var g=y.value,_=f.style.getPropertyValue(g),b=f.style.getPropertyPriority(g);_===p.style.getPropertyValue(g)&&b===p.style.getPropertyPriority(g)||(v[g]=""===b?_:[_,b])}}catch(e){n={error:e}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}try{for(var w=r.__values(Array.from(p.style)),S=w.next();!S.done;S=w.next()){g=S.value;""!==f.style.getPropertyValue(g)&&f.style.getPropertyValue(g)||(v[g]=!1)}}catch(e){s={error:e}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(s)throw s.error}}}else h.attributes[t.attributeName]=i.transformAttribute(e.doc,t.target.tagName,t.attributeName,c);break;case"childList":t.addedNodes.forEach((function(n){return e.genAdds(n,t.target)})),t.removedNodes.forEach((function(n){var r=e.mirror.getId(n),o=i.isShadowRoot(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);a.isBlocked(t.target,e.blockClass)||a.isIgnored(n)||(e.addedSet.has(n)?(d(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&-1===r||a.isAncestorRemoved(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[l(r,o)]?d(e.movedSet,n):e.removes.push({parentId:o,id:r,isShadow:!!i.isShadowRoot(t.target)||void 0})),e.mapRemoves.push(n))}))}},this.genAdds=function(t,n){if(!n||!a.isBlocked(n,e.blockClass)){if(u(t)){if(a.isIgnored(t))return;e.movedSet.add(t);var r=null;n&&u(n)&&(r=n.__sn.id),r&&(e.movedMap[l(t.__sn.id,r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);a.isBlocked(t,e.blockClass)||t.childNodes.forEach((function(t){return e.genAdds(t)}))}}}return e.prototype.init=function(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p){this.blockClass=t,this.blockSelector=n,this.maskTextClass=r,this.maskTextSelector=i,this.inlineStylesheet=a,this.maskInputOptions=o,this.maskTextFn=s,this.maskInputFn=l,this.recordCanvas=u,this.slimDOMOptions=c,this.emissionCallback=e,this.doc=d,this.mirror=f,this.iframeManager=h,this.shadowDomManager=p},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1,this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1,this.emit()},e}();function d(e,t){e.delete(t),t.childNodes.forEach((function(t){return d(e,t)}))}function f(e,t,n){var r=t.parentNode;if(!r)return!1;var i=n.getId(r);return!!e.some((function(e){return e.id===i}))||f(e,r,n)}function h(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||h(e,n))}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeManager=void 0;var r=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)},e}();t.IframeManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowDomManager=void 0;var r=n(12),i=function(){function e(e){this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror}return e.prototype.addShadowRoot=function(e,t){r.initMutationObserver(this.mutationCb,t,this.bypassOptions.blockClass,this.bypassOptions.blockSelector,this.bypassOptions.maskTextClass,this.bypassOptions.maskTextSelector,this.bypassOptions.inlineStylesheet,this.bypassOptions.maskInputOptions,this.bypassOptions.maskTextFn,this.bypassOptions.maskInputFn,this.bypassOptions.recordCanvas,this.bypassOptions.slimDOMOptions,this.mirror,this.bypassOptions.iframeManager,this,e),r.initScrollObserver(this.scrollCb,e,this.mirror,this.bypassOptions.blockClass,this.bypassOptions.sampling)},e}();t.ShadowDomManager=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n)})),(e["*"]||[]).slice().map((function(e){e(t,n)}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(e,t){if(void 0===e&&(e=window),void 0===t&&(t=document),!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,r=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,o=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==t.body?(p.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function c(t,n){var r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(e){var t=u(e,"Y")&&c(e,"Y"),n=u(e,"X")&&c(e,"X");return t||n}function f(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}function h(t){var n,r,i,o,s=(a()-t.startTime)/468;o=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*o)),r=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,i),r===t.x&&i===t.y||e.requestAnimationFrame(h.bind(e,t))}function p(n,r,o){var l,u,c,d,f=a();n===t.body?(l=e,u=e.scrollX||e.pageXOffset,c=e.scrollY||e.pageYOffset,d=i.scroll):(l=n,u=n.scrollLeft,c=n.scrollTop,d=s),h({scrollable:l,method:d,startTime:f,startX:u,startY:c,x:r,y:o})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.discardPriorSnapshots=t.createSpeedService=t.createPlayerService=void 0;var r=n(0),i=n(45),a=n(2),o=n(14);function s(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.type===a.EventType.Meta&&r.timestamp<=t)return e.slice(n)}return e}t.discardPriorSnapshots=s,t.createPlayerService=function(e,t){var n=t.getCastFn,l=t.applyEventsSynchronously,u=t.emitter,c=i.createMachine({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:i.assign({lastPlayedEvent:function(e,t){return"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}}),recordTimeOffset:i.assign((function(e,t){var n=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),r.__assign(r.__assign({},e),{timeOffset:n,baselineTime:e.events[0].timestamp+n})})),play:function(e){var t,i,c,d,f,h=e.timer,p=e.events,v=e.baselineTime,m=e.lastPlayedEvent;h.clear();try{for(var y=r.__values(p),g=y.next();!g.done;g=y.next()){var _=g.value;o.addDelay(_,v)}}catch(e){t={error:e}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(t)throw t.error}}var b=s(p,v),w=null==m?void 0:m.timestamp;(null==m?void 0:m.type)===a.EventType.IncrementalSnapshot&&m.data.source===a.IncrementalSource.MouseMove&&(w=m.timestamp+(null===(f=m.data.positions[0])||void 0===f?void 0:f.timeOffset)),v<(w||0)&&u.emit(a.ReplayerEvents.PlayBack);var S=new Array,k=new Array,x=function(e){if(w&&w<v&&(e.timestamp<=w||e===m))return"continue";if(e.timestamp<v)S.push(e);else{var t=n(e,!1);k.push({doAction:function(){t(),u.emit(a.ReplayerEvents.EventCast,e)},delay:e.delay})}};try{for(var E=r.__values(b),T=E.next();!T.done;T=E.next()){x(T.value)}}catch(e){c={error:e}}finally{try{T&&!T.done&&(d=E.return)&&d.call(E)}finally{if(c)throw c.error}}l(S),u.emit(a.ReplayerEvents.Flush),h.addActions(k),h.start()},pause:function(e){e.timer.clear()},resetLastPlayedEvent:i.assign((function(e){return r.__assign(r.__assign({},e),{lastPlayedEvent:null})})),startLive:i.assign({baselineTime:function(e,t){return e.timer.toggleLiveMode(!0),e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now()}}),addEvent:i.assign((function(e,t){var i=e.baselineTime,s=e.timer,l=e.events;if("ADD_EVENT"===t.type){var c=t.payload.event;o.addDelay(c,i);var d=l.length-1;if(!l[d]||l[d].timestamp<=c.timestamp)l.push(c);else{for(var f=-1,h=0;h<=d;){var p=Math.floor((h+d)/2);l[p].timestamp<=c.timestamp?h=p+1:d=p-1}-1===f&&(f=h),l.splice(f,0,c)}var v=c.timestamp<i,m=n(c,v);v?m():s.isActive()&&s.addAction({doAction:function(){m(),u.emit(a.ReplayerEvents.EventCast,c)},delay:c.delay})}return r.__assign(r.__assign({},e),{events:l})}))}});return i.interpret(c)},t.createSpeedService=function(e){var t=i.createMachine({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:function(e,t){"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:i.assign({normalSpeed:function(e){return e.timer.speed}}),restoreSpeed:function(e){e.timer.setSpeed(e.normalSpeed)}}});return i.interpret(t)}},function(e,t,n){"use strict";function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.interpret=t.createMachine=t.assign=t.InterpreterStatus=void 0,t.InterpreterStatus=i,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(i||(t.InterpreterStatus=i={}));var a={type:"xstate.init"};function o(e){return void 0===e?[]:[].concat(e)}function s(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function l(e){return function(t){return e===t}}function u(e){return"string"==typeof e?{type:e}:e}function c(e,t){return{value:e,context:t,actions:[],changed:!1,matches:l(e)}}function d(e,t,n){var r=t,i=!1;return[e.filter((function(e){if("xstate.assign"===e.type){i=!0;var t=Object.assign({},r);return"function"==typeof e.assignment?t=e.assignment(r,n):Object.keys(e.assignment).forEach((function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](r,n):e.assignment[i]})),r=t,!1}return!0})),r,i]}t.assign=function(e){return{type:"xstate.assign",assignment:e}},t.createMachine=function(e,t){void 0===t&&(t={});var n=r(d(o(e.states[e.initial].entry).map((function(e){return s(e,t.actions)})),e.context,a),2),i=n[0],f=n[1],h={config:e,_options:t,initialState:{value:e.initial,actions:i,context:f,matches:l(e.initial)},transition:function(t,n){var i,a,f="string"==typeof t?{value:t,context:e.context}:t,p=f.value,v=f.context,m=u(n),y=e.states[p];if(y.on){var g=o(y.on[m.type]);try{for(var _=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),b=_.next();!b.done;b=_.next()){var w=b.value;if(void 0===w)return c(p,v);var S="string"==typeof w?{target:w}:w,k=S.target,x=S.actions,E=void 0===x?[]:x,T=S.cond,I=void 0===T?function(){return!0}:T,C=void 0===k,M=null!=k?k:p,N=e.states[M];if(I(v,m)){var O=r(d((C?o(E):[].concat(y.exit,E,N.entry).filter((function(e){return e}))).map((function(e){return s(e,h._options.actions)})),v,m),3),R=O[0],D=O[1],A=O[2],P=null!=k?k:p;return{value:P,context:D,actions:R,changed:k!==p||R.length>0||A,matches:l(P)}}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}}return c(p,v)}};return h};var f=function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))};t.interpret=function(e){var t=e.initialState,n=i.NotStarted,r=new Set,o={_machine:e,send:function(a){n===i.Running&&(t=e.transition(t,a),f(t,u(a)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var s="object"==typeof r?r:{context:e.config.context,value:r};t={value:s.value,actions:[],context:s.context,matches:l(s.value)}}return n=i.Running,f(t,a),o},stop:function(){return n=i.Stopped,r.clear(),o},get state(){return t},get status(){return n}};return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){return["."+e+" { background: currentColor }","noscript { display: none !important; }"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeCSSRules=t.getPositionsAndIndex=t.getNestedRule=t.applyVirtualStyleRulesToNode=t.StyleRuleType=void 0;var r,i=n(0);function a(e,t){var n=e[t[0]];return 1===t.length?n:a(n.cssRules[t[1]].cssRules,t.slice(2))}function o(e){var t=i.__spread(e),n=t.pop();return{positions:t,index:n}}t.StyleRuleType=r,function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"}(r||(t.StyleRuleType=r={})),t.getNestedRule=a,t.getPositionsAndIndex=o,t.applyVirtualStyleRulesToNode=function(e,t){var n=t.sheet;n&&e.forEach((function(e){if(e.type===r.Insert)try{if(Array.isArray(e.index)){var s=o(e.index),l=s.positions,u=s.index;a(n.cssRules,l).insertRule(e.cssText,u)}else n.insertRule(e.cssText,e.index)}catch(e){}else if(e.type===r.Remove)try{if(Array.isArray(e.index)){var c=o(e.index);l=c.positions,u=c.index;a(n.cssRules,l).deleteRule(u||0)}else n.deleteRule(e.index)}catch(e){}else if(e.type===r.Snapshot)!function(e,t){var n;try{var r=Array.from((null===(n=t.sheet)||void 0===n?void 0:n.cssRules)||[]).map((function(e){return e.cssText})),a=Object.entries(r).reverse(),o=r.length;a.forEach((function(n){var r,a=i.__read(n,2),s=a[0],l=a[1],u=e.indexOf(l);if(-1===u||u>o)try{null===(r=t.sheet)||void 0===r||r.deleteRule(Number(s))}catch(e){}o=u})),e.forEach((function(e,n){var r,i,a;try{(null===(i=null===(r=t.sheet)||void 0===r?void 0:r.cssRules[n])||void 0===i?void 0:i.cssText)!==e&&(null===(a=t.sheet)||void 0===a||a.insertRule(e,n))}catch(e){}}))}catch(e){}}(e.cssTexts,t);else if(e.type===r.SetProperty){a(n.cssRules,e.index).style.setProperty(e.property,e.value,e.priority)}else if(e.type===r.RemoveProperty){a(n.cssRules,e.index).style.removeProperty(e.property)}}))},t.storeCSSRules=function(e,t){var n;try{var i=Array.from((null===(n=e.sheet)||void 0===n?void 0:n.cssRules)||[]).map((function(e){return e.cssText}));t.set(e,[{type:r.Snapshot,cssTexts:i}])}catch(e){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pack=void 0;var r=n(0),i=n(15),a=n(16);t.pack=function(e){var t=r.__assign(r.__assign({},e),{v:a.MARK});return i.strFromU8(i.zlibSync(i.strToU8(JSON.stringify(t))),!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpack=void 0;var r=n(15),i=n(16);t.unpack=function(e){if("string"!=typeof e)return e;try{if((t=JSON.parse(e)).timestamp)return t}catch(e){}try{var t;if((t=JSON.parse(r.strFromU8(r.unzlibSync(r.strToU8(e,!0))))).v===i.MARK)return t;throw new Error("These events were packed with packer "+t.v+" which is incompatible with current packer "+i.MARK+".")}catch(e){throw console.error(e),new Error("Unknown data format.")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StackFrame=t.ErrorStackParser=void 0;var r=function(){function e(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}();t.StackFrame=r;var i=/(^|@)\S+:\d+/,a=/^\s*at .*(\S+:\d+|\(native\))/m,o=/^(eval@)?(\[native code])?$/,s={parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(a))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(a)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(t=n?t.replace(n[0],""):t).split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:i.pop()),o=i.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new r({functionName:o,fileName:s,lineNumber:a[1],columnNumber:a[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(o)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new r({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),i=n&&n[1]?n[1]:void 0,a=this.extractLocation(e.replace(t,""));return new r({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),i=[],a=2,o=n.length;a<o;a+=2){var s=t.exec(n[a]);s&&i.push(new r({fileName:s[2],lineNumber:parseFloat(s[1])}))}return i},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),i=[],a=0,o=n.length;a<o;a+=2){var s=t.exec(n[a]);s&&i.push(new r({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return i},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(i)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),i=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new r({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}),this)}};t.ErrorStackParser=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;var r=n(0);function i(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var n=e.localName;if(!n)break;n=n.toLowerCase();var r=e.parentElement,i=[];if(r.children&&r.children.length>0)for(var a=0;a<r.children.length;a++){var o=r.children[a];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===n&&i.push(o)}i.length>1&&(n+=":eq("+i.indexOf(e)+")"),t=n+(t?">"+t:""),e=r}return t}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}t.stringify=function(e,t){var n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);var o=[],s=[];return JSON.stringify(e,(function(e,t){if(o.length>0){var l=o.indexOf(this);~l?o.splice(l+1):o.push(this),~l?s.splice(l,1/0,e):s.push(e),~o.indexOf(t)&&(t=o[0]===t?"[Circular ~]":"[Circular ~."+s.slice(0,o.indexOf(t)).join(".")+"]")}else o.push(t);if(null==t)return t;if(function(e){if(a(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(a(e)&&function e(t,n){var i,o;if(0===n)return!0;var s=Object.keys(t);try{for(var l=r.__values(s),u=l.next();!u.done;u=l.next()){var c=u.value;if(a(t[c])&&e(t[c],n-1))return!0}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return!1}(e,n.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=t.slice(0,n.stringLengthLimit)+"...");return t}(t);if(t instanceof Event){var u={};for(var c in t){var d=t[c];Array.isArray(d)?u[c]=i(d.length?d[0]:null):u[c]=d}return u}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getReplayConsolePlugin=void 0;var r=n(0),i=n(17),a=n(2),o={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],replayLogger:void 0},s=function(){function e(e){this.config=Object.assign(o,e)}return e.prototype.getConsoleLogger=function(){var e,t,n=this,i={},a=function(e){i[e]="trace"===e?function(e){(console.log.__rrweb_original__?console.log.__rrweb_original__:console.log).apply(void 0,r.__spread(e.payload.map((function(e){return JSON.parse(e)})),[n.formatMessage(e)]))}:function(t){(console[e].__rrweb_original__?console[e].__rrweb_original__:console[e]).apply(void 0,r.__spread(t.payload.map((function(e){return JSON.parse(e)})),[n.formatMessage(t)]))}};try{for(var o=r.__values(this.config.level),s=o.next();!s.done;s=o.next()){a(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i},e.prototype.formatMessage=function(e){if(0===e.trace.length)return"";var t="\n\tat ";return t+=e.trace.join("\n\tat ")},e}();t.getReplayConsolePlugin=function(e){var t=(null==e?void 0:e.replayLogger)||new s(e).getConsoleLogger();return{handler:function(e,n,r){var o=null;if(e.type===a.EventType.IncrementalSnapshot&&e.data.source===a.IncrementalSource.Log?o=e.data:e.type===a.EventType.Plugin&&e.data.plugin===i.PLUGIN_NAME&&(o=e.data.payload),o)try{"function"==typeof t[o.level]&&t[o.level](o)}catch(e){r.replayer.config.showWarning&&console.warn(e)}}}}}]);
st.t.init({"sva":"G7g0N4A6e7B6","svs":"d07b8038-2a89-482b-b6d6-c48701193e47","endpoint":"https:\/\/svrdntfctn.com"});
window.SvOptOut = function () {
    var xhr = new XMLHttpRequest();
    xhr.withCredentials = true;

    xhr.addEventListener("readystatechange", function () {
        if (this.readyState === 4) {
            
            if(this.status == 200){
                alert('SalesViewer Tracking deactivated');
            }else{
                // todo
            }
        }
    });

    xhr.open("GET", "https://svrdntfctn.com/optOut?csrf=fa2961d2b599fc90cdc14bd9f19a8400");
    xhr.send();
}