tdem-web-sdk 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tdem.ie.min.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ===========================================================================
|
|
3
|
-
* tdem-web-sdk@1.0.
|
|
3
|
+
* tdem-web-sdk@1.0.16 (c) 2026 TencentCloud Real User Monitoring.
|
|
4
4
|
* Author pumpkincai.
|
|
5
|
-
* Last Release Time
|
|
5
|
+
* Last Release Time Wed Nov 25 2026 10:54:09 GMT+0800 (China Standard Time).
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
* Thanks for supporting TDEM!
|
|
8
8
|
* ===========================================================================
|
|
9
9
|
**/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).TDEM={})}(this,function(k){"use strict";function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function C(s){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){_(r,t,n,i,o,"next",e)}function o(e){_(r,t,n,i,o,"throw",e)}i(void 0)})}}function L(e,t,n){t=B(t);var r=e,e=W()?Reflect.construct(t,n||[],B(e).constructor):t.apply(e,n);if(!e||"object"!=typeof e&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=r))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t,n){var r;return W()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&K(t,n.prototype),t)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function b(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ae(e,t){var n,r,i,o,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=Y(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function U(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(){return(j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=B(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}function W(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(W=function(){return!!e})()}function H(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach(function(e){U(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function q(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function V(){var p,m,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var i,o,a,s,u,l,c,d,f,t=t&&t.prototype instanceof v?t:v,t=Object.create(t.prototype);return G(t,"_invoke",(i=e,o=n,c=r||[],d=!1,f={p:l=0,n:0,v:p,a:h,f:h.bind(p,4),d:function(e,t){return a=e,s=0,u=p,f.n=t,g}},function(e,t,n){if(1<l)throw TypeError("Generator is already running");for(d&&1===t&&h(t,n),s=t,u=n;(m=s<2?p:u)||!d;){a||(s?(1<s&&(f.n=s<3?-1:u),h(s,u)):f.v=u);try{if(l=2,a){if(m=a[e=s?e:"next"]){if(!(m=m.call(a,u)))throw TypeError("iterator result is not an object");if(!m.done)return m;u=m.value,s<2&&(s=0)}else 1===s&&(m=a["return"])&&m.call(a),s<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=p}else if((m=(d=f.n<0)?u:i.call(o,f))!==g)break}catch(m){a=p,s=1,u=m}finally{l=1}}return{value:m,done:d}}),!0),t;function h(e,t){for(s=e,u=t,m=0;!d&&l&&!n&&m<c.length;m++){var n,r=c[m],i=f.p,o=r[2];3<e?(n=o===t)&&(u=r[(s=r[4])?5:s=3],r[4]=r[5]=p):r[0]<=i&&((n=e<2&&i<r[1])?(s=0,f.v=t,f.n=r[1]):i<o&&(n=e<3||r[0]>t||o<t)&&(r[4]=e,r[5]=t,f.n=o,s=0))}if(n||1<e)return g;throw d=!0,t}}var g={};function v(){}function i(){}function o(){}m=Object.getPrototypeOf;var e=[][t]?m(m([][t]())):(G(m={},t,function(){return this}),m),a=o.prototype=v.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,G(e,n,"GeneratorFunction")),e.prototype=Object.create(a),e}return G(a,"constructor",i.prototype=o),G(o,"constructor",i),G(o,n,i.displayName="GeneratorFunction"),G(a),G(a,n,"Generator"),G(a,t,function(){return this}),G(a,"toString",function(){return"[object Generator]"}),(V=function(){return{w:r,m:s}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(G=function(e,t,n,r){function i(t,n){G(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function J(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||Y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t,n,r){var i=j(B(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function Ne(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||Y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e){e=function(e){if("object"!=typeof e||!e)return e;var t;if("undefined"==typeof Symbol||void 0===(t=e[Symbol.toPrimitive]))return String(e);e=t.call(e,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==typeof e?e:e+""}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){var n;if(e)return"string"==typeof e?w(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}function Q(e){var n="function"==typeof Map?new Map:void 0;return(Q=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(PE){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return N(e,arguments,B(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),K(t,e)})(e)}var g=function(e){try{return!!e()}catch(w){return!0}},R=void 0,ee=void 0,v=(R({target:"Array",stat:!0},{isArray:ee}),void 0),te=v({}.toString),ne=v("".slice),re=function(e){return ne(te(e),8,-1)},ie=(Array.isArray,"object"==("undefined"==typeof document?"undefined":T(document))&&document.all),oe=void 0===ie&&ie!==undefined?function(e){return"function"==typeof e||e===ie}:function(e){return"function"==typeof e},O=function(e){return"object"==T(e)?null!==e:oe(e)},ae=function(e){return null===e||e===undefined},se=TypeError,ue=function(e){if(ae(e))throw new se("Can't call method on "+e);return e},le=Object,ce=function(e){return le(ue(e))},de=void 0,fe=(R({target:"Math",stat:!0},{trunc:de}),Math.ceil,function(e){e=+e;return e!=e||0==e?0:de(e)}),he=Math.min,pe=function(e){e=fe(e);return 0<e?he(e,9007199254740991):0},me=function(e){return pe(e.length)},ge=TypeError,ve=function(e){if(9007199254740991<e)throw new ge("Maximum allowed index exceeded");return e},x=void 0,ye=x.document,we=O(ye)&&O(ye.createElement),be=function(e){return we?ye.createElement(e):{}},f=void 0,ke=(f||g(function(){return 7!==Object.defineProperty(be("div"),"a",{get:function(){return 7}}).a}),f&&g(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})),_e=String,Se=TypeError,S=function(e){if(O(e))return e;throw new Se(_e(e)+" is not an object")},Ee=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Ce=Function.prototype.call,I=Ee?Ce.bind(Ce):function(){return Ce.apply(Ce,arguments)},Re=function(e,t){return arguments.length<2?(n=x[e],oe(n)?n:undefined):x[e]&&x[e][t];var n},Oe=v({}.isPrototypeOf),xe=String,Te=function(e){try{return xe(e)}catch(w){return"Object"}},Ie=TypeError,Fe=function(e){if(oe(e))return e;throw new Ie(Te(e)+" is not a function")},Ue=void 0,je=!g(function(){Reflect.apply(function(){})}),je=(R({target:"Reflect",stat:!0,forced:je},{apply:function(e,t,n){return Ue(Fe(e),t,S(n))}}),Function.prototype),Be=je.apply,je=je.call,ze=("object"==("undefined"==typeof Reflect?"undefined":T(Reflect))&&Reflect.apply||Ee&&je.bind(Be),v({}.hasOwnProperty)),M=Object.hasOwn||function(e,t){return ze(ce(e),t)},Be=Function.prototype,je=f&&Object.getOwnPropertyDescriptor,We=M(Be,"name"),He={EXISTS:We,PROPER:We&&"something"===function(){}.name,CONFIGURABLE:We&&(!f||je(Be,"name").configurable)},We=function(e,t){var n=[][e];return!!n&&g(function(){n.call(null,t||function(){return 1},1)})},qe=void 0,Ve=void 0,Ge=v([].join),Be=qe!==Object||!We("join",","),je=(R({target:"Array",proto:!0,forced:Be},{join:function(e){return Ge(Ve(this),e===undefined?",":e)}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function Je(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw t!==undefined&&null!==t||n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var Ke=Object.defineProperty,$e=function(e,t){try{Ke(x,e,{value:t,configurable:!0,writable:!0})}catch(_){x[e]=t}return t},Ze=Je(function(e){e=e.exports=x["__core-js_shared__"]||$e("__core-js_shared__",{});(e.versions||(e.versions=[])).push({version:"3.51.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ye=v(Function.toString);oe(Ze.inspectSource)||(Ze.inspectSource=function(e){return Ye(e)});var Xe,Qe=Ze.inspectSource,et=void 0,tt=et("toStringTag"),nt=Object,rt="Arguments"===re(function(){return arguments}()),it=function(e){var n,t;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(e=nt(e),tt))?n:rt?re(e):"Object"===(t=re(e))&&oe(e.callee)?"Arguments":t},ot=String,E=function(e){if("Symbol"===it(e))throw new TypeError("Cannot convert a Symbol value to a string");return ot(e)},Be=(Xe=!1,(Be=/[ac]/).exec=function(){return Xe=!0,/./.exec.apply(this,arguments)},!0===Be.test("abc")&&Xe),at=/./.test,Be=(R({target:"RegExp",proto:!0,forced:!Be},{test:function(e){var t=S(this),e=E(e),n=t.exec;return oe(n)?null!==(n=I(n,t,e))&&(S(n),!0):I(at,t,e)}}),x.WeakMap),Be=oe(Be)&&/native code/.test(String(Be)),st=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ut=void 0,lt=f?function(e,t,n){return ut.f(e,t,st(1,n))}:function(e,t,n){return e[t]=n,e},ct=void 0,e=ct.f,dt=(R({target:"Object",stat:!0,forced:Object.defineProperties!==e,sham:!f},{defineProperties:e}),void 0),e=g(function(){dt(1)}),e=(R({target:"Object",stat:!0,forced:e},{keys:function(e){return dt(ce(e))}}),function(e){if("Function"===re(e))return v(e)}),ft=Math.max,ht=Math.min,pt=function(e,t){e=fe(e);return e<0?ft(e+t,0):ht(e,t)},t=function(s){return function(e,t,n){var r=Ve(e),i=me(r);if(0!==i){var o,a=pt(n,i);if(s&&t!=t){for(;a<i;)if((o=r[a++])!=o)return!0}else for(;a<i;a++)if((s||a in r)&&r[a]===t)return s||a||0}return!s&&-1}},t={includes:t(!0),indexOf:t(!1)},mt=t.indexOf,gt=e([].indexOf),vt=!!gt&&1/gt([1],1,-0)<0,n=vt||!We("indexOf");R({target:"Array",proto:!0,forced:n},{indexOf:function(e){var t=1<arguments.length?arguments[1]:undefined;return vt?gt(this,e,t)||0:mt(this,e,t)}});var yt,wt={},bt=(v([].push),["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),kt=(Object.keys,f&&!ke&&Object.defineProperties,Re("document","documentElement")),n=void 0,_t=n("IE_PROTO"),St=function(){},Et=function(e){return"<script>"+e+"<\/script>"},Ct=function(e){e.write(Et("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{yt=new ActiveXObject("htmlfile")}catch(C){}var e;Rt="undefined"==typeof document||document.domain&&yt?Ct(yt):((e=be("iframe")).style.display="none",kt.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(Et("document.F=Object")),e.close(),e.F);for(var t=bt.length;t--;)delete Rt.prototype[bt[t]];return Rt()},Ot=(wt[_t]=!0,Object.create||function(e,t){var n;return null!==e?(St.prototype=S(e),n=new St,St.prototype=null,n[_t]=e):n=Rt(),t===undefined?n:ct.f(n,t)});R({target:"Object",stat:!0,sham:!f},{create:Ot});var xt,Tt,It,Mt,At=Object.create||Object,ke=function(e,t){return Ze[e]||(Ze[e]=t||At(null))},Pt=0,Dt=Math.random(),Lt=v(1.1.toString),Nt=function(e){return"Symbol("+(e===undefined?"":e)+")_"+Lt(++Pt+Dt,36)},Ft=(ke("keys"),x.TypeError),Ut=x.WeakMap,jt=Be||Ze.state?((It=Ze.state||(Ze.state=new Ut)).get=It.get,It.has=It.has,It.set=It.set,xt=function(e,t){if(It.has(e))throw new Ft("Object already initialized");return t.facade=e,It.set(e,t),t},Tt=function(e){return It.get(e)||{}},function(e){return It.has(e)}):(Mt=n("state"),wt[Mt]=!0,xt=function(e,t){if(M(e,Mt))throw new Ft("Object already initialized");return t.facade=e,lt(e,Mt,t),t},Tt=function(e){return M(e,Mt)?e[Mt]:{}},function(e){return M(e,Mt)}),Bt={set:xt,get:Tt,has:jt,enforce:function(e){return jt(e)?Tt(e):xt(e,{})},getterFor:function(t){return function(e){if(O(e)&&(e=Tt(e)).type===t)return e;throw new Ft("Incompatible receiver, "+t+" required")}}},zt=Je(function(e){var r=He.CONFIGURABLE,i=Bt.enforce,t=Bt.get,o=String,a=Object.defineProperty,s=v("".slice),u=v("".replace),l=v([].join),c=f&&!g(function(){return 8!==a(function(){},"length",{value:8}).length}),d=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===s(o(t),0,7)&&(t="["+u(o(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!M(e,"name")||r&&e.name!==t)&&(f?a(e,"name",{value:t,configurable:!0}):e.name=t),c&&n&&M(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&M(n,"constructor")&&n.constructor?f&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(z){}n=i(e);return M(n,"source")||(n.source=l(d,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return oe(this)&&t(this).source||Qe(this)},"toString")}),Wt=function(e,t,n){return n.get&&zt(n.get,t,{getter:!0}),n.set&&zt(n.set,t,{setter:!0}),ut.f(e,t,n)},Ut=He.EXISTS,Ht=Function.prototype,qt=v(Ht.toString),Vt=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Gt=v(Vt.exec),Jt=(f&&!Ut&&Wt(Ht,"name",{configurable:!0,get:function(){try{return Gt(Vt,qt(this))[1]}catch(k){return""}}}),function(e,t,n,r){var i=(r=r||{}).enumerable,o=r.name!==undefined?r.name:t;if(oe(n)&&zt(n,o,r),r.global)i?e[t]=n:$e(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(N){}i?e[t]=n:ut.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}),Kt=void 0,$t=et("species"),Zt=RegExp.prototype,Ut=function(r,e,t,n){var a,i=et(r),s=!g(function(){var e={};return e[i]=function(){return 7},7!==""[r](e)}),o=s&&!g(function(){var e,t=!1,n=/a/;return"split"===r&&((e={})[$t]=function(){return n},(n={constructor:e,flags:""})[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t});s&&o&&!t||(a=/./[i],o=e(i,""[r],function(e,t,n,r,i){var o=t.exec;return o===Kt||o===Zt.exec?s&&!i?{done:!0,value:I(a,t,n,r)}:{done:!0,value:I(e,n,t,r)}:{done:!1}}),Jt(String.prototype,r,o[0]),Jt(Zt,i,o[1])),n&<(Zt[i],"sham",!0)},Yt=v("".charAt),Xt=v("".charCodeAt),Qt=v("".slice),Ht=function(i){return function(e,t){var n,e=E(ue(e)),t=fe(t),r=e.length;return t<0||r<=t?i?"":undefined:(n=Xt(e,t))<55296||56319<n||t+1===r||(r=Xt(e,t+1))<56320||57343<r?i?Yt(e,t):n:i?Qt(e,t,t+2):r-56320+(n-55296<<10)+65536}},Ht={codeAt:Ht(!1),charAt:Ht(!0)},en=Ht.charAt,tn=function(e,t,n){return t+(n&&en(e,t).length||1)},nn=function(e,t){t=e[t];return ae(t)?undefined:Fe(t)},rn=Math.floor,on=v("".charAt),an=v("".replace),sn=v("".slice),un=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ln=/\$([$&'`]|\d{1,2})/g,cn=x.RegExp,dn={correct:!g(function(){var e=!0;try{cn(".","d")}catch(F){e=!1}var t,n={},r="",i=e?"dgimsy":"gimsy",o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(t in e&&(o.hasIndices="d"),o)!function(e,t){Object.defineProperty(n,e,{get:function(){return r+=t,!0}})}(t,o[t]);return Object.getOwnPropertyDescriptor(cn.prototype,"flags").get.call(n)!==i||r!==i})},fn=function(){var e=S(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},hn=(f&&!dn.correct&&(Wt(RegExp.prototype,"flags",{configurable:!0,get:fn}),dn.correct=!0),RegExp.prototype),pn=dn.correct?function(e){return e.flags}:function(e){return dn.correct||!Oe(hn,e)||M(e,"flags")?e.flags:I(fn,e)},mn=TypeError,gn=function(e,t){var n=e.exec;if(oe(n))return null!==(n=I(n,e,t))&&S(n),n;if("RegExp"===re(e))return I(Kt,e,t);throw new mn("RegExp#exec called on incompatible receiver")},vn=et("replace"),yn=Math.max,wn=Math.min,bn=v([].concat),kn=v([].push),_n=v("".indexOf),Sn=v("".slice),r="$0"==="a".replace(/./,"$0"),En=!!/./[vn]&&""===/./[vn]("a","$0"),Cn=(Ut("replace",function(e,b,k){var _=En?"$":"$0";return[function(e,t){var n=ue(this),r=O(e)?nn(e,vn):undefined;return r?I(r,e,n,t):I(b,E(n),e,t)},function(e,t){var n=S(this),r=E(e),i=oe(t),e=(i||(t=E(t)),E(pn(n)));if("string"==typeof t&&!~_n(t,_)&&!~_n(t,"$<")&&!~_n(e,"y")){var o=k(b,n,r,t);if(o.done)return o.value}var a,s=!!~_n(e,"g");s&&(a=!!~_n(e,"u")||!!~_n(e,"v"),n.lastIndex=0);for(var u,l=[];null!==(u=gn(n,r))&&(kn(l,u),s);)""===E(u[0])&&(n.lastIndex=tn(r,pe(n.lastIndex),a));for(var c,d="",f=0,h=0;h<l.length;h++){for(var p=E((u=l[h])[0]),m=yn(wn(fe(u.index),r.length),0),g=[],v=1;v<u.length;v++)kn(g,(c=u[v])===undefined?c:String(c));var y=u.groups,w=i?(w=bn([p],g,m,r),y!==undefined&&kn(w,y),E(Ue(t,undefined,w))):function(o,a,s,u,l,e){var c=s+o.length,d=u.length,t=ln;return l!==undefined&&(l=ce(l),t=un),an(e,t,function(e,t){var n;switch(on(t,0)){case"$":return"$";case"&":return o;case"`":return sn(a,0,s);case"'":return sn(a,c);case"<":n=l[sn(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=rn(i/10))&&r<=d?u[r-1]===undefined?on(t,1):u[r-1]+on(t,1):e;n=u[i-1]}return n===undefined?"":n})}(p,r,m,g,y,t);f<=m&&(d+=Sn(r,f,m)+w,f=m+p.length)}return d+Sn(r,f)}]},!!g(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!r||En),function(){}),Rn=Re("Reflect","construct"),On=/^\s*(?:class|function)\b/,xn=v(On.exec),Tn=!On.test(Cn),In=function(e){if(!oe(e))return!1;try{return Rn(Cn,[],e),!0}catch(w){return!1}},r=function(e){if(!oe(e))return!1;switch(it(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tn||!!xn(On,Qe(e))}catch(w){return!0}},Mn=(r.sham=!0,!Rn||g(function(){var e;return In(In.call)||!In(Object)||!In(function(){e=!0})||e})?r:In),An=TypeError,Pn=Object.getOwnPropertyDescriptor,Dn=f&&!function(){if(this!==undefined)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(k){return k instanceof TypeError}}()?function(e,t){if(ee(e)&&!Pn(e,"length").writable)throw new An("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Ln=v("".indexOf);Ut("match",function(r,s,u){return[function(e){var t=ue(this),n=O(e)?nn(e,r):undefined;return n?I(n,e,t):(n=E(t),new RegExp(e)[r](n))},function(e){var t=S(this),n=E(e),e=u(s,t,n);if(e.done)return e.value;e=E(pn(t));if(!~Ln(e,"g"))return gn(t,n);for(var r=!!~Ln(e,"u")||!!~Ln(e,"v"),i=[],o=t.lastIndex=0;null!==(a=gn(t,n));){var a=E(a[0]);""===(i[o]=a)&&(t.lastIndex=tn(n,pe(t.lastIndex),r)),o++}return 0===o?null:i}]});var Nn,Fn,Un,jn,Bn,zn,Wn,Hn,qn,r=x.navigator,r=r&&r.userAgent,Vn=r?String(r):"",r=x.process,i=x.Deno,r=r&&r.versions||i&&i.version,i=r&&r.v8,Gn=o=!(o=i?0<(rr=i.split("."))[0]&&rr[0]<4?1:+(rr[0]+rr[1]):o)&&Vn&&(!(rr=Vn.match(/Edge\/(\d+)/))||74<=rr[1])&&(rr=Vn.match(/Chrome\/(\d+)/))?+rr[1]:o,Jn=et("species"),r=function(t){return 51<=Gn||!g(function(){var e=[];return(e.constructor={})[Jn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Kn=void 0,$n=void 0,i=r("slice"),Zn=et("species"),Yn=Array,Xn=Math.max,Qn=(R({target:"Array",proto:!0,forced:!i},{slice:function(e,t){var n,r,i,o=Ve(this),a=me(o),s=pt(e,a),u=pt(t===undefined?a:t,a);if(ee(o)&&(n=o.constructor,(n=Mn(n)&&(n===Yn||ee(n.prototype))||O(n)&&null===(n=n[Zn])?undefined:n)===Yn||n===undefined))return $n(o,s,u);for(r=new(n===undefined?Yn:n)(Xn(u-s,0)),i=0;s<u;s++,i++)s in o&&Kn(r,i,o[s]);return Dn(r,i),r}}),v([].slice),void 0),er=Qn.f,tr="object"==("undefined"==typeof window?"undefined":T(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nr={f:function(e){if(!tr||"Window"!==re(e))return er(Ve(e));try{return er(e)}catch(w){return $n(tr)}}},rr=nr.f,o=g(function(){return!Object.getOwnPropertyNames(1)}),ir=(R({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:rr}),bt.concat("length","prototype"),Object.getOwnPropertyNames,{f:Object.getOwnPropertySymbols}),or=v([].concat),ar=Re("Reflect","ownKeys")||function(e){var t=Qn.f(S(e)),n=ir.f;return n?or(t,n(e)):t},sr=void 0,i=function(e,t,n){for(var r=ar(t),i=ut.f,o=sr.f,a=0;a<r.length;a++){var s=r[a];M(e,s)||n&&M(n,s)||i(e,s,o(t,s))}},ur=x.Symbol,lr=ur&&ur.prototype,cr=(!f||!oe(ur)||"description"in lr&&ur().description===undefined||(Nn={},i(o=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:E(arguments[0]),t=Oe(lr,this)?new ur(e):e===undefined?ur():ur(e);return""===e&&(Nn[t]=!0),t},ur),Fn=o["for"],o["for"]=function(e){var e=E(e),t=I(Fn,this,e);return""===e&&(Nn[t]=!0),t},(o.prototype=lr).constructor=o,Un="Symbol(description detection)"===String(ur("description detection")),jn=v(lr.valueOf),Bn=v(lr.toString),zn=/^Symbol\((.*)\)[^)]+$/,Wn=v("".replace),Hn=v("".slice),Wt(lr,"description",{configurable:!0,get:function(){var e=jn(this);return M(Nn,e)?"":(e=Bn(e),""===(e=Un?Hn(e,7,-1):Wn(e,zn,"$1"))?undefined:e)}}),R({global:!0,constructor:!0,forced:!0},{Symbol:o})),TypeError),dr=function(e,t){if(Oe(t,e))return e;throw new cr("Incorrect invocation")},rr=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fr=void 0,i=g(function(){fr(1)}),o=(R({target:"Object",stat:!0,forced:i,sham:!rr},{getPrototypeOf:function(e){return fr(ce(e))}}),n("IE_PROTO"),Object),i=(o.prototype,rr&&o.getPrototypeOf,ut.f),hr=et("unscopables"),pr=Array.prototype,rr=(pr[hr]===undefined&&i(pr,hr,{configurable:!0,value:Ot(null)}),function(e){pr[hr][e]=!0}),mr=Object.create?Object.create(null):{},gr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},o=be("span").classList,i=o&&o.constructor&&o.constructor.prototype,o=i===Object.prototype?undefined:i,vr=ut.f,yr=et("toStringTag"),wr=function(e,t,n){(e=e&&!n?e.prototype:e)&&!M(e,yr)&&vr(e,yr,{configurable:!0,value:t})},br=void 0,kr=et("iterator"),_r=br.values,Sr=function(e,t){if(e){if(e[kr]!==_r)try{lt(e,kr,_r)}catch(C){e[kr]=_r}if(wr(e,t,!0),gr[t])for(var n in br)if(e[n]!==br[n])try{lt(e,n,br[n])}catch(C){e[n]=br[n]}}};for(qn in gr)Sr(x[qn]&&x[qn].prototype,qn);Sr(o,"DOMTokenList");var i=void 0,Er=i.IteratorPrototype,Cr=function(){return this},Rr=function(e,t,n,r){t+=" Iterator";return e.prototype=Ot(Er,{next:st(+!r,n)}),wr(e,t,!1),mr[t]=Cr,e},Or=void 0,xr=(R({target:"Object",stat:!0},{setPrototypeOf:Or}),String,TypeError,Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return v(Fe(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(C){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(C){}}():undefined),He.PROPER),Tr=He.CONFIGURABLE,Ir=i.IteratorPrototype,Mr=i.BUGGY_SAFARI_ITERATORS,Ar=et("iterator"),Pr=function(){return this},Dr=function(e,t){return{value:e,done:t}},Lr=function(e,t,n,r,i,o,a){Rr(n,t,r);var s,u,r=function(e){if(e===i&&h)return h;if(!Mr&&e&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",c=!1,d=e.prototype,f=d[Ar]||d["@@iterator"]||i&&d[i],h=!Mr&&f||r(i),p="Array"===t&&d.entries||f;if(p&&(e=fr(p.call(new e)))!==Object.prototype&&e.next&&(fr(e)!==Ir&&(Or?Or(e,Ir):oe(e[Ar])||Jt(e,Ar,Pr)),wr(e,l,!0)),xr&&"values"===i&&f&&"values"!==f.name&&(Tr?lt(d,"name","values"):(c=!0,h=function(){return I(f,this)})),i)if(s={values:r("values"),keys:o?h:r("keys"),entries:r("entries")},a)for(u in s)!Mr&&!c&&u in d||Jt(d,u,s[u]);else R({target:t,proto:!0,forced:Mr||c},s);return d[Ar]!==h&&Jt(d,Ar,h,{name:i}),mr[t]=h,s},a=ut.f,Nr=Bt.set,Fr=Bt.getterFor("Array Iterator"),Ur=(Lr(Array,"Array",function(e,t){Nr(this,{type:"Array Iterator",target:Ve(e),index:0,kind:t})},function(){var e=Fr(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Dr(undefined,!0);switch(e.kind){case"keys":return Dr(n,!1);case"values":return Dr(t[n],!1)}return Dr([n,t[n]],!1)},"values"),mr.Arguments=mr.Array);if(rr("keys"),rr("values"),rr("entries"),f&&"values"!==Ur.name)try{a(Ur,"name",{value:"values"})}catch(X){}var jr,Br,zr=et("iterator"),Wr=([].keys&&("next"in(Ur=[].keys())?(a=fr(fr(Ur)))!==Object.prototype&&(jr=a):0),O(jr)&&!g(function(){var e={};return jr[zr].call(e)!==e})||(jr={}),oe(jr[zr])||Jt(jr,zr,function(){return this}),i.IteratorPrototype),Ur=et("toStringTag"),Hr=TypeError,qr=x.Iterator,a=!oe(qr)||qr.prototype!==Wr||!g(function(){qr({})}),Vr=function(){if(dr(this,Wr),fr(this)===Wr)throw new Hr("Abstract class Iterator not directly constructable")},Gr=function(t,e){f?Wt(Wr,t,{configurable:!0,get:function(){return e},set:function(e){if(S(this),this===Wr)throw new Hr("You can't redefine this property");M(this,t)?this[t]=e:Kn(this,t,e)}}):Wr[t]=e},Jr=(M(Wr,Ur)||Gr(Ur,"Iterator"),!a&&M(Wr,"constructor")&&Wr.constructor!==Object||Gr("constructor",Vr),Vr.prototype=Wr,R({global:!0,constructor:!0,forced:a},{Iterator:Vr}),e(e.bind)),Kr=function(e,t){return Fe(e),t===undefined?e:Ee?Jr(e,t):function(){return e.apply(t,arguments)}},$r=et("iterator"),Zr=Array.prototype,Yr=function(e){return e!==undefined&&(mr.Array===e||Zr[$r]===e)},Xr=et("iterator"),Qr=Array.prototype,ei=function(e){if(!ae(e))return nn(e,Xr)||nn(e,"@@iterator")||("Arguments"===re(e)?Qr[Xr]:undefined)},ti=TypeError,ni=function(e,t){t=arguments.length<2?ei(e):t;if(oe(t))return S(I(t,e));throw new ti(Te(e)+" is not iterable")},ri=function(e,t,n){var r,i;S(e);try{if(!(r=nn(e,"return"))){if("throw"===t)throw n;return n}r=I(r,e)}catch(X){i=!0,r=X}if("throw"===t)throw n;if(i)throw r;return S(r),n},ii=TypeError,oi=function(e,t){this.stopped=e,this.result=t},ai=oi.prototype,si=function(e,t,n){var r,i,o,a,s,u=n&&n.that,l=!(!n||!n.AS_ENTRIES),c=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),h=Kr(t,u),p=function(e){var t=r;return r=undefined,t&&ri(t,"normal"),new oi(!0,e)},m=function(e){return l?(S(e),f?h(e[0],e[1],p):h(e[0],e[1])):f?h(e,p):h(e)};if(c)r=e.iterator;else if(d)r=e;else{if(!(n=ei(e)))throw new ii(Te(e)+" is not iterable");if(Yr(n)){for(i=0,o=me(e);i<o;i++)if((a=m(e[i]))&&Oe(ai,a))return a;return new oi(!1)}r=ni(e,n)}for(s=(c?e:r).next;!(g=I(s,r)).done;){var g=g.value;try{a=m(g)}catch(X){if(!r)throw X;ri(r,"throw",X)}if("object"==T(a)&&a&&Oe(ai,a))return a}return new oi(!1)},ui=function(e){return{iterator:e,next:e.next,done:!1}},Ur=function(e,t){var n=x.Iterator,n=n&&n.prototype,e=n&&n[e],r=!1;if(e)try{e.call({next:function(){return{done:!0}},"return":function(){r=!0}},-1)}catch(X){X instanceof t||(r=!1)}if(!r)return e},li=Ur("forEach",TypeError),ci=(R({target:"Iterator",proto:!0,real:!0,forced:li},{forEach:function(t){S(this);try{Fe(t)}catch(X){ri(this,"throw",X)}if(li)return I(li,this,t);var e=ui(this),n=0;si(e,function(e){t(e,n++)},{IS_RECORD:!0})}}),void 0),di=function(e){if(e&&e.forEach!==ci)try{lt(e,"forEach",ci)}catch(X){e.forEach=ci}};for(Br in gr)gr[Br]&&di(x[Br]&&x[Br].prototype);di(o);var fi,hi=et("species"),pi=Array,mi=function(e,t){return new((n=ee(e=e)&&(n=e.constructor,Mn(n)&&(n===pi||ee(n.prototype))||O(n)&&null===(n=n[hi]))?undefined:n)===undefined?pi:n)(0===t?0:t);var n},Gr=function(f){var h=1===f,p=2===f,m=3===f,g=4===f,v=6===f,y=7===f,w=5===f||v;return function(e,t,n){for(var r,i,o=ce(e),a=qe(o),s=me(a),u=Kr(t,n),l=0,c=0,d=h?mi(e,s):p||y?mi(e,0):undefined;l<s;l++)if((w||l in a)&&(i=u(r=a[l],l,o),f))if(h)Kn(d,l,i);else if(i)switch(f){case 3:return!0;case 5:return r;case 6:return l;case 2:Kn(d,c++,r)}else switch(f){case 4:return!1;case 7:Kn(d,c++,r)}return v?-1:m||g?g:d}},gi={forEach:Gr(0),map:Gr(1),filter:Gr(2),some:Gr(3),every:Gr(4),find:Gr(5),findIndex:Gr(6),filterReject:Gr(7)},vi=(We("forEach"),R({target:"Array",proto:!0,forced:[].forEach!==ci},{forEach:ci}),x.String),a=!!Object.getOwnPropertySymbols&&!g(function(){var e=Symbol("symbol detection");return!vi(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gn&&Gn<41}),Vr={}.propertyIsEnumerable,yi=Object.getOwnPropertyDescriptor,wi={f:yi&&!Vr.call({1:2},1)?function(e){e=yi(this,e);return!!e&&e.enumerable}:Vr},bi={f:et},ki=x,_i=ut.f,Si=function(e){var t=ki.Symbol||(ki.Symbol={});M(t,e)||_i(t,e,{value:bi.f(e)})},Ei=void 0,Ci=gi.forEach,Ri=n("hidden"),Oi=Bt.set,xi=Bt.getterFor("Symbol"),Ti=Object.prototype,o=x.Symbol,Ii=o&&o.prototype,Mi=x.RangeError,Ai=x.TypeError,Gr=x.QObject,Pi=sr.f,Di=ut.f,Li=nr.f,Ni=wi.f,Fi=v([].push),Ui=ke("symbols"),ji=ke("op-symbols"),Vr=ke("wks"),Bi=!Gr||!Gr.prototype||!Gr.prototype.findChild,zi=function(e,t,n){var r=Pi(Ti,t);return r&&delete Ti[t],Di(e,t,n),r&&e!==Ti&&Di(Ti,t,r),e},Wi=f&&g(function(){return 7!==Ot(Di({},"a",{get:function(){return Di(this,"a",{value:7}).a}})).a})?zi:Di,Hi=function(e,t){var n=Ui[e]=Ot(Ii);return Oi(n,{type:"Symbol",tag:e,description:t}),f||(n.description=t),n},qi=function(e,t,n){e===Ti&&qi(ji,t,n),S(e);t=Ei(t);return S(n),(M(Ui,t)?(("enumerable"in n?!n.enumerable:!M(e,t)||M(e,Ri)&&e[Ri][t])?(M(e,Ri)||Di(e,Ri,st(1,Ot(null))),e[Ri][t]=!0):(M(e,Ri)&&e[Ri][t]&&(e[Ri][t]=!1),n=Ot(n,{enumerable:st(0,!1)})),Wi):Di)(e,t,n)},Vi=function(t,e){S(t);var n=Ve(e),e=dt(n).concat(Ji(n));return Ci(e,function(e){f&&!I(Gi,n,e)||qi(t,e,n[e])}),t},Gi=function(e){var e=Ei(e),t=I(Ni,this,e);return!(this===Ti&&M(Ui,e)&&!M(ji,e))&&(!(t||!M(this,e)||!M(Ui,e)||M(this,Ri)&&this[Ri][e])||t)},n=function(e,t){var n,e=Ve(e),t=Ei(t);if(e!==Ti||!M(Ui,t)||M(ji,t))return!(n=Pi(e,t))||!M(Ui,t)||M(e,Ri)&&e[Ri][t]||(n.enumerable=!0),n},Gr=function(e){var e=Li(Ve(e)),t=[];return Ci(e,function(e){M(Ui,e)||M(wt,e)||Fi(t,e)}),t},Ji=function(e){var t=e===Ti,e=Li(t?ji:Ve(e)),n=[];return Ci(e,function(e){!M(Ui,e)||t&&!M(Ti,e)||Fi(n,Ui[e])}),n},Gr=(a||(Ii=(o=function(){if(Oe(Ii,this))throw new Ai("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?E(arguments[0]):undefined,n=Nt(e),r=function(e){var t=this===undefined?x:this,e=(t===Ti&&I(r,ji,e),M(t,Ri)&&M(t[Ri],n)&&(t[Ri][n]=!1),st(1,e));try{Wi(t,n,e)}catch(X){if(!(X instanceof Mi))throw X;zi(t,n,e)}};return f&&Bi&&Wi(Ti,n,{configurable:!0,set:r}),Hi(n,e)}).prototype,Jt(Ii,"toString",function(){return xi(this).tag}),Jt(o,"withoutSetter",function(e){return Hi(Nt(e),e)}),wi.f=Gi,ut.f=qi,ct.f=Vi,sr.f=n,Qn.f=nr.f=Gr,ir.f=Ji,bi.f=function(e){return Hi(et(e),e)},f&&(Wt(Ii,"description",{configurable:!0,get:function(){return xi(this).description}}),Jt(Ti,"propertyIsEnumerable",Gi,{unsafe:!0}))),R({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:o}),Ci(dt(Vr),function(e){Si(e)}),R({target:"Symbol",stat:!0,forced:!a},{useSetter:function(){Bi=!0},useSimple:function(){Bi=!1}}),R({target:"Object",stat:!0,forced:!a,sham:!f},{create:function(e,t){return t===undefined?Ot(e):Vi(Ot(e),t)},defineProperty:qi,defineProperties:Vi,getOwnPropertyDescriptor:n}),R({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:Gr}),Vr=(Vr=Re("Symbol"))&&Vr.prototype,fi=Vr&&Vr.valueOf,n=et("toPrimitive"),Vr&&!Vr[n]&&Jt(Vr,n,function(e){return I(fi,this)},{arity:1}),wr(o,"Symbol"),wt[Ri]=!0,a&&!!Symbol["for"]&&!!Symbol.keyFor),Ki=ke("string-to-symbol-registry"),$i=ke("symbol-to-string-registry"),Zi=(R({target:"Symbol",stat:!0,forced:!Gr},{"for":function(e){var t,e=E(e);return M(Ki,e)?Ki[e]:(t=Re("Symbol")(e),Ki[e]=t,$i[t]=e,t)}}),void 0),Yi=ke("symbol-to-string-registry"),Xi=(R({target:"Symbol",stat:!0,forced:!Gr},{keyFor:function(e){if(!Zi(e))throw new TypeError(Te(e)+" is not a symbol");if(M(Yi,e))return Yi[e]}}),et("match")),Qi=function(e){var t;return O(e)&&((t=e[Xi])!==undefined?!!t:"RegExp"===re(e))},eo=TypeError,to=function(e){if(Qi(e))throw new eo("The method doesn't accept regular expressions");return e},no=et("match"),Vr=function(e){var t=/./;try{"/./"[e](t)}catch(_){try{return t[no]=!1,"/./"[e](t)}catch(C){}}return!1},ro=v("".indexOf),io=(R({target:"String",proto:!0,forced:!Vr("includes")},{includes:function(e){return!!~ro(E(ue(this)),E(to(e)),1<arguments.length?arguments[1]:undefined)}}),t.includes),n=g(function(){return!Array(1).includes()}),o=g(function(){return[,1].includes(undefined,1)}),oo=(R({target:"Array",proto:!0,forced:n||o},{includes:function(e){return io(this,e,1<arguments.length?arguments[1]:undefined)}}),rr("includes"),RangeError),ao=Math.floor,Gr=function(e){var t=E(ue(this)),n="",r=fe(e);if(r<0||r===Infinity)throw new oo("Wrong number of repetitions");for(;0<r;(r=ao(r/2))&&(t+=t))r%2&&(n+=t);return n},so=v(Gr),uo=v("".slice),lo=Math.ceil,n=function(i){return function(e,t,n){var e=E(ue(e)),t=pe(t),r=e.length;return t<=r||""===(n=n===undefined?" ":E(n))?e:((r=so(n,lo((t=t-r)/n.length))).length>t&&(r=uo(r,0,t)),i?e+r:r+e)}},co=[n(!1),n(!0)][0],fo=RangeError,ho=isFinite,po=Math.abs,o=Date.prototype,mo=o.toISOString,go=v(o.getTime),vo=v(o.getUTCDate),yo=v(o.getUTCFullYear),wo=v(o.getUTCHours),bo=v(o.getUTCMilliseconds),ko=v(o.getUTCMinutes),_o=v(o.getUTCMonth),So=v(o.getUTCSeconds),n=g(function(){return"0385-07-25T07:06:39.999Z"!==mo.call(new Date(-50000000000001))})||!g(function(){mo.call(new Date(NaN))})?function(){var e,t,n;if(ho(go(this)))return e=yo(this),t=bo(this),(n=e<0?"-":9999<e?"+":"")+co(po(e),n?6:4,0)+"-"+co(_o(this)+1,2,0)+"-"+co(vo(this),2,0)+"T"+co(wo(this),2,0)+":"+co(ko(this),2,0)+":"+co(So(this),2,0)+"."+co(t,3,0)+"Z";throw new fo("Invalid time value")}:mo,Eo=(R({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n}),void 0),o=g(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})});R({target:"Date",proto:!0,forced:o},{toJSON:function(e){var t=ce(this),n=Eo(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var Co,Ro=Bt.get,Oo=v(1.1.valueOf),xo="\t\n\x0B\f\r \u2028\u2029\ufeff",To=v("".replace),Io=RegExp("^["+xo+"]+"),Mo=RegExp("(^|[^"+xo+"])["+xo+"]+$"),n=function(t){return function(e){e=E(ue(e));return 1&t&&(e=To(e,Io,"")),e=2&t?To(e,Mo,"$1"):e}},o={start:n(1),end:n(2),trim:n(3)},Ao=He.PROPER,Po=o.trim,Do=(R({target:"String",proto:!0,forced:(Co="trim",g(function(){return!!xo[Co]()||"
"!=="
"[Co]()||Ao&&xo[Co].name!==Co}))},{trim:function(){return Po(this)}}),o.trim),Lo=x.parseInt,n=x.Symbol,No=n&&n.iterator,Fo=/^[+-]?0x/i,Uo=v(Fo.exec),n=8!==Lo(xo+"08")||22!==Lo(xo+"0x16")||No&&!g(function(){Lo(Object(No))})?function(e,t){e=Do(E(e));return Lo(e,t>>>0||(Uo(Fo,e)?16:10))}:Lo,jo=(R({global:!0,forced:parseInt!==n},{parseInt:n}),SyntaxError),Bo=parseInt,zo=String.fromCharCode,Wo=v("".charAt),Ho=v("".slice),qo=v(/./.exec),Vo={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Go=/^[\da-f]{4}$/i,Jo=/^[\u0000-\u001F]$/,Ko=void 0,$o=Ko.ArrayBuffer,Zo=Ko.DataView,n=Zo.prototype,Yo=e($o.prototype.slice),Xo=e(n.getUint8),Qo=e(n.setUint8),n=g(function(){return!new $o(2).slice(1,undefined).byteLength}),n=(R({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:n},{slice:function(e,t){if(Yo&&t===undefined)return Yo(S(this),e);for(var n=S(this).byteLength,r=pt(e,n),i=pt(t===undefined?n:t,n),e=new $o(pe(i-r)),o=new Zo(this),a=new Zo(e),s=0;r<i;)Qo(a,s++,Xo(o,r++));return e}}),void 0),ea=(R({global:!0,constructor:!0,forced:!0},{DataView:Ko.DataView}),function(e,t,n){for(var r in t)Jt(e,r,t[r],n);return e}),ta=RangeError,na=function(e){if(e===undefined)return 0;var e=fe(e),t=pe(e);if(e!==t)throw new ta("Wrong length or index");return t},ra=(R({target:"Math",stat:!0},{fround:void 0}),R({target:"Math",stat:!0},{sign:void 0}),Math.sign,Array),ia=Math.abs,oa=Math.pow,aa=Math.floor,sa=Math.log,ua=Math.LN2,la=void 0,ca=(R({target:"Array",proto:!0},{fill:la}),rr("fill"),function(e,t,n){return Or&&oe(t=t.constructor)&&t!==n&&O(t=t.prototype)&&t!==n.prototype&&Or(e,t),e}),da=Bt.getterFor("ArrayBuffer"),fa=Bt.getterFor("DataView"),ha=Bt.set,s=x.ArrayBuffer,pa=s&&s.prototype,u=x.DataView,ma=u&&u.prototype,ga=(Object.prototype,x.Array),va=x.RangeError,ya=v(la),wa=v([].reverse),ba=function(e,t,n){var r,i,o,a=ra(n),s=8*n-t-1,n=(1<<s)-1,u=n>>1,l=23===t?oa(2,-24)-oa(2,-77):0,c=e<0||0===e&&1/e<0?1:0,d=0;for((e=ia(e))!=e||e===Infinity?(i=e!=e?1:0,r=n):(r=aa(sa(e)/ua),e*(o=oa(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?l/o:l*oa(2,1-u))*o&&(r++,o/=2),n<=r+u?(i=0,r=n):1<=r+u?(i=(e*o-1)*oa(2,t),r+=u):(i=e*oa(2,u-1)*oa(2,t),r=0));8<=t;)a[d++]=255&i,i/=256,t-=8;for(r=r<<t|i,s+=t;0<s;)a[d++]=255&r,r/=256,s-=8;return a[d-1]|=128*c,a},ka=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=r-1,i=e[u--],l=127&i;for(i>>=7;0<s;)l=256*l+e[u--],s-=8;for(n=l&(1<<-s)-1,l>>=-s,s+=t;0<s;)n=256*n+e[u--],s-=8;if(0===l)l=1-a;else{if(l===o)return n?NaN:i?-Infinity:Infinity;n+=oa(2,t),l-=a}return(i?-1:1)*n*oa(2,l-t)},_a=function(e){return[255&e]},Sa=function(e){return[255&e,e>>8&255]},Ea=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Ca=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Ra=function(e){return ba((void 0)(e),23,4)},Oa=function(e){return ba(e,52,8)},l=function(e,t,n){Wt(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},xa=function(e,t,n,r){e=fa(e),n=na(n),r=!!r;if(n+t>e.byteLength)throw new va("Wrong index");n+=e.byteOffset,e=$n(e.bytes,n,n+t);return r?e:wa(e)},Ta=function(e,t,n,r,i,o){var e=fa(e),n=na(n),a=r(+i),s=!!o;if(n+t>e.byteLength)throw new va("Wrong index");for(var u=e.bytes,l=n+e.byteOffset,c=0;c<t;c++)u[l+c]=a[s?c:t-c-1]},pa=(s=function(e){dr(this,pa);e=na(e);ha(this,{type:"ArrayBuffer",bytes:ya(ga(e),0),byteLength:e}),f||(this.byteLength=e,this.detached=!1)}).prototype,ma=(u=function(e,t,n){dr(this,ma),dr(e,pa);var r=da(e),i=r.byteLength,t=fe(t);if(t<0||i<t)throw new va("Wrong offset");if(t+(n=n===undefined?i-t:na(n))>i)throw new va("Wrong length");ha(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:t,bytes:r.bytes}),f||(this.buffer=e,this.byteLength=n,this.byteOffset=t)}).prototype,Ia=(f&&(l(s,"byteLength",da),l(u,"buffer",fa),l(u,"byteLength",fa),l(u,"byteOffset",fa)),ea(ma,{getInt8:function(e){return xa(this,1,e)[0]<<24>>24},getUint8:function(e){return xa(this,1,e)[0]},getInt16:function(e){e=xa(this,2,e,1<arguments.length&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=xa(this,2,e,1<arguments.length&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(e){return Ca(xa(this,4,e,1<arguments.length&&arguments[1]))},getUint32:function(e){return Ca(xa(this,4,e,1<arguments.length&&arguments[1]))>>>0},getFloat32:function(e){return ka(xa(this,4,e,1<arguments.length&&arguments[1]),23)},getFloat64:function(e){return ka(xa(this,8,e,1<arguments.length&&arguments[1]),52)},setInt8:function(e,t){Ta(this,1,e,_a,t)},setUint8:function(e,t){Ta(this,1,e,_a,t)},setInt16:function(e,t){Ta(this,2,e,Sa,t,2<arguments.length&&arguments[2])},setUint16:function(e,t){Ta(this,2,e,Sa,t,2<arguments.length&&arguments[2])},setInt32:function(e,t){Ta(this,4,e,Ea,t,2<arguments.length&&arguments[2])},setUint32:function(e,t){Ta(this,4,e,Ea,t,2<arguments.length&&arguments[2])},setFloat32:function(e,t){Ta(this,4,e,Ra,t,2<arguments.length&&arguments[2])},setFloat64:function(e,t){Ta(this,8,e,Oa,t,2<arguments.length&&arguments[2])}}),wr(s,"ArrayBuffer"),wr(u,"DataView"),et("species")),Ma=function(e){e=Re(e);f&&e&&!e[Ia]&&Wt(e,Ia,{configurable:!0,get:function(){return this}})},l=Ko.ArrayBuffer,s=x.ArrayBuffer,Aa=(R({global:!0,constructor:!0,forced:s!==l},{ArrayBuffer:l}),Ma("ArrayBuffer"),g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})})),Pa=Object.isExtensible,Da=g(function(){Pa(1)})||Aa?function(e){return!!O(e)&&(!Aa||"ArrayBuffer"!==re(e))&&(!Pa||Pa(e))}:Pa,La=(R({target:"Object",stat:!0,forced:Object.isExtensible!==Da},{isExtensible:Da}),TypeError),Na=function(e,t){if(!delete e[t])throw new La("Cannot delete property "+Te(t)+" of "+Te(e))},u=r("splice"),Fa=Math.max,Ua=Math.min,ja=(R({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,i,o,a,s,u=ce(this),l=me(u),c=pt(e,l),e=arguments.length;for(0===e?n=r=0:r=1===e?(n=0,l-c):(n=e-2,Ua(Fa(fe(t),0),l-c)),ve(l+n-r),i=mi(u,r),o=0;o<r;o++)(a=c+o)in u&&Kn(i,o,u[a]);if(Dn(i,r),n<r){for(o=c;o<l-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:Na(u,s);for(o=l;l-r+n<o;o--)Na(u,o-1)}else if(r<n)for(o=l-r;c<o;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:Na(u,s);for(o=0;o<n;o++)u[o+c]=arguments[o+2];return Dn(u,l-r+n),i}}),Je(function(e){var t=ut.f,a=Nt("meta"),n=0,r=function(e){t(e,a,{value:{objectID:"O"+n++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},0;var i=Qn.f,o=v([].splice),e={};e[a]=1,i(e).length&&(Qn.f=function(e){for(var t=i(e),n=0,r=t.length;n<r;n++)if(t[n]===a){o(t,n,1);break}return t},R({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nr.f}))},fastKey:function(e,t){if(!O(e))return"symbol"==T(e)?e:("string"==typeof e?"S":"P")+e;if(!M(e,a)){if(!Da(e))return"F";if(!t)return"E";r(e)}return e[a].objectID},getWeakData:function(e,t){if(!M(e,a)){if(!Da(e))return!0;if(!t)return!1;r(e)}return e[a].weakData},onFreeze:function(e){return e}};wt[a]=!0})),Ba=ja.onFreeze,za=Object.preventExtensions,s=g(function(){za(1)}),Wa=(R({target:"Object",stat:!0,forced:s,sham:!0},{preventExtensions:function(e){return za&&O(e)?za(Ba(e)):e}}),g(function(){return Object.isExtensible(Object.preventExtensions({}))}),ja.onFreeze),Ha=Object.freeze,l=g(function(){Ha(1)}),qa=(R({target:"Object",stat:!0,forced:l,sham:!0},{freeze:function(e){return Ha&&O(e)?Ha(Wa(e)):e}}),!g(function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)})),Va=t.includes,Ga=String,Ja=TypeError,Ka=Re("JSON","stringify"),u=Re("BigInt"),$a=v("".valueOf),Za=v((!0).valueOf),Ya=u&&v(u.prototype.valueOf),Xa=v(/./.exec),Qa=v("".charAt),es=v("".charCodeAt),ts=v("".replace),ns=v("".slice),rs=v([].push),is=v([].pop),os=v(1.1.toString),as=/[\uD800-\uDFFF]/g,ss=/^[\uD800-\uDBFF]$/,us=/^[\uDC00-\uDFFF]$/,ls=/^\d+$/,cs=Nt(),ds=Nt(),fs=Nt(),hs=cs.length,ps=ds.length,s=!a||g(function(){var e=Re("Symbol")("stringify detection");return"[null]"!==Ka([e])||"{}"!==Ka({a:e})||"{}"!==Ka(Object(e))}),ms=g(function(){return'"\\udf06\\ud834"'!==Ka("\udf06\ud834")||'"\\udead"'!==Ka("\udead")}),gs=qa?Re("JSON","isRawJSON"):function(e){return!!O(e)&&!!(e=Ro(e))&&"RawJSON"===e.type},vs=s?function(e,n,t){return Ka(e,function(e,t){e=I(n,this,e,t);if(!Zi(e))return e},t)}:Ka,ys=function(e,t,n){var r=Qa(n,t-1),n=Qa(n,t+1);return Xa(ss,e)&&!Xa(us,n)||Xa(us,e)&&!Xa(ss,r)?"\\u"+os(es(e,0),16):e},ws=function(e,t){try{return e(t),!0}catch(X){return!1}},l=(Ka&&R({target:"JSON",stat:!0,arity:3,forced:s||ms||!qa},{stringify:function(e,t,n){var r,i=oe(t)?t:undefined,o=i?undefined:function(e){if(ee(e)){for(var t=e.length,n=[],r=Ot(null),i=0;i<t;i++){var o,a=e[i];if("string"==typeof a)o=a;else{if("number"!=typeof a&&"Number"!==re(a)&&"String"!==re(a))continue;o=E(a)}M(r,o)||(r[o]=!0,rs(n,o))}return n}}(t),a=o&&function(e){for(var t=0,n=e.length;t<n;t++)if(Xa(ls,e[t]))return ds;return""}(o),s=[],u=[],l=[],c=!1,d=!0,f=vs(e,function(e,t){if(e=Ga(e),o){if(e===fs)return is(u),void(r=is(l));if(d)d=!1;else if(this!==r&&!ee(this)&&!Va(o,e))return}else i&&(t=I(i,this,e,t));if(gs(t))return qa?t:(c=!0,cs+(rs(s,t.rawJSON)-1));if(o&&function(e){if(!O(e)||oe(e)||ee(e))return!1;try{return!("Number"===(n=re(t=e))&&ws(Oo,t)||"String"===n&&ws($a,t)||"Boolean"===n&&ws(Za,t)||Ya&&"BigInt"===n&&ws(Ya,t))}catch(X){return!0}var t,n}(t)){if(Va(u,t))throw new Ja("Converting circular structure to JSON");e=function(e,t,n){for(var r=Ot(null),i=0,o=t.length;i<o;i++){var a=t[i];r[n+a]=function(n,r){return{toJSON:function(){var e,t=n[r];return t=(O(t)||"bigint"==typeof t)&&(e=t.toJSON,oe(e))?I(e,t,r):t}}}(e,a)}return r[fs]=null,r}(t,o,a);return rs(u,t),rs(l,r),a&&(c=!0),r=e}return t},n);if("string"!=typeof f)return f;if(ms&&(f=ts(f,as,ys)),!c)return f;for(var h="",p=f.length,m=0;m<p;m++){var g,v,y=Qa(f,m);'"'===y?(g=function(e,t){for(var n=!0,r="";t<e.length;){var i=Wo(e,t);if("\\"===i){var o=Ho(e,t,t+2);if(M(Vo,o))r+=Vo[o],t+=2;else{if("\\u"!==o)throw new jo('Unknown escape sequence: "'+o+'"');o=Ho(e,t+=2,t+4);if(!qo(Go,o))throw new jo("Bad Unicode escape at: "+t);r+=zo(Bo(o,16)),t+=4}}else{if('"'===i){n=!1,t++;break}if(qo(Jo,i))throw new jo("Bad control character in string literal at: "+t);r+=i,t++}}if(n)throw new jo("Unterminated string at: "+t);return{value:r,end:t}}(f,++m).end-1,v=ns(f,m,g),ns(v,0,hs)===cs?h+=s[ns(v,hs)]:ns(v,0,ps)===ds?h+='"'+ns(v,ps)+'"':h+='"'+v+'"',m=g):h+=y}return h}}),!a||g(function(){ir.f(1)})),bs=(R({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(e){var t=ir.f;return t?t(ce(e)):[]}}),Si("iterator"),Ht.charAt),ks=Bt.set,_s=Bt.getterFor("String Iterator"),u=(Lr(String,"String",function(e){ks(this,{type:"String Iterator",string:E(e),index:0})},function(){var e=_s(this),t=e.string,n=e.index;return n>=t.length?Dr(undefined,!0):(t=bs(t,n),e.index+=t.length,Dr(t,!1))}),a&&!Symbol.sham&&"symbol"==T(Symbol.iterator)),s=(Object,TypeError,TypeError,et("toPrimitive"),TypeError,Object.defineProperty,ut.f),Ss=(R({target:"Object",stat:!0,forced:Object.defineProperty!==s,sham:!f},{defineProperty:s}),g(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),et("isConcatSpreadable")),l=51<=Gn||!g(function(){var e=[];return e[Ss]=!1,e.concat()[0]!==e}),a=!l||!r("concat"),Es=(R({target:"Array",proto:!0,arity:1,forced:a},{concat:function(e){for(var t,n,r,i,o,a=ce(this),s=mi(a,0),u=0,l=-1,c=arguments.length;l<c;l++)if(i=r=-1===l?a:arguments[l],o=void 0,!O(i)||((o=i[Ss])!==undefined?!o:!ee(i)))ve(u+1),Kn(s,u++,r);else for(n=me(r),ve(u+n),t=0;t<n;t++,u++)t in r&&Kn(s,u,r[t]);return Dn(s,u),s}}),Function),Cs=v([].concat),Rs=v([].join),Os={},xs=Ee?Es.bind:function(t){var n=Fe(this),e=n.prototype,r=$n(arguments,1),i=function(){var e=Cs(r,$n(arguments));return this instanceof i?function(e,t,n){if(!M(Os,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";Os[t]=Es("C,a","return new C("+Rs(r,",")+")")}return Os[t](e,n)}(n,e.length,e):n.apply(t,e)};return O(e)&&(i.prototype=e),i},s=(R({target:"Function",proto:!0,forced:Function.bind!==xs},{bind:xs}),Function.prototype),l=s.call,a=(Ee&&s.bind.bind(l,l),Date.prototype),Ts=v(a.toString),Is=v(a.getTime),l=("Invalid Date"!==String(new Date(NaN))&&Jt(a,"toString",function(){var e=Is(this);return e==e?Ts(this):"Invalid Date"}),He.PROPER),s=RegExp.prototype,Ms=s.toString,a=g(function(){return"/a/b"!==Ms.call({source:"a",flags:"b"})}),l=l&&"toString"!==Ms.name,As=((a||l)&&Jt(s,"toString",function(){var e=S(this);return"/"+E(e.source)+"/"+E(pn(e))},{unsafe:!0}),x.RegExp),a=g(function(){var e=As("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),l=a||g(function(){return!As("a","y").sticky}),s={BROKEN_CARET:a||g(function(){var e=As("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:l,UNSUPPORTED_Y:a},Ps=Bt.get,Ds=RegExp.prototype,Ls=TypeError,Ns=(f&&s.MISSED_STICKY&&Wt(Ds,"sticky",{configurable:!0,get:function(){if(this!==Ds){if("RegExp"===re(this))return!!Ps(this).sticky;throw new Ls("Incompatible receiver, RegExp required")}}}),/#|\.prototype\./),l=function(e,t){e=Us[Fs(e)];return e===Bs||e!==js&&(oe(t)?g(t):!!t)},Fs=l.normalize=function(e){return String(e).replace(Ns,".").toLowerCase()},Us=l.data={},js=l.NATIVE="N",Bs=l.POLYFILL="P",zs=l,Ws=ut.f,Hs=x.RegExp,qs=g(function(){var e=Hs(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),Vs=x.RegExp,Gs=g(function(){var e=Vs("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),a=Qn.f,Js=Bt.enforce,Ks=et("match"),$s=x.RegExp,Zs=$s.prototype,Ys=x.SyntaxError,Xs=v(Zs.exec),Qs=v("".charAt),eu=v("".replace),tu=v("".indexOf),nu=v("".slice),ru=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,iu=/a/g,ou=/a/g,l=new $s(iu)!==iu,au=s.MISSED_STICKY,su=s.UNSUPPORTED_Y,l=f&&(!l||au||qs||Gs||g(function(){return ou[Ks]=!1,$s(iu)!==iu||$s(ou)===ou||"/a/i"!==String($s(iu,"i"))}));if(zs("RegExp",l)){for(var uu=function(e,t){var n,r,i=Oe(Zs,this),o=Qi(e),a=t===undefined,s=[],u=e;if(!i&&o&&a&&e.constructor===uu)return e;if((o||Oe(Zs,e))&&(e=e.source,a)&&(t=pn(u)),e=e===undefined?"":E(e),t=t===undefined?"":E(t),u=e,o=t=qs&&"dotAll"in iu&&(n=!!t&&-1<tu(t,"s"))?eu(t,/s/g,""):t,au&&"sticky"in iu&&(r=!!t&&-1<tu(t,"y"))&&su&&(t=eu(t,/y/g,"")),Gs&&(e=(a=function(e){for(var t,n=e.length,r=0,i="",o=[],a=Ot(null),s=!1,u=!1,l=0,c="";r<n;r++){if("\\"===(t=Qs(e,r))){if(t+=Qs(e,++r),!u&&"\\"===Qs(t,1)){i+="\\x5c";continue}}else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:i+=t,Xs(ru,nu(e,r+1))?(r+=2,u=!0,l++):"?"!==Qs(e,r+1)&&l++;continue;case">"===t&&u:if(""===c||M(a,c))throw new Ys("Invalid capture group name");a[c]=!0,u=!(o[o.length]=[c,l]),c="";continue}u?c+=t:i+=t}for(var d=0;d<o.length;d++)for(var f="\\k<"+o[d][0]+">",h="\\"+o[d][1];-1<tu(i,f);)i=eu(i,f,h);return[i,o]}(e))[0],s=a[1]),a=ca($s(e,t),i?this:Zs,uu),(n||r||s.length)&&(t=Js(a),n&&(t.dotAll=!0,t.raw=uu(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<n;r++)"\\"!==(t=Qs(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+Qs(e,++r);return i}(e),o)),r&&(t.sticky=!0),s.length)&&(t.groups=s),e!==u)try{lt(a,"source",""===u?"(?:)":u)}catch(X){}return a},lu=a($s),cu=0;lu.length>cu;)!function(e,t,n){n in e||Ws(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}(uu,$s,lu[cu++]);(Zs.constructor=uu).prototype=Zs,Jt(x,"RegExp",uu,{constructor:!0})}Ma("RegExp");ke("native-string-replace",String.prototype.replace);var du=RegExp.prototype.exec,fu=(v("".charAt),v("".indexOf),v("".replace),v("".slice),l=/b*/g,I(du,a=/a/,"a"),I(du,l,"a"),/()??/.exec("")[1],undefined,R({target:"RegExp",proto:!0,forced:/./.exec!==Kt},{exec:Kt}),TypeError),hu=function(e){if(Mn(e))return e;throw new fu(Te(e)+" is not a constructor")},pu=et("species"),mu=function(e,t){var e=S(e).constructor;return e===undefined||ae(e=S(e)[pu])?t:hu(e)},gu=s.UNSUPPORTED_Y,vu=Math.min,yu=v([].push),wu=v("".slice),bu=v("".indexOf),a=!g(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),ku="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length,_u=(Ut("split",function(i,p,m){var g="0".split(undefined,0).length?function(e,t){return e===undefined&&0===t?[]:I(p,this,e,t)}:p;return[function(e,t){var n=ue(this),r=O(e)?nn(e,i):undefined;return r?I(r,e,n,t):I(g,E(n),e,t)},function(e,t){var n=S(this),r=E(e);if(!ku){e=m(g,n,r,t,g!==p);if(e.done)return e.value}var e=mu(n,RegExp),i=E(pn(n)),o=!!~bu(i,"u")||!!~bu(i,"v"),a=(gu?~bu(i,"g")||(i+="g"):~bu(i,"y")||(i+="y"),new e(gu?"^(?:"+n.source+")":n,i)),s=t===undefined?4294967295:t>>>0;if(0==s)return[];if(0===r.length)return null===gn(a,r)?[r]:[];for(var u=0,l=0,c=[];l<r.length;){a.lastIndex=gu?0:l;var d,f=gn(a,gu?wu(r,l):r);if(null===f||(d=vu(pe(a.lastIndex+(gu?l:0)),r.length))===u)l=tn(r,l,o);else{if(yu(c,wu(r,u,l)),c.length===s)return c;for(var h=1;h<=f.length-1;h++)if(yu(c,f[h]),c.length===s)return c;l=u=d}}return yu(c,wu(r,u)),c}]},ku||!a,gu),Object),Su=(v("".split),g(function(){return!_u("z").propertyIsEnumerable(0)}),sr.f),l=!f||g(function(){Su(1)}),s=(R({target:"Object",stat:!0,forced:l,sham:!f},{getOwnPropertyDescriptor:function(e,t){return Su(Ve(e),t)}}),Object.getOwnPropertyDescriptor,sr.f,R({global:!0,forced:x.globalThis!==x},{globalThis:x}),function(e){return e&&e.Math===Math&&e}),a=(s("object"==("undefined"==typeof globalThis?"undefined":T(globalThis))&&globalThis)||s("object"==("undefined"==typeof window?"undefined":T(window))&&window)||s("object"==("undefined"==typeof self?"undefined":T(self))&&self)||s("object"==T(je)&&je)||s("object"==T(je)&&je)||function(){return this}()||Function("return this")(),x.Symbol),l=(ke("wks"),u?a["for"]:a&&a.withoutSetter,{}),Eu=(l[et("toStringTag")]="z",String(l),Jt(Object.prototype,"toString",function(){return"[object "+it(this)+"]"},{unsafe:!0}),Ur("find",TypeError)),Cu=(R({target:"Iterator",proto:!0,real:!0,forced:Eu},{find:function(n){S(this);try{Fe(n)}catch(X){ri(this,"throw",X)}var e,r;return Eu?I(Eu,this,n):(e=ui(this),si(e,function(e,t){if(n(e,r++))return t(e)},{IS_RECORD:!(r=0),INTERRUPTED:!0}).result)}}),gi.find),Ru=!0,Ou=("find"in[]&&Array(1).find(function(){Ru=!1}),R({target:"Array",proto:!0,forced:Ru},{find:function(e){return Cu(this,e,1<arguments.length?arguments[1]:undefined)}}),rr("find"),Date),xu=v(Ou.prototype.getTime),Tu=(R({target:"Date",stat:!0},{now:function(){return xu(new Ou)}}),function(e,t,n,r){try{return r?t(S(n)[0],n[1]):t(n)}catch(X){ri(e,"throw",X)}}),Iu=Array,Mu=function(e){var t=Mn(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&(r=Kr(r,2<n?arguments[2]:undefined));var o,a,s,u,l,c,d=ce(e),n=ei(d),f=0;if(!n||this===Iu&&Yr(n))for(o=me(d),a=t?new this(o):Iu(o);f<o;f++)c=i?r(d[f],f):d[f],Kn(a,f,c);else for(a=t?new this:[],l=(u=ni(d,n)).next;!(s=I(l,u)).done;f++){try{ve(f)}catch(X){ri(u,"throw",X)}c=i?Tu(u,r,[s.value,f],!0):s.value;try{Kn(a,f,c)}catch(X){ri(u,"throw",X)}}return Dn(a,f),a},Au=void 0,je=!Au(function(e){Array.from(e)}),s=(R({target:"Array",stat:!0,forced:je},{from:Mu}),et("iterator"));try{var Pu=0,Du={next:function(){return{done:!!Pu++}},"return":function(){0}};Du[s]=function(){return this},Array.from(Du,function(){throw 2})}catch(X){}var Lu,Nu,ke=function(e,t,n){var r,i,o,a,s,u=-1!==e.indexOf("Map"),l=-1!==e.indexOf("Weak"),c=u?"set":"add",d=x[e],f=d&&d.prototype,h=d,p={},m=function(e){var n=v(f[e]);Jt(f,e,"add"===e?function(e){return n(this,0===e?0:e),this}:"delete"===e?function(e){return!(l&&!O(e))&&n(this,0===e?0:e)}:"get"===e?function(e){return l&&!O(e)?undefined:n(this,0===e?0:e)}:"has"===e?function(e){return!(l&&!O(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};return zs(e,!oe(d)||!(l||f.forEach&&!g(function(){(new d).entries().next()})))?(h=n.getConstructor(t,e,u,c),ja.enable()):zs(e,!0)&&(i=(r=new h)[c](l?{}:-0,1)!==r,o=g(function(){r.has(1)}),a=Au(function(e){new d(e)}),s=!l&&g(function(){for(var e=new d,t=5;t--;)e[c](t,t);return!e.has(-0)}),a||(((h=t(function(e,t){dr(e,f);e=ca(new d,e,h);return ae(t)||si(t,e[c],{that:e,AS_ENTRIES:u}),e})).prototype=f).constructor=h),(o||s)&&(m("delete"),m("has"),u)&&m("get"),(s||i)&&m(c),l)&&f.clear&&delete f.clear,R({global:!0,constructor:!0,forced:(p[e]=h)!==d},p),wr(h,e),l||n.setStrong(h,e,u),h},Fu=gi.findIndex,Uu=!0,ju=("findIndex"in[]&&Array(1).findIndex(function(){Uu=!1}),R({target:"Array",proto:!0,forced:Uu},{findIndex:function(e){return Fu(this,e,1<arguments.length?arguments[1]:undefined)}}),rr("findIndex"),ja.getWeakData),Bu=Bt.set,zu=Bt.getterFor,Wu=gi.find,Hu=gi.findIndex,qu=v([].splice),Vu=0,Gu=function(e){return e.frozen||(e.frozen=new Ju)},Ju=function(){this.entries=[]},Ku=function(e,t){return Wu(e.entries,function(e){return e[0]===t})},u=(Ju.prototype={get:function(e){e=Ku(this,e);if(e)return e[1]},has:function(e){return!!Ku(this,e)},set:function(e,t){var n=Ku(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(t){var e=Hu(this.entries,function(e){return e[0]===t});return~e&&qu(this.entries,e,1),!!~e}},{getConstructor:function(e,n,r,i){var e=e(function(e,t){dr(e,o),Bu(e,{type:n,id:Vu++,frozen:null}),ae(t)||si(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=zu(n),s=function(e,t,n){var r=a(e),i=ju(S(t),!0);return!0===i?Gu(r).set(t,n):i[r.id]=n,e};return ea(o,{"delete":function(e){var t,n=a(this);return!!O(e)&&(!0===(t=ju(e))?Gu(n)["delete"](e):t&&M(t,n.id)&&delete t[n.id])},has:function(e){var t,n=a(this);return!!O(e)&&(!0===(t=ju(e))?Gu(n).has(e):t&&M(t,n.id))}}),ea(o,r?{get:function(e){var t,n=a(this);if(O(e))return!0===(t=ju(e))?Gu(n).get(e):t?t[n.id]:void 0},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),e}});function $u(e){this.name="__st"+(1e9*Math.random()>>>0)+Lu+"__",null!=e&&e.forEach(this.add,this),Lu+=1}ke("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},u),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return o;i+=1}return undefined}}),window.WeakSet||(Lu=Date.now()%1e9,$u.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},$u.prototype["delete"]=function(e){return!!e[this.name]&&(e[this.name]=undefined,!0)},$u.prototype.has=function(e){return!!e[this.name]},Nu=$u,Object.defineProperty(window,"WeakSet",{value:function(e){return new Nu(e)}}));var Zu=Object.assign,Yu=Object.defineProperty,Xu=v([].concat),a=!Zu||g(function(){var e,t,n;return!(!f||1===Zu({b:1},Zu(Yu({},"a",{enumerable:!0,get:function(){Yu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},(e={})[n=Symbol("assign detection")]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==Zu({},e)[n])||"abcdefghijklmnopqrst"!==dt(Zu({},t)).join("")})?function(e,t){for(var n=ce(e),r=arguments.length,i=1,o=ir.f,a=wi.f;i<r;)for(var s,u=qe(arguments[i++]),l=o?Xu(dt(u),o(u)):dt(u),c=l.length,d=0;d<c;)s=l[d++],f&&!I(a,u,s)||(n[s]=u[s]);return n}:Zu,Qu=(R({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e===undefined||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if((r=arguments[n])!==undefined&&null!==r)for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);null!=u&&u.enumerable&&(t[s]=r[s])}return t}}),function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}),el=i.IteratorPrototype,l=et("toStringTag"),tl=Bt.set,je=function(c){var d=Bt.getterFor(c?"WrapForValidIterator":"IteratorHelper");return ea(Ot(el),{next:function(){var e=d(this);if(c)return e.nextHandler();if(e.done)return Dr(undefined,!0);try{var t=e.nextHandler();return e.done&&Qu(e),e.returnHandlerResult?t:Dr(t,e.done)}catch(X){throw e.done=!0,Qu(e),X}},"return":function(){var e,t=d(this),n=t.iterator,r=t.inner,i=t.openIters,o=t.done;if(t.done=!0,c)return(e=nn(n,"return"))?I(e,n):Dr(undefined,!0);if(Qu(t),!o){if(r)try{ri(r.iterator,"normal")}catch(X){return ri(n,"throw",X)}if(i)try{for(var a=i,s="normal",u=void 0,l=a.length-1;0<=l;l--)if(a[l]!==undefined)try{u=ri(a[l].iterator,s,u)}catch(X){s="throw",u=X}if("throw"===s)throw u}catch(X){if(n)return ri(n,"throw",X);throw X}n&&ri(n,"normal")}return Dr(undefined,!0)}})},nl=je(!0),rl=je(!1),s=(lt(rl,l,"Iterator Helper"),function(n,r,i){var e=function(e,t){t?(t.iterator=e.iterator,t.next=e.next):t=e,t.type=r?"WrapForValidIterator":"IteratorHelper",t.returnHandlerResult=!!i,t.nextHandler=n,t.counter=0,t.done=!1,tl(this,t)};return e.prototype=r?nl:rl,e}),Du=function(e,t){e="function"==typeof Iterator&&Iterator.prototype[e];if(e)try{e.call({next:null},t).next()}catch(X){return!0}},i=!Du("filter",function(){}),il=!i&&Ur("filter",TypeError),je=i||il,ol=s(function(){for(var e,t=this.iterator,n=this.predicate,r=this.next;;){if(e=S(I(r,t)),this.done=!!e.done)return;if(Tu(t,n,[e=e.value,this.counter++],!0))return e}}),al=(R({target:"Iterator",proto:!0,real:!0,forced:je},{filter:function(e){S(this);try{Fe(e)}catch(X){ri(this,"throw",X)}return il?I(il,this,e):new ol(ui(this),{predicate:e})}}),gi.filter),l=r("filter"),i=(R({target:"Array",proto:!0,forced:!l},{filter:function(e){return al(this,e,1<arguments.length?arguments[1]:undefined)}}),!Du("map",function(){})),sl=!i&&Ur("map",TypeError),je=i||sl,ul=s(function(){var e=this.iterator,t=S(I(this.next,e));if(!(this.done=!!t.done))return Tu(e,this.mapper,[t.value,this.counter++],!0)}),ll=(R({target:"Iterator",proto:!0,real:!0,forced:je},{map:function(e){S(this);try{Fe(e)}catch(X){ri(this,"throw",X)}return sl?I(sl,this,e):new ul(ui(this),{mapper:e})}}),gi.map),l=r("map"),cl=(R({target:"Array",proto:!0,forced:!l},{map:function(e){return ll(this,e,1<arguments.length?arguments[1]:undefined)}}),TypeError),dl="Reduce of empty array with no initial value",i=function(l){return function(e,t,n,r){var i=ce(e),o=qe(i),a=me(i);if(Fe(t),0===a&&n<2)throw new cl(dl);var s=l?a-1:0,u=l?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=u;break}if(s+=u,l?s<0:a<=s)throw new cl(dl)}for(;l?0<=s:s<a;s+=u)s in o&&(r=t(r,o[s],s,i));return r}},je={left:i(!1),right:i(!0)},r=function(e){return Vn.slice(0,e.length)===e},fl=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":x.Bun&&"string"==typeof Bun.version?"BUN":x.Deno&&"object"==T(Deno.version)?"DENO":"process"===re(x.process)?"NODE":x.window&&x.document?"BROWSER":"REST",hl="NODE"==fl,pl=je.left,l=!hl&&79<Gn&&Gn<83||!We("reduce"),ml=(R({target:"Array",proto:!0,forced:l},{reduce:function(e){var t=arguments.length;return pl(this,e,t,1<t?arguments[1]:undefined)}}),ja.fastKey),gl=Bt.set,vl=Bt.getterFor,i={getConstructor:function(e,n,r,i){var e=e(function(e,t){dr(e,o),gl(e,{type:n,index:Ot(null),first:null,last:null,size:0}),f||(e.size=0),ae(t)||si(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=vl(n),s=function(e,t,n){var r,i=a(e),o=u(e,t);return o?o.value=n:(i.last=o={index:r=ml(t,!0),key:t,value:n,previous:t=i.last,next:null,removed:!1},i.first||(i.first=o),t&&(t.next=o),f?i.size++:e.size++,"F"!==r&&(i.index[r]=o)),e},u=function(e,t){var n,e=a(e),r=ml(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key===t)return n};return ea(o,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=Ot(null),f?e.size=0:this.size=0},"delete":function(e){var t,n,r=a(this),e=u(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first===e&&(r.first=t),r.last===e&&(r.last=n),f?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=a(this),r=Kr(e,1<arguments.length?arguments[1]:undefined);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),ea(o,r?{get:function(e){e=u(this,e);return e&&e.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),f&&Wt(o,"size",{configurable:!0,get:function(){return a(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",i=vl(t),o=vl(r);Lr(e,t,function(e,t){gl(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Dr("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,Dr(undefined,!0))},n?"entries":"values",!n,!0),Ma(t)}},yl=(ke("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i),TypeError),r=g(function(){[].keys().reduce(function(){},undefined)}),wl=!r&&Ur("reduce",yl),bl=(R({target:"Iterator",proto:!0,real:!0,forced:r||wl},{reduce:function(t){S(this);try{Fe(t)}catch(X){ri(this,"throw",X)}var n=arguments.length<2,r=n?undefined:arguments[1];if(wl)return Ue(wl,this,n?[t]:[t,r]);var e=ui(this),i=0;if(si(e,function(e){r=n?(n=!1,e):t(r,e,i),i++},{IS_RECORD:!0}),n)throw new yl("Reduce of empty iterator with no initial value");return r}}),function(e,t){return(bl=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)});function kl(e,t){function n(){this.constructor=e}bl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var A=function(){return(A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function _l(e,a,s,u){return new(s=s||Promise)(function(n,t){function r(e){try{o(u.next(e))}catch(a){t(a)}}function i(e){try{o(u["throw"](e))}catch(a){t(a)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((u=u.apply(e,a||[])).next())})}function Sl(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&t[0]?a["return"]:t[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))u.label=t[1];else if(6===t[0]&&u.label<s[1])u.label=s[1],s=t;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(t)}}t=i.call(r,u)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function El(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var Cl=/_?t(\d)?(imestamp)?=\d+&?/g,Rl=function(e,t){void 0===t&&(t="https://dem.rumt-zh.com");t=(e.url||"").replace(/\/+$/,"")||("string"==typeof t?t:"https://dem.rumt-zh.com");return e.url=t,e.hostUrl=t,e.offlineUrl=t+"/offline",e.whiteListUrl=t+"/collect/whitelist",e.pvUrl=t+"/collect/pv",e.eventUrl=t+"/collect/events",e.speedUrl=t+"/speed",e.customTimeUrl=t+"/speed/custom",e.performanceUrl=t+"/speed/performance",e.performanceUrlForHippy=t+"/speed/hippyPerformance",e.webVitalsUrl=t+"/speed/webvitals",e.setDataReportUrl=t+"/speed/miniProgramData",e},Ol=["aegis.qq.com","tamaegis.com","/aegis-sdk","rumt-","/flog.core.min.js","pingfore.qq.com","pingfore.tencent.com","zhiyan.tencent-cloud.net","h.trace.qq.com","btrace.qq.com","beacon.qq.com","dmplog.qq.com","qq.com/report","svibeacon.onezapp.com","cube.weixinbridge.com","doubleclick.net","pcmgrmonitor.3g.qq.com","tdm.qq.com","report.qqweb.qq.com","tpstelemetry.tencent.com","galileotelemetry.tencent.com","insight.cloud.tencent.com","facebook.com","facebook.net","google","yahoo.com","twitter.com","ga-audiences","report.idqqimg.com","arms-retcode.aliyuncs.com","px.effirst.com","sentry","baidu.com","hot-update.json","u.c.b.r.o.w.s.e.r","report.url.cn","sockjs-node","m3u8","flv"],xl=["ResizeObserver loop limit exceeded","ResizeObserver loop completed","Failed to execute 'transaction'","window.indexedDB.deleteDatabase is not a function"],Tl=["ext1","ext2","ext3","ext4","ext5","ext6","ext7","ext8","ext9","ext10","level","trace","tag","seq","code"],Il=["static","fetch"],Ml="unknown",Al=function(e,t,n,r,i,o,a,s){for(var u,l,c=i,d=0,f=!!a&&Kr(a,s);d<r;)d in n&&(u=f?f(n[d],d,t):n[d],0<o&&ee(u)?(l=me(u),c=Al(e,t,u,l,c,o-1)-1):(ve(c+1),Kn(e,c,u)),c++),d++;return c},Pl=Al,Dl=(R({target:"Array",proto:!0},{flatMap:function(e){var t,n=ce(this),r=me(n);return Fe(e),t=mi(n,0),Pl(t,n,n,r,0,1,e,1<arguments.length?arguments[1]:undefined),t}}),Ur("some",TypeError)),Ll=(R({target:"Iterator",proto:!0,real:!0,forced:Dl},{some:function(n){S(this);try{Fe(n)}catch(X){ri(this,"throw",X)}var e,r;return Dl?I(Dl,this,n):(e=ui(this),si(e,function(e,t){if(n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),gi.some),l=We("some"),r=(R({target:"Array",proto:!0,forced:!l},{some:function(e){return Ll(this,e,1<arguments.length?arguments[1]:undefined)}}),rr("flatMap"),g(function(){return 1!==[1].values().flatMap(function(){return[1]}).find(function(){return!0})})),l=!r&&!Du("flatMap",function(){}),Nl=!r&&!l&&Ur("flatMap",TypeError),Du=r||l||Nl,Fl=s(function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=S(I(t.next,t.iterator))).done)return e.value;this.inner=null}catch(X){ri(n,"throw",X)}if(e=S(I(this.next,n)),this.done=!!e.done)return;try{this.inner=function(e,t){t&&"string"==typeof e||S(e);t=ei(e);return ui(S(t!==undefined?I(t,e):e))}(r(e.value,this.counter++),!1)}catch(X){ri(n,"throw",X)}}}),Ul=(R({target:"Iterator",proto:!0,real:!0,forced:Du},{flatMap:function(e){S(this);try{Fe(e)}catch(X){ri(this,"throw",X)}return Nl?I(Nl,this,e):new Fl(ui(this),{mapper:e,inner:null})}}),Gl.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},Gl.prototype.on=function(e,t,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[e])||(this.eventsList[e]=[],r=this.eventsList[e]),-1===this.indexOf(r,t)&&r.push({name:e,type:n||0,callback:t}),this},Gl.prototype.one=function(e,t){this.on(e,t,1)},Gl.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(n){if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch(L){}}return null}},Gl.prototype.clear=function(){this.eventsList={}},Gl),jl=function(e){try{return localStorage.getItem(e)}catch(ww){return null}},Bl=function(e,t){try{localStorage.setItem(e,t)}catch(ww){}},zl=function(e,t){try{return e?JSON.parse(e):t}catch(ww){return t}},r=Qn.f,Wl=sr.f,Hl=ut.f,ql=o.trim,Vl=x.Number;function Gl(){var a=this;this.emit=function(e,t){if(a){var n;if(null!=(r=a.eventsList[e])&&r.length)for(var r=r.slice(),i=0;i<r.length;i++){n=r[i];try{var o=n.callback.apply(a,[t]);if(1===n.type&&a.remove(e,n.callback),!1===o)break}catch(F){throw F}}return a}},this.eventsList={}}ki.Number;var Jl=Vl.prototype,Kl=x.TypeError,$l=v("".slice),Zl=v("".charCodeAt),Yl=function(e){var t,n,r,i,o,a,s,u=Eo(e,"number");if(Zi(u))throw new Kl("Cannot convert a Symbol value to a number");if("string"==typeof u&&2<u.length)if(u=ql(u),43===(e=Zl(u,0))||45===e){if(88===(t=Zl(u,2))||120===t)return NaN}else if(48===e){switch(Zl(u,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+u}for(o=(i=$l(u,2)).length,a=0;a<o;a++)if((s=Zl(i,a))<48||r<s)return NaN;return parseInt(i,n)}return+u},l=zs("Number",!Vl(" 0o1")||!Vl("0b1")||Vl("+0x1")),Xl=function(e){var t,e=arguments.length<1?0:Vl(function(e){e=Eo(e,"number");return"bigint"==typeof e?e:Yl(e)}(e));return Oe(Jl,t=this)&&g(function(){Oo(t)})?ca(Object(e),this,Xl):e};if(Xl.prototype=Jl,l&&(Jl.constructor=Xl),R({global:!0,constructor:!0,wrap:!0,forced:l},{Number:Xl}),l)for(var Ql=ki.Number,ec=Vl,tc,nc=f?r(ec):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),rc=0;nc.length>rc;rc++)M(ec,tc=nc[rc])&&!M(Ql,tc)&&Hl(Ql,tc,Wl(ec,tc));var ic,oc=x.isFinite,s=Number.isFinite||function(e){return"number"==typeof e&&oc(e)};function ac(e){var t;return e===undefined||null===e||!(e=String(e).trim())||(t=e.toLowerCase())===Ml||"undefined"===t||"null"===t||"未知"===e?undefined:e}function sc(e){return e&&"string"==typeof e?e.replace(/eval\(/gi,"evaI("):e}R({target:"Number",stat:!0},{isFinite:s}),(Du=ic=ic||{})[Du.number=-1]="number",Du.string="";var uc,lc=function(e,t){return"number"==typeof e||"string"==typeof e?e:t?ic.string:ic.number},cc=function(e,t){return"string"==typeof e?e.split("?")[t?1:0]||"":e},dc=function(e,t){return void 0===t&&(t=2048),String(e).replace(Cl,"").slice(0,t)},fc=function(e){return"string"==typeof e&&/^\//.test(e)?"https:"===(null==location?void 0:location.protocol):/^https/.test(e)},hc=["application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/x-javascript","application/ecmascript","application/vnd.mspowerpoint","application/vnd.apple.mpegurl","application/ogg","text/css","text/javascript","image","audio","video","video/mp2t"],pc=/\.(json|js|css|jpg|jpeg|png|svg|apng|webp|gif|bmp|mp4|mp3|ts|mpeg|wav|webm|ogg|flv|m3u8|ttf|woff2|otf|eot|woff|html|htm|shtml|shtm|)$/i,mc=["ret","retcode","code","errcode"],gc=function(e,t,n){var r,i,o;try{if("function"==typeof(null==t?void 0:t.retCodeHandler))return{code:void 0===(o=(i=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code)?Ml:o,isErr:i.isErr};if(!(e="string"==typeof e?JSON.parse(e):e))return{code:Ml,isErr:!1};"function"==typeof(null==(r=null==t?void 0:t.ret)?void 0:r.join)&&(mc=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var a=Object.getOwnPropertyNames(e).filter(function(e){return-1!==mc.indexOf(e.toLowerCase())});return a.length?{code:""+(o="未知"!==(o=e[a[0]])&&""!==o?o:Ml),isErr:0!==o&&"0"!==o&&o!==Ml}:{code:Ml,isErr:!1}}catch(b){return{code:Ml,isErr:!1}}},vc=function(e,t,n){try{var r="function"==typeof t?t(e,null==n?void 0:n.url,null==n?void 0:n.ctx)||"":e;return kc(r).slice(0,10240)}catch(L){return""}},yc=function(){var n=new WeakSet;return function(e,t){if(t instanceof Error)return"Error.message: "+t.message+" \n Error.stack: "+t.stack;if("object"===T(t)&&null!==t){if(n.has(t))return"[Circular "+(e||"root")+"]";n.add(t)}return t}},wc=function(e){if("string"==typeof e)return e;try{return e instanceof Error?(JSON.stringify(e,yc(),2)||"undefined").replace(/"/gim,""):JSON.stringify(e,yc(),2)||"undefined"}catch(w){return"error happen when tdem stringify: \n "+w.message+" \n "+w.stack}},bc=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,yc())||"undefined"}catch(w){return"error happen when tdem stringify: \n "+w.message+" \n "+w.stack}},kc=function(n,r){void 0===r&&(r=3);var i,o,a,s="";return Array.isArray(n)?(s+="[",i=n.length,n.forEach(function(e,t){"object"===T(e)&&1<r?s+=kc(e,r-1):s+=Sc(e),s+=t===i-1?"":","}),s+="]"):n instanceof Object||"object"===T(n)?(s="{",o=Object.keys(n),a=o.length,o.forEach(function(e,t){"object"===T(n[e])&&1<r?s+='"'+e+'":'+kc(n[e],r-1):s+=_c(e,n[e]),s+=t===a-1||t<a-1&&"undefined"==typeof n[o[t+1]]?"":","}),s+="}"):s+=n,s},_c=function(e,t){var n=T(t),r="";return"string"===n||"object"===n?r+='"'+e+'":"'+t+'"':"function"==typeof t?r+='"'+e+'":"function '+t.name+'"':"symbol"===T(t)?r+='"'+e+'":"symbol"':"number"!=typeof t&&"boolean"!==n||(r+='"'+e+'": '+t),r},Sc=function(e){var t=T(e);return""+("undefined"===t||"symbol"===t||"function"===t?"null":"string"===t||"object"===t?'"'+e+'"':e)},Ec=function(t){var n;return t.payload?(n={},Object.keys(t).forEach(function(e){"payload"!==e&&(n[e]=t[e])}),n):t},Cc=function(e,t){var n,r={fetch:[],"static":[],bridge:[]},i=new FormData;return Array.isArray(e)?e.forEach(function(e){var t=Ec(e);r[e.type].push(t)}):(n=Ec(e),r[e.type].push(n)),i.append("payload",bc(A({duration:r},t))),i},Rc=/data:(image|text|application|font)\/.*;base64/,Oc=function(t,e){return"string"!=typeof t||!t||e&&-1<t.indexOf(e)||Rc.test(t)||Ol.some(function(e){return-1<t.indexOf(e)})};(l=uc=uc||{}).LOG="log",l.SPEED="speed",l.PERFORMANCE="performance",l.OFFLINE="offline",l.WHITE_LIST="whiteList",l.VITALS="vitals",l.PV="pv",l.CUSTOM_PV="customPV",l.EVENT="event",l.CUSTOM="custom",l.SDK_ERROR="sdkError",l.SET_DATA="setData",l.LOAD_PACKAGE="loadPackage",l.MEMORY="memory";var xc,Tc={maxAttempts:3,delays:[0,1e3,3e3]};(r=xc=xc||{}).production="production",r.development="development",r.gray="gray",r.pre="pre",r.daily="daily",r.local="local",r.test="test",r.others="others";var P,Ic,Mc=function(e){return null==e?xc.production:function(e){switch(e){case xc.production:case xc.development:case xc.gray:case xc.pre:case xc.daily:case xc.local:case xc.test:case xc.others:return!0;default:return!1}}(e)?e:xc.others};function Ac(){return"evt_"+Date.now()+"_"+Math.random().toString(36).substring(2,8)}function Pc(e){var t=[];if(e.stack)for(var n=0,r=0,i=e.stack.split("\n");r<i.length;r++){var o,a,s,u,l,c=i[r],d=c.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)/);d?(a=d[1],o=d[2],s=d[3],u=d[4],l=o.split("/").pop()||o,t.push({abs_path:o,colno:parseInt(u,10),filename:l,"function":a||"(anonymous)",lineno:parseInt(s,10),in_app:o.includes("node_modules")||o.includes("cdn")?0:1,stack_level:n++})):(d=c.match(/at\s+(.+?):(\d+):(\d+)/))&&(a=d[1],s=d[2],u=d[3],l=a.split("/").pop()||a,t.push({abs_path:a,colno:parseInt(u,10),filename:l,"function":"(anonymous)",lineno:parseInt(s,10),in_app:a.includes("node_modules")||a.includes("cdn")?0:1,stack_level:n++}))}return t}(s=P=P||{}).JS_ERROR="js_error",s.PROMISE_ERROR="promise_error",s.RESOURCE_ERROR="resource_error",s.API_ERROR="api_error",s.BLANK_SCREEN="blank_screen",s.PAGE_LOAD="page_load",s.RESOURCE_LOAD="resource_load",s.API_CALL="api_call",s.SSE_CALL="sse_call",s["true"]="web_vitals",s.LAG_DETECTED="lag_detected",s.NO_RESPONSE="no_response",s.MEMORY_USAGE="memory_usage",s.APP_METRICS="app_metrics",s.PROCESS_SIGNAL="process_signal",s.MEMORY_OOM="memory_oom",s.FILE_IO="file_io",s.CLICK="click",s.SCROLL="scroll",s.LONG_PRESS="long_press",s.PAGE_VIEW="page_view",s.TAB_HIDDEN="tab_hidden",s.TAB_VISIBLE="tab_visible",s.WINDOW_BLUR="window_blur",s.WINDOW_FOCUS="window_focus",s.FORM_FOCUS="form_focus",s.FORM_BLUR="form_blur",s.FORM_CHANGE="form_change",s.FORM_SUBMIT="form_submit",s.FORM_SUBMIT_RESULT="form_submit_result",s.STRUGGLE="struggle",s.CUSTOM="custom",s.LOG="log",s.DIAL_PROBE="dial_probe",s.DIAL_MTR="dial_mtr",(l=Ic=Ic||{}).ERROR="error",l.PERFORMANCE="performance",l.BEHAVIOR="behavior",l.NETWORK="network",l.LOG="log",l.CUSTOM="custom";var Dc=TypeError,Lc=function(e,t){if(e<t)throw new Dc("Not enough arguments");return e},Nc=x.Function,Fc=/MSIE .\./.test(Vn)||"BUN"==fl&&((r=x.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2])),s=function(o,a){var s=a?2:1;return Fc?function(e,t){var n=Lc(arguments.length,1)>s,r=oe(e)?e:Nc(e),i=n?$n(arguments,s):[],e=n?function(){Ue(r,this,i)}:r;return a?o(e,t):o(e)}:o},l=s(x.setInterval,!0),r=(R({global:!0,bind:!0,forced:x.setInterval!==l},{setInterval:l}),s(x.setTimeout,!0)),Uc=(R({global:!0,bind:!0,forced:x.setTimeout!==r},{setTimeout:r}),function(e){return e.filter(function(n,r){return"static"!==n.type||!e.find(function(e,t){return n.url===e.url&&200===n.status&&r<t})})}),jc=(R({target:"String",proto:!0},{repeat:Gr}),{}),Bc={},zc=function(e){return jc[e]||(jc[e]=setTimeout(function(){Bc[e]={},jc[e]=null},6e4)),jc[e]},Wc=function(c,d){return function(i,o){var a,s,u,l,e,t,n;null!=i&&i.log&&null!=i&&i.type?(s=function(e,t){var n,r,t=A(A({},c.bean),{from:t}),i=A({},c.bean);return function(){try{return"undefined"!=typeof FormData&&"function"==typeof FormData.prototype.append}catch(a){}}()?Cc(e,t):(t=e,e=i,r={fetch:[],"static":[],bridge:[]},i={},Array.isArray(t)?t.forEach(function(e){var t;null!=(t=r[e.type])&&t.push(e)}):null!=(n=r[t.type])&&n.push(t),i.payload=JSON.stringify(A({duration:r},e)),i)},u=function(e,t,n,r){switch(t){case uc.LOG:o=e;var i=(Array.isArray(o)?o:[o]).map(function(n){return Object.getOwnPropertyNames(n).reduce(function(e,t){return"ctx"!==t&&(e[t]=n[t]),e},{level:"2",msg:""})});if(!i||0===i.length)return"{}";i=Array.isArray(i)?i:[i];var o=Array.from(new Set(i.flatMap(function(e){return Object.keys(e)}))),a={};return o.forEach(function(t){a[t]=i.map(function(e){return e[t]||""})}),a.count=i.length,bc(a);case uc.SPEED:return s(e,n);case uc.EVENT:return r;default:return r||{}}var o},1!==(e=Array.isArray(i.log)?i.log:[i.log]).length?(l={},e.forEach(function(e){var t=e.from||"undefined";delete e.from,l[t]||(l[t]=[]),l[t].push(e)}),Object.keys(l).forEach(function(e){var t,n=l[e],r=null!=(r=i.url)&&r.includes("?")?"&":"?";"undefined"===e?(t=""+i.url,o(A(A({},i),{url:t,log:1===n.length?n[0]:n,data:u(n,d,e,i.data)}))):(t=i.url+r+"from="+e,o(A(A({},i),{url:t,log:1===n.length?n[0]:n,beanFilter:El(i.beanFilter||[],["from"]),data:u(n,d,e,i.data)})))})):(t=(e=e[0]).from,delete e.from,n=null!=(a=i.url)&&a.includes("?")?"&":"?",t?(n=i.url+n+"from="+t,o(A(A({},i),{url:n,log:e,beanFilter:El(i.beanFilter||[],["from"]),data:u(e,d,t,i.data)}))):(n=""+i.url,o(A(A({},i),{url:n,log:e,data:u(e,d,t,i.data)}))))):o(i)}},Hc=function(u,l){return function(e,t){var n,r,i,o=Array.isArray(e),a=o?e:[e],s=(u.lifeCycle.emit("beforeRequest",e),u.config.beforeRequest);(a="function"==typeof s?a.map(function(e){try{var t=s({logs:e,logType:l});return(null==t?void 0:t.logType)===l&&null!=t&&t.logs?t.logs:!1!==t&&e}catch(X){return e}}).filter(function(e){return!1!==e}):a).length&&(n=a,e=Tl,!Array.isArray(n)||n.length<=1||(r=[],i=[],!(i="string"==typeof e?[e]:e))||i.length<=0||(i.forEach(function(t){n.forEach(function(e){null!=e&&e[t]&&r.push(t)})}),0<r.length&&(n=n.map(function(e){var t={};return r.forEach(function(e){t[e]=""}),A(A({},t),e)}))),a=n,t(o?a:a[0]))}},qc=function(i){return function(e,t){i.lifeCycle.emit("modifyRequest",e);var n=i.config.modifyRequest;if("function"==typeof n)try{var r=n(e);"object"===T(r)&&"url"in r&&(e=r)}catch(X){console.error(X)}t(e)}},Vc=function(r){return function(e,t){null!=(n=r.lifeCycle)&&n.emit("afterRequest",e);var n=(r.config||{}).afterRequest;"function"==typeof n&&!1===n(e)||t(e)}},Gc={generateTraceId:Kc(16),generateSpanId:Kc(8)},Jc=Array(32);function Kc(t){return function(){for(var e=0;e<2*t;e++)Jc[e]=Math.floor(16*Math.random())+48,58<=Jc[e]&&(Jc[e]+=39);return String.fromCharCode.apply(null,Jc.slice(0,2*t))}}function $c(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}var Zc=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},Yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Xc=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Qc=function(e){for(var t,n,r,i="",o=0,a=(e=String(e)).length%3;o<e.length;){if(255<(t=e.charCodeAt(o++))||255<(n=e.charCodeAt(o++))||255<(r=e.charCodeAt(o++)))throw new TypeError("Failed to execute 'btoa': The string to be encoded contains characters outside of the Latin1 range.");i+=Yc.charAt((t=t<<16|n<<8|r)>>18&63)+Yc.charAt(t>>12&63)+Yc.charAt(t>>6&63)+Yc.charAt(63&t)}return a?i.slice(0,a-3)+"===".substring(a):i},ed=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Xc.test(e))throw new TypeError("Failed to execute 'atob': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=Yc.indexOf(e.charAt(o++))<<18|Yc.indexOf(e.charAt(o++))<<12|(n=Yc.indexOf(e.charAt(o++)))<<6|(r=Yc.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i},td=(id.prototype.generate=function(e,t,n){if(void 0===t&&(t={}),this.url=e,!this.isUrlIgnored()&&this.isUrlInTraceUrls()&&this.traceType){switch(this.traceType){case"traceparent":this.traceId=this.createTraceparent();break;case"b3":this.traceId=this.createB3();break;case"sw8":this.traceId=this.createSw8(n);break;case"sentry-trace":this.traceId=this.createSentryTrace();break;default:return console.warn("this trace key "+this.traceType+" is not supported"),void(this.traceId="")}return t[this.traceType]&&(this.traceId=t[this.traceType]),{name:this.traceType,value:this.traceId}}},id.prototype.createTraceparent=function(){var e=Gc.generateSpanId();return"00-"+Gc.generateTraceId()+"-"+e+"-0"+this.traceFlag.toString(16)},id.prototype.createB3=function(){var e=Gc.generateSpanId();return Gc.generateTraceId()+"-"+e+"-"+this.traceFlag},id.prototype.createSw8=function(e){var t="function"==typeof btoa?btoa:Qc,e=e||{},n=e.host,n=void 0===n?"":n,e=e.pathname,e=void 0===e?"":e,r=Zc(),i=Zc();return"1-"+String(t(i))+"-"+String(t(r))+"-1-"+String(t("tdem"))+"-"+String(t("1.0.15"))+"-"+String(t(encodeURI(e)))+"-"+String(t(n))},id.prototype.createSentryTrace=function(){var e=$c().substring(16);return $c()+"-"+e+"-"+this.traceFlag},id.prototype.isUrlIgnored=function(){if(Array.isArray(this.ignoreUrls)&&0!==this.ignoreUrls.length)for(var e=0,t=this.ignoreUrls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}return!1},id.prototype.isUrlInTraceUrls=function(){if(!this.urls)return!0;if(Array.isArray(this.urls)){if(0===this.urls.length)return!1;for(var e=0,t=this.urls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}}return!1},id.prototype.urlMatches=function(e,t){return"string"==typeof t?e===t:!!e.match(t)},id),nd={sw8:function(e){var t="function"==typeof atob?atob:ed,e=e.split("-")[1];return e?t(e):""},traceparent:function(e){return e.split("-")[1]},b3:function(e){return e.split("-")[0]},"sentry-trace":function(e){return e.split("-")[0]}},rd=function(e){var t,n="";return n="object"===T(e)&&(t=(e=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=e[r]||"function"==typeof e.get&&e.get(r);if(i)return[r,i]}return["",""]}(e,Object.keys(nd)))[0])?nd[t](e[1]):n};function id(e,t,n,r){void 0===n&&(n=null),this.traceType=e,this.ignoreUrls=t,this.urls=n,this.traceFlag=r===undefined||null===r?1:Number(!!r)}ke("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i);var od=Object.isFrozen,l=Aa||g(function(){od(1)}),ad=(R({target:"Object",stat:!0,forced:l},{isFrozen:function(e){return!O(e)||!(!Aa||"ArrayBuffer"!==re(e))||!!od&&od(e)}}),Object.isSealed),s=Aa||g(function(){ad(1)}),sd=(R({target:"Object",stat:!0,forced:s},{isSealed:function(e){return!O(e)||!(!Aa||"ArrayBuffer"!==re(e))||!!ad&&ad(e)}}),ja.onFreeze),ud=Object.seal,r=g(function(){ud(1)});R({target:"Object",stat:!0,forced:r,sham:!0},{seal:function(e){return ud&&O(e)?ud(sd(e)):e}});var ld,cd,dd,fd,hd=Bt.enforce,i=Object,pd=(Array.isArray,i.isExtensible),l=!x.ActiveXObject&&"ActiveXObject"in x,s=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},r=ke("WeakMap",s,u),i=r.prototype,md=v(i.set),gd=(Be&&l&&(ld=u.getConstructor(s,"WeakMap",!0),ja.enable(),cd=v(i["delete"]),dd=v(i.has),fd=v(i.get),ea(i,{"delete":function(e){var t;return O(e)&&!pd(e)?((t=hd(this)).frozen||(t.frozen=new ld),cd(this,e)||t.frozen["delete"](e)):cd(this,e)},has:function(e){var t;return O(e)&&!pd(e)?((t=hd(this)).frozen||(t.frozen=new ld),dd(this,e)||t.frozen.has(e)):dd(this,e)},get:function(e){var t;return!O(e)||pd(e)||((t=hd(this)).frozen||(t.frozen=new ld),dd(this,e))?fd(this,e):t.frozen.get(e)},set:function(e,t){var n;return!O(e)||pd(e)||((n=hd(this)).frozen||(n.frozen=new ld),dd(this,e))?md(this,e,t):n.frozen.set(e,t),this}})),new WeakMap);function vd(e){var t,n;return String((null==(t=null==(n=null==(t=e.sessionManager)?void 0:t.getSession)?void 0:n.call(t))?void 0:t.id)||(null==(n=e.bean)?void 0:n.sessionId)||"")}function yd(e,t){gd.set(e,t)}function wd(e){return gd.get(e)}function bd(o){return function(e){e&&0!==e.length&&o.sendPipeline([function(e,r){var i=new Map;e.forEach(function(e){var t=null!=(t=wd(e))?t:vd(o),n=i.get(t)||[];n.push(e),i.set(t,n)}),i.forEach(function(t,e){var e={protocol_version:2,project_key:String(o.config.id||""),sdk:{name:o.sdkName,version:o.sdkVersion},app:{version:String(o.config.version||"1.0.0")},context:A(A({},function(e){var t=vd(e),n=String(e.config.userId||e.config.uin||""),t={session_id:t,platform:(t=String(e.runtimePlatform||e.config.platform||"web").trim().toLowerCase(),["web","wx-miniprogram","uniapp","android","ios","electron","unknown"].includes(t)?t:"wx"===t?"wx-miniprogram":"my"!==t&&"qq"!==t&&"tt"!==t&&"undefined"!=typeof window?"web":"unknown")};n&&(t.user_id=n);(n=String(e.bean.aid||"").trim())&&"true"!==n&&(t.device_id=n);var n=e.bean.runtime?String(e.bean.runtime):"",r=e.bean.processType?String(e.bean.processType):"",i=e.bean.windowId!==undefined?String(e.bean.windowId):"",o=e.bean.webContentsId!==undefined?String(e.bean.webContentsId):"",e=e.bean.appVersion?String(e.bean.appVersion):"";return n&&(t.runtime=n),r&&(t.process_type=r),i&&(t.window_id=i),o&&(t.web_contents_id=o),e&&(t.app_version=e),"undefined"!=typeof navigator&&(t.user_agent=navigator.userAgent,t.language=navigator.language),"undefined"!=typeof screen&&(t.screen_resolution=screen.width+"x"+screen.height),t}(o)),{session_id:e}),events:t},n=String(o.config.url||"").replace(/\/+$/,"");n&&r({url:n+"/api/v1/collect/events",data:JSON.stringify(e),method:"POST",contentType:"application/json",addBean:!1,type:uc.EVENT,log:t,success:function(){o.lifeCycle.emit("afterReport",{success:!0,events:t})},fail:function(e){o.lifeCycle.emit("afterReport",{success:!1,error:e,events:t})}})})}],uc.EVENT)(e)}}var kd=Ur("every",TypeError),_d=(R({target:"Iterator",proto:!0,real:!0,forced:kd},{every:function(n){S(this);try{Fe(n)}catch(X){ri(this,"throw",X)}var e,r;return kd?I(kd,this,n):(e=ui(this),!si(e,function(e,t){if(!n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),gi.every),ke=We("every");R({target:"Array",proto:!0,forced:!ke},{every:function(e){return _d(this,e,1<arguments.length?arguments[1]:undefined)}});var Sd,Ed,Cd,r=sr.f,Rd=e("".slice),Od=Math.min,Be=Vr("endsWith"),s=!(Be||!(l=r(String.prototype,"endsWith"))||l.writable),u=(R({target:"String",proto:!0,forced:!s&&!Be},{endsWith:function(e){var t=E(ue(this)),e=(to(e),E(e)),n=1<arguments.length?arguments[1]:undefined,r=t.length,n=n===undefined?r:Od(pe(n),r);return Rd(t,n-e.length,n)===e}}),sr.f),xd=e("".slice),Td=Math.min,i=Vr("startsWith"),ke=!(i||!(Ur=u(String.prototype,"startsWith"))||Ur.writable),Id=(R({target:"String",proto:!0,forced:!ke&&!i},{startsWith:function(e){var t=E(ue(this)),e=(to(e),E(e)),n=pe(Td(1<arguments.length?arguments[1]:undefined,t.length));return xd(t,n,n+e.length)===e}}),void 0),Md=(R({target:"Object",stat:!0},{is:Id}),Object.is,Ut("search",function(r,i,o){return[function(e){var t=ue(this),n=O(e)?nn(e,r):undefined;return n?I(n,e,t):(n=E(t),new RegExp(e)[r](n))},function(e){var t=S(this),e=E(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,Id(n,0)||(t.lastIndex=0),e=gn(t,e),Id(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Math.floor),Ad=function(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(r=e[i=o];i&&0<t(e[i-1],r);)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=Md(n/2),s=Ad($n(e,0,a),t),u=Ad($n(e,a),t),l=s.length,c=u.length,d=0,f=0;d<l||f<c;)e[d+f]=d<l&&f<c?t(s[d],u[f])<=0?s[d++]:u[f++]:d<l?s[d++]:u[f++];return e},Pd=Ad,r=Vn.match(/firefox\/(\d+)/i),Dd=!!r&&+r[1],Ld=/MSIE|Trident/.test(Vn),l=Vn.match(/AppleWebKit\/(\d+)\./),Nd=!!l&&+l[1],Fd=[],Ud=v(Fd.sort),jd=v(Fd.push),s=g(function(){Fd.sort(undefined)}),Be=g(function(){Fd.sort(null)}),Vr=We("sort"),Bd=!g(function(){if(Gn)return Gn<70;if(!(Dd&&3<Dd)){if(Ld)return!0;if(Nd)return Nd<603;for(var e,t,n,r="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)Fd.push({k:e+n,v:t})}for(Fd.sort(function(e,t){return t.v-e.v}),n=0;n<Fd.length;n++)e=Fd[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}),zd=(R({target:"Array",proto:!0,forced:s||!Be||!Vr||!Bd},{sort:function(e){e!==undefined&&Fe(e);var t=ce(this);if(Bd)return e===undefined?Ud(t):Ud(t,e);for(var n,r,i=[],o=me(t),a=0;a<o;a++)a in t&&jd(i,t[a]);for(Pd(i,(r=e,function(e,t){return t===undefined?-1:e===undefined?1:r!==undefined?+r(e,t)||0:(e=E(e))===(t=E(t))?0:t<e?1:-1})),n=me(i),a=0;a<n;)t[a]=i[a++];for(;a<o;)Na(t,a++);return t}}),(u=(u=x.URL)&&u.prototype)&&u.toString),Wd=(R({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return I(zd,this)}}),Object.getOwnPropertyDescriptor),Ur=function(e){var t;return f?(t=Wd(x,e))&&t.value:x[e]},Hd=RangeError,qd=String.fromCharCode,ke=String.fromCodePoint,Vd=v([].join),i=!!ke&&1!==ke.length,Gd=(R({target:"String",stat:!0,arity:1,forced:i},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(pt(t=+arguments[i],1114111)!==t)throw new Hd(t+" is not a valid code point");n[i++]=t<65536?qd(t):qd(55296+((t-=65536)>>10),t%1024+56320)}return Vd(n,"")}}),String.fromCharCode),Jd=Re("String","fromCodePoint"),Kd=encodeURIComponent,$d=parseInt,Zd=v("".charAt),Yd=v([].push),Xd=v("".replace),Qd=v("".slice),ef=v(/./.exec),tf=/^[0-9a-f]+$/i,nf=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,rf=function(e,t){e=Qd(e,t,t+2);return ef(tf,e)?$d(e,16):NaN},of=function(e){return 2===e.length?e:"�"},Ut=function(e){for(var t=e.length,n="",r=0;r<t;){var i=Zd(e,r);if("%"===i){if("%"===Zd(e,r+1)||t<r+3){n+="%",r++;continue}var o=rf(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=function(e){for(var t=0,n=128;0<n&&0!=(e&n);n>>=1)t++;return t}(o);if(0===a)i=Gd(o);else{if(1===a||4<a){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(++r+3>t||"%"!==Zd(e,r));){var l=rf(e,r+1);if(l!=l||191<l||l<128)break;if(1===u){if(224===o&&l<160)break;if(237===o&&159<l)break;if(240===o&&l<144)break;if(244===o&&143<l)break}Yd(s,l),r+=2,u++}if(s.length!==a){n+="�";continue}var c=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||1114111<t||55296<=t&&t<=57343||t<(3<n?65536:2<n?2048:1<n?128:0)?null:t}(s);if(null===c){for(var d=0;d<a;d++)n+="�";r++;continue}i=Jd(c)}}n+=i,r++}return n},r=function(e){try{return Kd(e)}catch(X){return Kd(Xd(e,nf,of))}},l=et("iterator"),af=Bt.set,sf=Bt.getterFor("URLSearchParams"),uf=Bt.getterFor("URLSearchParamsIterator"),lf=Ut,cf=r,df=Ur("fetch"),ff=Ur("Request"),hf=Ur("Headers"),pf=ff&&ff.prototype,s=hf&&hf.prototype,mf=x.TypeError,gf=v("".charAt),vf=v([].join),yf=v([].push),wf=v("".replace),bf=v([].shift),kf=v([].splice),_f=v("".split),Sf=v("".slice),Ef=/\+/g,Cf=function(e){return lf(wf(e,Ef," "))},Rf=/[!'()~]|%20/g,Of={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xf=function(e){return Of[e]},Tf=function(e){return wf(cf(e),Rf,xf)},If=Rr(function(e,t){af(this,{type:"URLSearchParamsIterator",target:sf(e).entries,index:0,kind:t})},"URLSearchParams",function(){var e=uf(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Dr(undefined,!0);var r=t[n];switch(e.kind){case"keys":return Dr(r.key,!1);case"values":return Dr(r.value,!1)}return Dr([r.key,r.value],!1)},!0),Mf=function(e){this.entries=[],this.url=null,e!==undefined&&(O(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===gf(e,0)?Sf(e,1):e:E(e)))},Be=(Mf.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=this.entries,u=ei(e);if(u)for(n=(t=ni(e,u)).next;!(r=I(n,t)).done;){if(i=(r=ni(S(r.value))).next,(o=I(i,r)).done||(a=I(i,r)).done||!I(i,r).done)throw new mf("Expected sequence with length 2");yf(s,{key:E(o.value),value:E(a.value)})}else for(var l in e)M(e,l)&&yf(s,{key:l,value:E(e[l])})},parseQuery:function(e){if(e)for(var t,n=this.entries,r=_f(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(t=_f(t,"="),yf(n,{key:Cf(bf(t)),value:Cf(vf(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],yf(n,Tf(e.key)+"="+Tf(e.value));return vf(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){dr(this,Af);var e=0<arguments.length?arguments[0]:undefined,e=af(this,new Mf(e));f||(this.size=e.entries.length)}),Af=Be.prototype;ea(Af,{append:function(e,t){var n=sf(this);Lc(arguments.length,2),yf(n.entries,{key:E(e),value:E(t)}),f||this.size++,n.updateURL()},"delete":function(e){for(var t=sf(this),n=Lc(arguments.length,1),r=t.entries,i=E(e),e=n<2?undefined:arguments[1],o=e===undefined?e:E(e),a=0;a<r.length;){var s=r[a];s.key!==i||o!==undefined&&s.value!==o?a++:kf(r,a,1)}f||(this.size=r.length),t.updateURL()},get:function(e){var t=sf(this).entries;Lc(arguments.length,1);for(var n=E(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=sf(this).entries;Lc(arguments.length,1);for(var n=E(e),r=[],i=0;i<t.length;i++)t[i].key===n&&yf(r,t[i].value);return r},has:function(e){for(var t=sf(this).entries,n=Lc(arguments.length,1),r=E(e),e=n<2?undefined:arguments[1],i=e===undefined?e:E(e),o=0;o<t.length;){var a=t[o++];if(a.key===r&&(i===undefined||a.value===i))return!0}return!1},set:function(e,t){var n=sf(this);Lc(arguments.length,2);for(var r,i=n.entries,o=!1,a=E(e),s=E(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?kf(i,u--,1):(o=!0,r.value=s));o||yf(i,{key:a,value:s}),f||(this.size=i.length),n.updateURL()},sort:function(){var e=sf(this);Pd(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=sf(this).entries,r=Kr(e,1<arguments.length?arguments[1]:undefined),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new If(this,"keys")},values:function(){return new If(this,"values")},entries:function(){return new If(this,"entries")}},{enumerable:!0}),Jt(Af,l,Af.entries,{name:"entries"}),Jt(Af,"toString",function(){return sf(this).serialize()},{enumerable:!0}),f&&Wt(Af,"size",{get:function(){return sf(this).entries.length},configurable:!0,enumerable:!0}),wr(Be,"URLSearchParams"),R({global:!0,constructor:!0,forced:!0},{URLSearchParams:Be}),oe(hf)&&(Sd=v(s.has),Ed=v(s.set),Cd=function(e){if(O(e)){var t,n=e.body;if("URLSearchParams"===it(n))return t=e.headers?new hf(e.headers):new hf,Sd(t,"content-type")||Ed(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ot(e,{body:st(0,E(n)),headers:st(0,t)})}return e},oe(df)&&R({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return df(e,1<arguments.length?Cd(arguments[1]):{})}}),oe(ff))&&((pf.constructor=Vr=function(e){return dr(this,pf),new ff(e,1<arguments.length?Cd(arguments[1]):{})}).prototype=pf,R({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Vr}));var Pf,u={URLSearchParams:Be,getState:sf},Df=et("iterator"),Lf=(g(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),n=e.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",n.forEach(function(e,t){n["delete"]("b"),r+=t+e}),t["delete"]("a",2),t["delete"]("b",undefined),!n.size&&!f||!n.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[Df]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",undefined).host}),/[^\0-\u007E]/),Nf=/[.\u3002\uFF0E\uFF61]/g,Ff="Overflow: input needs wider integers to process",Uf=RangeError,jf=v(Nf.exec),Bf=Math.floor,zf=String.fromCharCode,Wf=v("".charCodeAt),Hf=v([].join),qf=v([].push),Vf=v("".replace),Gf=v("".split),Jf=v("".toLowerCase),Kf=function(e){return e+22+75*(e<26)},$f=function(e,t,n){var r=0;for(e=n?Bf(e/700):e>>1,e+=Bf(e/t);455<e;)e=Bf(e/35),r+=36;return Bf(r+36*e/(e+38))},Zf=function(e){for(var t,n=[],r=Gf(Vf(Jf(e),Nf,"."),"."),i=0;i<r.length;i++)t=r[i],qf(n,jf(Lf,t)?"xn--"+function(e){var t,n=[],r=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i,o=Wf(e,n++);55296<=o&&o<=56319&&n<r?56320==(64512&(i=Wf(e,n++)))?qf(t,((1023&o)<<10)+(1023&i)+65536):(qf(t,o),n--):qf(t,o)}return t}(e)).length,i=128,o=0,a=72;for(c=0;c<e.length;c++)(t=e[c])<128&&qf(n,zf(t));var s=n.length,u=s;for(s&&qf(n,"-");u<r;){for(var l=2147483647,c=0;c<e.length;c++)(t=e[c])>=i&&t<l&&(l=t);var d=u+1;if(l-i>Bf((2147483647-o)/d))throw new Uf(Ff);for(o+=(l-i)*d,i=l,c=0;c<e.length;c++){if((t=e[c])<i&&2147483647<++o)throw new Uf(Ff);if(t===i){for(var f=o,h=36;;){var p=h<=a?1:a+26<=h?26:h-a;if(f<p)break;var m=f-p,g=36-p;qf(n,zf(Kf(p+m%g))),f=Bf(m/g),h+=36}qf(n,zf(Kf(f))),a=$f(o,d,u===s),o=0,u++}}o++,i++}return Hf(n,"")}(t):t);return Hf(n,".")},Yf=Ht.codeAt,Xf=Bt.set,Qf=Bt.getterFor("URL"),eh=u.URLSearchParams,th=u.getState,nh=Ut,rh=r,ke=x.URL,ih=x.TypeError,oh=x.parseInt,ah=Math.floor,sh=Math.pow,uh=String.fromCharCode,lh=v("".charAt),ch=v(/./.exec),dh=v([].join),fh=v(1.1.toString),hh=v([].pop),ph=v([].push),mh=v("".replace),gh=v([].shift),vh=v("".split),yh=v("".indexOf),wh=v("".slice),bh=v("".toLowerCase),kh=v([].unshift),_h=/[a-z]/i,Sh=/[\d+\-.a-z]/i,Eh=/\d/,Ch=/^0x/i,Rh=/^[0-7]+$/,Oh=/^\d+$/,xh=/^[\da-f]+$/i,Th=/[\u0000-\u0020#%/:<>?@[\\\]^|\u007F]/,Ih=/[\0\t\n\r #/:<>?@[\\\]^|]/,Mh=/^[\u0000-\u0020]+/,Ah=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Ph=/[\t\n\r]/g,Dh=/[^\u0000-\u007F]/,Lh=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)kh(t,e%256),e=ah(e/256);return dh(t,".")}if("object"!=T(e))return e;for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(n<i&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i=i&&!1,r===n?(t+=n?":":"::",i=!0):(t+=fh(e[n],16),n<7&&(t+=":")));return"["+t+"]"},Nh={},Fh=a({},Nh,{" ":1,'"':1,"#":1,"<":1,">":1}),Uh=a({},Fh,{"'":1}),jh=a({},Nh,{" ":1,'"':1,"<":1,">":1,"`":1}),Bh=a({},jh,{"#":1,"?":1,"{":1,"}":1,"^":1}),zh=a({},Bh,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Wh=function(e,t){var n=Yf(e,0);return 32<=n&&n<127&&!M(t,e)?e:"'"===e&&M(t,e)?"%27":rh(e)},Hh={ftp:21,file:null,http:80,https:443,ws:80,wss:443},qh=function(e,t){return 2===e.length&&ch(_h,lh(e,0))&&(":"===(e=lh(e,1))||!t&&"|"===e)},Vh=function(e){return 1<e.length&&qh(wh(e,0,2))&&(2===e.length||"/"===(e=lh(e,2))||"\\"===e||"?"===e||"#"===e)},Gh={},Jh={},Kh={},$h={},Zh={},Yh={},Xh={},Qh={},ep={},tp={},np={},rp={},ip={},op={},ap={},sp={},up={},lp={},cp={},dp={},fp={},hp=function(e,t,n){var r,i,e=E(e);if(t){if(i=this.parse(e))throw new ih(i);this.searchParams=null}else{if(n!==undefined&&(r=new hp(n,!0)),i=this.parse(e,null,r))throw new ih(i);(t=th(new eh)).bindURL(this),this.searchParams=t}},pp=(hp.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s=this,u=t||Gh,l=0,c="",d=!1,f=!1,h=!1;for(e=E(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=mh(e,Mh,""),e=mh(e,Ah,"$1")),e=mh(e,Ph,""),r=Mu(e);l<=r.length;){switch(i=r[l],u){case Gh:if(!i||!ch(_h,i)){if(t)return"Invalid scheme";u=Kh;continue}c+=bh(i),u=Jh;break;case Jh:if(i&&ch(Sh,i))c+=bh(i);else{if(":"!==i){if(t)return"Invalid scheme";c="",u=Kh,l=0;continue}if(t&&(s.isSpecial()!==M(Hh,c)||"file"===c&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&""===s.host))return;if(s.scheme=c,t)return void(s.isSpecial()&&Hh[s.scheme]===s.port&&(s.port=null));c="","file"===s.scheme?u=op:s.isSpecial()&&n&&n.scheme===s.scheme?u=$h:s.isSpecial()?u=Qh:"/"===r[l+1]?(u=Zh,l++):(s.cannotBeABaseURL=!0,ph(s.path,""),u=cp)}break;case Kh:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=$n(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,u=fp;break}u="file"===n.scheme?op:Yh;continue;case $h:if("/"!==i||"/"!==r[l+1]){u=Yh;continue}u=ep,l++;break;case Zh:if("/"===i){u=tp;break}u=lp;continue;case Yh:if(s.scheme=n.scheme,i===Pf)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=$n(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())u=Xh;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=$n(n.path),s.query="",u=dp;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=$n(n.path),s.path.length&&s.path.length--,u=lp;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=$n(n.path),s.query=n.query,s.fragment="",u=fp}break;case Xh:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=lp;continue}u=tp}else u=ep;break;case Qh:if(u=ep,"/"!==i||"/"!==r[l+1])continue;l++;break;case ep:if("/"===i||"\\"===i)break;u=tp;continue;case tp:if("@"===i){d&&(c="%40"+c);for(var d=!0,p=Mu(c),m=0;m<p.length;m++){var g=p[m];":"!==g||h?(g=Wh(g,zh),h?s.password+=g:s.username+=g):h=!0}c=""}else if(i===Pf||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(d&&""===c)return"Invalid authority";l-=Mu(c).length+1,c="",u=np}else c+=i;break;case np:case rp:if(t&&"file"===s.scheme){u=sp;continue}if(":"!==i||f){if(i===Pf||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===c)return"Invalid host";if(t&&""===c&&(s.includesCredentials()||null!==s.port))return;if(o=s.parseHost(c))return o;if(c="",u=up,t)return;continue}"["===i?f=!0:"]"===i&&(f=!1),c+=i}else{if(""===c)return"Invalid host";if(t===rp)return;if(o=s.parseHost(c))return o;c="",u=ip}break;case ip:if(!ch(Eh,i)){if(i===Pf||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==c){var v=oh(c,10);if(65535<v)return"Invalid port";s.port=s.isSpecial()&&v===Hh[s.scheme]?null:v,c=""}if(t)return;u=up;continue}return"Invalid port"}c+=i;break;case op:if(s.scheme="file",s.host="","/"===i||"\\"===i)u=ap;else{if(!n||"file"!==n.scheme){u=lp;continue}switch(i){case Pf:s.host=n.host,s.path=$n(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=$n(n.path),s.query="",u=dp;break;case"#":s.host=n.host,s.path=$n(n.path),s.query=n.query,s.fragment="",u=fp;break;default:s.host=n.host,Vh(dh($n(r,l),""))||(s.path=$n(n.path),s.shortenPath()),u=lp;continue}}break;case ap:if("/"===i||"\\"===i){u=sp;break}n&&"file"===n.scheme&&(s.host=n.host,!Vh(dh($n(r,l),"")))&&qh(n.path[0],!0)&&ph(s.path,n.path[0]),u=lp;continue;case sp:if(i===Pf||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&qh(c))u=lp;else{if(""===c){if(s.host="",t)return}else{if(o=s.parseHost(c))return o;if("localhost"===s.host&&(s.host=""),t)return;c=""}u=up}continue}c+=i;break;case up:if(s.isSpecial()){if(u=lp,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==Pf&&(u=lp,"/"!==i))continue}else s.fragment="",u=fp;else s.query="",u=dp;break;case lp:if(i===Pf||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(v=bh(c))||"%2e."===v||".%2e"===v||"%2e%2e"===v?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||ph(s.path,"")):"."===(a=c)||"%2e"===bh(a)?"/"===i||"\\"===i&&s.isSpecial()||ph(s.path,""):("file"===s.scheme&&!s.path.length&&qh(c)&&(null!==s.host&&""!==s.host&&(s.host=""),c=lh(c,0)+":"),ph(s.path,c)),c="","file"===s.scheme&&(i===Pf||"?"===i||"#"===i))for(;1<s.path.length&&""===s.path[0];)gh(s.path);"?"===i?(s.query="",u=dp):"#"===i&&(s.fragment="",u=fp)}else c+=Wh(i,Bh);break;case cp:"?"===i?(s.query="",u=dp):"#"===i?(s.fragment="",u=fp):i!==Pf&&(s.path[0]+=" "===i?"?"===r[l+1]||"#"===r[l+1]?"%20":" ":Wh(i,Nh));break;case dp:t||"#"!==i?i!==Pf&&(s.query+=Wh(i,s.isSpecial()?Uh:Fh)):(s.fragment="",u=fp);break;case fp:i!==Pf&&(s.fragment+=Wh(i,jh))}l++}},parseHost:function(u){var e,t,n;if("["===lh(u,0))return"]"===lh(u,u.length-1)&&(e=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,d=0,f=function(){return lh(e,d)};if(":"===f()){if(":"!==lh(e,1))return;d+=2,c=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=n=0;n<4&&ch(xh,f());)t=16*t+oh(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,6<l)return;for(r=0;f();){if(i=null,0<r){if(!("."===f()&&r<4))return;d++}if(!ch(Eh,f()))return;for(;ch(Eh,f());){if(o=oh(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(255<i)return;d++}u[l]=256*u[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;u[l++]=t}else{if(null!==c)return;d++,c=++l}}if(null!==c)for(a=l-c,l=7;0!==l&&0<a;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!==l)return;return u}(wh(u,1,-1)))?void(this.host=e):"Invalid host";if(this.isSpecial()){if(null===(u=function(e){if(!ch(Dh,e))return""===e?null:Zf(e);for(var t,n,r=Mu(e),i="",o=0;o<r.length;o++){if(t=Yf(r[o],0),65533===(n=t)||55296<=n&&n<=57343||128<=n&&n<=159||8206<=n&&n<=8207||8232<=n&&n<=8233||8234<=n&&n<=8238||8293<=n&&n<=8297||64976<=n&&n<=65007||65534==(65534&n)||57344<=n&&n<=63743||983040<=n&&n<=1114109)return null;173===(n=t)||847===n||8203===n||12644===n||65279===n||65440===n||4447<=n&&n<=4448||6068<=n&&n<=6069||6155<=n&&n<=6159||8288<=n&&n<=8292||8298<=n&&n<=8303||65024<=n&&n<=65039||917760<=n&&n<=917999||(i+=(n=65281<=(n=t)&&n<=65374?n-65248:160===n||5760===n||8239===n||8287===n||12288===n||8192<=n&&n<=8202||n<=65535&&-1<yh("¨¯´¸˘˙˚˛˜˝ͺ΄΅᾽᾿῀῁῍῎῏῝῞῟῭΅´῾‗‾⁇⁈⁉℀℁℅℆⩴゛゜ﱞﱟﱠﱡﱢﱣﷺﷻ︓︖﹇﹈﹉﹊﹋﹌﹕﹖﹟﹤﹥﹨﹪﹫ﹰﹲﹴﹶﹸﹺﹼﹾ ̄",uh(n))?32:n)===t?r[o]:uh(n))}return""===i?null:Zf(i)}(nh(u)))||ch(Th,u))return"Invalid host";if(function(){var e=vh(u,".");if(""===e[e.length-1]){if(1===e.length)return;e.length--}return ch(Oh,e=e[e.length-1])||ch(Ch,e)&&(""===(e=wh(e,2))||ch(xh,e))}()){if(null===(e=function(){var e,t,n,r,i,o,a,s=vh(u,".");if(s.length&&""===s[s.length-1]&&s.length--,4<(e=s.length))return null;for(t=[],n=0;n<e;n++){if(""===(r=s[n]))return null;if(i=10,1<r.length&&"0"===lh(r,0)&&(i=ch(Ch,r)?16:8,r=wh(r,8===i?1:2)),""===r)o=0;else{if(!ch(10===i?Oh:8===i?Rh:xh,r))return null;o=oh(r,i)}ph(t,o)}for(n=0;n<e;n++)if(o=t[n],n===e-1){if(o>=sh(256,5-e))return null}else if(255<o)return null;for(a=hh(t),n=0;n<t.length;n++)a+=t[n]*sh(256,3-n);return a}()))return"Invalid host";this.host=e}else this.host=u}else{if(ch(Ih,u))return"Invalid host";for(e="",t=Mu(u),n=0;n<t.length;n++)e+=Wh(t[n],Nh);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return M(Hh,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&qh(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=Lh(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),null===i&&!e.cannotBeABaseURL&&1<a.length&&""===a[0]&&(l+="/."),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+dh(a,"/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},setHref:function(e){e=this.parse(e);if(e)throw new ih(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new pp(this.path[0]).origin}catch(X){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+Lh(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(E(e)+":",Gh)},getUsername:function(){return this.username},setUsername:function(e){var t=Mu(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=Wh(t[n],zh)}},getPassword:function(){return this.password},setPassword:function(e){var t=Mu(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=Wh(t[n],zh)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Lh(e):Lh(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,np)},getHostname:function(){var e=this.host;return null===e?"":Lh(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,rp)},getPort:function(){var e=this.port;return null===e?"":E(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=E(e))?this.port=null:this.parse(e,ip))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+dh(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,up))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=E(e))?this.query=null:("?"===lh(e,0)&&(e=wh(e,1)),this.query="",this.parse(e,dp)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=E(e))?("#"===lh(e,0)&&(e=wh(e,1)),this.fragment="",this.parse(e,fp)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=dr(this,mp),n=1<Lc(arguments.length,1)?arguments[1]:undefined,e=Xf(t,new hp(e,!1,n));f||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),mp=pp.prototype,i=function(e,t){return{get:function(){return Qf(this)[e]()},set:t&&function(e){return Qf(this)[t](e)},configurable:!0,enumerable:!0}},Vr=(f&&(Wt(mp,"href",i("serialize","setHref")),Wt(mp,"origin",i("getOrigin")),Wt(mp,"protocol",i("getProtocol","setProtocol")),Wt(mp,"username",i("getUsername","setUsername")),Wt(mp,"password",i("getPassword","setPassword")),Wt(mp,"host",i("getHost","setHost")),Wt(mp,"hostname",i("getHostname","setHostname")),Wt(mp,"port",i("getPort","setPort")),Wt(mp,"pathname",i("getPathname","setPathname")),Wt(mp,"search",i("getSearch","setSearch")),Wt(mp,"searchParams",i("getSearchParams")),Wt(mp,"hash",i("getHash","setHash"))),Jt(mp,"toJSON",function(){return Qf(this).serialize()},{enumerable:!0}),Jt(mp,"toString",function(){return Qf(this).serialize()},{enumerable:!0}),ke&&(l=ke.createObjectURL,s=ke.revokeObjectURL,l&&Jt(pp,"createObjectURL",Kr(l,ke)),s)&&Jt(pp,"revokeObjectURL",Kr(s,ke)),wr(pp,"URL"),R({global:!0,constructor:!0,forced:!0,sham:!f},{URL:pp}),R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=ce(this),n=me(t),e=e===undefined?1:fe(e),r=mi(t,0);return Pl(r,t,t,n,0,e),r}}),rr("flat"),wi.f),gp=v(Vr),vp=v([].push),yp=f&&g(function(){var e=Object.create(null);return e[2]=2,!gp(e,2)}),Be=function(u){return function(e){for(var t,n=Ve(e),r=dt(n),i=yp&&null===fr(n),o=r.length,a=0,s=[];a<o;)t=r[a++],f&&!(i?t in n:gp(n,t))||vp(s,u?[t,n[t]]:n[t]);return s}},Ht={entries:Be(!0),values:Be(!1)},wp=Ht.values,bp=(R({target:"Object",stat:!0},{values:function(e){return wp(e)}}),new Set(Object.values({error:["js_error","promise_error","resource_error","api_error","blank_screen","no_response"],performance:["page_load","web_vitals","lag_detected","memory_usage","memory_oom"],network:["resource_load","api_call","sse_call"],custom:["custom"]}).flat()));function kp(e){new Set(Object.values(e).flat())}kp({error:["js_error","promise_error","resource_error","api_error"],performance:["page_load"],network:["resource_load","api_call"],custom:["custom"]}),kp({error:["crash","api_error"],performance:["app_launch","lag_detected"],network:["api_call","sse_call"],custom:["custom"]}),kp({error:["crash","api_error","no_response"],performance:["app_launch","lag_detected"],network:["api_call","sse_call"],custom:["custom"]}),kp({error:["js_error","promise_error","resource_error","api_error","blank_screen","crash"],performance:["page_load","web_vitals","lag_detected","no_response","app_metrics","process_signal","file_io"],network:["resource_load","api_call","sse_call"],custom:["custom"]});var _p={event:{enabled:!0,types:{}},replay:{enabled:!1,experience_sample_rate:0,error_traceback:!1,error_sample_rate:100}};function Sp(e){return e===undefined||null===e?"":String(e)}function Ep(r,e,i){return e.enabled&&e.conditions&&0!==e.conditions.length&&e.conditions.every(function(e){var t=e,e=function(e,t,n){if(t.startsWith("tags."))return r=t.slice("tags.".length),e.tags&&r in e.tags?e.tags[r]:undefined;if(t.startsWith("event_properties."))return r=t.slice("event_properties.".length),e.event_properties&&r in e.event_properties?e.event_properties[r]:undefined;if("page_path"===t){if(!n)return t in(r=e)&&r[t]!==undefined&&null!==r[t]?r[t]:undefined;if(!e.page_url)return undefined;try{return new URL(e.page_url).pathname}catch(ww){return undefined}}if("page_url"!==t)return t in(n=e)&&n[t]!==undefined&&null!==n[t]?n[t]:undefined;var r=e.page_url;if(r===undefined||null===r)return undefined;if(!(r=String(r)))return undefined;try{return decodeURIComponent(r)}catch(ww){return r}}(r,t.field,i);if(e===undefined)return!1;var n=Sp(e);switch(t.operator){case"equals":return n===Sp(t.value);case"not_equals":return n!==Sp(t.value);case"contains":return n.includes(Sp(t.value));case"not_contains":return!n.includes(Sp(t.value));case"starts_with":return n.startsWith(Sp(t.value));case"ends_with":return n.endsWith(Sp(t.value));case"in":return(Array.isArray(t.value)?t.value.map(Sp):[]).includes(n);case"not_in":return!(Array.isArray(t.value)?t.value.map(Sp):[]).includes(n);default:return!1}})}function Cp(e,t,n,r){var i,o,a,s;void 0===t&&(t=_p),void 0===n&&(n=Math.random),void 0===r&&(r={});try{if(null==(i=null==t?void 0:t.event)||!i.enabled)return!1;for(var u=null!=(o=r.closedSet)?o:bp,l=!1!==r.derivePagePath,c=(a=t,s=e.event_type,u.has(s)&&(null==(a=null==(a=a.event)?void 0:a.types)?void 0:a[s])||{sample_rate:100,rules:[]}),d=c.sample_rate,f=0,h=c.rules||[];f<h.length;f++){var p=h[f];if(p.enabled&&Ep(e,p,l)){d=p.sample_rate;break}}return 100<=d||!(d<=0)&&100*n()<d}catch(z){return!0}}function Rp(e){e=null==(e=e)?void 0:e._tdemSampleGate;return!!e&&e.isDecided&&e.isSampled}function Op(e,t){var n=e.data||{},r=t.bean||{};return{event_type:String(e.event_type||""),event_category:e.event_category,event_name:e.event_name||n.event_name,page_url:e.page_url,user_id:r.user_id||t.config.userId,device_id:r.device_id||t.config.aid,env:t.config.env,version:String(null!=(t=null!=(t=t.config.version)?t:r.app_version)?t:""),tags:n.tags||e.tags,event_properties:n.event_properties||n.properties||n}}function xp(e){return e._tdemSampleConfig||null}function Tp(e){return e._tdemSampleEvaluateOptions||{}}var Ip=function(){},Mp=function(n){if(n&&n.reduce&&n.length)return 1===n.length?function(e,t){n[0](e,t||Ip)}:n.reduce(function(n,r){return function(e,t){return void 0===t&&(t=Ip),n(e,function(e){return null==r?void 0:r(e,t)})}});throw new TypeError("createPipeline need at least one function param")},Ap=(R({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Ve(e),i=sr.f,o=ar(r),a={},s=0;o.length>s;)(n=i(r,t=o[s++]))!==undefined&&Kn(a,t,n);return a}}),function(t,n){Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof t[e]&&"constructor"!==e&&(n?n[e]="sendPipeline"===e?function(){return function(){}}:function(){}:t[e]=function(){})})}),Pp={low:1,medium:3,high:5},Dp=new Set(["custom_struggle_name","form_id","field_id","trigger_event_id","struggle_status","struggle_owner_type","struggle_owner_key","detection_source","rule_version"]),Lp={rage_click:3,dead_click:4,error_click:4,form_validation_error:3,slow_page:3,back_forward:2,long_focus_time:2,form_zigzag:2,uncompleted_form:3,custom_struggle:3},Np={rage_click:4,dead_click:5,error_click:5,form_validation_error:4,slow_page:4,back_forward:3,long_focus_time:3,form_zigzag:3,uncompleted_form:3,custom_struggle:3},Fp=(y.use=function(e){-1===y.installedPlugins.indexOf(e)&&e.tdemPlugin&&y.installedPlugins.push(e)},y.unuse=function(e){e=y.installedPlugins.indexOf(e);-1!==e&&y.installedPlugins.splice(e,1)},y.prototype.getInternalTransport=function(){return this.internalTransport},y.prototype.setInternalTransport=function(e){this.internalTransport=e},y.prototype.getInternalRetrySchedule=function(){return this.internalRetrySchedule},y.prototype.transportRequest=function(t,n){return _l(this,void 0,void 0,function(){return Sl(this,function(e){switch(e.label){case 0:if(this.internalTransport)return[4,this.internalTransport.request(t,n)];throw new Error("Internal Transport is not configured");case 1:return[2,e.sent()||{ok:!0,request:t}]}})})},y.prototype.transportHandoff=function(t,n){return _l(this,void 0,void 0,function(){return Sl(this,function(e){switch(e.label){case 0:if(this.internalTransport)return[4,(this.internalTransport.handoff||this.internalTransport.request).call(this.internalTransport,A(A({},t),{handoff:!0}),n)];throw new Error("Internal Transport is not configured");case 1:return[2,e.sent()||{ok:!0,request:t,handoffAccepted:!0}]}})})},y.prototype.init=function(e){this.setConfig(e),this.config=Rl(this.config,e.hostUrl);for(var t=0;t<y.installedPlugins.length;t++)try{y.installedPlugins[t].patch(this)}catch(C){this.sendSDKError(C)}this.lifeCycle.emit("onInited")},y.prototype.destroy=function(e){void 0===e&&(e=!1);var t,n,r=y.instances.indexOf(this);-1!==r&&y.instances.splice(r,1);for(var i=y.installedPlugins.length-1;0<=i;i--)try{y.installedPlugins[i].unpatch(this)}catch(Ae){this.sendSDKError(Ae)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach(function(e){n[e].writable&&(t[e]=null)}),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&Ap(o,this),o=Object.getPrototypeOf(o););0===y.instances.length&&(r=Object.getPrototypeOf(this).constructor,Ap(r),Ap(y))}},y.prototype.setConfig=function(e){Object.assign(this.config,e);var e=this.config,t=e.id,n=e.uin,r=e.version,i=e.aid,o=e.env,a=e.pageUrl,e=e.userId||(n!==undefined&&null!==n?String(n):""),n=this.bean.id!==t||this.bean.uin!==e||this.bean.aid!==i;return this.bean.id=t||"",this.bean.uin=e,this.bean.version=r||"1.0.15",this.bean.aid=i||"",this.bean.env=Mc(o),a&&this.extendBean("from",encodeURIComponent(a.slice(0,2048))),n&&this.lifeCycle.emit("onConfigChange",this.config),this.config},y.prototype.extendBean=function(e,t){this.bean[e]=t},y.prototype.send=function(e,i,o){var t=this;return Mp([qc(this),Wc(this,null==e?void 0:e.type),function(n,r){t.request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!1,result:e,logType:n.type,logs:n.log}),null!=i&&i.apply(void 0,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!0,result:e,logType:n.type,logs:n.log}),null!=o&&o.apply(void 0,e)})},Vc(this)])(e)},y.prototype.sendSDKError=function(e){var n=this;this.sendPipeline([function(e,t){t({url:n.config.url+"?id=1085&msg[0]="+encodeURIComponent(wc(e))+"&level[0]=2&from="+n.config.id+"&count=1&version="+n.config.id+"(1.0.15)",addBean:!1,method:"get",type:uc.SDK_ERROR,log:e})}],uc.SDK_ERROR)(e)},y.prototype.sendPipeline=function(e,t){var n,o=this;return Mp(El([function(e,t){if(e&&e.type===uc.EVENT)return t(e);if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||t(e);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,t(e);n.isHidden=!0}},Hc(n=this,t)],e,[Wc(this,t),qc(this),function(r,i){o.request(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;-1<(""+e[o.failRequestCount=0]).indexOf("403 forbidden")&&(n=!0,o.destroy()),i({isErr:n,result:e,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(n=null==r?void 0:r.success)&&n.call.apply(n,El([r],e))},function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];60<=++o.failRequestCount&&o.destroy(),-1<(""+t[0]).indexOf("403 forbidden")&&o.destroy(),i({isErr:!0,result:t,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(e=null==r?void 0:r.fail)&&e.call.apply(e,El([r],t))})},Vc(this)]))},y.prototype.track=function(e,t){void 0===t&&(t={}),e&&"string"==typeof e?(e={event_id:Ac(),event_type:P.CUSTOM,event_category:Ic.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(),data:{event_name:e,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(t.properties)}},this.reportTDEMEvent(e)):console.warn("track: name must be a non-empty string")},y.prototype.trackStruggle=function(e,t){void 0===t&&(t={});var n,e="string"==typeof e?e.trim():"";!e||128<e.length?console.warn("trackStruggle: name must be a non-empty string limited to 128 characters"):(n=t.severity||"medium",(n=Pp[n])?this.reportStruggle({type:"custom_struggle",ownerType:"business",ownerKey:e,severity:n,detectionSource:"custom",ruleVersion:"custom-v1",tags:t.tags,properties:A(A({},t.properties||{}),{custom_struggle_name:e})}):console.warn("trackStruggle: severity must be low, medium, or high"))},y.prototype.reportTDEMEvent=function(e){var r,t,n,i=this,e=Array.isArray(e)?e:[e];e.length&&(r="string"==typeof(n=(t=this).viewId)&&n.trim()?n.trim():"string"==typeof(t=null==(n=t.bean)?void 0:n.viewId)&&t.trim()?t.trim():"",n=e.map(function(e){var t,n="string"!=typeof e.view_id&&r?A(A({},e),{view_id:r}):e,n=A(A({},n),{page_url:n.page_url||i.getCurrentEventPageUrl(),data:A(A(A({},n.data),wd(e)!==undefined||null!=(t=n.data)&&t.replay_id||!i.getCurrentReplayId()?{}:{replay_id:i.getCurrentReplayId()}),i.mergeEventTags(null==(t=n.data)?void 0:t.tags)?{tags:i.mergeEventTags(null==(t=n.data)?void 0:t.tags)}:{})});return yd(n,null!=(t=wd(e))?t:vd(i)),n}),this.lifeCycle.emit("tdemEventCreated",n),this.tdemEventPipeline(n))},y.prototype.measure=function(e,t,n){void 0===n&&(n={}),e&&"string"==typeof e?"number"==typeof t?t<0||2147483646<t?console.warn("measure: duration must between 0 and 2147483646"):this.submitMeasure(e,t,n):console.warn("measure: duration must be a number"):console.warn("measure: name must be a non-empty string")},y.prototype.startMeasure=function(e){"string"==typeof e&&e?this.timeMap[e]?console.warn("Measure "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("startMeasure: name must be a non-empty string")},y.prototype.endMeasure=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n=this.getTimeEventDuration(e))!==undefined?(this.submitMeasure(e,n,t),delete this.timeMap[e]):console.warn("Measure "+e+" does not exist"):console.warn("endMeasure: name must be a non-empty string")},y.prototype.captureMessage=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n="error"===t.level?"error":"warn"===t.level?"warn":"info",n={event_id:Ac(),event_type:P.LOG,event_category:Ic.LOG,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{log_level:n,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(A({message:e},t.properties||{}))}},this.reportTDEMEvent(n)):console.warn("captureMessage: message must be a non-empty string")},y.prototype.captureException=function(e,t){void 0===t&&(t={});var e="string"==typeof e?new Error(e):e;e instanceof Error?(e={event_id:Ac(),event_type:P.JS_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{exception_stacks:[{type:e.name||"Error",value:e.message,mechanism_type:"manual",mechanism_handled:1}],exception_frames:Pc(e),replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(A(A({},t.properties||{}),t.level?{capture_level:t.level}:{}))}},this.reportTDEMEvent(e)):console.warn("captureException: error must be an Error or string")},y.prototype.setTags=function(e){e=this.sanitizeEventTags(e);this.setConfig({defaultTags:A(A({},this.config.defaultTags||{}),e||{})})},y.prototype.removeTags=function(e){var t,e=Array.isArray(e)?e:[e];e.length&&(t=A({},this.config.defaultTags||{}),e.forEach(function(e){delete t[e]}),this.setConfig({defaultTags:t}))},y.prototype.clearTags=function(){this.setConfig({defaultTags:{}})},y.prototype.setUser=function(e){"string"==typeof e&&e?this.setConfig({userId:e}):console.warn("setUser: userId must be a non-empty string")},y.prototype.clearUser=function(){this.setConfig({userId:"",uin:""})},y.prototype.reportStruggle=function(e){var t,n,r,i;e&&e.type&&e.ownerType&&e.ownerKey?(t=e.type,n="number"==typeof e.severity?e.severity:Lp[t],r="number"==typeof e.weight?e.weight:Np[t],i=A(A({event_id:Ac(),event_type:P.STRUGGLE,event_category:Ic.BEHAVIOR,timestamp:null!=(i=null==(i=e.sourceContext)?void 0:i.timestamp)?i:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl)},e.sourceContext?{view_id:e.sourceContext.viewId}:{}),{data:{event_name:t,replay_id:null!=(t=null==(i=e.sourceContext)?void 0:i.replayId)?t:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:!1,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),struggle_weight:r,struggle_severity:n,struggle_value:"number"==typeof e.value?e.value:r*n,event_properties:A(A({},this.sanitizeStruggleProperties(e.properties)),{form_id:e.formId||"",field_id:e.fieldId||"",trigger_event_id:e.triggerEventId||"",struggle_status:e.status||"detected",struggle_owner_type:e.ownerType,struggle_owner_key:e.ownerKey,detection_source:e.detectionSource||"sdk_auto",rule_version:e.ruleVersion||this.getDefaultRuleVersion()})}}),e.sourceContext&&yd(i,e.sourceContext.sessionId),this.reportTDEMEvent(i)):console.warn("reportStruggle params error")},y.prototype.reportFormSubmitResult=function(e){e&&e.status?(e={event_id:Ac(),event_type:P.FORM_SUBMIT_RESULT,event_category:Ic.BEHAVIOR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl),data:{event_name:e.eventName||"form_submit_"+e.status,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:"boolean"!=typeof e.isEffectiveAction||e.isEffectiveAction,trigger_event_id:e.triggerEventId,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),validation_message:e.validationMessage?e.validationMessage.slice(0,256):undefined,event_properties:{status:e.status,validation_code:e.validationCode||"",form_id:e.formId||"",field_id:e.fieldId||""}}},this.reportTDEMEvent(e)):console.warn("reportFormSubmitResult params error")},y.prototype.reportPageView=function(e,t){void 0===t&&(t={});e=this.getCurrentEventPageUrl(e||t.pageUrl),e={event_id:Ac(),event_type:P.PAGE_VIEW,event_category:Ic.BEHAVIOR,timestamp:Date.now(),page_url:e,data:{page_title:t.pageTitle||"",referrer:t.referrer,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(A(A(A(A(A(A(A({},t.properties||{}),t.navigationType?{navigation_type:t.navigationType}:{}),t.fromPage?{from_page:t.fromPage}:{}),t.toPage?{to_page:t.toPage}:{}),"boolean"==typeof t.isFirstVisit?{is_first_visit:t.isFirstVisit?"1":"0"}:{}),"boolean"==typeof t.isFirstLoad?{is_first_load:t.isFirstLoad?"1":"0"}:{}),t.deviceType?{device_type:t.deviceType}:{}))}};this.reportTDEMEvent(e)},y.prototype.setPage=function(e,t){var n;e&&"string"==typeof e?(n=this._customPageUrl||this.getCurrentEventPageUrl(),this._customPageUrl=e,this.reportPageView(e,{pageTitle:null==t?void 0:t.pageTitle,navigationType:"push",fromPage:(n||"").slice(0,512),toPage:e.slice(0,512),isFirstVisit:!1,tags:A({source:"manual",environment:this.config.env||"production",version:String(this.config.version||"")},null!=t&&t.pageGroup?{page_group:t.pageGroup}:{})}),this.lifeCycle.emit("pageChanged",{pageUrl:e,previousUrl:n,source:"manual"})):console.warn("setPage: pageUrl must be a non-empty string")},y.prototype.leavePage=function(){var e;this._customPageUrl&&(e=this._customPageUrl,this._customPageUrl=null,this.lifeCycle.emit("pageChanged",{pageUrl:this.getCurrentEventPageUrl(),previousUrl:e,source:"auto"}))},y.prototype.getCurrentEventPageUrl=function(e){if(e)return e;if(this._customPageUrl)return this._customPageUrl;try{return this.getOriginFrom()}catch(De){return this.config.pageUrl||"undefined"!=typeof window&&(null==(e=window.location)?void 0:e.href)||""}},y.prototype.getCurrentReplayId=function(){var e,t;return String((null==(t=null==(e=null==(t=this.sessionManager)?void 0:t.getSession)?void 0:e.call(t))?void 0:t.replayId)||"")},y.prototype.getDefaultRuleVersion=function(){var e;return(null==(e=null==(e=this.config)?void 0:e.struggleMonitor)?void 0:e.ruleVersion)||"1.0.0"},y.prototype.getEventReplayId=function(e){return e||this.getCurrentReplayId()||undefined},y.prototype.mergeEventTags=function(e){return this.sanitizeEventTags(A(A(A({},this.config.defaultTags||{}),e||{}),{environment:Mc(this.config.env)}))},y.prototype.sanitizeStringMap=function(n,r){var i;return void 0===r&&(r=1024),n&&"object"===T(n)&&(i={},Object.keys(n).forEach(function(e){var t=n[e];e&&t!==undefined&&null!==t&&(i[String(e)]=String(t).slice(0,r))}),Object.keys(i).length)?i:undefined},y.prototype.sanitizeEventTags=function(e){return this.sanitizeStringMap(e,1024)},y.prototype.sanitizeEventProperties=function(e){return this.sanitizeStringMap(e,1024)},y.prototype.sanitizeStruggleProperties=function(e){var n=this.sanitizeEventProperties(e);return n?Object.keys(n).reduce(function(e,t){return Dp.has(t)&&"custom_struggle_name"!==t||(e[t]=n[t]),e},{}):undefined},y.prototype.sanitizeEventPayload=function(n,e){var r,i=this;return n&&"object"===T(n)&&(e=(e=this.getPayloadAllowlist(e)).length?e:Object.keys(n),r={},e.forEach(function(e){var t;Object.prototype.hasOwnProperty.call(n,e)&&(t=i.sanitizePayloadValue(n[e]))!==undefined&&(r[e]=t)}),Object.keys(r).length)?r:undefined},y.prototype.sanitizePayloadValue=function(n,r){var i=this;if(void 0===r&&(r=0),n===undefined||null===n)return undefined;if("string"==typeof n)return n.slice(0,256);if("number"==typeof n||"boolean"==typeof n)return n;if(Array.isArray(n))return n.slice(0,10).map(function(e){e=i.sanitizePayloadValue(e,r+1);return e===undefined?null:e});if("object"!==T(n))return String(n).slice(0,256);if(2<=r)try{return JSON.stringify(n).slice(0,256)}catch(ww){return undefined}var o={};return Object.keys(n).slice(0,20).forEach(function(e){var t=i.sanitizePayloadValue(n[e],r+1);t!==undefined&&(o[e]=t)}),Object.keys(o).length?o:undefined},y.prototype.getPayloadAllowlist=function(e){var t=null==(t=null==(t=this.config)?void 0:t.struggleMonitor)?void 0:t.payloadAllowlist;return Array.from(new Set(El(Array.isArray(t)?t:[],Array.isArray(e)?e:[]).filter(function(e){return!!e})))},y.prototype.normalizeRelatedEventIds=function(e){return Array.isArray(e)&&e.length&&(e=Array.from(new Set(e.filter(function(e){return"string"==typeof e&&e})))).length?e:undefined},y.prototype.ready=function(e,t,n){throw new Error('You need to override "ready" method')},y.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},y.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},y.prototype.getOriginFrom=function(){throw new Error('You need to override "getOriginFrom" method')},Object.defineProperty(y.prototype,"__version__",{get:function(){return"1.0.15"},enumerable:!1,configurable:!0}),y.prototype.submitMeasure=function(e,t,n){void 0===n&&(n={});e={event_id:Ac(),event_type:P.CUSTOM,event_category:Ic.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(n.pageUrl),data:{event_name:e,measurements:{duration:t},replay_id:this.getEventReplayId(n.replayId),tags:this.sanitizeEventTags(n.tags),payload:this.sanitizeEventPayload(n.payload),event_properties:this.sanitizeEventProperties(n.properties)}};this.reportTDEMEvent(e)},y.prototype.getTimeEventDuration=function(e){return e!==undefined&&this.timeMap[e]?Date.now()-this.timeMap[e]:undefined},y.version="1.0.15",y.instances=[],y.environment=xc,y.installedPlugins=[],y),u=(Up.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewTdem(e))},Up.prototype.unpatch=function(e){var t=this.instances.indexOf(e);-1!==t&&(this.instances.splice(t,1),0===this.instances.length)&&this.uninstall(e)},Up.prototype.countInstance=function(){return this.instances.length},Up.prototype.uninstall=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this,[e])},Up.prototype.walk=function(n){var r=this;this.instances.forEach(function(e){var t=r.canUse(e);t&&n(e,t)})},Up.prototype.canUse=function(e){e=this.getConfig(e);return!(!e||"object"!==T(e))||!!e},Up.prototype.getConfig=function(e){return null==(e=e.config)?void 0:e[this.name]},Up.prototype.exist=function(e){return-1===this.instances.indexOf(e)},Up.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null==(t=null==(t=this.option)?void 0:t.init))||t.call(this.option,this.getConfig(e))},Up.prototype.triggerOnNewTdem=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.onNewTdem)&&t.call(this.option,e,this.getConfig(e))},Up);function Up(e){this.tdemPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}function y(e,t){var i,o,a,s,n,u,r,l,c,d,f,h,p,m;void 0===t&&(t={}),this.sdkName="tdem-web-sdk",this.sdkVersion=y.version,this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:60,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,lagMonitor:!0,blankScreen:!0,memoryMonitor:!0,speedSample:!0,onClose:!0,reportLoadPackageSpeed:!0,env:"production",url:"",reportImmediately:!0,tdemConfig:!0,hostUrl:"https://dem.rumt-zh.com",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",performanceUrlForHippy:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:""},this.isWhiteList=!1,this.lifeCycle=new Ul,this.bean={},this.internalRetrySchedule=Tc,this._customPageUrl=null,this.tdemEventPipeline=Mp([(a=o=!1,s=[],n=function(e,t){var n,r;Array.isArray(e)&&0===e.length?t(e):(n=xp(i))?Array.isArray(e)?(r=e.filter(function(e){return Cp(Op(e,i),n,Math.random,Tp(i))})).length&&t(r):Cp(Op(e,i),n,Math.random,Tp(i))&&t(e):o?a&&t(e):s.length<1e3&&s.push({event:e,resolve:t})},(i=this)._tdemSampleGate={decide:function(e){o=!0,a=e;e=s;s=[],xp(i)?e.forEach(function(e){var t=e.event;return n(t,e.resolve)}):a&&e.forEach(function(e){var t=e.event;return(0,e.resolve)(t)})},reDecide:function(e){return!!xp(i)||(e<=0?a=!1:100<=e?a=!0:a=100*Math.random()<e)},get isDecided(){return o||!!xp(i)},get isSampled(){return a}},function(e,t){n(e,t)}),(r=this,l=20,f=Math.max(Number(l)||1,1),h=[],m=!(p=function(){return undefined}),function(e,t){var e=Array.isArray(e)?e:[e],n=(h.push.apply(h,e),function(){for(clearTimeout(c),clearTimeout(d),c=undefined,d=undefined;0<h.length;)t(h.splice(0,f))});p=n,!m&&e.some(function(e){return e.event_type===P.PAGE_VIEW})?(m=!0,n()):r.sendNow&&0<h.length?n():0!==e.length?f<=h.length?n():0!==h.length&&(clearTimeout(c),c=setTimeout(function(){0<h.length&&p()},5e3),d=d||setTimeout(function(){0<h.length&&p()},3e4)):0<h.length&&n()}),function(e,t){try{var n,r=JSON.parse(JSON.stringify(e)),i=(u.lifeCycle.emit("beforeReport",r),u.config.beforeReport);"function"==typeof i?0<(n=e.filter(function(e){return!1!==i(e)})).length&&t(n):t(e)}catch(N){t(e)}},bd(u=this)]),this.timeMap={},this.failRequestCount=0,this.internalTransport=t.transport,this.internalRetrySchedule=t.retrySchedule||Tc,y.instances.push(this)}var jp,Bp,Ut=/ipad|iphone|ipod/i.test(Vn)&&/applewebkit/i.test(Vn),r=x.setImmediate,a=x.clearImmediate,zp=x.process,Wp=x.Dispatch,Hp=x.Function,i=x.MessageChannel,qp=x.String,Vp=0,Gp={},Jp=(g(function(){jp=x.location}),function(e){var t;M(Gp,e)&&(t=Gp[e],delete Gp[e],t())}),Kp=function(e){return function(){Jp(e)}},l=function(e){Jp(e.data)},s=function(e){x.postMessage(qp(e),jp.protocol+"//"+jp.host)},Be=(r&&a||(r=function(e){Lc(arguments.length,1);var t=oe(e)?e:Hp(e),n=$n(arguments,1);return Gp[++Vp]=function(){Ue(t,undefined,n)},Bp(Vp),Vp},a=function(e){delete Gp[e]},hl?Bp=function(e){zp.nextTick(Kp(e))}:Wp&&Wp.now?Bp=function(e){Wp.now(Kp(e))}:i&&!Ut?(Vr=(ke=new i).port2,ke.port1.onmessage=l,Bp=Kr(Vr.postMessage,Vr)):x.addEventListener&&oe(x.postMessage)&&!x.importScripts&&jp&&"file:"!==jp.protocol&&!g(s)?(Bp=s,x.addEventListener("message",l,!1)):Bp="onreadystatechange"in be("script")?function(e){kt.appendChild(be("script")).onreadystatechange=function(){kt.removeChild(this),Jp(e)}}:function(e){setTimeout(Kp(e),0)}),{set:r,clear:a}),i=function(){this.head=null,this.tail=null};i.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var $p,Zp,Yp,Xp,Qp,em,tm=i,ke=/ipad|iphone|ipod/i.test(Vn)&&"undefined"!=typeof Pebble,Vr=/web0s(?!.*chrome)/i.test(Vn),nm=Be.set,s=x.MutationObserver||x.WebKitMutationObserver,l=x.document,rm=x.process,r=x.Promise,a=Ur("queueMicrotask"),im=(a||(Xp=new tm,Qp=function(){var e,t;for(hl&&(e=rm.domain)&&e.exit();t=Xp.get();)try{t()}catch(X){throw Xp.head&&em(),X}e&&e.enter()},em=Ut||hl||Vr||!s||!l?!ke&&r&&r.resolve?((i=r.resolve(undefined)).constructor=r,Yp=Kr(i.then,i),function(){Yp(Qp)}):hl?function(){rm.nextTick(Qp)}:(nm=Kr(nm,x),function(){nm(Qp)}):($p=!0,Zp=l.createTextNode(""),new s(Qp).observe(Zp,{characterData:!0}),function(){Zp.data=$p=!$p}),a=function(e){Xp.head||em(),Xp.add(e)}),a),om=function(e){try{return{error:!1,value:e()}}catch(X){return{error:!0,value:X}}},am=x.Promise,sm=TypeError,um=function(e){var n,r;this.promise=new e(function(e,t){if(n!==undefined||r!==undefined)throw new sm("Bad Promise constructor");n=e,r=t}),this.resolve=Fe(n),this.reject=Fe(r)},lm={f:function(e){return new um(e)}},cm=function(e,t){return S(e),O(t)&&t.constructor===e?t:((0,(e=lm.f(e)).resolve)(t),e.promise)},dm=am&&am.prototype,Ur=!!am&&g(function(){dm["finally"].call({then:function(){}},function(){})});R({target:"Promise",proto:!0,real:!0,forced:Ur},{"finally":function(t){var n=mu(this,Re("Promise")),e=oe(t);return this.then(e?function(e){return cm(n,t()).then(function(){return e})}:t,e?function(e){return cm(n,t()).then(function(){throw e})}:t)}}),oe(am)&&(Ut=Re("Promise").prototype["finally"],dm["finally"]!==Ut)&&Jt(dm,"finally",Ut,{unsafe:!0}),am&&am.prototype;var fm,hm,pm,mm,gm=et("species"),vm=!1,ym=oe(x.PromiseRejectionEvent),Vr={CONSTRUCTOR:zs("Promise",function(){var e=Qe(am),t=e!==String(am);if(!t&&66===Gn)return!0;if(!Gn||Gn<51||!/native code/.test(e)){var e=new am(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[gm]=n,!(vm=e.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!=fl&&"DENO"!=fl||ym)}),REJECTION_EVENT:ym,SUBCLASSING:vm},wm=Be.set,ke=Vr.CONSTRUCTOR,bm=Vr.REJECTION_EVENT,r=Vr.SUBCLASSING,km=Bt.getterFor("Promise"),_m=Bt.set,i=am&&am.prototype,Sm=am,Em=i,Cm=x.TypeError,Rm=x.document,Om=x.process,xm=lm.f,Tm=xm,Im=!!(Rm&&Rm.createEvent&&x.dispatchEvent),Mm=function(e){var t;return!(!O(e)||!oe(t=e.then))&&t},Am=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&Fm(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?l(new Cm("Promise-chain cycle")):(r=Mm(n))?I(r,n,u,l):u(n)):l(o)}catch(X){c&&!i&&c.exit(),l(X)}},Pm=function(n,r){n.notified||(n.notified=!0,im(function(){for(var e,t=n.reactions;e=t.get();)Am(e,n);n.notified=!1,r&&!n.rejection&&Lm(n)}))},Dm=function(e,t,n){var r;Im?((r=Rm.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),x.dispatchEvent(r)):r={promise:t,reason:n},!bm&&(t=x["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(X){}}("Unhandled promise rejection",n)},Lm=function(r){I(wm,x,function(){var e,t=r.facade,n=r.value;if(Nm(r)&&(e=om(function(){hl?Om.emit("unhandledRejection",n,t):Dm("unhandledrejection",t,n)}),r.rejection=hl||Nm(r)?2:1,e.error))throw e.value})},Nm=function(e){return 1!==e.rejection&&!e.parent},Fm=function(t){I(wm,x,function(){var e=t.facade;hl?Om.emit("rejectionHandled",e):Dm("rejectionhandled",e,t.value)})},Um=function(t,n,r){return function(e){t(n,e,r)}},jm=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,Pm(e,!0))},Bm=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw new Cm("Promise can't be resolved itself");var r=Mm(n);r?im(function(){var e={done:!1};try{I(r,n,Um(Bm,e,t),Um(jm,e,t))}catch(X){jm(e,X,t)}}):(t.value=n,t.state=1,Pm(t,!1))}catch(X){jm({done:!1},X,t)}}};if(ke&&(Em=(Sm=function(e){dr(this,Em),Fe(e),I(fm,this);var t=km(this);try{e(Um(Bm,t),Um(jm,t))}catch(X){jm(t,X)}}).prototype,(fm=function(e){_m(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new tm,rejection:!1,state:0,value:null})}).prototype=Jt(Em,"then",function(e,t){var n=km(this),r=xm(mu(this,Sm));return n.parent=!0,r.ok=!oe(e)||e,r.fail=oe(t)&&t,r.domain=hl?Om.domain:undefined,0===n.state?n.reactions.add(r):im(function(){Am(r,n)}),r.promise}),hm=function(){var e=new fm,t=km(e);this.promise=e,this.resolve=Um(Bm,t),this.reject=Um(jm,t)},lm.f=xm=function(e){return e===Sm||e===pm?new hm:Tm(e)},oe(am))&&i!==Object.prototype){mm=i.then,r||Jt(i,"then",function(e,t){var n=this;return new Sm(function(e,t){I(mm,n,e,t)}).then(e,t)},{unsafe:!0});try{delete i.constructor}catch(X){}Or&&Or(i,Em)}R({global:!0,constructor:!0,wrap:!0,forced:ke},{Promise:Sm}),pm=ki.Promise,wr(Sm,"Promise",!1),Ma("Promise");var l=Vr.CONSTRUCTOR||!Au(function(e){am.all(e).then(undefined,function(){})}),s=(R({target:"Promise",stat:!0,forced:l},{all:function(e){var s=this,t=lm.f(s),u=t.resolve,l=t.reject,n=om(function(){var r=Fe(s.resolve),i=[],o=0,a=1;si(e,function(e){var t=o++,n=!1;a++,I(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||u(i)},l)}),--a||u(i)});return n.error&&l(n.value),t.promise}}),Vr.CONSTRUCTOR),a=am&&am.prototype,Ut=(R({target:"Promise",proto:!0,forced:s,real:!0},{"catch":function(e){return this.then(undefined,e)}}),oe(am)&&(Ur=Re("Promise").prototype["catch"],a["catch"]!==Ur)&&Jt(a,"catch",Ur,{unsafe:!0}),R({target:"Promise",stat:!0,forced:l},{race:function(e){var n=this,r=lm.f(n),i=r.reject,t=om(function(){var t=Fe(n.resolve);si(e,function(e){I(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),R({target:"Promise",stat:!0,forced:Vr.CONSTRUCTOR},{reject:function(e){var t=lm.f(this);return(0,t.reject)(e),t.promise}}),Vr.CONSTRUCTOR),zm=(Re("Promise"),R({target:"Promise",stat:!0,forced:Ut},{resolve:function(e){return cm(this,e)}}),["req_dial_links","req_dial_links_truncated","dns_dial_links","dns_dial_links_truncated"]),Wm=function(n){var r={};return n&&"object"===T(n)&&zm.forEach(function(e){var t=n[e];"string"==typeof t&&""!==t&&(r[e]=t)}),r},Be=new u({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("TDEM_ID");t||(t=Zc(),window.localStorage.setItem("TDEM_ID",t)),this.aid=t}catch(_){}},onNewTdem:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),Hm=RangeError,qm=String,Vm=Math.floor,Gm=v(Gr),Jm=v("".slice),Km=v(1.1.toFixed),$m=function(e,t,n){return 0===t?n:t%2==1?$m(e,t-1,n*e):$m(e*e,t/2,n)},Zm=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=Vm(i/1e7)},Ym=function(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=Vm(r/t),r=r%t*1e7},Xm=function(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=qm(e[n]),r=""===r?t:r+Gm("0",7-t.length)+t);return r},r=g(function(){return"0.000"!==Km(8e-5,3)||"1"!==Km(.9,0)||"1.25"!==Km(1.255,2)||"1000000000000000128"!==Km(0xde0b6b3a7640080,0)})||!g(function(){Km({})}),Qm=(R({target:"Number",proto:!0,forced:r},{toFixed:function(e){var t,n,r,i=Oo(this),e=fe(e),o=[0,0,0,0,0,0],a="",s="0";if(e<0||20<e)throw new Hm("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||1e21<=i)return qm(i);if(i<0&&(a="-",i=-i),1e-21<i)if(r=(t=function(){for(var e=0,t=i*$m(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?i*$m(2,-t,1):i/$m(2,t,1),r*=4503599627370496,0<(t=52-t)){for(Zm(o,0,r),n=e;7<=n;)Zm(o,1e7,0),n-=7;for(Zm(o,$m(10,n,1),0),n=t-1;23<=n;)Ym(o,1<<23),n-=23;Ym(o,1<<n),Zm(o,1,1),Ym(o,2),s=Xm(o)}else Zm(o,0,r),Zm(o,1<<-t,0),s=Xm(o)+Gm("0",e);return 0<e?a+((r=s.length)<=e?"0."+Gm("0",e-r)+s:Jm(s,0,r-e)+"."+Jm(s,r-e)):a+s}}),function(t){return"string"!=typeof t||!t||xl.some(function(e){return-1<t.indexOf(e)})||Ol.some(function(e){return-1<t.indexOf(e)})}),eg=function(){return"undefined"!=typeof window.performance&&"function"==typeof performance.getEntriesByType&&"function"==typeof performance.now};function tg(e){return e=e.sessionManager,[(null==(e=null==(t=null==e?void 0:e.getSession)?void 0:t.call(e))?void 0:e.replayId)||"",null==e||e.id,!e||e.sampled,null==e||e.sampled][0];var t}var ng=new u({name:"assets"}),i=ng=new u({name:"assets",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},onNewTdem:function(e){var t=this;eg()&&(setTimeout(function(){t.collectSuccessLog(e),t.collectFailLog(e)},5e3),performance.onresourcetimingbufferfull=function(){"function"==typeof performance.clearResourceTimings&&(t.collectCur=0,performance.clearResourceTimings())})},processLog:function(e,t){var n=t.duration||0,r=t.transferSize||0,n={event_id:Ac(),event_type:P.RESOURCE_LOAD,event_category:Ic.NETWORK,timestamp:Date.now(),page_url:t.from||window.location.href,data:{url:t.url,resource_type:t.type||"static",measurements:{duration:n,dns_time:t.domainLookup,tcp_time:t.connectTime,transfer_size:0<r?r:undefined},replay_id:tg(e),tags:{environment:e.config.env||"production",is_https:t.isHttps?"true":"false"},event_properties:{is_cached:String(0===r),protocol:t.nextHopProtocol||"",http_status:String(t.status||0)}}};null!=(r=e.reportTDEMEvent)&&r.call(e,n)},publish:function(t,n){var r=this;this.$walk(function(e){e===n&&(Array.isArray(t)?t.forEach(r.processLog):r.processLog(n,t))})},publishMany:function(e,t){for(var n=t.config,r=this.getFromParam(t),i=0,o=e.length;i<o;i++){var a=e[i];-1===this.ASSETS_INITIATOR_TYPE.indexOf(a.initiatorType)||Oc(a.name,n.hostUrl)||this.publish(this.generateLog(a,n,r),t)}},collectSuccessLog:function(n){var e,t,r=this;"function"==typeof window.PerformanceObserver?(this.publishMany(performance.getEntriesByType(this.collectEntryType),n),(e=new window.PerformanceObserver(function(e){r.publishMany(e.getEntries(),n)})).observe({entryTypes:[this.collectEntryType]}),n.lifeCycle.on("destroy",function(){0===ng.countInstance()&&e.disconnect()})):(t=setInterval(function(){var e=performance.getEntriesByType(r.collectEntryType),t=e.slice(r.collectCur);r.collectCur=e.length,r.publishMany(t,n)},3e3),n.lifeCycle.on("destroy",function(){0===ng.countInstance()&&clearInterval(t)}))},collectFailLog:function(i){var o=this,a=i.config,e=function(e){var t,n,r;e&&(e=e.target||e.srcElement,!(t=(null==e?void 0:e.src)||(null==e?void 0:e.href))||"string"!=typeof t||-1<window.location.href.indexOf(t)||(e="function"==typeof(null==(e=a.api)?void 0:e.resourceTypeHandler)?null==e?void 0:e.resourceTypeHandler(t):"",r=performance.getEntriesByType(o.collectEntryType).find(function(e){return e.name===t}),Oc(t,a.hostUrl))||(n=o.getFromParam(i),r={url:dc(t),status:400,duration:Number(((null==r?void 0:r.duration)||0).toFixed(2)),method:"get",type:e||"static",isHttps:fc(t),urlQuery:cc(t,!0),nextHopProtocol:"",domainLookup:0,connectTime:0,from:n},o.publish(r,i)))};window.document.addEventListener("error",e,!0),i.lifeCycle.on("destroy",function(){0===ng.countInstance()&&window.document.removeEventListener("error",e,!0)})},generateLog:function(e,t,n){var t="function"==typeof(null==(r=t.api)?void 0:r.resourceTypeHandler)?null==(r=t.api)?void 0:r.resourceTypeHandler(e.name):"",r=e.transferSize;return{url:dc(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:200,type:t||"static",isHttps:fc(e.name),nextHopProtocol:e.nextHopProtocol||"",urlQuery:cc(e.name,!0),domainLookup:lc(e.domainLookupEnd-e.domainLookupStart),connectTime:lc(e.connectEnd-e.connectStart),transferSize:0<r?r:-1,from:n}},collectNotReportedLog:function(e){var t,n;eg()&&(t=(n=performance.getEntriesByType(this.collectEntryType)).length,"function"!=typeof window.PerformanceObserver)&&this.collectCur!==t&&(n=n.slice(this.collectCur),this.collectCur=t,this.publishMany(n,e))},destroy:function(){this.option.publish=function(){}}}),rg=window.navigator.userAgent.toLowerCase(),c={},ig=function(e){return-1!==rg.indexOf(e)};c.macos=function(){return ig("mac")},c.ios=function(){return c.iphone()||c.ipod()||c.ipad()},c.iphone=function(){return!c.windows()&&ig("iphone")},c.ipod=function(){return ig("ipod")},c.ipad=function(){var e="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return ig("ipad")||e},c.android=function(){return!c.windows()&&ig("android")},c.androidPhone=function(){return c.android()&&ig("mobile")},c.androidTablet=function(){return c.android()&&!ig("mobile")},c.blackberry=function(){return ig("blackberry")||ig("bb10")},c.blackberryPhone=function(){return c.blackberry()&&!ig("tablet")},c.blackberryTablet=function(){return c.blackberry()&&ig("tablet")},c.windows=function(){return ig("windows")},c.windowsPhone=function(){return c.windows()&&ig("phone")},c.windowsTablet=function(){return c.windows()&&ig("touch")&&!c.windowsPhone()},c.fxos=function(){return(ig("(mobile")||ig("(tablet"))&&ig(" rv:")},c.fxosPhone=function(){return c.fxos()&&ig("mobile")},c.fxosTablet=function(){return c.fxos()&&ig("tablet")},c.meego=function(){return ig("meego")},c.cordova=function(){return window.cordova&&"file:"===location.protocol},c.nodeWebkit=function(){return"object"===T(window.process)},c.mobile=function(){return c.androidPhone()||c.iphone()||c.ipod()||c.windowsPhone()||c.blackberryPhone()||c.fxosPhone()||c.meego()},c.tablet=function(){return c.ipad()||c.androidTablet()||c.blackberryTablet()||c.windowsTablet()||c.fxosTablet()},c.desktop=function(){return!c.tablet()&&!c.mobile()};var og,ag,sg,ug,lg=function(){return{host:new URL(location.href).host,pathname:location.pathname}},cg=!(c.isIE=function(){return"ActiveXObject"in window}),dg=[],fg=/^\/[^/]/;function hg(e,t){return ug(e,t)}var pg=!1,mg=[],gg=function(O,x){if(void 0===x&&(x=/\.flv(\?|$)/i),mg.find(function(e){return e.name===O.name}))throw new Error("name '"+O.name+"' is already in hackFetch option list");mg.push(O),!pg&&window.fetch&&(pg=!0,ug=window.fetch,window.fetch=function(e,t){void 0===t&&(t={});var i="string"==typeof(f=e)?f:f&&"object"===T(f)?"string"==typeof(d=f.url)&&d?d:"string"==typeof(d=f.href)&&d?d:"":"";if(i&&null!=(f=null==x?void 0:x.test)&&f.call(x,i))return hg(e,t);fg.test(i)&&(i=""+location.origin+i);var n,r,o,a,s,u,l,c,d=O||{},f=d.traceRequestHeader,h=d.shouldInjectTrace;if(f&&(!h||h()))try{var p=function(e,t){e="undefined"!=typeof Request&&"string"!=typeof e&&e instanceof Request?vg(e.headers):{};return A(A({},e),vg(t.headers))}(e,t),m=lg(),g=m.host,v=m.pathname,y=f.generate(i,p,{host:g,pathname:v})||{},w=y.name,b=y.value;w&&b&&(n=e,r=t,o=w,a=b,u="undefined"!=typeof Headers?Headers:null,l="undefined"!=typeof Request&&"string"!=typeof n&&n instanceof Request,c=r.headers,u&&(l||c&&c instanceof u)?(s=new u(l?n.headers:undefined),c instanceof u?c.forEach(function(e,t){return s.set(t,e)}):Array.isArray(c)?c.forEach(function(e){e&&e[0]&&s.set(String(e[0]),String(e[1]))}):c&&"object"===T(c)&&Object.keys(c).forEach(function(e){s.set(e,String(c[e]))}),s.has(o)||s.set(o,a),r.headers=s):(l=vg(c))[o]||l[o.toLowerCase()]||(r.headers=Object.assign({},l,((n={})[o]=a,n))))}catch(Le){}for(var k=new Map,_=window.location.href,S=0;S<mg.length;S++){var E=mg[S];try{"function"==typeof E.beforeFetch&&E.beforeFetch(i,t),"function"==typeof E.getCurrentFrom&&k.set(E.name,E.getCurrentFrom())}catch(Le){}}var C=Date.now(),R=Object.assign({},t,{method:(h=e,(m=t)&&m.method?String(m.method).toUpperCase():"string"!=typeof h&&h&&h.method?String(h.method).toUpperCase():"GET")});return hg(e,t).then(function(e){var t;try{t=e.clone()}catch(X){for(var n=0;n<mg.length;n++){var r=mg[n];try{"function"==typeof r.cloneError&&r.cloneError(e,Date.now()-C,i,R,C,k.get(r.name),_)}catch(Le){}}return e}for(n=0;n<mg.length;n++){r=mg[n];try{"function"==typeof r.then&&r.then(t,Date.now()-C,i,R,C,k.get(r.name),_)}catch(Le){}}return e})["catch"](function(e){for(var t=0;t<mg.length;t++){var n=mg[t];try{"function"==typeof n["catch"]&&n["catch"](e,Date.now()-C,i,R,C,k.get(n.name),_)}catch(Le){}}throw e})})};function vg(e){var n;return e?"undefined"!=typeof Headers&&e instanceof Headers?(n={},e.forEach(function(e,t){n[t]=e,n[t.toLowerCase()]=e}),n):Array.isArray(e)?e.reduce(function(e,t){return t&&t[0]&&(e[String(t[0])]=String(t[1])),e},{}):A({},e):{}}var yg,wg,bg,kg,_g=function(r,e,i){return null!=e&&e.length&&"object"===T(r)?e.reduce(function(e,t){var n=window.Headers&&r instanceof Headers?r.get(t):r[t];return n?e+(""===e?"":"\n\n")+i+" header "+t+": "+n:e},""):""},Sg=new Map,Eg=0,Cg=function(e){return e.startTime+":"+e.responseEnd},Rg=(yg=null,{register:function(e,t){if(void 0===t&&(t={}),"function"!=typeof e)throw new TypeError("A request finalizer must be a function");if(yg&&!0!==t.replace)throw new Error("A request finalizer is already registered");var n={handler:e,pending:new Set};return bg(n),function(){yg===n&&bg(null)}},capture:function(){return yg},isCurrent:wg=function(e){return null!==e&&yg===e},onInvalidated:kg=function(e,t){var n;return wg(e)?((n=yg).pending.add(t),function(){n.pending["delete"](t)}):(t(),function(){return undefined})},invokeSync:function(e,t){if(!e||!wg(e))return{};try{var n=e.handler(t);return n&&"function"==typeof n.then?(Promise.resolve(n)["catch"](function(){return undefined}),{}):wg(e)?Wm(n):{}}catch(C){return{}}},invoke:function(s,e,t){if(!s||!wg(s))return{};try{var u=s.handler(e);return u&&"function"==typeof u.then?new Promise(function(n){var r=!1,i=function(){return undefined},o=function(e){if(!r){r=!0,clearTimeout(a),i();var t={};try{wg(s)&&(t=Wm(e))}catch(o){}n(t)}},a=setTimeout(function(){return o()},t),i=kg(s,function(){return o()});Promise.resolve(u).then(o,function(){return o()})}):wg(s)?Wm(u):{}}catch(L){return{}}}}),ke=Rg.register,Og=function(t,e){var n=Rg.capture(),r=Date.now();Sg.forEach(function(e,t){12e4<r-e.created&&Sg["delete"](t)}),1e3<=Sg.size&&Sg["delete"](Sg.keys().next().value);var i,o="cgi-"+r.toString(16)+"-"+Math.random().toString(16).slice(2)+"-"+(++Eg).toString(16),a="undefined"!=typeof globalThis?globalThis.performance:undefined,s=new Set;try{a.getEntriesByType("resource").forEach(function(e){e.name===t&&s.add(Cg(e))})}catch(Ae){}try{"function"==typeof a.now&&(i=a.now())}catch(Ae){}var u=!1;return Sg.forEach(function(e){e.finished||e.url!==t||(e.ambiguous=!0,u=!0)}),Sg.set(o,{id:o,owner:n,url:t,lower:i,existing:s,ambiguous:u,created:r,initiatorType:e}),o},xg=function(t,e){var n;e===undefined?(n=Array.from(Sg.values()).find(function(e){return e.url===t}))&&Sg["delete"](n.id):Sg["delete"](e)},Tg=function(e){try{return new URL(e).hostname||""}catch(w){return""}},Ig=function(n,r,e){if((t=Tg(n))&&(0<=t.indexOf(":")||4===(t=t.split(".")).length&&t.every(function(e){return/^\d{1,3}$/.test(e)&&Number(e)<=255})))return{pendingEntry:!1};var t=Array.from(Sg.values()).filter(function(e){return!e.finished&&e.url===n}),i=e?Sg.get(e):1===t.length?t[0]:undefined;if(i&&i.ambiguous||1<t.length)return{pendingEntry:!1};e="undefined"!=typeof globalThis&&globalThis.performance?globalThis.performance:"undefined"!=typeof performance?performance:undefined;if(!e||"function"!=typeof e.getEntriesByType)return{pendingEntry:!1};var o,t=[];try{var a=Number(e.timeOrigin),s=Number.isFinite(a)&&0<a,t=e.getEntriesByType("resource").filter(function(e){var t;return!(!e||e.name!==n||i&&i.initiatorType&&e.initiatorType!==i.initiatorType||i&&i.existing.has(Cg(e))||(e=Number(e.startTime||0),t=s?a+e:e,!(i&&i.lower!==undefined?e>=i.lower:r<=t&&t<r+1)))})}catch(z){return{pendingEntry:!1}}return 1<t.length?{pendingEntry:!1}:0===t.length?{pendingEntry:!0}:(e=t[0],0<Number(e.redirectStart)||0<Number(e.redirectEnd)||(t=Number(e.domainLookupStart),o=Number(e.domainLookupEnd),!Number.isFinite(t))||!Number.isFinite(o)||o<t?{pendingEntry:!1}:(e=0<Number(e.requestStart)||0<Number(e.connectEnd),o===t?e?{dnsTimeMs:0,pendingEntry:!1}:{pendingEntry:!1}:{dnsTimeMs:o-t,pendingEntry:!1}))},Mg=function(e,t,n){return Ig(e,t,n).dnsTimeMs},Ag=function(a,s){var t,u,l,c,e,n=Sg.get(a.requestId),d=n?n.owner:null;n&&(a.willReport||Rg.isCurrent(d))?(t=function(e){void 0===e&&(e=!1);var t,n=A(A({},a),{timingUnavailable:e}),r=e?undefined:Mg(a.url,a.startedAtMs,a.requestId),i=function(e){xg(a.url,a.requestId),s(Rg.isCurrent(d)?e:{},r)},o=(e=n,n={ms:r},(o=void 0===(o=d)?Rg.capture():o)&&Rg.isCurrent(o)?(t=Number(e.statusCode)||0,n=n.ms,Rg.invoke(o,A(A({requestId:e.requestId,source:"renderer_fetch_xhr",host:Tg(e.url),url:e.url,statusCode:t,errorCode:"",durationMs:e.durationMs},n!==undefined?{dnsTimeMs:n}:{}),{willReport:e.willReport,process:"renderer",startedAtMs:e.startedAtMs}),200)):{});o&&"function"==typeof o.then?o.then(i,function(){return i({})}):i(o)},a.transportFailure?t(!0):(u=a.url,l=a.startedAtMs,c=a.requestId,n="undefined"!=typeof globalThis?globalThis:{},e=n.performance,"settled"===(n=null!=n.document&&null!=e&&"function"==typeof e.getEntriesByType&&Ig(u,l,c).pendingEntry?new Promise(function(t){var n,e=Date.now()+200,r=0,i=!1,o=function(e){i||(i=!0,n!==undefined&&clearTimeout(n),t(e))},a=function(){200<=r||Date.now()>=e?o("timeout"):Ig(u,l,c).pendingEntry?(r+=50,n=setTimeout(a,50)):o("settled")};i||(n=setTimeout(a,0))}):"settled")?t():n.then(function(e){return t("timeout"===e)},function(){return t()}))):(xg(a.url,a.requestId),s({},undefined))},Pg={maxRetryCount:10,retryInterval:function(e){return 1e3*(2<<e)},whenRetryEndStillFail:"discard"},Dg={API_RESPONSE:"api_response",AJAX_ERROR:"ajax_error",RET_ERROR:"ret_error",SLOW_NET_REQUEST:"slow_net_request"},Lg=function(e,t){return e&&-1===["null","undefined"].indexOf(e)?t+": "+e:""},Ng=function(e,t,n){void 0===t&&(t="");var r,i,e="function"==typeof(null==(i=e.api)?void 0:i.resourceTypeHandler)?null==(i=e.api)?void 0:i.resourceTypeHandler(n):"";return-1===Il.indexOf(e)&&(r=void 0===t?"":t,i=(void 0===n?"":n).split("?")[0],e=pc.test(i)||hc.some(function(e){return-1!==String(r).indexOf(e)})?"static":"fetch"),e},Fg=function(e,t){return e?Dg.AJAX_ERROR:t?Dg.RET_ERROR:Dg.API_RESPONSE},Ug=function(e,t,n){if(!e)return!1;t=null==t?void 0:t.api;if(null!=t&&t.isSlowApi&&"function"==typeof(null==t?void 0:t.isSlowApi))try{return t.isSlowApi(n||{duration:e})}catch(X){return console.warn("[TDEM] isSlowApi function happen error:",X,", this data will not be reported."),!1}n=null!=(n=null==t?void 0:t.slowThreshold)?n:null==t?void 0:t.apiSlowThreshold;return n&&"number"==typeof n?n<e:1e3<e},jg=function(e,t){var e=e.api;if(null!=e&&e.usePerformanceTiming&&"string"==typeof t.url){e=null==(e=performance.getEntriesByName(t.url))?void 0:e.pop();if(e)return{url:t.url,isHttps:fc(t.url),method:t.method,type:t.type,status:t.status,duration:Number(e.duration.toFixed(2)),nextHopProtocol:e.nextHopProtocol||"",domainLookup:lc(e.domainLookupEnd-e.domainLookupStart),connectTime:lc(e.connectEnd-e.connectStart)}}return{url:t.url,isHttps:fc(t.url),method:t.method,type:t.type,status:t.status,duration:Number(t.duration.toFixed(2)),nextHopProtocol:"",domainLookup:ic.number,connectTime:ic.number}};function Bg(e){return!e||"boolean"==typeof e||"number"!=typeof(e=e.sseStallThresholdMs)||!Number.isFinite(e)||e<=0?6e4:e}function zg(e){return e&&"text/event-stream"===e.split(";")[0].trim().toLowerCase()}var Wg=function(e){return"string"==typeof e&&""!==e.trim()};function Hg(e){var t=String(e.requestUrl||""),n=String(e.finalUrl||""),r=t&&cc(t)||t,i=n&&cc(n)||n||r,n=!0===e.redirected||!!n&&!!t&&n!==t;return{url:i,originalUrl:r&&i&&r!==i?r:undefined,httpMethod:String(e.httpMethod||"GET").toUpperCase(),redirectCount:n?1:0}}function qg(n){e=n.llmVersion;var r,i,o,a,t,e,s,u=(e=String(null==e?"":e).trim())?(s=Array.from(e)).length<=128?e:s.slice(0,128).join(""):"unknown",l=n.now||Date.now,c=l(),d={gap_lt_500_count:0,gap_500_999_count:0,gap_1000_2999_count:0,gap_3000_9999_count:0,gap_10000_59999_count:0,gap_ge_60000_count:0},f="",h=!1,p=0,m=!1,g=[],v=function(){t!==undefined&&(clearTimeout(t),t=undefined)},y=function(){v();var e=n.stallThresholdMs;0<e&&(t=setTimeout(function(){b("stalled")},e))},w=function(){var e,t,n=l();r===undefined?r=n:i!==undefined&&(e=n-i,(o===undefined||o<e)&&(o=e),t=d,(e=e)<500?t.gap_lt_500_count+=1:e<1e3?t.gap_500_999_count+=1:e<3e3?t.gap_1000_2999_count+=1:e<1e4?t.gap_3000_9999_count+=1:e<6e4?t.gap_10000_59999_count+=1:t.gap_ge_60000_count+=1),i=n,p+=1,y()},b=function(e){if(!m){m=!0,v(),g.splice(0).forEach(function(e){try{e()}catch(X){}});var t=Math.max(0,l()-c),t=A({duration:t,redirect_count:Math.max(0,n.redirectCount||0),message_count:p,stall_threshold_ms:n.stallThresholdMs},d),e=(r!==undefined&&(t.time_to_first_message=Math.max(0,r-c)),i!==undefined&&(t.last_message_offset=Math.max(0,i-c)),o!==undefined&&(t.max_message_gap=o),{http_method:n.httpMethod||"GET",outcome:e,model_version:u}),t=(a!==undefined&&0<a&&(e.http_status=String(a)),n.originalUrl&&n.originalUrl!==n.url&&(e.original_url=n.originalUrl),{event_id:Ac(),event_type:P.SSE_CALL,event_category:Ic.NETWORK,timestamp:l(),page_url:n.pageUrl||"",data:{url:n.url,resource_type:"sse",measurements:t,replay_id:n.replayId||undefined,event_properties:e}});try{n.report(t)}catch(X){}}};return y(),{ingestText:function(e){if(!m){e=e.replace(/\r\n/g,"\n");if(h){var t=e.indexOf("\n\n");if(-1===t)return;h=!1,e=e.slice(t+2)}for(var n=(f=(f+=e).replace(/\r\n/g,"\n")).indexOf("\n\n");-1!==n;){var r=f.slice(0,n);f=f.slice(n+2),r.replace(/\r\n/g,"\n").split("\n").some(function(e){return e.startsWith("data:")||"data"===e})&&w(),n=f.indexOf("\n\n")}1048576<f.length&&(h=!(f=""))}},ingestCompleteMessage:function(){m||w()},noteHttpStatus:function(e){0<e&&(a=e)},succeed:function(){return b("success")},failTransport:function(){return b("transport_error")},httpError:function(){return b("http_error")},cancel:function(){return b("cancelled")},pauseStall:function(){m||v()},resumeStall:function(){m||y()},onSeal:function(t){if(m){try{t()}catch(X){}return function(){return undefined}}return g.push(t),function(){var e=g.indexOf(t);-1!==e&&g.splice(e,1)}},seal:b,get sealed(){return m},get messageCount(){return p},get httpStatus(){return a}}}function Vg(h,p){var m;return _l(this,void 0,void 0,function(){var o,a,s,u,l,c,d,f;return Sl(this,function(e){switch(e.label){case 0:if(!h||"function"!=typeof h.getReader)return p.succeed(),[2];o=h.getReader(),s=a=!1,u=function(){if(!a&&!s&&"function"==typeof o.cancel){s=!0;try{var e=o.cancel();e&&"function"==typeof e["catch"]&&e["catch"](function(){return undefined})}catch(X){}}},l=p.onSeal(u),c="undefined"!=typeof TextDecoder?new TextDecoder:{decode:function(e){return"undefined"!=typeof Buffer?Buffer.from(e).toString("utf8"):Array.from(e).map(function(e){return String.fromCharCode(e)}).join("")}},e.label=1;case 1:e.trys.push([1,5,6,7]),e.label=2;case 2:return p.sealed?[3,4]:[4,o.read()];case 3:return d=e.sent(),f=d.done,d=d.value,f?(a=!0,p.succeed(),[2]):(d&&p.ingestText(c.decode(d,{stream:!0})),[3,2]);case 4:return[3,7];case 5:return f=e.sent(),p.sealed||p[t=f,n=p.messageCount,r=p.httpStatus,!(i=t)||"object"!==T(i)||"AbortError"!==i.name&&"ABORT_ERR"!==i.code&&"ECONNABORTED"!==i.code&&!0!==i.aborted?(0<n||"number"==typeof r&&200<=r&&r<400)&&(function(e){if(Wg(e)&&-1!==e.toLowerCase().indexOf("terminated"))return 1;for(var t=e,n=new Set;t&&"object"===T(t)&&!n.has(t);){n.add(t);var r=String(t.name||""),i=String(t.code||""),o=String(t.message||"").toLowerCase();if("TypeError"===r&&-1!==o.indexOf("terminated"))return 1;if("ERR_INVALID_STATE"===i)return 1;t=t.cause}}(t)||Wg(t))?"succeed":"failTransport":"cancel"](),[3,7];case 6:l(),u();try{null!=(m=o.releaseLock)&&m.call(o)}catch(X){}return[7];case 7:return[2]}var t,n,r,i})})}var Gg,Jg,Kg=!(bg=function(e){var t=yg;yg=e,t&&(Array.from(t.pending).forEach(function(e){return e()}),t.pending.clear())});function $g(e){var t=e.__tdemXhrHooks;t&&(e.removeEventListener("readystatechange",t.onReadyStateChange),e.removeEventListener("progress",t.onProgress),e.removeEventListener("loadend",t.onLoadEnd),e.removeEventListener("abort",t.onAbort),e.removeEventListener("error",t.onError),e.removeEventListener("timeout",t.onTimeout),e.__tdemXhrHooks=undefined)}function Zg(e){var t=String(e.responseType||"").toLowerCase();if(t&&"text"!==t)return undefined;try{return"string"==typeof e.responseText?e.responseText:""}catch(X){return undefined}}new u({name:"api"});var Yg,Xg,Qg,s=new u({name:"api",override:!1,onNewTdem:function(e){var t,n;this.override||(this.override=!0,null!=(n=e.config.api)&&n.injectTraceHeader&&(this.traceRequestHeader=new td(n.injectTraceHeader,null!=(t=null==n?void 0:n.injectTraceIgnoreUrls)?t:[],null==n?void 0:n.injectTraceUrls,null==n?void 0:n.traceFlag)),this.overrideFetch(e.config,e),this.overrideXhr(e.config,e),!1!==n&&this.overrideEventSource(e.config,e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},currentViewId:function(e){var t=null!=(e=null!=(t=e.viewId)?t:null==(t=e.bean)?void 0:t.viewId)?e:"";return String(t||"")},rememberViewId:function(e,t){e&&(e.__tdemViewId=this.currentViewId(t))},reportWithStartedView:function(e,t,n){var n=String((null==n?void 0:n.__tdemViewId)||(null==t?void 0:t.view_id)||""),t=!n||null!=t&&t.view_id?t:A(A({},t),{view_id:n});null!=(n=e.reportTDEMEvent)&&n.call(e,t)},overrideFetch:function(E,C){var R=this,s=E.api,e={name:this.name,traceRequestHeader:null!=s&&s.injectTraceHeader?this.traceRequestHeader:null,shouldInjectTrace:function(){return Rp(C)},getCurrentFrom:function(){return R.getFromParam(C)},beforeFetch:function(e,t){Oc(e,E.hostUrl)||(t.__tdemRequestId=Og(e,"fetch")),R.rememberViewId(t,C)},cloneError:function(e,t,n,r,i,o){var a;Oc(n,E.hostUrl)||(a=e.headers?e.headers.get("content-type"):"",!1!==s&&zg(a)?(xg(n,null==(a=r)?void 0:a.__tdemRequestId),(a=qg({url:(a=Hg({requestUrl:n,finalUrl:e&&e.url,httpMethod:null==r?void 0:r.method,redirected:!!e.redirected})).url,originalUrl:a.originalUrl,httpMethod:a.httpMethod,redirectCount:a.redirectCount,stallThresholdMs:Bg(s),report:function(e){return R.reportWithStartedView(C,e,r)},pageUrl:o||R.getFromParam(C),replayId:tg(C),llmVersion:E.llmVersion})).noteHttpStatus(e.status),400<=e.status?a.httpError():a.succeed()):Ag({requestId:(null==(o=r)?void 0:o.__tdemRequestId)||"",url:n,statusCode:e.status||0,durationMs:t,startedAtMs:Number(i)||0,willReport:!1},function(){return undefined}))},then:function(m,g,v,y,w,b,k){if(!Oc(v,E.hostUrl)){var e,t,_=(null==(n=y)?void 0:n.__tdemRequestId)||"",n=(y&&(y.__tdemRequestId=_),m.headers?m.headers.get("content-type"):"");if(!1!==s&&zg(n))return xg(v,_),e=Hg({requestUrl:v,finalUrl:m&&m.url,httpMethod:null==y?void 0:y.method,redirected:!!m.redirected}),(t=qg({url:e.url,originalUrl:e.originalUrl,httpMethod:e.httpMethod,redirectCount:e.redirectCount,stallThresholdMs:Bg(s),report:function(e){return R.reportWithStartedView(C,e,y)},pageUrl:b||R.getFromParam(C),replayId:tg(C),llmVersion:E.llmVersion})).noteHttpStatus(m.status),m.__tdemSseObserver=t,400<=m.status?(t.httpError(),void Vg(m.body,t)["catch"](function(){return undefined})):void Vg(m.body,t)["catch"](function(){t.sealed||t.failTransport()});var S=Ng(E,n||"",v);"fetch"===S?Promise.resolve().then(function(){return m.clone().text()}).then(function(a){var e,s=m.status<=0||400<=m.status,t=(null==(t=E.api)?void 0:t.reqHeaders)||[],u=_g(null==y?void 0:y.headers,t,"req"),t=(null==(t=E.api)?void 0:t.resHeaders)||[],l=_g(m.headers,t,"res"),c=rd(null==y?void 0:y.headers),t=gc(a,E.api,{url:v,ctx:m,payload:null==y?void 0:y.body}),d=t.code,f=t.isErr,t=null==(t=E.api)?void 0:t.apiDetail,h=t?vc(null==y?void 0:y.body,null==(e=E.api)?void 0:e.reqParamHandler,{url:v}):"",p=t?vc(a,null==(e=E.api)?void 0:e.resBodyHandler,{url:v,ctx:m}):"";setTimeout(function(){var n=jg(E,{url:v,duration:g,type:S,status:m.status||0,method:(null==y?void 0:y.method)||"get"}),e=[s?"FETCH_ERROR: "+a:"","fetch req url: "+v,"res status: "+(n.status||0),"res duration: "+n.duration+"ms","res startTime: "+w,u,l,"req method: "+(n.method||"GET"),"res retcode: "+d,Lg(h,"req param"),Lg(p,"res data")].filter(function(e){return e}).join("\n\n"),r=(n.payload=null==y?void 0:y.body,n.ret=d,n.isErr=+f,n.from=b||R.getFromParam(C),{msg:e,code:d,trace:c,errorMsg:"",from:b||R.getFromParam(C),originFrom:k,viewId:null==(e=y)?void 0:e.__tdemViewId,level:Dg.API_RESPONSE}),e=Ug(null==n?void 0:n.duration,E,n),t=Fg(s,f);r.level=t===Dg.API_RESPONSE&&e?Dg.SLOW_NET_REQUEST:t,r.isErr=f;var i=e||r.level!==Dg.API_RESPONSE,o=null==(t=C.config)?void 0:t.api;Ag({requestId:_,url:v,statusCode:n.status||0,durationMs:Number(n.duration)||0,startedAtMs:Number(w)||0,willReport:!!(i||C.isWhiteList||null!=o&&o.reportRequest||null!=o&&o.injectTraceHeader),transportFailure:!(0<m.status)},function(e,t){e&&Object.keys(e).length&&(r.dialFields=e),null!=t&&(r.dnsTime=t),(i||C.isWhiteList||null!=o&&o.reportRequest||null!=o&&o.injectTraceHeader)&&R.publishNormalLog(r,C),R.publishSpeed(n,C)})},0)})["catch"](function(){Ag({requestId:_,url:v,statusCode:m.status||0,durationMs:g,startedAtMs:Number(w)||0,willReport:!1},function(){return undefined})}):(xg(v,_),setTimeout(function(){var e=jg(E,{url:v,duration:g,type:S,status:m.status||0,method:(null==y?void 0:y.method)||"get"});e.type="static",e.urlQuery=cc(v,!0),e.from=b||R.getFromParam(C),R.publishSpeed(e,C)},0))}},"catch":function(e,t,i,o,a,s,u){if(Oc(i,E.hostUrl))throw e;var l,c,d,f,n,h=(null==(n=o)?void 0:n.__tdemRequestId)||"";if((n=Sg.get(h))&&(n.finished=!0),"AbortError"!==(e&&e.name))throw l=Ng(E,"",i),n=(null==(n=E.api)?void 0:n.reqHeaders)||[],c=_g(null==o?void 0:o.headers,n,"req"),d=rd(null==o?void 0:o.headers),f=null!=(n=E.api)&&n.apiDetail?vc(null==o?void 0:o.body,null==(n=E.api)?void 0:n.reqParamHandler,{url:i}):"",setTimeout(function(){var n=jg(E,{url:i,duration:t,type:l,status:0,method:(null==o?void 0:o.method)||"get"}),r=(n.from=s||R.getFromParam(C),"AJAX_ERROR: "+e+"\n \nreq url: "+i+"\n \nres status: 0\n \nres duration: "+n.duration+"ms\n \nreq method: "+((null==o?void 0:o.method)||"get")+"\n \nreq param: "+f+"\n \nres startTime: "+a+"\n \n"+c);Ag({requestId:h,url:i,statusCode:0,durationMs:Number(n.duration)||0,startedAtMs:Number(a)||0,willReport:!0,transportFailure:!0},function(e){var t;R.publishSpeed(n,C),R.publishNormalLog({msg:r,level:Dg.AJAX_ERROR,code:-400,trace:d,errorMsg:"",from:s||R.getFromParam(C),originFrom:u,viewId:null==(t=o)?void 0:t.__tdemViewId,dialFields:e},C)})},0),e;xg(i,h)}};this.hackFetchOptions=e,gg(this.hackFetchOptions,null==(e=E.api)?void 0:e.ignoreHackReg)},overrideXhr:function(R,O){var e,i,x=this,o={name:this.name,ignoreHackReg:null==(e=R.api)?void 0:e.ignoreHackReg,traceRequestHeader:null!=(e=R.api)&&e.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return x.getFromParam(O)},open:function(e){var t;(t=(e=e).__tdemSseObserver)&&!t.sealed&&t.cancel(),$g(e),e.__tdemSseClaimed=!1,e.__tdemSseObserver=undefined,e.failType=undefined},send:function(k,_,S,E){x.rememberViewId(k,O);var C=Date.now(),n=(Oc(k.tdemUrl||"",R.hostUrl)||(k.__tdemRequestId=Og(k.tdemUrl||"","xmlhttprequest")),((null==R?void 0:R.api)||{}).injectTraceHeader&&Rp(O)&&(t=(e=lg()).host,e=(t=x.traceRequestHeader.generate(k.tdemUrl,{},{host:t,pathname:e.pathname})||{}).name,t=t.value,e)&&t&&k.setRequestHeader(e,t),0),e=function(){k.failType="abort"},t=function(){k.failType="error"},r=function(){k.failType="timeout"},i=function(){var e;!1===R.api||k.__tdemSseClaimed||(e=k.tdemUrl||"",Oc(e,R.hostUrl))||zg(("function"==typeof k.getResponseHeader?k.getResponseHeader("content-type"):"")||"")&&(k.__tdemSseClaimed=!0,(e=qg({url:(e=Hg({requestUrl:k.tdemUrl||"",finalUrl:("string"==typeof k.responseURL?k.responseURL:"")||undefined,httpMethod:k.tdemMethod})).url,originalUrl:e.originalUrl,httpMethod:e.httpMethod,redirectCount:e.redirectCount,stallThresholdMs:Bg(R.api),report:function(e){return x.reportWithStartedView(O,e,k)},pageUrl:S||x.getFromParam(O),replayId:tg(O),llmVersion:R.llmVersion})).noteHttpStatus(k.status),k.__tdemSseObserver=e)},o=function(){i()},a=function(){i();var e,t=k.__tdemSseObserver;t&&(e=Zg(k))!==undefined&&e.length>n&&(t.ingestText(e.slice(n)),n=e.length)},s=function(){var e,v,y,t,w,b=k.tdemUrl||"";k.__tdemSseClaimed?(xg(b,k.__tdemRequestId),(e=k.__tdemSseObserver)&&!e.sealed&&((t=Zg(k))!==undefined&&t.length>n&&e.ingestText(t.slice(n)),e.noteHttpStatus(k.status),"abort"===k.failType?e.cancel():400<=k.status?e.httpError():k.failType?e.failTransport():e.succeed()),$g(k)):($g(k),Oc(b,R.hostUrl)||"abort"===k.failType?xg(b,k.__tdemRequestId):(v="",(k.failType||!k.status||400<=k.status)&&(v=k.failType||"failed"),y=Date.now()-C,t=k.getResponseHeader("content-type")||"",w=Ng(R,t,b),setTimeout(function(){var e,l=jg(R,{url:b,duration:y,type:w,status:k.status,method:k.tdemMethod||"get"});if(l.from=S||x.getFromParam(O),"fetch"===w){var t=(null==(e=R.api)?void 0:e.reqHeaders)||[],c=_g(k.tdemXhrReqHeader,t,"req"),t=(null==(t=R.api)?void 0:t.resHeaders)||[],n=k.getAllResponseHeaders().split("\r\n").reduce(function(e,t){t=t.split(": ");return t[0]&&t[1]&&(e[t[0]]=t[1]),e},{}),d=_g(n,t,"res"),f=rd(k.tdemXhrReqHeader),t=null==(n=R.api)?void 0:n.apiDetail,h=t?vc(_,null==(n=R.api)?void 0:n.reqParamHandler,{url:b}):"",p=t?vc(k.response,null==(n=R.api)?void 0:n.resBodyHandler,{url:b}):"";try{var r,i,o,a=k.response,s=R.api,u={url:b,ctx:k,payload:_},m=function(e){var n=e.code,r=e.isErr,i=[v?"AJAX_ERROR: request "+v:"","fetch req url: "+b,"res status: "+(l.status||0),"res duration: "+l.duration+"ms","res startTime: "+C,c,d,"req method: "+(l.method||"GET"),"res retcode: "+n,Lg(h,"req param"),Lg(p,"res data")].filter(function(e){return e}).join("\n\n"),o=(l.ret=n,l.isErr=+r,l.payload=_,Fg(!!v,r)),a=Ug(null==l?void 0:l.duration,R,l),s=o===Dg.API_RESPONSE&&a?Dg.SLOW_NET_REQUEST:o,e=k.__tdemRequestId||"",u=(k.__tdemRequestId=e,null==(t=O.config)?void 0:t.api),t=o!==Dg.API_RESPONSE||a||O.isWhiteList||(null==u?void 0:u.reportRequest)||(null==u?void 0:u.injectTraceHeader);Ag({requestId:e,url:b,statusCode:l.status||0,durationMs:Number(l.duration)||0,startedAtMs:Number(C)||0,willReport:!!t,transportFailure:!(0<k.status)},function(e,t){(o!==Dg.API_RESPONSE||a||O.isWhiteList||null!=u&&u.reportRequest||null!=u&&u.injectTraceHeader)&&x.publishNormalLog({msg:i,level:s,code:n,isErr:r,trace:f,errorMsg:"",from:S||x.getFromParam(O),originFrom:E,viewId:k.__tdemViewId,dialFields:e,dnsTime:t},O),x.publishSpeed(l,O)})};try{if("function"==typeof(null==s?void 0:s.retCodeHandlerAsync))return void s.retCodeHandlerAsync(a,null==u?void 0:u.url,null==u?void 0:u.ctx,function(e){var t=e.code;null!=m&&m({code:void 0===t?Ml:t,isErr:e.isErr})});if("function"==typeof(null==s?void 0:s.retCodeHandler))return void(o=(i=s.retCodeHandler(a,null==u?void 0:u.url,null==u?void 0:u.ctx,null==u?void 0:u.payload)||{}).code,null!=m&&m({code:void 0===o?Ml:o,isErr:i.isErr}));if(!(a="string"==typeof a?JSON.parse(a):a))return void(null!=m&&m({code:Ml,isErr:!1}));"function"==typeof(null==(r=null==s?void 0:s.ret)?void 0:r.join)&&(mc=[].concat(s.ret.map(function(e){return e.toLowerCase()})));var g=Object.getOwnPropertyNames(a).filter(function(e){return-1!==mc.indexOf(e.toLowerCase())});if(g.length)return void("未知"!==(o=a[g[0]])&&""!==o||(o=Ml),null!=m&&m({code:""+o,isErr:0!==o&&"0"!==o&&o!==Ml}));null!=m&&m({code:Ml,isErr:!1})}catch(e){null!=m&&m({code:Ml,isErr:!1})}}catch(T){xg(b,k.__tdemRequestId),l.ret=Ml,x.publishSpeed(l,O)}}else xg(b,k.__tdemRequestId),l.type="static",l.urlQuery=cc(b,!0),x.publishSpeed(l,O)},0)))};k.__tdemXhrHooks={onReadyStateChange:o,onProgress:a,onLoadEnd:s,onAbort:e,onError:t,onTimeout:r},k.addEventListener("readystatechange",o),k.addEventListener("progress",a),k.addEventListener("loadend",s),k.addEventListener("abort",e),k.addEventListener("error",t),k.addEventListener("timeout",r)}};this.hackXHROptions=o,i=this.hackXHROptions,dg.find(function(e){return e.name===i.name})||(dg.push(i),!cg&&window.XMLHttpRequest&&(og=window.XMLHttpRequest.prototype.send,ag=window.XMLHttpRequest.prototype.open,sg=window.XMLHttpRequest.prototype.setRequestHeader,cg=!0,window.XMLHttpRequest.prototype.open=function(){this.tdemMethod=arguments[0];var e,t=arguments[1];if(fg.test(t)&&(t=""+location.origin+t),this.tdemUrl=t,null==(e=null==(t=i.ignoreHackReg)?void 0:t.test)||!e.call(t,this.tdemUrl))if(this.tdemXhrStartTime=Date.now(),this.sendByTdem)c.isIE()||(this.timeout=5e3);else for(var n=0;n<dg.length;n++){var r=dg[n];try{"function"==typeof r.open&&r.open(this)}catch(o){}}return ag.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var e,t,n;return null!=(n=null==(t=i.ignoreHackReg)?void 0:t.test)&&n.call(t,this.tdemUrl)?sg.apply(this,arguments):(t=arguments[0],n=arguments[1],this.tdemXhrReqHeader=null!=(e=this.tdemXhrReqHeader)?e:{},null!=i&&i.traceRequestHeader&&-1<["traceparent","b3","sw8","sentry-trace"].indexOf(t)&&(this.tdemXhrReqHeader[t]||(arguments[1]=n),this.tdemXhrReqHeader[t])?void 0:(this.tdemXhrReqHeader[t]=arguments[1],sg.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var e,t;if(!(null!=(t=null==(e=i.ignoreHackReg)?void 0:e.test)&&t.call(e,this.tdemUrl)||this.sendByTdem))for(var n=0;n<dg.length;n++){var r=dg[n];try{"function"==typeof r.send&&r.send(this,arguments[0],"function"==typeof r.getCurrentFrom?r.getCurrentFrom():undefined,window.location.href)}catch(x){}}return og.apply(this,arguments)}))},overrideEventSource:function(o,a){var n,s=this;function e(e,t){t=new n(e,t);try{null!=Jg&&Jg(t,String(e))}catch(X){}return t}Jg={onCreate:function(t,e){var n={__tdemViewId:s.currentViewId(a)};if(!Oc(e,o.hostUrl)){var r=qg({url:cc(e)||e,httpMethod:"GET",stallThresholdMs:Bg(o.api),report:function(e){return s.reportWithStartedView(a,e,n)},pageUrl:s.getFromParam(a),replayId:tg(a),llmVersion:o.llmVersion});r.pauseStall(),t.addEventListener("open",function(){return r.resumeStall()}),t.addEventListener("message",function(){return r.ingestCompleteMessage()}),t.addEventListener("error",function(){if(!r.sealed){var e=t.readyState;0!==e?2===e&&r.failTransport():r.pauseStall()}});var i=t.close.bind(t);t.close=function(){try{r.sealed||r.cancel()}finally{i()}}}}}.onCreate,"undefined"!=typeof window&&window.EventSource&&!Kg&&(Kg=!0,n=Gg=window.EventSource,e.prototype=n.prototype,e.CONNECTING=n.CONNECTING,e.OPEN=n.OPEN,e.CLOSED=n.CLOSED,window.EventSource=e)},publishSpeed:function(e){},publishNormalLog:function(n,e){var t,r,i,o,a,s,u,l,c;[Dg.API_RESPONSE,Dg.AJAX_ERROR,Dg.RET_ERROR,Dg.SLOW_NET_REQUEST].includes(n.level)&&(t=(t=null==(t=n.msg)?void 0:t.match(/(?:fetch req url|req url):\s*(.+?)(?:\n|$)/))?t[1].trim():"",r=(r=null==(r=n.msg)?void 0:r.match(/req method:\s*(.+?)(?:\n|$)/i))?r[1].trim().toUpperCase():"GET",s=(s=null==(s=n.msg)?void 0:s.match(/res status:\s*(\d+)/))?parseInt(s[1],10):0,i=(i=null==(i=n.msg)?void 0:i.match(/res duration:\s*([\d.]+)ms/))?parseFloat(i[1]):0,u=(u=null==(u=n.msg)?void 0:u.match(/=+\s*res data\s*=+\s*\n([\s\S]*?)(?:\n=+|$)/))?u[1].trim().slice(0,1e3):undefined,o={},n.trace&&(o.trace_id=n.trace),(c=(l={httpStatus:s,isTransportFailure:s<=0,isBusinessError:n.level===Dg.RET_ERROR||!!n.isErr,businessCode:n.code}).aborted?{report:!1,eventType:null}:(c=Number(l.httpStatus),l.isTransportFailure||!Number.isFinite(c)||c<=0?{report:!0,eventType:"api_error",outcome:"transport_error"}:400<=c?{report:!0,eventType:"api_error",outcome:"http_error"}:l.isBusinessError?{report:!0,eventType:"api_error",outcome:"business_error",businessCode:ac(l.businessCode)||Ml}:{report:!0,eventType:"api_call",businessCode:ac(l.businessCode)})).report)&&c.eventType&&(a={http_method:r,http_status:String(s)},c.outcome&&(a.outcome=c.outcome),c.businessCode&&(a.business_code=c.businessCode),n.dialFields&&"object"===T(n.dialFields)&&Object.keys(n.dialFields).forEach(function(e){var t=n.dialFields[e];null!=t&&""!==t&&(a[e]=String(t))}),l={duration:i},null!=n.dnsTime&&Number.isFinite(Number(n.dnsTime))&&(l.dns_time=Math.max(0,Number(n.dnsTime))),"api_error"===c.eventType?(s=A(A({event_id:Ac(),event_type:P.API_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:n.from||(null==(r=e.getOriginFrom)?void 0:r.call(e))||window.location.href},n.viewId?{view_id:String(n.viewId)}:{}),{data:{url:t,measurements:l,response_body:u,replay_id:tg(e),tags:0<Object.keys(o).length?o:undefined,event_properties:a}}),null!=(i=e.reportTDEMEvent)&&i.call(e,s)):(u=A(A({event_id:Ac(),event_type:P.API_CALL,event_category:Ic.NETWORK,timestamp:Date.now(),page_url:n.from||(null==(r=e.getOriginFrom)?void 0:r.call(e))||window.location.href},n.viewId?{view_id:String(n.viewId)}:{}),{data:{url:t,measurements:l,replay_id:tg(e),tags:0<Object.keys(o).length?o:undefined,event_properties:a}}),null!=(s=e.reportTDEMEvent)&&s.call(e,u)))},destroy:function(){var t,n,e;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(n=this.option.hackXHROptions,-1!==(e=dg.findIndex(function(e){return e.name===n.name})))&&dg.splice(e,1),this.option.hackFetchOptions&&(t=this.option.hackFetchOptions,-1!==(e=mg.findIndex(function(e){return e.name===t.name})))&&mg.splice(e,1),Gg&&(window.EventSource=Gg),Kg=!1,Gg=undefined,Jg=undefined,this.option.override=!1}}),ev={},a=new u({name:"bridge",override:!1,onNewTdem:function(e){this.override||(this.override=!0,this.overrideBridge(e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},publishSpeed:function(t,n){this.$walk(function(e){e===n&&e.speedLogPipeline(t)})},overrideBridge:function(l){var c=this,d=l.config,e="object"===T(d.bridge)?d.bridge:undefined,t=null==e?void 0:e.target,e=null==e?void 0:e.methods;t&&null!=e&&e.length&&e.forEach(function(e){var u=t[e];ev[e]=u,t[e]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],n=e[2],o=e[3],a=Date.now(),s=c.getFromParam(l);u(r,i,n,function(e){var t=gc(e,d.api),n=t.code,t=t.isErr,n={url:r+"-"+i,name:r+"-"+i,duration:Date.now()-a,type:"bridge",ret:n,isErr:+t,from:s};c.publishSpeed(n,l),o(e)})}})},unHackBridge:function(e){var e="object"===T(e.config.bridge)?e.config.bridge:undefined,t=null==e?void 0:e.target;ev=(t&&Object.keys(ev).forEach(function(e){ev[e]&&(t[e]=ev[e])}),{})},destroy:function(e){this.option.publishSpeed=function(){},this.option.unHackBridge(e),this.option.override=!1}}),Ut=((Ur=Yg=Yg||{})[Ur.unknown=100]="unknown",Ur[Ur.wifi=1]="wifi",Ur[Ur.net2g=2]="net2g",Ur[Ur.net3g=3]="net3g",Ur[Ur.net4g=4]="net4g",Ur[Ur.net5g=5]="net5g",Ur[Ur.net6g=6]="net6g",(l=Xg=Xg||{})[l.android=1]="android",l[l.ios=2]="ios",l[l.windows=3]="windows",l[l.macos=4]="macos",l[l.linux=5]="linux",l[l.other=100]="other",(Vr=Qg=Qg||{})[Vr.unknown=100]="unknown",Vr[Vr.normal=0]="normal",Vr[Vr.weak=1]="weak",Vr[Vr.disconnected=2]="disconnected",new u({name:"device",onNewTdem:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",Yg.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e),this.refreshNetworkStatusToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var t={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},e=Object.keys(t).find(function(e){return t[e].test(navigator.userAgent)});return e?Xg[e]:Xg.other},refreshNetworkTypeToBean:function(t){var n=this,e=t.config;e&&("function"==typeof e.getNetworkType?e.getNetworkType:tv)(function(e){Yg[e]||(e=Yg.unknown),t.extendBean("netType",e),n.NetworkRefreshTimer=setTimeout(function(){n.refreshNetworkTypeToBean(t),clearTimeout(n.NetworkRefreshTimer)},1e4)})},refreshNetworkStatusToBean:function(t){var e,n=this,r=t.config;r&&null!=(e="function"==typeof r.getNetworkStatus?r.getNetworkStatus:e)&&e(function(e){Qg[e]===undefined&&(e=Qg.unknown),t.extendBean("netStatus",e),n.NetworkStatusRefreshTimer=setTimeout(function(){n.refreshNetworkStatusToBean(t),clearTimeout(n.NetworkStatusRefreshTimer)},1e4)})}})),tv=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((n=t=t||Ml,0<=(n=String(n).toLowerCase()).indexOf("4g")?Yg.net4g:0<=n.indexOf("wifi")?Yg.wifi:0<=n.indexOf("5g")?Yg.net5g:0<=n.indexOf("6g")?Yg.net6g:0<=n.indexOf("3g")?Yg.net3g:0<=n.indexOf("2g")?Yg.net2g:Yg.unknown))},nv=window.WebSocket,rv=[],iv={construct:function(e,t){var r=new e(t[0],t[1]);return r.originSend=r.send,r.addEventListener("error",function(e){var e=(null==e?void 0:e.currentTarget)||{},t=e.url,n=e.readyState;null!=rv&&rv.forEach(function(e){e=e.onErr;null!=e&&e({msg:"无法获知具体错误信息,需在浏览器控制台查看!",readyState:n,connectUrl:t})})}),Object.defineProperty(r,"send",{get:function(){return function(e){null!=(t=r.originSend)&&t.call(r,e);var t,e=r.readyState;if(e!==WebSocket.OPEN){var n={readyState:e,connectUrl:r.url};switch(e){case WebSocket.CLOSED:rv.forEach(function(e){e=e.sendErr;null!=e&&e(A({msg:"消息发送失败,连接已关闭!"},n))});break;case WebSocket.CONNECTING:rv.forEach(function(e){(0,e.sendErr)(A({msg:"消息发送失败,正在连接中!"},n))});break;case WebSocket.CLOSING:rv.forEach(function(e){(0,e.sendErr)(A({msg:"消息发送失败,连接正在关闭!"},n))})}}}}}),r}},ov=new u({name:"onError"}),Gr=ov=new u({name:"onError",onNewTdem:function(e){this.startListen(e)},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},startListen:function(s){var e,t,n,u=this,l=window.onerror,r=(window.onerror=function(e,t,n,r,i){var o,a=wc(e);Qm(a)||(a=[{type:(null==i?void 0:i.name)||"Error",value:String(e),mechanism_type:"onerror",mechanism_handled:0}],o=i?Pc(i):[{abs_path:t||"",colno:r||0,filename:(null==t?void 0:t.split("/").pop())||"","function":"(anonymous)",lineno:n||0,in_app:1,stack_level:0}],a={event_id:Ac(),event_type:P.JS_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:a,exception_frames:o,replay_id:tg(s),tags:{environment:s.config.env||"production",version:String(s.config.version||"")}}},null!=(o=s.reportTDEMEvent)&&o.call(s,a)),null!=l&&l.call(window,e,t,n,r,i)},function(e){var t,n=e&&wc(e.reason);n&&(t=[{type:(null==(t=e.reason)?void 0:t.name)||"PromiseRejection",value:(null==(t=e.reason)?void 0:t.message)||String(n),mechanism_type:"unhandledrejection",mechanism_handled:0}],n=e.reason instanceof Error?Pc(e.reason):[],e={event_id:Ac(),event_type:P.PROMISE_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:t,exception_frames:n,replay_id:tg(s),tags:{environment:s.config.env||"production"}}},null!=(t=s.reportTDEMEvent))&&t.call(s,e)}),i=(window.addEventListener("unhandledrejection",r),function(e){e=(null==e?void 0:e.target)||(null==e?void 0:e.srcElement);if(e){var t=e.src||e.href||"",n=e.tagName,n=(void 0===n?"script":n).toLowerCase(),r=["audio","video"].includes(n);if((!r||null!=e&&e.error)&&!(Oc(i=t,s.config.hostUrl)||-1<window.location.href.indexOf(i))){var i="other";if(/\.js$/.test(t)||"script"===n)i="script";else if(/\.css$/.test(t)||"link"===n)i="stylesheet";else if("img"===n)i="image";else{if(!r)return;i="media"}t={event_id:Ac(),event_type:P.RESOURCE_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{url:t,resource_type:i,replay_id:tg(s),tags:A({environment:s.config.env||"production"},r&&null!=e&&e.error?{error_code:String(e.error.code),error_message:e.error.message||""}:{}),event_properties:{element_tag:n}}};null!=(i=s.reportTDEMEvent)&&i.call(s,t)}}}),o=(window.document.addEventListener("error",i,!0),s.lifeCycle.on("destroy",function(){0===ov.countInstance()&&(window.removeEventListener("unhandledrejection",r),window.document.removeEventListener("error",i,!0))}),s.config.websocket);(("object"===T(o)?!1!==o.enabled:o)||s.config.websocketHack)&&(o={key:s.config.id+"-"+this.name,onErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)},sendErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)}},this.hackWebsocketConfig=o,o=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(e=window.WebSocket,window&&!e.isHack&&(t=new Proxy(WebSocket,iv),e.isHack=!0,window.WebSocket=t),n=o,rv.find(function(e){return e.key===n.key})||n&&rv.push(n))},publishWsErrorLog:function(e,n){var t=e.connectUrl,r=e.msg,e=e.readyState,i={event_id:Ac(),event_type:P.JS_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:this.getFromParam(n),data:{exception_stacks:[{type:"WebSocketError",value:"WEBSOCKET_ERROR: connect: "+t+" readyState: "+e+" msg: "+r,mechanism_type:"websocket",mechanism_handled:0}],exception_frames:[],replay_id:tg(n),tags:{environment:n.config.env||"production",websocket_url:t||"",websocket_ready_state:String(null!=e?e:"")}}};this.$walk(function(e){var t;e===n&&null!=(t=e.reportTDEMEvent)&&t.call(e,i)})},destroy:function(){var t,e;this.option.hackWebsocketConfig&&(t=this.option.hackWebsocketConfig,window.WebSocket=nv,-1!==(e=rv.findIndex(function(e){return e.key===t.key})))&&rv.splice(e,1)}}),av=Ht.entries,sv=(R({target:"Object",stat:!0},{entries:function(e){return av(e)}}),'a,button,input[type="button"],input[type="submit"],input[type="reset"],input[type="image"],[role="button"],[onclick],[ng-click],[v-on\\:click]'),uv=new WeakMap;function lv(e){return e.closest(sv)||e}function cv(e,t){return null==(e=uv.get(e))?void 0:e.get(t)}new u({name:"click"});var dv=function(e){if(""!==e.id&&e.id)return'id("'+e.id+'")';if(e===document.body)return e.tagName;if(e instanceof Document)return"document";var t=0;if(e.parentNode)for(var n=e.parentNode.childNodes,r=0;r<n.length;r+=1){var i=n[r];if(i===e)return dv(e.parentNode)+"/"+e.tagName+"["+(t+1)+"]";1===i.nodeType&&i.tagName===e.tagName&&(t+=1)}return 0},fv=function(e){return e instanceof Array?new Map(e.map(function(e){return[e,!0]})):new Map},hv=function(e,t){return"string"==typeof e?e.split(t):[]},pv=function(e){if(3===e.nodeType||4===e.nodeType)return e.nodeValue||"";if(1!==e.nodeType)return"";if("string"==typeof e.textContent)return e.textContent;for(var t="",n=e.firstChild;n;n=n.nextSibling)t+=pv(n);return t},r=new u({name:"click",listeners:[],onNewTdem:function(e){this.startListen(e)},startListen:function(s){for(var e=function(a){var e,t,n,r,i;o.listeners.push((e=document,t=a,n=function(e,t){var n,r,i,o;t&&!function(e,t){e="object"===T((e=e).click)?e.click:undefined,n=fv((null==e?void 0:e.ignoreClasses)||[])||new Map;for(var n,e={ignoreIds:fv((null==e?void 0:e.ignoreIds)||[])||new Map,ignoreClasses:n},r=e.ignoreClasses,i=e.ignoreIds,o=!(0===i.size&&0===r.size),a=t,s=(hv(t.getAttribute("id")||""," "),hv(t.getAttribute("class")||"",""),0),u=!1;a&&o&&a.getAttribute;){if(u)return!0;if(10<=s)break;for(var l=hv(a.getAttribute("id")||""," "),c=hv(a.getAttribute("class")||"",""),d=0,f=l;d<f.length;d++){var h=f[d];if(i.has(h)){u=!0;break}}for(var p=0,m=c;p<m.length;p++){var g=m[p];if(r.has(g)){u=!0;break}}s+=1,a=a.parentNode||a.parentElement}return!1}(s.config,t)&&(n=dv(t),r=function(e){e=function(e){var t="",n=e.nodeType;if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(var r=e.firstChild;r;r=r.nextSibling)t+=pv(e)}else if(3===n||4===n)return e.nodeValue;return t}(e);return e?e.replace(/^\s+|\s+$/g,""):""}(t),i=t.getBoundingClientRect&&t.getBoundingClientRect(),n={event_id:Ac(),event_type:P.CLICK,event_category:Ic.BEHAVIOR,timestamp:Date.now(),page_url:s._customPageUrl||window.location.href,data:{target_element:String(n),target_text:r.slice(0,127),click_position:i?{x:parseInt(String(i.left+window.scrollX),10)||0,y:parseInt(String(i.top+window.scrollY),10)||0}:undefined,replay_id:tg(s),tags:{environment:s.config.env||"production",event_op:a,node_name:(null==t?void 0:t.nodeName)||""},event_properties:{target_id:t.id||"",target_class:"string"==typeof t.className?t.className.slice(0,128):""}}},r=e,i=s,t=n,(o=uv.get(r)||new Map).set(i,t),uv.set(r,o),s.lifeCycle.emit("clickCaptured",{event:e,source:n}),null!=(i=s.reportTDEMEvent))&&i.call(s,n)},void 0===(r=!0)&&(r=!0),i=function(e){var t=document.documentElement;t&&n.call(t,e,e.target)},e.addEventListener(t,i,r),{destroy:function(){e.removeEventListener(t,i,r)}}))},o=this,t=0,n=Object.entries({click:1,longpress:2});t<n.length;t++)e(n[t][0])},destroy:function(){var e=this.option||this;e.listeners.forEach(function(e){return e.destroy()}),e.listeners=[]}}),mv=(new u({name:"console"}),["log","error","warn","info","debug","trace"]),gv={log:console.log,error:console.error,warn:console.warn,info:console.info,debug:console.debug,trace:console.trace||console.log};var vv,yv,wv,bv,kv,_v,Sv,Ev,Cv,Rv,Ov,Ur=new u({name:"console",onNewTdem:function(e){this.startListen(e)},startListen:function(e){var f,h;h="object"===T((f=e).config.console)?f.config.console:undefined,mv.forEach(function(c){var d=gv[c];console[c]=function(){for(var e,t,n,r,i,o,a,s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];try{d.apply(console,u),o=c,a=f.isWhiteList,("all"===(s=(null==(s=h)?void 0:s.level)||"error")||a||("error"===s?"error"===o:"warn"===s?"error"===o||"warn"===o:"info"===s?["error","warn","info"].includes(o):"log"===s?["error","warn","info","log"].includes(o):"error"===o))&&(r=u.map(function(e){if("object"===T(e)&&null!==e)try{return JSON.stringify(e)}catch(h){}return String(e)}).join(" "),i={event_id:Ac(),event_type:P.LOG,event_category:Ic.LOG,timestamp:Date.now(),page_url:(null==(e=f.getOriginFrom)?void 0:e.call(f))||("undefined"!=typeof window?null==(t=window.location)?void 0:t.href:""),data:{log_level:"error"===c?"error":"warn"===c?"warn":"info",replay_id:tg(f),tags:{console_method:c},event_properties:{message:("console."+c+": "+r).slice(0,2048)}}},null!=(n=f.reportTDEMEvent)&&n.call(f,i))}catch(j){gv.error("Console hook error:",j)}}})},destroy:function(){Object.keys(gv).forEach(function(e){console[e]=gv[e]})}});kv={passive:!0,capture:!0},_v=new Date,l=function(){bv=[],yv=-1,vv=null,Rv(addEventListener)},Sv=function(e,t){vv||(vv=t,yv=e,wv=new Date,Rv(removeEventListener),Ev())},Ev=function(){var t;0<=yv&&yv<wv-_v&&(t={entryType:"first-input",name:vv.type,target:vv.target,cancelable:vv.cancelable,startTime:vv.timeStamp,processingStart:vv.timeStamp+yv},bv.forEach(function(e){e(t)}),bv=[])},Cv=function(e){var t,n,r,i,o,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,i=function(){Sv(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,kv),removeEventListener("pointercancel",o,kv)},addEventListener("pointerup",i,kv),addEventListener("pointercancel",o,kv)):Sv(t,e))},Rv=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Cv,kv)})},Ov="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",function B(e){"hidden"===document.visibilityState&&(Ov=e.timeStamp,removeEventListener("visibilitychange",B,!0))},!0),l(),self.webVitals={firstInputPolyfill:function(e){bv.push(e),Ev()},resetFirstInputPolyfill:l,get firstHiddenTime(){return Ov}},new u({name:"webVitals"});var xv,Tv={FCP:-1,LCP:-1,FID:-1,CLS:-1,INP:-1,TTI:-1,from:undefined},Iv=(new u({name:"pagePerformance"}),function(e,t,n,r){return void 0===n&&(n=15e3),void 0===r&&(r=0),(t=void 0===t?0:t)<=e&&e<=n?e:r}),Mv=new Map,Vr=new u({name:"pagePerformance",performanceMap:{},onNewTdem:function(t){var e,n,r,i;eg()&&(Mv.set(t,{isPagePerformanceReported:!1}),xv?this.publish(xv,t):this.startCalcPerformance(t),e=this.publishWhenObHidden.bind(this,t),(i=function(t,n,r,i){var o=function(e){"visibilitychange"===t&&"hidden"!==document.visibilityState||(i?setTimeout(function(){return n(e)},i):n(e),r&&removeEventListener(t,o,!0))};addEventListener(t,o,!0)})("visibilitychange",e,null==(n={once:!0})?void 0:n.once,null==(r=null==n?void 0:n.delay)?void 0:r.visibilitychange),i("pagehide",e,null==n?void 0:n.once,null==(r=null==n?void 0:n.delay)?void 0:r.pagehide),i("beforeunload",e,null==n?void 0:n.once,null==(r=null==n?void 0:n.delay)?void 0:r.beforeunload),t.lifeCycle.on("destroy",function(){var e=Mv.get(t);e&&(e.isPagePerformanceReported=!1)}))},publishWhenObHidden:function(e){var t,n=Mv.get(e);if(null==n||!n.isPagePerformanceReported){n=0;if(null!=(t=e.firstScreenInfo)&&t.timing)n=e.firstScreenInfo.timing;else if(-1<(null==(t=null==(t=window.PerformanceObserver)?void 0:t.supportedEntryTypes)?void 0:t.indexOf("paint")))try{var r,i=performance.getEntriesByName("first-contentful-paint");i&&0<i.length&&(r=i[0])&&0<r.startTime&&(n=r.startTime)}catch(N){}(xv=this.buildPerformanceLog(e,n,this.getPageUrl(e),window.location.href))&&this.publish(xv,e,!0)}},buildPerformanceLog:function(e,t,n,r){var i=performance.timing;return i?(n={from:n,originFrom:r,dnsLookup:Iv(i.domainLookupEnd-i.domainLookupStart),tcp:Iv(i.connectEnd-i.connectStart),ssl:Iv(0===i.secureConnectionStart?0:i.requestStart-i.secureConnectionStart),ttfb:Iv(i.responseStart-i.requestStart),contentDownload:Iv(i.responseEnd-i.responseStart),domParse:Iv(i.domInteractive-i.domLoading,0,15e3,1070),resourceDownload:Iv(i.loadEventStart-i.domInteractive,0,15e3,1070),firstScreenTiming:Iv(Math.floor(t),0,15e3,15e3)},(r=e.config).extraPerformanceData&&"{}"!==JSON.stringify(r.extraPerformanceData)&&(t=(i=r.extraPerformanceData).engineInit,e=i.bundleLoad,n=A(A({},n),{engineInit:Iv(t,0,1e4),bundleLoad:Iv(e,0,1e4)})),n):undefined},publish:function(r,i){this.$walk(function(e){var t,n;e===i&&(t=(n=performance.timing).navigationStart,n={event_id:Ac(),event_type:P.PAGE_LOAD,event_category:Ic.PERFORMANCE,timestamp:Date.now(),page_url:r.originFrom||window.location.href,data:{measurements:{lcp:Tv.lcp,fcp:Tv.fcp,fid:Tv.fid,cls:Tv.cls,ttfb:Tv.ttfb||r.ttfb,dns_time:r.dnsLookup,tcp_time:r.tcp,ssl_time:r.ssl,request_time:r.ttfb,response_time:r.contentDownload,dom_parse_time:r.domParse,dom_ready:n.domContentLoadedEventEnd-t,load_complete:n.loadEventEnd-t,first_screen_time:r.firstScreenTiming},replay_id:tg(e),tags:{environment:e.config.env||"production",version:String(e.config.version||"")}}},null!=(t=e.reportTDEMEvent)&&t.call(e,n),n=Mv.get(e))&&(n.isPagePerformanceReported=!0)})},getPageUrl:function(e){var t=this.$getConfig(e);if(null!=t&&t.urlHandler&&"function"==typeof(null==t?void 0:t.urlHandler)){t=null==t?void 0:t.urlHandler();if(t)return encodeURIComponent(t)}return e.getCurrentPageUrl()},startCalcPerformance:function(t){var n=this;try{var r=this.getPageUrl(t),i=t.getOriginFrom();this.getFirstScreenTiming(t,function(e){xv=n.buildPerformanceLog(t,e,r,i);e=Mv.get(t);!xv||null!=e&&e.isPagePerformanceReported||n.publish(xv,t)})}catch(L){}},getFirstScreenTiming:function(e,t){null!=t&&t(0)},setFirstScreenInfo:function(e,t,n,r){var i;e.config.id&&this.performanceMap[e.config.id]||(e.config.id&&(this.performanceMap[e.config.id]=!0),("object"!==T(null==(i=e.config)?void 0:i.pagePerformance)||null!=(i=e.config.pagePerformance)&&i.firstScreenInfo)&&(e.firstScreenInfo={element:n,timing:t,markDoms:r}))},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(-1!==t.indexOf(e)||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){var t;return!(!e||"function"!=typeof e.getBoundingClientRect)&&(e=e.getBoundingClientRect(),t=window.innerHeight,0<=e.left)&&e.left<window.innerWidth&&0<=e.top&&e.top<t&&0<e.width&&0<e.height},walkAndCount:function(e){var t=0;if(e&&1===e.nodeType){t+=1;var n=e.children;if(null!=n&&n.length)for(var r=0;r<n.length;r++)1===n[r].nodeType&&(n[r].hasAttribute("TDEM-IGNORE-FIRST-SCREEN-TIMING")||n[r].hasAttribute("AEGIS-IGNORE-FIRST-SCREEN-TIMING"))||(t+=this.walkAndCount(n[r]))}return t},hasAncestorOrSelfWithAttribute:function(e,t){for(var n=t.replace(/^TDEM-/,"AEGIS-"),r=e;r&&r!==document.body;){if(r.hasAttribute(t)||n!==t&&r.hasAttribute(n))return!0;r=r.parentElement}return!1}}),Av=Math.min,Pv=[].lastIndexOf,Dv=!!Pv&&1/[1].lastIndexOf(1,-0)<0,Ht=We("lastIndexOf"),Lv=Dv||!Ht?function(e){if(Dv)return Ue(Pv,this,arguments)||0;var t=Ve(this),n=me(t);if(0!==n){var r=n-1;for((r=1<arguments.length?Av(r,fe(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0}return-1}:Pv,Nv=(R({target:"Array",proto:!0,forced:Lv!==[].lastIndexOf},{lastIndexOf:Lv}),new u({name:"spa"}),["replaceState","pushState","popstate","hashchange"]),l=new u({name:"spa",visitStates:new WeakMap,navigationStack:[],navigationIndex:-1,onNewTdem:function(n){var r=this,e=(history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState,this.sendPv=this.sendPv.bind(this),location.href);this.navigationStack.length||(this.navigationStack=[e],this.navigationIndex=0),n.config.spa&&this.sendPv(n,"reload"),Nv.forEach(function(e){var t=e;window.addEventListener(e,function(){return r.sendPv.call(r,n,t)})})},wr:function(n){var r=history[n],e="__"+n+"__hasWrittenByTamSpa";return"function"==typeof r&&!history[e]&&(Object.defineProperty(history,e,{value:!0,enumerable:!1}),function(){var e=r.apply(this,arguments),t=null;return"function"==typeof Event?t=new Event(n):(t=document.createEvent("HTMLEvents")).initEvent(n,!1,!0),window.dispatchEvent(t),e})},resolveNavigationType:function(e,t){var n;return"pushState"===e?(this.navigationIndex<this.navigationStack.length-1&&(this.navigationStack=this.navigationStack.slice(0,this.navigationIndex+1)),this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"push"):"replaceState"===e?(this.navigationIndex<0?(this.navigationStack=[t],this.navigationIndex=0):this.navigationStack[this.navigationIndex]=t,"replace"):"hashchange"===e?"hashchange":"popstate"===e?0<=(e=this.navigationStack.lastIndexOf(t))?(n=e<this.navigationIndex?"back":"forward",this.navigationIndex=e,n):(this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"forward"):"reload"},sendPv:function(a,e){var s=this,u=(void 0===e&&(e="reload"),a._customPageUrl),l=(a._customPageUrl=null,location.pathname+location.hash+a.config.id),c=a.getOriginFrom(),d=this.visitStates.get(a),f=this.resolveNavigationType(e,location.href);l&&(l!==(null==d?void 0:d.firedUrl)||u)&&this.$walk(function(n){var r,i,e,t,o;n===a&&("function"==typeof n.beginPageVisit?n.beginPageVisit(c,!!u):d&&(t=n,o=$c(),t.viewId=o,"function"==typeof t.extendBean)&&t.extendBean("viewId",o),r="string"==typeof(e=n.viewId||(null==(e=n.bean)?void 0:e.viewId)||"")?e:"",i=Date.now(),s.visitStates.set(a,{firedUrl:l,pageUrl:c}),setTimeout(function(){var e,t=A(A({event_id:Ac(),event_type:P.PAGE_VIEW,event_category:Ic.BEHAVIOR,timestamp:i,page_url:c},r?{view_id:r}:{}),{data:{page_title:document.title||"",referrer:document.referrer||undefined,is_effective_action:!0,replay_id:tg(n),tags:{environment:n.config.env||"production",version:String(n.config.version||""),is_spa:"true"},event_properties:{navigation_type:f,from_page:(u||(null==d?void 0:d.pageUrl)||"").slice(0,512),to_page:(c||"").slice(0,512)}}});null!=(e=n.reportTDEMEvent)&&e.call(n,t)},0))})},destroy:function(){this.option.sendPv=function(){}}}),Fv="__MONITOR_SESSION_V1__";function Uv(e,t){"undefined"!=typeof document&&(e=[e+"="+encodeURIComponent(t),"path=/","SameSite=Lax"],"undefined"!=typeof location&&"https:"===location.protocol&&e.push("Secure"),document.cookie=e.join("; "))}function jv(e,t,n){void 0===n&&(n=1);var r=Date.now();return{sessionId:e,createdAt:r,lastActivity:r,source:t,version:n}}function Bv(e,t){var n,r,i;return"undefined"==typeof window?jv(t(),e):(r="undefined"!=typeof document&&(r="_tdem_s".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)")))?decodeURIComponent(r[1]):null,n=window[Fv],r?(null==n?void 0:n.sessionId)===r?(n.lastActivity=Date.now(),n):(i=jv(r,(null==n?void 0:n.source)||e,(null==n?void 0:n.version)||1),window[Fv]=i):null!=n&&n.sessionId?(n.lastActivity=Date.now(),Uv("_tdem_s",n.sessionId),n):(i=jv(t(),e),Uv("_tdem_s",(window[Fv]=i).sessionId),i))}var zv="__TDEM_ENTRY_REGISTRY__",Wv=function(){var e="undefined"==typeof globalThis?{}:globalThis;return e[zv]||(e[zv]=Object.create(null))},Hv=function(e){return e===undefined||null===e?"":String(e)},qv=(Vv.prototype.request=function(o,a){var s=this;return void 0===a&&(a={}),o.sendBeacon||o.handoff?Promise.resolve(this.handoff(o,a)):new Promise(function(n){var e,r,t,i=new XMLHttpRequest;i.sendByTdem=!0,i.addEventListener("readystatechange",function(){var e,t;4===i.readyState&&((e={ok:0<i.status&&i.status<400,status:i.status,statusText:i.statusText,body:i.response,request:o}).ok?(null!=(t=a.success)&&t.call(a,i.response),null!=(t=a["final"])&&t.call(a,e),n(e)):(t=A(A({},e),{error:i.response}),null!=(e=a.fail)&&e.call(a,i.response),null!=(e=a["final"])&&e.call(a,t),n(t)))}),"get"===(o.method||"GET").toLowerCase()?(i.open("get",(e=o.url,r=o.data,"string"!=typeof e?"":"object"===T(r)&&r?(t=Object.getOwnPropertyNames(r).map(function(e){var t=r[e];return e+"="+("string"==typeof t?encodeURIComponent(t):encodeURIComponent(JSON.stringify(t)))}).join("&"),e+(-1===e.indexOf("?")?"?":"&")+sc(t)):e)),s.applyHeaders(i,o.headers),i.send()):(i.open("post",o.url),s.applyHeaders(i,o.headers),o.contentType&&i.setRequestHeader("Content-Type",o.contentType),t=o.body!==undefined?o.body:o.data,s.shouldSanitizeEvalKeyword(o,t)&&(t=sc(t)),i.send(t))})},Vv.prototype.shouldSanitizeEvalKeyword=function(e,t){return"string"==typeof t&&!("replay"===e.kind||(e=null!=(t=null==(t=e.headers)?void 0:t["Content-Encoding"])?t:null==(t=e.headers)?void 0:t["content-encoding"])&&/gzip/i.test(e))},Vv.prototype.handoff=function(e,t){void 0===t&&(t={});var n,r="undefined"!=typeof navigator?navigator:undefined;return r&&"function"==typeof r.sendBeacon?(n=e.body!==undefined?e.body:e.data,r={ok:n=r.sendBeacon(e.url,n),request:e,handoffAccepted:n,error:n?undefined:new Error("navigator.sendBeacon rejected the payload")},n?null!=(n=t.success)&&n.call(t,{accepted:!0}):null!=(n=t.fail)&&n.call(t,r.error),null!=(n=t["final"])&&n.call(t,r),r):(n={ok:!1,request:e,error:new Error("navigator.sendBeacon is unavailable")},null!=(r=t.fail)&&r.call(t,n.error),null!=(e=t["final"])&&e.call(t,n),n)},Vv.prototype.applyHeaders=function(t,n){n&&Object.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})},Vv);function Vv(){}function Gv(e){try{var t="undefined"!=typeof window?window.location.href:"https://tdem.invalid/",n=new URL(e,t);return n.origin+n.pathname+n.hash}catch(C){return e.split("?")[0]}}var Jv,Kv=new Map,$v=(kl(Yv,Jv=Fp),Yv.prototype.beginPageVisit=function(e,t){void 0===t&&(t=!1);var n=Gv(e);return!t&&n===this.viewPageIdentity||(this.viewId=$c(),this.extendBean("viewId",this.viewId),this.lifeCycle.emit("pageVisitChanged",{pageUrl:e,viewId:this.viewId})),this.viewPageIdentity=n,this.viewId},Yv.prototype.reportPageView=function(e,t){void 0===t&&(t={}),this.beginPageVisit(e||t.pageUrl||this.getOriginFrom(),!!t.navigationType),Jv.prototype.reportPageView.call(this,e,t)},Yv.prototype.leavePage=function(){this._customPageUrl&&(this.beginPageVisit("undefined"!=typeof window?window.location.href:"",!0),Jv.prototype.leavePage.call(this))},Yv.prototype._bootstrapInit=function(e){this.setConfig(e),this.config=Rl(this.config,e.hostUrl),this._prefetchConfigAndInit(e)},Yv.prototype._initImmediately=function(e){this.init(e),this._afterInit(e)},Yv.prototype._prefetchConfigAndInit=function(o){return _l(this,void 0,void 0,function(){var t,n,r,i;return Sl(this,function(e){switch(e.label){case 0:if(t=this.config.id,n=this._buildPrefetchConfigUrl(),r=null,!t||!n)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.transportRequest({kind:"config",url:n,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:t})})];case 2:return(i=e.sent()).ok&&0===(i="string"==typeof i.body?JSON.parse(i.body):i.body).code&&i.data&&(r=i.data),[3,4];case 3:return e.sent(),(i=this._loadPrefetchDataFromCache(t))&&(r=i),[3,4];case 4:r&&(this._prefetchedConfigData=r);try{this._initAfterPreparedConfig(o)}catch(b){console.warn(b),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),this.sendSDKError(b)}return[2]}})})},Yv.prototype._buildPrefetchConfigUrl=function(){var e=(this.config.url||"").replace(/\/+$/,"");return e?e+"/api/v1/sample-config":""},Yv.prototype._loadPrefetchDataFromCache=function(e){var t;try{var n,r=localStorage.getItem("TDEM_SAMPLE_CONFIG");return r?!((n=JSON.parse(r)).projectKey!==e||6048e5<=Date.now()-n.timestamp)&&null!=(t=n.document)&&t.event?n.document:null:null}catch(L){return null}},Yv.prototype._initAfterPreparedConfig=function(e){for(var t=0;t<Fp.installedPlugins.length;t++)try{Fp.installedPlugins[t].patch(this)}catch(_){this.sendSDKError(_)}this.lifeCycle.emit("onInited"),this._afterInit(e)},Yv.prototype._afterInit=function(e){var t,o,n=this,r=(this._sdkInitialized=!0,this.config.id),i=Yv.entryName;(r=(r=Hv(r))?Wv()[r]:null)&&r.owner===i&&(r.state=1),this.extendBean("sessionId",Yv.sessionID),this.extendBean("from",this.getCurrentPageUrl()),"undefined"!=typeof document&&this.extendBean("referer",encodeURIComponent(document.referrer||"")),t=zl(jl("tdem-web-retry-report-requests"),[]),(o=function(){var i;t.length&&(i=t.splice(0,1)[0],Bl("tdem-web-retry-report-requests",JSON.stringify(t)),n.$request(i,function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=Kv.get(null==(e=i.extraRetryOptions)?void 0:e.success))?void 0:t.apply(i,n)}finally{o()}},function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=Kv.get(null==(e=i.extraRetryOptions)?void 0:e.fail))?void 0:t.apply(i,n)}finally{o()}}))})()},Yv.prototype.getBean=function(t){var n=this;return void 0===t&&(t=[]),""+Object.getOwnPropertyNames(this.bean).filter(function(e){return-1===t.indexOf(e)}).map(function(e){return"from"===e?"from="+n.getCurrentPageUrl():e+"="+n.bean[e]}).join("&")},Yv.prototype.getCurrentPageUrl=function(){var e;return this._customPageUrl?encodeURIComponent(this._customPageUrl.slice(0,2048)):(e=this.config.pageUrl||location.href,e=(e="function"==typeof this.config.urlHandler?this.config.urlHandler()||location.href:e).slice(0,2048),encodeURIComponent(e))},Yv.prototype.getOriginFrom=function(){if(this._customPageUrl)return this._customPageUrl.slice(0,2048);try{return("undefined"!=typeof window&&window.location?window.location.href:"").slice(0,2048)}catch(De){return""}},Yv.prototype.ready=function(){var t=this,o=function(){var e,n,r,i;t.reportRequestQueue.length&&(e=t.reportRequestQueue.splice(0,1)[0],n=e.options,r=e.success,i=e.fail,t.$request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==r?void 0:r.apply(n,e)}finally{o()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==i?void 0:i.apply(n,e)}finally{o()}}))};o(),this.isReportReady=!0},Yv.prototype.request=function(u,n,l){var c,d,f=this;this.config.reportImmediately||this.isReportReady?this.$request(u,c=function(e){var t=zl(jl("tdem-web-retry-report-requests"),[]);null!=t&&t.length&&u.extraRetryOptions&&(t.splice(t.findIndex(function(e){return e.extraRetryOptions.requestId===u.extraRetryOptions.requestId}),1),Bl("tdem-web-retry-report-requests",JSON.stringify(t)),Kv["delete"](u.extraRetryOptions.success),Kv["delete"](u.extraRetryOptions.fail)),null!=n&&n(e)},d=function(e){if(!f.config.reportRetry)return null==l?void 0:l(e);var t,n="boolean"==typeof f.config.reportRetry?Pg:A(A({},Pg),f.config.reportRetry),r=n.maxRetryCount,i=void 0===r?Pg.maxRetryCount:r,r=n.retryInterval,r=void 0===r?Pg.retryInterval:r,n=n.whenRetryEndStillFail,o=void 0===n?Pg.whenRetryEndStillFail:n,a=(u.extraRetryOptions||(u.extraRetryOptions={requestId:"",retriedCount:0,success:"",fail:""}),u.extraRetryOptions),s=(a.requestId=a.requestId||u.url+"-"+Date.now()+"-"+Math.random(),a.requestId),n=(a.retriedCount=a.retriedCount||0,a.success=a.success||s+"_successCallback",a.fail=a.fail||s+"_failCallback",zl(jl("tdem-web-retry-report-requests"),[]));n.find(function(e){return e.extraRetryOptions.requestId===s})?(t=n.findIndex(function(e){return e.extraRetryOptions.requestId===s}),n[t]=u):n.push(u),Bl("tdem-web-retry-report-requests",JSON.stringify(n)),setTimeout(function(){var e;a.retriedCount<i?(u.extraRetryOptions.retriedCount+=1,f.$request(u,c,d)):("discard"===o&&((e=zl(jl("tdem-web-retry-report-requests"),[]).filter(function(e){return(null==(e=e.extraRetryOptions)?void 0:e.requestId)!==s})).length?Bl("tdem-web-retry-report-requests",JSON.stringify(e)):function(e){try{localStorage.removeItem(e)}catch(ww){}}("tdem-web-retry-report-requests")),Kv["delete"](a.success),Kv["delete"](a.fail))},"function"==typeof r?r(u.extraRetryOptions.retriedCount):r),null!=l&&l(e),Kv.has(a.success)||Kv.set(a.success,c),Kv.has(a.fail)||Kv.set(a.fail,d)}):this.reportRequestQueue.push({options:u,success:n,fail:l})},Yv.prototype.$request=function(s,e,t){var n,r;if(s&&"string"==typeof s.url&&""!==s.url&&this.bean.id)return n=s.url,!1!==s.addBean&&(n=function(e,t){var n,r,i,o=e,a=s.beanFilter||[];for(n in t)-1===a.indexOf(n)&&((i=(r=new RegExp("([?&])"+n+"(=([^&]*))?(?=&|$)")).exec(o))?i[2]&&""!==i[3]&&"undefined"!==i[3]||(o=o.replace(r,"$1"+n+"="+t[n])):(i=-1<o.indexOf("?")?"&":"?",o+=i+n+"="+t[n]));return o}(n,A(A({},this.bean),{from:this.getCurrentPageUrl()}))),s.url=n,n=s.method||"get",r=this.config.onBeforeRequest,(s=r?r(s,this):s)?s.url?(r={success:e,fail:t},void((e={kind:s.type===uc.WHITE_LIST?"config":"events",url:s.url,method:n.toUpperCase(),contentType:s.contentType,data:s.data,body:s.data,sendBeacon:!!(null!=s&&s.sendBeacon||this.sendNow),source:s}).sendBeacon?this.transportHandoff(e,r):this.transportRequest(e,r))):console.warn("Please handle the parameters reasonably, options.url is necessary"):console.warn("Sending request blocked")},Yv.prototype.publishPluginsLogs=function(){var e=Yv.installedPlugins.find(function(e){return"assets"===e.name});null!=e&&e.option.collectNotReportedLog(this)},Yv.prototype.uploadLogs=function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={}),null!=(n=this.lifeCycle)&&n.emit("uploadLogs",e,t)},Yv.prototype.reportWebVitals=function(e){try{var t=Yv.installedPlugins.find(function(e){return"webVitals"===e.name});t&&this.config.webVitals&&this.config.webVitals.manualReport&&t.option.publish(this,e)}catch(De){}},Yv.prototype.destroy=function(e){var t,n,r;void 0===e&&(e=!1),n=this.config.id,t=Yv.entryName,(r=(n=Hv(n))?Wv():null)&&r[n]&&r[n].owner===t&&delete r[n],Jv.prototype.destroy.call(this,e)},Yv.entryName="tdem-web-sdk",Yv.sessionID=Bv("tdem",$c).sessionId,Yv),We=(new u({name:"ie"}),new u({name:"ie",init:function(){this.overrideTdemSend()},onNewTdem:function(e){this.startListen(e)},startListen:function(o){var a=this,s=window.onerror;window.onerror=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,i=wc(t[0]);Qm(i)||(r={event_id:Ac(),event_type:P.JS_ERROR,event_category:Ic.ERROR,timestamp:Date.now(),page_url:("undefined"!=typeof window?null==(e=window.location)?void 0:e.href:"")||"",data:{exception_stacks:[{type:"Error",value:String(i||""),mechanism_type:"onerror",mechanism_handled:0}],exception_frames:[{abs_path:String(t[1]||""),colno:Number(t[3])||0,filename:String(t[1]||"").split("/").pop()||"","function":"(anonymous)",lineno:Number(t[2])||0,in_app:1,stack_level:0}]}},a.$walk(function(e){var t;e===o&&null!=(t=e.reportTDEMEvent)&&t.call(e,r)})),null!=s&&s.call.apply(s,El([window],t))}},overrideTdemSend:function(){$v.prototype.request=function(e,t,n){var r,i,o=this;e&&"string"==typeof e.url&&""!==e.url&&this.bean.id&&(r=e.url,!1!==e.addBean&&(r=r+(-1===r.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),(i=new Image).onload=function(){o.request(e,t,n),null!=t&&t(null)},i.onerror=function(){o.request(e,t,n),null!=n&&n(null)},e.data?i.src=r+"&"+e.data:i.src=r)}},destroy:function(){}})),Ht=(new u({name:"onClose"}),new u({name:"onClose",onNewTdem:function(e){var t=this,n=function(){return t.publishNotReportedLog(e)},r=function(){"undefined"!=typeof document&&"hidden"!==document.visibilityState||n()};document.addEventListener("visibilitychange",r,!0),window.addEventListener("pagehide",n,!0),e.lifeCycle.on("destroy",function(){document.removeEventListener("visibilitychange",r,!0),window.removeEventListener("pagehide",n,!0)})},publishNotReportedLog:function(n){var r=this;this.$walk(function(e){if(e===n){var t=e.sendNow;try{e.sendNow=!0,e.lifeCycle.emit("beforeCloseFlush"),e.publishPluginsLogs(),r.publishThrottlePipeLogs(e)}finally{e.sendNow=t}}})},publishThrottlePipeLogs:function(e){null!=e&&e.speedLogPipeline([]),null!=e&&e.tdemEventPipeline([])}})),Zv=void 0;function Yv(e,t){var n,r,i,a,o,s,u,l,c,d,f,h,p=Jv.call(this,e,t=void 0===t?{}:t)||this,m=(p._entrySkipped=!1,p.sendNow=!1,p.isReportReady=!1,p.reportRequestQueue=[],p._sdkInitialized=!1,p.viewId="",p.viewPageIdentity="",p.speedLogPipeline=Mp([(l=[],c=(o=p).config,o.lifeCycle.on("destroy",function(){l.length=0}),function(e,t){Array.isArray(e)?l=l.concat(e):l.push(e),s&&l.length>=s||o.sendNow&&0<l.length?(l=Uc(l),0<(l=Array.isArray(l)?l:[]).length&&t(l.splice(0,l.length)),u&&clearTimeout(u)):(u&&clearTimeout(u),u=setTimeout(function(){u=null,l=Uc(l),0<(l=Array.isArray(l)?l:[]).length&&t(l.splice(0,l.length))},c.delay))}),(a=p.config,function(e,t){var n,r,i,o="number"==typeof a.repeat?a.repeat:60;!a.speedSample||o<=0?t(e):(n=(null==a?void 0:a.id)||"0",r=Bc[n]||{},Array.isArray(e)?(i=e.filter(function(e){var t=!r[e.url]||r[e.url]<o;return t?(r[e.url]=1+~~r[e.url],Bc[n]=r):jc[n]||zc(n),t})).length&&t(i):!r[e.url]||r[e.url]<o?(r[e.url]=1+~~r[e.url],Bc[n]=r,t(e)):jc[n]||zc(n))}),(i=p,function(t,n){tv(function(e){i.extendBean("netType",e),n(t)})}),function(e,t){null!=(n=p.lifeCycle)&&n.emit("beforeReportSpeed",e);var n,r=p.config.beforeReportSpeed;if((e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length)return t(e)},function(e,t){t(e.map(function(e){return"undefined"!=typeof e.payload&&delete e.payload,e}))},function(e){return p.sendPipeline([function(e,t){t({type:uc.SPEED,url:""+p.config.speedUrl,method:"post",data:Cc(e,A(A({},p.bean),{from:p.getCurrentPageUrl()})),log:e})}],uc.SPEED)(e)}]),t=e&&e.id,d=Yv.entryName,(t=Hv(t))?(m=(f=Wv())[t])&&m.owner!==d?{status:"skipped_duplicate",owner:m.owner}:(m||(f[t]={owner:d,state:0}),{status:"owned",owner:d}):{status:"owned",owner:d});if("skipped_duplicate"===m.status)p._entrySkipped=!0,-1!==(t=Fp.instances.indexOf(p))&&Fp.instances.splice(t,1),console.warn("[TDEM] skip "+Yv.entryName+": "+(e&&e.id)+" owned by "+m.owner);else{p.viewId=$c(),p.extendBean("viewId",p.viewId),p.viewPageIdentity=Gv(p.getOriginFrom()),p.getInternalTransport()||p.setInternalTransport(new qv),e.asyncPlugin=!0;try{"undefined"!=typeof document&&(h=String(e.userId||e.uin||(null!=(n=document.cookie.match(/\buin=\D+(\d*)/))?n:[])[1]||(null!=(r=document.cookie.match(/\bilive_uin=\D*(\d+)/))?r:[])[1]||""),e.userId=h,e.uin=e.uin||h),p._bootstrapInit(e)}catch(j){console.warn(j),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),p.sendSDKError(j)}}return p}R({target:"Math",stat:!0},{log1p:Zv});Math.log;var d=Math.acosh,Xv=Math.log,Qv=Math.sqrt,ey=Math.LN2,d=!d||710!==Math.floor(d(Number.MAX_VALUE))||d(Infinity)!==Infinity,d=(R({target:"Math",stat:!0,forced:d},{acosh:function(e){e=+e;return e<1?NaN:94906265.62425156<e?Xv(e)+ey:Zv(e-1+Qv(e-1)*Qv(1+e))}}),Math.asinh),ty=Math.abs,ny=Math.log,ry=Math.sqrt,iy=Math.LN2,d=!(d&&0<1/d(0)&&ty(d(1e-8)-1e-8)<1e-16),ty=(R({target:"Math",stat:!0,forced:d},{asinh:function Cx(e){e=+e;return isFinite(e)&&0!=e?e<0?-Cx(-e):94906265.62425156<e?ny(e)+iy:e<1e-8?e:Zv(e+e*e/(1+ry(e*e+1))):e}}),Math.atanh),d=!(ty&&1/ty(-0)<0),oy=(R({target:"Math",stat:!0,forced:d},{atanh:function(e){e=+e;return 0==e?e:Zv(2*e/(1-e))/2}}),void 0),ty=(R({target:"Math",stat:!0,forced:oy!==Math.expm1},{expm1:oy}),Math.expm1),d=(!ty||22025.465794806718<ty(10)||ty(10)<22025.465794806718||ty(-2e-17),Math.cosh),ay=Math.abs,sy=Math.E,ty=!d||d(710)===Infinity,uy=(R({target:"Math",stat:!0,forced:ty},{cosh:function(e){e=oy(ay(e)-1)+1;return(e+1/(e*sy*sy))*(sy/2)}}),Math.abs),ly=Math.exp,cy=Math.E,d=g(function(){return-2e-17!==Math.sinh(-2e-17)}),dy=(R({target:"Math",stat:!0,forced:d},{sinh:function(e){e=+e;return uy(e)<1?(oy(e)-oy(-e))/2:(ly(e-1)-ly(-e-1))*(cy/2)}}),Math.exp);R({target:"Math",stat:!0},{tanh:function(e){var e=+e,t=oy(e),n=oy(-e);return t===Infinity?1:n===Infinity?-1:(t-n)/(dy(e)+dy(-e))}});var fy,hy,py,my=Bt.enforce,gy=Bt.get,ty=x.Int8Array,vy=ty&&ty.prototype,d=x.Uint8ClampedArray,d=d&&d.prototype,yy=ty&&fr(ty),wy=vy&&fr(vy),ty=Object.prototype,by=x.TypeError,ky=et("toStringTag"),_y=Nt("TYPED_ARRAY_TAG"),Sy=n,n=!1,Ey={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Cy={BigInt64Array:8,BigUint64Array:8},Ry=function(e){var t,e=fr(e);if(O(e))return(t=gy(e))&&M(t,"TypedArrayConstructor")?t.TypedArrayConstructor:Ry(e)},Oy=function(e){return!!O(e)&&(e=it(e),M(Ey,e)||M(Cy,e))};for(fy in Ey)(py=(hy=x[fy])&&hy.prototype)?my(py).TypedArrayConstructor=hy:Sy=!1;for(fy in Cy)(py=(hy=x[fy])&&hy.prototype)&&(my(py).TypedArrayConstructor=hy);if((!Sy||!oe(yy)||yy===Function.prototype)&&(yy=function(){throw new by("Incorrect invocation")},Sy))for(fy in Ey)x[fy]&&Or(x[fy],yy);if((!Sy||!wy||wy===ty)&&(wy=yy.prototype,Sy))for(fy in Ey)x[fy]&&Or(x[fy].prototype,wy);if(Sy&&fr(d)!==wy&&Or(d,wy),f&&!M(wy,ky))for(fy in Wt(wy,ky,{configurable:n=!0,get:function(){return O(this)?this[_y]:undefined}}),Ey)x[fy]&<(x[fy].prototype,_y,fy);var D={NATIVE_ARRAY_BUFFER_VIEWS:Sy,TYPED_ARRAY_TAG:n&&_y,aTypedArray:function(e){if(Oy(e))return e;throw new by("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!oe(e)||Or&&!Oe(yy,e))throw new by(Te(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n,r){if(f){if(n)for(var i in Ey){i=x[i];if(i&&M(i.prototype,e))try{delete i.prototype[e]}catch(X){try{i.prototype[e]=t}catch(N){}}}wy[e]&&!n||Jt(wy,e,!n&&Sy&&vy[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(f){if(Or){if(n)for(r in Ey)if((i=x[r])&&M(i,e))try{delete i[e]}catch(X){}if(yy[e]&&!n)return;try{return Jt(yy,e,!n&&Sy&&yy[e]||t)}catch(X){}}for(r in Ey)!(i=x[r])||i[e]&&!n||Jt(i,e,t)}},getTypedArrayConstructor:Ry,isView:function(e){return!!O(e)&&("DataView"===(e=it(e))||M(Ey,e)||M(Cy,e))},isTypedArray:Oy,TypedArray:yy,TypedArrayPrototype:wy},xy=x.ArrayBuffer,Ty=x.Int8Array,Iy=!D.NATIVE_ARRAY_BUFFER_VIEWS||!g(function(){Ty(1)})||!g(function(){new Ty(-1)})||!Au(function(e){new Ty,new Ty(null),new Ty(1.5),new Ty(e)},!0)||g(function(){return 1!==new Ty(new xy(2),1,undefined).length}),My=(R({target:"Number",stat:!0},{isInteger:void 0}),Math.floor,Number.isInteger,RangeError),Ay=RangeError,Py=function(t,e){var n=function(){var e=fe(t);if(e<0)throw new My("The argument can't be less than 0");return e}();if(n%e)throw new Ay("Wrong offset");return n},Dy=Math.floor,Ly=TypeError,Ny=function(e){e=Eo(e,"number");if("number"==typeof e)throw new Ly("Can't convert number to bigint");return BigInt(e)},Fy=D.aTypedArrayConstructor,Uy=function(e){var t=hu(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&Fe(r);var o,a,s,u,l,c,d,f,h=ce(e),e=ei(h);if(e&&!Yr(e))for(f=(d=ni(h,e)).next,h=[];!(c=I(f,d)).done;)h.push(c.value);for(i&&2<n&&(r=Kr(r,arguments[2])),a=me(h),u=function(e){e=it(e);return"BigInt64Array"===e||"BigUint64Array"===e}(s=new(Fy(t))(a)),o=0;o<a;o++)l=i?r(h[o],o):h[o],s[o]=u?Ny(l):+l;return s},jy=function(e,t,n){for(var r=0,i=2<arguments.length?n:me(t),o=new e(i);r<i;)o[r]=t[r++];return o},ty=Je(function(e){var r=Qn.f,u=gi.forEach,h=Bt.get,p=Bt.set,m=Bt.enforce,g=ut.f,n=sr.f,v=x.RangeError,y=Ko.ArrayBuffer,t=y.prototype,w=Ko.DataView,b=D.NATIVE_ARRAY_BUFFER_VIEWS,k=D.TYPED_ARRAY_TAG,_=D.TypedArray,S=D.TypedArrayPrototype,E=D.isTypedArray,i=function(e,t){Wt(e,t,{configurable:!0,get:function(){return h(this)[t]}})},C=function(e){return Oe(t,e)||"ArrayBuffer"===(e=it(e))||"SharedArrayBuffer"===e},o=function(e,t){return E(e)&&!Zi(t)&&t in e&&(void 0)(+t)&&0<=t},a=function(e,t){return t=Ei(t),o(e,t)?st(2,e[t]):n(e,t)},s=function(e,t,n){return t=Ei(t),!(o(e,t)&&O(n)&&M(n,"value"))||M(n,"get")||M(n,"set")||n.configurable||M(n,"writable")&&!n.writable||M(n,"enumerable")&&!n.enumerable?g(e,t,n):(e[t]=n.value,e)};f?(b||(sr.f=a,ut.f=s,i(S,"buffer"),i(S,"byteOffset"),i(S,"byteLength"),i(S,"length")),R({target:"Object",stat:!0,forced:!b},{getOwnPropertyDescriptor:a,defineProperty:s}),e.exports=function(e,t,i){var l=e.match(/\d+/)[0]/8,n=e+(i?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=x[n],c=s,d=c&&c.prototype,e={},f=function(e,r){g(e,r,{get:function(){var e=this,t=r;return(e=h(e)).view[o](t*l+e.byteOffset,!0)},set:function(e){var t,n;t=r,e=e,(n=h(n=this)).view[a](t*l+n.byteOffset,i?(t=+e)!=t||t<=0?0:255<=t?255:!((n=Dy(t))+.5<t)&&(t<n+.5||n%2==0)?n:n+1:e,!0)},enumerable:!0})},t=(b?Iy&&(c=t(function(e,t,n,r){return dr(e,d),ca(O(t)?C(t)?r!==undefined?new s(t,Py(n,l),r):n!==undefined?new s(t,Py(n,l)):new s(t):E(t)?jy(c,t):I(Uy,c,t):new s(na(t)),e,c)}),Or&&Or(c,_),u(r(s),function(e){e in c||lt(c,e,s[e])}),c.prototype=d):(c=t(function(e,t,n,r){dr(e,d);var i,o,a=0,s=0;if(O(t)){if(!C(t))return E(t)?jy(c,t):I(Uy,c,t);var u=t,s=Py(n,l),n=t.byteLength;if(r===undefined){if(n%l)throw new v("Wrong length");if((i=n-s)<0)throw new v("Wrong length")}else if((i=na(r)*l)+s>n)throw new v("Wrong length");o=i/l}else o=na(t),u=new y(i=o*l);for(p(e,{buffer:u,byteOffset:s,byteLength:i,length:o,view:new w(u)});a<o;)f(e,a++)}),Or&&Or(c,_),d=c.prototype=Ot(S)),d.constructor!==c&<(d,"constructor",c),m(d).TypedArrayConstructor=c,k&<(d,k,n),c!==s);e[n]=c,R({global:!0,constructor:!0,forced:t,sham:!b},e),"BYTES_PER_ELEMENT"in c||lt(c,"BYTES_PER_ELEMENT",l),"BYTES_PER_ELEMENT"in d||lt(d,"BYTES_PER_ELEMENT",l),Ma(n)}):e.exports=function(){}}),By=(ty("Float32",function(r){return function(e,t,n){return r(this,e,t,n)}}),ty("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}}),R({target:"Array",proto:!0},{copyWithin:void 0}),rr("copyWithin"),Math.min,v(void 0)),zy=D.aTypedArray,Wy=((0,D.exportTypedArrayMethod)("copyWithin",function(e,t){return By(zy(this),e,t,2<arguments.length?arguments[2]:undefined)}),gi.every),Hy=D.aTypedArray,qy=((0,D.exportTypedArrayMethod)("every",function(e){return Wy(Hy(this),e,1<arguments.length?arguments[1]:undefined)}),ty("Int8",function(r){return function(e,t,n){return r(this,e,t,n)}}),D.getTypedArrayConstructor),Vy=function(e,t){return jy(qy(e),t)},Gy=gi.filter,Jy=D.aTypedArray,Ky=((0,D.exportTypedArrayMethod)("filter",function(e){e=Gy(Jy(this),e,1<arguments.length?arguments[1]:undefined);return Vy(this,e)}),gi.find),$y=D.aTypedArray,Zy=((0,D.exportTypedArrayMethod)("find",function(e){return Ky($y(this),e,1<arguments.length?arguments[1]:undefined)}),gi.findIndex),Yy=D.aTypedArray,Xy=((0,D.exportTypedArrayMethod)("findIndex",function(e){return Zy(Yy(this),e,1<arguments.length?arguments[1]:undefined)}),gi.forEach),Qy=D.aTypedArray,e0=((0,D.exportTypedArrayMethod)("forEach",function(e){Xy(Qy(this),e,1<arguments.length?arguments[1]:undefined)}),t.includes),t0=D.aTypedArray,n0=((0,D.exportTypedArrayMethod)("includes",function(e){return e0(t0(this),e,1<arguments.length?arguments[1]:undefined)}),t.indexOf),r0=D.aTypedArray,i0=((0,D.exportTypedArrayMethod)("indexOf",function(e){return n0(r0(this),e,1<arguments.length?arguments[1]:undefined)}),et("iterator")),d=x.Uint8Array,o0=v(br.values),a0=v(br.keys),s0=v(br.entries),u0=D.aTypedArray,ky=D.exportTypedArrayMethod,l0=d&&d.prototype,n=!g(function(){l0[i0].call([1])}),rr=!!l0&&l0.values&&l0[i0]===l0.values&&"values"===l0.values.name,t=function(){return o0(u0(this))},c0=(ky("entries",function(){return s0(u0(this))},n),ky("keys",function(){return a0(u0(this))},n),ky("values",t,n||!rr,{name:"values"}),ky(i0,t,n||!rr,{name:"values"}),D.aTypedArray),d=D.exportTypedArrayMethod,d0=v([].join),f0=(d("join",function(e){return d0(c0(this),e)}),D.aTypedArray),h0=((0,D.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return Ue(Lv,f0(this),1<t?[e,arguments[1]]:[e])}),gi.map),p0=D.aTypedArray,m0=((0,D.exportTypedArrayMethod)("map",function(e){e=h0(p0(this),e,1<arguments.length?arguments[1]:undefined);return Vy(this,e)}),je.left),g0=D.aTypedArray,v0=((0,D.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return m0(g0(this),e,t,1<t?arguments[1]:undefined)}),je.right),y0=D.aTypedArray,w0=((0,D.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return v0(y0(this),e,t,1<t?arguments[1]:undefined)}),D.aTypedArray),t=D.exportTypedArrayMethod,b0=Math.floor,k0=(t("reverse",function(){for(var e,t=w0(this).length,n=b0(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}),ty("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}},!0),gi.some),_0=D.aTypedArray,S0=((0,D.exportTypedArrayMethod)("some",function(e){return k0(_0(this),e,1<arguments.length?arguments[1]:undefined)}),D.aTypedArray),n=D.exportTypedArrayMethod,E0=x.Uint16Array,C0=E0&&e(E0.prototype.sort),rr=!(!C0||g(function(){C0(new E0(2),null)})&&g(function(){C0(new E0(2),{})})),R0=!!C0&&!g(function(){if(Gn)return Gn<74;if(Dd)return Dd<67;if(Ld)return!0;if(Nd)return Nd<602;for(var e,t=new E0(516),n=Array(516),r=0;r<516;r++)e=r%4,t[r]=515-r,n[r]=r-2*e+3;for(C0(t,function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(t[r]!==n[r])return!0}),O0=(n("sort",function(e){return e!==undefined&&Fe(e),R0?C0(this,e):Pd(S0(this),(n=e,function(e,t){return n!==undefined?+n(e,t)||0:t!=t?e!=e?0:-1:e!=e?1:0===e&&0===t?0<1/e?0<1/t?0:1:0<1/t?-1:0:t<e?1:e<t?-1:0}));var n},!R0||rr),D.aTypedArray),x0=D.getTypedArrayConstructor,T0=((0,D.exportTypedArrayMethod)("subarray",function(e,t){var n=O0(this),r=n.length,e=pt(e,r);return new(x0(n))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,pe((t===undefined?r:pt(t,r))-e))}),x.Int8Array),I0=D.aTypedArray,ky=D.exportTypedArrayMethod,M0=[].toLocaleString,A0=!!T0&&g(function(){M0.call(new T0(1))}),d=(ky("toLocaleString",function(){return Ue(M0,A0?$n(I0(this)):I0(this),$n(arguments))},g(function(){return[1,2].toLocaleString()!==new T0([1,2]).toLocaleString()})||!g(function(){T0.prototype.toLocaleString.call([1,2])})),D.exportTypedArrayMethod),je=x.Uint8Array,t=je&&je.prototype||{},P0=[].toString,D0=v([].join),e=(g(function(){P0.call({})})&&(P0=function(){return D0(this)}),t.toString!==P0),L0=(d("toString",P0,e),D.aTypedArray),N0=D.getTypedArrayConstructor,F0=((0,D.exportTypedArrayMethod)("slice",function(e,t){for(var n=$n(L0(this),e,t),e=N0(this),r=0,i=n.length,o=new e(i);r<i;)o[r]=n[r++];return o},g(function(){new Int8Array(1).slice()})),x.RangeError),U0=x.Int8Array,rr=U0&&U0.prototype,j0=rr&&rr.set,B0=D.aTypedArray,n=D.exportTypedArrayMethod,z0=!g(function(){var e=new Uint8ClampedArray(2);return I(j0,e,{length:1,0:3},1),3!==e[1]}),ky=z0&&D.NATIVE_ARRAY_BUFFER_VIEWS&&g(function(){var e=new U0(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}),W0=(n("set",function(e){B0(this);var t=Py(1<arguments.length?arguments[1]:undefined,1),n=ce(e);if(z0)return I(j0,this,n,t);var e=this.length,r=me(n),i=0;if(e<r+t)throw new F0("Wrong length");for(;i<r;)this[t+i]=n[i++]},!z0||ky),D.aTypedArray),je=D.exportTypedArrayMethod,H0=v("".slice);function q0(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}je("fill",function(e){var t=arguments.length,e=(W0(this),"Big"===H0(it(this),0,3)?Ny(e):+e);return I(la,this,e,1<t?arguments[1]:undefined,2<t?arguments[2]:undefined)},g(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})),new u({name:"aid"});K0.generate=function(){return"rep_"+this.uuid32()},K0.uuid32=function(){return"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/x/g,function(){return Math.floor(16*Math.random()).toString(16)})};var V0=K0,G0="[SessionReplay]",J0=!1;function K0(){}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];J0&&console.log.apply(console,El([G0+"["+e+"]"],t))}function $0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];J0&&console.debug.apply(console,El([G0+"["+e+"]"],t))}function Z0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];J0&&console.log.apply(console,El([G0+"["+e+"] WARN:"],t))}function Y0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];J0&&console.log.apply(console,El([G0+"["+e+"] ERROR:"],t))}nw.prototype.setTdemInstance=function(e){this.tdemInstance=e},nw.prototype.createSession=function(e){void 0===e&&(e="session");var t=null==(t=this.session)?void 0:t.replayId,n=Bv("tdem",q0),n=A({id:n.sessionId,replayId:V0.generate(),started:Date.now(),lastActivity:Date.now(),segmentId:0,sampled:e},t?{previousReplayId:t}:{});return this.session=n,this.syncSharedSession(n.id),h("SessionManager","Document replay session created:",n.id,n.replayId),n},nw.prototype.restoreSession=function(){return this.session},nw.prototype.saveSession=function(){},nw.prototype.refreshSession=function(){var e=null!=(e=null==(e=this.session)?void 0:e.sampled)?e:"session";return this.createSession(e)},nw.prototype.updateActivity=function(){this.session&&(this.session.lastActivity=Date.now())},nw.prototype.incrementSegmentId=function(){var e;return this.session?(e=this.session.segmentId,this.session.segmentId+=1,e):0},nw.prototype.shouldRefreshSession=function(){return!1},nw.prototype.getSession=function(){return this.session},nw.prototype.getSessionId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.id)?e:""},nw.prototype.getReplayId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.replayId)?e:""},nw.prototype.clearSession=function(){var e;this.session=null;try{null!=(e=window.sessionStorage)&&e.removeItem("tdem_session")}catch(w){}},nw.prototype.syncSharedSession=function(e){var t,n,r;this.tdemInstance&&this.tdemInstance.extendBean("sessionId",e),e=e,"undefined"!=typeof window&&(t=Date.now(),(n=window[Fv])?(r=n.sessionId!==e,n.sessionId=e,n.version=r?n.version+1:n.version,n.source="tdem",r&&(n.createdAt=t),n.lastActivity=t):window[Fv]=jv(e,"tdem"),Uv("_tdem_s",e),window.dispatchEvent(new CustomEvent("monitor-session-update",{detail:{sessionId:e,source:"tdem"}})))};var X0=nw,Q0=((t={})[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t[t.Asset=7]="Asset",t),ew=(tw.prototype.ensureReady=function(){return _l(this,void 0,void 0,function(){return Sl(this,function(e){return[2,this.ready]})})},tw.prototype.postMessage=function(n,r){var i=this,o=this.nextId++;return new Promise(function(e,t){i.pendingRequests.set(o,{resolve:e,reject:t}),i.worker.postMessage({id:o,method:n,arg:r})})},tw.prototype.destroy=function(){this.pendingRequests.forEach(function(e){return(0,e.reject)(new Error("Worker destroyed"))}),this.pendingRequests.clear(),this.worker.terminate()},tw);function tw(e){var o=this;this.nextId=0,this.pendingRequests=new Map,this.worker=e,this.worker.addEventListener("message",function(e){var e=e.data,t=e.id,n=e.success,r=e.response;"init"!==e.method&&(e=o.pendingRequests.get(t))&&(o.pendingRequests["delete"](t),n?e.resolve(r):e.reject(new Error(r||"Worker request failed")))}),this.ready=new Promise(function(t,n){var r=function(e){e=e.data;"init"===e.method&&e.success&&(o.worker.removeEventListener("message",r),clearTimeout(i),t())},i=(o.worker.addEventListener("message",r),o.worker.addEventListener("error",function(e){o.worker.removeEventListener("message",r),clearTimeout(i),n(new Error("Worker error: "+(e.message||"unknown")))}),setTimeout(function(){o.worker.removeEventListener("message",r),n(new Error("Worker init timeout (5s)"))},5e3))})}function nw(e){this.session=null,this.tdemInstance=null}function rw(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:55296<=r&&r<=56319&&n+1<e.length&&56320<=e.charCodeAt(n+1)&&e.charCodeAt(n+1)<=57343?(t+=4,n+=1):t+=3}return t}ow.prototype.initWorker=function(){var t=this,e=function(){try{var e,t,n;return"undefined"==typeof Worker||"undefined"==typeof Blob||"undefined"==typeof URL?null:(e=new Blob(["\n(function() {\n var events = [];\n var totalSize = 0;\n\n function handleMessage(data) {\n var method = data.method;\n var id = data.id;\n\n switch (method) {\n case 'addEvent':\n events.push(data.arg);\n totalSize += data.arg.length;\n return { id: id, method: method, success: true, response: totalSize };\n\n case 'finish':\n var json = '[' + events.join(',') + ']';\n events = [];\n totalSize = 0;\n // 返回原始 JSON 字符串,压缩在主线程做(pako 不好内联到 worker)\n return { id: id, method: method, success: true, response: json };\n\n case 'clear':\n events = [];\n totalSize = 0;\n return { id: id, method: method, success: true, response: void 0 };\n\n default:\n return { id: id, method: method, success: false, response: 'Unknown method' };\n }\n }\n\n self.addEventListener('message', function(e) {\n try {\n var result = handleMessage(e.data);\n self.postMessage(result);\n } catch (err) {\n self.postMessage({\n id: e.data.id,\n method: e.data.method,\n success: false,\n response: err.message || 'Worker error'\n });\n }\n });\n\n // 就绪信号\n self.postMessage({ method: 'init', success: true });\n})();\n"],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t,{name:"tdem-replay-compressor"}),URL.revokeObjectURL(t),h("CompressionWorker","Worker created successfully"),new ew(n))}catch(C){return Z0("CompressionWorker","Failed to create worker, will fallback to sync buffer:",C),null}}();e?(this.workerHandler=e,this.useWorker=!0,e.ensureReady().then(function(){t.workerReady=!0,h("EventBuffer","Worker ready, migrating buffered events"),t.migrateEventsToWorker()})["catch"](function(e){Z0("EventBuffer","Worker init failed, falling back to sync buffer:",e),t.useWorker=!1,t.workerHandler=null})):h("EventBuffer","Worker not available, using sync buffer")},ow.prototype.migrateEventsToWorker=function(){if(this.workerHandler&&this.workerReady)for(var e=0,t=this.events;e<t.length;e++){var n=t[e];this.addEventToWorker(n)}},ow.prototype.addEventToWorker=function(e){if(this.workerHandler)try{var t=JSON.stringify(e);this.workerHandler.postMessage("addEvent",t),this.workerEventCount++,this.workerSize+=t.length}catch(_){Z0("EventBuffer","Failed to send event to worker:",_)}},ow.prototype.addEvent=function(e){var t=this.estimateEventSize(e);this.currentSize+t>this.config.maxSize&&(Z0("EventBuffer","Size limit exceeded, removing old events"),this.trimOldEvents(t)),this.events.push(e),this.currentSize+=t,this.useWorker&&this.workerReady&&this.workerHandler&&(0<this.workerEventCount&&this.workerSize+t>this.config.maxSize&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0),this.addEventToWorker(e))},ow.prototype.getEvents=function(){return El(this.events)},ow.prototype.getEventCount=function(){return this.events.length},ow.prototype.getSize=function(){return this.currentSize},ow.prototype.isEmpty=function(){return 0===this.events.length},ow.prototype.detachEvents=function(){var e=this.events;return this.events=[],this.currentSize=0,this.useWorker&&this.workerHandler&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0),e},ow.prototype.hasBaselinePair=function(){for(var e=!1,t=!1,n=0;n<this.events.length;n++){var r=this.events[n].type;if(r===Q0.Meta?e=!0:r===Q0.FullSnapshot&&(t=!0),e&&t)return!0}return!1},ow.prototype.finishAsync=function(){return _l(this,void 0,void 0,function(){var t;return Sl(this,function(e){return[2,{events:t=this.getEvents(),eventCount:t.length,uncompressedSize:this.currentSize}]})})},ow.prototype.finish=function(){var e=this.getEvents();return{events:e,eventCount:e.length,uncompressedSize:this.currentSize}},ow.prototype.clear=function(){this.events=[],this.currentSize=0,this.useWorker&&this.workerHandler&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0)},ow.prototype.destroy=function(){this.clear(),this.workerHandler&&(this.workerHandler.destroy(),this.workerHandler=null),this.useWorker=!1,this.workerReady=!1},ow.prototype.estimateEventSize=function(e){try{return rw(JSON.stringify(e))+1}catch(ww){return 1024}},ow.prototype.trimOldEvents=function(e){for(var t=-1,n=this.events.length-1;0<=n;n--)if(this.events[n].type===Q0.FullSnapshot){t=n;break}var r=t;if(0<r)for(n=r-1;0<=n;n--)if(this.events[n].type===Q0.Meta){r=n;break}for(var i,o=0,a=Math.max(e,.2*this.config.maxSize),s=0;s<r&&o<a;)s++,(i=this.events.shift())&&(o+=this.estimateEventSize(i));if(r<0)for(;0<this.events.length&&o<a;)(i=this.events.shift())&&(o+=this.estimateEventSize(i));this.currentSize=Math.max(0,this.currentSize-o)},ow.prototype.hasCheckout=function(){return this.events.some(function(e){return e.type===Q0.Meta||e.type===Q0.FullSnapshot})},ow.prototype.getLastCheckoutTime=function(){for(var e=this.events.length-1;0<=e;e--){var t=this.events[e];if(t.type===Q0.FullSnapshot)return t.timestamp}return null},ow.prototype.isUsingWorker=function(){return this.useWorker&&this.workerReady};var iw=ow;function ow(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this.events=[],this.currentSize=0,this.workerHandler=null,this.useWorker=!1,this.workerReady=!1,this.workerEventCount=0,this.workerSize=0,this.config={maxSize:null!=(e=e.maxSize)?e:5242880},t&&this.initWorker()}Si("toStringTag"),wr(Re("Symbol"),"Symbol"),wr(x.JSON,"JSON",!0),wr(Math,"Math",!0),R({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var aw=o.trim,sw=v("".charAt),uw=x.parseFloat,e=x.Symbol,lw=e&&e.iterator,d=1/uw(xo+"-0")!=-Infinity||lw&&!g(function(){uw(Object(lw))})?function(e){var e=aw(E(e)),t=uw(e);return 0===t&&"-"===sw(e,0)?-0:t}:uw,cw=(R({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d}),Re("Reflect","construct")),dw=Object.prototype,fw=[].push,hw=g(function(){function e(){}return!(cw(function(){},[],e)instanceof e)}),pw=!g(function(){cw(function(){})}),rr=hw||pw,mw=(R({target:"Reflect",stat:!0,forced:rr,sham:rr},{construct:function(e,t){hu(e);var n=arguments.length<3?e:hu(arguments[2]);if(S(t),pw&&!hw)return cw(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return Ue(fw,r,t),new(Ue(xs,e,r))}r=n.prototype,n=Ot(O(r)?r:dw),r=Ue(e,n,t);return O(r)?r:n}}),function(e,t,n){var r,i;return S(e)===n?e[t]:(r=sr.f(e,t))?(i=r)!==undefined&&(M(i,"value")||M(i,"writable"))?r.value:r.get===undefined?undefined:I(r.get,n):(i=fr(e),O(i)?mw(i,t,n):void 0)}),gw=(R({target:"Reflect",stat:!0},{get:function(e,t){return mw(S(e),Ei(t),arguments.length<3?e:arguments[2])}}),/"/g),vw=v("".replace),yw=function(e,t,n,r){var e=E(ue(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+vw(E(r),gw,""")+'"'),i+">"+e+"</"+t+">"},ky=function(t){return g(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})};R({target:"String",proto:!0,forced:ky("bold")},{bold:function(){return yw(this,"b","","")}}),ty("Float64",function(r){return function(e,t,n){return r(this,e,t,n)}}),ty("Int16",function(r){return function(e,t,n){return r(this,e,t,n)}}),ty("Int32",function(r){return function(e,t,n){return r(this,e,t,n)}}),ty("Uint16",function(r){return function(e,t,n){return r(this,e,t,n)}}),ty("Uint32",function(r){return function(e,t,n){return r(this,e,t,n)}});var ww,bw=["inputs"],kw=["inputId"],_w=["inputs"],Sw=["inputId"],Ew=["type"],Cw=Object.defineProperty,p=function(e,t,n){return e=e,t="symbol"!==T(t)?t+"":t,n=n,t in e?Cw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Rw=Object.defineProperty,Ow=function(e,t,n){return e=e,t="symbol"!==T(t)?t+"":t,n=n,t in e?Rw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},xw=((n=xw||{})[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n),Tw={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Iw={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mw={},Aw={};function Pw(e){if(Mw[e])return Mw[e];var t=globalThis[e],n=t.prototype,r=e in Tw?Tw[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in Iw?Iw[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return Mw[e]=t.prototype,t.prototype;try{var o,a,s=document.createElement("iframe"),u=(s.style.display="none",document.body.appendChild(s),s.contentWindow);return u?(o=u[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),Aw[e]=function(){return s.remove()}):s.remove(),Mw[e]=o):(s.remove(),n):t.prototype}catch(j){return n}}var Dw={};function Lw(e,t,n){var r="".concat(e,".").concat(String(n));return Dw[r]?Dw[r].call(t):(e=Pw(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Dw[r]=e).call(t):t[n])}var Nw={};function Fw(e,t,n){var r="".concat(e,".").concat(String(n));return Nw[r]?Nw[r].bind(t):"function"!=typeof(e=Pw(e)[n])?t[n]:(Nw[r]=e).bind(t)}var je=Date.now,Uw={ownerDocument:function(e){return Lw("Node",e,"ownerDocument")},childNodes:function(e){return Lw("Node",e,"childNodes")},parentNode:function(e){return Lw("Node",e,"parentNode")},parentElement:function(e){return Lw("Node",e,"parentElement")},textContent:function(e){return Lw("Node",e,"textContent")},contains:function(e,t){return Fw("Node",e,"contains")(t)},getRootNode:function(e){return Fw("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Lw("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Lw("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Lw("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Lw("Element",e,"querySelectorAll")(t)},nowTimestamp:je=/[1-9][0-9]{12}/.test(Date.now().toString())?je:function(){return(new Date).getTime()},mutationObserverCtor:function(){var e;return[Pw("MutationObserver").constructor,null!=(e=Aw.MutationObserver)?e:function(){}]},patch:function(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(Me){return function(){}}}};function jw(e){return e.nodeType===e.ELEMENT_NODE}function Bw(e){var t=e&&"host"in e&&"mode"in e&&Uw.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Uw.shadowRoot(t)===e)}function zw(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Ww(e){try{var t,n=e.rules||e.cssRules;return n?(!(t=e.href)&&e.ownerNode&&(t=e.ownerNode.baseURI),r=(r=Array.from(n,function(e){return Hw(e,t)}).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r):null}catch(X){return null}var r}function Hw(e,t){if("styleSheet"in e){var n;try{n=Ww(e.styleSheet)||((r=(i=e).cssText).split('"').length<3?r:(r=["@import","url(".concat(JSON.stringify(i.href),")")],""===i.layerName?r.push("layer"):i.layerName&&r.push("layer(".concat(i.layerName,")")),i.supportsText&&r.push("supports(".concat(i.supportsText,")")),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(X){n=e.cssText}return e.styleSheet.href?Qw(n,e.styleSheet.href):n}var r,i=e.cssText;return"selectorText"in e&&e.selectorText.includes(":")&&(i=i.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?Qw(i,t):i}var qw=b(function k(){Me(this,k),Ow(this,"idNodeMap",new Map),Ow(this,"nodeMetaMap",new WeakMap)},[{key:"getId",value:function(e){return e&&null!=(e=null==(e=this.getMeta(e))?void 0:e.id)?e:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);this.idNodeMap["delete"](n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]);function Vw(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,o=e.maskInputFn,e=e.value||"",i=i&&Gw(i);return e=n[r.toLowerCase()]||i&&n[i]?o?o(e,t):"*".repeat(e.length):e}function Gw(e){return e.toLowerCase()}function Jw(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Gw(t):null}function Kw(e,t){var n;try{n=new URL(e,null!=t?t:window.location.href)}catch(De){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(t=null==e?void 0:e[1])?t:null}var $w=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zw=/^(?:[a-z+]+:)?\/\//i,Yw=/^www\..*/i,Xw=/^(data:)([^,]*),(.*)/i;function Qw(e,c){return(e||"").replace($w,function(e,t,n,r,i,o){n=n||i||o,i=t||r||"";if(!n)return e;if(Zw.test(n)||Yw.test(n))return"url(".concat(i).concat(n).concat(i,")");if(Xw.test(n))return"url(".concat(i).concat(n).concat(i,")");if("/"===n[0])return"url(".concat(i).concat((-1<(o=c).indexOf("//")?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+n).concat(i,")");var t=n.split("#")[0],r=n.substring(t.length),a=c.split("#")[0].split("/"),e=t.split("/");a.pop();var s,u=Ae(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;"."!==l&&(".."===l?a.pop():a.push(l))}}catch(De){u.e(De)}finally{u.f()}return"url(".concat(i).concat(a.join("/")).concat(r).concat(i,")")})}function eb(e,t){return 1<arguments.length&&t!==undefined&&t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var tb,nb,rb=1,ib=new RegExp("[^a-z0-9-_:]");function ob(){return rb++}var ab=/^[^ \t\n\r\u000c]+/,sb=/^[, \t\n\r\u000c]+/,ub=new WeakMap;function lb(e,t){return t&&""!==t.trim()?cb(e,t):t}function cb(e,t){var n=ub.get(e);if(n||(n=e.createElement("a"),ub.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function db(e,t,n,r){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&["table","td","th"].includes(t)?lb(e,r):"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var e=e.exec(t.substring(n));return e?(e=e[0],n+=e.length,e):""}for(var i=[];r(sb),!(n>=t.length);)if(","===(a=r(ab)).slice(-1))a=lb(e,a.substring(0,a.length-1)),i.push(a);else for(var o="",a=lb(e,a),s=!1;;){var u=t.charAt(n);if(""===u){i.push((a+o).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((a+o).trim());break}"("===u&&(s=!0)}o+=u,n+=1}return i.join(", ")}(e,r):"style"===n?Qw(r,cb(e)):"object"===t&&"data"===n?lb(e,r):r)}function fb(e,t){return["video","audio"].includes(e)&&"autoplay"===t}function hb(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE)for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return!!n&&hb(Uw.parentNode(e),t,n)}function pb(e,t,n,r){var i;if(jw(e)){if(!Uw.childNodes(i=e).length)return!1}else{if(null===Uw.parentElement(e))return!1;i=Uw.parentElement(e)}try{if("string"==typeof t){if(r){if(i.closest(".".concat(t)))return!0}else if(i.classList.contains(t))return!0}else if(hb(i,t,r))return!0;if(n)if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}catch(Me){}return!1}function mb(e,t){var n=t.doc,r=t.blockClass,i=t.blockSelector,o=t.needsMask,a=t.inlineStylesheet,s=t.maskInputOptions,u=void 0===s?{}:s,l=t.maskTextFn,c=t.maskInputFn,s=t.dataURLOptions,d=void 0===s?{}:s,f=t.inlineImages,N=t.recordCanvas,F=t.keepIframeSrcFn,s=t.newlyAddedElement,U=void 0!==s&&s,s=t.cssCaptured,j=void 0!==s&&s,h=(s=n,!(t=t.mirror).hasNode(s)||1===(s=t.getId(s))?void 0:s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:xw.Document,childNodes:[],compatMode:e.compatMode}:{type:xw.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:xw.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:h};case e.ELEMENT_NODE:for(var p,m,g,v,y,w,b=e,k=(M={doc:n,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:u,maskInputFn:c,dataURLOptions:d,inlineImages:f,recordCanvas:N,keepIframeSrcFn:F,newlyAddedElement:U,rootId:h}).doc,_=M.blockSelector,S=M.inlineStylesheet,E=void 0===(E=M.maskInputOptions)?{}:E,C=M.maskInputFn,R=void 0===(O=M.dataURLOptions)?{}:O,O=M.inlineImages,x=M.recordCanvas,T=M.keepIframeSrcFn,I=void 0!==(I=M.newlyAddedElement)&&I,B=M.rootId,M=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch(_){}return!1}(b,M.blockClass,_),A=(m=b)instanceof HTMLFormElement?"form":(m=Gw(m.tagName),ib.test(m)?"div":m),P={},z=b.attributes.length,D=0;D<z;D++){var L=b.attributes[D];fb(A,L.name)||(P[L.name]=db(k,A,Gw(L.name),L.value))}"link"===A&&S&&(m=null,m=(S=Array.from(k.styleSheets).find(function(e){return e.href===b.href}))?Ww(S):m)&&(delete P.rel,delete P.href,P._cssText=m),"style"===A&&b.sheet&&(S=Ww(b.sheet))&&(1<b.childNodes.length&&(S=function(e,t,n){var r=2<arguments.length&&n!==undefined&&n,i=Array.from(t.childNodes),o=[],a=0;if(1<i.length&&e&&"string"==typeof e)for(var s=eb(e,r),u=s.length/e.length,l=1;l<i.length;l++)if(i[l].textContent&&"string"==typeof i[l].textContent){for(var c=eb(i[l].textContent,r),d=3;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,d),1));d++);for(;d<c.length;d++){var f,h=c.substring(0,d),p=s.split(h),m=-1;if(2===p.length)m=p[0].length;else if(2<p.length&&""===p[0]&&""!==i[l-1].textContent)m=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return o.push(e),o;d=101}else d===c.length-1&&(m=s.indexOf(h));if(-1!==(m=2<=p.length&&100<d&&((f=i[l-1].textContent)&&"string"==typeof f&&(f=eb(f).length,m=s.indexOf(h,f)),-1===m)?p[0].length:m)){for(var g=Math.floor(m/u);0<g&&g<e.length;){if((a+=1)>50*i.length)return o.push(e),o;var v=eb(e.substring(0,g),r);if(v.length===m){o.push(e.substring(0,g)),e=e.substring(g),s=s.substring(m);break}v.length<m?g+=Math.max(1,Math.floor((m-v.length)/u)):g-=Math.max(1,Math.floor((v.length-m)*u))}break}}}return o.push(e),o}(S,b).join("/* rr_split */")),P._cssText=S),["input","textarea","select"].includes(A)&&(m=b.value,S=b.checked,"radio"!==P.type&&"checkbox"!==P.type&&"submit"!==P.type&&"button"!==P.type&&m?P.value=Vw({element:b,type:Jw(b),tagName:A,value:m,maskInputOptions:E,maskInputFn:C}):S&&(P.checked=S)),"option"===A&&(b.selected&&!E.select?P.selected=!0:delete P.selected),"dialog"===A&&b.open&&(P.rr_open_mode=b.matches("dialog:modal")?"modal":"non-modal"),"canvas"===A&&x&&("2d"===b.__context?function(e){var t=e.getContext("2d");if(t)for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var i=t.getImageData,i="__rrweb_original__"in i?i.__rrweb_original__:i;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return}return 1}(b)||(P.rr_dataURL=b.toDataURL(R.type,R.quality)):"__context"in b||(m=b.toDataURL(R.type,R.quality),(C=k.createElement("canvas")).width=b.width,C.height=b.height,m!==C.toDataURL(R.type,R.quality)&&(P.rr_dataURL=m))),"img"===A&&O&&(tb||(tb=k.createElement("canvas"),nb=tb.getContext("2d")),v=(g=b).currentSrc||g.getAttribute("src")||"<unknown-src>",y=g.crossOrigin,w=function(){g.removeEventListener("load",w);try{tb.width=g.naturalWidth,tb.height=g.naturalHeight,nb.drawImage(g,0,0),P.rr_dataURL=tb.toDataURL(R.type,R.quality)}catch(De){if("anonymous"!==g.crossOrigin)return g.crossOrigin="anonymous",void(g.complete&&0!==g.naturalWidth?w():g.addEventListener("load",w));console.warn("Cannot inline img src=".concat(v,"! Error: ").concat(De))}"anonymous"===g.crossOrigin&&(y?P.crossOrigin=y:g.removeAttribute("crossorigin"))},g.complete&&0!==g.naturalWidth?w():g.addEventListener("load",w)),["audio","video"].includes(A)&&((S=P).rr_mediaState=b.paused?"paused":"played",S.rr_mediaCurrentTime=b.currentTime,S.rr_mediaPlaybackRate=b.playbackRate,S.rr_mediaMuted=b.muted,S.rr_mediaLoop=b.loop,S.rr_mediaVolume=b.volume),I||(b.scrollLeft&&(P.rr_scrollLeft=b.scrollLeft),b.scrollTop&&(P.rr_scrollTop=b.scrollTop)),M&&(x=(E=b.getBoundingClientRect()).width,C=E.height,P={"class":P["class"],rr_width:"".concat(x,"px"),rr_height:"".concat(C,"px")}),"iframe"!==A||T(P.src)||(b.contentDocument||(P.rr_src=P.src),delete P.src);try{customElements.get(A)&&(p=!0)}catch(ae){}return{type:xw.Element,tagName:A,attributes:P,childNodes:[],isSVG:Boolean("svg"===b.tagName||b.ownerSVGElement)||void 0,needBlock:M,rootId:B,isCustom:p};case e.TEXT_NODE:return m=e,S=(O={doc:n,needsMask:o,maskTextFn:l,rootId:h,cssCaptured:j}).needsMask,I=O.maskTextFn,E=O.rootId,x=O.cssCaptured,C=(C=Uw.parentNode(m))&&C.tagName,T="",M="STYLE"===C||void 0,(C="SCRIPT"===C||void 0)?T="SCRIPT_PLACEHOLDER":x||(T=Uw.textContent(m),M&&(T=T&&Qw(T,cb(O.doc)))),!M&&!C&&T&&S&&(T=I?I(T,Uw.parentElement(m)):T.replace(/[\S]/g,"*")),{type:xw.Text,textContent:T||"",rootId:E};case e.CDATA_SECTION_NODE:return{type:xw.CDATA,textContent:"",rootId:h};case e.COMMENT_NODE:return{type:xw.Comment,textContent:Uw.textContent(e)||"",rootId:h};default:return!1}}function gb(e){return null==e?"":e.toLowerCase()}function vb(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function yb(t,e){var n=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.maskTextClass,s=e.maskTextSelector,u=e.skipChild,u=void 0!==u&&u,l=e.inlineStylesheet,c=void 0===l||l,l=e.maskInputOptions,d=void 0===l?{}:l,f=e.maskTextFn,h=e.maskInputFn,p=e.slimDOMOptions,l=e.dataURLOptions,m=void 0===l?{}:l,l=e.inlineImages,g=void 0!==l&&l,l=e.recordCanvas,v=void 0!==l&&l,y=e.onSerialize,w=e.onIframeLoad,l=e.iframeLoadTimeout,b=void 0===l?5e3:l,k=e.onStylesheetLoad,l=e.stylesheetLoadTimeout,_=void 0===l?5e3:l,l=e.keepIframeSrcFn,S=void 0===l?function(){return!1}:l,l=e.newlyAddedElement,l=void 0!==l&&l,E=e.cssCaptured,E=void 0!==E&&E,C=e.needsMask,e=e.preserveWhiteSpace,R=void 0===e||e,C=C||pb(t,a,s,void 0===C),e=mb(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,dataURLOptions:m,inlineImages:g,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:l,cssCaptured:E});if(!e)return console.warn(t,"not serialized"),null;var l=r.hasNode(t)?r.getId(t):function(e,t){if(t.comment&&e.type===xw.Comment)return 1;if(e.type===xw.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"===Kw(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(gb(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===gb(e.attributes.name)||"icon"===gb(e.attributes.rel)||"apple-touch-icon"===gb(e.attributes.rel)||"shortcut icon"===gb(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&gb(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(gb(e.attributes.property).match(/^(og|twitter|fb):/)||gb(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===gb(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===gb(e.attributes.name)||"googlebot"===gb(e.attributes.name)||"bingbot"===gb(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===gb(e.attributes.name)||"generator"===gb(e.attributes.name)||"framework"===gb(e.attributes.name)||"publisher"===gb(e.attributes.name)||"progid"===gb(e.attributes.name)||gb(e.attributes.property).match(/^article:/)||gb(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===gb(e.attributes.name)||"yandex-verification"===gb(e.attributes.name)||"csrf-token"===gb(e.attributes.name)||"p:domain_verify"===gb(e.attributes.name)||"verify-v1"===gb(e.attributes.name)||"verification"===gb(e.attributes.name)||"shopify-checkout-api-token"===gb(e.attributes.name)))return 1}}}(e,p)||!R&&e.type===xw.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?-2:rb++,O=Object.assign(e,{id:l});if(r.add(t,O),-2===l)return null;y&&y(t);E=!u;if(O.type===xw.Element&&(E=E&&!O.needBlock,delete O.needBlock,e=Uw.shadowRoot(t))&&zw(e)&&(O.isShadowHost=!0),(O.type===xw.Document||O.type===xw.Element)&&E){p.headWhitespace&&O.type===xw.Element&&"head"===O.tagName&&(R=!1);var x={doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:_,keepIframeSrcFn:S,cssCaptured:!1};if(O.type!==xw.Element||"textarea"!==O.tagName||void 0===O.attributes.value){O.type===xw.Element&&void 0!==O.attributes._cssText&&"string"==typeof O.attributes._cssText&&(x.cssCaptured=!0);for(var T=0,I=Array.from(Uw.childNodes(t));T<I.length;T++){var M=yb(I[T],x);M&&O.childNodes.push(M)}}var A=null;if(jw(t)&&(A=Uw.shadowRoot(t)))for(var P=0,D=Array.from(Uw.childNodes(A));P<D.length;P++){var L=yb(D[P],x);L&&(zw(A)&&(L.isShadow=!0),O.childNodes.push(L))}}l=Uw.parentNode(t);return l&&Bw(l)&&zw(l)&&(O.isShadow=!0),O.type===xw.Element&&"iframe"===O.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var i,o=!1;try{i=r.document.readyState}catch(X){return}if("complete"===i){if("about:blank"!==r.location.href||"about:blank"===e.src||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(t,function(){var e=t.contentDocument;e&&w&&(e=yb(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:_,keepIframeSrcFn:S}))&&w(t,e)},b),O.type===xw.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===Kw(O.attributes.href))&&function(e,t,n){var r,i,o=!1;try{r=e.sheet}catch(X){return}r||(i=setTimeout(function(){o||(t(),o=!0)},n),e.addEventListener("load",function(){clearTimeout(i),o=!0,t()}))}(t,function(){var e;k&&(e=yb(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:_,keepIframeSrcFn:S}))&&k(t,e)},_),O}var wb,bb={exports:{}};var kb,_b,Sb,Eb,Cb,Rb=(Sb=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?Sb:("function"==typeof(Eb=Sb["default"])?(Cb=function Sb(){return this instanceof Sb?Reflect.construct(Eb,arguments,this.constructor):Eb.apply(this,arguments)}).prototype=Eb.prototype:Cb={},Object.defineProperty(Cb,"__esModule",{value:!0}),Object.keys(Sb).forEach(function(e){var t=Object.getOwnPropertyDescriptor(Sb,e);Object.defineProperty(Cb,e,t.get?t:{enumerable:!0,get:function(){return Sb[e]}})}),Cb);function Ob(){var d,f,e,t,n;return _b||(_b=1,wb||(wb=1,t=String,bb.exports=(n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}})(),bb.exports.createColors=n),d=bb.exports,f=Rb,n=Q(Error),z(s,n),e=b(s,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=d.isColorSupported);var n,i,o,a,s,t=(t=f&&e?f(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=d.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}]),(kb=e)["default"]=e),kb;function s(e,t,n,r,i,o){var a;return Me(this,s),(a=L(this,s,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,s),a}}var xb,Tb,Ib,Mb,Ab,Pb,Db,Lb,Nb,Fb,Ub,jb,Bb,zb,Wb,Hb,qb,Vb,Gb,Jb,Kb,$b,Zb,Yb,Xb,Qb,e1,t1,n1,r1,i1,o1,a1,s1,u1,l1,c1,d1,f1,h1,p1,m1,g1,v1,y1,w1,b1,k1,_1,S1,E1={};function C1(){return xb||(xb=1,E1.isClean=Symbol("isClean"),E1.my=Symbol("my")),E1}function R1(){var a,t;return Ib||(a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!(Ib=1)},t=b(function t(e){Me(this,t),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="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"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=a[n]),o.rawCache[n]=r)):a[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),(Tb=t)["default"]=t),Tb}function O1(){var n;return Ab||(Ab=1,n=R1(),(Mb=e)["default"]=e),Mb;function e(e,t){new n(t).stringify(e)}}function x1(){var o,a,s,i,n,r,e;return Db||(Db=1,a=(o=C1()).isClean,s=o.my,i=Ob(),n=R1(),r=O1(),e=b(function o(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in Me(this,o),this.raws={},this[a]=!1,this[s]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Ae(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(De){r.e(De)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(r=e[n],i=T(r),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new i(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[a]){this[a]=!1;for(var e=this;e=e.parent;)e[a]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new n).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===T(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===T(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Ne(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),(Pb=e)["default"]=e),Pb}function T1(){var e;return Nb||(Nb=1,e=x1(),z(t,e),e=b(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),(Lb=e)["default"]=e),Lb;function t(e){return Me(this,t),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Pe(Pe({},e),{},{value:String(e.value)})),(e=L(this,t,[e])).type="decl",e}}function I1(){var r,i,t,n,o,a,s;return Bb||(Bb=1,r=Rb.SourceMapConsumer,i=Rb.SourceMapGenerator,t=Rb.existsSync,n=Rb.readFileSync,o=Rb.dirname,a=Rb.join,s=b(function s(e,t){Me(this,s),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===T(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=o(e),t(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=a(o(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),(jb=s)["default"]=s),jb}function M1(){var n,a,u,s,r,i,e,l,o,c,d,f,t;return Wb||(Wb=1,n=Rb.SourceMapConsumer,t=Rb.SourceMapGenerator,a=Rb.fileURLToPath,u=Rb.pathToFileURL,s=Rb.isAbsolute,r=Rb.resolve,i=(Ub?Fb:(Ub=1,Fb={nanoid:function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:21;return function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r;t--;)e+=n[Math.random()*n.length|0];return e}}})).nanoid,e=Rb,l=Ob(),o=I1(),c=Symbol("fromOffsetCache"),d=Boolean(n&&t),f=Boolean(r&&s),t=b(function n(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(Me(this,n),null==e||"object"===T(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));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&&(!f||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=r(t.from)),f&&d&&(e=new o(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===T(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new l(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new l(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(u&&(o.input.url=u(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[c])n=this[c];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[c]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=s(t.source)?u(t.source):new URL(t.source,this.map.consumer().sourceRoot||u(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");r.file=a(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Pe({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),(zb=t)["default"]=t,e&&e.registerInput&&e.registerInput(t)),zb}function A1(){if(qb)return Hb;qb=1;var a=Rb.SourceMapConsumer,t=Rb.SourceMapGenerator,s=Rb.dirname,n=Rb.relative,r=Rb.resolve,i=Rb.sep,o=Rb.pathToFileURL,u=M1(),e=Boolean(a&&t),l=Boolean(s&&r&&n&&i);return Hb=b(function z(e,t,n,r){Me(this,z),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var 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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Ae(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||s(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new a(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(De){t.e(De)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;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,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),l&&e&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})):(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>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?s(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=s(r(t,this.mapOpts.annotation))),t=n(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new u(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(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))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o)return t=o(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}])}function P1(){var e;return Gb||(Gb=1,e=x1(),z(t,e),e=b(t),(Vb=e)["default"]=e),Vb;function t(e){return Me(this,t),(e=L(this,t,[e])).type="comment",e}}function D1(){var l,c,d,t,f,h,p,m,n,e;return Kb||(Kb=1,e=C1(),f=e.isClean,h=e.my,p=T1(),m=P1(),e=x1(),z(g,e),(n=b(g,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Ae(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(De){s.e(De)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if($(g,"cleanRaws",this,3)([e]),this.nodes){var t,n=Ae(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(De){n.e(De)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r[o].apply(r,Ne(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(De){s.e(De)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(De){s.e(De)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function V(e){return e.map(function(e){return e.nodes&&(e.nodes=V(e.nodes)),delete e.source,e})}(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Ae(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(De){i.e(De)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Ae(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(De){s.e(De)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new p(e)]}else if(e.selector)e=[new c(e)];else if(e.name)e=[new d(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new m(e)]}return e.map(function(e){return e[h]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[f]&&function c(e){if(e[f]=!1,e.proxyOf.nodes){var t,n=Ae(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)c(t.value)}catch(De){n.e(De)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Ae(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Ae(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(De){l.e(De)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(De){i.e(De)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Ae(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(De){t.e(De)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(L){throw e.addToError(L)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])).registerParse=function(e){l=e},n.registerRule=function(e){c=e},n.registerAtRule=function(e){d=e},n.registerRoot=function(e){t=e},((Jb=n)["default"]=n).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,d.prototype):"rule"===e.type?Object.setPrototypeOf(e,c.prototype):"decl"===e.type?Object.setPrototypeOf(e,p.prototype):"comment"===e.type?Object.setPrototypeOf(e,m.prototype):"root"===e.type&&Object.setPrototypeOf(e,t.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(function(e){n.rebuild(e)})}),Jb;function g(){return Me(this,g),L(this,g,arguments)}}function L1(){var t,n,e;return Zb||(Zb=1,e=D1(),z(r,e),(e=b(r,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},e.registerProcessor=function(e){n=e},($b=e)["default"]=e),$b;function r(e){return Me(this,r),(e=L(this,r,[Pe({type:"document"},e)])).nodes||(e.nodes=[]),e}}function N1(){if(Xb)return Yb;Xb=1;var t={};return Yb=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function F1(){var r;return e1||(e1=1,r=b(function r(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in Me(this,r),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){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}}]),(Qb=r)["default"]=r),Qb}function U1(){var n,r;return n1||(n1=1,n=F1(),r=b(function r(e,t,n){Me(this,r),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new n(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),(t1=r)["default"]=r),t1}function j1(){var e,t;return a1||(a1=1,e=D1(),z(r,e),t=b(r,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"prepend",this,3)(t)}}]),(o1=t)["default"]=t,e.registerAtRule(t)),o1;function r(e){return Me(this,r),(e=L(this,r,[e])).type="atrule",e}}function B1(){var t,n,e,r;return u1||(u1=1,e=D1(),z(o,e),(r=b(o,[{key:"normalize",value:function(e,t,n){e=$(o,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Ae(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(De){i.e(De)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),$(o,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},r.registerProcessor=function(e){n=e},s1=r,e.registerRoot(r["default"]=r)),s1;function o(e){return Me(this,o),(e=L(this,o,[e])).type="root",e.nodes||(e.nodes=[]),e}}function z1(){var t;return c1||(c1=1,(l1=t={comma:function(e){return t.split(e,[","],!0)},space:function(e){return t.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,d=Ae(e);try{for(d.s();!(r=d.n()).done;){var f=r.value;c?c=!1:"\\"===f?c=!0:u?f===l&&(u=!1):'"'===f||"'"===f?(u=!0,l=f):"("===f?s+=1:")"===f?0<s&&--s:0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}}catch(De){d.e(De)}finally{d.f()}return!n&&""===o||i.push(o.trim()),i}})["default"]=t),l1}function W1(){var e,t,n;return f1||(f1=1,e=D1(),t=z1(),z(r,e),n=b(r,[{key:"selectors",get:function(){return t.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}]),(d1=n)["default"]=n,e.registerRule(n)),d1;function r(e){return Me(this,r),(e=L(this,r,[e])).type="rule",e.nodes||(e.nodes=[]),e}}function H1(){if(p1)return h1;p1=1;var p=T1(),e=function(){if(i1)return r1;i1=1;var w="'".charCodeAt(0),b='"'.charCodeAt(0),k="\\".charCodeAt(0),_="/".charCodeAt(0),S="\n".charCodeAt(0),E=" ".charCodeAt(0),C="\f".charCodeAt(0),R="\t".charCodeAt(0),O="\r".charCodeAt(0),x="[".charCodeAt(0),T="]".charCodeAt(0),I="(".charCodeAt(0),M=")".charCodeAt(0),A="{".charCodeAt(0),P="}".charCodeAt(0),D=";".charCodeAt(0),L="*".charCodeAt(0),N=":".charCodeAt(0),F="@".charCodeAt(0),U=/[\t\n\f\r "#'()/;[\\\]{}]/g,j=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\r\n"'(/\\]/,z=/[\da-f]/i;return r1=function(t){var r,i,o,a,s,u,l,c,d,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},f=t.css.valueOf(),h=e.ignoreErrors,p=f.length,m=0,g=[],v=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=m},nextToken:function(e){if(v.length)return v.pop();if(!(p<=m)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case S:case E:case R:case O:case C:for(i=m;i+=1,(r=f.charCodeAt(i))===E||r===S||r===R||r===O||r===C;);d=["space",f.slice(m,i)],m=i-1;break;case x:case T:case A:case P:case N:case D:case M:var n=String.fromCharCode(r);d=[n,n,m];break;case I:if(l=g.length?g.pop()[1]:"",c=f.charCodeAt(m+1),"url"===l&&c!==w&&c!==b&&c!==E&&c!==S&&c!==R&&c!==C&&c!==O){i=m;do{if(s=!1,-1===(i=f.indexOf(")",i+1))){if(h||t){i=m;break}y("bracket")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["brackets",f.slice(m,i+1),m,i],m=i}else i=f.indexOf(")",m+1),l=f.slice(m,i+1),-1===i||B.test(l)?d=["(","(",m]:(d=["brackets",l,m,i],m=i);break;case w:case b:o=r===w?"'":'"',i=m;do{if(s=!1,-1===(i=f.indexOf(o,i+1))){if(h||t){i=m+1;break}y("string")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["string",f.slice(m,i+1),m,i],m=i;break;case F:U.lastIndex=m+1,U.test(f),i=0===U.lastIndex?f.length-1:U.lastIndex-2,d=["at-word",f.slice(m,i+1),m,i],m=i;break;case k:for(i=m,a=!0;f.charCodeAt(i+1)===k;)i+=1,a=!a;if(r=f.charCodeAt(i+1),a&&r!==_&&r!==E&&r!==S&&r!==R&&r!==O&&r!==C&&(i+=1,z.test(f.charAt(i)))){for(;z.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===E&&(i+=1)}d=["word",f.slice(m,i+1),m,i],m=i;break;default:m=(r===_&&f.charCodeAt(m+1)===L?(0===(i=f.indexOf("*/",m+2)+1)&&(h||t?i=f.length:y("comment")),d=["comment",f.slice(m,i+1),m,i]):(j.lastIndex=m+1,j.test(f),i=0===j.lastIndex?f.length-1:j.lastIndex-2,d=["word",f.slice(m,i+1),m,i],g.push(d)),i)}return m++,d}},position:function(){return m}}}}(),n=P1(),l=j1(),t=B1(),r=W1(),f={empty:!0,space:!0};return h1=b(function U(e){Me(this,U),this.input=e,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new l;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Ae(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Le(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(De){a.e(De)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new n,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=e(this.input)}},{key:"decl",value:function(e,t){var n=new p;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(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;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)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));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),d="",f=u;0<f;f--){var h=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(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)}},{key:"endFile",value:function(){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())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(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)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!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()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,d=0;d<u;d+=1)"space"===(a=(i=n[d])[0])&&d===u-1&&!r||"comment"===a&&(a=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",f[a]||f[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}])}function q1(){var e,n,r;return g1||(g1=1,e=D1(),n=H1(),r=M1(),m1=t,e.registerParse(t["default"]=t)),m1;function t(e,t){e=new r(e,t),e=new n(e);try{e.parse()}catch(N){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===N.name&&t&&t.from&&(/\.scss$/i.test(t.from)?N.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?N.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(N.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),N}return e.root}}function V1(){var d,a,n,r,s,u,i,c,l,e,o,f,h,p,t,m;return y1||(y1=1,t=C1(),d=t.isClean,a=t.my,n=A1(),r=O1(),s=D1(),u=L1(),i=N1(),c=U1(),l=q1(),e=B1(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},h={Once:!0,postcssPlugin:!0,prepare:!0},p={},(t=b(function u(e,t,n){var r,i=this;if(Me(this,u),this.stringified=!1,this.processed=!1,"object"!==T(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof u||t instanceof c)r=w(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=l;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch(X){this.processed=!0,this.error=X}r&&!r[a]&&s.rebuild(r)}else r=w(t);this.result=new c(e,r,n),this.helpers=Pe(Pe({},p),{},{postcss:p,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===T(e)&&e.prepare?Pe(Pe({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(De){console&&console.error&&console.error(De)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Ae(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===T(i))for(var o in i){if(!f[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!h[o])if("object"===T(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(De){n.e(De)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(m=C(V().m(function e(){var t,i,n,r,o,a,s,u,l,c=this;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],g(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[d]){e.n=14;break}i[d]=!0,n=[y(i)];case 8:if(0<n.length){if(g(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Ae(this.listeners.OnceExit),e.p=15,a=V().m(function f(){var t,n,r;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Le(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},f,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(J(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return m.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===T(t)&&t.Once?"document"===this.result.root.type?g((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch(X){throw this.handleError(X)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=r,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new n(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Ae(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(g(this.runOnRoot(n)))throw this.getAsyncError()}}catch(De){t.e(De)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[d];)r[d]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Ae(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(De){o.e(De)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Ae(e);try{for(r.s();!(n=r.n()).done;){var i=Le(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(b){throw this.handleError(b,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(s))throw this.getAsyncError()}}catch(De){r.e(De)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Le(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[d])return a[d]=!0,void e.push(y(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[d]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[d]=!0;var n,r=Ae(v(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[d]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(De){r.e(De)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}])).registerPostcss=function(e){p=e},v1=t,e.registerLazyResult(t["default"]=t),u.registerLazyResult(t)),v1;function g(e){return"object"===T(e)&&"function"==typeof e.then}function v(e){var t=!1,n=o[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[d]=!1,e.nodes&&e.nodes.forEach(w),e}}function G1(){var n,r,t,e,i,o,a,s,u,l,c;return _1||(_1=1,b1||(b1=1,o=A1(),a=O1(),s=N1(),u=q1(),l=U1(),c=b(function c(e,t,n){Me(this,c),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=a,r=(this.result=new l(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new o(e,void 0,this._opts,t));n.isMap()?(t=(e=Le(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=u;try{e=t(this._css,this._opts)}catch(X){this.error=X}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),(w1=c)["default"]=c),n=w1,r=V1(),t=L1(),e=B1(),i=b(function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];Me(this,t),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Ae(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===T(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===T(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==T(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(De){r.e(De)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?r:n)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),(k1=i)["default"]=i,e.registerProcessor(i),t.registerProcessor(i)),k1}uk||(uk=1,t=Ob(),J1=T1(),o=V1(),e=D1(),K1=G1(),d=O1(),m||(m=1,tk=T1(),nk=I1(),rk=P1(),ik=j1(),ok=M1(),ak=B1(),sk=W1(),(S1=lk)["default"]=lk),rr=S1,$1=L1(),ty=F1(),Z1=P1(),Y1=j1(),n=U1(),je=M1(),uk=q1(),m=z1(),X1=W1(),Q1=B1(),ek=x1(),ck.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new K1).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return ck([i(n)]).process(e,t)},i},ck.stringify=d,ck.parse=uk,ck.fromJSON=rr,ck.list=m,ck.comment=function(e){return new Z1(e)},ck.atRule=function(e){return new Y1(e)},ck.decl=function(e){return new J1(e)},ck.rule=function(e){return new X1(e)},ck.root=function(e){return new Q1(e)},ck.document=function(e){return new $1(e)},ck.CssSyntaxError=t,ck.Declaration=J1,ck.Container=e,ck.Processor=K1,ck.Document=$1,ck.Comment=Z1,ck.Warning=ty,ck.AtRule=Y1,ck.Result=n,ck.Input=je,ck.Rule=X1,ck.Root=Q1,ck.Node=ek,o.registerPostcss(ck),(ek=ck)["default"]=ck);var J1,K1,$1,Z1,Y1,X1,Q1,ek,tk,nk,rk,ik,ok,ak,sk,uk=(d=ek)&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d["default"]:d;function lk(e,t){if(Array.isArray(e))return e.map(function(e){return lk(e)});var n,r=e.inputs,i=q(e,bw);if(r){t=[];var o,a=Ae(r);try{for(a.s();!(o=a.n()).done;){var s=Pe(Pe({},o.value),{},{__proto__:ok.prototype});s.map&&(s.map=Pe(Pe({},s.map),{},{__proto__:nk.prototype})),t.push(s)}}catch(De){a.e(De)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return lk(e,t)})),i.source&&(n=(r=i.source).inputId,r=q(r,kw),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new ak(i);if("decl"===i.type)return new tk(i);if("rule"===i.type)return new sk(i);if("comment"===i.type)return new rk(i);if("atrule"===i.type)return new ik(i);throw new Error("Unknown node type: "+e.type)}function ck(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new K1(t)}uk.stringify;var dk=Object.defineProperty,fk=function(e,t,n){return e=e,t="symbol"!==T(t)?t+"":t,n=n,t in e?dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};Date.now().toString();var hk,pk={exports:{}};var mk,gk,vk,yk,wk,bk=(vk=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?vk:("function"==typeof(yk=vk["default"])?(wk=function vk(){return this instanceof vk?Reflect.construct(yk,arguments,this.constructor):yk.apply(this,arguments)}).prototype=yk.prototype:wk={},Object.defineProperty(wk,"__esModule",{value:!0}),Object.keys(vk).forEach(function(e){var t=Object.getOwnPropertyDescriptor(vk,e);Object.defineProperty(wk,e,t.get?t:{enumerable:!0,get:function(){return vk[e]}})}),wk);function kk(){var d,f,e,t,n;return gk||(gk=1,hk||(hk=1,t=String,pk.exports=(n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}})(),pk.exports.createColors=n),d=pk.exports,f=bk,n=Q(Error),z(s,n),e=b(s,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=d.isColorSupported);var n,i,o,a,s,t=(t=f&&e?f(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=d.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}]),(mk=e)["default"]=e),mk;function s(e,t,n,r,i,o){var a;return Me(this,s),(a=L(this,s,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,s),a}}var _k,Sk,Ek,Ck,Rk,Ok,xk,Tk,Ik,Mk,Ak,Pk,Dk,Lk,Nk,Fk,Uk,jk,Bk,zk,Wk,Hk,qk,Vk,Gk,Jk,Kk,$k,Zk,Yk,Xk,Qk,e_,t_,n_,r_,i_,o_,a_,s_,u_,l_,c_,d_,f_,h_,p_,m_,g_,v_,y_,w_={};function b_(){return _k||(_k=1,w_.isClean=Symbol("isClean"),w_.my=Symbol("my")),w_}function k_(){var a,t;return Ek||(a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!(Ek=1)},t=b(function t(e){Me(this,t),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="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"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=a[n]),o.rawCache[n]=r)):a[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),(Sk=t)["default"]=t),Sk}function __(){var n;return Rk||(Rk=1,n=k_(),(Ck=e)["default"]=e),Ck;function e(e,t){new n(t).stringify(e)}}function S_(){var o,a,s,i,n,r,e;return xk||(xk=1,a=(o=b_()).isClean,s=o.my,i=kk(),n=k_(),r=__(),e=b(function o(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in Me(this,o),this.raws={},this[a]=!1,this[s]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Ae(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(De){r.e(De)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(r=e[n],i=T(r),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new i(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[a]){this[a]=!1;for(var e=this;e=e.parent;)e[a]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new n).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===T(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===T(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Ne(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),(Ok=e)["default"]=e),Ok}function E_(){var e;return Ik||(Ik=1,e=S_(),z(t,e),e=b(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),(Tk=e)["default"]=e),Tk;function t(e){return Me(this,t),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Pe(Pe({},e),{},{value:String(e.value)})),(e=L(this,t,[e])).type="decl",e}}function C_(){var r,i,t,n,o,a,s;return Dk||(Dk=1,r=bk.SourceMapConsumer,i=bk.SourceMapGenerator,t=bk.existsSync,n=bk.readFileSync,o=bk.dirname,a=bk.join,s=b(function s(e,t){Me(this,s),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===T(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=o(e),t(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=a(o(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),(Pk=s)["default"]=s),Pk}function R_(){var n,a,u,s,r,i,e,l,o,c,d,f,t;return Nk||(Nk=1,n=bk.SourceMapConsumer,t=bk.SourceMapGenerator,a=bk.fileURLToPath,u=bk.pathToFileURL,s=bk.isAbsolute,r=bk.resolve,i=(Ak?Mk:(Ak=1,Mk={nanoid:function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:21;return function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r;t--;)e+=n[Math.random()*n.length|0];return e}}})).nanoid,e=bk,l=kk(),o=C_(),c=Symbol("fromOffsetCache"),d=Boolean(n&&t),f=Boolean(r&&s),t=b(function n(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(Me(this,n),null==e||"object"===T(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));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&&(!f||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=r(t.from)),f&&d&&(e=new o(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===T(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new l(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new l(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(u&&(o.input.url=u(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[c])n=this[c];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[c]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=s(t.source)?u(t.source):new URL(t.source,this.map.consumer().sourceRoot||u(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");r.file=a(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Pe({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),(Lk=t)["default"]=t,e&&e.registerInput&&e.registerInput(t)),Lk}function O_(){if(Uk)return Fk;Uk=1;var a=bk.SourceMapConsumer,t=bk.SourceMapGenerator,s=bk.dirname,n=bk.relative,r=bk.resolve,i=bk.sep,o=bk.pathToFileURL,u=R_(),e=Boolean(a&&t),l=Boolean(s&&r&&n&&i);return Fk=b(function z(e,t,n,r){Me(this,z),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var 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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Ae(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||s(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new a(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(De){t.e(De)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;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,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),l&&e&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})):(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>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?s(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=s(r(t,this.mapOpts.annotation))),t=n(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new u(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(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))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o)return t=o(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}])}function x_(){var e;return Bk||(Bk=1,e=S_(),z(t,e),e=b(t),(jk=e)["default"]=e),jk;function t(e){return Me(this,t),(e=L(this,t,[e])).type="comment",e}}function T_(){var l,c,d,t,f,h,p,m,n,e;return Wk||(Wk=1,e=b_(),f=e.isClean,h=e.my,p=E_(),m=x_(),e=S_(),z(g,e),(n=b(g,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Ae(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(De){s.e(De)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if($(g,"cleanRaws",this,3)([e]),this.nodes){var t,n=Ae(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(De){n.e(De)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r[o].apply(r,Ne(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(De){s.e(De)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(De){s.e(De)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function V(e){return e.map(function(e){return e.nodes&&(e.nodes=V(e.nodes)),delete e.source,e})}(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Ae(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(De){i.e(De)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Ae(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(De){s.e(De)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new p(e)]}else if(e.selector)e=[new c(e)];else if(e.name)e=[new d(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new m(e)]}return e.map(function(e){return e[h]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[f]&&function c(e){if(e[f]=!1,e.proxyOf.nodes){var t,n=Ae(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)c(t.value)}catch(De){n.e(De)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Ae(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Ae(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(De){l.e(De)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(De){i.e(De)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Ae(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(De){t.e(De)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(L){throw e.addToError(L)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])).registerParse=function(e){l=e},n.registerRule=function(e){c=e},n.registerAtRule=function(e){d=e},n.registerRoot=function(e){t=e},((zk=n)["default"]=n).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,d.prototype):"rule"===e.type?Object.setPrototypeOf(e,c.prototype):"decl"===e.type?Object.setPrototypeOf(e,p.prototype):"comment"===e.type?Object.setPrototypeOf(e,m.prototype):"root"===e.type&&Object.setPrototypeOf(e,t.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(function(e){n.rebuild(e)})}),zk;function g(){return Me(this,g),L(this,g,arguments)}}function I_(){var t,n,e;return qk||(qk=1,e=T_(),z(r,e),(e=b(r,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},e.registerProcessor=function(e){n=e},(Hk=e)["default"]=e),Hk;function r(e){return Me(this,r),(e=L(this,r,[Pe({type:"document"},e)])).nodes||(e.nodes=[]),e}}function M_(){if(Gk)return Vk;Gk=1;var t={};return Vk=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function A_(){var r;return Kk||(Kk=1,r=b(function r(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in Me(this,r),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){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}}]),(Jk=r)["default"]=r),Jk}function P_(){var n,r;return Zk||(Zk=1,n=A_(),r=b(function r(e,t,n){Me(this,r),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new n(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),($k=r)["default"]=r),$k}function D_(){var e,t;return e_||(e_=1,e=T_(),z(r,e),t=b(r,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"prepend",this,3)(t)}}]),(Qk=t)["default"]=t,e.registerAtRule(t)),Qk;function r(e){return Me(this,r),(e=L(this,r,[e])).type="atrule",e}}function L_(){var t,n,e,r;return n_||(n_=1,e=T_(),z(o,e),(r=b(o,[{key:"normalize",value:function(e,t,n){e=$(o,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Ae(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(De){i.e(De)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),$(o,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},r.registerProcessor=function(e){n=e},t_=r,e.registerRoot(r["default"]=r)),t_;function o(e){return Me(this,o),(e=L(this,o,[e])).type="root",e.nodes||(e.nodes=[]),e}}function N_(){var t;return i_||(i_=1,(r_=t={comma:function(e){return t.split(e,[","],!0)},space:function(e){return t.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,d=Ae(e);try{for(d.s();!(r=d.n()).done;){var f=r.value;c?c=!1:"\\"===f?c=!0:u?f===l&&(u=!1):'"'===f||"'"===f?(u=!0,l=f):"("===f?s+=1:")"===f?0<s&&--s:0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}}catch(De){d.e(De)}finally{d.f()}return!n&&""===o||i.push(o.trim()),i}})["default"]=t),r_}function F_(){var e,t,n;return a_||(a_=1,e=T_(),t=N_(),z(r,e),n=b(r,[{key:"selectors",get:function(){return t.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}]),(o_=n)["default"]=n,e.registerRule(n)),o_;function r(e){return Me(this,r),(e=L(this,r,[e])).type="rule",e.nodes||(e.nodes=[]),e}}function U_(){if(u_)return s_;u_=1;var p=E_(),e=function(){if(Xk)return Yk;Xk=1;var w="'".charCodeAt(0),b='"'.charCodeAt(0),k="\\".charCodeAt(0),_="/".charCodeAt(0),S="\n".charCodeAt(0),E=" ".charCodeAt(0),C="\f".charCodeAt(0),R="\t".charCodeAt(0),O="\r".charCodeAt(0),x="[".charCodeAt(0),T="]".charCodeAt(0),I="(".charCodeAt(0),M=")".charCodeAt(0),A="{".charCodeAt(0),P="}".charCodeAt(0),D=";".charCodeAt(0),L="*".charCodeAt(0),N=":".charCodeAt(0),F="@".charCodeAt(0),U=/[\t\n\f\r "#'()/;[\\\]{}]/g,j=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\r\n"'(/\\]/,z=/[\da-f]/i;return Yk=function(t){var r,i,o,a,s,u,l,c,d,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},f=t.css.valueOf(),h=e.ignoreErrors,p=f.length,m=0,g=[],v=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=m},nextToken:function(e){if(v.length)return v.pop();if(!(p<=m)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case S:case E:case R:case O:case C:for(i=m;i+=1,(r=f.charCodeAt(i))===E||r===S||r===R||r===O||r===C;);d=["space",f.slice(m,i)],m=i-1;break;case x:case T:case A:case P:case N:case D:case M:var n=String.fromCharCode(r);d=[n,n,m];break;case I:if(l=g.length?g.pop()[1]:"",c=f.charCodeAt(m+1),"url"===l&&c!==w&&c!==b&&c!==E&&c!==S&&c!==R&&c!==C&&c!==O){i=m;do{if(s=!1,-1===(i=f.indexOf(")",i+1))){if(h||t){i=m;break}y("bracket")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["brackets",f.slice(m,i+1),m,i],m=i}else i=f.indexOf(")",m+1),l=f.slice(m,i+1),-1===i||B.test(l)?d=["(","(",m]:(d=["brackets",l,m,i],m=i);break;case w:case b:o=r===w?"'":'"',i=m;do{if(s=!1,-1===(i=f.indexOf(o,i+1))){if(h||t){i=m+1;break}y("string")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["string",f.slice(m,i+1),m,i],m=i;break;case F:U.lastIndex=m+1,U.test(f),i=0===U.lastIndex?f.length-1:U.lastIndex-2,d=["at-word",f.slice(m,i+1),m,i],m=i;break;case k:for(i=m,a=!0;f.charCodeAt(i+1)===k;)i+=1,a=!a;if(r=f.charCodeAt(i+1),a&&r!==_&&r!==E&&r!==S&&r!==R&&r!==O&&r!==C&&(i+=1,z.test(f.charAt(i)))){for(;z.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===E&&(i+=1)}d=["word",f.slice(m,i+1),m,i],m=i;break;default:m=(r===_&&f.charCodeAt(m+1)===L?(0===(i=f.indexOf("*/",m+2)+1)&&(h||t?i=f.length:y("comment")),d=["comment",f.slice(m,i+1),m,i]):(j.lastIndex=m+1,j.test(f),i=0===j.lastIndex?f.length-1:j.lastIndex-2,d=["word",f.slice(m,i+1),m,i],g.push(d)),i)}return m++,d}},position:function(){return m}}}}(),n=x_(),l=D_(),t=L_(),r=F_(),f={empty:!0,space:!0};return s_=b(function U(e){Me(this,U),this.input=e,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new l;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Ae(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Le(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(De){a.e(De)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new n,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=e(this.input)}},{key:"decl",value:function(e,t){var n=new p;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(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;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)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));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),d="",f=u;0<f;f--){var h=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(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)}},{key:"endFile",value:function(){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())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(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)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!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()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,d=0;d<u;d+=1)"space"===(a=(i=n[d])[0])&&d===u-1&&!r||"comment"===a&&(a=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",f[a]||f[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}])}function j_(){var e,n,r;return c_||(c_=1,e=T_(),n=U_(),r=R_(),l_=t,e.registerParse(t["default"]=t)),l_;function t(e,t){e=new r(e,t),e=new n(e);try{e.parse()}catch(N){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===N.name&&t&&t.from&&(/\.scss$/i.test(t.from)?N.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?N.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(N.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),N}return e.root}}function B_(){var d,a,n,r,s,u,i,c,l,e,o,f,h,p,t,m;return f_||(f_=1,t=b_(),d=t.isClean,a=t.my,n=O_(),r=__(),s=T_(),u=I_(),i=M_(),c=P_(),l=j_(),e=L_(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},h={Once:!0,postcssPlugin:!0,prepare:!0},p={},(t=b(function u(e,t,n){var r,i=this;if(Me(this,u),this.stringified=!1,this.processed=!1,"object"!==T(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof u||t instanceof c)r=w(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=l;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch(X){this.processed=!0,this.error=X}r&&!r[a]&&s.rebuild(r)}else r=w(t);this.result=new c(e,r,n),this.helpers=Pe(Pe({},p),{},{postcss:p,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===T(e)&&e.prepare?Pe(Pe({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(De){console&&console.error&&console.error(De)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Ae(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===T(i))for(var o in i){if(!f[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!h[o])if("object"===T(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(De){n.e(De)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(m=C(V().m(function e(){var t,i,n,r,o,a,s,u,l,c=this;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],g(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[d]){e.n=14;break}i[d]=!0,n=[y(i)];case 8:if(0<n.length){if(g(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Ae(this.listeners.OnceExit),e.p=15,a=V().m(function f(){var t,n,r;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Le(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},f,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(J(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return m.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===T(t)&&t.Once?"document"===this.result.root.type?g((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch(X){throw this.handleError(X)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=r,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new n(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Ae(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(g(this.runOnRoot(n)))throw this.getAsyncError()}}catch(De){t.e(De)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[d];)r[d]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Ae(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(De){o.e(De)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Ae(e);try{for(r.s();!(n=r.n()).done;){var i=Le(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(b){throw this.handleError(b,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(s))throw this.getAsyncError()}}catch(De){r.e(De)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Le(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[d])return a[d]=!0,void e.push(y(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[d]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[d]=!0;var n,r=Ae(v(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[d]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(De){r.e(De)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}])).registerPostcss=function(e){p=e},d_=t,e.registerLazyResult(t["default"]=t),u.registerLazyResult(t)),d_;function g(e){return"object"===T(e)&&"function"==typeof e.then}function v(e){var t=!1,n=o[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[d]=!1,e.nodes&&e.nodes.forEach(w),e}}function z_(){var n,r,t,e,i,o,a,s,u,l,c;return g_||(g_=1,p_||(p_=1,o=O_(),a=__(),s=M_(),u=j_(),l=P_(),c=b(function c(e,t,n){Me(this,c),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=a,r=(this.result=new l(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new o(e,void 0,this._opts,t));n.isMap()?(t=(e=Le(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=u;try{e=t(this._css,this._opts)}catch(X){this.error=X}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),(h_=c)["default"]=c),n=h_,r=B_(),t=I_(),e=L_(),i=b(function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];Me(this,t),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Ae(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===T(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===T(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==T(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(De){r.e(De)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?r:n)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),(m_=i)["default"]=i,e.registerProcessor(i),t.registerProcessor(i)),m_}RC||(RC=1,m=kk(),W_=E_(),t=B_(),e=T_(),H_=z_(),ty=__(),zR||(zR=1,$_=E_(),Z_=C_(),Y_=x_(),X_=D_(),Q_=R_(),eS=L_(),tS=F_(),(v_=nS)["default"]=nS),n=v_,q_=I_(),je=A_(),V_=x_(),G_=D_(),o=P_(),d=R_(),uk=j_(),RC=N_(),J_=F_(),K_=L_(),zR=S_(),rS.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new H_).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return rS([i(n)]).process(e,t)},i},rS.stringify=ty,rS.parse=uk,rS.fromJSON=n,rS.list=RC,rS.comment=function(e){return new V_(e)},rS.atRule=function(e){return new G_(e)},rS.decl=function(e){return new W_(e)},rS.rule=function(e){return new J_(e)},rS.root=function(e){return new K_(e)},rS.document=function(e){return new q_(e)},rS.CssSyntaxError=m,rS.Declaration=W_,rS.Container=e,rS.Processor=H_,rS.Document=q_,rS.Comment=V_,rS.Warning=je,rS.AtRule=G_,rS.Result=o,rS.Input=d,rS.Rule=J_,rS.Root=K_,rS.Node=zR,t.registerPostcss(rS),(y_=rS)["default"]=rS);var W_,H_,q_,V_,G_,J_,K_,$_,Z_,Y_,X_,Q_,eS,tS,uk=(ty=y_)&&ty.__esModule&&Object.prototype.hasOwnProperty.call(ty,"default")?ty["default"]:ty;function nS(e,t){if(Array.isArray(e))return e.map(function(e){return nS(e)});var n,r=e.inputs,i=q(e,_w);if(r){t=[];var o,a=Ae(r);try{for(a.s();!(o=a.n()).done;){var s=Pe(Pe({},o.value),{},{__proto__:Q_.prototype});s.map&&(s.map=Pe(Pe({},s.map),{},{__proto__:Z_.prototype})),t.push(s)}}catch(De){a.e(De)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return nS(e,t)})),i.source&&(n=(r=i.source).inputId,r=q(r,Sw),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new eS(i);if("decl"===i.type)return new $_(i);if("rule"===i.type)return new tS(i);if("comment"===i.type)return new Y_(i);if("atrule"===i.type)return new X_(i);throw new Error("Unknown node type: "+e.type)}function rS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new H_(t)}uk.stringify;var iS=b(lS,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(e){if(e instanceof lS&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}]),oS={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},aS={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},sS={},uS={};function lS(){Me(this,lS),fk(this,"parentElement",null),fk(this,"parentNode",null),fk(this,"ownerDocument"),fk(this,"firstChild",null),fk(this,"lastChild",null),fk(this,"previousSibling",null),fk(this,"nextSibling",null),fk(this,"ELEMENT_NODE",1),fk(this,"TEXT_NODE",3),fk(this,"nodeType"),fk(this,"nodeName"),fk(this,"RRNodeType")}function cS(e){if(sS[e])return sS[e];var t=globalThis[e],n=t.prototype,r=e in oS?oS[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in aS?aS[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return sS[e]=t.prototype,t.prototype;try{var o,a,s=document.createElement("iframe"),u=(s.style.display="none",document.body.appendChild(s),s.contentWindow);return u?(o=u[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),uS[e]=function(){return s.remove()}):s.remove(),sS[e]=o):(s.remove(),n):t.prototype}catch(j){return n}}var dS={};function fS(e,t,n){var r="".concat(e,".").concat(String(n));return dS[r]?dS[r].call(t):(e=cS(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(dS[r]=e).call(t):t[n])}var hS={};function pS(e,t,n){var r="".concat(e,".").concat(String(n));return hS[r]?hS[r].bind(t):"function"!=typeof(e=cS(e)[n])?t[n]:(hS[r]=e).bind(t)}function mS(){var e;return[cS("MutationObserver").constructor,null!=(e=uS.MutationObserver)?e:function(){}]}var gS=Date.now;function vS(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(Me){return function(){}}}var yS={ownerDocument:function(e){return fS("Node",e,"ownerDocument")},childNodes:function(e){return fS("Node",e,"childNodes")},parentNode:function(e){return fS("Node",e,"parentNode")},parentElement:function(e){return fS("Node",e,"parentElement")},textContent:function(e){return fS("Node",e,"textContent")},contains:function(e,t){return pS("Node",e,"contains")(t)},getRootNode:function(e){return pS("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?fS("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?fS("Element",e,"shadowRoot"):null},querySelector:function(e,t){return fS("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return fS("Element",e,"querySelectorAll")(t)},nowTimestamp:gS=/[1-9][0-9]{12}/.test(Date.now().toString())?gS:function(){return(new Date).getTime()},mutationObserverCtor:mS,patch:vS};function wS(e,t,n){var r=2<arguments.length&&n!==undefined?n:document,i={capture:!0,passive:!0};return r.addEventListener(e,t,i),function(){return r.removeEventListener(e,t,i)}}var bS="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.",n={map:{},getId:function(){return console.error(bS),-1},getNode:function(){return console.error(bS),null},removeNodeFromMap:function(){console.error(bS)},has:function(){return console.error(bS),!1},reset:function(){console.error(bS)}};function kS(a,s,e){var u=2<arguments.length&&e!==undefined?e:{},l=null,c=0;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Date.now(),i=(c||!1!==u.leading||(c=r),s-(r-c)),o=this;i<=0||s<i?(l&&(clearTimeout(l),l=null),c=r,a.apply(o,t)):l||!1===u.trailing||(l=setTimeout(function(){c=!1===u.leading?0:Date.now(),l=null,a.apply(o,t)},i))}}function _S(e,t,n,r,i){var i=4<arguments.length&&i!==undefined?i:window,o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return _S(e,t,o||{},!0)}}function SS(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=yS.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=yS.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function ES(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function CS(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function RS(e){return e?e.nodeType===e.ELEMENT_NODE?e:yS.parentElement(e):null}function OS(e,t,n,r){if(e){e=RS(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return 1;if(r&&null!==e.closest("."+t))return 1}else if(hb(e,t,r))return 1}catch(Me){}if(n){if(e.matches(n))return 1;if(r&&null!==e.closest(n))return 1}}}}function xS(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||-2===t.getId(e)}function TS(e){return Boolean(e.changedTouches)}function IS(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function MS(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function AS(e){return e&&(e instanceof iS&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(yS.shadowRoot(e)))}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(n,{get:function(e,t,n){return"map"===t&&console.error(bS),Reflect.get(e,t,n)}});var PS=b(function k(){Me(this,k),p(this,"id",1),p(this,"styleIDMap",new WeakMap),p(this,"idStyleMap",new Map)},[{key:"getId",value:function(e){return null!=(e=this.styleIDMap.get(e))?e:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(t=void 0===t?this.id++:t,this.styleIDMap.set(e,t),this.idStyleMap.set(t,e),t)}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]);function DS(e){var t,n=null;return n="getRootNode"in e&&(null==(t=yS.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&yS.host(yS.getRootNode(e))?yS.host(yS.getRootNode(e)):n}function LS(e){var n,t=yS.ownerDocument(e);return t&&(yS.contains(t,e)||(n=e,!!(t=yS.ownerDocument(n))&&(e=function(){for(var e,t=n;e=DS(t);)t=e;return t}(),yS.contains(t,e))))}(RC={})[RC.DomContentLoaded=0]="DomContentLoaded",RC[RC.Load=1]="Load",RC[RC.FullSnapshot=2]="FullSnapshot",RC[RC.IncrementalSnapshot=3]="IncrementalSnapshot",RC[RC.Meta=4]="Meta",RC[RC.Custom=5]="Custom",RC[RC.Plugin=6]="Plugin",RC[RC.Asset=7]="Asset";var NS=RC,FS=((m=FS||{})[m.Mutation=0]="Mutation",m[m.MouseMove=1]="MouseMove",m[m.MouseInteraction=2]="MouseInteraction",m[m.Scroll=3]="Scroll",m[m.ViewportResize=4]="ViewportResize",m[m.Input=5]="Input",m[m.TouchMove=6]="TouchMove",m[m.MediaInteraction=7]="MediaInteraction",m[m.StyleSheetRule=8]="StyleSheetRule",m[m.CanvasMutation=9]="CanvasMutation",m[m.Font=10]="Font",m[m.Log=11]="Log",m[m.Drag=12]="Drag",m[m.StyleDeclaration=13]="StyleDeclaration",m[m.Selection=14]="Selection",m[m.AdoptedStyleSheet=15]="AdoptedStyleSheet",m[m.CustomElement=16]="CustomElement",m),US=((e=US||{})[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e),jS=((je=jS||{})[je.Mouse=0]="Mouse",je[je.Pen=1]="Pen",je[je.Touch=2]="Touch",je),BS=((o={})[o["2D"]=0]="2D",o[o.WebGL=1]="WebGL",o[o.WebGL2=2]="WebGL2",o),zS=((d=zS||{})[d.Play=0]="Play",d[d.Pause=1]="Pause",d[d.Seeked=2]="Seeked",d[d.VolumeChange=3]="VolumeChange",d[d.RateChange=4]="RateChange",d),WS=((zR={})[zR.Document=0]="Document",zR[zR.DocumentType=1]="DocumentType",zR[zR.Element=2]="Element",zR[zR.Text=3]="Text",zR[zR.CDATA=4]="CDATA",zR[zR.Comment=5]="Comment",zR);function HS(e){return"__ln"in e}var qS,VS=b(function k(){Me(this,k),p(this,"length",0),p(this,"head",null),p(this,"tail",null)},[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&HS(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&HS(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.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--)}}]),GS=function(e,t){return"".concat(e,"@").concat(t)},JS=b(function k(){var w=this;Me(this,k),p(this,"frozen",!1),p(this,"locked",!1),p(this,"texts",[]),p(this,"attributes",[]),p(this,"attributeMap",new WeakMap),p(this,"removes",[]),p(this,"mapRemoves",[]),p(this,"movedMap",{}),p(this,"addedSet",new Set),p(this,"movedSet",new Set),p(this,"droppedSet",new Set),p(this,"removesSubTreeCache",new Set),p(this,"mutationCb"),p(this,"blockClass"),p(this,"blockSelector"),p(this,"maskTextClass"),p(this,"maskTextSelector"),p(this,"inlineStylesheet"),p(this,"maskInputOptions"),p(this,"maskTextFn"),p(this,"maskInputFn"),p(this,"keepIframeSrcFn"),p(this,"recordCanvas"),p(this,"inlineImages"),p(this,"slimDOMOptions"),p(this,"dataURLOptions"),p(this,"doc"),p(this,"mirror"),p(this,"iframeManager"),p(this,"stylesheetManager"),p(this,"shadowDomManager"),p(this,"canvasManager"),p(this,"processedNodeManager"),p(this,"unattachedDoc"),p(this,"processMutations",function(e){e.forEach(w.processMutation),w.emit()}),p(this,"emit",function(){if(!w.frozen&&!w.locked){for(var i=[],o=new Set,a=new VS,s=function(e){for(var t=e,n=-2;-2===n;)n=(t=t&&t.nextSibling)&&w.mirror.getId(t);return n},e=function(t){var e=yS.parentNode(t);if(e&&LS(t)){var n=!1;if(t.nodeType===Node.TEXT_NODE){var r=e.tagName;if("TEXTAREA"===r)return;"STYLE"===r&&w.addedSet.has(e)&&(n=!0)}r=Bw(e)?w.mirror.getId(DS(t)):w.mirror.getId(e),e=s(t);if(-1===r||-1===e)return a.addNode(t);n=yb(t,{doc:w.doc,mirror:w.mirror,blockClass:w.blockClass,blockSelector:w.blockSelector,maskTextClass:w.maskTextClass,maskTextSelector:w.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:w.inlineStylesheet,maskInputOptions:w.maskInputOptions,maskTextFn:w.maskTextFn,maskInputFn:w.maskInputFn,slimDOMOptions:w.slimDOMOptions,dataURLOptions:w.dataURLOptions,recordCanvas:w.recordCanvas,inlineImages:w.inlineImages,onSerialize:function(e){IS(e,w.mirror)&&w.iframeManager.addIframe(e),MS(e,w.mirror)&&w.stylesheetManager.trackLinkElement(e),AS(t)&&w.shadowDomManager.addShadowRoot(yS.shadowRoot(t),w.doc)},onIframeLoad:function(e,t){w.iframeManager.attachIframe(e,t),w.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,t){w.stylesheetManager.attachLinkElement(e,t)},cssCaptured:n});n&&(i.push({parentId:r,nextId:e,node:n}),o.add(n.id))}};w.mapRemoves.length;)w.mirror.removeNodeFromMap(w.mapRemoves.shift());var t,n=Ae(w.movedSet);try{for(n.s();!(t=n.n()).done;){var r=t.value;$S(w.removesSubTreeCache,r,w.mirror)&&!w.movedSet.has(yS.parentNode(r))||e(r)}}catch(De){n.e(De)}finally{n.f()}var u,l=Ae(w.addedSet);try{for(l.s();!(u=l.n()).done;){var c=u.value;!ZS(w.droppedSet,c)&&!$S(w.removesSubTreeCache,c,w.mirror)||ZS(w.movedSet,c)?e(c):w.droppedSet.add(c)}}catch(De){l.e(De)}finally{l.f()}for(var d=null;a.length;){var f,h,p=null;if(!(p=d&&(f=w.mirror.getId(yS.parentNode(d.value)),h=s(d.value),-1!==f)&&-1!==h?d:p))for(var m=a.tail;m;){var g=m,m=m.previous;if(g){var v=w.mirror.getId(yS.parentNode(g.value));if(-1!==s(g.value)){if(-1!==v){p=g;break}v=g.value,v=yS.parentNode(v);if(v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE){v=yS.host(v);if(-1!==w.mirror.getId(v)){p=g;break}}}}}if(!p){for(;a.head;)a.removeNode(a.head.value);break}d=p.previous,a.removeNode(p.value),e(p.value)}var y={texts:w.texts.map(function(e){var t=e.node,n=yS.parentNode(t);return n&&"TEXTAREA"===n.tagName&&w.genTextAreaValueMutation(n),{id:w.mirror.getId(t),value:e.value}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),attributes:w.attributes.map(function(e){var t,n,r=e.attributes;return"string"==typeof r.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<r.style.length)&&(t+n).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff),{id:w.mirror.getId(e.node),attributes:r}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),removes:w.removes,adds:i};(y.texts.length||y.attributes.length||y.removes.length||y.adds.length)&&(w.texts=[],w.attributes=[],w.attributeMap=new WeakMap,w.removes=[],w.addedSet=new Set,w.movedSet=new Set,w.droppedSet=new Set,w.removesSubTreeCache=new Set,w.movedMap={},w.mutationCb(y))}}),p(this,"genTextAreaValueMutation",function(e){var t=w.attributeMap.get(e),n=(t||(w.attributes.push(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}}),w.attributeMap.set(e,t)),Array.from(yS.childNodes(e),function(e){return yS.textContent(e)||""}).join(""));t.attributes.value=Vw({element:e,maskInputOptions:w.maskInputOptions,tagName:e.tagName,type:Jw(e),value:n,maskInputFn:w.maskInputFn})}),p(this,"processMutation",function(a){if(!xS(a.target,w.mirror,w.slimDOMOptions))switch(a.type){case"characterData":var e=yS.textContent(a.target);OS(a.target,w.blockClass,w.blockSelector,!1)||e===a.oldValue||w.texts.push({value:pb(a.target,w.maskTextClass,w.maskTextSelector,!0)&&e?w.maskTextFn?w.maskTextFn(e,RS(a.target)):e.replace(/[\S]/g,"*"):e,node:a.target});break;case"attributes":var t,n=a.target,e=a.attributeName,s=a.target.getAttribute(e);if("value"===e&&(t=Jw(n),s=Vw({element:n,maskInputOptions:w.maskInputOptions,tagName:n.tagName,type:t,value:s,maskInputFn:w.maskInputFn})),!OS(a.target,w.blockClass,w.blockSelector,!1)&&s!==a.oldValue){var r=w.attributeMap.get(a.target);if("IFRAME"===n.tagName&&"src"===e&&!w.keepIframeSrcFn(s)){if(n.contentDocument)return;e="rr_src"}if(r||(r={node:a.target,attributes:{},styleDiff:{},_unchangedStyles:{}},w.attributes.push(r),w.attributeMap.set(a.target,r)),"type"===e&&"INPUT"===n.tagName&&"password"===(a.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!fb(n.tagName,e))if(r.attributes[e]=db(w.doc,Gw(n.tagName),Gw(e),s),"style"===e){if(!w.unattachedDoc)try{w.unattachedDoc=document.implementation.createHTMLDocument()}catch(q){w.unattachedDoc=w.doc}var i=w.unattachedDoc.createElement("span");a.oldValue&&i.setAttribute("style",a.oldValue);for(var o=0,u=Array.from(n.style);o<u.length;o++){var l=u[o],c=n.style.getPropertyValue(l),d=n.style.getPropertyPriority(l);c!==i.style.getPropertyValue(l)||d!==i.style.getPropertyPriority(l)?r.styleDiff[l]=""===d?c:[c,d]:r._unchangedStyles[l]=[c,d]}for(var f=0,h=Array.from(i.style);f<h.length;f++){var p=h[f];""===n.style.getPropertyValue(p)&&(r.styleDiff[p]=!1)}}else"open"===e&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?r.attributes.rr_open_mode="modal":r.attributes.rr_open_mode="non-modal")}break;case"childList":return OS(a.target,w.blockClass,w.blockSelector,!0)?void 0:"TEXTAREA"===a.target.tagName?void w.genTextAreaValueMutation(a.target):(a.addedNodes.forEach(function(e){return w.genAdds(e,a.target)}),void a.removedNodes.forEach(function(e){var t=w.mirror.getId(e),n=Bw(a.target)?w.mirror.getId(yS.host(a.target)):w.mirror.getId(a.target);if(!OS(a.target,w.blockClass,w.blockSelector,!1)&&!xS(e,w.mirror,w.slimDOMOptions)&&-1!==w.mirror.getId(e)){if(w.addedSet.has(e))KS(w.addedSet,e),w.droppedSet.add(e);else if(!(w.addedSet.has(a.target)&&-1===t||function s(e,t){var n;return!Bw(e)&&(n=t.getId(e),!t.has(n)||(!(n=yS.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||s(n,t)))}(a.target,w.mirror)))if(w.movedSet.has(e)&&w.movedMap[GS(t,n)])KS(w.movedSet,e);else{w.removes.push({parentId:n,id:t,isShadow:!(!Bw(a.target)||!zw(a.target))||void 0});for(var r=w.removesSubTreeCache,i=[e];i.length;){var o=i.pop();r.has(o)||(r.add(o),yS.childNodes(o).forEach(function(e){return i.push(e)}))}}w.mapRemoves.push(e)}}))}}),p(this,"genAdds",function(t,e){if(!w.processedNodeManager.inOtherBuffer(t,w)&&!w.addedSet.has(t)&&!w.movedSet.has(t)){if(w.mirror.hasNode(t)){if(xS(t,w.mirror,w.slimDOMOptions))return;w.movedSet.add(t);var n=null;(n=e&&w.mirror.hasNode(e)?w.mirror.getId(e):n)&&-1!==n&&(w.movedMap[GS(w.mirror.getId(t),n)]=!0)}else w.addedSet.add(t),w.droppedSet["delete"](t);OS(t,w.blockClass,w.blockSelector,!1)||(yS.childNodes(t).forEach(function(e){return w.genAdds(e)}),AS(t)&&yS.childNodes(yS.shadowRoot(t)).forEach(function(e){w.processedNodeManager.add(e,w),w.genAdds(e,t)}))}})},[{key:"init",value:function(t){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(e){n[e]=t[e]})}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]);function KS(t,e){t["delete"](e),yS.childNodes(e).forEach(function(e){return KS(t,e)})}function $S(e,t){return 0!==e.size&&(e=e,t=yS.parentNode(t))&&e.has(t)}function ZS(e,t){return 0!==e.size&&function _(e,t){t=yS.parentNode(t);return!!t&&(!!e.has(t)||_(e,t))}(e,t)}var YS=function(e){return qS?function(){try{return e.apply(void 0,arguments)}catch(X){if(!qS||!0!==qS(X))throw X}}:e},XS=[];function QS(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(_){}return e&&e.target}function eE(e,t){var n=new JS,e=(XS.push(n),n.init(e),Le(mS(),2)),r=e[0],e=e[1],n=new r(YS(n.processMutations.bind(n)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[n,e]}function tE(e){var t,r,a,s=e.mouseInteractionCb,i=e.doc,u=e.mirror,l=e.blockClass,c=e.blockSelector,e=e.sampling;return!1===e.mouseInteraction?function(){}:(t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[],a=null,Object.keys(US).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]}).forEach(function(e){var o,t=Gw(e),n=(o=e,function(e){var t=QS(e);if(!OS(t,l,c,!0)){var n=null,r=o;if("pointerType"in e){switch(e.pointerType){case"mouse":n=jS.Mouse;break;case"touch":n=jS.Touch;break;case"pen":n=jS.Pen}n===jS.Touch?US[o]===US.MouseDown?r="TouchStart":US[o]===US.MouseUp&&(r="TouchEnd"):jS.Pen}else TS(e)&&(n=jS.Touch);null!==n?(a=n,(r.startsWith("Touch")&&n===jS.Touch||r.startsWith("Mouse")&&n===jS.Mouse)&&(n=null)):US[o]===US.Click&&(n=a,a=null);var i,e=TS(e)?e.changedTouches[0]:e;e&&(t=u.getId(t),i=e.clientX,e=e.clientY,YS(s)(Pe({type:US[r],id:t,x:i,y:e},null!==n&&{pointerType:n})))}});if(window.PointerEvent)switch(US[e]){case US.MouseDown:case US.MouseUp:t=t.replace("mouse","pointer");break;case US.TouchStart:case US.TouchEnd:return}r.push(wS(t,n,i))}),YS(function(){r.forEach(function(e){return e()})}))}function nE(e){var r=e.scrollCb,i=e.doc,o=e.mirror,a=e.blockClass,s=e.blockSelector,e=e.sampling;return wS("scroll",YS(kS(YS(function(e){var t,n,e=QS(e);e&&!OS(e,a,s,!0)&&(t=o.getId(e),e===i&&i.defaultView?(n=SS(i.defaultView),r({id:t,x:n.left,y:n.top})):r({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),i)}var rE=["INPUT","TEXTAREA","SELECT"],iE=new WeakMap;function oE(e){return function w(e,t){var n;return lE("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||lE("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||lE("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||lE("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),w(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function aE(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function sE(e,t){var n,r=e.mirror,i=e.stylesheetManager,o="#document"===t.nodeName?r.getId(t):r.getId(yS.host(t)),e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(r=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:r.ShadowRoot,a=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&e&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:function(){var e;return null==(e=a.get)?void 0:e.call(this)},set:function(e){var t=null==(t=a.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{i.adoptStyleSheets(e,o)}catch(n){}return t}}),YS(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):function(){}}function uE(e){var t,n,L,N,F,U,j,B,z,W,H,q,V,G,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},i=e.doc.defaultView;if(!i)return function(){};t=r,n=(r=e).mutationCb,L=r.mousemoveCb,N=r.mouseInteractionCb,F=r.scrollCb,U=r.viewportResizeCb,j=r.inputCb,B=r.mediaInteractionCb,z=r.styleSheetRuleCb,W=r.styleDeclarationCb,H=r.canvasMutationCb,q=r.fontCb,V=r.selectionCb,G=r.customElementCb,r.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},r.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),L.apply(void 0,arguments)},r.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),N.apply(void 0,arguments)},r.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),F.apply(void 0,arguments)},r.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),U.apply(void 0,arguments)},r.inputCb=function(){t.input&&t.input.apply(t,arguments),j.apply(void 0,arguments)},r.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),B.apply(void 0,arguments)},r.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),z.apply(void 0,arguments)},r.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),W.apply(void 0,arguments)},r.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),H.apply(void 0,arguments)},r.fontCb=function(){t.font&&t.font.apply(t,arguments),q.apply(void 0,arguments)},r.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),V.apply(void 0,arguments)},r.customElementCb=function(){t.customElement&&t.customElement.apply(t,arguments),G.apply(void 0,arguments)};var o,J,K,$,Z,Y,X,Q,a,ee,te,ne,re,s,u,ie,l,c,d,oe,f,h,p,m,ae,se,ue,le,g,v,y,ce,w,b,k,_,S,E,C,R,de=function(){},fe=(e.recordDOM&&(r=eE(e,e.doc),r=Le(r,2),o=r[0],de=r[1]),ue=(r=e).mousemoveCb,x=r.doc,le=r.mirror,!1===(O=r.sampling).mousemove?function(){}:(r="number"==typeof O.mousemove?O.mousemove:50,O="number"==typeof O.mousemoveCallback?O.mousemoveCallback:500,m=[],ae=kS(YS(function(e){var t=Date.now()-p;ue(m.map(function(e){return e.timeOffset-=t,e}),e),m=[],p=null}),O),O=YS(kS(YS(function(e){var t=QS(e),n=TS(e)?e.changedTouches[0]:e,r=n.clientX,n=n.clientY;p=p||gS(),m.push({x:r,y:n,id:le.getId(t),timeOffset:gS()-p}),ae("undefined"!=typeof DragEvent&&e instanceof DragEvent?FS.Drag:e instanceof MouseEvent?FS.MouseMove:FS.TouchMove)}),r,{trailing:!1})),se=[wS("mousemove",O,x),wS("touchmove",O,x),wS("drag",O,x)],YS(function(){se.forEach(function(e){return e()})}))),he=tE(e),pe=nE(e),me=(r={win:i},oe=(O=e).viewportResizeCb,O=r.win,h=f=-1,wS("resize",YS(kS(YS(function(){var e=ES(),t=CS();f===e&&h===t||(oe({width:Number(t),height:Number(e)}),f=e,h=t)}),200)),O)),ge=(Q=(x=e).inputCb,a=x.doc,ee=x.mirror,te=x.blockClass,ne=x.blockSelector,re=x.ignoreClass,s=x.ignoreSelector,u=x.maskInputOptions,ie=x.maskInputFn,l=x.userTriggeredOnInput,c=("last"===x.sampling.input?["change"]:["input","change"]).map(function(e){return wS(e,YS(_e),a)}),(d=a.defaultView)?(x=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),r=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]],x&&x.set&&c.push.apply(c,Ne(r.map(function(e){return _S(e[0],e[1],{set:function(){YS(_e)({target:this,isTrusted:!1})}},!1,d)}))),YS(function(){c.forEach(function(e){return e()})})):function(){c.forEach(function(e){return e()})}),ve=(J=(O=e).mediaInteractionCb,K=O.blockClass,$=O.blockSelector,Z=O.mirror,Y=O.sampling,O=O.doc,x=YS(function(a){return kS(YS(function(e){var t,n,r,i,o,e=QS(e);e&&!OS(e,K,$,!0)&&(t=e.currentTime,n=e.volume,r=e.muted,i=e.playbackRate,o=e.loop,J({type:a,id:Z.getId(e),currentTime:t,volume:n,muted:r,playbackRate:i,loop:o}))}),Y.media||500)}),X=[wS("play",x(zS.Play),O),wS("pause",x(zS.Pause),O),wS("seeked",x(zS.Seeked),O),wS("volumechange",x(zS.VolumeChange),O),wS("ratechange",x(zS.RateChange),O)],YS(function(){X.forEach(function(e){return e()})})),ye=function(){},we=function(){},be=function(){},ke=function(){};function _e(e){var t,n,r,i=QS(e),e=e.isTrusted,o=i&&i.tagName;!(i=i&&"OPTION"===o?yS.parentElement(i):i)||!o||rE.indexOf(o)<0||OS(i,te,ne,!0)||i.classList.contains(re)||s&&i.matches(s)||(t=i.value,n=!1,"radio"===(r=Jw(i)||"")||"checkbox"===r?n=i.checked:(u[o.toLowerCase()]||u[r])&&(t=Vw({element:i,maskInputOptions:u,tagName:o,type:r,value:t,maskInputFn:ie})),Se(i,l?{text:t,isChecked:n,userTriggered:e}:{text:t,isChecked:n}),o=i.name,"radio"===r&&o&&n&&a.querySelectorAll('input[type="radio"][name="'.concat(o,'"]')).forEach(function(e){var t;e!==i&&(t=e.value,Se(e,l?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))}))}function Se(e,t){var n=iE.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(iE.set(e,t),n=ee.getId(e),YS(Q)(Pe(Pe({},t),{},{id:n})))}e.recordDOM&&(ye=function(e,t){var s=e.styleSheetRuleCb,u=e.mirror,l=e.stylesheetManager,r=t.win;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return function(){};var n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:YS(function(e,t,n){var r=Le(n,2),i=r[0],r=r[1],o=aE(t,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.addRule=function(e,t){var n=2<arguments.length&&arguments[2]!==undefined?arguments[2]:this.cssRules.length,e="".concat(e," { ").concat(t," }");return r.CSSStyleSheet.prototype.insertRule.apply(this,[e,n])};var i,o,a=r.CSSStyleSheet.prototype.deleteRule,c=(r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:YS(function(e,t,n){var r=Le(n,1)[0],i=aE(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.removeRule=function(e){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:YS(function(e,t,n){var r=Le(n,1)[0],i=aE(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replace:r}),e.apply(t,n)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:YS(function(e,t,n){var r=Le(n,1)[0],i=aE(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replaceSync:r}),e.apply(t,n)})})),{}),d=(cE("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(cE("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),cE("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),cE("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule)),{});return Object.entries(c).forEach(function(e){var e=Le(e,2),t=e[0],e=e[1];d[t]={insertRule:e.prototype.insertRule,deleteRule:e.prototype.deleteRule},e.prototype.insertRule=new Proxy(d[t].insertRule,{apply:YS(function(e,t,n){var r=Le(n,2),i=r[0],r=r[1],o=aE(t.parentStyleSheet,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:[].concat(Ne(oE(t)),[r||0])}]}),e.apply(t,n)})}),e.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:YS(function(e,t,n){var r=Le(n,1)[0],i=aE(t.parentStyleSheet,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:[].concat(Ne(oE(t)),[r])}]}),e.apply(t,n)})})}),YS(function(){r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(function(e){var e=Le(e,2),t=e[0],e=e[1];e.prototype.insertRule=d[t].insertRule,e.prototype.deleteRule=d[t].deleteRule})})}(e,{win:i}),we=sE(e,e.doc),r={win:i},b=(x=e).styleDeclarationCb,k=x.mirror,_=x.ignoreCSSAttributes,S=x.stylesheetManager,E=r.win,C=E.CSSStyleDeclaration.prototype.setProperty,E.CSSStyleDeclaration.prototype.setProperty=new Proxy(C,{apply:YS(function(e,t,n){var r,i,o=Le(n,3),a=o[0],s=o[1],o=o[2];return _.has(a)?C.apply(t,[a,s,o]):(r=(i=aE(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,S.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,set:{property:a,value:s,priority:o},index:oE(t.parentRule)}),e.apply(t,n))})}),R=E.CSSStyleDeclaration.prototype.removeProperty,E.CSSStyleDeclaration.prototype.removeProperty=new Proxy(R,{apply:YS(function(e,t,n){var r,i,o=Le(n,1)[0];return _.has(o)?R.apply(t,[o]):(r=(i=aE(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,S.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,remove:{property:o},index:oE(t.parentRule)}),e.apply(t,n))})}),be=YS(function(){E.CSSStyleDeclaration.prototype.setProperty=C,E.CSSStyleDeclaration.prototype.removeProperty=R}),e.collectFonts)&&(ce=(O=e).fontCb,w=(O=O.doc).defaultView,ke=w?(g=[],v=new WeakMap,y=w.FontFace,w.FontFace=function(e,t,n){var r=new y(e,t,n);return v.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r},O=vS(O.fonts,"add",function(e){return function(t){return setTimeout(YS(function(){var e=v.get(t);e&&(ce(e),v["delete"](t))}),0),e.apply(this,[t])}}),g.push(function(){w.FontFace=y}),g.push(O),YS(function(){g.forEach(function(e){return e()})})):function(){});Re=(x=e).doc,T=x.mirror,I=x.blockClass,M=x.blockSelector,Oe=x.selectionCb,A=!0,(x=YS(function(){var e=Re.getSelection();if(!(!e||A&&null!=e&&e.isCollapsed)){A=e.isCollapsed||!1;for(var t=[],n=e.rangeCount||0,r=0;r<n;r++){var i=e.getRangeAt(r),o=i.startContainer,a=i.startOffset,s=i.endContainer,i=i.endOffset;OS(o,I,M,!0)||OS(s,I,M,!0)||t.push({start:T.getId(o),startOffset:a,end:T.getId(s),endOffset:i})}Oe({ranges:t})}}))();var Ee,O,Ce,x,Re,T,I,M,Oe,A,xe=wS("selectionchange",x),Te=(O=(r=e).doc,Ce=r.customElementCb,(r=O.defaultView)&&r.customElements?vS(r.customElements,"define",function(r){return function(e,t,n){try{Ce({define:{name:e}})}catch(Me){console.warn("Custom element callback failed for ".concat(e))}return r.apply(this,[e,t,n])}}):function(){}),Ie=[],P=Ae(e.plugins);try{for(P.s();!(Ee=P.n()).done;){var D=Ee.value;Ie.push(D.observer(D.callback,i,D.options))}}catch(De){P.e(De)}finally{P.f()}return YS(function(){XS.forEach(function(e){return e.reset()}),null!=o&&o.disconnect(),de(),fe(),he(),pe(),me(),ge(),ve(),ye(),we(),be(),ke(),xe(),Te(),Ie.forEach(function(e){return e()})})}function lE(e){return"undefined"!=typeof window[e]}function cE(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var dE=b(function k(e){Me(this,k),p(this,"iframeIdToRemoteIdMap",new WeakMap),p(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e},[{key:"getId",value:function(e,t,n,r){n=n||this.getIdToRemoteIdMap(e),r=r||this.getRemoteIdToIdMap(e),e=n.get(t);return e||(e=this.generateIdFn(),n.set(t,e),r.set(e,t)),e}},{key:"getIds",value:function(t,e){var n=this,r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getId(t,e,r,i)})}},{key:"getRemoteId",value:function(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}},{key:"getRemoteIds",value:function(t,e){var n=this,r=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getRemoteId(t,e,r)})}},{key:"reset",value:function(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),fE=b(function k(e){Me(this,k),p(this,"iframes",new WeakMap),p(this,"crossOriginIframeMap",new WeakMap),p(this,"crossOriginIframeMirror",new dE(ob)),p(this,"crossOriginIframeStyleMirror"),p(this,"crossOriginIframeRootIdMap",new WeakMap),p(this,"mirror"),p(this,"mutationCb"),p(this,"wrappedEmit"),p(this,"loadListener"),p(this,"stylesheetManager"),p(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new dE(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))},[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;"rrweb"===t.data.type&&t.origin===t.data.origin&&e.source&&(e=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(e,t.data.event))&&this.wrappedEmit(e,t.data.isCheckout)}},{key:"transformCrossOriginEvent",value:function(n,e){var t,r=this;switch(e.type){case NS.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:NS.IncrementalSnapshot,data:{source:FS.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case NS.Meta:case NS.Load:case NS.DomContentLoaded:return!1;case NS.Plugin:return e;case NS.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case NS.IncrementalSnapshot:switch(e.data.source){case FS.Mutation:return e.data.adds.forEach(function(e){r.replaceIds(e,n,["parentId","nextId","previousId"]),r.replaceIdOnNode(e.node,n);var t=r.crossOriginIframeRootIdMap.get(n);t&&r.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(function(e){r.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(function(e){r.replaceIds(e,n,["id"])}),e.data.texts.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case FS.Drag:case FS.TouchMove:case FS.MouseMove:return e.data.positions.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case FS.ViewportResize:return!1;case FS.MediaInteraction:case FS.MouseInteraction:case FS.Scroll:case FS.CanvasMutation:case FS.Input:return this.replaceIds(e.data,n,["id"]),e;case FS.StyleSheetRule:case FS.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case FS.Font:return e;case FS.Selection:return e.data.ranges.forEach(function(e){r.replaceIds(e,n,["start","end"])}),e;case FS.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(function(e){r.replaceStyleIds(e,n,["styleId"])}),e}}return!1}},{key:"replace",value:function(e,t,n,r){var i,o=Ae(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(De){o.e(De)}finally{o.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var n=this;e.type===WS.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})}}]),hE=b(function k(e){Me(this,k),p(this,"shadowDoms",new WeakSet),p(this,"mutationCb"),p(this,"scrollCb"),p(this,"bypassOptions"),p(this,"mirror"),p(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()},[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var n,r=this;zw(e)&&!this.shadowDoms.has(e)&&(this.shadowDoms.add(e),n=Le(eE(Pe(Pe({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),1)[0],this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(nE(Pe(Pe({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(yS.host(e))),r.restoreHandlers.push(sE({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0))}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,r){var i=this;this.restoreHandlers.push(vS(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=yS.shadowRoot(this);return t&&LS(this)&&i.addShadowRoot(t,r),e}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(w){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),pE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mE="undefined"==typeof Uint8Array?[]:new Uint8Array(256),gE=0;gE<pE.length;gE++)mE[pE.charCodeAt(gE)]=gE;var vE=new Map,yE=function(e,t,n){var r;if(e&&(bE(e,t)||"object"===T(e)))return t=n,n=e.constructor.name,(r=vE.get(t))||(r=new Map,vE.set(t,r)),r.has(n)||r.set(n,[]),-1===(n=(t=r.get(n)).indexOf(e))&&(n=t.length,t.push(e)),n};var wE=function(e,t,n){return e.map(function(e){return function r(i,t,n){return i instanceof Array?i.map(function(e){return r(e,t,n)}):null===i?i:i instanceof Float32Array||i instanceof Float64Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Uint8Array||i instanceof Uint16Array||i instanceof Int16Array||i instanceof Int8Array||i instanceof Uint8ClampedArray?{rr_type:i.constructor.name,args:[Object.values(i)]}:i instanceof ArrayBuffer?{rr_type:i.constructor.name,base64:function(){for(var e=new Uint8Array(i),t=e.length,n="",r=0;r<t;r+=3)n=(n=(n=(n+=pE[e[r]>>2])+pE[(3&e[r])<<4|e[r+1]>>4])+pE[(15&e[r+1])<<2|e[r+2]>>6])+pE[63&e[r+2]];return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}()}:i instanceof DataView?{rr_type:i.constructor.name,args:[r(i.buffer,t,n),i.byteOffset,i.byteLength]}:i instanceof HTMLImageElement?{rr_type:i.constructor.name,src:i.src}:i instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:i.toDataURL()}:i instanceof ImageData?{rr_type:i.constructor.name,args:[r(i.data,t,n),i.width,i.height]}:bE(i,t)||"object"===T(i)?{rr_type:i.constructor.name,index:yE(i,t,n)}:i}(e,t,n)})},bE=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof n[e]});return Boolean(e.find(function(e){return t instanceof n[e]}))};function kE(e,a,s,u){var t=[];try{var n=vS(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return OS(this,a,s,!0)||(t="experimental-webgl"===(t=e)?"webgl":t,"__context"in this||(this.__context=t),u&&["webgl","webgl2"].includes(t)&&(r[0]&&"object"===T(r[0])?(t=r[0]).preserveDrawingBuffer||(t.preserveDrawingBuffer=!0):r.splice(0,1,{preserveDrawingBuffer:!0}))),o.apply(this,[e].concat(r))}});t.push(n)}catch(N){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(e){return e()})}}function _E(t,s,u,l,c,d){var n,r=[],e=Ae(Object.getOwnPropertyNames(t));try{for(e.s();!(n=e.n()).done;)!function(){var a=n.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return;try{if("function"!=typeof t[a])return;var e=vS(t,a,function(o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=o.apply(this,t);return yE(i,d,this),"tagName"in this.canvas&&!OS(this.canvas,l,c,!0)&&(r=wE(t,d,this),u(this.canvas,{type:s,property:a,args:r})),i}});r.push(e)}catch(j){e=_S(t,a,{set:function(e){u(this.canvas,{type:s,property:a,args:[e],setter:!0})}});r.push(e)}}()}catch(De){e.e(De)}finally{e.f()}return r}var SE='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n',EE="undefined"!=typeof self&&self.Blob&&new Blob([SE],{type:"text/javascript;charset=utf-8"});function CE(e){var t,n;try{if(t=EE&&(self.URL||self.webkitURL).createObjectURL(EE))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",function(){(self.URL||self.webkitURL).revokeObjectURL(t)}),n;throw""}catch(C){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(SE),{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var RE,OE,xE,TE=b(function k(e){var n=this,t=(Me(this,k),p(this,"pendingCanvasMutations",new Map),p(this,"rafStamps",{latestId:0,invokeId:null}),p(this,"mirror"),p(this,"mutationCb"),p(this,"resetObservers"),p(this,"frozen",!1),p(this,"locked",!1),p(this,"processMutation",function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)}),e.sampling),t=void 0===t?"all":t,r=e.win,i=e.blockClass,o=e.blockSelector,a=e.recordCanvas,s=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===t&&this.initCanvasMutationObserver(r,i,o),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,o,{dataURLOptions:s})},[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,o,r,i,a){var s=this,t=kE(o,r,i,!0),u=new Map,l=new CE;l.onmessage=function(e){var t,n=e.data.id;u.set(n,!1),"base64"in e.data&&(t=(e=e.data).base64,s.mutationCb({id:n,type:BS["2D"],commands:[{property:"clearRect",args:[0,0,e.width,e.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:t}],type:e.type}]},0,0]}]}))};var c=1e3/e,d=0,f=function(e){var t,n;h=(d&&e-d<c||(d=e,t=[],o.document.querySelectorAll("canvas").forEach(function(e){OS(e,r,i,!0)||t.push(e)}),t.forEach((n=C(V().m(function o(t){var n,r,i;return V().w(function(e){for(;;)switch(e.n){case 0:if(n=s.mirror.getId(t),u.get(n))return e.a(2);e.n=1;break;case 1:if(0===t.width||0===t.height)return e.a(2);e.n=2;break;case 2:return u.set(n,!0),["webgl","webgl2"].includes(t.__context)&&(r=t.getContext(t.__context),!1===(null==(i=null==r?void 0:r.getContextAttributes())?void 0:i.preserveDrawingBuffer))&&r.clear(r.COLOR_BUFFER_BIT),e.n=3,createImageBitmap(t);case 3:i=e.v,l.postMessage({id:n,bitmap:i,width:t.width,height:t.height,dataURLOptions:a.dataURLOptions},[i]);case 4:return e.a(2)}},o)})),function(e){return n.apply(this,arguments)}))),requestAnimationFrame(f))},h=requestAnimationFrame(f);this.resetObservers=function(){t(),cancelAnimationFrame(h)}}},{key:"initCanvasMutationObserver",value:function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r,i,o=kE(e,t,n,!1),a=function(a,s,u,l){var t,n=[],e=Ae(Object.getOwnPropertyNames(s.CanvasRenderingContext2D.prototype));try{for(e.s();!(t=e.n()).done;)!function(){var o=t.value;try{if("function"!=typeof s.CanvasRenderingContext2D.prototype[o])return;var e=vS(s.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return OS(this.canvas,u,l,!0)||setTimeout(function(){var e=wE(n,s,t);a(t.canvas,{type:BS["2D"],property:o,args:e})},0),i.apply(this,n)}});n.push(e)}catch(Ae){e=_S(s.CanvasRenderingContext2D.prototype,o,{set:function(e){a(this.canvas,{type:BS["2D"],property:o,args:[e],setter:!0})}});n.push(e)}}()}catch(De){e.e(De)}finally{e.f()}return function(){n.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),s=(r=this.processMutation.bind(this),t=t,n=n,i=[],"undefined"!=typeof(e=e).WebGLRenderingContext&&i.push.apply(i,Ne(_E(e.WebGLRenderingContext.prototype,BS.WebGL,r,t,n,e))),"undefined"!=typeof e.WebGL2RenderingContext&&i.push.apply(i,Ne(_E(e.WebGL2RenderingContext.prototype,BS.WebGL2,r,t,n,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),a(),s()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})}},{key:"startRAFTimestamping",value:function(){var t=this,n=function(e){t.rafStamps.latestId=e,requestAnimationFrame(n)};requestAnimationFrame(n)}},{key:"flushPendingCanvasMutations",value:function(){var r=this;this.pendingCanvasMutations.forEach(function(e,t){var n=r.mirror.getId(t);r.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})}},{key:"flushPendingCanvasMutationFor",value:function(e,t){var n,r;this.frozen||this.locked||(r=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=r.map(function(e){return e.type,q(e,Ew)}),r=r[0].type,this.mutationCb({id:t,type:r,commands:n}),this.pendingCanvasMutations["delete"](e))}}]),IE=b(function k(e){Me(this,k),p(this,"trackedLinkElements",new WeakSet),p(this,"mutationCb"),p(this,"adoptedStyleSheetCb"),p(this,"styleMirror",new PS),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb},[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){var r=this;if(0!==e.length){var i,o={id:t,styleIds:[]},a=[],n=Ae(e);try{for(n.s();!(i=n.n()).done;)!function(){var e,n=i.value;r.styleMirror.has(n)?e=r.styleMirror.getId(n):(e=r.styleMirror.add(n),a.push({styleId:e,rules:Array.from(n.rules||CSSRule,function(e,t){return{rule:Hw(e,n.href),index:t}})})),o.styleIds.push(e)}()}catch(De){n.e(De)}finally{n.f()}0<a.length&&(o.styles=a),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),ME=b(function k(){Me(this,k),p(this,"nodeMap",new WeakMap),p(this,"active",!1)},[{key:"inOtherBuffer",value:function(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}]),AE=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(hO=document.createElement("iframe"),document.body.appendChild(hO),Array.from=(null==(ww=hO.contentWindow)?void 0:ww.Array.from)||Array.from,document.body.removeChild(hO))}catch(De){console.debug("Unable to override Array.from",De)}var PE,DE=new qw;function LE(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},r=e.emit,i=e.checkoutEveryNms,o=e.checkoutEveryNth,t=e.blockClass,u=void 0===t?"rr-block":t,t=e.blockSelector,l=void 0===t?null:t,t=e.ignoreClass,L=void 0===t?"rr-ignore":t,t=e.ignoreSelector,N=void 0===t?null:t,t=e.maskTextClass,c=void 0===t?"rr-mask":t,t=e.maskTextSelector,d=void 0===t?null:t,t=e.inlineStylesheet,f=void 0===t||t,t=e.maskAllInputs,n=e.maskInputOptions,F=e.slimDOMOptions,h=e.maskInputFn,p=e.maskTextFn,U=e.hooks,j=e.packFn,a=e.sampling,s=void 0===a?{}:a,a=e.dataURLOptions,m=void 0===a?{}:a,a=e.mousemoveWait,g=e.recordDOM,B=void 0===g||g,g=e.recordCanvas,v=void 0!==g&&g,g=e.recordCrossOriginIframes,g=void 0!==g&&g,y=e.recordAfter,z=void 0===y?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":y,y=e.userTriggeredOnInput,W=void 0!==y&&y,y=e.collectFonts,H=void 0!==y&&y,y=e.inlineImages,w=void 0!==y&&y,b=e.plugins,y=e.keepIframeSrcFn,k=void 0===y?function(){return!1}:y,y=e.ignoreCSSAttributes,q=void 0===y?new Set([]):y,_=(qS=e.errorHandler,!g||window.parent===window),S=!1;if(!_)try{window.parent.document&&(S=!1)}catch(Te){S=!0}if(_&&!r)throw new Error("emit function is required");if(!_&&!S)return function(){};void 0!==a&&void 0===s.mousemove&&(s.mousemove=a),DE.reset();var V,E=!0===t?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==n?n:{password:!0},C=vb(F),R=(!function(e){"NodeList"in(e=0<arguments.length&&e!==undefined?e:window)&&!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)}(),0),G=function(e){var t,n=Ae(b||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(De){n.e(De)}finally{n.f()}return e=j&&!S?j(e):e};RE=function(e,t){var n;e.timestamp=gS(),null==(n=XS[0])||!n.isFrozen()||e.type===NS.FullSnapshot||e.type===NS.IncrementalSnapshot&&e.data.source===FS.Mutation||XS.forEach(function(e){return e.unfreeze()}),_?null!=r&&r(G(e),t):S&&(n={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===NS.FullSnapshot?(V=e,R=0):e.type!==NS.IncrementalSnapshot||e.data.source===FS.Mutation&&e.data.isAttachIframe||(R++,t=o&&o<=R,n=i&&e.timestamp-V.timestamp>i,(t||n)&&OE(!0))};var J,O=function(e){RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.Mutation},e)})},K=function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.Scroll},e)})},$=function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.CanvasMutation},e)})},x=new IE({mutationCb:O,adoptedStyleSheetCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.AdoptedStyleSheet},e)})}}),T=new fE({mirror:DE,mutationCb:O,stylesheetManager:x,recordCrossOriginIframes:g,wrappedEmit:RE}),I=Ae(b||[]);try{for(I.s();!(J=I.n()).done;){var Z=J.value;Z.getMirror&&Z.getMirror({nodeMirror:DE,crossOriginIframeMirror:T.crossOriginIframeMirror,crossOriginIframeStyleMirror:T.crossOriginIframeStyleMirror})}}catch(De){I.e(De)}finally{I.f()}var M=new ME,A=(xE=new TE({recordCanvas:v,mutationCb:$,win:window,blockClass:u,blockSelector:l,mirror:DE,sampling:s.canvas,dataURLOptions:m}),new hE({mutationCb:O,scrollCb:K,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:d,inlineStylesheet:f,maskInputOptions:E,dataURLOptions:m,maskTextFn:p,maskInputFn:h,recordCanvas:v,inlineImages:w,sampling:s,slimDOMOptions:C,iframeManager:T,stylesheetManager:x,canvasManager:xE,keepIframeSrcFn:k,processedNodeManager:M},mirror:DE}));OE=function(){var e,t,n,r,i,o,a=0<arguments.length&&arguments[0]!==undefined&&arguments[0];if(B){RE({type:NS.Meta,data:{href:window.location.href,width:CS(),height:ES()}},a),x.reset(),A.init(),XS.forEach(function(e){return e.lock()});s=document,r=void 0===(r=(e={mirror:DE,blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:d,inlineStylesheet:f,maskAllInputs:E,maskTextFn:p,maskInputFn:h,slimDOM:C,dataURLOptions:m,recordCanvas:v,inlineImages:w,onSerialize:function(e){IS(e,DE)&&T.addIframe(e),MS(e,DE)&&x.trackLinkElement(e),AS(e)&&A.addShadowRoot(yS.shadowRoot(e),document)},onIframeLoad:function(e,t){T.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:function(e,t){x.attachLinkElement(e,t)},keepIframeSrcFn:k}).mirror)?new qw:r,t=e.inlineImages,n=e.recordCanvas,i=e.slimDOM,o=e.keepIframeSrcFn;var s=yb(s,{doc:s,mirror:r,blockClass:void 0===(s=e.blockClass)?"rr-block":s,blockSelector:void 0===(r=e.blockSelector)?null:r,maskTextClass:void 0===(s=e.maskTextClass)?"rr-mask":s,maskTextSelector:void 0===(r=e.maskTextSelector)?null:r,skipChild:!1,inlineStylesheet:void 0===(s=e.inlineStylesheet)||s,maskInputOptions:!0===(r=void 0!==(r=e.maskAllInputs)&&r)?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===r?{password:!0}:r,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:vb(void 0!==i&&i),dataURLOptions:e.dataURLOptions,inlineImages:void 0!==t&&t,recordCanvas:void 0!==n&&n,preserveWhiteSpace:e.preserveWhiteSpace,onSerialize:e.onSerialize,onIframeLoad:e.onIframeLoad,iframeLoadTimeout:e.iframeLoadTimeout,onStylesheetLoad:e.onStylesheetLoad,stylesheetLoadTimeout:e.stylesheetLoadTimeout,keepIframeSrcFn:void 0===o?function(){return!1}:o,newlyAddedElement:!1});if(!s)return console.warn("Failed to snapshot the document");RE({type:NS.FullSnapshot,data:{node:s,initialOffset:SS(window)}},a),XS.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,DE.getId(document))}};try{var P=[],Y=function(e){return YS(uE)({mutationCb:O,mousemoveCb:function(e,t){return RE({type:NS.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.MouseInteraction},e)})},scrollCb:K,viewportResizeCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.ViewportResize},e)})},inputCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.Input},e)})},mediaInteractionCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.MediaInteraction},e)})},styleSheetRuleCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.StyleSheetRule},e)})},styleDeclarationCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.StyleDeclaration},e)})},canvasMutationCb:$,fontCb:function(e){return RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.Font},e)})},selectionCb:function(e){RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.Selection},e)})},customElementCb:function(e){RE({type:NS.IncrementalSnapshot,data:Pe({source:FS.CustomElement},e)})},blockClass:u,ignoreClass:L,ignoreSelector:N,maskTextClass:c,maskTextSelector:d,maskInputOptions:E,inlineStylesheet:f,sampling:s,recordDOM:B,recordCanvas:v,inlineImages:w,userTriggeredOnInput:W,collectFonts:H,doc:e,maskInputFn:h,maskTextFn:p,keepIframeSrcFn:k,blockSelector:l,slimDOMOptions:C,dataURLOptions:m,mirror:DE,iframeManager:T,stylesheetManager:x,shadowDomManager:A,processedNodeManager:M,canvasManager:xE,ignoreCSSAttributes:q,plugins:(null==(e=null==b?void 0:b.filter(function(e){return e.observer}))?void 0:e.map(function(t){return{observer:t.observer,options:t.options,callback:function(e){return RE({type:NS.Plugin,data:{plugin:t.name,payload:e}})}}}))||[]},U)},D=(T.addLoadListener(function(e){try{P.push(Y(e.contentDocument))}catch(X){console.warn(X)}}),function(){OE(),P.push(Y(document)),AE=!0});return["interactive","complete"].includes(document.readyState)?D():(P.push(wS("DOMContentLoaded",function(){RE({type:NS.DomContentLoaded,data:{}}),"DOMContentLoaded"===z&&D()})),P.push(wS("load",function(){RE({type:NS.Load,data:{}}),"load"===z&&D()},window))),function(){P.forEach(function(e){try{e()}catch(X){String(X).toLowerCase().includes("cross-origin")||console.warn(X)}}),M.destroy(),AE=!1,qS=void 0}}catch(X){console.warn(X)}}LE.addCustomEvent=function(e,t){if(!AE)throw new Error("please add custom event after start recording");RE({type:NS.Custom,data:{tag:e,payload:t}})},LE.freezePage=function(){XS.forEach(function(e){return e.freeze()})},LE.takeFullSnapshot=function(e){if(!AE)throw new Error("please take full snapshot after start recording");OE(e)},LE.mirror=DE,(t=PE=PE||{})[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped";var NE='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',FE={maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,autoDetectSensitiveData:!0,mask:[".tdem-mask","[data-tdem-mask]","[data-sensitive]",".sensitive",".private"],block:[".tdem-block","[data-tdem-block]",".secret","[data-secret]","iframe[srcdoc]:not([src])",".replayer-wrapper"],ignore:[".tdem-ignore","[data-tdem-ignore]",'input[type="file"]','input[type="password"]'],maskInputOptions:{password:!0,email:!0,tel:!0,text:!1}},UE=(jE.maskPhone=function(e){return e.replace(this.phoneRegex,function(e){var t=e.replace(/[^\d]/g,"");return 11===t.length?e.substring(0,3)+"****"+e.substring(7):13===t.length?e.substring(0,6)+"****"+e.substring(10):e.substring(0,3)+"****"+e.substring(e.length-4)})},jE.maskIdCard=function(e){return e.replace(this.idCardRegex,function(e){return 18===e.length?e.substring(0,6)+"********"+e.substring(14):15===e.length?e.substring(0,6)+"******"+e.substring(12):e})},jE.maskEmail=function(e){return e.replace(this.emailRegex,function(e){var t,n=e.indexOf("@");return n<=1?"*"+e.substring(1):(t=e.substring(0,n),n=e.substring(n),t.charAt(0)+"***"+t.charAt(t.length-1)+n)})},jE.maskBankCard=function(e){return e.replace(this.bankCardRegex,function(e){var t=e.replace(/[^\d]/g,"");return t.length<13?e:t.substring(0,4)+" **** **** "+t.substring(t.length-4)})},jE.maskIP=function(e){return e.replace(this.ipv4Regex,function(e){e=e.split(".");return e[0]+".*.*."+e[3]})},jE.autoMask=function(e){var t;return e&&"string"==typeof e?(t=this.maskPhone(t=e),t=this.maskIdCard(t),t=this.maskEmail(t),this.maskBankCard(t)):e},jE.hasSensitiveData=function(e){return!(!e||"string"!=typeof e)&&(this.phoneRegex.test(e)||this.idCardRegex.test(e)||this.emailRegex.test(e)||this.bankCardRegex.test(e))},jE.phoneRegex=/1[3-9]\d{9}|(?:\+?86)?1[3-9]\d{9}/g,jE.idCardRegex=/[1-9]\d{5}(?:19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dXx]|[1-9]\d{7}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}/g,jE.emailRegex=/[\w.-]+@[\w.-]+\.\w{2,}/g,jE.bankCardRegex=/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{1,7}\b/g,jE.ipv4Regex=/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b/g,jE);function jE(){}function BE(e,t){return void 0===e&&(e={}),A(A(A({},t=void 0===t?FE:t),e),{mask:zE(t.mask,e.mask),block:zE(t.block,e.block),ignore:zE(t.ignore,e.ignore),maskInputOptions:A(A({},t.maskInputOptions),e.maskInputOptions)})}function zE(e,t){e=new Set(El(e||[],t||[]));return Array.from(e)}JE.prototype.push=function(e,t){if(this.emitFn=t,3===e.type&&this.isMutationEvent(e)){var n=e.data;if(this.buffer){if(this.enableRepeatDetection&&this.isRepeatPattern(n)){if(this.repeatCount++,3<this.repeatCount)return this.buffer=this.cloneEvent(e),void this.droppedByRepeat++}else this.repeatCount=0;this.mergeInto(n,e.timestamp),this.mergedCount++,(null!=(n=null==(n=this.buffer.data.adds)?void 0:n.length)?n:0)>=this.maxAddsPerMerge&&this.flush()}else this.buffer=this.cloneEvent(e),this.scheduleFlush()}else this.flush(),t(e)},JE.prototype.flush=function(){this.clearTimer(),this.buffer&&this.emitFn&&(this.emitFn(this.buffer),this.buffer=null,this.repeatCount=0)},JE.prototype.destroy=function(){this.flush(),this.clearTimer(),this.emitFn=null},JE.prototype.getStats=function(){return{mergedCount:this.mergedCount,droppedByRepeat:this.droppedByRepeat,cancelledByOffset:this.cancelledByOffset}},JE.prototype.isMutationEvent=function(e){return 0===(null==(e=e.data)?void 0:e.source)},JE.prototype.isRepeatPattern=function(e){var t;return!!this.buffer&&(t=null!=(t=this.buffer.data.adds)?t:[],e=null!=(e=e.adds)?e:[],0!==t.length)&&0!==e.length&&t.length===e.length&&(null==(t=t[0])?void 0:t.parentId)===(null==(t=e[0])?void 0:t.parentId)},JE.prototype.mergeInto=function(e,t){var n,r,i,o;if(this.buffer){var a=this.buffer.data;this.buffer.timestamp=Math.max(this.buffer.timestamp,t);for(var s=this,u=0,l=null!=(t=e.removes)?t:[];u<l.length;u++)!function(t){var e=(null!=(n=a.adds)?n:[]).findIndex(function(e){return(null==(e=e.node)?void 0:e.id)===t.id});0<=e?(a.adds.splice(e,1),s.cancelledByOffset++):(a.removes=null!=(n=a.removes)?n:[],a.removes.push(t))}(l[u]);for(var c=0,d=null!=(t=e.adds)?t:[];c<d.length;c++){var f=d[c];a.adds=null!=(r=a.adds)?r:[],a.adds.push(f)}for(var h=0,p=null!=(t=e.attributes)?t:[];h<p.length;h++)!function(t){a.attributes=null!=(i=a.attributes)?i:[];var e=a.attributes.findIndex(function(e){return e.id===t.id});0<=e?a.attributes[e]=t:a.attributes.push(t)}(p[h]);for(var m=0,g=null!=(t=e.texts)?t:[];m<g.length;m++)!function(t){a.texts=null!=(o=a.texts)?o:[];var e=a.texts.findIndex(function(e){return e.id===t.id});0<=e?a.texts[e]=t:a.texts.push(t)}(g[m])}},JE.prototype.cloneEvent=function(e){var t=e.data;return{type:e.type,timestamp:e.timestamp,data:{source:0,adds:El(null!=(e=t.adds)?e:[]),removes:El(null!=(e=t.removes)?e:[]),attributes:El(null!=(e=t.attributes)?e:[]),texts:El(null!=(e=t.texts)?e:[])}}},JE.prototype.scheduleFlush=function(){var e=this;this.clearTimer(),this.flushTimer=setTimeout(function(){e.flushTimer=null,e.flush()},this.windowMs)},JE.prototype.clearTimer=function(){null!==this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null)};var WE=JE,HE=(GE.prototype.startRecording=function(e){var r,i,n=this;if(void 0===e&&(e={}),"recording"!==this.state){this.mutationLimitReached=!1,this.throttleCount=0,this.throttleWindowStart=Date.now(),this.throttleNotified=!1,this.mutationAddsInWindow=0;var t="buffer"===this.options.mode?12e4:3e5,t="number"==typeof e.checkoutEveryNms&&0<e.checkoutEveryNms?e.checkoutEveryNms:t,o="number"==typeof e.checkoutEveryNth&&0<e.checkoutEveryNth?e.checkoutEveryNth:undefined,a=BE(e.privacy||{},FE),s=A(A(A(A({emit:function(e,t){n.handleEvent(e,t)},checkoutEveryNms:t},o?{checkoutEveryNth:o}:{}),{sampling:{scroll:150,mousemove:!c.ios()&&50,mouseInteraction:!0,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0}}),(t={},(o=a).maskAllInputs!==undefined&&(t.maskAllInputs=o.maskAllInputs),o.maskInputOptions&&(t.maskInputOptions=o.maskInputOptions),null!=(s=o.mask)&&s.length&&(t.maskTextSelector=o.mask.join(",")),null!=(s=o.block)&&s.length&&(t.blockSelector=o.block.join(",")),o.blockAllMedia&&(t.blockSelector=t.blockSelector?t.blockSelector+","+NE:NE,t.ignoreCSSAttributes=new Set(["background-image"])),null!=(s=o.ignore)&&s.length&&(t.ignoreSelector=o.ignore.join(",")),!o.maskTextFn&&!1===o.autoDetectSensitiveData||(t.maskTextFn=(r=o.maskTextFn,i=!1!==o.autoDetectSensitiveData,function(e,t){var n;return e&&(n=e,i&&(n=UE.autoMask(n)),r?r(n,t):n)})),t)),e.rrwebConfig);try{this.hookMutationObserver(),this.stopRecordingFn=LE(s),this.state="recording",this.lastCheckoutTime=Date.now(),this.startCheckpointTimer(),h("RecorderManager","Recording started with config:",{maskAllText:a.maskAllText,maskAllInputs:a.maskAllInputs,autoDetectSensitiveData:a.autoDetectSensitiveData,mutationLimit:this.mutationLimit,checkpointIntervalMs:12e4})}catch(X){Y0("RecorderManager","Failed to start recording:",X),this.state="stopped"}}else Z0("RecorderManager","Already recording")},GE.prototype.stopRecording=function(){var e;this.stopCheckpointTimer(),null!=(e=this.mutationMerger)&&e.destroy(),this.unhookMutationObserver(),this.stopRecordingFn&&(this.stopRecordingFn(),this.stopRecordingFn=undefined),this.state="stopped",h("RecorderManager","Recording stopped")},GE.prototype.pauseRecording=function(){"recording"===this.state&&(this.stopRecording(),this.state="paused",h("RecorderManager","Recording paused"))},GE.prototype.resumeRecording=function(e){void 0===e&&(e={}),"paused"===this.state&&(this.startRecording(e),h("RecorderManager","Recording resumed"))},GE.prototype.hookMutationObserver=function(){try{var r,e,t=window.MutationObserver;t&&(r=this,(e=function(n){return new t(function(e,t){r.unhookMutationObserver(),r.onMutationHandler(e)&&n(e,t)})}).prototype=t.prototype,window.MutationObserver=e,this.restoreMutationObserver=function(){window.MutationObserver=t},$0("RecorderManager","MutationObserver hooked"))}catch(De){Z0("RecorderManager","Failed to hook MutationObserver:",De)}},GE.prototype.unhookMutationObserver=function(){this.restoreMutationObserver&&(this.restoreMutationObserver(),this.restoreMutationObserver=null,$0("RecorderManager","MutationObserver restored"))},GE.prototype.onMutationHandler=function(e){var t,n=this;return!this.mutationLimitReached&&(t=(e=e.length)>this.mutationLimit,(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(this.mutationLimitReached=!0,Y0("RecorderManager","Mutation limit reached: "+e+" > "+this.mutationLimit+". Stopping."),setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1))},GE.prototype.checkMutationLimit=function(e){var n=this;if(this.mutationLimitReached)return!1;if(3!==e.type)return!0;e=e.data;if(0!==(null==e?void 0:e.source))return!0;e=Array.isArray(e.adds)?e.adds.length:0;if(0===e)return!0;this.mutationAddsInWindow+=e;var t=e>this.mutationLimit||this.mutationAddsInWindow>2*this.mutationLimit;return(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(Y0("RecorderManager","Mutation limit: "+e+" adds (window: "+this.mutationAddsInWindow+"). Stopping."),this.mutationLimitReached=!0,setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1)},GE.prototype.emitMutationBreadcrumb=function(e,t){var n;try{null!=(n=LE.addCustomEvent)&&n.call(LE,"replay.mutations",{count:e,limit:t,timestamp:Date.now()})}catch(L){}},GE.prototype.handleEvent=function(e,t){var n=this,r=(t&&(null!=(r=(i=this.options).onCheckout)&&r.call(i),this.lastCheckoutTime=Date.now(),null!=(i=this.mutationMerger))&&i.flush(),e.type);if(t||2===r||4===r||r<=1||this.checkEventThrottle()){if(3===r&&!this.mutationLimitReached){var i=Date.now();if(12e4<=i-this.lastCheckoutTime){this.lastCheckoutTime=i;try{var o=LE.takeFullSnapshot;"function"==typeof o&&(o(!0),$0("RecorderManager","Inline checkpoint: forced FullSnapshot"))}catch(De){Z0("RecorderManager","Inline checkpoint failed:",De)}}}this.checkMutationLimit(e)&&(this.mutationMerger?this.mutationMerger.push(e,function(e){n.options.onRecordingEvent(e)}):this.options.onRecordingEvent(e))}},GE.prototype.checkEventThrottle=function(){var e,t=Date.now();if(5e3<t-this.throttleWindowStart&&(this.throttleCount=0,this.throttleWindowStart=t,this.throttleNotified=!1,this.mutationAddsInWindow=0),this.throttleCount++,300<this.throttleCount){if(!this.throttleNotified){this.throttleNotified=!0,Z0("RecorderManager","Event throttled: "+this.throttleCount+" events in 5000ms window");try{null!=(e=LE.addCustomEvent)&&e.call(LE,"replay.throttled",{count:this.throttleCount,window:5e3})}catch(C){}}return!1}return!0},GE.prototype.startCheckpointTimer=function(){var t=this;this.stopCheckpointTimer(),this.checkpointTimer=setInterval(function(){if("recording"===t.state&&!t.mutationLimitReached)try{var e=LE.takeFullSnapshot;"function"==typeof e&&(e(!0),t.lastCheckoutTime=Date.now(),$0("RecorderManager","Checkpoint: forced FullSnapshot"))}catch(De){Z0("RecorderManager","Checkpoint FullSnapshot failed:",De)}},12e4)},GE.prototype.stopCheckpointTimer=function(){null!==this.checkpointTimer&&(clearInterval(this.checkpointTimer),this.checkpointTimer=null)},GE.prototype.getState=function(){return this.state},GE.prototype.isRecording=function(){return"recording"===this.state},GE.prototype.getLastCheckoutTime=function(){return this.lastCheckoutTime},GE.prototype.takeFullSnapshot=function(){var e,t;"recording"===this.state&&this.stopRecordingFn&&(null!=(t=null==(e=this.stopRecordingFn)?void 0:e.takeFullSnapshot)&&t.call(e),this.lastCheckoutTime=Date.now())},GE.prototype.isMutationLimitReached=function(){return this.mutationLimitReached},GE),qE=(VE.prototype.initializeSampling=function(){return null!==this.samplingDecision?{mode:this.currentMode,shouldRecord:!1!==this.currentMode}:Math.random()<this.config.sessionSampleRate?(this.currentMode="session",this.samplingDecision=!0,h("SamplerManager","Sampled: session mode"),{mode:"session",shouldRecord:!0}):0<this.config.errorSampleRate?(this.currentMode="buffer",this.samplingDecision=!0,h("SamplerManager","Sampled: buffer mode"),{mode:"buffer",shouldRecord:!0}):(this.currentMode=!1,this.samplingDecision=!1,h("SamplerManager","Not sampled"),{mode:!1,shouldRecord:!1})},VE.prototype.decideSamplingMode=function(){return this.initializeSampling().mode},VE.prototype.onErrorOccurred=function(e){return"buffer"===this.currentMode&&!this.hasUpgraded&&!!(Math.random()<this.config.errorSampleRate)&&(this.switchMode("session"),this.hasUpgraded=!0)},VE.prototype.switchMode=function(e){var t=this.currentMode;this.currentMode=e,this.samplingDecision=!1!==e,h("SamplerManager","Mode switched: "+t+" -> "+e)},VE.prototype.getCurrentMode=function(){return this.currentMode},VE.prototype.isSampled=function(){return!0===this.samplingDecision},VE.prototype.isSessionMode=function(){return"session"===this.currentMode},VE.prototype.isBufferMode=function(){return"buffer"===this.currentMode},VE.prototype.upgradeToSessionMode=function(){return"buffer"===this.currentMode&&Math.random()<this.config.errorSampleRate&&(this.currentMode="session",h("SamplerManager","Upgraded to session mode due to error"),!0)},VE.prototype.updateRates=function(e,t){"number"==typeof e&&(this.config.sessionSampleRate=e),"number"==typeof t&&(this.config.errorSampleRate=t)},VE.prototype.forceMode=function(e){this.currentMode=e,this.samplingDecision=!1!==e},VE.prototype.reset=function(){this.currentMode=!1,this.samplingDecision=null},VE.prototype.getConfig=function(){return A({},this.config)},VE);function VE(e){var t;void 0===e&&(e={}),this.currentMode=!1,this.samplingDecision=null,this.hasUpgraded=!1,this.config={sessionSampleRate:null!=(t=e.sessionSampleRate)?t:.1,errorSampleRate:null!=(t=e.errorSampleRate)?t:1}}function GE(e,t){this.state="stopped",this.lastCheckoutTime=0,this.checkpointTimer=null,this.mutationLimitReached=!1,this.mutationMerger=null,this.mutationBreadcrumbLimit=750,this.mutationLimit=1e4,this.restoreMutationObserver=null,this.throttleCount=0,this.throttleWindowStart=0,this.throttleNotified=!1,this.mutationAddsInWindow=0,this.options=e,this.mutationBreadcrumbLimit=null!=(e=null==t?void 0:t.mutationBreadcrumbLimit)?e:750,this.mutationLimit=null!=(e=null==t?void 0:t.mutationLimit)?e:1e4,null!=t&&t.enableMutationMerge&&(this.mutationMerger=new WE({windowMs:null!=(e=null==t?void 0:t.mutationMergeWindowMs)?e:200,maxAddsPerMerge:500,enableRepeatDetection:!0}))}function JE(e){var t;this.buffer=null,this.flushTimer=null,this.repeatCount=0,this.emitFn=null,this.mergedCount=0,this.droppedByRepeat=0,this.cancelledByOffset=0,this.windowMs=null!=(t=null==e?void 0:e.windowMs)?t:200,this.maxAddsPerMerge=null!=(t=null==e?void 0:e.maxAddsPerMerge)?t:500,this.enableRepeatDetection=null==(t=null==e?void 0:e.enableRepeatDetection)||t}function KE(e){for(var t=e.length;0<=--t;)e[t]=0}var $E=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ZE=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),YE=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),XE=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),QE=new Array(576),eC=(KE(QE),new Array(60)),tC=(KE(eC),new Array(512)),nC=(KE(tC),new Array(256)),rC=(KE(nC),new Array(29));KE(rC);var iC,oC,aC,sC=new Array(30);function uC(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function lC(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}KE(sC);var cC=function(e){return e<256?tC[e]:tC[256+(e>>>7)]},dC=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},fC=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,dC(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},hC=function(e,t,n){fC(e,n[2*t],n[2*t+1])},pC=function(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1},mC=function(e,t,n){for(var r,i=new Array(16),o=0,a=1;a<=15;a++)o=o+n[a-1]<<1,i[a]=o;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=pC(i[s]++,s))}},gC=function(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},vC=function(e){8<e.bi_valid?dC(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},yC=function(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},wC=function(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&yC(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!yC(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},bC=function(e,t,n){var r,i,o,a,s=0;if(0!==e.sym_next)for(;r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,i=e.pending_buf[e.sym_buf+s++],0==r?hC(e,i,t):(o=nC[i],hC(e,o+256+1,t),0!==(a=$E[o])&&(i-=rC[o],fC(e,i,a)),o=cC(--r),hC(e,o,n),0!==(a=ZE[o])&&(r-=sC[o],fC(e,r,a))),s<e.sym_next;);hC(e,256,t)},kC=function(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)wC(e,o,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],wC(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,wC(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,d,f,h,p,m=e,g=t.dyn_tree,v=t.max_code,y=t.stat_desc.static_tree,w=t.stat_desc.has_stree,b=t.stat_desc.extra_bits,k=t.stat_desc.extra_base,_=t.stat_desc.max_length,S=0,E=0;E<=15;E++)m.bl_count[E]=0;for(g[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(E=g[2*g[2*(d=m.heap[c])+1]+1]+1)>_&&(E=_,S++),g[2*d+1]=E,v<d||(m.bl_count[E]++,h=0,k<=d&&(h=b[d-k]),p=g[2*d],m.opt_len+=p*(E+h),w&&(m.static_len+=p*(y[2*d+1]+h)));if(0!==S){do{for(E=_-1;0===m.bl_count[E];)E--}while(m.bl_count[E]--,m.bl_count[E+1]+=2,m.bl_count[_]--,0<(S-=2));for(E=_;0!==E;E--)for(d=m.bl_count[E];0!==d;)(f=m.heap[--c])>v||(g[2*f+1]!==E&&(m.opt_len+=(E-g[2*f+1])*g[2*f],g[2*f+1]=E),d--)}mC(o,l,e.bl_count)},_C=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<u&&i===a||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))},SC=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)for(;hC(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(hC(e,i,e.bl_tree),s--),hC(e,16,e.bl_tree),fC(e,s-3,2)):s<=10?(hC(e,17,e.bl_tree),fC(e,s-3,3)):(hC(e,18,e.bl_tree),fC(e,s-11,7));o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}},EC=!1,CC=function(e,t,n,r){fC(e,0+(r?1:0),3),vC(e),dC(e,n),dC(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},ty=function(e){if(!EC){for(var t,n,r,i=new Array(16),o=0,a=0;a<28;a++)for(rC[a]=o,t=0;t<1<<$E[a];t++)nC[o++]=a;for(nC[o-1]=a,a=r=0;a<16;a++)for(sC[a]=r,t=0;t<1<<ZE[a];t++)tC[r++]=a;for(r>>=7;a<30;a++)for(sC[a]=r<<7,t=0;t<1<<ZE[a]-7;t++)tC[256+r++]=a;for(n=0;n<=15;n++)i[n]=0;for(t=0;t<=143;)QE[2*t+1]=8,t++,i[8]++;for(;t<=255;)QE[2*t+1]=9,t++,i[9]++;for(;t<=279;)QE[2*t+1]=7,t++,i[7]++;for(;t<=287;)QE[2*t+1]=8,t++,i[8]++;for(mC(QE,287,i),t=0;t<30;t++)eC[2*t+1]=5,eC[2*t]=pC(t,5);iC=new uC(QE,$E,257,286,15),oC=new uC(eC,ZE,0,30,15),aC=new uC(new Array(0),YE,0,19,7),EC=!0}e.l_desc=new lC(e.dyn_ltree,iC),e.d_desc=new lC(e.dyn_dtree,oC),e.bl_desc=new lC(e.bl_tree,aC),e.bi_buf=0,e.bi_valid=0,gC(e)},uk=CC,n=function(e,t,n,r){var i,o,a,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*n])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(n=32;n<256;n++)if(0!==e.dyn_ltree[2*n])return 1;return 0}(e)),kC(e,e.l_desc),kC(e,e.d_desc),s=function(e){var t;for(_C(e,e.dyn_ltree,e.l_desc.max_code),_C(e,e.dyn_dtree,e.d_desc.max_code),kC(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*XE[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(o=e.static_len+3+7>>>3)<=(i=e.opt_len+3+7>>>3)&&(i=o)):i=o=n+5,n+4<=i&&-1!==t)CC(e,t,n,r);else if(4===e.strategy||o===i)fC(e,2+(r?1:0),3),bC(e,QE,eC);else{fC(e,4+(r?1:0),3);var u=e,l=(t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,s+1);for(fC(u,t-257,5),fC(u,n-1,5),fC(u,l-4,4),a=0;a<l;a++)fC(u,u.bl_tree[2*XE[a]+1],3);SC(u,u.dyn_ltree,t-1),SC(u,u.dyn_dtree,n-1),bC(e,e.dyn_ltree,e.dyn_dtree)}gC(e),r&&vC(e)},RC=function(e,t,n){return e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(nC[n]+256+1)]++,e.dyn_dtree[2*cC(t)]++),e.sym_next===e.sym_end},m=function(e){fC(e,2,3),hC(e,256,QE),16===(e=e).bi_valid?(dC(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},OC=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0},xC=new Uint32Array(function(){for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}()),TC=function(e,t,n,r){var i=xC,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},IC={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},e={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},MC=ty,AC=uk,PC=n,DC=RC,LC=m,NC=e.Z_NO_FLUSH,FC=e.Z_PARTIAL_FLUSH,UC=e.Z_FULL_FLUSH,jC=e.Z_FINISH,BC=e.Z_BLOCK,zC=e.Z_OK,WC=e.Z_STREAM_END,HC=e.Z_STREAM_ERROR,qC=e.Z_DATA_ERROR,VC=e.Z_BUF_ERROR,GC=e.Z_DEFAULT_COMPRESSION,JC=e.Z_FILTERED,KC=e.Z_HUFFMAN_ONLY,$C=e.Z_RLE,ZC=e.Z_FIXED,YC=e.Z_UNKNOWN,XC=e.Z_DEFLATED,De=function(e,t){return e.msg=IC[t],t},QC=function(e){return 2*e-(4<e?9:0)},eR=function(e){for(var t=e.length;0<=--t;)e[t]=0},tR=function(e){for(var t,n,r=e.w_size,i=t=e.hash_size;n=e.head[--i],e.head[i]=r<=n?n-r:0,--t;);for(i=t=r;n=e.prev[--i],e.prev[i]=r<=n?n-r:0,--t;);},nR=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},rR=function(e,t){n=e.legacy_hash?e.ins_h=nR(e,e.ins_h,e.window[t+3-1]):(n=(n=e.window)[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24,e.ins_h=Math.imul(n,66521)+66521>>>16&e.hash_mask);var n,r=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,r},iR=function(e){var t=e.state,n=t.pending;0!==(n=e.avail_out<n?e.avail_out:n)&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending)&&(t.pending_out=0)},oR=function(e,t){PC(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,iR(e.strm)},aR=function(e,t){e.pending_buf[e.pending++]=t},sR=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},uR=function(e,t,n,r){var i=e.avail_in;return 0===(i=r<i?r:i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=OC(e.adler,t,i,n):2===e.state.wrap&&(e.adler=TC(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},lR=function(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.w_size-262<e.strstart?e.strstart-(e.w_size-262):0,l=e.window,c=e.w_mask,d=e.prev,f=e.strstart+258,h=l[o+a-1],p=l[o+a];e.good_match<=e.prev_length&&(i>>=2),e.lookahead<s&&(s=e.lookahead);do{if(l[(n=t)+a]===p&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){for(o+=2,n++;l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f;);if(r=258-(f-o),o=f-258,a<r){if(e.match_start=t,s<=(a=r))break;h=l[o+a-1],p=l[o+a]}}}while((t=d[t&c])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead},cR=function(e){var t,n,r=e.w_size;do{if(t=e.window_size-e.lookahead-e.strstart,r+(r-262)<=e.strstart&&(e.window.set(e.window.subarray(r,r+r-t),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.strstart<e.insert&&(e.insert=e.strstart),tR(e),t+=r),0===e.strm.avail_in)break;if(t=uR(e.strm,e.window,e.strstart+e.lookahead,t),e.lookahead+=t,e.legacy_hash){if(3<=e.lookahead+e.insert)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=nR(e,e.ins_h,e.window[n+1]);e.insert&&(rR(e,n),n++,e.insert--,!(e.lookahead+e.insert<3)););}else if(3<e.lookahead+e.insert)for(n=e.strstart-e.insert;e.insert&&(rR(e,n),n++,e.insert--,!(e.lookahead+e.insert<=3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},dR=function(e,t){for(var n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,s=e.strm.avail_in;n=65535,i=e.bi_valid+42>>3,!(e.strm.avail_out<i||(n=(i=e.strm.avail_out-i)<(n=n>(r=e.strstart-e.block_start)+e.strm.avail_in?r+e.strm.avail_in:n)?i:n)<o&&(0===n&&t!==jC||t===NC||n!==r+e.strm.avail_in)||(a=t===jC&&n===r+e.strm.avail_in?1:0,AC(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,iR(e.strm),r&&(n<r&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(uR(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n),0!==a)););return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.strstart<e.insert)&&(e.insert=e.strstart),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=e.w_size-e.insert<s?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==NC&&t!==jC&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.strstart<e.insert)&&(e.insert=e.strstart),(i=i>e.strm.avail_in?e.strm.avail_in:i)&&(uR(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=e.w_size-e.insert<i?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),o=(i=65535<e.pending_buf_size-(i=e.bi_valid+42>>3)?65535:e.pending_buf_size-i)>e.w_size?e.w_size:i,((r=e.strstart-e.block_start)>=o||(r||t===jC)&&t!==NC&&0===e.strm.avail_in&&r<=i)&&(n=i<r?i:r,a=t===jC&&0===e.strm.avail_in&&n===r?1:0,AC(e,e.block_start,n,a),e.block_start+=n,iR(e.strm)),a?3:1)},je=function(e,t){for(var n,r;;){if(e.lookahead<262){if(cR(e),e.lookahead<262&&t===NC)return 1;if(0===e.lookahead)break}if((n=0)!==(n=3<=e.lookahead?rR(e,e.strstart):n)&&e.strstart-n<=e.w_size-262&&(e.match_length=lR(e,n)),3<=e.match_length)if(r=DC(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,n=rR(e,e.strstart),0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=nR(e,e.ins_h,e.window[e.strstart+1]));else r=DC(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(oR(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===jC?(oR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(oR(e,!1),0===e.strm.avail_out)?1:2},o=function(e,t){for(var n,r,i;;){if(e.lookahead<262){if(cR(e),e.lookahead<262&&t===NC)return 1;if(0===e.lookahead)break}if(n=0,3<=e.lookahead&&(n=rR(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=lR(e,n),e.match_length<=5)&&(e.strategy===JC||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=DC(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(n=rR(e,e.strstart)),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(oR(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=DC(e,0,e.window[e.strstart-1]))&&oR(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=DC(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===jC?(oR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(oR(e,!1),0===e.strm.avail_out)?1:2};function fR(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var hR=[new fR(0,0,0,0,dR),new fR(4,4,8,4,je),new fR(4,5,16,8,je),new fR(4,6,32,32,je),new fR(4,4,16,16,o),new fR(8,16,32,32,o),new fR(8,16,128,128,o),new fR(8,32,128,256,o),new fR(32,128,258,1024,o),new fR(32,258,258,4096,o)];function pR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=XC,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),eR(this.dyn_ltree),eR(this.dyn_dtree),eR(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),eR(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),eR(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var mR=function(e){var t;return!e||!(t=e.state)||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},gR=function(e){if(mR(e))return De(e,HC);e.total_in=e.total_out=0,e.data_type=YC;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,MC(t),zC},vR=function(e){var t=gR(e);return t===zC&&((e=e.state).window_size=2*e.w_size,eR(e.head),e.max_lazy_match=hR[e.level].max_lazy,e.good_match=hR[e.level].good_length,e.nice_match=hR[e.level].nice_length,e.max_chain_length=hR[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t},d=function(e,t,n,r,i,o,a){if(!e)return HC;var s=1;if(t===GC&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||9<i||n!==XC||r<8||15<r||t<0||9<t||o<0||ZC<o||8===r&&1!==s)return De(e,HC);8===r&&(r=9);var u=new pR;return(e.state=u).strm=e,u.status=42,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.legacy_hash=a?1:0,u.hash_bits=i+7,!u.legacy_hash&&u.hash_bits<15&&(u.hash_bits=15),u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.sym_buf=u.lit_bufsize,u.sym_end=3*(u.lit_bufsize-1),u.level=t,u.strategy=o,u.method=n,vR(e)},yR=d,wR=function(e,t){return mR(e)||2!==e.state.wrap?HC:(e.state.gzhead=t,zC)},bR=function(e,t){if(mR(e)||BC<t||t<0)return e?De(e,HC):HC;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==jC)return De(e,0===e.avail_out?VC:HC);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(iR(e),0===e.avail_out)return n.last_flush=-1,zC}else if(0===e.avail_in&&QC(t)<=QC(r)&&t!==jC)return De(e,VC);if(666===n.status&&0!==e.avail_in)return De(e,VC);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){r=XC+(n.w_bits-8<<4)<<8;if(r|=(n.strategy>=KC||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(r|=32),sR(n,r+=31-r%31),0!==n.strstart&&(sR(n,e.adler>>>16),sR(n,65535&e.adler)),e.adler=1,n.status=113,iR(e),0!==n.pending)return n.last_flush=-1,zC}if(57===n.status)if(e.adler=0,aR(n,31),aR(n,139),aR(n,8),n.gzhead)aR(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),aR(n,255&n.gzhead.time),aR(n,n.gzhead.time>>8&255),aR(n,n.gzhead.time>>16&255),aR(n,n.gzhead.time>>24&255),aR(n,9===n.level?2:n.strategy>=KC||n.level<2?4:0),aR(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(aR(n,255&n.gzhead.extra.length),aR(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=TC(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(aR(n,0),aR(n,0),aR(n,0),aR(n,0),aR(n,0),aR(n,9===n.level?2:n.strategy>=KC||n.level<2?4:0),aR(n,3),n.status=113,iR(e),0!==n.pending)return n.last_flush=-1,zC;if(69===n.status){if(n.gzhead.extra){for(var i=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=TC(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,iR(e),0!==n.pending)return n.last_flush=-1,zC;i=0,o-=a}r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=TC(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){var s,u=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>u&&(e.adler=TC(e.adler,n.pending_buf,n.pending-u,u)),iR(e),0!==n.pending)return n.last_flush=-1,zC;u=0}}while(s=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,aR(n,s),0!=s);n.gzhead.hcrc&&n.pending>u&&(e.adler=TC(e.adler,n.pending_buf,n.pending-u,u)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){var l,c=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>c&&(e.adler=TC(e.adler,n.pending_buf,n.pending-c,c)),iR(e),0!==n.pending)return n.last_flush=-1,zC;c=0}}while(l=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,aR(n,l),0!=l);n.gzhead.hcrc&&n.pending>c&&(e.adler=TC(e.adler,n.pending_buf,n.pending-c,c))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(iR(e),0!==n.pending))return n.last_flush=-1,zC;aR(n,255&e.adler),aR(n,e.adler>>8&255),e.adler=0}if(n.status=113,iR(e),0!==n.pending)return n.last_flush=-1,zC}if(0!==e.avail_in||0!==n.lookahead||t!==NC&&666!==n.status){r=0===n.level?dR(n,t):n.strategy===KC?function(e,t){for(var n;;){if(0===e.lookahead&&(cR(e),0===e.lookahead)){if(t===NC)return 1;break}if(e.match_length=0,n=DC(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(oR(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===jC?(oR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(oR(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===$C?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=258){if(cR(e),e.lookahead<=258&&t===NC)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=e.strstart+258;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);e.match_length=258-(o-i),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(3<=e.match_length?(n=DC(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=DC(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(oR(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===jC?(oR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(oR(e,!1),0===e.strm.avail_out)?1:2}(n,t):hR[n.level].func(n,t);if(3!==r&&4!==r||(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),zC;if(2===r&&(t===FC?LC(n):t!==BC&&(AC(n,0,0,!1),t===UC)&&(eR(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),iR(e),0===e.avail_out))return n.last_flush=-1,zC}return t!==jC||!(n.wrap<=0)&&(2===n.wrap?(aR(n,255&e.adler),aR(n,e.adler>>8&255),aR(n,e.adler>>16&255),aR(n,e.adler>>24&255),aR(n,255&e.total_in),aR(n,e.total_in>>8&255),aR(n,e.total_in>>16&255),aR(n,e.total_in>>24&255)):(sR(n,e.adler>>>16),sR(n,65535&e.adler)),iR(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?zC:WC},kR=function(e){var t;return mR(e)?HC:(t=e.state.status,e.state=null,113===t?De(e,qC):zC)},_R=function(e,t){var n=t.length;if(mR(e))return HC;var r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return HC;1===i&&(e.adler=OC(e.adler,t,n,0)),r.wrap=0,r.w_size<=n&&(0===i&&(eR(r.head),r.strstart=0,r.block_start=0,r.insert=0),(o=new Uint8Array(r.w_size)).set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size);var o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,cR(r);3<=r.lookahead;){for(var u=r.strstart,l=r.lookahead-2;rR(r,u),u++,--l;);r.strstart=u,r.lookahead=2,cR(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,zC},SR=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},ER=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==T(n))throw new TypeError(n+"must be non-object");for(var r in n)SR(n,r)&&(e[r]=n[r])}}return e},CR=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),o=0,a=0,s=e.length;o<s;o++){var u=e[o];i.set(u,a),a+=u.length}return i},RR=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Rx){RR=!1}for(var OR=new Uint8Array(256),xR=0;xR<256;xR++)OR[xR]=252<=xR?6:248<=xR?5:240<=xR?4:224<=xR?3:192<=xR?2:1;OR[254]=OR[255]=1;var TR=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);for(var t,n,r,i,o=e.length,a=0,s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=i=0;i<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},IR=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},MR=Object.prototype.toString,AR=e.Z_NO_FLUSH,PR=e.Z_SYNC_FLUSH,DR=e.Z_FULL_FLUSH,LR=e.Z_FINISH,NR=e.Z_OK,FR=e.Z_STREAM_END,UR={level:e.Z_DEFAULT_COMPRESSION,method:e.Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:e.Z_DEFAULT_STRATEGY,legacyHash:!0};function jR(e){this.options=ER({},UR,e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new IR,this.strm.avail_out=0,yR(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy,e.legacyHash));if(t!==NR)throw new Error(IC[t]);if(e.header&&wR(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?TR(e.dictionary):"[object ArrayBuffer]"===MR.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if((t=_R(this.strm,e))!==NR)throw new Error(IC[t]);this._dict_set=!0}}function BR(e,t){t=new jR(t);if(t.push(e,!0),t.err)throw t.msg||IC[t.err];return t.result}jR.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?LR:AR,"string"==typeof e?i.input=TR(e):"[object ArrayBuffer]"===MR.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===PR||r===DR)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(bR(i,r)===FR)return 0<i.next_out&&this.onData(i.output.subarray(0,i.next_out)),n=kR(this.strm),this.onEnd(n),this.ended=!0,n===NR;if(0!==i.avail_out){if(0<r&&0<i.next_out)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},jR.prototype.onData=function(e){this.chunks.push(e)},jR.prototype.onEnd=function(e){e===NR&&(this.result=CR(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var zR={Deflate:jR,deflate:BR,deflateRaw:function(e,t){return(t=t||{}).raw=!0,BR(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,BR(e,t)},constants:e},WR=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),HR=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),qR=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),VR=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),GR=function(e,t,n,r,i,o,a,s){for(var u,l,c,d,f,h,p,m,g,v=s.bits,y=0,w=0,b=0,k=0,_=0,S=0,E=0,C=0,R=0,O=0,x=null,T=new Uint16Array(16),I=new Uint16Array(16),M=null,y=0;y<=15;y++)T[y]=0;for(w=0;w<r;w++)T[t[n+w]]++;for(_=v,k=15;1<=k&&0===T[k];k--);if(k<_&&(_=k),0===k)i[o++]=20971520,i[o++]=20971520,s.bits=1;else{for(b=1;b<k&&0===T[b];b++);for(_<b&&(_=b),y=C=1;y<=15;y++)if((C=(C<<1)-T[y])<0)return-1;if(0<C&&(0===e||1!==k))return-1;for(I[1]=0,y=1;y<15;y++)I[y+1]=I[y]+T[y];for(w=0;w<r;w++)0!==t[n+w]&&(a[I[t[n+w]]++]=w);if(h=0===e?(x=M=a,20):1===e?(x=WR,M=HR,257):(x=qR,M=VR,0),y=b,f=o,E=w=O=0,c=-1,d=(R=1<<(S=_))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(g=a[w]+1<h?(m=0,a[w]):a[w]>=h?(m=M[a[w]-h],x[a[w]-h]):(m=96,0),u=1<<(p=y-E),b=l=1<<S;i[f+(O>>E)+(l-=u)]=p<<24|m<<16|g|0,0!==l;);for(u=1<<y-1;O&u;)u>>=1;if(0!==u?O=(O&u-1)+u:O=0,w++,0==--T[y]){if(y===k)break;y=t[n+a[w]]}if(_<y&&(O&d)!==c){for(f+=b,C=1<<(S=y-(E=0===E?_:E));S+E<k&&!((C-=T[S+E])<=0);)S++,C<<=1;if(R+=1<<S,1===e&&852<R||2===e&&592<R)return 1;i[c=O&d]=_<<24|S<<16|f-o|0}}0!==O&&(i[f+O]=y-E<<24|64<<16|0),s.bits=_}return 0},JR=e.Z_FINISH,KR=e.Z_BLOCK,$R=e.Z_TREES,ZR=e.Z_OK,YR=e.Z_STREAM_END,XR=e.Z_NEED_DICT,QR=e.Z_STREAM_ERROR,eO=e.Z_DATA_ERROR,tO=e.Z_MEM_ERROR,nO=e.Z_BUF_ERROR,rO=e.Z_DEFLATED,iO=16209,oO=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function aO(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var sO,uO,lO=function(e){var t;return!e||!(t=e.state)||t.strm!==e||t.mode<16180||16211<t.mode?1:0},cO=function(e){var t;return lO(e)?QR:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,ZR)},dO=function(e){var t;return lO(e)?QR:((t=e.state).wsize=0,t.whave=0,t.wnext=0,cO(e))},fO=function(e,t){var n,r;return lO(e)||(r=e.state,t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?QR:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,dO(e))},hO=function(e,t){var n;return e?(n=new aO,(e.state=n).strm=e,n.window=null,n.mode=16180,(n=fO(e,t))!==ZR&&(e.state=null),n):QR},pO=!0,mO=function(e,t,n,r){var i,e=e.state;return null===e.window&&(e.window=new Uint8Array(1<<e.wbits)),0===e.wsize&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0),e.wsize<=r?(e.window.set(t.subarray(n-e.wsize,n),0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>r&&(i=r),e.window.set(t.subarray(n-r,n-r+i),e.wnext),(r-=i)?(e.window.set(t.subarray(n-r,n),0),e.wnext=r,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0},gO=dO,vO=hO,yO=function(e,t){var n,r,i,o,a,s,u,l,c,d,f,h,p,m,g,v,y,w,b,k,_,S,E,C,R=0,O=new Uint8Array(4),x=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(lO(e)||!e.output||!e.input&&0!==e.avail_in)return QR;16191===(n=e.state).mode&&(n.mode=16192),a=e.next_out,i=e.output,o=e.next_in,r=e.input,l=n.hold,c=n.bits,d=s=e.avail_in,f=u=e.avail_out,S=ZR;e:for(;;)switch(n.mode){case 16180:if(0===n.wrap)n.mode=16192;else{for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}2&n.wrap&&35615===l?(0===n.wbits&&(n.wbits=15),O[n.check=0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0),c=l=0,n.mode=16181):(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31?(e.msg="incorrect header check",n.mode=iO):(15&l)!==rO?(e.msg="unknown compression method",n.mode=iO):(c-=4,_=8+(15&(l>>>=4)),0===n.wbits&&(n.wbits=_),15<_||_>n.wbits?(e.msg="invalid window size",n.mode=iO):(n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&l?16189:16191,c=l=0)))}break;case 16181:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.flags=l,(255&n.flags)!==rO){e.msg="unknown compression method",n.mode=iO;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=iO;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0)),c=l=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,n.check=TC(n.check,O,4,0)),c=l=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0)),c=l=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0)),c=l=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((h=(h=n.length)>s?s:h)&&(n.head&&(_=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+h),_)),512&n.flags&&4&n.wrap&&(n.check=TC(n.check,r,h,o)),s-=h,o+=h,n.length-=h),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;for(h=0;_=r[o+h++],n.head&&_&&n.length<65536&&(n.head.name+=String.fromCharCode(_)),_&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=TC(n.check,r,h,o)),s-=h,o+=h,_)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;for(h=0;_=r[o+h++],n.head&&_&&n.length<65536&&(n.head.comment+=String.fromCharCode(_)),_&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=TC(n.check,r,h,o)),s-=h,o+=h,_)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=iO;break}c=l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}e.adler=n.check=oO(l),c=l=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,XR;e.adler=n.check=1,n.mode=16191;case 16191:if(t===KR||t===$R)break e;case 16192:if(n.last)l>>>=7&c,c-=7&c,n.mode=16206;else{for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}switch(n.last=1&l,--c,3&(l>>>=1)){case 0:n.mode=16193;break;case 1:if(function(e){if(pO){sO=new Int32Array(512),uO=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(GR(1,e.lens,0,288,sO,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;GR(2,e.lens,0,32,uO,0,e.work,{bits:5}),pO=!1}e.lencode=sO,e.lenbits=9,e.distcode=uO,e.distbits=5}(n),n.mode=16199,t!==$R)break;l>>>=2,c-=2;break e;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=iO}l>>>=2,c-=2}break;case 16193:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=iO;break}if(n.length=65535&l,c=l=0,n.mode=16194,t===$R)break e;case 16194:n.mode=16195;case 16195:if(h=n.length){if(0===(h=u<(h=s<h?s:h)?u:h))break e;i.set(r.subarray(o,o+h),a),s-=h,o+=h,u-=h,a+=h,n.length-=h}else n.mode=16191;break;case 16196:for(;c<14;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.nlen=257+(31&l),l>>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=iO;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.lens[x[n.have++]]=7&l,l>>>=3,c-=3}for(;n.have<19;)n.lens[x[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=GR(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){e.msg="invalid code lengths set",n.mode=iO;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;v=(R=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(y<16)l>>>=g,c-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(l>>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=iO;break}_=n.lens[n.have-1],h=3+(3&l),l>>>=2,c-=2}else if(17===y){for(C=g+3;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}_=0,h=3+(7&(l>>>=g)),l>>>=3,c=c-g-3}else{for(C=g+7;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}_=0,h=11+(127&(l>>>=g)),l>>>=7,c=c-g-7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=iO;break}for(;h--;)n.lens[n.have++]=_}}if(n.mode===iO)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=iO;break}if(n.lenbits=9,E={bits:n.lenbits},S=GR(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){e.msg="invalid literal/lengths set",n.mode=iO;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=GR(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){e.msg="invalid distances set",n.mode=iO;break}if(n.mode=16199,t===$R)break e;case 16199:n.mode=16200;case 16200:if(6<=s&&258<=u){e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,function(e,t){var n,r,i,o,a,s,u=e.state,l=e.next_in,c=e.input,d=l+(e.avail_in-5),f=e.next_out,h=e.output,p=f-(t-e.avail_out),m=f+(e.avail_out-257),g=u.dmax,v=u.wsize,y=u.whave,w=u.wnext,b=u.window,k=u.hold,_=u.bits,S=u.lencode,E=u.distcode,C=(1<<u.lenbits)-1,R=(1<<u.distbits)-1;t:do{for(_<15&&(k+=c[l++]<<_,_+=8,k+=c[l++]<<_,_+=8),n=S[k&C];;){if(k>>>=r=n>>>24,_-=r,0==(r=n>>>16&255))h[f++]=65535&n;else{if(!(16&r)){if(0==(64&r)){n=S[(65535&n)+(k&(1<<r)-1)];continue}if(32&r){u.mode=16191;break t}e.msg="invalid literal/length code",u.mode=16209;break t}for(i=65535&n,(r&=15)&&(_<r&&(k+=c[l++]<<_,_+=8),i+=k&(1<<r)-1,k>>>=r,_-=r),_<15&&(k+=c[l++]<<_,_+=8,k+=c[l++]<<_,_+=8),n=E[k&R];;){if(k>>>=r=n>>>24,_-=r,!(16&(r=n>>>16&255))){if(0==(64&r)){n=E[(65535&n)+(k&(1<<r)-1)];continue}e.msg="invalid distance code",u.mode=16209;break t}if(o=65535&n,_<(r&=15)&&(k+=c[l++]<<_,(_+=8)<r)&&(k+=c[l++]<<_,_+=8),(o+=k&(1<<r)-1)>g){e.msg="invalid distance too far back",u.mode=16209;break t}if(k>>>=r,_-=r,o>(r=f-p)){if((r=o-r)>y&&u.sane){e.msg="invalid distance too far back",u.mode=16209;break t}if(s=b,(a=0)===w){if(a+=v-r,r<i){for(i-=r;h[f++]=b[a++],--r;);a=f-o,s=h}}else if(w<r){if(a+=v+w-r,(r-=w)<i){for(i-=r;h[f++]=b[a++],--r;);if(a=0,w<i){for(i-=r=w;h[f++]=b[a++],--r;);a=f-o,s=h}}}else if(a+=w-r,r<i){for(i-=r;h[f++]=b[a++],--r;);a=f-o,s=h}for(;2<i;)h[f++]=s[a++],h[f++]=s[a++],h[f++]=s[a++],i-=3;i&&(h[f++]=s[a++],1<i)&&(h[f++]=s[a++])}else{for(a=f-o;h[f++]=h[a++],h[f++]=h[a++],h[f++]=h[a++],2<(i-=3););i&&(h[f++]=h[a++],1<i)&&(h[f++]=h[a++])}break}}break}}while(l<d&&f<m);l-=i=_>>3,k&=(1<<(_-=i<<3))-1,e.next_in=l,e.next_out=f,e.avail_in=l<d?d-l+5:5-(l-d),e.avail_out=f<m?m-f+257:257-(f-m),u.hold=k,u.bits=_}(e,f),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;v=(R=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(v&&0==(240&v)){for(w=g,b=v,k=y;v=(R=n.lencode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&R,!(w+(g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,n.length=y,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=16191;break}if(64&v){e.msg="invalid literal/length code",n.mode=iO;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(C=n.extra;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;v=(R=n.distcode[l&(1<<n.distbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(0==(240&v)){for(w=g,b=v,k=y;v=(R=n.distcode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&R,!(w+(g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=iO;break}n.offset=y,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(C=n.extra;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=iO;break}n.mode=16204;case 16204:if(0===u)break e;if(n.offset>(h=f-u)){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=iO;break}p=h>n.wnext?(h-=n.wnext,n.wsize-h):n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=i,p=a-n.offset,h=n.length;for(u-=h=u<h?u:h,n.length-=h;i[a++]=m[p++],--h;);0===n.length&&(n.mode=16200);break;case 16205:if(0===u)break e;i[a++]=n.length,u--,n.mode=16200;break;case 16206:if(n.wrap){for(;c<32;){if(0===s)break e;s--,l|=r[o++]<<c,c+=8}if(f-=u,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=(n.flags?TC:OC)(n.check,i,f,a-f)),f=u,4&n.wrap&&(n.flags?l:oO(l))!==n.check){e.msg="incorrect data check",n.mode=iO;break}c=l=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=iO;break}c=l=0}n.mode=16208;case 16208:S=YR;break e;case iO:S=eO;break e;case 16210:return tO;default:return QR}return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,(n.wsize||f!==e.avail_out&&n.mode<iO&&(n.mode<16206||t!==JR))&&mO(e,e.output,e.next_out,f-e.avail_out),f-=e.avail_out,e.total_in+=d-=e.avail_in,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=(n.flags?TC:OC)(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(16191===n.mode?128:0)+(16199===n.mode||16194===n.mode?256:0),S=(0==d&&0===f||t===JR)&&S===ZR?nO:S},wO=function(e){var t;return lO(e)?QR:((t=e.state).window&&(t.window=null),e.state=null,ZR)},bO=function(e,t){return lO(e)||0==(2&(e=e.state).wrap)?QR:((e.head=t).done=!1,ZR)},kO=function(e,t){var n,r=t.length;return lO(e)||0!==(n=e.state).wrap&&16190!==n.mode?QR:16190===n.mode&&OC(1,t,r,0)!==n.check?eO:mO(e,t,r,r)?(n.mode=16210,tO):(n.havedict=1,ZR)},_O=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},SO=Object.prototype.toString,EO=e.Z_NO_FLUSH,CO=e.Z_FINISH,RO=e.Z_OK,OO=e.Z_STREAM_END,xO=e.Z_NEED_DICT,TO=e.Z_STREAM_ERROR,IO=e.Z_DATA_ERROR,MO=e.Z_MEM_ERROR,AO=e.Z_BUF_ERROR,PO={chunkSize:65536,windowBits:15,to:""};function DO(e){this.options=ER({},PO,e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new IR,this.strm.avail_out=0,vO(this.strm,t.windowBits));if(e!==RO)throw new Error(IC[e]);if(this.header=new _O,bO(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=TR(t.dictionary):"[object ArrayBuffer]"===SO.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=kO(this.strm,t.dictionary))!==RO)throw new Error(IC[e])}function LO(e,t){t=new DO(t);if(t.push(e,!0),t.err)throw t.msg||IC[t.err];return t.result}DO.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize,a=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?CO:EO,"[object ArrayBuffer]"===SO.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=yO(i,r))===xO&&a&&((n=kO(i,a))===RO?n=yO(i,r):n===IO&&(n=xO));0<i.avail_in&&n===OO&&2&i.state.wrap&&0!==i.state.flags&&0!==i.input[i.next_in];)gO(i),n=yO(i,r);switch(n){case TO:case IO:case xO:case MO:return this.onEnd(n),!(this.ended=!0)}var s,u,l,c=i.avail_out;if(i.next_out&&(0===i.avail_out||n===OO||0<r)&&("string"===this.options.to?(s=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+OR[e[n]]>t?n:t}(i.output,i.next_out),u=i.next_out-s,l=function(e,t){var n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));for(var r=new Array(2*n),i=0,o=0;o<n;){var a=e[o++];if(a<128)r[i++]=a;else{var s=OR[a];if(4<s)r[i++]=65533,o+=s-1;else{for(a&=2===s?31:3===s?15:7;1<s&&o<n;)a=a<<6|63&e[o++],s--;1<s?r[i++]=65533:a<65536?r[i++]=a:(a-=65536,r[i++]=55296|a>>10&1023,r[i++]=56320|1023&a)}}}var u=r,l=i;if(l<65534&&u.subarray&&RR)return String.fromCharCode.apply(null,u.length===l?u:u.subarray(0,l));for(var c="",d=0;d<l;d++)c+=String.fromCharCode(u[d]);return c}(i.output,s),i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(s,s+u),0),this.onData(l)):(this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out)),i.avail_out=0,i.next_out=0)),n!==RO&&n!==AO||0!==c){if(n===OO)return n=wO(this.strm),this.onEnd(n),this.ended=!0;if(0===i.avail_in){if(r===CO)return n=wO(this.strm),this.onEnd(n===RO?AO:n),!(this.ended=!0);break}}}return!0},DO.prototype.onData=function(e){this.chunks.push(e)},DO.prototype.onEnd=function(e){e===RO&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=CR(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var NO,t={Inflate:DO,inflate:LO,inflateRaw:function(e,t){return(t=t||{}).raw=!0,LO(e,t)},ungzip:LO,constants:e},FO={Deflate:zR.Deflate,deflate:zR.deflate,deflateRaw:zR.deflateRaw,gzip:zR.gzip,Inflate:t.Inflate,inflate:t.inflate,inflateRaw:t.inflateRaw,ungzip:t.ungzip,constants:e},UO=(kl(zO,NO=Error),zO),jO=(BO.prototype.uploadReplay=function(t){return _l(this,void 0,void 0,function(){return Sl(this,function(e){switch(e.label){case 0:return[4,this.uploadReplayResult(t)];case 1:return[2,"success"===e.sent().status]}})})},BO.prototype.uploadReplayResult=function(i){return _l(this,void 0,void 0,function(){var t,n,r;return Sl(this,function(e){switch(e.label){case 0:if(this.isUploading)return[2,{status:"busy",attempts:0}];this.isUploading=!0,t=0,e.label=1;case 1:if(e.trys.push([1,9,10,11]),!(n=this.config.beforeSend(i)))return[2,{status:"cancelled",attempts:t}];if((!n.replay_format||"rrweb"===n.replay_format)&&"gzip_base64"!==n.events_encoding&&5242880<rw(n.events))throw new UO("Segment exceeds decoded events limit");e.label=2;case 2:e.label=3;case 3:return e.trys.push([3,5,,7]),t++,[4,this.doUpload(n)];case 4:return e.sent(),[2,{status:"success",attempts:t}];case 5:if((r=e.sent()).permanent||t>this.config.maxRetries)throw r;return r=1e3*Math.pow(2,t-1),h("Uploader","Retrying segment "+i.segment_id+" in "+r+"ms"),[4,this.sleep(r)];case 6:return e.sent(),[3,7];case 7:return[3,2];case 8:return[3,11];case 9:Y0("Uploader","Upload failed:",r=e.sent());try{this.config.onError(r)}catch(F){Z0("Uploader","onError callback failed:",F)}return[2,{status:r.permanent?"rejected":"exhausted",attempts:t}];case 10:return this.isUploading=!1,[7];case 11:return[2]}})})},BO.prototype.prepareUploadPayload=function(e){var t=e.replay_format||"rrweb",n=e.events_encoding||"plain_json";if("rrweb"!==t)return e;if(!this.config.eventsCompression||"gzip_base64"===n)return A(A({},e),{replay_format:t,platform:e.platform||"web",events_encoding:n});try{var r=FO.gzip(e.events),i=this.uint8ArrayToBase64(r),o=e.events.length,a=r.length,s=i.length;return h("Uploader","Events compressed: "+Math.round(o/1024)+"KB -> gzip "+Math.round(a/1024)+"KB -> base64 "+Math.round(s/1024)+"KB"),A(A({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"gzip_base64",events:i})}catch(X){return Z0("Uploader","Events compression failed, fallback to plain_json:",X),A(A({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"plain_json"})}},BO.prototype.uint8ArrayToBase64=function(e){for(var t="",n=0;n<e.length;n+=32768){for(var r=e.subarray(n,n+32768),i="",o=0;o<r.length;o++)i+=String.fromCharCode(r[o]);t+=i}if("function"==typeof btoa)return btoa(t);if("undefined"!=typeof Buffer)return Buffer.from(e).toString("base64");throw new Error("base64 encode is not supported")},BO.prototype.doUpload=function(a){return _l(this,void 0,void 0,function(){var t,n,r,i,o;return Sl(this,function(e){switch(e.label){case 0:if(t=this.prepareUploadPayload(a),o=JSON.stringify(t),n={"Content-Type":"application/json","X-App-ID":this.config.appId},h("Uploader","Sending replay payload: "+Math.round(o.length/1024)+"KB, events_encoding="+(t.events_encoding||"plain_json")),o.length<65536||h("Uploader","Data size "+Math.round(o.length/1024)+"KB exceeds keepalive limit, using normal fetch"),this.config.transport)return[4,this.config.transport.request({kind:"replay",url:this.config.uploadUrl,method:"POST",headers:n,body:o,retry:!1})];throw new Error("Replay Transport is not configured");case 1:t=e.sent(),n=t||{ok:!1,status:0,statusText:"Transport failed"};try{i="string"==typeof n.body?JSON.parse(n.body):n.body,r=null==i?void 0:i.code}catch(U){}if(413===n.status||1007===r||1001===r||1006===r)throw new UO("Replay rejected: HTTP "+(n.status||0)+", code "+(r||0));if(!n.ok)throw new Error("HTTP "+(n.status||0)+": "+(n.statusText||"Transport failed"));if(0!==(o="string"==typeof n.body?JSON.parse(n.body):n.body).code)throw new Error("Server error (code "+o.code+"): "+o.message);return[2]}})})},BO.prototype.measurePayload=function(e){return rw(this.serializePayload(e))},BO.prototype.sendBeacon=function(e){var t,n;try{var r,i=this.serializePayload(e);return null!=(t=this.config.transport)&&t.handoff?(r=this.config.transport.handoff({kind:"replay",url:this.config.uploadUrl,method:"POST",contentType:"application/json",body:i,sendBeacon:!0}))&&"function"==typeof r.then?(Z0("Uploader","sendBeacon handoff is async, acceptance is unknown"),!1):!0===(null==(n=r)?void 0:n.handoffAccepted):!1}catch(X){return Y0("Uploader","sendBeacon failed:",X),!1}},BO.prototype.serializePayload=function(e){return JSON.stringify(this.prepareUploadPayload(e))},BO.prototype.isUploadInProgress=function(){return this.isUploading},BO.prototype.sleep=function(t){return new Promise(function(e){return setTimeout(e,t)})},BO);function BO(e){var t;this.isUploading=!1,this.useCompression=!1,this.config={uploadUrl:e.uploadUrl||"/api/v1/collect/replay",appId:e.appId,maxRetries:null!=(t=e.maxRetries)?t:3,beforeSend:e.beforeSend||function(e){return e},onError:e.onError||function(){},eventsCompression:null==(t=e.eventsCompression)||t,transport:e.transport}}function zO(){var e=null!==NO&&NO.apply(this,arguments)||this;return e.permanent=!0,e}R({target:"String",proto:!0,forced:ky("anchor")},{anchor:function(e){return yw(this,"a","name",e)}});HO.prototype.start=function(){this.isRunning||(document.addEventListener("pointerdown",this.handlePointerDown,!0),document.addEventListener("click",this.handleClick,!0),document.addEventListener("visibilitychange",this.onVisibility),window.addEventListener("pagehide",this.closeRage),window.addEventListener("beforeunload",this.closeRage),this.isRunning=!0,h("ClickDetector","Started"))},HO.prototype.stop=function(){this.isRunning&&(document.removeEventListener("pointerdown",this.handlePointerDown,!0),document.removeEventListener("click",this.handleClick,!0),document.removeEventListener("visibilitychange",this.onVisibility),window.removeEventListener("pagehide",this.closeRage),window.removeEventListener("beforeunload",this.closeRage),this.cleanupSlowClick(),this.finishRage(),this.isRunning=!1,h("ClickDetector","Stopped"))},HO.prototype.handlePointerDown=function(e){var t=this,n=e.target;n&&n instanceof Element&&(n=lv(n),this.cleanupSlowClick(),this.clickStartTime=Date.now(),this.clickNode=n,(e=this.getExternalNavigationReason(e,n))?"custom"!==e?this.markEffectiveAction(e):this.cleanupSlowClick():(this.slowClickTimeoutId=setTimeout(function(){t.handleSlowClick("timeout")},this.options.slowClickTimeout),this.startMutationObserver()))},HO.prototype.handleClick=function(e){var t,n,r,i=this;e.target instanceof Element&&(r=lv(e.target),t=Date.now(),e={node:this.getNodeInfo(r),target:r,event:e,timestamp:t,effectiveActionReason:this.getExternalNavigationReason(e,r)||undefined},this.cleanupSlowClick(),this.clickNode=r,this.clickStartTime=t,this.slowClickTimeoutId=setTimeout(function(){return i.handleSlowClick("timeout")},this.options.slowClickTimeout),this.startMutationObserver(),this.options.onClickStart(e),e.effectiveActionReason&&"custom"!==e.effectiveActionReason&&this.markEffectiveAction(e.effectiveActionReason),n=this.options.getClickContext(),this.rage&&(this.rage.target!==r||this.rage.context!==n||t-this.rage.lastAt>=this.options.rageClickWindow)&&this.finishRage(),r=this.rage||{target:r,context:n,candidates:[],related:[],count:0,lastAt:t},(this.rage=r).lastAt=t,r.anchor?(r.count++,r.related=El(r.related,[e]).slice(-10)):(r.candidates=El(r.candidates,[e]).filter(function(e){return t-e.timestamp<=i.options.rageClickWindow}).slice(-this.options.rageClickCount),r.candidates.length>=this.options.rageClickCount&&(r.anchor=r.candidates[0],r.count=r.candidates.length,r.related=r.candidates,r.candidates=[])),null!==this.rageTimer&&clearTimeout(this.rageTimer),this.rageTimer=setTimeout(function(){return i.finishRage()},this.options.rageClickWindow))},HO.prototype.finishRage=function(){null!==this.rageTimer&&clearTimeout(this.rageTimer),this.rageTimer=null;var e,t=this.rage;(this.rage=null)!=t&&t.anchor&&(e=t.related.includes(t.anchor)?t.related:El([t.anchor],t.related.slice(-9)),this.options.onRageClick({node:t.anchor.node,clickCount:t.count,timeWindowMs:this.options.rageClickWindow,timestamp:t.anchor.timestamp,lastTimestamp:t.lastAt,clicks:e}))},HO.prototype.startMutationObserver=function(){var t=this;this.clickNode&&document.body&&"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){t.hasSignificantMutation(e)&&(t.emitEffectiveAction("dom_mutation"),t.handleSlowClick("mutation"))}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"],characterData:!0}))},HO.prototype.hasSignificantMutation=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("characterData"===r.type)return!0;if("childList"===r.type&&(0<r.addedNodes.length||0<r.removedNodes.length)&&Array.from(r.addedNodes).concat(Array.from(r.removedNodes)).some(function(e){var t;return e.nodeType===Node.TEXT_NODE&&!(null==(t=e.textContent)||!t.trim())||e.nodeType===Node.ELEMENT_NODE&&!["SCRIPT","STYLE","LINK"].includes(e.tagName)}))return!0;if("attributes"===r.type){r=r.attributeName;if(["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"].includes(r||""))return!0}}return!1},HO.prototype.handleSlowClick=function(e){var t;this.clickNode&&this.clickStartTime&&((t=Date.now()-this.clickStartTime)>=this.options.slowClickThreshold&&this.options.onSlowClick({node:this.getNodeInfo(this.clickNode),timeAfterClickMs:t,endReason:e,timestamp:this.clickStartTime}),this.cleanupSlowClick())},HO.prototype.cleanupSlowClick=function(){this.slowClickTimeoutId&&(clearTimeout(this.slowClickTimeoutId),this.slowClickTimeoutId=null),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.clickStartTime=0,this.clickNode=null},HO.prototype.markEffectiveAction=function(e){this.clickNode&&this.clickStartTime&&(this.emitEffectiveAction(e),this.cleanupSlowClick())},HO.prototype.emitEffectiveAction=function(e){this.clickNode&&this.options.onEffectiveAction({reason:e,timestamp:Date.now(),node:this.getNodeInfo(this.clickNode)})},HO.prototype.getExternalNavigationReason=function(e,t){var n=t.closest("a");if(n){if(n.download)return"download";var r=(n.getAttribute("target")||"").toLowerCase();if(r&&"_self"!==r)return"external_navigation";if(n.href&&(1===e.button||e.metaKey||e.ctrlKey||e.shiftKey))return"external_navigation"}r=t.closest("form"),n=((null==r?void 0:r.getAttribute("target"))||"").toLowerCase();return n&&"_self"!==n?"external_navigation":t.hasAttribute("data-tdem-ignore-dead-click")||t.closest("[data-tdem-ignore-dead-click]")||t.hasAttribute("data-tdem-effective-action")||t.closest("[data-tdem-effective-action]")?"custom":null},HO.prototype.getNodeInfo=function(e){var t;return{id:(null==(t=e.__sn)?void 0:t.id)||0,tagName:e.tagName.toLowerCase(),textContent:(e.textContent||"").trim().substring(0,100),selector:this.getSelector(e)}},HO.prototype.getSelector=function(e){for(var t=[],n=e;n&&n!==document.body&&t.length<5;){var r,i=n.tagName.toLowerCase();if(n.id){i+="#"+n.id,t.unshift(i);break}n.className&&"string"==typeof n.className&&0<(r=n.className.trim().split(/\s+/).slice(0,2)).length&&(i+="."+r.join(".")),t.unshift(i),n=n.parentElement}return t.join(" > ")},HO.prototype.isActive=function(){return this.isRunning};var WO=HO;function HO(e){var t,n=this;void 0===e&&(e={}),this.isRunning=!1,this.clickStartTime=0,this.clickNode=null,this.slowClickTimeoutId=null,this.mutationObserver=null,this.rage=null,this.rageTimer=null,this.closeRage=function(){return n.finishRage()},this.onVisibility=function(){"hidden"===document.visibilityState&&n.finishRage()},this.options={slowClickTimeout:null!=(t=e.slowClickTimeout)?t:7e3,slowClickThreshold:null!=(t=e.slowClickThreshold)?t:3e3,rageClickCount:null!=(t=e.rageClickCount)?t:5,rageClickWindow:null!=(t=e.rageClickWindow)?t:3e3,onSlowClick:e.onSlowClick||function(){},onRageClick:e.onRageClick||function(){},onClickStart:e.onClickStart||function(){},onEffectiveAction:e.onEffectiveAction||function(){},onDeadClick:e.onDeadClick||function(){},getClickContext:e.getClickContext||function(){return window.location.href}},this.handleClick=this.handleClick.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this)}function qO(e){return Number.isNaN(e)?0:Math.max(0,Math.min(1,e))}function VO(e){return qO((e=e,(Number.isNaN(e)?0:Math.max(0,Math.min(100,e)))/100))}function GO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function JO(e,t){var e=!1===(e=e)||e===undefined?{enabled:!1,sessionSampleRate:.1,errorSampleRate:1,errorTraceback:!0}:!0===e?{enabled:!0,sessionSampleRate:.1,errorSampleRate:1,errorTraceback:!0}:{enabled:!1!==e.enabled,sessionSampleRate:"number"==typeof e.sessionSampleRate?qO(e.sessionSampleRate):.1,errorSampleRate:"number"==typeof e.errorSampleRate?qO(e.errorSampleRate):1,errorTraceback:e.errorTraceback===undefined||!!e.errorTraceback},t=t&&"object"===T(t)?t:null,n=e.enabled,r=(t&&GO(t,"enabled")&&(n=e.enabled&&!!t.enabled),e.sessionSampleRate),i=e.errorSampleRate,e=e.errorTraceback;return n&&t&&(GO(t,"experience_sample_rate")&&t.experience_sample_rate!==undefined&&null!==t.experience_sample_rate?r=VO(Number(t.experience_sample_rate)):GO(t,"replay_sample_rate")&&t.replay_sample_rate!==undefined&&null!==t.replay_sample_rate&&(r=VO(Number(t.replay_sample_rate))),GO(t,"error_traceback")&&t.error_traceback!==undefined&&null!==t.error_traceback&&(e=!!t.error_traceback),GO(t,"error_sample_rate"))&&t.error_sample_rate!==undefined&&null!==t.error_sample_rate&&(i=VO(Number(t.error_sample_rate))),{enabled:n,sessionSampleRate:r,errorSampleRate:e?i:0,errorTraceback:e}}function KO(e,t){return A(A({},e),{enabled:t.enabled,sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,errorTraceback:t.errorTraceback})}function $O(e){if(!1!==(null==(t=e.config)?void 0:t.sessionReplay)){var t=e._effectiveReplayPolicy;if(!t||t.enabled)if(!1!==e._replaySampled)return!(e=null==(t=e)?void 0:t._tdemSampleGate)||e.isDecided}}new u({name:"sessionReplay"});var ty=new u({name:"sessionReplay",sessionManager:null,eventBuffer:null,recorderManager:null,samplerManager:null,uploader:null,clickDetector:null,removeClickVisitListener:null,flushTimer:null,replayConfig:null,isInitialized:!1,errorTraceback:!0,_tdemRef:null,_isCheckoutFlushing:!1,_lastLifecycleSnapshotAt:0,_pendingSegments:[],_baselineDelivered:!1,_baselineFlushScheduled:!1,_flushTail:Promise.resolve(),_drainPromise:null,_drainRequested:!1,_awaitingBaseline:!1,_recoveryMeta:null,init:function(e){},applyEffectivePolicy:function(e){var t,n;if(this.errorTraceback=e.errorTraceback,this.replayConfig&&(this.replayConfig=KO(this.replayConfig,e)),this.samplerManager&&this.samplerManager.updateRates(e.sessionSampleRate,e.errorSampleRate),this.isInitialized){if(e.enabled)return(n=this.samplerManager)?0<e.sessionSampleRate||e.errorTraceback&&0<e.errorSampleRate?!e.errorTraceback&&n.isBufferMode()?(h("Plugin","Error traceback off while in buffer, stopping replay"),this.stopReplay(),null!=(t=this.eventBuffer)&&t.clear(),this._pendingSegments=[],this._recoveryMeta=null,this._awaitingBaseline=!1,void n.forceMode(!1)):void(e.errorTraceback&&e.sessionSampleRate<=0&&0<e.errorSampleRate&&n.isSessionMode()&&(h("Plugin","Remote SSR=0 with traceback on: demote session→buffer"),n.forceMode("buffer"),this.flushTimer)&&(clearInterval(this.flushTimer),this.flushTimer=null)):(h("Plugin","Effective policy no longer allows recording, stopping"),this.stopReplay(),null!=(t=this.eventBuffer)&&t.clear(),this._pendingSegments=[],this._recoveryMeta=null,this._awaitingBaseline=!1,void n.forceMode(!1)):void 0;h("Plugin","Effective policy disabled, stopping replay"),this.stopReplay(),null!=(e=this.eventBuffer)&&e.clear(),this._pendingSegments=[],this._recoveryMeta=null,this._awaitingBaseline=!1}},shouldSkipBufferFlush:function(){var e;return!0===(null==(e=this.samplerManager)?void 0:e.isBufferMode())},onNewTdem:function(e,t){var n,r,t=this.parseConfig(t),i=null!=(i=t.debug)&&i,i=(J0=i,e._effectiveReplayPolicy);i||(i=JO(t,(n=e._prefetchedConfigData)&&"object"===T(n)&&("replay_sample_rate"in n||"error_traceback"in n||"error_sample_rate"in n||"tdem_sample_rate"in n||"enabled"in n)?(r={},Object.prototype.hasOwnProperty.call(n,"enabled")&&(r.enabled=!!n.enabled),Object.prototype.hasOwnProperty.call(n,"replay_sample_rate")&&(r.replay_sample_rate=Number(n.replay_sample_rate)),Object.prototype.hasOwnProperty.call(n,"error_traceback")&&(r.error_traceback=!!n.error_traceback),Object.prototype.hasOwnProperty.call(n,"error_sample_rate")&&(r.error_sample_rate=Number(n.error_sample_rate)),r):null),e._effectiveReplayPolicy=i,e._replaySampled=i.enabled),i.enabled?(n=KO(A(A({},t),{enabled:!0}),i),this.replayConfig=n,this.errorTraceback=i.errorTraceback,this._tdemRef=e,this.initializeModules(e,n),(r=this.samplerManager.initializeSampling()).shouldRecord?(this.startReplay(e,n,r.mode),this.registerReplaySamplingCheck(e,n),this.listenForErrors(e,n),this.listenForPerformance(e),this.listenForLifecycle(e,n),this.listenForUnload(e),this.isInitialized=!0):h("Plugin","Not sampled by sampler, skipping")):h("Plugin","disabled by effective policy")},registerReplaySamplingCheck:function(t,e){var n=this,r=function(e){clearInterval(i),e?(h("Plugin","Session/policy rejected, stopping replay and clearing buffer"),n.stopReplay(),n.eventBuffer&&n.eventBuffer.clear()):h("Plugin","Session sampled, replay continues")},i=setInterval(function(){var e=t._effectiveReplayPolicy;(!e||e.enabled)&&!1!==(null==(e=t.config)?void 0:e.sessionReplay)?$O(t)&&(null!=(e=n.maybeScheduleBaselineFlush)&&e.call(n),r(!1)):r(!0)},50);t.lifeCycle.on("destroy",function(){clearInterval(i)})},parseConfig:function(e){return!0===e?{enabled:!0}:"object"===T(e)?A(A({},e),{enabled:!1!==e.enabled}):{enabled:!1}},initializeModules:function(r,e){var n=this,t=(this.sessionManager=new X0({stickySession:null==(t=e.stickySession)||t}),this.sessionManager.setTdemInstance(r),r.sessionManager=this.sessionManager,this.eventBuffer=new iw({},null!=(t=e.useCompression)&&t),this.samplerManager=new qE({sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate}),this.recorderManager=new HE({onRecordingEvent:function(e){n.handleRecordingEvent(e,r)},onCheckout:function(){if(!n._isCheckoutFlushing){n._isCheckoutFlushing=!0;try{var e,t;n.shouldSkipBufferFlush()?h("SessionReplay","Checkout in buffer mode (error traceback), skip flush"):(e=n._tdemRef,t=n.replayConfig,e&&t&&n.eventBuffer&&!n.eventBuffer.isEmpty()&&(h("SessionReplay","Checkout triggered, flushing current buffer"),n.flushReplayData(e,t,!0)))}finally{n._isCheckoutFlushing=!1}}},mode:"session"},e),(r.config.url||r.config.hostUrl||"").replace(/\/+$/,"")),i=(this.uploader=new jO({uploadUrl:e.uploadUrl||t+"/api/v1/collect/replay",appId:String(r.config.id||""),beforeSend:e.beforeSend,onError:e.onError,eventsCompression:null==(t=e.eventsCompression)||t,transport:null==(t=r.getInternalTransport)?void 0:t.call(r)}),this.clickDetector=new WO({getClickContext:function(){var e,t,n;return[(n=(e=r).sessionManager,(null==(n=null==(t=null==n?void 0:n.getSession)?void 0:t.call(n))?void 0:n.id)||(null==(t=e.bean)?void 0:t.sessionId)||""),r._customPageUrl||window.location.href,null!=(t=null!=(n=r.viewId)?n:null==(e=r.bean)?void 0:e.viewId)?t:""].join("\n")},slowClickTimeout:e.slowClickTimeout,slowClickThreshold:e.slowClickThreshold,rageClickCount:e.rageClickCount,rageClickWindow:e.rageClickWindow,onSlowClick:function(e){n.handleSlowClick(e,r)},onRageClick:function(e){n.handleRageClick(e,r)}}),null!=(t=this.removeClickVisitListener)&&t.call(this),function(){var e;return null==(e=n.clickDetector)?void 0:e.finishRage()});r.lifeCycle.on("pageVisitChanged",i),r.lifeCycle.on("pageChanged",i),r.lifeCycle.on("beforeCloseFlush",i),this.removeClickVisitListener=function(){r.lifeCycle.remove("pageVisitChanged",i),r.lifeCycle.remove("pageChanged",i),r.lifeCycle.remove("beforeCloseFlush",i)},h("Plugin","Modules initialized")},startReplay:function(e,t,n){var r;this.sessionManager&&this.recorderManager&&this.eventBuffer?(r=(r=this.sessionManager.restoreSession())||this.sessionManager.createSession(n),this._baselineDelivered=!1,this._baselineFlushScheduled=!1,this._awaitingBaseline=!1,this._recoveryMeta=null,h("Plugin","Session started:",r.id,"mode:",n),this.recorderManager.options.mode=n,r=BE(A({maskAllText:!1!==t.maskAllInputs,maskAllInputs:t.maskAllInputs,maskTextSelector:t.maskTextSelector,blockSelector:t.blockSelector,ignoreSelector:t.ignoreSelector},t.privacy)),this.recorderManager.startRecording({privacy:r}),this.clickDetector&&this.clickDetector.start(),"session"===n?this.startFlushTimer(e,t):h("Plugin","Buffer mode - flush on error only")):Y0("Plugin","Modules not initialized")},handleRecordingEvent:function(e,t){if(this.eventBuffer&&this.sessionManager){this.sanitizeDataURLs(e);var n=rw(JSON.stringify(e))+1;if(5242880<n+1)this._awaitingBaseline=!0,this._recoveryMeta=null,this._baselineDelivered=!1,Y0("Replay","Event exceeds decoded events limit ("+n+" bytes), waiting for next baseline");else{if(this._awaitingBaseline){if(4===e.type)return this._recoveryMeta=e,void this.enforceReplayBudget();if(2!==e.type||!this._recoveryMeta)return;n=[this._recoveryMeta,e];if(5242880<rw(JSON.stringify(n)))return;this._recoveryMeta=null,this._awaitingBaseline=!1,this._baselineDelivered=!1,this.appendReplayEvents(n)}else this.appendReplayEvents([e]);this.sessionManager.updateActivity(),this.maybeScheduleBaselineFlush()}}},sanitizeDataURLs:function(e){var t=e.type;if(2===t){var n=null==(n=e.data)?void 0:n.node;n&&this.sanitizeNodeTree(n,1024)}else if(3===t){n=e.data;if(0===(null==n?void 0:n.source)&&Array.isArray(n.adds)){for(var r=0,i=n.adds;r<i.length;r++){var o=i[r];null!=o&&o.node&&this.sanitizeNodeTree(o.node,1024)}if(Array.isArray(n.attributes))for(var a=0,s=n.attributes;a<s.length;a++){var u=s[a];if(null!=u&&u.attributes)for(var l=0,c=Object.entries(u.attributes);l<c.length;l++){var d=c[l],f=d[0],d=d[1];"string"==typeof d&&1024<d.length&&d.startsWith("data:")&&(u.attributes[f]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}}}}},sanitizeNodeTree:function(e,t){if(e){if(e.attributes)for(var n=e.attributes,r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o];"string"==typeof a&&a.length>t&&a.startsWith("data:")&&(n[o]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}if(Array.isArray(e.childNodes))for(var s=0,u=e.childNodes;s<u.length;s++){var l=u[s];this.sanitizeNodeTree(l,t)}}},handleSlowClick:function(e,t){h("ClickDetector","Slow click detected:",e.timeAfterClickMs,"ms"),this.addCustomEvent({category:"ui.slowClickDetected",message:"Slow click: "+e.timeAfterClickMs+"ms on "+e.node.tagName,data:{node:e.node,timeAfterClickMs:e.timeAfterClickMs,endReason:e.endReason}},t)},handleRageClick:function(e,t){h("ClickDetector","Rage click detected:",e.clickCount,"clicks"),this.addCustomEvent({category:"ui.multiClick",message:"Rage click: "+e.clickCount+" clicks on "+e.node.tagName,data:{node:e.node,clickCount:e.clickCount,timeWindowMs:e.timeWindowMs}},t)},addCustomEvent:function(e,t){this.eventBuffer&&(e={type:5,data:{tag:e.category,payload:A({message:e.message},e.data)},timestamp:Date.now()},this.eventBuffer.addEvent(e))},startFlushTimer:function(e,t){var n=this;this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(function(){n.flushReplayData(e,t)},2e4)},maybeScheduleBaselineFlush:function(){var e,t,n,r=this;this._baselineDelivered||this._baselineFlushScheduled||this._awaitingBaseline||this.shouldSkipBufferFlush()||null==(e=this.eventBuffer)||!e.hasBaselinePair()||(t=this._tdemRef,n=this.replayConfig,t&&n&&$O(t)&&(this._baselineFlushScheduled=!0,Promise.resolve().then(function(){r._baselineFlushScheduled=!1,r._baselineDelivered||r.shouldSkipBufferFlush()||$O(t)&&(r._baselineDelivered=!0,r.flushReplayData(t,n,!0))})))},canReportReplay:function(e){return!(!(this.sessionManager&&this.eventBuffer&&this.uploader)||!$O(e)||this.shouldSkipBufferFlush()||!this.sessionManager.getSession())},getRetainedReplayBytes:function(){var e;return((null==(e=this.eventBuffer)?void 0:e.getSize())||0)+2+this._pendingSegments.reduce(function(e,t){return e+t.byteLength},0)+(this._recoveryMeta?rw(JSON.stringify(this._recoveryMeta))+1:0)},appendReplayEvents:function(e){var t,n=this;this.eventBuffer&&(t=e.reduce(function(e,t){return e+rw(JSON.stringify(t))+1},0),5242880<this.eventBuffer.getSize()+t+2||10485760<this.getRetainedReplayBytes()+t?this.compactReplayQueue(e):e.forEach(function(e){return n.eventBuffer.addEvent(e)}))},enforceReplayBudget:function(){(10485760<this.getRetainedReplayBytes()||64<this._pendingSegments.length)&&this.compactReplayQueue()},compactReplayQueue:function(e,t){var n=this;if(void 0===e&&(e=[]),this.eventBuffer){var r=this._awaitingBaseline,i=this._recoveryMeta,o=[],a=[],s=null;this._pendingSegments.forEach(function(e){e===t||"sending"===e.status?(e.events.forEach(function(e){4===e.type&&(s=e)}),e!==t&&a.push(e)):e.events.forEach(function(e){return o.push(e)})}),this.eventBuffer.detachEvents().forEach(function(e){return o.push(e)}),e.forEach(function(e){return o.push(e)});for(var u=-1,l=null,c=0;c<o.length;c++){var d=o[c];4===d.type&&(s=d),2===d.type&&s&&rw(JSON.stringify([s,d]))<=5242880&&(u=c,l=s)}var e=0<=u&&l?El([l],o.slice(u)):[],f=(this._pendingSegments=a,this._recoveryMeta=null,rw(JSON.stringify(e))),f=(e.length&&f<=5242880&&this.getRetainedReplayBytes()+f<=10485760?(e.forEach(function(e){return n.eventBuffer.addEvent(e)}),this._awaitingBaseline=r):this._awaitingBaseline=!0,i||s);this._awaitingBaseline&&f&&this.getRetainedReplayBytes()+rw(JSON.stringify(f))+1<=10485760&&(this._recoveryMeta=f),this._baselineDelivered=!1,Z0("Replay","Discarded replay dependency chain; retained latest complete checkpoint if it fits")}},freezeActiveBuffer:function(e){var t,n,r,i,o=this;this.sessionManager&&this.eventBuffer&&(t=this.sessionManager.getSession())&&!this.eventBuffer.isEmpty()&&(!e&&this.eventBuffer.getEventCount()<10?h("Flush","Skipping flush, only "+this.eventBuffer.getEventCount()+" events (min: 10)"):(0!==t.segmentId||this.eventBuffer.hasCheckout()||(Z0("Flush","First segment missing FullSnapshot, triggering manual checkout"),null==(e=this.recorderManager))||e.takeFullSnapshot(),0!==(e=this.eventBuffer.detachEvents()).length&&(r=!(n=[]),i=null,e.forEach(function(e){if(5242880<rw(JSON.stringify([e])))r=!0,i=null,Y0("Replay","Oversized event discarded before freezing");else{if(r){if(4===e.type&&(i=e),2!==e.type||!i||5242880<rw(JSON.stringify([i,e])))return;n.push(i),r=!1}n.push(e)}}),r&&(this._awaitingBaseline=!0,this._recoveryMeta=i,this._baselineDelivered=!1),(e=this.splitEventsIntoChunks(n,3145728,5242880)).forEach(function(e){0!==e.length&&o._pendingSegments.push({segmentId:o.sessionManager.incrementSegmentId(),sessionId:t.id,replayId:t.replayId,replayStarted:t.started,events:e,byteLength:rw(JSON.stringify(e)),status:"pending"})}),!this._awaitingBaseline&&n.some(function(e){e=e.type;return 2===e||4===e})&&(this._baselineDelivered=!0),this.enforceReplayBudget(),h("Flush","Frozen "+n.length+" events into "+e.length+" segment(s)"))))},buildSegmentPayload:function(e,t){return{project_key:String(e.config.id||""),session_id:t.sessionId,replay_id:t.replayId,segment_id:t.segmentId,timestamp:Date.now(),replay_start_timestamp:t.replayStarted,replay_format:"rrweb",platform:"web",events_encoding:"plain_json",events:JSON.stringify(t.events)}},measureSegment:function(e){return this.uploader&&"function"==typeof this.uploader.measurePayload?this.uploader.measurePayload(e):rw(JSON.stringify(e))},enqueueDrain:function(t){var e,n=this;return this._drainRequested=!0,this._drainPromise||(e=Promise.resolve().then(function(){return _l(n,void 0,void 0,function(){return Sl(this,function(e){switch(e.label){case 0:return this._drainRequested=!1,[4,this.drainPendingUploads(t)];case 1:e.sent(),e.label=2;case 2:if(this._drainRequested&&this.canReportReplay(t))return[3,0];e.label=3;case 3:return[2]}})})})["finally"](function(){n._drainPromise===e&&(n._drainPromise=null)}),this._drainPromise=e,this._flushTail=e)},drainPendingUploads:function(i){return _l(this,void 0,void 0,function(){var t,r,n;return Sl(this,function(e){switch(e.label){case 0:t=function(){var t,n;return Sl(this,function(e){switch(e.label){case 0:return(t=r._pendingSegments.find(function(e){return"pending"===e.status}))?(t.status="sending",[4,r.uploader.uploadReplayResult(r.buildSegmentPayload(i,t))]):[2,{value:void 0}];case 1:if(n=e.sent(),!r._pendingSegments.includes(t))return[2,"continue"];if("success"===n.status)r._pendingSegments=r._pendingSegments.filter(function(e){return e!==t}),null!=(e=r.sessionManager)&&e.saveSession();else{if("busy"===n.status)return t.status="pending",[2,{value:void 0}];Z0("Flush","Segment "+t.segmentId+" terminated ("+n.status+", attempts="+n.attempts+")"),r.compactReplayQueue([],t),r.freezeActiveBuffer(!0)}return[2]}})},r=this,e.label=1;case 1:return this.canReportReplay(i)?[5,t()]:[3,3];case 2:return"object"===T(n=e.sent())?[2,n.value]:[3,1];case 3:return[2]}})})},flushReplayData:function(e,t,n){var r,i;return void 0===n&&(n=!1),this.canReportReplay(e)?this.sessionManager.shouldRefreshSession()?(h("Plugin","Session expired, refreshing"),this.stopReplay(),r=this.sessionManager.refreshSession(),e.lifeCycle.emit("sessionRefreshed"),i=e._replaySampled,r.sampled&&!1!==i&&this.startReplay(e,t,r.sampled),Promise.resolve()):(this.freezeActiveBuffer(n),this.enqueueDrain(e)):Promise.resolve()},handoffReplay:function(r,e){var i,o,a,s,u=this;this.canReportReplay(r)&&(this.freezeActiveBuffer(!0),a=o=i=0,s=[],this._pendingSegments.forEach(function(e){var t=u.buildSegmentPayload(r,e),n=u.measureSegment(t);!(n<=0||61440<n)&&i+n<=65536?!0===u.uploader.sendBeacon(t)?(i+=n,o+=1):(a+=1,Z0("Unload","sendBeacon rejected chunk (segment_id="+e.segmentId+"), kept for retry"),s.push(e)):s.push(e)}),this._pendingSegments=s,h("SessionReplay","sendBeacon on hide: "+o+" queued, "+a+" rejected, "+s.length+" pending"),e)&&0<s.length&&this.enqueueDrain(r)},splitEventsIntoChunks:function(e,t,n){if(void 0===t&&(t=3145728),void 0===n&&(n=5242880),0===e.length)return[];var r=rw(JSON.stringify(e));if(r<=Math.min(t,n))return[e];Z0("Split","Events size "+Math.round(r/1024)+"KB exceeds limit "+Math.round(t/1024)+"KB, splitting");for(var i=[],o=[],a=2,s=0,u=e;s<u.length;s++){var l,c,d=u[s],f=rw(JSON.stringify(d))+1;0<o.length&&t<a+f&&(i.push(o),o=[],a=2),n<f+1?((c=2===(l=d.type)||4===l)?Y0:Z0)("Split","Single event too large ("+Math.round(f/1024)+"KB), type="+l+(c?" (baseline snapshot, replay may become unplayable)":"")+", skipping"):(o.push(d),a+=f)}return 0<o.length&&i.push(o),i},stopReplay:function(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.recorderManager&&this.recorderManager.stopRecording(),this.clickDetector&&this.clickDetector.stop(),h("Plugin","Recording stopped")},listenForErrors:function(t,n){var r=this;t.lifeCycle.on("errorOccurred",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){e&&r.handleError(e,t,n)})}),t.lifeCycle.on("tdemEventCreated",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){r.isErrorTDEMEvent(e)&&r.handleError(e,t,n)})})},isErrorTDEMEvent:function(e){return!!e&&("error"===String(e.event_category||"").toLowerCase()||(e=String(e.event_type||"").toLowerCase(),["js_error","promise_error","resource_error","api_error"].includes(e)))},handleError:function(e,t,n){this.samplerManager&&(this.samplerManager.isBufferMode()&&this.samplerManager.onErrorOccurred(e)&&(h("Plugin","Converting to session mode due to error"),this.flushReplayData(t,n,!0),this.startFlushTimer(t,n)),this.addCustomEvent({category:"error",message:(null==e?void 0:e.msg)||(null==e?void 0:e.message)||"Unknown error",data:{type:(null==e?void 0:e.type)||"error",stack:null==e?void 0:e.stack}},t))},listenForPerformance:function(n){var r=this;if(n.lifeCycle.on("afterReportWebVitals",function(e){r.handlePerformanceEvent("webVitals",e,n)}),n.lifeCycle.on("afterReportPagePerformance",function(e){r.handlePerformanceEvent("pageLoad",e,n)}),"undefined"!=typeof PerformanceObserver)try{var e=new PerformanceObserver(function(e){var t,e=e.getEntries(),e=e[e.length-1];e&&r.addCustomEvent({category:"performance.lcp",message:"LCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime,element:(null==(t=e.element)?void 0:t.tagName)||"unknown",size:e.size}},n)}),t=(e.observe({type:"largest-contentful-paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){"first-contentful-paint"===e.name&&r.addCustomEvent({category:"performance.fcp",message:"FCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime}},n)})})),i=(t.observe({type:"paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){100<e.duration&&r.addCustomEvent({category:"performance.longTask",message:"Long Task: "+Math.round(e.duration)+"ms",data:{duration:e.duration,startTime:e.startTime}},n)})}));i.observe({type:"longtask",buffered:!0}),n.lifeCycle.on("destroy",function(){e.disconnect(),t.disconnect(),i.disconnect()})}catch(Me){}},handlePerformanceEvent:function(e,n,r){var i=this;n&&("webVitals"===e?["LCP","FCP","FID","CLS","TTFB","TTI","INP"].forEach(function(e){var t=n[e];t!==undefined&&-1!==t&&0<t&&i.addCustomEvent({category:"performance."+e.toLowerCase(),message:e+": "+("number"==typeof t?Math.round(t):t)+("CLS"===e?"":"ms"),data:{metric:e,value:t}},r)}):"pageLoad"===e&&this.addCustomEvent({category:"performance.pageLoad",message:"Page Load: "+(n.firstScreenTiming?Math.round(n.firstScreenTiming):"N/A")+"ms",data:{dnsLookup:n.dnsLookup,tcp:n.tcp,ssl:n.ssl,ttfb:n.ttfb,contentDownload:n.contentDownload,domParse:n.domParse,resourceDownload:n.resourceDownload,firstScreenTiming:n.firstScreenTiming}},r))},listenForLifecycle:function(o,t){var n,e,a=this;"undefined"!=typeof document&&(n=function(e){var t,n=null==(n=a.sessionManager)?void 0:n.getSession(),n=(null==n?void 0:n.replayId)||"",r=(null==(i=null==(r=o)?void 0:r.getOriginFrom)?void 0:i.call(r))||("undefined"!=typeof location?location.href:""),i="undefined"!=typeof document&&document.title||"";null!=(t=o.reportTDEMEvent)&&t.call(o,{event_id:Ac(),event_type:e,event_category:Ic.BEHAVIOR,timestamp:Date.now(),page_url:r,data:{page_title:i,replay_id:n,is_effective_action:!1,tags:{environment:o.config.env||"production",version:String(o.config.version||"")},event_properties:{visibility_state:"undefined"!=typeof document?document.visibilityState:"",lifecycle_type:e}}})},document.addEventListener("visibilitychange",e=function(){var e;if("undefined"!=typeof document){if("hidden"===document.visibilityState)return n(P.TAB_HIDDEN),a.shouldSkipBufferFlush()?void h("Lifecycle","Buffer mode (error traceback), skip flush on hidden"):void a.handoffReplay(o,!0);"visible"===document.visibilityState&&(n(P.TAB_VISIBLE),(e=Date.now())-a._lastLifecycleSnapshotAt<5e3||(a._lastLifecycleSnapshotAt=e,null!=(e=a.recorderManager)&&e.takeFullSnapshot(),a.shouldSkipBufferFlush()?h("Lifecycle","Buffer mode (error traceback), skip flush on visible"):a.flushReplayData(o,t,!0)))}}),o.lifeCycle.on("destroy",function(){document.removeEventListener("visibilitychange",e)}))},listenForUnload:function(t){var n=this,e=function(e){n.flushOnUnload(t,e)},r=function(e){n.resumeAfterRestore(e)};window.addEventListener("pagehide",e),window.addEventListener("pageshow",r),t.lifeCycle.on("destroy",function(){window.removeEventListener("pagehide",e),window.removeEventListener("pageshow",r)})},resumeAfterRestore:function(e){null!=e&&e.persisted&&!this.shouldSkipBufferFlush()&&(this.recorderManager&&!this.recorderManager.isRecording()&&this.recorderManager.startRecording(),null!=(e=this.clickDetector))&&e.start()},flushOnUnload:function(e,t){this.canReportReplay(e)?(null!=t&&t.persisted||(null!=(t=this.recorderManager)&&t.stopRecording(),null==(t=this.clickDetector))||t.stop(),this.handoffReplay(e,!1)):this.shouldSkipBufferFlush()&&h("Unload","Buffer mode (error traceback), skip flush on unload")},destroy:function(){var e;if(this.option)return this.option.destroy.call(this.option);this.stopReplay(),null!=(e=this.removeClickVisitListener)&&e.call(this),this.removeClickVisitListener=null,this.sessionManager&&this.sessionManager.saveSession(),this.sessionManager=null,this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this.recorderManager=null,this.samplerManager=null,this.uploader=null,this.clickDetector=null,this.replayConfig=null,this._tdemRef=null,this._isCheckoutFlushing=!1,this._lastLifecycleSnapshotAt=0,this._pendingSegments=[],this._baselineDelivered=!1,this._baselineFlushScheduled=!1,this._flushTail=Promise.resolve(),this._drainPromise=null,this._drainRequested=!1,this._awaitingBaseline=!1,this._recoveryMeta=null,this.isInitialized=!1,h("Plugin","destroyed")}}),ZO={enabled:!0,ruleVersion:"1.0.0",payloadAllowlist:[],click:{enabled:!0,deadClickWindowMs:3e3,deadClickDebounceIntervalMs:1e3,rageClickWindowMs:3e3,rageClickCount:5,errorClickWindowMs:3e3,resolveOnDomMutation:!0,resolveOnSpaNavigation:!0,resolveOnExternalNavigation:!0,resolveOnWindowOpen:!0,resolveOnPageUnload:!0,resolveOnFormAction:!0,resolveOnApiSuccess:!0,ignoreDeadClickSelectors:[],effectiveActionSelectors:[],clickableSelectors:[]},performance:{enabled:!0,slowPageLcpThreshold:4e3,slowPageInpThreshold:500},form:{enabled:!0,fieldIdAttr:"data-field-id",formIdAttr:"data-form-id",longFocusThresholdMs:2e4,incompleteMinFieldRatio:.3,zigzagMinCount:2},navigation:{enabled:!0,backForwardAsStruggle:!0},custom:{enabled:!0,detector:undefined}},YO=new Set([P.JS_ERROR,P.PROMISE_ERROR,P.RESOURCE_ERROR,P.API_ERROR]),XO=new Set([P.FORM_CHANGE,P.FORM_SUBMIT,P.FORM_SUBMIT_RESULT]),uk=(new u({name:"struggleMonitor"}),new u({name:"struggleMonitor",instanceStates:new Map,originalWindowOpen:null,windowOpenHooked:!1,onNewTdem:function(n){var e,t,r,i,o,a,s=this,u=!0===(e=this.$getConfig(n))?A({},ZO):e&&"object"===T(e)?(t=((u=null==(u=e.click)?void 0:u.deadClickDebounceIntervalMs)===undefined||Number.isInteger(u)&&1<=u&&u<=6e4)&&null!=u?u:1e3,u!==undefined&&u!==t&&console.warn("struggleMonitor: invalid deadClickDebounceIntervalMs; using 1000ms"),A(A(A({},ZO),e),{click:A(A(A({},ZO.click),e.click||{}),{deadClickDebounceIntervalMs:t}),performance:A(A({},ZO.performance),e.performance||{}),form:A(A({},ZO.form),e.form||{}),navigation:A(A({},ZO.navigation),e.navigation||{}),custom:A(A({},ZO.custom),e.custom||{}),payloadAllowlist:(Array.isArray(e.payloadAllowlist)?e:ZO).payloadAllowlist,enabled:!1!==e.enabled})):A(A({},ZO),{enabled:!1});u.enabled&&(r={config:u,clickDetector:null,recentClicks:[],pendingDeadClicks:new Map,latestDead:new Map,clickContexts:new WeakMap,contextKey:this.getClickContextKey(n),closing:!1,focusStartMap:new Map,formStateMap:new Map,removeDomListeners:[],onEventCreated:null,onDestroy:null},this.instanceStates.set(n,r),this.initClickDetector(n,r),this.initFormListeners(n,r),r.onEventCreated=function(e){s.handleEventCreated(n,r,e||[])},n.lifeCycle.on("tdemEventCreated",r.onEventCreated),r.onDestroy=function(){return s.cleanupInstance(n)},n.lifeCycle.on("destroy",r.onDestroy),n.lifeCycle.on("clickCaptured",i=function(e){var t=e.event,n=e.source,e=r.clickContexts.get(t);e&&(e.sourceContext.replayId=String(n.data.replay_id||"")),r.pendingDeadClicks.forEach(function(e){e.event===t&&(e.clickEventId=n.event_id,e.ownerKey=n.data.target_element||e.ownerKey)})}),r.removeDomListeners.push(function(){return n.lifeCycle.remove("clickCaptured",i)}),n.lifeCycle.on("pageChanged",o=function(){return s.closeClickGroups(r)}),r.removeDomListeners.push(function(){return n.lifeCycle.remove("pageChanged",o)}),n.lifeCycle.on("pageVisitChanged",o),r.removeDomListeners.push(function(){return n.lifeCycle.remove("pageVisitChanged",o)}),n.lifeCycle.on("beforeCloseFlush",o),r.removeDomListeners.push(function(){return n.lifeCycle.remove("beforeCloseFlush",o)}),r.removeDomListeners.push("undefined"==typeof window?function(){}:(window.addEventListener("monitor-session-update",a=function(e){var t;t=e.detail.sessionId,e.detail.source,t!==r.contextKey.split("\n")[0]&&(r.contextKey=s.getClickContextKey(n),s.closeClickGroups(r,!0))}),function(){return window.removeEventListener("monitor-session-update",a)})))},initClickDetector:function(t,n){var e,r=this;"undefined"!=typeof window&&"undefined"!=typeof document&&(n.clickDetector=new WO({getClickContext:function(){return r.getClickContextKey(t)},slowClickTimeout:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,slowClickThreshold:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,rageClickCount:null!=(e=null==(e=n.config.click)?void 0:e.rageClickCount)?e:5,rageClickWindow:null!=(e=null==(e=n.config.click)?void 0:e.rageClickWindowMs)?e:3e3,onRageClick:function(e){r.onRageClick(t,n,e)},onClickStart:function(e){r.onClickStart(t,n,e)},onEffectiveAction:function(e){r.onEffectiveAction(t,n,e)},onSlowClick:function(e){r.onSlowClick(t,n,e)}}),n.clickDetector.start(),this.initClickEffectiveActionListeners(n),this.initWindowOpenHook())},initClickEffectiveActionListeners:function(n){var e,t,r=this;"undefined"!=typeof window&&((e=function(e,t){window.addEventListener(e,t),n.removeDomListeners.push(function(){window.removeEventListener(e,t)})})("pagehide",function(){var e;r.closeClickGroups(n),!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(r.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}),e("beforeunload",function(){var e;r.closeClickGroups(n),!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(r.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}),t=function(){"hidden"===document.visibilityState&&r.closeClickGroups(n)},document.addEventListener("visibilitychange",t),n.removeDomListeners.push(function(){return document.removeEventListener("visibilitychange",t)}))},initWindowOpenHook:function(){var r,i;"undefined"==typeof window||this.windowOpenHooked||(r=window.open,this.originalWindowOpen=r,this.windowOpenHooked=!0,i=this,window.open=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(window,e);return i.resolveWindowOpenActions(),n})},resolveWindowOpenActions:function(){var r=this,i=Date.now();this.instanceStates.forEach(function(e,t){var n;!1!==(null==(n=e.config.click)?void 0:n.resolveOnWindowOpen)&&(null!=(n=e.clickDetector)&&n.markEffectiveAction("window_open"),r.resolvePendingDeadClicks(e,"window_open",i,t._customPageUrl||r.getCurrentPageUrl()))})},restoreWindowOpenHook:function(){"undefined"!=typeof window&&this.windowOpenHooked&&this.originalWindowOpen&&(window.open=this.originalWindowOpen,this.originalWindowOpen=null,this.windowOpenHooked=!1)},initFormListeners:function(r,i){var e,t,o=this;null!=(t=i.config.form)&&t.enabled&&"undefined"!=typeof document&&((t=function(e,t,n){void 0===n&&(n=!0),document.addEventListener(e,t,n),i.removeDomListeners.push(function(){document.removeEventListener(e,t,n)})})("focusin",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,P.FORM_FOCUS,e,e.form||undefined)}),t("focusout",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,P.FORM_BLUR,e,e.form||undefined)}),t("change",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,P.FORM_CHANGE,e,e.form||undefined)}),t("submit",function(e){e=e.target;e instanceof HTMLFormElement&&o.reportFormEvent(r,i,P.FORM_SUBMIT,null,e)}),t("invalid",function(e){var t,n,e=o.getTrackableField(e.target);e&&(n=e.form||undefined,n=o.buildFormBaseData(r,i,e,n),n={event_id:Ac(),event_type:P.FORM_SUBMIT_RESULT,event_category:Ic.BEHAVIOR,timestamp:Date.now(),page_url:"undefined"!=typeof window?window.location.href:(null==(t=r.getOriginFrom)?void 0:t.call(r))||"",data:A(A({},n),{event_name:"form_submit_fail",is_effective_action:!0,validation_message:e.validationMessage||undefined,event_properties:A(A({},n.event_properties||{}),{status:"fail",validation_code:!1===(null==(t=e.validity)?void 0:t.valid)?"invalid":"validation_error"})})},null!=(e=r.reportTDEMEvent))&&e.call(r,n)}),e=function(){o.reportPendingUncompletedForms(r,i,"pagehide")},"undefined"!=typeof window)&&(window.addEventListener("pagehide",e),i.removeDomListeners.push(function(){window.removeEventListener("pagehide",e)}))},getTrackableField:function(e){return!(e&&e instanceof Element)||!(e=e.closest("input, textarea, select"))||e instanceof HTMLInputElement&&["button","submit","reset","image","hidden"].includes(e.type)?null:e},buildFormBaseData:function(e,t,n,r){var n=n||null,r=r||(null==n?void 0:n.form)||undefined,i=(null==(i=t.config.form)?void 0:i.fieldIdAttr)||"data-field-id",t=(null==(t=t.config.form)?void 0:t.formIdAttr)||"data-form-id",i=n?n.getAttribute(i)||n.id||n.name||n.tagName.toLowerCase()+"_"+(n.type||"field"):undefined,t=r&&(r.getAttribute(t)||r.id||r.getAttribute("name")||r.getAttribute("action"))||undefined,o="string"==typeof(null==(o=n)?void 0:o.value)?n.value.length:0,o=0===o?"0":o<=10?"1_10":o<=50?"11_50":"51_plus";return{replay_id:tg(e),is_effective_action:!0,form_id:t,field_id:i,tags:{},event_properties:{field_name:(null==n?void 0:n.name)||"",field_type:(null==n?void 0:n.type)||(null==(e=null==n?void 0:n.tagName)?void 0:e.toLowerCase())||"",form_name:(null==r?void 0:r.getAttribute("name"))||"",is_required:String(!(null==n||!n.required)),value_length_bucket:String(o)}}},reportFormEvent:function(e,t,n,r,i){var t=this.buildFormBaseData(e,t,r,i),i="undefined"!=typeof window?window.location.href:(null==(r=e.getOriginFrom)?void 0:r.call(e))||"",r={event_id:Ac(),timestamp:Date.now(),page_url:i};n!==P.FORM_FOCUS?n!==P.FORM_BLUR?n!==P.FORM_CHANGE?(i=A(A({},r),{event_type:P.FORM_SUBMIT,event_category:Ic.BEHAVIOR,data:A(A({},t),{submit_method:"native_submit"})}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=A(A({},r),{event_type:P.FORM_CHANGE,event_category:Ic.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=A(A({},r),{event_type:P.FORM_BLUR,event_category:Ic.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=A(A({},r),{event_type:P.FORM_FOCUS,event_category:Ic.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i))},onClickStart:function(e,t,n){var r,i,o,a,s=t.config.click||ZO.click;!1!==s.enabled&&(this.checkClickContext(e,t),r=cv(n.event,e),i={timestamp:n.timestamp,sessionId:vd(e),viewId:String(null!=(i=null!=(i=null!=(i=null==r?void 0:r.view_id)?i:e.viewId)?i:null==(i=e.bean)?void 0:i.viewId)?i:""),replayId:String(null!=(i=null==(i=null==r?void 0:r.data)?void 0:i.replay_id)?i:tg(e))},o=e._customPageUrl||(null==r?void 0:r.page_url)||this.getCurrentPageUrl(),t.clickContexts.set(n.event,{pageUrl:o,sourceContext:i}),a=(null==(a=null==r?void 0:r.data)?void 0:a.target_element)||n.node.selector||n.node.tagName||"unknown",this.isDeadClickExempt(n,s)||this.shouldIgnoreDeadClick(n.target,s)||"custom"!==n.effectiveActionReason&&(n.effectiveActionReason&&this.shouldResolveByReason(t,n.effectiveActionReason)?this.resolvePendingDeadClicks(t,n.effectiveActionReason,n.timestamp,o):this.scheduleDeadClick(e,t,{pendingId:"pending_"+n.timestamp+"_"+Math.random().toString(16).slice(2),timestamp:n.timestamp,pageUrl:o,ownerKey:a,node:n.node,target:n.target,event:n.event,groupKey:t.contextKey,debounceIntervalMs:null!=(e=s.deadClickDebounceIntervalMs)?e:1e3,sourceContext:i,clickEventId:null==r?void 0:r.event_id})))},onEffectiveAction:function(e,t,n){this.checkClickContext(e,t),this.shouldResolveByReason(t,n.reason)&&(e=e._customPageUrl||this.getCurrentPageUrl(),this.resolvePendingDeadClicks(t,n.reason,n.timestamp,e))},scheduleDeadClick:function(t,n,r){var i=this,o=null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,e=n.latestDead.get(r.target),e=(e&&e.groupKey===r.groupKey&&r.timestamp>=e.timestamp&&r.timestamp-e.timestamp<e.debounceIntervalMs&&(r.debounceIntervalMs=e.debounceIntervalMs,this.removeDeadClick(n,e)),setTimeout(function(){i.checkClickContext(t,n);var e=n.pendingDeadClicks.get(r.pendingId);e&&(i.removeDeadClick(n,e),i.emitDeadClick(t,n,e,o))},Math.max(o,r.debounceIntervalMs))),e=A(A({},r),{timeout:e});n.pendingDeadClicks.set(r.pendingId,e),n.latestDead.set(r.target,e),200<n.pendingDeadClicks.size&&(e=n.pendingDeadClicks.values().next().value)&&this.removeDeadClick(n,e)},removeDeadClick:function(e,t){clearTimeout(t.timeout),e.pendingDeadClicks["delete"](t.pendingId),e.latestDead.get(t.target)===t&&e.latestDead["delete"](t.target)},getClickContextKey:function(e){var t;return[vd(e),e._customPageUrl||this.getCurrentPageUrl(),null!=(e=null!=(t=e.viewId)?t:null==(t=e.bean)?void 0:t.viewId)?e:""].join("\n")},checkClickContext:function(e,t){var n,e=this.getClickContextKey(e);e!==t.contextKey&&(n=e.split("\n")[0]!==t.contextKey.split("\n")[0],t.contextKey=e,this.closeClickGroups(t,n))},closeClickGroups:function(t,e){var n,r=this;void 0===e&&(e=!1),null!=(n=t.clickDetector)&&n.finishRage(),t.latestDead.clear(),e&&(t.pendingDeadClicks.forEach(function(e){return r.removeDeadClick(t,e)}),t.recentClicks=[])},emitDeadClick:function(e,t,n,r){var i,o=n.clickEventId?[n.clickEventId]:undefined;null!=(i=e.reportStruggle)&&i.call(e,{type:"dead_click",ownerType:"element",ownerKey:n.ownerKey,pageUrl:n.pageUrl,sourceContext:A(A({},n.sourceContext),{timestamp:n.timestamp+r}),triggerEventId:n.clickEventId,relatedEventIds:o,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{timeout_ms:r,selector:n.node.selector||""}})},resolvePendingDeadClicks:function(n,r,i,o){var e,a=this,s=(void 0===i&&(i=Date.now()),null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3);n.pendingDeadClicks.forEach(function(e){var t=i-e.timestamp;t<0||s<t||"spa_navigation"!==r&&"page_unload"!==r&&o&&e.pageUrl&&o!==e.pageUrl||a.removeDeadClick(n,e)})},shouldResolveByReason:function(e,t){e=e.config.click||ZO.click;return!1!==e.enabled&&("dom_mutation"===t?!1!==e.resolveOnDomMutation:"spa_navigation"===t?!1!==e.resolveOnSpaNavigation:"external_navigation"===t||"download"===t?!1!==e.resolveOnExternalNavigation:"window_open"===t?!1!==e.resolveOnWindowOpen:"page_unload"===t?!1!==e.resolveOnPageUnload:"form_change"===t||"form_submit"===t?!1!==e.resolveOnFormAction:"api_success"!==t||!1!==e.resolveOnApiSuccess)},isDeadClickExempt:function(e,t){var e=e.event.target,t=Array.isArray(t.clickableSelectors)?t.clickableSelectors:[];return!(e instanceof Element&&function(e,t){if(void 0===t&&(t=[]),e.closest(sv))return 1;for(var n=0;n<t.length;n++)try{if(t[n]&&e.closest(t[n]))return 1}catch(De){}try{return"pointer"===window.getComputedStyle(e).cursor}catch(De){}}(e,t)&&(!(t=e.closest("[contenteditable]"))||"false"===t.getAttribute("contenteditable"))&&!e.closest('input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select,option,label'))},shouldIgnoreDeadClick:function(t,e){return El(e.ignoreDeadClickSelectors||[],e.effectiveActionSelectors||[]).some(function(e){try{return!!e&&!!t.closest(e)}catch(De){return!1}})},getCurrentPageUrl:function(){return"undefined"==typeof window?"":window.location.href},getEventPageUrl:function(e){return(null==e?void 0:e.page_url)||(null==(e=null==e?void 0:e.data)?void 0:e.page_url)||""},onRageClick:function(t,e,n){var r,i,o,a;!1!==e.config.click.enabled&&(r=n.node.selector||n.node.tagName||"unknown",i=e.clickContexts.get(n.clicks[0].event))&&(o=(a=n.clicks.map(function(e){return cv(e.event,t)})).map(function(e){return null==e?void 0:e.event_id}).filter(Boolean).slice(-10),a={type:"rage_click",ownerType:"element",ownerKey:(null==(a=null==(a=a[0])?void 0:a.data)?void 0:a.target_element)||r,pageUrl:i.pageUrl,sourceContext:A(A({},i.sourceContext),{timestamp:n.lastTimestamp}),triggerEventId:o[0],relatedEventIds:o.length?o:undefined,detectionSource:"rule_engine",ruleVersion:e.config.ruleVersion,payloadAllowlist:e.config.payloadAllowlist,payload:{clickCount:n.clickCount,timeWindowMs:n.timeWindowMs,click_count:n.clickCount,time_window_ms:n.timeWindowMs,selector:n.node.selector||""}},null!=(r=t.reportStruggle))&&r.call(t,a)},onSlowClick:function(e,t,n){},handleEventCreated:function(i,o,e){var t,a=this,s=(this.checkClickContext(i,o),Date.now()),n=o.config.click||ZO.click,r=Math.max(null!=(t=n.errorClickWindowMs)?t:3e3,null!=(t=n.rageClickWindowMs)?t:3e3,null!=(t=n.deadClickWindowMs)?t:3e3);o.recentClicks=o.recentClicks.filter(function(e){return s-e.timestamp<=r}),e.forEach(function(e){var t,n,r;e&&e.event_type!==P.STRUGGLE&&(t=e.timestamp||s,n=a.getEventPageUrl(e),e.event_type===P.CLICK?(r=(null==(r=e.data)?void 0:r.target_element)||(null==(r=e.data)?void 0:r.target_id)||(null==(r=e.data)?void 0:r.target_class)||"unknown",o.recentClicks.push({eventId:e.event_id,timestamp:t,pageUrl:n,ownerKey:r}),o.recentClicks=o.recentClicks.slice(-200)):(e.event_type===P.PAGE_VIEW&&a.closeClickGroups(o),a.isEffectiveActionEvent(o,e)&&(a.resolvePendingDeadClicks(o,a.getEffectiveActionReason(e),t,n),null!=(r=o.clickDetector)&&r.markEffectiveAction(a.getEffectiveActionReason(e))),YO.has(e.event_type)?a.tryReportErrorClick(i,o,e):e.event_type===P.PAGE_LOAD||e.event_type===P["true"]?a.tryReportSlowPage(i,o,e):e.event_type===P.FORM_FOCUS?(a.trackFormFocus(o,e),a.trackFormChangeAndZigzag(i,o,e)):e.event_type===P.FORM_CHANGE?a.trackFormChangeAndZigzag(i,o,e):e.event_type===P.FORM_BLUR?a.tryReportLongFocusTime(i,o,e):e.event_type===P.FORM_SUBMIT?a.trackFormSubmitResult(o,e):e.event_type===P.FORM_SUBMIT_RESULT?(a.trackFormSubmitResult(o,e),a.tryReportFormValidationError(i,o,e)):e.event_type===P.PAGE_VIEW&&null!=(n=null==(t=e.data)?void 0:t.event_properties)&&n.navigation_type&&a.tryReportBackForward(i,o,e)),a.tryReportCustomStruggle(i,o,e))})},isEffectiveActionEvent:function(e,t){var n;return!1!==(null==(n=e.config.click)?void 0:n.enabled)&&(t.event_type===P.API_CALL?!1!==(null==(n=e.config.click)?void 0:n.resolveOnApiSuccess):t.event_type===P.PAGE_VIEW&&null!=(n=null==(n=t.data)?void 0:n.event_properties)&&n.navigation_type?!1!==(null==(n=e.config.click)?void 0:n.resolveOnSpaNavigation):XO.has(t.event_type)?!1!==(null==(n=e.config.click)?void 0:n.resolveOnFormAction):!0===(null==(e=t.data)?void 0:e.is_effective_action))},getEffectiveActionReason:function(e){return e.event_type===P.API_CALL?"api_success":e.event_type===P.PAGE_VIEW?"spa_navigation":e.event_type===P.FORM_CHANGE?"form_change":e.event_type===P.FORM_SUBMIT||e.event_type===P.FORM_SUBMIT_RESULT?"form_submit":"custom"},getFormStateKey:function(e,t){return e||t||"unknown_form"},ensureFormState:function(e,t,n){var r=this.getFormStateKey(t,n);return e.formStateMap.has(r)||e.formStateMap.set(r,{formId:t||r,pageUrl:n||"",touchedFieldIds:new Set,requiredFieldIds:new Set,changedFieldIds:new Set,focusPath:[],zigzagHits:0,hasSuccessSubmit:!1,reportedZigzag:!1,reportedUncompleted:!1}),e.formStateMap.get(r)},recordFormTouch:function(e,t){var n,e=this.ensureFormState(e,null==(e=null==t?void 0:t.data)?void 0:e.form_id,null==t?void 0:t.page_url),r=String((null==(r=null==t?void 0:t.data)?void 0:r.field_id)||"");return r&&(e.touchedFieldIds.add(r),!0===(null==(n=t.data)?void 0:n.is_required)&&e.requiredFieldIds.add(r),t.event_type===P.FORM_CHANGE)&&e.changedFieldIds.add(r),null!=t&&t.page_url&&(e.pageUrl=t.page_url),e},trackFormFocus:function(e,t){var n,r=t,i=String((null==(i=null==r?void 0:r.data)?void 0:i.field_id)||"");i&&((n=this.recordFormTouch(e,r)).focusPath.push(i),12<n.focusPath.length&&n.focusPath.shift(),e.focusStartMap.set(i,{timestamp:t.timestamp||Date.now(),eventId:t.event_id,formId:null==(n=null==r?void 0:r.data)?void 0:n.form_id,pageUrl:null==r?void 0:r.page_url}))},trackFormChangeAndZigzag:function(e,t,n){var r,i,o,a,s;n.event_type!==P.FORM_CHANGE?n.event_type!==P.FORM_FOCUS||(s=(i=this.recordFormTouch(t,r=n)).focusPath).length<4||i.reportedZigzag||(o=(s=s.slice(-4))[0],a=s[1],!o)||!a||o===a||o!==s[2]||a!==s[3]||i.changedFieldIds.size<2||(i.zigzagHits+=1,s=null!=(a=null==(o=t.config.form)?void 0:o.zigzagMinCount)?a:2,i.zigzagHits<s)||(i.reportedZigzag=!0,null==(o=e.reportStruggle))||o.call(e,{type:"form_zigzag",ownerType:"form",ownerKey:i.formId,pageUrl:i.pageUrl,formId:i.formId,fieldId:String((null==(a=null==r?void 0:r.data)?void 0:a.field_id)||""),triggerEventId:r.event_id,relatedEventIds:[r.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{zigzag_hits:i.zigzagHits,changed_field_count:i.changedFieldIds.size}}):this.recordFormTouch(t,n)},trackFormSubmitResult:function(e,t){t.event_type!==P.FORM_SUBMIT&&t.event_type!==P.FORM_SUBMIT_RESULT||((e=this.recordFormTouch(e,t)).lastSubmitEventId=t.event_id,t.event_type!==P.FORM_SUBMIT_RESULT)||"success"===(null==(t=null==(t=t.data)?void 0:t.event_properties)?void 0:t.status)&&(e.hasSuccessSubmit=!0)},reportPendingUncompletedForms:function(t,n,r){var i=this;n.formStateMap.forEach(function(e){i.tryReportUncompletedForm(t,n,e,r)})},tryReportUncompletedForm:function(e,t,n,r){var i,o,a,s;n.reportedUncompleted||n.hasSuccessSubmit||0===n.touchedFieldIds.size||(a=0<(o=n.requiredFieldIds.size)?o:n.touchedFieldIds.size)<=0||(a=n.changedFieldIds.size/a)<(s=null!=(s=null==(s=t.config.form)?void 0:s.incompleteMinFieldRatio)?s:.3)||(n.reportedUncompleted=!0,null==(i=e.reportStruggle))||i.call(e,{type:"uncompleted_form",ownerType:"form",ownerKey:n.formId,pageUrl:n.pageUrl,formId:n.formId,triggerEventId:n.lastSubmitEventId,relatedEventIds:n.lastSubmitEventId?[n.lastSubmitEventId]:undefined,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{touched_field_count:n.touchedFieldIds.size,changed_field_count:n.changedFieldIds.size,required_field_count:o,changed_ratio:Number(a.toFixed(4)),threshold_ratio:s}})},tryReportLongFocusTime:function(e,t,n){var r,i,o,a,s=String((null==(s=null==n?void 0:n.data)?void 0:s.field_id)||"");s&&(i=t.focusStartMap.get(s))&&(t.focusStartMap["delete"](s),o=null!=(o=null==(o=t.config.form)?void 0:o.longFocusThresholdMs)?o:2e4,(a=Math.max((n.timestamp||Date.now())-i.timestamp,0))<o||null==(r=e.reportStruggle)||r.call(e,{type:"long_focus_time",ownerType:"field",ownerKey:s,pageUrl:(null==n?void 0:n.page_url)||i.pageUrl,formId:(null==(e=null==n?void 0:n.data)?void 0:e.form_id)||i.formId,fieldId:s,triggerEventId:n.event_id,relatedEventIds:[i.eventId||"",n.event_id].filter(Boolean),detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{focus_duration_ms:a,threshold_ms:o}}))},tryReportErrorClick:function(e,t,n){var r,i,o;t.recentClicks.length&&(i=null!=(o=(t.config.click||ZO.click).errorClickWindowMs)?o:3e3,o=El(t.recentClicks).reverse().find(function(e){return 0<=n.timestamp-e.timestamp&&n.timestamp-e.timestamp<=i}))&&null!=(r=e.reportStruggle)&&r.call(e,{type:"error_click",ownerType:"element",ownerKey:o.ownerKey,pageUrl:o.pageUrl||n.page_url,triggerEventId:o.eventId,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{errorEventType:n.event_type}})},tryReportSlowPage:function(e,t,n){var r,i,o,a=t.config.performance||ZO.performance;a.enabled&&(i=(null==(i=n.data)?void 0:i.measurements)||{},r=Number(i.lcp||0),i=Number(i.inp||0),o=null!=(o=a.slowPageLcpThreshold)?o:4e3,a=null!=(a=a.slowPageInpThreshold)?a:500,o<=r||a<=i)&&null!=(o=e.reportStruggle)&&o.call(e,{type:"slow_page",ownerType:"page",ownerKey:n.page_url||("undefined"!=typeof window?window.location.href:""),pageUrl:n.page_url,triggerEventId:n.event_id,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{lcp:r,inp:i,sourceEventType:n.event_type}})},tryReportFormValidationError:function(e,t,n){var r,i,o,a,s=(null==(s=null==n?void 0:n.data)?void 0:s.event_properties)||{},u=(null==n?void 0:n.data)||{};"fail"===String((null==s?void 0:s.status)||(null===(i=u)?void 0:i.status)||"")&&(i=String((null==s?void 0:s.field_id)||(null===(i=u)?void 0:i.field_id)||""),o=String((null==s?void 0:s.form_id)||(null===(o=u)?void 0:o.form_id)||""),a=i||o||(null==n?void 0:n.page_url)||"unknown",null!=(r=e.reportStruggle))&&r.call(e,{type:"form_validation_error",ownerType:i?"field":"form",ownerKey:a,pageUrl:null==n?void 0:n.page_url,formId:o,fieldId:i,triggerEventId:n.event_id,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{validation_code:(null==s?void 0:s.validation_code)||(null===(e=u)?void 0:e.validation_code),validation_message:null==(a=null==n?void 0:n.data)?void 0:a.validation_message,sourceEventType:n.event_type}})},tryReportBackForward:function(e,t,n){var r,i,o=t.config.navigation||ZO.navigation;o.enabled&&o.backForwardAsStruggle&&(n=null==(n=null==(o=n)?void 0:o.data)?void 0:n.event_properties,"back"!==(i=String((null==n?void 0:n.navigation_type)||""))&&"forward"!==i||null==(r=e.reportStruggle)||r.call(e,{type:"back_forward",ownerType:"page",ownerKey:String((null==n?void 0:n.to_page)||"")||(null==o?void 0:o.page_url)||"unknown",pageUrl:null==o?void 0:o.page_url,triggerEventId:o.event_id,relatedEventIds:[o.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{navigation_type:i,from_page:null==n?void 0:n.from_page,to_page:null==n?void 0:n.to_page}}))},tryReportCustomStruggle:function(n,r,i){var e=r.config.custom||ZO.custom;e.enabled&&"function"==typeof e.detector&&(e=e.detector({event:i,tdem:n}),(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t,e=A(A({},e),{type:(null==e?void 0:e.type)||"custom_struggle",ownerType:(null==e?void 0:e.ownerType)||"app",ownerKey:(null==e?void 0:e.ownerKey)||i.page_url||"custom",ruleVersion:(null==e?void 0:e.ruleVersion)||r.config.ruleVersion,payloadAllowlist:(null==e?void 0:e.payloadAllowlist)||r.config.payloadAllowlist,detectionSource:(null==e?void 0:e.detectionSource)||"custom"});null!=(t=n.reportStruggle)&&t.call(n,e)}))},cleanupInstance:function(e){var t=this.instanceStates.get(e);t&&!t.closing&&(t.closing=!0,this.closeClickGroups(t,!0),t.onEventCreated&&e.lifeCycle.remove("tdemEventCreated",t.onEventCreated),t.onDestroy&&e.lifeCycle.remove("destroy",t.onDestroy),t.clickDetector&&t.clickDetector.stop(),t.pendingDeadClicks.forEach(function(e){clearTimeout(e.timeout)}),t.pendingDeadClicks.clear(),this.reportPendingUncompletedForms(e,t,"destroy"),t.focusStartMap.clear(),t.formStateMap.clear(),t.removeDomListeners.forEach(function(e){return e()}),t.removeDomListeners=[],this.instanceStates["delete"](e),0===this.instanceStates.size)&&this.restoreWindowOpenHook()},destroy:function(){var n=this.option||this;n.instanceStates.forEach(function(e,t){n.cleanupInstance(t)}),n.instanceStates.clear(),n.restoreWindowOpenHook()}})),QO=function(e,t){return void 0===t&&(t=2),"number"==typeof e&&Number.isFinite(e)?(t=Math.pow(10,Math.max(0,Math.min(12,Math.floor(t)))),Math.round(e*t)/t):0},ex=function(e,t){return void 0===t&&(t=2048),"string"==typeof e&&e.trim()?e.trim().slice(0,Math.max(1,Math.floor(t))):"unknown"},tx={enabled:!0,threshold:2e3,noResponseThreshold:5e3,sampleRate:1},nx=new Map,rx=function(e){var t,n=nx.get(e);if(n){n.destroyed=!0;try{null!=(t=n.observer)&&t.disconnect()}catch(C){}n.observer=null,n.lagRecords.length=0,e.lifeCycle.remove("destroy",n.onDestroy),nx["delete"](e)}},n=new u({name:"lagMonitor",onNewTdem:function(o,e){e=e,void 0===(r=null!=(n=o.config)&&n.debug?function(e,t){"undefined"!=typeof console&&console.warn&&console.warn("[TDEM] "+e+": "+t+", fallback applied")}:function(){return undefined})&&(r=function(){return undefined});var r,t,n,a=!1===e?A(A({},tx),{enabled:!1}):!0===e||e===undefined?A({},tx):!e||"object"!==T(e)||Array.isArray(e)?(r("lagMonitor","invalid_type"),A({},tx)):(n=A({},tx),e.enabled!==undefined&&("boolean"==typeof e.enabled?n.enabled=e.enabled:r("lagMonitor.enabled","invalid_type")),n.threshold=(t=function(e,t,n){return e===undefined?n:"number"!=typeof e?(r(t,"invalid_type"),n):Number.isFinite(e)?e<=0?(r(t,"out_of_range"),n):e:(r(t,"invalid_number"),n)})(e.threshold,"lagMonitor.threshold",tx.threshold),n.noResponseThreshold=t(e.noResponseThreshold,"lagMonitor.noResponseThreshold",tx.noResponseThreshold),e.sampleRate!==undefined&&("number"!=typeof e.sampleRate?r("lagMonitor.sampleRate","invalid_type"):Number.isFinite(e.sampleRate)?e.sampleRate<0||1<e.sampleRate?r("lagMonitor.sampleRate","out_of_range"):n.sampleRate=e.sampleRate:r("lagMonitor.sampleRate","invalid_number")),n.noResponseThreshold<=n.threshold&&(n.noResponseThreshold=Math.max(5e3,n.threshold+1),r("lagMonitor.noResponseThreshold","relation_conflict")),n);if(a.enabled&&"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")&&(i=a.sampleRate,Math.random()<i)){var i,s=[],u={observer:null,lagRecords:s,sampled:!0,destroyed:!1,onDestroy:function(){return rx(o)}};nx.set(o,u),o.lifeCycle.on("destroy",u.onDestroy);try{u.observer=new PerformanceObserver(function(e){if(!u.destroyed)try{e.getEntries().forEach(function(e){var t,n,r,i;u.destroyed||e.duration<=a.threshold||(t=null==(t=e.scripts)?void 0:t[0],e={name:e.name,timestamp:Date.now(),entryType:e.entryType,startTime:e.startTime,duration:e.duration,invoker:null==t?void 0:t.invoker,sourceURL:null==t?void 0:t.sourceURL},s.push(e),100<s.length&&s.shift(),t=o,r=(e=e).duration>=(n=a).noResponseThreshold,i=tg(t),e={event_id:Ac(),event_type:r?P.NO_RESPONSE:P.LAG_DETECTED,event_category:r?Ic.ERROR:Ic.PERFORMANCE,timestamp:Date.now(),page_url:(null==(r=t.getOriginFrom)?void 0:r.call(t))||window.location.href,data:A(A({measurements:{duration:QO(e.duration),start_time_ms:QO(e.startTime),lag_threshold_ms:n.threshold,no_response_threshold_ms:n.noResponseThreshold},event_properties:{entry_type:e.entryType||"long-animation-frame",source_url:ex(e.sourceURL,2048),invoker:ex(e.invoker,256)}},i?{replay_id:i}:{}),{tags:{environment:(null==(r=t.config)?void 0:r.env)||"production",version:String((null==(n=t.config)?void 0:n.version)||"")}})},t.reportTDEMEvent(e))})}catch(i){}}),u.observer.observe({type:"long-animation-frame",buffered:!1})}catch(N){rx(o)}}},getLagRecords:function(e){return El((null==(e=nx.get(e))?void 0:e.lagRecords)||[])},destroy:function(){Array.from(nx.keys()).forEach(rx)}}),ix={enabled:!0,containers:["body","html","#app","#root"],ignoreContainers:[],containerMatchers:{tagName:["body","html"],id:["app","root"],className:[]},ignoreMatchers:{tagName:[],id:[],className:[]},detectStartPosition:{x:0,y:0},emptyElementsPercent:70,sameElementsPercent:70,debounceDuration:2e3,everySideSampleNumber:9,disableSameElementsCheck:!0,ignoreElesWhenDomChange:[],reDetectInterval:2e3,samePointDepth:5,customBlankScreenDector:null},ox=["canvas","img","svg","iframe"],ax=(0,function(e){var t=e.nodeName.toLowerCase(),n=e.id||"",e="string"==typeof(e=e).className?e.className:e.getAttribute("class")||"",r=e.split(" ").filter(Boolean).map(function(e){return"."+e}).join("");return{tagName:t,id:n,className:e,selector:t+(n?"#"+n:"")+r}}),sx=function(t,e){var n;if(null!=(n=null==e?void 0:e.tagName)&&n.some(function(e){return t.tagName===e.toLowerCase().trim()}))return!0;if(t.id&&null!=(n=null==e?void 0:e.id)&&n.some(function(e){return t.id===e.trim()}))return!0;if(t.className&&null!=(n=null==e?void 0:e.className)&&n.length){var r=t.className.split(" ").map(function(e){return e.trim()}).filter(Boolean);if(e.className.some(function(e){return r.includes(e.trim())}))return!0}return!1},ux=function(t,e){return e.some(function(e){return t.selector.includes(e)})},lx=function(e){return{tagName:El(e.tagName||[]),id:El(e.id||[]),className:El(e.className||[])}},cx=function(){return A(A({},ix),{containers:El(ix.containers),ignoreContainers:El(ix.ignoreContainers),containerMatchers:lx(ix.containerMatchers),ignoreMatchers:lx(ix.ignoreMatchers),detectStartPosition:A({},ix.detectStartPosition),ignoreElesWhenDomChange:El(ix.ignoreElesWhenDomChange)})},dx=function(e,t){void 0===t&&(t=2);t=Math.pow(10,t);return Math.round(e*t)/t},fx=new Map,hx=function(e){var t,n=fx.get(e);n&&(n.destroyed=!0,n.detectTimer&&clearTimeout(n.detectTimer),n.bodyWaitTimer&&clearTimeout(n.bodyWaitTimer),null!==n.idleCallbackId&&"function"==typeof window.cancelIdleCallback&&(window.cancelIdleCallback(n.idleCallbackId),n.idleCallbackId=null),null!==n.bodyWaitFrame&&(window.cancelAnimationFrame||clearTimeout)(n.bodyWaitFrame),null!=(t=n.observer)&&t.disconnect(),e.lifeCycle.remove("errorOccurred",n.onErrorOccurred),e.lifeCycle.remove("destroy",n.onDestroy),window.removeEventListener("pagehide",n.handlePageHide),window.removeEventListener("beforeunload",n.handleBeforeUnload),document.removeEventListener("visibilitychange",n.handleVisibilityChange),fx["delete"](e))},RC=new u({name:"blankScreen",onNewTdem:function(_,e){var S,E,C,R,O,t,x,n,r,i,o,a,s,u,l,c,d,f,h,p,m,g=this;"undefined"!=typeof document&&document.elementsFromPoint&&(e=e,void 0===(s=null!=(m=_.config)&&m.debug?function(e,t){"undefined"!=typeof console&&console.warn&&console.warn("[TDEM] "+e+": "+t+", fallback applied")}:function(){return undefined})&&(s=function(){return undefined}),m=cx(),(S=!1===e?A(A({},m),{enabled:!1}):!0===e||e===undefined?m:!e||"object"!==T(e)||Array.isArray(e)?(s("blankScreen","invalid_type"),m):(u="containerMatchers"in(e=e)||"ignoreMatchers"in e,p="containers"in e||"ignoreContainers"in e,l=function(e,t,n,r){return e===undefined?El(t):Array.isArray(e)&&e.length<=100&&e.every(function(e){return"string"==typeof e&&0<e.trim().length&&e.trim().length<=r})?e.map(function(e){return e.trim()}):(s(n,"invalid_array"),El(t))},h=function(e,t,n){return e===undefined?lx(t):!e||"object"!==T(e)||Array.isArray(e)?(s(n,"invalid_type"),lx(t)):{tagName:l((e=e).tagName,t.tagName||[],n+".tagName",128),id:l(e.id,t.id||[],n+".id",128),className:l(e.className,t.className||[],n+".className",128)}},c=function(e,t,n,r){return e===undefined?t:"number"!=typeof e?(s(n,"invalid_type"),t):Number.isFinite(e)?r(e)?e:(s(n,"out_of_range"),t):(s(n,"invalid_number"),t)},d=function(e,t,n,r,i){return c(e,t,n,function(e){return Number.isInteger(e)&&r<=e&&e<=i})},f=cx(),e.enabled!==undefined&&("boolean"==typeof e.enabled?f.enabled=e.enabled:s("blankScreen.enabled","invalid_type")),f.containers=l(e.containers,m.containers,"blankScreen.containers",256),f.ignoreContainers=l(e.ignoreContainers,m.ignoreContainers,"blankScreen.ignoreContainers",256),f.containerMatchers=h(e.containerMatchers,m.containerMatchers,"blankScreen.containerMatchers"),f.ignoreMatchers=h(e.ignoreMatchers,m.ignoreMatchers,"blankScreen.ignoreMatchers"),p&&!u&&(f.containerMatchers={tagName:[],id:[],className:[]},f.ignoreMatchers={tagName:[],id:[],className:[]}),(h=e.detectStartPosition)===undefined||h&&"object"===T(h)&&!Array.isArray(h)?f.detectStartPosition={x:c((p=h||{}).x,m.detectStartPosition.x,"blankScreen.detectStartPosition.x",function(e){return 0<=e}),y:c(p.y,m.detectStartPosition.y,"blankScreen.detectStartPosition.y",function(e){return 0<=e})}:s("blankScreen.detectStartPosition","invalid_type"),f.emptyElementsPercent=c(e.emptyElementsPercent,m.emptyElementsPercent,"blankScreen.emptyElementsPercent",function(e){return 0<e&&e<=100}),f.sameElementsPercent=c(e.sameElementsPercent,m.sameElementsPercent,"blankScreen.sameElementsPercent",function(e){return 0<e&&e<=100}),f.debounceDuration=c(e.debounceDuration,m.debounceDuration,"blankScreen.debounceDuration",function(e){return 0<=e}),f.reDetectInterval=c(e.reDetectInterval,m.reDetectInterval,"blankScreen.reDetectInterval",function(e){return 0<e}),f.everySideSampleNumber=d(e.everySideSampleNumber,m.everySideSampleNumber,"blankScreen.everySideSampleNumber",2,50),f.samePointDepth=d(e.samePointDepth,m.samePointDepth,"blankScreen.samePointDepth",1,20),e.disableSameElementsCheck!==undefined&&("boolean"==typeof e.disableSameElementsCheck?f.disableSameElementsCheck=e.disableSameElementsCheck:s("blankScreen.disableSameElementsCheck","invalid_type")),f.ignoreElesWhenDomChange=l(e.ignoreElesWhenDomChange,m.ignoreElesWhenDomChange,"blankScreen.ignoreElesWhenDomChange",256),e.customBlankScreenDector!==undefined&&(null===e.customBlankScreenDector||"function"==typeof e.customBlankScreenDector?f.customBlankScreenDector=e.customBlankScreenDector:s("blankScreen.customBlankScreenDector","invalid_type")),f)).enabled)&&(u=function(e,t,n){e=4*e-3;return{totalSamplePoints:e,whitePointThreshold:Math.floor(e*t/100),samePointThreshold:Math.floor(e*n/100)}}(S.everySideSampleNumber,S.emptyElementsPercent,S.sameElementsPercent),E=u.totalSamplePoints,C=u.whitePointThreshold,R=u.samePointThreshold,O={observer:null,detectTimer:null,bodyWaitTimer:null,bodyWaitFrame:null,idleCallbackId:null,destroyed:!1,initialDetectionPending:!0,incidentStatus:"healthy",preDetectResult:null,triggerType:"dom_change",onErrorOccurred:function(){return undefined},onDestroy:function(){return hx(_)},handlePageHide:function(){return undefined},handleBeforeUnload:function(){return undefined},handleVisibilityChange:function(){return undefined}},fx.set(_,O),t=function(){return _l(g,void 0,void 0,function(){var l,c,d,f,h,p,m,g,v,y,w,b,k;return Sl(this,function(e){var t,n,r,i,o,a,s,u;if(!O.destroyed)try{if("initial_load"===O.triggerType&&(O.initialDetectionPending=!1),l=window.innerHeight,c=window.innerWidth,d=S.detectStartPosition,f=d.x,h=d.y,c<=f||l<=h)return[2];if(p=[],g=m=0,function(e,t,n,r){for(var i=r.x,o=r.y,a=i+(e-i)/2,s=o+(t-o)/2,u=n+1,l=[],c=1;c<u;c+=1){var d=i+(e-i)*c/u,f=o+(t-o)*c/u;l.push({x:d,y:s}),c!==u/2&&l.push({x:a,y:f},{x:d,y:f},{x:d,y:t-f})}return l}(c,l,S.everySideSampleNumber,S.detectStartPosition).forEach(function(e){a=e.x,s=e.y,e=document.elementsFromPoint(a,s),e=(u=function(e){var t=e[0];if(t&&null!==t.shadowRoot){t=(null==(t=t.shadowRoot)?void 0:t.elementsFromPoint(a,s))||[];if(t.length>e.length)return u(t)}return e})(e),t=S.containers,n=S.ignoreContainers,r=S.containerMatchers,l=S.ignoreMatchers,e=e.map(ax),o=e.map(function(e){return e.selector});var t,n,r,i,o,a,s,u,l=(e=e[0])?(r=(i=!(!r||!(null!=(i=r.tagName)&&i.length||null!=(i=r.id)&&i.length||null!=(i=r.className)&&i.length)))?sx(e,r):ux(e,t),t=i?sx(e,l):ux(e,n),{isWhitePoint:r&&!t,selectorPointers:o}):{isWhitePoint:!1,selectorPointers:o};l.isWhitePoint&&(m+=1),p.push(l.selectorPointers)}),v=C<=m,y=!1,S.disableSameElementsCheck||(w=p.map(function(e){return e.slice(0,S.samePointDepth)}),o={},w.map(function(e){return e.join(" < ")}).forEach(function(e){o[e]=o[e]?o[e]+1:1}),a=Object.keys(o).map(function(e){return[e,o[e]]}).sort(function(e,t){return t[1]-e[1]})[0]||["",0],s=a[0],b={samePointerMap:o,maximumSamePointerClass:s,maximumSamePointerCounter:a[1]},y=R<=(g=b.maximumSamePointerCounter)&&(u=b.maximumSamePointerClass,!ox.some(function(e){return u.startsWith(e)}))),k=!1,S.customBlankScreenDector)try{k=!0===S.customBlankScreenDector()}catch(Le){k=!1}if(!(v||y||k))return O.incidentStatus="healthy",O.preDetectResult=null,[2];if("reported"===O.incidentStatus)return[2];if("suspect"===O.incidentStatus&&O.preDetectResult)return t=O.preDetectResult,r=t.customTriggered?"custom":t.whitePointTriggered&&t.sameElementTriggered?"both":t.whitePointTriggered?"white_point":"same_element",i=tg(_),t={event_id:Ac(),event_type:P.BLANK_SCREEN,event_category:Ic.ERROR,timestamp:Date.now(),page_url:(null==(n=_.getOriginFrom)?void 0:n.call(_))||window.location.href,data:A(A({measurements:{white_point_count:t.whitePointCount,same_point_count:t.samePointCount,total_sample_points:E,white_point_threshold:C,same_point_threshold:R,white_point_ratio:dx(t.whitePointCount/E,6),same_point_ratio:dx(t.samePointCount/E,6),viewport_width_px:Math.max(0,Math.round(window.innerWidth)),viewport_height_px:Math.max(0,Math.round(window.innerHeight))},event_properties:{trigger_reason:r,trigger_type:t.triggerType,detection_method:t.customTriggered?"custom_detector":"viewport_sampling",same_elements_check_enabled:String(!S.disableSameElementsCheck)}},i?{replay_id:i}:{}),{tags:{environment:(null==(n=_.config)?void 0:n.env)||"production",version:String((null==(r=_.config)?void 0:r.version)||"")}})},_.reportTDEMEvent(t),O.incidentStatus="reported",O.preDetectResult=null,[2];O.preDetectResult={whitePointCount:m,samePointCount:g,whitePointTriggered:v,sameElementTriggered:y,customTriggered:k,triggerType:O.triggerType},O.incidentStatus="suspect",O.detectTimer=setTimeout(function(){O.detectTimer=null,x()},S.reDetectInterval)}catch(Le){}return[2]})})},x=function(){return _l(g,void 0,void 0,function(){return Sl(this,function(e){switch(e.label){case 0:if(O.destroyed)return[2];if("function"!=typeof window.requestIdleCallback)return[3,5];e.label=1;case 1:return e.trys.push([1,2,,4]),O.idleCallbackId=window.requestIdleCallback(function(e){O.idleCallbackId=null,O.destroyed||(0<e.timeRemaining()?t():O.detectTimer=setTimeout(function(){O.detectTimer=null,t()},0))}),[3,4];case 2:return e.sent(),[4,t()];case 3:return e.sent(),[3,4];case 4:return[3,7];case 5:return[4,t()];case 6:e.sent(),e.label=7;case 7:return[2]}})})},n=function(e){void 0===e&&(e="dom_change"),O.destroyed||"suspect"===O.incidentStatus||"initial_load"!==e&&O.initialDetectionPending||(O.triggerType=e,O.detectTimer&&clearTimeout(O.detectTimer),O.detectTimer=setTimeout(function(){O.detectTimer=null,x()},S.debounceDuration))},O.onErrorOccurred=function(){return n("error")},_.lifeCycle.on("errorOccurred",O.onErrorOccurred),_.lifeCycle.on("destroy",O.onDestroy),r=function(){!O.destroyed&&document.body&&(O.observer=new MutationObserver(function(e){var t=null==(t=e[0])?void 0:t.target;if(1===e.length&&t instanceof Element){e=ax(t).selector;if(S.ignoreElesWhenDomChange.includes(e))return}n("dom_change")}),O.observer.observe(document.body,{childList:!0,subtree:!0}))},document.body?r():(i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=function(){document.body?(O.bodyWaitTimer&&clearTimeout(O.bodyWaitTimer),r()):O.bodyWaitFrame=i(o)},O.bodyWaitFrame=i(o),O.bodyWaitTimer=setTimeout(function(){null!==O.bodyWaitFrame&&((window.cancelAnimationFrame||clearTimeout)(O.bodyWaitFrame),O.bodyWaitFrame=null)},1e4)),O.handlePageHide=a=function(){O.destroyed||(O.detectTimer&&clearTimeout(O.detectTimer),O.triggerType="page_state",O.preDetectResult&&(O.preDetectResult.triggerType="page_state"),t())},O.handleBeforeUnload=a,O.handleVisibilityChange=function(){"hidden"===document.visibilityState&&a()},window.addEventListener("pagehide",O.handlePageHide),window.addEventListener("beforeunload",O.handleBeforeUnload),document.addEventListener("visibilitychange",O.handleVisibilityChange),n("initial_load"))},destroy:function(){Array.from(fx.keys()).forEach(hx)}}),px={enabled:!0,enableMemoryReport:!0,enableOOMReport:!0,oomThreshold:100,memoryReportInterval:6e4,oomCheckInterval:1e4,monitorPages:[],sampleRate:1},mx=new Map,gx=function(e,t,n){null!=(e=null==e?void 0:e.config)&&e.debug&&"undefined"!=typeof console&&console.warn("[TDEM] "+t+": "+n+", fallback applied")},vx=function(e){return"number"==typeof e&&Number.isFinite(e)},yx=function(){var e;try{var t=null==(e=window.performance)?void 0:e.memory;return!t||!vx(t.usedJSHeapSize)||!vx(t.totalJSHeapSize)||!vx(t.jsHeapSizeLimit)||t.usedJSHeapSize<0||t.totalJSHeapSize<0||t.jsHeapSizeLimit<0?null:{used:t.usedJSHeapSize,total:t.totalJSHeapSize,limit:t.jsHeapSizeLimit,ratio:0<t.jsHeapSizeLimit?Math.min(1,t.usedJSHeapSize/t.jsHeapSizeLimit):0}}catch(_){return null}},wx=function(e){var t=mx.get(e);t&&(t.destroyed=!0,t.reportTimer&&clearInterval(t.reportTimer),t.oomCheckTimer&&clearInterval(t.oomCheckTimer),t.records.length=0,e.lifeCycle.remove("destroy",t.onDestroy),"undefined"!=typeof window&&(window.removeEventListener("pagehide",t.onPageExit),window.removeEventListener("beforeunload",t.onPageExit)),mx["delete"](e))},bx=function(e,t,n){var r,i,o;t.destroyed||(i=yx())&&(t.records.push(i),50<t.records.length&&t.records.shift(),o=tg(e),n={event_id:Ac(),event_type:n,event_category:Ic.PERFORMANCE,timestamp:Date.now(),page_url:(null==(r=e.getOriginFrom)?void 0:r.call(e))||window.location.href,data:A(A({measurements:A({used_js_heap_size_bytes:i.used,total_js_heap_size_bytes:i.total,js_heap_size_limit_bytes:i.limit,usage_ratio:i.ratio},n===P.MEMORY_OOM?{oom_threshold_mb:t.config.oomThreshold}:{}),event_properties:{detection_source:"performance_memory"}},o?{replay_id:o}:{}),{tags:{environment:(null==(r=e.config)?void 0:r.env)||"production",version:String((null==(i=e.config)?void 0:i.version)||"")}})},e.reportTDEMEvent(n))},m=new u({name:"memoryMonitor",onNewTdem:function(n,t){r=n;var r,i,o,a,e,s,u=!1===(e=t)?A(A({},px),{enabled:!1}):(i=e&&"object"===T(e)?e:{},e===undefined||!0===e||e&&"object"===T(e)&&!Array.isArray(e)||gx(r,"memoryMonitor","invalid_type"),o=A(A({},px),{oomThreshold:0<(e=(null==(e=yx())?void 0:e.limit)||0)?Math.round(e/1024/1024*.9):100}),["enabled","enableMemoryReport","enableOOMReport"].forEach(function(e){i[e]!==undefined&&("boolean"==typeof i[e]?o[e]=i[e]:gx(r,"memoryMonitor."+e,"invalid_type"))}),["oomThreshold","memoryReportInterval","oomCheckInterval"].forEach(function(e){var t=i[e];t!==undefined&&(vx(t)&&0<t?o[e]=t:gx(r,"memoryMonitor."+e,vx(t)?"out_of_range":"invalid_number"))}),i.sampleRate!==undefined&&(vx(i.sampleRate)&&0<=i.sampleRate&&i.sampleRate<=1?o.sampleRate=i.sampleRate:gx(r,"memoryMonitor.sampleRate","out_of_range")),i.monitorPages!==undefined&&(Array.isArray(i.monitorPages)&&i.monitorPages.length<=100&&i.monitorPages.every(function(e){return"string"==typeof e&&!!e||e instanceof RegExp})?o.monitorPages=El(i.monitorPages):gx(r,"memoryMonitor.monitorPages","invalid_value")),o);!u.enabled||!function(){var e;try{return"undefined"!=typeof window&&null!=(e=window.performance)&&e.memory}catch(t){}}()||Math.random()>=u.sampleRate||(e=u.monitorPages).length&&(s="undefined"==typeof window?"":window.location.href,!e.some(function(e){return"string"==typeof e?s.includes(e):(e.lastIndex=0,e.test(s))}))||(a={config:u,reportTimer:null,oomCheckTimer:null,lastOOMTime:0,records:[],destroyed:!1,onDestroy:function(){return wx(n)},onPageExit:function(){return wx(n)}},mx.set(n,a),n.lifeCycle.on("destroy",a.onDestroy),"undefined"!=typeof window&&(window.addEventListener("pagehide",a.onPageExit),window.addEventListener("beforeunload",a.onPageExit)),u.enableMemoryReport&&(a.reportTimer=setInterval(function(){return bx(n,a,P.MEMORY_USAGE)},u.memoryReportInterval)),u.enableOOMReport&&(a.oomCheckTimer=setInterval(function(){var e=yx(),t=Date.now();e&&e.used/1024/1024>u.oomThreshold&&3e5<t-a.lastOOMTime&&(a.lastOOMTime=t,bx(n,a,P.MEMORY_OOM))},u.oomCheckInterval)))},destroy:function(){Array.from(mx.keys()).forEach(wx)}});function kx(e,t){try{var n={projectKey:e,document:t,timestamp:Date.now()};localStorage.setItem("TDEM_SAMPLE_CONFIG",JSON.stringify(n))}catch(ww){}}function _x(e){var t;try{var n,r=localStorage.getItem("TDEM_SAMPLE_CONFIG");return r?!((n=JSON.parse(r)).projectKey!==e||6048e5<=Date.now()-n.timestamp)&&null!=(t=n.document)&&t.event?n.document:null:null}catch(L){return null}}function Sx(e,t){try{var n=e.config.sessionReplay,r=t,i=(!1===n&&(r=A(A({},t),{replay:A(A({},t.replay),{enabled:!1})})),e._tdemSampleConfig=r,e._tdemSampleGate||null);null!=i&&i.decide(!0),o=e,u=(null==r?void 0:r.replay)||{},l={},"boolean"==typeof u.enabled&&(l.enabled=u.enabled),u.experience_sample_rate!==undefined&&(l.experience_sample_rate=Number(u.experience_sample_rate)),"boolean"==typeof u.error_traceback&&(l.error_traceback=u.error_traceback),u.error_sample_rate!==undefined&&(l.error_sample_rate=Number(u.error_sample_rate)),a=l,a=JO(o.config.sessionReplay,a),o._effectiveReplayPolicy=a,o._replaySampled=a.enabled,"function"==typeof(s=null==(s=null==(o=null==(s=null==(o=o.constructor.installedPlugins)?void 0:o.find)?void 0:s.call(o,function(e){return e&&"sessionReplay"===e.name}))?void 0:o.option)?void 0:s.applyEffectivePolicy)&&s.call(o.option,a)}catch(De){console.warn("[TDEM] sample config apply failed",De),e._tdemSampleConfig=_p}var o,a,s,u,l}function Ex(e,t){var n=e.config.sampleConfigPreference||"remote-first",e=e.config.sampleConfig;n=n||"remote-first";try{return"local-first"===n?e||t||_p:t||e||_p}catch(ww){return e||_p}}je=new u({name:"tdemConfig",onNewTdem:function(e){try{var t=e._prefetchedConfigData;null!=t&&t.event?Sx(e,Ex(e,t)):Sx(e,Ex(e,null)),function(a){var s;_l(this,void 0,void 0,function(){var n,r,i,o;return Sl(this,function(e){switch(e.label){case 0:if(n=a.config.id,null!=(r=a._prefetchedConfigData)&&r.event)return delete a._prefetchedConfigData,i=Ex(a,r),n&&kx(n,i),Sx(a,i),[2];if(!n)return Sx(a,Ex(a,null)),[2];if(t=(a.config.url||"").replace(/\/+$/,""),!(r=t?t+"/api/v1/sample-config":""))return Sx(a,Ex(a,_x(n))),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.transportRequest({kind:"config",url:r,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:n})})];case 2:if(!(o=e.sent()).ok)throw new Error("HTTP "+o.status);if(0===(o="string"==typeof o.body?JSON.parse(o.body):o.body).code&&null!=(s=o.data)&&s.event)return i=Ex(a,o.data),kx(n,i),Sx(a,i),[2];throw new Error("API error: code="+o.code);case 3:return o=e.sent(),console.warn("[TDEM] Failed to fetch sample-config:",o),Sx(a,Ex(a,_x(n))),[3,4];case 4:return[2]}var t})})}(e)}catch(De){console.warn("[TDEM] tdemConfig init failed",De),Sx(e,_p)}}});$v.entryName="tdem-web-sdk",$v.use(Gr),$v.use(s),$v.use(i),$v.use(Vr),$v.use(Be),$v.use(Ut),$v.use(l),$v.use(We),$v.use(Ht),$v.use(r),$v.use(Ur),$v.use(a),$v.use(je),$v.use(ty),$v.use(uk),$v.use(n),$v.use(RC),$v.use(m),k["default"]=$v,k.registerCgiRequestFinalizer=ke,Object.defineProperty(k,"__esModule",{value:!0})});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).TDEM={})}(this,function(_){"use strict";function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function D(s){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){C(r,t,n,i,o,"next",e)}function o(e){C(r,t,n,i,o,"throw",e)}i(void 0)})}}function De(e,t,n){return e.apply(t,n)}function Le(e,t,n){t=j(t);var r=e,e=z()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n);if(!e||"object"!=typeof e&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=r))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t,n){var r;return z()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&K(t,n.prototype),t)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function k(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Me(e,t){var n,r,i,o,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=Y(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}function H(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ae(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach(function(e){F(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function q(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function V(){var p,m,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var i,o,a,s,u,l,c,d,f,t=t&&t.prototype instanceof v?t:v,t=Object.create(t.prototype);return G(t,"_invoke",(i=e,o=n,c=r||[],d=!1,f={p:l=0,n:0,v:p,a:h,f:h.bind(p,4),d:function(e,t){return a=e,s=0,u=p,f.n=t,g}},function(e,t,n){if(1<l)throw TypeError("Generator is already running");for(d&&1===t&&h(t,n),s=t,u=n;(m=s<2?p:u)||!d;){a||(s?(1<s&&(f.n=s<3?-1:u),h(s,u)):f.v=u);try{if(l=2,a){if(m=a[e=s?e:"next"]){if(!(m=m.call(a,u)))throw TypeError("iterator result is not an object");if(!m.done)return m;u=m.value,s<2&&(s=0)}else 1===s&&(m=a["return"])&&m.call(a),s<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=p}else if((m=(d=f.n<0)?u:i.call(o,f))!==g)break}catch(m){a=p,s=1,u=m}finally{l=1}}return{value:m,done:d}}),!0),t;function h(e,t){for(s=e,u=t,m=0;!d&&l&&!n&&m<c.length;m++){var n,r=c[m],i=f.p,o=r[2];3<e?(n=o===t)&&(u=r[(s=r[4])?5:s=3],r[4]=r[5]=p):r[0]<=i&&((n=e<2&&i<r[1])?(s=0,f.v=t,f.n=r[1]):i<o&&(n=e<3||r[0]>t||o<t)&&(r[4]=e,r[5]=t,f.n=o,s=0))}if(n||1<e)return g;throw d=!0,t}}var g={};function v(){}function i(){}function o(){}m=Object.getPrototypeOf;var e=[][t]?m(m([][t]())):(G(m={},t,function(){return this}),m),a=o.prototype=v.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,G(e,n,"GeneratorFunction")),e.prototype=Object.create(a),e}return G(a,"constructor",i.prototype=o),G(o,"constructor",i),G(o,n,i.displayName="GeneratorFunction"),G(a),G(a,n,"Generator"),G(a,t,function(){return this}),G(a,"toString",function(){return"[object Generator]"}),(V=function(){return{w:r,m:s}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(G=function(e,t,n,r){function i(t,n){G(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function J(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||Y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t,n,r){var i=U(j(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function Fe(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||Y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e){e=function(e){if("object"!=typeof e||!e)return e;var t;if("undefined"==typeof Symbol||void 0===(t=e[Symbol.toPrimitive]))return String(e);e=t.call(e,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==typeof e?e:e+""}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){var n;if(e)return"string"==typeof e?w(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}function Q(e){var n="function"==typeof Map?new Map:void 0;return(Q=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(DE){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return L(e,arguments,j(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),K(t,e)})(e)}var g=function(e){try{return!!e()}catch(w){return!0}},R=void 0,ee=void 0,v=(R({target:"Array",stat:!0},{isArray:ee}),void 0),te=v({}.toString),ne=v("".slice),re=function(e){return ne(te(e),8,-1)},ie=(Array.isArray,"object"==("undefined"==typeof document?"undefined":I(document))&&document.all),oe=void 0===ie&&ie!==undefined?function(e){return"function"==typeof e||e===ie}:function(e){return"function"==typeof e},W=function(e){return"object"==I(e)?null!==e:oe(e)},ae=function(e){return null===e||e===undefined},se=TypeError,ue=function(e){if(ae(e))throw new se("Can't call method on "+e);return e},le=Object,ce=function(e){return le(ue(e))},de=void 0,fe=(R({target:"Math",stat:!0},{trunc:de}),Math.ceil,function(e){e=+e;return e!=e||0==e?0:de(e)}),he=Math.min,pe=function(e){e=fe(e);return 0<e?he(e,9007199254740991):0},me=function(e){return pe(e.length)},ge=TypeError,ve=function(e){if(9007199254740991<e)throw new ge("Maximum allowed index exceeded");return e},O=void 0,ye=O.document,we=W(ye)&&W(ye.createElement),be=function(e){return we?ye.createElement(e):{}},f=void 0,ke=(f||g(function(){return 7!==Object.defineProperty(be("div"),"a",{get:function(){return 7}}).a}),f&&g(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})),_e=String,Se=TypeError,S=function(e){if(W(e))return e;throw new Se(_e(e)+" is not an object")},Ee=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Ce=Function.prototype.call,x=Ee?Ce.bind(Ce):function(){return Ce.apply(Ce,arguments)},Re=function(e,t){return arguments.length<2?(n=O[e],oe(n)?n:undefined):O[e]&&O[e][t];var n},Oe=v({}.isPrototypeOf),xe=String,Ie=function(e){try{return xe(e)}catch(w){return"Object"}},Te=TypeError,Ue=function(e){if(oe(e))return e;throw new Te(Ie(e)+" is not a function")},je=void 0,Be=!g(function(){Reflect.apply(function(){})}),Be=(R({target:"Reflect",stat:!0,forced:Be},{apply:function(e,t,n){return je(Ue(e),t,S(n))}}),Function.prototype),ze=Be.apply,Be=Be.call,We=("object"==("undefined"==typeof Reflect?"undefined":I(Reflect))&&Reflect.apply||Ee&&Be.bind(ze),v({}.hasOwnProperty)),T=Object.hasOwn||function(e,t){return We(ce(e),t)},ze=Function.prototype,Be=f&&Object.getOwnPropertyDescriptor,He=T(ze,"name"),qe={EXISTS:He,PROPER:He&&"something"===function(){}.name,CONFIGURABLE:He&&(!f||Be(ze,"name").configurable)},He=function(e,t){var n=[][e];return!!n&&g(function(){n.call(null,t||function(){return 1},1)})},Ve=void 0,Ge=void 0,Je=v([].join),ze=Ve!==Object||!He("join",","),Be=(R({target:"Array",proto:!0,forced:ze},{join:function(e){return Je(Ge(this),e===undefined?",":e)}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function Ke(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw t!==undefined&&null!==t||n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var $e=Object.defineProperty,Ze=function(e,t){try{$e(O,e,{value:t,configurable:!0,writable:!0})}catch(C){O[e]=t}return t},Ye=Ke(function(e){e=e.exports=O["__core-js_shared__"]||Ze("__core-js_shared__",{});(e.versions||(e.versions=[])).push({version:"3.51.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Xe=v(Function.toString);oe(Ye.inspectSource)||(Ye.inspectSource=function(e){return Xe(e)});var Qe,et=Ye.inspectSource,tt=void 0,nt=tt("toStringTag"),rt=Object,it="Arguments"===re(function(){return arguments}()),ot=function(e){var n,t;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(e=rt(e),nt))?n:it?re(e):"Object"===(t=re(e))&&oe(e.callee)?"Arguments":t},at=String,E=function(e){if("Symbol"===ot(e))throw new TypeError("Cannot convert a Symbol value to a string");return at(e)},ze=(Qe=!1,(ze=/[ac]/).exec=function(){return Qe=!0,/./.exec.apply(this,arguments)},!0===ze.test("abc")&&Qe),st=/./.test,ze=(R({target:"RegExp",proto:!0,forced:!ze},{test:function(e){var t=S(this),e=E(e),n=t.exec;return oe(n)?null!==(n=x(n,t,e))&&(S(n),!0):x(st,t,e)}}),O.WeakMap),ze=oe(ze)&&/native code/.test(String(ze)),ut=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lt=void 0,ct=f?function(e,t,n){return lt.f(e,t,ut(1,n))}:function(e,t,n){return e[t]=n,e},dt=void 0,e=dt.f,ft=(R({target:"Object",stat:!0,forced:Object.defineProperties!==e,sham:!f},{defineProperties:e}),void 0),e=g(function(){ft(1)}),e=(R({target:"Object",stat:!0,forced:e},{keys:function(e){return ft(ce(e))}}),function(e){if("Function"===re(e))return v(e)}),ht=Math.max,pt=Math.min,mt=function(e,t){e=fe(e);return e<0?ht(e+t,0):pt(e,t)},t=function(s){return function(e,t,n){var r=Ge(e),i=me(r);if(0!==i){var o,a=mt(n,i);if(s&&t!=t){for(;a<i;)if((o=r[a++])!=o)return!0}else for(;a<i;a++)if((s||a in r)&&r[a]===t)return s||a||0}return!s&&-1}},t={includes:t(!0),indexOf:t(!1)},gt=t.indexOf,vt=e([].indexOf),yt=!!vt&&1/vt([1],1,-0)<0,n=yt||!He("indexOf");R({target:"Array",proto:!0,forced:n},{indexOf:function(e){var t=1<arguments.length?arguments[1]:undefined;return yt?vt(this,e,t)||0:gt(this,e,t)}});var wt,bt={},kt=(v([].push),["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),_t=(Object.keys,f&&!ke&&Object.defineProperties,Re("document","documentElement")),n=void 0,St=n("IE_PROTO"),Et=function(){},Ct=function(e){return"<script>"+e+"<\/script>"},Rt=function(e){e.write(Ct("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ot=function(){try{wt=new ActiveXObject("htmlfile")}catch(D){}var e;Ot="undefined"==typeof document||document.domain&&wt?Rt(wt):((e=be("iframe")).style.display="none",_t.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(Ct("document.F=Object")),e.close(),e.F);for(var t=kt.length;t--;)delete Ot.prototype[kt[t]];return Ot()},xt=(bt[St]=!0,Object.create||function(e,t){var n;return null!==e?(Et.prototype=S(e),n=new Et,Et.prototype=null,n[St]=e):n=Ot(),t===undefined?n:dt.f(n,t)});R({target:"Object",stat:!0,sham:!f},{create:xt});var It,Tt,Mt,At,Pt=Object.create||Object,ke=function(e,t){return Ye[e]||(Ye[e]=t||Pt(null))},Dt=0,Lt=Math.random(),Nt=v(1.1.toString),Ft=function(e){return"Symbol("+(e===undefined?"":e)+")_"+Nt(++Dt+Lt,36)},Ut=(ke("keys"),O.TypeError),jt=O.WeakMap,Bt=ze||Ye.state?((Mt=Ye.state||(Ye.state=new jt)).get=Mt.get,Mt.has=Mt.has,Mt.set=Mt.set,It=function(e,t){if(Mt.has(e))throw new Ut("Object already initialized");return t.facade=e,Mt.set(e,t),t},Tt=function(e){return Mt.get(e)||{}},function(e){return Mt.has(e)}):(At=n("state"),bt[At]=!0,It=function(e,t){if(T(e,At))throw new Ut("Object already initialized");return t.facade=e,ct(e,At,t),t},Tt=function(e){return T(e,At)?e[At]:{}},function(e){return T(e,At)}),zt={set:It,get:Tt,has:Bt,enforce:function(e){return Bt(e)?Tt(e):It(e,{})},getterFor:function(t){return function(e){if(W(e)&&(e=Tt(e)).type===t)return e;throw new Ut("Incompatible receiver, "+t+" required")}}},Wt=Ke(function(e){var r=qe.CONFIGURABLE,i=zt.enforce,t=zt.get,o=String,a=Object.defineProperty,s=v("".slice),u=v("".replace),l=v([].join),c=f&&!g(function(){return 8!==a(function(){},"length",{value:8}).length}),d=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===s(o(t),0,7)&&(t="["+u(o(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!T(e,"name")||r&&e.name!==t)&&(f?a(e,"name",{value:t,configurable:!0}):e.name=t),c&&n&&T(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&T(n,"constructor")&&n.constructor?f&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(j){}n=i(e);return T(n,"source")||(n.source=l(d,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return oe(this)&&t(this).source||et(this)},"toString")}),Ht=function(e,t,n){return n.get&&Wt(n.get,t,{getter:!0}),n.set&&Wt(n.set,t,{setter:!0}),lt.f(e,t,n)},jt=qe.EXISTS,qt=Function.prototype,Vt=v(qt.toString),Gt=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Jt=v(Gt.exec),Kt=(f&&!jt&&Ht(qt,"name",{configurable:!0,get:function(){try{return Jt(Gt,Vt(this))[1]}catch(_){return""}}}),function(e,t,n,r){var i=(r=r||{}).enumerable,o=r.name!==undefined?r.name:t;if(oe(n)&&Wt(n,o,r),r.global)i?e[t]=n:Ze(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(b){}i?e[t]=n:lt.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}),$t=void 0,Zt=tt("species"),Yt=RegExp.prototype,jt=function(r,e,t,n){var a,i=tt(r),s=!g(function(){var e={};return e[i]=function(){return 7},7!==""[r](e)}),o=s&&!g(function(){var e,t=!1,n=/a/;return"split"===r&&((e={})[Zt]=function(){return n},(n={constructor:e,flags:""})[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t});s&&o&&!t||(a=/./[i],o=e(i,""[r],function(e,t,n,r,i){var o=t.exec;return o===$t||o===Yt.exec?s&&!i?{done:!0,value:x(a,t,n,r)}:{done:!0,value:x(e,n,t,r)}:{done:!1}}),Kt(String.prototype,r,o[0]),Kt(Yt,i,o[1])),n&&ct(Yt[i],"sham",!0)},Xt=v("".charAt),Qt=v("".charCodeAt),en=v("".slice),qt=function(i){return function(e,t){var n,e=E(ue(e)),t=fe(t),r=e.length;return t<0||r<=t?i?"":undefined:(n=Qt(e,t))<55296||56319<n||t+1===r||(r=Qt(e,t+1))<56320||57343<r?i?Xt(e,t):n:i?en(e,t,t+2):r-56320+(n-55296<<10)+65536}},qt={codeAt:qt(!1),charAt:qt(!0)},tn=qt.charAt,nn=function(e,t,n){return t+(n&&tn(e,t).length||1)},rn=function(e,t){t=e[t];return ae(t)?undefined:Ue(t)},on=Math.floor,an=v("".charAt),sn=v("".replace),un=v("".slice),ln=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cn=/\$([$&'`]|\d{1,2})/g,dn=O.RegExp,fn={correct:!g(function(){var e=!0;try{dn(".","d")}catch(L){e=!1}var t,n={},r="",i=e?"dgimsy":"gimsy",o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(t in e&&(o.hasIndices="d"),o)!function(e,t){Object.defineProperty(n,e,{get:function(){return r+=t,!0}})}(t,o[t]);return Object.getOwnPropertyDescriptor(dn.prototype,"flags").get.call(n)!==i||r!==i})},hn=function(){var e=S(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},pn=(f&&!fn.correct&&(Ht(RegExp.prototype,"flags",{configurable:!0,get:hn}),fn.correct=!0),RegExp.prototype),mn=fn.correct?function(e){return e.flags}:function(e){return fn.correct||!Oe(pn,e)||T(e,"flags")?e.flags:x(hn,e)},gn=TypeError,vn=function(e,t){var n=e.exec;if(oe(n))return null!==(n=x(n,e,t))&&S(n),n;if("RegExp"===re(e))return x($t,e,t);throw new gn("RegExp#exec called on incompatible receiver")},yn=tt("replace"),wn=Math.max,bn=Math.min,kn=v([].concat),_n=v([].push),Sn=v("".indexOf),En=v("".slice),r="$0"==="a".replace(/./,"$0"),Cn=!!/./[yn]&&""===/./[yn]("a","$0"),Rn=(jt("replace",function(e,b,k){var _=Cn?"$":"$0";return[function(e,t){var n=ue(this),r=W(e)?rn(e,yn):undefined;return r?x(r,e,n,t):x(b,E(n),e,t)},function(e,t){var n=S(this),r=E(e),i=oe(t),e=(i||(t=E(t)),E(mn(n)));if("string"==typeof t&&!~Sn(t,_)&&!~Sn(t,"$<")&&!~Sn(e,"y")){var o=k(b,n,r,t);if(o.done)return o.value}var a,s=!!~Sn(e,"g");s&&(a=!!~Sn(e,"u")||!!~Sn(e,"v"),n.lastIndex=0);for(var u,l=[];null!==(u=vn(n,r))&&(_n(l,u),s);)""===E(u[0])&&(n.lastIndex=nn(r,pe(n.lastIndex),a));for(var c,d="",f=0,h=0;h<l.length;h++){for(var p=E((u=l[h])[0]),m=wn(bn(fe(u.index),r.length),0),g=[],v=1;v<u.length;v++)_n(g,(c=u[v])===undefined?c:String(c));var y=u.groups,w=i?(w=kn([p],g,m,r),y!==undefined&&_n(w,y),E(je(t,undefined,w))):function(o,a,s,u,l,e){var c=s+o.length,d=u.length,t=cn;return l!==undefined&&(l=ce(l),t=ln),sn(e,t,function(e,t){var n;switch(an(t,0)){case"$":return"$";case"&":return o;case"`":return un(a,0,s);case"'":return un(a,c);case"<":n=l[un(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=on(i/10))&&r<=d?u[r-1]===undefined?an(t,1):u[r-1]+an(t,1):e;n=u[i-1]}return n===undefined?"":n})}(p,r,m,g,y,t);f<=m&&(d+=En(r,f,m)+w,f=m+p.length)}return d+En(r,f)}]},!!g(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!r||Cn),function(){}),On=Re("Reflect","construct"),xn=/^\s*(?:class|function)\b/,In=v(xn.exec),Tn=!xn.test(Rn),Mn=function(e){if(!oe(e))return!1;try{return On(Rn,[],e),!0}catch(w){return!1}},r=function(e){if(!oe(e))return!1;switch(ot(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tn||!!In(xn,et(e))}catch(w){return!0}},An=(r.sham=!0,!On||g(function(){var e;return Mn(Mn.call)||!Mn(Object)||!Mn(function(){e=!0})||e})?r:Mn),Pn=TypeError,Dn=Object.getOwnPropertyDescriptor,Ln=f&&!function(){if(this!==undefined)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(_){return _ instanceof TypeError}}()?function(e,t){if(ee(e)&&!Dn(e,"length").writable)throw new Pn("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Nn=v("".indexOf);jt("match",function(r,s,u){return[function(e){var t=ue(this),n=W(e)?rn(e,r):undefined;return n?x(n,e,t):(n=E(t),new RegExp(e)[r](n))},function(e){var t=S(this),n=E(e),e=u(s,t,n);if(e.done)return e.value;e=E(mn(t));if(!~Nn(e,"g"))return vn(t,n);for(var r=!!~Nn(e,"u")||!!~Nn(e,"v"),i=[],o=t.lastIndex=0;null!==(a=vn(t,n));){var a=E(a[0]);""===(i[o]=a)&&(t.lastIndex=nn(n,pe(t.lastIndex),r)),o++}return 0===o?null:i}]});var Fn,Un,jn,Bn,zn,Wn,Hn,qn,Vn,r=O.navigator,r=r&&r.userAgent,Gn=r?String(r):"",r=O.process,i=O.Deno,r=r&&r.versions||i&&i.version,i=r&&r.v8,Jn=o=!(o=i?0<(ir=i.split("."))[0]&&ir[0]<4?1:+(ir[0]+ir[1]):o)&&Gn&&(!(ir=Gn.match(/Edge\/(\d+)/))||74<=ir[1])&&(ir=Gn.match(/Chrome\/(\d+)/))?+ir[1]:o,Kn=tt("species"),r=function(t){return 51<=Jn||!g(function(){var e=[];return(e.constructor={})[Kn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},$n=void 0,Zn=void 0,i=r("slice"),Yn=tt("species"),Xn=Array,Qn=Math.max,er=(R({target:"Array",proto:!0,forced:!i},{slice:function(e,t){var n,r,i,o=Ge(this),a=me(o),s=mt(e,a),u=mt(t===undefined?a:t,a);if(ee(o)&&(n=o.constructor,(n=An(n)&&(n===Xn||ee(n.prototype))||W(n)&&null===(n=n[Yn])?undefined:n)===Xn||n===undefined))return Zn(o,s,u);for(r=new(n===undefined?Xn:n)(Qn(u-s,0)),i=0;s<u;s++,i++)s in o&&$n(r,i,o[s]);return Ln(r,i),r}}),v([].slice),void 0),tr=er.f,nr="object"==("undefined"==typeof window?"undefined":I(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rr={f:function(e){if(!nr||"Window"!==re(e))return tr(Ge(e));try{return tr(e)}catch(w){return Zn(nr)}}},ir=rr.f,o=g(function(){return!Object.getOwnPropertyNames(1)}),or=(R({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:ir}),kt.concat("length","prototype"),Object.getOwnPropertyNames,{f:Object.getOwnPropertySymbols}),ar=v([].concat),sr=Re("Reflect","ownKeys")||function(e){var t=er.f(S(e)),n=or.f;return n?ar(t,n(e)):t},ur=void 0,i=function(e,t,n){for(var r=sr(t),i=lt.f,o=ur.f,a=0;a<r.length;a++){var s=r[a];T(e,s)||n&&T(n,s)||i(e,s,o(t,s))}},lr=O.Symbol,cr=lr&&lr.prototype,dr=(!f||!oe(lr)||"description"in cr&&lr().description===undefined||(Fn={},i(o=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:E(arguments[0]),t=Oe(cr,this)?new lr(e):e===undefined?lr():lr(e);return""===e&&(Fn[t]=!0),t},lr),Un=o["for"],o["for"]=function(e){var e=E(e),t=x(Un,this,e);return""===e&&(Fn[t]=!0),t},(o.prototype=cr).constructor=o,jn="Symbol(description detection)"===String(lr("description detection")),Bn=v(cr.valueOf),zn=v(cr.toString),Wn=/^Symbol\((.*)\)[^)]+$/,Hn=v("".replace),qn=v("".slice),Ht(cr,"description",{configurable:!0,get:function(){var e=Bn(this);return T(Fn,e)?"":(e=zn(e),""===(e=jn?qn(e,7,-1):Hn(e,Wn,"$1"))?undefined:e)}}),R({global:!0,constructor:!0,forced:!0},{Symbol:o})),TypeError),fr=function(e,t){if(Oe(t,e))return e;throw new dr("Incorrect invocation")},ir=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hr=void 0,i=g(function(){hr(1)}),o=(R({target:"Object",stat:!0,forced:i,sham:!ir},{getPrototypeOf:function(e){return hr(ce(e))}}),n("IE_PROTO"),Object),i=(o.prototype,ir&&o.getPrototypeOf,lt.f),pr=tt("unscopables"),mr=Array.prototype,ir=(mr[pr]===undefined&&i(mr,pr,{configurable:!0,value:xt(null)}),function(e){mr[pr][e]=!0}),gr=Object.create?Object.create(null):{},vr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},o=be("span").classList,i=o&&o.constructor&&o.constructor.prototype,o=i===Object.prototype?undefined:i,yr=lt.f,wr=tt("toStringTag"),br=function(e,t,n){(e=e&&!n?e.prototype:e)&&!T(e,wr)&&yr(e,wr,{configurable:!0,value:t})},kr=void 0,_r=tt("iterator"),Sr=kr.values,Er=function(e,t){if(e){if(e[_r]!==Sr)try{ct(e,_r,Sr)}catch(D){e[_r]=Sr}if(br(e,t,!0),vr[t])for(var n in kr)if(e[n]!==kr[n])try{ct(e,n,kr[n])}catch(D){e[n]=kr[n]}}};for(Vn in vr)Er(O[Vn]&&O[Vn].prototype,Vn);Er(o,"DOMTokenList");var i=void 0,Cr=i.IteratorPrototype,Rr=function(){return this},Or=function(e,t,n,r){t+=" Iterator";return e.prototype=xt(Cr,{next:ut(+!r,n)}),br(e,t,!1),gr[t]=Rr,e},xr=void 0,Ir=(R({target:"Object",stat:!0},{setPrototypeOf:xr}),String,TypeError,Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return v(Ue(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(D){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(D){}}():undefined),qe.PROPER),Tr=qe.CONFIGURABLE,Mr=i.IteratorPrototype,Ar=i.BUGGY_SAFARI_ITERATORS,Pr=tt("iterator"),Dr=function(){return this},Lr=function(e,t){return{value:e,done:t}},Nr=function(e,t,n,r,i,o,a){Or(n,t,r);var s,u,r=function(e){if(e===i&&h)return h;if(!Ar&&e&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",c=!1,d=e.prototype,f=d[Pr]||d["@@iterator"]||i&&d[i],h=!Ar&&f||r(i),p="Array"===t&&d.entries||f;if(p&&(e=hr(p.call(new e)))!==Object.prototype&&e.next&&(hr(e)!==Mr&&(xr?xr(e,Mr):oe(e[Pr])||Kt(e,Pr,Dr)),br(e,l,!0)),Ir&&"values"===i&&f&&"values"!==f.name&&(Tr?ct(d,"name","values"):(c=!0,h=function(){return x(f,this)})),i)if(s={values:r("values"),keys:o?h:r("keys"),entries:r("entries")},a)for(u in s)!Ar&&!c&&u in d||Kt(d,u,s[u]);else R({target:t,proto:!0,forced:Ar||c},s);return d[Pr]!==h&&Kt(d,Pr,h,{name:i}),gr[t]=h,s},a=lt.f,Fr=zt.set,Ur=zt.getterFor("Array Iterator"),jr=(Nr(Array,"Array",function(e,t){Fr(this,{type:"Array Iterator",target:Ge(e),index:0,kind:t})},function(){var e=Ur(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Lr(undefined,!0);switch(e.kind){case"keys":return Lr(n,!1);case"values":return Lr(t[n],!1)}return Lr([n,t[n]],!1)},"values"),gr.Arguments=gr.Array);if(ir("keys"),ir("values"),ir("entries"),f&&"values"!==jr.name)try{a(jr,"name",{value:"values"})}catch(X){}var Br,zr,Wr=tt("iterator"),Hr=([].keys&&("next"in(jr=[].keys())?(a=hr(hr(jr)))!==Object.prototype&&(Br=a):0),W(Br)&&!g(function(){var e={};return Br[Wr].call(e)!==e})||(Br={}),oe(Br[Wr])||Kt(Br,Wr,function(){return this}),i.IteratorPrototype),jr=tt("toStringTag"),qr=TypeError,Vr=O.Iterator,a=!oe(Vr)||Vr.prototype!==Hr||!g(function(){Vr({})}),Gr=function(){if(fr(this,Hr),hr(this)===Hr)throw new qr("Abstract class Iterator not directly constructable")},Jr=function(t,e){f?Ht(Hr,t,{configurable:!0,get:function(){return e},set:function(e){if(S(this),this===Hr)throw new qr("You can't redefine this property");T(this,t)?this[t]=e:$n(this,t,e)}}):Hr[t]=e},Kr=(T(Hr,jr)||Jr(jr,"Iterator"),!a&&T(Hr,"constructor")&&Hr.constructor!==Object||Jr("constructor",Gr),Gr.prototype=Hr,R({global:!0,constructor:!0,forced:a},{Iterator:Gr}),e(e.bind)),$r=function(e,t){return Ue(e),t===undefined?e:Ee?Kr(e,t):function(){return e.apply(t,arguments)}},Zr=tt("iterator"),Yr=Array.prototype,Xr=function(e){return e!==undefined&&(gr.Array===e||Yr[Zr]===e)},Qr=tt("iterator"),ei=Array.prototype,ti=function(e){if(!ae(e))return rn(e,Qr)||rn(e,"@@iterator")||("Arguments"===re(e)?ei[Qr]:undefined)},ni=TypeError,ri=function(e,t){t=arguments.length<2?ti(e):t;if(oe(t))return S(x(t,e));throw new ni(Ie(e)+" is not iterable")},ii=function(e,t,n){var r,i;S(e);try{if(!(r=rn(e,"return"))){if("throw"===t)throw n;return n}r=x(r,e)}catch(X){i=!0,r=X}if("throw"===t)throw n;if(i)throw r;return S(r),n},oi=TypeError,ai=function(e,t){this.stopped=e,this.result=t},si=ai.prototype,ui=function(e,t,n){var r,i,o,a,s,u=n&&n.that,l=!(!n||!n.AS_ENTRIES),c=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),h=$r(t,u),p=function(e){var t=r;return r=undefined,t&&ii(t,"normal"),new ai(!0,e)},m=function(e){return l?(S(e),f?h(e[0],e[1],p):h(e[0],e[1])):f?h(e,p):h(e)};if(c)r=e.iterator;else if(d)r=e;else{if(!(n=ti(e)))throw new oi(Ie(e)+" is not iterable");if(Xr(n)){for(i=0,o=me(e);i<o;i++)if((a=m(e[i]))&&Oe(si,a))return a;return new ai(!1)}r=ri(e,n)}for(s=(c?e:r).next;!(g=x(s,r)).done;){var g=g.value;try{a=m(g)}catch(X){if(!r)throw X;ii(r,"throw",X)}if("object"==I(a)&&a&&Oe(si,a))return a}return new ai(!1)},li=function(e){return{iterator:e,next:e.next,done:!1}},jr=function(e,t){var n=O.Iterator,n=n&&n.prototype,e=n&&n[e],r=!1;if(e)try{e.call({next:function(){return{done:!0}},"return":function(){r=!0}},-1)}catch(X){X instanceof t||(r=!1)}if(!r)return e},ci=jr("forEach",TypeError),di=(R({target:"Iterator",proto:!0,real:!0,forced:ci},{forEach:function(t){S(this);try{Ue(t)}catch(X){ii(this,"throw",X)}if(ci)return x(ci,this,t);var e=li(this),n=0;ui(e,function(e){t(e,n++)},{IS_RECORD:!0})}}),void 0),fi=function(e){if(e&&e.forEach!==di)try{ct(e,"forEach",di)}catch(X){e.forEach=di}};for(zr in vr)vr[zr]&&fi(O[zr]&&O[zr].prototype);fi(o);var hi,pi=tt("species"),mi=Array,gi=function(e,t){return new((n=ee(e=e)&&(n=e.constructor,An(n)&&(n===mi||ee(n.prototype))||W(n)&&null===(n=n[pi]))?undefined:n)===undefined?mi:n)(0===t?0:t);var n},Jr=function(f){var h=1===f,p=2===f,m=3===f,g=4===f,v=6===f,y=7===f,w=5===f||v;return function(e,t,n){for(var r,i,o=ce(e),a=Ve(o),s=me(a),u=$r(t,n),l=0,c=0,d=h?gi(e,s):p||y?gi(e,0):undefined;l<s;l++)if((w||l in a)&&(i=u(r=a[l],l,o),f))if(h)$n(d,l,i);else if(i)switch(f){case 3:return!0;case 5:return r;case 6:return l;case 2:$n(d,c++,r)}else switch(f){case 4:return!1;case 7:$n(d,c++,r)}return v?-1:m||g?g:d}},vi={forEach:Jr(0),map:Jr(1),filter:Jr(2),some:Jr(3),every:Jr(4),find:Jr(5),findIndex:Jr(6),filterReject:Jr(7)},yi=(He("forEach"),R({target:"Array",proto:!0,forced:[].forEach!==di},{forEach:di}),O.String),a=!!Object.getOwnPropertySymbols&&!g(function(){var e=Symbol("symbol detection");return!yi(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Jn&&Jn<41}),Gr={}.propertyIsEnumerable,wi=Object.getOwnPropertyDescriptor,bi={f:wi&&!Gr.call({1:2},1)?function(e){e=wi(this,e);return!!e&&e.enumerable}:Gr},ki={f:tt},_i=O,Si=lt.f,Ei=function(e){var t=_i.Symbol||(_i.Symbol={});T(t,e)||Si(t,e,{value:ki.f(e)})},Ci=void 0,Ri=vi.forEach,Oi=n("hidden"),xi=zt.set,Ii=zt.getterFor("Symbol"),Ti=Object.prototype,o=O.Symbol,Mi=o&&o.prototype,Ai=O.RangeError,Pi=O.TypeError,Jr=O.QObject,Di=ur.f,Li=lt.f,Ni=rr.f,Fi=bi.f,Ui=v([].push),ji=ke("symbols"),Bi=ke("op-symbols"),Gr=ke("wks"),zi=!Jr||!Jr.prototype||!Jr.prototype.findChild,Wi=function(e,t,n){var r=Di(Ti,t);return r&&delete Ti[t],Li(e,t,n),r&&e!==Ti&&Li(Ti,t,r),e},Hi=f&&g(function(){return 7!==xt(Li({},"a",{get:function(){return Li(this,"a",{value:7}).a}})).a})?Wi:Li,qi=function(e,t){var n=ji[e]=xt(Mi);return xi(n,{type:"Symbol",tag:e,description:t}),f||(n.description=t),n},Vi=function(e,t,n){e===Ti&&Vi(Bi,t,n),S(e);t=Ci(t);return S(n),(T(ji,t)?(("enumerable"in n?!n.enumerable:!T(e,t)||T(e,Oi)&&e[Oi][t])?(T(e,Oi)||Li(e,Oi,ut(1,xt(null))),e[Oi][t]=!0):(T(e,Oi)&&e[Oi][t]&&(e[Oi][t]=!1),n=xt(n,{enumerable:ut(0,!1)})),Hi):Li)(e,t,n)},Gi=function(t,e){S(t);var n=Ge(e),e=ft(n).concat(Ki(n));return Ri(e,function(e){f&&!x(Ji,n,e)||Vi(t,e,n[e])}),t},Ji=function(e){var e=Ci(e),t=x(Fi,this,e);return!(this===Ti&&T(ji,e)&&!T(Bi,e))&&(!(t||!T(this,e)||!T(ji,e)||T(this,Oi)&&this[Oi][e])||t)},n=function(e,t){var n,e=Ge(e),t=Ci(t);if(e!==Ti||!T(ji,t)||T(Bi,t))return!(n=Di(e,t))||!T(ji,t)||T(e,Oi)&&e[Oi][t]||(n.enumerable=!0),n},Jr=function(e){var e=Ni(Ge(e)),t=[];return Ri(e,function(e){T(ji,e)||T(bt,e)||Ui(t,e)}),t},Ki=function(e){var t=e===Ti,e=Ni(t?Bi:Ge(e)),n=[];return Ri(e,function(e){!T(ji,e)||t&&!T(Ti,e)||Ui(n,ji[e])}),n},Jr=(a||(Mi=(o=function(){if(Oe(Mi,this))throw new Pi("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?E(arguments[0]):undefined,n=Ft(e),r=function(e){var t=this===undefined?O:this,e=(t===Ti&&x(r,Bi,e),T(t,Oi)&&T(t[Oi],n)&&(t[Oi][n]=!1),ut(1,e));try{Hi(t,n,e)}catch(X){if(!(X instanceof Ai))throw X;Wi(t,n,e)}};return f&&zi&&Hi(Ti,n,{configurable:!0,set:r}),qi(n,e)}).prototype,Kt(Mi,"toString",function(){return Ii(this).tag}),Kt(o,"withoutSetter",function(e){return qi(Ft(e),e)}),bi.f=Ji,lt.f=Vi,dt.f=Gi,ur.f=n,er.f=rr.f=Jr,or.f=Ki,ki.f=function(e){return qi(tt(e),e)},f&&(Ht(Mi,"description",{configurable:!0,get:function(){return Ii(this).description}}),Kt(Ti,"propertyIsEnumerable",Ji,{unsafe:!0}))),R({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:o}),Ri(ft(Gr),function(e){Ei(e)}),R({target:"Symbol",stat:!0,forced:!a},{useSetter:function(){zi=!0},useSimple:function(){zi=!1}}),R({target:"Object",stat:!0,forced:!a,sham:!f},{create:function(e,t){return t===undefined?xt(e):Gi(xt(e),t)},defineProperty:Vi,defineProperties:Gi,getOwnPropertyDescriptor:n}),R({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:Jr}),Gr=(Gr=Re("Symbol"))&&Gr.prototype,hi=Gr&&Gr.valueOf,n=tt("toPrimitive"),Gr&&!Gr[n]&&Kt(Gr,n,function(e){return x(hi,this)},{arity:1}),br(o,"Symbol"),bt[Oi]=!0,a&&!!Symbol["for"]&&!!Symbol.keyFor),$i=ke("string-to-symbol-registry"),Zi=ke("symbol-to-string-registry"),Yi=(R({target:"Symbol",stat:!0,forced:!Jr},{"for":function(e){var t,e=E(e);return T($i,e)?$i[e]:(t=Re("Symbol")(e),$i[e]=t,Zi[t]=e,t)}}),void 0),Xi=ke("symbol-to-string-registry"),Qi=(R({target:"Symbol",stat:!0,forced:!Jr},{keyFor:function(e){if(!Yi(e))throw new TypeError(Ie(e)+" is not a symbol");if(T(Xi,e))return Xi[e]}}),tt("match")),eo=function(e){var t;return W(e)&&((t=e[Qi])!==undefined?!!t:"RegExp"===re(e))},to=TypeError,no=function(e){if(eo(e))throw new to("The method doesn't accept regular expressions");return e},ro=tt("match"),Gr=function(e){var t=/./;try{"/./"[e](t)}catch(C){try{return t[ro]=!1,"/./"[e](t)}catch(D){}}return!1},io=v("".indexOf),oo=(R({target:"String",proto:!0,forced:!Gr("includes")},{includes:function(e){return!!~io(E(ue(this)),E(no(e)),1<arguments.length?arguments[1]:undefined)}}),t.includes),n=g(function(){return!Array(1).includes()}),o=g(function(){return[,1].includes(undefined,1)}),ao=(R({target:"Array",proto:!0,forced:n||o},{includes:function(e){return oo(this,e,1<arguments.length?arguments[1]:undefined)}}),ir("includes"),RangeError),so=Math.floor,Jr=function(e){var t=E(ue(this)),n="",r=fe(e);if(r<0||r===Infinity)throw new ao("Wrong number of repetitions");for(;0<r;(r=so(r/2))&&(t+=t))r%2&&(n+=t);return n},uo=v(Jr),lo=v("".slice),co=Math.ceil,n=function(i){return function(e,t,n){var e=E(ue(e)),t=pe(t),r=e.length;return t<=r||""===(n=n===undefined?" ":E(n))?e:((r=uo(n,co((t=t-r)/n.length))).length>t&&(r=lo(r,0,t)),i?e+r:r+e)}},fo=[n(!1),n(!0)][0],ho=RangeError,po=isFinite,mo=Math.abs,o=Date.prototype,go=o.toISOString,vo=v(o.getTime),yo=v(o.getUTCDate),wo=v(o.getUTCFullYear),bo=v(o.getUTCHours),ko=v(o.getUTCMilliseconds),_o=v(o.getUTCMinutes),So=v(o.getUTCMonth),Eo=v(o.getUTCSeconds),n=g(function(){return"0385-07-25T07:06:39.999Z"!==go.call(new Date(-50000000000001))})||!g(function(){go.call(new Date(NaN))})?function(){var e,t,n;if(po(vo(this)))return e=wo(this),t=ko(this),(n=e<0?"-":9999<e?"+":"")+fo(mo(e),n?6:4,0)+"-"+fo(So(this)+1,2,0)+"-"+fo(yo(this),2,0)+"T"+fo(bo(this),2,0)+":"+fo(_o(this),2,0)+":"+fo(Eo(this),2,0)+"."+fo(t,3,0)+"Z";throw new ho("Invalid time value")}:go,Co=(R({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n}),void 0),o=g(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})});R({target:"Date",proto:!0,forced:o},{toJSON:function(e){var t=ce(this),n=Co(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var Ro,Oo=zt.get,xo=v(1.1.valueOf),Io="\t\n\x0B\f\r \u2028\u2029\ufeff",To=v("".replace),Mo=RegExp("^["+Io+"]+"),Ao=RegExp("(^|[^"+Io+"])["+Io+"]+$"),n=function(t){return function(e){e=E(ue(e));return 1&t&&(e=To(e,Mo,"")),e=2&t?To(e,Ao,"$1"):e}},o={start:n(1),end:n(2),trim:n(3)},Po=qe.PROPER,Do=o.trim,Lo=(R({target:"String",proto:!0,forced:(Ro="trim",g(function(){return!!Io[Ro]()||"
"!=="
"[Ro]()||Po&&Io[Ro].name!==Ro}))},{trim:function(){return Do(this)}}),o.trim),No=O.parseInt,n=O.Symbol,Fo=n&&n.iterator,Uo=/^[+-]?0x/i,jo=v(Uo.exec),n=8!==No(Io+"08")||22!==No(Io+"0x16")||Fo&&!g(function(){No(Object(Fo))})?function(e,t){e=Lo(E(e));return No(e,t>>>0||(jo(Uo,e)?16:10))}:No,Bo=(R({global:!0,forced:parseInt!==n},{parseInt:n}),SyntaxError),zo=parseInt,Wo=String.fromCharCode,Ho=v("".charAt),qo=v("".slice),Vo=v(/./.exec),Go={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Jo=/^[\da-f]{4}$/i,Ko=/^[\u0000-\u001F]$/,$o=void 0,Zo=$o.ArrayBuffer,Yo=$o.DataView,n=Yo.prototype,Xo=e(Zo.prototype.slice),Qo=e(n.getUint8),ea=e(n.setUint8),n=g(function(){return!new Zo(2).slice(1,undefined).byteLength}),n=(R({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:n},{slice:function(e,t){if(Xo&&t===undefined)return Xo(S(this),e);for(var n=S(this).byteLength,r=mt(e,n),i=mt(t===undefined?n:t,n),e=new Zo(pe(i-r)),o=new Yo(this),a=new Yo(e),s=0;r<i;)ea(a,s++,Qo(o,r++));return e}}),void 0),ta=(R({global:!0,constructor:!0,forced:!0},{DataView:$o.DataView}),function(e,t,n){for(var r in t)Kt(e,r,t[r],n);return e}),na=RangeError,ra=function(e){if(e===undefined)return 0;var e=fe(e),t=pe(e);if(e!==t)throw new na("Wrong length or index");return t},ia=(R({target:"Math",stat:!0},{fround:void 0}),R({target:"Math",stat:!0},{sign:void 0}),Math.sign,Array),oa=Math.abs,aa=Math.pow,sa=Math.floor,ua=Math.log,la=Math.LN2,ca=void 0,da=(R({target:"Array",proto:!0},{fill:ca}),ir("fill"),function(e,t,n){return xr&&oe(t=t.constructor)&&t!==n&&W(t=t.prototype)&&t!==n.prototype&&xr(e,t),e}),fa=zt.getterFor("ArrayBuffer"),ha=zt.getterFor("DataView"),pa=zt.set,s=O.ArrayBuffer,ma=s&&s.prototype,u=O.DataView,ga=u&&u.prototype,va=(Object.prototype,O.Array),ya=O.RangeError,wa=v(ca),ba=v([].reverse),ka=function(e,t,n){var r,i,o,a=ia(n),s=8*n-t-1,n=(1<<s)-1,u=n>>1,l=23===t?aa(2,-24)-aa(2,-77):0,c=e<0||0===e&&1/e<0?1:0,d=0;for((e=oa(e))!=e||e===Infinity?(i=e!=e?1:0,r=n):(r=sa(ua(e)/la),e*(o=aa(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?l/o:l*aa(2,1-u))*o&&(r++,o/=2),n<=r+u?(i=0,r=n):1<=r+u?(i=(e*o-1)*aa(2,t),r+=u):(i=e*aa(2,u-1)*aa(2,t),r=0));8<=t;)a[d++]=255&i,i/=256,t-=8;for(r=r<<t|i,s+=t;0<s;)a[d++]=255&r,r/=256,s-=8;return a[d-1]|=128*c,a},_a=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=r-1,i=e[u--],l=127&i;for(i>>=7;0<s;)l=256*l+e[u--],s-=8;for(n=l&(1<<-s)-1,l>>=-s,s+=t;0<s;)n=256*n+e[u--],s-=8;if(0===l)l=1-a;else{if(l===o)return n?NaN:i?-Infinity:Infinity;n+=aa(2,t),l-=a}return(i?-1:1)*n*aa(2,l-t)},Sa=function(e){return[255&e]},Ea=function(e){return[255&e,e>>8&255]},Ca=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Ra=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Oa=function(e){return ka((void 0)(e),23,4)},xa=function(e){return ka(e,52,8)},l=function(e,t,n){Ht(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},Ia=function(e,t,n,r){e=ha(e),n=ra(n),r=!!r;if(n+t>e.byteLength)throw new ya("Wrong index");n+=e.byteOffset,e=Zn(e.bytes,n,n+t);return r?e:ba(e)},Ta=function(e,t,n,r,i,o){var e=ha(e),n=ra(n),a=r(+i),s=!!o;if(n+t>e.byteLength)throw new ya("Wrong index");for(var u=e.bytes,l=n+e.byteOffset,c=0;c<t;c++)u[l+c]=a[s?c:t-c-1]},ma=(s=function(e){fr(this,ma);e=ra(e);pa(this,{type:"ArrayBuffer",bytes:wa(va(e),0),byteLength:e}),f||(this.byteLength=e,this.detached=!1)}).prototype,ga=(u=function(e,t,n){fr(this,ga),fr(e,ma);var r=fa(e),i=r.byteLength,t=fe(t);if(t<0||i<t)throw new ya("Wrong offset");if(t+(n=n===undefined?i-t:ra(n))>i)throw new ya("Wrong length");pa(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:t,bytes:r.bytes}),f||(this.buffer=e,this.byteLength=n,this.byteOffset=t)}).prototype,Ma=(f&&(l(s,"byteLength",fa),l(u,"buffer",ha),l(u,"byteLength",ha),l(u,"byteOffset",ha)),ta(ga,{getInt8:function(e){return Ia(this,1,e)[0]<<24>>24},getUint8:function(e){return Ia(this,1,e)[0]},getInt16:function(e){e=Ia(this,2,e,1<arguments.length&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=Ia(this,2,e,1<arguments.length&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(e){return Ra(Ia(this,4,e,1<arguments.length&&arguments[1]))},getUint32:function(e){return Ra(Ia(this,4,e,1<arguments.length&&arguments[1]))>>>0},getFloat32:function(e){return _a(Ia(this,4,e,1<arguments.length&&arguments[1]),23)},getFloat64:function(e){return _a(Ia(this,8,e,1<arguments.length&&arguments[1]),52)},setInt8:function(e,t){Ta(this,1,e,Sa,t)},setUint8:function(e,t){Ta(this,1,e,Sa,t)},setInt16:function(e,t){Ta(this,2,e,Ea,t,2<arguments.length&&arguments[2])},setUint16:function(e,t){Ta(this,2,e,Ea,t,2<arguments.length&&arguments[2])},setInt32:function(e,t){Ta(this,4,e,Ca,t,2<arguments.length&&arguments[2])},setUint32:function(e,t){Ta(this,4,e,Ca,t,2<arguments.length&&arguments[2])},setFloat32:function(e,t){Ta(this,4,e,Oa,t,2<arguments.length&&arguments[2])},setFloat64:function(e,t){Ta(this,8,e,xa,t,2<arguments.length&&arguments[2])}}),br(s,"ArrayBuffer"),br(u,"DataView"),tt("species")),Aa=function(e){e=Re(e);f&&e&&!e[Ma]&&Ht(e,Ma,{configurable:!0,get:function(){return this}})},l=$o.ArrayBuffer,s=O.ArrayBuffer,Pa=(R({global:!0,constructor:!0,forced:s!==l},{ArrayBuffer:l}),Aa("ArrayBuffer"),g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})})),Da=Object.isExtensible,La=g(function(){Da(1)})||Pa?function(e){return!!W(e)&&(!Pa||"ArrayBuffer"!==re(e))&&(!Da||Da(e))}:Da,Na=(R({target:"Object",stat:!0,forced:Object.isExtensible!==La},{isExtensible:La}),TypeError),Fa=function(e,t){if(!delete e[t])throw new Na("Cannot delete property "+Ie(t)+" of "+Ie(e))},u=r("splice"),Ua=Math.max,ja=Math.min,Ba=(R({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,i,o,a,s,u=ce(this),l=me(u),c=mt(e,l),e=arguments.length;for(0===e?n=r=0:r=1===e?(n=0,l-c):(n=e-2,ja(Ua(fe(t),0),l-c)),ve(l+n-r),i=gi(u,r),o=0;o<r;o++)(a=c+o)in u&&$n(i,o,u[a]);if(Ln(i,r),n<r){for(o=c;o<l-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:Fa(u,s);for(o=l;l-r+n<o;o--)Fa(u,o-1)}else if(r<n)for(o=l-r;c<o;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:Fa(u,s);for(o=0;o<n;o++)u[o+c]=arguments[o+2];return Ln(u,l-r+n),i}}),Ke(function(e){var t=lt.f,a=Ft("meta"),n=0,r=function(e){t(e,a,{value:{objectID:"O"+n++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},0;var i=er.f,o=v([].splice),e={};e[a]=1,i(e).length&&(er.f=function(e){for(var t=i(e),n=0,r=t.length;n<r;n++)if(t[n]===a){o(t,n,1);break}return t},R({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rr.f}))},fastKey:function(e,t){if(!W(e))return"symbol"==I(e)?e:("string"==typeof e?"S":"P")+e;if(!T(e,a)){if(!La(e))return"F";if(!t)return"E";r(e)}return e[a].objectID},getWeakData:function(e,t){if(!T(e,a)){if(!La(e))return!0;if(!t)return!1;r(e)}return e[a].weakData},onFreeze:function(e){return e}};bt[a]=!0})),za=Ba.onFreeze,Wa=Object.preventExtensions,s=g(function(){Wa(1)}),Ha=(R({target:"Object",stat:!0,forced:s,sham:!0},{preventExtensions:function(e){return Wa&&W(e)?Wa(za(e)):e}}),g(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ba.onFreeze),qa=Object.freeze,l=g(function(){qa(1)}),Va=(R({target:"Object",stat:!0,forced:l,sham:!0},{freeze:function(e){return qa&&W(e)?qa(Ha(e)):e}}),!g(function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)})),Ga=t.includes,Ja=String,Ka=TypeError,$a=Re("JSON","stringify"),u=Re("BigInt"),Za=v("".valueOf),Ya=v((!0).valueOf),Xa=u&&v(u.prototype.valueOf),Qa=v(/./.exec),es=v("".charAt),ts=v("".charCodeAt),ns=v("".replace),rs=v("".slice),is=v([].push),os=v([].pop),as=v(1.1.toString),ss=/[\uD800-\uDFFF]/g,us=/^[\uD800-\uDBFF]$/,ls=/^[\uDC00-\uDFFF]$/,cs=/^\d+$/,ds=Ft(),fs=Ft(),hs=Ft(),ps=ds.length,ms=fs.length,s=!a||g(function(){var e=Re("Symbol")("stringify detection");return"[null]"!==$a([e])||"{}"!==$a({a:e})||"{}"!==$a(Object(e))}),gs=g(function(){return'"\\udf06\\ud834"'!==$a("\udf06\ud834")||'"\\udead"'!==$a("\udead")}),vs=Va?Re("JSON","isRawJSON"):function(e){return!!W(e)&&!!(e=Oo(e))&&"RawJSON"===e.type},ys=s?function(e,n,t){return $a(e,function(e,t){e=x(n,this,e,t);if(!Yi(e))return e},t)}:$a,ws=function(e,t,n){var r=es(n,t-1),n=es(n,t+1);return Qa(us,e)&&!Qa(ls,n)||Qa(ls,e)&&!Qa(us,r)?"\\u"+as(ts(e,0),16):e},bs=function(e,t){try{return e(t),!0}catch(X){return!1}},l=($a&&R({target:"JSON",stat:!0,arity:3,forced:s||gs||!Va},{stringify:function(e,t,n){var r,i=oe(t)?t:undefined,o=i?undefined:function(e){if(ee(e)){for(var t=e.length,n=[],r=xt(null),i=0;i<t;i++){var o,a=e[i];if("string"==typeof a)o=a;else{if("number"!=typeof a&&"Number"!==re(a)&&"String"!==re(a))continue;o=E(a)}T(r,o)||(r[o]=!0,is(n,o))}return n}}(t),a=o&&function(e){for(var t=0,n=e.length;t<n;t++)if(Qa(cs,e[t]))return fs;return""}(o),s=[],u=[],l=[],c=!1,d=!0,f=ys(e,function(e,t){if(e=Ja(e),o){if(e===hs)return os(u),void(r=os(l));if(d)d=!1;else if(this!==r&&!ee(this)&&!Ga(o,e))return}else i&&(t=x(i,this,e,t));if(vs(t))return Va?t:(c=!0,ds+(is(s,t.rawJSON)-1));if(o&&function(e){if(!W(e)||oe(e)||ee(e))return!1;try{return!("Number"===(n=re(t=e))&&bs(xo,t)||"String"===n&&bs(Za,t)||"Boolean"===n&&bs(Ya,t)||Xa&&"BigInt"===n&&bs(Xa,t))}catch(X){return!0}var t,n}(t)){if(Ga(u,t))throw new Ka("Converting circular structure to JSON");e=function(e,t,n){for(var r=xt(null),i=0,o=t.length;i<o;i++){var a=t[i];r[n+a]=function(n,r){return{toJSON:function(){var e,t=n[r];return t=(W(t)||"bigint"==typeof t)&&(e=t.toJSON,oe(e))?x(e,t,r):t}}}(e,a)}return r[hs]=null,r}(t,o,a);return is(u,t),is(l,r),a&&(c=!0),r=e}return t},n);if("string"!=typeof f)return f;if(gs&&(f=ns(f,ss,ws)),!c)return f;for(var h="",p=f.length,m=0;m<p;m++){var g,v,y=es(f,m);'"'===y?(g=function(e,t){for(var n=!0,r="";t<e.length;){var i=Ho(e,t);if("\\"===i){var o=qo(e,t,t+2);if(T(Go,o))r+=Go[o],t+=2;else{if("\\u"!==o)throw new Bo('Unknown escape sequence: "'+o+'"');o=qo(e,t+=2,t+4);if(!Vo(Jo,o))throw new Bo("Bad Unicode escape at: "+t);r+=Wo(zo(o,16)),t+=4}}else{if('"'===i){n=!1,t++;break}if(Vo(Ko,i))throw new Bo("Bad control character in string literal at: "+t);r+=i,t++}}if(n)throw new Bo("Unterminated string at: "+t);return{value:r,end:t}}(f,++m).end-1,v=rs(f,m,g),rs(v,0,ps)===ds?h+=s[rs(v,ps)]:rs(v,0,ms)===fs?h+='"'+rs(v,ms)+'"':h+='"'+v+'"',m=g):h+=y}return h}}),!a||g(function(){or.f(1)})),ks=(R({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(e){var t=or.f;return t?t(ce(e)):[]}}),Ei("iterator"),qt.charAt),_s=zt.set,Ss=zt.getterFor("String Iterator"),u=(Nr(String,"String",function(e){_s(this,{type:"String Iterator",string:E(e),index:0})},function(){var e=Ss(this),t=e.string,n=e.index;return n>=t.length?Lr(undefined,!0):(t=ks(t,n),e.index+=t.length,Lr(t,!1))}),a&&!Symbol.sham&&"symbol"==I(Symbol.iterator)),s=(Object,TypeError,TypeError,tt("toPrimitive"),TypeError,Object.defineProperty,lt.f),Es=(R({target:"Object",stat:!0,forced:Object.defineProperty!==s,sham:!f},{defineProperty:s}),g(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),tt("isConcatSpreadable")),l=51<=Jn||!g(function(){var e=[];return e[Es]=!1,e.concat()[0]!==e}),a=!l||!r("concat"),Cs=(R({target:"Array",proto:!0,arity:1,forced:a},{concat:function(e){for(var t,n,r,i,o,a=ce(this),s=gi(a,0),u=0,l=-1,c=arguments.length;l<c;l++)if(i=r=-1===l?a:arguments[l],o=void 0,!W(i)||((o=i[Es])!==undefined?!o:!ee(i)))ve(u+1),$n(s,u++,r);else for(n=me(r),ve(u+n),t=0;t<n;t++,u++)t in r&&$n(s,u,r[t]);return Ln(s,u),s}}),Function),Rs=v([].concat),Os=v([].join),xs={},Is=Ee?Cs.bind:function(t){var n=Ue(this),e=n.prototype,r=Zn(arguments,1),i=function(){var e=Rs(r,Zn(arguments));return this instanceof i?function(e,t,n){if(!T(xs,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";xs[t]=Cs("C,a","return new C("+Os(r,",")+")")}return xs[t](e,n)}(n,e.length,e):n.apply(t,e)};return W(e)&&(i.prototype=e),i},s=(R({target:"Function",proto:!0,forced:Function.bind!==Is},{bind:Is}),Function.prototype),l=s.call,a=(Ee&&s.bind.bind(l,l),Date.prototype),Ts=v(a.toString),Ms=v(a.getTime),l=("Invalid Date"!==String(new Date(NaN))&&Kt(a,"toString",function(){var e=Ms(this);return e==e?Ts(this):"Invalid Date"}),qe.PROPER),s=RegExp.prototype,As=s.toString,a=g(function(){return"/a/b"!==As.call({source:"a",flags:"b"})}),l=l&&"toString"!==As.name,Ps=((a||l)&&Kt(s,"toString",function(){var e=S(this);return"/"+E(e.source)+"/"+E(mn(e))},{unsafe:!0}),O.RegExp),a=g(function(){var e=Ps("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),l=a||g(function(){return!Ps("a","y").sticky}),s={BROKEN_CARET:a||g(function(){var e=Ps("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:l,UNSUPPORTED_Y:a},Ds=zt.get,Ls=RegExp.prototype,Ns=TypeError,Fs=(f&&s.MISSED_STICKY&&Ht(Ls,"sticky",{configurable:!0,get:function(){if(this!==Ls){if("RegExp"===re(this))return!!Ds(this).sticky;throw new Ns("Incompatible receiver, RegExp required")}}}),/#|\.prototype\./),l=function(e,t){e=js[Us(e)];return e===zs||e!==Bs&&(oe(t)?g(t):!!t)},Us=l.normalize=function(e){return String(e).replace(Fs,".").toLowerCase()},js=l.data={},Bs=l.NATIVE="N",zs=l.POLYFILL="P",Ws=l,Hs=lt.f,qs=O.RegExp,Vs=g(function(){var e=qs(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),Gs=O.RegExp,Js=g(function(){var e=Gs("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),a=er.f,Ks=zt.enforce,$s=tt("match"),Zs=O.RegExp,Ys=Zs.prototype,Xs=O.SyntaxError,Qs=v(Ys.exec),eu=v("".charAt),tu=v("".replace),nu=v("".indexOf),ru=v("".slice),iu=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ou=/a/g,au=/a/g,l=new Zs(ou)!==ou,su=s.MISSED_STICKY,uu=s.UNSUPPORTED_Y,l=f&&(!l||su||Vs||Js||g(function(){return au[$s]=!1,Zs(ou)!==ou||Zs(au)===au||"/a/i"!==String(Zs(ou,"i"))}));if(Ws("RegExp",l)){for(var lu=function(e,t){var n,r,i=Oe(Ys,this),o=eo(e),a=t===undefined,s=[],u=e;if(!i&&o&&a&&e.constructor===lu)return e;if((o||Oe(Ys,e))&&(e=e.source,a)&&(t=mn(u)),e=e===undefined?"":E(e),t=t===undefined?"":E(t),u=e,o=t=Vs&&"dotAll"in ou&&(n=!!t&&-1<nu(t,"s"))?tu(t,/s/g,""):t,su&&"sticky"in ou&&(r=!!t&&-1<nu(t,"y"))&&uu&&(t=tu(t,/y/g,"")),Js&&(e=(a=function(e){for(var t,n=e.length,r=0,i="",o=[],a=xt(null),s=!1,u=!1,l=0,c="";r<n;r++){if("\\"===(t=eu(e,r))){if(t+=eu(e,++r),!u&&"\\"===eu(t,1)){i+="\\x5c";continue}}else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:i+=t,Qs(iu,ru(e,r+1))?(r+=2,u=!0,l++):"?"!==eu(e,r+1)&&l++;continue;case">"===t&&u:if(""===c||T(a,c))throw new Xs("Invalid capture group name");a[c]=!0,u=!(o[o.length]=[c,l]),c="";continue}u?c+=t:i+=t}for(var d=0;d<o.length;d++)for(var f="\\k<"+o[d][0]+">",h="\\"+o[d][1];-1<nu(i,f);)i=tu(i,f,h);return[i,o]}(e))[0],s=a[1]),a=da(Zs(e,t),i?this:Ys,lu),(n||r||s.length)&&(t=Ks(a),n&&(t.dotAll=!0,t.raw=lu(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<n;r++)"\\"!==(t=eu(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+eu(e,++r);return i}(e),o)),r&&(t.sticky=!0),s.length)&&(t.groups=s),e!==u)try{ct(a,"source",""===u?"(?:)":u)}catch(X){}return a},cu=a(Zs),du=0;cu.length>du;)!function(e,t,n){n in e||Hs(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}(lu,Zs,cu[du++]);(Ys.constructor=lu).prototype=Ys,Kt(O,"RegExp",lu,{constructor:!0})}Aa("RegExp");ke("native-string-replace",String.prototype.replace);var fu=RegExp.prototype.exec,hu=(v("".charAt),v("".indexOf),v("".replace),v("".slice),l=/b*/g,x(fu,a=/a/,"a"),x(fu,l,"a"),/()??/.exec("")[1],undefined,R({target:"RegExp",proto:!0,forced:/./.exec!==$t},{exec:$t}),TypeError),pu=function(e){if(An(e))return e;throw new hu(Ie(e)+" is not a constructor")},mu=tt("species"),gu=function(e,t){var e=S(e).constructor;return e===undefined||ae(e=S(e)[mu])?t:pu(e)},vu=s.UNSUPPORTED_Y,yu=Math.min,wu=v([].push),bu=v("".slice),ku=v("".indexOf),a=!g(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),_u="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length,Su=(jt("split",function(i,p,m){var g="0".split(undefined,0).length?function(e,t){return e===undefined&&0===t?[]:x(p,this,e,t)}:p;return[function(e,t){var n=ue(this),r=W(e)?rn(e,i):undefined;return r?x(r,e,n,t):x(g,E(n),e,t)},function(e,t){var n=S(this),r=E(e);if(!_u){e=m(g,n,r,t,g!==p);if(e.done)return e.value}var e=gu(n,RegExp),i=E(mn(n)),o=!!~ku(i,"u")||!!~ku(i,"v"),a=(vu?~ku(i,"g")||(i+="g"):~ku(i,"y")||(i+="y"),new e(vu?"^(?:"+n.source+")":n,i)),s=t===undefined?4294967295:t>>>0;if(0==s)return[];if(0===r.length)return null===vn(a,r)?[r]:[];for(var u=0,l=0,c=[];l<r.length;){a.lastIndex=vu?0:l;var d,f=vn(a,vu?bu(r,l):r);if(null===f||(d=yu(pe(a.lastIndex+(vu?l:0)),r.length))===u)l=nn(r,l,o);else{if(wu(c,bu(r,u,l)),c.length===s)return c;for(var h=1;h<=f.length-1;h++)if(wu(c,f[h]),c.length===s)return c;l=u=d}}return wu(c,bu(r,u)),c}]},_u||!a,vu),Object),Eu=(v("".split),g(function(){return!Su("z").propertyIsEnumerable(0)}),ur.f),l=!f||g(function(){Eu(1)}),s=(R({target:"Object",stat:!0,forced:l,sham:!f},{getOwnPropertyDescriptor:function(e,t){return Eu(Ge(e),t)}}),Object.getOwnPropertyDescriptor,ur.f,R({global:!0,forced:O.globalThis!==O},{globalThis:O}),function(e){return e&&e.Math===Math&&e}),a=(s("object"==("undefined"==typeof globalThis?"undefined":I(globalThis))&&globalThis)||s("object"==("undefined"==typeof window?"undefined":I(window))&&window)||s("object"==("undefined"==typeof self?"undefined":I(self))&&self)||s("object"==I(Be)&&Be)||s("object"==I(Be)&&Be)||function(){return this}()||Function("return this")(),O.Symbol),l=(ke("wks"),u?a["for"]:a&&a.withoutSetter,{}),Cu=(l[tt("toStringTag")]="z",String(l),Kt(Object.prototype,"toString",function(){return"[object "+ot(this)+"]"},{unsafe:!0}),jr("find",TypeError)),Ru=(R({target:"Iterator",proto:!0,real:!0,forced:Cu},{find:function(n){S(this);try{Ue(n)}catch(X){ii(this,"throw",X)}var e,r;return Cu?x(Cu,this,n):(e=li(this),ui(e,function(e,t){if(n(e,r++))return t(e)},{IS_RECORD:!(r=0),INTERRUPTED:!0}).result)}}),vi.find),Ou=!0,xu=("find"in[]&&Array(1).find(function(){Ou=!1}),R({target:"Array",proto:!0,forced:Ou},{find:function(e){return Ru(this,e,1<arguments.length?arguments[1]:undefined)}}),ir("find"),Date),Iu=v(xu.prototype.getTime),Tu=(R({target:"Date",stat:!0},{now:function(){return Iu(new xu)}}),function(e,t,n,r){try{return r?t(S(n)[0],n[1]):t(n)}catch(X){ii(e,"throw",X)}}),Mu=Array,Au=function(e){var t=An(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&(r=$r(r,2<n?arguments[2]:undefined));var o,a,s,u,l,c,d=ce(e),n=ti(d),f=0;if(!n||this===Mu&&Xr(n))for(o=me(d),a=t?new this(o):Mu(o);f<o;f++)c=i?r(d[f],f):d[f],$n(a,f,c);else for(a=t?new this:[],l=(u=ri(d,n)).next;!(s=x(l,u)).done;f++){try{ve(f)}catch(X){ii(u,"throw",X)}c=i?Tu(u,r,[s.value,f],!0):s.value;try{$n(a,f,c)}catch(X){ii(u,"throw",X)}}return Ln(a,f),a},Pu=void 0,Be=!Pu(function(e){Array.from(e)}),s=(R({target:"Array",stat:!0,forced:Be},{from:Au}),tt("iterator"));try{var Du=0,Lu={next:function(){return{done:!!Du++}},"return":function(){0}};Lu[s]=function(){return this},Array.from(Lu,function(){throw 2})}catch(X){}var Nu,Fu,ke=function(e,t,n){var r,i,o,a,s,u=-1!==e.indexOf("Map"),l=-1!==e.indexOf("Weak"),c=u?"set":"add",d=O[e],f=d&&d.prototype,h=d,p={},m=function(e){var n=v(f[e]);Kt(f,e,"add"===e?function(e){return n(this,0===e?0:e),this}:"delete"===e?function(e){return!(l&&!W(e))&&n(this,0===e?0:e)}:"get"===e?function(e){return l&&!W(e)?undefined:n(this,0===e?0:e)}:"has"===e?function(e){return!(l&&!W(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};return Ws(e,!oe(d)||!(l||f.forEach&&!g(function(){(new d).entries().next()})))?(h=n.getConstructor(t,e,u,c),Ba.enable()):Ws(e,!0)&&(i=(r=new h)[c](l?{}:-0,1)!==r,o=g(function(){r.has(1)}),a=Pu(function(e){new d(e)}),s=!l&&g(function(){for(var e=new d,t=5;t--;)e[c](t,t);return!e.has(-0)}),a||(((h=t(function(e,t){fr(e,f);e=da(new d,e,h);return ae(t)||ui(t,e[c],{that:e,AS_ENTRIES:u}),e})).prototype=f).constructor=h),(o||s)&&(m("delete"),m("has"),u)&&m("get"),(s||i)&&m(c),l)&&f.clear&&delete f.clear,R({global:!0,constructor:!0,forced:(p[e]=h)!==d},p),br(h,e),l||n.setStrong(h,e,u),h},Uu=vi.findIndex,ju=!0,Bu=("findIndex"in[]&&Array(1).findIndex(function(){ju=!1}),R({target:"Array",proto:!0,forced:ju},{findIndex:function(e){return Uu(this,e,1<arguments.length?arguments[1]:undefined)}}),ir("findIndex"),Ba.getWeakData),zu=zt.set,Wu=zt.getterFor,Hu=vi.find,qu=vi.findIndex,Vu=v([].splice),Gu=0,Ju=function(e){return e.frozen||(e.frozen=new Ku)},Ku=function(){this.entries=[]},$u=function(e,t){return Hu(e.entries,function(e){return e[0]===t})},u=(Ku.prototype={get:function(e){e=$u(this,e);if(e)return e[1]},has:function(e){return!!$u(this,e)},set:function(e,t){var n=$u(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(t){var e=qu(this.entries,function(e){return e[0]===t});return~e&&Vu(this.entries,e,1),!!~e}},{getConstructor:function(e,n,r,i){var e=e(function(e,t){fr(e,o),zu(e,{type:n,id:Gu++,frozen:null}),ae(t)||ui(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=Wu(n),s=function(e,t,n){var r=a(e),i=Bu(S(t),!0);return!0===i?Ju(r).set(t,n):i[r.id]=n,e};return ta(o,{"delete":function(e){var t,n=a(this);return!!W(e)&&(!0===(t=Bu(e))?Ju(n)["delete"](e):t&&T(t,n.id)&&delete t[n.id])},has:function(e){var t,n=a(this);return!!W(e)&&(!0===(t=Bu(e))?Ju(n).has(e):t&&T(t,n.id))}}),ta(o,r?{get:function(e){var t,n=a(this);if(W(e))return!0===(t=Bu(e))?Ju(n).get(e):t?t[n.id]:void 0},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),e}});function Zu(e){this.name="__st"+(1e9*Math.random()>>>0)+Nu+"__",null!=e&&e.forEach(this.add,this),Nu+=1}ke("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},u),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return o;i+=1}return undefined}}),window.WeakSet||(Nu=Date.now()%1e9,Zu.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},Zu.prototype["delete"]=function(e){return!!e[this.name]&&(e[this.name]=undefined,!0)},Zu.prototype.has=function(e){return!!e[this.name]},Fu=Zu,Object.defineProperty(window,"WeakSet",{value:function(e){return new Fu(e)}}));var Yu=Object.assign,Xu=Object.defineProperty,Qu=v([].concat),a=!Yu||g(function(){var e,t,n;return!(!f||1===Yu({b:1},Yu(Xu({},"a",{enumerable:!0,get:function(){Xu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},(e={})[n=Symbol("assign detection")]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==Yu({},e)[n])||"abcdefghijklmnopqrst"!==ft(Yu({},t)).join("")})?function(e,t){for(var n=ce(e),r=arguments.length,i=1,o=or.f,a=bi.f;i<r;)for(var s,u=Ve(arguments[i++]),l=o?Qu(ft(u),o(u)):ft(u),c=l.length,d=0;d<c;)s=l[d++],f&&!x(a,u,s)||(n[s]=u[s]);return n}:Yu,el=(R({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e===undefined||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if((r=arguments[n])!==undefined&&null!==r)for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);null!=u&&u.enumerable&&(t[s]=r[s])}return t}}),function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}),tl=i.IteratorPrototype,l=tt("toStringTag"),nl=zt.set,Be=function(c){var d=zt.getterFor(c?"WrapForValidIterator":"IteratorHelper");return ta(xt(tl),{next:function(){var e=d(this);if(c)return e.nextHandler();if(e.done)return Lr(undefined,!0);try{var t=e.nextHandler();return e.done&&el(e),e.returnHandlerResult?t:Lr(t,e.done)}catch(X){throw e.done=!0,el(e),X}},"return":function(){var e,t=d(this),n=t.iterator,r=t.inner,i=t.openIters,o=t.done;if(t.done=!0,c)return(e=rn(n,"return"))?x(e,n):Lr(undefined,!0);if(el(t),!o){if(r)try{ii(r.iterator,"normal")}catch(X){return ii(n,"throw",X)}if(i)try{for(var a=i,s="normal",u=void 0,l=a.length-1;0<=l;l--)if(a[l]!==undefined)try{u=ii(a[l].iterator,s,u)}catch(X){s="throw",u=X}if("throw"===s)throw u}catch(X){if(n)return ii(n,"throw",X);throw X}n&&ii(n,"normal")}return Lr(undefined,!0)}})},rl=Be(!0),il=Be(!1),s=(ct(il,l,"Iterator Helper"),function(n,r,i){var e=function(e,t){t?(t.iterator=e.iterator,t.next=e.next):t=e,t.type=r?"WrapForValidIterator":"IteratorHelper",t.returnHandlerResult=!!i,t.nextHandler=n,t.counter=0,t.done=!1,nl(this,t)};return e.prototype=r?rl:il,e}),Lu=function(e,t){e="function"==typeof Iterator&&Iterator.prototype[e];if(e)try{e.call({next:null},t).next()}catch(X){return!0}},i=!Lu("filter",function(){}),ol=!i&&jr("filter",TypeError),Be=i||ol,al=s(function(){for(var e,t=this.iterator,n=this.predicate,r=this.next;;){if(e=S(x(r,t)),this.done=!!e.done)return;if(Tu(t,n,[e=e.value,this.counter++],!0))return e}}),sl=(R({target:"Iterator",proto:!0,real:!0,forced:Be},{filter:function(e){S(this);try{Ue(e)}catch(X){ii(this,"throw",X)}return ol?x(ol,this,e):new al(li(this),{predicate:e})}}),vi.filter),l=r("filter"),i=(R({target:"Array",proto:!0,forced:!l},{filter:function(e){return sl(this,e,1<arguments.length?arguments[1]:undefined)}}),!Lu("map",function(){})),ul=!i&&jr("map",TypeError),Be=i||ul,ll=s(function(){var e=this.iterator,t=S(x(this.next,e));if(!(this.done=!!t.done))return Tu(e,this.mapper,[t.value,this.counter++],!0)}),cl=(R({target:"Iterator",proto:!0,real:!0,forced:Be},{map:function(e){S(this);try{Ue(e)}catch(X){ii(this,"throw",X)}return ul?x(ul,this,e):new ll(li(this),{mapper:e})}}),vi.map),l=r("map"),dl=(R({target:"Array",proto:!0,forced:!l},{map:function(e){return cl(this,e,1<arguments.length?arguments[1]:undefined)}}),TypeError),fl="Reduce of empty array with no initial value",i=function(l){return function(e,t,n,r){var i=ce(e),o=Ve(i),a=me(i);if(Ue(t),0===a&&n<2)throw new dl(fl);var s=l?a-1:0,u=l?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=u;break}if(s+=u,l?s<0:a<=s)throw new dl(fl)}for(;l?0<=s:s<a;s+=u)s in o&&(r=t(r,o[s],s,i));return r}},Be={left:i(!1),right:i(!0)},r=function(e){return Gn.slice(0,e.length)===e},hl=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":O.Bun&&"string"==typeof Bun.version?"BUN":O.Deno&&"object"==I(Deno.version)?"DENO":"process"===re(O.process)?"NODE":O.window&&O.document?"BROWSER":"REST",pl="NODE"==hl,ml=Be.left,l=!pl&&79<Jn&&Jn<83||!He("reduce"),gl=(R({target:"Array",proto:!0,forced:l},{reduce:function(e){var t=arguments.length;return ml(this,e,t,1<t?arguments[1]:undefined)}}),Ba.fastKey),vl=zt.set,yl=zt.getterFor,i={getConstructor:function(e,n,r,i){var e=e(function(e,t){fr(e,o),vl(e,{type:n,index:xt(null),first:null,last:null,size:0}),f||(e.size=0),ae(t)||ui(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=yl(n),s=function(e,t,n){var r,i=a(e),o=u(e,t);return o?o.value=n:(i.last=o={index:r=gl(t,!0),key:t,value:n,previous:t=i.last,next:null,removed:!1},i.first||(i.first=o),t&&(t.next=o),f?i.size++:e.size++,"F"!==r&&(i.index[r]=o)),e},u=function(e,t){var n,e=a(e),r=gl(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key===t)return n};return ta(o,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=xt(null),f?e.size=0:this.size=0},"delete":function(e){var t,n,r=a(this),e=u(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first===e&&(r.first=t),r.last===e&&(r.last=n),f?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=a(this),r=$r(e,1<arguments.length?arguments[1]:undefined);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),ta(o,r?{get:function(e){e=u(this,e);return e&&e.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),f&&Ht(o,"size",{configurable:!0,get:function(){return a(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",i=yl(t),o=yl(r);Nr(e,t,function(e,t){vl(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Lr("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,Lr(undefined,!0))},n?"entries":"values",!n,!0),Aa(t)}},wl=(ke("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i),TypeError),r=g(function(){[].keys().reduce(function(){},undefined)}),bl=!r&&jr("reduce",wl),kl=(R({target:"Iterator",proto:!0,real:!0,forced:r||bl},{reduce:function(t){S(this);try{Ue(t)}catch(X){ii(this,"throw",X)}var n=arguments.length<2,r=n?undefined:arguments[1];if(bl)return je(bl,this,n?[t]:[t,r]);var e=li(this),i=0;if(ui(e,function(e){r=n?(n=!1,e):t(r,e,i),i++},{IS_RECORD:!0}),n)throw new wl("Reduce of empty iterator with no initial value");return r}}),function(e,t){return(kl=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)});function _l(e,t){function n(){this.constructor=e}kl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Sl(e,a,s,u){return new(s=s||Promise)(function(n,t){function r(e){try{o(u.next(e))}catch(a){t(a)}}function i(e){try{o(u["throw"](e))}catch(a){t(a)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((u=u.apply(e,a||[])).next())})}function El(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&t[0]?a["return"]:t[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))u.label=t[1];else if(6===t[0]&&u.label<s[1])u.label=s[1],s=t;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(t)}}t=i.call(r,u)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function Cl(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var Rl=/_?t(\d)?(imestamp)?=\d+&?/g,Ol=function(e,t){void 0===t&&(t="https://dem.rumt-zh.com");t=(e.url||"").replace(/\/+$/,"")||("string"==typeof t?t:"https://dem.rumt-zh.com");return e.url=t,e.hostUrl=t,e.offlineUrl=t+"/offline",e.whiteListUrl=t+"/collect/whitelist",e.pvUrl=t+"/collect/pv",e.eventUrl=t+"/collect/events",e.speedUrl=t+"/speed",e.customTimeUrl=t+"/speed/custom",e.performanceUrl=t+"/speed/performance",e.performanceUrlForHippy=t+"/speed/hippyPerformance",e.webVitalsUrl=t+"/speed/webvitals",e.setDataReportUrl=t+"/speed/miniProgramData",e},xl=["aegis.qq.com","tamaegis.com","/aegis-sdk","rumt-","/flog.core.min.js","pingfore.qq.com","pingfore.tencent.com","zhiyan.tencent-cloud.net","h.trace.qq.com","btrace.qq.com","beacon.qq.com","dmplog.qq.com","qq.com/report","svibeacon.onezapp.com","cube.weixinbridge.com","doubleclick.net","pcmgrmonitor.3g.qq.com","tdm.qq.com","report.qqweb.qq.com","tpstelemetry.tencent.com","galileotelemetry.tencent.com","insight.cloud.tencent.com","facebook.com","facebook.net","google","yahoo.com","twitter.com","ga-audiences","report.idqqimg.com","arms-retcode.aliyuncs.com","px.effirst.com","sentry","baidu.com","hot-update.json","u.c.b.r.o.w.s.e.r","report.url.cn","sockjs-node","m3u8","flv"],Il=["ResizeObserver loop limit exceeded","ResizeObserver loop completed","Failed to execute 'transaction'","window.indexedDB.deleteDatabase is not a function"],Tl=["ext1","ext2","ext3","ext4","ext5","ext6","ext7","ext8","ext9","ext10","level","trace","spanId","tag","seq","code"],Ml=["static","fetch"],Al="unknown",Pl=function(e,t,n,r,i,o,a,s){for(var u,l,c=i,d=0,f=!!a&&$r(a,s);d<r;)d in n&&(u=f?f(n[d],d,t):n[d],0<o&&ee(u)?(l=me(u),c=Pl(e,t,u,l,c,o-1)-1):(ve(c+1),$n(e,c,u)),c++),d++;return c},Dl=Pl,Ll=(R({target:"Array",proto:!0},{flatMap:function(e){var t,n=ce(this),r=me(n);return Ue(e),t=gi(n,0),Dl(t,n,n,r,0,1,e,1<arguments.length?arguments[1]:undefined),t}}),jr("some",TypeError)),Nl=(R({target:"Iterator",proto:!0,real:!0,forced:Ll},{some:function(n){S(this);try{Ue(n)}catch(X){ii(this,"throw",X)}var e,r;return Ll?x(Ll,this,n):(e=li(this),ui(e,function(e,t){if(n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),vi.some),l=He("some"),r=(R({target:"Array",proto:!0,forced:!l},{some:function(e){return Nl(this,e,1<arguments.length?arguments[1]:undefined)}}),ir("flatMap"),g(function(){return 1!==[1].values().flatMap(function(){return[1]}).find(function(){return!0})})),l=!r&&!Lu("flatMap",function(){}),Fl=!r&&!l&&jr("flatMap",TypeError),Lu=r||l||Fl,Ul=s(function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=S(x(t.next,t.iterator))).done)return e.value;this.inner=null}catch(X){ii(n,"throw",X)}if(e=S(x(this.next,n)),this.done=!!e.done)return;try{this.inner=function(e,t){t&&"string"==typeof e||S(e);t=ti(e);return li(S(t!==undefined?x(t,e):e))}(r(e.value,this.counter++),!1)}catch(X){ii(n,"throw",X)}}}),jl=(R({target:"Iterator",proto:!0,real:!0,forced:Lu},{flatMap:function(e){S(this);try{Ue(e)}catch(X){ii(this,"throw",X)}return Fl?x(Fl,this,e):new Ul(li(this),{mapper:e,inner:null})}}),Jl.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},Jl.prototype.on=function(e,t,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[e])||(this.eventsList[e]=[],r=this.eventsList[e]),-1===this.indexOf(r,t)&&r.push({name:e,type:n||0,callback:t}),this},Jl.prototype.one=function(e,t){this.on(e,t,1)},Jl.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(n){if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch(De){}}return null}},Jl.prototype.clear=function(){this.eventsList={}},Jl),Bl=function(e){try{return localStorage.getItem(e)}catch(bw){return null}},zl=function(e,t){try{localStorage.setItem(e,t)}catch(bw){}},Wl=function(e,t){try{return e?JSON.parse(e):t}catch(bw){return t}},r=er.f,Hl=ur.f,ql=lt.f,Vl=o.trim,Gl=O.Number;function Jl(){var a=this;this.emit=function(e,t){if(a){var n;if(null!=(r=a.eventsList[e])&&r.length)for(var r=r.slice(),i=0;i<r.length;i++){n=r[i];try{var o=n.callback.apply(a,[t]);if(1===n.type&&a.remove(e,n.callback),!1===o)break}catch(L){throw L}}return a}},this.eventsList={}}_i.Number;var Kl=Gl.prototype,$l=O.TypeError,Zl=v("".slice),Yl=v("".charCodeAt),Xl=function(e){var t,n,r,i,o,a,s,u=Co(e,"number");if(Yi(u))throw new $l("Cannot convert a Symbol value to a number");if("string"==typeof u&&2<u.length)if(u=Vl(u),43===(e=Yl(u,0))||45===e){if(88===(t=Yl(u,2))||120===t)return NaN}else if(48===e){switch(Yl(u,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+u}for(o=(i=Zl(u,2)).length,a=0;a<o;a++)if((s=Yl(i,a))<48||r<s)return NaN;return parseInt(i,n)}return+u},l=Ws("Number",!Gl(" 0o1")||!Gl("0b1")||Gl("+0x1")),Ql=function(e){var t,e=arguments.length<1?0:Gl(function(e){e=Co(e,"number");return"bigint"==typeof e?e:Xl(e)}(e));return Oe(Kl,t=this)&&g(function(){xo(t)})?da(Object(e),this,Ql):e};if(Ql.prototype=Kl,l&&(Kl.constructor=Ql),R({global:!0,constructor:!0,wrap:!0,forced:l},{Number:Ql}),l)for(var ec=_i.Number,tc=Gl,nc,rc=f?r(tc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),ic=0;rc.length>ic;ic++)T(tc,nc=rc[ic])&&!T(ec,nc)&&ql(ec,nc,Hl(tc,nc));var oc,ac=O.isFinite,s=Number.isFinite||function(e){return"number"==typeof e&&ac(e)};function sc(e){var t;return e===undefined||null===e||!(e=String(e).trim())||(t=e.toLowerCase())===Al||"undefined"===t||"null"===t||"未知"===e?undefined:e}function uc(e){return e&&"string"==typeof e?e.replace(/eval\(/gi,"evaI("):e}R({target:"Number",stat:!0},{isFinite:s}),(Lu=oc=oc||{})[Lu.number=-1]="number",Lu.string="";var lc,cc=function(e,t){return"number"==typeof e||"string"==typeof e?e:t?oc.string:oc.number},dc=function(e,t){return"string"==typeof e?e.split("?")[t?1:0]||"":e},fc=function(e,t){return void 0===t&&(t=2048),String(e).replace(Rl,"").slice(0,t)},hc=function(e){return"string"==typeof e&&/^\//.test(e)?"https:"===(null==location?void 0:location.protocol):/^https/.test(e)},pc=["application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/x-javascript","application/ecmascript","application/vnd.mspowerpoint","application/vnd.apple.mpegurl","application/ogg","text/css","text/javascript","image","audio","video","video/mp2t"],mc=/\.(json|js|css|jpg|jpeg|png|svg|apng|webp|gif|bmp|mp4|mp3|ts|mpeg|wav|webm|ogg|flv|m3u8|ttf|woff2|otf|eot|woff|html|htm|shtml|shtm|)$/i,gc=["ret","retcode","code","errcode"],vc=function(e,t,n){var r,i,o;try{if("function"==typeof(null==t?void 0:t.retCodeHandler))return{code:void 0===(o=(i=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code)?Al:o,isErr:i.isErr};if(!(e="string"==typeof e?JSON.parse(e):e))return{code:Al,isErr:!1};"function"==typeof(null==(r=null==t?void 0:t.ret)?void 0:r.join)&&(gc=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var a=Object.getOwnPropertyNames(e).filter(function(e){return-1!==gc.indexOf(e.toLowerCase())});return a.length?{code:""+(o="未知"!==(o=e[a[0]])&&""!==o?o:Al),isErr:0!==o&&"0"!==o&&o!==Al}:{code:Al,isErr:!1}}catch(N){return{code:Al,isErr:!1}}},yc=function(e,t,n){try{var r="function"==typeof t?t(e,null==n?void 0:n.url,null==n?void 0:n.ctx)||"":e;return _c(r).slice(0,10240)}catch(De){return""}},wc=function(){var n=new WeakSet;return function(e,t){if(t instanceof Error)return"Error.message: "+t.message+" \n Error.stack: "+t.stack;if("object"===I(t)&&null!==t){if(n.has(t))return"[Circular "+(e||"root")+"]";n.add(t)}return t}},bc=function(e){if("string"==typeof e)return e;try{return e instanceof Error?(JSON.stringify(e,wc(),2)||"undefined").replace(/"/gim,""):JSON.stringify(e,wc(),2)||"undefined"}catch(w){return"error happen when tdem stringify: \n "+w.message+" \n "+w.stack}},kc=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,wc())||"undefined"}catch(w){return"error happen when tdem stringify: \n "+w.message+" \n "+w.stack}},_c=function(n,r){void 0===r&&(r=3);var i,o,a,s="";return Array.isArray(n)?(s+="[",i=n.length,n.forEach(function(e,t){"object"===I(e)&&1<r?s+=_c(e,r-1):s+=Ec(e),s+=t===i-1?"":","}),s+="]"):n instanceof Object||"object"===I(n)?(s="{",o=Object.keys(n),a=o.length,o.forEach(function(e,t){"object"===I(n[e])&&1<r?s+='"'+e+'":'+_c(n[e],r-1):s+=Sc(e,n[e]),s+=t===a-1||t<a-1&&"undefined"==typeof n[o[t+1]]?"":","}),s+="}"):s+=n,s},Sc=function(e,t){var n=I(t),r="";return"string"===n||"object"===n?r+='"'+e+'":"'+t+'"':"function"==typeof t?r+='"'+e+'":"function '+t.name+'"':"symbol"===I(t)?r+='"'+e+'":"symbol"':"number"!=typeof t&&"boolean"!==n||(r+='"'+e+'": '+t),r},Ec=function(e){var t=I(e);return""+("undefined"===t||"symbol"===t||"function"===t?"null":"string"===t||"object"===t?'"'+e+'"':e)},Cc=function(t){var n;return t.payload?(n={},Object.keys(t).forEach(function(e){"payload"!==e&&(n[e]=t[e])}),n):t},Rc=function(e,t){var n,r={fetch:[],"static":[],bridge:[]},i=new FormData;return Array.isArray(e)?e.forEach(function(e){var t=Cc(e);r[e.type].push(t)}):(n=Cc(e),r[e.type].push(n)),i.append("payload",kc(M({duration:r},t))),i},Oc=/data:(image|text|application|font)\/.*;base64/,xc=function(t,e){return"string"!=typeof t||!t||e&&-1<t.indexOf(e)||Oc.test(t)||xl.some(function(e){return-1<t.indexOf(e)})};(l=lc=lc||{}).LOG="log",l.SPEED="speed",l.PERFORMANCE="performance",l.OFFLINE="offline",l.WHITE_LIST="whiteList",l.VITALS="vitals",l.PV="pv",l.CUSTOM_PV="customPV",l.EVENT="event",l.CUSTOM="custom",l.SDK_ERROR="sdkError",l.SET_DATA="setData",l.LOAD_PACKAGE="loadPackage",l.MEMORY="memory";var Ic,Tc={maxAttempts:3,delays:[0,1e3,3e3]};(r=Ic=Ic||{}).production="production",r.development="development",r.gray="gray",r.pre="pre",r.daily="daily",r.local="local",r.test="test",r.others="others";var A,Mc,Ac=function(e){return null==e?Ic.production:function(e){switch(e){case Ic.production:case Ic.development:case Ic.gray:case Ic.pre:case Ic.daily:case Ic.local:case Ic.test:case Ic.others:return!0;default:return!1}}(e)?e:Ic.others};function Pc(){return"evt_"+Date.now()+"_"+Math.random().toString(36).substring(2,8)}function Dc(e){var t=[];if(e.stack)for(var n=0,r=0,i=e.stack.split("\n");r<i.length;r++){var o,a,s,u,l,c=i[r],d=c.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)/);d?(a=d[1],o=d[2],s=d[3],u=d[4],l=o.split("/").pop()||o,t.push({abs_path:o,colno:parseInt(u,10),filename:l,"function":a||"(anonymous)",lineno:parseInt(s,10),in_app:o.includes("node_modules")||o.includes("cdn")?0:1,stack_level:n++})):(d=c.match(/at\s+(.+?):(\d+):(\d+)/))&&(a=d[1],s=d[2],u=d[3],l=a.split("/").pop()||a,t.push({abs_path:a,colno:parseInt(u,10),filename:l,"function":"(anonymous)",lineno:parseInt(s,10),in_app:a.includes("node_modules")||a.includes("cdn")?0:1,stack_level:n++}))}return t}(s=A=A||{}).JS_ERROR="js_error",s.PROMISE_ERROR="promise_error",s.RESOURCE_ERROR="resource_error",s.API_ERROR="api_error",s.BLANK_SCREEN="blank_screen",s.PAGE_LOAD="page_load",s.RESOURCE_LOAD="resource_load",s.API_CALL="api_call",s.SSE_CALL="sse_call",s["true"]="web_vitals",s.LAG_DETECTED="lag_detected",s.NO_RESPONSE="no_response",s.MEMORY_USAGE="memory_usage",s.APP_METRICS="app_metrics",s.PROCESS_SIGNAL="process_signal",s.MEMORY_OOM="memory_oom",s.FILE_IO="file_io",s.CLICK="click",s.SCROLL="scroll",s.LONG_PRESS="long_press",s.PAGE_VIEW="page_view",s.TAB_HIDDEN="tab_hidden",s.TAB_VISIBLE="tab_visible",s.WINDOW_BLUR="window_blur",s.WINDOW_FOCUS="window_focus",s.FORM_FOCUS="form_focus",s.FORM_BLUR="form_blur",s.FORM_CHANGE="form_change",s.FORM_SUBMIT="form_submit",s.FORM_SUBMIT_RESULT="form_submit_result",s.STRUGGLE="struggle",s.CUSTOM="custom",s.LOG="log",s.DIAL_PROBE="dial_probe",s.DIAL_MTR="dial_mtr",(l=Mc=Mc||{}).ERROR="error",l.PERFORMANCE="performance",l.BEHAVIOR="behavior",l.NETWORK="network",l.LOG="log",l.CUSTOM="custom";var Lc=TypeError,Nc=function(e,t){if(e<t)throw new Lc("Not enough arguments");return e},Fc=O.Function,Uc=/MSIE .\./.test(Gn)||"BUN"==hl&&((r=O.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2])),s=function(o,a){var s=a?2:1;return Uc?function(e,t){var n=Nc(arguments.length,1)>s,r=oe(e)?e:Fc(e),i=n?Zn(arguments,s):[],e=n?function(){je(r,this,i)}:r;return a?o(e,t):o(e)}:o},l=s(O.setInterval,!0),r=(R({global:!0,bind:!0,forced:O.setInterval!==l},{setInterval:l}),s(O.setTimeout,!0)),jc=(R({global:!0,bind:!0,forced:O.setTimeout!==r},{setTimeout:r}),function(e){return e.filter(function(n,r){return"static"!==n.type||!e.find(function(e,t){return n.url===e.url&&200===n.status&&r<t})})}),Bc=(R({target:"String",proto:!0},{repeat:Jr}),{}),zc={},Wc=function(e){return Bc[e]||(Bc[e]=setTimeout(function(){zc[e]={},Bc[e]=null},6e4)),Bc[e]},Hc=function(c,d){return function(i,o){var a,s,u,l,e,t,n;null!=i&&i.log&&null!=i&&i.type?(s=function(e,t){var n,r,t=M(M({},c.bean),{from:t}),i=M({},c.bean);return function(){try{return"undefined"!=typeof FormData&&"function"==typeof FormData.prototype.append}catch(a){}}()?Rc(e,t):(t=e,e=i,r={fetch:[],"static":[],bridge:[]},i={},Array.isArray(t)?t.forEach(function(e){var t;null!=(t=r[e.type])&&t.push(e)}):null!=(n=r[t.type])&&n.push(t),i.payload=JSON.stringify(M({duration:r},e)),i)},u=function(e,t,n,r){switch(t){case lc.LOG:o=e;var i=(Array.isArray(o)?o:[o]).map(function(n){return Object.getOwnPropertyNames(n).reduce(function(e,t){return"ctx"!==t&&(e[t]=n[t]),e},{level:"2",msg:""})});if(!i||0===i.length)return"{}";i=Array.isArray(i)?i:[i];var o=Array.from(new Set(i.flatMap(function(e){return Object.keys(e)}))),a={};return o.forEach(function(t){a[t]=i.map(function(e){return e[t]||""})}),a.count=i.length,kc(a);case lc.SPEED:return s(e,n);case lc.EVENT:return r;default:return r||{}}var o},1!==(e=Array.isArray(i.log)?i.log:[i.log]).length?(l={},e.forEach(function(e){var t=e.from||"undefined";delete e.from,l[t]||(l[t]=[]),l[t].push(e)}),Object.keys(l).forEach(function(e){var t,n=l[e],r=null!=(r=i.url)&&r.includes("?")?"&":"?";"undefined"===e?(t=""+i.url,o(M(M({},i),{url:t,log:1===n.length?n[0]:n,data:u(n,d,e,i.data)}))):(t=i.url+r+"from="+e,o(M(M({},i),{url:t,log:1===n.length?n[0]:n,beanFilter:Cl(i.beanFilter||[],["from"]),data:u(n,d,e,i.data)})))})):(t=(e=e[0]).from,delete e.from,n=null!=(a=i.url)&&a.includes("?")?"&":"?",t?(n=i.url+n+"from="+t,o(M(M({},i),{url:n,log:e,beanFilter:Cl(i.beanFilter||[],["from"]),data:u(e,d,t,i.data)}))):(n=""+i.url,o(M(M({},i),{url:n,log:e,data:u(e,d,t,i.data)}))))):o(i)}},qc=function(u,l){return function(e,t){var n,r,i,o=Array.isArray(e),a=o?e:[e],s=(u.lifeCycle.emit("beforeRequest",e),u.config.beforeRequest);(a="function"==typeof s?a.map(function(e){try{var t=s({logs:e,logType:l});return(null==t?void 0:t.logType)===l&&null!=t&&t.logs?t.logs:!1!==t&&e}catch(X){return e}}).filter(function(e){return!1!==e}):a).length&&(n=a,e=Tl,!Array.isArray(n)||n.length<=1||(r=[],i=[],!(i="string"==typeof e?[e]:e))||i.length<=0||(i.forEach(function(t){n.forEach(function(e){null!=e&&e[t]&&r.push(t)})}),0<r.length&&(n=n.map(function(e){var t={};return r.forEach(function(e){t[e]=""}),M(M({},t),e)}))),a=n,t(o?a:a[0]))}},Vc=function(i){return function(e,t){i.lifeCycle.emit("modifyRequest",e);var n=i.config.modifyRequest;if("function"==typeof n)try{var r=n(e);"object"===I(r)&&"url"in r&&(e=r)}catch(X){console.error(X)}t(e)}},Gc=function(r){return function(e,t){null!=(n=r.lifeCycle)&&n.emit("afterRequest",e);var n=(r.config||{}).afterRequest;"function"==typeof n&&!1===n(e)||t(e)}},Jc={generateTraceId:$c(16),generateSpanId:$c(8)},Kc=Array(32);function $c(t){return function(){for(var e=0;e<2*t;e++)Kc[e]=Math.floor(16*Math.random())+48,58<=Kc[e]&&(Kc[e]+=39);return String.fromCharCode.apply(null,Kc.slice(0,2*t))}}function Zc(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}var Yc=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},Xc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Qc=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ed=function(e){for(var t,n,r,i="",o=0,a=(e=String(e)).length%3;o<e.length;){if(255<(t=e.charCodeAt(o++))||255<(n=e.charCodeAt(o++))||255<(r=e.charCodeAt(o++)))throw new TypeError("Failed to execute 'btoa': The string to be encoded contains characters outside of the Latin1 range.");i+=Xc.charAt((t=t<<16|n<<8|r)>>18&63)+Xc.charAt(t>>12&63)+Xc.charAt(t>>6&63)+Xc.charAt(63&t)}return a?i.slice(0,a-3)+"===".substring(a):i},td=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Qc.test(e))throw new TypeError("Failed to execute 'atob': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=Xc.indexOf(e.charAt(o++))<<18|Xc.indexOf(e.charAt(o++))<<12|(n=Xc.indexOf(e.charAt(o++)))<<6|(r=Xc.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i},nd=(od.prototype.generate=function(e,t,n){if(void 0===t&&(t={}),this.url=e,!this.isUrlIgnored()&&this.isUrlInTraceUrls()&&this.traceType){switch(this.traceType){case"traceparent":this.traceId=this.createTraceparent();break;case"b3":this.traceId=this.createB3();break;case"sw8":this.traceId=this.createSw8(n);break;case"sentry-trace":this.traceId=this.createSentryTrace();break;default:return console.warn("this trace key "+this.traceType+" is not supported"),void(this.traceId="")}return t[this.traceType]&&(this.traceId=t[this.traceType]),{name:this.traceType,value:this.traceId}}},od.prototype.createTraceparent=function(){var e=Jc.generateSpanId();return"00-"+Jc.generateTraceId()+"-"+e+"-0"+this.traceFlag.toString(16)},od.prototype.createB3=function(){var e=Jc.generateSpanId();return Jc.generateTraceId()+"-"+e+"-"+this.traceFlag},od.prototype.createSw8=function(e){var t="function"==typeof btoa?btoa:ed,e=e||{},n=e.host,n=void 0===n?"":n,e=e.pathname,e=void 0===e?"":e,r=Yc(),i=Yc();return"1-"+String(t(i))+"-"+String(t(r))+"-1-"+String(t("tdem"))+"-"+String(t("1.0.16"))+"-"+String(t(encodeURI(e)))+"-"+String(t(n))},od.prototype.createSentryTrace=function(){var e=Zc().substring(16);return Zc()+"-"+e+"-"+this.traceFlag},od.prototype.isUrlIgnored=function(){if(Array.isArray(this.ignoreUrls)&&0!==this.ignoreUrls.length)for(var e=0,t=this.ignoreUrls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}return!1},od.prototype.isUrlInTraceUrls=function(){if(!this.urls)return!0;if(Array.isArray(this.urls)){if(0===this.urls.length)return!1;for(var e=0,t=this.urls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}}return!1},od.prototype.urlMatches=function(e,t){return"string"==typeof t?e===t:!!e.match(t)},od),rd={sw8:function(e){var t="function"==typeof atob?atob:td,e=e.split("-"),n=e[1],e=e[2];return{traceId:n?t(n):"",spanId:e?t(e):""}},traceparent:function(e){e=e.split("-");return{traceId:e[1]||"",spanId:e[2]||""}},b3:function(e){e=e.split("-");return{traceId:e[0]||"",spanId:e[1]||""}},"sentry-trace":function(e){e=e.split("-");return{traceId:e[0]||"",spanId:e[1]||""}}},id=function(e){var t,n={traceId:"",spanId:""};return e&&"object"===I(e)&&(t=(e=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=e[r]||"function"==typeof e.get&&e.get(r);if(i)return[r,i]}return["",""]}(e,Object.keys(rd)))[0])?{traceId:(t=rd[t](e[1])).traceId||"",spanId:t.spanId||""}:n};function od(e,t,n,r){void 0===n&&(n=null),this.traceType=e,this.ignoreUrls=t,this.urls=n,this.traceFlag=r===undefined||null===r?1:Number(!!r)}ke("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i);var ad=Object.isFrozen,l=Pa||g(function(){ad(1)}),sd=(R({target:"Object",stat:!0,forced:l},{isFrozen:function(e){return!W(e)||!(!Pa||"ArrayBuffer"!==re(e))||!!ad&&ad(e)}}),Object.isSealed),s=Pa||g(function(){sd(1)}),ud=(R({target:"Object",stat:!0,forced:s},{isSealed:function(e){return!W(e)||!(!Pa||"ArrayBuffer"!==re(e))||!!sd&&sd(e)}}),Ba.onFreeze),ld=Object.seal,r=g(function(){ld(1)});R({target:"Object",stat:!0,forced:r,sham:!0},{seal:function(e){return ld&&W(e)?ld(ud(e)):e}});var cd,dd,fd,hd,pd=zt.enforce,i=Object,md=(Array.isArray,i.isExtensible),l=!O.ActiveXObject&&"ActiveXObject"in O,s=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},r=ke("WeakMap",s,u),i=r.prototype,gd=v(i.set),vd=(ze&&l&&(cd=u.getConstructor(s,"WeakMap",!0),Ba.enable(),dd=v(i["delete"]),fd=v(i.has),hd=v(i.get),ta(i,{"delete":function(e){var t;return W(e)&&!md(e)?((t=pd(this)).frozen||(t.frozen=new cd),dd(this,e)||t.frozen["delete"](e)):dd(this,e)},has:function(e){var t;return W(e)&&!md(e)?((t=pd(this)).frozen||(t.frozen=new cd),fd(this,e)||t.frozen.has(e)):fd(this,e)},get:function(e){var t;return!W(e)||md(e)||((t=pd(this)).frozen||(t.frozen=new cd),fd(this,e))?hd(this,e):t.frozen.get(e)},set:function(e,t){var n;return!W(e)||md(e)||((n=pd(this)).frozen||(n.frozen=new cd),fd(this,e))?gd(this,e,t):n.frozen.set(e,t),this}})),new WeakMap);function yd(e){var t,n;return String((null==(t=null==(n=null==(t=e.sessionManager)?void 0:t.getSession)?void 0:n.call(t))?void 0:t.id)||(null==(n=e.bean)?void 0:n.sessionId)||"")}function wd(e,t){vd.set(e,t)}function bd(e){return vd.get(e)}function kd(o){return function(e){e&&0!==e.length&&o.sendPipeline([function(e,r){var i=new Map;e.forEach(function(e){var t=null!=(t=bd(e))?t:yd(o),n=i.get(t)||[];n.push(e),i.set(t,n)}),i.forEach(function(t,e){var e={protocol_version:2,project_key:String(o.config.id||""),sdk:{name:o.sdkName,version:o.sdkVersion},app:{version:String(o.config.version||"1.0.0")},context:M(M({},function(e){var t=yd(e),n=String(e.config.userId||e.config.uin||""),t={session_id:t,platform:(t=String(e.runtimePlatform||e.config.platform||"web").trim().toLowerCase(),["web","wx-miniprogram","uniapp","android","ios","electron","unknown"].includes(t)?t:"wx"===t?"wx-miniprogram":"my"!==t&&"qq"!==t&&"tt"!==t&&"undefined"!=typeof window?"web":"unknown")};n&&(t.user_id=n);(n=String(e.bean.aid||"").trim())&&"true"!==n&&(t.device_id=n);var n=e.bean.runtime?String(e.bean.runtime):"",r=e.bean.processType?String(e.bean.processType):"",i=e.bean.windowId!==undefined?String(e.bean.windowId):"",o=e.bean.webContentsId!==undefined?String(e.bean.webContentsId):"",e=e.bean.appVersion?String(e.bean.appVersion):"";return n&&(t.runtime=n),r&&(t.process_type=r),i&&(t.window_id=i),o&&(t.web_contents_id=o),e&&(t.app_version=e),"undefined"!=typeof navigator&&(t.user_agent=navigator.userAgent,t.language=navigator.language),"undefined"!=typeof screen&&(t.screen_resolution=screen.width+"x"+screen.height),t}(o)),{session_id:e}),events:t},n=String(o.config.url||"").replace(/\/+$/,"");n&&r({url:n+"/api/v1/collect/events",data:JSON.stringify(e),method:"POST",contentType:"application/json",addBean:!1,type:lc.EVENT,log:t,success:function(){o.lifeCycle.emit("afterReport",{success:!0,events:t})},fail:function(e){o.lifeCycle.emit("afterReport",{success:!1,error:e,events:t})}})})}],lc.EVENT)(e)}}var _d=jr("every",TypeError),Sd=(R({target:"Iterator",proto:!0,real:!0,forced:_d},{every:function(n){S(this);try{Ue(n)}catch(X){ii(this,"throw",X)}var e,r;return _d?x(_d,this,n):(e=li(this),!ui(e,function(e,t){if(!n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),vi.every),ke=He("every");R({target:"Array",proto:!0,forced:!ke},{every:function(e){return Sd(this,e,1<arguments.length?arguments[1]:undefined)}});var Ed,Cd,Rd,r=ur.f,Od=e("".slice),xd=Math.min,ze=Gr("endsWith"),s=!(ze||!(l=r(String.prototype,"endsWith"))||l.writable),u=(R({target:"String",proto:!0,forced:!s&&!ze},{endsWith:function(e){var t=E(ue(this)),e=(no(e),E(e)),n=1<arguments.length?arguments[1]:undefined,r=t.length,n=n===undefined?r:xd(pe(n),r);return Od(t,n-e.length,n)===e}}),ur.f),Id=e("".slice),Td=Math.min,i=Gr("startsWith"),ke=!(i||!(jr=u(String.prototype,"startsWith"))||jr.writable),Md=(R({target:"String",proto:!0,forced:!ke&&!i},{startsWith:function(e){var t=E(ue(this)),e=(no(e),E(e)),n=pe(Td(1<arguments.length?arguments[1]:undefined,t.length));return Id(t,n,n+e.length)===e}}),void 0),Ad=(R({target:"Object",stat:!0},{is:Md}),Object.is,jt("search",function(r,i,o){return[function(e){var t=ue(this),n=W(e)?rn(e,r):undefined;return n?x(n,e,t):(n=E(t),new RegExp(e)[r](n))},function(e){var t=S(this),e=E(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,Md(n,0)||(t.lastIndex=0),e=vn(t,e),Md(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Math.floor),Pd=function(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(r=e[i=o];i&&0<t(e[i-1],r);)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=Ad(n/2),s=Pd(Zn(e,0,a),t),u=Pd(Zn(e,a),t),l=s.length,c=u.length,d=0,f=0;d<l||f<c;)e[d+f]=d<l&&f<c?t(s[d],u[f])<=0?s[d++]:u[f++]:d<l?s[d++]:u[f++];return e},Dd=Pd,r=Gn.match(/firefox\/(\d+)/i),Ld=!!r&&+r[1],Nd=/MSIE|Trident/.test(Gn),l=Gn.match(/AppleWebKit\/(\d+)\./),Fd=!!l&&+l[1],Ud=[],jd=v(Ud.sort),Bd=v(Ud.push),s=g(function(){Ud.sort(undefined)}),ze=g(function(){Ud.sort(null)}),Gr=He("sort"),zd=!g(function(){if(Jn)return Jn<70;if(!(Ld&&3<Ld)){if(Nd)return!0;if(Fd)return Fd<603;for(var e,t,n,r="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)Ud.push({k:e+n,v:t})}for(Ud.sort(function(e,t){return t.v-e.v}),n=0;n<Ud.length;n++)e=Ud[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}),Wd=(R({target:"Array",proto:!0,forced:s||!ze||!Gr||!zd},{sort:function(e){e!==undefined&&Ue(e);var t=ce(this);if(zd)return e===undefined?jd(t):jd(t,e);for(var n,r,i=[],o=me(t),a=0;a<o;a++)a in t&&Bd(i,t[a]);for(Dd(i,(r=e,function(e,t){return t===undefined?-1:e===undefined?1:r!==undefined?+r(e,t)||0:(e=E(e))===(t=E(t))?0:t<e?1:-1})),n=me(i),a=0;a<n;)t[a]=i[a++];for(;a<o;)Fa(t,a++);return t}}),(u=(u=O.URL)&&u.prototype)&&u.toString),Hd=(R({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return x(Wd,this)}}),Object.getOwnPropertyDescriptor),jr=function(e){var t;return f?(t=Hd(O,e))&&t.value:O[e]},qd=RangeError,Vd=String.fromCharCode,ke=String.fromCodePoint,Gd=v([].join),i=!!ke&&1!==ke.length,Jd=(R({target:"String",stat:!0,arity:1,forced:i},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(mt(t=+arguments[i],1114111)!==t)throw new qd(t+" is not a valid code point");n[i++]=t<65536?Vd(t):Vd(55296+((t-=65536)>>10),t%1024+56320)}return Gd(n,"")}}),String.fromCharCode),Kd=Re("String","fromCodePoint"),$d=encodeURIComponent,Zd=parseInt,Yd=v("".charAt),Xd=v([].push),Qd=v("".replace),ef=v("".slice),tf=v(/./.exec),nf=/^[0-9a-f]+$/i,rf=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,of=function(e,t){e=ef(e,t,t+2);return tf(nf,e)?Zd(e,16):NaN},af=function(e){return 2===e.length?e:"�"},jt=function(e){for(var t=e.length,n="",r=0;r<t;){var i=Yd(e,r);if("%"===i){if("%"===Yd(e,r+1)||t<r+3){n+="%",r++;continue}var o=of(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=function(e){for(var t=0,n=128;0<n&&0!=(e&n);n>>=1)t++;return t}(o);if(0===a)i=Jd(o);else{if(1===a||4<a){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(++r+3>t||"%"!==Yd(e,r));){var l=of(e,r+1);if(l!=l||191<l||l<128)break;if(1===u){if(224===o&&l<160)break;if(237===o&&159<l)break;if(240===o&&l<144)break;if(244===o&&143<l)break}Xd(s,l),r+=2,u++}if(s.length!==a){n+="�";continue}var c=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||1114111<t||55296<=t&&t<=57343||t<(3<n?65536:2<n?2048:1<n?128:0)?null:t}(s);if(null===c){for(var d=0;d<a;d++)n+="�";r++;continue}i=Kd(c)}}n+=i,r++}return n},r=function(e){try{return $d(e)}catch(X){return $d(Qd(e,rf,af))}},l=tt("iterator"),sf=zt.set,uf=zt.getterFor("URLSearchParams"),lf=zt.getterFor("URLSearchParamsIterator"),cf=jt,df=r,ff=jr("fetch"),hf=jr("Request"),pf=jr("Headers"),mf=hf&&hf.prototype,s=pf&&pf.prototype,gf=O.TypeError,vf=v("".charAt),yf=v([].join),wf=v([].push),bf=v("".replace),kf=v([].shift),_f=v([].splice),Sf=v("".split),Ef=v("".slice),Cf=/\+/g,Rf=function(e){return cf(bf(e,Cf," "))},Of=/[!'()~]|%20/g,xf={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},If=function(e){return xf[e]},Tf=function(e){return bf(df(e),Of,If)},Mf=Or(function(e,t){sf(this,{type:"URLSearchParamsIterator",target:uf(e).entries,index:0,kind:t})},"URLSearchParams",function(){var e=lf(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Lr(undefined,!0);var r=t[n];switch(e.kind){case"keys":return Lr(r.key,!1);case"values":return Lr(r.value,!1)}return Lr([r.key,r.value],!1)},!0),Af=function(e){this.entries=[],this.url=null,e!==undefined&&(W(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===vf(e,0)?Ef(e,1):e:E(e)))},ze=(Af.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=this.entries,u=ti(e);if(u)for(n=(t=ri(e,u)).next;!(r=x(n,t)).done;){if(i=(r=ri(S(r.value))).next,(o=x(i,r)).done||(a=x(i,r)).done||!x(i,r).done)throw new gf("Expected sequence with length 2");wf(s,{key:E(o.value),value:E(a.value)})}else for(var l in e)T(e,l)&&wf(s,{key:l,value:E(e[l])})},parseQuery:function(e){if(e)for(var t,n=this.entries,r=Sf(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(t=Sf(t,"="),wf(n,{key:Rf(kf(t)),value:Rf(yf(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],wf(n,Tf(e.key)+"="+Tf(e.value));return yf(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){fr(this,Pf);var e=0<arguments.length?arguments[0]:undefined,e=sf(this,new Af(e));f||(this.size=e.entries.length)}),Pf=ze.prototype;ta(Pf,{append:function(e,t){var n=uf(this);Nc(arguments.length,2),wf(n.entries,{key:E(e),value:E(t)}),f||this.size++,n.updateURL()},"delete":function(e){for(var t=uf(this),n=Nc(arguments.length,1),r=t.entries,i=E(e),e=n<2?undefined:arguments[1],o=e===undefined?e:E(e),a=0;a<r.length;){var s=r[a];s.key!==i||o!==undefined&&s.value!==o?a++:_f(r,a,1)}f||(this.size=r.length),t.updateURL()},get:function(e){var t=uf(this).entries;Nc(arguments.length,1);for(var n=E(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=uf(this).entries;Nc(arguments.length,1);for(var n=E(e),r=[],i=0;i<t.length;i++)t[i].key===n&&wf(r,t[i].value);return r},has:function(e){for(var t=uf(this).entries,n=Nc(arguments.length,1),r=E(e),e=n<2?undefined:arguments[1],i=e===undefined?e:E(e),o=0;o<t.length;){var a=t[o++];if(a.key===r&&(i===undefined||a.value===i))return!0}return!1},set:function(e,t){var n=uf(this);Nc(arguments.length,2);for(var r,i=n.entries,o=!1,a=E(e),s=E(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?_f(i,u--,1):(o=!0,r.value=s));o||wf(i,{key:a,value:s}),f||(this.size=i.length),n.updateURL()},sort:function(){var e=uf(this);Dd(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=uf(this).entries,r=$r(e,1<arguments.length?arguments[1]:undefined),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new Mf(this,"keys")},values:function(){return new Mf(this,"values")},entries:function(){return new Mf(this,"entries")}},{enumerable:!0}),Kt(Pf,l,Pf.entries,{name:"entries"}),Kt(Pf,"toString",function(){return uf(this).serialize()},{enumerable:!0}),f&&Ht(Pf,"size",{get:function(){return uf(this).entries.length},configurable:!0,enumerable:!0}),br(ze,"URLSearchParams"),R({global:!0,constructor:!0,forced:!0},{URLSearchParams:ze}),oe(pf)&&(Ed=v(s.has),Cd=v(s.set),Rd=function(e){if(W(e)){var t,n=e.body;if("URLSearchParams"===ot(n))return t=e.headers?new pf(e.headers):new pf,Ed(t,"content-type")||Cd(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),xt(e,{body:ut(0,E(n)),headers:ut(0,t)})}return e},oe(ff)&&R({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return ff(e,1<arguments.length?Rd(arguments[1]):{})}}),oe(hf))&&((mf.constructor=Gr=function(e){return fr(this,mf),new hf(e,1<arguments.length?Rd(arguments[1]):{})}).prototype=mf,R({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Gr}));var Df,u={URLSearchParams:ze,getState:uf},Lf=tt("iterator"),Nf=(g(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),n=e.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",n.forEach(function(e,t){n["delete"]("b"),r+=t+e}),t["delete"]("a",2),t["delete"]("b",undefined),!n.size&&!f||!n.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[Lf]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",undefined).host}),/[^\0-\u007E]/),Ff=/[.\u3002\uFF0E\uFF61]/g,Uf="Overflow: input needs wider integers to process",jf=RangeError,Bf=v(Ff.exec),zf=Math.floor,Wf=String.fromCharCode,Hf=v("".charCodeAt),qf=v([].join),Vf=v([].push),Gf=v("".replace),Jf=v("".split),Kf=v("".toLowerCase),$f=function(e){return e+22+75*(e<26)},Zf=function(e,t,n){var r=0;for(e=n?zf(e/700):e>>1,e+=zf(e/t);455<e;)e=zf(e/35),r+=36;return zf(r+36*e/(e+38))},Yf=function(e){for(var t,n=[],r=Jf(Gf(Kf(e),Ff,"."),"."),i=0;i<r.length;i++)t=r[i],Vf(n,Bf(Nf,t)?"xn--"+function(e){var t,n=[],r=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i,o=Hf(e,n++);55296<=o&&o<=56319&&n<r?56320==(64512&(i=Hf(e,n++)))?Vf(t,((1023&o)<<10)+(1023&i)+65536):(Vf(t,o),n--):Vf(t,o)}return t}(e)).length,i=128,o=0,a=72;for(c=0;c<e.length;c++)(t=e[c])<128&&Vf(n,Wf(t));var s=n.length,u=s;for(s&&Vf(n,"-");u<r;){for(var l=2147483647,c=0;c<e.length;c++)(t=e[c])>=i&&t<l&&(l=t);var d=u+1;if(l-i>zf((2147483647-o)/d))throw new jf(Uf);for(o+=(l-i)*d,i=l,c=0;c<e.length;c++){if((t=e[c])<i&&2147483647<++o)throw new jf(Uf);if(t===i){for(var f=o,h=36;;){var p=h<=a?1:a+26<=h?26:h-a;if(f<p)break;var m=f-p,g=36-p;Vf(n,Wf($f(p+m%g))),f=zf(m/g),h+=36}Vf(n,Wf($f(f))),a=Zf(o,d,u===s),o=0,u++}}o++,i++}return qf(n,"")}(t):t);return qf(n,".")},Xf=qt.codeAt,Qf=zt.set,eh=zt.getterFor("URL"),th=u.URLSearchParams,nh=u.getState,rh=jt,ih=r,ke=O.URL,oh=O.TypeError,ah=O.parseInt,sh=Math.floor,uh=Math.pow,lh=String.fromCharCode,ch=v("".charAt),dh=v(/./.exec),fh=v([].join),hh=v(1.1.toString),ph=v([].pop),mh=v([].push),gh=v("".replace),vh=v([].shift),yh=v("".split),wh=v("".indexOf),bh=v("".slice),kh=v("".toLowerCase),_h=v([].unshift),Sh=/[a-z]/i,Eh=/[\d+\-.a-z]/i,Ch=/\d/,Rh=/^0x/i,Oh=/^[0-7]+$/,xh=/^\d+$/,Ih=/^[\da-f]+$/i,Th=/[\u0000-\u0020#%/:<>?@[\\\]^|\u007F]/,Mh=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ah=/^[\u0000-\u0020]+/,Ph=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Dh=/[\t\n\r]/g,Lh=/[^\u0000-\u007F]/,Nh=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)_h(t,e%256),e=sh(e/256);return fh(t,".")}if("object"!=I(e))return e;for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(n<i&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i=i&&!1,r===n?(t+=n?":":"::",i=!0):(t+=hh(e[n],16),n<7&&(t+=":")));return"["+t+"]"},Fh={},Uh=a({},Fh,{" ":1,'"':1,"#":1,"<":1,">":1}),jh=a({},Uh,{"'":1}),Bh=a({},Fh,{" ":1,'"':1,"<":1,">":1,"`":1}),zh=a({},Bh,{"#":1,"?":1,"{":1,"}":1,"^":1}),Wh=a({},zh,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Hh=function(e,t){var n=Xf(e,0);return 32<=n&&n<127&&!T(t,e)?e:"'"===e&&T(t,e)?"%27":ih(e)},qh={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Vh=function(e,t){return 2===e.length&&dh(Sh,ch(e,0))&&(":"===(e=ch(e,1))||!t&&"|"===e)},Gh=function(e){return 1<e.length&&Vh(bh(e,0,2))&&(2===e.length||"/"===(e=ch(e,2))||"\\"===e||"?"===e||"#"===e)},Jh={},Kh={},$h={},Zh={},Yh={},Xh={},Qh={},ep={},tp={},np={},rp={},ip={},op={},ap={},sp={},up={},lp={},cp={},dp={},fp={},hp={},pp=function(e,t,n){var r,i,e=E(e);if(t){if(i=this.parse(e))throw new oh(i);this.searchParams=null}else{if(n!==undefined&&(r=new pp(n,!0)),i=this.parse(e,null,r))throw new oh(i);(t=nh(new th)).bindURL(this),this.searchParams=t}},mp=(pp.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s=this,u=t||Jh,l=0,c="",d=!1,f=!1,h=!1;for(e=E(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=gh(e,Ah,""),e=gh(e,Ph,"$1")),e=gh(e,Dh,""),r=Au(e);l<=r.length;){switch(i=r[l],u){case Jh:if(!i||!dh(Sh,i)){if(t)return"Invalid scheme";u=$h;continue}c+=kh(i),u=Kh;break;case Kh:if(i&&dh(Eh,i))c+=kh(i);else{if(":"!==i){if(t)return"Invalid scheme";c="",u=$h,l=0;continue}if(t&&(s.isSpecial()!==T(qh,c)||"file"===c&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&""===s.host))return;if(s.scheme=c,t)return void(s.isSpecial()&&qh[s.scheme]===s.port&&(s.port=null));c="","file"===s.scheme?u=ap:s.isSpecial()&&n&&n.scheme===s.scheme?u=Zh:s.isSpecial()?u=ep:"/"===r[l+1]?(u=Yh,l++):(s.cannotBeABaseURL=!0,mh(s.path,""),u=dp)}break;case $h:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=Zn(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,u=hp;break}u="file"===n.scheme?ap:Xh;continue;case Zh:if("/"!==i||"/"!==r[l+1]){u=Xh;continue}u=tp,l++;break;case Yh:if("/"===i){u=np;break}u=cp;continue;case Xh:if(s.scheme=n.scheme,i===Df)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Zn(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())u=Qh;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Zn(n.path),s.query="",u=fp;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Zn(n.path),s.path.length&&s.path.length--,u=cp;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Zn(n.path),s.query=n.query,s.fragment="",u=hp}break;case Qh:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=cp;continue}u=np}else u=tp;break;case ep:if(u=tp,"/"!==i||"/"!==r[l+1])continue;l++;break;case tp:if("/"===i||"\\"===i)break;u=np;continue;case np:if("@"===i){d&&(c="%40"+c);for(var d=!0,p=Au(c),m=0;m<p.length;m++){var g=p[m];":"!==g||h?(g=Hh(g,Wh),h?s.password+=g:s.username+=g):h=!0}c=""}else if(i===Df||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(d&&""===c)return"Invalid authority";l-=Au(c).length+1,c="",u=rp}else c+=i;break;case rp:case ip:if(t&&"file"===s.scheme){u=up;continue}if(":"!==i||f){if(i===Df||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===c)return"Invalid host";if(t&&""===c&&(s.includesCredentials()||null!==s.port))return;if(o=s.parseHost(c))return o;if(c="",u=lp,t)return;continue}"["===i?f=!0:"]"===i&&(f=!1),c+=i}else{if(""===c)return"Invalid host";if(t===ip)return;if(o=s.parseHost(c))return o;c="",u=op}break;case op:if(!dh(Ch,i)){if(i===Df||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==c){var v=ah(c,10);if(65535<v)return"Invalid port";s.port=s.isSpecial()&&v===qh[s.scheme]?null:v,c=""}if(t)return;u=lp;continue}return"Invalid port"}c+=i;break;case ap:if(s.scheme="file",s.host="","/"===i||"\\"===i)u=sp;else{if(!n||"file"!==n.scheme){u=cp;continue}switch(i){case Df:s.host=n.host,s.path=Zn(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=Zn(n.path),s.query="",u=fp;break;case"#":s.host=n.host,s.path=Zn(n.path),s.query=n.query,s.fragment="",u=hp;break;default:s.host=n.host,Gh(fh(Zn(r,l),""))||(s.path=Zn(n.path),s.shortenPath()),u=cp;continue}}break;case sp:if("/"===i||"\\"===i){u=up;break}n&&"file"===n.scheme&&(s.host=n.host,!Gh(fh(Zn(r,l),"")))&&Vh(n.path[0],!0)&&mh(s.path,n.path[0]),u=cp;continue;case up:if(i===Df||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&Vh(c))u=cp;else{if(""===c){if(s.host="",t)return}else{if(o=s.parseHost(c))return o;if("localhost"===s.host&&(s.host=""),t)return;c=""}u=lp}continue}c+=i;break;case lp:if(s.isSpecial()){if(u=cp,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==Df&&(u=cp,"/"!==i))continue}else s.fragment="",u=hp;else s.query="",u=fp;break;case cp:if(i===Df||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(v=kh(c))||"%2e."===v||".%2e"===v||"%2e%2e"===v?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||mh(s.path,"")):"."===(a=c)||"%2e"===kh(a)?"/"===i||"\\"===i&&s.isSpecial()||mh(s.path,""):("file"===s.scheme&&!s.path.length&&Vh(c)&&(null!==s.host&&""!==s.host&&(s.host=""),c=ch(c,0)+":"),mh(s.path,c)),c="","file"===s.scheme&&(i===Df||"?"===i||"#"===i))for(;1<s.path.length&&""===s.path[0];)vh(s.path);"?"===i?(s.query="",u=fp):"#"===i&&(s.fragment="",u=hp)}else c+=Hh(i,zh);break;case dp:"?"===i?(s.query="",u=fp):"#"===i?(s.fragment="",u=hp):i!==Df&&(s.path[0]+=" "===i?"?"===r[l+1]||"#"===r[l+1]?"%20":" ":Hh(i,Fh));break;case fp:t||"#"!==i?i!==Df&&(s.query+=Hh(i,s.isSpecial()?jh:Uh)):(s.fragment="",u=hp);break;case hp:i!==Df&&(s.fragment+=Hh(i,Bh))}l++}},parseHost:function(u){var e,t,n;if("["===ch(u,0))return"]"===ch(u,u.length-1)&&(e=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,d=0,f=function(){return ch(e,d)};if(":"===f()){if(":"!==ch(e,1))return;d+=2,c=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=n=0;n<4&&dh(Ih,f());)t=16*t+ah(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,6<l)return;for(r=0;f();){if(i=null,0<r){if(!("."===f()&&r<4))return;d++}if(!dh(Ch,f()))return;for(;dh(Ch,f());){if(o=ah(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(255<i)return;d++}u[l]=256*u[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;u[l++]=t}else{if(null!==c)return;d++,c=++l}}if(null!==c)for(a=l-c,l=7;0!==l&&0<a;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!==l)return;return u}(bh(u,1,-1)))?void(this.host=e):"Invalid host";if(this.isSpecial()){if(null===(u=function(e){if(!dh(Lh,e))return""===e?null:Yf(e);for(var t,n,r=Au(e),i="",o=0;o<r.length;o++){if(t=Xf(r[o],0),65533===(n=t)||55296<=n&&n<=57343||128<=n&&n<=159||8206<=n&&n<=8207||8232<=n&&n<=8233||8234<=n&&n<=8238||8293<=n&&n<=8297||64976<=n&&n<=65007||65534==(65534&n)||57344<=n&&n<=63743||983040<=n&&n<=1114109)return null;173===(n=t)||847===n||8203===n||12644===n||65279===n||65440===n||4447<=n&&n<=4448||6068<=n&&n<=6069||6155<=n&&n<=6159||8288<=n&&n<=8292||8298<=n&&n<=8303||65024<=n&&n<=65039||917760<=n&&n<=917999||(i+=(n=65281<=(n=t)&&n<=65374?n-65248:160===n||5760===n||8239===n||8287===n||12288===n||8192<=n&&n<=8202||n<=65535&&-1<wh("¨¯´¸˘˙˚˛˜˝ͺ΄΅᾽᾿῀῁῍῎῏῝῞῟῭΅´῾‗‾⁇⁈⁉℀℁℅℆⩴゛゜ﱞﱟﱠﱡﱢﱣﷺﷻ︓︖﹇﹈﹉﹊﹋﹌﹕﹖﹟﹤﹥﹨﹪﹫ﹰﹲﹴﹶﹸﹺﹼﹾ ̄",lh(n))?32:n)===t?r[o]:lh(n))}return""===i?null:Yf(i)}(rh(u)))||dh(Th,u))return"Invalid host";if(function(){var e=yh(u,".");if(""===e[e.length-1]){if(1===e.length)return;e.length--}return dh(xh,e=e[e.length-1])||dh(Rh,e)&&(""===(e=bh(e,2))||dh(Ih,e))}()){if(null===(e=function(){var e,t,n,r,i,o,a,s=yh(u,".");if(s.length&&""===s[s.length-1]&&s.length--,4<(e=s.length))return null;for(t=[],n=0;n<e;n++){if(""===(r=s[n]))return null;if(i=10,1<r.length&&"0"===ch(r,0)&&(i=dh(Rh,r)?16:8,r=bh(r,8===i?1:2)),""===r)o=0;else{if(!dh(10===i?xh:8===i?Oh:Ih,r))return null;o=ah(r,i)}mh(t,o)}for(n=0;n<e;n++)if(o=t[n],n===e-1){if(o>=uh(256,5-e))return null}else if(255<o)return null;for(a=ph(t),n=0;n<t.length;n++)a+=t[n]*uh(256,3-n);return a}()))return"Invalid host";this.host=e}else this.host=u}else{if(dh(Mh,u))return"Invalid host";for(e="",t=Au(u),n=0;n<t.length;n++)e+=Hh(t[n],Fh);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return T(qh,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&Vh(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=Nh(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),null===i&&!e.cannotBeABaseURL&&1<a.length&&""===a[0]&&(l+="/."),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+fh(a,"/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},setHref:function(e){e=this.parse(e);if(e)throw new oh(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new mp(this.path[0]).origin}catch(X){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+Nh(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(E(e)+":",Jh)},getUsername:function(){return this.username},setUsername:function(e){var t=Au(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=Hh(t[n],Wh)}},getPassword:function(){return this.password},setPassword:function(e){var t=Au(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=Hh(t[n],Wh)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Nh(e):Nh(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,rp)},getHostname:function(){var e=this.host;return null===e?"":Nh(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ip)},getPort:function(){var e=this.port;return null===e?"":E(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=E(e))?this.port=null:this.parse(e,op))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+fh(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,lp))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=E(e))?this.query=null:("?"===ch(e,0)&&(e=bh(e,1)),this.query="",this.parse(e,fp)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=E(e))?("#"===ch(e,0)&&(e=bh(e,1)),this.fragment="",this.parse(e,hp)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=fr(this,gp),n=1<Nc(arguments.length,1)?arguments[1]:undefined,e=Qf(t,new pp(e,!1,n));f||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),gp=mp.prototype,i=function(e,t){return{get:function(){return eh(this)[e]()},set:t&&function(e){return eh(this)[t](e)},configurable:!0,enumerable:!0}},Gr=(f&&(Ht(gp,"href",i("serialize","setHref")),Ht(gp,"origin",i("getOrigin")),Ht(gp,"protocol",i("getProtocol","setProtocol")),Ht(gp,"username",i("getUsername","setUsername")),Ht(gp,"password",i("getPassword","setPassword")),Ht(gp,"host",i("getHost","setHost")),Ht(gp,"hostname",i("getHostname","setHostname")),Ht(gp,"port",i("getPort","setPort")),Ht(gp,"pathname",i("getPathname","setPathname")),Ht(gp,"search",i("getSearch","setSearch")),Ht(gp,"searchParams",i("getSearchParams")),Ht(gp,"hash",i("getHash","setHash"))),Kt(gp,"toJSON",function(){return eh(this).serialize()},{enumerable:!0}),Kt(gp,"toString",function(){return eh(this).serialize()},{enumerable:!0}),ke&&(l=ke.createObjectURL,s=ke.revokeObjectURL,l&&Kt(mp,"createObjectURL",$r(l,ke)),s)&&Kt(mp,"revokeObjectURL",$r(s,ke)),br(mp,"URL"),R({global:!0,constructor:!0,forced:!0,sham:!f},{URL:mp}),R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=ce(this),n=me(t),e=e===undefined?1:fe(e),r=gi(t,0);return Dl(r,t,t,n,0,e),r}}),ir("flat"),bi.f),vp=v(Gr),yp=v([].push),wp=f&&g(function(){var e=Object.create(null);return e[2]=2,!vp(e,2)}),ze=function(u){return function(e){for(var t,n=Ge(e),r=ft(n),i=wp&&null===hr(n),o=r.length,a=0,s=[];a<o;)t=r[a++],f&&!(i?t in n:vp(n,t))||yp(s,u?[t,n[t]]:n[t]);return s}},qt={entries:ze(!0),values:ze(!1)},bp=qt.values,kp=(R({target:"Object",stat:!0},{values:function(e){return bp(e)}}),new Set(Object.values({error:["js_error","promise_error","resource_error","api_error","blank_screen","no_response"],performance:["page_load","web_vitals","lag_detected","memory_usage","memory_oom"],network:["resource_load","api_call","sse_call"],custom:["custom"]}).flat()));function _p(e){new Set(Object.values(e).flat())}_p({error:["js_error","promise_error","resource_error","api_error"],performance:["page_load"],network:["resource_load","api_call"],custom:["custom"]}),_p({error:["crash","api_error"],performance:["app_launch","lag_detected"],network:["api_call","sse_call"],custom:["custom"]}),_p({error:["crash","api_error","no_response"],performance:["app_launch","lag_detected"],network:["api_call","sse_call"],custom:["custom"]}),_p({error:["js_error","promise_error","resource_error","api_error","blank_screen","crash"],performance:["page_load","web_vitals","lag_detected","no_response","app_metrics","process_signal","file_io"],network:["resource_load","api_call","sse_call"],custom:["custom"]});var Sp={event:{enabled:!0,types:{}},replay:{enabled:!1,experience_sample_rate:0,error_traceback:!1,error_sample_rate:100}};function Ep(e){return e===undefined||null===e?"":String(e)}function Cp(r,e,i){return e.enabled&&e.conditions&&0!==e.conditions.length&&e.conditions.every(function(e){var t=e,e=function(e,t,n){if(t.startsWith("tags."))return r=t.slice("tags.".length),e.tags&&r in e.tags?e.tags[r]:undefined;if(t.startsWith("event_properties."))return r=t.slice("event_properties.".length),e.event_properties&&r in e.event_properties?e.event_properties[r]:undefined;if("page_path"===t){if(!n)return t in(r=e)&&r[t]!==undefined&&null!==r[t]?r[t]:undefined;if(!e.page_url)return undefined;try{return new URL(e.page_url).pathname}catch(bw){return undefined}}if("page_url"!==t)return t in(n=e)&&n[t]!==undefined&&null!==n[t]?n[t]:undefined;var r=e.page_url;if(r===undefined||null===r)return undefined;if(!(r=String(r)))return undefined;try{return decodeURIComponent(r)}catch(bw){return r}}(r,t.field,i);if(e===undefined)return!1;var n=Ep(e);switch(t.operator){case"equals":return n===Ep(t.value);case"not_equals":return n!==Ep(t.value);case"contains":return n.includes(Ep(t.value));case"not_contains":return!n.includes(Ep(t.value));case"starts_with":return n.startsWith(Ep(t.value));case"ends_with":return n.endsWith(Ep(t.value));case"in":return(Array.isArray(t.value)?t.value.map(Ep):[]).includes(n);case"not_in":return!(Array.isArray(t.value)?t.value.map(Ep):[]).includes(n);default:return!1}})}function Rp(e,t,n,r){var i,o,a,s;void 0===t&&(t=Sp),void 0===n&&(n=Math.random),void 0===r&&(r={});try{if(null==(i=null==t?void 0:t.event)||!i.enabled)return!1;for(var u=null!=(o=r.closedSet)?o:kp,l=!1!==r.derivePagePath,c=(a=t,s=e.event_type,u.has(s)&&(null==(a=null==(a=a.event)?void 0:a.types)?void 0:a[s])||{sample_rate:100,rules:[]}),d=c.sample_rate,f=0,h=c.rules||[];f<h.length;f++){var p=h[f];if(p.enabled&&Cp(e,p,l)){d=p.sample_rate;break}}return 100<=d||!(d<=0)&&100*n()<d}catch(j){return!0}}function Op(e){e=null==(e=e)?void 0:e._tdemSampleGate;return!!e&&e.isDecided&&e.isSampled}function xp(e,t){var n=e.data||{},r=t.bean||{};return{event_type:String(e.event_type||""),event_category:e.event_category,event_name:e.event_name||n.event_name,page_url:e.page_url,user_id:r.user_id||t.config.userId,device_id:r.device_id||t.config.aid,env:t.config.env,version:String(null!=(t=null!=(t=t.config.version)?t:r.app_version)?t:""),tags:n.tags||e.tags,event_properties:n.event_properties||n.properties||n}}function Ip(e){return e._tdemSampleConfig||null}function Tp(e){return e._tdemSampleEvaluateOptions||{}}var Mp=function(){},Ap=function(n){if(n&&n.reduce&&n.length)return 1===n.length?function(e,t){n[0](e,t||Mp)}:n.reduce(function(n,r){return function(e,t){return void 0===t&&(t=Mp),n(e,function(e){return null==r?void 0:r(e,t)})}});throw new TypeError("createPipeline need at least one function param")},Pp=(R({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Ge(e),i=ur.f,o=sr(r),a={},s=0;o.length>s;)(n=i(r,t=o[s++]))!==undefined&&$n(a,t,n);return a}}),function(t,n){Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof t[e]&&"constructor"!==e&&(n?n[e]="sendPipeline"===e?function(){return function(){}}:function(){}:t[e]=function(){})})}),Dp={low:1,medium:3,high:5},Lp=new Set(["custom_struggle_name","form_id","field_id","trigger_event_id","struggle_status","struggle_owner_type","struggle_owner_key","detection_source","rule_version"]),Np={rage_click:3,dead_click:4,error_click:4,form_validation_error:3,slow_page:3,back_forward:2,long_focus_time:2,form_zigzag:2,uncompleted_form:3,custom_struggle:3},Fp={rage_click:4,dead_click:5,error_click:5,form_validation_error:4,slow_page:4,back_forward:3,long_focus_time:3,form_zigzag:3,uncompleted_form:3,custom_struggle:3},Up=(y.use=function(e){-1===y.installedPlugins.indexOf(e)&&e.tdemPlugin&&y.installedPlugins.push(e)},y.unuse=function(e){e=y.installedPlugins.indexOf(e);-1!==e&&y.installedPlugins.splice(e,1)},y.prototype.getInternalTransport=function(){return this.internalTransport},y.prototype.setInternalTransport=function(e){this.internalTransport=e},y.prototype.getInternalRetrySchedule=function(){return this.internalRetrySchedule},y.prototype.transportRequest=function(t,n){return Sl(this,void 0,void 0,function(){return El(this,function(e){switch(e.label){case 0:if(this.internalTransport)return[4,this.internalTransport.request(t,n)];throw new Error("Internal Transport is not configured");case 1:return[2,e.sent()||{ok:!0,request:t}]}})})},y.prototype.transportHandoff=function(t,n){return Sl(this,void 0,void 0,function(){return El(this,function(e){switch(e.label){case 0:if(this.internalTransport)return[4,(this.internalTransport.handoff||this.internalTransport.request).call(this.internalTransport,M(M({},t),{handoff:!0}),n)];throw new Error("Internal Transport is not configured");case 1:return[2,e.sent()||{ok:!0,request:t,handoffAccepted:!0}]}})})},y.prototype.init=function(e){this.setConfig(e),this.config=Ol(this.config,e.hostUrl);for(var t=0;t<y.installedPlugins.length;t++)try{y.installedPlugins[t].patch(this)}catch(D){this.sendSDKError(D)}this.lifeCycle.emit("onInited")},y.prototype.destroy=function(e){void 0===e&&(e=!1);var t,n,r=y.instances.indexOf(this);-1!==r&&y.instances.splice(r,1);for(var i=y.installedPlugins.length-1;0<=i;i--)try{y.installedPlugins[i].unpatch(this)}catch(k){this.sendSDKError(k)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach(function(e){n[e].writable&&(t[e]=null)}),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&Pp(o,this),o=Object.getPrototypeOf(o););0===y.instances.length&&(r=Object.getPrototypeOf(this).constructor,Pp(r),Pp(y))}},y.prototype.setConfig=function(e){Object.assign(this.config,e);var e=this.config,t=e.id,n=e.uin,r=e.version,i=e.aid,o=e.env,a=e.pageUrl,e=e.userId||(n!==undefined&&null!==n?String(n):""),n=this.bean.id!==t||this.bean.uin!==e||this.bean.aid!==i;return this.bean.id=t||"",this.bean.uin=e,this.bean.version=r||"1.0.16",this.bean.aid=i||"",this.bean.env=Ac(o),a&&this.extendBean("from",encodeURIComponent(a.slice(0,2048))),n&&this.lifeCycle.emit("onConfigChange",this.config),this.config},y.prototype.extendBean=function(e,t){this.bean[e]=t},y.prototype.send=function(e,i,o){var t=this;return Ap([Vc(this),Hc(this,null==e?void 0:e.type),function(n,r){t.request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!1,result:e,logType:n.type,logs:n.log}),null!=i&&i.apply(void 0,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!0,result:e,logType:n.type,logs:n.log}),null!=o&&o.apply(void 0,e)})},Gc(this)])(e)},y.prototype.sendSDKError=function(e){var n=this;this.sendPipeline([function(e,t){t({url:n.config.url+"?id=1085&msg[0]="+encodeURIComponent(bc(e))+"&level[0]=2&from="+n.config.id+"&count=1&version="+n.config.id+"(1.0.16)",addBean:!1,method:"get",type:lc.SDK_ERROR,log:e})}],lc.SDK_ERROR)(e)},y.prototype.sendPipeline=function(e,t){var n,o=this;return Ap(Cl([function(e,t){if(e&&e.type===lc.EVENT)return t(e);if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||t(e);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,t(e);n.isHidden=!0}},qc(n=this,t)],e,[Hc(this,t),Vc(this),function(r,i){o.request(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;-1<(""+e[o.failRequestCount=0]).indexOf("403 forbidden")&&(n=!0,o.destroy()),i({isErr:n,result:e,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(n=null==r?void 0:r.success)&&n.call.apply(n,Cl([r],e))},function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];60<=++o.failRequestCount&&o.destroy(),-1<(""+t[0]).indexOf("403 forbidden")&&o.destroy(),i({isErr:!0,result:t,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(e=null==r?void 0:r.fail)&&e.call.apply(e,Cl([r],t))})},Gc(this)]))},y.prototype.track=function(e,t){void 0===t&&(t={}),e&&"string"==typeof e?(e={event_id:Pc(),event_type:A.CUSTOM,event_category:Mc.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(),data:{event_name:e,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(t.properties)}},this.reportTDEMEvent(e)):console.warn("track: name must be a non-empty string")},y.prototype.trackStruggle=function(e,t){void 0===t&&(t={});var n,e="string"==typeof e?e.trim():"";!e||128<e.length?console.warn("trackStruggle: name must be a non-empty string limited to 128 characters"):(n=t.severity||"medium",(n=Dp[n])?this.reportStruggle({type:"custom_struggle",ownerType:"business",ownerKey:e,severity:n,detectionSource:"custom",ruleVersion:"custom-v1",tags:t.tags,properties:M(M({},t.properties||{}),{custom_struggle_name:e})}):console.warn("trackStruggle: severity must be low, medium, or high"))},y.prototype.reportTDEMEvent=function(e){var r,t,n,i=this,e=Array.isArray(e)?e:[e];e.length&&(r="string"==typeof(n=(t=this).viewId)&&n.trim()?n.trim():"string"==typeof(t=null==(n=t.bean)?void 0:n.viewId)&&t.trim()?t.trim():"",n=e.map(function(e){var t,n="string"!=typeof e.view_id&&r?M(M({},e),{view_id:r}):e,n=M(M({},n),{page_url:n.page_url||i.getCurrentEventPageUrl(),data:M(M(M({},n.data),bd(e)!==undefined||null!=(t=n.data)&&t.replay_id||!i.getCurrentReplayId()?{}:{replay_id:i.getCurrentReplayId()}),i.mergeEventTags(null==(t=n.data)?void 0:t.tags)?{tags:i.mergeEventTags(null==(t=n.data)?void 0:t.tags)}:{})});return wd(n,null!=(t=bd(e))?t:yd(i)),n}),this.lifeCycle.emit("tdemEventCreated",n),this.tdemEventPipeline(n))},y.prototype.measure=function(e,t,n){void 0===n&&(n={}),e&&"string"==typeof e?"number"==typeof t?t<0||2147483646<t?console.warn("measure: duration must between 0 and 2147483646"):this.submitMeasure(e,t,n):console.warn("measure: duration must be a number"):console.warn("measure: name must be a non-empty string")},y.prototype.startMeasure=function(e){"string"==typeof e&&e?this.timeMap[e]?console.warn("Measure "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("startMeasure: name must be a non-empty string")},y.prototype.endMeasure=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n=this.getTimeEventDuration(e))!==undefined?(this.submitMeasure(e,n,t),delete this.timeMap[e]):console.warn("Measure "+e+" does not exist"):console.warn("endMeasure: name must be a non-empty string")},y.prototype.captureMessage=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n="error"===t.level?"error":"warn"===t.level?"warn":"info",n={event_id:Pc(),event_type:A.LOG,event_category:Mc.LOG,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{log_level:n,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(M({message:e},t.properties||{}))}},this.reportTDEMEvent(n)):console.warn("captureMessage: message must be a non-empty string")},y.prototype.captureException=function(e,t){void 0===t&&(t={});var e="string"==typeof e?new Error(e):e;e instanceof Error?(e={event_id:Pc(),event_type:A.JS_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{exception_stacks:[{type:e.name||"Error",value:e.message,mechanism_type:"manual",mechanism_handled:1}],exception_frames:Dc(e),replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(M(M({},t.properties||{}),t.level?{capture_level:t.level}:{}))}},this.reportTDEMEvent(e)):console.warn("captureException: error must be an Error or string")},y.prototype.setTags=function(e){e=this.sanitizeEventTags(e);this.setConfig({defaultTags:M(M({},this.config.defaultTags||{}),e||{})})},y.prototype.removeTags=function(e){var t,e=Array.isArray(e)?e:[e];e.length&&(t=M({},this.config.defaultTags||{}),e.forEach(function(e){delete t[e]}),this.setConfig({defaultTags:t}))},y.prototype.clearTags=function(){this.setConfig({defaultTags:{}})},y.prototype.setUser=function(e){"string"==typeof e&&e?this.setConfig({userId:e}):console.warn("setUser: userId must be a non-empty string")},y.prototype.clearUser=function(){this.setConfig({userId:"",uin:""})},y.prototype.reportStruggle=function(e){var t,n,r,i;e&&e.type&&e.ownerType&&e.ownerKey?(t=e.type,n="number"==typeof e.severity?e.severity:Np[t],r="number"==typeof e.weight?e.weight:Fp[t],i=M(M({event_id:Pc(),event_type:A.STRUGGLE,event_category:Mc.BEHAVIOR,timestamp:null!=(i=null==(i=e.sourceContext)?void 0:i.timestamp)?i:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl)},e.sourceContext?{view_id:e.sourceContext.viewId}:{}),{data:{event_name:t,replay_id:null!=(t=null==(i=e.sourceContext)?void 0:i.replayId)?t:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:!1,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),struggle_weight:r,struggle_severity:n,struggle_value:"number"==typeof e.value?e.value:r*n,event_properties:M(M({},this.sanitizeStruggleProperties(e.properties)),{form_id:e.formId||"",field_id:e.fieldId||"",trigger_event_id:e.triggerEventId||"",struggle_status:e.status||"detected",struggle_owner_type:e.ownerType,struggle_owner_key:e.ownerKey,detection_source:e.detectionSource||"sdk_auto",rule_version:e.ruleVersion||this.getDefaultRuleVersion()})}}),e.sourceContext&&wd(i,e.sourceContext.sessionId),this.reportTDEMEvent(i)):console.warn("reportStruggle params error")},y.prototype.reportFormSubmitResult=function(e){e&&e.status?(e={event_id:Pc(),event_type:A.FORM_SUBMIT_RESULT,event_category:Mc.BEHAVIOR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl),data:{event_name:e.eventName||"form_submit_"+e.status,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:"boolean"!=typeof e.isEffectiveAction||e.isEffectiveAction,trigger_event_id:e.triggerEventId,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),validation_message:e.validationMessage?e.validationMessage.slice(0,256):undefined,event_properties:{status:e.status,validation_code:e.validationCode||"",form_id:e.formId||"",field_id:e.fieldId||""}}},this.reportTDEMEvent(e)):console.warn("reportFormSubmitResult params error")},y.prototype.reportPageView=function(e,t){void 0===t&&(t={});e=this.getCurrentEventPageUrl(e||t.pageUrl),e={event_id:Pc(),event_type:A.PAGE_VIEW,event_category:Mc.BEHAVIOR,timestamp:Date.now(),page_url:e,data:{page_title:t.pageTitle||"",referrer:t.referrer,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(M(M(M(M(M(M(M({},t.properties||{}),t.navigationType?{navigation_type:t.navigationType}:{}),t.fromPage?{from_page:t.fromPage}:{}),t.toPage?{to_page:t.toPage}:{}),"boolean"==typeof t.isFirstVisit?{is_first_visit:t.isFirstVisit?"1":"0"}:{}),"boolean"==typeof t.isFirstLoad?{is_first_load:t.isFirstLoad?"1":"0"}:{}),t.deviceType?{device_type:t.deviceType}:{}))}};this.reportTDEMEvent(e)},y.prototype.setPage=function(e,t){var n;e&&"string"==typeof e?(n=this._customPageUrl||this.getCurrentEventPageUrl(),this._customPageUrl=e,this.reportPageView(e,{pageTitle:null==t?void 0:t.pageTitle,navigationType:"push",fromPage:(n||"").slice(0,512),toPage:e.slice(0,512),isFirstVisit:!1,tags:M({source:"manual",environment:this.config.env||"production",version:String(this.config.version||"")},null!=t&&t.pageGroup?{page_group:t.pageGroup}:{})}),this.lifeCycle.emit("pageChanged",{pageUrl:e,previousUrl:n,source:"manual"})):console.warn("setPage: pageUrl must be a non-empty string")},y.prototype.leavePage=function(){var e;this._customPageUrl&&(e=this._customPageUrl,this._customPageUrl=null,this.lifeCycle.emit("pageChanged",{pageUrl:this.getCurrentEventPageUrl(),previousUrl:e,source:"auto"}))},y.prototype.getCurrentEventPageUrl=function(e){if(e)return e;if(this._customPageUrl)return this._customPageUrl;try{return this.getOriginFrom()}catch(Pe){return this.config.pageUrl||"undefined"!=typeof window&&(null==(e=window.location)?void 0:e.href)||""}},y.prototype.getCurrentReplayId=function(){var e,t;return String((null==(t=null==(e=null==(t=this.sessionManager)?void 0:t.getSession)?void 0:e.call(t))?void 0:t.replayId)||"")},y.prototype.getDefaultRuleVersion=function(){var e;return(null==(e=null==(e=this.config)?void 0:e.struggleMonitor)?void 0:e.ruleVersion)||"1.0.0"},y.prototype.getEventReplayId=function(e){return e||this.getCurrentReplayId()||undefined},y.prototype.mergeEventTags=function(e){return this.sanitizeEventTags(M(M(M({},this.config.defaultTags||{}),e||{}),{environment:Ac(this.config.env)}))},y.prototype.sanitizeStringMap=function(n,r){var i;return void 0===r&&(r=1024),n&&"object"===I(n)&&(i={},Object.keys(n).forEach(function(e){var t=n[e];e&&t!==undefined&&null!==t&&(i[String(e)]=String(t).slice(0,r))}),Object.keys(i).length)?i:undefined},y.prototype.sanitizeEventTags=function(e){return this.sanitizeStringMap(e,1024)},y.prototype.sanitizeEventProperties=function(e){return this.sanitizeStringMap(e,1024)},y.prototype.sanitizeStruggleProperties=function(e){var n=this.sanitizeEventProperties(e);return n?Object.keys(n).reduce(function(e,t){return Lp.has(t)&&"custom_struggle_name"!==t||(e[t]=n[t]),e},{}):undefined},y.prototype.sanitizeEventPayload=function(n,e){var r,i=this;return n&&"object"===I(n)&&(e=(e=this.getPayloadAllowlist(e)).length?e:Object.keys(n),r={},e.forEach(function(e){var t;Object.prototype.hasOwnProperty.call(n,e)&&(t=i.sanitizePayloadValue(n[e]))!==undefined&&(r[e]=t)}),Object.keys(r).length)?r:undefined},y.prototype.sanitizePayloadValue=function(n,r){var i=this;if(void 0===r&&(r=0),n===undefined||null===n)return undefined;if("string"==typeof n)return n.slice(0,256);if("number"==typeof n||"boolean"==typeof n)return n;if(Array.isArray(n))return n.slice(0,10).map(function(e){e=i.sanitizePayloadValue(e,r+1);return e===undefined?null:e});if("object"!==I(n))return String(n).slice(0,256);if(2<=r)try{return JSON.stringify(n).slice(0,256)}catch(bw){return undefined}var o={};return Object.keys(n).slice(0,20).forEach(function(e){var t=i.sanitizePayloadValue(n[e],r+1);t!==undefined&&(o[e]=t)}),Object.keys(o).length?o:undefined},y.prototype.getPayloadAllowlist=function(e){var t=null==(t=null==(t=this.config)?void 0:t.struggleMonitor)?void 0:t.payloadAllowlist;return Array.from(new Set(Cl(Array.isArray(t)?t:[],Array.isArray(e)?e:[]).filter(function(e){return!!e})))},y.prototype.normalizeRelatedEventIds=function(e){return Array.isArray(e)&&e.length&&(e=Array.from(new Set(e.filter(function(e){return"string"==typeof e&&e})))).length?e:undefined},y.prototype.ready=function(e,t,n){throw new Error('You need to override "ready" method')},y.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},y.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},y.prototype.getOriginFrom=function(){throw new Error('You need to override "getOriginFrom" method')},Object.defineProperty(y.prototype,"__version__",{get:function(){return"1.0.16"},enumerable:!1,configurable:!0}),y.prototype.submitMeasure=function(e,t,n){void 0===n&&(n={});e={event_id:Pc(),event_type:A.CUSTOM,event_category:Mc.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(n.pageUrl),data:{event_name:e,measurements:{duration:t},replay_id:this.getEventReplayId(n.replayId),tags:this.sanitizeEventTags(n.tags),payload:this.sanitizeEventPayload(n.payload),event_properties:this.sanitizeEventProperties(n.properties)}};this.reportTDEMEvent(e)},y.prototype.getTimeEventDuration=function(e){return e!==undefined&&this.timeMap[e]?Date.now()-this.timeMap[e]:undefined},y.version="1.0.16",y.instances=[],y.environment=Ic,y.installedPlugins=[],y),u=(jp.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewTdem(e))},jp.prototype.unpatch=function(e){var t=this.instances.indexOf(e);-1!==t&&(this.instances.splice(t,1),0===this.instances.length)&&this.uninstall(e)},jp.prototype.countInstance=function(){return this.instances.length},jp.prototype.uninstall=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this,[e])},jp.prototype.walk=function(n){var r=this;this.instances.forEach(function(e){var t=r.canUse(e);t&&n(e,t)})},jp.prototype.canUse=function(e){e=this.getConfig(e);return!(!e||"object"!==I(e))||!!e},jp.prototype.getConfig=function(e){return null==(e=e.config)?void 0:e[this.name]},jp.prototype.exist=function(e){return-1===this.instances.indexOf(e)},jp.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null==(t=null==(t=this.option)?void 0:t.init))||t.call(this.option,this.getConfig(e))},jp.prototype.triggerOnNewTdem=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.onNewTdem)&&t.call(this.option,e,this.getConfig(e))},jp);function jp(e){this.tdemPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}function y(e,t){var i,o,a,s,n,u,r,l,c,d,f,h,p,m;void 0===t&&(t={}),this.sdkName="tdem-web-sdk",this.sdkVersion=y.version,this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:60,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,lagMonitor:!0,blankScreen:!0,memoryMonitor:!0,speedSample:!0,onClose:!0,reportLoadPackageSpeed:!0,env:"production",url:"",reportImmediately:!0,tdemConfig:!0,hostUrl:"https://dem.rumt-zh.com",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",performanceUrlForHippy:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:""},this.isWhiteList=!1,this.lifeCycle=new jl,this.bean={},this.internalRetrySchedule=Tc,this._customPageUrl=null,this.tdemEventPipeline=Ap([(a=o=!1,s=[],n=function(e,t){var n,r;Array.isArray(e)&&0===e.length?t(e):(n=Ip(i))?Array.isArray(e)?(r=e.filter(function(e){return Rp(xp(e,i),n,Math.random,Tp(i))})).length&&t(r):Rp(xp(e,i),n,Math.random,Tp(i))&&t(e):o?a&&t(e):s.length<1e3&&s.push({event:e,resolve:t})},(i=this)._tdemSampleGate={decide:function(e){o=!0,a=e;e=s;s=[],Ip(i)?e.forEach(function(e){var t=e.event;return n(t,e.resolve)}):a&&e.forEach(function(e){var t=e.event;return(0,e.resolve)(t)})},reDecide:function(e){return!!Ip(i)||(e<=0?a=!1:100<=e?a=!0:a=100*Math.random()<e)},get isDecided(){return o||!!Ip(i)},get isSampled(){return a}},function(e,t){n(e,t)}),(r=this,l=20,f=Math.max(Number(l)||1,1),h=[],m=!(p=function(){return undefined}),function(e,t){var e=Array.isArray(e)?e:[e],n=(h.push.apply(h,e),function(){for(clearTimeout(c),clearTimeout(d),c=undefined,d=undefined;0<h.length;)t(h.splice(0,f))});p=n,!m&&e.some(function(e){return e.event_type===A.PAGE_VIEW})?(m=!0,n()):r.sendNow&&0<h.length?n():0!==e.length?f<=h.length?n():0!==h.length&&(clearTimeout(c),c=setTimeout(function(){0<h.length&&p()},5e3),d=d||setTimeout(function(){0<h.length&&p()},3e4)):0<h.length&&n()}),function(e,t){try{var n,r=JSON.parse(JSON.stringify(e)),i=(u.lifeCycle.emit("beforeReport",r),u.config.beforeReport);"function"==typeof i?0<(n=e.filter(function(e){return!1!==i(e)})).length&&t(n):t(e)}catch(b){t(e)}},kd(u=this)]),this.timeMap={},this.failRequestCount=0,this.internalTransport=t.transport,this.internalRetrySchedule=t.retrySchedule||Tc,y.instances.push(this)}var Bp,zp,jt=/ipad|iphone|ipod/i.test(Gn)&&/applewebkit/i.test(Gn),r=O.setImmediate,a=O.clearImmediate,Wp=O.process,Hp=O.Dispatch,qp=O.Function,i=O.MessageChannel,Vp=O.String,Gp=0,Jp={},Kp=(g(function(){Bp=O.location}),function(e){var t;T(Jp,e)&&(t=Jp[e],delete Jp[e],t())}),$p=function(e){return function(){Kp(e)}},l=function(e){Kp(e.data)},s=function(e){O.postMessage(Vp(e),Bp.protocol+"//"+Bp.host)},ze=(r&&a||(r=function(e){Nc(arguments.length,1);var t=oe(e)?e:qp(e),n=Zn(arguments,1);return Jp[++Gp]=function(){je(t,undefined,n)},zp(Gp),Gp},a=function(e){delete Jp[e]},pl?zp=function(e){Wp.nextTick($p(e))}:Hp&&Hp.now?zp=function(e){Hp.now($p(e))}:i&&!jt?(Gr=(ke=new i).port2,ke.port1.onmessage=l,zp=$r(Gr.postMessage,Gr)):O.addEventListener&&oe(O.postMessage)&&!O.importScripts&&Bp&&"file:"!==Bp.protocol&&!g(s)?(zp=s,O.addEventListener("message",l,!1)):zp="onreadystatechange"in be("script")?function(e){_t.appendChild(be("script")).onreadystatechange=function(){_t.removeChild(this),Kp(e)}}:function(e){setTimeout($p(e),0)}),{set:r,clear:a}),i=function(){this.head=null,this.tail=null};i.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Zp,Yp,Xp,Qp,em,tm,nm=i,ke=/ipad|iphone|ipod/i.test(Gn)&&"undefined"!=typeof Pebble,Gr=/web0s(?!.*chrome)/i.test(Gn),rm=ze.set,s=O.MutationObserver||O.WebKitMutationObserver,l=O.document,im=O.process,r=O.Promise,a=jr("queueMicrotask"),om=(a||(Qp=new nm,em=function(){var e,t;for(pl&&(e=im.domain)&&e.exit();t=Qp.get();)try{t()}catch(X){throw Qp.head&&tm(),X}e&&e.enter()},tm=jt||pl||Gr||!s||!l?!ke&&r&&r.resolve?((i=r.resolve(undefined)).constructor=r,Xp=$r(i.then,i),function(){Xp(em)}):pl?function(){im.nextTick(em)}:(rm=$r(rm,O),function(){rm(em)}):(Zp=!0,Yp=l.createTextNode(""),new s(em).observe(Yp,{characterData:!0}),function(){Yp.data=Zp=!Zp}),a=function(e){Qp.head||tm(),Qp.add(e)}),a),am=function(e){try{return{error:!1,value:e()}}catch(X){return{error:!0,value:X}}},sm=O.Promise,um=TypeError,lm=function(e){var n,r;this.promise=new e(function(e,t){if(n!==undefined||r!==undefined)throw new um("Bad Promise constructor");n=e,r=t}),this.resolve=Ue(n),this.reject=Ue(r)},cm={f:function(e){return new lm(e)}},dm=function(e,t){return S(e),W(t)&&t.constructor===e?t:((0,(e=cm.f(e)).resolve)(t),e.promise)},fm=sm&&sm.prototype,jr=!!sm&&g(function(){fm["finally"].call({then:function(){}},function(){})});R({target:"Promise",proto:!0,real:!0,forced:jr},{"finally":function(t){var n=gu(this,Re("Promise")),e=oe(t);return this.then(e?function(e){return dm(n,t()).then(function(){return e})}:t,e?function(e){return dm(n,t()).then(function(){throw e})}:t)}}),oe(sm)&&(jt=Re("Promise").prototype["finally"],fm["finally"]!==jt)&&Kt(fm,"finally",jt,{unsafe:!0}),sm&&sm.prototype;var hm,pm,mm,gm,vm=tt("species"),ym=!1,wm=oe(O.PromiseRejectionEvent),Gr={CONSTRUCTOR:Ws("Promise",function(){var e=et(sm),t=e!==String(sm);if(!t&&66===Jn)return!0;if(!Jn||Jn<51||!/native code/.test(e)){var e=new sm(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[vm]=n,!(ym=e.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!=hl&&"DENO"!=hl||wm)}),REJECTION_EVENT:wm,SUBCLASSING:ym},bm=ze.set,ke=Gr.CONSTRUCTOR,km=Gr.REJECTION_EVENT,r=Gr.SUBCLASSING,_m=zt.getterFor("Promise"),Sm=zt.set,i=sm&&sm.prototype,Em=sm,Cm=i,Rm=O.TypeError,Om=O.document,xm=O.process,Im=cm.f,Tm=Im,Mm=!!(Om&&Om.createEvent&&O.dispatchEvent),Am=function(e){var t;return!(!W(e)||!oe(t=e.then))&&t},Pm=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&Um(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?l(new Rm("Promise-chain cycle")):(r=Am(n))?x(r,n,u,l):u(n)):l(o)}catch(X){c&&!i&&c.exit(),l(X)}},Dm=function(n,r){n.notified||(n.notified=!0,om(function(){for(var e,t=n.reactions;e=t.get();)Pm(e,n);n.notified=!1,r&&!n.rejection&&Nm(n)}))},Lm=function(e,t,n){var r;Mm?((r=Om.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),O.dispatchEvent(r)):r={promise:t,reason:n},!km&&(t=O["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(X){}}("Unhandled promise rejection",n)},Nm=function(r){x(bm,O,function(){var e,t=r.facade,n=r.value;if(Fm(r)&&(e=am(function(){pl?xm.emit("unhandledRejection",n,t):Lm("unhandledrejection",t,n)}),r.rejection=pl||Fm(r)?2:1,e.error))throw e.value})},Fm=function(e){return 1!==e.rejection&&!e.parent},Um=function(t){x(bm,O,function(){var e=t.facade;pl?xm.emit("rejectionHandled",e):Lm("rejectionhandled",e,t.value)})},jm=function(t,n,r){return function(e){t(n,e,r)}},Bm=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,Dm(e,!0))},zm=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw new Rm("Promise can't be resolved itself");var r=Am(n);r?om(function(){var e={done:!1};try{x(r,n,jm(zm,e,t),jm(Bm,e,t))}catch(X){Bm(e,X,t)}}):(t.value=n,t.state=1,Dm(t,!1))}catch(X){Bm({done:!1},X,t)}}};if(ke&&(Cm=(Em=function(e){fr(this,Cm),Ue(e),x(hm,this);var t=_m(this);try{e(jm(zm,t),jm(Bm,t))}catch(X){Bm(t,X)}}).prototype,(hm=function(e){Sm(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new nm,rejection:!1,state:0,value:null})}).prototype=Kt(Cm,"then",function(e,t){var n=_m(this),r=Im(gu(this,Em));return n.parent=!0,r.ok=!oe(e)||e,r.fail=oe(t)&&t,r.domain=pl?xm.domain:undefined,0===n.state?n.reactions.add(r):om(function(){Pm(r,n)}),r.promise}),pm=function(){var e=new hm,t=_m(e);this.promise=e,this.resolve=jm(zm,t),this.reject=jm(Bm,t)},cm.f=Im=function(e){return e===Em||e===mm?new pm:Tm(e)},oe(sm))&&i!==Object.prototype){gm=i.then,r||Kt(i,"then",function(e,t){var n=this;return new Em(function(e,t){x(gm,n,e,t)}).then(e,t)},{unsafe:!0});try{delete i.constructor}catch(X){}xr&&xr(i,Cm)}R({global:!0,constructor:!0,wrap:!0,forced:ke},{Promise:Em}),mm=_i.Promise,br(Em,"Promise",!1),Aa("Promise");var l=Gr.CONSTRUCTOR||!Pu(function(e){sm.all(e).then(undefined,function(){})}),s=(R({target:"Promise",stat:!0,forced:l},{all:function(e){var s=this,t=cm.f(s),u=t.resolve,l=t.reject,n=am(function(){var r=Ue(s.resolve),i=[],o=0,a=1;ui(e,function(e){var t=o++,n=!1;a++,x(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||u(i)},l)}),--a||u(i)});return n.error&&l(n.value),t.promise}}),Gr.CONSTRUCTOR),a=sm&&sm.prototype,jt=(R({target:"Promise",proto:!0,forced:s,real:!0},{"catch":function(e){return this.then(undefined,e)}}),oe(sm)&&(jr=Re("Promise").prototype["catch"],a["catch"]!==jr)&&Kt(a,"catch",jr,{unsafe:!0}),R({target:"Promise",stat:!0,forced:l},{race:function(e){var n=this,r=cm.f(n),i=r.reject,t=am(function(){var t=Ue(n.resolve);ui(e,function(e){x(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),R({target:"Promise",stat:!0,forced:Gr.CONSTRUCTOR},{reject:function(e){var t=cm.f(this);return(0,t.reject)(e),t.promise}}),Gr.CONSTRUCTOR),Wm=(Re("Promise"),R({target:"Promise",stat:!0,forced:jt},{resolve:function(e){return dm(this,e)}}),["req_dial_links","req_dial_links_truncated","dns_dial_links","dns_dial_links_truncated"]),Hm=function(n){var r={};return n&&"object"===I(n)&&Wm.forEach(function(e){var t=n[e];"string"==typeof t&&""!==t&&(r[e]=t)}),r},ze=new u({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("TDEM_ID");t||(t=Yc(),window.localStorage.setItem("TDEM_ID",t)),this.aid=t}catch(C){}},onNewTdem:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),qm=RangeError,Vm=String,Gm=Math.floor,Jm=v(Jr),Km=v("".slice),$m=v(1.1.toFixed),Zm=function(e,t,n){return 0===t?n:t%2==1?Zm(e,t-1,n*e):Zm(e*e,t/2,n)},Ym=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=Gm(i/1e7)},Xm=function(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=Gm(r/t),r=r%t*1e7},Qm=function(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=Vm(e[n]),r=""===r?t:r+Jm("0",7-t.length)+t);return r},r=g(function(){return"0.000"!==$m(8e-5,3)||"1"!==$m(.9,0)||"1.25"!==$m(1.255,2)||"1000000000000000128"!==$m(0xde0b6b3a7640080,0)})||!g(function(){$m({})}),eg=(R({target:"Number",proto:!0,forced:r},{toFixed:function(e){var t,n,r,i=xo(this),e=fe(e),o=[0,0,0,0,0,0],a="",s="0";if(e<0||20<e)throw new qm("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||1e21<=i)return Vm(i);if(i<0&&(a="-",i=-i),1e-21<i)if(r=(t=function(){for(var e=0,t=i*Zm(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?i*Zm(2,-t,1):i/Zm(2,t,1),r*=4503599627370496,0<(t=52-t)){for(Ym(o,0,r),n=e;7<=n;)Ym(o,1e7,0),n-=7;for(Ym(o,Zm(10,n,1),0),n=t-1;23<=n;)Xm(o,1<<23),n-=23;Xm(o,1<<n),Ym(o,1,1),Xm(o,2),s=Qm(o)}else Ym(o,0,r),Ym(o,1<<-t,0),s=Qm(o)+Jm("0",e);return 0<e?a+((r=s.length)<=e?"0."+Jm("0",e-r)+s:Km(s,0,r-e)+"."+Km(s,r-e)):a+s}}),function(t){return"string"!=typeof t||!t||Il.some(function(e){return-1<t.indexOf(e)})||xl.some(function(e){return-1<t.indexOf(e)})}),tg=function(){return"undefined"!=typeof window.performance&&"function"==typeof performance.getEntriesByType&&"function"==typeof performance.now};function ng(e){return e=e.sessionManager,[(null==(e=null==(t=null==e?void 0:e.getSession)?void 0:t.call(e))?void 0:e.replayId)||"",null==e||e.id,!e||e.sampled,null==e||e.sampled][0];var t}var rg=new u({name:"assets"}),i=rg=new u({name:"assets",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},onNewTdem:function(e){var t=this;tg()&&(setTimeout(function(){t.collectSuccessLog(e),t.collectFailLog(e)},5e3),performance.onresourcetimingbufferfull=function(){"function"==typeof performance.clearResourceTimings&&(t.collectCur=0,performance.clearResourceTimings())})},processLog:function(e,t){var n=t.duration||0,r=t.transferSize||0,n={event_id:Pc(),event_type:A.RESOURCE_LOAD,event_category:Mc.NETWORK,timestamp:Date.now(),page_url:t.from||window.location.href,data:{url:t.url,resource_type:t.type||"static",measurements:{duration:n,dns_time:t.domainLookup,tcp_time:t.connectTime,transfer_size:0<r?r:undefined},replay_id:ng(e),tags:{environment:e.config.env||"production",is_https:t.isHttps?"true":"false"},event_properties:{is_cached:String(0===r),protocol:t.nextHopProtocol||"",http_status:String(t.status||0)}}};null!=(r=e.reportTDEMEvent)&&r.call(e,n)},publish:function(t,n){var r=this;this.$walk(function(e){e===n&&(Array.isArray(t)?t.forEach(r.processLog):r.processLog(n,t))})},publishMany:function(e,t){for(var n=t.config,r=this.getFromParam(t),i=0,o=e.length;i<o;i++){var a=e[i];-1===this.ASSETS_INITIATOR_TYPE.indexOf(a.initiatorType)||xc(a.name,n.hostUrl)||this.publish(this.generateLog(a,n,r),t)}},collectSuccessLog:function(n){var e,t,r=this;"function"==typeof window.PerformanceObserver?(this.publishMany(performance.getEntriesByType(this.collectEntryType),n),(e=new window.PerformanceObserver(function(e){r.publishMany(e.getEntries(),n)})).observe({entryTypes:[this.collectEntryType]}),n.lifeCycle.on("destroy",function(){0===rg.countInstance()&&e.disconnect()})):(t=setInterval(function(){var e=performance.getEntriesByType(r.collectEntryType),t=e.slice(r.collectCur);r.collectCur=e.length,r.publishMany(t,n)},3e3),n.lifeCycle.on("destroy",function(){0===rg.countInstance()&&clearInterval(t)}))},collectFailLog:function(i){var o=this,a=i.config,e=function(e){var t,n,r;e&&(e=e.target||e.srcElement,!(t=(null==e?void 0:e.src)||(null==e?void 0:e.href))||"string"!=typeof t||-1<window.location.href.indexOf(t)||(e="function"==typeof(null==(e=a.api)?void 0:e.resourceTypeHandler)?null==e?void 0:e.resourceTypeHandler(t):"",r=performance.getEntriesByType(o.collectEntryType).find(function(e){return e.name===t}),xc(t,a.hostUrl))||(n=o.getFromParam(i),r={url:fc(t),status:400,duration:Number(((null==r?void 0:r.duration)||0).toFixed(2)),method:"get",type:e||"static",isHttps:hc(t),urlQuery:dc(t,!0),nextHopProtocol:"",domainLookup:0,connectTime:0,from:n},o.publish(r,i)))};window.document.addEventListener("error",e,!0),i.lifeCycle.on("destroy",function(){0===rg.countInstance()&&window.document.removeEventListener("error",e,!0)})},generateLog:function(e,t,n){var t="function"==typeof(null==(r=t.api)?void 0:r.resourceTypeHandler)?null==(r=t.api)?void 0:r.resourceTypeHandler(e.name):"",r=e.transferSize;return{url:fc(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:200,type:t||"static",isHttps:hc(e.name),nextHopProtocol:e.nextHopProtocol||"",urlQuery:dc(e.name,!0),domainLookup:cc(e.domainLookupEnd-e.domainLookupStart),connectTime:cc(e.connectEnd-e.connectStart),transferSize:0<r?r:-1,from:n}},collectNotReportedLog:function(e){var t,n;tg()&&(t=(n=performance.getEntriesByType(this.collectEntryType)).length,"function"!=typeof window.PerformanceObserver)&&this.collectCur!==t&&(n=n.slice(this.collectCur),this.collectCur=t,this.publishMany(n,e))},destroy:function(){this.option.publish=function(){}}}),ig=window.navigator.userAgent.toLowerCase(),c={},og=function(e){return-1!==ig.indexOf(e)};c.macos=function(){return og("mac")},c.ios=function(){return c.iphone()||c.ipod()||c.ipad()},c.iphone=function(){return!c.windows()&&og("iphone")},c.ipod=function(){return og("ipod")},c.ipad=function(){var e="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return og("ipad")||e},c.android=function(){return!c.windows()&&og("android")},c.androidPhone=function(){return c.android()&&og("mobile")},c.androidTablet=function(){return c.android()&&!og("mobile")},c.blackberry=function(){return og("blackberry")||og("bb10")},c.blackberryPhone=function(){return c.blackberry()&&!og("tablet")},c.blackberryTablet=function(){return c.blackberry()&&og("tablet")},c.windows=function(){return og("windows")},c.windowsPhone=function(){return c.windows()&&og("phone")},c.windowsTablet=function(){return c.windows()&&og("touch")&&!c.windowsPhone()},c.fxos=function(){return(og("(mobile")||og("(tablet"))&&og(" rv:")},c.fxosPhone=function(){return c.fxos()&&og("mobile")},c.fxosTablet=function(){return c.fxos()&&og("tablet")},c.meego=function(){return og("meego")},c.cordova=function(){return window.cordova&&"file:"===location.protocol},c.nodeWebkit=function(){return"object"===I(window.process)},c.mobile=function(){return c.androidPhone()||c.iphone()||c.ipod()||c.windowsPhone()||c.blackberryPhone()||c.fxosPhone()||c.meego()},c.tablet=function(){return c.ipad()||c.androidTablet()||c.blackberryTablet()||c.windowsTablet()||c.fxosTablet()},c.desktop=function(){return!c.tablet()&&!c.mobile()};var ag,sg,ug,lg,cg=function(){return{host:new URL(location.href).host,pathname:location.pathname}},dg=!(c.isIE=function(){return"ActiveXObject"in window}),fg=[],hg=/^\/[^/]/;function pg(e,t){return lg(e,t)}var mg=!1,gg=[],vg=function(O,x){if(void 0===x&&(x=/\.flv(\?|$)/i),gg.find(function(e){return e.name===O.name}))throw new Error("name '"+O.name+"' is already in hackFetch option list");gg.push(O),!mg&&window.fetch&&(mg=!0,lg=window.fetch,window.fetch=function(e,t){void 0===t&&(t={});var i="string"==typeof(f=e)?f:f&&"object"===I(f)?"string"==typeof(d=f.url)&&d?d:"string"==typeof(d=f.href)&&d?d:"":"";if(i&&null!=(f=null==x?void 0:x.test)&&f.call(x,i))return pg(e,t);hg.test(i)&&(i=""+location.origin+i);var n,r,o,a,s,u,l,c,d=O||{},f=d.traceRequestHeader,h=d.shouldInjectTrace;if(f&&(!h||h()))try{var p=function(e,t){e="undefined"!=typeof Request&&"string"!=typeof e&&e instanceof Request?yg(e.headers):{};return M(M({},e),yg(t.headers))}(e,t),m=cg(),g=m.host,v=m.pathname,y=f.generate(i,p,{host:g,pathname:v})||{},w=y.name,b=y.value;w&&b&&(n=e,r=t,o=w,a=b,u="undefined"!=typeof Headers?Headers:null,l="undefined"!=typeof Request&&"string"!=typeof n&&n instanceof Request,c=r.headers,u&&(l||c&&c instanceof u)?(s=new u(l?n.headers:undefined),c instanceof u?c.forEach(function(e,t){return s.set(t,e)}):Array.isArray(c)?c.forEach(function(e){e&&e[0]&&s.set(String(e[0]),String(e[1]))}):c&&"object"===I(c)&&Object.keys(c).forEach(function(e){s.set(e,String(c[e]))}),s.has(o)||s.set(o,a),r.headers=s):(l=yg(c))[o]||l[o.toLowerCase()]||(r.headers=Object.assign({},l,((n={})[o]=a,n))))}catch(K){}for(var k=new Map,_=window.location.href,S=0;S<gg.length;S++){var E=gg[S];try{"function"==typeof E.beforeFetch&&E.beforeFetch(i,t),"function"==typeof E.getCurrentFrom&&k.set(E.name,E.getCurrentFrom())}catch(K){}}var C=Date.now(),R=Object.assign({},t,{method:(h=e,(m=t)&&m.method?String(m.method).toUpperCase():"string"!=typeof h&&h&&h.method?String(h.method).toUpperCase():"GET")});return pg(e,t).then(function(e){var t;try{t=e.clone()}catch(X){for(var n=0;n<gg.length;n++){var r=gg[n];try{"function"==typeof r.cloneError&&r.cloneError(e,Date.now()-C,i,R,C,k.get(r.name),_)}catch(K){}}return e}for(n=0;n<gg.length;n++){r=gg[n];try{"function"==typeof r.then&&r.then(t,Date.now()-C,i,R,C,k.get(r.name),_)}catch(K){}}return e})["catch"](function(e){for(var t=0;t<gg.length;t++){var n=gg[t];try{"function"==typeof n["catch"]&&n["catch"](e,Date.now()-C,i,R,C,k.get(n.name),_)}catch(K){}}throw e})})};function yg(e){var n;return e?"undefined"!=typeof Headers&&e instanceof Headers?(n={},e.forEach(function(e,t){n[t]=e,n[t.toLowerCase()]=e}),n):Array.isArray(e)?e.reduce(function(e,t){return t&&t[0]&&(e[String(t[0])]=String(t[1])),e},{}):M({},e):{}}var wg,bg,kg,_g,Sg=function(r,e,i){return null!=e&&e.length&&"object"===I(r)?e.reduce(function(e,t){var n=window.Headers&&r instanceof Headers?r.get(t):r[t];return n?e+(""===e?"":"\n\n")+i+" header "+t+": "+n:e},""):""},Eg=new Map,Cg=0,Rg=function(e){return e.startTime+":"+e.responseEnd},Og=(wg=null,{register:function(e,t){if(void 0===t&&(t={}),"function"!=typeof e)throw new TypeError("A request finalizer must be a function");if(wg&&!0!==t.replace)throw new Error("A request finalizer is already registered");var n={handler:e,pending:new Set};return kg(n),function(){wg===n&&kg(null)}},capture:function(){return wg},isCurrent:bg=function(e){return null!==e&&wg===e},onInvalidated:_g=function(e,t){var n;return bg(e)?((n=wg).pending.add(t),function(){n.pending["delete"](t)}):(t(),function(){return undefined})},invokeSync:function(e,t){if(!e||!bg(e))return{};try{var n=e.handler(t);return n&&"function"==typeof n.then?(Promise.resolve(n)["catch"](function(){return undefined}),{}):bg(e)?Hm(n):{}}catch(D){return{}}},invoke:function(s,e,t){if(!s||!bg(s))return{};try{var u=s.handler(e);return u&&"function"==typeof u.then?new Promise(function(n){var r=!1,i=function(){return undefined},o=function(e){if(!r){r=!0,clearTimeout(a),i();var t={};try{bg(s)&&(t=Hm(e))}catch(o){}n(t)}},a=setTimeout(function(){return o()},t),i=_g(s,function(){return o()});Promise.resolve(u).then(o,function(){return o()})}):bg(s)?Hm(u):{}}catch(De){return{}}}}),ke=Og.register,xg=function(t,e){var n=Og.capture(),r=Date.now();Eg.forEach(function(e,t){12e4<r-e.created&&Eg["delete"](t)}),1e3<=Eg.size&&Eg["delete"](Eg.keys().next().value);var i,o="cgi-"+r.toString(16)+"-"+Math.random().toString(16).slice(2)+"-"+(++Cg).toString(16),a="undefined"!=typeof globalThis?globalThis.performance:undefined,s=new Set;try{a.getEntriesByType("resource").forEach(function(e){e.name===t&&s.add(Rg(e))})}catch(k){}try{"function"==typeof a.now&&(i=a.now())}catch(k){}var u=!1;return Eg.forEach(function(e){e.finished||e.url!==t||(e.ambiguous=!0,u=!0)}),Eg.set(o,{id:o,owner:n,url:t,lower:i,existing:s,ambiguous:u,created:r,initiatorType:e}),o},Ig=function(t,e){var n;e===undefined?(n=Array.from(Eg.values()).find(function(e){return e.url===t}))&&Eg["delete"](n.id):Eg["delete"](e)},Tg=function(e){try{return new URL(e).hostname||""}catch(w){return""}},Mg=function(n,r,e){if((t=Tg(n))&&(0<=t.indexOf(":")||4===(t=t.split(".")).length&&t.every(function(e){return/^\d{1,3}$/.test(e)&&Number(e)<=255})))return{pendingEntry:!1};var t=Array.from(Eg.values()).filter(function(e){return!e.finished&&e.url===n}),i=e?Eg.get(e):1===t.length?t[0]:undefined;if(i&&i.ambiguous||1<t.length)return{pendingEntry:!1};e="undefined"!=typeof globalThis&&globalThis.performance?globalThis.performance:"undefined"!=typeof performance?performance:undefined;if(!e||"function"!=typeof e.getEntriesByType)return{pendingEntry:!1};var o,t=[];try{var a=Number(e.timeOrigin),s=Number.isFinite(a)&&0<a,t=e.getEntriesByType("resource").filter(function(e){var t;return!(!e||e.name!==n||i&&i.initiatorType&&e.initiatorType!==i.initiatorType||i&&i.existing.has(Rg(e))||(e=Number(e.startTime||0),t=s?a+e:e,!(i&&i.lower!==undefined?e>=i.lower:r<=t&&t<r+1)))})}catch(j){return{pendingEntry:!1}}return 1<t.length?{pendingEntry:!1}:0===t.length?{pendingEntry:!0}:(e=t[0],0<Number(e.redirectStart)||0<Number(e.redirectEnd)||(t=Number(e.domainLookupStart),o=Number(e.domainLookupEnd),!Number.isFinite(t))||!Number.isFinite(o)||o<t?{pendingEntry:!1}:(e=0<Number(e.requestStart)||0<Number(e.connectEnd),o===t?e?{dnsTimeMs:0,pendingEntry:!1}:{pendingEntry:!1}:{dnsTimeMs:o-t,pendingEntry:!1}))},Ag=function(e,t,n){return Mg(e,t,n).dnsTimeMs},Pg=function(a,s){var t,u,l,c,e,n=Eg.get(a.requestId),d=n?n.owner:null;n&&(a.willReport||Og.isCurrent(d))?(t=function(e){void 0===e&&(e=!1);var t,n=M(M({},a),{timingUnavailable:e}),r=e?undefined:Ag(a.url,a.startedAtMs,a.requestId),i=function(e){Ig(a.url,a.requestId),s(Og.isCurrent(d)?e:{},r)},o=(e=n,n={ms:r},(o=void 0===(o=d)?Og.capture():o)&&Og.isCurrent(o)?(t=Number(e.statusCode)||0,n=n.ms,Og.invoke(o,M(M({requestId:e.requestId,source:"renderer_fetch_xhr",host:Tg(e.url),url:e.url,statusCode:t,errorCode:"",durationMs:e.durationMs},n!==undefined?{dnsTimeMs:n}:{}),{willReport:e.willReport,process:"renderer",startedAtMs:e.startedAtMs}),200)):{});o&&"function"==typeof o.then?o.then(i,function(){return i({})}):i(o)},a.transportFailure?t(!0):(u=a.url,l=a.startedAtMs,c=a.requestId,n="undefined"!=typeof globalThis?globalThis:{},e=n.performance,"settled"===(n=null!=n.document&&null!=e&&"function"==typeof e.getEntriesByType&&Mg(u,l,c).pendingEntry?new Promise(function(t){var n,e=Date.now()+200,r=0,i=!1,o=function(e){i||(i=!0,n!==undefined&&clearTimeout(n),t(e))},a=function(){200<=r||Date.now()>=e?o("timeout"):Mg(u,l,c).pendingEntry?(r+=50,n=setTimeout(a,50)):o("settled")};i||(n=setTimeout(a,0))}):"settled")?t():n.then(function(e){return t("timeout"===e)},function(){return t()}))):(Ig(a.url,a.requestId),s({},undefined))},Dg={maxRetryCount:10,retryInterval:function(e){return 1e3*(2<<e)},whenRetryEndStillFail:"discard"},Lg={API_RESPONSE:"api_response",AJAX_ERROR:"ajax_error",RET_ERROR:"ret_error",SLOW_NET_REQUEST:"slow_net_request"},Ng=function(e,t){return e&&-1===["null","undefined"].indexOf(e)?t+": "+e:""},Fg=function(e,t,n){void 0===t&&(t="");var r,i,e="function"==typeof(null==(i=e.api)?void 0:i.resourceTypeHandler)?null==(i=e.api)?void 0:i.resourceTypeHandler(n):"";return-1===Ml.indexOf(e)&&(r=void 0===t?"":t,i=(void 0===n?"":n).split("?")[0],e=mc.test(i)||pc.some(function(e){return-1!==String(r).indexOf(e)})?"static":"fetch"),e},Ug=function(e,t){return e?Lg.AJAX_ERROR:t?Lg.RET_ERROR:Lg.API_RESPONSE},jg=function(e,t,n){if(!e)return!1;t=null==t?void 0:t.api;if(null!=t&&t.isSlowApi&&"function"==typeof(null==t?void 0:t.isSlowApi))try{return t.isSlowApi(n||{duration:e})}catch(X){return console.warn("[TDEM] isSlowApi function happen error:",X,", this data will not be reported."),!1}n=null!=(n=null==t?void 0:t.slowThreshold)?n:null==t?void 0:t.apiSlowThreshold;return n&&"number"==typeof n?n<e:1e3<e},Bg=function(e,t){var e=e.api;if(null!=e&&e.usePerformanceTiming&&"string"==typeof t.url){e=null==(e=performance.getEntriesByName(t.url))?void 0:e.pop();if(e)return{url:t.url,isHttps:hc(t.url),method:t.method,type:t.type,status:t.status,duration:Number(e.duration.toFixed(2)),nextHopProtocol:e.nextHopProtocol||"",domainLookup:cc(e.domainLookupEnd-e.domainLookupStart),connectTime:cc(e.connectEnd-e.connectStart)}}return{url:t.url,isHttps:hc(t.url),method:t.method,type:t.type,status:t.status,duration:Number(t.duration.toFixed(2)),nextHopProtocol:"",domainLookup:oc.number,connectTime:oc.number}};function zg(e){return!e||"boolean"==typeof e||"number"!=typeof(e=e.sseStallThresholdMs)||!Number.isFinite(e)||e<=0?6e4:e}function Wg(e){return e&&"text/event-stream"===e.split(";")[0].trim().toLowerCase()}var Hg=function(e){return"string"==typeof e&&""!==e.trim()};function qg(e){var t=String(e.requestUrl||""),n=String(e.finalUrl||""),r=t&&dc(t)||t,i=n&&dc(n)||n||r,n=!0===e.redirected||!!n&&!!t&&n!==t;return{url:i,originalUrl:r&&i&&r!==i?r:undefined,httpMethod:String(e.httpMethod||"GET").toUpperCase(),redirectCount:n?1:0}}function Vg(n){e=n.llmVersion;var r,i,o,a,t,e,s,u=(e=String(null==e?"":e).trim())?(s=Array.from(e)).length<=128?e:s.slice(0,128).join(""):"unknown",l=n.now||Date.now,c=l(),d={gap_lt_500_count:0,gap_500_999_count:0,gap_1000_2999_count:0,gap_3000_9999_count:0,gap_10000_59999_count:0,gap_ge_60000_count:0},f="",h=!1,p=0,m=!1,g=[],v=function(){t!==undefined&&(clearTimeout(t),t=undefined)},y=function(){v();var e=n.stallThresholdMs;0<e&&(t=setTimeout(function(){b("stalled")},e))},w=function(){var e,t,n=l();r===undefined?r=n:i!==undefined&&(e=n-i,(o===undefined||o<e)&&(o=e),t=d,(e=e)<500?t.gap_lt_500_count+=1:e<1e3?t.gap_500_999_count+=1:e<3e3?t.gap_1000_2999_count+=1:e<1e4?t.gap_3000_9999_count+=1:e<6e4?t.gap_10000_59999_count+=1:t.gap_ge_60000_count+=1),i=n,p+=1,y()},b=function(e){if(!m){m=!0,v(),g.splice(0).forEach(function(e){try{e()}catch(X){}});var t=Math.max(0,l()-c),t=M({duration:t,redirect_count:Math.max(0,n.redirectCount||0),message_count:p,stall_threshold_ms:n.stallThresholdMs},d),e=(r!==undefined&&(t.time_to_first_message=Math.max(0,r-c)),i!==undefined&&(t.last_message_offset=Math.max(0,i-c)),o!==undefined&&(t.max_message_gap=o),{http_method:n.httpMethod||"GET",outcome:e,model_version:u}),t=(a!==undefined&&0<a&&(e.http_status=String(a)),n.originalUrl&&n.originalUrl!==n.url&&(e.original_url=n.originalUrl),{event_id:Pc(),event_type:A.SSE_CALL,event_category:Mc.NETWORK,timestamp:l(),page_url:n.pageUrl||"",data:{url:n.url,resource_type:"sse",measurements:t,replay_id:n.replayId||undefined,event_properties:e}});try{n.report(t)}catch(X){}}};return y(),{ingestText:function(e){if(!m){e=e.replace(/\r\n/g,"\n");if(h){var t=e.indexOf("\n\n");if(-1===t)return;h=!1,e=e.slice(t+2)}for(var n=(f=(f+=e).replace(/\r\n/g,"\n")).indexOf("\n\n");-1!==n;){var r=f.slice(0,n);f=f.slice(n+2),r.replace(/\r\n/g,"\n").split("\n").some(function(e){return e.startsWith("data:")||"data"===e})&&w(),n=f.indexOf("\n\n")}1048576<f.length&&(h=!(f=""))}},ingestCompleteMessage:function(){m||w()},noteHttpStatus:function(e){0<e&&(a=e)},succeed:function(){return b("success")},failTransport:function(){return b("transport_error")},httpError:function(){return b("http_error")},cancel:function(){return b("cancelled")},pauseStall:function(){m||v()},resumeStall:function(){m||y()},onSeal:function(t){if(m){try{t()}catch(X){}return function(){return undefined}}return g.push(t),function(){var e=g.indexOf(t);-1!==e&&g.splice(e,1)}},seal:b,get sealed(){return m},get messageCount(){return p},get httpStatus(){return a}}}function Gg(h,p){var m;return Sl(this,void 0,void 0,function(){var o,a,s,u,l,c,d,f;return El(this,function(e){switch(e.label){case 0:if(!h||"function"!=typeof h.getReader)return p.succeed(),[2];o=h.getReader(),s=a=!1,u=function(){if(!a&&!s&&"function"==typeof o.cancel){s=!0;try{var e=o.cancel();e&&"function"==typeof e["catch"]&&e["catch"](function(){return undefined})}catch(X){}}},l=p.onSeal(u),c="undefined"!=typeof TextDecoder?new TextDecoder:{decode:function(e){return"undefined"!=typeof Buffer?Buffer.from(e).toString("utf8"):Array.from(e).map(function(e){return String.fromCharCode(e)}).join("")}},e.label=1;case 1:e.trys.push([1,5,6,7]),e.label=2;case 2:return p.sealed?[3,4]:[4,o.read()];case 3:return d=e.sent(),f=d.done,d=d.value,f?(a=!0,p.succeed(),[2]):(d&&p.ingestText(c.decode(d,{stream:!0})),[3,2]);case 4:return[3,7];case 5:return f=e.sent(),p.sealed||p[t=f,n=p.messageCount,r=p.httpStatus,!(i=t)||"object"!==I(i)||"AbortError"!==i.name&&"ABORT_ERR"!==i.code&&"ECONNABORTED"!==i.code&&!0!==i.aborted?(0<n||"number"==typeof r&&200<=r&&r<400)&&(function(e){if(Hg(e)&&-1!==e.toLowerCase().indexOf("terminated"))return 1;for(var t=e,n=new Set;t&&"object"===I(t)&&!n.has(t);){n.add(t);var r=String(t.name||""),i=String(t.code||""),o=String(t.message||"").toLowerCase();if("TypeError"===r&&-1!==o.indexOf("terminated"))return 1;if("ERR_INVALID_STATE"===i)return 1;t=t.cause}}(t)||Hg(t))?"succeed":"failTransport":"cancel"](),[3,7];case 6:l(),u();try{null!=(m=o.releaseLock)&&m.call(o)}catch(X){}return[7];case 7:return[2]}var t,n,r,i})})}var Jg,Kg,$g=!(kg=function(e){var t=wg;wg=e,t&&(Array.from(t.pending).forEach(function(e){return e()}),t.pending.clear())});function Zg(e){var t=e.__tdemXhrHooks;t&&(e.removeEventListener("readystatechange",t.onReadyStateChange),e.removeEventListener("progress",t.onProgress),e.removeEventListener("loadend",t.onLoadEnd),e.removeEventListener("abort",t.onAbort),e.removeEventListener("error",t.onError),e.removeEventListener("timeout",t.onTimeout),e.__tdemXhrHooks=undefined)}function Yg(e){var t=String(e.responseType||"").toLowerCase();if(t&&"text"!==t)return undefined;try{return"string"==typeof e.responseText?e.responseText:""}catch(X){return undefined}}new u({name:"api"});var Xg,Qg,ev,s=new u({name:"api",override:!1,onNewTdem:function(e){var t,n;this.override||(this.override=!0,null!=(n=e.config.api)&&n.injectTraceHeader&&(this.traceRequestHeader=new nd(n.injectTraceHeader,null!=(t=null==n?void 0:n.injectTraceIgnoreUrls)?t:[],null==n?void 0:n.injectTraceUrls,null==n?void 0:n.traceFlag)),this.overrideFetch(e.config,e),this.overrideXhr(e.config,e),!1!==n&&this.overrideEventSource(e.config,e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},currentViewId:function(e){var t=null!=(e=null!=(t=e.viewId)?t:null==(t=e.bean)?void 0:t.viewId)?e:"";return String(t||"")},rememberViewId:function(e,t){e&&(e.__tdemViewId=this.currentViewId(t))},reportWithStartedView:function(e,t,n){var n=String((null==n?void 0:n.__tdemViewId)||(null==t?void 0:t.view_id)||""),t=!n||null!=t&&t.view_id?t:M(M({},t),{view_id:n});null!=(n=e.reportTDEMEvent)&&n.call(e,t)},overrideFetch:function(C,R){var O=this,s=C.api,e={name:this.name,traceRequestHeader:null!=s&&s.injectTraceHeader?this.traceRequestHeader:null,shouldInjectTrace:function(){return Op(R)},getCurrentFrom:function(){return O.getFromParam(R)},beforeFetch:function(e,t){xc(e,C.hostUrl)||(t.__tdemRequestId=xg(e,"fetch")),O.rememberViewId(t,R)},cloneError:function(e,t,n,r,i,o){var a;xc(n,C.hostUrl)||(a=e.headers?e.headers.get("content-type"):"",!1!==s&&Wg(a)?(Ig(n,null==(a=r)?void 0:a.__tdemRequestId),(a=Vg({url:(a=qg({requestUrl:n,finalUrl:e&&e.url,httpMethod:null==r?void 0:r.method,redirected:!!e.redirected})).url,originalUrl:a.originalUrl,httpMethod:a.httpMethod,redirectCount:a.redirectCount,stallThresholdMs:zg(s),report:function(e){return O.reportWithStartedView(R,e,r)},pageUrl:o||O.getFromParam(R),replayId:ng(R),llmVersion:C.llmVersion})).noteHttpStatus(e.status),400<=e.status?a.httpError():a.succeed()):Pg({requestId:(null==(o=r)?void 0:o.__tdemRequestId)||"",url:n,statusCode:e.status||0,durationMs:t,startedAtMs:Number(i)||0,willReport:!1},function(){return undefined}))},then:function(g,v,y,w,b,k,_){if(!xc(y,C.hostUrl)){var e,t,S=(null==(n=w)?void 0:n.__tdemRequestId)||"",n=(w&&(w.__tdemRequestId=S),g.headers?g.headers.get("content-type"):"");if(!1!==s&&Wg(n))return Ig(y,S),e=qg({requestUrl:y,finalUrl:g&&g.url,httpMethod:null==w?void 0:w.method,redirected:!!g.redirected}),(t=Vg({url:e.url,originalUrl:e.originalUrl,httpMethod:e.httpMethod,redirectCount:e.redirectCount,stallThresholdMs:zg(s),report:function(e){return O.reportWithStartedView(R,e,w)},pageUrl:k||O.getFromParam(R),replayId:ng(R),llmVersion:C.llmVersion})).noteHttpStatus(g.status),g.__tdemSseObserver=t,400<=g.status?(t.httpError(),void Gg(g.body,t)["catch"](function(){return undefined})):void Gg(g.body,t)["catch"](function(){t.sealed||t.failTransport()});var E=Fg(C,n||"",y);"fetch"===E?Promise.resolve().then(function(){return g.clone().text()}).then(function(a){var e,s=g.status<=0||400<=g.status,t=(null==(t=C.api)?void 0:t.reqHeaders)||[],u=Sg(null==w?void 0:w.headers,t,"req"),t=(null==(t=C.api)?void 0:t.resHeaders)||[],l=Sg(g.headers,t,"res"),t=id(null==w?void 0:w.headers),c=t.traceId,d=t.spanId,t=vc(a,C.api,{url:y,ctx:g,payload:null==w?void 0:w.body}),f=t.code,h=t.isErr,t=null==(t=C.api)?void 0:t.apiDetail,p=t?yc(null==w?void 0:w.body,null==(e=C.api)?void 0:e.reqParamHandler,{url:y}):"",m=t?yc(a,null==(e=C.api)?void 0:e.resBodyHandler,{url:y,ctx:g}):"";setTimeout(function(){var n=Bg(C,{url:y,duration:v,type:E,status:g.status||0,method:(null==w?void 0:w.method)||"get"}),e=[s?"FETCH_ERROR: "+a:"","fetch req url: "+y,"res status: "+(n.status||0),"res duration: "+n.duration+"ms","res startTime: "+b,u,l,"req method: "+(n.method||"GET"),"res retcode: "+f,Ng(p,"req param"),Ng(m,"res data")].filter(function(e){return e}).join("\n\n"),r=(n.payload=null==w?void 0:w.body,n.ret=f,n.isErr=+h,n.from=k||O.getFromParam(R),{msg:e,code:f,trace:c,spanId:d,errorMsg:"",from:k||O.getFromParam(R),originFrom:_,viewId:null==(e=w)?void 0:e.__tdemViewId,level:Lg.API_RESPONSE}),e=jg(null==n?void 0:n.duration,C,n),t=Ug(s,h);r.level=t===Lg.API_RESPONSE&&e?Lg.SLOW_NET_REQUEST:t,r.isErr=h;var i=e||r.level!==Lg.API_RESPONSE,o=null==(t=R.config)?void 0:t.api;Pg({requestId:S,url:y,statusCode:n.status||0,durationMs:Number(n.duration)||0,startedAtMs:Number(b)||0,willReport:!!(i||R.isWhiteList||null!=o&&o.reportRequest||null!=o&&o.injectTraceHeader),transportFailure:!(0<g.status)},function(e,t){e&&Object.keys(e).length&&(r.dialFields=e),null!=t&&(r.dnsTime=t),(i||R.isWhiteList||null!=o&&o.reportRequest||null!=o&&o.injectTraceHeader)&&O.publishNormalLog(r,R),O.publishSpeed(n,R)})},0)})["catch"](function(){Pg({requestId:S,url:y,statusCode:g.status||0,durationMs:v,startedAtMs:Number(b)||0,willReport:!1},function(){return undefined})}):(Ig(y,S),setTimeout(function(){var e=Bg(C,{url:y,duration:v,type:E,status:g.status||0,method:(null==w?void 0:w.method)||"get"});e.type="static",e.urlQuery=dc(y,!0),e.from=k||O.getFromParam(R),O.publishSpeed(e,R)},0))}},"catch":function(e,t,i,o,a,s,u){if(xc(i,C.hostUrl))throw e;var l,c,d,f,h,n,p=(null==(n=o)?void 0:n.__tdemRequestId)||"";if((n=Eg.get(p))&&(n.finished=!0),"AbortError"!==(e&&e.name))throw l=Fg(C,"",i),n=(null==(n=C.api)?void 0:n.reqHeaders)||[],c=Sg(null==o?void 0:o.headers,n,"req"),n=id(null==o?void 0:o.headers),d=n.traceId,f=n.spanId,h=null!=(n=C.api)&&n.apiDetail?yc(null==o?void 0:o.body,null==(n=C.api)?void 0:n.reqParamHandler,{url:i}):"",setTimeout(function(){var n=Bg(C,{url:i,duration:t,type:l,status:0,method:(null==o?void 0:o.method)||"get"}),r=(n.from=s||O.getFromParam(R),"AJAX_ERROR: "+e+"\n \nreq url: "+i+"\n \nres status: 0\n \nres duration: "+n.duration+"ms\n \nreq method: "+((null==o?void 0:o.method)||"get")+"\n \nreq param: "+h+"\n \nres startTime: "+a+"\n \n"+c);Pg({requestId:p,url:i,statusCode:0,durationMs:Number(n.duration)||0,startedAtMs:Number(a)||0,willReport:!0,transportFailure:!0},function(e){var t;O.publishSpeed(n,R),O.publishNormalLog({msg:r,level:Lg.AJAX_ERROR,code:-400,trace:d,spanId:f,errorMsg:"",from:s||O.getFromParam(R),originFrom:u,viewId:null==(t=o)?void 0:t.__tdemViewId,dialFields:e},R)})},0),e;Ig(i,p)}};this.hackFetchOptions=e,vg(this.hackFetchOptions,null==(e=C.api)?void 0:e.ignoreHackReg)},overrideXhr:function(O,x){var e,i,I=this,o={name:this.name,ignoreHackReg:null==(e=O.api)?void 0:e.ignoreHackReg,traceRequestHeader:null!=(e=O.api)&&e.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return I.getFromParam(x)},open:function(e){var t;(t=(e=e).__tdemSseObserver)&&!t.sealed&&t.cancel(),Zg(e),e.__tdemSseClaimed=!1,e.__tdemSseObserver=undefined,e.failType=undefined},send:function(_,S,E,C){I.rememberViewId(_,x);var R=Date.now(),n=(xc(_.tdemUrl||"",O.hostUrl)||(_.__tdemRequestId=xg(_.tdemUrl||"","xmlhttprequest")),((null==O?void 0:O.api)||{}).injectTraceHeader&&Op(x)&&(t=(e=cg()).host,e=(t=I.traceRequestHeader.generate(_.tdemUrl,{},{host:t,pathname:e.pathname})||{}).name,t=t.value,e)&&t&&_.setRequestHeader(e,t),0),e=function(){_.failType="abort"},t=function(){_.failType="error"},r=function(){_.failType="timeout"},i=function(){var e;!1===O.api||_.__tdemSseClaimed||(e=_.tdemUrl||"",xc(e,O.hostUrl))||Wg(("function"==typeof _.getResponseHeader?_.getResponseHeader("content-type"):"")||"")&&(_.__tdemSseClaimed=!0,(e=Vg({url:(e=qg({requestUrl:_.tdemUrl||"",finalUrl:("string"==typeof _.responseURL?_.responseURL:"")||undefined,httpMethod:_.tdemMethod})).url,originalUrl:e.originalUrl,httpMethod:e.httpMethod,redirectCount:e.redirectCount,stallThresholdMs:zg(O.api),report:function(e){return I.reportWithStartedView(x,e,_)},pageUrl:E||I.getFromParam(x),replayId:ng(x),llmVersion:O.llmVersion})).noteHttpStatus(_.status),_.__tdemSseObserver=e)},o=function(){i()},a=function(){i();var e,t=_.__tdemSseObserver;t&&(e=Yg(_))!==undefined&&e.length>n&&(t.ingestText(e.slice(n)),n=e.length)},s=function(){var e,y,w,t,b,k=_.tdemUrl||"";_.__tdemSseClaimed?(Ig(k,_.__tdemRequestId),(e=_.__tdemSseObserver)&&!e.sealed&&((t=Yg(_))!==undefined&&t.length>n&&e.ingestText(t.slice(n)),e.noteHttpStatus(_.status),"abort"===_.failType?e.cancel():400<=_.status?e.httpError():_.failType?e.failTransport():e.succeed()),Zg(_)):(Zg(_),xc(k,O.hostUrl)||"abort"===_.failType?Ig(k,_.__tdemRequestId):(y="",(_.failType||!_.status||400<=_.status)&&(y=_.failType||"failed"),w=Date.now()-R,t=_.getResponseHeader("content-type")||"",b=Fg(O,t,k),setTimeout(function(){var e,l=Bg(O,{url:k,duration:w,type:b,status:_.status,method:_.tdemMethod||"get"});if(l.from=E||I.getFromParam(x),"fetch"===b){var t=(null==(e=O.api)?void 0:e.reqHeaders)||[],c=Sg(_.tdemXhrReqHeader,t,"req"),t=(null==(t=O.api)?void 0:t.resHeaders)||[],n=_.getAllResponseHeaders().split("\r\n").reduce(function(e,t){t=t.split(": ");return t[0]&&t[1]&&(e[t[0]]=t[1]),e},{}),d=Sg(n,t,"res"),n=id(_.tdemXhrReqHeader),f=n.traceId,h=n.spanId,n=null==(t=O.api)?void 0:t.apiDetail,p=n?yc(S,null==(t=O.api)?void 0:t.reqParamHandler,{url:k}):"",m=n?yc(_.response,null==(t=O.api)?void 0:t.resBodyHandler,{url:k}):"";try{var r,i,o,a=_.response,s=O.api,u={url:k,ctx:_,payload:S},g=function(e){var n=e.code,r=e.isErr,i=[y?"AJAX_ERROR: request "+y:"","fetch req url: "+k,"res status: "+(l.status||0),"res duration: "+l.duration+"ms","res startTime: "+R,c,d,"req method: "+(l.method||"GET"),"res retcode: "+n,Ng(p,"req param"),Ng(m,"res data")].filter(function(e){return e}).join("\n\n"),o=(l.ret=n,l.isErr=+r,l.payload=S,Ug(!!y,r)),a=jg(null==l?void 0:l.duration,O,l),s=o===Lg.API_RESPONSE&&a?Lg.SLOW_NET_REQUEST:o,e=_.__tdemRequestId||"",u=(_.__tdemRequestId=e,null==(t=x.config)?void 0:t.api),t=o!==Lg.API_RESPONSE||a||x.isWhiteList||(null==u?void 0:u.reportRequest)||(null==u?void 0:u.injectTraceHeader);Pg({requestId:e,url:k,statusCode:l.status||0,durationMs:Number(l.duration)||0,startedAtMs:Number(R)||0,willReport:!!t,transportFailure:!(0<_.status)},function(e,t){(o!==Lg.API_RESPONSE||a||x.isWhiteList||null!=u&&u.reportRequest||null!=u&&u.injectTraceHeader)&&I.publishNormalLog({msg:i,level:s,code:n,isErr:r,trace:f,spanId:h,errorMsg:"",from:E||I.getFromParam(x),originFrom:C,viewId:_.__tdemViewId,dialFields:e,dnsTime:t},x),I.publishSpeed(l,x)})};try{if("function"==typeof(null==s?void 0:s.retCodeHandlerAsync))return void s.retCodeHandlerAsync(a,null==u?void 0:u.url,null==u?void 0:u.ctx,function(e){var t=e.code;null!=g&&g({code:void 0===t?Al:t,isErr:e.isErr})});if("function"==typeof(null==s?void 0:s.retCodeHandler))return void(o=(i=s.retCodeHandler(a,null==u?void 0:u.url,null==u?void 0:u.ctx,null==u?void 0:u.payload)||{}).code,null!=g&&g({code:void 0===o?Al:o,isErr:i.isErr}));if(!(a="string"==typeof a?JSON.parse(a):a))return void(null!=g&&g({code:Al,isErr:!1}));"function"==typeof(null==(r=null==s?void 0:s.ret)?void 0:r.join)&&(gc=[].concat(s.ret.map(function(e){return e.toLowerCase()})));var v=Object.getOwnPropertyNames(a).filter(function(e){return-1!==gc.indexOf(e.toLowerCase())});if(v.length)return void("未知"!==(o=a[v[0]])&&""!==o||(o=Al),null!=g&&g({code:""+o,isErr:0!==o&&"0"!==o&&o!==Al}));null!=g&&g({code:Al,isErr:!1})}catch(e){null!=g&&g({code:Al,isErr:!1})}}catch(Y){Ig(k,_.__tdemRequestId),l.ret=Al,I.publishSpeed(l,x)}}else Ig(k,_.__tdemRequestId),l.type="static",l.urlQuery=dc(k,!0),I.publishSpeed(l,x)},0)))};_.__tdemXhrHooks={onReadyStateChange:o,onProgress:a,onLoadEnd:s,onAbort:e,onError:t,onTimeout:r},_.addEventListener("readystatechange",o),_.addEventListener("progress",a),_.addEventListener("loadend",s),_.addEventListener("abort",e),_.addEventListener("error",t),_.addEventListener("timeout",r)}};this.hackXHROptions=o,i=this.hackXHROptions,fg.find(function(e){return e.name===i.name})||(fg.push(i),!dg&&window.XMLHttpRequest&&(ag=window.XMLHttpRequest.prototype.send,sg=window.XMLHttpRequest.prototype.open,ug=window.XMLHttpRequest.prototype.setRequestHeader,dg=!0,window.XMLHttpRequest.prototype.open=function(){this.tdemMethod=arguments[0];var e,t=arguments[1];if(hg.test(t)&&(t=""+location.origin+t),this.tdemUrl=t,null==(e=null==(t=i.ignoreHackReg)?void 0:t.test)||!e.call(t,this.tdemUrl))if(this.tdemXhrStartTime=Date.now(),this.sendByTdem)c.isIE()||(this.timeout=5e3);else for(var n=0;n<fg.length;n++){var r=fg[n];try{"function"==typeof r.open&&r.open(this)}catch(o){}}return sg.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var e,t,n;return null!=(n=null==(t=i.ignoreHackReg)?void 0:t.test)&&n.call(t,this.tdemUrl)?ug.apply(this,arguments):(t=arguments[0],n=arguments[1],this.tdemXhrReqHeader=null!=(e=this.tdemXhrReqHeader)?e:{},null!=i&&i.traceRequestHeader&&-1<["traceparent","b3","sw8","sentry-trace"].indexOf(t)&&(this.tdemXhrReqHeader[t]||(arguments[1]=n),this.tdemXhrReqHeader[t])?void 0:(this.tdemXhrReqHeader[t]=arguments[1],ug.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var e,t;if(!(null!=(t=null==(e=i.ignoreHackReg)?void 0:e.test)&&t.call(e,this.tdemUrl)||this.sendByTdem))for(var n=0;n<fg.length;n++){var r=fg[n];try{"function"==typeof r.send&&r.send(this,arguments[0],"function"==typeof r.getCurrentFrom?r.getCurrentFrom():undefined,window.location.href)}catch(I){}}return ag.apply(this,arguments)}))},overrideEventSource:function(o,a){var n,s=this;function e(e,t){t=new n(e,t);try{null!=Kg&&Kg(t,String(e))}catch(X){}return t}Kg={onCreate:function(t,e){var n={__tdemViewId:s.currentViewId(a)};if(!xc(e,o.hostUrl)){var r=Vg({url:dc(e)||e,httpMethod:"GET",stallThresholdMs:zg(o.api),report:function(e){return s.reportWithStartedView(a,e,n)},pageUrl:s.getFromParam(a),replayId:ng(a),llmVersion:o.llmVersion});r.pauseStall(),t.addEventListener("open",function(){return r.resumeStall()}),t.addEventListener("message",function(){return r.ingestCompleteMessage()}),t.addEventListener("error",function(){if(!r.sealed){var e=t.readyState;0!==e?2===e&&r.failTransport():r.pauseStall()}});var i=t.close.bind(t);t.close=function(){try{r.sealed||r.cancel()}finally{i()}}}}}.onCreate,"undefined"!=typeof window&&window.EventSource&&!$g&&($g=!0,n=Jg=window.EventSource,e.prototype=n.prototype,e.CONNECTING=n.CONNECTING,e.OPEN=n.OPEN,e.CLOSED=n.CLOSED,window.EventSource=e)},publishSpeed:function(e){},publishNormalLog:function(n,e){var t,r,i,o,a,s,u,l,c;[Lg.API_RESPONSE,Lg.AJAX_ERROR,Lg.RET_ERROR,Lg.SLOW_NET_REQUEST].includes(n.level)&&(t=(t=null==(t=n.msg)?void 0:t.match(/(?:fetch req url|req url):\s*(.+?)(?:\n|$)/))?t[1].trim():"",r=(r=null==(r=n.msg)?void 0:r.match(/req method:\s*(.+?)(?:\n|$)/i))?r[1].trim().toUpperCase():"GET",s=(s=null==(s=n.msg)?void 0:s.match(/res status:\s*(\d+)/))?parseInt(s[1],10):0,i=(i=null==(i=n.msg)?void 0:i.match(/res duration:\s*([\d.]+)ms/))?parseFloat(i[1]):0,u=(u=null==(u=n.msg)?void 0:u.match(/=+\s*res data\s*=+\s*\n([\s\S]*?)(?:\n=+|$)/))?u[1].trim().slice(0,1e3):undefined,o={},n.trace&&(o.trace_id=n.trace),n.spanId&&(o.span_id=n.spanId),(c=(l={httpStatus:s,isTransportFailure:s<=0,isBusinessError:n.level===Lg.RET_ERROR||!!n.isErr,businessCode:n.code}).aborted?{report:!1,eventType:null}:(c=Number(l.httpStatus),l.isTransportFailure||!Number.isFinite(c)||c<=0?{report:!0,eventType:"api_error",outcome:"transport_error"}:400<=c?{report:!0,eventType:"api_error",outcome:"http_error"}:l.isBusinessError?{report:!0,eventType:"api_error",outcome:"business_error",businessCode:sc(l.businessCode)||Al}:{report:!0,eventType:"api_call",businessCode:sc(l.businessCode)})).report)&&c.eventType&&(a={http_method:r,http_status:String(s)},c.outcome&&(a.outcome=c.outcome),c.businessCode&&(a.business_code=c.businessCode),n.dialFields&&"object"===I(n.dialFields)&&Object.keys(n.dialFields).forEach(function(e){var t=n.dialFields[e];null!=t&&""!==t&&(a[e]=String(t))}),l={duration:i},null!=n.dnsTime&&Number.isFinite(Number(n.dnsTime))&&(l.dns_time=Math.max(0,Number(n.dnsTime))),"api_error"===c.eventType?(s=M(M({event_id:Pc(),event_type:A.API_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:n.from||(null==(r=e.getOriginFrom)?void 0:r.call(e))||window.location.href},n.viewId?{view_id:String(n.viewId)}:{}),{data:{url:t,measurements:l,response_body:u,replay_id:ng(e),tags:0<Object.keys(o).length?o:undefined,event_properties:a}}),null!=(i=e.reportTDEMEvent)&&i.call(e,s)):(u=M(M({event_id:Pc(),event_type:A.API_CALL,event_category:Mc.NETWORK,timestamp:Date.now(),page_url:n.from||(null==(r=e.getOriginFrom)?void 0:r.call(e))||window.location.href},n.viewId?{view_id:String(n.viewId)}:{}),{data:{url:t,measurements:l,replay_id:ng(e),tags:0<Object.keys(o).length?o:undefined,event_properties:a}}),null!=(s=e.reportTDEMEvent)&&s.call(e,u)))},destroy:function(){var t,n,e;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(n=this.option.hackXHROptions,-1!==(e=fg.findIndex(function(e){return e.name===n.name})))&&fg.splice(e,1),this.option.hackFetchOptions&&(t=this.option.hackFetchOptions,-1!==(e=gg.findIndex(function(e){return e.name===t.name})))&&gg.splice(e,1),Jg&&(window.EventSource=Jg),$g=!1,Jg=undefined,Kg=undefined,this.option.override=!1}}),tv={},a=new u({name:"bridge",override:!1,onNewTdem:function(e){this.override||(this.override=!0,this.overrideBridge(e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},publishSpeed:function(t,n){this.$walk(function(e){e===n&&e.speedLogPipeline(t)})},overrideBridge:function(l){var c=this,d=l.config,e="object"===I(d.bridge)?d.bridge:undefined,t=null==e?void 0:e.target,e=null==e?void 0:e.methods;t&&null!=e&&e.length&&e.forEach(function(e){var u=t[e];tv[e]=u,t[e]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],n=e[2],o=e[3],a=Date.now(),s=c.getFromParam(l);u(r,i,n,function(e){var t=vc(e,d.api),n=t.code,t=t.isErr,n={url:r+"-"+i,name:r+"-"+i,duration:Date.now()-a,type:"bridge",ret:n,isErr:+t,from:s};c.publishSpeed(n,l),o(e)})}})},unHackBridge:function(e){var e="object"===I(e.config.bridge)?e.config.bridge:undefined,t=null==e?void 0:e.target;tv=(t&&Object.keys(tv).forEach(function(e){tv[e]&&(t[e]=tv[e])}),{})},destroy:function(e){this.option.publishSpeed=function(){},this.option.unHackBridge(e),this.option.override=!1}}),jt=((jr=Xg=Xg||{})[jr.unknown=100]="unknown",jr[jr.wifi=1]="wifi",jr[jr.net2g=2]="net2g",jr[jr.net3g=3]="net3g",jr[jr.net4g=4]="net4g",jr[jr.net5g=5]="net5g",jr[jr.net6g=6]="net6g",(l=Qg=Qg||{})[l.android=1]="android",l[l.ios=2]="ios",l[l.windows=3]="windows",l[l.macos=4]="macos",l[l.linux=5]="linux",l[l.other=100]="other",(Gr=ev=ev||{})[Gr.unknown=100]="unknown",Gr[Gr.normal=0]="normal",Gr[Gr.weak=1]="weak",Gr[Gr.disconnected=2]="disconnected",new u({name:"device",onNewTdem:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",Xg.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e),this.refreshNetworkStatusToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var t={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},e=Object.keys(t).find(function(e){return t[e].test(navigator.userAgent)});return e?Qg[e]:Qg.other},refreshNetworkTypeToBean:function(t){var n=this,e=t.config;e&&("function"==typeof e.getNetworkType?e.getNetworkType:nv)(function(e){Xg[e]||(e=Xg.unknown),t.extendBean("netType",e),n.NetworkRefreshTimer=setTimeout(function(){n.refreshNetworkTypeToBean(t),clearTimeout(n.NetworkRefreshTimer)},1e4)})},refreshNetworkStatusToBean:function(t){var e,n=this,r=t.config;r&&null!=(e="function"==typeof r.getNetworkStatus?r.getNetworkStatus:e)&&e(function(e){ev[e]===undefined&&(e=ev.unknown),t.extendBean("netStatus",e),n.NetworkStatusRefreshTimer=setTimeout(function(){n.refreshNetworkStatusToBean(t),clearTimeout(n.NetworkStatusRefreshTimer)},1e4)})}})),nv=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((n=t=t||Al,0<=(n=String(n).toLowerCase()).indexOf("4g")?Xg.net4g:0<=n.indexOf("wifi")?Xg.wifi:0<=n.indexOf("5g")?Xg.net5g:0<=n.indexOf("6g")?Xg.net6g:0<=n.indexOf("3g")?Xg.net3g:0<=n.indexOf("2g")?Xg.net2g:Xg.unknown))},rv=window.WebSocket,iv=[],ov={construct:function(e,t){var r=new e(t[0],t[1]);return r.originSend=r.send,r.addEventListener("error",function(e){var e=(null==e?void 0:e.currentTarget)||{},t=e.url,n=e.readyState;null!=iv&&iv.forEach(function(e){e=e.onErr;null!=e&&e({msg:"无法获知具体错误信息,需在浏览器控制台查看!",readyState:n,connectUrl:t})})}),Object.defineProperty(r,"send",{get:function(){return function(e){null!=(t=r.originSend)&&t.call(r,e);var t,e=r.readyState;if(e!==WebSocket.OPEN){var n={readyState:e,connectUrl:r.url};switch(e){case WebSocket.CLOSED:iv.forEach(function(e){e=e.sendErr;null!=e&&e(M({msg:"消息发送失败,连接已关闭!"},n))});break;case WebSocket.CONNECTING:iv.forEach(function(e){(0,e.sendErr)(M({msg:"消息发送失败,正在连接中!"},n))});break;case WebSocket.CLOSING:iv.forEach(function(e){(0,e.sendErr)(M({msg:"消息发送失败,连接正在关闭!"},n))})}}}}}),r}},av=new u({name:"onError"}),Jr=av=new u({name:"onError",onNewTdem:function(e){this.startListen(e)},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},startListen:function(s){var e,t,n,u=this,l=window.onerror,r=(window.onerror=function(e,t,n,r,i){var o,a=bc(e);eg(a)||(a=[{type:(null==i?void 0:i.name)||"Error",value:String(e),mechanism_type:"onerror",mechanism_handled:0}],o=i?Dc(i):[{abs_path:t||"",colno:r||0,filename:(null==t?void 0:t.split("/").pop())||"","function":"(anonymous)",lineno:n||0,in_app:1,stack_level:0}],a={event_id:Pc(),event_type:A.JS_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:a,exception_frames:o,replay_id:ng(s),tags:{environment:s.config.env||"production",version:String(s.config.version||"")}}},null!=(o=s.reportTDEMEvent)&&o.call(s,a)),null!=l&&l.call(window,e,t,n,r,i)},function(e){var t,n=e&&bc(e.reason);n&&(t=[{type:(null==(t=e.reason)?void 0:t.name)||"PromiseRejection",value:(null==(t=e.reason)?void 0:t.message)||String(n),mechanism_type:"unhandledrejection",mechanism_handled:0}],n=e.reason instanceof Error?Dc(e.reason):[],e={event_id:Pc(),event_type:A.PROMISE_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:t,exception_frames:n,replay_id:ng(s),tags:{environment:s.config.env||"production"}}},null!=(t=s.reportTDEMEvent))&&t.call(s,e)}),i=(window.addEventListener("unhandledrejection",r),function(e){e=(null==e?void 0:e.target)||(null==e?void 0:e.srcElement);if(e){var t=e.src||e.href||"",n=e.tagName,n=(void 0===n?"script":n).toLowerCase(),r=["audio","video"].includes(n);if((!r||null!=e&&e.error)&&!(xc(i=t,s.config.hostUrl)||-1<window.location.href.indexOf(i))){var i="other";if(/\.js$/.test(t)||"script"===n)i="script";else if(/\.css$/.test(t)||"link"===n)i="stylesheet";else if("img"===n)i="image";else{if(!r)return;i="media"}t={event_id:Pc(),event_type:A.RESOURCE_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{url:t,resource_type:i,replay_id:ng(s),tags:M({environment:s.config.env||"production"},r&&null!=e&&e.error?{error_code:String(e.error.code),error_message:e.error.message||""}:{}),event_properties:{element_tag:n}}};null!=(i=s.reportTDEMEvent)&&i.call(s,t)}}}),o=(window.document.addEventListener("error",i,!0),s.lifeCycle.on("destroy",function(){0===av.countInstance()&&(window.removeEventListener("unhandledrejection",r),window.document.removeEventListener("error",i,!0))}),s.config.websocket);(("object"===I(o)?!1!==o.enabled:o)||s.config.websocketHack)&&(o={key:s.config.id+"-"+this.name,onErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)},sendErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)}},this.hackWebsocketConfig=o,o=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(e=window.WebSocket,window&&!e.isHack&&(t=new Proxy(WebSocket,ov),e.isHack=!0,window.WebSocket=t),n=o,iv.find(function(e){return e.key===n.key})||n&&iv.push(n))},publishWsErrorLog:function(e,n){var t=e.connectUrl,r=e.msg,e=e.readyState,i={event_id:Pc(),event_type:A.JS_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:this.getFromParam(n),data:{exception_stacks:[{type:"WebSocketError",value:"WEBSOCKET_ERROR: connect: "+t+" readyState: "+e+" msg: "+r,mechanism_type:"websocket",mechanism_handled:0}],exception_frames:[],replay_id:ng(n),tags:{environment:n.config.env||"production",websocket_url:t||"",websocket_ready_state:String(null!=e?e:"")}}};this.$walk(function(e){var t;e===n&&null!=(t=e.reportTDEMEvent)&&t.call(e,i)})},destroy:function(){var t,e;this.option.hackWebsocketConfig&&(t=this.option.hackWebsocketConfig,window.WebSocket=rv,-1!==(e=iv.findIndex(function(e){return e.key===t.key})))&&iv.splice(e,1)}}),sv=qt.entries,uv=(R({target:"Object",stat:!0},{entries:function(e){return sv(e)}}),'a,button,input[type="button"],input[type="submit"],input[type="reset"],input[type="image"],[role="button"],[onclick],[ng-click],[v-on\\:click]'),lv=new WeakMap;function cv(e){return e.closest(uv)||e}function dv(e,t){return null==(e=lv.get(e))?void 0:e.get(t)}new u({name:"click"});var fv=function(e){if(""!==e.id&&e.id)return'id("'+e.id+'")';if(e===document.body)return e.tagName;if(e instanceof Document)return"document";var t=0;if(e.parentNode)for(var n=e.parentNode.childNodes,r=0;r<n.length;r+=1){var i=n[r];if(i===e)return fv(e.parentNode)+"/"+e.tagName+"["+(t+1)+"]";1===i.nodeType&&i.tagName===e.tagName&&(t+=1)}return 0},hv=function(e){return e instanceof Array?new Map(e.map(function(e){return[e,!0]})):new Map},pv=function(e,t){return"string"==typeof e?e.split(t):[]},mv=function(e){if(3===e.nodeType||4===e.nodeType)return e.nodeValue||"";if(1!==e.nodeType)return"";if("string"==typeof e.textContent)return e.textContent;for(var t="",n=e.firstChild;n;n=n.nextSibling)t+=mv(n);return t},r=new u({name:"click",listeners:[],onNewTdem:function(e){this.startListen(e)},startListen:function(s){for(var e=function(a){var e,t,n,r,i;o.listeners.push((e=document,t=a,n=function(e,t){var n,r,i,o;t&&!function(e,t){e="object"===I((e=e).click)?e.click:undefined,n=hv((null==e?void 0:e.ignoreClasses)||[])||new Map;for(var n,e={ignoreIds:hv((null==e?void 0:e.ignoreIds)||[])||new Map,ignoreClasses:n},r=e.ignoreClasses,i=e.ignoreIds,o=!(0===i.size&&0===r.size),a=t,s=(pv(t.getAttribute("id")||""," "),pv(t.getAttribute("class")||"",""),0),u=!1;a&&o&&a.getAttribute;){if(u)return!0;if(10<=s)break;for(var l=pv(a.getAttribute("id")||""," "),c=pv(a.getAttribute("class")||"",""),d=0,f=l;d<f.length;d++){var h=f[d];if(i.has(h)){u=!0;break}}for(var p=0,m=c;p<m.length;p++){var g=m[p];if(r.has(g)){u=!0;break}}s+=1,a=a.parentNode||a.parentElement}return!1}(s.config,t)&&(n=fv(t),r=function(e){e=function(e){var t="",n=e.nodeType;if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(var r=e.firstChild;r;r=r.nextSibling)t+=mv(e)}else if(3===n||4===n)return e.nodeValue;return t}(e);return e?e.replace(/^\s+|\s+$/g,""):""}(t),i=t.getBoundingClientRect&&t.getBoundingClientRect(),n={event_id:Pc(),event_type:A.CLICK,event_category:Mc.BEHAVIOR,timestamp:Date.now(),page_url:s._customPageUrl||window.location.href,data:{target_element:String(n),target_text:r.slice(0,127),click_position:i?{x:parseInt(String(i.left+window.scrollX),10)||0,y:parseInt(String(i.top+window.scrollY),10)||0}:undefined,replay_id:ng(s),tags:{environment:s.config.env||"production",event_op:a,node_name:(null==t?void 0:t.nodeName)||""},event_properties:{target_id:t.id||"",target_class:"string"==typeof t.className?t.className.slice(0,128):""}}},r=e,i=s,t=n,(o=lv.get(r)||new Map).set(i,t),lv.set(r,o),s.lifeCycle.emit("clickCaptured",{event:e,source:n}),null!=(i=s.reportTDEMEvent))&&i.call(s,n)},void 0===(r=!0)&&(r=!0),i=function(e){var t=document.documentElement;t&&n.call(t,e,e.target)},e.addEventListener(t,i,r),{destroy:function(){e.removeEventListener(t,i,r)}}))},o=this,t=0,n=Object.entries({click:1,longpress:2});t<n.length;t++)e(n[t][0])},destroy:function(){var e=this.option||this;e.listeners.forEach(function(e){return e.destroy()}),e.listeners=[]}}),gv=(new u({name:"console"}),["log","error","warn","info","debug","trace"]),vv={log:console.log,error:console.error,warn:console.warn,info:console.info,debug:console.debug,trace:console.trace||console.log};var yv,wv,bv,kv,_v,Sv,Ev,Cv,Rv,Ov,xv,jr=new u({name:"console",onNewTdem:function(e){this.startListen(e)},startListen:function(e){var f,h;h="object"===I((f=e).config.console)?f.config.console:undefined,gv.forEach(function(c){var d=vv[c];console[c]=function(){for(var e,t,n,r,i,o,a,s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];try{d.apply(console,u),o=c,a=f.isWhiteList,("all"===(s=(null==(s=h)?void 0:s.level)||"error")||a||("error"===s?"error"===o:"warn"===s?"error"===o||"warn"===o:"info"===s?["error","warn","info"].includes(o):"log"===s?["error","warn","info","log"].includes(o):"error"===o))&&(r=u.map(function(e){if("object"===I(e)&&null!==e)try{return JSON.stringify(e)}catch(h){}return String(e)}).join(" "),i={event_id:Pc(),event_type:A.LOG,event_category:Mc.LOG,timestamp:Date.now(),page_url:(null==(e=f.getOriginFrom)?void 0:e.call(f))||("undefined"!=typeof window?null==(t=window.location)?void 0:t.href:""),data:{log_level:"error"===c?"error":"warn"===c?"warn":"info",replay_id:ng(f),tags:{console_method:c},event_properties:{message:("console."+c+": "+r).slice(0,2048)}}},null!=(n=f.reportTDEMEvent)&&n.call(f,i))}catch(F){vv.error("Console hook error:",F)}}})},destroy:function(){Object.keys(vv).forEach(function(e){console[e]=vv[e]})}});_v={passive:!0,capture:!0},Sv=new Date,l=function(){kv=[],wv=-1,yv=null,Ov(addEventListener)},Ev=function(e,t){yv||(yv=t,wv=e,bv=new Date,Ov(removeEventListener),Cv())},Cv=function(){var t;0<=wv&&wv<bv-Sv&&(t={entryType:"first-input",name:yv.type,target:yv.target,cancelable:yv.cancelable,startTime:yv.timeStamp,processingStart:yv.timeStamp+wv},kv.forEach(function(e){e(t)}),kv=[])},Rv=function(e){var t,n,r,i,o,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,i=function(){Ev(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,_v),removeEventListener("pointercancel",o,_v)},addEventListener("pointerup",i,_v),addEventListener("pointercancel",o,_v)):Ev(t,e))},Ov=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Rv,_v)})},xv="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",function U(e){"hidden"===document.visibilityState&&(xv=e.timeStamp,removeEventListener("visibilitychange",U,!0))},!0),l(),self.webVitals={firstInputPolyfill:function(e){kv.push(e),Cv()},resetFirstInputPolyfill:l,get firstHiddenTime(){return xv}},new u({name:"webVitals"});var Iv,Tv={FCP:-1,LCP:-1,FID:-1,CLS:-1,INP:-1,TTI:-1,from:undefined},Mv=(new u({name:"pagePerformance"}),function(e,t,n,r){return void 0===n&&(n=15e3),void 0===r&&(r=0),(t=void 0===t?0:t)<=e&&e<=n?e:r}),Av=new Map,Gr=new u({name:"pagePerformance",performanceMap:{},onNewTdem:function(t){var e,n,r,i;tg()&&(Av.set(t,{isPagePerformanceReported:!1}),Iv?this.publish(Iv,t):this.startCalcPerformance(t),e=this.publishWhenObHidden.bind(this,t),(i=function(t,n,r,i){var o=function(e){"visibilitychange"===t&&"hidden"!==document.visibilityState||(i?setTimeout(function(){return n(e)},i):n(e),r&&removeEventListener(t,o,!0))};addEventListener(t,o,!0)})("visibilitychange",e,null==(n={once:!0})?void 0:n.once,null==(r=null==n?void 0:n.delay)?void 0:r.visibilitychange),i("pagehide",e,null==n?void 0:n.once,null==(r=null==n?void 0:n.delay)?void 0:r.pagehide),i("beforeunload",e,null==n?void 0:n.once,null==(r=null==n?void 0:n.delay)?void 0:r.beforeunload),t.lifeCycle.on("destroy",function(){var e=Av.get(t);e&&(e.isPagePerformanceReported=!1)}))},publishWhenObHidden:function(e){var t,n=Av.get(e);if(null==n||!n.isPagePerformanceReported){n=0;if(null!=(t=e.firstScreenInfo)&&t.timing)n=e.firstScreenInfo.timing;else if(-1<(null==(t=null==(t=window.PerformanceObserver)?void 0:t.supportedEntryTypes)?void 0:t.indexOf("paint")))try{var r,i=performance.getEntriesByName("first-contentful-paint");i&&0<i.length&&(r=i[0])&&0<r.startTime&&(n=r.startTime)}catch(b){}(Iv=this.buildPerformanceLog(e,n,this.getPageUrl(e),window.location.href))&&this.publish(Iv,e,!0)}},buildPerformanceLog:function(e,t,n,r){var i=performance.timing;return i?(n={from:n,originFrom:r,dnsLookup:Mv(i.domainLookupEnd-i.domainLookupStart),tcp:Mv(i.connectEnd-i.connectStart),ssl:Mv(0===i.secureConnectionStart?0:i.requestStart-i.secureConnectionStart),ttfb:Mv(i.responseStart-i.requestStart),contentDownload:Mv(i.responseEnd-i.responseStart),domParse:Mv(i.domInteractive-i.domLoading,0,15e3,1070),resourceDownload:Mv(i.loadEventStart-i.domInteractive,0,15e3,1070),firstScreenTiming:Mv(Math.floor(t),0,15e3,15e3)},(r=e.config).extraPerformanceData&&"{}"!==JSON.stringify(r.extraPerformanceData)&&(t=(i=r.extraPerformanceData).engineInit,e=i.bundleLoad,n=M(M({},n),{engineInit:Mv(t,0,1e4),bundleLoad:Mv(e,0,1e4)})),n):undefined},publish:function(r,i){this.$walk(function(e){var t,n;e===i&&(t=(n=performance.timing).navigationStart,n={event_id:Pc(),event_type:A.PAGE_LOAD,event_category:Mc.PERFORMANCE,timestamp:Date.now(),page_url:r.originFrom||window.location.href,data:{measurements:{lcp:Tv.lcp,fcp:Tv.fcp,fid:Tv.fid,cls:Tv.cls,ttfb:Tv.ttfb||r.ttfb,dns_time:r.dnsLookup,tcp_time:r.tcp,ssl_time:r.ssl,request_time:r.ttfb,response_time:r.contentDownload,dom_parse_time:r.domParse,dom_ready:n.domContentLoadedEventEnd-t,load_complete:n.loadEventEnd-t,first_screen_time:r.firstScreenTiming},replay_id:ng(e),tags:{environment:e.config.env||"production",version:String(e.config.version||"")}}},null!=(t=e.reportTDEMEvent)&&t.call(e,n),n=Av.get(e))&&(n.isPagePerformanceReported=!0)})},getPageUrl:function(e){var t=this.$getConfig(e);if(null!=t&&t.urlHandler&&"function"==typeof(null==t?void 0:t.urlHandler)){t=null==t?void 0:t.urlHandler();if(t)return encodeURIComponent(t)}return e.getCurrentPageUrl()},startCalcPerformance:function(t){var n=this;try{var r=this.getPageUrl(t),i=t.getOriginFrom();this.getFirstScreenTiming(t,function(e){Iv=n.buildPerformanceLog(t,e,r,i);e=Av.get(t);!Iv||null!=e&&e.isPagePerformanceReported||n.publish(Iv,t)})}catch(De){}},getFirstScreenTiming:function(e,t){null!=t&&t(0)},setFirstScreenInfo:function(e,t,n,r){var i;e.config.id&&this.performanceMap[e.config.id]||(e.config.id&&(this.performanceMap[e.config.id]=!0),("object"!==I(null==(i=e.config)?void 0:i.pagePerformance)||null!=(i=e.config.pagePerformance)&&i.firstScreenInfo)&&(e.firstScreenInfo={element:n,timing:t,markDoms:r}))},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(-1!==t.indexOf(e)||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){var t;return!(!e||"function"!=typeof e.getBoundingClientRect)&&(e=e.getBoundingClientRect(),t=window.innerHeight,0<=e.left)&&e.left<window.innerWidth&&0<=e.top&&e.top<t&&0<e.width&&0<e.height},walkAndCount:function(e){var t=0;if(e&&1===e.nodeType){t+=1;var n=e.children;if(null!=n&&n.length)for(var r=0;r<n.length;r++)1===n[r].nodeType&&(n[r].hasAttribute("TDEM-IGNORE-FIRST-SCREEN-TIMING")||n[r].hasAttribute("AEGIS-IGNORE-FIRST-SCREEN-TIMING"))||(t+=this.walkAndCount(n[r]))}return t},hasAncestorOrSelfWithAttribute:function(e,t){for(var n=t.replace(/^TDEM-/,"AEGIS-"),r=e;r&&r!==document.body;){if(r.hasAttribute(t)||n!==t&&r.hasAttribute(n))return!0;r=r.parentElement}return!1}}),Pv=Math.min,Dv=[].lastIndexOf,Lv=!!Dv&&1/[1].lastIndexOf(1,-0)<0,qt=He("lastIndexOf"),Nv=Lv||!qt?function(e){if(Lv)return je(Dv,this,arguments)||0;var t=Ge(this),n=me(t);if(0!==n){var r=n-1;for((r=1<arguments.length?Pv(r,fe(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0}return-1}:Dv,Fv=(R({target:"Array",proto:!0,forced:Nv!==[].lastIndexOf},{lastIndexOf:Nv}),new u({name:"spa"}),["replaceState","pushState","popstate","hashchange"]),l=new u({name:"spa",visitStates:new WeakMap,navigationStack:[],navigationIndex:-1,onNewTdem:function(n){var r=this,e=(history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState,this.sendPv=this.sendPv.bind(this),location.href);this.navigationStack.length||(this.navigationStack=[e],this.navigationIndex=0),n.config.spa&&this.sendPv(n,"reload"),Fv.forEach(function(e){var t=e;window.addEventListener(e,function(){return r.sendPv.call(r,n,t)})})},wr:function(n){var r=history[n],e="__"+n+"__hasWrittenByTamSpa";return"function"==typeof r&&!history[e]&&(Object.defineProperty(history,e,{value:!0,enumerable:!1}),function(){var e=r.apply(this,arguments),t=null;return"function"==typeof Event?t=new Event(n):(t=document.createEvent("HTMLEvents")).initEvent(n,!1,!0),window.dispatchEvent(t),e})},resolveNavigationType:function(e,t){var n;return"pushState"===e?(this.navigationIndex<this.navigationStack.length-1&&(this.navigationStack=this.navigationStack.slice(0,this.navigationIndex+1)),this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"push"):"replaceState"===e?(this.navigationIndex<0?(this.navigationStack=[t],this.navigationIndex=0):this.navigationStack[this.navigationIndex]=t,"replace"):"hashchange"===e?"hashchange":"popstate"===e?0<=(e=this.navigationStack.lastIndexOf(t))?(n=e<this.navigationIndex?"back":"forward",this.navigationIndex=e,n):(this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"forward"):"reload"},sendPv:function(a,e){var s=this,u=(void 0===e&&(e="reload"),a._customPageUrl),l=(a._customPageUrl=null,location.pathname+location.hash+a.config.id),c=a.getOriginFrom(),d=this.visitStates.get(a),f=this.resolveNavigationType(e,location.href);l&&(l!==(null==d?void 0:d.firedUrl)||u)&&this.$walk(function(n){var r,i,e,t,o;n===a&&("function"==typeof n.beginPageVisit?n.beginPageVisit(c,!!u):d&&(t=n,o=Zc(),t.viewId=o,"function"==typeof t.extendBean)&&t.extendBean("viewId",o),r="string"==typeof(e=n.viewId||(null==(e=n.bean)?void 0:e.viewId)||"")?e:"",i=Date.now(),s.visitStates.set(a,{firedUrl:l,pageUrl:c}),setTimeout(function(){var e,t=M(M({event_id:Pc(),event_type:A.PAGE_VIEW,event_category:Mc.BEHAVIOR,timestamp:i,page_url:c},r?{view_id:r}:{}),{data:{page_title:document.title||"",referrer:document.referrer||undefined,is_effective_action:!0,replay_id:ng(n),tags:{environment:n.config.env||"production",version:String(n.config.version||""),is_spa:"true"},event_properties:{navigation_type:f,from_page:(u||(null==d?void 0:d.pageUrl)||"").slice(0,512),to_page:(c||"").slice(0,512)}}});null!=(e=n.reportTDEMEvent)&&e.call(n,t)},0))})},destroy:function(){this.option.sendPv=function(){}}}),Uv="__MONITOR_SESSION_V1__";function jv(e,t){"undefined"!=typeof document&&(e=[e+"="+encodeURIComponent(t),"path=/","SameSite=Lax"],"undefined"!=typeof location&&"https:"===location.protocol&&e.push("Secure"),document.cookie=e.join("; "))}function Bv(e,t,n){void 0===n&&(n=1);var r=Date.now();return{sessionId:e,createdAt:r,lastActivity:r,source:t,version:n}}function zv(e,t){var n,r,i;return"undefined"==typeof window?Bv(t(),e):(r="undefined"!=typeof document&&(r="_tdem_s".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)")))?decodeURIComponent(r[1]):null,n=window[Uv],r?(null==n?void 0:n.sessionId)===r?(n.lastActivity=Date.now(),n):(i=Bv(r,(null==n?void 0:n.source)||e,(null==n?void 0:n.version)||1),window[Uv]=i):null!=n&&n.sessionId?(n.lastActivity=Date.now(),jv("_tdem_s",n.sessionId),n):(i=Bv(t(),e),jv("_tdem_s",(window[Uv]=i).sessionId),i))}var Wv="__TDEM_ENTRY_REGISTRY__",Hv=function(){var e="undefined"==typeof globalThis?{}:globalThis;return e[Wv]||(e[Wv]=Object.create(null))},qv=function(e){return e===undefined||null===e?"":String(e)},Vv=(Gv.prototype.request=function(o,a){var s=this;return void 0===a&&(a={}),o.sendBeacon||o.handoff?Promise.resolve(this.handoff(o,a)):new Promise(function(n){var e,r,t,i=new XMLHttpRequest;i.sendByTdem=!0,i.addEventListener("readystatechange",function(){var e,t;4===i.readyState&&((e={ok:0<i.status&&i.status<400,status:i.status,statusText:i.statusText,body:i.response,request:o}).ok?(null!=(t=a.success)&&t.call(a,i.response),null!=(t=a["final"])&&t.call(a,e),n(e)):(t=M(M({},e),{error:i.response}),null!=(e=a.fail)&&e.call(a,i.response),null!=(e=a["final"])&&e.call(a,t),n(t)))}),"get"===(o.method||"GET").toLowerCase()?(i.open("get",(e=o.url,r=o.data,"string"!=typeof e?"":"object"===I(r)&&r?(t=Object.getOwnPropertyNames(r).map(function(e){var t=r[e];return e+"="+("string"==typeof t?encodeURIComponent(t):encodeURIComponent(JSON.stringify(t)))}).join("&"),e+(-1===e.indexOf("?")?"?":"&")+uc(t)):e)),s.applyHeaders(i,o.headers),i.send()):(i.open("post",o.url),s.applyHeaders(i,o.headers),o.contentType&&i.setRequestHeader("Content-Type",o.contentType),t=o.body!==undefined?o.body:o.data,s.shouldSanitizeEvalKeyword(o,t)&&(t=uc(t)),i.send(t))})},Gv.prototype.shouldSanitizeEvalKeyword=function(e,t){return"string"==typeof t&&!("replay"===e.kind||(e=null!=(t=null==(t=e.headers)?void 0:t["Content-Encoding"])?t:null==(t=e.headers)?void 0:t["content-encoding"])&&/gzip/i.test(e))},Gv.prototype.handoff=function(e,t){void 0===t&&(t={});var n,r="undefined"!=typeof navigator?navigator:undefined;return r&&"function"==typeof r.sendBeacon?(n=e.body!==undefined?e.body:e.data,r={ok:n=r.sendBeacon(e.url,n),request:e,handoffAccepted:n,error:n?undefined:new Error("navigator.sendBeacon rejected the payload")},n?null!=(n=t.success)&&n.call(t,{accepted:!0}):null!=(n=t.fail)&&n.call(t,r.error),null!=(n=t["final"])&&n.call(t,r),r):(n={ok:!1,request:e,error:new Error("navigator.sendBeacon is unavailable")},null!=(r=t.fail)&&r.call(t,n.error),null!=(e=t["final"])&&e.call(t,n),n)},Gv.prototype.applyHeaders=function(t,n){n&&Object.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})},Gv);function Gv(){}function Jv(e){try{var t="undefined"!=typeof window?window.location.href:"https://tdem.invalid/",n=new URL(e,t);return n.origin+n.pathname+n.hash}catch(D){return e.split("?")[0]}}var Kv,$v=new Map,Zv=(_l(Xv,Kv=Up),Xv.prototype.beginPageVisit=function(e,t){void 0===t&&(t=!1);var n=Jv(e);return!t&&n===this.viewPageIdentity||(this.viewId=Zc(),this.extendBean("viewId",this.viewId),this.lifeCycle.emit("pageVisitChanged",{pageUrl:e,viewId:this.viewId})),this.viewPageIdentity=n,this.viewId},Xv.prototype.reportPageView=function(e,t){void 0===t&&(t={}),this.beginPageVisit(e||t.pageUrl||this.getOriginFrom(),!!t.navigationType),Kv.prototype.reportPageView.call(this,e,t)},Xv.prototype.leavePage=function(){this._customPageUrl&&(this.beginPageVisit("undefined"!=typeof window?window.location.href:"",!0),Kv.prototype.leavePage.call(this))},Xv.prototype._bootstrapInit=function(e){this.setConfig(e),this.config=Ol(this.config,e.hostUrl),this._prefetchConfigAndInit(e)},Xv.prototype._initImmediately=function(e){this.init(e),this._afterInit(e)},Xv.prototype._prefetchConfigAndInit=function(o){return Sl(this,void 0,void 0,function(){var t,n,r,i;return El(this,function(e){switch(e.label){case 0:if(t=this.config.id,n=this._buildPrefetchConfigUrl(),r=null,!t||!n)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.transportRequest({kind:"config",url:n,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:t})})];case 2:return(i=e.sent()).ok&&0===(i="string"==typeof i.body?JSON.parse(i.body):i.body).code&&i.data&&(r=i.data),[3,4];case 3:return e.sent(),(i=this._loadPrefetchDataFromCache(t))&&(r=i),[3,4];case 4:r&&(this._prefetchedConfigData=r);try{this._initAfterPreparedConfig(o)}catch(N){console.warn(N),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),this.sendSDKError(N)}return[2]}})})},Xv.prototype._buildPrefetchConfigUrl=function(){var e=(this.config.url||"").replace(/\/+$/,"");return e?e+"/api/v1/sample-config":""},Xv.prototype._loadPrefetchDataFromCache=function(e){var t;try{var n,r=localStorage.getItem("TDEM_SAMPLE_CONFIG");return r?!((n=JSON.parse(r)).projectKey!==e||6048e5<=Date.now()-n.timestamp)&&null!=(t=n.document)&&t.event?n.document:null:null}catch(De){return null}},Xv.prototype._initAfterPreparedConfig=function(e){for(var t=0;t<Up.installedPlugins.length;t++)try{Up.installedPlugins[t].patch(this)}catch(C){this.sendSDKError(C)}this.lifeCycle.emit("onInited"),this._afterInit(e)},Xv.prototype._afterInit=function(e){var t,o,n=this,r=(this._sdkInitialized=!0,this.config.id),i=Xv.entryName;(r=(r=qv(r))?Hv()[r]:null)&&r.owner===i&&(r.state=1),this.extendBean("sessionId",Xv.sessionID),this.extendBean("from",this.getCurrentPageUrl()),"undefined"!=typeof document&&this.extendBean("referer",encodeURIComponent(document.referrer||"")),t=Wl(Bl("tdem-web-retry-report-requests"),[]),(o=function(){var i;t.length&&(i=t.splice(0,1)[0],zl("tdem-web-retry-report-requests",JSON.stringify(t)),n.$request(i,function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=$v.get(null==(e=i.extraRetryOptions)?void 0:e.success))?void 0:t.apply(i,n)}finally{o()}},function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=$v.get(null==(e=i.extraRetryOptions)?void 0:e.fail))?void 0:t.apply(i,n)}finally{o()}}))})()},Xv.prototype.getBean=function(t){var n=this;return void 0===t&&(t=[]),""+Object.getOwnPropertyNames(this.bean).filter(function(e){return-1===t.indexOf(e)}).map(function(e){return"from"===e?"from="+n.getCurrentPageUrl():e+"="+n.bean[e]}).join("&")},Xv.prototype.getCurrentPageUrl=function(){var e;return this._customPageUrl?encodeURIComponent(this._customPageUrl.slice(0,2048)):(e=this.config.pageUrl||location.href,e=(e="function"==typeof this.config.urlHandler?this.config.urlHandler()||location.href:e).slice(0,2048),encodeURIComponent(e))},Xv.prototype.getOriginFrom=function(){if(this._customPageUrl)return this._customPageUrl.slice(0,2048);try{return("undefined"!=typeof window&&window.location?window.location.href:"").slice(0,2048)}catch(Pe){return""}},Xv.prototype.ready=function(){var t=this,o=function(){var e,n,r,i;t.reportRequestQueue.length&&(e=t.reportRequestQueue.splice(0,1)[0],n=e.options,r=e.success,i=e.fail,t.$request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==r?void 0:r.apply(n,e)}finally{o()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==i?void 0:i.apply(n,e)}finally{o()}}))};o(),this.isReportReady=!0},Xv.prototype.request=function(u,n,l){var c,d,f=this;this.config.reportImmediately||this.isReportReady?this.$request(u,c=function(e){var t=Wl(Bl("tdem-web-retry-report-requests"),[]);null!=t&&t.length&&u.extraRetryOptions&&(t.splice(t.findIndex(function(e){return e.extraRetryOptions.requestId===u.extraRetryOptions.requestId}),1),zl("tdem-web-retry-report-requests",JSON.stringify(t)),$v["delete"](u.extraRetryOptions.success),$v["delete"](u.extraRetryOptions.fail)),null!=n&&n(e)},d=function(e){if(!f.config.reportRetry)return null==l?void 0:l(e);var t,n="boolean"==typeof f.config.reportRetry?Dg:M(M({},Dg),f.config.reportRetry),r=n.maxRetryCount,i=void 0===r?Dg.maxRetryCount:r,r=n.retryInterval,r=void 0===r?Dg.retryInterval:r,n=n.whenRetryEndStillFail,o=void 0===n?Dg.whenRetryEndStillFail:n,a=(u.extraRetryOptions||(u.extraRetryOptions={requestId:"",retriedCount:0,success:"",fail:""}),u.extraRetryOptions),s=(a.requestId=a.requestId||u.url+"-"+Date.now()+"-"+Math.random(),a.requestId),n=(a.retriedCount=a.retriedCount||0,a.success=a.success||s+"_successCallback",a.fail=a.fail||s+"_failCallback",Wl(Bl("tdem-web-retry-report-requests"),[]));n.find(function(e){return e.extraRetryOptions.requestId===s})?(t=n.findIndex(function(e){return e.extraRetryOptions.requestId===s}),n[t]=u):n.push(u),zl("tdem-web-retry-report-requests",JSON.stringify(n)),setTimeout(function(){var e;a.retriedCount<i?(u.extraRetryOptions.retriedCount+=1,f.$request(u,c,d)):("discard"===o&&((e=Wl(Bl("tdem-web-retry-report-requests"),[]).filter(function(e){return(null==(e=e.extraRetryOptions)?void 0:e.requestId)!==s})).length?zl("tdem-web-retry-report-requests",JSON.stringify(e)):function(e){try{localStorage.removeItem(e)}catch(bw){}}("tdem-web-retry-report-requests")),$v["delete"](a.success),$v["delete"](a.fail))},"function"==typeof r?r(u.extraRetryOptions.retriedCount):r),null!=l&&l(e),$v.has(a.success)||$v.set(a.success,c),$v.has(a.fail)||$v.set(a.fail,d)}):this.reportRequestQueue.push({options:u,success:n,fail:l})},Xv.prototype.$request=function(s,e,t){var n,r;if(s&&"string"==typeof s.url&&""!==s.url&&this.bean.id)return n=s.url,!1!==s.addBean&&(n=function(e,t){var n,r,i,o=e,a=s.beanFilter||[];for(n in t)-1===a.indexOf(n)&&((i=(r=new RegExp("([?&])"+n+"(=([^&]*))?(?=&|$)")).exec(o))?i[2]&&""!==i[3]&&"undefined"!==i[3]||(o=o.replace(r,"$1"+n+"="+t[n])):(i=-1<o.indexOf("?")?"&":"?",o+=i+n+"="+t[n]));return o}(n,M(M({},this.bean),{from:this.getCurrentPageUrl()}))),s.url=n,n=s.method||"get",r=this.config.onBeforeRequest,(s=r?r(s,this):s)?s.url?(r={success:e,fail:t},void((e={kind:s.type===lc.WHITE_LIST?"config":"events",url:s.url,method:n.toUpperCase(),contentType:s.contentType,data:s.data,body:s.data,sendBeacon:!!(null!=s&&s.sendBeacon||this.sendNow),source:s}).sendBeacon?this.transportHandoff(e,r):this.transportRequest(e,r))):console.warn("Please handle the parameters reasonably, options.url is necessary"):console.warn("Sending request blocked")},Xv.prototype.publishPluginsLogs=function(){var e=Xv.installedPlugins.find(function(e){return"assets"===e.name});null!=e&&e.option.collectNotReportedLog(this)},Xv.prototype.uploadLogs=function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={}),null!=(n=this.lifeCycle)&&n.emit("uploadLogs",e,t)},Xv.prototype.reportWebVitals=function(e){try{var t=Xv.installedPlugins.find(function(e){return"webVitals"===e.name});t&&this.config.webVitals&&this.config.webVitals.manualReport&&t.option.publish(this,e)}catch(Pe){}},Xv.prototype.destroy=function(e){var t,n,r;void 0===e&&(e=!1),n=this.config.id,t=Xv.entryName,(r=(n=qv(n))?Hv():null)&&r[n]&&r[n].owner===t&&delete r[n],Kv.prototype.destroy.call(this,e)},Xv.entryName="tdem-web-sdk",Xv.sessionID=zv("tdem",Zc).sessionId,Xv),He=(new u({name:"ie"}),new u({name:"ie",init:function(){this.overrideTdemSend()},onNewTdem:function(e){this.startListen(e)},startListen:function(o){var a=this,s=window.onerror;window.onerror=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,i=bc(t[0]);eg(i)||(r={event_id:Pc(),event_type:A.JS_ERROR,event_category:Mc.ERROR,timestamp:Date.now(),page_url:("undefined"!=typeof window?null==(e=window.location)?void 0:e.href:"")||"",data:{exception_stacks:[{type:"Error",value:String(i||""),mechanism_type:"onerror",mechanism_handled:0}],exception_frames:[{abs_path:String(t[1]||""),colno:Number(t[3])||0,filename:String(t[1]||"").split("/").pop()||"","function":"(anonymous)",lineno:Number(t[2])||0,in_app:1,stack_level:0}]}},a.$walk(function(e){var t;e===o&&null!=(t=e.reportTDEMEvent)&&t.call(e,r)})),null!=s&&s.call.apply(s,Cl([window],t))}},overrideTdemSend:function(){Zv.prototype.request=function(e,t,n){var r,i,o=this;e&&"string"==typeof e.url&&""!==e.url&&this.bean.id&&(r=e.url,!1!==e.addBean&&(r=r+(-1===r.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),(i=new Image).onload=function(){o.request(e,t,n),null!=t&&t(null)},i.onerror=function(){o.request(e,t,n),null!=n&&n(null)},e.data?i.src=r+"&"+e.data:i.src=r)}},destroy:function(){}})),qt=(new u({name:"onClose"}),new u({name:"onClose",onNewTdem:function(e){var t=this,n=function(){return t.publishNotReportedLog(e)},r=function(){"undefined"!=typeof document&&"hidden"!==document.visibilityState||n()};document.addEventListener("visibilitychange",r,!0),window.addEventListener("pagehide",n,!0),e.lifeCycle.on("destroy",function(){document.removeEventListener("visibilitychange",r,!0),window.removeEventListener("pagehide",n,!0)})},publishNotReportedLog:function(n){var r=this;this.$walk(function(e){if(e===n){var t=e.sendNow;try{e.sendNow=!0,e.lifeCycle.emit("beforeCloseFlush"),e.publishPluginsLogs(),r.publishThrottlePipeLogs(e)}finally{e.sendNow=t}}})},publishThrottlePipeLogs:function(e){null!=e&&e.speedLogPipeline([]),null!=e&&e.tdemEventPipeline([])}})),Yv=void 0;function Xv(e,t){var n,r,i,a,o,s,u,l,c,d,f,h,p=Kv.call(this,e,t=void 0===t?{}:t)||this,m=(p._entrySkipped=!1,p.sendNow=!1,p.isReportReady=!1,p.reportRequestQueue=[],p._sdkInitialized=!1,p.viewId="",p.viewPageIdentity="",p.speedLogPipeline=Ap([(l=[],c=(o=p).config,o.lifeCycle.on("destroy",function(){l.length=0}),function(e,t){Array.isArray(e)?l=l.concat(e):l.push(e),s&&l.length>=s||o.sendNow&&0<l.length?(l=jc(l),0<(l=Array.isArray(l)?l:[]).length&&t(l.splice(0,l.length)),u&&clearTimeout(u)):(u&&clearTimeout(u),u=setTimeout(function(){u=null,l=jc(l),0<(l=Array.isArray(l)?l:[]).length&&t(l.splice(0,l.length))},c.delay))}),(a=p.config,function(e,t){var n,r,i,o="number"==typeof a.repeat?a.repeat:60;!a.speedSample||o<=0?t(e):(n=(null==a?void 0:a.id)||"0",r=zc[n]||{},Array.isArray(e)?(i=e.filter(function(e){var t=!r[e.url]||r[e.url]<o;return t?(r[e.url]=1+~~r[e.url],zc[n]=r):Bc[n]||Wc(n),t})).length&&t(i):!r[e.url]||r[e.url]<o?(r[e.url]=1+~~r[e.url],zc[n]=r,t(e)):Bc[n]||Wc(n))}),(i=p,function(t,n){nv(function(e){i.extendBean("netType",e),n(t)})}),function(e,t){null!=(n=p.lifeCycle)&&n.emit("beforeReportSpeed",e);var n,r=p.config.beforeReportSpeed;if((e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length)return t(e)},function(e,t){t(e.map(function(e){return"undefined"!=typeof e.payload&&delete e.payload,e}))},function(e){return p.sendPipeline([function(e,t){t({type:lc.SPEED,url:""+p.config.speedUrl,method:"post",data:Rc(e,M(M({},p.bean),{from:p.getCurrentPageUrl()})),log:e})}],lc.SPEED)(e)}]),t=e&&e.id,d=Xv.entryName,(t=qv(t))?(m=(f=Hv())[t])&&m.owner!==d?{status:"skipped_duplicate",owner:m.owner}:(m||(f[t]={owner:d,state:0}),{status:"owned",owner:d}):{status:"owned",owner:d});if("skipped_duplicate"===m.status)p._entrySkipped=!0,-1!==(t=Up.instances.indexOf(p))&&Up.instances.splice(t,1),console.warn("[TDEM] skip "+Xv.entryName+": "+(e&&e.id)+" owned by "+m.owner);else{p.viewId=Zc(),p.extendBean("viewId",p.viewId),p.viewPageIdentity=Jv(p.getOriginFrom()),p.getInternalTransport()||p.setInternalTransport(new Vv),e.asyncPlugin=!0;try{"undefined"!=typeof document&&(h=String(e.userId||e.uin||(null!=(n=document.cookie.match(/\buin=\D+(\d*)/))?n:[])[1]||(null!=(r=document.cookie.match(/\bilive_uin=\D*(\d+)/))?r:[])[1]||""),e.userId=h,e.uin=e.uin||h),p._bootstrapInit(e)}catch(F){console.warn(F),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),p.sendSDKError(F)}}return p}R({target:"Math",stat:!0},{log1p:Yv});Math.log;var d=Math.acosh,Qv=Math.log,ey=Math.sqrt,ty=Math.LN2,d=!d||710!==Math.floor(d(Number.MAX_VALUE))||d(Infinity)!==Infinity,d=(R({target:"Math",stat:!0,forced:d},{acosh:function(e){e=+e;return e<1?NaN:94906265.62425156<e?Qv(e)+ty:Yv(e-1+ey(e-1)*ey(1+e))}}),Math.asinh),ny=Math.abs,ry=Math.log,iy=Math.sqrt,oy=Math.LN2,d=!(d&&0<1/d(0)&&ny(d(1e-8)-1e-8)<1e-16),ny=(R({target:"Math",stat:!0,forced:d},{asinh:function Rx(e){e=+e;return isFinite(e)&&0!=e?e<0?-Rx(-e):94906265.62425156<e?ry(e)+oy:e<1e-8?e:Yv(e+e*e/(1+iy(e*e+1))):e}}),Math.atanh),d=!(ny&&1/ny(-0)<0),ay=(R({target:"Math",stat:!0,forced:d},{atanh:function(e){e=+e;return 0==e?e:Yv(2*e/(1-e))/2}}),void 0),ny=(R({target:"Math",stat:!0,forced:ay!==Math.expm1},{expm1:ay}),Math.expm1),d=(!ny||22025.465794806718<ny(10)||ny(10)<22025.465794806718||ny(-2e-17),Math.cosh),sy=Math.abs,uy=Math.E,ny=!d||d(710)===Infinity,ly=(R({target:"Math",stat:!0,forced:ny},{cosh:function(e){e=ay(sy(e)-1)+1;return(e+1/(e*uy*uy))*(uy/2)}}),Math.abs),cy=Math.exp,dy=Math.E,d=g(function(){return-2e-17!==Math.sinh(-2e-17)}),fy=(R({target:"Math",stat:!0,forced:d},{sinh:function(e){e=+e;return ly(e)<1?(ay(e)-ay(-e))/2:(cy(e-1)-cy(-e-1))*(dy/2)}}),Math.exp);R({target:"Math",stat:!0},{tanh:function(e){var e=+e,t=ay(e),n=ay(-e);return t===Infinity?1:n===Infinity?-1:(t-n)/(fy(e)+fy(-e))}});var hy,py,my,gy=zt.enforce,vy=zt.get,ny=O.Int8Array,yy=ny&&ny.prototype,d=O.Uint8ClampedArray,d=d&&d.prototype,wy=ny&&hr(ny),by=yy&&hr(yy),ny=Object.prototype,ky=O.TypeError,_y=tt("toStringTag"),Sy=Ft("TYPED_ARRAY_TAG"),Ey=n,n=!1,Cy={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ry={BigInt64Array:8,BigUint64Array:8},Oy=function(e){var t,e=hr(e);if(W(e))return(t=vy(e))&&T(t,"TypedArrayConstructor")?t.TypedArrayConstructor:Oy(e)},xy=function(e){return!!W(e)&&(e=ot(e),T(Cy,e)||T(Ry,e))};for(hy in Cy)(my=(py=O[hy])&&py.prototype)?gy(my).TypedArrayConstructor=py:Ey=!1;for(hy in Ry)(my=(py=O[hy])&&py.prototype)&&(gy(my).TypedArrayConstructor=py);if((!Ey||!oe(wy)||wy===Function.prototype)&&(wy=function(){throw new ky("Incorrect invocation")},Ey))for(hy in Cy)O[hy]&&xr(O[hy],wy);if((!Ey||!by||by===ny)&&(by=wy.prototype,Ey))for(hy in Cy)O[hy]&&xr(O[hy].prototype,by);if(Ey&&hr(d)!==by&&xr(d,by),f&&!T(by,_y))for(hy in Ht(by,_y,{configurable:n=!0,get:function(){return W(this)?this[Sy]:undefined}}),Cy)O[hy]&&ct(O[hy].prototype,Sy,hy);var P={NATIVE_ARRAY_BUFFER_VIEWS:Ey,TYPED_ARRAY_TAG:n&&Sy,aTypedArray:function(e){if(xy(e))return e;throw new ky("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!oe(e)||xr&&!Oe(wy,e))throw new ky(Ie(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n,r){if(f){if(n)for(var i in Cy){i=O[i];if(i&&T(i.prototype,e))try{delete i.prototype[e]}catch(X){try{i.prototype[e]=t}catch(b){}}}by[e]&&!n||Kt(by,e,!n&&Ey&&yy[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(f){if(xr){if(n)for(r in Cy)if((i=O[r])&&T(i,e))try{delete i[e]}catch(X){}if(wy[e]&&!n)return;try{return Kt(wy,e,!n&&Ey&&wy[e]||t)}catch(X){}}for(r in Cy)!(i=O[r])||i[e]&&!n||Kt(i,e,t)}},getTypedArrayConstructor:Oy,isView:function(e){return!!W(e)&&("DataView"===(e=ot(e))||T(Cy,e)||T(Ry,e))},isTypedArray:xy,TypedArray:wy,TypedArrayPrototype:by},Iy=O.ArrayBuffer,Ty=O.Int8Array,My=!P.NATIVE_ARRAY_BUFFER_VIEWS||!g(function(){Ty(1)})||!g(function(){new Ty(-1)})||!Pu(function(e){new Ty,new Ty(null),new Ty(1.5),new Ty(e)},!0)||g(function(){return 1!==new Ty(new Iy(2),1,undefined).length}),Ay=(R({target:"Number",stat:!0},{isInteger:void 0}),Math.floor,Number.isInteger,RangeError),Py=RangeError,Dy=function(t,e){var n=function(){var e=fe(t);if(e<0)throw new Ay("The argument can't be less than 0");return e}();if(n%e)throw new Py("Wrong offset");return n},Ly=Math.floor,Ny=TypeError,Fy=function(e){e=Co(e,"number");if("number"==typeof e)throw new Ny("Can't convert number to bigint");return BigInt(e)},Uy=P.aTypedArrayConstructor,jy=function(e){var t=pu(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&Ue(r);var o,a,s,u,l,c,d,f,h=ce(e),e=ti(h);if(e&&!Xr(e))for(f=(d=ri(h,e)).next,h=[];!(c=x(f,d)).done;)h.push(c.value);for(i&&2<n&&(r=$r(r,arguments[2])),a=me(h),u=function(e){e=ot(e);return"BigInt64Array"===e||"BigUint64Array"===e}(s=new(Uy(t))(a)),o=0;o<a;o++)l=i?r(h[o],o):h[o],s[o]=u?Fy(l):+l;return s},By=function(e,t,n){for(var r=0,i=2<arguments.length?n:me(t),o=new e(i);r<i;)o[r]=t[r++];return o},ny=Ke(function(e){var r=er.f,u=vi.forEach,h=zt.get,p=zt.set,m=zt.enforce,g=lt.f,n=ur.f,v=O.RangeError,y=$o.ArrayBuffer,t=y.prototype,w=$o.DataView,b=P.NATIVE_ARRAY_BUFFER_VIEWS,k=P.TYPED_ARRAY_TAG,_=P.TypedArray,S=P.TypedArrayPrototype,E=P.isTypedArray,i=function(e,t){Ht(e,t,{configurable:!0,get:function(){return h(this)[t]}})},C=function(e){return Oe(t,e)||"ArrayBuffer"===(e=ot(e))||"SharedArrayBuffer"===e},o=function(e,t){return E(e)&&!Yi(t)&&t in e&&(void 0)(+t)&&0<=t},a=function(e,t){return t=Ci(t),o(e,t)?ut(2,e[t]):n(e,t)},s=function(e,t,n){return t=Ci(t),!(o(e,t)&&W(n)&&T(n,"value"))||T(n,"get")||T(n,"set")||n.configurable||T(n,"writable")&&!n.writable||T(n,"enumerable")&&!n.enumerable?g(e,t,n):(e[t]=n.value,e)};f?(b||(ur.f=a,lt.f=s,i(S,"buffer"),i(S,"byteOffset"),i(S,"byteLength"),i(S,"length")),R({target:"Object",stat:!0,forced:!b},{getOwnPropertyDescriptor:a,defineProperty:s}),e.exports=function(e,t,i){var l=e.match(/\d+/)[0]/8,n=e+(i?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=O[n],c=s,d=c&&c.prototype,e={},f=function(e,r){g(e,r,{get:function(){var e=this,t=r;return(e=h(e)).view[o](t*l+e.byteOffset,!0)},set:function(e){var t,n;t=r,e=e,(n=h(n=this)).view[a](t*l+n.byteOffset,i?(t=+e)!=t||t<=0?0:255<=t?255:!((n=Ly(t))+.5<t)&&(t<n+.5||n%2==0)?n:n+1:e,!0)},enumerable:!0})},t=(b?My&&(c=t(function(e,t,n,r){return fr(e,d),da(W(t)?C(t)?r!==undefined?new s(t,Dy(n,l),r):n!==undefined?new s(t,Dy(n,l)):new s(t):E(t)?By(c,t):x(jy,c,t):new s(ra(t)),e,c)}),xr&&xr(c,_),u(r(s),function(e){e in c||ct(c,e,s[e])}),c.prototype=d):(c=t(function(e,t,n,r){fr(e,d);var i,o,a=0,s=0;if(W(t)){if(!C(t))return E(t)?By(c,t):x(jy,c,t);var u=t,s=Dy(n,l),n=t.byteLength;if(r===undefined){if(n%l)throw new v("Wrong length");if((i=n-s)<0)throw new v("Wrong length")}else if((i=ra(r)*l)+s>n)throw new v("Wrong length");o=i/l}else o=ra(t),u=new y(i=o*l);for(p(e,{buffer:u,byteOffset:s,byteLength:i,length:o,view:new w(u)});a<o;)f(e,a++)}),xr&&xr(c,_),d=c.prototype=xt(S)),d.constructor!==c&&ct(d,"constructor",c),m(d).TypedArrayConstructor=c,k&&ct(d,k,n),c!==s);e[n]=c,R({global:!0,constructor:!0,forced:t,sham:!b},e),"BYTES_PER_ELEMENT"in c||ct(c,"BYTES_PER_ELEMENT",l),"BYTES_PER_ELEMENT"in d||ct(d,"BYTES_PER_ELEMENT",l),Aa(n)}):e.exports=function(){}}),zy=(ny("Float32",function(r){return function(e,t,n){return r(this,e,t,n)}}),ny("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}}),R({target:"Array",proto:!0},{copyWithin:void 0}),ir("copyWithin"),Math.min,v(void 0)),Wy=P.aTypedArray,Hy=((0,P.exportTypedArrayMethod)("copyWithin",function(e,t){return zy(Wy(this),e,t,2<arguments.length?arguments[2]:undefined)}),vi.every),qy=P.aTypedArray,Vy=((0,P.exportTypedArrayMethod)("every",function(e){return Hy(qy(this),e,1<arguments.length?arguments[1]:undefined)}),ny("Int8",function(r){return function(e,t,n){return r(this,e,t,n)}}),P.getTypedArrayConstructor),Gy=function(e,t){return By(Vy(e),t)},Jy=vi.filter,Ky=P.aTypedArray,$y=((0,P.exportTypedArrayMethod)("filter",function(e){e=Jy(Ky(this),e,1<arguments.length?arguments[1]:undefined);return Gy(this,e)}),vi.find),Zy=P.aTypedArray,Yy=((0,P.exportTypedArrayMethod)("find",function(e){return $y(Zy(this),e,1<arguments.length?arguments[1]:undefined)}),vi.findIndex),Xy=P.aTypedArray,Qy=((0,P.exportTypedArrayMethod)("findIndex",function(e){return Yy(Xy(this),e,1<arguments.length?arguments[1]:undefined)}),vi.forEach),e0=P.aTypedArray,t0=((0,P.exportTypedArrayMethod)("forEach",function(e){Qy(e0(this),e,1<arguments.length?arguments[1]:undefined)}),t.includes),n0=P.aTypedArray,r0=((0,P.exportTypedArrayMethod)("includes",function(e){return t0(n0(this),e,1<arguments.length?arguments[1]:undefined)}),t.indexOf),i0=P.aTypedArray,o0=((0,P.exportTypedArrayMethod)("indexOf",function(e){return r0(i0(this),e,1<arguments.length?arguments[1]:undefined)}),tt("iterator")),d=O.Uint8Array,a0=v(kr.values),s0=v(kr.keys),u0=v(kr.entries),l0=P.aTypedArray,_y=P.exportTypedArrayMethod,c0=d&&d.prototype,n=!g(function(){c0[o0].call([1])}),ir=!!c0&&c0.values&&c0[o0]===c0.values&&"values"===c0.values.name,t=function(){return a0(l0(this))},d0=(_y("entries",function(){return u0(l0(this))},n),_y("keys",function(){return s0(l0(this))},n),_y("values",t,n||!ir,{name:"values"}),_y(o0,t,n||!ir,{name:"values"}),P.aTypedArray),d=P.exportTypedArrayMethod,f0=v([].join),h0=(d("join",function(e){return f0(d0(this),e)}),P.aTypedArray),p0=((0,P.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return je(Nv,h0(this),1<t?[e,arguments[1]]:[e])}),vi.map),m0=P.aTypedArray,g0=((0,P.exportTypedArrayMethod)("map",function(e){e=p0(m0(this),e,1<arguments.length?arguments[1]:undefined);return Gy(this,e)}),Be.left),v0=P.aTypedArray,y0=((0,P.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return g0(v0(this),e,t,1<t?arguments[1]:undefined)}),Be.right),w0=P.aTypedArray,b0=((0,P.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return y0(w0(this),e,t,1<t?arguments[1]:undefined)}),P.aTypedArray),t=P.exportTypedArrayMethod,k0=Math.floor,_0=(t("reverse",function(){for(var e,t=b0(this).length,n=k0(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}),ny("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}},!0),vi.some),S0=P.aTypedArray,E0=((0,P.exportTypedArrayMethod)("some",function(e){return _0(S0(this),e,1<arguments.length?arguments[1]:undefined)}),P.aTypedArray),n=P.exportTypedArrayMethod,C0=O.Uint16Array,R0=C0&&e(C0.prototype.sort),ir=!(!R0||g(function(){R0(new C0(2),null)})&&g(function(){R0(new C0(2),{})})),O0=!!R0&&!g(function(){if(Jn)return Jn<74;if(Ld)return Ld<67;if(Nd)return!0;if(Fd)return Fd<602;for(var e,t=new C0(516),n=Array(516),r=0;r<516;r++)e=r%4,t[r]=515-r,n[r]=r-2*e+3;for(R0(t,function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(t[r]!==n[r])return!0}),x0=(n("sort",function(e){return e!==undefined&&Ue(e),O0?R0(this,e):Dd(E0(this),(n=e,function(e,t){return n!==undefined?+n(e,t)||0:t!=t?e!=e?0:-1:e!=e?1:0===e&&0===t?0<1/e?0<1/t?0:1:0<1/t?-1:0:t<e?1:e<t?-1:0}));var n},!O0||ir),P.aTypedArray),I0=P.getTypedArrayConstructor,T0=((0,P.exportTypedArrayMethod)("subarray",function(e,t){var n=x0(this),r=n.length,e=mt(e,r);return new(I0(n))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,pe((t===undefined?r:mt(t,r))-e))}),O.Int8Array),M0=P.aTypedArray,_y=P.exportTypedArrayMethod,A0=[].toLocaleString,P0=!!T0&&g(function(){A0.call(new T0(1))}),d=(_y("toLocaleString",function(){return je(A0,P0?Zn(M0(this)):M0(this),Zn(arguments))},g(function(){return[1,2].toLocaleString()!==new T0([1,2]).toLocaleString()})||!g(function(){T0.prototype.toLocaleString.call([1,2])})),P.exportTypedArrayMethod),Be=O.Uint8Array,t=Be&&Be.prototype||{},D0=[].toString,L0=v([].join),e=(g(function(){D0.call({})})&&(D0=function(){return L0(this)}),t.toString!==D0),N0=(d("toString",D0,e),P.aTypedArray),F0=P.getTypedArrayConstructor,U0=((0,P.exportTypedArrayMethod)("slice",function(e,t){for(var n=Zn(N0(this),e,t),e=F0(this),r=0,i=n.length,o=new e(i);r<i;)o[r]=n[r++];return o},g(function(){new Int8Array(1).slice()})),O.RangeError),j0=O.Int8Array,ir=j0&&j0.prototype,B0=ir&&ir.set,z0=P.aTypedArray,n=P.exportTypedArrayMethod,W0=!g(function(){var e=new Uint8ClampedArray(2);return x(B0,e,{length:1,0:3},1),3!==e[1]}),_y=W0&&P.NATIVE_ARRAY_BUFFER_VIEWS&&g(function(){var e=new j0(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}),H0=(n("set",function(e){z0(this);var t=Dy(1<arguments.length?arguments[1]:undefined,1),n=ce(e);if(W0)return x(B0,this,n,t);var e=this.length,r=me(n),i=0;if(e<r+t)throw new U0("Wrong length");for(;i<r;)this[t+i]=n[i++]},!W0||_y),P.aTypedArray),Be=P.exportTypedArrayMethod,q0=v("".slice);function V0(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}Be("fill",function(e){var t=arguments.length,e=(H0(this),"Big"===q0(ot(this),0,3)?Fy(e):+e);return x(ca,this,e,1<t?arguments[1]:undefined,2<t?arguments[2]:undefined)},g(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})),new u({name:"aid"});$0.generate=function(){return"rep_"+this.uuid32()},$0.uuid32=function(){return"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/x/g,function(){return Math.floor(16*Math.random()).toString(16)})};var G0=$0,J0="[SessionReplay]",K0=!1;function $0(){}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];K0&&console.log.apply(console,Cl([J0+"["+e+"]"],t))}function Z0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];K0&&console.debug.apply(console,Cl([J0+"["+e+"]"],t))}function Y0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];K0&&console.log.apply(console,Cl([J0+"["+e+"] WARN:"],t))}function X0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];K0&&console.log.apply(console,Cl([J0+"["+e+"] ERROR:"],t))}rw.prototype.setTdemInstance=function(e){this.tdemInstance=e},rw.prototype.createSession=function(e){void 0===e&&(e="session");var t=null==(t=this.session)?void 0:t.replayId,n=zv("tdem",V0),n=M({id:n.sessionId,replayId:G0.generate(),started:Date.now(),lastActivity:Date.now(),segmentId:0,sampled:e},t?{previousReplayId:t}:{});return this.session=n,this.syncSharedSession(n.id),h("SessionManager","Document replay session created:",n.id,n.replayId),n},rw.prototype.restoreSession=function(){return this.session},rw.prototype.saveSession=function(){},rw.prototype.refreshSession=function(){var e=null!=(e=null==(e=this.session)?void 0:e.sampled)?e:"session";return this.createSession(e)},rw.prototype.updateActivity=function(){this.session&&(this.session.lastActivity=Date.now())},rw.prototype.incrementSegmentId=function(){var e;return this.session?(e=this.session.segmentId,this.session.segmentId+=1,e):0},rw.prototype.shouldRefreshSession=function(){return!1},rw.prototype.getSession=function(){return this.session},rw.prototype.getSessionId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.id)?e:""},rw.prototype.getReplayId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.replayId)?e:""},rw.prototype.clearSession=function(){var e;this.session=null;try{null!=(e=window.sessionStorage)&&e.removeItem("tdem_session")}catch(w){}},rw.prototype.syncSharedSession=function(e){var t,n,r;this.tdemInstance&&this.tdemInstance.extendBean("sessionId",e),e=e,"undefined"!=typeof window&&(t=Date.now(),(n=window[Uv])?(r=n.sessionId!==e,n.sessionId=e,n.version=r?n.version+1:n.version,n.source="tdem",r&&(n.createdAt=t),n.lastActivity=t):window[Uv]=Bv(e,"tdem"),jv("_tdem_s",e),window.dispatchEvent(new CustomEvent("monitor-session-update",{detail:{sessionId:e,source:"tdem"}})))};var Q0=rw,ew=((t={})[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t[t.Asset=7]="Asset",t),tw=(nw.prototype.ensureReady=function(){return Sl(this,void 0,void 0,function(){return El(this,function(e){return[2,this.ready]})})},nw.prototype.postMessage=function(n,r){var i=this,o=this.nextId++;return new Promise(function(e,t){i.pendingRequests.set(o,{resolve:e,reject:t}),i.worker.postMessage({id:o,method:n,arg:r})})},nw.prototype.destroy=function(){this.pendingRequests.forEach(function(e){return(0,e.reject)(new Error("Worker destroyed"))}),this.pendingRequests.clear(),this.worker.terminate()},nw);function nw(e){var o=this;this.nextId=0,this.pendingRequests=new Map,this.worker=e,this.worker.addEventListener("message",function(e){var e=e.data,t=e.id,n=e.success,r=e.response;"init"!==e.method&&(e=o.pendingRequests.get(t))&&(o.pendingRequests["delete"](t),n?e.resolve(r):e.reject(new Error(r||"Worker request failed")))}),this.ready=new Promise(function(t,n){var r=function(e){e=e.data;"init"===e.method&&e.success&&(o.worker.removeEventListener("message",r),clearTimeout(i),t())},i=(o.worker.addEventListener("message",r),o.worker.addEventListener("error",function(e){o.worker.removeEventListener("message",r),clearTimeout(i),n(new Error("Worker error: "+(e.message||"unknown")))}),setTimeout(function(){o.worker.removeEventListener("message",r),n(new Error("Worker init timeout (5s)"))},5e3))})}function rw(e){this.session=null,this.tdemInstance=null}function iw(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:55296<=r&&r<=56319&&n+1<e.length&&56320<=e.charCodeAt(n+1)&&e.charCodeAt(n+1)<=57343?(t+=4,n+=1):t+=3}return t}aw.prototype.initWorker=function(){var t=this,e=function(){try{var e,t,n;return"undefined"==typeof Worker||"undefined"==typeof Blob||"undefined"==typeof URL?null:(e=new Blob(["\n(function() {\n var events = [];\n var totalSize = 0;\n\n function handleMessage(data) {\n var method = data.method;\n var id = data.id;\n\n switch (method) {\n case 'addEvent':\n events.push(data.arg);\n totalSize += data.arg.length;\n return { id: id, method: method, success: true, response: totalSize };\n\n case 'finish':\n var json = '[' + events.join(',') + ']';\n events = [];\n totalSize = 0;\n // 返回原始 JSON 字符串,压缩在主线程做(pako 不好内联到 worker)\n return { id: id, method: method, success: true, response: json };\n\n case 'clear':\n events = [];\n totalSize = 0;\n return { id: id, method: method, success: true, response: void 0 };\n\n default:\n return { id: id, method: method, success: false, response: 'Unknown method' };\n }\n }\n\n self.addEventListener('message', function(e) {\n try {\n var result = handleMessage(e.data);\n self.postMessage(result);\n } catch (err) {\n self.postMessage({\n id: e.data.id,\n method: e.data.method,\n success: false,\n response: err.message || 'Worker error'\n });\n }\n });\n\n // 就绪信号\n self.postMessage({ method: 'init', success: true });\n})();\n"],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t,{name:"tdem-replay-compressor"}),URL.revokeObjectURL(t),h("CompressionWorker","Worker created successfully"),new tw(n))}catch(D){return Y0("CompressionWorker","Failed to create worker, will fallback to sync buffer:",D),null}}();e?(this.workerHandler=e,this.useWorker=!0,e.ensureReady().then(function(){t.workerReady=!0,h("EventBuffer","Worker ready, migrating buffered events"),t.migrateEventsToWorker()})["catch"](function(e){Y0("EventBuffer","Worker init failed, falling back to sync buffer:",e),t.useWorker=!1,t.workerHandler=null})):h("EventBuffer","Worker not available, using sync buffer")},aw.prototype.migrateEventsToWorker=function(){if(this.workerHandler&&this.workerReady)for(var e=0,t=this.events;e<t.length;e++){var n=t[e];this.addEventToWorker(n)}},aw.prototype.addEventToWorker=function(e){if(this.workerHandler)try{var t=JSON.stringify(e);this.workerHandler.postMessage("addEvent",t),this.workerEventCount++,this.workerSize+=t.length}catch(C){Y0("EventBuffer","Failed to send event to worker:",C)}},aw.prototype.addEvent=function(e){var t=this.estimateEventSize(e);this.currentSize+t>this.config.maxSize&&(Y0("EventBuffer","Size limit exceeded, removing old events"),this.trimOldEvents(t)),this.events.push(e),this.currentSize+=t,this.useWorker&&this.workerReady&&this.workerHandler&&(0<this.workerEventCount&&this.workerSize+t>this.config.maxSize&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0),this.addEventToWorker(e))},aw.prototype.getEvents=function(){return Cl(this.events)},aw.prototype.getEventCount=function(){return this.events.length},aw.prototype.getSize=function(){return this.currentSize},aw.prototype.isEmpty=function(){return 0===this.events.length},aw.prototype.detachEvents=function(){var e=this.events;return this.events=[],this.currentSize=0,this.useWorker&&this.workerHandler&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0),e},aw.prototype.hasBaselinePair=function(){for(var e=!1,t=!1,n=0;n<this.events.length;n++){var r=this.events[n].type;if(r===ew.Meta?e=!0:r===ew.FullSnapshot&&(t=!0),e&&t)return!0}return!1},aw.prototype.finishAsync=function(){return Sl(this,void 0,void 0,function(){var t;return El(this,function(e){return[2,{events:t=this.getEvents(),eventCount:t.length,uncompressedSize:this.currentSize}]})})},aw.prototype.finish=function(){var e=this.getEvents();return{events:e,eventCount:e.length,uncompressedSize:this.currentSize}},aw.prototype.clear=function(){this.events=[],this.currentSize=0,this.useWorker&&this.workerHandler&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0)},aw.prototype.destroy=function(){this.clear(),this.workerHandler&&(this.workerHandler.destroy(),this.workerHandler=null),this.useWorker=!1,this.workerReady=!1},aw.prototype.estimateEventSize=function(e){try{return iw(JSON.stringify(e))+1}catch(bw){return 1024}},aw.prototype.trimOldEvents=function(e){for(var t=-1,n=this.events.length-1;0<=n;n--)if(this.events[n].type===ew.FullSnapshot){t=n;break}var r=t;if(0<r)for(n=r-1;0<=n;n--)if(this.events[n].type===ew.Meta){r=n;break}for(var i,o=0,a=Math.max(e,.2*this.config.maxSize),s=0;s<r&&o<a;)s++,(i=this.events.shift())&&(o+=this.estimateEventSize(i));if(r<0)for(;0<this.events.length&&o<a;)(i=this.events.shift())&&(o+=this.estimateEventSize(i));this.currentSize=Math.max(0,this.currentSize-o)},aw.prototype.hasCheckout=function(){return this.events.some(function(e){return e.type===ew.Meta||e.type===ew.FullSnapshot})},aw.prototype.getLastCheckoutTime=function(){for(var e=this.events.length-1;0<=e;e--){var t=this.events[e];if(t.type===ew.FullSnapshot)return t.timestamp}return null},aw.prototype.isUsingWorker=function(){return this.useWorker&&this.workerReady};var ow=aw;function aw(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this.events=[],this.currentSize=0,this.workerHandler=null,this.useWorker=!1,this.workerReady=!1,this.workerEventCount=0,this.workerSize=0,this.config={maxSize:null!=(e=e.maxSize)?e:5242880},t&&this.initWorker()}Ei("toStringTag"),br(Re("Symbol"),"Symbol"),br(O.JSON,"JSON",!0),br(Math,"Math",!0),R({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var sw=o.trim,uw=v("".charAt),lw=O.parseFloat,e=O.Symbol,cw=e&&e.iterator,d=1/lw(Io+"-0")!=-Infinity||cw&&!g(function(){lw(Object(cw))})?function(e){var e=sw(E(e)),t=lw(e);return 0===t&&"-"===uw(e,0)?-0:t}:lw,dw=(R({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d}),Re("Reflect","construct")),fw=Object.prototype,hw=[].push,pw=g(function(){function e(){}return!(dw(function(){},[],e)instanceof e)}),mw=!g(function(){dw(function(){})}),ir=pw||mw,gw=(R({target:"Reflect",stat:!0,forced:ir,sham:ir},{construct:function(e,t){pu(e);var n=arguments.length<3?e:pu(arguments[2]);if(S(t),mw&&!pw)return dw(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return je(hw,r,t),new(je(Is,e,r))}r=n.prototype,n=xt(W(r)?r:fw),r=je(e,n,t);return W(r)?r:n}}),function(e,t,n){var r,i;return S(e)===n?e[t]:(r=ur.f(e,t))?(i=r)!==undefined&&(T(i,"value")||T(i,"writable"))?r.value:r.get===undefined?undefined:x(r.get,n):(i=hr(e),W(i)?gw(i,t,n):void 0)}),vw=(R({target:"Reflect",stat:!0},{get:function(e,t){return gw(S(e),Ci(t),arguments.length<3?e:arguments[2])}}),/"/g),yw=v("".replace),ww=function(e,t,n,r){var e=E(ue(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+yw(E(r),vw,""")+'"'),i+">"+e+"</"+t+">"},_y=function(t){return g(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})};R({target:"String",proto:!0,forced:_y("bold")},{bold:function(){return ww(this,"b","","")}}),ny("Float64",function(r){return function(e,t,n){return r(this,e,t,n)}}),ny("Int16",function(r){return function(e,t,n){return r(this,e,t,n)}}),ny("Int32",function(r){return function(e,t,n){return r(this,e,t,n)}}),ny("Uint16",function(r){return function(e,t,n){return r(this,e,t,n)}}),ny("Uint32",function(r){return function(e,t,n){return r(this,e,t,n)}});var bw,kw=["inputs"],_w=["inputId"],Sw=["inputs"],Ew=["inputId"],Cw=["type"],Rw=Object.defineProperty,p=function(e,t,n){return e=e,t="symbol"!==I(t)?t+"":t,n=n,t in e?Rw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ow=Object.defineProperty,xw=function(e,t,n){return e=e,t="symbol"!==I(t)?t+"":t,n=n,t in e?Ow(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Iw=((n=Iw||{})[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n),Tw={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Mw={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Aw={},Pw={};function Dw(e){if(Aw[e])return Aw[e];var t=globalThis[e],n=t.prototype,r=e in Tw?Tw[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in Mw?Mw[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return Aw[e]=t.prototype,t.prototype;try{var o,a,s=document.createElement("iframe"),u=(s.style.display="none",document.body.appendChild(s),s.contentWindow);return u?(o=u[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),Pw[e]=function(){return s.remove()}):s.remove(),Aw[e]=o):(s.remove(),n):t.prototype}catch(F){return n}}var Lw={};function Nw(e,t,n){var r="".concat(e,".").concat(String(n));return Lw[r]?Lw[r].call(t):(e=Dw(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Lw[r]=e).call(t):t[n])}var Fw={};function Uw(e,t,n){var r="".concat(e,".").concat(String(n));return Fw[r]?Fw[r].bind(t):"function"!=typeof(e=Dw(e)[n])?t[n]:(Fw[r]=e).bind(t)}var Be=Date.now,jw={ownerDocument:function(e){return Nw("Node",e,"ownerDocument")},childNodes:function(e){return Nw("Node",e,"childNodes")},parentNode:function(e){return Nw("Node",e,"parentNode")},parentElement:function(e){return Nw("Node",e,"parentElement")},textContent:function(e){return Nw("Node",e,"textContent")},contains:function(e,t){return Uw("Node",e,"contains")(t)},getRootNode:function(e){return Uw("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Nw("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Nw("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Nw("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Nw("Element",e,"querySelectorAll")(t)},nowTimestamp:Be=/[1-9][0-9]{12}/.test(Date.now().toString())?Be:function(){return(new Date).getTime()},mutationObserverCtor:function(){var e;return[Dw("MutationObserver").constructor,null!=(e=Pw.MutationObserver)?e:function(){}]},patch:function(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(Le){return function(){}}}};function Bw(e){return e.nodeType===e.ELEMENT_NODE}function zw(e){var t=e&&"host"in e&&"mode"in e&&jw.host(e)||null;return Boolean(t&&"shadowRoot"in t&&jw.shadowRoot(t)===e)}function Ww(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Hw(e){try{var t,n=e.rules||e.cssRules;return n?(!(t=e.href)&&e.ownerNode&&(t=e.ownerNode.baseURI),r=(r=Array.from(n,function(e){return qw(e,t)}).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r):null}catch(X){return null}var r}function qw(e,t){if("styleSheet"in e){var n;try{n=Hw(e.styleSheet)||((r=(i=e).cssText).split('"').length<3?r:(r=["@import","url(".concat(JSON.stringify(i.href),")")],""===i.layerName?r.push("layer"):i.layerName&&r.push("layer(".concat(i.layerName,")")),i.supportsText&&r.push("supports(".concat(i.supportsText,")")),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(X){n=e.cssText}return e.styleSheet.href?eb(n,e.styleSheet.href):n}var r,i=e.cssText;return"selectorText"in e&&e.selectorText.includes(":")&&(i=i.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?eb(i,t):i}var Vw=k(function _(){b(this,_),xw(this,"idNodeMap",new Map),xw(this,"nodeMetaMap",new WeakMap)},[{key:"getId",value:function(e){return e&&null!=(e=null==(e=this.getMeta(e))?void 0:e.id)?e:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);this.idNodeMap["delete"](n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]);function Gw(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,o=e.maskInputFn,e=e.value||"",i=i&&Jw(i);return e=n[r.toLowerCase()]||i&&n[i]?o?o(e,t):"*".repeat(e.length):e}function Jw(e){return e.toLowerCase()}function Kw(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Jw(t):null}function $w(e,t){var n;try{n=new URL(e,null!=t?t:window.location.href)}catch(Pe){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(t=null==e?void 0:e[1])?t:null}var Zw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Yw=/^(?:[a-z+]+:)?\/\//i,Xw=/^www\..*/i,Qw=/^(data:)([^,]*),(.*)/i;function eb(e,c){return(e||"").replace(Zw,function(e,t,n,r,i,o){n=n||i||o,i=t||r||"";if(!n)return e;if(Yw.test(n)||Xw.test(n))return"url(".concat(i).concat(n).concat(i,")");if(Qw.test(n))return"url(".concat(i).concat(n).concat(i,")");if("/"===n[0])return"url(".concat(i).concat((-1<(o=c).indexOf("//")?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+n).concat(i,")");var t=n.split("#")[0],r=n.substring(t.length),a=c.split("#")[0].split("/"),e=t.split("/");a.pop();var s,u=Me(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;"."!==l&&(".."===l?a.pop():a.push(l))}}catch(Pe){u.e(Pe)}finally{u.f()}return"url(".concat(i).concat(a.join("/")).concat(r).concat(i,")")})}function tb(e,t){return 1<arguments.length&&t!==undefined&&t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var nb,rb,ib=1,ob=new RegExp("[^a-z0-9-_:]");function ab(){return ib++}var sb=/^[^ \t\n\r\u000c]+/,ub=/^[, \t\n\r\u000c]+/,lb=new WeakMap;function cb(e,t){return t&&""!==t.trim()?db(e,t):t}function db(e,t){var n=lb.get(e);if(n||(n=e.createElement("a"),lb.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function fb(e,t,n,r){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&["table","td","th"].includes(t)?cb(e,r):"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var e=e.exec(t.substring(n));return e?(e=e[0],n+=e.length,e):""}for(var i=[];r(ub),!(n>=t.length);)if(","===(a=r(sb)).slice(-1))a=cb(e,a.substring(0,a.length-1)),i.push(a);else for(var o="",a=cb(e,a),s=!1;;){var u=t.charAt(n);if(""===u){i.push((a+o).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((a+o).trim());break}"("===u&&(s=!0)}o+=u,n+=1}return i.join(", ")}(e,r):"style"===n?eb(r,db(e)):"object"===t&&"data"===n?cb(e,r):r)}function hb(e,t){return["video","audio"].includes(e)&&"autoplay"===t}function pb(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE)for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return!!n&&pb(jw.parentNode(e),t,n)}function mb(e,t,n,r){var i;if(Bw(e)){if(!jw.childNodes(i=e).length)return!1}else{if(null===jw.parentElement(e))return!1;i=jw.parentElement(e)}try{if("string"==typeof t){if(r){if(i.closest(".".concat(t)))return!0}else if(i.classList.contains(t))return!0}else if(pb(i,t,r))return!0;if(n)if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}catch(Le){}return!1}function gb(e,t){var n=t.doc,r=t.blockClass,i=t.blockSelector,o=t.needsMask,a=t.inlineStylesheet,s=t.maskInputOptions,u=void 0===s?{}:s,l=t.maskTextFn,c=t.maskInputFn,s=t.dataURLOptions,d=void 0===s?{}:s,f=t.inlineImages,N=t.recordCanvas,F=t.keepIframeSrcFn,s=t.newlyAddedElement,U=void 0!==s&&s,s=t.cssCaptured,j=void 0!==s&&s,h=(s=n,!(t=t.mirror).hasNode(s)||1===(s=t.getId(s))?void 0:s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Iw.Document,childNodes:[],compatMode:e.compatMode}:{type:Iw.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Iw.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:h};case e.ELEMENT_NODE:for(var p,m,g,v,y,w,b=e,k=(M={doc:n,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:u,maskInputFn:c,dataURLOptions:d,inlineImages:f,recordCanvas:N,keepIframeSrcFn:F,newlyAddedElement:U,rootId:h}).doc,_=M.blockSelector,S=M.inlineStylesheet,E=void 0===(E=M.maskInputOptions)?{}:E,C=M.maskInputFn,R=void 0===(O=M.dataURLOptions)?{}:O,O=M.inlineImages,x=M.recordCanvas,I=M.keepIframeSrcFn,T=void 0!==(T=M.newlyAddedElement)&&T,B=M.rootId,M=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch(_){}return!1}(b,M.blockClass,_),A=(m=b)instanceof HTMLFormElement?"form":(m=Jw(m.tagName),ob.test(m)?"div":m),P={},z=b.attributes.length,D=0;D<z;D++){var L=b.attributes[D];hb(A,L.name)||(P[L.name]=fb(k,A,Jw(L.name),L.value))}"link"===A&&S&&(m=null,m=(S=Array.from(k.styleSheets).find(function(e){return e.href===b.href}))?Hw(S):m)&&(delete P.rel,delete P.href,P._cssText=m),"style"===A&&b.sheet&&(S=Hw(b.sheet))&&(1<b.childNodes.length&&(S=function(e,t,n){var r=2<arguments.length&&n!==undefined&&n,i=Array.from(t.childNodes),o=[],a=0;if(1<i.length&&e&&"string"==typeof e)for(var s=tb(e,r),u=s.length/e.length,l=1;l<i.length;l++)if(i[l].textContent&&"string"==typeof i[l].textContent){for(var c=tb(i[l].textContent,r),d=3;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,d),1));d++);for(;d<c.length;d++){var f,h=c.substring(0,d),p=s.split(h),m=-1;if(2===p.length)m=p[0].length;else if(2<p.length&&""===p[0]&&""!==i[l-1].textContent)m=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return o.push(e),o;d=101}else d===c.length-1&&(m=s.indexOf(h));if(-1!==(m=2<=p.length&&100<d&&((f=i[l-1].textContent)&&"string"==typeof f&&(f=tb(f).length,m=s.indexOf(h,f)),-1===m)?p[0].length:m)){for(var g=Math.floor(m/u);0<g&&g<e.length;){if((a+=1)>50*i.length)return o.push(e),o;var v=tb(e.substring(0,g),r);if(v.length===m){o.push(e.substring(0,g)),e=e.substring(g),s=s.substring(m);break}v.length<m?g+=Math.max(1,Math.floor((m-v.length)/u)):g-=Math.max(1,Math.floor((v.length-m)*u))}break}}}return o.push(e),o}(S,b).join("/* rr_split */")),P._cssText=S),["input","textarea","select"].includes(A)&&(m=b.value,S=b.checked,"radio"!==P.type&&"checkbox"!==P.type&&"submit"!==P.type&&"button"!==P.type&&m?P.value=Gw({element:b,type:Kw(b),tagName:A,value:m,maskInputOptions:E,maskInputFn:C}):S&&(P.checked=S)),"option"===A&&(b.selected&&!E.select?P.selected=!0:delete P.selected),"dialog"===A&&b.open&&(P.rr_open_mode=b.matches("dialog:modal")?"modal":"non-modal"),"canvas"===A&&x&&("2d"===b.__context?function(e){var t=e.getContext("2d");if(t)for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var i=t.getImageData,i="__rrweb_original__"in i?i.__rrweb_original__:i;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return}return 1}(b)||(P.rr_dataURL=b.toDataURL(R.type,R.quality)):"__context"in b||(m=b.toDataURL(R.type,R.quality),(C=k.createElement("canvas")).width=b.width,C.height=b.height,m!==C.toDataURL(R.type,R.quality)&&(P.rr_dataURL=m))),"img"===A&&O&&(nb||(nb=k.createElement("canvas"),rb=nb.getContext("2d")),v=(g=b).currentSrc||g.getAttribute("src")||"<unknown-src>",y=g.crossOrigin,w=function(){g.removeEventListener("load",w);try{nb.width=g.naturalWidth,nb.height=g.naturalHeight,rb.drawImage(g,0,0),P.rr_dataURL=nb.toDataURL(R.type,R.quality)}catch(Pe){if("anonymous"!==g.crossOrigin)return g.crossOrigin="anonymous",void(g.complete&&0!==g.naturalWidth?w():g.addEventListener("load",w));console.warn("Cannot inline img src=".concat(v,"! Error: ").concat(Pe))}"anonymous"===g.crossOrigin&&(y?P.crossOrigin=y:g.removeAttribute("crossorigin"))},g.complete&&0!==g.naturalWidth?w():g.addEventListener("load",w)),["audio","video"].includes(A)&&((S=P).rr_mediaState=b.paused?"paused":"played",S.rr_mediaCurrentTime=b.currentTime,S.rr_mediaPlaybackRate=b.playbackRate,S.rr_mediaMuted=b.muted,S.rr_mediaLoop=b.loop,S.rr_mediaVolume=b.volume),T||(b.scrollLeft&&(P.rr_scrollLeft=b.scrollLeft),b.scrollTop&&(P.rr_scrollTop=b.scrollTop)),M&&(x=(E=b.getBoundingClientRect()).width,C=E.height,P={"class":P["class"],rr_width:"".concat(x,"px"),rr_height:"".concat(C,"px")}),"iframe"!==A||I(P.src)||(b.contentDocument||(P.rr_src=P.src),delete P.src);try{customElements.get(A)&&(p=!0)}catch(W){}return{type:Iw.Element,tagName:A,attributes:P,childNodes:[],isSVG:Boolean("svg"===b.tagName||b.ownerSVGElement)||void 0,needBlock:M,rootId:B,isCustom:p};case e.TEXT_NODE:return m=e,S=(O={doc:n,needsMask:o,maskTextFn:l,rootId:h,cssCaptured:j}).needsMask,T=O.maskTextFn,E=O.rootId,x=O.cssCaptured,C=(C=jw.parentNode(m))&&C.tagName,I="",M="STYLE"===C||void 0,(C="SCRIPT"===C||void 0)?I="SCRIPT_PLACEHOLDER":x||(I=jw.textContent(m),M&&(I=I&&eb(I,db(O.doc)))),!M&&!C&&I&&S&&(I=T?T(I,jw.parentElement(m)):I.replace(/[\S]/g,"*")),{type:Iw.Text,textContent:I||"",rootId:E};case e.CDATA_SECTION_NODE:return{type:Iw.CDATA,textContent:"",rootId:h};case e.COMMENT_NODE:return{type:Iw.Comment,textContent:jw.textContent(e)||"",rootId:h};default:return!1}}function vb(e){return null==e?"":e.toLowerCase()}function yb(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function wb(t,e){var n=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.maskTextClass,s=e.maskTextSelector,u=e.skipChild,u=void 0!==u&&u,l=e.inlineStylesheet,c=void 0===l||l,l=e.maskInputOptions,d=void 0===l?{}:l,f=e.maskTextFn,h=e.maskInputFn,p=e.slimDOMOptions,l=e.dataURLOptions,m=void 0===l?{}:l,l=e.inlineImages,g=void 0!==l&&l,l=e.recordCanvas,v=void 0!==l&&l,y=e.onSerialize,w=e.onIframeLoad,l=e.iframeLoadTimeout,b=void 0===l?5e3:l,k=e.onStylesheetLoad,l=e.stylesheetLoadTimeout,_=void 0===l?5e3:l,l=e.keepIframeSrcFn,S=void 0===l?function(){return!1}:l,l=e.newlyAddedElement,l=void 0!==l&&l,E=e.cssCaptured,E=void 0!==E&&E,C=e.needsMask,e=e.preserveWhiteSpace,R=void 0===e||e,C=C||mb(t,a,s,void 0===C),e=gb(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,dataURLOptions:m,inlineImages:g,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:l,cssCaptured:E});if(!e)return console.warn(t,"not serialized"),null;var l=r.hasNode(t)?r.getId(t):function(e,t){if(t.comment&&e.type===Iw.Comment)return 1;if(e.type===Iw.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"===$w(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(vb(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===vb(e.attributes.name)||"icon"===vb(e.attributes.rel)||"apple-touch-icon"===vb(e.attributes.rel)||"shortcut icon"===vb(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&vb(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(vb(e.attributes.property).match(/^(og|twitter|fb):/)||vb(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===vb(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===vb(e.attributes.name)||"googlebot"===vb(e.attributes.name)||"bingbot"===vb(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===vb(e.attributes.name)||"generator"===vb(e.attributes.name)||"framework"===vb(e.attributes.name)||"publisher"===vb(e.attributes.name)||"progid"===vb(e.attributes.name)||vb(e.attributes.property).match(/^article:/)||vb(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===vb(e.attributes.name)||"yandex-verification"===vb(e.attributes.name)||"csrf-token"===vb(e.attributes.name)||"p:domain_verify"===vb(e.attributes.name)||"verify-v1"===vb(e.attributes.name)||"verification"===vb(e.attributes.name)||"shopify-checkout-api-token"===vb(e.attributes.name)))return 1}}}(e,p)||!R&&e.type===Iw.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ib++,O=Object.assign(e,{id:l});if(r.add(t,O),-2===l)return null;y&&y(t);E=!u;if(O.type===Iw.Element&&(E=E&&!O.needBlock,delete O.needBlock,e=jw.shadowRoot(t))&&Ww(e)&&(O.isShadowHost=!0),(O.type===Iw.Document||O.type===Iw.Element)&&E){p.headWhitespace&&O.type===Iw.Element&&"head"===O.tagName&&(R=!1);var x={doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:_,keepIframeSrcFn:S,cssCaptured:!1};if(O.type!==Iw.Element||"textarea"!==O.tagName||void 0===O.attributes.value){O.type===Iw.Element&&void 0!==O.attributes._cssText&&"string"==typeof O.attributes._cssText&&(x.cssCaptured=!0);for(var I=0,T=Array.from(jw.childNodes(t));I<T.length;I++){var M=wb(T[I],x);M&&O.childNodes.push(M)}}var A=null;if(Bw(t)&&(A=jw.shadowRoot(t)))for(var P=0,D=Array.from(jw.childNodes(A));P<D.length;P++){var L=wb(D[P],x);L&&(Ww(A)&&(L.isShadow=!0),O.childNodes.push(L))}}l=jw.parentNode(t);return l&&zw(l)&&Ww(l)&&(O.isShadow=!0),O.type===Iw.Element&&"iframe"===O.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var i,o=!1;try{i=r.document.readyState}catch(X){return}if("complete"===i){if("about:blank"!==r.location.href||"about:blank"===e.src||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(t,function(){var e=t.contentDocument;e&&w&&(e=wb(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:_,keepIframeSrcFn:S}))&&w(t,e)},b),O.type===Iw.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===$w(O.attributes.href))&&function(e,t,n){var r,i,o=!1;try{r=e.sheet}catch(X){return}r||(i=setTimeout(function(){o||(t(),o=!0)},n),e.addEventListener("load",function(){clearTimeout(i),o=!0,t()}))}(t,function(){var e;k&&(e=wb(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:_,keepIframeSrcFn:S}))&&k(t,e)},_),O}var bb,kb={exports:{}};var _b,Sb,Eb,Cb,Rb,Ob=(Eb=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?Eb:("function"==typeof(Cb=Eb["default"])?(Rb=function Eb(){return this instanceof Eb?Reflect.construct(Cb,arguments,this.constructor):Cb.apply(this,arguments)}).prototype=Cb.prototype:Rb={},Object.defineProperty(Rb,"__esModule",{value:!0}),Object.keys(Eb).forEach(function(e){var t=Object.getOwnPropertyDescriptor(Eb,e);Object.defineProperty(Rb,e,t.get?t:{enumerable:!0,get:function(){return Eb[e]}})}),Rb);function xb(){var d,f,e,t;return Sb||(Sb=1,bb||(bb=1,e=String,kb.exports=(t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}})(),kb.exports.createColors=t),d=kb.exports,f=Ob,B(s,Q(Error)),t=k(s,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=d.isColorSupported);var n,i,o,a,s,t=(t=f&&e?f(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=d.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}]),(_b=t)["default"]=t),_b;function s(e,t,n,r,i,o){var a;return b(this,s),(a=Le(this,s,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,s),a}}var Ib,Tb,Mb,Ab,Pb,Db,Lb,Nb,Fb,Ub,jb,Bb,zb,Wb,Hb,qb,Vb,Gb,Jb,Kb,$b,Zb,Yb,Xb,Qb,e1,t1,n1,r1,i1,o1,a1,s1,u1,l1,c1,d1,f1,h1,p1,m1,g1,v1,y1,w1,b1,k1,_1,S1,E1,C1={};function R1(){return Ib||(Ib=1,C1.isClean=Symbol("isClean"),C1.my=Symbol("my")),C1}function O1(){var a,t;return Mb||(a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!(Mb=1)},t=k(function t(e){b(this,t),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="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"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=a[n]),o.rawCache[n]=r)):a[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),(Tb=t)["default"]=t),Tb}function x1(){var n;return Pb||(Pb=1,n=O1(),(Ab=e)["default"]=e),Ab;function e(e,t){new n(t).stringify(e)}}function I1(){var o,a,s,i,n,r,e;return Lb||(Lb=1,a=(o=R1()).isClean,s=o.my,i=xb(),n=O1(),r=x1(),e=k(function o(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in b(this,o),this.raws={},this[a]=!1,this[s]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Me(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(Pe){r.e(Pe)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(i=I(r=e[n]),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new i(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[a]){this[a]=!1;for(var e=this;e=e.parent;)e[a]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new n).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===I(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===I(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Fe(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),(Db=e)["default"]=e),Db}function T1(){var e;return Fb||(Fb=1,B(t,I1()),e=k(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),(Nb=e)["default"]=e),Nb;function t(e){return b(this,t),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Ae(Ae({},e),{},{value:String(e.value)})),(e=Le(this,t,[e])).type="decl",e}}function M1(){var r,i,t,n,o,a,s;return zb||(zb=1,r=Ob.SourceMapConsumer,i=Ob.SourceMapGenerator,t=Ob.existsSync,n=Ob.readFileSync,o=Ob.dirname,a=Ob.join,s=k(function s(e,t){b(this,s),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===I(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=o(e),t(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=a(o(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),(Bb=s)["default"]=s),Bb}function A1(){var n,a,u,s,r,i,e,l,o,c,d,f,t;return Hb||(Hb=1,n=Ob.SourceMapConsumer,t=Ob.SourceMapGenerator,a=Ob.fileURLToPath,u=Ob.pathToFileURL,s=Ob.isAbsolute,r=Ob.resolve,i=(jb?Ub:(jb=1,Ub={nanoid:function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:21;return function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r;t--;)e+=n[Math.random()*n.length|0];return e}}})).nanoid,e=Ob,l=xb(),o=M1(),c=Symbol("fromOffsetCache"),d=Boolean(n&&t),f=Boolean(r&&s),t=k(function n(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(b(this,n),null==e||"object"===I(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));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&&(!f||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=r(t.from)),f&&d&&(e=new o(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===I(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new l(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new l(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(u&&(o.input.url=u(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[c])n=this[c];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[c]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=s(t.source)?u(t.source):new URL(t.source,this.map.consumer().sourceRoot||u(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");r.file=a(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Ae({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),(Wb=t)["default"]=t,e&&e.registerInput&&e.registerInput(t)),Wb}function P1(){if(Vb)return qb;Vb=1;var a=Ob.SourceMapConsumer,t=Ob.SourceMapGenerator,s=Ob.dirname,n=Ob.relative,r=Ob.resolve,i=Ob.sep,o=Ob.pathToFileURL,u=A1(),e=Boolean(a&&t),l=Boolean(s&&r&&n&&i);return qb=k(function j(e,t,n,r){b(this,j),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var 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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Me(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||s(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new a(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(Pe){t.e(Pe)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;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,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),l&&e&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})):(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>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?s(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=s(r(t,this.mapOpts.annotation))),t=n(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new u(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(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))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o)return t=o(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}])}function D1(){var e;return Jb||(Jb=1,B(t,I1()),e=k(t),(Gb=e)["default"]=e),Gb;function t(e){return b(this,t),(e=Le(this,t,[e])).type="comment",e}}function L1(){var l,c,d,t,e,f,h,p,m,n;return $b||($b=1,e=R1(),f=e.isClean,h=e.my,p=T1(),m=D1(),B(g,I1()),(n=k(g,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Me(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(Pe){s.e(Pe)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if($(g,"cleanRaws",this,3)([e]),this.nodes){var t,n=Me(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(Pe){n.e(Pe)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return De(r[o],r,Fe(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return De(i,void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(Pe){s.e(Pe)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(Pe){s.e(Pe)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function q(e){return e.map(function(e){return e.nodes&&(e.nodes=q(e.nodes)),delete e.source,e})}(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Me(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(Pe){i.e(Pe)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Me(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(Pe){s.e(Pe)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new p(e)]}else if(e.selector)e=[new c(e)];else if(e.name)e=[new d(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new m(e)]}return e.map(function(e){return e[h]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[f]&&function c(e){if(e[f]=!1,e.proxyOf.nodes){var t,n=Me(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)c(t.value)}catch(Pe){n.e(Pe)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Me(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Me(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(Pe){l.e(Pe)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(Pe){i.e(Pe)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Me(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(Pe){t.e(Pe)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(De){throw e.addToError(De)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])).registerParse=function(e){l=e},n.registerRule=function(e){c=e},n.registerAtRule=function(e){d=e},n.registerRoot=function(e){t=e},((Kb=n)["default"]=n).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,d.prototype):"rule"===e.type?Object.setPrototypeOf(e,c.prototype):"decl"===e.type?Object.setPrototypeOf(e,p.prototype):"comment"===e.type?Object.setPrototypeOf(e,m.prototype):"root"===e.type&&Object.setPrototypeOf(e,t.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(function(e){n.rebuild(e)})}),Kb;function g(){return b(this,g),Le(this,g,arguments)}}function N1(){var t,n,e;return Yb||(Yb=1,B(r,L1()),(e=k(r,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},e.registerProcessor=function(e){n=e},(Zb=e)["default"]=e),Zb;function r(e){return b(this,r),(e=Le(this,r,[Ae({type:"document"},e)])).nodes||(e.nodes=[]),e}}function F1(){if(Qb)return Xb;Qb=1;var t={};return Xb=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function U1(){var r;return t1||(t1=1,r=k(function r(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in b(this,r),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){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}}]),(e1=r)["default"]=r),e1}function j1(){var n,r;return r1||(r1=1,n=U1(),r=k(function r(e,t,n){b(this,r),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new n(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),(n1=r)["default"]=r),n1}function B1(){var e,t;return s1||(s1=1,B(r,e=L1()),t=k(r,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"prepend",this,3)(t)}}]),(a1=t)["default"]=t,e.registerAtRule(t)),a1;function r(e){return b(this,r),(e=Le(this,r,[e])).type="atrule",e}}function z1(){var t,n,e,r;return l1||(l1=1,B(o,e=L1()),(r=k(o,[{key:"normalize",value:function(e,t,n){e=$(o,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Me(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(Pe){i.e(Pe)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),$(o,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},r.registerProcessor=function(e){n=e},u1=r,e.registerRoot(r["default"]=r)),u1;function o(e){return b(this,o),(e=Le(this,o,[e])).type="root",e.nodes||(e.nodes=[]),e}}function W1(){var t;return d1||(d1=1,(c1=t={comma:function(e){return t.split(e,[","],!0)},space:function(e){return t.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,d=Me(e);try{for(d.s();!(r=d.n()).done;){var f=r.value;c?c=!1:"\\"===f?c=!0:u?f===l&&(u=!1):'"'===f||"'"===f?(u=!0,l=f):"("===f?s+=1:")"===f?0<s&&--s:0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}}catch(Pe){d.e(Pe)}finally{d.f()}return!n&&""===o||i.push(o.trim()),i}})["default"]=t),c1}function H1(){var e,t,n;return h1||(h1=1,e=L1(),t=W1(),B(r,e),n=k(r,[{key:"selectors",get:function(){return t.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}]),(f1=n)["default"]=n,e.registerRule(n)),f1;function r(e){return b(this,r),(e=Le(this,r,[e])).type="rule",e.nodes||(e.nodes=[]),e}}function q1(){if(m1)return p1;m1=1;var p=T1(),e=function(){if(o1)return i1;o1=1;var w="'".charCodeAt(0),b='"'.charCodeAt(0),k="\\".charCodeAt(0),_="/".charCodeAt(0),S="\n".charCodeAt(0),E=" ".charCodeAt(0),C="\f".charCodeAt(0),R="\t".charCodeAt(0),O="\r".charCodeAt(0),x="[".charCodeAt(0),I="]".charCodeAt(0),T="(".charCodeAt(0),M=")".charCodeAt(0),A="{".charCodeAt(0),P="}".charCodeAt(0),D=";".charCodeAt(0),L="*".charCodeAt(0),N=":".charCodeAt(0),F="@".charCodeAt(0),U=/[\t\n\f\r "#'()/;[\\\]{}]/g,j=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\r\n"'(/\\]/,z=/[\da-f]/i;return i1=function(t){var r,i,o,a,s,u,l,c,d,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},f=t.css.valueOf(),h=e.ignoreErrors,p=f.length,m=0,g=[],v=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=m},nextToken:function(e){if(v.length)return v.pop();if(!(p<=m)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case S:case E:case R:case O:case C:for(i=m;i+=1,(r=f.charCodeAt(i))===E||r===S||r===R||r===O||r===C;);d=["space",f.slice(m,i)],m=i-1;break;case x:case I:case A:case P:case N:case D:case M:var n=String.fromCharCode(r);d=[n,n,m];break;case T:if(l=g.length?g.pop()[1]:"",c=f.charCodeAt(m+1),"url"===l&&c!==w&&c!==b&&c!==E&&c!==S&&c!==R&&c!==C&&c!==O){i=m;do{if(s=!1,-1===(i=f.indexOf(")",i+1))){if(h||t){i=m;break}y("bracket")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["brackets",f.slice(m,i+1),m,i],m=i}else i=f.indexOf(")",m+1),l=f.slice(m,i+1),-1===i||B.test(l)?d=["(","(",m]:(d=["brackets",l,m,i],m=i);break;case w:case b:o=r===w?"'":'"',i=m;do{if(s=!1,-1===(i=f.indexOf(o,i+1))){if(h||t){i=m+1;break}y("string")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["string",f.slice(m,i+1),m,i],m=i;break;case F:U.lastIndex=m+1,U.test(f),i=0===U.lastIndex?f.length-1:U.lastIndex-2,d=["at-word",f.slice(m,i+1),m,i],m=i;break;case k:for(i=m,a=!0;f.charCodeAt(i+1)===k;)i+=1,a=!a;if(r=f.charCodeAt(i+1),a&&r!==_&&r!==E&&r!==S&&r!==R&&r!==O&&r!==C&&(i+=1,z.test(f.charAt(i)))){for(;z.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===E&&(i+=1)}d=["word",f.slice(m,i+1),m,i],m=i;break;default:m=(r===_&&f.charCodeAt(m+1)===L?(0===(i=f.indexOf("*/",m+2)+1)&&(h||t?i=f.length:y("comment")),d=["comment",f.slice(m,i+1),m,i]):(j.lastIndex=m+1,j.test(f),i=0===j.lastIndex?f.length-1:j.lastIndex-2,d=["word",f.slice(m,i+1),m,i],g.push(d)),i)}return m++,d}},position:function(){return m}}}}(),n=D1(),l=B1(),t=z1(),r=H1(),f={empty:!0,space:!0};return p1=k(function N(e){b(this,N),this.input=e,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new l;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Me(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Ne(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(Pe){a.e(Pe)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new n,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=e(this.input)}},{key:"decl",value:function(e,t){var n=new p;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(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;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)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));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),d="",f=u;0<f;f--){var h=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(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)}},{key:"endFile",value:function(){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())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(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)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!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()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,d=0;d<u;d+=1)"space"===(a=(i=n[d])[0])&&d===u-1&&!r||"comment"===a&&(a=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",f[a]||f[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}])}function V1(){var e,n,r;return v1||(v1=1,e=L1(),n=q1(),r=A1(),g1=t,e.registerParse(t["default"]=t)),g1;function t(e,t){e=new r(e,t),e=new n(e);try{e.parse()}catch(b){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===b.name&&t&&t.from&&(/\.scss$/i.test(t.from)?b.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?b.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(b.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),b}return e.root}}function G1(){var d,a,n,r,s,u,i,c,l,e,o,f,h,p,t,m;return w1||(w1=1,t=R1(),d=t.isClean,a=t.my,n=P1(),r=x1(),s=L1(),u=N1(),i=F1(),c=j1(),l=V1(),e=z1(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},h={Once:!0,postcssPlugin:!0,prepare:!0},p={},(t=k(function u(e,t,n){var r,i=this;if(b(this,u),this.stringified=!1,this.processed=!1,"object"!==I(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof u||t instanceof c)r=w(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=l;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch(X){this.processed=!0,this.error=X}r&&!r[a]&&s.rebuild(r)}else r=w(t);this.result=new c(e,r,n),this.helpers=Ae(Ae({},p),{},{postcss:p,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===I(e)&&e.prepare?Ae(Ae({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(Pe){console&&console.error&&console.error(Pe)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Me(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===I(i))for(var o in i){if(!f[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!h[o])if("object"===I(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(Pe){n.e(Pe)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(m=D(V().m(function e(){var t,i,n,r,o,a,s,u,l,c=this;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],g(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[d]){e.n=14;break}i[d]=!0,n=[y(i)];case 8:if(0<n.length){if(g(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Me(this.listeners.OnceExit),e.p=15,a=V().m(function Ae(){var t,n,r;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Ne(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},Ae,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(J(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return m.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===I(t)&&t.Once?"document"===this.result.root.type?g((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch(X){throw this.handleError(X)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=r,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new n(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Me(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(g(this.runOnRoot(n)))throw this.getAsyncError()}}catch(Pe){t.e(Pe)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[d];)r[d]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Me(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(Pe){o.e(Pe)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Me(e);try{for(r.s();!(n=r.n()).done;){var i=Ne(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(s))throw this.getAsyncError()}}catch(Pe){r.e(Pe)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Ne(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[d])return a[d]=!0,void e.push(y(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[d]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[d]=!0;var n,r=Me(v(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[d]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(Pe){r.e(Pe)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}])).registerPostcss=function(e){p=e},y1=t,e.registerLazyResult(t["default"]=t),u.registerLazyResult(t)),y1;function g(e){return"object"===I(e)&&"function"==typeof e.then}function v(e){var t=!1,n=o[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[d]=!1,e.nodes&&e.nodes.forEach(w),e}}function J1(){var n,r,t,e,i,o,a,s,u,l,c;return S1||(S1=1,k1||(k1=1,o=P1(),a=x1(),s=F1(),u=V1(),l=j1(),c=k(function c(e,t,n){b(this,c),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=a,r=(this.result=new l(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new o(e,void 0,this._opts,t));n.isMap()?(t=(e=Ne(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=u;try{e=t(this._css,this._opts)}catch(X){this.error=X}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),(b1=c)["default"]=c),n=b1,r=G1(),t=N1(),e=z1(),i=k(function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];b(this,t),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Me(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===I(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===I(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==I(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(Pe){r.e(Pe)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?r:n)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),(_1=i)["default"]=i,e.registerProcessor(i),t.registerProcessor(i)),_1}lk||(lk=1,t=xb(),K1=T1(),o=G1(),e=L1(),$1=J1(),d=x1(),m||(m=1,nk=T1(),rk=M1(),ik=D1(),ok=B1(),ak=A1(),sk=z1(),uk=H1(),(E1=ck)["default"]=ck),ir=E1,Z1=N1(),ny=U1(),Y1=D1(),X1=B1(),n=j1(),Be=A1(),lk=V1(),m=W1(),Q1=H1(),ek=z1(),tk=I1(),dk.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new $1).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return dk([i(n)]).process(e,t)},i},dk.stringify=d,dk.parse=lk,dk.fromJSON=ir,dk.list=m,dk.comment=function(e){return new Y1(e)},dk.atRule=function(e){return new X1(e)},dk.decl=function(e){return new K1(e)},dk.rule=function(e){return new Q1(e)},dk.root=function(e){return new ek(e)},dk.document=function(e){return new Z1(e)},dk.CssSyntaxError=t,dk.Declaration=K1,dk.Container=e,dk.Processor=$1,dk.Document=Z1,dk.Comment=Y1,dk.Warning=ny,dk.AtRule=X1,dk.Result=n,dk.Input=Be,dk.Rule=Q1,dk.Root=ek,dk.Node=tk,o.registerPostcss(dk),(tk=dk)["default"]=dk);var K1,$1,Z1,Y1,X1,Q1,ek,tk,nk,rk,ik,ok,ak,sk,uk,lk=(d=tk)&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d["default"]:d;function ck(e,t){if(Array.isArray(e))return e.map(function(e){return ck(e)});var n,r=e.inputs,i=q(e,kw);if(r){t=[];var o,a=Me(r);try{for(a.s();!(o=a.n()).done;){var s=Ae(Ae({},o.value),{},{__proto__:ak.prototype});s.map&&(s.map=Ae(Ae({},s.map),{},{__proto__:rk.prototype})),t.push(s)}}catch(Pe){a.e(Pe)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return ck(e,t)})),i.source&&(n=(r=i.source).inputId,r=q(r,_w),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new sk(i);if("decl"===i.type)return new nk(i);if("rule"===i.type)return new uk(i);if("comment"===i.type)return new ik(i);if("atrule"===i.type)return new ok(i);throw new Error("Unknown node type: "+e.type)}function dk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new $1(t)}lk.stringify;var fk=Object.defineProperty,hk=function(e,t,n){return e=e,t="symbol"!==I(t)?t+"":t,n=n,t in e?fk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};Date.now().toString();var pk,mk={exports:{}};var gk,vk,yk,wk,bk,kk=(yk=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?yk:("function"==typeof(wk=yk["default"])?(bk=function yk(){return this instanceof yk?Reflect.construct(wk,arguments,this.constructor):wk.apply(this,arguments)}).prototype=wk.prototype:bk={},Object.defineProperty(bk,"__esModule",{value:!0}),Object.keys(yk).forEach(function(e){var t=Object.getOwnPropertyDescriptor(yk,e);Object.defineProperty(bk,e,t.get?t:{enumerable:!0,get:function(){return yk[e]}})}),bk);function _k(){var d,f,e,t;return vk||(vk=1,pk||(pk=1,e=String,mk.exports=(t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}})(),mk.exports.createColors=t),d=mk.exports,f=kk,B(s,Q(Error)),t=k(s,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=d.isColorSupported);var n,i,o,a,s,t=(t=f&&e?f(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=d.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}]),(gk=t)["default"]=t),gk;function s(e,t,n,r,i,o){var a;return b(this,s),(a=Le(this,s,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,s),a}}var Sk,Ek,Ck,Rk,Ok,xk,Ik,Tk,Mk,Ak,Pk,Dk,Lk,Nk,Fk,Uk,jk,Bk,zk,Wk,Hk,qk,Vk,Gk,Jk,Kk,$k,Zk,Yk,Xk,Qk,e_,t_,n_,r_,i_,o_,a_,s_,u_,l_,c_,d_,f_,h_,p_,m_,g_,v_,y_,w_,b_={};function k_(){return Sk||(Sk=1,b_.isClean=Symbol("isClean"),b_.my=Symbol("my")),b_}function __(){var a,t;return Ck||(a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!(Ck=1)},t=k(function t(e){b(this,t),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="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"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=a[n]),o.rawCache[n]=r)):a[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),(Ek=t)["default"]=t),Ek}function S_(){var n;return Ok||(Ok=1,n=__(),(Rk=e)["default"]=e),Rk;function e(e,t){new n(t).stringify(e)}}function E_(){var o,a,s,i,n,r,e;return Ik||(Ik=1,a=(o=k_()).isClean,s=o.my,i=_k(),n=__(),r=S_(),e=k(function o(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in b(this,o),this.raws={},this[a]=!1,this[s]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Me(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(Pe){r.e(Pe)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(i=I(r=e[n]),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new i(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[a]){this[a]=!1;for(var e=this;e=e.parent;)e[a]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new n).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===I(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===I(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Fe(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),(xk=e)["default"]=e),xk}function C_(){var e;return Mk||(Mk=1,B(t,E_()),e=k(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),(Tk=e)["default"]=e),Tk;function t(e){return b(this,t),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Ae(Ae({},e),{},{value:String(e.value)})),(e=Le(this,t,[e])).type="decl",e}}function R_(){var r,i,t,n,o,a,s;return Lk||(Lk=1,r=kk.SourceMapConsumer,i=kk.SourceMapGenerator,t=kk.existsSync,n=kk.readFileSync,o=kk.dirname,a=kk.join,s=k(function s(e,t){b(this,s),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===I(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=o(e),t(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=a(o(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),(Dk=s)["default"]=s),Dk}function O_(){var n,a,u,s,r,i,e,l,o,c,d,f,t;return Fk||(Fk=1,n=kk.SourceMapConsumer,t=kk.SourceMapGenerator,a=kk.fileURLToPath,u=kk.pathToFileURL,s=kk.isAbsolute,r=kk.resolve,i=(Pk?Ak:(Pk=1,Ak={nanoid:function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:21;return function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r;t--;)e+=n[Math.random()*n.length|0];return e}}})).nanoid,e=kk,l=_k(),o=R_(),c=Symbol("fromOffsetCache"),d=Boolean(n&&t),f=Boolean(r&&s),t=k(function n(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(b(this,n),null==e||"object"===I(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));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&&(!f||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=r(t.from)),f&&d&&(e=new o(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===I(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new l(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new l(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(u&&(o.input.url=u(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[c])n=this[c];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[c]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=s(t.source)?u(t.source):new URL(t.source,this.map.consumer().sourceRoot||u(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");r.file=a(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Ae({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),(Nk=t)["default"]=t,e&&e.registerInput&&e.registerInput(t)),Nk}function x_(){if(jk)return Uk;jk=1;var a=kk.SourceMapConsumer,t=kk.SourceMapGenerator,s=kk.dirname,n=kk.relative,r=kk.resolve,i=kk.sep,o=kk.pathToFileURL,u=O_(),e=Boolean(a&&t),l=Boolean(s&&r&&n&&i);return Uk=k(function j(e,t,n,r){b(this,j),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var 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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Me(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||s(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new a(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(Pe){t.e(Pe)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;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,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),l&&e&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})):(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>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?s(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=s(r(t,this.mapOpts.annotation))),t=n(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new u(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(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))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o)return t=o(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}])}function I_(){var e;return zk||(zk=1,B(t,E_()),e=k(t),(Bk=e)["default"]=e),Bk;function t(e){return b(this,t),(e=Le(this,t,[e])).type="comment",e}}function T_(){var l,c,d,t,e,f,h,p,m,n;return Hk||(Hk=1,e=k_(),f=e.isClean,h=e.my,p=C_(),m=I_(),B(g,E_()),(n=k(g,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Me(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(Pe){s.e(Pe)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if($(g,"cleanRaws",this,3)([e]),this.nodes){var t,n=Me(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(Pe){n.e(Pe)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return De(r[o],r,Fe(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return De(i,void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(Pe){s.e(Pe)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(Pe){s.e(Pe)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function q(e){return e.map(function(e){return e.nodes&&(e.nodes=q(e.nodes)),delete e.source,e})}(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Me(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(Pe){i.e(Pe)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Me(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(Pe){s.e(Pe)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new p(e)]}else if(e.selector)e=[new c(e)];else if(e.name)e=[new d(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new m(e)]}return e.map(function(e){return e[h]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[f]&&function c(e){if(e[f]=!1,e.proxyOf.nodes){var t,n=Me(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)c(t.value)}catch(Pe){n.e(Pe)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Me(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Me(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(Pe){l.e(Pe)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(Pe){i.e(Pe)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Me(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(Pe){t.e(Pe)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(De){throw e.addToError(De)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])).registerParse=function(e){l=e},n.registerRule=function(e){c=e},n.registerAtRule=function(e){d=e},n.registerRoot=function(e){t=e},((Wk=n)["default"]=n).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,d.prototype):"rule"===e.type?Object.setPrototypeOf(e,c.prototype):"decl"===e.type?Object.setPrototypeOf(e,p.prototype):"comment"===e.type?Object.setPrototypeOf(e,m.prototype):"root"===e.type&&Object.setPrototypeOf(e,t.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(function(e){n.rebuild(e)})}),Wk;function g(){return b(this,g),Le(this,g,arguments)}}function M_(){var t,n,e;return Vk||(Vk=1,B(r,T_()),(e=k(r,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},e.registerProcessor=function(e){n=e},(qk=e)["default"]=e),qk;function r(e){return b(this,r),(e=Le(this,r,[Ae({type:"document"},e)])).nodes||(e.nodes=[]),e}}function A_(){if(Jk)return Gk;Jk=1;var t={};return Gk=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function P_(){var r;return $k||($k=1,r=k(function r(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in b(this,r),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){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}}]),(Kk=r)["default"]=r),Kk}function D_(){var n,r;return Yk||(Yk=1,n=P_(),r=k(function r(e,t,n){b(this,r),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new n(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),(Zk=r)["default"]=r),Zk}function L_(){var e,t;return t_||(t_=1,B(r,e=T_()),t=k(r,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(r,"prepend",this,3)(t)}}]),(e_=t)["default"]=t,e.registerAtRule(t)),e_;function r(e){return b(this,r),(e=Le(this,r,[e])).type="atrule",e}}function N_(){var t,n,e,r;return r_||(r_=1,B(o,e=T_()),(r=k(o,[{key:"normalize",value:function(e,t,n){e=$(o,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Me(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(Pe){i.e(Pe)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),$(o,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},r.registerProcessor=function(e){n=e},n_=r,e.registerRoot(r["default"]=r)),n_;function o(e){return b(this,o),(e=Le(this,o,[e])).type="root",e.nodes||(e.nodes=[]),e}}function F_(){var t;return o_||(o_=1,(i_=t={comma:function(e){return t.split(e,[","],!0)},space:function(e){return t.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,d=Me(e);try{for(d.s();!(r=d.n()).done;){var f=r.value;c?c=!1:"\\"===f?c=!0:u?f===l&&(u=!1):'"'===f||"'"===f?(u=!0,l=f):"("===f?s+=1:")"===f?0<s&&--s:0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}}catch(Pe){d.e(Pe)}finally{d.f()}return!n&&""===o||i.push(o.trim()),i}})["default"]=t),i_}function U_(){var e,t,n;return s_||(s_=1,e=T_(),t=F_(),B(r,e),n=k(r,[{key:"selectors",get:function(){return t.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}]),(a_=n)["default"]=n,e.registerRule(n)),a_;function r(e){return b(this,r),(e=Le(this,r,[e])).type="rule",e.nodes||(e.nodes=[]),e}}function j_(){if(l_)return u_;l_=1;var p=C_(),e=function(){if(Qk)return Xk;Qk=1;var w="'".charCodeAt(0),b='"'.charCodeAt(0),k="\\".charCodeAt(0),_="/".charCodeAt(0),S="\n".charCodeAt(0),E=" ".charCodeAt(0),C="\f".charCodeAt(0),R="\t".charCodeAt(0),O="\r".charCodeAt(0),x="[".charCodeAt(0),I="]".charCodeAt(0),T="(".charCodeAt(0),M=")".charCodeAt(0),A="{".charCodeAt(0),P="}".charCodeAt(0),D=";".charCodeAt(0),L="*".charCodeAt(0),N=":".charCodeAt(0),F="@".charCodeAt(0),U=/[\t\n\f\r "#'()/;[\\\]{}]/g,j=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\r\n"'(/\\]/,z=/[\da-f]/i;return Xk=function(t){var r,i,o,a,s,u,l,c,d,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},f=t.css.valueOf(),h=e.ignoreErrors,p=f.length,m=0,g=[],v=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=m},nextToken:function(e){if(v.length)return v.pop();if(!(p<=m)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case S:case E:case R:case O:case C:for(i=m;i+=1,(r=f.charCodeAt(i))===E||r===S||r===R||r===O||r===C;);d=["space",f.slice(m,i)],m=i-1;break;case x:case I:case A:case P:case N:case D:case M:var n=String.fromCharCode(r);d=[n,n,m];break;case T:if(l=g.length?g.pop()[1]:"",c=f.charCodeAt(m+1),"url"===l&&c!==w&&c!==b&&c!==E&&c!==S&&c!==R&&c!==C&&c!==O){i=m;do{if(s=!1,-1===(i=f.indexOf(")",i+1))){if(h||t){i=m;break}y("bracket")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["brackets",f.slice(m,i+1),m,i],m=i}else i=f.indexOf(")",m+1),l=f.slice(m,i+1),-1===i||B.test(l)?d=["(","(",m]:(d=["brackets",l,m,i],m=i);break;case w:case b:o=r===w?"'":'"',i=m;do{if(s=!1,-1===(i=f.indexOf(o,i+1))){if(h||t){i=m+1;break}y("string")}for(u=i;f.charCodeAt(u-1)===k;)--u,s=!s}while(s);d=["string",f.slice(m,i+1),m,i],m=i;break;case F:U.lastIndex=m+1,U.test(f),i=0===U.lastIndex?f.length-1:U.lastIndex-2,d=["at-word",f.slice(m,i+1),m,i],m=i;break;case k:for(i=m,a=!0;f.charCodeAt(i+1)===k;)i+=1,a=!a;if(r=f.charCodeAt(i+1),a&&r!==_&&r!==E&&r!==S&&r!==R&&r!==O&&r!==C&&(i+=1,z.test(f.charAt(i)))){for(;z.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===E&&(i+=1)}d=["word",f.slice(m,i+1),m,i],m=i;break;default:m=(r===_&&f.charCodeAt(m+1)===L?(0===(i=f.indexOf("*/",m+2)+1)&&(h||t?i=f.length:y("comment")),d=["comment",f.slice(m,i+1),m,i]):(j.lastIndex=m+1,j.test(f),i=0===j.lastIndex?f.length-1:j.lastIndex-2,d=["word",f.slice(m,i+1),m,i],g.push(d)),i)}return m++,d}},position:function(){return m}}}}(),n=I_(),l=L_(),t=N_(),r=U_(),f={empty:!0,space:!0};return u_=k(function N(e){b(this,N),this.input=e,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new l;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Me(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Ne(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(Pe){a.e(Pe)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new n,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=e(this.input)}},{key:"decl",value:function(e,t){var n=new p;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(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;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)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));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),d="",f=u;0<f;f--){var h=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(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)}},{key:"endFile",value:function(){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())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(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)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!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()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,d=0;d<u;d+=1)"space"===(a=(i=n[d])[0])&&d===u-1&&!r||"comment"===a&&(a=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",f[a]||f[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}])}function B_(){var e,n,r;return d_||(d_=1,e=T_(),n=j_(),r=O_(),c_=t,e.registerParse(t["default"]=t)),c_;function t(e,t){e=new r(e,t),e=new n(e);try{e.parse()}catch(b){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===b.name&&t&&t.from&&(/\.scss$/i.test(t.from)?b.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?b.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(b.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),b}return e.root}}function z_(){var d,a,n,r,s,u,i,c,l,e,o,f,h,p,t,m;return h_||(h_=1,t=k_(),d=t.isClean,a=t.my,n=x_(),r=S_(),s=T_(),u=M_(),i=A_(),c=D_(),l=B_(),e=N_(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},h={Once:!0,postcssPlugin:!0,prepare:!0},p={},(t=k(function u(e,t,n){var r,i=this;if(b(this,u),this.stringified=!1,this.processed=!1,"object"!==I(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof u||t instanceof c)r=w(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=l;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch(X){this.processed=!0,this.error=X}r&&!r[a]&&s.rebuild(r)}else r=w(t);this.result=new c(e,r,n),this.helpers=Ae(Ae({},p),{},{postcss:p,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===I(e)&&e.prepare?Ae(Ae({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(Pe){console&&console.error&&console.error(Pe)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Me(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===I(i))for(var o in i){if(!f[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!h[o])if("object"===I(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(Pe){n.e(Pe)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(m=D(V().m(function e(){var t,i,n,r,o,a,s,u,l,c=this;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],g(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[d]){e.n=14;break}i[d]=!0,n=[y(i)];case 8:if(0<n.length){if(g(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Me(this.listeners.OnceExit),e.p=15,a=V().m(function Ae(){var t,n,r;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Ne(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},Ae,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(J(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return m.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===I(t)&&t.Once?"document"===this.result.root.type?g((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch(X){throw this.handleError(X)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=r,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new n(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Me(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(g(this.runOnRoot(n)))throw this.getAsyncError()}}catch(Pe){t.e(Pe)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[d];)r[d]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Me(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(Pe){o.e(Pe)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Me(e);try{for(r.s();!(n=r.n()).done;){var i=Ne(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(s))throw this.getAsyncError()}}catch(Pe){r.e(Pe)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Ne(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[d])return a[d]=!0,void e.push(y(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[d]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[d]=!0;var n,r=Me(v(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[d]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(Pe){r.e(Pe)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}])).registerPostcss=function(e){p=e},f_=t,e.registerLazyResult(t["default"]=t),u.registerLazyResult(t)),f_;function g(e){return"object"===I(e)&&"function"==typeof e.then}function v(e){var t=!1,n=o[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[d]=!1,e.nodes&&e.nodes.forEach(w),e}}function W_(){var n,r,t,e,i,o,a,s,u,l,c;return v_||(v_=1,m_||(m_=1,o=x_(),a=S_(),s=A_(),u=B_(),l=D_(),c=k(function c(e,t,n){b(this,c),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=a,r=(this.result=new l(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new o(e,void 0,this._opts,t));n.isMap()?(t=(e=Ne(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=u;try{e=t(this._css,this._opts)}catch(X){this.error=X}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),(p_=c)["default"]=c),n=p_,r=z_(),t=M_(),e=N_(),i=k(function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];b(this,t),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Me(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===I(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===I(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==I(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(Pe){r.e(Pe)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?r:n)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),(g_=i)["default"]=i,e.registerProcessor(i),t.registerProcessor(i)),g_}OC||(OC=1,m=_k(),H_=C_(),t=z_(),e=T_(),q_=W_(),ny=S_(),WR||(WR=1,Z_=C_(),Y_=R_(),X_=I_(),Q_=L_(),eS=O_(),tS=N_(),nS=U_(),(y_=rS)["default"]=rS),n=y_,V_=M_(),Be=P_(),G_=I_(),J_=L_(),o=D_(),d=O_(),lk=B_(),OC=F_(),K_=U_(),$_=N_(),WR=E_(),iS.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new q_).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return iS([i(n)]).process(e,t)},i},iS.stringify=ny,iS.parse=lk,iS.fromJSON=n,iS.list=OC,iS.comment=function(e){return new G_(e)},iS.atRule=function(e){return new J_(e)},iS.decl=function(e){return new H_(e)},iS.rule=function(e){return new K_(e)},iS.root=function(e){return new $_(e)},iS.document=function(e){return new V_(e)},iS.CssSyntaxError=m,iS.Declaration=H_,iS.Container=e,iS.Processor=q_,iS.Document=V_,iS.Comment=G_,iS.Warning=Be,iS.AtRule=J_,iS.Result=o,iS.Input=d,iS.Rule=K_,iS.Root=$_,iS.Node=WR,t.registerPostcss(iS),(w_=iS)["default"]=iS);var H_,q_,V_,G_,J_,K_,$_,Z_,Y_,X_,Q_,eS,tS,nS,lk=(ny=w_)&&ny.__esModule&&Object.prototype.hasOwnProperty.call(ny,"default")?ny["default"]:ny;function rS(e,t){if(Array.isArray(e))return e.map(function(e){return rS(e)});var n,r=e.inputs,i=q(e,Sw);if(r){t=[];var o,a=Me(r);try{for(a.s();!(o=a.n()).done;){var s=Ae(Ae({},o.value),{},{__proto__:eS.prototype});s.map&&(s.map=Ae(Ae({},s.map),{},{__proto__:Y_.prototype})),t.push(s)}}catch(Pe){a.e(Pe)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return rS(e,t)})),i.source&&(n=(r=i.source).inputId,r=q(r,Ew),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new tS(i);if("decl"===i.type)return new Z_(i);if("rule"===i.type)return new nS(i);if("comment"===i.type)return new X_(i);if("atrule"===i.type)return new Q_(i);throw new Error("Unknown node type: "+e.type)}function iS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new q_(t)}lk.stringify;var oS=k(cS,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(e){if(e instanceof cS&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}]),aS={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},sS={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},uS={},lS={};function cS(){b(this,cS),hk(this,"parentElement",null),hk(this,"parentNode",null),hk(this,"ownerDocument"),hk(this,"firstChild",null),hk(this,"lastChild",null),hk(this,"previousSibling",null),hk(this,"nextSibling",null),hk(this,"ELEMENT_NODE",1),hk(this,"TEXT_NODE",3),hk(this,"nodeType"),hk(this,"nodeName"),hk(this,"RRNodeType")}function dS(e){if(uS[e])return uS[e];var t=globalThis[e],n=t.prototype,r=e in aS?aS[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in sS?sS[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return uS[e]=t.prototype,t.prototype;try{var o,a,s=document.createElement("iframe"),u=(s.style.display="none",document.body.appendChild(s),s.contentWindow);return u?(o=u[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),lS[e]=function(){return s.remove()}):s.remove(),uS[e]=o):(s.remove(),n):t.prototype}catch(F){return n}}var fS={};function hS(e,t,n){var r="".concat(e,".").concat(String(n));return fS[r]?fS[r].call(t):(e=dS(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(fS[r]=e).call(t):t[n])}var pS={};function mS(e,t,n){var r="".concat(e,".").concat(String(n));return pS[r]?pS[r].bind(t):"function"!=typeof(e=dS(e)[n])?t[n]:(pS[r]=e).bind(t)}function gS(){var e;return[dS("MutationObserver").constructor,null!=(e=lS.MutationObserver)?e:function(){}]}var vS=Date.now;function yS(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(Le){return function(){}}}var wS={ownerDocument:function(e){return hS("Node",e,"ownerDocument")},childNodes:function(e){return hS("Node",e,"childNodes")},parentNode:function(e){return hS("Node",e,"parentNode")},parentElement:function(e){return hS("Node",e,"parentElement")},textContent:function(e){return hS("Node",e,"textContent")},contains:function(e,t){return mS("Node",e,"contains")(t)},getRootNode:function(e){return mS("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?hS("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?hS("Element",e,"shadowRoot"):null},querySelector:function(e,t){return hS("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return hS("Element",e,"querySelectorAll")(t)},nowTimestamp:vS=/[1-9][0-9]{12}/.test(Date.now().toString())?vS:function(){return(new Date).getTime()},mutationObserverCtor:gS,patch:yS};function bS(e,t,n){var r=2<arguments.length&&n!==undefined?n:document,i={capture:!0,passive:!0};return r.addEventListener(e,t,i),function(){return r.removeEventListener(e,t,i)}}var kS="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.",n={map:{},getId:function(){return console.error(kS),-1},getNode:function(){return console.error(kS),null},removeNodeFromMap:function(){console.error(kS)},has:function(){return console.error(kS),!1},reset:function(){console.error(kS)}};function _S(a,s,e){var u=2<arguments.length&&e!==undefined?e:{},l=null,c=0;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Date.now(),i=(c||!1!==u.leading||(c=r),s-(r-c)),o=this;i<=0||s<i?(l&&(clearTimeout(l),l=null),c=r,a.apply(o,t)):l||!1===u.trailing||(l=setTimeout(function(){c=!1===u.leading?0:Date.now(),l=null,a.apply(o,t)},i))}}function SS(e,t,n,r,i){var i=4<arguments.length&&i!==undefined?i:window,o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return SS(e,t,o||{},!0)}}function ES(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=wS.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=wS.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function CS(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function RS(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function OS(e){return e?e.nodeType===e.ELEMENT_NODE?e:wS.parentElement(e):null}function xS(e,t,n,r){if(e){e=OS(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return 1;if(r&&null!==e.closest("."+t))return 1}else if(pb(e,t,r))return 1}catch(Le){}if(n){if(e.matches(n))return 1;if(r&&null!==e.closest(n))return 1}}}}function IS(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||-2===t.getId(e)}function TS(e){return Boolean(e.changedTouches)}function MS(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function AS(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function PS(e){return e&&(e instanceof oS&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(wS.shadowRoot(e)))}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(n,{get:function(e,t,n){return"map"===t&&console.error(kS),Reflect.get(e,t,n)}});var DS=k(function _(){b(this,_),p(this,"id",1),p(this,"styleIDMap",new WeakMap),p(this,"idStyleMap",new Map)},[{key:"getId",value:function(e){return null!=(e=this.styleIDMap.get(e))?e:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(t=void 0===t?this.id++:t,this.styleIDMap.set(e,t),this.idStyleMap.set(t,e),t)}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]);function LS(e){var t,n=null;return n="getRootNode"in e&&(null==(t=wS.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&wS.host(wS.getRootNode(e))?wS.host(wS.getRootNode(e)):n}function NS(e){var n,t=wS.ownerDocument(e);return t&&(wS.contains(t,e)||(n=e,!!(t=wS.ownerDocument(n))&&(e=function(){for(var e,t=n;e=LS(t);)t=e;return t}(),wS.contains(t,e))))}(OC={})[OC.DomContentLoaded=0]="DomContentLoaded",OC[OC.Load=1]="Load",OC[OC.FullSnapshot=2]="FullSnapshot",OC[OC.IncrementalSnapshot=3]="IncrementalSnapshot",OC[OC.Meta=4]="Meta",OC[OC.Custom=5]="Custom",OC[OC.Plugin=6]="Plugin",OC[OC.Asset=7]="Asset";var FS=OC,US=((m=US||{})[m.Mutation=0]="Mutation",m[m.MouseMove=1]="MouseMove",m[m.MouseInteraction=2]="MouseInteraction",m[m.Scroll=3]="Scroll",m[m.ViewportResize=4]="ViewportResize",m[m.Input=5]="Input",m[m.TouchMove=6]="TouchMove",m[m.MediaInteraction=7]="MediaInteraction",m[m.StyleSheetRule=8]="StyleSheetRule",m[m.CanvasMutation=9]="CanvasMutation",m[m.Font=10]="Font",m[m.Log=11]="Log",m[m.Drag=12]="Drag",m[m.StyleDeclaration=13]="StyleDeclaration",m[m.Selection=14]="Selection",m[m.AdoptedStyleSheet=15]="AdoptedStyleSheet",m[m.CustomElement=16]="CustomElement",m),jS=((e=jS||{})[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e),BS=((Be=BS||{})[Be.Mouse=0]="Mouse",Be[Be.Pen=1]="Pen",Be[Be.Touch=2]="Touch",Be),zS=((o={})[o["2D"]=0]="2D",o[o.WebGL=1]="WebGL",o[o.WebGL2=2]="WebGL2",o),WS=((d=WS||{})[d.Play=0]="Play",d[d.Pause=1]="Pause",d[d.Seeked=2]="Seeked",d[d.VolumeChange=3]="VolumeChange",d[d.RateChange=4]="RateChange",d),HS=((WR={})[WR.Document=0]="Document",WR[WR.DocumentType=1]="DocumentType",WR[WR.Element=2]="Element",WR[WR.Text=3]="Text",WR[WR.CDATA=4]="CDATA",WR[WR.Comment=5]="Comment",WR);function qS(e){return"__ln"in e}var VS,GS=k(function _(){b(this,_),p(this,"length",0),p(this,"head",null),p(this,"tail",null)},[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&qS(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&qS(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.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--)}}]),JS=function(e,t){return"".concat(e,"@").concat(t)},KS=k(function _(){var w=this;b(this,_),p(this,"frozen",!1),p(this,"locked",!1),p(this,"texts",[]),p(this,"attributes",[]),p(this,"attributeMap",new WeakMap),p(this,"removes",[]),p(this,"mapRemoves",[]),p(this,"movedMap",{}),p(this,"addedSet",new Set),p(this,"movedSet",new Set),p(this,"droppedSet",new Set),p(this,"removesSubTreeCache",new Set),p(this,"mutationCb"),p(this,"blockClass"),p(this,"blockSelector"),p(this,"maskTextClass"),p(this,"maskTextSelector"),p(this,"inlineStylesheet"),p(this,"maskInputOptions"),p(this,"maskTextFn"),p(this,"maskInputFn"),p(this,"keepIframeSrcFn"),p(this,"recordCanvas"),p(this,"inlineImages"),p(this,"slimDOMOptions"),p(this,"dataURLOptions"),p(this,"doc"),p(this,"mirror"),p(this,"iframeManager"),p(this,"stylesheetManager"),p(this,"shadowDomManager"),p(this,"canvasManager"),p(this,"processedNodeManager"),p(this,"unattachedDoc"),p(this,"processMutations",function(e){e.forEach(w.processMutation),w.emit()}),p(this,"emit",function(){if(!w.frozen&&!w.locked){for(var i=[],o=new Set,a=new GS,s=function(e){for(var t=e,n=-2;-2===n;)n=(t=t&&t.nextSibling)&&w.mirror.getId(t);return n},e=function(t){var e=wS.parentNode(t);if(e&&NS(t)){var n=!1;if(t.nodeType===Node.TEXT_NODE){var r=e.tagName;if("TEXTAREA"===r)return;"STYLE"===r&&w.addedSet.has(e)&&(n=!0)}r=zw(e)?w.mirror.getId(LS(t)):w.mirror.getId(e),e=s(t);if(-1===r||-1===e)return a.addNode(t);n=wb(t,{doc:w.doc,mirror:w.mirror,blockClass:w.blockClass,blockSelector:w.blockSelector,maskTextClass:w.maskTextClass,maskTextSelector:w.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:w.inlineStylesheet,maskInputOptions:w.maskInputOptions,maskTextFn:w.maskTextFn,maskInputFn:w.maskInputFn,slimDOMOptions:w.slimDOMOptions,dataURLOptions:w.dataURLOptions,recordCanvas:w.recordCanvas,inlineImages:w.inlineImages,onSerialize:function(e){MS(e,w.mirror)&&w.iframeManager.addIframe(e),AS(e,w.mirror)&&w.stylesheetManager.trackLinkElement(e),PS(t)&&w.shadowDomManager.addShadowRoot(wS.shadowRoot(t),w.doc)},onIframeLoad:function(e,t){w.iframeManager.attachIframe(e,t),w.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,t){w.stylesheetManager.attachLinkElement(e,t)},cssCaptured:n});n&&(i.push({parentId:r,nextId:e,node:n}),o.add(n.id))}};w.mapRemoves.length;)w.mirror.removeNodeFromMap(w.mapRemoves.shift());var t,n=Me(w.movedSet);try{for(n.s();!(t=n.n()).done;){var r=t.value;ZS(w.removesSubTreeCache,r,w.mirror)&&!w.movedSet.has(wS.parentNode(r))||e(r)}}catch(Pe){n.e(Pe)}finally{n.f()}var u,l=Me(w.addedSet);try{for(l.s();!(u=l.n()).done;){var c=u.value;!YS(w.droppedSet,c)&&!ZS(w.removesSubTreeCache,c,w.mirror)||YS(w.movedSet,c)?e(c):w.droppedSet.add(c)}}catch(Pe){l.e(Pe)}finally{l.f()}for(var d=null;a.length;){var f,h,p=null;if(!(p=d&&(f=w.mirror.getId(wS.parentNode(d.value)),h=s(d.value),-1!==f)&&-1!==h?d:p))for(var m=a.tail;m;){var g=m,m=m.previous;if(g){var v=w.mirror.getId(wS.parentNode(g.value));if(-1!==s(g.value)){if(-1!==v){p=g;break}v=g.value,v=wS.parentNode(v);if(v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE){v=wS.host(v);if(-1!==w.mirror.getId(v)){p=g;break}}}}}if(!p){for(;a.head;)a.removeNode(a.head.value);break}d=p.previous,a.removeNode(p.value),e(p.value)}var y={texts:w.texts.map(function(e){var t=e.node,n=wS.parentNode(t);return n&&"TEXTAREA"===n.tagName&&w.genTextAreaValueMutation(n),{id:w.mirror.getId(t),value:e.value}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),attributes:w.attributes.map(function(e){var t,n,r=e.attributes;return"string"==typeof r.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<r.style.length)&&(t+n).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff),{id:w.mirror.getId(e.node),attributes:r}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),removes:w.removes,adds:i};(y.texts.length||y.attributes.length||y.removes.length||y.adds.length)&&(w.texts=[],w.attributes=[],w.attributeMap=new WeakMap,w.removes=[],w.addedSet=new Set,w.movedSet=new Set,w.droppedSet=new Set,w.removesSubTreeCache=new Set,w.movedMap={},w.mutationCb(y))}}),p(this,"genTextAreaValueMutation",function(e){var t=w.attributeMap.get(e),n=(t||(w.attributes.push(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}}),w.attributeMap.set(e,t)),Array.from(wS.childNodes(e),function(e){return wS.textContent(e)||""}).join(""));t.attributes.value=Gw({element:e,maskInputOptions:w.maskInputOptions,tagName:e.tagName,type:Kw(e),value:n,maskInputFn:w.maskInputFn})}),p(this,"processMutation",function(a){if(!IS(a.target,w.mirror,w.slimDOMOptions))switch(a.type){case"characterData":var e=wS.textContent(a.target);xS(a.target,w.blockClass,w.blockSelector,!1)||e===a.oldValue||w.texts.push({value:mb(a.target,w.maskTextClass,w.maskTextSelector,!0)&&e?w.maskTextFn?w.maskTextFn(e,OS(a.target)):e.replace(/[\S]/g,"*"):e,node:a.target});break;case"attributes":var t,n=a.target,e=a.attributeName,s=a.target.getAttribute(e);if("value"===e&&(t=Kw(n),s=Gw({element:n,maskInputOptions:w.maskInputOptions,tagName:n.tagName,type:t,value:s,maskInputFn:w.maskInputFn})),!xS(a.target,w.blockClass,w.blockSelector,!1)&&s!==a.oldValue){var r=w.attributeMap.get(a.target);if("IFRAME"===n.tagName&&"src"===e&&!w.keepIframeSrcFn(s)){if(n.contentDocument)return;e="rr_src"}if(r||(r={node:a.target,attributes:{},styleDiff:{},_unchangedStyles:{}},w.attributes.push(r),w.attributeMap.set(a.target,r)),"type"===e&&"INPUT"===n.tagName&&"password"===(a.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!hb(n.tagName,e))if(r.attributes[e]=fb(w.doc,Jw(n.tagName),Jw(e),s),"style"===e){if(!w.unattachedDoc)try{w.unattachedDoc=document.implementation.createHTMLDocument()}catch(Ae){w.unattachedDoc=w.doc}var i=w.unattachedDoc.createElement("span");a.oldValue&&i.setAttribute("style",a.oldValue);for(var o=0,u=Array.from(n.style);o<u.length;o++){var l=u[o],c=n.style.getPropertyValue(l),d=n.style.getPropertyPriority(l);c!==i.style.getPropertyValue(l)||d!==i.style.getPropertyPriority(l)?r.styleDiff[l]=""===d?c:[c,d]:r._unchangedStyles[l]=[c,d]}for(var f=0,h=Array.from(i.style);f<h.length;f++){var p=h[f];""===n.style.getPropertyValue(p)&&(r.styleDiff[p]=!1)}}else"open"===e&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?r.attributes.rr_open_mode="modal":r.attributes.rr_open_mode="non-modal")}break;case"childList":return xS(a.target,w.blockClass,w.blockSelector,!0)?void 0:"TEXTAREA"===a.target.tagName?void w.genTextAreaValueMutation(a.target):(a.addedNodes.forEach(function(e){return w.genAdds(e,a.target)}),void a.removedNodes.forEach(function(e){var t=w.mirror.getId(e),n=zw(a.target)?w.mirror.getId(wS.host(a.target)):w.mirror.getId(a.target);if(!xS(a.target,w.blockClass,w.blockSelector,!1)&&!IS(e,w.mirror,w.slimDOMOptions)&&-1!==w.mirror.getId(e)){if(w.addedSet.has(e))$S(w.addedSet,e),w.droppedSet.add(e);else if(!(w.addedSet.has(a.target)&&-1===t||function s(e,t){var n;return!zw(e)&&(n=t.getId(e),!t.has(n)||(!(n=wS.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||s(n,t)))}(a.target,w.mirror)))if(w.movedSet.has(e)&&w.movedMap[JS(t,n)])$S(w.movedSet,e);else{w.removes.push({parentId:n,id:t,isShadow:!(!zw(a.target)||!Ww(a.target))||void 0});for(var r=w.removesSubTreeCache,i=[e];i.length;){var o=i.pop();r.has(o)||(r.add(o),wS.childNodes(o).forEach(function(e){return i.push(e)}))}}w.mapRemoves.push(e)}}))}}),p(this,"genAdds",function(t,e){if(!w.processedNodeManager.inOtherBuffer(t,w)&&!w.addedSet.has(t)&&!w.movedSet.has(t)){if(w.mirror.hasNode(t)){if(IS(t,w.mirror,w.slimDOMOptions))return;w.movedSet.add(t);var n=null;(n=e&&w.mirror.hasNode(e)?w.mirror.getId(e):n)&&-1!==n&&(w.movedMap[JS(w.mirror.getId(t),n)]=!0)}else w.addedSet.add(t),w.droppedSet["delete"](t);xS(t,w.blockClass,w.blockSelector,!1)||(wS.childNodes(t).forEach(function(e){return w.genAdds(e)}),PS(t)&&wS.childNodes(wS.shadowRoot(t)).forEach(function(e){w.processedNodeManager.add(e,w),w.genAdds(e,t)}))}})},[{key:"init",value:function(t){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(e){n[e]=t[e]})}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]);function $S(t,e){t["delete"](e),wS.childNodes(e).forEach(function(e){return $S(t,e)})}function ZS(e,t){return 0!==e.size&&(e=e,t=wS.parentNode(t))&&e.has(t)}function YS(e,t){return 0!==e.size&&function C(e,t){t=wS.parentNode(t);return!!t&&(!!e.has(t)||C(e,t))}(e,t)}var XS=function(e){return VS?function(){try{return e.apply(void 0,arguments)}catch(X){if(!VS||!0!==VS(X))throw X}}:e},QS=[];function eE(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(C){}return e&&e.target}function tE(e,t){var n=new KS,e=(QS.push(n),n.init(e),Ne(gS(),2)),r=e[0],e=e[1],n=new r(XS(n.processMutations.bind(n)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[n,e]}function nE(e){var t,r,a,s=e.mouseInteractionCb,i=e.doc,u=e.mirror,l=e.blockClass,c=e.blockSelector,e=e.sampling;return!1===e.mouseInteraction?function(){}:(t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[],a=null,Object.keys(jS).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]}).forEach(function(e){var o,t=Jw(e),n=(o=e,function(e){var t=eE(e);if(!xS(t,l,c,!0)){var n=null,r=o;if("pointerType"in e){switch(e.pointerType){case"mouse":n=BS.Mouse;break;case"touch":n=BS.Touch;break;case"pen":n=BS.Pen}n===BS.Touch?jS[o]===jS.MouseDown?r="TouchStart":jS[o]===jS.MouseUp&&(r="TouchEnd"):BS.Pen}else TS(e)&&(n=BS.Touch);null!==n?(a=n,(r.startsWith("Touch")&&n===BS.Touch||r.startsWith("Mouse")&&n===BS.Mouse)&&(n=null)):jS[o]===jS.Click&&(n=a,a=null);var i,e=TS(e)?e.changedTouches[0]:e;e&&(t=u.getId(t),i=e.clientX,e=e.clientY,XS(s)(Ae({type:jS[r],id:t,x:i,y:e},null!==n&&{pointerType:n})))}});if(window.PointerEvent)switch(jS[e]){case jS.MouseDown:case jS.MouseUp:t=t.replace("mouse","pointer");break;case jS.TouchStart:case jS.TouchEnd:return}r.push(bS(t,n,i))}),XS(function(){r.forEach(function(e){return e()})}))}function rE(e){var r=e.scrollCb,i=e.doc,o=e.mirror,a=e.blockClass,s=e.blockSelector,e=e.sampling;return bS("scroll",XS(_S(XS(function(e){var t,n,e=eE(e);e&&!xS(e,a,s,!0)&&(t=o.getId(e),e===i&&i.defaultView?(n=ES(i.defaultView),r({id:t,x:n.left,y:n.top})):r({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),i)}var iE=["INPUT","TEXTAREA","SELECT"],oE=new WeakMap;function aE(e){return function w(e,t){var n;return cE("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||cE("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||cE("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||cE("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),w(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function sE(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function uE(e,t){var n,r=e.mirror,i=e.stylesheetManager,o="#document"===t.nodeName?r.getId(t):r.getId(wS.host(t)),e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(r=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:r.ShadowRoot,a=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&e&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:function(){var e;return null==(e=a.get)?void 0:e.call(this)},set:function(e){var t=null==(t=a.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{i.adoptStyleSheets(e,o)}catch(n){}return t}}),XS(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):function(){}}function lE(e){var t,n,L,N,F,U,j,B,z,W,H,q,V,G,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},i=e.doc.defaultView;if(!i)return function(){};t=r,n=(r=e).mutationCb,L=r.mousemoveCb,N=r.mouseInteractionCb,F=r.scrollCb,U=r.viewportResizeCb,j=r.inputCb,B=r.mediaInteractionCb,z=r.styleSheetRuleCb,W=r.styleDeclarationCb,H=r.canvasMutationCb,q=r.fontCb,V=r.selectionCb,G=r.customElementCb,r.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},r.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),L.apply(void 0,arguments)},r.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),N.apply(void 0,arguments)},r.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),F.apply(void 0,arguments)},r.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),U.apply(void 0,arguments)},r.inputCb=function(){t.input&&t.input.apply(t,arguments),j.apply(void 0,arguments)},r.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),B.apply(void 0,arguments)},r.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),z.apply(void 0,arguments)},r.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),W.apply(void 0,arguments)},r.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),H.apply(void 0,arguments)},r.fontCb=function(){t.font&&t.font.apply(t,arguments),q.apply(void 0,arguments)},r.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),V.apply(void 0,arguments)},r.customElementCb=function(){t.customElement&&t.customElement.apply(t,arguments),G.apply(void 0,arguments)};var o,J,K,$,Z,Y,X,Q,a,ee,te,ne,re,s,u,ie,l,c,d,oe,f,h,p,m,ae,se,ue,le,g,v,y,ce,w,b,k,_,S,E,C,R,de=function(){},fe=(e.recordDOM&&(r=Ne(tE(e,e.doc),2),o=r[0],de=r[1]),ue=(r=e).mousemoveCb,x=r.doc,le=r.mirror,!1===(O=r.sampling).mousemove?function(){}:(r="number"==typeof O.mousemove?O.mousemove:50,O="number"==typeof O.mousemoveCallback?O.mousemoveCallback:500,m=[],ae=_S(XS(function(e){var t=Date.now()-p;ue(m.map(function(e){return e.timeOffset-=t,e}),e),m=[],p=null}),O),O=XS(_S(XS(function(e){var t=eE(e),n=TS(e)?e.changedTouches[0]:e,r=n.clientX,n=n.clientY;p=p||vS(),m.push({x:r,y:n,id:le.getId(t),timeOffset:vS()-p}),ae("undefined"!=typeof DragEvent&&e instanceof DragEvent?US.Drag:e instanceof MouseEvent?US.MouseMove:US.TouchMove)}),r,{trailing:!1})),se=[bS("mousemove",O,x),bS("touchmove",O,x),bS("drag",O,x)],XS(function(){se.forEach(function(e){return e()})}))),he=nE(e),pe=rE(e),me=(r={win:i},oe=(O=e).viewportResizeCb,O=r.win,h=f=-1,bS("resize",XS(_S(XS(function(){var e=CS(),t=RS();f===e&&h===t||(oe({width:Number(t),height:Number(e)}),f=e,h=t)}),200)),O)),ge=(Q=(x=e).inputCb,a=x.doc,ee=x.mirror,te=x.blockClass,ne=x.blockSelector,re=x.ignoreClass,s=x.ignoreSelector,u=x.maskInputOptions,ie=x.maskInputFn,l=x.userTriggeredOnInput,c=("last"===x.sampling.input?["change"]:["input","change"]).map(function(e){return bS(e,XS(_e),a)}),(d=a.defaultView)?(x=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),r=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]],x&&x.set&&De(c.push,c,Fe(r.map(function(e){return SS(e[0],e[1],{set:function(){XS(_e)({target:this,isTrusted:!1})}},!1,d)}))),XS(function(){c.forEach(function(e){return e()})})):function(){c.forEach(function(e){return e()})}),ve=(J=(O=e).mediaInteractionCb,K=O.blockClass,$=O.blockSelector,Z=O.mirror,Y=O.sampling,O=O.doc,x=XS(function(a){return _S(XS(function(e){var t,n,r,i,o,e=eE(e);e&&!xS(e,K,$,!0)&&(t=e.currentTime,n=e.volume,r=e.muted,i=e.playbackRate,o=e.loop,J({type:a,id:Z.getId(e),currentTime:t,volume:n,muted:r,playbackRate:i,loop:o}))}),Y.media||500)}),X=[bS("play",x(WS.Play),O),bS("pause",x(WS.Pause),O),bS("seeked",x(WS.Seeked),O),bS("volumechange",x(WS.VolumeChange),O),bS("ratechange",x(WS.RateChange),O)],XS(function(){X.forEach(function(e){return e()})})),ye=function(){},we=function(){},be=function(){},ke=function(){};function _e(e){var t,n,r,i=eE(e),e=e.isTrusted,o=i&&i.tagName;!(i=i&&"OPTION"===o?wS.parentElement(i):i)||!o||iE.indexOf(o)<0||xS(i,te,ne,!0)||i.classList.contains(re)||s&&i.matches(s)||(t=i.value,n=!1,"radio"===(r=Kw(i)||"")||"checkbox"===r?n=i.checked:(u[o.toLowerCase()]||u[r])&&(t=Gw({element:i,maskInputOptions:u,tagName:o,type:r,value:t,maskInputFn:ie})),Se(i,l?{text:t,isChecked:n,userTriggered:e}:{text:t,isChecked:n}),o=i.name,"radio"===r&&o&&n&&a.querySelectorAll('input[type="radio"][name="'.concat(o,'"]')).forEach(function(e){var t;e!==i&&(t=e.value,Se(e,l?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))}))}function Se(e,t){var n=oE.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(oE.set(e,t),n=ee.getId(e),XS(Q)(Ae(Ae({},t),{},{id:n})))}e.recordDOM&&(ye=function(e,t){var s=e.styleSheetRuleCb,u=e.mirror,l=e.stylesheetManager,r=t.win;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return function(){};var n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:XS(function(e,t,n){var r=Ne(n,2),i=r[0],r=r[1],o=sE(t,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.addRule=function(e,t){var n=2<arguments.length&&arguments[2]!==undefined?arguments[2]:this.cssRules.length,e="".concat(e," { ").concat(t," }");return r.CSSStyleSheet.prototype.insertRule.apply(this,[e,n])};var i,o,a=r.CSSStyleSheet.prototype.deleteRule,c=(r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:XS(function(e,t,n){var r=Ne(n,1)[0],i=sE(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.removeRule=function(e){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:XS(function(e,t,n){var r=Ne(n,1)[0],i=sE(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replace:r}),e.apply(t,n)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:XS(function(e,t,n){var r=Ne(n,1)[0],i=sE(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replaceSync:r}),e.apply(t,n)})})),{}),d=(dE("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(dE("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),dE("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),dE("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule)),{});return Object.entries(c).forEach(function(e){var e=Ne(e,2),t=e[0],e=e[1];d[t]={insertRule:e.prototype.insertRule,deleteRule:e.prototype.deleteRule},e.prototype.insertRule=new Proxy(d[t].insertRule,{apply:XS(function(e,t,n){var r=Ne(n,2),i=r[0],r=r[1],o=sE(t.parentStyleSheet,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:[].concat(Fe(aE(t)),[r||0])}]}),e.apply(t,n)})}),e.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:XS(function(e,t,n){var r=Ne(n,1)[0],i=sE(t.parentStyleSheet,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:[].concat(Fe(aE(t)),[r])}]}),e.apply(t,n)})})}),XS(function(){r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(function(e){var e=Ne(e,2),t=e[0],e=e[1];e.prototype.insertRule=d[t].insertRule,e.prototype.deleteRule=d[t].deleteRule})})}(e,{win:i}),we=uE(e,e.doc),r={win:i},b=(x=e).styleDeclarationCb,k=x.mirror,_=x.ignoreCSSAttributes,S=x.stylesheetManager,E=r.win,C=E.CSSStyleDeclaration.prototype.setProperty,E.CSSStyleDeclaration.prototype.setProperty=new Proxy(C,{apply:XS(function(e,t,n){var r,i,o=Ne(n,3),a=o[0],s=o[1],o=o[2];return _.has(a)?C.apply(t,[a,s,o]):(r=(i=sE(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,S.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,set:{property:a,value:s,priority:o},index:aE(t.parentRule)}),e.apply(t,n))})}),R=E.CSSStyleDeclaration.prototype.removeProperty,E.CSSStyleDeclaration.prototype.removeProperty=new Proxy(R,{apply:XS(function(e,t,n){var r,i,o=Ne(n,1)[0];return _.has(o)?R.apply(t,[o]):(r=(i=sE(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,S.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,remove:{property:o},index:aE(t.parentRule)}),e.apply(t,n))})}),be=XS(function(){E.CSSStyleDeclaration.prototype.setProperty=C,E.CSSStyleDeclaration.prototype.removeProperty=R}),e.collectFonts)&&(ce=(O=e).fontCb,w=(O=O.doc).defaultView,ke=w?(g=[],v=new WeakMap,y=w.FontFace,w.FontFace=function(e,t,n){var r=new y(e,t,n);return v.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r},O=yS(O.fonts,"add",function(e){return function(t){return setTimeout(XS(function(){var e=v.get(t);e&&(ce(e),v["delete"](t))}),0),e.apply(this,[t])}}),g.push(function(){w.FontFace=y}),g.push(O),XS(function(){g.forEach(function(e){return e()})})):function(){});Re=(x=e).doc,I=x.mirror,T=x.blockClass,M=x.blockSelector,Oe=x.selectionCb,A=!0,(x=XS(function(){var e=Re.getSelection();if(!(!e||A&&null!=e&&e.isCollapsed)){A=e.isCollapsed||!1;for(var t=[],n=e.rangeCount||0,r=0;r<n;r++){var i=e.getRangeAt(r),o=i.startContainer,a=i.startOffset,s=i.endContainer,i=i.endOffset;xS(o,T,M,!0)||xS(s,T,M,!0)||t.push({start:I.getId(o),startOffset:a,end:I.getId(s),endOffset:i})}Oe({ranges:t})}}))();var Ee,O,Ce,x,Re,I,T,M,Oe,A,xe=bS("selectionchange",x),Ie=(O=(r=e).doc,Ce=r.customElementCb,(r=O.defaultView)&&r.customElements?yS(r.customElements,"define",function(r){return function(e,t,n){try{Ce({define:{name:e}})}catch(Le){console.warn("Custom element callback failed for ".concat(e))}return r.apply(this,[e,t,n])}}):function(){}),Te=[],P=Me(e.plugins);try{for(P.s();!(Ee=P.n()).done;){var D=Ee.value;Te.push(D.observer(D.callback,i,D.options))}}catch(Pe){P.e(Pe)}finally{P.f()}return XS(function(){QS.forEach(function(e){return e.reset()}),null!=o&&o.disconnect(),de(),fe(),he(),pe(),me(),ge(),ve(),ye(),we(),be(),ke(),xe(),Ie(),Te.forEach(function(e){return e()})})}function cE(e){return"undefined"!=typeof window[e]}function dE(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var fE=k(function _(e){b(this,_),p(this,"iframeIdToRemoteIdMap",new WeakMap),p(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e},[{key:"getId",value:function(e,t,n,r){n=n||this.getIdToRemoteIdMap(e),r=r||this.getRemoteIdToIdMap(e),e=n.get(t);return e||(e=this.generateIdFn(),n.set(t,e),r.set(e,t)),e}},{key:"getIds",value:function(t,e){var n=this,r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getId(t,e,r,i)})}},{key:"getRemoteId",value:function(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}},{key:"getRemoteIds",value:function(t,e){var n=this,r=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getRemoteId(t,e,r)})}},{key:"reset",value:function(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),hE=k(function _(e){b(this,_),p(this,"iframes",new WeakMap),p(this,"crossOriginIframeMap",new WeakMap),p(this,"crossOriginIframeMirror",new fE(ab)),p(this,"crossOriginIframeStyleMirror"),p(this,"crossOriginIframeRootIdMap",new WeakMap),p(this,"mirror"),p(this,"mutationCb"),p(this,"wrappedEmit"),p(this,"loadListener"),p(this,"stylesheetManager"),p(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new fE(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))},[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;"rrweb"===t.data.type&&t.origin===t.data.origin&&e.source&&(e=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(e,t.data.event))&&this.wrappedEmit(e,t.data.isCheckout)}},{key:"transformCrossOriginEvent",value:function(n,e){var t,r=this;switch(e.type){case FS.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:FS.IncrementalSnapshot,data:{source:US.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case FS.Meta:case FS.Load:case FS.DomContentLoaded:return!1;case FS.Plugin:return e;case FS.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case FS.IncrementalSnapshot:switch(e.data.source){case US.Mutation:return e.data.adds.forEach(function(e){r.replaceIds(e,n,["parentId","nextId","previousId"]),r.replaceIdOnNode(e.node,n);var t=r.crossOriginIframeRootIdMap.get(n);t&&r.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(function(e){r.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(function(e){r.replaceIds(e,n,["id"])}),e.data.texts.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case US.Drag:case US.TouchMove:case US.MouseMove:return e.data.positions.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case US.ViewportResize:return!1;case US.MediaInteraction:case US.MouseInteraction:case US.Scroll:case US.CanvasMutation:case US.Input:return this.replaceIds(e.data,n,["id"]),e;case US.StyleSheetRule:case US.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case US.Font:return e;case US.Selection:return e.data.ranges.forEach(function(e){r.replaceIds(e,n,["start","end"])}),e;case US.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(function(e){r.replaceStyleIds(e,n,["styleId"])}),e}}return!1}},{key:"replace",value:function(e,t,n,r){var i,o=Me(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(Pe){o.e(Pe)}finally{o.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var n=this;e.type===HS.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})}}]),pE=k(function _(e){b(this,_),p(this,"shadowDoms",new WeakSet),p(this,"mutationCb"),p(this,"scrollCb"),p(this,"bypassOptions"),p(this,"mirror"),p(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()},[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var n,r=this;Ww(e)&&!this.shadowDoms.has(e)&&(this.shadowDoms.add(e),n=Ne(tE(Ae(Ae({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),1)[0],this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(rE(Ae(Ae({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(wS.host(e))),r.restoreHandlers.push(uE({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0))}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,r){var i=this;this.restoreHandlers.push(yS(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=wS.shadowRoot(this);return t&&NS(this)&&i.addShadowRoot(t,r),e}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(w){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),mE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gE="undefined"==typeof Uint8Array?[]:new Uint8Array(256),vE=0;vE<mE.length;vE++)gE[mE.charCodeAt(vE)]=vE;var yE=new Map,wE=function(e,t,n){var r;if(e&&(kE(e,t)||"object"===I(e)))return t=n,n=e.constructor.name,(r=yE.get(t))||(r=new Map,yE.set(t,r)),r.has(n)||r.set(n,[]),-1===(n=(t=r.get(n)).indexOf(e))&&(n=t.length,t.push(e)),n};var bE=function(e,t,n){return e.map(function(e){return function r(i,t,n){return i instanceof Array?i.map(function(e){return r(e,t,n)}):null===i?i:i instanceof Float32Array||i instanceof Float64Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Uint8Array||i instanceof Uint16Array||i instanceof Int16Array||i instanceof Int8Array||i instanceof Uint8ClampedArray?{rr_type:i.constructor.name,args:[Object.values(i)]}:i instanceof ArrayBuffer?{rr_type:i.constructor.name,base64:function(){for(var e=new Uint8Array(i),t=e.length,n="",r=0;r<t;r+=3)n=(n=(n=(n+=mE[e[r]>>2])+mE[(3&e[r])<<4|e[r+1]>>4])+mE[(15&e[r+1])<<2|e[r+2]>>6])+mE[63&e[r+2]];return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}()}:i instanceof DataView?{rr_type:i.constructor.name,args:[r(i.buffer,t,n),i.byteOffset,i.byteLength]}:i instanceof HTMLImageElement?{rr_type:i.constructor.name,src:i.src}:i instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:i.toDataURL()}:i instanceof ImageData?{rr_type:i.constructor.name,args:[r(i.data,t,n),i.width,i.height]}:kE(i,t)||"object"===I(i)?{rr_type:i.constructor.name,index:wE(i,t,n)}:i}(e,t,n)})},kE=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof n[e]});return Boolean(e.find(function(e){return t instanceof n[e]}))};function _E(e,a,s,u){var t=[];try{var n=yS(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return xS(this,a,s,!0)||(t="experimental-webgl"===(t=e)?"webgl":t,"__context"in this||(this.__context=t),u&&["webgl","webgl2"].includes(t)&&(r[0]&&"object"===I(r[0])?(t=r[0]).preserveDrawingBuffer||(t.preserveDrawingBuffer=!0):r.splice(0,1,{preserveDrawingBuffer:!0}))),o.apply(this,[e].concat(r))}});t.push(n)}catch(b){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(e){return e()})}}function SE(t,s,u,l,c,d){var n,r=[],e=Me(Object.getOwnPropertyNames(t));try{for(e.s();!(n=e.n()).done;)!function(){var a=n.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return;try{if("function"!=typeof t[a])return;var e=yS(t,a,function(o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=o.apply(this,t);return wE(i,d,this),"tagName"in this.canvas&&!xS(this.canvas,l,c,!0)&&(r=bE(t,d,this),u(this.canvas,{type:s,property:a,args:r})),i}});r.push(e)}catch(F){e=SS(t,a,{set:function(e){u(this.canvas,{type:s,property:a,args:[e],setter:!0})}});r.push(e)}}()}catch(Pe){e.e(Pe)}finally{e.f()}return r}var EE='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n',CE="undefined"!=typeof self&&self.Blob&&new Blob([EE],{type:"text/javascript;charset=utf-8"});function RE(e){var t,n;try{if(t=CE&&(self.URL||self.webkitURL).createObjectURL(CE))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",function(){(self.URL||self.webkitURL).revokeObjectURL(t)}),n;throw""}catch(D){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(EE),{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var OE,xE,IE,TE=k(function _(e){var n=this,t=(b(this,_),p(this,"pendingCanvasMutations",new Map),p(this,"rafStamps",{latestId:0,invokeId:null}),p(this,"mirror"),p(this,"mutationCb"),p(this,"resetObservers"),p(this,"frozen",!1),p(this,"locked",!1),p(this,"processMutation",function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)}),e.sampling),t=void 0===t?"all":t,r=e.win,i=e.blockClass,o=e.blockSelector,a=e.recordCanvas,s=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===t&&this.initCanvasMutationObserver(r,i,o),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,o,{dataURLOptions:s})},[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,o,r,i,a){var s=this,t=_E(o,r,i,!0),u=new Map,l=new RE;l.onmessage=function(e){var t,n=e.data.id;u.set(n,!1),"base64"in e.data&&(t=(e=e.data).base64,s.mutationCb({id:n,type:zS["2D"],commands:[{property:"clearRect",args:[0,0,e.width,e.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:t}],type:e.type}]},0,0]}]}))};var c=1e3/e,d=0,f=function(e){var t,n;h=(d&&e-d<c||(d=e,t=[],o.document.querySelectorAll("canvas").forEach(function(e){xS(e,r,i,!0)||t.push(e)}),t.forEach((n=D(V().m(function o(t){var n,r,i;return V().w(function(e){for(;;)switch(e.n){case 0:if(n=s.mirror.getId(t),u.get(n))return e.a(2);e.n=1;break;case 1:if(0===t.width||0===t.height)return e.a(2);e.n=2;break;case 2:return u.set(n,!0),["webgl","webgl2"].includes(t.__context)&&(r=t.getContext(t.__context),!1===(null==(i=null==r?void 0:r.getContextAttributes())?void 0:i.preserveDrawingBuffer))&&r.clear(r.COLOR_BUFFER_BIT),e.n=3,createImageBitmap(t);case 3:i=e.v,l.postMessage({id:n,bitmap:i,width:t.width,height:t.height,dataURLOptions:a.dataURLOptions},[i]);case 4:return e.a(2)}},o)})),function(e){return n.apply(this,arguments)}))),requestAnimationFrame(f))},h=requestAnimationFrame(f);this.resetObservers=function(){t(),cancelAnimationFrame(h)}}},{key:"initCanvasMutationObserver",value:function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r,i,o=_E(e,t,n,!1),a=function(a,s,u,l){var t,n=[],e=Me(Object.getOwnPropertyNames(s.CanvasRenderingContext2D.prototype));try{for(e.s();!(t=e.n()).done;)!function(){var o=t.value;try{if("function"!=typeof s.CanvasRenderingContext2D.prototype[o])return;var e=yS(s.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xS(this.canvas,u,l,!0)||setTimeout(function(){var e=bE(n,s,t);a(t.canvas,{type:zS["2D"],property:o,args:e})},0),i.apply(this,n)}});n.push(e)}catch(k){e=SS(s.CanvasRenderingContext2D.prototype,o,{set:function(e){a(this.canvas,{type:zS["2D"],property:o,args:[e],setter:!0})}});n.push(e)}}()}catch(Pe){e.e(Pe)}finally{e.f()}return function(){n.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),s=(r=this.processMutation.bind(this),t=t,n=n,i=[],"undefined"!=typeof(e=e).WebGLRenderingContext&&De(i.push,i,Fe(SE(e.WebGLRenderingContext.prototype,zS.WebGL,r,t,n,e))),"undefined"!=typeof e.WebGL2RenderingContext&&De(i.push,i,Fe(SE(e.WebGL2RenderingContext.prototype,zS.WebGL2,r,t,n,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),a(),s()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})}},{key:"startRAFTimestamping",value:function(){var t=this,n=function(e){t.rafStamps.latestId=e,requestAnimationFrame(n)};requestAnimationFrame(n)}},{key:"flushPendingCanvasMutations",value:function(){var r=this;this.pendingCanvasMutations.forEach(function(e,t){var n=r.mirror.getId(t);r.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})}},{key:"flushPendingCanvasMutationFor",value:function(e,t){var n,r;this.frozen||this.locked||(r=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=r.map(function(e){return e.type,q(e,Cw)}),r=r[0].type,this.mutationCb({id:t,type:r,commands:n}),this.pendingCanvasMutations["delete"](e))}}]),ME=k(function _(e){b(this,_),p(this,"trackedLinkElements",new WeakSet),p(this,"mutationCb"),p(this,"adoptedStyleSheetCb"),p(this,"styleMirror",new DS),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb},[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){var r=this;if(0!==e.length){var i,o={id:t,styleIds:[]},a=[],n=Me(e);try{for(n.s();!(i=n.n()).done;)!function(){var e,n=i.value;r.styleMirror.has(n)?e=r.styleMirror.getId(n):(e=r.styleMirror.add(n),a.push({styleId:e,rules:Array.from(n.rules||CSSRule,function(e,t){return{rule:qw(e,n.href),index:t}})})),o.styleIds.push(e)}()}catch(Pe){n.e(Pe)}finally{n.f()}0<a.length&&(o.styles=a),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),AE=k(function _(){b(this,_),p(this,"nodeMap",new WeakMap),p(this,"active",!1)},[{key:"inOtherBuffer",value:function(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}]),PE=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(pO=document.createElement("iframe"),document.body.appendChild(pO),Array.from=(null==(bw=pO.contentWindow)?void 0:bw.Array.from)||Array.from,document.body.removeChild(pO))}catch(Pe){console.debug("Unable to override Array.from",Pe)}var DE,LE=new Vw;function NE(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},r=e.emit,i=e.checkoutEveryNms,o=e.checkoutEveryNth,t=e.blockClass,u=void 0===t?"rr-block":t,t=e.blockSelector,l=void 0===t?null:t,t=e.ignoreClass,L=void 0===t?"rr-ignore":t,t=e.ignoreSelector,N=void 0===t?null:t,t=e.maskTextClass,c=void 0===t?"rr-mask":t,t=e.maskTextSelector,d=void 0===t?null:t,t=e.inlineStylesheet,f=void 0===t||t,t=e.maskAllInputs,n=e.maskInputOptions,F=e.slimDOMOptions,h=e.maskInputFn,p=e.maskTextFn,U=e.hooks,j=e.packFn,a=e.sampling,s=void 0===a?{}:a,a=e.dataURLOptions,m=void 0===a?{}:a,a=e.mousemoveWait,g=e.recordDOM,B=void 0===g||g,g=e.recordCanvas,v=void 0!==g&&g,g=e.recordCrossOriginIframes,g=void 0!==g&&g,y=e.recordAfter,z=void 0===y?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":y,y=e.userTriggeredOnInput,W=void 0!==y&&y,y=e.collectFonts,H=void 0!==y&&y,y=e.inlineImages,w=void 0!==y&&y,b=e.plugins,y=e.keepIframeSrcFn,k=void 0===y?function(){return!1}:y,y=e.ignoreCSSAttributes,q=void 0===y?new Set([]):y,_=(VS=e.errorHandler,!g||window.parent===window),S=!1;if(!_)try{window.parent.document&&(S=!1)}catch(xe){S=!0}if(_&&!r)throw new Error("emit function is required");if(!_&&!S)return function(){};void 0!==a&&void 0===s.mousemove&&(s.mousemove=a),LE.reset();var V,E=!0===t?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==n?n:{password:!0},C=yb(F),R=(!function(e){"NodeList"in(e=0<arguments.length&&e!==undefined?e:window)&&!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)}(),0),G=function(e){var t,n=Me(b||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(Pe){n.e(Pe)}finally{n.f()}return e=j&&!S?j(e):e};OE=function(e,t){var n;e.timestamp=vS(),null==(n=QS[0])||!n.isFrozen()||e.type===FS.FullSnapshot||e.type===FS.IncrementalSnapshot&&e.data.source===US.Mutation||QS.forEach(function(e){return e.unfreeze()}),_?null!=r&&r(G(e),t):S&&(n={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===FS.FullSnapshot?(V=e,R=0):e.type!==FS.IncrementalSnapshot||e.data.source===US.Mutation&&e.data.isAttachIframe||(R++,t=o&&o<=R,n=i&&e.timestamp-V.timestamp>i,(t||n)&&xE(!0))};var J,O=function(e){OE({type:FS.IncrementalSnapshot,data:Ae({source:US.Mutation},e)})},K=function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.Scroll},e)})},$=function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.CanvasMutation},e)})},x=new ME({mutationCb:O,adoptedStyleSheetCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.AdoptedStyleSheet},e)})}}),I=new hE({mirror:LE,mutationCb:O,stylesheetManager:x,recordCrossOriginIframes:g,wrappedEmit:OE}),T=Me(b||[]);try{for(T.s();!(J=T.n()).done;){var Z=J.value;Z.getMirror&&Z.getMirror({nodeMirror:LE,crossOriginIframeMirror:I.crossOriginIframeMirror,crossOriginIframeStyleMirror:I.crossOriginIframeStyleMirror})}}catch(Pe){T.e(Pe)}finally{T.f()}var M=new AE,A=(IE=new TE({recordCanvas:v,mutationCb:$,win:window,blockClass:u,blockSelector:l,mirror:LE,sampling:s.canvas,dataURLOptions:m}),new pE({mutationCb:O,scrollCb:K,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:d,inlineStylesheet:f,maskInputOptions:E,dataURLOptions:m,maskTextFn:p,maskInputFn:h,recordCanvas:v,inlineImages:w,sampling:s,slimDOMOptions:C,iframeManager:I,stylesheetManager:x,canvasManager:IE,keepIframeSrcFn:k,processedNodeManager:M},mirror:LE}));xE=function(){var e,t,n,r,i,o,a=0<arguments.length&&arguments[0]!==undefined&&arguments[0];if(B){OE({type:FS.Meta,data:{href:window.location.href,width:RS(),height:CS()}},a),x.reset(),A.init(),QS.forEach(function(e){return e.lock()});s=document,r=void 0===(r=(e={mirror:LE,blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:d,inlineStylesheet:f,maskAllInputs:E,maskTextFn:p,maskInputFn:h,slimDOM:C,dataURLOptions:m,recordCanvas:v,inlineImages:w,onSerialize:function(e){MS(e,LE)&&I.addIframe(e),AS(e,LE)&&x.trackLinkElement(e),PS(e)&&A.addShadowRoot(wS.shadowRoot(e),document)},onIframeLoad:function(e,t){I.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:function(e,t){x.attachLinkElement(e,t)},keepIframeSrcFn:k}).mirror)?new Vw:r,t=e.inlineImages,n=e.recordCanvas,i=e.slimDOM,o=e.keepIframeSrcFn;var s=wb(s,{doc:s,mirror:r,blockClass:void 0===(s=e.blockClass)?"rr-block":s,blockSelector:void 0===(r=e.blockSelector)?null:r,maskTextClass:void 0===(s=e.maskTextClass)?"rr-mask":s,maskTextSelector:void 0===(r=e.maskTextSelector)?null:r,skipChild:!1,inlineStylesheet:void 0===(s=e.inlineStylesheet)||s,maskInputOptions:!0===(r=void 0!==(r=e.maskAllInputs)&&r)?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===r?{password:!0}:r,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:yb(void 0!==i&&i),dataURLOptions:e.dataURLOptions,inlineImages:void 0!==t&&t,recordCanvas:void 0!==n&&n,preserveWhiteSpace:e.preserveWhiteSpace,onSerialize:e.onSerialize,onIframeLoad:e.onIframeLoad,iframeLoadTimeout:e.iframeLoadTimeout,onStylesheetLoad:e.onStylesheetLoad,stylesheetLoadTimeout:e.stylesheetLoadTimeout,keepIframeSrcFn:void 0===o?function(){return!1}:o,newlyAddedElement:!1});if(!s)return console.warn("Failed to snapshot the document");OE({type:FS.FullSnapshot,data:{node:s,initialOffset:ES(window)}},a),QS.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,LE.getId(document))}};try{var P=[],Y=function(e){return XS(lE)({mutationCb:O,mousemoveCb:function(e,t){return OE({type:FS.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.MouseInteraction},e)})},scrollCb:K,viewportResizeCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.ViewportResize},e)})},inputCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.Input},e)})},mediaInteractionCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.MediaInteraction},e)})},styleSheetRuleCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.StyleSheetRule},e)})},styleDeclarationCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.StyleDeclaration},e)})},canvasMutationCb:$,fontCb:function(e){return OE({type:FS.IncrementalSnapshot,data:Ae({source:US.Font},e)})},selectionCb:function(e){OE({type:FS.IncrementalSnapshot,data:Ae({source:US.Selection},e)})},customElementCb:function(e){OE({type:FS.IncrementalSnapshot,data:Ae({source:US.CustomElement},e)})},blockClass:u,ignoreClass:L,ignoreSelector:N,maskTextClass:c,maskTextSelector:d,maskInputOptions:E,inlineStylesheet:f,sampling:s,recordDOM:B,recordCanvas:v,inlineImages:w,userTriggeredOnInput:W,collectFonts:H,doc:e,maskInputFn:h,maskTextFn:p,keepIframeSrcFn:k,blockSelector:l,slimDOMOptions:C,dataURLOptions:m,mirror:LE,iframeManager:I,stylesheetManager:x,shadowDomManager:A,processedNodeManager:M,canvasManager:IE,ignoreCSSAttributes:q,plugins:(null==(e=null==b?void 0:b.filter(function(e){return e.observer}))?void 0:e.map(function(t){return{observer:t.observer,options:t.options,callback:function(e){return OE({type:FS.Plugin,data:{plugin:t.name,payload:e}})}}}))||[]},U)},D=(I.addLoadListener(function(e){try{P.push(Y(e.contentDocument))}catch(X){console.warn(X)}}),function(){xE(),P.push(Y(document)),PE=!0});return["interactive","complete"].includes(document.readyState)?D():(P.push(bS("DOMContentLoaded",function(){OE({type:FS.DomContentLoaded,data:{}}),"DOMContentLoaded"===z&&D()})),P.push(bS("load",function(){OE({type:FS.Load,data:{}}),"load"===z&&D()},window))),function(){P.forEach(function(e){try{e()}catch(X){String(X).toLowerCase().includes("cross-origin")||console.warn(X)}}),M.destroy(),PE=!1,VS=void 0}}catch(X){console.warn(X)}}NE.addCustomEvent=function(e,t){if(!PE)throw new Error("please add custom event after start recording");OE({type:FS.Custom,data:{tag:e,payload:t}})},NE.freezePage=function(){QS.forEach(function(e){return e.freeze()})},NE.takeFullSnapshot=function(e){if(!PE)throw new Error("please take full snapshot after start recording");xE(e)},NE.mirror=LE,(t=DE=DE||{})[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped";var FE='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',UE={maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,autoDetectSensitiveData:!0,mask:[".tdem-mask","[data-tdem-mask]","[data-sensitive]",".sensitive",".private"],block:[".tdem-block","[data-tdem-block]",".secret","[data-secret]","iframe[srcdoc]:not([src])",".replayer-wrapper"],ignore:[".tdem-ignore","[data-tdem-ignore]",'input[type="file"]','input[type="password"]'],maskInputOptions:{password:!0,email:!0,tel:!0,text:!1}},jE=(BE.maskPhone=function(e){return e.replace(this.phoneRegex,function(e){var t=e.replace(/[^\d]/g,"");return 11===t.length?e.substring(0,3)+"****"+e.substring(7):13===t.length?e.substring(0,6)+"****"+e.substring(10):e.substring(0,3)+"****"+e.substring(e.length-4)})},BE.maskIdCard=function(e){return e.replace(this.idCardRegex,function(e){return 18===e.length?e.substring(0,6)+"********"+e.substring(14):15===e.length?e.substring(0,6)+"******"+e.substring(12):e})},BE.maskEmail=function(e){return e.replace(this.emailRegex,function(e){var t,n=e.indexOf("@");return n<=1?"*"+e.substring(1):(t=e.substring(0,n),n=e.substring(n),t.charAt(0)+"***"+t.charAt(t.length-1)+n)})},BE.maskBankCard=function(e){return e.replace(this.bankCardRegex,function(e){var t=e.replace(/[^\d]/g,"");return t.length<13?e:t.substring(0,4)+" **** **** "+t.substring(t.length-4)})},BE.maskIP=function(e){return e.replace(this.ipv4Regex,function(e){e=e.split(".");return e[0]+".*.*."+e[3]})},BE.autoMask=function(e){var t;return e&&"string"==typeof e?(t=this.maskPhone(t=e),t=this.maskIdCard(t),t=this.maskEmail(t),this.maskBankCard(t)):e},BE.hasSensitiveData=function(e){return!(!e||"string"!=typeof e)&&(this.phoneRegex.test(e)||this.idCardRegex.test(e)||this.emailRegex.test(e)||this.bankCardRegex.test(e))},BE.phoneRegex=/1[3-9]\d{9}|(?:\+?86)?1[3-9]\d{9}/g,BE.idCardRegex=/[1-9]\d{5}(?:19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dXx]|[1-9]\d{7}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}/g,BE.emailRegex=/[\w.-]+@[\w.-]+\.\w{2,}/g,BE.bankCardRegex=/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{1,7}\b/g,BE.ipv4Regex=/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b/g,BE);function BE(){}function zE(e,t){return void 0===e&&(e={}),M(M(M({},t=void 0===t?UE:t),e),{mask:WE(t.mask,e.mask),block:WE(t.block,e.block),ignore:WE(t.ignore,e.ignore),maskInputOptions:M(M({},t.maskInputOptions),e.maskInputOptions)})}function WE(e,t){e=new Set(Cl(e||[],t||[]));return Array.from(e)}KE.prototype.push=function(e,t){if(this.emitFn=t,3===e.type&&this.isMutationEvent(e)){var n=e.data;if(this.buffer){if(this.enableRepeatDetection&&this.isRepeatPattern(n)){if(this.repeatCount++,3<this.repeatCount)return this.buffer=this.cloneEvent(e),void this.droppedByRepeat++}else this.repeatCount=0;this.mergeInto(n,e.timestamp),this.mergedCount++,(null!=(n=null==(n=this.buffer.data.adds)?void 0:n.length)?n:0)>=this.maxAddsPerMerge&&this.flush()}else this.buffer=this.cloneEvent(e),this.scheduleFlush()}else this.flush(),t(e)},KE.prototype.flush=function(){this.clearTimer(),this.buffer&&this.emitFn&&(this.emitFn(this.buffer),this.buffer=null,this.repeatCount=0)},KE.prototype.destroy=function(){this.flush(),this.clearTimer(),this.emitFn=null},KE.prototype.getStats=function(){return{mergedCount:this.mergedCount,droppedByRepeat:this.droppedByRepeat,cancelledByOffset:this.cancelledByOffset}},KE.prototype.isMutationEvent=function(e){return 0===(null==(e=e.data)?void 0:e.source)},KE.prototype.isRepeatPattern=function(e){var t;return!!this.buffer&&(t=null!=(t=this.buffer.data.adds)?t:[],e=null!=(e=e.adds)?e:[],0!==t.length)&&0!==e.length&&t.length===e.length&&(null==(t=t[0])?void 0:t.parentId)===(null==(t=e[0])?void 0:t.parentId)},KE.prototype.mergeInto=function(e,t){var n,r,i,o;if(this.buffer){var a=this.buffer.data;this.buffer.timestamp=Math.max(this.buffer.timestamp,t);for(var s=this,u=0,l=null!=(t=e.removes)?t:[];u<l.length;u++)!function(t){var e=(null!=(n=a.adds)?n:[]).findIndex(function(e){return(null==(e=e.node)?void 0:e.id)===t.id});0<=e?(a.adds.splice(e,1),s.cancelledByOffset++):(a.removes=null!=(n=a.removes)?n:[],a.removes.push(t))}(l[u]);for(var c=0,d=null!=(t=e.adds)?t:[];c<d.length;c++){var f=d[c];a.adds=null!=(r=a.adds)?r:[],a.adds.push(f)}for(var h=0,p=null!=(t=e.attributes)?t:[];h<p.length;h++)!function(t){a.attributes=null!=(i=a.attributes)?i:[];var e=a.attributes.findIndex(function(e){return e.id===t.id});0<=e?a.attributes[e]=t:a.attributes.push(t)}(p[h]);for(var m=0,g=null!=(t=e.texts)?t:[];m<g.length;m++)!function(t){a.texts=null!=(o=a.texts)?o:[];var e=a.texts.findIndex(function(e){return e.id===t.id});0<=e?a.texts[e]=t:a.texts.push(t)}(g[m])}},KE.prototype.cloneEvent=function(e){var t=e.data;return{type:e.type,timestamp:e.timestamp,data:{source:0,adds:Cl(null!=(e=t.adds)?e:[]),removes:Cl(null!=(e=t.removes)?e:[]),attributes:Cl(null!=(e=t.attributes)?e:[]),texts:Cl(null!=(e=t.texts)?e:[])}}},KE.prototype.scheduleFlush=function(){var e=this;this.clearTimer(),this.flushTimer=setTimeout(function(){e.flushTimer=null,e.flush()},this.windowMs)},KE.prototype.clearTimer=function(){null!==this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null)};var HE=KE,qE=(JE.prototype.startRecording=function(e){var r,i,n=this;if(void 0===e&&(e={}),"recording"!==this.state){this.mutationLimitReached=!1,this.throttleCount=0,this.throttleWindowStart=Date.now(),this.throttleNotified=!1,this.mutationAddsInWindow=0;var t="buffer"===this.options.mode?12e4:3e5,t="number"==typeof e.checkoutEveryNms&&0<e.checkoutEveryNms?e.checkoutEveryNms:t,o="number"==typeof e.checkoutEveryNth&&0<e.checkoutEveryNth?e.checkoutEveryNth:undefined,a=zE(e.privacy||{},UE),s=M(M(M(M({emit:function(e,t){n.handleEvent(e,t)},checkoutEveryNms:t},o?{checkoutEveryNth:o}:{}),{sampling:{scroll:150,mousemove:!c.ios()&&50,mouseInteraction:!0,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0}}),(t={},(o=a).maskAllInputs!==undefined&&(t.maskAllInputs=o.maskAllInputs),o.maskInputOptions&&(t.maskInputOptions=o.maskInputOptions),null!=(s=o.mask)&&s.length&&(t.maskTextSelector=o.mask.join(",")),null!=(s=o.block)&&s.length&&(t.blockSelector=o.block.join(",")),o.blockAllMedia&&(t.blockSelector=t.blockSelector?t.blockSelector+","+FE:FE,t.ignoreCSSAttributes=new Set(["background-image"])),null!=(s=o.ignore)&&s.length&&(t.ignoreSelector=o.ignore.join(",")),!o.maskTextFn&&!1===o.autoDetectSensitiveData||(t.maskTextFn=(r=o.maskTextFn,i=!1!==o.autoDetectSensitiveData,function(e,t){var n;return e&&(n=e,i&&(n=jE.autoMask(n)),r?r(n,t):n)})),t)),e.rrwebConfig);try{this.hookMutationObserver(),this.stopRecordingFn=NE(s),this.state="recording",this.lastCheckoutTime=Date.now(),this.startCheckpointTimer(),h("RecorderManager","Recording started with config:",{maskAllText:a.maskAllText,maskAllInputs:a.maskAllInputs,autoDetectSensitiveData:a.autoDetectSensitiveData,mutationLimit:this.mutationLimit,checkpointIntervalMs:12e4})}catch(X){X0("RecorderManager","Failed to start recording:",X),this.state="stopped"}}else Y0("RecorderManager","Already recording")},JE.prototype.stopRecording=function(){var e;this.stopCheckpointTimer(),null!=(e=this.mutationMerger)&&e.destroy(),this.unhookMutationObserver(),this.stopRecordingFn&&(this.stopRecordingFn(),this.stopRecordingFn=undefined),this.state="stopped",h("RecorderManager","Recording stopped")},JE.prototype.pauseRecording=function(){"recording"===this.state&&(this.stopRecording(),this.state="paused",h("RecorderManager","Recording paused"))},JE.prototype.resumeRecording=function(e){void 0===e&&(e={}),"paused"===this.state&&(this.startRecording(e),h("RecorderManager","Recording resumed"))},JE.prototype.hookMutationObserver=function(){try{var r,e,t=window.MutationObserver;t&&(r=this,(e=function(n){return new t(function(e,t){r.unhookMutationObserver(),r.onMutationHandler(e)&&n(e,t)})}).prototype=t.prototype,window.MutationObserver=e,this.restoreMutationObserver=function(){window.MutationObserver=t},Z0("RecorderManager","MutationObserver hooked"))}catch(Pe){Y0("RecorderManager","Failed to hook MutationObserver:",Pe)}},JE.prototype.unhookMutationObserver=function(){this.restoreMutationObserver&&(this.restoreMutationObserver(),this.restoreMutationObserver=null,Z0("RecorderManager","MutationObserver restored"))},JE.prototype.onMutationHandler=function(e){var t,n=this;return!this.mutationLimitReached&&(t=(e=e.length)>this.mutationLimit,(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(this.mutationLimitReached=!0,X0("RecorderManager","Mutation limit reached: "+e+" > "+this.mutationLimit+". Stopping."),setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1))},JE.prototype.checkMutationLimit=function(e){var n=this;if(this.mutationLimitReached)return!1;if(3!==e.type)return!0;e=e.data;if(0!==(null==e?void 0:e.source))return!0;e=Array.isArray(e.adds)?e.adds.length:0;if(0===e)return!0;this.mutationAddsInWindow+=e;var t=e>this.mutationLimit||this.mutationAddsInWindow>2*this.mutationLimit;return(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(X0("RecorderManager","Mutation limit: "+e+" adds (window: "+this.mutationAddsInWindow+"). Stopping."),this.mutationLimitReached=!0,setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1)},JE.prototype.emitMutationBreadcrumb=function(e,t){var n;try{null!=(n=NE.addCustomEvent)&&n.call(NE,"replay.mutations",{count:e,limit:t,timestamp:Date.now()})}catch(De){}},JE.prototype.handleEvent=function(e,t){var n=this,r=(t&&(null!=(r=(i=this.options).onCheckout)&&r.call(i),this.lastCheckoutTime=Date.now(),null!=(i=this.mutationMerger))&&i.flush(),e.type);if(t||2===r||4===r||r<=1||this.checkEventThrottle()){if(3===r&&!this.mutationLimitReached){var i=Date.now();if(12e4<=i-this.lastCheckoutTime){this.lastCheckoutTime=i;try{var o=NE.takeFullSnapshot;"function"==typeof o&&(o(!0),Z0("RecorderManager","Inline checkpoint: forced FullSnapshot"))}catch(Pe){Y0("RecorderManager","Inline checkpoint failed:",Pe)}}}this.checkMutationLimit(e)&&(this.mutationMerger?this.mutationMerger.push(e,function(e){n.options.onRecordingEvent(e)}):this.options.onRecordingEvent(e))}},JE.prototype.checkEventThrottle=function(){var e,t=Date.now();if(5e3<t-this.throttleWindowStart&&(this.throttleCount=0,this.throttleWindowStart=t,this.throttleNotified=!1,this.mutationAddsInWindow=0),this.throttleCount++,300<this.throttleCount){if(!this.throttleNotified){this.throttleNotified=!0,Y0("RecorderManager","Event throttled: "+this.throttleCount+" events in 5000ms window");try{null!=(e=NE.addCustomEvent)&&e.call(NE,"replay.throttled",{count:this.throttleCount,window:5e3})}catch(D){}}return!1}return!0},JE.prototype.startCheckpointTimer=function(){var t=this;this.stopCheckpointTimer(),this.checkpointTimer=setInterval(function(){if("recording"===t.state&&!t.mutationLimitReached)try{var e=NE.takeFullSnapshot;"function"==typeof e&&(e(!0),t.lastCheckoutTime=Date.now(),Z0("RecorderManager","Checkpoint: forced FullSnapshot"))}catch(Pe){Y0("RecorderManager","Checkpoint FullSnapshot failed:",Pe)}},12e4)},JE.prototype.stopCheckpointTimer=function(){null!==this.checkpointTimer&&(clearInterval(this.checkpointTimer),this.checkpointTimer=null)},JE.prototype.getState=function(){return this.state},JE.prototype.isRecording=function(){return"recording"===this.state},JE.prototype.getLastCheckoutTime=function(){return this.lastCheckoutTime},JE.prototype.takeFullSnapshot=function(){var e,t;"recording"===this.state&&this.stopRecordingFn&&(null!=(t=null==(e=this.stopRecordingFn)?void 0:e.takeFullSnapshot)&&t.call(e),this.lastCheckoutTime=Date.now())},JE.prototype.isMutationLimitReached=function(){return this.mutationLimitReached},JE),VE=(GE.prototype.initializeSampling=function(){return null!==this.samplingDecision?{mode:this.currentMode,shouldRecord:!1!==this.currentMode}:Math.random()<this.config.sessionSampleRate?(this.currentMode="session",this.samplingDecision=!0,h("SamplerManager","Sampled: session mode"),{mode:"session",shouldRecord:!0}):0<this.config.errorSampleRate?(this.currentMode="buffer",this.samplingDecision=!0,h("SamplerManager","Sampled: buffer mode"),{mode:"buffer",shouldRecord:!0}):(this.currentMode=!1,this.samplingDecision=!1,h("SamplerManager","Not sampled"),{mode:!1,shouldRecord:!1})},GE.prototype.decideSamplingMode=function(){return this.initializeSampling().mode},GE.prototype.onErrorOccurred=function(e){return"buffer"===this.currentMode&&!this.hasUpgraded&&!!(Math.random()<this.config.errorSampleRate)&&(this.switchMode("session"),this.hasUpgraded=!0)},GE.prototype.switchMode=function(e){var t=this.currentMode;this.currentMode=e,this.samplingDecision=!1!==e,h("SamplerManager","Mode switched: "+t+" -> "+e)},GE.prototype.getCurrentMode=function(){return this.currentMode},GE.prototype.isSampled=function(){return!0===this.samplingDecision},GE.prototype.isSessionMode=function(){return"session"===this.currentMode},GE.prototype.isBufferMode=function(){return"buffer"===this.currentMode},GE.prototype.upgradeToSessionMode=function(){return"buffer"===this.currentMode&&Math.random()<this.config.errorSampleRate&&(this.currentMode="session",h("SamplerManager","Upgraded to session mode due to error"),!0)},GE.prototype.updateRates=function(e,t){"number"==typeof e&&(this.config.sessionSampleRate=e),"number"==typeof t&&(this.config.errorSampleRate=t)},GE.prototype.forceMode=function(e){this.currentMode=e,this.samplingDecision=!1!==e},GE.prototype.reset=function(){this.currentMode=!1,this.samplingDecision=null},GE.prototype.getConfig=function(){return M({},this.config)},GE);function GE(e){var t;void 0===e&&(e={}),this.currentMode=!1,this.samplingDecision=null,this.hasUpgraded=!1,this.config={sessionSampleRate:null!=(t=e.sessionSampleRate)?t:.1,errorSampleRate:null!=(t=e.errorSampleRate)?t:1}}function JE(e,t){this.state="stopped",this.lastCheckoutTime=0,this.checkpointTimer=null,this.mutationLimitReached=!1,this.mutationMerger=null,this.mutationBreadcrumbLimit=750,this.mutationLimit=1e4,this.restoreMutationObserver=null,this.throttleCount=0,this.throttleWindowStart=0,this.throttleNotified=!1,this.mutationAddsInWindow=0,this.options=e,this.mutationBreadcrumbLimit=null!=(e=null==t?void 0:t.mutationBreadcrumbLimit)?e:750,this.mutationLimit=null!=(e=null==t?void 0:t.mutationLimit)?e:1e4,null!=t&&t.enableMutationMerge&&(this.mutationMerger=new HE({windowMs:null!=(e=null==t?void 0:t.mutationMergeWindowMs)?e:200,maxAddsPerMerge:500,enableRepeatDetection:!0}))}function KE(e){var t;this.buffer=null,this.flushTimer=null,this.repeatCount=0,this.emitFn=null,this.mergedCount=0,this.droppedByRepeat=0,this.cancelledByOffset=0,this.windowMs=null!=(t=null==e?void 0:e.windowMs)?t:200,this.maxAddsPerMerge=null!=(t=null==e?void 0:e.maxAddsPerMerge)?t:500,this.enableRepeatDetection=null==(t=null==e?void 0:e.enableRepeatDetection)||t}function $E(e){for(var t=e.length;0<=--t;)e[t]=0}var ZE=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),YE=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),XE=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),QE=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eC=new Array(576),tC=($E(eC),new Array(60)),nC=($E(tC),new Array(512)),rC=($E(nC),new Array(256)),iC=($E(rC),new Array(29));$E(iC);var oC,aC,sC,uC=new Array(30);function lC(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function cC(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}$E(uC);var dC=function(e){return e<256?nC[e]:nC[256+(e>>>7)]},fC=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},hC=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,fC(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},pC=function(e,t,n){hC(e,n[2*t],n[2*t+1])},mC=function(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1},gC=function(e,t,n){for(var r,i=new Array(16),o=0,a=1;a<=15;a++)o=o+n[a-1]<<1,i[a]=o;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=mC(i[s]++,s))}},vC=function(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},yC=function(e){8<e.bi_valid?fC(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},wC=function(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},bC=function(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&wC(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!wC(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},kC=function(e,t,n){var r,i,o,a,s=0;if(0!==e.sym_next)for(;r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,i=e.pending_buf[e.sym_buf+s++],0==r?pC(e,i,t):(o=rC[i],pC(e,o+256+1,t),0!==(a=ZE[o])&&(i-=iC[o],hC(e,i,a)),o=dC(--r),pC(e,o,n),0!==(a=YE[o])&&(r-=uC[o],hC(e,r,a))),s<e.sym_next;);pC(e,256,t)},_C=function(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)bC(e,o,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],bC(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,bC(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,d,f,h,p,m=e,g=t.dyn_tree,v=t.max_code,y=t.stat_desc.static_tree,w=t.stat_desc.has_stree,b=t.stat_desc.extra_bits,k=t.stat_desc.extra_base,_=t.stat_desc.max_length,S=0,E=0;E<=15;E++)m.bl_count[E]=0;for(g[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(E=g[2*g[2*(d=m.heap[c])+1]+1]+1)>_&&(E=_,S++),g[2*d+1]=E,v<d||(m.bl_count[E]++,h=0,k<=d&&(h=b[d-k]),p=g[2*d],m.opt_len+=p*(E+h),w&&(m.static_len+=p*(y[2*d+1]+h)));if(0!==S){do{for(E=_-1;0===m.bl_count[E];)E--}while(m.bl_count[E]--,m.bl_count[E+1]+=2,m.bl_count[_]--,0<(S-=2));for(E=_;0!==E;E--)for(d=m.bl_count[E];0!==d;)(f=m.heap[--c])>v||(g[2*f+1]!==E&&(m.opt_len+=(E-g[2*f+1])*g[2*f],g[2*f+1]=E),d--)}gC(o,l,e.bl_count)},SC=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<u&&i===a||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))},EC=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)for(;pC(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(pC(e,i,e.bl_tree),s--),pC(e,16,e.bl_tree),hC(e,s-3,2)):s<=10?(pC(e,17,e.bl_tree),hC(e,s-3,3)):(pC(e,18,e.bl_tree),hC(e,s-11,7));o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}},CC=!1,RC=function(e,t,n,r){hC(e,0+(r?1:0),3),yC(e),fC(e,n),fC(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},ny=function(e){if(!CC){for(var t,n,r,i=new Array(16),o=0,a=0;a<28;a++)for(iC[a]=o,t=0;t<1<<ZE[a];t++)rC[o++]=a;for(rC[o-1]=a,a=r=0;a<16;a++)for(uC[a]=r,t=0;t<1<<YE[a];t++)nC[r++]=a;for(r>>=7;a<30;a++)for(uC[a]=r<<7,t=0;t<1<<YE[a]-7;t++)nC[256+r++]=a;for(n=0;n<=15;n++)i[n]=0;for(t=0;t<=143;)eC[2*t+1]=8,t++,i[8]++;for(;t<=255;)eC[2*t+1]=9,t++,i[9]++;for(;t<=279;)eC[2*t+1]=7,t++,i[7]++;for(;t<=287;)eC[2*t+1]=8,t++,i[8]++;for(gC(eC,287,i),t=0;t<30;t++)tC[2*t+1]=5,tC[2*t]=mC(t,5);oC=new lC(eC,ZE,257,286,15),aC=new lC(tC,YE,0,30,15),sC=new lC(new Array(0),XE,0,19,7),CC=!0}e.l_desc=new cC(e.dyn_ltree,oC),e.d_desc=new cC(e.dyn_dtree,aC),e.bl_desc=new cC(e.bl_tree,sC),e.bi_buf=0,e.bi_valid=0,vC(e)},lk=RC,n=function(e,t,n,r){var i,o,a,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*n])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(n=32;n<256;n++)if(0!==e.dyn_ltree[2*n])return 1;return 0}(e)),_C(e,e.l_desc),_C(e,e.d_desc),s=function(e){var t;for(SC(e,e.dyn_ltree,e.l_desc.max_code),SC(e,e.dyn_dtree,e.d_desc.max_code),_C(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*QE[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(o=e.static_len+3+7>>>3)<=(i=e.opt_len+3+7>>>3)&&(i=o)):i=o=n+5,n+4<=i&&-1!==t)RC(e,t,n,r);else if(4===e.strategy||o===i)hC(e,2+(r?1:0),3),kC(e,eC,tC);else{hC(e,4+(r?1:0),3);var u=e,l=(t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,s+1);for(hC(u,t-257,5),hC(u,n-1,5),hC(u,l-4,4),a=0;a<l;a++)hC(u,u.bl_tree[2*QE[a]+1],3);EC(u,u.dyn_ltree,t-1),EC(u,u.dyn_dtree,n-1),kC(e,e.dyn_ltree,e.dyn_dtree)}vC(e),r&&yC(e)},OC=function(e,t,n){return e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(rC[n]+256+1)]++,e.dyn_dtree[2*dC(t)]++),e.sym_next===e.sym_end},m=function(e){hC(e,2,3),pC(e,256,eC),16===(e=e).bi_valid?(fC(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},xC=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0},IC=new Uint32Array(function(){for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}()),TC=function(e,t,n,r){var i=IC,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},MC={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},e={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},AC=ny,PC=lk,DC=n,LC=OC,NC=m,FC=e.Z_NO_FLUSH,UC=e.Z_PARTIAL_FLUSH,jC=e.Z_FULL_FLUSH,BC=e.Z_FINISH,zC=e.Z_BLOCK,WC=e.Z_OK,HC=e.Z_STREAM_END,qC=e.Z_STREAM_ERROR,VC=e.Z_DATA_ERROR,GC=e.Z_BUF_ERROR,JC=e.Z_DEFAULT_COMPRESSION,KC=e.Z_FILTERED,$C=e.Z_HUFFMAN_ONLY,ZC=e.Z_RLE,YC=e.Z_FIXED,XC=e.Z_UNKNOWN,QC=e.Z_DEFLATED,Pe=function(e,t){return e.msg=MC[t],t},eR=function(e){return 2*e-(4<e?9:0)},tR=function(e){for(var t=e.length;0<=--t;)e[t]=0},nR=function(e){for(var t,n,r=e.w_size,i=t=e.hash_size;n=e.head[--i],e.head[i]=r<=n?n-r:0,--t;);for(i=t=r;n=e.prev[--i],e.prev[i]=r<=n?n-r:0,--t;);},rR=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},iR=function(e,t){n=e.legacy_hash?e.ins_h=rR(e,e.ins_h,e.window[t+3-1]):(n=(n=e.window)[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24,e.ins_h=Math.imul(n,66521)+66521>>>16&e.hash_mask);var n,r=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,r},oR=function(e){var t=e.state,n=t.pending;0!==(n=e.avail_out<n?e.avail_out:n)&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending)&&(t.pending_out=0)},aR=function(e,t){DC(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,oR(e.strm)},sR=function(e,t){e.pending_buf[e.pending++]=t},uR=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},lR=function(e,t,n,r){var i=e.avail_in;return 0===(i=r<i?r:i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=xC(e.adler,t,i,n):2===e.state.wrap&&(e.adler=TC(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},cR=function(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.w_size-262<e.strstart?e.strstart-(e.w_size-262):0,l=e.window,c=e.w_mask,d=e.prev,f=e.strstart+258,h=l[o+a-1],p=l[o+a];e.good_match<=e.prev_length&&(i>>=2),e.lookahead<s&&(s=e.lookahead);do{if(l[(n=t)+a]===p&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){for(o+=2,n++;l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f;);if(r=258-(f-o),o=f-258,a<r){if(e.match_start=t,s<=(a=r))break;h=l[o+a-1],p=l[o+a]}}}while((t=d[t&c])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead},dR=function(e){var t,n,r=e.w_size;do{if(t=e.window_size-e.lookahead-e.strstart,r+(r-262)<=e.strstart&&(e.window.set(e.window.subarray(r,r+r-t),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.strstart<e.insert&&(e.insert=e.strstart),nR(e),t+=r),0===e.strm.avail_in)break;if(t=lR(e.strm,e.window,e.strstart+e.lookahead,t),e.lookahead+=t,e.legacy_hash){if(3<=e.lookahead+e.insert)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=rR(e,e.ins_h,e.window[n+1]);e.insert&&(iR(e,n),n++,e.insert--,!(e.lookahead+e.insert<3)););}else if(3<e.lookahead+e.insert)for(n=e.strstart-e.insert;e.insert&&(iR(e,n),n++,e.insert--,!(e.lookahead+e.insert<=3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},fR=function(e,t){for(var n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,s=e.strm.avail_in;n=65535,i=e.bi_valid+42>>3,!(e.strm.avail_out<i||(n=(i=e.strm.avail_out-i)<(n=n>(r=e.strstart-e.block_start)+e.strm.avail_in?r+e.strm.avail_in:n)?i:n)<o&&(0===n&&t!==BC||t===FC||n!==r+e.strm.avail_in)||(a=t===BC&&n===r+e.strm.avail_in?1:0,PC(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,oR(e.strm),r&&(n<r&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(lR(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n),0!==a)););return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.strstart<e.insert)&&(e.insert=e.strstart),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=e.w_size-e.insert<s?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==FC&&t!==BC&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.strstart<e.insert)&&(e.insert=e.strstart),(i=i>e.strm.avail_in?e.strm.avail_in:i)&&(lR(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=e.w_size-e.insert<i?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),o=(i=65535<e.pending_buf_size-(i=e.bi_valid+42>>3)?65535:e.pending_buf_size-i)>e.w_size?e.w_size:i,((r=e.strstart-e.block_start)>=o||(r||t===BC)&&t!==FC&&0===e.strm.avail_in&&r<=i)&&(n=i<r?i:r,a=t===BC&&0===e.strm.avail_in&&n===r?1:0,PC(e,e.block_start,n,a),e.block_start+=n,oR(e.strm)),a?3:1)},Be=function(e,t){for(var n,r;;){if(e.lookahead<262){if(dR(e),e.lookahead<262&&t===FC)return 1;if(0===e.lookahead)break}if((n=0)!==(n=3<=e.lookahead?iR(e,e.strstart):n)&&e.strstart-n<=e.w_size-262&&(e.match_length=cR(e,n)),3<=e.match_length)if(r=LC(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,n=iR(e,e.strstart),0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=rR(e,e.ins_h,e.window[e.strstart+1]));else r=LC(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(aR(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===BC?(aR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(aR(e,!1),0===e.strm.avail_out)?1:2},o=function(e,t){for(var n,r,i;;){if(e.lookahead<262){if(dR(e),e.lookahead<262&&t===FC)return 1;if(0===e.lookahead)break}if(n=0,3<=e.lookahead&&(n=iR(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=cR(e,n),e.match_length<=5)&&(e.strategy===KC||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=LC(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(n=iR(e,e.strstart)),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(aR(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=LC(e,0,e.window[e.strstart-1]))&&aR(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=LC(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===BC?(aR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(aR(e,!1),0===e.strm.avail_out)?1:2};function hR(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var pR=[new hR(0,0,0,0,fR),new hR(4,4,8,4,Be),new hR(4,5,16,8,Be),new hR(4,6,32,32,Be),new hR(4,4,16,16,o),new hR(8,16,32,32,o),new hR(8,16,128,128,o),new hR(8,32,128,256,o),new hR(32,128,258,1024,o),new hR(32,258,258,4096,o)];function mR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=QC,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),tR(this.dyn_ltree),tR(this.dyn_dtree),tR(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),tR(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),tR(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var gR=function(e){var t;return!e||!(t=e.state)||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},vR=function(e){if(gR(e))return Pe(e,qC);e.total_in=e.total_out=0,e.data_type=XC;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,AC(t),WC},yR=function(e){var t=vR(e);return t===WC&&((e=e.state).window_size=2*e.w_size,tR(e.head),e.max_lazy_match=pR[e.level].max_lazy,e.good_match=pR[e.level].good_length,e.nice_match=pR[e.level].nice_length,e.max_chain_length=pR[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t},d=function(e,t,n,r,i,o,a){if(!e)return qC;var s=1;if(t===JC&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||9<i||n!==QC||r<8||15<r||t<0||9<t||o<0||YC<o||8===r&&1!==s)return Pe(e,qC);8===r&&(r=9);var u=new mR;return(e.state=u).strm=e,u.status=42,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.legacy_hash=a?1:0,u.hash_bits=i+7,!u.legacy_hash&&u.hash_bits<15&&(u.hash_bits=15),u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.sym_buf=u.lit_bufsize,u.sym_end=3*(u.lit_bufsize-1),u.level=t,u.strategy=o,u.method=n,yR(e)},wR=d,bR=function(e,t){return gR(e)||2!==e.state.wrap?qC:(e.state.gzhead=t,WC)},kR=function(e,t){if(gR(e)||zC<t||t<0)return e?Pe(e,qC):qC;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==BC)return Pe(e,0===e.avail_out?GC:qC);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(oR(e),0===e.avail_out)return n.last_flush=-1,WC}else if(0===e.avail_in&&eR(t)<=eR(r)&&t!==BC)return Pe(e,GC);if(666===n.status&&0!==e.avail_in)return Pe(e,GC);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){r=QC+(n.w_bits-8<<4)<<8;if(r|=(n.strategy>=$C||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(r|=32),uR(n,r+=31-r%31),0!==n.strstart&&(uR(n,e.adler>>>16),uR(n,65535&e.adler)),e.adler=1,n.status=113,oR(e),0!==n.pending)return n.last_flush=-1,WC}if(57===n.status)if(e.adler=0,sR(n,31),sR(n,139),sR(n,8),n.gzhead)sR(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),sR(n,255&n.gzhead.time),sR(n,n.gzhead.time>>8&255),sR(n,n.gzhead.time>>16&255),sR(n,n.gzhead.time>>24&255),sR(n,9===n.level?2:n.strategy>=$C||n.level<2?4:0),sR(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(sR(n,255&n.gzhead.extra.length),sR(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=TC(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(sR(n,0),sR(n,0),sR(n,0),sR(n,0),sR(n,0),sR(n,9===n.level?2:n.strategy>=$C||n.level<2?4:0),sR(n,3),n.status=113,oR(e),0!==n.pending)return n.last_flush=-1,WC;if(69===n.status){if(n.gzhead.extra){for(var i=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=TC(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,oR(e),0!==n.pending)return n.last_flush=-1,WC;i=0,o-=a}r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=TC(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){var s,u=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>u&&(e.adler=TC(e.adler,n.pending_buf,n.pending-u,u)),oR(e),0!==n.pending)return n.last_flush=-1,WC;u=0}}while(s=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,sR(n,s),0!=s);n.gzhead.hcrc&&n.pending>u&&(e.adler=TC(e.adler,n.pending_buf,n.pending-u,u)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){var l,c=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>c&&(e.adler=TC(e.adler,n.pending_buf,n.pending-c,c)),oR(e),0!==n.pending)return n.last_flush=-1,WC;c=0}}while(l=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,sR(n,l),0!=l);n.gzhead.hcrc&&n.pending>c&&(e.adler=TC(e.adler,n.pending_buf,n.pending-c,c))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(oR(e),0!==n.pending))return n.last_flush=-1,WC;sR(n,255&e.adler),sR(n,e.adler>>8&255),e.adler=0}if(n.status=113,oR(e),0!==n.pending)return n.last_flush=-1,WC}if(0!==e.avail_in||0!==n.lookahead||t!==FC&&666!==n.status){r=0===n.level?fR(n,t):n.strategy===$C?function(e,t){for(var n;;){if(0===e.lookahead&&(dR(e),0===e.lookahead)){if(t===FC)return 1;break}if(e.match_length=0,n=LC(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(aR(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===BC?(aR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(aR(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===ZC?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=258){if(dR(e),e.lookahead<=258&&t===FC)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=e.strstart+258;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);e.match_length=258-(o-i),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(3<=e.match_length?(n=LC(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=LC(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(aR(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===BC?(aR(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(aR(e,!1),0===e.strm.avail_out)?1:2}(n,t):pR[n.level].func(n,t);if(3!==r&&4!==r||(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),WC;if(2===r&&(t===UC?NC(n):t!==zC&&(PC(n,0,0,!1),t===jC)&&(tR(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),oR(e),0===e.avail_out))return n.last_flush=-1,WC}return t!==BC||!(n.wrap<=0)&&(2===n.wrap?(sR(n,255&e.adler),sR(n,e.adler>>8&255),sR(n,e.adler>>16&255),sR(n,e.adler>>24&255),sR(n,255&e.total_in),sR(n,e.total_in>>8&255),sR(n,e.total_in>>16&255),sR(n,e.total_in>>24&255)):(uR(n,e.adler>>>16),uR(n,65535&e.adler)),oR(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?WC:HC},_R=function(e){var t;return gR(e)?qC:(t=e.state.status,e.state=null,113===t?Pe(e,VC):WC)},SR=function(e,t){var n=t.length;if(gR(e))return qC;var r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return qC;1===i&&(e.adler=xC(e.adler,t,n,0)),r.wrap=0,r.w_size<=n&&(0===i&&(tR(r.head),r.strstart=0,r.block_start=0,r.insert=0),(o=new Uint8Array(r.w_size)).set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size);var o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,dR(r);3<=r.lookahead;){for(var u=r.strstart,l=r.lookahead-2;iR(r,u),u++,--l;);r.strstart=u,r.lookahead=2,dR(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,WC},ER=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},CR=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==I(n))throw new TypeError(n+"must be non-object");for(var r in n)ER(n,r)&&(e[r]=n[r])}}return e},RR=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),o=0,a=0,s=e.length;o<s;o++){var u=e[o];i.set(u,a),a+=u.length}return i},OR=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Ox){OR=!1}for(var xR=new Uint8Array(256),IR=0;IR<256;IR++)xR[IR]=252<=IR?6:248<=IR?5:240<=IR?4:224<=IR?3:192<=IR?2:1;xR[254]=xR[255]=1;var TR=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);for(var t,n,r,i,o=e.length,a=0,s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=i=0;i<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},MR=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},AR=Object.prototype.toString,PR=e.Z_NO_FLUSH,DR=e.Z_SYNC_FLUSH,LR=e.Z_FULL_FLUSH,NR=e.Z_FINISH,FR=e.Z_OK,UR=e.Z_STREAM_END,jR={level:e.Z_DEFAULT_COMPRESSION,method:e.Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:e.Z_DEFAULT_STRATEGY,legacyHash:!0};function BR(e){this.options=CR({},jR,e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new MR,this.strm.avail_out=0,wR(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy,e.legacyHash));if(t!==FR)throw new Error(MC[t]);if(e.header&&bR(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?TR(e.dictionary):"[object ArrayBuffer]"===AR.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if((t=SR(this.strm,e))!==FR)throw new Error(MC[t]);this._dict_set=!0}}function zR(e,t){t=new BR(t);if(t.push(e,!0),t.err)throw t.msg||MC[t.err];return t.result}BR.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?NR:PR,"string"==typeof e?i.input=TR(e):"[object ArrayBuffer]"===AR.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===DR||r===LR)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(kR(i,r)===UR)return 0<i.next_out&&this.onData(i.output.subarray(0,i.next_out)),n=_R(this.strm),this.onEnd(n),this.ended=!0,n===FR;if(0!==i.avail_out){if(0<r&&0<i.next_out)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},BR.prototype.onData=function(e){this.chunks.push(e)},BR.prototype.onEnd=function(e){e===FR&&(this.result=RR(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var WR={Deflate:BR,deflate:zR,deflateRaw:function(e,t){return(t=t||{}).raw=!0,zR(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,zR(e,t)},constants:e},HR=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),qR=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),VR=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),GR=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),JR=function(e,t,n,r,i,o,a,s){for(var u,l,c,d,f,h,p,m,g,v=s.bits,y=0,w=0,b=0,k=0,_=0,S=0,E=0,C=0,R=0,O=0,x=null,I=new Uint16Array(16),T=new Uint16Array(16),M=null,y=0;y<=15;y++)I[y]=0;for(w=0;w<r;w++)I[t[n+w]]++;for(_=v,k=15;1<=k&&0===I[k];k--);if(k<_&&(_=k),0===k)i[o++]=20971520,i[o++]=20971520,s.bits=1;else{for(b=1;b<k&&0===I[b];b++);for(_<b&&(_=b),y=C=1;y<=15;y++)if((C=(C<<1)-I[y])<0)return-1;if(0<C&&(0===e||1!==k))return-1;for(T[1]=0,y=1;y<15;y++)T[y+1]=T[y]+I[y];for(w=0;w<r;w++)0!==t[n+w]&&(a[T[t[n+w]]++]=w);if(h=0===e?(x=M=a,20):1===e?(x=HR,M=qR,257):(x=VR,M=GR,0),y=b,f=o,E=w=O=0,c=-1,d=(R=1<<(S=_))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(g=a[w]+1<h?(m=0,a[w]):a[w]>=h?(m=M[a[w]-h],x[a[w]-h]):(m=96,0),u=1<<(p=y-E),b=l=1<<S;i[f+(O>>E)+(l-=u)]=p<<24|m<<16|g|0,0!==l;);for(u=1<<y-1;O&u;)u>>=1;if(0!==u?O=(O&u-1)+u:O=0,w++,0==--I[y]){if(y===k)break;y=t[n+a[w]]}if(_<y&&(O&d)!==c){for(f+=b,C=1<<(S=y-(E=0===E?_:E));S+E<k&&!((C-=I[S+E])<=0);)S++,C<<=1;if(R+=1<<S,1===e&&852<R||2===e&&592<R)return 1;i[c=O&d]=_<<24|S<<16|f-o|0}}0!==O&&(i[f+O]=y-E<<24|64<<16|0),s.bits=_}return 0},KR=e.Z_FINISH,$R=e.Z_BLOCK,ZR=e.Z_TREES,YR=e.Z_OK,XR=e.Z_STREAM_END,QR=e.Z_NEED_DICT,eO=e.Z_STREAM_ERROR,tO=e.Z_DATA_ERROR,nO=e.Z_MEM_ERROR,rO=e.Z_BUF_ERROR,iO=e.Z_DEFLATED,oO=16209,aO=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function sO(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var uO,lO,cO=function(e){var t;return!e||!(t=e.state)||t.strm!==e||t.mode<16180||16211<t.mode?1:0},dO=function(e){var t;return cO(e)?eO:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,YR)},fO=function(e){var t;return cO(e)?eO:((t=e.state).wsize=0,t.whave=0,t.wnext=0,dO(e))},hO=function(e,t){var n,r;return cO(e)||(r=e.state,t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?eO:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,fO(e))},pO=function(e,t){var n;return e?(n=new sO,(e.state=n).strm=e,n.window=null,n.mode=16180,(n=hO(e,t))!==YR&&(e.state=null),n):eO},mO=!0,gO=function(e,t,n,r){var i,e=e.state;return null===e.window&&(e.window=new Uint8Array(1<<e.wbits)),0===e.wsize&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0),e.wsize<=r?(e.window.set(t.subarray(n-e.wsize,n),0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>r&&(i=r),e.window.set(t.subarray(n-r,n-r+i),e.wnext),(r-=i)?(e.window.set(t.subarray(n-r,n),0),e.wnext=r,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0},vO=fO,yO=pO,wO=function(e,t){var n,r,i,o,a,s,u,l,c,d,f,h,p,m,g,v,y,w,b,k,_,S,E,C,R=0,O=new Uint8Array(4),x=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(cO(e)||!e.output||!e.input&&0!==e.avail_in)return eO;16191===(n=e.state).mode&&(n.mode=16192),a=e.next_out,i=e.output,o=e.next_in,r=e.input,l=n.hold,c=n.bits,d=s=e.avail_in,f=u=e.avail_out,S=YR;e:for(;;)switch(n.mode){case 16180:if(0===n.wrap)n.mode=16192;else{for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}2&n.wrap&&35615===l?(0===n.wbits&&(n.wbits=15),O[n.check=0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0),c=l=0,n.mode=16181):(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31?(e.msg="incorrect header check",n.mode=oO):(15&l)!==iO?(e.msg="unknown compression method",n.mode=oO):(c-=4,_=8+(15&(l>>>=4)),0===n.wbits&&(n.wbits=_),15<_||_>n.wbits?(e.msg="invalid window size",n.mode=oO):(n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&l?16189:16191,c=l=0)))}break;case 16181:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.flags=l,(255&n.flags)!==iO){e.msg="unknown compression method",n.mode=oO;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=oO;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0)),c=l=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,n.check=TC(n.check,O,4,0)),c=l=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0)),c=l=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=TC(n.check,O,2,0)),c=l=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((h=(h=n.length)>s?s:h)&&(n.head&&(_=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+h),_)),512&n.flags&&4&n.wrap&&(n.check=TC(n.check,r,h,o)),s-=h,o+=h,n.length-=h),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;for(h=0;_=r[o+h++],n.head&&_&&n.length<65536&&(n.head.name+=String.fromCharCode(_)),_&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=TC(n.check,r,h,o)),s-=h,o+=h,_)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;for(h=0;_=r[o+h++],n.head&&_&&n.length<65536&&(n.head.comment+=String.fromCharCode(_)),_&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=TC(n.check,r,h,o)),s-=h,o+=h,_)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=oO;break}c=l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}e.adler=n.check=aO(l),c=l=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,QR;e.adler=n.check=1,n.mode=16191;case 16191:if(t===$R||t===ZR)break e;case 16192:if(n.last)l>>>=7&c,c-=7&c,n.mode=16206;else{for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}switch(n.last=1&l,--c,3&(l>>>=1)){case 0:n.mode=16193;break;case 1:if(function(e){if(mO){uO=new Int32Array(512),lO=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(JR(1,e.lens,0,288,uO,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;JR(2,e.lens,0,32,lO,0,e.work,{bits:5}),mO=!1}e.lencode=uO,e.lenbits=9,e.distcode=lO,e.distbits=5}(n),n.mode=16199,t!==ZR)break;l>>>=2,c-=2;break e;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=oO}l>>>=2,c-=2}break;case 16193:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=oO;break}if(n.length=65535&l,c=l=0,n.mode=16194,t===ZR)break e;case 16194:n.mode=16195;case 16195:if(h=n.length){if(0===(h=u<(h=s<h?s:h)?u:h))break e;i.set(r.subarray(o,o+h),a),s-=h,o+=h,u-=h,a+=h,n.length-=h}else n.mode=16191;break;case 16196:for(;c<14;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.nlen=257+(31&l),l>>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=oO;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.lens[x[n.have++]]=7&l,l>>>=3,c-=3}for(;n.have<19;)n.lens[x[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=JR(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){e.msg="invalid code lengths set",n.mode=oO;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;v=(R=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(y<16)l>>>=g,c-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(l>>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=oO;break}_=n.lens[n.have-1],h=3+(3&l),l>>>=2,c-=2}else if(17===y){for(C=g+3;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}_=0,h=3+(7&(l>>>=g)),l>>>=3,c=c-g-3}else{for(C=g+7;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}_=0,h=11+(127&(l>>>=g)),l>>>=7,c=c-g-7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=oO;break}for(;h--;)n.lens[n.have++]=_}}if(n.mode===oO)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=oO;break}if(n.lenbits=9,E={bits:n.lenbits},S=JR(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){e.msg="invalid literal/lengths set",n.mode=oO;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=JR(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){e.msg="invalid distances set",n.mode=oO;break}if(n.mode=16199,t===ZR)break e;case 16199:n.mode=16200;case 16200:if(6<=s&&258<=u){e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,function(e,t){var n,r,i,o,a,s,u=e.state,l=e.next_in,c=e.input,d=l+(e.avail_in-5),f=e.next_out,h=e.output,p=f-(t-e.avail_out),m=f+(e.avail_out-257),g=u.dmax,v=u.wsize,y=u.whave,w=u.wnext,b=u.window,k=u.hold,_=u.bits,S=u.lencode,E=u.distcode,C=(1<<u.lenbits)-1,R=(1<<u.distbits)-1;t:do{for(_<15&&(k+=c[l++]<<_,_+=8,k+=c[l++]<<_,_+=8),n=S[k&C];;){if(k>>>=r=n>>>24,_-=r,0==(r=n>>>16&255))h[f++]=65535&n;else{if(!(16&r)){if(0==(64&r)){n=S[(65535&n)+(k&(1<<r)-1)];continue}if(32&r){u.mode=16191;break t}e.msg="invalid literal/length code",u.mode=16209;break t}for(i=65535&n,(r&=15)&&(_<r&&(k+=c[l++]<<_,_+=8),i+=k&(1<<r)-1,k>>>=r,_-=r),_<15&&(k+=c[l++]<<_,_+=8,k+=c[l++]<<_,_+=8),n=E[k&R];;){if(k>>>=r=n>>>24,_-=r,!(16&(r=n>>>16&255))){if(0==(64&r)){n=E[(65535&n)+(k&(1<<r)-1)];continue}e.msg="invalid distance code",u.mode=16209;break t}if(o=65535&n,_<(r&=15)&&(k+=c[l++]<<_,(_+=8)<r)&&(k+=c[l++]<<_,_+=8),(o+=k&(1<<r)-1)>g){e.msg="invalid distance too far back",u.mode=16209;break t}if(k>>>=r,_-=r,o>(r=f-p)){if((r=o-r)>y&&u.sane){e.msg="invalid distance too far back",u.mode=16209;break t}if(s=b,(a=0)===w){if(a+=v-r,r<i){for(i-=r;h[f++]=b[a++],--r;);a=f-o,s=h}}else if(w<r){if(a+=v+w-r,(r-=w)<i){for(i-=r;h[f++]=b[a++],--r;);if(a=0,w<i){for(i-=r=w;h[f++]=b[a++],--r;);a=f-o,s=h}}}else if(a+=w-r,r<i){for(i-=r;h[f++]=b[a++],--r;);a=f-o,s=h}for(;2<i;)h[f++]=s[a++],h[f++]=s[a++],h[f++]=s[a++],i-=3;i&&(h[f++]=s[a++],1<i)&&(h[f++]=s[a++])}else{for(a=f-o;h[f++]=h[a++],h[f++]=h[a++],h[f++]=h[a++],2<(i-=3););i&&(h[f++]=h[a++],1<i)&&(h[f++]=h[a++])}break}}break}}while(l<d&&f<m);l-=i=_>>3,k&=(1<<(_-=i<<3))-1,e.next_in=l,e.next_out=f,e.avail_in=l<d?d-l+5:5-(l-d),e.avail_out=f<m?m-f+257:257-(f-m),u.hold=k,u.bits=_}(e,f),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;v=(R=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(v&&0==(240&v)){for(w=g,b=v,k=y;v=(R=n.lencode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&R,!(w+(g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,n.length=y,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=16191;break}if(64&v){e.msg="invalid literal/length code",n.mode=oO;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(C=n.extra;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;v=(R=n.distcode[l&(1<<n.distbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(0==(240&v)){for(w=g,b=v,k=y;v=(R=n.distcode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&R,!(w+(g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=oO;break}n.offset=y,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(C=n.extra;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=oO;break}n.mode=16204;case 16204:if(0===u)break e;if(n.offset>(h=f-u)){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=oO;break}p=h>n.wnext?(h-=n.wnext,n.wsize-h):n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=i,p=a-n.offset,h=n.length;for(u-=h=u<h?u:h,n.length-=h;i[a++]=m[p++],--h;);0===n.length&&(n.mode=16200);break;case 16205:if(0===u)break e;i[a++]=n.length,u--,n.mode=16200;break;case 16206:if(n.wrap){for(;c<32;){if(0===s)break e;s--,l|=r[o++]<<c,c+=8}if(f-=u,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=(n.flags?TC:xC)(n.check,i,f,a-f)),f=u,4&n.wrap&&(n.flags?l:aO(l))!==n.check){e.msg="incorrect data check",n.mode=oO;break}c=l=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=oO;break}c=l=0}n.mode=16208;case 16208:S=XR;break e;case oO:S=tO;break e;case 16210:return nO;default:return eO}return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,(n.wsize||f!==e.avail_out&&n.mode<oO&&(n.mode<16206||t!==KR))&&gO(e,e.output,e.next_out,f-e.avail_out),f-=e.avail_out,e.total_in+=d-=e.avail_in,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=(n.flags?TC:xC)(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(16191===n.mode?128:0)+(16199===n.mode||16194===n.mode?256:0),S=(0==d&&0===f||t===KR)&&S===YR?rO:S},bO=function(e){var t;return cO(e)?eO:((t=e.state).window&&(t.window=null),e.state=null,YR)},kO=function(e,t){return cO(e)||0==(2&(e=e.state).wrap)?eO:((e.head=t).done=!1,YR)},_O=function(e,t){var n,r=t.length;return cO(e)||0!==(n=e.state).wrap&&16190!==n.mode?eO:16190===n.mode&&xC(1,t,r,0)!==n.check?tO:gO(e,t,r,r)?(n.mode=16210,nO):(n.havedict=1,YR)},SO=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},EO=Object.prototype.toString,CO=e.Z_NO_FLUSH,RO=e.Z_FINISH,OO=e.Z_OK,xO=e.Z_STREAM_END,IO=e.Z_NEED_DICT,TO=e.Z_STREAM_ERROR,MO=e.Z_DATA_ERROR,AO=e.Z_MEM_ERROR,PO=e.Z_BUF_ERROR,DO={chunkSize:65536,windowBits:15,to:""};function LO(e){this.options=CR({},DO,e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new MR,this.strm.avail_out=0,yO(this.strm,t.windowBits));if(e!==OO)throw new Error(MC[e]);if(this.header=new SO,kO(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=TR(t.dictionary):"[object ArrayBuffer]"===EO.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=_O(this.strm,t.dictionary))!==OO)throw new Error(MC[e])}function NO(e,t){t=new LO(t);if(t.push(e,!0),t.err)throw t.msg||MC[t.err];return t.result}LO.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize,a=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?RO:CO,"[object ArrayBuffer]"===EO.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=wO(i,r))===IO&&a&&((n=_O(i,a))===OO?n=wO(i,r):n===MO&&(n=IO));0<i.avail_in&&n===xO&&2&i.state.wrap&&0!==i.state.flags&&0!==i.input[i.next_in];)vO(i),n=wO(i,r);switch(n){case TO:case MO:case IO:case AO:return this.onEnd(n),!(this.ended=!0)}var s,u,l,c=i.avail_out;if(i.next_out&&(0===i.avail_out||n===xO||0<r)&&("string"===this.options.to?(s=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+xR[e[n]]>t?n:t}(i.output,i.next_out),u=i.next_out-s,l=function(e,t){var n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));for(var r=new Array(2*n),i=0,o=0;o<n;){var a=e[o++];if(a<128)r[i++]=a;else{var s=xR[a];if(4<s)r[i++]=65533,o+=s-1;else{for(a&=2===s?31:3===s?15:7;1<s&&o<n;)a=a<<6|63&e[o++],s--;1<s?r[i++]=65533:a<65536?r[i++]=a:(a-=65536,r[i++]=55296|a>>10&1023,r[i++]=56320|1023&a)}}}var u=r,l=i;if(l<65534&&u.subarray&&OR)return String.fromCharCode.apply(null,u.length===l?u:u.subarray(0,l));for(var c="",d=0;d<l;d++)c+=String.fromCharCode(u[d]);return c}(i.output,s),i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(s,s+u),0),this.onData(l)):(this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out)),i.avail_out=0,i.next_out=0)),n!==OO&&n!==PO||0!==c){if(n===xO)return n=bO(this.strm),this.onEnd(n),this.ended=!0;if(0===i.avail_in){if(r===RO)return n=bO(this.strm),this.onEnd(n===OO?PO:n),!(this.ended=!0);break}}}return!0},LO.prototype.onData=function(e){this.chunks.push(e)},LO.prototype.onEnd=function(e){e===OO&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=RR(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var FO,t={Inflate:LO,inflate:NO,inflateRaw:function(e,t){return(t=t||{}).raw=!0,NO(e,t)},ungzip:NO,constants:e},UO={Deflate:WR.Deflate,deflate:WR.deflate,deflateRaw:WR.deflateRaw,gzip:WR.gzip,Inflate:t.Inflate,inflate:t.inflate,inflateRaw:t.inflateRaw,ungzip:t.ungzip,constants:e},jO=(_l(WO,FO=Error),WO),BO=(zO.prototype.uploadReplay=function(t){return Sl(this,void 0,void 0,function(){return El(this,function(e){switch(e.label){case 0:return[4,this.uploadReplayResult(t)];case 1:return[2,"success"===e.sent().status]}})})},zO.prototype.uploadReplayResult=function(i){return Sl(this,void 0,void 0,function(){var t,n,r;return El(this,function(e){switch(e.label){case 0:if(this.isUploading)return[2,{status:"busy",attempts:0}];this.isUploading=!0,t=0,e.label=1;case 1:if(e.trys.push([1,9,10,11]),!(n=this.config.beforeSend(i)))return[2,{status:"cancelled",attempts:t}];if((!n.replay_format||"rrweb"===n.replay_format)&&"gzip_base64"!==n.events_encoding&&5242880<iw(n.events))throw new jO("Segment exceeds decoded events limit");e.label=2;case 2:e.label=3;case 3:return e.trys.push([3,5,,7]),t++,[4,this.doUpload(n)];case 4:return e.sent(),[2,{status:"success",attempts:t}];case 5:if((r=e.sent()).permanent||t>this.config.maxRetries)throw r;return r=1e3*Math.pow(2,t-1),h("Uploader","Retrying segment "+i.segment_id+" in "+r+"ms"),[4,this.sleep(r)];case 6:return e.sent(),[3,7];case 7:return[3,2];case 8:return[3,11];case 9:X0("Uploader","Upload failed:",r=e.sent());try{this.config.onError(r)}catch(L){Y0("Uploader","onError callback failed:",L)}return[2,{status:r.permanent?"rejected":"exhausted",attempts:t}];case 10:return this.isUploading=!1,[7];case 11:return[2]}})})},zO.prototype.prepareUploadPayload=function(e){var t=e.replay_format||"rrweb",n=e.events_encoding||"plain_json";if("rrweb"!==t)return e;if(!this.config.eventsCompression||"gzip_base64"===n)return M(M({},e),{replay_format:t,platform:e.platform||"web",events_encoding:n});try{var r=UO.gzip(e.events),i=this.uint8ArrayToBase64(r),o=e.events.length,a=r.length,s=i.length;return h("Uploader","Events compressed: "+Math.round(o/1024)+"KB -> gzip "+Math.round(a/1024)+"KB -> base64 "+Math.round(s/1024)+"KB"),M(M({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"gzip_base64",events:i})}catch(X){return Y0("Uploader","Events compression failed, fallback to plain_json:",X),M(M({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"plain_json"})}},zO.prototype.uint8ArrayToBase64=function(e){for(var t="",n=0;n<e.length;n+=32768){for(var r=e.subarray(n,n+32768),i="",o=0;o<r.length;o++)i+=String.fromCharCode(r[o]);t+=i}if("function"==typeof btoa)return btoa(t);if("undefined"!=typeof Buffer)return Buffer.from(e).toString("base64");throw new Error("base64 encode is not supported")},zO.prototype.doUpload=function(a){return Sl(this,void 0,void 0,function(){var t,n,r,i,o;return El(this,function(e){switch(e.label){case 0:if(t=this.prepareUploadPayload(a),o=JSON.stringify(t),n={"Content-Type":"application/json","X-App-ID":this.config.appId},h("Uploader","Sending replay payload: "+Math.round(o.length/1024)+"KB, events_encoding="+(t.events_encoding||"plain_json")),o.length<65536||h("Uploader","Data size "+Math.round(o.length/1024)+"KB exceeds keepalive limit, using normal fetch"),this.config.transport)return[4,this.config.transport.request({kind:"replay",url:this.config.uploadUrl,method:"POST",headers:n,body:o,retry:!1})];throw new Error("Replay Transport is not configured");case 1:t=e.sent(),n=t||{ok:!1,status:0,statusText:"Transport failed"};try{i="string"==typeof n.body?JSON.parse(n.body):n.body,r=null==i?void 0:i.code}catch(Me){}if(413===n.status||1007===r||1001===r||1006===r)throw new jO("Replay rejected: HTTP "+(n.status||0)+", code "+(r||0));if(!n.ok)throw new Error("HTTP "+(n.status||0)+": "+(n.statusText||"Transport failed"));if(0!==(o="string"==typeof n.body?JSON.parse(n.body):n.body).code)throw new Error("Server error (code "+o.code+"): "+o.message);return[2]}})})},zO.prototype.measurePayload=function(e){return iw(this.serializePayload(e))},zO.prototype.sendBeacon=function(e){var t,n;try{var r,i=this.serializePayload(e);return null!=(t=this.config.transport)&&t.handoff?(r=this.config.transport.handoff({kind:"replay",url:this.config.uploadUrl,method:"POST",contentType:"application/json",body:i,sendBeacon:!0}))&&"function"==typeof r.then?(Y0("Uploader","sendBeacon handoff is async, acceptance is unknown"),!1):!0===(null==(n=r)?void 0:n.handoffAccepted):!1}catch(X){return X0("Uploader","sendBeacon failed:",X),!1}},zO.prototype.serializePayload=function(e){return JSON.stringify(this.prepareUploadPayload(e))},zO.prototype.isUploadInProgress=function(){return this.isUploading},zO.prototype.sleep=function(t){return new Promise(function(e){return setTimeout(e,t)})},zO);function zO(e){var t;this.isUploading=!1,this.useCompression=!1,this.config={uploadUrl:e.uploadUrl||"/api/v1/collect/replay",appId:e.appId,maxRetries:null!=(t=e.maxRetries)?t:3,beforeSend:e.beforeSend||function(e){return e},onError:e.onError||function(){},eventsCompression:null==(t=e.eventsCompression)||t,transport:e.transport}}function WO(){var e=null!==FO&&FO.apply(this,arguments)||this;return e.permanent=!0,e}R({target:"String",proto:!0,forced:_y("anchor")},{anchor:function(e){return ww(this,"a","name",e)}});qO.prototype.start=function(){this.isRunning||(document.addEventListener("pointerdown",this.handlePointerDown,!0),document.addEventListener("click",this.handleClick,!0),document.addEventListener("visibilitychange",this.onVisibility),window.addEventListener("pagehide",this.closeRage),window.addEventListener("beforeunload",this.closeRage),this.isRunning=!0,h("ClickDetector","Started"))},qO.prototype.stop=function(){this.isRunning&&(document.removeEventListener("pointerdown",this.handlePointerDown,!0),document.removeEventListener("click",this.handleClick,!0),document.removeEventListener("visibilitychange",this.onVisibility),window.removeEventListener("pagehide",this.closeRage),window.removeEventListener("beforeunload",this.closeRage),this.cleanupSlowClick(),this.finishRage(),this.isRunning=!1,h("ClickDetector","Stopped"))},qO.prototype.handlePointerDown=function(e){var t=this,n=e.target;n&&n instanceof Element&&(n=cv(n),this.cleanupSlowClick(),this.clickStartTime=Date.now(),this.clickNode=n,(e=this.getExternalNavigationReason(e,n))?"custom"!==e?this.markEffectiveAction(e):this.cleanupSlowClick():(this.slowClickTimeoutId=setTimeout(function(){t.handleSlowClick("timeout")},this.options.slowClickTimeout),this.startMutationObserver()))},qO.prototype.handleClick=function(e){var t,n,r,i=this;e.target instanceof Element&&(r=cv(e.target),t=Date.now(),e={node:this.getNodeInfo(r),target:r,event:e,timestamp:t,effectiveActionReason:this.getExternalNavigationReason(e,r)||undefined},this.cleanupSlowClick(),this.clickNode=r,this.clickStartTime=t,this.slowClickTimeoutId=setTimeout(function(){return i.handleSlowClick("timeout")},this.options.slowClickTimeout),this.startMutationObserver(),this.options.onClickStart(e),e.effectiveActionReason&&"custom"!==e.effectiveActionReason&&this.markEffectiveAction(e.effectiveActionReason),n=this.options.getClickContext(),this.rage&&(this.rage.target!==r||this.rage.context!==n||t-this.rage.lastAt>=this.options.rageClickWindow)&&this.finishRage(),r=this.rage||{target:r,context:n,candidates:[],related:[],count:0,lastAt:t},(this.rage=r).lastAt=t,r.anchor?(r.count++,r.related=Cl(r.related,[e]).slice(-10)):(r.candidates=Cl(r.candidates,[e]).filter(function(e){return t-e.timestamp<=i.options.rageClickWindow}).slice(-this.options.rageClickCount),r.candidates.length>=this.options.rageClickCount&&(r.anchor=r.candidates[0],r.count=r.candidates.length,r.related=r.candidates,r.candidates=[])),null!==this.rageTimer&&clearTimeout(this.rageTimer),this.rageTimer=setTimeout(function(){return i.finishRage()},this.options.rageClickWindow))},qO.prototype.finishRage=function(){null!==this.rageTimer&&clearTimeout(this.rageTimer),this.rageTimer=null;var e,t=this.rage;(this.rage=null)!=t&&t.anchor&&(e=t.related.includes(t.anchor)?t.related:Cl([t.anchor],t.related.slice(-9)),this.options.onRageClick({node:t.anchor.node,clickCount:t.count,timeWindowMs:this.options.rageClickWindow,timestamp:t.anchor.timestamp,lastTimestamp:t.lastAt,clicks:e}))},qO.prototype.startMutationObserver=function(){var t=this;this.clickNode&&document.body&&"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){t.hasSignificantMutation(e)&&(t.emitEffectiveAction("dom_mutation"),t.handleSlowClick("mutation"))}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"],characterData:!0}))},qO.prototype.hasSignificantMutation=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("characterData"===r.type)return!0;if("childList"===r.type&&(0<r.addedNodes.length||0<r.removedNodes.length)&&Array.from(r.addedNodes).concat(Array.from(r.removedNodes)).some(function(e){var t;return e.nodeType===Node.TEXT_NODE&&!(null==(t=e.textContent)||!t.trim())||e.nodeType===Node.ELEMENT_NODE&&!["SCRIPT","STYLE","LINK"].includes(e.tagName)}))return!0;if("attributes"===r.type){r=r.attributeName;if(["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"].includes(r||""))return!0}}return!1},qO.prototype.handleSlowClick=function(e){var t;this.clickNode&&this.clickStartTime&&((t=Date.now()-this.clickStartTime)>=this.options.slowClickThreshold&&this.options.onSlowClick({node:this.getNodeInfo(this.clickNode),timeAfterClickMs:t,endReason:e,timestamp:this.clickStartTime}),this.cleanupSlowClick())},qO.prototype.cleanupSlowClick=function(){this.slowClickTimeoutId&&(clearTimeout(this.slowClickTimeoutId),this.slowClickTimeoutId=null),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.clickStartTime=0,this.clickNode=null},qO.prototype.markEffectiveAction=function(e){this.clickNode&&this.clickStartTime&&(this.emitEffectiveAction(e),this.cleanupSlowClick())},qO.prototype.emitEffectiveAction=function(e){this.clickNode&&this.options.onEffectiveAction({reason:e,timestamp:Date.now(),node:this.getNodeInfo(this.clickNode)})},qO.prototype.getExternalNavigationReason=function(e,t){var n=t.closest("a");if(n){if(n.download)return"download";var r=(n.getAttribute("target")||"").toLowerCase();if(r&&"_self"!==r)return"external_navigation";if(n.href&&(1===e.button||e.metaKey||e.ctrlKey||e.shiftKey))return"external_navigation"}r=t.closest("form"),n=((null==r?void 0:r.getAttribute("target"))||"").toLowerCase();return n&&"_self"!==n?"external_navigation":t.hasAttribute("data-tdem-ignore-dead-click")||t.closest("[data-tdem-ignore-dead-click]")||t.hasAttribute("data-tdem-effective-action")||t.closest("[data-tdem-effective-action]")?"custom":null},qO.prototype.getNodeInfo=function(e){var t;return{id:(null==(t=e.__sn)?void 0:t.id)||0,tagName:e.tagName.toLowerCase(),textContent:(e.textContent||"").trim().substring(0,100),selector:this.getSelector(e)}},qO.prototype.getSelector=function(e){for(var t=[],n=e;n&&n!==document.body&&t.length<5;){var r,i=n.tagName.toLowerCase();if(n.id){i+="#"+n.id,t.unshift(i);break}n.className&&"string"==typeof n.className&&0<(r=n.className.trim().split(/\s+/).slice(0,2)).length&&(i+="."+r.join(".")),t.unshift(i),n=n.parentElement}return t.join(" > ")},qO.prototype.isActive=function(){return this.isRunning};var HO=qO;function qO(e){var t,n=this;void 0===e&&(e={}),this.isRunning=!1,this.clickStartTime=0,this.clickNode=null,this.slowClickTimeoutId=null,this.mutationObserver=null,this.rage=null,this.rageTimer=null,this.closeRage=function(){return n.finishRage()},this.onVisibility=function(){"hidden"===document.visibilityState&&n.finishRage()},this.options={slowClickTimeout:null!=(t=e.slowClickTimeout)?t:7e3,slowClickThreshold:null!=(t=e.slowClickThreshold)?t:3e3,rageClickCount:null!=(t=e.rageClickCount)?t:5,rageClickWindow:null!=(t=e.rageClickWindow)?t:3e3,onSlowClick:e.onSlowClick||function(){},onRageClick:e.onRageClick||function(){},onClickStart:e.onClickStart||function(){},onEffectiveAction:e.onEffectiveAction||function(){},onDeadClick:e.onDeadClick||function(){},getClickContext:e.getClickContext||function(){return window.location.href}},this.handleClick=this.handleClick.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this)}function VO(e){return Number.isNaN(e)?0:Math.max(0,Math.min(1,e))}function GO(e){return VO((e=e,(Number.isNaN(e)?0:Math.max(0,Math.min(100,e)))/100))}function JO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function KO(e,t){var e=!1===(e=e)||e===undefined?{enabled:!1,sessionSampleRate:.1,errorSampleRate:1,errorTraceback:!0}:!0===e?{enabled:!0,sessionSampleRate:.1,errorSampleRate:1,errorTraceback:!0}:{enabled:!1!==e.enabled,sessionSampleRate:"number"==typeof e.sessionSampleRate?VO(e.sessionSampleRate):.1,errorSampleRate:"number"==typeof e.errorSampleRate?VO(e.errorSampleRate):1,errorTraceback:e.errorTraceback===undefined||!!e.errorTraceback},t=t&&"object"===I(t)?t:null,n=e.enabled,r=(t&&JO(t,"enabled")&&(n=e.enabled&&!!t.enabled),e.sessionSampleRate),i=e.errorSampleRate,e=e.errorTraceback;return n&&t&&(JO(t,"experience_sample_rate")&&t.experience_sample_rate!==undefined&&null!==t.experience_sample_rate?r=GO(Number(t.experience_sample_rate)):JO(t,"replay_sample_rate")&&t.replay_sample_rate!==undefined&&null!==t.replay_sample_rate&&(r=GO(Number(t.replay_sample_rate))),JO(t,"error_traceback")&&t.error_traceback!==undefined&&null!==t.error_traceback&&(e=!!t.error_traceback),JO(t,"error_sample_rate"))&&t.error_sample_rate!==undefined&&null!==t.error_sample_rate&&(i=GO(Number(t.error_sample_rate))),{enabled:n,sessionSampleRate:r,errorSampleRate:e?i:0,errorTraceback:e}}function $O(e,t){return M(M({},e),{enabled:t.enabled,sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,errorTraceback:t.errorTraceback})}function ZO(e){if(!1!==(null==(t=e.config)?void 0:t.sessionReplay)){var t=e._effectiveReplayPolicy;if(!t||t.enabled)if(!1!==e._replaySampled)return!(e=null==(t=e)?void 0:t._tdemSampleGate)||e.isDecided}}new u({name:"sessionReplay"});var ny=new u({name:"sessionReplay",sessionManager:null,eventBuffer:null,recorderManager:null,samplerManager:null,uploader:null,clickDetector:null,removeClickVisitListener:null,flushTimer:null,replayConfig:null,isInitialized:!1,errorTraceback:!0,_tdemRef:null,_isCheckoutFlushing:!1,_lastLifecycleSnapshotAt:0,_pendingSegments:[],_baselineDelivered:!1,_baselineFlushScheduled:!1,_flushTail:Promise.resolve(),_drainPromise:null,_drainRequested:!1,_awaitingBaseline:!1,_recoveryMeta:null,init:function(e){},applyEffectivePolicy:function(e){var t,n;if(this.errorTraceback=e.errorTraceback,this.replayConfig&&(this.replayConfig=$O(this.replayConfig,e)),this.samplerManager&&this.samplerManager.updateRates(e.sessionSampleRate,e.errorSampleRate),this.isInitialized){if(e.enabled)return(n=this.samplerManager)?0<e.sessionSampleRate||e.errorTraceback&&0<e.errorSampleRate?!e.errorTraceback&&n.isBufferMode()?(h("Plugin","Error traceback off while in buffer, stopping replay"),this.stopReplay(),null!=(t=this.eventBuffer)&&t.clear(),this._pendingSegments=[],this._recoveryMeta=null,this._awaitingBaseline=!1,void n.forceMode(!1)):void(e.errorTraceback&&e.sessionSampleRate<=0&&0<e.errorSampleRate&&n.isSessionMode()&&(h("Plugin","Remote SSR=0 with traceback on: demote session→buffer"),n.forceMode("buffer"),this.flushTimer)&&(clearInterval(this.flushTimer),this.flushTimer=null)):(h("Plugin","Effective policy no longer allows recording, stopping"),this.stopReplay(),null!=(t=this.eventBuffer)&&t.clear(),this._pendingSegments=[],this._recoveryMeta=null,this._awaitingBaseline=!1,void n.forceMode(!1)):void 0;h("Plugin","Effective policy disabled, stopping replay"),this.stopReplay(),null!=(e=this.eventBuffer)&&e.clear(),this._pendingSegments=[],this._recoveryMeta=null,this._awaitingBaseline=!1}},shouldSkipBufferFlush:function(){var e;return!0===(null==(e=this.samplerManager)?void 0:e.isBufferMode())},onNewTdem:function(e,t){var n,r,t=this.parseConfig(t),i=null!=(i=t.debug)&&i,i=(K0=i,e._effectiveReplayPolicy);i||(i=KO(t,(n=e._prefetchedConfigData)&&"object"===I(n)&&("replay_sample_rate"in n||"error_traceback"in n||"error_sample_rate"in n||"tdem_sample_rate"in n||"enabled"in n)?(r={},Object.prototype.hasOwnProperty.call(n,"enabled")&&(r.enabled=!!n.enabled),Object.prototype.hasOwnProperty.call(n,"replay_sample_rate")&&(r.replay_sample_rate=Number(n.replay_sample_rate)),Object.prototype.hasOwnProperty.call(n,"error_traceback")&&(r.error_traceback=!!n.error_traceback),Object.prototype.hasOwnProperty.call(n,"error_sample_rate")&&(r.error_sample_rate=Number(n.error_sample_rate)),r):null),e._effectiveReplayPolicy=i,e._replaySampled=i.enabled),i.enabled?(n=$O(M(M({},t),{enabled:!0}),i),this.replayConfig=n,this.errorTraceback=i.errorTraceback,this._tdemRef=e,this.initializeModules(e,n),(r=this.samplerManager.initializeSampling()).shouldRecord?(this.startReplay(e,n,r.mode),this.registerReplaySamplingCheck(e,n),this.listenForErrors(e,n),this.listenForPerformance(e),this.listenForLifecycle(e,n),this.listenForUnload(e),this.isInitialized=!0):h("Plugin","Not sampled by sampler, skipping")):h("Plugin","disabled by effective policy")},registerReplaySamplingCheck:function(t,e){var n=this,r=function(e){clearInterval(i),e?(h("Plugin","Session/policy rejected, stopping replay and clearing buffer"),n.stopReplay(),n.eventBuffer&&n.eventBuffer.clear()):h("Plugin","Session sampled, replay continues")},i=setInterval(function(){var e=t._effectiveReplayPolicy;(!e||e.enabled)&&!1!==(null==(e=t.config)?void 0:e.sessionReplay)?ZO(t)&&(null!=(e=n.maybeScheduleBaselineFlush)&&e.call(n),r(!1)):r(!0)},50);t.lifeCycle.on("destroy",function(){clearInterval(i)})},parseConfig:function(e){return!0===e?{enabled:!0}:"object"===I(e)?M(M({},e),{enabled:!1!==e.enabled}):{enabled:!1}},initializeModules:function(r,e){var n=this,t=(this.sessionManager=new Q0({stickySession:null==(t=e.stickySession)||t}),this.sessionManager.setTdemInstance(r),r.sessionManager=this.sessionManager,this.eventBuffer=new ow({},null!=(t=e.useCompression)&&t),this.samplerManager=new VE({sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate}),this.recorderManager=new qE({onRecordingEvent:function(e){n.handleRecordingEvent(e,r)},onCheckout:function(){if(!n._isCheckoutFlushing){n._isCheckoutFlushing=!0;try{var e,t;n.shouldSkipBufferFlush()?h("SessionReplay","Checkout in buffer mode (error traceback), skip flush"):(e=n._tdemRef,t=n.replayConfig,e&&t&&n.eventBuffer&&!n.eventBuffer.isEmpty()&&(h("SessionReplay","Checkout triggered, flushing current buffer"),n.flushReplayData(e,t,!0)))}finally{n._isCheckoutFlushing=!1}}},mode:"session"},e),(r.config.url||r.config.hostUrl||"").replace(/\/+$/,"")),i=(this.uploader=new BO({uploadUrl:e.uploadUrl||t+"/api/v1/collect/replay",appId:String(r.config.id||""),beforeSend:e.beforeSend,onError:e.onError,eventsCompression:null==(t=e.eventsCompression)||t,transport:null==(t=r.getInternalTransport)?void 0:t.call(r)}),this.clickDetector=new HO({getClickContext:function(){var e,t,n;return[(n=(e=r).sessionManager,(null==(n=null==(t=null==n?void 0:n.getSession)?void 0:t.call(n))?void 0:n.id)||(null==(t=e.bean)?void 0:t.sessionId)||""),r._customPageUrl||window.location.href,null!=(t=null!=(n=r.viewId)?n:null==(e=r.bean)?void 0:e.viewId)?t:""].join("\n")},slowClickTimeout:e.slowClickTimeout,slowClickThreshold:e.slowClickThreshold,rageClickCount:e.rageClickCount,rageClickWindow:e.rageClickWindow,onSlowClick:function(e){n.handleSlowClick(e,r)},onRageClick:function(e){n.handleRageClick(e,r)}}),null!=(t=this.removeClickVisitListener)&&t.call(this),function(){var e;return null==(e=n.clickDetector)?void 0:e.finishRage()});r.lifeCycle.on("pageVisitChanged",i),r.lifeCycle.on("pageChanged",i),r.lifeCycle.on("beforeCloseFlush",i),this.removeClickVisitListener=function(){r.lifeCycle.remove("pageVisitChanged",i),r.lifeCycle.remove("pageChanged",i),r.lifeCycle.remove("beforeCloseFlush",i)},h("Plugin","Modules initialized")},startReplay:function(e,t,n){var r;this.sessionManager&&this.recorderManager&&this.eventBuffer?(r=(r=this.sessionManager.restoreSession())||this.sessionManager.createSession(n),this._baselineDelivered=!1,this._baselineFlushScheduled=!1,this._awaitingBaseline=!1,this._recoveryMeta=null,h("Plugin","Session started:",r.id,"mode:",n),this.recorderManager.options.mode=n,r=zE(M({maskAllText:!1!==t.maskAllInputs,maskAllInputs:t.maskAllInputs,maskTextSelector:t.maskTextSelector,blockSelector:t.blockSelector,ignoreSelector:t.ignoreSelector},t.privacy)),this.recorderManager.startRecording({privacy:r}),this.clickDetector&&this.clickDetector.start(),"session"===n?this.startFlushTimer(e,t):h("Plugin","Buffer mode - flush on error only")):X0("Plugin","Modules not initialized")},handleRecordingEvent:function(e,t){if(this.eventBuffer&&this.sessionManager){this.sanitizeDataURLs(e);var n=iw(JSON.stringify(e))+1;if(5242880<n+1)this._awaitingBaseline=!0,this._recoveryMeta=null,this._baselineDelivered=!1,X0("Replay","Event exceeds decoded events limit ("+n+" bytes), waiting for next baseline");else{if(this._awaitingBaseline){if(4===e.type)return this._recoveryMeta=e,void this.enforceReplayBudget();if(2!==e.type||!this._recoveryMeta)return;n=[this._recoveryMeta,e];if(5242880<iw(JSON.stringify(n)))return;this._recoveryMeta=null,this._awaitingBaseline=!1,this._baselineDelivered=!1,this.appendReplayEvents(n)}else this.appendReplayEvents([e]);this.sessionManager.updateActivity(),this.maybeScheduleBaselineFlush()}}},sanitizeDataURLs:function(e){var t=e.type;if(2===t){var n=null==(n=e.data)?void 0:n.node;n&&this.sanitizeNodeTree(n,1024)}else if(3===t){n=e.data;if(0===(null==n?void 0:n.source)&&Array.isArray(n.adds)){for(var r=0,i=n.adds;r<i.length;r++){var o=i[r];null!=o&&o.node&&this.sanitizeNodeTree(o.node,1024)}if(Array.isArray(n.attributes))for(var a=0,s=n.attributes;a<s.length;a++){var u=s[a];if(null!=u&&u.attributes)for(var l=0,c=Object.entries(u.attributes);l<c.length;l++){var d=c[l],f=d[0],d=d[1];"string"==typeof d&&1024<d.length&&d.startsWith("data:")&&(u.attributes[f]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}}}}},sanitizeNodeTree:function(e,t){if(e){if(e.attributes)for(var n=e.attributes,r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o];"string"==typeof a&&a.length>t&&a.startsWith("data:")&&(n[o]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}if(Array.isArray(e.childNodes))for(var s=0,u=e.childNodes;s<u.length;s++){var l=u[s];this.sanitizeNodeTree(l,t)}}},handleSlowClick:function(e,t){h("ClickDetector","Slow click detected:",e.timeAfterClickMs,"ms"),this.addCustomEvent({category:"ui.slowClickDetected",message:"Slow click: "+e.timeAfterClickMs+"ms on "+e.node.tagName,data:{node:e.node,timeAfterClickMs:e.timeAfterClickMs,endReason:e.endReason}},t)},handleRageClick:function(e,t){h("ClickDetector","Rage click detected:",e.clickCount,"clicks"),this.addCustomEvent({category:"ui.multiClick",message:"Rage click: "+e.clickCount+" clicks on "+e.node.tagName,data:{node:e.node,clickCount:e.clickCount,timeWindowMs:e.timeWindowMs}},t)},addCustomEvent:function(e,t){this.eventBuffer&&(e={type:5,data:{tag:e.category,payload:M({message:e.message},e.data)},timestamp:Date.now()},this.eventBuffer.addEvent(e))},startFlushTimer:function(e,t){var n=this;this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(function(){n.flushReplayData(e,t)},2e4)},maybeScheduleBaselineFlush:function(){var e,t,n,r=this;this._baselineDelivered||this._baselineFlushScheduled||this._awaitingBaseline||this.shouldSkipBufferFlush()||null==(e=this.eventBuffer)||!e.hasBaselinePair()||(t=this._tdemRef,n=this.replayConfig,t&&n&&ZO(t)&&(this._baselineFlushScheduled=!0,Promise.resolve().then(function(){r._baselineFlushScheduled=!1,r._baselineDelivered||r.shouldSkipBufferFlush()||ZO(t)&&(r._baselineDelivered=!0,r.flushReplayData(t,n,!0))})))},canReportReplay:function(e){return!(!(this.sessionManager&&this.eventBuffer&&this.uploader)||!ZO(e)||this.shouldSkipBufferFlush()||!this.sessionManager.getSession())},getRetainedReplayBytes:function(){var e;return((null==(e=this.eventBuffer)?void 0:e.getSize())||0)+2+this._pendingSegments.reduce(function(e,t){return e+t.byteLength},0)+(this._recoveryMeta?iw(JSON.stringify(this._recoveryMeta))+1:0)},appendReplayEvents:function(e){var t,n=this;this.eventBuffer&&(t=e.reduce(function(e,t){return e+iw(JSON.stringify(t))+1},0),5242880<this.eventBuffer.getSize()+t+2||10485760<this.getRetainedReplayBytes()+t?this.compactReplayQueue(e):e.forEach(function(e){return n.eventBuffer.addEvent(e)}))},enforceReplayBudget:function(){(10485760<this.getRetainedReplayBytes()||64<this._pendingSegments.length)&&this.compactReplayQueue()},compactReplayQueue:function(e,t){var n=this;if(void 0===e&&(e=[]),this.eventBuffer){var r=this._awaitingBaseline,i=this._recoveryMeta,o=[],a=[],s=null;this._pendingSegments.forEach(function(e){e===t||"sending"===e.status?(e.events.forEach(function(e){4===e.type&&(s=e)}),e!==t&&a.push(e)):e.events.forEach(function(e){return o.push(e)})}),this.eventBuffer.detachEvents().forEach(function(e){return o.push(e)}),e.forEach(function(e){return o.push(e)});for(var u=-1,l=null,c=0;c<o.length;c++){var d=o[c];4===d.type&&(s=d),2===d.type&&s&&iw(JSON.stringify([s,d]))<=5242880&&(u=c,l=s)}var e=0<=u&&l?Cl([l],o.slice(u)):[],f=(this._pendingSegments=a,this._recoveryMeta=null,iw(JSON.stringify(e))),f=(e.length&&f<=5242880&&this.getRetainedReplayBytes()+f<=10485760?(e.forEach(function(e){return n.eventBuffer.addEvent(e)}),this._awaitingBaseline=r):this._awaitingBaseline=!0,i||s);this._awaitingBaseline&&f&&this.getRetainedReplayBytes()+iw(JSON.stringify(f))+1<=10485760&&(this._recoveryMeta=f),this._baselineDelivered=!1,Y0("Replay","Discarded replay dependency chain; retained latest complete checkpoint if it fits")}},freezeActiveBuffer:function(e){var t,n,r,i,o=this;this.sessionManager&&this.eventBuffer&&(t=this.sessionManager.getSession())&&!this.eventBuffer.isEmpty()&&(!e&&this.eventBuffer.getEventCount()<10?h("Flush","Skipping flush, only "+this.eventBuffer.getEventCount()+" events (min: 10)"):(0!==t.segmentId||this.eventBuffer.hasCheckout()||(Y0("Flush","First segment missing FullSnapshot, triggering manual checkout"),null==(e=this.recorderManager))||e.takeFullSnapshot(),0!==(e=this.eventBuffer.detachEvents()).length&&(r=!(n=[]),i=null,e.forEach(function(e){if(5242880<iw(JSON.stringify([e])))r=!0,i=null,X0("Replay","Oversized event discarded before freezing");else{if(r){if(4===e.type&&(i=e),2!==e.type||!i||5242880<iw(JSON.stringify([i,e])))return;n.push(i),r=!1}n.push(e)}}),r&&(this._awaitingBaseline=!0,this._recoveryMeta=i,this._baselineDelivered=!1),(e=this.splitEventsIntoChunks(n,3145728,5242880)).forEach(function(e){0!==e.length&&o._pendingSegments.push({segmentId:o.sessionManager.incrementSegmentId(),sessionId:t.id,replayId:t.replayId,replayStarted:t.started,events:e,byteLength:iw(JSON.stringify(e)),status:"pending"})}),!this._awaitingBaseline&&n.some(function(e){e=e.type;return 2===e||4===e})&&(this._baselineDelivered=!0),this.enforceReplayBudget(),h("Flush","Frozen "+n.length+" events into "+e.length+" segment(s)"))))},buildSegmentPayload:function(e,t){return{project_key:String(e.config.id||""),session_id:t.sessionId,replay_id:t.replayId,segment_id:t.segmentId,timestamp:Date.now(),replay_start_timestamp:t.replayStarted,replay_format:"rrweb",platform:"web",events_encoding:"plain_json",events:JSON.stringify(t.events)}},measureSegment:function(e){return this.uploader&&"function"==typeof this.uploader.measurePayload?this.uploader.measurePayload(e):iw(JSON.stringify(e))},enqueueDrain:function(t){var e,n=this;return this._drainRequested=!0,this._drainPromise||(e=Promise.resolve().then(function(){return Sl(n,void 0,void 0,function(){return El(this,function(e){switch(e.label){case 0:return this._drainRequested=!1,[4,this.drainPendingUploads(t)];case 1:e.sent(),e.label=2;case 2:if(this._drainRequested&&this.canReportReplay(t))return[3,0];e.label=3;case 3:return[2]}})})})["finally"](function(){n._drainPromise===e&&(n._drainPromise=null)}),this._drainPromise=e,this._flushTail=e)},drainPendingUploads:function(i){return Sl(this,void 0,void 0,function(){var t,r,n;return El(this,function(e){switch(e.label){case 0:t=function(){var t,n;return El(this,function(e){switch(e.label){case 0:return(t=r._pendingSegments.find(function(e){return"pending"===e.status}))?(t.status="sending",[4,r.uploader.uploadReplayResult(r.buildSegmentPayload(i,t))]):[2,{value:void 0}];case 1:if(n=e.sent(),!r._pendingSegments.includes(t))return[2,"continue"];if("success"===n.status)r._pendingSegments=r._pendingSegments.filter(function(e){return e!==t}),null!=(e=r.sessionManager)&&e.saveSession();else{if("busy"===n.status)return t.status="pending",[2,{value:void 0}];Y0("Flush","Segment "+t.segmentId+" terminated ("+n.status+", attempts="+n.attempts+")"),r.compactReplayQueue([],t),r.freezeActiveBuffer(!0)}return[2]}})},r=this,e.label=1;case 1:return this.canReportReplay(i)?[5,t()]:[3,3];case 2:return"object"===I(n=e.sent())?[2,n.value]:[3,1];case 3:return[2]}})})},flushReplayData:function(e,t,n){var r,i;return void 0===n&&(n=!1),this.canReportReplay(e)?this.sessionManager.shouldRefreshSession()?(h("Plugin","Session expired, refreshing"),this.stopReplay(),r=this.sessionManager.refreshSession(),e.lifeCycle.emit("sessionRefreshed"),i=e._replaySampled,r.sampled&&!1!==i&&this.startReplay(e,t,r.sampled),Promise.resolve()):(this.freezeActiveBuffer(n),this.enqueueDrain(e)):Promise.resolve()},handoffReplay:function(r,e){var i,o,a,s,u=this;this.canReportReplay(r)&&(this.freezeActiveBuffer(!0),a=o=i=0,s=[],this._pendingSegments.forEach(function(e){var t=u.buildSegmentPayload(r,e),n=u.measureSegment(t);!(n<=0||61440<n)&&i+n<=65536?!0===u.uploader.sendBeacon(t)?(i+=n,o+=1):(a+=1,Y0("Unload","sendBeacon rejected chunk (segment_id="+e.segmentId+"), kept for retry"),s.push(e)):s.push(e)}),this._pendingSegments=s,h("SessionReplay","sendBeacon on hide: "+o+" queued, "+a+" rejected, "+s.length+" pending"),e)&&0<s.length&&this.enqueueDrain(r)},splitEventsIntoChunks:function(e,t,n){if(void 0===t&&(t=3145728),void 0===n&&(n=5242880),0===e.length)return[];var r=iw(JSON.stringify(e));if(r<=Math.min(t,n))return[e];Y0("Split","Events size "+Math.round(r/1024)+"KB exceeds limit "+Math.round(t/1024)+"KB, splitting");for(var i=[],o=[],a=2,s=0,u=e;s<u.length;s++){var l,c,d=u[s],f=iw(JSON.stringify(d))+1;0<o.length&&t<a+f&&(i.push(o),o=[],a=2),n<f+1?((c=2===(l=d.type)||4===l)?X0:Y0)("Split","Single event too large ("+Math.round(f/1024)+"KB), type="+l+(c?" (baseline snapshot, replay may become unplayable)":"")+", skipping"):(o.push(d),a+=f)}return 0<o.length&&i.push(o),i},stopReplay:function(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.recorderManager&&this.recorderManager.stopRecording(),this.clickDetector&&this.clickDetector.stop(),h("Plugin","Recording stopped")},listenForErrors:function(t,n){var r=this;t.lifeCycle.on("errorOccurred",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){e&&r.handleError(e,t,n)})}),t.lifeCycle.on("tdemEventCreated",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){r.isErrorTDEMEvent(e)&&r.handleError(e,t,n)})})},isErrorTDEMEvent:function(e){return!!e&&("error"===String(e.event_category||"").toLowerCase()||(e=String(e.event_type||"").toLowerCase(),["js_error","promise_error","resource_error","api_error"].includes(e)))},handleError:function(e,t,n){this.samplerManager&&(this.samplerManager.isBufferMode()&&this.samplerManager.onErrorOccurred(e)&&(h("Plugin","Converting to session mode due to error"),this.flushReplayData(t,n,!0),this.startFlushTimer(t,n)),this.addCustomEvent({category:"error",message:(null==e?void 0:e.msg)||(null==e?void 0:e.message)||"Unknown error",data:{type:(null==e?void 0:e.type)||"error",stack:null==e?void 0:e.stack}},t))},listenForPerformance:function(n){var r=this;if(n.lifeCycle.on("afterReportWebVitals",function(e){r.handlePerformanceEvent("webVitals",e,n)}),n.lifeCycle.on("afterReportPagePerformance",function(e){r.handlePerformanceEvent("pageLoad",e,n)}),"undefined"!=typeof PerformanceObserver)try{var e=new PerformanceObserver(function(e){var t,e=e.getEntries(),e=e[e.length-1];e&&r.addCustomEvent({category:"performance.lcp",message:"LCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime,element:(null==(t=e.element)?void 0:t.tagName)||"unknown",size:e.size}},n)}),t=(e.observe({type:"largest-contentful-paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){"first-contentful-paint"===e.name&&r.addCustomEvent({category:"performance.fcp",message:"FCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime}},n)})})),i=(t.observe({type:"paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){100<e.duration&&r.addCustomEvent({category:"performance.longTask",message:"Long Task: "+Math.round(e.duration)+"ms",data:{duration:e.duration,startTime:e.startTime}},n)})}));i.observe({type:"longtask",buffered:!0}),n.lifeCycle.on("destroy",function(){e.disconnect(),t.disconnect(),i.disconnect()})}catch(Le){}},handlePerformanceEvent:function(e,n,r){var i=this;n&&("webVitals"===e?["LCP","FCP","FID","CLS","TTFB","TTI","INP"].forEach(function(e){var t=n[e];t!==undefined&&-1!==t&&0<t&&i.addCustomEvent({category:"performance."+e.toLowerCase(),message:e+": "+("number"==typeof t?Math.round(t):t)+("CLS"===e?"":"ms"),data:{metric:e,value:t}},r)}):"pageLoad"===e&&this.addCustomEvent({category:"performance.pageLoad",message:"Page Load: "+(n.firstScreenTiming?Math.round(n.firstScreenTiming):"N/A")+"ms",data:{dnsLookup:n.dnsLookup,tcp:n.tcp,ssl:n.ssl,ttfb:n.ttfb,contentDownload:n.contentDownload,domParse:n.domParse,resourceDownload:n.resourceDownload,firstScreenTiming:n.firstScreenTiming}},r))},listenForLifecycle:function(o,t){var n,e,a=this;"undefined"!=typeof document&&(n=function(e){var t,n=null==(n=a.sessionManager)?void 0:n.getSession(),n=(null==n?void 0:n.replayId)||"",r=(null==(i=null==(r=o)?void 0:r.getOriginFrom)?void 0:i.call(r))||("undefined"!=typeof location?location.href:""),i="undefined"!=typeof document&&document.title||"";null!=(t=o.reportTDEMEvent)&&t.call(o,{event_id:Pc(),event_type:e,event_category:Mc.BEHAVIOR,timestamp:Date.now(),page_url:r,data:{page_title:i,replay_id:n,is_effective_action:!1,tags:{environment:o.config.env||"production",version:String(o.config.version||"")},event_properties:{visibility_state:"undefined"!=typeof document?document.visibilityState:"",lifecycle_type:e}}})},document.addEventListener("visibilitychange",e=function(){var e;if("undefined"!=typeof document){if("hidden"===document.visibilityState)return n(A.TAB_HIDDEN),a.shouldSkipBufferFlush()?void h("Lifecycle","Buffer mode (error traceback), skip flush on hidden"):void a.handoffReplay(o,!0);"visible"===document.visibilityState&&(n(A.TAB_VISIBLE),(e=Date.now())-a._lastLifecycleSnapshotAt<5e3||(a._lastLifecycleSnapshotAt=e,null!=(e=a.recorderManager)&&e.takeFullSnapshot(),a.shouldSkipBufferFlush()?h("Lifecycle","Buffer mode (error traceback), skip flush on visible"):a.flushReplayData(o,t,!0)))}}),o.lifeCycle.on("destroy",function(){document.removeEventListener("visibilitychange",e)}))},listenForUnload:function(t){var n=this,e=function(e){n.flushOnUnload(t,e)},r=function(e){n.resumeAfterRestore(e)};window.addEventListener("pagehide",e),window.addEventListener("pageshow",r),t.lifeCycle.on("destroy",function(){window.removeEventListener("pagehide",e),window.removeEventListener("pageshow",r)})},resumeAfterRestore:function(e){null!=e&&e.persisted&&!this.shouldSkipBufferFlush()&&(this.recorderManager&&!this.recorderManager.isRecording()&&this.recorderManager.startRecording(),null!=(e=this.clickDetector))&&e.start()},flushOnUnload:function(e,t){this.canReportReplay(e)?(null!=t&&t.persisted||(null!=(t=this.recorderManager)&&t.stopRecording(),null==(t=this.clickDetector))||t.stop(),this.handoffReplay(e,!1)):this.shouldSkipBufferFlush()&&h("Unload","Buffer mode (error traceback), skip flush on unload")},destroy:function(){var e;if(this.option)return this.option.destroy.call(this.option);this.stopReplay(),null!=(e=this.removeClickVisitListener)&&e.call(this),this.removeClickVisitListener=null,this.sessionManager&&this.sessionManager.saveSession(),this.sessionManager=null,this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this.recorderManager=null,this.samplerManager=null,this.uploader=null,this.clickDetector=null,this.replayConfig=null,this._tdemRef=null,this._isCheckoutFlushing=!1,this._lastLifecycleSnapshotAt=0,this._pendingSegments=[],this._baselineDelivered=!1,this._baselineFlushScheduled=!1,this._flushTail=Promise.resolve(),this._drainPromise=null,this._drainRequested=!1,this._awaitingBaseline=!1,this._recoveryMeta=null,this.isInitialized=!1,h("Plugin","destroyed")}}),YO={enabled:!0,ruleVersion:"1.0.0",payloadAllowlist:[],click:{enabled:!0,deadClickWindowMs:3e3,deadClickDebounceIntervalMs:1e3,rageClickWindowMs:3e3,rageClickCount:5,errorClickWindowMs:3e3,resolveOnDomMutation:!0,resolveOnSpaNavigation:!0,resolveOnExternalNavigation:!0,resolveOnWindowOpen:!0,resolveOnPageUnload:!0,resolveOnFormAction:!0,resolveOnApiSuccess:!0,ignoreDeadClickSelectors:[],effectiveActionSelectors:[],clickableSelectors:[]},performance:{enabled:!0,slowPageLcpThreshold:4e3,slowPageInpThreshold:500},form:{enabled:!0,fieldIdAttr:"data-field-id",formIdAttr:"data-form-id",longFocusThresholdMs:2e4,incompleteMinFieldRatio:.3,zigzagMinCount:2},navigation:{enabled:!0,backForwardAsStruggle:!0},custom:{enabled:!0,detector:undefined}},XO=new Set([A.JS_ERROR,A.PROMISE_ERROR,A.RESOURCE_ERROR,A.API_ERROR]),QO=new Set([A.FORM_CHANGE,A.FORM_SUBMIT,A.FORM_SUBMIT_RESULT]),lk=(new u({name:"struggleMonitor"}),new u({name:"struggleMonitor",instanceStates:new Map,originalWindowOpen:null,windowOpenHooked:!1,onNewTdem:function(n){var e,t,r,i,o,a,s=this,u=!0===(e=this.$getConfig(n))?M({},YO):e&&"object"===I(e)?(t=((u=null==(u=e.click)?void 0:u.deadClickDebounceIntervalMs)===undefined||Number.isInteger(u)&&1<=u&&u<=6e4)&&null!=u?u:1e3,u!==undefined&&u!==t&&console.warn("struggleMonitor: invalid deadClickDebounceIntervalMs; using 1000ms"),M(M(M({},YO),e),{click:M(M(M({},YO.click),e.click||{}),{deadClickDebounceIntervalMs:t}),performance:M(M({},YO.performance),e.performance||{}),form:M(M({},YO.form),e.form||{}),navigation:M(M({},YO.navigation),e.navigation||{}),custom:M(M({},YO.custom),e.custom||{}),payloadAllowlist:(Array.isArray(e.payloadAllowlist)?e:YO).payloadAllowlist,enabled:!1!==e.enabled})):M(M({},YO),{enabled:!1});u.enabled&&(r={config:u,clickDetector:null,recentClicks:[],pendingDeadClicks:new Map,latestDead:new Map,clickContexts:new WeakMap,contextKey:this.getClickContextKey(n),closing:!1,focusStartMap:new Map,formStateMap:new Map,removeDomListeners:[],onEventCreated:null,onDestroy:null},this.instanceStates.set(n,r),this.initClickDetector(n,r),this.initFormListeners(n,r),r.onEventCreated=function(e){s.handleEventCreated(n,r,e||[])},n.lifeCycle.on("tdemEventCreated",r.onEventCreated),r.onDestroy=function(){return s.cleanupInstance(n)},n.lifeCycle.on("destroy",r.onDestroy),n.lifeCycle.on("clickCaptured",i=function(e){var t=e.event,n=e.source,e=r.clickContexts.get(t);e&&(e.sourceContext.replayId=String(n.data.replay_id||"")),r.pendingDeadClicks.forEach(function(e){e.event===t&&(e.clickEventId=n.event_id,e.ownerKey=n.data.target_element||e.ownerKey)})}),r.removeDomListeners.push(function(){return n.lifeCycle.remove("clickCaptured",i)}),n.lifeCycle.on("pageChanged",o=function(){return s.closeClickGroups(r)}),r.removeDomListeners.push(function(){return n.lifeCycle.remove("pageChanged",o)}),n.lifeCycle.on("pageVisitChanged",o),r.removeDomListeners.push(function(){return n.lifeCycle.remove("pageVisitChanged",o)}),n.lifeCycle.on("beforeCloseFlush",o),r.removeDomListeners.push(function(){return n.lifeCycle.remove("beforeCloseFlush",o)}),r.removeDomListeners.push("undefined"==typeof window?function(){}:(window.addEventListener("monitor-session-update",a=function(e){var t;t=e.detail.sessionId,e.detail.source,t!==r.contextKey.split("\n")[0]&&(r.contextKey=s.getClickContextKey(n),s.closeClickGroups(r,!0))}),function(){return window.removeEventListener("monitor-session-update",a)})))},initClickDetector:function(t,n){var e,r=this;"undefined"!=typeof window&&"undefined"!=typeof document&&(n.clickDetector=new HO({getClickContext:function(){return r.getClickContextKey(t)},slowClickTimeout:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,slowClickThreshold:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,rageClickCount:null!=(e=null==(e=n.config.click)?void 0:e.rageClickCount)?e:5,rageClickWindow:null!=(e=null==(e=n.config.click)?void 0:e.rageClickWindowMs)?e:3e3,onRageClick:function(e){r.onRageClick(t,n,e)},onClickStart:function(e){r.onClickStart(t,n,e)},onEffectiveAction:function(e){r.onEffectiveAction(t,n,e)},onSlowClick:function(e){r.onSlowClick(t,n,e)}}),n.clickDetector.start(),this.initClickEffectiveActionListeners(n),this.initWindowOpenHook())},initClickEffectiveActionListeners:function(n){var e,t,r=this;"undefined"!=typeof window&&((e=function(e,t){window.addEventListener(e,t),n.removeDomListeners.push(function(){window.removeEventListener(e,t)})})("pagehide",function(){var e;r.closeClickGroups(n),!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(r.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}),e("beforeunload",function(){var e;r.closeClickGroups(n),!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(r.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}),t=function(){"hidden"===document.visibilityState&&r.closeClickGroups(n)},document.addEventListener("visibilitychange",t),n.removeDomListeners.push(function(){return document.removeEventListener("visibilitychange",t)}))},initWindowOpenHook:function(){var r,i;"undefined"==typeof window||this.windowOpenHooked||(r=window.open,this.originalWindowOpen=r,this.windowOpenHooked=!0,i=this,window.open=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(window,e);return i.resolveWindowOpenActions(),n})},resolveWindowOpenActions:function(){var r=this,i=Date.now();this.instanceStates.forEach(function(e,t){var n;!1!==(null==(n=e.config.click)?void 0:n.resolveOnWindowOpen)&&(null!=(n=e.clickDetector)&&n.markEffectiveAction("window_open"),r.resolvePendingDeadClicks(e,"window_open",i,t._customPageUrl||r.getCurrentPageUrl()))})},restoreWindowOpenHook:function(){"undefined"!=typeof window&&this.windowOpenHooked&&this.originalWindowOpen&&(window.open=this.originalWindowOpen,this.originalWindowOpen=null,this.windowOpenHooked=!1)},initFormListeners:function(r,i){var e,t,o=this;null!=(t=i.config.form)&&t.enabled&&"undefined"!=typeof document&&((t=function(e,t,n){void 0===n&&(n=!0),document.addEventListener(e,t,n),i.removeDomListeners.push(function(){document.removeEventListener(e,t,n)})})("focusin",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,A.FORM_FOCUS,e,e.form||undefined)}),t("focusout",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,A.FORM_BLUR,e,e.form||undefined)}),t("change",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,A.FORM_CHANGE,e,e.form||undefined)}),t("submit",function(e){e=e.target;e instanceof HTMLFormElement&&o.reportFormEvent(r,i,A.FORM_SUBMIT,null,e)}),t("invalid",function(e){var t,n,e=o.getTrackableField(e.target);e&&(n=e.form||undefined,n=o.buildFormBaseData(r,i,e,n),n={event_id:Pc(),event_type:A.FORM_SUBMIT_RESULT,event_category:Mc.BEHAVIOR,timestamp:Date.now(),page_url:"undefined"!=typeof window?window.location.href:(null==(t=r.getOriginFrom)?void 0:t.call(r))||"",data:M(M({},n),{event_name:"form_submit_fail",is_effective_action:!0,validation_message:e.validationMessage||undefined,event_properties:M(M({},n.event_properties||{}),{status:"fail",validation_code:!1===(null==(t=e.validity)?void 0:t.valid)?"invalid":"validation_error"})})},null!=(e=r.reportTDEMEvent))&&e.call(r,n)}),e=function(){o.reportPendingUncompletedForms(r,i,"pagehide")},"undefined"!=typeof window)&&(window.addEventListener("pagehide",e),i.removeDomListeners.push(function(){window.removeEventListener("pagehide",e)}))},getTrackableField:function(e){return!(e&&e instanceof Element)||!(e=e.closest("input, textarea, select"))||e instanceof HTMLInputElement&&["button","submit","reset","image","hidden"].includes(e.type)?null:e},buildFormBaseData:function(e,t,n,r){var n=n||null,r=r||(null==n?void 0:n.form)||undefined,i=(null==(i=t.config.form)?void 0:i.fieldIdAttr)||"data-field-id",t=(null==(t=t.config.form)?void 0:t.formIdAttr)||"data-form-id",i=n?n.getAttribute(i)||n.id||n.name||n.tagName.toLowerCase()+"_"+(n.type||"field"):undefined,t=r&&(r.getAttribute(t)||r.id||r.getAttribute("name")||r.getAttribute("action"))||undefined,o="string"==typeof(null==(o=n)?void 0:o.value)?n.value.length:0,o=0===o?"0":o<=10?"1_10":o<=50?"11_50":"51_plus";return{replay_id:ng(e),is_effective_action:!0,form_id:t,field_id:i,tags:{},event_properties:{field_name:(null==n?void 0:n.name)||"",field_type:(null==n?void 0:n.type)||(null==(e=null==n?void 0:n.tagName)?void 0:e.toLowerCase())||"",form_name:(null==r?void 0:r.getAttribute("name"))||"",is_required:String(!(null==n||!n.required)),value_length_bucket:String(o)}}},reportFormEvent:function(e,t,n,r,i){var t=this.buildFormBaseData(e,t,r,i),i="undefined"!=typeof window?window.location.href:(null==(r=e.getOriginFrom)?void 0:r.call(e))||"",r={event_id:Pc(),timestamp:Date.now(),page_url:i};n!==A.FORM_FOCUS?n!==A.FORM_BLUR?n!==A.FORM_CHANGE?(i=M(M({},r),{event_type:A.FORM_SUBMIT,event_category:Mc.BEHAVIOR,data:M(M({},t),{submit_method:"native_submit"})}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=M(M({},r),{event_type:A.FORM_CHANGE,event_category:Mc.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=M(M({},r),{event_type:A.FORM_BLUR,event_category:Mc.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=M(M({},r),{event_type:A.FORM_FOCUS,event_category:Mc.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i))},onClickStart:function(e,t,n){var r,i,o,a,s=t.config.click||YO.click;!1!==s.enabled&&(this.checkClickContext(e,t),r=dv(n.event,e),i={timestamp:n.timestamp,sessionId:yd(e),viewId:String(null!=(i=null!=(i=null!=(i=null==r?void 0:r.view_id)?i:e.viewId)?i:null==(i=e.bean)?void 0:i.viewId)?i:""),replayId:String(null!=(i=null==(i=null==r?void 0:r.data)?void 0:i.replay_id)?i:ng(e))},o=e._customPageUrl||(null==r?void 0:r.page_url)||this.getCurrentPageUrl(),t.clickContexts.set(n.event,{pageUrl:o,sourceContext:i}),a=(null==(a=null==r?void 0:r.data)?void 0:a.target_element)||n.node.selector||n.node.tagName||"unknown",this.isDeadClickExempt(n,s)||this.shouldIgnoreDeadClick(n.target,s)||"custom"!==n.effectiveActionReason&&(n.effectiveActionReason&&this.shouldResolveByReason(t,n.effectiveActionReason)?this.resolvePendingDeadClicks(t,n.effectiveActionReason,n.timestamp,o):this.scheduleDeadClick(e,t,{pendingId:"pending_"+n.timestamp+"_"+Math.random().toString(16).slice(2),timestamp:n.timestamp,pageUrl:o,ownerKey:a,node:n.node,target:n.target,event:n.event,groupKey:t.contextKey,debounceIntervalMs:null!=(e=s.deadClickDebounceIntervalMs)?e:1e3,sourceContext:i,clickEventId:null==r?void 0:r.event_id})))},onEffectiveAction:function(e,t,n){this.checkClickContext(e,t),this.shouldResolveByReason(t,n.reason)&&(e=e._customPageUrl||this.getCurrentPageUrl(),this.resolvePendingDeadClicks(t,n.reason,n.timestamp,e))},scheduleDeadClick:function(t,n,r){var i=this,o=null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,e=n.latestDead.get(r.target),e=(e&&e.groupKey===r.groupKey&&r.timestamp>=e.timestamp&&r.timestamp-e.timestamp<e.debounceIntervalMs&&(r.debounceIntervalMs=e.debounceIntervalMs,this.removeDeadClick(n,e)),setTimeout(function(){i.checkClickContext(t,n);var e=n.pendingDeadClicks.get(r.pendingId);e&&(i.removeDeadClick(n,e),i.emitDeadClick(t,n,e,o))},Math.max(o,r.debounceIntervalMs))),e=M(M({},r),{timeout:e});n.pendingDeadClicks.set(r.pendingId,e),n.latestDead.set(r.target,e),200<n.pendingDeadClicks.size&&(e=n.pendingDeadClicks.values().next().value)&&this.removeDeadClick(n,e)},removeDeadClick:function(e,t){clearTimeout(t.timeout),e.pendingDeadClicks["delete"](t.pendingId),e.latestDead.get(t.target)===t&&e.latestDead["delete"](t.target)},getClickContextKey:function(e){var t;return[yd(e),e._customPageUrl||this.getCurrentPageUrl(),null!=(e=null!=(t=e.viewId)?t:null==(t=e.bean)?void 0:t.viewId)?e:""].join("\n")},checkClickContext:function(e,t){var n,e=this.getClickContextKey(e);e!==t.contextKey&&(n=e.split("\n")[0]!==t.contextKey.split("\n")[0],t.contextKey=e,this.closeClickGroups(t,n))},closeClickGroups:function(t,e){var n,r=this;void 0===e&&(e=!1),null!=(n=t.clickDetector)&&n.finishRage(),t.latestDead.clear(),e&&(t.pendingDeadClicks.forEach(function(e){return r.removeDeadClick(t,e)}),t.recentClicks=[])},emitDeadClick:function(e,t,n,r){var i,o=n.clickEventId?[n.clickEventId]:undefined;null!=(i=e.reportStruggle)&&i.call(e,{type:"dead_click",ownerType:"element",ownerKey:n.ownerKey,pageUrl:n.pageUrl,sourceContext:M(M({},n.sourceContext),{timestamp:n.timestamp+r}),triggerEventId:n.clickEventId,relatedEventIds:o,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{timeout_ms:r,selector:n.node.selector||""}})},resolvePendingDeadClicks:function(n,r,i,o){var e,a=this,s=(void 0===i&&(i=Date.now()),null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3);n.pendingDeadClicks.forEach(function(e){var t=i-e.timestamp;t<0||s<t||"spa_navigation"!==r&&"page_unload"!==r&&o&&e.pageUrl&&o!==e.pageUrl||a.removeDeadClick(n,e)})},shouldResolveByReason:function(e,t){e=e.config.click||YO.click;return!1!==e.enabled&&("dom_mutation"===t?!1!==e.resolveOnDomMutation:"spa_navigation"===t?!1!==e.resolveOnSpaNavigation:"external_navigation"===t||"download"===t?!1!==e.resolveOnExternalNavigation:"window_open"===t?!1!==e.resolveOnWindowOpen:"page_unload"===t?!1!==e.resolveOnPageUnload:"form_change"===t||"form_submit"===t?!1!==e.resolveOnFormAction:"api_success"!==t||!1!==e.resolveOnApiSuccess)},isDeadClickExempt:function(e,t){var e=e.event.target,t=Array.isArray(t.clickableSelectors)?t.clickableSelectors:[];return!(e instanceof Element&&function(e,t){if(void 0===t&&(t=[]),e.closest(uv))return 1;for(var n=0;n<t.length;n++)try{if(t[n]&&e.closest(t[n]))return 1}catch(Pe){}try{return"pointer"===window.getComputedStyle(e).cursor}catch(Pe){}}(e,t)&&(!(t=e.closest("[contenteditable]"))||"false"===t.getAttribute("contenteditable"))&&!e.closest('input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select,option,label'))},shouldIgnoreDeadClick:function(t,e){return Cl(e.ignoreDeadClickSelectors||[],e.effectiveActionSelectors||[]).some(function(e){try{return!!e&&!!t.closest(e)}catch(Pe){return!1}})},getCurrentPageUrl:function(){return"undefined"==typeof window?"":window.location.href},getEventPageUrl:function(e){return(null==e?void 0:e.page_url)||(null==(e=null==e?void 0:e.data)?void 0:e.page_url)||""},onRageClick:function(t,e,n){var r,i,o,a;!1!==e.config.click.enabled&&(r=n.node.selector||n.node.tagName||"unknown",i=e.clickContexts.get(n.clicks[0].event))&&(o=(a=n.clicks.map(function(e){return dv(e.event,t)})).map(function(e){return null==e?void 0:e.event_id}).filter(Boolean).slice(-10),a={type:"rage_click",ownerType:"element",ownerKey:(null==(a=null==(a=a[0])?void 0:a.data)?void 0:a.target_element)||r,pageUrl:i.pageUrl,sourceContext:M(M({},i.sourceContext),{timestamp:n.lastTimestamp}),triggerEventId:o[0],relatedEventIds:o.length?o:undefined,detectionSource:"rule_engine",ruleVersion:e.config.ruleVersion,payloadAllowlist:e.config.payloadAllowlist,payload:{clickCount:n.clickCount,timeWindowMs:n.timeWindowMs,click_count:n.clickCount,time_window_ms:n.timeWindowMs,selector:n.node.selector||""}},null!=(r=t.reportStruggle))&&r.call(t,a)},onSlowClick:function(e,t,n){},handleEventCreated:function(i,o,e){var t,a=this,s=(this.checkClickContext(i,o),Date.now()),n=o.config.click||YO.click,r=Math.max(null!=(t=n.errorClickWindowMs)?t:3e3,null!=(t=n.rageClickWindowMs)?t:3e3,null!=(t=n.deadClickWindowMs)?t:3e3);o.recentClicks=o.recentClicks.filter(function(e){return s-e.timestamp<=r}),e.forEach(function(e){var t,n,r;e&&e.event_type!==A.STRUGGLE&&(t=e.timestamp||s,n=a.getEventPageUrl(e),e.event_type===A.CLICK?(r=(null==(r=e.data)?void 0:r.target_element)||(null==(r=e.data)?void 0:r.target_id)||(null==(r=e.data)?void 0:r.target_class)||"unknown",o.recentClicks.push({eventId:e.event_id,timestamp:t,pageUrl:n,ownerKey:r}),o.recentClicks=o.recentClicks.slice(-200)):(e.event_type===A.PAGE_VIEW&&a.closeClickGroups(o),a.isEffectiveActionEvent(o,e)&&(a.resolvePendingDeadClicks(o,a.getEffectiveActionReason(e),t,n),null!=(r=o.clickDetector)&&r.markEffectiveAction(a.getEffectiveActionReason(e))),XO.has(e.event_type)?a.tryReportErrorClick(i,o,e):e.event_type===A.PAGE_LOAD||e.event_type===A["true"]?a.tryReportSlowPage(i,o,e):e.event_type===A.FORM_FOCUS?(a.trackFormFocus(o,e),a.trackFormChangeAndZigzag(i,o,e)):e.event_type===A.FORM_CHANGE?a.trackFormChangeAndZigzag(i,o,e):e.event_type===A.FORM_BLUR?a.tryReportLongFocusTime(i,o,e):e.event_type===A.FORM_SUBMIT?a.trackFormSubmitResult(o,e):e.event_type===A.FORM_SUBMIT_RESULT?(a.trackFormSubmitResult(o,e),a.tryReportFormValidationError(i,o,e)):e.event_type===A.PAGE_VIEW&&null!=(n=null==(t=e.data)?void 0:t.event_properties)&&n.navigation_type&&a.tryReportBackForward(i,o,e)),a.tryReportCustomStruggle(i,o,e))})},isEffectiveActionEvent:function(e,t){var n;return!1!==(null==(n=e.config.click)?void 0:n.enabled)&&(t.event_type===A.API_CALL?!1!==(null==(n=e.config.click)?void 0:n.resolveOnApiSuccess):t.event_type===A.PAGE_VIEW&&null!=(n=null==(n=t.data)?void 0:n.event_properties)&&n.navigation_type?!1!==(null==(n=e.config.click)?void 0:n.resolveOnSpaNavigation):QO.has(t.event_type)?!1!==(null==(n=e.config.click)?void 0:n.resolveOnFormAction):!0===(null==(e=t.data)?void 0:e.is_effective_action))},getEffectiveActionReason:function(e){return e.event_type===A.API_CALL?"api_success":e.event_type===A.PAGE_VIEW?"spa_navigation":e.event_type===A.FORM_CHANGE?"form_change":e.event_type===A.FORM_SUBMIT||e.event_type===A.FORM_SUBMIT_RESULT?"form_submit":"custom"},getFormStateKey:function(e,t){return e||t||"unknown_form"},ensureFormState:function(e,t,n){var r=this.getFormStateKey(t,n);return e.formStateMap.has(r)||e.formStateMap.set(r,{formId:t||r,pageUrl:n||"",touchedFieldIds:new Set,requiredFieldIds:new Set,changedFieldIds:new Set,focusPath:[],zigzagHits:0,hasSuccessSubmit:!1,reportedZigzag:!1,reportedUncompleted:!1}),e.formStateMap.get(r)},recordFormTouch:function(e,t){var n,e=this.ensureFormState(e,null==(e=null==t?void 0:t.data)?void 0:e.form_id,null==t?void 0:t.page_url),r=String((null==(r=null==t?void 0:t.data)?void 0:r.field_id)||"");return r&&(e.touchedFieldIds.add(r),!0===(null==(n=t.data)?void 0:n.is_required)&&e.requiredFieldIds.add(r),t.event_type===A.FORM_CHANGE)&&e.changedFieldIds.add(r),null!=t&&t.page_url&&(e.pageUrl=t.page_url),e},trackFormFocus:function(e,t){var n,r=t,i=String((null==(i=null==r?void 0:r.data)?void 0:i.field_id)||"");i&&((n=this.recordFormTouch(e,r)).focusPath.push(i),12<n.focusPath.length&&n.focusPath.shift(),e.focusStartMap.set(i,{timestamp:t.timestamp||Date.now(),eventId:t.event_id,formId:null==(n=null==r?void 0:r.data)?void 0:n.form_id,pageUrl:null==r?void 0:r.page_url}))},trackFormChangeAndZigzag:function(e,t,n){var r,i,o,a,s;n.event_type!==A.FORM_CHANGE?n.event_type!==A.FORM_FOCUS||(s=(i=this.recordFormTouch(t,r=n)).focusPath).length<4||i.reportedZigzag||(o=(s=s.slice(-4))[0],a=s[1],!o)||!a||o===a||o!==s[2]||a!==s[3]||i.changedFieldIds.size<2||(i.zigzagHits+=1,s=null!=(a=null==(o=t.config.form)?void 0:o.zigzagMinCount)?a:2,i.zigzagHits<s)||(i.reportedZigzag=!0,null==(o=e.reportStruggle))||o.call(e,{type:"form_zigzag",ownerType:"form",ownerKey:i.formId,pageUrl:i.pageUrl,formId:i.formId,fieldId:String((null==(a=null==r?void 0:r.data)?void 0:a.field_id)||""),triggerEventId:r.event_id,relatedEventIds:[r.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{zigzag_hits:i.zigzagHits,changed_field_count:i.changedFieldIds.size}}):this.recordFormTouch(t,n)},trackFormSubmitResult:function(e,t){t.event_type!==A.FORM_SUBMIT&&t.event_type!==A.FORM_SUBMIT_RESULT||((e=this.recordFormTouch(e,t)).lastSubmitEventId=t.event_id,t.event_type!==A.FORM_SUBMIT_RESULT)||"success"===(null==(t=null==(t=t.data)?void 0:t.event_properties)?void 0:t.status)&&(e.hasSuccessSubmit=!0)},reportPendingUncompletedForms:function(t,n,r){var i=this;n.formStateMap.forEach(function(e){i.tryReportUncompletedForm(t,n,e,r)})},tryReportUncompletedForm:function(e,t,n,r){var i,o,a,s;n.reportedUncompleted||n.hasSuccessSubmit||0===n.touchedFieldIds.size||(a=0<(o=n.requiredFieldIds.size)?o:n.touchedFieldIds.size)<=0||(a=n.changedFieldIds.size/a)<(s=null!=(s=null==(s=t.config.form)?void 0:s.incompleteMinFieldRatio)?s:.3)||(n.reportedUncompleted=!0,null==(i=e.reportStruggle))||i.call(e,{type:"uncompleted_form",ownerType:"form",ownerKey:n.formId,pageUrl:n.pageUrl,formId:n.formId,triggerEventId:n.lastSubmitEventId,relatedEventIds:n.lastSubmitEventId?[n.lastSubmitEventId]:undefined,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{touched_field_count:n.touchedFieldIds.size,changed_field_count:n.changedFieldIds.size,required_field_count:o,changed_ratio:Number(a.toFixed(4)),threshold_ratio:s}})},tryReportLongFocusTime:function(e,t,n){var r,i,o,a,s=String((null==(s=null==n?void 0:n.data)?void 0:s.field_id)||"");s&&(i=t.focusStartMap.get(s))&&(t.focusStartMap["delete"](s),o=null!=(o=null==(o=t.config.form)?void 0:o.longFocusThresholdMs)?o:2e4,(a=Math.max((n.timestamp||Date.now())-i.timestamp,0))<o||null==(r=e.reportStruggle)||r.call(e,{type:"long_focus_time",ownerType:"field",ownerKey:s,pageUrl:(null==n?void 0:n.page_url)||i.pageUrl,formId:(null==(e=null==n?void 0:n.data)?void 0:e.form_id)||i.formId,fieldId:s,triggerEventId:n.event_id,relatedEventIds:[i.eventId||"",n.event_id].filter(Boolean),detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{focus_duration_ms:a,threshold_ms:o}}))},tryReportErrorClick:function(e,t,n){var r,i,o;t.recentClicks.length&&(i=null!=(o=(t.config.click||YO.click).errorClickWindowMs)?o:3e3,o=Cl(t.recentClicks).reverse().find(function(e){return 0<=n.timestamp-e.timestamp&&n.timestamp-e.timestamp<=i}))&&null!=(r=e.reportStruggle)&&r.call(e,{type:"error_click",ownerType:"element",ownerKey:o.ownerKey,pageUrl:o.pageUrl||n.page_url,triggerEventId:o.eventId,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{errorEventType:n.event_type}})},tryReportSlowPage:function(e,t,n){var r,i,o,a=t.config.performance||YO.performance;a.enabled&&(i=(null==(i=n.data)?void 0:i.measurements)||{},r=Number(i.lcp||0),i=Number(i.inp||0),o=null!=(o=a.slowPageLcpThreshold)?o:4e3,a=null!=(a=a.slowPageInpThreshold)?a:500,o<=r||a<=i)&&null!=(o=e.reportStruggle)&&o.call(e,{type:"slow_page",ownerType:"page",ownerKey:n.page_url||("undefined"!=typeof window?window.location.href:""),pageUrl:n.page_url,triggerEventId:n.event_id,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{lcp:r,inp:i,sourceEventType:n.event_type}})},tryReportFormValidationError:function(e,t,n){var r,i,o,a,s=(null==(s=null==n?void 0:n.data)?void 0:s.event_properties)||{},u=(null==n?void 0:n.data)||{};"fail"===String((null==s?void 0:s.status)||(null===(i=u)?void 0:i.status)||"")&&(i=String((null==s?void 0:s.field_id)||(null===(i=u)?void 0:i.field_id)||""),o=String((null==s?void 0:s.form_id)||(null===(o=u)?void 0:o.form_id)||""),a=i||o||(null==n?void 0:n.page_url)||"unknown",null!=(r=e.reportStruggle))&&r.call(e,{type:"form_validation_error",ownerType:i?"field":"form",ownerKey:a,pageUrl:null==n?void 0:n.page_url,formId:o,fieldId:i,triggerEventId:n.event_id,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{validation_code:(null==s?void 0:s.validation_code)||(null===(e=u)?void 0:e.validation_code),validation_message:null==(a=null==n?void 0:n.data)?void 0:a.validation_message,sourceEventType:n.event_type}})},tryReportBackForward:function(e,t,n){var r,i,o=t.config.navigation||YO.navigation;o.enabled&&o.backForwardAsStruggle&&(n=null==(n=null==(o=n)?void 0:o.data)?void 0:n.event_properties,"back"!==(i=String((null==n?void 0:n.navigation_type)||""))&&"forward"!==i||null==(r=e.reportStruggle)||r.call(e,{type:"back_forward",ownerType:"page",ownerKey:String((null==n?void 0:n.to_page)||"")||(null==o?void 0:o.page_url)||"unknown",pageUrl:null==o?void 0:o.page_url,triggerEventId:o.event_id,relatedEventIds:[o.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{navigation_type:i,from_page:null==n?void 0:n.from_page,to_page:null==n?void 0:n.to_page}}))},tryReportCustomStruggle:function(n,r,i){var e=r.config.custom||YO.custom;e.enabled&&"function"==typeof e.detector&&(e=e.detector({event:i,tdem:n}),(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t,e=M(M({},e),{type:(null==e?void 0:e.type)||"custom_struggle",ownerType:(null==e?void 0:e.ownerType)||"app",ownerKey:(null==e?void 0:e.ownerKey)||i.page_url||"custom",ruleVersion:(null==e?void 0:e.ruleVersion)||r.config.ruleVersion,payloadAllowlist:(null==e?void 0:e.payloadAllowlist)||r.config.payloadAllowlist,detectionSource:(null==e?void 0:e.detectionSource)||"custom"});null!=(t=n.reportStruggle)&&t.call(n,e)}))},cleanupInstance:function(e){var t=this.instanceStates.get(e);t&&!t.closing&&(t.closing=!0,this.closeClickGroups(t,!0),t.onEventCreated&&e.lifeCycle.remove("tdemEventCreated",t.onEventCreated),t.onDestroy&&e.lifeCycle.remove("destroy",t.onDestroy),t.clickDetector&&t.clickDetector.stop(),t.pendingDeadClicks.forEach(function(e){clearTimeout(e.timeout)}),t.pendingDeadClicks.clear(),this.reportPendingUncompletedForms(e,t,"destroy"),t.focusStartMap.clear(),t.formStateMap.clear(),t.removeDomListeners.forEach(function(e){return e()}),t.removeDomListeners=[],this.instanceStates["delete"](e),0===this.instanceStates.size)&&this.restoreWindowOpenHook()},destroy:function(){var n=this.option||this;n.instanceStates.forEach(function(e,t){n.cleanupInstance(t)}),n.instanceStates.clear(),n.restoreWindowOpenHook()}})),ex=function(e,t){return void 0===t&&(t=2),"number"==typeof e&&Number.isFinite(e)?(t=Math.pow(10,Math.max(0,Math.min(12,Math.floor(t)))),Math.round(e*t)/t):0},tx=function(e,t){return void 0===t&&(t=2048),"string"==typeof e&&e.trim()?e.trim().slice(0,Math.max(1,Math.floor(t))):"unknown"},nx={enabled:!0,threshold:2e3,noResponseThreshold:5e3,sampleRate:1},rx=new Map,ix=function(e){var t,n=rx.get(e);if(n){n.destroyed=!0;try{null!=(t=n.observer)&&t.disconnect()}catch(D){}n.observer=null,n.lagRecords.length=0,e.lifeCycle.remove("destroy",n.onDestroy),rx["delete"](e)}},n=new u({name:"lagMonitor",onNewTdem:function(o,e){e=e,void 0===(r=null!=(n=o.config)&&n.debug?function(e,t){"undefined"!=typeof console&&console.warn&&console.warn("[TDEM] "+e+": "+t+", fallback applied")}:function(){return undefined})&&(r=function(){return undefined});var r,t,n,a=!1===e?M(M({},nx),{enabled:!1}):!0===e||e===undefined?M({},nx):!e||"object"!==I(e)||Array.isArray(e)?(r("lagMonitor","invalid_type"),M({},nx)):(n=M({},nx),e.enabled!==undefined&&("boolean"==typeof e.enabled?n.enabled=e.enabled:r("lagMonitor.enabled","invalid_type")),n.threshold=(t=function(e,t,n){return e===undefined?n:"number"!=typeof e?(r(t,"invalid_type"),n):Number.isFinite(e)?e<=0?(r(t,"out_of_range"),n):e:(r(t,"invalid_number"),n)})(e.threshold,"lagMonitor.threshold",nx.threshold),n.noResponseThreshold=t(e.noResponseThreshold,"lagMonitor.noResponseThreshold",nx.noResponseThreshold),e.sampleRate!==undefined&&("number"!=typeof e.sampleRate?r("lagMonitor.sampleRate","invalid_type"):Number.isFinite(e.sampleRate)?e.sampleRate<0||1<e.sampleRate?r("lagMonitor.sampleRate","out_of_range"):n.sampleRate=e.sampleRate:r("lagMonitor.sampleRate","invalid_number")),n.noResponseThreshold<=n.threshold&&(n.noResponseThreshold=Math.max(5e3,n.threshold+1),r("lagMonitor.noResponseThreshold","relation_conflict")),n);if(a.enabled&&"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")&&(i=a.sampleRate,Math.random()<i)){var i,s=[],u={observer:null,lagRecords:s,sampled:!0,destroyed:!1,onDestroy:function(){return ix(o)}};rx.set(o,u),o.lifeCycle.on("destroy",u.onDestroy);try{u.observer=new PerformanceObserver(function(e){if(!u.destroyed)try{e.getEntries().forEach(function(e){var t,n,r,i;u.destroyed||e.duration<=a.threshold||(t=null==(t=e.scripts)?void 0:t[0],e={name:e.name,timestamp:Date.now(),entryType:e.entryType,startTime:e.startTime,duration:e.duration,invoker:null==t?void 0:t.invoker,sourceURL:null==t?void 0:t.sourceURL},s.push(e),100<s.length&&s.shift(),t=o,r=(e=e).duration>=(n=a).noResponseThreshold,i=ng(t),e={event_id:Pc(),event_type:r?A.NO_RESPONSE:A.LAG_DETECTED,event_category:r?Mc.ERROR:Mc.PERFORMANCE,timestamp:Date.now(),page_url:(null==(r=t.getOriginFrom)?void 0:r.call(t))||window.location.href,data:M(M({measurements:{duration:ex(e.duration),start_time_ms:ex(e.startTime),lag_threshold_ms:n.threshold,no_response_threshold_ms:n.noResponseThreshold},event_properties:{entry_type:e.entryType||"long-animation-frame",source_url:tx(e.sourceURL,2048),invoker:tx(e.invoker,256)}},i?{replay_id:i}:{}),{tags:{environment:(null==(r=t.config)?void 0:r.env)||"production",version:String((null==(n=t.config)?void 0:n.version)||"")}})},t.reportTDEMEvent(e))})}catch(i){}}),u.observer.observe({type:"long-animation-frame",buffered:!1})}catch(b){ix(o)}}},getLagRecords:function(e){return Cl((null==(e=rx.get(e))?void 0:e.lagRecords)||[])},destroy:function(){Array.from(rx.keys()).forEach(ix)}}),ox={enabled:!0,containers:["body","html","#app","#root"],ignoreContainers:[],containerMatchers:{tagName:["body","html"],id:["app","root"],className:[]},ignoreMatchers:{tagName:[],id:[],className:[]},detectStartPosition:{x:0,y:0},emptyElementsPercent:70,sameElementsPercent:70,debounceDuration:2e3,everySideSampleNumber:9,disableSameElementsCheck:!0,ignoreElesWhenDomChange:[],reDetectInterval:2e3,samePointDepth:5,customBlankScreenDector:null},ax=["canvas","img","svg","iframe"],sx=(0,function(e){var t=e.nodeName.toLowerCase(),n=e.id||"",e="string"==typeof(e=e).className?e.className:e.getAttribute("class")||"",r=e.split(" ").filter(Boolean).map(function(e){return"."+e}).join("");return{tagName:t,id:n,className:e,selector:t+(n?"#"+n:"")+r}}),ux=function(t,e){var n;if(null!=(n=null==e?void 0:e.tagName)&&n.some(function(e){return t.tagName===e.toLowerCase().trim()}))return!0;if(t.id&&null!=(n=null==e?void 0:e.id)&&n.some(function(e){return t.id===e.trim()}))return!0;if(t.className&&null!=(n=null==e?void 0:e.className)&&n.length){var r=t.className.split(" ").map(function(e){return e.trim()}).filter(Boolean);if(e.className.some(function(e){return r.includes(e.trim())}))return!0}return!1},lx=function(t,e){return e.some(function(e){return t.selector.includes(e)})},cx=function(e){return{tagName:Cl(e.tagName||[]),id:Cl(e.id||[]),className:Cl(e.className||[])}},dx=function(){return M(M({},ox),{containers:Cl(ox.containers),ignoreContainers:Cl(ox.ignoreContainers),containerMatchers:cx(ox.containerMatchers),ignoreMatchers:cx(ox.ignoreMatchers),detectStartPosition:M({},ox.detectStartPosition),ignoreElesWhenDomChange:Cl(ox.ignoreElesWhenDomChange)})},fx=function(e,t){void 0===t&&(t=2);t=Math.pow(10,t);return Math.round(e*t)/t},hx=new Map,px=function(e){var t,n=hx.get(e);n&&(n.destroyed=!0,n.detectTimer&&clearTimeout(n.detectTimer),n.bodyWaitTimer&&clearTimeout(n.bodyWaitTimer),null!==n.idleCallbackId&&"function"==typeof window.cancelIdleCallback&&(window.cancelIdleCallback(n.idleCallbackId),n.idleCallbackId=null),null!==n.bodyWaitFrame&&(window.cancelAnimationFrame||clearTimeout)(n.bodyWaitFrame),null!=(t=n.observer)&&t.disconnect(),e.lifeCycle.remove("errorOccurred",n.onErrorOccurred),e.lifeCycle.remove("destroy",n.onDestroy),window.removeEventListener("pagehide",n.handlePageHide),window.removeEventListener("beforeunload",n.handleBeforeUnload),document.removeEventListener("visibilitychange",n.handleVisibilityChange),hx["delete"](e))},OC=new u({name:"blankScreen",onNewTdem:function(_,e){var S,E,C,R,O,t,x,n,r,i,o,a,s,u,l,c,d,f,h,p,m,g=this;"undefined"!=typeof document&&document.elementsFromPoint&&(e=e,void 0===(s=null!=(m=_.config)&&m.debug?function(e,t){"undefined"!=typeof console&&console.warn&&console.warn("[TDEM] "+e+": "+t+", fallback applied")}:function(){return undefined})&&(s=function(){return undefined}),m=dx(),(S=!1===e?M(M({},m),{enabled:!1}):!0===e||e===undefined?m:!e||"object"!==I(e)||Array.isArray(e)?(s("blankScreen","invalid_type"),m):(u="containerMatchers"in(e=e)||"ignoreMatchers"in e,p="containers"in e||"ignoreContainers"in e,l=function(e,t,n,r){return e===undefined?Cl(t):Array.isArray(e)&&e.length<=100&&e.every(function(e){return"string"==typeof e&&0<e.trim().length&&e.trim().length<=r})?e.map(function(e){return e.trim()}):(s(n,"invalid_array"),Cl(t))},h=function(e,t,n){return e===undefined?cx(t):!e||"object"!==I(e)||Array.isArray(e)?(s(n,"invalid_type"),cx(t)):{tagName:l((e=e).tagName,t.tagName||[],n+".tagName",128),id:l(e.id,t.id||[],n+".id",128),className:l(e.className,t.className||[],n+".className",128)}},c=function(e,t,n,r){return e===undefined?t:"number"!=typeof e?(s(n,"invalid_type"),t):Number.isFinite(e)?r(e)?e:(s(n,"out_of_range"),t):(s(n,"invalid_number"),t)},d=function(e,t,n,r,i){return c(e,t,n,function(e){return Number.isInteger(e)&&r<=e&&e<=i})},f=dx(),e.enabled!==undefined&&("boolean"==typeof e.enabled?f.enabled=e.enabled:s("blankScreen.enabled","invalid_type")),f.containers=l(e.containers,m.containers,"blankScreen.containers",256),f.ignoreContainers=l(e.ignoreContainers,m.ignoreContainers,"blankScreen.ignoreContainers",256),f.containerMatchers=h(e.containerMatchers,m.containerMatchers,"blankScreen.containerMatchers"),f.ignoreMatchers=h(e.ignoreMatchers,m.ignoreMatchers,"blankScreen.ignoreMatchers"),p&&!u&&(f.containerMatchers={tagName:[],id:[],className:[]},f.ignoreMatchers={tagName:[],id:[],className:[]}),(h=e.detectStartPosition)===undefined||h&&"object"===I(h)&&!Array.isArray(h)?f.detectStartPosition={x:c((p=h||{}).x,m.detectStartPosition.x,"blankScreen.detectStartPosition.x",function(e){return 0<=e}),y:c(p.y,m.detectStartPosition.y,"blankScreen.detectStartPosition.y",function(e){return 0<=e})}:s("blankScreen.detectStartPosition","invalid_type"),f.emptyElementsPercent=c(e.emptyElementsPercent,m.emptyElementsPercent,"blankScreen.emptyElementsPercent",function(e){return 0<e&&e<=100}),f.sameElementsPercent=c(e.sameElementsPercent,m.sameElementsPercent,"blankScreen.sameElementsPercent",function(e){return 0<e&&e<=100}),f.debounceDuration=c(e.debounceDuration,m.debounceDuration,"blankScreen.debounceDuration",function(e){return 0<=e}),f.reDetectInterval=c(e.reDetectInterval,m.reDetectInterval,"blankScreen.reDetectInterval",function(e){return 0<e}),f.everySideSampleNumber=d(e.everySideSampleNumber,m.everySideSampleNumber,"blankScreen.everySideSampleNumber",2,50),f.samePointDepth=d(e.samePointDepth,m.samePointDepth,"blankScreen.samePointDepth",1,20),e.disableSameElementsCheck!==undefined&&("boolean"==typeof e.disableSameElementsCheck?f.disableSameElementsCheck=e.disableSameElementsCheck:s("blankScreen.disableSameElementsCheck","invalid_type")),f.ignoreElesWhenDomChange=l(e.ignoreElesWhenDomChange,m.ignoreElesWhenDomChange,"blankScreen.ignoreElesWhenDomChange",256),e.customBlankScreenDector!==undefined&&(null===e.customBlankScreenDector||"function"==typeof e.customBlankScreenDector?f.customBlankScreenDector=e.customBlankScreenDector:s("blankScreen.customBlankScreenDector","invalid_type")),f)).enabled)&&(u=function(e,t,n){e=4*e-3;return{totalSamplePoints:e,whitePointThreshold:Math.floor(e*t/100),samePointThreshold:Math.floor(e*n/100)}}(S.everySideSampleNumber,S.emptyElementsPercent,S.sameElementsPercent),E=u.totalSamplePoints,C=u.whitePointThreshold,R=u.samePointThreshold,O={observer:null,detectTimer:null,bodyWaitTimer:null,bodyWaitFrame:null,idleCallbackId:null,destroyed:!1,initialDetectionPending:!0,incidentStatus:"healthy",preDetectResult:null,triggerType:"dom_change",onErrorOccurred:function(){return undefined},onDestroy:function(){return px(_)},handlePageHide:function(){return undefined},handleBeforeUnload:function(){return undefined},handleVisibilityChange:function(){return undefined}},hx.set(_,O),t=function(){return Sl(g,void 0,void 0,function(){var l,c,d,f,h,p,m,g,v,y,w,b,k;return El(this,function(e){var t,n,r,i,o,a,s,u;if(!O.destroyed)try{if("initial_load"===O.triggerType&&(O.initialDetectionPending=!1),l=window.innerHeight,c=window.innerWidth,d=S.detectStartPosition,f=d.x,h=d.y,c<=f||l<=h)return[2];if(p=[],g=m=0,function(e,t,n,r){for(var i=r.x,o=r.y,a=i+(e-i)/2,s=o+(t-o)/2,u=n+1,l=[],c=1;c<u;c+=1){var d=i+(e-i)*c/u,f=o+(t-o)*c/u;l.push({x:d,y:s}),c!==u/2&&l.push({x:a,y:f},{x:d,y:f},{x:d,y:t-f})}return l}(c,l,S.everySideSampleNumber,S.detectStartPosition).forEach(function(e){a=e.x,s=e.y,e=document.elementsFromPoint(a,s),e=(u=function(e){var t=e[0];if(t&&null!==t.shadowRoot){t=(null==(t=t.shadowRoot)?void 0:t.elementsFromPoint(a,s))||[];if(t.length>e.length)return u(t)}return e})(e),t=S.containers,n=S.ignoreContainers,r=S.containerMatchers,l=S.ignoreMatchers,e=e.map(sx),o=e.map(function(e){return e.selector});var t,n,r,i,o,a,s,u,l=(e=e[0])?(r=(i=!(!r||!(null!=(i=r.tagName)&&i.length||null!=(i=r.id)&&i.length||null!=(i=r.className)&&i.length)))?ux(e,r):lx(e,t),t=i?ux(e,l):lx(e,n),{isWhitePoint:r&&!t,selectorPointers:o}):{isWhitePoint:!1,selectorPointers:o};l.isWhitePoint&&(m+=1),p.push(l.selectorPointers)}),v=C<=m,y=!1,S.disableSameElementsCheck||(w=p.map(function(e){return e.slice(0,S.samePointDepth)}),o={},w.map(function(e){return e.join(" < ")}).forEach(function(e){o[e]=o[e]?o[e]+1:1}),a=Object.keys(o).map(function(e){return[e,o[e]]}).sort(function(e,t){return t[1]-e[1]})[0]||["",0],s=a[0],b={samePointerMap:o,maximumSamePointerClass:s,maximumSamePointerCounter:a[1]},y=R<=(g=b.maximumSamePointerCounter)&&(u=b.maximumSamePointerClass,!ax.some(function(e){return u.startsWith(e)}))),k=!1,S.customBlankScreenDector)try{k=!0===S.customBlankScreenDector()}catch(K){k=!1}if(!(v||y||k))return O.incidentStatus="healthy",O.preDetectResult=null,[2];if("reported"===O.incidentStatus)return[2];if("suspect"===O.incidentStatus&&O.preDetectResult)return t=O.preDetectResult,r=t.customTriggered?"custom":t.whitePointTriggered&&t.sameElementTriggered?"both":t.whitePointTriggered?"white_point":"same_element",i=ng(_),t={event_id:Pc(),event_type:A.BLANK_SCREEN,event_category:Mc.ERROR,timestamp:Date.now(),page_url:(null==(n=_.getOriginFrom)?void 0:n.call(_))||window.location.href,data:M(M({measurements:{white_point_count:t.whitePointCount,same_point_count:t.samePointCount,total_sample_points:E,white_point_threshold:C,same_point_threshold:R,white_point_ratio:fx(t.whitePointCount/E,6),same_point_ratio:fx(t.samePointCount/E,6),viewport_width_px:Math.max(0,Math.round(window.innerWidth)),viewport_height_px:Math.max(0,Math.round(window.innerHeight))},event_properties:{trigger_reason:r,trigger_type:t.triggerType,detection_method:t.customTriggered?"custom_detector":"viewport_sampling",same_elements_check_enabled:String(!S.disableSameElementsCheck)}},i?{replay_id:i}:{}),{tags:{environment:(null==(n=_.config)?void 0:n.env)||"production",version:String((null==(r=_.config)?void 0:r.version)||"")}})},_.reportTDEMEvent(t),O.incidentStatus="reported",O.preDetectResult=null,[2];O.preDetectResult={whitePointCount:m,samePointCount:g,whitePointTriggered:v,sameElementTriggered:y,customTriggered:k,triggerType:O.triggerType},O.incidentStatus="suspect",O.detectTimer=setTimeout(function(){O.detectTimer=null,x()},S.reDetectInterval)}catch(K){}return[2]})})},x=function(){return Sl(g,void 0,void 0,function(){return El(this,function(e){switch(e.label){case 0:if(O.destroyed)return[2];if("function"!=typeof window.requestIdleCallback)return[3,5];e.label=1;case 1:return e.trys.push([1,2,,4]),O.idleCallbackId=window.requestIdleCallback(function(e){O.idleCallbackId=null,O.destroyed||(0<e.timeRemaining()?t():O.detectTimer=setTimeout(function(){O.detectTimer=null,t()},0))}),[3,4];case 2:return e.sent(),[4,t()];case 3:return e.sent(),[3,4];case 4:return[3,7];case 5:return[4,t()];case 6:e.sent(),e.label=7;case 7:return[2]}})})},n=function(e){void 0===e&&(e="dom_change"),O.destroyed||"suspect"===O.incidentStatus||"initial_load"!==e&&O.initialDetectionPending||(O.triggerType=e,O.detectTimer&&clearTimeout(O.detectTimer),O.detectTimer=setTimeout(function(){O.detectTimer=null,x()},S.debounceDuration))},O.onErrorOccurred=function(){return n("error")},_.lifeCycle.on("errorOccurred",O.onErrorOccurred),_.lifeCycle.on("destroy",O.onDestroy),r=function(){!O.destroyed&&document.body&&(O.observer=new MutationObserver(function(e){var t=null==(t=e[0])?void 0:t.target;if(1===e.length&&t instanceof Element){e=sx(t).selector;if(S.ignoreElesWhenDomChange.includes(e))return}n("dom_change")}),O.observer.observe(document.body,{childList:!0,subtree:!0}))},document.body?r():(i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=function(){document.body?(O.bodyWaitTimer&&clearTimeout(O.bodyWaitTimer),r()):O.bodyWaitFrame=i(o)},O.bodyWaitFrame=i(o),O.bodyWaitTimer=setTimeout(function(){null!==O.bodyWaitFrame&&((window.cancelAnimationFrame||clearTimeout)(O.bodyWaitFrame),O.bodyWaitFrame=null)},1e4)),O.handlePageHide=a=function(){O.destroyed||(O.detectTimer&&clearTimeout(O.detectTimer),O.triggerType="page_state",O.preDetectResult&&(O.preDetectResult.triggerType="page_state"),t())},O.handleBeforeUnload=a,O.handleVisibilityChange=function(){"hidden"===document.visibilityState&&a()},window.addEventListener("pagehide",O.handlePageHide),window.addEventListener("beforeunload",O.handleBeforeUnload),document.addEventListener("visibilitychange",O.handleVisibilityChange),n("initial_load"))},destroy:function(){Array.from(hx.keys()).forEach(px)}}),mx={enabled:!0,enableMemoryReport:!0,enableOOMReport:!0,oomThreshold:100,memoryReportInterval:6e4,oomCheckInterval:1e4,monitorPages:[],sampleRate:1},gx=new Map,vx=function(e,t,n){null!=(e=null==e?void 0:e.config)&&e.debug&&"undefined"!=typeof console&&console.warn("[TDEM] "+t+": "+n+", fallback applied")},yx=function(e){return"number"==typeof e&&Number.isFinite(e)},wx=function(){var e;try{var t=null==(e=window.performance)?void 0:e.memory;return!t||!yx(t.usedJSHeapSize)||!yx(t.totalJSHeapSize)||!yx(t.jsHeapSizeLimit)||t.usedJSHeapSize<0||t.totalJSHeapSize<0||t.jsHeapSizeLimit<0?null:{used:t.usedJSHeapSize,total:t.totalJSHeapSize,limit:t.jsHeapSizeLimit,ratio:0<t.jsHeapSizeLimit?Math.min(1,t.usedJSHeapSize/t.jsHeapSizeLimit):0}}catch(C){return null}},bx=function(e){var t=gx.get(e);t&&(t.destroyed=!0,t.reportTimer&&clearInterval(t.reportTimer),t.oomCheckTimer&&clearInterval(t.oomCheckTimer),t.records.length=0,e.lifeCycle.remove("destroy",t.onDestroy),"undefined"!=typeof window&&(window.removeEventListener("pagehide",t.onPageExit),window.removeEventListener("beforeunload",t.onPageExit)),gx["delete"](e))},kx=function(e,t,n){var r,i,o;t.destroyed||(i=wx())&&(t.records.push(i),50<t.records.length&&t.records.shift(),o=ng(e),n={event_id:Pc(),event_type:n,event_category:Mc.PERFORMANCE,timestamp:Date.now(),page_url:(null==(r=e.getOriginFrom)?void 0:r.call(e))||window.location.href,data:M(M({measurements:M({used_js_heap_size_bytes:i.used,total_js_heap_size_bytes:i.total,js_heap_size_limit_bytes:i.limit,usage_ratio:i.ratio},n===A.MEMORY_OOM?{oom_threshold_mb:t.config.oomThreshold}:{}),event_properties:{detection_source:"performance_memory"}},o?{replay_id:o}:{}),{tags:{environment:(null==(r=e.config)?void 0:r.env)||"production",version:String((null==(i=e.config)?void 0:i.version)||"")}})},e.reportTDEMEvent(n))},m=new u({name:"memoryMonitor",onNewTdem:function(n,t){r=n;var r,i,o,a,e,s,u=!1===(e=t)?M(M({},mx),{enabled:!1}):(i=e&&"object"===I(e)?e:{},e===undefined||!0===e||e&&"object"===I(e)&&!Array.isArray(e)||vx(r,"memoryMonitor","invalid_type"),o=M(M({},mx),{oomThreshold:0<(e=(null==(e=wx())?void 0:e.limit)||0)?Math.round(e/1024/1024*.9):100}),["enabled","enableMemoryReport","enableOOMReport"].forEach(function(e){i[e]!==undefined&&("boolean"==typeof i[e]?o[e]=i[e]:vx(r,"memoryMonitor."+e,"invalid_type"))}),["oomThreshold","memoryReportInterval","oomCheckInterval"].forEach(function(e){var t=i[e];t!==undefined&&(yx(t)&&0<t?o[e]=t:vx(r,"memoryMonitor."+e,yx(t)?"out_of_range":"invalid_number"))}),i.sampleRate!==undefined&&(yx(i.sampleRate)&&0<=i.sampleRate&&i.sampleRate<=1?o.sampleRate=i.sampleRate:vx(r,"memoryMonitor.sampleRate","out_of_range")),i.monitorPages!==undefined&&(Array.isArray(i.monitorPages)&&i.monitorPages.length<=100&&i.monitorPages.every(function(e){return"string"==typeof e&&!!e||e instanceof RegExp})?o.monitorPages=Cl(i.monitorPages):vx(r,"memoryMonitor.monitorPages","invalid_value")),o);!u.enabled||!function(){var e;try{return"undefined"!=typeof window&&null!=(e=window.performance)&&e.memory}catch(t){}}()||Math.random()>=u.sampleRate||(e=u.monitorPages).length&&(s="undefined"==typeof window?"":window.location.href,!e.some(function(e){return"string"==typeof e?s.includes(e):(e.lastIndex=0,e.test(s))}))||(a={config:u,reportTimer:null,oomCheckTimer:null,lastOOMTime:0,records:[],destroyed:!1,onDestroy:function(){return bx(n)},onPageExit:function(){return bx(n)}},gx.set(n,a),n.lifeCycle.on("destroy",a.onDestroy),"undefined"!=typeof window&&(window.addEventListener("pagehide",a.onPageExit),window.addEventListener("beforeunload",a.onPageExit)),u.enableMemoryReport&&(a.reportTimer=setInterval(function(){return kx(n,a,A.MEMORY_USAGE)},u.memoryReportInterval)),u.enableOOMReport&&(a.oomCheckTimer=setInterval(function(){var e=wx(),t=Date.now();e&&e.used/1024/1024>u.oomThreshold&&3e5<t-a.lastOOMTime&&(a.lastOOMTime=t,kx(n,a,A.MEMORY_OOM))},u.oomCheckInterval)))},destroy:function(){Array.from(gx.keys()).forEach(bx)}});function _x(e,t){try{var n={projectKey:e,document:t,timestamp:Date.now()};localStorage.setItem("TDEM_SAMPLE_CONFIG",JSON.stringify(n))}catch(bw){}}function Sx(e){var t;try{var n,r=localStorage.getItem("TDEM_SAMPLE_CONFIG");return r?!((n=JSON.parse(r)).projectKey!==e||6048e5<=Date.now()-n.timestamp)&&null!=(t=n.document)&&t.event?n.document:null:null}catch(De){return null}}function Ex(e,t){try{var n=e.config.sessionReplay,r=t,i=(!1===n&&(r=M(M({},t),{replay:M(M({},t.replay),{enabled:!1})})),e._tdemSampleConfig=r,e._tdemSampleGate||null);null!=i&&i.decide(!0),o=e,u=(null==r?void 0:r.replay)||{},l={},"boolean"==typeof u.enabled&&(l.enabled=u.enabled),u.experience_sample_rate!==undefined&&(l.experience_sample_rate=Number(u.experience_sample_rate)),"boolean"==typeof u.error_traceback&&(l.error_traceback=u.error_traceback),u.error_sample_rate!==undefined&&(l.error_sample_rate=Number(u.error_sample_rate)),a=l,a=KO(o.config.sessionReplay,a),o._effectiveReplayPolicy=a,o._replaySampled=a.enabled,"function"==typeof(s=null==(s=null==(o=null==(s=null==(o=o.constructor.installedPlugins)?void 0:o.find)?void 0:s.call(o,function(e){return e&&"sessionReplay"===e.name}))?void 0:o.option)?void 0:s.applyEffectivePolicy)&&s.call(o.option,a)}catch(Pe){console.warn("[TDEM] sample config apply failed",Pe),e._tdemSampleConfig=Sp}var o,a,s,u,l}function Cx(e,t){var n=e.config.sampleConfigPreference||"remote-first",e=e.config.sampleConfig;n=n||"remote-first";try{return"local-first"===n?e||t||Sp:t||e||Sp}catch(bw){return e||Sp}}Be=new u({name:"tdemConfig",onNewTdem:function(e){try{var t=e._prefetchedConfigData;null!=t&&t.event?Ex(e,Cx(e,t)):Ex(e,Cx(e,null)),function(a){var s;Sl(this,void 0,void 0,function(){var n,r,i,o;return El(this,function(e){switch(e.label){case 0:if(n=a.config.id,null!=(r=a._prefetchedConfigData)&&r.event)return delete a._prefetchedConfigData,i=Cx(a,r),n&&_x(n,i),Ex(a,i),[2];if(!n)return Ex(a,Cx(a,null)),[2];if(t=(a.config.url||"").replace(/\/+$/,""),!(r=t?t+"/api/v1/sample-config":""))return Ex(a,Cx(a,Sx(n))),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.transportRequest({kind:"config",url:r,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:n})})];case 2:if(!(o=e.sent()).ok)throw new Error("HTTP "+o.status);if(0===(o="string"==typeof o.body?JSON.parse(o.body):o.body).code&&null!=(s=o.data)&&s.event)return i=Cx(a,o.data),_x(n,i),Ex(a,i),[2];throw new Error("API error: code="+o.code);case 3:return o=e.sent(),console.warn("[TDEM] Failed to fetch sample-config:",o),Ex(a,Cx(a,Sx(n))),[3,4];case 4:return[2]}var t})})}(e)}catch(Pe){console.warn("[TDEM] tdemConfig init failed",Pe),Ex(e,Sp)}}});Zv.entryName="tdem-web-sdk",Zv.use(Jr),Zv.use(s),Zv.use(i),Zv.use(Gr),Zv.use(ze),Zv.use(jt),Zv.use(l),Zv.use(He),Zv.use(qt),Zv.use(r),Zv.use(jr),Zv.use(a),Zv.use(Be),Zv.use(ny),Zv.use(lk),Zv.use(n),Zv.use(OC),Zv.use(m),_["default"]=Zv,_.registerCgiRequestFinalizer=ke,Object.defineProperty(_,"__esModule",{value:!0})});
|