PageSourceSearch

https://www.webair.ai/_next/static/chunks/07ya~~7u-xvt~.js?dpl=dpl_CUhBJ64MCkmL3iftm1cDprBoELpN

js webair.ai collected 2026-10-05 13:47:54 UTC 405,592 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67034,(e,t,r)=>{var i={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,s=l(e),o=s[0],a=s[1],c=new n((o+a)*3/4-a),u=0,h=a>0?o-4:o;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],o=0,a=i-n;o<a;o+=16383)s.push(function(e,t,i){for(var n,s=[],o=t;o<i;o+=3)n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===n?s.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&s.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)r[o]=s[o],i[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),n=r(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);var s=0|f(i,n),l=o(s),c=l.write(i,n);return c!==s&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return function(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),i}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return a.from(u,t,r);var d=function(e){if(a.isBuffer(e)){var t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|p(e))}function h(e){for(var t=e.length<0?0:0|p(e.length),r=o(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(e).length;default:if(n)return i?-1:C(e).length;t=(""+t).toLowerCase(),n=!0}}function d(e,t,r){var n,s,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",s=t;s<r;++s)n+=M[e[s]];return n}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=this,s=t,o=r,0===s&&o===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",s=0;s<i.length;s+=2)n+=String.fromCharCode(i[s]+256*i[s+1]);return n}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){var s;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,i,n){var s,o=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(s=r;s<a;s++)if(c(e,s)===c(t,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===l)return u*o}else -1!==u&&(s-=s-u),u=-1}else for(r+l>a&&(r=a-l),s=r;s>=0;s--){for(var h=!0,p=0;p<l;p++)if(c(e,s+p)!==c(t,p)){h=!1;break}if(h)return s}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),R(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!
vendor: 11,929 bytes, line 1
1a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,s=Math.min(r,i);n<s;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=a.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var s=e[r];if(R(s,Uint8Array)&&(s=a.from(s)),!a.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(i,n),n+=s.length}return i},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,i,n){if(R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var s=n-i,o=r-t,l=Math.min(s,o),c=this.slice(i,n),u=e.slice(t,r),h=0;h<l;++h)if(c[h]!==u[h]){s=c[h],o=u[h];break}return s<o?-1:+(o<s)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var s,o,a,l,c=e[n],u=null,h=c>239?4:c>223?3:c>191?2:1;if(n+h<=r)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(s=e[n+1]))==128&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[n+1],o=e[n+2],(192&s)==128&&(192&o)==128&&(l=(15&c)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[n+1],o=e[n+2],a=e[n+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=h}var p=i,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var d="",g=0;g<f;)d+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return d}function v(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,i,n,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function w(e,t,r,i,n,s){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,i,s){return t*=1,r>>>=0,s||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function S(e,t,r,i,s){return t*=1,r>>>=0,s||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}a.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,s,o,a,l,c,u,h,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var s=t.length;i>s/2&&(i=s/2);for(var o=0;o<i;++o){var a,l=parseInt(t.substr(2*o,2),16);if((a=l)!=a)break;e[r+o]=l}return o}(this,e,t,r);case"utf8":case"utf-8":return n=t,s=r,O(C(e,this.length-n),this,n,s);case"ascii":return o=t,a=r,O(E(e),this,o,a);case"latin1":case"binary":return function(e,t,r,i){return O(E(t),e,r,i)}(this,e,t,r);case"base64":return l=t,c=r,O(I(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,h=r,O(function(e,t){for(var r,i,n=[],s=0;s<e.length&&!((t-=2)<0);++s)i=(r=e.charCodeAt(s))>>8,n.push(r%256),n.push(i);return n}(e,this.length-u),this,u,h);default:if(f)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,a.prototype),i},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},a.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=t,n=1,s=this[e+--i];i>0&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;b(this,e,t,r,n,0)}var s=1,o=0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;b(this,e,t,r,n,0)}var s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);b(this,e,t,r,n-1,-n)}var s=0,o=1,a=0;for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);b(this,e,t,r,n-1,-n)}var s=r-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,i){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var s=n-1;s>=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},a.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,s=e.charCodeAt(0);("utf8"===i&&s<128||"latin1"===i)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;
1else{var o=a.isBuffer(e)?e:a.from(e,i),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%l]}return this};var x=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,i=e.length,n=null,s=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function E(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function I(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function R(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var M=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,i,n){var s,o,a=8*n-i-1,l=(1<<a)-1,c=l>>1,u=-7,h=r?n-1:0,p=r?-1:1,f=e[t+h];for(h+=p,s=f&(1<<-u)-1,f>>=-u,u+=a;u>0;s=256*s+e[t+h],h+=p,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+e[t+h],h+=p,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),s-=c}return(f?-1:1)*o*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var o,a,l,c=8*s-n-1,u=(1<<c)-1,h=u>>1,p=5960464477539062e-23*(23===n),f=i?0:s-1,d=i?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+h>=1?t+=p/l:t+=p*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(t*l-1)*Math.pow(2,n),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,n),o=0));n>=8;e[r+f]=255&a,f+=d,a/=256,n-=8);for(o=o<<n|a,c+=n;c>0;e[r+f]=255&o,f+=d,o/=256,c-=8);e[r+f-d]|=128*g}}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},o=!0;try{i[e](r,r.exports,s),o=!1}finally{o&&delete n[e]}return r.exports}s.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=s(72)},79205,(e,t,r)=>{!function(i,n){if("function"==typeof define&&define.amd){let i;void 0!==(i=n(e.r,r,t))&&e.v(i)}else t.exports=n()}(e.e,function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var i=String(e).substr(t);return i.substr(0,i.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,i=this;if(void 0===e||""===e||null===e)return i;for(var n=String(e).split("."),s=0;s<n.length;s++)if(null==i||void 0===(i=i[n[s]]))return r;return i},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<r.length;i++){var n=r[i],s=e.apply({var:n},this);(null===s||""===s)&&t.push(n)}return t},missing_some:function(t,r){var i=e.apply({missing:r},this);return r.length-i.length>=t?[]:i}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,i){if(Array.isArray(r))return r.map(function(t){return e.apply(t,i)});if(!e.is_logic(r))return r;var n,s,o,a,l,c=e.get_operator(r),u=r[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(n=0;n<u.length-1;n+=2)if(e.truthy(e.apply(u[n],i)))return e.apply(u[n+1],i);return u.length===n+1?e.apply(u[n],i):null}if("and"===c){for(n=0;n<u.length&&(s=e.apply(u[n],i),e.truthy(s));n+=1);return s}if("or"===c){for(n=0;n<u.length&&(s=e.apply(u[n],i),!e.truthy(s));n+=1);return s}if("filter"===c)return(a=e.apply(u[0],i),o=u[1],Array.isArray(a))?a.filter(function(t){return e.truthy(e.apply(o,t))}):[];if("map"===c)return(a=e.apply(u[0],i),o=u[1],Array.isArray(a))?a.map(function(t){return e.apply(o,t)}):[];else if("reduce"===c)return(a=e.apply(u[0],i),o=u[1],l=void 0!==u[2]?e.apply(u[2],i):null,Array.isArray(a))?a.reduce(function(t,r){return e.apply(o,{current:r,accumulator:t})},l):l;else if("all"===c){if(a=e.apply(u[0],i),o=u[1],!Array.isArray(a)||!a.length)return!1;for(n=0;n<a.length;n+=1)if(!e.truthy(e.apply(o,a[n])))return!1;return!0}else if("none"===c){if(a=e.apply(u[0],i),o=u[1],!Array.isArray(a)||!a.length)return!0;for(n=0;n<a.length;n+=1)if(e.truthy(e.apply(o,a[n])))return!1;return!0}else if("some"===c){if(a=e.apply(u[0],i),o=u[1],!Array.isArray(a)||!a.length)return!1;for(n=0;n<a.length;n+=1)if(e.truthy(e.apply(o,a[n])))return!0;return!1}if(u=u.map(function(t){return e.apply(t,i)}),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(i,u);
1if(c.indexOf(".")>0){var h=String(c).split("."),p=t;for(n=0;n<h.length;n++){if(!p.hasOwnProperty(h[n]))throw Error("Unrecognized operation "+c+" (failed at "+h.slice(0,n+1).join(".")+")");p=p[h[n]]}return p.apply(i,u)}throw Error("Unrecognized operation "+c)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var i=e.get_operator(t),n=t[i];Array.isArray(n)||(n=[n]),"var"===i?r.push(n[0]):n.forEach(function(t){r.push.apply(r,e.uses_data(t))})}for(var s=[],o=0,a=r.length;o<a;o++)-1===s.indexOf(r[o])&&s.push(r[o]);return s},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t||"@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var i=e.get_operator(r),n=e.get_operator(t);if("@"===i||i===n)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(t)){if(r.length!==t.length)return!1;for(var s=0;s<r.length;s+=1)if(!e.rule_like(t[s],r[s]))return!1;return!0}return!1},e})},71587,e=>{"use strict";let t,r,i,n,s,o,a,l,c,u,h,p,f,d,g,m,y,_,v,b,w,k,S,x,C,E,I,O,R,M;var A,T,P,N,D,L,F,U,B,j,q,z,$,W,V,H,G=e.i(47167),Y=e.i(71645);if("u"<typeof window){var J={hostname:""};oz={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:J,referrer:""},screen:{width:0,height:0},location:J,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else oz=window;var Z={DEBUG:!1,LIB_VERSION:"2.78.0"},X="__mp_targeting",K="__mp_recorder",Q="__MP_TARGETING_FILENAME__",ee=e.i(67034),et=Object.defineProperty,er=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?et(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r},ei=Object.defineProperty,en=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?ei(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r},es=((oR=es||{})[oR.Document=0]="Document",oR[oR.DocumentType=1]="DocumentType",oR[oR.Element=2]="Element",oR[oR.Text=3]="Text",oR[oR.CDATA=4]="CDATA",oR[oR.Comment=5]="Comment",oR);let eo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ea={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},el={};function ec(e){if(el[e])return el[e];let t=globalThis[e],r=t.prototype,i=e in eo?eo[e]:void 0,n=!!(i&&i.every(e=>{var t,i;return!!(null==(i=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:i.toString().includes("[native code]"))})),s=e in ea?ea[e]:void 0,o=!!(s&&s.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!globalThis.Zone)return el[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");document.body.appendChild(i);let n=i.contentWindow;if(!n)return t.prototype;let s=n[e].prototype;if(document.body.removeChild(i),!s)return r;return el[e]=s}catch{return r}}let eu={};function eh(e,t,r){var i;let n=`${e}.${String(r)}`;if(eu[n])return eu[n].call(t);let s=null==(i=Object.getOwnPropertyDescriptor(ec(e),r))?void 0:i.get;return s?(eu[n]=s,s.call(t)):t[r]}let ep=function(e){return eh("Node",e,"childNodes")},ef=function(e){return eh("Node",e,"parentNode")},ed=function(e){return eh("Node",e,"parentElement")},eg=function(e){return eh("Node",e,"textContent")},em=function(e){return e&&"shadowRoot"in e?eh("Element",e,"shadowRoot"):null};function ey(e){return e.nodeType===e.ELEMENT_NODE}function e_(e){var t;let r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?eh("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&em(r)===e)}function ev(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function eb(e){try{var t;let r=e.rules||e.cssRules;if(!r)return null;let i=e.href;return!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,e=>ew(e,i)).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function ew(e,t){if("styleSheet"in e){let t;try{t=eb(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?eT(t,e.styleSheet.href):t}{let r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?eT(r,t):r}}class ek{constructor(){en(this,"idNodeMap",new Map),en(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e,t=!1){let r=this.getId(e);this.idNodeMap.delete(r),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEac
1h(e=>this.removeNodeFromMap(e,t))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function eS({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:s}){let o=n||"",a=i&&ex(i);return(t[r.toLowerCase()]||a&&t[a])&&(o=s?s(o,e):"*".repeat(o.length)),o}function ex(e){return e.toLowerCase()}let eC="__rrweb_original__";function eE(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ex(t):null}function eI(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==i?void 0:i[1])??null}let eO=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eR=/^(?:[a-z+]+:)?\/\//i,eM=/^www\..*/i,eA=/^(data:)([^,]*),(.*)/i;function eT(e,t){return(e||"").replace(eO,(e,r,i,n,s,o)=>{let a=i||s||o,l=r||n||"";if(!a)return e;if(eR.test(a)||eM.test(a)||eA.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}function eP(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}let eN=1,eD=RegExp("[^a-z0-9-_:]");function eL(){return eN++}let eF=/^[^ \t\n\r\u000c]+/,eU=/^[, \t\n\r\u000c]+/,eB=new WeakMap;function ej(e,t){return t&&""!==t.trim()?eq(e,t):t}function eq(e,t){let r=eB.get(e);if(r||(r=e.createElement("a"),eB.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ez(e,t,r,i){if(!i)return i;if("src"===r||"href"===r&&("use"!==t||"#"!==i[0])||"xlink:href"===r&&"#"!==i[0])return ej(e,i);if("background"===r&&("table"===t||"td"===t||"th"===t))return ej(e,i);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function i(e){let i,n=e.exec(t.substring(r));return n?(i=n[0],r+=i.length,i):""}let n=[];for(;i(eU),!(r>=t.length);){let s=i(eF);if(","===s.slice(-1))s=ej(e,s.substring(0,s.length-1)),n.push(s);else{let i="";s=ej(e,s);let o=!1;for(;;){let e=t.charAt(r);if(""===e){n.push((s+i).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,n.push((s+i).trim());break}else"("===e&&(o=!0);i+=e,r+=1}}}return n.join(", ")}(e,i);if("style"===r)return eT(i,eq(e));else if("object"===t&&"data"===r)return ej(e,i);return i}function e$(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eW(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eW(ef(e),t,r);for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}return!!r&&eW(ef(e),t,r)}function eV(e,t,r,i){let n;if(ey(e)){if(!ep(n=e).length)return!1}else{if(null===ed(e))return!1;n=ed(e)}try{if("string"==typeof t){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(eW(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(e){}return!1}function eH(e){return null==e?"":e.toLowerCase()}function eG(e,i){let n,{doc:s,mirror:o,blockClass:a,blockSelector:l,maskTextClass:c,maskTextSelector:u,skipChild:h=!1,inlineStylesheet:p=!0,maskInputOptions:f={},maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y={},inlineImages:_=!1,recordCanvas:v=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:E=!1,cssCaptured:I=!1}=i,{needsMask:O}=i,{preserveWhiteSpace:R=!0}=i;O||(O=eV(e,c,u,void 0===O));let M=function(e,i){let{doc:n,mirror:s,blockClass:o,blockSelector:a,needsMask:l,inlineStylesheet:c,maskInputOptions:u={},maskTextFn:h,maskInputFn:p,dataURLOptions:f={},inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y=!1,cssCaptured:_=!1}=i,v=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:es.Document,childNodes:[],compatMode:e.compatMode};return{type:es.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:es.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return function(e,i){let n,{doc:s,blockClass:o,blockSelector:a,inlineStylesheet:l,maskInputOptions:c={},maskInputFn:u,dataURLOptions:h={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:d,newlyAddedElement:g=!1,rootId:m}=i,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,a),_=function(e){if(e instanceof HTMLFormElement)return"form";let t=ex(e.tagName);return eD.test(t)?"div":t}(e),v={},b=e.attributes.length;for(let t=0;t<b;t++){let r=e.attributes[t];e$(_,r.name,r.value)||(v[r.name]=ez(s,_,ex(r.name),r.value))}if("link"===_&&l){let t=Array.from(s.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=eb(t)),r&&(delete v.rel,delete v.href,v._cssText=r)}if("style"===_&&e.sheet){let t=eb(e.sheet);t&&(e.childNodes.length>1&&(t=(function(e,t,r=!1){let i=Array.from(t.childNodes),n=[],s=0;if(i.length>1&&e&&"string"==typeof e){let t=eP(e,r),o=t.length/e.length;for(let a=1;a<i.length;a++)if(i[a].textContent&&"string"==typeof i[a].textContent){let l=eP(i[a].textContent,r),c=3;for(;c<l.length&&(l[c].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,c),1));c++);for(;c<l.length;c++){let u=l.substring(0,c),h=t.split(u),p=-1;if(2===h.length)p=h[0].length;else if(h.length>2&&""===h[0]&&""!==i[a-1].textContent)p=t.indexOf(u,1);else if(1===h.length){if(u=u.substring(0,u.length-1),(h=t.split(u)).length<=1)return n.push(e),n;c=101}else c===l.length-1&&(p=t.indexOf(u));if(h.length>=2&&c>100){let e=i[a-1].textContent;if(e&&"string"==typeof e){let r=eP(e).length;p=t.indexOf(u,r)}-1===p&&(p=h[0].length)}if(-1!==p){let a=Math.floor(p/o);for(;a>0&&a<e.length;){if((s+=1)>50*i.length)return n.push(e),n;let l=eP(e.substring(0,a),r);if(l.length===p){n.push(e.substring(0,a)),e=e.substring(a),t=t.substring(p);break}l.length<p?a+=Math.max(1,Math.floor((p-l.length)/o)):a-=Math.max(1,Math.floor((l.length-p)*o))}break}}}}return n.push(e),n})(t,e).join("/* rr_split */")),v._cssText=t)}if("input"===_||"textarea"===_||"select"===_){let t=e.value,r=e.checked;"radio"!==v.type&&"checkbox"!==v.type&&"submit"!==v.type&&"button"!==v.type&&t?v.value=eS({element:e,type:eE(e),tagName:_,value:t,maskInputOptions:c,maskInputFn:u}):r&&(v.checked=r)}if("option"===_&&(e.selected&&!c.select?v.selected=!0:delete v.selected),"dialog"===_&&e.o
1pen&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===_&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let i=0;i<e.height;i+=50){let n=t.getImageData;if(new Uint32Array((eC in n?n[eC]:n).call(t,r,i,Math.min(50,e.width-r),Math.min(50,e.height-i)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(v.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),r=s.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(h.type,h.quality)&&(v.rr_dataURL=t)}}if("img"===_&&p){t||(r=(t=s.createElement("canvas")).getContext("2d"));let i=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{t.width=e.naturalWidth,t.height=e.naturalHeight,r.drawImage(e,0,0),v.rr_dataURL=t.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${i}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(n?v.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if("audio"===_||"video"===_){let t=v;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!g&&(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),y){let{width:t,height:r}=e.getBoundingClientRect();v={class:v.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==_||d(v.src)||(e.contentDocument||(v.rr_src=v.src),delete v.src);try{customElements.get(_)&&(n=!0)}catch(e){}return{type:es.Element,tagName:_,attributes:v,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:y,rootId:m,isCustom:n}}(e,{doc:n,blockClass:o,blockSelector:a,inlineStylesheet:c,maskInputOptions:u,maskInputFn:p,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:v});case e.TEXT_NODE:return function(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:s}=t,o=ef(e),a=o&&o.tagName,l="",c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":!s&&(l=eg(e),c&&l&&(l=eT(l,eq(t.doc)))),!c&&!u&&l&&r&&(l=i?i(l,ed(e)):l.replace(/[\S]/g,"*")),{type:es.Text,textContent:l||"",rootId:n}}(e,{doc:n,needsMask:l,maskTextFn:h,rootId:v,cssCaptured:_});case e.CDATA_SECTION_NODE:return{type:es.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:es.Comment,textContent:eg(e)||"",rootId:v};default:return!1}}(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,needsMask:O,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:v,keepIframeSrcFn:C,newlyAddedElement:E,cssCaptured:I});if(!M)return console.warn(e,"not serialized"),null;n=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===es.Comment)return!0;if(e.type===es.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eI(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eH(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eH(e.attributes.name)||"icon"===eH(e.attributes.rel)||"apple-touch-icon"===eH(e.attributes.rel)||"shortcut icon"===eH(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eH(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eH(e.attributes.property).match(/^(og|twitter|fb):/)||eH(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eH(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eH(e.attributes.name)||"googlebot"===eH(e.attributes.name)||"bingbot"===eH(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eH(e.attributes.name)||"generator"===eH(e.attributes.name)||"framework"===eH(e.attributes.name)||"publisher"===eH(e.attributes.name)||"progid"===eH(e.attributes.name)||eH(e.attributes.property).match(/^article:/)||eH(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eH(e.attributes.name)||"yandex-verification"===eH(e.attributes.name)||"csrf-token"===eH(e.attributes.name)||"p:domain_verify"===eH(e.attributes.name)||"verify-v1"===eH(e.attributes.name)||"verification"===eH(e.attributes.name)||"shopify-checkout-api-token"===eH(e.attributes.name)))return!0}}return!1}(M,m)&&(R||M.type!==es.Text||M.textContent.replace(/^\s+|\s+$/gm,"").length)?eL():-2;let A=Object.assign(M,{id:n});if(o.add(e,A),-2===n)return null;b&&b(e);let T=!h;if(A.type===es.Element){T=T&&!A.needBlock,delete A.needBlock;let t=em(e);t&&ev(t)&&(A.isShadowHost=!0)}if((A.type===es.Document||A.type===es.Element)&&T){m.headWhitespace&&A.type===es.Element&&"head"===A.tagName&&(R=!1);let t={doc:s,mirror:o,blockClass:a,blockSelector:l,needsMask:O,maskTextClass:c,maskTextSelector:u,skipChild:h,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:v,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:C,cssCaptured:!1};if(A.type===es.Element&&"textarea"===A.tagName&&void 0!==A.attributes.value);else for(let r of(A.type===es.Element&&void 0!==A.attributes._cssText&&"string"==typeof A.attributes._cssText&&(t.cssCaptured=!0),Array.from(ep(e)))){let e=eG(r,t);e&&A.childNodes.push(e)}let r=null;if(ey(e)&&(r=em(e)))for(let e of Array.from(ep(r))){let i=eG(e,t);i&&(ev(r)&&(i.isShadow=!0),A.childNodes.push(i))}}let P=ef(e);return P&&e_(P)&&ev(P)&&(A.isShadow=!0),A.type===es.Element&&"iframe"===A.tagName&&function(e,t,r){let i,n=e.contentWindow;if(!n)return;let s=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){let i=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),s=!0,t()});return}let o="about:blank";if(n.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&w){let r=eG(t,{doc:t,mirror:o,blockClass:a,blockSelector:l,needsMask:O,maskTextClass:c,maskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:v,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:C});r&&w(e,r)}},k),A.type===es.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===eI(A.attributes.href))&&function(e,t,r){let i,n=!1;try{i=e.sheet}catch(e){return}if(i)return;let s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()})}(e,()=>{if(S){let t=eG(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,needsMask:O,maskTextClass:c,maskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:v,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:C});t&&S(e,t)}},x),A}RegExp(/(max|min)-device-(width|height)/.source,"g");var eY={exports:{}},eJ=String,eZ=function(){return{isColorSupported:!1,reset:eJ,bold:eJ,dim:eJ,italic:eJ,underline:eJ,inverse:eJ,hidden:eJ,strikethrough:eJ,black:eJ,red:eJ,green:eJ,yellow:eJ,blue:eJ,magenta:eJ,cyan:eJ,white:eJ,gray:eJ,bgBlack:eJ,bgRed:eJ,bgGreen:eJ,bgYellow:eJ,bgBlue:eJ,bgMagenta:eJ,bgCyan:eJ,bgWhite:eJ}};eY.exports=eZ(),eY.exports.createColors=eZ;var eX=eY.exports;let eK=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eQ=class e extends Error{constructor(t,r,i,n,s,o){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let i=this.source;null==e&&(e=eX.isColorSupported),eK&&e&&(i=eK(i));let n=i.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),a=String(o).length;if(e){let{bold:e,gray:i,red:n}=eX.createColors(!0);t=t=>e(n(t)),r=e=>i(e)}else t=r=e=>e;return n.slice(s,o).map((e,i)=>{let n=s+1+i,o=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let i=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+i+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};eQ.default=eQ;var e0={};e0.isClean=Symbol("isClean"),e0.my=Symbol("my");let e1={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},e2=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&"root"!==i.type;)n+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],s=this.raw(n,"before");s&&this.builder(s),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return e1[r];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let n="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[n]?i=this[n](s,e):s.walk(e=>{if(void 0!==(i=e.raws[t]))return!1})}return void 0===i&&(i=e1[r]),s.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function e3(e,t){new e2(t).stringify(e)}e2.default=e2,e3.default=e3;let{isClean:e5,my:e6}=e0,e8=class{constructor(e={}){for(let t in this.raws={},this[e5]=!1,this[e6]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let s=t[n],o=typeof s;"parent"===n&&"object"===o?r&&(i[n]=r):"source"===n?i[n]=s:Array.isArray(s)?i[n]=s.map(t=>e(t,i)):("object"===o&&null!==s&&(s=e(s)),i[n]=s)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
1error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new eQ(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[e5]){this[e5]=!1;let e=this;for(;e=e.parent;)e[e5]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);-1!==n&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new e2().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let s=t.get(i.input);null==s&&(s=n,t.set(i.input,n),n++),r[e]={end:i.end,inputId:s,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=e3){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}};e8.default=e8;let e4=e8,e9=class extends e4{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};e9.default=e9;let{SourceMapConsumer:e7,SourceMapGenerator:te}=eK,{existsSync:tt,readFileSync:tr}=eK,{dirname:ti,join:tn}=eK,ts=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ti(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e7(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),ee.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=ti(e),tt(e))return this.mapFile=e,tr(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof e7)return te.fromSourceMap(t).toString();else if(t instanceof te)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=tn(ti(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};ts.default=ts;let{SourceMapConsumer:to,SourceMapGenerator:ta}=eK,{fileURLToPath:tl,pathToFileURL:tc}=eK,{isAbsolute:tu,resolve:th}=eK,{nanoid:tp}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",n=r;for(;n--;)i+=e[Math.random()*e.length|0];return i}}
1,tf=Symbol("fromOffsetCache"),td=!!(to&&ta),tg=!!(th&&tu),tm=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tg||/^\w+:\/\//.test(t.from)||tu(t.from)?this.file=t.from:this.file=th(t.from)),tg&&td){let e=new ts(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+tp(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,s,o;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);s=e.line,o=e.col}else s=i.line,o=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,s,o);return(n=a?new eQ(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new eQ(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:o,line:s},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:s,line:t,source:this.css},this.file&&(tc&&(n.input.url=tc(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[tf])r=this[tf];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,n=e.length;i<n;i++)r[i]=t,t+=e[i].length+1;this[tf]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,n=r.length-2;for(;i<n;)if(e<r[t=i+(n-i>>1)])n=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:th(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){let n,s;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=o.originalPositionFor({column:i,line:r})),s=tu(a.source)?tc(a.source):new URL(a.source,this.map.consumer().sourceRoot||tc(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:s.toString()};if("file:"===s.protocol)if(tl)l.file=tl(s);else throw Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};tm.default=tm,eK&&eK.registerInput&&eK.registerInput(tm);let{SourceMapConsumer:ty,SourceMapGenerator:t_}=eK,{dirname:tv,relative:tb,resolve:tw,sep:tk}=eK,{pathToFileURL:tS}=eK,tx=!!(ty&&t_),tC=!!(tv&&tw&&tb&&tk),tE=class{constructor(e,t,r,i
1){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||tv(e.file);!1===this.mapOpts.sourcesContent?(t=new ty(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),tC&&tx&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t_.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t_({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new t_({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,i=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1):(s.source=n,s.original.line=1,s.original.column=0),this.map.addMapping(s)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),i=o.length-t):i+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=i-2):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1),this.map.addMapping(s))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?tv(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=tv(tw(r,this.mapOpts.annotation)));let i=tb(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new tm(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return ee.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tS){let t=tS(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===tk&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},tI=e8,tO=class extends tI{constructor(e){super(e),this.type="comment"}};tO.default=tO;let{isClean:tR,my:tM}
1=e0,tA=e8,tT=class e extends tA{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),n=0===i&&"prepend",s=this.normalize(t,this.proxyOf.nodes[i],n).reverse();for(let t of(i=this.index(e),s))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(i(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new e9(t)]}else if(t.selector)t=[new n(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new tO(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[tM]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[tR]&&function e(t){if(t[tR]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};tT.registerParse=e=>{i=e},tT.registerRule=e=>{n=e},tT.registerAtRule=e=>{s=e},tT.registerRoot=e=>{o=e},tT.default=tT,tT.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,n.prototype):"decl"===e.type?Object.setPrototypeOf(e,e9.prototype):"comment"===e.type?Object.setPrototypeOf(e,tO.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[tM]=!0,e.nodes&&e.nodes.forEac
1h(e=>{tT.rebuild(e)})};let tP=tT,tN=class extends tP{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new a(new l,this,e).stringify()}};tN.registerLazyResult=e=>{a=e},tN.registerProcessor=e=>{l=e},tN.default=tN;let tD=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};tD.default=tD;let tL=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new tD(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};tL.default=tL;let tF=/[\t\n\f\r "#'()/;[\\\]{}]/g,tU=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tB=/.[\r\n"'(/\\]/,tj=/[\da-f]/i,tq=tT,tz=class extends tq{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};tz.default=tz,tq.registerAtRule(tz);let t$=tT,tW=class extends t${constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new c(new u,this,e).stringify()}};tW.registerLazyResult=e=>{c=e},tW.registerProcessor=e=>{u=e},tW.default=tW,t$.registerRoot(tW);let tV={comma:e=>tV.split(e,[","],!0),space:e=>tV.split(e,[" ","\n","	"]),split(e,t,r){let i=[],n="",s=!1,o=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==n&&i.push(n.trim()),n="",s=!1):n+=r;return(r||""!==n)&&i.push(n.trim()),i}};tV.default=tV;let tH=tT,tG=class extends tH{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tV.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};tG.default=tG,tH.registerRule(tG);let tY=function(e,t={}){let r,i,n,s,o,a,l,c,u,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],y=[];function _(t){throw e.error("Unclosed "+t,g)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&g>=d},nextToken:function(e){if(y.length)return y.pop();if(g>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:i=g;do i+=1,r=p.charCodeAt(i);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,i)],g=i-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);h=[e,e,g];break}case 40:if(c=m.length?m.pop()[1]:"",u=p.charCodeAt(g+1),"url"===c&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){i=g;do{if(a=!1,-1===(i=p.indexOf(")",i+1)))if(f||t){i=g;break}else _("bracket");for(l=i;
192===p.charCodeAt(l-1);)l-=1,a=!a}while(a)h=["brackets",p.slice(g,i+1),g,i],g=i}else i=p.indexOf(")",g+1),s=p.slice(g,i+1),-1===i||tB.test(s)?h=["(","(",g]:(h=["brackets",s,g,i],g=i);break;case 39:case 34:n=39===r?"'":'"',i=g;do{if(a=!1,-1===(i=p.indexOf(n,i+1)))if(f||t){i=g+1;break}else _("string");for(l=i;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)h=["string",p.slice(g,i+1),g,i],g=i;break;case 64:tF.lastIndex=g+1,tF.test(p),i=0===tF.lastIndex?p.length-1:tF.lastIndex-2,h=["at-word",p.slice(g,i+1),g,i],g=i;break;case 92:for(i=g,o=!0;92===p.charCodeAt(i+1);)i+=1,o=!o;if(r=p.charCodeAt(i+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(i+=1,tj.test(p.charAt(i)))){for(;tj.test(p.charAt(i+1));)i+=1;32===p.charCodeAt(i+1)&&(i+=1)}h=["word",p.slice(g,i+1),g,i],g=i;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(i=p.indexOf("*/",g+2)+1)&&(f||t?i=p.length:_("comment")),h=["comment",p.slice(g,i+1),g,i]):(tU.lastIndex=g+1,tU.test(p),i=0===tU.lastIndex?p.length-1:tU.lastIndex-2,h=["word",p.slice(g,i+1),g,i],m.push(h)),g=i}return g++,h},position:function(){return g}}},tJ={empty:!0,space:!0},tZ=class{constructor(e){this.input=e,this.root=new tW,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,n=new tz;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length)if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(i=a.length-1,r=a[i];r&&"space"===r[0];)r=a[--i];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),s&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(i+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[n,s]of e.entries()){if("("===(t=s[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return n;else this.doubleColon(s);r=s}return!1}comment(e){let t=new tO;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=tY(this.input)}decl(e,t){let r,i,n=new e9;this.init(n,e[0][2]);let s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[];for(;e.length&&("space"===(i=e[0][0])||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;
1i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new tG;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),s.push("("===r?")":"]");else if(o&&i&&"{"===r)n||(n=l),s.push("}");else if(0===s.length)if(";"===r)if(i)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(i=!0);else r===s[s.length-1]&&(s.pop(),0===s.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(n),t&&i){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,s,o,a,l=r.length,c="",u=!0;for(let e=0;e<l;e+=1)"space"!==(s=(n=r[e])[0])||e!==l-1||i?"comment"===s?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][
10]:"empty",tJ[a]||tJ[o]||","===c.slice(-1)?u=!1:c+=n[1]):c+=n[1]:u=!1;if(!u){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:c}}e[t]=c}rule(e){e.pop();let t=new tG;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function tX(e,t){let r=new tZ(new tm(e,t));try{r.parse()}catch(e){throw e}return r.root}tX.default=tX,tT.registerParse(tX);let{isClean:tK,my:tQ}=e0,t0={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t1={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},t2={Once:!0,postcssPlugin:!0,prepare:!0};function t3(e){return"object"==typeof e&&"function"==typeof e.then}function t5(e){let t=!1,r=t0[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function t6(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:t5(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function t8(e){return e[tK]=!1,e.nodes&&e.nodes.forEach(e=>t8(e)),e}let t4={},t9=class e{constructor(t,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=t8(r);else if(r instanceof e||r instanceof tL)n=t8(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=tX;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[tQ]&&tT.rebuild(n)}this.result=new tL(t,n,i),this.helpers={...t4,postcss:t4,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!t1[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!t2[r])if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(t3(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tK];){e[tK]=!0;let t=[t6(e)];for(;t.length>0;){let e=this.visitTick(t);
1if(t3(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(t3(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=e3;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new tE(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(t3(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tK];)e[tK]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(t3(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,n=t.iterator;for(;i=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!i[tK]){i[tK]=!0,e.push(t6(i));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[tK]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[tK]=!0,t5(e)))if(0===t)e.nodes&&e.each(e=>{e[tK]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};t9.registerPostcss=e=>{t4=e},t9.default=t9,tW.registerLazyResult(t9),tN.registerLazyResult(t9);let t7=class{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new tL(this._processor,i,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let s=new tE(e3,i,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=tX(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};t7.default=t7;let re=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new t9(this,e,t):new t7(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function rt(e,t){if(Array.isArray(e))return e.map(e=>rt(e));let{inputs:r,...i}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:tm.prototype};r.map&&(r.map={...r.map,__proto__:ts.prototype}),t.push(r)}if(i.nodes&&(i.nodes=e.nodes.map(e=>rt(e,t))),i.source){let{inputId:e,...r}=i.source;i.source=r,null!=e&&(i.source.input=t[e])}if("root"===i.type)return new tW(i);if("decl"===i.type)return new e9(i);if("rule"===i.type)return new tG(i);if("comment"===i.type)return new tO(i);if("atrule"===i.type)return new tz(i);else throw Error("Unknown node type: "+e.type)}function rr(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new re(e)}re.default=re,tW.registerProcessor(re),tN.registerProcessor(re),rt.default=rt,rr.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),G.default.env.LANG&&G.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=new re().version,s}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return rr([n(r)]).process(e,t)},n},rr.stringify=e3,rr.parse=tX,rr.fromJSON=rt,rr.list=tV,rr.comment=e=>new tO(e),rr.atRule=e=>new tz(e),rr.decl=e=>new e9(e),rr.rule=e=>new tG(e),rr.root=e=>new tW(e),rr.document=e=>new tN(e),rr.CssSyntaxError=eQ,rr.Declaration=e9,rr.Container=tT,rr.Processor=re,rr.Document=tN,rr.Comment=tO,rr.Warning=tD,rr.AtRule=tz,rr.Result=tL,rr.Input=tm,rr.Rule=tG,rr.Root=tW,rr.Node=e8,t9.registerPostcss(rr),rr.default=rr;let ri=rr&&rr.__esModule&&Object.prototype.hasOwnProperty.call(rr,"default")?rr.default:rr;
1ri.stringify,ri.fromJSON,ri.plugin,ri.parse,ri.list,ri.document,ri.comment,ri.atRule,ri.rule,ri.decl,ri.root,ri.CssSyntaxError,ri.Declaration,ri.Container,ri.Processor,ri.Document,ri.Comment,ri.Warning,ri.AtRule,ri.Result,ri.Input,ri.Rule,ri.Root,ri.Node;var rn=Object.defineProperty,rs=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?rn(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r},ro={exports:{}},ra=String,rl=function(){return{isColorSupported:!1,reset:ra,bold:ra,dim:ra,italic:ra,underline:ra,inverse:ra,hidden:ra,strikethrough:ra,black:ra,red:ra,green:ra,yellow:ra,blue:ra,magenta:ra,cyan:ra,white:ra,gray:ra,bgBlack:ra,bgRed:ra,bgGreen:ra,bgYellow:ra,bgBlue:ra,bgMagenta:ra,bgCyan:ra,bgWhite:ra}};ro.exports=rl(),ro.exports.createColors=rl;var rc=ro.exports;let ru=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),rh=class e extends Error{constructor(t,r,i,n,s,o){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let i=this.source;null==e&&(e=rc.isColorSupported),ru&&e&&(i=ru(i));let n=i.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),a=String(o).length;if(e){let{bold:e,gray:i,red:n}=rc.createColors(!0);t=t=>e(n(t)),r=e=>i(e)}else t=r=e=>e;return n.slice(s,o).map((e,i)=>{let n=s+1+i,o=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let i=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+i+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};rh.default=rh;var rp={};rp.isClean=Symbol("isClean"),rp.my=Symbol("my");let rf={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},rd=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&"root"!==i.type;)n+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],s=this.raw(n,"before");s&&this.builder(s),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return rf[r];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let n="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[n]?i=this[n](s,e):s.walk(e=>{if(void 0!==(i=e.raws[t]))return!1})}return void 0===i&&(i=rf[r]),s.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function rg(e,t){new rd(t).stringify(e)}rd.default=rd,rg.default=rg;let{isClean:rm,my:ry}=rp,r_=class{constructor(e={}){for(let t in this.raws={},this[rm]=!1,this[ry]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let s=t[n],o=typeof s;"parent"===n&&"object"===o?r&&(i[n]=r):"source"===n?i[n]=s:Array.isArray(s)?i[n]=s.map(t=>e(t,i)):("object"===o&&null!==s&&(s=e(s)),i[n]=s)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
1error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new rh(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[rm]){this[rm]=!1;let e=this;for(;e=e.parent;)e[rm]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);-1!==n&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new rd().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let s=t.get(i.input);null==s&&(s=n,t.set(i.input,n),n++),r[e]={end:i.end,inputId:s,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=rg){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}};r_.default=r_;let rv=r_,rb=class extends rv{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};rb.default=rb;let{SourceMapConsumer:rw,SourceMapGenerator:rk}=ru,{existsSync:rS,readFileSync:rx}=ru,{dirname:rC,join:rE}=ru,rI=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=rC(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new rw(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),ee.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=rC(e),rS(e))return this.mapFile=e,rx(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof rw)return rk.fromSourceMap(t).toString();else if(t instanceof rk)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=rE(rC(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};rI.default=rI;let{SourceMapConsumer:rO,SourceMapGenerator:rR}=ru,{fileURLToPath:rM,pathToFileURL:rA}=ru,{isAbsolute:rT,resolve:rP}=ru,{nanoid:rN}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",n=r;for(;n--;)i+=e[Math.random()*e.length|0];return i}}
1,rD=Symbol("fromOffsetCache"),rL=!!(rO&&rR),rF=!!(rP&&rT),rU=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rF||/^\w+:\/\//.test(t.from)||rT(t.from)?this.file=t.from:this.file=rP(t.from)),rF&&rL){let e=new rI(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+rN(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,s,o;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);s=e.line,o=e.col}else s=i.line,o=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,s,o);return(n=a?new rh(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new rh(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:o,line:s},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:s,line:t,source:this.css},this.file&&(rA&&(n.input.url=rA(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[rD])r=this[rD];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,n=e.length;i<n;i++)r[i]=t,t+=e[i].length+1;this[rD]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,n=r.length-2;for(;i<n;)if(e<r[t=i+(n-i>>1)])n=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rP(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){let n,s;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=o.originalPositionFor({column:i,line:r})),s=rT(a.source)?rA(a.source):new URL(a.source,this.map.consumer().sourceRoot||rA(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:s.toString()};if("file:"===s.protocol)if(rM)l.file=rM(s);else throw Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};rU.default=rU,ru&&ru.registerInput&&ru.registerInput(rU);let{SourceMapConsumer:rB,SourceMapGenerator:rj}=ru,{dirname:rq,relative:rz,resolve:r$,sep:rW}=ru,{pathToFileURL:rV}=ru,rH=!!(rB&&rj),rG=!!(rq&&r$&&rz&&rW),rY=class{constructor(e,t,r,i
1){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||rq(e.file);!1===this.mapOpts.sourcesContent?(t=new rB(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),rG&&rH&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rj.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rj({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new rj({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,i=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1):(s.source=n,s.original.line=1,s.original.column=0),this.map.addMapping(s)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),i=o.length-t):i+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=i-2):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1),this.map.addMapping(s))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?rq(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rq(r$(r,this.mapOpts.annotation)));let i=rz(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new rU(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return ee.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(rV){let t=rV(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===rW&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},rJ=r_,rZ=class extends rJ{constructor(e){super(e),this.type="comment"}};rZ.default=rZ;let{isClean:rX,my:rK}=rp,rQ=r_,r0=class e extends rQ{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>
1e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),n=0===i&&"prepend",s=this.normalize(t,this.proxyOf.nodes[i],n).reverse();for(let t of(i=this.index(e),s))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(h(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new rb(t)]}else if(t.selector)t=[new p(t)];else if(t.name)t=[new f(t)];else if(t.text)t=[new rZ(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[rK]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[rX]&&function e(t){if(t[rX]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};r0.registerParse=e=>{h=e},r0.registerRule=e=>{p=e},r0.registerAtRule=e=>{f=e},r0.registerRoot=e=>{d=e},r0.default=r0,r0.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,f.prototype):"rule"===e.type?Object.setPrototypeOf(e,p.prototype):"decl"===e.type?Object.setPrototypeOf(e,rb.prototype):"comment"===e.type?Object.setPrototypeOf(e,rZ.prototype):"root"===e.type&&Object.setPrototypeOf(e,d.prototype),e[rK]=!0,e.nodes&&e.nodes.forEac
1h(e=>{r0.rebuild(e)})};let r1=r0,r2=class extends r1{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new g(new m,this,e).stringify()}};r2.registerLazyResult=e=>{g=e},r2.registerProcessor=e=>{m=e},r2.default=r2;let r3=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};r3.default=r3;let r5=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new r3(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};r5.default=r5;let r6=/[\t\n\f\r "#'()/;[\\\]{}]/g,r8=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,r4=/.[\r\n"'(/\\]/,r9=/[\da-f]/i,r7=r0,ie=class extends r7{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};ie.default=ie,r7.registerAtRule(ie);let it=r0,ir=class extends it{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new y(new _,this,e).stringify()}};ir.registerLazyResult=e=>{y=e},ir.registerProcessor=e=>{_=e},ir.default=ir,it.registerRoot(ir);let ii={comma:e=>ii.split(e,[","],!0),space:e=>ii.split(e,[" ","\n","	"]),split(e,t,r){let i=[],n="",s=!1,o=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==n&&i.push(n.trim()),n="",s=!1):n+=r;return(r||""!==n)&&i.push(n.trim()),i}};ii.default=ii;let is=r0,io=class extends is{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ii.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};io.default=io,is.registerRule(io);let ia=function(e,t={}){let r,i,n,s,o,a,l,c,u,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],y=[];function _(t){throw e.error("Unclosed "+t,g)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&g>=d},nextToken:function(e){if(y.length)return y.pop();if(g>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:i=g;do i+=1,r=p.charCodeAt(i);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,i)],g=i-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);h=[e,e,g];break}case 40:if(c=m.length?m.pop()[1]:"",u=p.charCodeAt(g+1),"url"===c&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){i=g;do{if(a=!1,-1===(i=p.indexOf(")",i+1)))if(f||t){i=g;break}else _("bracket");for(l=i;
192===p.charCodeAt(l-1);)l-=1,a=!a}while(a)h=["brackets",p.slice(g,i+1),g,i],g=i}else i=p.indexOf(")",g+1),s=p.slice(g,i+1),-1===i||r4.test(s)?h=["(","(",g]:(h=["brackets",s,g,i],g=i);break;case 39:case 34:n=39===r?"'":'"',i=g;do{if(a=!1,-1===(i=p.indexOf(n,i+1)))if(f||t){i=g+1;break}else _("string");for(l=i;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)h=["string",p.slice(g,i+1),g,i],g=i;break;case 64:r6.lastIndex=g+1,r6.test(p),i=0===r6.lastIndex?p.length-1:r6.lastIndex-2,h=["at-word",p.slice(g,i+1),g,i],g=i;break;case 92:for(i=g,o=!0;92===p.charCodeAt(i+1);)i+=1,o=!o;if(r=p.charCodeAt(i+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(i+=1,r9.test(p.charAt(i)))){for(;r9.test(p.charAt(i+1));)i+=1;32===p.charCodeAt(i+1)&&(i+=1)}h=["word",p.slice(g,i+1),g,i],g=i;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(i=p.indexOf("*/",g+2)+1)&&(f||t?i=p.length:_("comment")),h=["comment",p.slice(g,i+1),g,i]):(r8.lastIndex=g+1,r8.test(p),i=0===r8.lastIndex?p.length-1:r8.lastIndex-2,h=["word",p.slice(g,i+1),g,i],m.push(h)),g=i}return g++,h},position:function(){return g}}},il={empty:!0,space:!0},ic=class{constructor(e){this.input=e,this.root=new ir,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,n=new ie;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length)if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(i=a.length-1,r=a[i];r&&"space"===r[0];)r=a[--i];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),s&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(i+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[n,s]of e.entries()){if("("===(t=s[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return n;else this.doubleColon(s);r=s}return!1}comment(e){let t=new rZ;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=ia(this.input)}decl(e,t){let r,i,n=new rb;this.init(n,e[0][2]);let s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[];for(;e.length&&("space"===(i=e[0][0])||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;
1i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new io;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),s.push("("===r?")":"]");else if(o&&i&&"{"===r)n||(n=l),s.push("}");else if(0===s.length)if(";"===r)if(i)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(i=!0);else r===s[s.length-1]&&(s.pop(),0===s.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(n),t&&i){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,s,o,a,l=r.length,c="",u=!0;for(let e=0;e<l;e+=1)"space"!==(s=(n=r[e])[0])||e!==l-1||i?"comment"===s?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][
10]:"empty",il[a]||il[o]||","===c.slice(-1)?u=!1:c+=n[1]):c+=n[1]:u=!1;if(!u){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:c}}e[t]=c}rule(e){e.pop();let t=new io;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function iu(e,t){let r=new ic(new rU(e,t));try{r.parse()}catch(e){throw e}return r.root}iu.default=iu,r0.registerParse(iu);let{isClean:ih,my:ip}=rp,id={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ig={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},im={Once:!0,postcssPlugin:!0,prepare:!0};function iy(e){return"object"==typeof e&&"function"==typeof e.then}function i_(e){let t=!1,r=id[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function iv(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:i_(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ib(e){return e[ih]=!1,e.nodes&&e.nodes.forEach(e=>ib(e)),e}let iw={},ik=class e{constructor(t,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=ib(r);else if(r instanceof e||r instanceof r5)n=ib(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=iu;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[ip]&&r0.rebuild(n)}this.result=new r5(t,n,i),this.helpers={...iw,postcss:iw,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!ig[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!im[r])if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(iy(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ih];){e[ih]=!0;let t=[iv(e)];for(;t.length>0;){let e=this.visitTick(t);
1if(iy(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(iy(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=rg;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new rY(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(iy(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ih];)e[ih]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(iy(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,n=t.iterator;for(;i=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!i[ih]){i[ih]=!0,e.push(iv(i));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[ih]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[ih]=!0,i_(e)))if(0===t)e.nodes&&e.each(e=>{e[ih]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ik.registerPostcss=e=>{iw=e},ik.default=ik,ir.registerLazyResult(ik),r2.registerLazyResult(ik);let iS=class{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new r5(this._processor,i,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let s=new rY(rg,i,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=iu(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};iS.default=iS;let ix=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new ik(this,e,t):new iS(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function iC(e,t){if(Array.isArray(e))return e.map(e=>iC(e));let{inputs:r,...i}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:rU.prototype};r.map&&(r.map={...r.map,__proto__:rI.prototype}),t.push(r)}if(i.nodes&&(i.nodes=e.nodes.map(e=>iC(e,t))),i.source){let{inputId:e,...r}=i.source;i.source=r,null!=e&&(i.source.input=t[e])}if("root"===i.type)return new ir(i);if("decl"===i.type)return new rb(i);if("rule"===i.type)return new io(i);if("comment"===i.type)return new rZ(i);if("atrule"===i.type)return new ie(i);else throw Error("Unknown node type: "+e.type)}function iE(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ix(e)}ix.default=ix,ir.registerProcessor(ix),r2.registerProcessor(ix),iC.default=iC,iE.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),G.default.env.LANG&&G.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=new ix().version,s}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return iE([n(r)]).process(e,t)},n},iE.stringify=rg,iE.parse=iu,iE.fromJSON=iC,iE.list=ii,iE.comment=e=>new rZ(e),iE.atRule=e=>new ie(e),iE.decl=e=>new rb(e),iE.rule=e=>new io(e),iE.root=e=>new ir(e),iE.document=e=>new r2(e),iE.CssSyntaxError=rh,iE.Declaration=rb,iE.Container=r0,iE.Processor=ix,iE.Document=r2,iE.Comment=rZ,iE.Warning=r3,iE.AtRule=ie,iE.Result=r5,iE.Input=rU,iE.Rule=io,iE.Root=ir,iE.Node=r_,ik.registerPostcss(iE),iE.default=iE;let iI=iE&&iE.__esModule&&Object.prototype.hasOwnProperty.call(iE,"default")?iE.default:iE;iI.stringify,iI.fromJSON,iI.plugin,iI.parse,iI.list,iI.document,iI.comment,
1iI.atRule,iI.rule,iI.decl,iI.root,iI.CssSyntaxError,iI.Declaration,iI.Container,iI.Processor,iI.Document,iI.Comment,iI.Warning,iI.AtRule,iI.Result,iI.Input,iI.Rule,iI.Root,iI.Node;var iO=((oM=iO||{})[oM.Document=0]="Document",oM[oM.DocumentType=1]="DocumentType",oM[oM.Element=2]="Element",oM[oM.Text=3]="Text",oM[oM.CDATA=4]="CDATA",oM[oM.Comment=5]="Comment",oM);class iR{constructor(...e){rs(this,"parentElement",null),rs(this,"parentNode",null),rs(this,"ownerDocument"),rs(this,"firstChild",null),rs(this,"lastChild",null),rs(this,"previousSibling",null),rs(this,"nextSibling",null),rs(this,"ELEMENT_NODE",1),rs(this,"TEXT_NODE",3),rs(this,"nodeType"),rs(this,"nodeName"),rs(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof iR)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var iM=((oA=iM||{})[oA.PLACEHOLDER=0]="PLACEHOLDER",oA[oA.ELEMENT_NODE=1]="ELEMENT_NODE",oA[oA.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",oA[oA.TEXT_NODE=3]="TEXT_NODE",oA[oA.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",oA[oA.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",oA[oA.ENTITY_NODE=6]="ENTITY_NODE",oA[oA.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",oA[oA.COMMENT_NODE=8]="COMMENT_NODE",oA[oA.DOCUMENT_NODE=9]="DOCUMENT_NODE",oA[oA.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",oA[oA.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",oA);let iA={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},iT={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},iP={};function iN(e){if(iP[e])return iP[e];let t=globalThis[e],r=t.prototype,i=e in iA?iA[e]:void 0,n=!!(i&&i.every(e=>{var t,i;return!!(null==(i=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:i.toString().includes("[native code]"))})),s=e in iT?iT[e]:void 0,o=!!(s&&s.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!globalThis.Zone)return iP[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");document.body.appendChild(i);let n=i.contentWindow;if(!n)return t.prototype;let s=n[e].prototype;if(document.body.removeChild(i),!s)return r;return iP[e]=s}catch{return r}}let iD={};function iL(e,t,r){var i;let n=`${e}.${String(r)}`;if(iD[n])return iD[n].call(t);let s=null==(i=Object.getOwnPropertyDescriptor(iN(e),r))?void 0:i.get;return s?(iD[n]=s,s.call(t)):t[r]}let iF={};function iU(e,t,r){let i=`${e}.${String(r)}`;if(iF[i])return iF[i].bind(t);let n=iN(e)[r];return"function"!=typeof n?t[r]:(iF[i]=n,n.bind(t))}function iB(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}let ij=function(e){return iL("Node",e,"childNodes")},iq=function(e){return iL("Node",e,"parentNode")},iz=function(e){return iL("Node",e,"parentElement")},i$=function(e){return iL("Node",e,"textContent")},iW=function(e,t){return iU("Node",e,"contains")(t)},iV=function(e){return iU("Node",e,"getRootNode")()},iH=function(e){return e&&"host"in e?iL("ShadowRoot",e,"host"):null},iG=function(e){return e&&"shadowRoot"in e?iL("Element",e,"shadowRoot"):null};function iY(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}let iJ="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.",iZ={map:{},getId:()=>(console.error(iJ),-1),getNode:()=>(console.error(iJ),null),removeNodeFromMap(){console.error(iJ)},has:()=>(console.error(iJ),!1),reset(){console.error(iJ)}};function iX(e,t,r={}){let i=null,n=0;return function(...s){let o=Date.now();n||!1!==r.leading||(n=o);let a=t-(o-n),l=this;a<=0||a>t?(i&&(clearTimeout(i),i=null),n=o,e.apply(l,s)):i||!1===r.trailing||(i=setTimeout(()=>{n=!1===r.leading?0:Date.now(),i=null,e.apply(l,s)},a))}}function iK(e,t,r,i,n=window){let s=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>iK(e,t,s||{},!0)}"u">typeof window&&window.Proxy&&window.Reflect&&(iZ=new Proxy(iZ,{get:(e,t,r)=>("map"===t&&console.error(iJ),Reflect.get(e,t,r))}));let iQ=Date.now;function i0(e){var t,r,i,n;let s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:s.documentElement.scrollLeft||(null==s?void 0:s.body)&&(null==(t=iz(s.body))?void 0:t.scrollLeft)||(null==(r=null==s?void 0:s.body)?void 0:r.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null==s?void 0:s.body)&&(null==(i=iz(s.body))?void 0:i.scrollTop)||(null==(n=null==s?void 0:s.body)?void 0:n.scrollTop)||0}}function i1(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function i2(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function i3(e){return e?e.nodeType===e.ELEMENT_NODE?e:iz(e):null}function i5(e,t,r,i){if(!e)return!1;let n=i3(e);if(!n)return!1;try{if("string"==typeof t){if(n.classList.contains(t)||i&&null!==n.closest("."+t))return!0}else if(eW(n,t,i))return!0}catch(e){}return!!(r&&(n.matches(r)||i&&null!==n.closest(r)))||!1}function i6(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function i8(e){return!!e.changedTouches}
1function i4(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function i9(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function i7(e){return!!e&&(e instanceof iR&&"shadowRoot"in e?!!e.shadowRoot:!!iG(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(iQ=()=>new Date().getTime());class ne{constructor(){er(this,"id",1),er(this,"styleIDMap",new WeakMap),er(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}remove(e){let t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)}}function nt(e){var t;let r=null;return"getRootNode"in e&&(null==(t=iV(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&iH(iV(e))&&(r=iH(iV(e))),r}function nr(e){var t;let r,i=e.ownerDocument;return!!i&&(iW(i,e)||!!(r=(t=e).ownerDocument)&&iW(r,function(e){let t,r=e;for(;t=nt(r);)r=t;return r}(t)))}var ni=((oT=ni||{})[oT.DomContentLoaded=0]="DomContentLoaded",oT[oT.Load=1]="Load",oT[oT.FullSnapshot=2]="FullSnapshot",oT[oT.IncrementalSnapshot=3]="IncrementalSnapshot",oT[oT.Meta=4]="Meta",oT[oT.Custom=5]="Custom",oT[oT.Plugin=6]="Plugin",oT),nn=((oP=nn||{})[oP.Mutation=0]="Mutation",oP[oP.MouseMove=1]="MouseMove",oP[oP.MouseInteraction=2]="MouseInteraction",oP[oP.Scroll=3]="Scroll",oP[oP.ViewportResize=4]="ViewportResize",oP[oP.Input=5]="Input",oP[oP.TouchMove=6]="TouchMove",oP[oP.MediaInteraction=7]="MediaInteraction",oP[oP.StyleSheetRule=8]="StyleSheetRule",oP[oP.CanvasMutation=9]="CanvasMutation",oP[oP.Font=10]="Font",oP[oP.Log=11]="Log",oP[oP.Drag=12]="Drag",oP[oP.StyleDeclaration=13]="StyleDeclaration",oP[oP.Selection=14]="Selection",oP[oP.AdoptedStyleSheet=15]="AdoptedStyleSheet",oP[oP.CustomElement=16]="CustomElement",oP),ns=((oN=ns||{})[oN.MouseUp=0]="MouseUp",oN[oN.MouseDown=1]="MouseDown",oN[oN.Click=2]="Click",oN[oN.ContextMenu=3]="ContextMenu",oN[oN.DblClick=4]="DblClick",oN[oN.Focus=5]="Focus",oN[oN.Blur=6]="Blur",oN[oN.TouchStart=7]="TouchStart",oN[oN.TouchMove_Departed=8]="TouchMove_Departed",oN[oN.TouchEnd=9]="TouchEnd",oN[oN.TouchCancel=10]="TouchCancel",oN),no=((oD=no||{})[oD.Mouse=0]="Mouse",oD[oD.Pen=1]="Pen",oD[oD.Touch=2]="Touch",oD),na=((oL=na||{})[oL["2D"]=0]="2D",oL[oL.WebGL=1]="WebGL",oL[oL.WebGL2=2]="WebGL2",oL),nl=((oF=nl||{})[oF.Play=0]="Play",oF[oF.Pause=1]="Pause",oF[oF.Seeked=2]="Seeked",oF[oF.VolumeChange=3]="VolumeChange",oF[oF.RateChange=4]="RateChange",oF),nc=((oU=nc||{}).Start="start",oU.Pause="pause",oU.Resume="resume",oU.Resize="resize",oU.Finish="finish",oU.FullsnapshotRebuilded="fullsnapshot-rebuilded",oU.LoadStylesheetStart="load-stylesheet-start",oU.LoadStylesheetEnd="load-stylesheet-end",oU.SkipStart="skip-start",oU.SkipEnd="skip-end",oU.MouseInteraction="mouse-interaction",oU.EventCast="event-cast",oU.CustomEvent="custom-event",oU.Flush="flush",oU.StateChange="state-change",oU.PlayBack="play-back",oU.Destroy="destroy",oU),nu=((oB=nu||{})[oB.Document=0]="Document",oB[oB.DocumentType=1]="DocumentType",oB[oB.Element=2]="Element",oB[oB.Text=3]="Text",oB[oB.CDATA=4]="CDATA",oB[oB.Comment=5]="Comment",oB);class nh{constructor(){er(this,"length",0),er(this,"head",null),er(this,"tail",null)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let np=(e,t)=>`${e}@${t}`;class nf{constructor(){er(this,"frozen",!1),er(this,"locked",!1),er(this,"texts",[]),er(this,"attributes",[]),er(this,"attributeMap",new WeakMap),er(this,"removes",[]),er(this,"mapRemoves",[]),er(this,"movedMap",{}),er(this,"addedSet",new Set),er(this,"movedSet",new Set),er(this,"droppedSet",new Set),er(this,"removesSubTreeCache",new Set),er(this,"mutationCb"),er(this,"blockClass"),er(this,"blockSelector"),er(this,"maskTextClass"),er(this,"maskTextSelector"),er(this,"inlineStylesheet"),er(this,"maskInputOptions"),er(this,"maskTextFn"),er(this,"maskInputFn"),er(this,"keepIframeSrcFn"),er(this,"recordCanvas"),er(this,"inlineImages"),er(this,"slimDOMOptions"),er(this,"dataURLOptions"),er(this,"doc"),er(this,"mirror"),er(this,"iframeManager"),er(this,"stylesheetManager"),er(this,"shadowDomManager"),er(this,"canvasManager"),er(this,"processedNodeManager"),er(this,"unattachedDoc"),er(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),er(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new nh,i=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},n=n=>{let s=iq(n);if(!s||!nr(n))return;let o=!1;if(n.nodeType===Node.TEXT_NODE){let e=s.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(s)&&(o=!0)}let a=e_(s)?this.mirror.getId(nt(n)):this.mirror.getId(s),l=i(n);if(-1===a||-1===l)return r.addNode(n);let c=eG(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{i4(e,this.mirror)&&this.iframeManager.addIframe(e),i9(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),i7(n)&&this.shadowDomManager.addShadowRoot(iG(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});c&&(e.push({parentId:a,nextId:l,node:c}),t.add(c.id))};for(;this.mapRemoves.length;){let e=this.mapRemoves.shift();this.cleanupRemovedNode(e),this.mirror.removeNodeFromMap(e)}for(let e of this.movedSet)(!ng(this.removesSubTreeCache,e,this.mirror)||this.movedSet.has(iq(e)))&&n(e);for(let e of this.addedSet)nm(this.droppedSet,e)||ng(this.removesSubTreeCache,e,this.mirror)?nm(this.movedSet,e)?n(e):this.droppedSet.add(e):n(e);let s=null;for(;r.length;){let e=null;if(s){let t=this.mirror.getId(iq(s.value)),r=i(s.value);-1!==t&&-1!==r&&(e=s)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(iq(r.value));if(-1===i(r.value))continue;if(-1!==t){e=r;break}{let t=iq(r.value);if(t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let i=iH(t);if(-1!==this.mirror.getId(i)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}s=e.previous,r.removeNode(e.value),n(e.value)}let o={texts:this.texts.map(e=>{let t=e.node,r=iq(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))}),er(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let r=Array.from(ij(e),e=>i$(e)||"").join("");
1t.attributes.value=eS({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:eE(e),value:r,maskInputFn:this.maskInputFn})}),er(this,"processMutation",e=>{if(!i6(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=i$(e.target);i5(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:eV(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,i3(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,i=e.target.getAttribute(r);if("value"===r){let e=eE(t);i=eS({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(i5(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(i))if(t.contentDocument)return;else r="rr_src";if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!e$(t.tagName,r))if(n.attributes[r]=ez(this.doc,ex(t.tagName),ex(r),i),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let i of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(i),s=t.style.getPropertyPriority(i);e!==r.style.getPropertyValue(i)||s!==r.style.getPropertyPriority(i)?""===s?n.styleDiff[i]=e:n.styleDiff[i]=[e,s]:n._unchangedStyles[i]=[e,s]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}else"open"===r&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":if(i5(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=e_(e.target)?this.mirror.getId(iH(e.target)):this.mirror.getId(e.target);i5(e.target,this.blockClass,this.blockSelector,!1)||i6(t,this.mirror,this.slimDOMOptions)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(nd(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(e_(t))return!1;let i=r.getId(t);if(!r.has(i))return!0;let n=iq(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||e(n,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[np(r,i)]?nd(this.movedSet,t):(this.removes.push({parentId:i,id:r,isShadow:!!(e_(e.target)&&ev(e.target))||void 0}),function(e,t){let r=[e];for(;r.length;){let e=r.pop();t.has(e)||(t.add(e),ij(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),er(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(i6(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[np(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!i5(e,this.blockClass,this.blockSelector,!1)&&(ij(e).forEach(e=>
1this.genAdds(e)),i7(e)&&ij(iG(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}),er(this,"cleanupRemovedNode",e=>{if("IFRAME"===e.nodeName)try{this.iframeManager.removeIframe(e)}catch(e){}else try{this.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch(e){}e.childNodes.forEach(e=>{this.cleanupRemovedNode(e)})})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}getDoc(){return this.doc}}function nd(e,t){e.delete(t),ij(t).forEach(t=>nd(e,t))}function ng(e,t,r){var i;let n;return 0!==e.size&&(i=e,!!(n=iq(t))&&i.has(n))}function nm(e,t){return 0!==e.size&&function e(t,r){let i=iq(r);return!!i&&(!!t.has(i)||e(t,i))}(e,t)}let ny=e=>v?(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return;throw e}}:e,n_=[];function nv(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function nb(e,t){let r=new nf;n_.push(r),r.init(e);let i=new(iN("MutationObserver")).constructor(ny(r.processMutations.bind(r)));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function nw({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:s}){return iY("scroll",ny(iX(ny(s=>{let o=nv(s);if(!o||i5(o,i,n,!0))return;let a=r.getId(o);if(o===t&&t.defaultView){let r=i0(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),s.scroll||100)),t)}let nk=["INPUT","TEXTAREA","SELECT"],nS=new WeakMap;function nx(e){var t=[];if(nO("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||nO("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||nO("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||nO("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function nC(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function nE({mirror:e,stylesheetManager:t},r){var i,n,s;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(iH(r));let a="#document"===r.nodeName?null==(i=r.defaultView)?void 0:i.Document:null==(s=null==(n=r.ownerDocument)?void 0:n.defaultView)?void 0:s.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;let i=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(e){}return i}}),ny(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function nI(e,t={}){let r,i=e.doc.defaultView;if(!i)return()=>{};!function(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:s,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:h,fontCb:p,selectionCb:f,customElementCb:d}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),n(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),h(...e)}
1,e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),f(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),d(...e)}}(e,t),e.recordDOM&&(r=nb(e,e.doc));let n=function({mousemoveCb:e,sampling:t,doc:r,mirror:i}){let n;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=iX(ny(t=>{let r=Date.now()-n;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],n=null}),o),c=ny(iX(ny(e=>{let t=nv(e),{clientX:r,clientY:s}=i8(e)?e.changedTouches[0]:e;n||(n=iQ()),a.push({x:r,y:s,id:i.getId(t),timeOffset:iQ()-n}),l("u">typeof DragEvent&&e instanceof DragEvent?nn.Drag:e instanceof MouseEvent?nn.MouseMove:nn.TouchMove)}),s,{trailing:!1})),u=[iY("mousemove",c,r),iY("touchmove",c,r),iY("drag",c,r)];return ny(()=>{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,a=[],l=null;return Object.keys(ns).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(s=>{let o=ex(s),c=t=>{let o=nv(t);if(i5(o,i,n,!0))return;let a=null,c=s;if("pointerType"in t){switch(t.pointerType){case"mouse":a=no.Mouse;break;case"touch":a=no.Touch;break;case"pen":a=no.Pen}a===no.Touch?ns[s]===ns.MouseDown?c="TouchStart":ns[s]===ns.MouseUp&&(c="TouchEnd"):no.Pen}else i8(t)&&(a=no.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===no.Touch||c.startsWith("Mouse")&&a===no.Mouse)&&(a=null)):ns[s]===ns.Click&&(a=l,l=null);let u=i8(t)?t.changedTouches[0]:t;if(!u)return;let h=r.getId(o),{clientX:p,clientY:f}=u;ny(e)({type:ns[c],id:h,x:p,y:f,...null!==a&&{pointerType:a}})};if(window.PointerEvent)switch(ns[s]){case ns.MouseDown:case ns.MouseUp:o=o.replace("mouse","pointer");break;case ns.TouchStart:case ns.TouchEnd:return}a.push(iY(o,c,t))}),ny(()=>{a.forEach(e=>e())})}(e),o=nw(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,i=-1;return iY("resize",ny(iX(ny(()=>{let t=i1(),n=i2();(r!==t||i!==n)&&(e({width:Number(n),height:Number(t)}),r=t,i=n)}),200)),t)}(e,{win:i}),l=function({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:s,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function h(e){let r=nv(e),c=e.isTrusted,h=r&&r.tagName;if(r&&"OPTION"===h&&(r=iz(r)),!r||!h||0>nk.indexOf(h)||i5(r,i,n,!0)||r.classList.contains(s)||o&&r.matches(o))return;let f=r.value,d=!1,g=eE(r)||"";"radio"===g||"checkbox"===g?d=r.checked:(a[h.toLowerCase()]||a[g])&&(f=eS({element:r,maskInputOptions:a,tagName:h,type:g,value:f,maskInputFn:l})),p(r,u?{text:f,isChecked:d,userTriggered:c}:{text:f,isChecked:d});let m=r.name;"radio"===g&&m&&d&&t.querySelectorAll(`input[type="radio"][name="${m}"]`).forEach(e=>{if(e!==r){let t=e.value;p(e,u?{text:t,isChecked:!d,userTriggered:!1}:{text:t,isChecked:!d})}})}function p(t,i){let n=nS.get(t);if(!n||n.text!==i.text||n.isChecked!==i.isChecked){nS.set(t,i);let n=r.getId(t);ny(e)({...i,id:n})}}let f=("last"===c.input?["change"]:["input","change"]).map(e=>iY(e,ny(h),t)),d=t.defaultView;if(!d)return()=>{f.forEach(e=>e())};let g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),m=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&f.push(...m.map(e=>iK(e[0],e[1],{set(){ny(h)({target:this,isTrusted:!1})}},!1,d))),ny(()=>{f.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:s}){let o=ny(s=>iX(ny(n=>{let o=nv(n);if(!o||i5(o,t,r,!0))return;let{currentTime:a,volume:l,muted:c,playbackRate:u,loop:h}=o;e({type:s,id:i.getId(o),currentTime:a,volume:l,muted:c,playbackRate:u,loop:h})}),n.media||500)),a=[iY("play",o(nl.Play),s),iY("pause",o(nl.Pause),s),iY("seeked",o(nl.Seeked),s),iY("volumechange",o(nl.VolumeChange),s),iY("ratechange",o(nl.RateChange),s)];return ny(()=>
1{a.forEach(e=>e())})}(e),u=()=>{},h=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){let n,s;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ny((i,n,s)=>{let[o,a]=s,{id:l,styleId:c}=nC(n,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),i.apply(n,s)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){let n=`${e} { ${t} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:ny((i,n,s)=>{let[o]=s,{id:a,styleId:l}=nC(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),i.apply(n,s)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:ny((i,n,s)=>{let[o]=s,{id:a,styleId:l}=nC(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),i.apply(n,s)})}
1)),i.CSSStyleSheet.prototype.replaceSync&&(s=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ny((i,n,s)=>{let[o]=s,{id:a,styleId:l}=nC(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),i.apply(n,s)})}));let l={};nR("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(nR("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),nR("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),nR("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let c={};return Object.entries(l).forEach(([i,n])=>{c[i]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(c[i].insertRule,{apply:ny((i,n,s)=>{let[o,a]=s,{id:l,styleId:c}=nC(n.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...nx(n),a||0]}]}),i.apply(n,s)})}),n.prototype.deleteRule=new Proxy(c[i].deleteRule,{apply:ny((i,n,s)=>{let[o]=s,{id:a,styleId:l}=nC(n.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...nx(n),o]}]}),i.apply(n,s)})})}),ny(()=>{i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=a,n&&(i.CSSStyleSheet.prototype.replace=n),s&&(i.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:i}),h=nE(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ny((n,o,a)=>{var l;let[c,u,h]=a;if(r.has(c))return s.apply(o,[c,u,h]);let{id:p,styleId:f}=nC(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,i.styleMirror);return(p&&-1!==p||f&&-1!==f)&&e({id:p,styleId:f,set:{property:c,value:u,priority:h},index:nx(o.parentRule)}),n.apply(o,a)})});let o=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ny((n,s,a)=>{var l;let[c]=a;if(r.has(c))return o.apply(s,[c]);let{id:u,styleId:h}=nC(null==(l=s.parentRule)?void 0:l.parentStyleSheet,t,i.styleMirror);return(u&&-1!==u||h&&-1!==h)&&e({id:u,styleId:h,remove:{property:c},index:nx(s.parentRule)}),n.apply(s,a)})}),ny(()=>{n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:i}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,r){let i=new s(e,t,r);return n.set(i,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};let o=iB(t.fonts,"add",function(t){return function(r){return setTimeout(ny(()=>{let t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return i.push(()=>{r.FontFace=s}),i.push(o),ny(()=>{i.forEach(e=>e())})}(e)));let d=function(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:s}=e,o=!0,a=ny(()=>{let e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;let a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:s,startOffset:o,endContainer:l,endOffset:c}=e.getRangeAt(t);i5(s,i,n,!0)||i5(l,i,n,!0)||a.push({start:r.getId(s),startOffset:o,end:r.getId(l),endOffset:c})}s({ranges:a})});return a(),iY("selectionchange",a)}(e),g=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?iB(r.customElements,"define",function(e){return function(r,i,n){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,i,n])}}):()=>{}}(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,i,t.options));return ny(()=>{n_.forEach(e=>e.reset()),null==r||r.disconnect(),n(),s(),o(),a(),l(),c(),u(),h(),p(),f(),d(),g(),m.forEach(e=>e())})}function nO(e){return void 0!==window[e]}function nR(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class nM{constructor(e){er(this,"iframeIdToRemoteIdMap",new WeakMap),er(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){let n=r||this.getIdToRemoteIdMap(e),s=i||this.getRemoteIdToIdMap(e),o=n.get(t);return o||(o=this.generateIdFn(),n.set(t,o),s.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,i))}getRemoteId(e,t,r){let i=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let n=i.get(t);return n||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class nA{constructor(e){er(this,"iframes",new WeakMap),er(this,"crossOriginIframeMap",new WeakMap),er(this,"crossOriginIframeMirror",new nM(eL)),er(this,"crossOriginIframeStyleMirror"),er(this,"crossOriginIframeRootIdMap",new WeakMap),er(this,"iframeContentDocumentMap",new WeakMap),er(this,"iframeObserverCleanupMap",new WeakMap),er(this,"mirror"),er(this,"mutationCb"),er(this,"wrappedEmit"),er(this,"loadListener"),er(this,"stylesheetManager"),er(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=ne
1w nM(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}getIframeContentDocument(e){return this.iframeContentDocumentMap.get(e)}setObserverCleanup(e,t){this.iframeObserverCleanupMap.set(e,t)}getObserverCleanup(e){return this.iframeObserverCleanupMap.get(e)}removeIframe(e){let t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);let r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}
vendor: 4,454 bytes, line 1
1),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(i=this.loadListener)||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case ni.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:ni.IncrementalSnapshot,data:{source:nn.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ni.Meta:case ni.Load:case ni.DomContentLoaded:break;case ni.Plugin:return t;case ni.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ni.IncrementalSnapshot:switch(t.data.source){case nn.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case nn.Drag:case nn.TouchMove:case nn.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case nn.ViewportResize:return!1;case nn.MediaInteraction:case nn.MouseInteraction:case nn.Scroll:case nn.CanvasMutation:case nn.Input:return this.replaceIds(t.data,e,["id"]),t;case nn.StyleSheetRule:case nn.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nn.Font:return t;case nn.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case nn.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(let n of i)(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===nu.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class nT{constructor(e){er(this,"shadowDoms",new WeakSet),er(this,"mutationCb"),er(this,"scrollCb"),er(this,"bypassOptions"),er(this,"mirror"),er(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!ev(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=nb({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(nw({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(iH(e))),this.restoreHandlers.push(nE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(iB(e.prototype,"attachShadow",function(e){return function(i){let n=e.call(this,i),s=iG(this);return s&&nr(this)&&r.addShadowRoot(s,t),n}}))}
1reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var nP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nN="u"<typeof Uint8Array?[]:new Uint8Array(256),nD=0;nD<nP.length;nD++)nN[nP.charCodeAt(nD)]=nD;var nL=function(e){var t,r=new Uint8Array(e),i=r.length,n="";for(t=0;t<i;t+=3)n+=nP[r[t]>>2],n+=nP[(3&r[t])<<4|r[t+1]>>4],n+=nP[(15&r[t+1])<<2|r[t+2]>>6],n+=nP[63&r[t+2]];return i%3==2?n=n.substring(0,n.length-1)+"=":i%3==1&&(n=n.substring(0,n.length-2)+"=="),n};let nF=new Map,nU=(e,t,r)=>{let i;if(!e||!(nj(e,t)||"object"==typeof e))return;let n=e.constructor.name,s=((i=nF.get(r))||(i=new Map,nF.set(r,i)),i.has(n)||i.set(n,[]),i.get(n)),o=s.indexOf(e);return -1===o&&(o=s.length,s.push(e)),o},nB=(e,t,r)=>e.map(e=>(function e(t,r,i){if(t instanceof Array)return t.map(t=>e(t,r,i));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:nL(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,i),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,i),t.width,t.height]};else if(nj(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:nU(t,r,i)};return t})(e,t,r)),nj=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function nq(e,t,r,i){let n=[];try{let s=iB(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n,...s){if(!i5(this,t,r,!0)){let e="experimental-webgl"===n?"webgl":n;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){let e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[n,...s])}});n.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(e=>e())}}function nz(e,t,r,i,n,s){let o=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let l=iB(e,a,function(e){return function(...o){let l=e.apply(this,o);if(nU(l,s,this),"tagName"in this.canvas&&!i5(this.canvas,i,n,!0)){let e=nB(o,s,this),i={type:t,property:a,args:e};r(this.canvas,i)}return l}});o.push(l)}catch{let i=iK(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});o.push(i)}return o}let n$="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybi
1BiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",nW="u">typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(n$),e=>e.charCodeAt(0))],{type:"text/javascript;charset=utf-8"});function nV(e){let t;try{if(!(t=nW&&(window.URL||window.webkitURL).createObjectURL(nW)))throw"";let r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+n$,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class nH{constructor(e){er(this,"pendingCanvasMutations",new Map),er(this,"rafStamps",{latestId:0,invokeId:null}),er(this,"mirror"),er(this,"mutationCb"),er(this,"resetObservers"),er(this,"frozen",!1),er(this,"locked",!1),er(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:s,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===t&&this.initCanvasMutationObserver(r,i,n),s&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,i,n){let s,o=nq(t,r,i,!0),a=new Map,l=new nV;l.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:i,width:n,height:s}=e.data;this.mutationCb({id:t,type:na["2D"],commands:[{property:"clearRect",args:[0,0,n,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})};let c=1e3/e,u=0,h=e=>{let o;if(u&&e-u<c){s=requestAnimationFrame(h);return}
1u=e,(o=[],t.document.querySelectorAll("canvas").forEach(e=>{i5(e,r,i,!0)||o.push(e)}),o).forEach(async e=>{var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let i=await createImageBitmap(e);l.postMessage({id:r,bitmap:i,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[i])}),s=requestAnimationFrame(h)};s=requestAnimationFrame(h),this.resetObservers=()=>{o(),cancelAnimationFrame(s)}}initCanvasMutationObserver(e,t,r){var i;let n;this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let s=nq(e,t,r,!1),o=function(e,t,r,i){let n=[];for(let s of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;let o=iB(t.CanvasRenderingContext2D.prototype,s,function(n){return function(...o){return i5(this.canvas,r,i,!0)||setTimeout(()=>{let r=nB(o,t,this);e(this.canvas,{type:na["2D"],property:s,args:r})},0),n.apply(this,o)}});n.push(o)}catch{let r=iK(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:na["2D"],property:s,args:[t],setter:!0})}});n.push(r)}return()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),a=(i=this.processMutation.bind(this),(n=[]).push(...nz(e.WebGLRenderingContext.prototype,na.WebGL,i,t,r,e)),void 0!==e.WebGL2RenderingContext&&n.push(...nz(e.WebGL2RenderingContext.prototype,na.WebGL2,i,t,r,e)),()=>{n.forEach(e=>e())});this.resetObservers=()=>{s(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let i=r.map(e=>{let{type:t,...r}=e;return r}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}class nG{constructor(e){er(this,"trackedLinkElements",new WeakSet),er(this,"mutationCb"),er(this,"adoptedStyleSheetCb"),er(this,"styleMirror",new ne),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},i=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:ew(e,t.href),index:r}))})),r.styleIds.push(e)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}cleanupStylesheetsForRemovedNode(e){try{if(e.nodeType===Node.DOCUMENT_NODE&&e.adoptedStyleSheets)for(let t of e.adoptedStyleSheets)this.styleMirror.remove(t);"STYLE"===e.nodeName&&e.sheet&&this.styleMirror.remove(e.sheet),"LINK"===e.nodeName&&"stylesheet"===e.rel&&e.sheet&&this.styleMirror.remove(e.sheet),e.childNodes&&e.childNodes.forEach(e=>{this.cleanupStylesheetsForRemovedNode(e)})}catch(e){}}trackStylesheetInLinkElement(e){}}class nY{constructor(){er(this,"nodeMap",new WeakMap),er(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let nJ=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(o$=e.contentWindow)?void 0:o$.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let nZ=new ek;function nX(e={}
1){let t,r,{emit:i,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:o="rr-block",blockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskTextClass:u="rr-mask",maskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:g,maskInputFn:m,maskTextFn:y,hooks:_,packFn:S,sampling:x={},dataURLOptions:C={},mousemoveWait:E,recordDOM:I=!0,recordCanvas:O=!1,recordCrossOriginIframes:R=!1,allowedIframeOrigins:M,recordAfter:A="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:T=!1,collectFonts:P=!1,inlineImages:N=!1,plugins:D,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:U}=e;v=U,R&&M&&M.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");let t=new Set;for(let r=0;r<e.length;r++){let i=e[r];if("string"!=typeof i)throw Error(`[rrweb] allowedIframeOrigins[${r}] must be a string, got ${typeof i}.`);let n=function(e){try{let t=new URL(e).origin;return"null"!==t?t:null}catch{return null}}(i);n&&t.add(n)}return Object.freeze(t)}(M)).size&&(t=void 0);let B=!R||window.parent===window,j=!1;if(!B)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(B&&!i)throw Error("emit function is required");if(!B&&!j)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),nZ.reset();let q=!0===f?{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,hidden:!0}:void 0!==d?d:{password:!0},z=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g,headTitleMutations:"all"===g}:g||{};!function(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)}();let $=0,W=e=>{for(let t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!j&&(e=S(e)),e};b=(e,o)=>{var a;if(e.timestamp=iQ(),(null==(a=n_[0])?void 0:a.isFrozen())&&e.type!==ni.FullSnapshot&&(e.type!==ni.IncrementalSnapshot||e.data.source!==nn.Mutation)&&n_.forEach(e=>e.unfreeze()),B)null==i||i(W(e),o);else if(j){let r={type:"rrweb",event:W(e),origin:window.location.origin,isCheckout:o};if(t)for(let e of t)window.parent.postMessage(r,e);else window.parent.postMessage(r,"*")}if(e.type===ni.FullSnapshot)r=e,$=0;else if(e.type===ni.IncrementalSnapshot){if(e.data.source===nn.Mutation&&e.data.isAttachIframe)return;$++;let t=s&&$>=s,i=n&&e.timestamp-r.timestamp>n;(t||i)&&w(!0)}};let V=e=>{b({type:ni.IncrementalSnapshot,data:{source:nn.Mutation,...e}})},H=e=>b({type:ni.IncrementalSnapshot,data:{source:nn.Scroll,...e}}),G=e=>b({type:ni.IncrementalSnapshot,data:{source:nn.CanvasMutation,...e}}),Y=new nG({mutationCb:V,adoptedStyleSheetCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.AdoptedStyleSheet,...e}})}),J=new nA({mirror:nZ,mutationCb:V,stylesheetManager:Y,recordCrossOriginIframes:R,wrappedEmit:b});for(let e of D||[])e.getMirror&&e.getMirror({nodeMirror:nZ,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});let Z=new nY;k=new nH({recordCanvas:O,mutationCb:G,win:window,blockClass:o,blockSelector:a,mirror:nZ,sampling:x.canvas,dataURLOptions:C});let X=new nT({mutationCb:V,scrollCb:H,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:u,maskTextSelector:h,inlineStylesheet:p,maskInputOptions:q,dataURLOptions:C,maskTextFn:y,maskInputFn:m,recordCanvas:O,inlineImages:N,sampling:x,slimDOMOptions:z,iframeManager:J,stylesheetManager:Y,canvasManager:k,keepIframeSrcFn:L,processedNodeManager:Z},mirror:nZ});w=(e=!1)=>{if(!I)return;b({type:ni.Meta,data:{href:window.location.href,width:i2(),height:i1()}},e),Y.reset(),X.init(),n_.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new ek,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:s="rr
1-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:p,slimDOM:f=!1,dataURLOptions:d,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t||{};return eG(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{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,hidden:!0}:!1===u?{password:!0}:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:d,inlineImages:l,recordCanvas:c,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:nZ,blockClass:o,blockSelector:a,maskTextClass:u,maskTextSelector:h,inlineStylesheet:p,maskAllInputs:q,maskTextFn:y,maskInputFn:m,slimDOM:z,dataURLOptions:C,recordCanvas:O,inlineImages:N,onSerialize:e=>{i4(e,nZ)&&J.addIframe(e),i9(e,nZ)&&Y.trackLinkElement(e),i7(e)&&X.addShadowRoot(iG(e),document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),X.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");b({type:ni.FullSnapshot,data:{node:t,initialOffset:i0(window)}},e),n_.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,nZ.getId(document))};try{let e=[],t=e=>{var t;return ny(nI)({mutationCb:V,mousemoveCb:(e,t)=>b({type:ni.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.MouseInteraction,...e}}),scrollCb:H,viewportResizeCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.ViewportResize,...e}}),inputCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.Input,...e}}),mediaInteractionCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.MediaInteraction,...e}}),styleSheetRuleCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.StyleSheetRule,...e}}),styleDeclarationCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>b({type:ni.IncrementalSnapshot,data:{source:nn.Font,...e}}),selectionCb:e=>{b({type:ni.IncrementalSnapshot,data:{source:nn.Selection,...e}})},customElementCb:e=>{b({type:ni.IncrementalSnapshot,data:{source:nn.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskTextClass:u,maskTextSelector:h,maskInputOptions:q,inlineStylesheet:p,sampling:x,recordDOM:I,recordCanvas:O,inlineImages:N,userTriggeredOnInput:T,collectFonts:P,doc:e,maskInputFn:m,maskTextFn:y,keepIframeSrcFn:L,blockSelector:a,slimDOMOptions:z,dataURLOptions:C,mirror:nZ,iframeManager:J,stylesheetManager:Y,shadowDomManager:X,processedNodeManager:Z,canvasManager:k,ignoreCSSAttributes:F,plugins:(null==(t=null==D?void 0:D.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>b({type:ni.Plugin,data:{plugin:e.name,payload:t}})})))||[]},_)};J.addLoadListener(r=>{try{let i=r.contentDocument,n=t(i);e.push(n);let s=J.getObserverCleanup(r);J.setObserverCleanup(r,()=>{if(s)try{s()}catch(e){}try{n();let t=e.indexOf(n);-1!==t&&e.splice(t,1);for(let e=n_.length-1;e>=0;e--)n_[e].getDoc()===i&&n_.splice(e,1)}catch(e){}})}catch(e){console.warn(e)}});let r=()=>{w(),e.push(t(document)),nJ=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(iY("DOMContentLoaded",()=>{b({type:ni.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&r()})),e.push(iY("load",()=>{b({type:ni.Load,data:{}}),"load"===A&&r()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),Z.destroy(),nJ=!1,v=void 0}}catch(e){console.warn(e)}}nX.addCustomEvent=(e,t)=>
1{if(!nJ)throw Error("please add custom event after start recording");b({type:ni.Custom,data:{tag:e,payload:t}})},nX.freezePage=()=>{n_.forEach(e=>e.freeze())},nX.takeFullSnapshot=e=>{if(!nJ)throw Error("please take full snapshot after start recording");w(e)},nX.mirror=nZ,(oj=oW||(oW={}))[oj.NotStarted=0]="NotStarted",oj[oj.Running=1]="Running",oj[oj.Stopped=2]="Stopped";let{addCustomEvent:nK}=nX,{freezePage:nQ}=nX,{takeFullSnapshot:n0}=nX;var n1=((oq=n1||{})[oq.Document=0]="Document",oq[oq.DocumentType=1]="DocumentType",oq[oq.Element=2]="Element",oq[oq.Text=3]="Text",oq[oq.CDATA=4]="CDATA",oq[oq.Comment=5]="Comment",oq);let n2={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},n3={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},n5={};function n6(e){if(n5[e])return n5[e];let t=globalThis[e],r=t.prototype,i=e in n2?n2[e]:void 0,n=!!(i&&i.every(e=>{var t,i;return!!(null==(i=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:i.toString().includes("[native code]"))})),s=e in n3?n3[e]:void 0,o=!!(s&&s.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!globalThis.Zone)return n5[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");document.body.appendChild(i);let n=i.contentWindow;if(!n)return t.prototype;let s=n[e].prototype;if(document.body.removeChild(i),!s)return r;return n5[e]=s}catch{return r}}let n8={},n4=function(e){var t,r="Node",i=e,n="parentNode";let s=`${r}.${String(n)}`;if(n8[s])return n8[s].call(i);let o=null==(t=Object.getOwnPropertyDescriptor(n6(r),n))?void 0:t.get;return o?(n8[s]=o,o.call(i)):i[n]};RegExp("[^a-z0-9-_:]"),RegExp(/(max|min)-device-(width|height)/.source,"g");var n9={exports:{}},n7=String,se=function(){return{isColorSupported:!1,reset:n7,bold:n7,dim:n7,italic:n7,underline:n7,inverse:n7,hidden:n7,strikethrough:n7,black:n7,red:n7,green:n7,yellow:n7,blue:n7,magenta:n7,cyan:n7,white:n7,gray:n7,bgBlack:n7,bgRed:n7,bgGreen:n7,bgYellow:n7,bgBlue:n7,bgMagenta:n7,bgCyan:n7,bgWhite:n7}};n9.exports=se(),n9.exports.createColors=se;var st=n9.exports;let sr=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),si=class e extends Error{constructor(t,r,i,n,s,o){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let i=this.source;null==e&&(e=st.isColorSupported),sr&&e&&(i=sr(i));let n=i.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),a=String(o).length;if(e){let{bold:e,gray:i,red:n}=st.createColors(!0);t=t=>e(n(t)),r=e=>i(e)}else t=r=e=>e;return n.slice(s,o).map((e,i)=>{let n=s+1+i,o=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let i=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+i+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};si.default=si;var sn={};sn.isClean=Symbol("isClean"),sn.my=Symbol("my");let ss={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},so=class{constructor(e){this.builder=e}
1atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&"root"!==i.type;)n+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],s=this.raw(n,"before");s&&this.builder(s),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return ss[r];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let n="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[n]?i=this[n](s,e):s.walk(e=>{if(void 0!==(i=e.raws[t]))return!1})}return void 0===i&&(i=ss[r]),s.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function sa(e,t){new so(t).stringify(e)}so.default=so,sa.default=sa;let{isClean:sl,my:sc}=sn,su=class{constructor(e={}){for(let t in this.raws={},this[sl]=!1,this[sc]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let s=t[n],o=typeof s;"parent"===n&&"object"===o?r&&(i[n]=r):"source"===n?i[n]=s:Array.isArray(s)?i[n]=s.map(t=>e(t,i)):("object"===o&&null!==s&&(s=e(s)),i[n]=s)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
1error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new si(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[sl]){this[sl]=!1;let e=this;for(;e=e.parent;)e[sl]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);-1!==n&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new so().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let s=t.get(i.input);null==s&&(s=n,t.set(i.input,n),n++),r[e]={end:i.end,inputId:s,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=sa){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}};su.default=su;let sh=su,sp=class extends sh{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};sp.default=sp;let{SourceMapConsumer:sf,SourceMapGenerator:sd}=sr,{existsSync:sg,readFileSync:sm}=sr,{dirname:sy,join:s_}=sr,sv=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=sy(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new sf(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),ee.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=sy(e),sg(e))return this.mapFile=e,sm(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof sf)return sd.fromSourceMap(t).toString();else if(t instanceof sd)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=s_(sy(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};sv.default=sv;let{SourceMapConsumer:sb,SourceMapGenerator:sw}=sr,{fileURLToPath:sk,pathToFileURL:sS}=sr,{isAbsolute:sx,resolve:sC}=sr,{nanoid:sE}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",n=r;for(;n--;)i+=e[Math.random()*e.length|0];return i}}
1,sI=Symbol("fromOffsetCache"),sO=!!(sb&&sw),sR=!!(sC&&sx),sM=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!sR||/^\w+:\/\//.test(t.from)||sx(t.from)?this.file=t.from:this.file=sC(t.from)),sR&&sO){let e=new sv(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+sE(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,s,o;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);s=e.line,o=e.col}else s=i.line,o=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,s,o);return(n=a?new si(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new si(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:o,line:s},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:s,line:t,source:this.css},this.file&&(sS&&(n.input.url=sS(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[sI])r=this[sI];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,n=e.length;i<n;i++)r[i]=t,t+=e[i].length+1;this[sI]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,n=r.length-2;for(;i<n;)if(e<r[t=i+(n-i>>1)])n=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:sC(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){let n,s;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=o.originalPositionFor({column:i,line:r})),s=sx(a.source)?sS(a.source):new URL(a.source,this.map.consumer().sourceRoot||sS(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:s.toString()};if("file:"===s.protocol)if(sk)l.file=sk(s);else throw Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};sM.default=sM,sr&&sr.registerInput&&sr.registerInput(sM);let{SourceMapConsumer:sA,SourceMapGenerator:sT}=sr,{dirname:sP,relative:sN,resolve:sD,sep:sL}=sr,{pathToFileURL:sF}=sr,sU=!!(sA&&sT),sB=!!(sP&&sD&&sN&&sL),sj=class{constructor(e,t,r,i
1){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||sP(e.file);!1===this.mapOpts.sourcesContent?(t=new sA(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),sB&&sU&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=sT.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new sT({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new sT({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,i=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1):(s.source=n,s.original.line=1,s.original.column=0),this.map.addMapping(s)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),i=o.length-t):i+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=i-2):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1),this.map.addMapping(s))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?sP(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=sP(sD(r,this.mapOpts.annotation)));let i=sN(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new sM(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return ee.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(sF){let t=sF(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===sL&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},sq=su,sz=class extends sq{constructor(e){super(e),this.type="comment"}};sz.default=sz;let{isClean:s$,my:sW}=sn,sV=su,sH=class e extends sV{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>
1e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),n=0===i&&"prepend",s=this.normalize(t,this.proxyOf.nodes[i],n).reverse();for(let t of(i=this.index(e),s))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(S(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new sp(t)]}else if(t.selector)t=[new x(t)];else if(t.name)t=[new C(t)];else if(t.text)t=[new sz(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[sW]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[s$]&&function e(t){if(t[s$]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};sH.registerParse=e=>{S=e},sH.registerRule=e=>{x=e},sH.registerAtRule=e=>{C=e},sH.registerRoot=e=>{E=e},sH.default=sH,sH.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,C.prototype):"rule"===e.type?Object.setPrototypeOf(e,x.prototype):"decl"===e.type?Object.setPrototypeOf(e,sp.prototype):"comment"===e.type?Object.setPrototypeOf(e,sz.prototype):"root"===e.type&&Object.setPrototypeOf(e,E.prototype),e[sW]=!0,e.nodes&&e.nodes.forEac
1h(e=>{sH.rebuild(e)})};let sG=sH,sY=class extends sG{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new I(new O,this,e).stringify()}};sY.registerLazyResult=e=>{I=e},sY.registerProcessor=e=>{O=e},sY.default=sY;let sJ=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};sJ.default=sJ;let sZ=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new sJ(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};sZ.default=sZ;let sX=/[\t\n\f\r "#'()/;[\\\]{}]/g,sK=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,sQ=/.[\r\n"'(/\\]/,s0=/[\da-f]/i,s1=sH,s2=class extends s1{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};s2.default=s2,s1.registerAtRule(s2);let s3=sH,s5=class extends s3{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new R(new M,this,e).stringify()}};s5.registerLazyResult=e=>{R=e},s5.registerProcessor=e=>{M=e},s5.default=s5,s3.registerRoot(s5);let s6={comma:e=>s6.split(e,[","],!0),space:e=>s6.split(e,[" ","\n","	"]),split(e,t,r){let i=[],n="",s=!1,o=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==n&&i.push(n.trim()),n="",s=!1):n+=r;return(r||""!==n)&&i.push(n.trim()),i}};s6.default=s6;let s8=sH,s4=class extends s8{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return s6.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};s4.default=s4,s8.registerRule(s4);let s9=function(e,t={}){let r,i,n,s,o,a,l,c,u,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],y=[];function _(t){throw e.error("Unclosed "+t,g)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&g>=d},nextToken:function(e){if(y.length)return y.pop();if(g>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:i=g;do i+=1,r=p.charCodeAt(i);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,i)],g=i-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);h=[e,e,g];break}case 40:if(c=m.length?m.pop()[1]:"",u=p.charCodeAt(g+1),"url"===c&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){i=g;do{if(a=!1,-1===(i=p.indexOf(")",i+1)))if(f||t){i=g;break}else _("bracket");for(l=i;
192===p.charCodeAt(l-1);)l-=1,a=!a}while(a)h=["brackets",p.slice(g,i+1),g,i],g=i}else i=p.indexOf(")",g+1),s=p.slice(g,i+1),-1===i||sQ.test(s)?h=["(","(",g]:(h=["brackets",s,g,i],g=i);break;case 39:case 34:n=39===r?"'":'"',i=g;do{if(a=!1,-1===(i=p.indexOf(n,i+1)))if(f||t){i=g+1;break}else _("string");for(l=i;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)h=["string",p.slice(g,i+1),g,i],g=i;break;case 64:sX.lastIndex=g+1,sX.test(p),i=0===sX.lastIndex?p.length-1:sX.lastIndex-2,h=["at-word",p.slice(g,i+1),g,i],g=i;break;case 92:for(i=g,o=!0;92===p.charCodeAt(i+1);)i+=1,o=!o;if(r=p.charCodeAt(i+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(i+=1,s0.test(p.charAt(i)))){for(;s0.test(p.charAt(i+1));)i+=1;32===p.charCodeAt(i+1)&&(i+=1)}h=["word",p.slice(g,i+1),g,i],g=i;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(i=p.indexOf("*/",g+2)+1)&&(f||t?i=p.length:_("comment")),h=["comment",p.slice(g,i+1),g,i]):(sK.lastIndex=g+1,sK.test(p),i=0===sK.lastIndex?p.length-1:sK.lastIndex-2,h=["word",p.slice(g,i+1),g,i],m.push(h)),g=i}return g++,h},position:function(){return g}}},s7={empty:!0,space:!0},oe=class{constructor(e){this.input=e,this.root=new s5,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,n=new s2;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length)if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(i=a.length-1,r=a[i];r&&"space"===r[0];)r=a[--i];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),s&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(i+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[n,s]of e.entries()){if("("===(t=s[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return n;else this.doubleColon(s);r=s}return!1}comment(e){let t=new sz;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s9(this.input)}decl(e,t){let r,i,n=new sp;this.init(n,e[0][2]);let s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[];for(;e.length&&("space"===(i=e[0][0])||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;
1i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new s4;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),s.push("("===r?")":"]");else if(o&&i&&"{"===r)n||(n=l),s.push("}");else if(0===s.length)if(";"===r)if(i)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(i=!0);else r===s[s.length-1]&&(s.pop(),0===s.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(n),t&&i){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,s,o,a,l=r.length,c="",u=!0;for(let e=0;e<l;e+=1)"space"!==(s=(n=r[e])[0])||e!==l-1||i?"comment"===s?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][
10]:"empty",s7[a]||s7[o]||","===c.slice(-1)?u=!1:c+=n[1]):c+=n[1]:u=!1;if(!u){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:c}}e[t]=c}rule(e){e.pop();let t=new s4;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function ot(e,t){let r=new oe(new sM(e,t));try{r.parse()}catch(e){throw e}return r.root}ot.default=ot,sH.registerParse(ot);let{isClean:or,my:oi}=sn,on={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},os={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},oo={Once:!0,postcssPlugin:!0,prepare:!0};function oa(e){return"object"==typeof e&&"function"==typeof e.then}function ol(e){let t=!1,r=on[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function oc(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ol(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ou(e){return e[or]=!1,e.nodes&&e.nodes.forEach(e=>ou(e)),e}let oh={},op=class e{constructor(t,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=ou(r);else if(r instanceof e||r instanceof sZ)n=ou(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=ot;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[oi]&&sH.rebuild(n)}this.result=new sZ(t,n,i),this.helpers={...oh,postcss:oh,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!os[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oo[r])if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(oa(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[or];){e[or]=!0;let t=[oc(e)];for(;t.length>0;){let e=this.visitTick(t);
1if(oa(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(oa(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=sa;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new sj(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(oa(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[or];)e[or]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(oa(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,n=t.iterator;for(;i=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!i[or]){i[or]=!0,e.push(oc(i));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[or]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[or]=!0,ol(e)))if(0===t)e.nodes&&e.each(e=>{e[or]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};op.registerPostcss=e=>{oh=e},op.default=op,s5.registerLazyResult(op),sY.registerLazyResult(op);let of=class{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new sZ(this._processor,i,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let s=new sj(sa,i,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=ot(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};of.default=of;let od=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new op(this,e,t):new of(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function og(e,t){if(Array.isArray(e))return e.map(e=>og(e));let{inputs:r,...i}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:sM.prototype};r.map&&(r.map={...r.map,__proto__:sv.prototype}),t.push(r)}if(i.nodes&&(i.nodes=e.nodes.map(e=>og(e,t))),i.source){let{inputId:e,...r}=i.source;i.source=r,null!=e&&(i.source.input=t[e])}if("root"===i.type)return new s5(i);if("decl"===i.type)return new sp(i);if("rule"===i.type)return new s4(i);if("comment"===i.type)return new sz(i);if("atrule"===i.type)return new s2(i);else throw Error("Unknown node type: "+e.type)}function om(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new od(e)}od.default=od,s5.registerProcessor(od),sY.registerProcessor(od),og.default=og,om.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),G.default.env.LANG&&G.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=new od().version,s}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return om([n(r)]).process(e,t)},n},om.stringify=sa,om.parse=ot,om.fromJSON=og,om.list=s6,om.comment=e=>new sz(e),om.atRule=e=>new s2(e),om.decl=e=>new sp(e),om.rule=e=>new s4(e),om.root=e=>new s5(e),om.document=e=>new sY(e),om.CssSyntaxError=si,om.Declaration=sp,om.Container=sH,om.Processor=od,om.Document=sY,om.Comment=sz,om.Warning=sJ,om.AtRule=s2,om.Result=sZ,om.Input=sM,om.Rule=s4,om.Root=s5,om.Node=su,op.registerPostcss(om),om.default=om;let oy=om&&om.__esModule&&Object.prototype.hasOwnProperty.call(om,"default")?om.default:om;oy.stringify,oy.fromJSON,oy.plugin,oy.parse,oy.list,oy.document,oy.comment,oy.atRule,oy.rule,oy.decl,oy.root,oy.CssSyntaxError,oy.Declaration,oy.Container,oy.Processor,oy.Document,oy.Comment,oy.Warning,oy.AtRule,oy.Result,oy.Input,oy.Rule,oy.Root,oy.Node;var o_=Object.defineProperty,ov=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?o_(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r};class ob{constructor(e){ov(this,"fileName"),ov(this,"functionName"),ov(this,"lineNumber"),ov(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){let e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}let ow=/(^|@)\S+:\d+/,ok=/^\s*at .*(\S+:\d+|\(native\))/m,oS=/^(eval@)?(\[native code])?$/,ox={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ok)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw 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(ok)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),n=this.extractLocation(r?r[1]:i.pop());return new ob({functionName:i.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0],lineNumber:n[1],columnNumber:n[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(oS)},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 ob({functionName:e});{let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),i=r&&r[1]?r[1]:void 0,n=this.extractLocation(e.replace(t,""));return new ob({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[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){let t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),i=[];for(let e=2,n=r.length;e<n;e+=2){let n=t.exec(r[e]);n&&i.push(new ob({fileName:n[2],lineNumber:parseFloat(n[1])}))}return i},parseOpera10:function(e){let t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),i=[];for(let e=0,n=r.length;e<n;e+=2){let n=t.exec(r[e]);n&&i.push(new ob({functionName:n[3]||void 0,fileName:n[2],lineNumber:parseFloat(n[1])}))}return i},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(ow)&&!e.match(/^Error created at/)},this).map(function(e){let t=e.split("@"),r=this.extractLocation(t.pop());return new ob({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function oC(e){return"[object Object]"===Object.prototype.toString.call(e)}function oE(e,t){let r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);let i=[],n=[];return JSON.stringify(e,function(e,t){var s;if(i.length>0){let r=i.indexOf(this);~r?i.splice(r+1):i.push(this),~r?n.splice(r,1/0,e):n.push(e),~i.indexOf(t)&&(t=i[0]===t?"[Cir
1cular ~]":"[Circular ~."+n.slice(0,i.indexOf(t)).join(".")+"]")}else i.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(oC(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||oC(s)&&function e(t,r){if(0===r)return!0;for(let i of Object.keys(t))if(oC(t[i])&&e(t[i],r-1))return!0;return!1}(s,r.depthOfLimit)){let e;return e=t.toString(),r.stringLengthLimit&&e.length>r.stringLengthLimit&&(e=`${e.slice(0,r.stringLengthLimit)}...`),e}if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){let e={};for(let r in t){let i=t[r];Array.isArray(i)?e[r]=function(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();let i=e.parentElement,n=[];if(i.children&&i.children.length>0)for(let e=0;e<i.children.length;e++){let t=i.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&n.push(t)}n.length>1&&(r+=`:eq(${n.indexOf(e)})`),t=r+(t?">"+t:""),e=i}return t}(i.length?i[0]:null):e[r]=i}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}let oI={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 oO(e,t,r){let i,n=r?Object.assign({},oI,r):oI,s=n.logger;if(!s)return()=>{};i="string"==typeof s?t[s]:s;let o=0,a=!1,l=[];
1if(n.level.includes("error")){let r=t=>{let r=t.message,i=t.error;e({level:"error",trace:ox.parse(i).map(e=>e.toString()),payload:[oE(r,n.stringifyOptions)]})};t.addEventListener("error",r),l.push(()=>{t.removeEventListener("error",r)});let i=t=>{let r,i;t.reason instanceof Error?(r=t.reason,i=[oE(`Uncaught (in promise) ${r.name}: ${r.message}`,n.stringifyOptions)]):(r=Error(),i=[oE("Uncaught (in promise)",n.stringifyOptions),oE(t.reason,n.stringifyOptions)]),e({level:"error",trace:ox.parse(r).map(e=>e.toString()),payload:i})};t.addEventListener("unhandledrejection",i),l.push(()=>{t.removeEventListener("unhandledrejection",i)})}for(let t of n.level)l.push(function(t,r){if(!t[r])return()=>{};try{let i;if(!(r in t))return()=>{};let s=t[r],l=(i=s,(...t)=>{if((i.apply(this,t),"assert"!==r||!t[0])&&!a){a=!0;try{let i=ox.parse(Error()).map(e=>e.toString()).splice(1),s=("assert"===r?t.slice(1):t).map(e=>oE(e,n.stringifyOptions));++o<n.lengthThreshold?e({level:r,trace:i,payload:s}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[oE("The number of log records reached the threshold.")]})}catch(e){i("rrweb logger error:",e,...t)}finally{a=!1}
1}});return"function"==typeof l&&(l.prototype=l.prototype||{},Object.defineProperties(l,{__rrweb_original__:{enumerable:!1,value:s}})),t[r]=l,()=>{t[r]=s}}catch{return()=>{}}}(i,t));return()=>{l.forEach(e=>e())}}var oR,oM,oA,oT,oP,oN,oD,oL,oF,oU,oB,oj,oq,oz,o$,oW,oV,oH,oG,oY=oz.setImmediate,oJ=Object.prototype.toString,oZ=void 0!==oY?function(e){return oY(e)}:setTimeout;try{Object.defineProperty({},"x",{}),oV=function(e,t,r,i){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==i})}}catch(e){oV=function(e,t,r){return e[t]=r,e}}function oX(e,t){oG.add(e,t),oH||(oH=oZ(oG.drain))}function oK(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function oQ(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var i,n;try{!1===t?r.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(n=oK(i))?n.call(i,r.resolve,r.reject):r.resolve(i)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function o0(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=oK(e))?oX(function(){var i=new o3(r);try{t.call(e,function(){o0.apply(i,arguments)},function(){o1.apply(i,arguments)})}catch(e){o1.call(i,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&oX(oQ,r))}catch(e){o1.call(new o3(r),e)}}}function o1(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&oX(oQ,t))}function o2(e,t,r,i){for(var n=0;n<t.length;n++)!function(n){e.resolve(t[n]).then(function(e){r(n,e)},i)}(n)}function o3(e){this.def=e,this.triggered=!1}function o5(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function o6(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new o5(this);this.then=function(e,r){var i={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return i.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t}),t.chain.push(i),0!==t.state&&oX(oQ,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){o0.call(t,e)},function(e){o1.call(t,e)})}catch(e){o1.call(t,e)}}oG=function(){var e,t,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(n,s){r=new i(n,s),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=oH=void 0;r;)r.fn.call(r.self),r=r.next}}}();var o8=oV({},"constructor",o6,!1);o6.prototype=o8,oV(o8,"__NPO__",0,!1),oV(o6,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),oV(o6,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),oV(o6,"all",function(e){var t=this;return"[object Array]"!==oJ.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,i){if("function"!=typeof r||"function"!=typeof i)throw TypeError("Not a function");var n=e.length,s=Array(n),o=0;o2(t,e,function(e,t){s[e]=t,++o===n&&r(s)},i)})}),oV(o6,"race",function(e){var t=this;return"[object Array]"!==oJ.call(e)?t.reject(TypeError("Not an array")):new t(function(r,i){if("function"!=typeof r||"function"!=typeof i)throw TypeError("Not a function");o2(t,e,function(e,t){r(t)},i)})}),W="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:o6;var o4=Array.prototype,o9=Function.prototype,o7=Object.prototype,ae=o4.slice,at=o7.toString,ar=o7.hasOwnProperty,ai=oz.console,an=oz.navigator,as=oz.document,ao=oz.opera,aa=oz.screen,al=an.userAgent,ac=o9.bind,au=o4.forEach,ah=o4.indexOf,ap=o4.map,af=Array.isArray,ad={},ag={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},am={log:function(){if(Z.DEBUG&&!ag.isUndefined(ai)&&ai)try{ai.log.apply(ai,arguments)}catch(e){ag.each(arguments,function(e){ai.log(e)})}},warn:function(){if(Z.DEBUG&&!ag.isUndefined(ai)&&ai){var e=["Mixpanel warning:"].
1concat(ag.toArray(arguments));try{ai.warn.apply(ai,e)}catch(t){ag.each(e,function(e){ai.warn(e)})}}},error:function(){if(Z.DEBUG&&!ag.isUndefined(ai)&&ai){var e=["Mixpanel error:"].concat(ag.toArray(arguments));try{ai.error.apply(ai,e)}catch(t){ag.each(e,function(e){ai.error(e)})}}},critical:function(){if(!ag.isUndefined(ai)&&ai){var e=["Mixpanel error:"].concat(ag.toArray(arguments));try{ai.error.apply(ai,e)}catch(t){ag.each(e,function(e){ai.error(e)})}}}},ay=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(am,arguments)}},a_=function(e){return{log:ay(am.log,e),error:ay(am.error,e),critical:ay(am.critical,e)}},av=function(e){return function(){try{return e.apply(this,arguments)}catch(e){am.critical("Implementation error. Please turn on debug and contact [email protected]."),Z.DEBUG&&am.critical(e)}}},ab=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=av(t[r]))};ag.bind=function(e,t){var r,i;if(ac&&e.bind===ac)return ac.apply(e,ae.call(arguments,1));if(!ag.isFunction(e))throw TypeError();return r=ae.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(ae.call(arguments)));var n={};n.prototype=e.prototype;var s=new n;n.prototype=null;var o=e.apply(s,r.concat(ae.call(arguments)));return Object(o)===o?o:s}},ag.each=function(e,t,r){if(null!=e){if(au&&e.forEach===au)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,n=e.length;i<n;i++)if(i in e&&t.call(r,e[i],i,e)===ad)return}else for(var s in e)if(ar.call(e,s)&&t.call(r,e[s],s,e)===ad)return}},ag.extend=function(e){return ag.each(ae.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},ag.isArray=af||function(e){return"[object Array]"===at.call(e)},ag.isFunction=function(e){return"function"==typeof e},ag.isArguments=function(e){return!!(e&&ar.call(e,"callee"))},ag.toArray=function(e){return e?e.toArray?e.toArray():ag.isArray(e)||ag.isArguments(e)?ae.call(e):ag.values(e):[]},ag.map=function(e,t,r){if(ap&&e.map===ap)return e.map(t,r);var i=[];return ag.each(e,function(e){i.push(t.call(r,e))}),i},ag.keys=function(e){var t=[];return null===e||ag.each(e,function(e,r){t[t.length]=r}),t},ag.values=function(e){var t=[];return null===e||ag.each(e,function(e){t[t.length]=e}),t},ag.include=function(e,t){var r=!1;return null===e?r:ah&&e.indexOf===ah?-1!=e.indexOf(t):(ag.each(e,function(e){if(r||(r=e===t))return ad}),r)},ag.includes=function(e,t){return -1!==e.indexOf(t)},ag.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},ag.isObject=function(e){return e===Object(e)&&!ag.isArray(e)},ag.isEmptyObject=function(e){if(ag.isObject(e)){for(var t in e)if(ar.call(e,t))return!1;return!0}return!1},ag.isUndefined=function(e){return void 0===e},ag.isString=function(e){return"[object String]"==at.call(e)},ag.isDate=function(e){return"[object Date]"==at.call(e)},ag.isNumber=function(e){return"[object Number]"==at.call(e)},ag.isElement=function(e){return!!(e&&1===e.nodeType)},ag.encodeDates=function(e){return ag.each(e,function(t,r){ag.isDate(t)?e[r]=ag.formatDate(t):ag.isObject(t)&&(e[r]=ag.encodeDates(t))}),e},ag.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ag.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},ag.strip_empty_properties=function(e){var t={};return ag.each(e,function(e,r){ag.isString(e)&&e.length>0&&(t[r]=e)}),t},ag.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):ag.isArray(e)?(r=[],ag.each(e,function(e){r.push(ag.truncate(e,t))})):ag.isObject(e)?(r={},ag.each(e,function(e,i){r[i]=ag.truncate(e,t)})):r=e,r},ag.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,i){var n="",s=0,o="",a="",l=0,c=n,u=[],h=i[e];
1switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(n+="    ",u=[],"[object Array]"===at.apply(h)){for(s=0,l=h.length;s<l;s+=1)u[s]=r(s,h)||"null";return a=0===u.length?"[]":n?"[\n"+n+u.join(",\n"+n)+"\n"+c+"]":"["+u.join(",")+"]",n=c,a}for(o in h)ar.call(h,o)&&(a=r(o,h))&&u.push(t(o)+(n?": ":":")+a);return a=0===u.length?"{}":n?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",n=c,a}};return r("",{"":e})},D={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},L=function(e){var t=SyntaxError(e);throw t.at=A,t.text=P,t},F=function(e){return e&&e!==T&&L("Expected '"+e+"' instead of '"+T+"'"),T=P.charAt(A),A+=1,T},U=function(){var e,t="";for("-"===T&&(t="-",F("-"));T>="0"&&T<="9";)t+=T,F();if("."===T)for(t+=".";F()&&T>="0"&&T<="9";)t+=T;if("e"===T||"E"===T)for(t+=T,F(),("-"===T||"+"===T)&&(t+=T,F());T>="0"&&T<="9";)t+=T,F();if(isFinite(e=+t))return e;L("Bad number")},B=function(){var e,t,r,i="";if('"'===T)for(;F();){if('"'===T)return F(),i;if("\\"===T)if(F(),"u"===T){for(t=0,r=0;t<4&&isFinite(e=parseInt(F(),16));t+=1)r=16*r+e;i+=String.fromCharCode(r)}else if("string"==typeof D[T])i+=D[T];else break;else i+=T}L("Bad string")},j=function(){for(;T&&T<=" ";)F()},q=function(){switch(T){case"t":return F("t"),F("r"),F("u"),F("e"),!0;case"f":return F("f"),F("a"),F("l"),F("s"),F("e"),!1;case"n":return F("n"),F("u"),F("l"),F("l"),null}L('Unexpected "'+T+'"')},z=function(){var e=[];if("["===T){if(F("["),j(),"]"===T)return F("]"),e;for(;T;){if(e.push(N()),j(),"]"===T)return F("]"),e;F(","),j()}}L("Bad array")},$=function(){var e,t={};if("{"===T){if(F("{"),j(),"}"===T)return F("}"),t;for(;T;){if(e=B(),j(),F(":"),Object.hasOwnProperty.call(t,e)&&L('Duplicate key "'+e+'"'),t[e]=N(),j(),"}"===T)return F("}"),t;F(","),j()}}L("Bad object")},N=function(){switch(j(),T){case"{":return $();case"[":return z();case'"':return B();case"-":return U();default:return T>="0"&&T<="9"?U():q()}},ag.JSONDecode=function(e){var t;return P=e,A=0,T=" ",t=N(),j(),T&&L("Syntax error"),t},ag.base64Encode=function(e){var t,r,i,n,s,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,c=0,u="",h=[];if(!e)return e;e=ag.utf8Encode(e);do t=e.charCodeAt(l++),r=(o=t<<16|e.charCodeAt(l++)<<8|e.charCodeAt(l++))>>18&63,i=o>>12&63,n=o>>6&63,s=63&o,h[c++]=a.charAt(r)+a.charAt(i)+a.charAt(n)+a.charAt(s);while(l<e.length)switch(u=h.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},ag.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,i,n="",s=0;for(i=0,t=r=0,s=e.length;i<s;i++){var o=e.charCodeAt(i),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),null!==a&&(r>t&&(n+=e.substring(t,r)),n+=a,t=r=i+1)}return r>t&&(n+=e.substring(t,e.length)),n},ag.UUID=function(){try{return oz.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",ag.map(e,function(e){return e.toString(16)}).join("")}};var aw=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];ag.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<aw.length;t++)if(-1!==e.indexOf(aw[t]))return!0;return!1},ag.HTTPBuildQuery=function(e,t){var r,i,n=[];return ag.isUndefined(t)&&(t="&"),ag.each(e,function(e,t){r=encodeURIComponent(e.toString()),i=encodeURIComponent(t),n[n.length]=i+"="+r}),n.join(t)},ag.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(e){am.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},ag.cookie={get:function(e){for(var t=e+"=",r=as.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=ag.JSONDecode(ag.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,i,n,s,o){var a="",l="",c="";if(o)a="; domain="+o;else if(i){var u=aF(as.location.hostname);a=u?"; domain=."+u:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),l="; expires="+h.toGMTString()}s&&(n=!0,c="; SameSite=None"),n&&(c+="; secure"),as.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c},set:function(e,t,r,i,n,s,o){var a="",l="",c="";if(o)a="; domain="+o;else if(i){var u=aF(as.location.hostname);a=u?"; domain=."+u:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),l="; expires="+h.toGMTString()}s&&(n=!0,c="; SameSite=None"),n&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c;return as.cookie=p,p},remove:function(e,t,r){ag.cookie.set(e,"",-1,t,!1,!1,r)}};var ak=function(e){var t=!0;
1try{var r="__mplss_"+aP(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},aS=null,ax=function(e,t){return null===aS||t?aS=ak(e||oz.localStorage):aS},aC=null;function aE(e,t,r){var i=function(e){am.error(t+" error: "+e)};return{is_supported:function(i){var n=r(e,i);return n||am.error(t+" unsupported"),n},error:i,get:function(t){try{return e.getItem(t)}catch(e){i(e)}return null},parse:function(t){try{return ag.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){i(e)}},remove:function(t){try{e.removeItem(t)}catch(e){i(e)}}}}var aI=null,aO=null;try{aI=oz.localStorage,aO=oz.sessionStorage}catch(e){}ag.localStorage=aE(aI,"localStorage",ax),ag.sessionStorage=aE(aO,"sessionStorage",function(e,t){return null===aC||t?aC=ak(e||oz.sessionStorage):aC}),ag.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,i,n,s){if(!t)return void am.error("No valid element provided to register_event");if(t.addEventListener&&!n)t.addEventListener(r,i,!!s);else{var o,a,l,c="on"+r,u=t[c];t[c]=(o=t,a=i,l=u,function(t){if(t=t||e(oz.event)){var r,i,n=!0;return ag.isFunction(l)&&(r=l(t)),i=a.call(o,t),(!1===r||!1===i)&&(n=!1),n}})}}}();var aR=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');ag.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!as.getElementsByTagName)return[];var i=r.split(" "),n=[as];for(d=0;d<i.length;d++){if((u=i[d].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=u.split("#"))[0];var s=h[1],o=as.getElementById(s);if(!o||b&&o.nodeName.toLowerCase()!=b)return[];n=[o];continue}if(u.indexOf(".")>-1){b=(h=u.split("."))[0];var a,l=h[1];for(b||(b="*"),p=[],f=0,g=0;g<n.length;g++)for(m=0,y="*"==b?e(n[g]):n[g].getElementsByTagName(b);m<y.length;m++)p[f++]=y[m];for(g=0,n=[],_=0;g<p.length;g++)p[g].className&&ag.isString(p[g].className)&&(a=p[g],(" "+a.className+" ").replace(t," ").indexOf(" "+l+" ")>=0)&&(n[_++]=p[g]);continue}var c=u.match(aR);if(c){var u,h,p,f,d,g,m,y,_,v,b=c[1],w=c[2],k=c[3],S=c[4];for(b||(b="*"),p=[],f=0,g=0;g<n.length;g++)for(m=0,y="*"==b?e(n[g]):n[g].getElementsByTagName(b);m<y.length;m++)p[f++]=y[m];switch(n=[],_=0,k){case"=":v=function(e){return e.getAttribute(w)==S};break;case"~":v=function(e){return e.getAttribute(w).match(RegExp("\\b"+S+"\\b"))};break;case"|":v=function(e){return e.getAttribute(w).match(RegExp("^"+S+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(w).indexOf(S)};break;case"$":v=function(e){return e.getAttribute(w).lastIndexOf(S)==e.getAttribute(w).length-S.length};break;case"*":v=function(e){return e.getAttribute(w).indexOf(S)>-1};break;default:v=function(e){return e.getAttribute(w)}}for(g=0,n=[],_=0;g<p.length;g++)v(p[g])&&(n[_++]=p[g]);continue}for(g=0,b=u,p=[],f=0;g<n.length;g++)for(m=0,y=n[g].getElementsByTagName(b);m<y.length;m++)p[f++]=y[m];n=p}return n}return function(e){return ag.isElement(e)?[e]:ag.isObject(e)&&!ag.isUndefined(e.length)?e:r.call(this,e)}}();var aM=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],aA=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];ag.info={campaignParams:function(e){var t="",r={};return ag.each(aM,function(i){(t=ag.getQueryParam(as.URL,i)).length?r[i]=t:void 0!==e&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return ag.each(aA,function(r){(e=ag.getQueryParam(as.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return ag.extend(ag.info.campaignParams(),ag.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=ag.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var i=ag.getQueryParam(e,"yahoo"!=t?"q":"p");
1i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,r){if(t=t||"",r||ag.includes(e," OPR/"))return ag.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(ag.includes(e,"IEMobile")||ag.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(ag.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(ag.includes(e,"Edge")||ag.includes(e,"Edg/"))return"Microsoft Edge";else if(ag.includes(e,"FBIOS"))return"Facebook Mobile";else if(ag.includes(e,"Whale/"))return"Whale Browser";else if(ag.includes(e,"Chrome"))return"Chrome";else if(ag.includes(e,"CriOS"))return"Chrome iOS";else if(ag.includes(e,"UCWEB")||ag.includes(e,"UCBrowser"))return"UC Browser";else if(ag.includes(e,"FxiOS"))return"Firefox iOS";else if(ag.includes(t,"Apple"))return ag.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(ag.includes(e,"Android"))return"Android Mobile";else if(ag.includes(e,"Konqueror"))return"Konqueror";else if(ag.includes(e,"Firefox"))return"Firefox";else if(ag.includes(e,"MSIE")||ag.includes(e,"Trident/"))return"Internet Explorer";else if(ag.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[ag.info.browser(e,t,r)];if(void 0===i)return null;var n=e.match(i);return n?parseFloat(n[n.length-2]):null},os:function(){if(/Windows/i.test(al))return/Phone/.test(al)||/WPDesktop/.test(al)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(al))return"iOS";if(/Android/.test(al))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(al))return"BlackBerry";if(/Mac/i.test(al))return"Mac OS X";else if(/Linux/.test(al))return"Linux";else if(/CrOS/.test(al))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return oz.location.href},properties:function(e){return"object"!=typeof e&&(e={}),ag.extend(ag.strip_empty_properties({$os:ag.info.os(),$browser:ag.info.browser(al,an.vendor,ao),$referrer:as.referrer,$referring_domain:ag.info.referringDomain(as.referrer),$device:ag.info.device(al)}),{$current_url:ag.info.currentUrl(),$browser_version:ag.info.browserVersion(al,an.vendor,ao),$screen_height:aa.height,$screen_width:aa.width,mp_lib:"web",$lib_version:Z.LIB_VERSION,$insert_id:aP(),time:ag.timestamp()/1e3},ag.strip_empty_properties(e))},people_properties:function(){return ag.extend(ag.strip_empty_properties({$os:ag.info.os(),$browser:ag.info.browser(al,an.vendor,ao)}),{$browser_version:ag.info.browserVersion(al,an.vendor,ao)})},mpPageViewProperties:function(){return ag.strip_empty_properties({current_page_title:as.title,current_domain:oz.location.hostname,current_url_path:oz.location.pathname,current_url_protocol:oz.location.protocol,current_url_search:oz.location.search})}};var aT=function(e,t){var r=null,i=[];return function(n){var s=this;return i.push(n),r||(r=new W(function(n){setTimeout(function(){var t=e.apply(s,[i]);r=null,i=[],n(t)},t)})),r}},aP=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},aN=function(){return"00-"+ag.UUID().replace(/-/g,"")+"-"+ag.UUID().replace(/-/g,"").substring(0,16)+"-01"},aD=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,aL=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,aF=function(e){var t=aL,r=e.split("."),i=r[r.length-1];(i.length>4||"com"===i||"org"===i)&&(t=aD);var n=e.match(t);return n?n[0]:""},aU=function(){var e=oz.navigator.onLine;return ag.isUndefined(e)||e},aB=function(){},aj=function(e,t){for(var r=!1,i=0;i<t.length;i++)if(e.match(t[i])){r=!0;break}return r},aq=null,az=null;"u">typeof JSON&&(aq=JSON.stringify,az=JSON.parse),aq=aq||ag.JSONEncode,az=az||ag.JSON
1Decode;var a$=function(e,t,r){if(!oz.CompressionStream)return!1;var i=ag.info.browser(e,t,r),n=ag.info.browserVersion(e,t,r);return"Safari"!==i&&"Mobile Safari"!==i||!(n>=16.4)||!(n<16.6)};ag.info=ag.info,ag.info.browser=ag.info.browser,ag.info.browserVersion=ag.info.browserVersion,ag.info.device=ag.info.device,ag.info.properties=ag.info.properties,ag.isBlockedUA=ag.isBlockedUA,ag.isEmptyObject=ag.isEmptyObject,ag.isObject=ag.isObject,ag.JSONDecode=ag.JSONDecode,ag.JSONEncode=ag.JSONEncode,ag.toArray=ag.toArray,ag.NPO=o6;var aW="mixpanelRecordingEvents",aV="mixpanelRecordingRegistry",aH=[aW,aV],aG=function(e){this.dbPromise=null,this.storeName=e};function aY(e,t){a6(!0,e,t)}function aJ(e,t){a6(!1,e,t)}function aZ(e,t){return"1"===a5(e,t)}function aX(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||oz,r=t.navigator||{},i=!1;return ag.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){ag.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return am.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===a5(e,t);return r&&am.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function aK(e){return a8(e,function(e){return this.get_config(e)})}function aQ(e){return a8(e,function(e){return this._get_config(e)})}function a0(e){return a8(e,function(e){return this._get_config(e)})}function a1(e,t){a2(t=t||{}
1).remove(a3(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function a2(e){return"localStorage"===(e=e||{}).persistenceType?ag.localStorage:ag.cookie}function a3(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function a5(e,t){return a2(t).get(a3(e,t))}function a6(e,t,r){ag.isString(t)&&t.length?(a2(r=r||{}).set(a3(t,r),+!!e,ag.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):am.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function a8(e,t){return function(){var r=!1;try{var i=t.call(this,"token"),n=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");i&&(r=aX(i,{ignoreDnt:n,persistenceType:s,persistencePrefix:o,window:a}))}catch(e){am.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}aG.prototype._openDb=function(){return new W(function(e,t){var r=oz.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;aH.forEach(function(e){t.createObjectStore(e)})}})},aG.prototype.init=function(){return oz.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof oz.IDBDatabase?W.resolve():W.reject(e)})):W.reject("indexedDB is not supported in this browser")},aG.prototype.isInitialized=function(){return!!this.dbPromise},aG.prototype.makeTransaction=function(e,t){var r=this.storeName,i=function(i){return new W(function(n,s){var o=i.transaction(r,e);o.oncomplete=function(){n(o)},o.onabort=o.onerror=function(){s(o.error)},t(o.objectStore(r))})};return this.dbPromise.then(i).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(i)):W.reject(e)}).bind(this))},aG.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},aG.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},aG.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},aG.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var a4=a_("lock"),a9=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||oz.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||W};a9.prototype.withLock=function(e,t){return new this.promiseImpl(ag.bind(function(r,i){var n=t||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),o=this.storageKey,a=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,u=o+":X",h=o+":Y",p=o+":Z",f=function(e){if(new Date().getTime()-s>l){a4.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+n+"]"),c.removeItem(p),c.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){i(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=c.getItem(h);return(!e||e===n)&&(c.setItem(h,n),c.getItem(h)===n||(ax(c,!0)||i(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){c.setItem(u,n),d(g,function(){c.getItem(u)===n?y():f(function(){c.getItem(h)!==n?m():d(function(){return!c.getItem(p)},y)})})},y=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(h)===n&&c.removeItem(h),c.getItem(u)===n&&c.removeItem(u)};e().then(function(e){t(),r(e)}).catch(function(e){t(),i(e)})};try{if(ax(c,!0))m();else throw Error("localStorage support check failed")}catch(e){i(e)}},this))};var a7=function(e){this.storage=e||oz.localStorage};a7.prototype.init=function(){return W.resolve()},a7.prototype.isInitialized=function(){return!0},a7.prototype.setItem=function(e,t){return new W(ag.bind(function(r,i){try{this.storage.setItem(e,aq(t))}catch(e){i(e)}r()},this))},a7.prototype.getItem=function(e){return new W(ag.bind(function(t,r){var i;try{i=az(this.storage.getItem(e))}catch(e){r(e)}t(i)},this))},a7.prototype.removeItem=function(e){return new W(ag.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var le=a_("batch"),lt=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new a7,this.lock=new a9(e,{storage:t.sharedLockStorage||oz.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||ag.bind(le.error,le),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=aT(ag.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=ag.bind(function(e){return this._enqueuePersisted([e])},this)};lt.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?W.resolve():this.queueStorage.init(
1).then(ag.bind(function(){this.initialized=!0},this)).catch(ag.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},lt.prototype.enqueue=function(e,t){var r={id:aP(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),W.resolve(!0))},lt.prototype._enqueuePersisted=function(e){var t=ag.bind(function(){return this.ensureInit().then(ag.bind(function(){return this.readFromStorage()},this)).then(ag.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(ag.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(ag.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(ag.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},lt.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(ag.bind(function(){return this.readFromStorage()},this)).then(ag.bind(function(r){if(r.length){var i={};ag.each(t,function(e){i[e.id]=!0});for(var n=0;n<r.length;n++){var s=r[n];if(new Date().getTime()>s.flushAfter&&!i[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}return t},this)):W.resolve(t)};var lr=function(e,t){var r=[];return ag.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};lt.prototype.removeItemsByID=function(e){var t={};if(ag.each(e,function(e){t[e]=!0}),this.memQueue=lr(this.memQueue,t),!this.usePersistence)return W.resolve(!0);var r=ag.bind(function(){return this.ensureInit().then(ag.bind(function(){return this.readFromStorage()},this)).then(ag.bind(function(e){return e=lr(e,t),this.saveToStorage(e)},this)).then(ag.bind(function(){return this.readFromStorage()},this)).then(ag.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&t[i.id])throw Error("Item not removed from storage")}return!0},this)).catch(ag.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(ag.bind(function(e){return this.reportError("Error acquiring storage lock",e),!ax(this.lock.storage,!0)&&r().then(ag.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(ag.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var li=function(e,t){var r=[];return ag.each(e,function(e){var i=e.id;if(i in t){var n=t[i];null!==n&&(e.payload=n,r.push(e))}else r.push(e)}),r};lt.prototype.updatePayloads=function(e){return(this.memQueue=li(this.memQueue,e),this.usePersistence)?this.lock.withLock(ag.bind(function(){return this.ensureInit().then(ag.bind(function(){return this.readFromStorage()},this)).then(ag.bind(function(t){return t=li(t,e),this.saveToStorage(t)},this)).catch(ag.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(ag.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):W.resolve(!0)},lt.prototype.readFromStorage=function(){return this.ensureInit().then(ag.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(ag.bind(function(e){return e&&!ag.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(ag.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},lt.prototype.saveToStorage=function(e){return this.ensureInit().then(ag.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(ag.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},lt.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(ag.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):W.resolve()};var ln=a_("batch"),ls=function(e,t){this.errorReporter=t.errorReporter,this.queue=new lt(e,{errorReporter:ag.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};ls.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},ls.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},ls.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},ls.prototype.clear=function(){return this.queue.clear()},ls.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},ls.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},ls.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(ag.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},ls.prototype.sendRequestPromise=function(e,t){return new W(ag.bind(function(r){this.sendRequest(e,t,r)},this))},ls.prototype.flush=function(e){if(this.requestInProgress)return ln.log("Flush: Request already in progress"),W.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(ag.bind(function(n){var s=n.length===i,o=[],a={};if(ag.each(n,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=ag.extend({},t.properties,{mp_sent_by_lib_version:Z.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&o.push(t)}a[e.id]=t},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),W.resolve();var l=ag.bind(function(){return this.queue.removeItemsByID(ag.map(n,function(e){return e.id})).then(ag.bind(function(e){return(ag.each(n,ag.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s)?(this.resetFlush(),W.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),W.resolve())},this))},this),c=ag.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(ag.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(ag.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&!aU()||"timeout"===s.error)){var o=2*this.flushInterval;
1return s.retryAfter&&(o=1e3*parseInt(s.retryAfter,10)||o),o=Math.min(6e5,o),this.reportError("Error; retry in "+o+" ms"),this.scheduleFlush(o),W.resolve()}else{if(!ag.isObject(s)||413!==s.httpStatusCode)return l();if(!(n.length>1))return this.reportError("Single-event request too large; dropping",n),this.resetBatchSize(),l();var c=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,c,n.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),W.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),ln.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,u).then(c)},this)).catch(ag.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},ls.prototype.reportError=function(e,t){if(ln.error.apply(ln.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){ln.error(e)}};var lo=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},la=function(e,t){if(!ag.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],i=0;i<e.length;i++)try{var n=new URL(e[i]).origin;if("null"===n){t.critical(e[i]+" has an opaque origin. Skipping this entry.");continue}r.push(n)}catch(r){t.critical(e[i]+" is not a valid origin URL. Skipping this entry.")}return r},ll="change",lc="click",lu="hashchange",lh="load",lp="mp_locationchange",lf="popstate",ld="scrollend",lg="scroll",lm="submit",ly="visibilitychange",l_=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],lv=["mp-include"],lb=["mp-no-track"],lw=lb.concat(["mp-sensitive"]),lk=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],lS={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},lx={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},lC={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},lE=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],lI=a_("autocapture");function lO(e){for(var t={},r=lR(e).split(" "),i=0;i<r.length;i++){var n=r[i];n&&(t[n]=!0)}return t}function lR(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function lM(e,t,r,i,n,s){var o={$classes:lR(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(o.$id=a),lU(e,t,n,s)&&ag.each(lk.concat(i),function(t){if(e.hasAttribute(t)&&!r[t]){var i=e.getAttribute(t);lB(i)&&(o["$attr-"+t]=i)}});for(var l=1,c=1,u=e;u=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!lN(e))return e}(u);)l++,u.tagName===e.tagName&&c++;return o.$nth_child=l,o.$nth_of_type=c,o}function lA(e,t,r,i){var n="";return lU(e,t,r,i)&&e.childNodes&&e.childNodes.length&&ag.each(e.childNodes,function(e){lL(e)&&e.textContent&&(n+=ag.trim(e.textContent).split(/(\s+)/).filter(lB).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),ag.trim(n)}function lT(e,t,r,i){if(r)try{if(!r(e,t))return!1}catch(e){return lI.critical("Error while checking element in allowElementCallback",e),!1}if(!i.length)return!0;for(var n=0;n<i.length;n++){var s=i[n];try{if(e.matches(s))return!0}catch(e){lI.critical("Error while checking selector: "+s,e)}}return!1}function lP(e,t,r,i){if(r)try{if(r(e,t))return!0}catch(e){return lI.critical("Error while checking element in blockElementCallback",e),!0}if(i&&i.length)for(n=0;n<i.length;n++){var n,s=i[n];try{if(e.matches(s))return!0}catch(e){lI.critical("Error while checking selector: "+s,e)}}var o=lO(e);for(n=0;n<lb.length;n++)if(o[lb[n]])return!0;return!1}function lN(e){return e&&1===e.nodeType}function lD(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function lL(e){return e&&3===e.nodeType}function lF(e){var t=(e.name||e.id||"").toString().toLowerCase();return!!("string"==typeof t&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))||!1}function lU(e,t,r,i){if(!lT(e,t,r,i))return!1;for(var n,s=e;s.parentNode&&!lD(s,"body");s=s.parentNode){var o=lO(s);for(n=0;n<lw.length;n++)if(o[lw[n]])return!1}var a=lO(e);for(n=0;n<lv.length;n++)if(a[lv[n]])return!0;if(lD(e,"input")||lD(e,"select")||lD(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var l=e.type||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}return!lF(e)}function lB(e){if(null===e||ag.isUndefined(e))return!1;if("string"==typeof e&&(e=ag.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function lj(e){var t="onscrollend"in oz,r=av(e),i=ld;if(!t){var n=null;r=av(function(){clearTimeout(n),n=setTimeout(e,100)}),i=lg}return{listener:r,eventType:i}}function lq(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<lE.length;t++)if(e.hasAttribute(lE[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&lS[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function lz(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(lx[t])return!0;if(lq(e))return!1;for(var r=e.parentElement,i=0;r&&i<5;){if(lq(r))return!1;if(r.getRootNode&&r.getRootNode()!==as){var n=r.getRootNode();if(n.host&&lq(n.host))return!1}r=r.parentElement,i++}return!!lC[t]}function l$(e){return"composedPath"in e?e.composedPath():[]}function lW(e){var t=l$(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var lV=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",lH=["password","email","tel","hidden"];function lG(e){return e?Array.isArray(e)?e:[e]:[]}function lY(e,t){return!!t&&!!e.closest(t)}function lJ(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==lH.indexOf(r))return!0;var i=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(i&&""!==i&&"off"!==i||e.hasAttribute("data-rr-is-password")||lF(e))||(t.input.maskAll?!lY(e,t.input.unmaskingSelector):!!(lY(e,t.input.maskingSelector)||lY(e,lV)))}function lZ(e,t){return!!e&&(!!(t.text._legacyClassRegex&&function e(t,r,i){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return!!i&&e(n4(t),r,i);for(let e=t.classList.length;e--;){let i=t.classList[e];if(r.test(i))return!0}return!!i&&e(n4(t),r,i)}(e,t.text._legacyClassRegex,!0))||(t.text.maskAll?!lY(e,t.text.unmaskingSelector):!!(lY(e,t.text.maskingSelector)||lY(e,lV))))}var lX=a_("network-plugin");function lK(e){return Math.round(Date.now()-e.performance.now())}var lQ={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function l0(e){return"resource"===e.entryType}function l1(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var i=e[t],n=r(i);return e[t]=n,function(){e[t]=i}}function l2(e){return e&&"string"==typeof e&&e.length>1048576?(lX.error("Body truncated from "+e.length+" to 1048576 characters"),e.substring(0,1048576)+"... [truncated]"):e}function l3(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function l5(e,t,r){return!!t[e]&&0!==t[e].length&&aj(r,t[e])}function l6(e){var t;if(null==e)return null;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=ag.HTTPBuildQuery(e);else if(!ag.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return l2(t)}function l8(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(l2(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function l4(e,t,r,i,n,s){if(void 0===s&&(s=0),s>10)return lX.error("Cannot find performance entry"),Promise.resolve(null);var o=function(e,t){for(var r=e.length,i=r-1;i>=0;i-=1)if(t(e[i]))return e[i]}(e.performance.getEntriesByName(r),function(e){return l0(e)&&e.initiatorType===t&&(!i||e.startTime>=i)&&(!n||e.startTime<=n)});return o?Promise.resolve(o):new Promise(function(e){setTimeout(e,50*s)}).then(function(){return l4(e,t,r,i,n,s+1)})}function l9(e,t,r){if(!("performance"in t))return function(){};var i=Object.assign({},lQ.recordHeaders,r.recordHeaders||{}),n=Object.assign({},lQ.recordBodyUrls,r.recordBodyUrls||{}),s=Object.assign({},lQ,r=Object.assign({},r,{recordHeaders:i,recordBodyUrls:n})),o=function(t){var r=t.requests.filter(function(e){return!aj(e.url,s.ignoreRequestUrls||[])&&!s.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return lX.error("PerformanceObserver not supported"),function(){};r.recordInitialRequests&&e({requests:t.performance.getEntries().filter(function(e){return"navigation"===e.entryType||l0(e)&&r.initiatorTypes.includes(e.initiatorType)}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:lK(t)}}),isInitial:!0});var i=new t.PerformanceObserver(function(i){e({requests:i.getEntries().filter(function(e){return l0(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:lK(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(o,t,s),l=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var i=l1(t.XMLHttpRequest.prototype,"open",function(i){return function(n,s,o,a,l){void 0===o&&(o=!0);var c,u,h=this,p=new Request(s,{method:n}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return l3("request",r.recordHeaders,e)&&(
1d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return l5("request",r.recordBodyUrls,p.url)&&(f.requestBody=l6(e)),c=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){u=t.performance.now();var i={},n=h.getAllResponseHeaders();n&&n.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var n=e.substring(0,t),s=e.substring(t+2);n&&l3("response",r.recordHeaders,n)&&(i[n]=s)}}}),f.responseHeaders=i,l5("response",r.recordBodyUrls,p.url)&&(f.responseBody=l6(h.response)),l4(t,"xmlhttprequest",p.url,c,u).then(function(r){r?e({requests:[{url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:lK(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody}]}):lX.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){lX.error("Error recording XHR request to "+p.url+": "+String(e))})}}),i.call(h,n,s,o,a,l)}});return function(){i()}}(o,t,s),c=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var i=l1(t,"fetch",function(i){return function(){var n,s,o,a,l=new Request(arguments[0],arguments[1]),c={},u=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};l.headers.forEach(function(e,t){l3("request",r.recordHeaders,t)&&(p[t]=e)}),c.requestHeaders=p,l5("request",r.recordBodyUrls,l.url)&&(u=l8(l).then(function(e){c.requestBody=e})),s=t.performance.now(),a=i.apply(t,arguments).then(function(e){n=e,o=t.performance.now();var i={};return n.headers.forEach(function(e,t){l3("response",r.recordHeaders,t)&&(i[t]=e)}),c.responseHeaders=i,l5("response",r.recordBodyUrls,l.url)&&(h=l8(n).then(function(e){c.responseBody=e})),n})}catch(e){a=Promise.reject(e)}return Promise.all([u,h,a]).then(function(){return l4(t,"fetch",l.url,s,o)}).then(function(r){r?e({requests:[{url:r.name,method:l.method,initiatorType:r.initiatorType,status:n?n.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:lK(t),requestHeaders:c.requestHeaders,requestBody:c.requestBody,responseHeaders:c.responseHeaders,responseBody:c.responseBody}]}):lX.error("Failed to get performance entry for fetch request to "+l.url)}).catch(function(e){lX.error("Error recording fetch request to "+l.url+": "+String(e))}),a}});return function(){i()}}(o,t,s);return function(){a(),l(),c()}}var l7=a_("recorder"),ce=oz.CompressionStream,ct={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},cr=new Set([nn.MouseMove,nn.MouseInteraction,nn.Scroll,nn.ViewportResize,nn.Input,nn.TouchMove,nn.MediaInteraction,nn.Drag,nn.Selection]),ci=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||aB,this._onMaxLengthReached=e.onMaxLengthReached||aB,this._onBatchSent=e.onBatchSent||aB,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=ax(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new aG(aW),this.batcher=new ls(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:ct,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};ci.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},ci.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init(
1).catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},ci.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},ci.prototype.get_config=function(e){return this.getConfig(e)},ci.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void l7.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,l7.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=ag.info.currentUrl(),this.replayStartUrl=ag.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var i=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),i=e.get_config("record_unmask_input_selector"),n=e.get_config("record_mask_all_inputs");t.input.maskingSelector=lG(r).join(","),t.input.unmaskingSelector=lG(i).join(","),void 0!==n&&(t.input.maskAll=n);var s=e.get_config("record_mask_text_selector"),o=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),l=e.get_config("record_mask_text_class"),c=lG(s);if(l)if(l instanceof RegExp)t.text._legacyClassRegex=l;else{var u="."+l;-1===c.indexOf(u)&&c.push(u)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=lG(o).join(","),void 0===a&&void 0!==s?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),n=[];if(this.getConfig("record_network")){var s=this.getConfig("record_network_options")||{},o=(s.ignoreRequestUrls||[]).slice();o.push(this._getApiRoute()),s.ignoreRequestUrls=o,n.push({name:"rrweb/[email protected]",observer:l9,options:s})}this.getConfig("record_console")&&n.push({name:"rrweb/console@1",observer:oO,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=la(this.getConfig("record_allowed_iframe_origins"),l7);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(e.type===ni.IncrementalSnapshot&&cr.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(lJ,i),maskTextFn:this._getMaskFn(lZ,i),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:n})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var l=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),l)},ci.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},ci.prototype.isRrwebStopped=function(){return null===this._stopRecording},ci.prototype.flushEventsWithOptOut=function(e,t,r){var i=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,i)},ci.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},ci.deserialize=function(e,t){return new ci(ag.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},ci.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},ci.prototype._sendRequest=function(e,t,r,i){var n=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=ag.info.currentUrl()),this._onBatchSent(),i({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");oz.fetch(s+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){n(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},ci.prototype._flushEvents=aK(function(e,t,r){var i=e.length;if(i>0){for(var n=this.replayId,s=1/0,o=-1/0,a=!1,l=0;l<i;l++)s=Math.min(s,e[l].timestamp),o=Math.max(o,e[l].timestamp),e[l].type===ni.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var c=o-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:Z.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:n,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(u,this.getUserIdInfo()),a$(al,an.vendor,ao)?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new ce("gzip"))).blob().then((function(e){u.format="gzip",this._sendRequest(n,u,e,r)}).bind(this)):(u.format="body",this._sendRequest(n,u,h,r))}}),ci.prototype.reportError=function(e,t){l7.error.apply(l7.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){l7.error(e)}},ci.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},ci.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(l7.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},ci.prototype._getMaskFn=function(e,t){return(function(r,i){if(!r.trim().length)return"";var n=!0;try{n=e(i,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!n)return r;var s=Math.min(r.length,1e4);return"*".repeat(s)}).bind(this)};
1var cn=function(e){this.idb=new aG(aV),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};cn.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},cn.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},cn.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return W.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),W.resolve())},cn.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return lo(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):W.resolve(null)},cn.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},cn.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},cn.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):W.resolve()},cn.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return lo(e)}).map((function(e){return ci.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return W.all(t)}).bind(this)).catch(this.handleError.bind(this)):W.resolve([])};var cs=a_("recorder"),co=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||nX,this.sharedLockStorage=r,this.recordingRegistry=new cn({mixpanelInstance:this.mixpanelInstance,errorReporter:cs.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};co.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void cs.log("Recording already in progress, skipping startRecording.");var t=(function(){cs.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){cs.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),i=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),n={mixpanelInstance:this.mixpanelInstance,onBatchSent:i,onIdleTimeout:t,onMaxLengthReached:r,replayId:ag.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=ci.deserialize(e.activeSerializedRecording,n):this.activeRecording=new ci(n),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},co.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},co.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},co.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return W.resolve()},co.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),W.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(cs.log("No resumable recording found."),null)}).bind(this))},co.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},co.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},co.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(co.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),oz[K]=co;var ca=e.i(79205),cl={};function cc(){this.clicks=[]}function cu(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}cl.eventMatchesCriteria=function(e,t,r){if(e!==r.event_name)return{matches:!1};var i=r.property_filters,n=!0;if(i&&!ag.isEmptyObject(i))try{n=ca.default.apply(i,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:n}},oz[X]=Promise.resolve(cl),cc.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,i=t.timeout_ms||1e3,n=t.click_count||4;if(t.interactive_elements_only){var s=lW(e);if(!s||lz(s))return!1}var o=Date.now(),a=e.pageX,l=e.pageY,c=this.clicks[this.clicks.length-1];if(c&&o-c.timestamp<i&&Math.sqrt(Math.pow(a-c.x,2)+Math.pow(l-c.y,2))<r){if(this.clicks.push({x:a,y:l,timestamp:o}),this.clicks.length>=n)return this.clicks=[],!0}else this.clicks=[{x:a,y:l,timestamp:o}];return!1},cu.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return lW(e)},cu.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=l$(e),r=0;r<t.length;r++){var i=t[r];
1i&&i.shadowRoot&&this.observeShadowRoot(i.shadowRoot)}},cu.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){lI.critical("Error while observing shadow root",e)}}},cu.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void lI.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},cu.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){lI.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var ch=[ll,"input",lm,"select","toggle"],cp=[ld],cf=[lu],cd={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function cg(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}cg.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||lz(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},cg.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},cg.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),i=this.pendingClicks.slice();this.pendingClicks=[];for(var n=[],s=0;s<i.length;s++){var o=i[s];r-o.timestamp>=t?this.hasChangesAfter(o.timestamp)||n.push(o):this.pendingClicks.push(o)}return n},cg.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},cg.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},cg.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},cg.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),i=0;i<t.length;i++)r.onDeadClickCallback(t[i].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},cg.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;
vendor: 4,289 bytes, line 1
1ch.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),cf.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),cp.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,cd)}catch(e){lI.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new cu(function(){e.recordChangeEvent()},cd),this.shadowDOMObserver.start()}catch(e){lI.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},cg.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){lI.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){lI.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){lI.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var cm="autocapture",cy="full-url",c_="allow_selectors",cv="allow_url_regexes",cb="block_attrs",cw="block_element_callback",ck="block_selectors",cS="block_url_regexes",cx="capture_extra_attrs",cC="capture_text_content",cE="scroll_capture_all",cI="scroll_depth_percent_checkpoints",cO="click",cR="dead_click",cM="input",cA="pageview",cT="rage_click",cP="scroll",cN="page_leave",cD="submit",cL={};cL[c_]=[],cL[cv]=[],cL[cb]=[],cL[cw]=null,cL[ck]=[],cL[cS]=[],cL[cx]=[],cL[cC]=!1,cL[cE]=!1,cL[cI]=[25,50,75,100],cL[cO]=!0,cL[cR]=!0,cL[cM]=!0,cL[cA]=cy,cL[cT]=!0,cL[cP]=!0,cL[cN]=!1,cL[cD]=!0;var cF={$mp_autocapture:!0},cU="$mp_click",cB="$mp_dead_click",cj="$mp_rage_click",cq=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};cq.prototype.init=function(){!function(){try{return!!as.createElement("div").matches}catch(e){return!1}}()?lI.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},cq.prototype.getFullConfig=function(){var e=this.mp.get_config(cm);return e?ag.isObject(e)?ag.extend({},cL,e):cL:{}},cq.prototype.getConfig=function(e){return this.getFullConfig()[e]},cq.prototype.currentUrlBlocked=function(){var e=ag.info.currentUrl(),t=this.getConfig(cv)||[];if(t.length)try{return!aj(e,t)}catch(e){return lI.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(cS)||[];if(!r||!r.length)return!1;try{return aj(e,r)}catch(e){return lI.critical("Error while checking block URL regexes: ",e),!0}},cq.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(cm)?this.getConfig(cA):this.mp.get_config("track_pageview")},cq.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===cU&&!this.getConfig(cO)||t===cj&&!this._getClickTrackingConfig(cT)||t===cB&&!this._getClickTrackingConfig(cR)),i=function(e,t){var r=t.allowElementCallback,i=t.allowSelectors||[],n=t.blockAttrs||[],s=t.blockElementCallback,o=t.blockSelectors||[],a=t.captureTextContent||!1,l=t.captureExtraAttrs||[],c=t.captured
1ForHeatMap||!1,u={};ag.each(n,function(e){u[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(lL(p)&&(p=p.parentNode),function(e,t){if(!e||lD(e,"html")||!lN(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===lm;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===ll;return t.type===lc;case"select":case"textarea":return t.type===ll;default:return t.type===lc}}(p,e)&&lT(p,e,r,i)&&!lP(p,e,s,o)){for(var f=[p],d=p;d.parentNode&&!lD(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],y=!1;if(ag.each(f,function(t){var n=lU(t,e,r,i);u.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=n&&lB(g)&&g),lP(t,e,s,o)&&(y=!0),m.push(lM(t,e,u,l,r,i))},this),!y){var _=as.documentElement;if(h={$event_type:e.type,$host:oz.location.host,$pathname:oz.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(_.clientHeight,oz.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,oz.innerWidth||0),$pageHeight:as.body.offsetHeight||0,$pageWidth:as.body.offsetWidth||0},ag.each(l,function(e){if(!u[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);lB(t)&&(h["$el_attr__"+e]=t)}}),a&&(v=lA(p,e,r,i))&&v.length&&(h.$el_text=v),e.type===lc&&(ag.each(l_,function(t){t in e&&(h["$"+t]=e[t])}),c&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),i=0;i<r.length;i++){var n=r[i];if(lD(n,"a")||lD(n,"button")||lD(n,"input")||lD(n,"select")||n.getAttribute&&"button"===n.getAttribute("role")){t=n;break}if(n===t)break}return t}(e)),a){var v=lA(p,e,r,i);v&&v.length&&(h.$el_text=v)}if(p){if(!lT(p,e,r,i)||lP(p,e,s,o))return null;var b=lM(p,e,u,l,r,i);h.$target=b,h.$el_classes=b.$classes,ag.extend(h,ag.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(c_),blockAttrs:this.getConfig(cb),blockElementCallback:this.getConfig(cw),blockSelectors:this.getConfig(ck),captureExtraAttrs:this.getConfig(cx),captureTextContent:this.getConfig(cC),capturedForHeatMap:r});i&&(ag.extend(i,cF),this.mp.track(t,i))}},cq.prototype.initPageListeners=function(){if(oz.removeEventListener(lf,this.listenerPopstate),oz.removeEventListener(lu,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(cN)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){oz.dispatchEvent(new Event(lp))},this.listenerHashchange=function(){oz.dispatchEvent(new Event(lp))},oz.addEventListener(lf,this.listenerPopstate),oz.addEventListener(lu,this.listenerHashchange);var e=oz.history.pushState;"function"==typeof e&&(oz.history.pushState=function(t,r,i){e.call(oz.history,t,r,i),oz.dispatchEvent(new Event(lp))});var t=oz.history.replaceState;"function"==typeof t&&(oz.history.replaceState=function(e,r,i){t.call(oz.history,e,r,i),oz.dispatchEvent(new Event(lp))})}},cq.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},cq.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(cN)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(as.documentElement.clientHeight,oz.innerHeight||0),n=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(r-i)*100),s=Math.round(i/r*100);r<=i&&(n=100,s=100);var o=ag.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:n,$fold_line_percentage:s,$scroll_height:r,$event_type:e.type,$current_url:t||ag.info.currentUrl(),$viewportHeight:i,$viewportWidth:Math.max(as.documentElement.clientWidth,oz.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},cF);this.mp.track("$mp_page_leave",o,{transport:"sendBeacon"})}},cq.prototype._initScrollDepthTracking=function(){if(oz.removeEventListener(lg,this.listenerScrollDepth),oz.removeEventListener(ld,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){lI.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(as.documentElement.clientHeight,oz.innerHeight||0);var e=lj((function(){if(!this.currentUrlBlocked()){var e=Math.max(as.documentElement.clientHeight,oz.innerHe
1ight||0)+oz.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=as.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,oz.addEventListener(e.eventType,this.listenerScrollDepth)}},cq.prototype.initClickTracking=function(){oz.removeEventListener(lc,this.listenerClick),(this.getConfig(cO)||this.mp.get_config("record_heatmap_data"))&&(lI.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(cO)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,cU)}).bind(this),oz.addEventListener(lc,this.listenerClick))},cq.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(cR)||this.mp.get_config("record_heatmap_data")?(lI.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new cg((function(e){this.trackDomEvent(e,cB)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(cR);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),oz.addEventListener(lc,this.listenerDeadClick))):this.stopDeadClickTracking()},cq.prototype.initInputTracking=function(){oz.removeEventListener(ll,this.listenerChange),this.getConfig(cM)&&(lI.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(cM)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),oz.addEventListener(ll,this.listenerChange))},cq.prototype.initPageviewTracking=function(){if(oz.removeEventListener(lp,this.listenerLocationchange),this.pageviewTrackingConfig()){lI.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(cF)),t&&(e=ag.info.currentUrl()),this.listenerLocationchange=av((function(){if(!this.currentUrlBlocked()){var t=ag.info.currentUrl(),r=!1,i=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],n=this.pageviewTrackingConfig();n===cy?r=t!==e:"url-with-path-and-query-string"===n?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===n&&(r=i),r&&(this.mp.track_pageview(cF)&&(e=t),i&&(this.lastScrollCheckpoint=0,lI.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),oz.addEventListener(lp,this.listenerLocationchange)}},cq.prototype.initRageClickTracking=function(){oz.removeEventListener(lc,this.listenerRageClick),(this._getClickTrackingConfig(cT)||this.mp.get_config("record_heatmap_data"))&&(lI.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new cc),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(cT);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,cj)}).bind(this),oz.addEventListener(lc,this.listenerRageClick))},cq.prototype.initScrollTracking=function(){if(oz.removeEventListener(ld,this.listenerScroll),oz.removeEventListener(lg,this.listenerScroll),this.getConfig(cP)){lI.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(cP)&&!this.currentUrlBlocked()){var e=this.getConfig(cE),t=(this.getConfig(cI)||[]).slice().sort(function(e,t){return e-t}),r=oz.scrollY,i=ag.extend({$scroll_top:r},cF);try{var n=as.body.scrollHeight,s=Math.round(r/(n-oz.innerHeight)*100);if(i.$scroll_height=n,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var o=0;o<t.length;o++){var a=t[o];s>=a&&this.lastScrollCheckpoint<a&&(i.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){lI.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",i)}}).bind(this),t=lj(e);this.listenerScroll=t.listener,oz.addEventListener(t.eventType,this.listenerScroll)}},cq.prototype.initSubmitTracking=function(){oz.removeEventListener(lm,this.listenerSubmit),this.getConfig(cD)&&(lI.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(cD)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),oz.addEventListener(lm,this.listenerSubmit))},cq.prototype.initPageLeaveTracking=function(){if(as.removeEventListener(ly,this.listenerPageLeaveVisibilitychange),oz.removeEventListener(lp,this.listenerPageLeaveLocationchange),oz.removeEventListener(lh,this.listenerPageLoad),this.getConfig(cN)||this.mp.get_config("record_heatmap_data")){lI.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=ag.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=as.body.scrollHeight}).bind(this),oz.addEventListener(lh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=av((function(t){if(!this.currentUrlBlocked()){var r=ag.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(as.documentElement.clientHeight,oz.innerHe
1ight||0),this.previousScrollHeight=as.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),oz.addEventListener(lp,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){as.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),as.addEventListener(ly,this.listenerPageLeaveVisibilitychange)}},cq.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(oz.removeEventListener(lc,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},ab(cq);var cz=function(e,t){return oz[X]&&"function"==typeof oz[X].then||(oz[X]=new Promise(function(r){e(t,r)}).then(function(){var e=oz[X];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete oz[X],e})),oz[X]},c$=a_("flags"),cW="flags",cV="context",cH={};cH[cV]={};var cG=function(e){this.fetch=oz.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};cG.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch(function(){c$.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):c$.critical("Feature Flags unavailable: missing minimum required APIs")},cG.prototype.getFullConfig=function(){var e=this.getMpConfig(cW);return e?ag.isObject(e)?ag.extend({},cH,e):cH:{}},cG.prototype.getConfig=function(e){return this.getFullConfig()[e]},cG.prototype.isSystemEnabled=function(){return!!this.getMpConfig(cW)},cG.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return c$.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(cW);ag.isObject(r)||(r={});var i=t&&t.replace?{}:this.getConfig(cV);r[cV]=ag.extend({},i,e);var n={};return n[cW]=r,this.setMpConfig(n),this.fetchFlags().catch(function(){c$.error("Error fetching flags during updateContext")})},cG.prototype.areFlagsReady=function(){return this.isSystemEnabled()||c$.error("Feature Flags not enabled"),!!this.flags},cG.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=aN();c$.log("Fetching flags for distinct ID: "+e);var i=ag.extend({distinct_id:e,device_id:t},this.getConfig(cV)),n=new URLSearchParams;n.set("context",JSON.stringify(i)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",Z.LIB_VERSION);var s=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(oz,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var i=new Map,n={};ag.each(t,function(e,t){var r=!1,n=t+":";if(ag.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var s=this.flags&&this.flags.get(t);s&&i.set(t,s)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})},this);var s=e.pending_first_time_events;s&&s.length>0&&ag.each(s,function(e){var t=e.flag_key,r=t+":"+e.first_time_event_hash;this.activatedFirstTimeEvents[r]||(n[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&ag.each(this.activatedFirstTimeEvents,function(e,t){var r=t.split(":")[0];e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.pendingFirstTimeEvents=n,this._traceparent=r,this._loadTargetingIfNeeded()}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),c$.error(e),e}).bind(this)),this.fetchPromise},cG.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(c$.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},cG.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):c$.error("Fetch in progress started time not set, cannot mark fetch complete")},cG.prototype._loadTargetingIfNeeded=function(){var e=!1;ag.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!ag.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){c$.log("targeting loaded for property filter evaluation")})},cG.prototype.getTargeting=function(){return cz(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){c$.error("Failed to load targeting: "+e)}).bind(this))},cG.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||ag.isEmptyObject(this.pendingFirstTimeEvents)||(oz[X]&&ag.isFunction(oz[X].then)?oz[X].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},cG.prototype._processFirstTimeEventCheck=function(e,t,r){ag.each(this.pendingFirstTimeEvents,function(i,n){if(!this.activatedFirstTimeEvents[n]){var s,o=i.flag_key;if(!r&&i.property_filters&&!ag.isEmptyObject(i.property_filters))return void c$.warn('Skipping event check for "'+o+'" - property filters require targeting library');if(r){var a={event_name:i.event_name,property_filters:i.property_filters};s=r.eventMatchesCriteria(e,t,a)}else s={matches:e===i.event_name,error:null};if(s.error)return void c$.error('Error checking first-time event for flag "'+o+'": '+s.error);if(s.matches){c$.log('First-time event matched for flag "'+o+'": '+e);var l={key:i.pending_variant.variant_key,value:i.pending_variant.variant_value,experiment_id:i.pending_variant.experiment_id,is_experiment_active:i.pending_variant.is_experiment_active};this.flags.set(o,l),this.activatedFirstTimeEvents[n]=!0,this.recordFirstTimeEvent(i.flag_id,i.project_id,i.first_time_event_hash)}}},this)},cG.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},cG.prototype.recordFirstTimeEvent=function(e,t,r){var i=this.getMpProperty("distinct_id"),n=aN(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",Z.LIB_VERSION);var o=this.getFirstTimeEventApiRoute(e)+"?"+s.toString();c$.log("Recording first-time event for flag: "+e),this.fetch.call(oz,o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:n},body:JSON.stringify({distinct_id:i,project_id:t,first_time_event_hash:r})}).catch(function(t){c$.error("Failed to record first-time event for flag "+e+": "+t)})},cG.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return c$.error(e),t}):new Promise(function(e){c$.critical("Feature Flags not initialized"),e(t)})},cG.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return c$.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(c$.log('No flag found: "'+e+'"'),t)},cG.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return c$.error(e),t})},cG.prototype.getFeatureData=function(e,t){return c$.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value(
1) instead."),this.getVariantValue(e,t)},cG.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},cG.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return c$.error(e),t})},cG.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(c$.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},cG.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},cG.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},cG.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},ab(cG),cG.prototype.are_flags_ready=cG.prototype.areFlagsReady,cG.prototype.get_variant=cG.prototype.getVariant,cG.prototype.get_variant_sync=cG.prototype.getVariantSync,cG.prototype.get_variant_value=cG.prototype.getVariantValue,cG.prototype.get_variant_value_sync=cG.prototype.getVariantValueSync,cG.prototype.is_enabled=cG.prototype.isEnabled,cG.prototype.is_enabled_sync=cG.prototype.isEnabledSync,cG.prototype.load_flags=cG.prototype.loadFlags,cG.prototype.update_context=cG.prototype.updateContext,cG.prototype.when_ready=cG.prototype.whenReady,cG.prototype.get_feature_data=cG.prototype.getFeatureData,cG.prototype.getTargeting=cG.prototype.getTargeting;var cY=a_("recorder"),cJ="mp_iframe_handshake_request",cZ="mp_iframe_handshake_response",cX=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};cX.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return am.log("Load recorder check skipped due to disable_persistence config"),W.resolve(!1);var e=new aG(aV),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(lo(e[r])||e[r].tabId===t)return!0;return!1}).catch(ag.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},cX.prototype.checkAndStartSessionRecording=function(e,t){if(!oz.MutationObserver)return am.critical("Browser does not support MutationObserver; skipping session recording"),W.resolve();var r=ag.bind(function(e){return new W(ag.bind(function(t){var r=av(ag.bind(function(){this._recorder=this._recorder||new oz[K](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(ag.isUndefined(oz[K])){var i=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(i,r)}else r()},this))},this),i=la(this.getMpConfig("record_allowed_iframe_origins"),cY);if(i.length>0&&(this._setupParentFrameListener(i),oz.parent!==oz))return this._setupChildFrameListener(i,r),this._sendParentFrameRequestWithRetry(i),W.resolve();var n=ag.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=n>0&&100*Math.random()<=n;return e||s?r(!0):this.shouldLoadRecorder().then(ag.bind(function(e){return e?r(!1):W.resolve()},this))},cX.prototype.isRecording=function(){if(!this._recorder||!ag.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},cX.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),i=this.getMpConfig("recording_event_triggers");if(!r&&i){var n=i[e];if(n&&"number"==typeof n.percentage){var s=n.percentage,o=n.property_filters;if(o&&!ag.isEmptyObject(o)){var a=this.targetingSrc||this.libBasePath+Q;cz(this.loadExtraBundle,a).then((function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:o}).matches&&this.checkAndStartSessionRecording(!1,s)}catch(e){am.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){am.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,s)}}},cX.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():W.resolve()},cX.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():W.resolve()},cX.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():W.resolve()}
1,cX.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},cX.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},cX.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+ag.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},cX.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},cX.prototype.getRecorder=function(){return this._recorder},cX.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(i){if(-1!==e.indexOf(i.origin)){var n=i.data;n&&n.type===cZ&&n.token===r.getMpConfig("token")&&n.replayId&&(r._parentReplayId=n.replayId,n.distinctId&&r.mixpanelInstance.identify(n.distinctId),r._parentFrameRetryActive=!1,oz.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},oz.addEventListener("message",this._childFrameMessageHandler)}},cX.prototype._sendParentFrameRequest=function(e){var t={};t.type=cJ,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{oz.parent.postMessage(t,e[r])}catch(e){}},cX.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,i=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),!function n(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),i*=2,n())},i)}()},cX.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var i=r.data;if(i&&i.type===cJ&&i.token===t.getMpConfig("token")){var n=t.getSessionReplayId();if(n){var s={};s.type=cZ,s.token=t.getMpConfig("token"),s.replayId=n,s.distinctId=t.getDistinctId(),r.source.postMessage(s,r.origin)}}}},oz.addEventListener("message",this._parentFrameMessageHandler)}},ab(cX);var cK=function(){};cK.prototype.create_properties=function(){},cK.prototype.event_handler=function(){},cK.prototype.after_track_handler=function(){},cK.prototype.init=function(e){return this.mp=e,this},cK.prototype.track=function(e,t,r,i){var n=this,s=ag.dom_query(e);return 0===s.length?void am.error("The DOM query ("+e+") returned 0 elements"):(ag.each(s,function(e){ag.register_event(e,this.override_event,function(e){var s={},o=n.create_properties(r,this),a=n.mp.get_config("track_links_timeout");n.event_handler(e,this,s),window.setTimeout(n.track_callback(i,o,s,!0),a),n.mp.track(t,o,n.track_callback(i,o,s))})},this),!0)},cK.prototype.track_callback=function(e,t,r,i){i=i||!1;var n=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(i,t)||n.after_track_handler(t,r,i))}},cK.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):ag.extend({},e)};var cQ=function(){this.override_event="click"};ag.inherit(cQ,cK),cQ.prototype.create_properties=function(e,t){var r=cQ.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},cQ.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},cQ.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var c0=function(){this.override_event="submit"};ag.inherit(c0,cK),c0.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},c0.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var c1="$set",c2="$set_once",c3="$unset",c5="$add",c6="$append",c8="$union",c4="$remove",c9={set_action:function(e,t){var r={},i={};return ag.isObject(e)?ag.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[c1]=i,r},unset_action:function(e){var t={},r=[];return ag.isArray(e)||(e=[e]),ag.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[c3]=r,t},set_once_action:function(e,t){var r={},i={};return ag.isObject(e)?ag.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[c2]=i,r},union_action:function(e,t){var r={},i={};return ag.isObject(e)?ag.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=ag.isArray(e)?e:[e])},this):i[e]=ag.isArray(t)?t:[t],r[c8]=i,r},append_action:function(e,t){var r={},i={};return ag.isObject(e)?ag.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[c6]=i,r},remove_action:function(e,t){var r={},i={};return ag.isObject(e)?ag.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[c4]=i,r},delete_action:function(){var e={};return e.$delete="",e}},c7=function(){};ag.extend(c7.prototype,c9),c7.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},c7.prototype.set=a0(function(e,t,r){var i=this.set_action(e,t);return ag.isObject(e)&&(r=t),this._send_request(i,r)}),c7.prototype.set_once=a0(function(e,t,r){var i=this.set_once_action(e,t);return ag.isObject(e)&&(r=t),this._send_request(i,r)}),c7.prototype.unset=a0(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),c7.prototype.union=a0(function(e,t,r){ag.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),c7.prototype.delete=a0(function(e){var t=this.delete_action();return this._send_request(t,e)}),c7.prototype.remove=a0(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)}),c7.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=ag.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},c7.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},c7.prototype._get_config=function(e){return this._mixpanel.get_config(e)},c7.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},c7.prototype.remove=c7.prototype.remove,c7.prototype.set=c7.prototype.set,c7.prototype.set_once=c7.prototype.set_once,c7.prototype.union=c7.prototype.union,c7.prototype.unset=c7.prototype.unset,c7.prototype.toString=c7.prototype.toString;var ue=function(){};ag.extend(ue.prototype,c9),ue.prototype._init=function(e){this._mixpanel=e},ue.prototype.set=aQ(function(e,t,r){var i=this.set_action(e,t);return ag.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[c1]=ag.extend({},ag.info.people_properties(),i[c1]),this._send_request(i,r)}),ue.prototype.set_once=aQ(function(e,t,r){var i=this.set_once_action(e,t);return ag.isObject(e)&&(r=t),this._send_request(i,r)}),ue.prototype.unset=aQ(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ue.prototype.increment=aQ(function(e,t,r){var i={},n={};return ag.isObject(e)?(ag.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void am.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else n[t]=e},this),r=t):(ag.isUndefined(t)&&(t=1),n[e]=t),i[c5]=n,this._send_request(i,r)}),ue.prototype.append=aQ(function(e,t,r){ag.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)}),ue.prototype.remove=aQ(function(e,t,r){ag.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)}),ue.prototype.union=aQ(function(e,t,r){ag.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),ue.prototype.track_charge=aQ(function(){am.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),ue.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ue.prototype.delete_user=function(){if(!this._identify_called())return void am.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},ue.prototype.toString=function(){return this._mixpanel.toString()+".people"},ue.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),i=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),i&&(e.$user_id=i),n&&(e.$had_persisted_distinct_id=n);var s=ag.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),ag.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),ag.truncate(s,255))},ue.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ue.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ue.prototype._enqueue=function(e){c1 in e?this._mixpanel.persistence._add_to_people_queue(c1,e):c2 in e?this._mixpanel.persistence._add_to_people_queue(c2,e):c3 in e?this._mixpanel.persistence._add_to_people_queue(c3,e):c5 in e?this._mixpanel.persistence._add_to_people_queue(c5,e):c6 in e?this._mixpanel.persistence._add_to_people_queue(c6,e):c4 in e?this._mixpanel.persistence._add_to_people_queue(c4,e):c8 in e?this._mixpanel.persistence._add_to_people_queue(c8,e):am.error("Invalid call to _enqueue():",e)},ue.prototype._flush_one_queue=function(e,t,r,i){var n=this,s=ag.extend({},this._mixpanel.persistence.load_queue(e)),o=s;!ag.isUndefined(s)&&ag.isObject(s)&&!ag.isEmptyObject(s)&&(n._mixpanel.persistence._pop_from_people_queue(e,s),n._mi
1xpanel.persistence.save(),i&&(o=i(s)),t.call(n,o,function(t,i){0===t&&n._mixpanel.persistence._add_to_people_queue(e,s),ag.isUndefined(r)||r(t,i)}))},ue.prototype._flush=function(e,t,r,i,n,s,o){var a=this;this._flush_one_queue(c1,this.set,e),this._flush_one_queue(c2,this.set_once,i),this._flush_one_queue(c3,this.unset,s,function(e){return ag.keys(e)}),this._flush_one_queue(c5,this.increment,t),this._flush_one_queue(c8,this.union,n);var l=this._mixpanel.persistence.load_queue(c6);if(!ag.isUndefined(l)&&ag.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(c6,c),ag.isUndefined(r)||r(e,t)},h=l.length-1;h>=0;h--)c=(l=this._mixpanel.persistence.load_queue(c6)).pop(),a._mixpanel.persistence.save(),ag.isEmptyObject(c)||a.append(c,u);var p=this._mixpanel.persistence.load_queue(c4);if(!ag.isUndefined(p)&&ag.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(c4,f),ag.isUndefined(o)||o(e,t)},g=p.length-1;g>=0;g--)f=(p=this._mixpanel.persistence.load_queue(c4)).pop(),a._mixpanel.persistence.save(),ag.isEmptyObject(f)||a.remove(f,d)},ue.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ue.prototype.set=ue.prototype.set,ue.prototype.set_once=ue.prototype.set_once,ue.prototype.unset=ue.prototype.unset,ue.prototype.increment=ue.prototype.increment,ue.prototype.append=ue.prototype.append,ue.prototype.remove=ue.prototype.remove,ue.prototype.union=ue.prototype.union,ue.prototype.track_charge=ue.prototype.track_charge,ue.prototype.clear_charges=ue.prototype.clear_charges,ue.prototype.delete_user=ue.prototype.delete_user,ue.prototype.toString=ue.prototype.toString;var ut="__mps",ur="__mpso",ui="__mpus",un="__mpa",us="__mpap",uo="__mpr",ua="__mpu",ul="$people_distinct_id",uc="__alias",uu="__timers",uh=[ut,ur,ui,un,us,uo,ua,ul,uc,uu],up=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(am.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&ag.localStorage.is_supported()?this.storage=ag.localStorage:this.storage=ag.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};up.prototype.properties=function(){var e={};return this.load(),ag.each(this.props,function(t,r){ag.include(uh,r)||(e[r]=t)}),e},up.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=ag.extend({},e))}},up.prototype.upgrade=function(){var e,t;this.storage===ag.localStorage?(e=ag.cookie.parse(this.name),ag.cookie.remove(this.name),ag.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===ag.cookie&&(t=ag.localStorage.parse(this.name),ag.localStorage.remove(this.name),t&&this.register_once(t))},up.prototype.save=function(){this.disabled||this.storage.set(this.name,aq(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},up.prototype.load_prop=function(e){return this.load(),this.props[e]},up.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},up.prototype.clear=function(){this.remove(),this.props={}},up.prototype.register_once=function(e,t,r){return!!ag.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),ag.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},up.prototype.register=function(e,t){return!!ag.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),ag.extend(this.props,e),this.save(),!0)},up.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},up.prototype.update_search_keyword=function(e){this.register(ag.info.searchInfo(e))},up.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:ag.info.referringDomain(e)||"$direct"},"")},up.prototype.get_referrer_info=function(){return ag.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},up.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},up.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},up.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},up.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},up.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},up.prototype.get_cross_subdomain=function(){return this.cross_subdomain},up.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},up.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],n=this._get_or_create_queue(c1),s=this._get_or_create_queue(c2),o=this._get_or_create_queue(c3),a=this._get_or_create_queue(c5),l=this._get_or_create_queue(c8),c=this._get_or_create_queue(c4,[]),u=this._get_or_create_queue(c6,[]);r===ut?(ag.extend(n,i),this._pop_from_people_queue(c5,i),this._pop_from_people_queue(c8,i),this._pop_from_people_queue(c3,i)):r===ur?(ag.each(i,function(e,t){t in s||(s[t]=e)}),this._pop_from_people_queue(c3,i)):r===ui?ag.each(i,function(e){ag.each([n,s,a,l],function(t){e in t&&delete t[e]}),ag.each(u,function(t){e in t&&delete t[e]}),o[e]=!0}):r===un?(ag.each(i,function(e,t){t in n?n[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(c3,i)):r===ua?(ag.each(i,function(e,t){ag.isArray(e)&&(t in l||(l[t]=[]),ag.each(e,function(e){ag.
1include(l[t],e)||l[t].push(e)}))}),this._pop_from_people_queue(c3,i)):r===uo?(c.push(i),this._pop_from_people_queue(c6,i)):r===us&&(u.push(i),this._pop_from_people_queue(c3,i)),am.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),am.log(t),this.save()},up.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];ag.isUndefined(r)||ag.each(t,function(t,i){e===c6||e===c4?ag.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this)},up.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},up.prototype._get_queue_key=function(e){return e===c1?ut:e===c2?ur:e===c3?ui:e===c5?un:e===c6?us:e===c4?uo:e===c8?ua:void am.error("Invalid queue:",e)},up.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=ag.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},up.prototype.set_event_timer=function(e,t){var r=this.load_prop(uu)||{};r[e]=t,this.props[uu]=r,this.save()},up.prototype.remove_event_timer=function(e){var t=(this.load_prop(uu)||{})[e];return ag.isUndefined(t)||(delete this.props[uu][e],this.save()),t};var uf=function(e,t){throw Error(e+" not available in this build.")},ud="mixpanel",ug="base64",um="$device:",uy=oz.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,u_=!uy&&-1===al.indexOf("MSIE")&&-1===al.indexOf("Mozilla"),uv=null;an.sendBeacon&&(uv=function(){return an.sendBeacon.apply(an,arguments)});var ub={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},uw={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:ub,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ug,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:aB,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:aB,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:864e5,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},uk=!1,uS=function(){},ux=function(e,t,r){var i,n=r===ud?H:H[r];if(n&&0===V)i=n;else{if(n&&!ag.isArray(n))return void am.error("You have already initialized "+r);i=new uS}if(i._cached_groups={},i._init(e,t,r),i.people=new ue,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var s=ag.info.campaignParams(null),o={},a=!1;ag.each(s,function(e,t){o["initial_"+t]=e,e&&(a=!0)}),a&&i.people.set_once(o)}Z.DEBUG=Z.DEBUG||i.get_config("debug");var l=0===V?"module":"snippet";return oz.dispatchEvent(new oz.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:i,source:l,token:e,name:r,info:ag.info}})),!ag.isUndefined(n)&&ag.isArray(n)&&(i._execute_array.call(i.people,n.people),i._execute_array(n)),i};uS.prototype.init=function(e,t,r){if(ag.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===ud)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var i=ux(e,t,r);return H[r]=i,i._loaded(),i},uS.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||uw.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.hooks={},this.set_config(ag.extend({},uw,i,t,{name:r,token:e,callback_fn:(r===ud?r:ud+"."+r)+"._jsc"})),this.recorderManager=new cX({mixpanelInstance:this,getConfigFunc:ag.bind(this.get_config,this),setConfigFunc:ag.bind(this.set_config,this),getTabIdFunc:ag.bind(this.get_tab_id,this),reportErrorFunc:ag.bind(this.report_error,this),getDistinctIdFunc:ag.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:uf}),this._jsc=aB,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(ag.localStorage.is_supported(!0)&&uy){if(this.init_batchers(),uv&&oz.addEventListener){var n=ag.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);oz.addEventListener("pagehide",function(e){e.persisted&&n()}),oz.addEventListener("visibilitychange",function(){"hidden"===as.visibilityState&&n()})}}else this._batch_requests=!1,am.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),ag.each(this.get_batcher_configs(),function(e){am.log("Clearing batch queue "+e.queue_key),ag.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new up(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=ag.UUID();this.get_distinct_id()||this.register_once({distinct_id:um+s,$device_id:s},""),this.flags=new cG({getFullApiRoute:ag.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:ag.bind(this.get_config,this),setConfigFunc:ag.bind(this.set_config,this),getPropertyFunc:ag.bind(this.get_property,this),trackingFunc:ag.bind(this.track,this),loadExtraBundle:uf,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Q}),this.flags.init(),this.flags=this.flags,this.autocapture=new cq(this),this.autocapture.init(),this._init_tab_id();var o=this.get_config("remote_settings_mode");"strict"===o||"fallback"===o?this.__session_recording_init_promise=this._fetch_remote_settings(o).then(ag.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording()},uS.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))am.log("Tab ID initialization skipped due to disable_persistence config");
1else if(ag.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(ag.sessionStorage.get(r)||!ag.sessionStorage.get(t))&&ag.sessionStorage.set(t,"$tab-"+ag.UUID()),ag.sessionStorage.set(r,"1"),this.tab_id=ag.sessionStorage.get(t),oz.addEventListener("beforeunload",function(){ag.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},uS.prototype.get_tab_id=function(){return this.tab_id||null},uS.prototype._check_and_start_session_recording=aK(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),uS.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},uS.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},uS.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},uS.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},uS.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},uS.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},uS.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},uS.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},uS.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},uS.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},uS.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=ag.info.campaignParams(null);ag.each(e,(function(e,t){this.unregister(t)}).bind(this))}},uS.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(as.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(ag.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(as.referrer)},uS.prototype._dom_loaded=function(){ag.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||ag.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},uS.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!uk)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},uS.prototype._prepare_callback=function(e,t){if(ag.isUndefined(e))return null;if(uy)return function(r){e(r,t)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),n=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(n){delete r[i],e(n,t)},n},uS.prototype._send_request=function(e,t,r,i){var n=!0;if(u_)return this.__request_queue.push(arguments),n;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!i&&(ag.isFunction(r)||"string"==typeof r)&&(i=r,r=null),r=ag.extend(s,r||{}),uy||(r.method="GET");var a="POST"===r.method,l=uv&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),!uy&&(i?t.callback=i:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(o="data="+encodeURIComponent(t.data),delete t.data),ag.extend(t,this.get_config("api_extra_query_params")),e+="?"+ag.HTTPBuildQuery(t);var u=this;if("img"in t){var h=as.createElement("img");h.src=e,as.body.appendChild(h)}else if(l){try{n=uv(e,o)}catch(e){u.report_error(e),n=!1}try{i&&i(+!!n)}catch(e){u.report_error(e)}}else if(uy)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");
1if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),ag.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(i)if(c){try{e=ag.JSONDecode(p.responseText)}catch(t){if(u.report_error(t),!r.ignore_json_errors)return;e=p.responseText}i(e)}else i(Number(p.responseText))}else if(t=p.timeout&&!p.status&&new Date().getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,u.report_error(t),i)if(c){var e,t,n=p.responseHeaders||{};i({status:0,httpStatusCode:p.status,error:t,retryAfter:n["Retry-After"]})}else i(0)}},p.send(o)}catch(e){u.report_error(e),n=!1}else{var g=as.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=as.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return n},uS.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!oz.AbortController)return am.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var i=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,n={$lib_version:Z.LIB_VERSION,mp_lib:"web",sdk_config:"1"},s=ag.HTTPBuildQuery(n),o=new AbortController,a=setTimeout(function(){o.abort()},500),l={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:o.signal};return oz.fetch(i+"?"+s,l).then(function(e){if(clearTimeout(a),!e.ok){am.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var i=e.sdk_config.config,n={};ag.each(i,function(e,t){uw.hasOwnProperty(t)&&(n[t]=e)}),ag.isEmptyObject(n)?(am.critical("No valid config keys found in remote settings."),r()):t.set_config(n)}else r()}).catch(function(e){clearTimeout(a),am.critical("Failed to fetch remote settings",e),r()})},uS.prototype._execute_array=function(e){var t,r=[],i=[],n=[];ag.each(e,function(e){e&&(t=e[0],ag.isArray(t)?n.push(e):"function"==typeof e?e.call(this):ag.isArray(e)&&"alias"===t?r.push(e):ag.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?n.push(e):i.push(e))},this);var s=function(e,t){ag.each(e,function(e){if(ag.isArray(e[0])){var r=t;ag.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(r,this),s(i,this),s(n,this)},uS.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},uS.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},uS.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=ag.bind(function(e){return new ls(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:ag.bind(function(t,r,i){var n=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+n[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(i,t))},this),beforeSendHook:ag.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:ag.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},uS.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,ag.each(this.request_batchers,function(e){e.start()}))},uS.prototype.stop_batch_senders=function(){this._batch_requests=!1,ag.each(this.request_batchers,function(e){e.stop(),e.clear()})},uS.prototype.push=function(e){this._execute_array([e])},uS.prototype.enable=function(e){var t,r,i,n;if(void 0===e)this._flags.disable_all_events=!1;else{for(i=0,t={},r=[];i<e.length;i++)t[e[i]]=!0;for(n=0;n<this.__disabled_events.length;n++)t[this.__disabled_events[n]]||r.push(this.__disabled_events[n]);this.__disabled_events=r}},uS.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},uS.prototype._encode_data_for_request=function(e){var t=aq(e);return this.get_config("api_payload_format")===ug&&(t=ag.base64Encode(t)),{data:t}},uS.prototype._track_or_batch=function(e,t){var r=ag.truncate(e.data,255),i=e.endpoint,n=e.batcher,s=e.should_send_immediately,o=e.send_request_options||{};t=t||aB;var a=!0,l=ag.bind(function(){return(!o.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(am.log("MIXPANEL REQUEST:"),am.log(r),this._send_request(i,this._encode_data_for_request(r),o,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!s?n.enqueue(r).then(function(e){e?t(1,r):l()}):a=l(),a&&r},uS.prototype.track=aK(function(e,t,r,i){if(!(r&&r.skip_hooks)){if(null===(n=this._run_hook("before_track",e,t)))return;e=n[0],t=n[1]}i||"function"!=typeof r||(i=r,r=null);var n,s=(r=r||{}).transport;s&&(r.transport=s);var o=r.send_immediately;if("function"!=typeof i&&(i=aB),ag.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void i(0);(t=ag.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!ag.isUndefined(a)){var l=new Date().getTime()-a;t.$duration=parseFloat((l/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?ag.info.marketingParams():{};t=ag.extend({},ag.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");ag.isArray(u)?ag.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u),this._start_recording_on_event(e,t);var h={event:e,properties:t};return n=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},i),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),n}),uS.prototype.set_group=aK(function(e,t,r){ag.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)}),uS.prototype.add_group=aK(function(e,t,r){var i=this.get_property(e),n={};return void 0===i?(n[e]=[t],this.register(n)):-1===i.indexOf(t)&&(i.push(t),n[e]=i,this.register(n)),this.people.union(e,t,r)}),uS.prototype.remove_group=aK(function(e,t,r){var i=this.get_property(e);if(void 0!==i){var n=i.indexOf(t);n>-1&&(i.splice(n,1),this.register({group_key:i})),0===i.length&&this.unregister(e)}return this.people.remove(e,t,r)}),uS.prototype.track_with_groups=aK(function(e,t,r,i){var n=ag.extend({},t||{});return ag.each(r,function(e,t){null!=e&&(n[t]=e)}),this.track(e,n,i)}),uS.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},uS.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},uS.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),i=this._cached_groups[r];return(void 0===i||i._group_key!==e||i._group_id!==t)&&((i=new c7)._init(this,e,t),this._cached_groups[r]=i),i},uS.prototype.track_pageview=aK(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",i=ag.extend(ag.info.mpPageViewProperties(),ag.info.campaignParams(),ag.info.clickParams()),n=ag.extend({},i,e);return this.track(r,n)}),uS.prototype.track_links=function(){return this._track_dom.call(this,cQ,arguments)},uS.prototype.track_forms=function(){return this._track_dom.call(this,c0,arguments)}
1,uS.prototype.time_event=function(e){ag.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var uC={persistent:!0},uE=function(e){var t;return t=ag.isObject(e)?e:ag.isUndefined(e)?{}:{days:e},ag.extend({},uC,t)};uS.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var i=uE(t=r[1]);i.persistent?this.persistence.register(e,i.days):ag.extend(this.unpersisted_superprops,e)}},uS.prototype.register_once=function(e,t,r){var i=this._run_hook("before_register_once",e,t,r);if(null!==i){e=i[0],t=i[1];var n=uE(r=i[2]);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),ag.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},uS.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],(t=uE(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},uS.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},uS.prototype.identify=function(e,t,r,i,n,s,o,a){var l=this._run_hook("before_identify",e);if(null===l)return -1;e=l[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(um))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(uc)&&(this.unregister(uc),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,i,n,s,o,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags().catch(function(){am.error("[flags] Error fetching flags during identify")})},uS.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=ag.UUID();this.register_once({distinct_id:um+e,$device_id:e},""),this._check_and_start_session_recording()},uS.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},uS.prototype.alias=function(e,t){if(e===this.get_property(ul))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(ag.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(uc,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},uS.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)}
1,uS.prototype.set_config=function(e){ag.isObject(e)&&(ag.extend(this.config,e),e.batch_size&&ag.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Z.DEBUG=Z.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),ag.isObject(e.hooks)&&(this.hooks={},ag.each(e.hooks,function(e,t){if(ag.isFunction(e))this.hooks[t]=[e];else if(ag.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)ag.isFunction(e[r])||am.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else am.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},uS.prototype.get_config=function(e){return this.config[e]},uS.prototype._run_hook=function(e){var t=ae.call(arguments,1);return ag.each(this.hooks[e],function(r){if(null===t)return null;var i=r.apply(this,t);void 0===i?(this.report_error(e+" hook did not return a valid value"),t=null):(ag.isArray(i)||(i=[i]),t.splice.apply(t,[0,i.length].concat(i)))},this),t},uS.prototype.get_property=function(e){return this.persistence.load_prop([e])},uS.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},uS.prototype.toString=function(){var e=this.get_config("name");return e!==ud&&(e=ud+"."+e),e},uS.prototype._event_is_disabled=function(e){return ag.isBlockedUA(al)||this._flags.disable_all_events||ag.include(this.__disabled_events,e)},uS.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&ag.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||ag.cookie.get("mp_optout"))&&(ag.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},uS.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},uS.prototype._gdpr_call_func=function(e,t){return t=ag.extend({track:ag.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),ag.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},uS.prototype.opt_in_tracking=function(e){e=ag.extend({enable_persistence:!0},e),this._gdpr_call_func(aY,e),this._gdpr_update_persistence(e)},uS.prototype.opt_out_tracking=function(e){(e=ag.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(aJ,e),this._gdpr_update_persistence(e)},uS.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(aZ,e)},uS.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(aX,e)},uS.prototype.clear_opt_in_out_tracking=function(e){e=ag.extend({enable_persistence:!0},e),this._gdpr_call_func(a1,e),this._gdpr_update_persistence(e)},uS.prototype.report_error=function(e,t){am.error.apply(am.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){am.error(e)}},uS.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},uS.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):am.log("remove_hook failed. Matching hook was not found"))},uS.prototype.init=uS.prototype.init,uS.prototype.reset=uS.prototype.reset,uS.prototype.enable=uS.prototype.enable,uS.prototype.disable=uS.prototype.disable,uS.prototype.time_event=uS.prototype.time_event,uS.prototype.track=uS.prototype.track,uS.prototype.track_links=uS.prototype.track_links,uS.prototype.track_forms=uS.prototype.track_forms,uS.prototype.track_pageview=uS.prototype.track_pageview,uS.prototype.register=uS.prototype.register,uS.prototype.register_once=uS.prototype.register_once,uS.prototype.unregister=uS.prototype.unregister,uS.prototype.identify=uS.prototype.identify,uS.prototype.alias=uS.prototype.alias,uS.prototype.name_tag=uS.prototype.name_tag,uS.prototype.set_config=uS.prototype.set_config,uS.prototype.get_config=uS.prototype.get_config,uS.prototype.get_api_host=uS.prototype.get_api_host,uS.prototype.get_property=uS.prototype.get_property,uS.prototype.get_distinct_id=uS.prototype.get_distinct_id,uS.prototype.toString=uS.prototype.toString,uS.prototype.opt_out_tracking=uS.prototype.opt_out_tracking,uS.prototype.opt_in_tracking=uS.prototype.opt_in_tracking,uS.prototype.has_opted_out_tracking=uS.prototype.has_opted_out_tracking,uS.prototype.has_opted_in_tracking=uS.prototype.has_opted_in_tracking,uS.prototype.clear_opt_in_out_tracking=uS.prototype.clear_opt_in_out_tracking,uS.prototype.get_group=uS.prototype.get_group,uS.prototype.set_group=uS.prototype.set_group,uS.prototype.add_group=uS.prototype.add_group,uS.prototype.remove_group=uS.prototype.remove_group,uS.prototype.add_hook=uS.prototype.add_hook,uS.prototype.remove_hook=uS.prototype.remove_hook,uS.prototype.track_with_groups=uS.prototype.track_with_groups,uS.prototype.start_batch_senders=uS.prototype.start_batch_senders,uS.prototype.stop_batch_senders=uS.prototype.stop_batch_senders,uS.prototype.start_session_recording=uS.prototype.start_session_recording,uS.prototype.stop_session_recording=uS.prototype.stop_session_recording,uS.prototype.pause_session_recording=uS.prototype.pause_session_recording,uS.prototype.resume_session_recording=uS.prototype.resume_session_recording,uS.prototype.get_session_recording_properties=uS.prototype.get_session_recording_properties,uS.prototype.get_session_replay_url=uS.prototype.get_session_replay_url,uS.prototype.get_tab_id=uS.prototype.get_tab_id,uS.prototype.DEFAULT_API_ROUTES=ub,uS.prototype.__get_recorder=uS.prototype.__get_recorder,uS.prototype.__get_recording_init_promise=uS.prototype.__get_recording_init_promise,up.prototype.properties=up.prototype.properties,up.prototype.update_search_keyword=up.prototype.update_search_keyword,up.prototype.update_referrer_info=up.prototype.update_referrer_info,up.prototype.get_cross_subdomain=up.prototype.get_cross_subdomain,up.prototype.clear=up.prototype.clear;var uI={},uO=function(){ag.each(uI,function(e,t){t!==ud&&(H[t]=e)}),H._=ag},uR=(uf=function(e,t){t()},V=0,(H=new uS).init=function(e,t,r){if(r)return H[r]||(H[r]=uI[r]=ux(e,t,r),H[r]._loaded()),H[r];var i=H;uI[ud]?i=uI[ud]:e&&((i=ux(e,t,ud))._loaded(),uI[ud]=i),H=i,1===V&&(oz[ud]=H),uO()},H.init(),function(){function e(){e.done||(e.done=!0,uk=!0,u_=!1,ag.each(uI,function(e){e._dom_loaded()}))}if(as.addEventListener)"complete"===as.readyState?e():as.addEventListener("DOMContentLoaded",e,!1);else if(as.attachEvent){as.attachEvent("onreadystatechange",e);var t=!1;try{t=null===oz.frameElement}catch(e){}as.documentElement.doScroll&&t&&function t(){try{as.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}ag.register_event(oz,"load",e,!0)}(),H);let uM=!1;e.s(["MixpanelProvider",0,function(){return(0,Y.useEffect)(()=>
1{if(!uM){uM=!0,uR.init("80424bd18a75e245dc5f2d67cf89f6a1",{debug:!1,track_pageview:!0,persistence:"localStorage",autocapture:!0,record_sessions_percent:100});try{uR.has_opted_out_tracking()&&(uR.opt_in_tracking(),uR.track_pageview?.())}catch{}}},[]),null},"trackEvent",0,function(e,t,r){try{return!!uR.track(e,t,r)}catch{return!1}}],71587)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.