@walkeros/web-destination-mixpanel 4.7.0 → 4.7.1
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/CHANGELOG.md +11 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/walkerOS.json +12 -12
- package/package.json +4 -4
package/dist/index.es5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){asyncGeneratorStep(o,n,i,s,a,"next",e)}function a(e){asyncGeneratorStep(o,n,i,s,a,"throw",e)}s(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_set_prototype_of(i,r.prototype),i},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(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}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}function _non_iterable_rest(){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 _non_iterable_spread(){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 _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _object_without_properties(e,t){if(null==e)return{};var r,n,i,o={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=_object_without_properties_loose(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function _object_without_properties_loose(e,t){if(null==e)return{};var r,n,i={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:c(0)}),a(s,"throw",{value:c(1)}),a(s,"return",{value:c(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function c(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},i=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},o=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},s=function(e){return Array.isArray(e)},a=function(e){return"boolean"==typeof e},c=function(e){return void 0!==e},u=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!s(e)&&"[object Object]"===Object.prototype.toString.call(e)},l=function(e){return"string"==typeof e},h=function(e){return Er(e)?e:void 0},p=function(e,t,r){return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return _async_to_generator(function(){var n;return _ts_generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(i))];case 1:case 3:return[2,o.sent()];case 2:return n=o.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return o.sent(),[7];case 6:return[2]}})})()}},f=function(e){return _async_to_generator(function(e){var t,r,n,i,o,s,a=arguments;return _ts_generator(this,function(l){return t=a.length>1&&void 0!==a[1]?a[1]:{},r=a.length>2&&void 0!==a[2]?a[2]:{},c(e)?(o=u(e)&&e.consent||r.consent||(null===(i=r.collector)||void 0===i?void 0:i.consent),s=null!==(n=r.event)&&void 0!==n?n:u(e)?e:{},[2,d(e,t,_object_spread_props(_object_spread({},r),{consent:o,event:s}))]):[2]})}).apply(this,arguments)},d=function(e){return _async_to_generator(function(e){var t,r,n,i,o,a,u,l,h,f,d,g,m,v,y,_,b=arguments;return _ts_generator(this,function(w){switch(w.label){case 0:if(t=b.length>1&&void 0!==b[1]?b[1]:{},o=(r=b.length>2&&void 0!==b[2]?b[2]:{}).consent||(null===(i=r.collector)||void 0===i?void 0:i.consent),a=null!==(n=r.event)&&void 0!==n?n:{},!r.collector)throw new Error("getMappingValue: context.collector is required");u={event:a,mapping:t,collector:r.collector,logger:r.collector.logger,consent:o},l=s(t)?t:[t],h=!0,f=!1,d=void 0,w.label=1;case 1:w.trys.push([1,6,7,8]),g=l[Symbol.iterator](),w.label=2;case 2:return(h=(m=g.next()).done)?[3,5]:(v=m.value,[4,p(Tr,function(e){if(_instanceof(e,Ar))throw e;r.collector&&r.collector.status.failed++,u.logger.error("mapping processing failed",{event:a,error:e})})(e,v,_object_spread_props(_object_spread({},u),{mapping:v}))]);case 3:if(y=w.sent(),c(y))return[2,y];w.label=4;case 4:return h=!0,[3,2];case 5:return[3,8];case 6:return _=w.sent(),f=!0,d=_,[3,8];case 7:try{h||null==g.return||g.return()}finally{if(f)throw d}return[7];case 8:return[2]}})}).apply(this,arguments)},g=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},m=function(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)},v=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){m(o,n,i,s,a,"next",e)}function a(e){m(o,n,i,s,a,"throw",e)}s(void 0)})}},y=function(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e},_=function(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}}),t&&Br(e,t)},b=function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):_instanceof(e,t)},w=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},k=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},S=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},C=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},x=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},I=function(e){if(en[e])return en[e];var t=globalThis[e],r=t.prototype,n=e in Xr?Xr[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Qr?Qr[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!tn())return en[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?en[e]=u:r}catch(e){return r}},O=function(e,t,r){var n,i=e+"."+String(r);if(rn[i])return rn[i].call(t);var o=I(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(rn[i]=s,s.call(t)):t[r]},E=function(e,t,r){var n=e+"."+String(r);if(nn[n])return nn[n].bind(t);var i=I(e)[r];return"function"!=typeof i?t[r]:(nn[n]=i,i.bind(t))},M=function(e){return e.nodeType===e.ELEMENT_NODE},R=function(e){var t=e&&"host"in e&&"mode"in e&&on.host(e)||null;return Boolean(t&&"shadowRoot"in t&&on.shadowRoot(t)===e)},A=function(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)},T=function(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return P(e,r)}).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i},P=function(e,t){if(D(e)){var r;try{r=T(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?q(r,e.styleSheet.href):r}var n=e.cssText;return F(e)&&e.selectorText.includes(":")&&(n=N(n)),t?q(n,t):n},N=function(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")},D=function(e){return"styleSheet"in e},F=function(e){return"selectorText"in e},L=function(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&j(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a},j=function(e){return e.toLowerCase()},U=function(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?j(t):null},B=function(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null},q=function(e,t){return(e||"").replace(cn,function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(un.test(c)||ln.test(c))return"url("+u+c+u+")";if(hn.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,f=S(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"})},z=function(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")},V=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=z(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=z(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=z(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=z(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")},W=function(){return pn++},$=function(e,t){return t&&""!==t.trim()?H(e,t):t},H=function(e,t){var r=vn.get(e);if(r||(r=e.createElement("a"),vn.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href},G=function(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?$(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(mn),!(r>=t.length);){var o=n(gn);if(","===o.slice(-1))o=$(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=$(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?q(n,H(e)):"object"===t&&"data"===r?$(e,n):n:$(e,n):n},Y=function(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t},J=function(e,t,r,n){var i;if(M(e)){if(i=e,!on.childNodes(i).length)return!1}else{if(null===on.parentElement(e))return!1;i=on.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(yn(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1},Z=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}},K=function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=on.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=on.textContent(e),u&&c&&(c=q(c,H(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,on.parentElement(e)):c.replace(/[\S]/g,"*")),{type:Kr.Text,textContent:c||"",rootId:i}},X=function(e,t){for(var r,n,i=t.doc,o=t.blockClass,s=t.blockSelector,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,f=t.inlineImages,d=t.recordCanvas,g=t.keepIframeSrcFn,m=t.newlyAddedElement,v=void 0!==m&&m,y=t.rootId,_=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,s),w=function(e){if(b(e,HTMLFormElement))return"form";var t=j(e.tagName);return fn.test(t)?"div":t}(e),k={},S=e.attributes.length,C=0;C<S;C++){var x=e.attributes[C];Y(w,x.name,x.value)||(k[x.name]=G(i,w,j(x.name),x.value))}if("link"===w&&a){var I=Array.from(i.styleSheets).find(function(t){return t.href===e.href}),O=null;I&&(O=T(I)),O&&(delete k.rel,delete k.href,k._cssText=O)}if("style"===w&&e.sheet){var E=T(e.sheet);E&&(e.childNodes.length>1&&(E=V(E,e)),k._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var M=e.value,R=e.checked;"radio"!==k.type&&"checkbox"!==k.type&&"submit"!==k.type&&"button"!==k.type&&M?k.value=L({element:e,type:U(e),tagName:w,value:M,maskInputOptions:u,maskInputFn:l}):R&&(k.checked=R)}if("option"===w&&(e.selected&&!u.select?k.selected=!0:delete k.selected),"dialog"===w&&e.open&&(k.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&d)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=an in i?i[an]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var A=e.toDataURL(p.type,p.quality),P=i.createElement("canvas");P.width=e.width,P.height=e.height,A!==P.toDataURL(p.type,p.quality)&&(k.rr_dataURL=A)}if("img"===w&&f){$r||($r=i.createElement("canvas"),Hr=$r.getContext("2d"));var N=e,D=N.currentSrc||N.getAttribute("src")||"<unknown-src>",F=N.crossOrigin,B=function(){N.removeEventListener("load",B);try{$r.width=N.naturalWidth,$r.height=N.naturalHeight,Hr.drawImage(N,0,0),k.rr_dataURL=$r.toDataURL(p.type,p.quality)}catch(e){if("anonymous"!==N.crossOrigin)return N.crossOrigin="anonymous",void(N.complete&&0!==N.naturalWidth?B():N.addEventListener("load",B));console.warn("Cannot inline img src="+D+"! Error: "+e)}"anonymous"===N.crossOrigin&&(F?k.crossOrigin=F:N.removeAttribute("crossorigin"))};N.complete&&0!==N.naturalWidth?B():N.addEventListener("load",B)}if("audio"===w||"video"===w){var q=k;q.rr_mediaState=e.paused?"paused":"played",q.rr_mediaCurrentTime=e.currentTime,q.rr_mediaPlaybackRate=e.playbackRate,q.rr_mediaMuted=e.muted,q.rr_mediaLoop=e.loop,q.rr_mediaVolume=e.volume}if(v||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),_){var z=e.getBoundingClientRect(),W=z.width,$=z.height;k={class:k.class,rr_width:W+"px",rr_height:$+"px"}}"iframe"!==w||g(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:Kr.Element,tagName:w,attributes:k,childNodes:[],isSVG:(n=e,Boolean("svg"===n.tagName||n.ownerSVGElement)||void 0),needBlock:_,rootId:y,isCustom:r}},Q=function(e){return null==e?"":e.toLowerCase()},ee=function(e,t){new Pn(t).stringify(e)},te=function(e,t){var r=new $o(e,t),n=new Wo(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root},re=function(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then},ne=function(e){var t=!1,r=ns[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,ss,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,ss,r+"Exit"]:[r,r+"Exit"]},ie=function(e){return{eventIndex:0,events:"document"===e.type?["Document",ss,"DocumentExit"]:"root"===e.type?["Root",ss,"RootExit"]:ne(e),iterator:0,node:e,visitorIndex:0,visitors:[]}},oe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Ls(t)},se=function(e,t){new ga(t).stringify(e)},ae=function(e,t){var r=new Iu(e,t),n=new xu(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root},ce=function(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then},ue=function(e){var t=!1,r=ju[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,qu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,qu,r+"Exit"]:[r,r+"Exit"]},le=function(e){return{eventIndex:0,events:"document"===e.type?["Document",qu,"DocumentExit"]:"root"===e.type?["Root",qu,"RootExit"]:ue(e),iterator:0,node:e,visitorIndex:0,visitors:[]}},he=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new yl(t)},pe=function(e){if(Ll[e])return Ll[e];var t=globalThis[e],r=t.prototype,n=e in Dl?Dl[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Fl?Fl[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!jl())return Ll[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Ll[e]=u:r}catch(e){return r}},fe=function(e,t,r){var n,i=e+"."+String(r);if(Ul[i])return Ul[i].call(t);var o=pe(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Ul[i]=s,s.call(t)):t[r]},de=function(e,t,r){var n=e+"."+String(r);if(Bl[n])return Bl[n].bind(t);var i=pe(e)[r];return"function"!=typeof i?t[r]:(Bl[n]=i,i.bind(t))},ge=function(){return pe("MutationObserver").constructor},me=function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}},ve=function(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}},ye=function(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}},_e=function(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=ql.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=ql.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}},be=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},we=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},ke=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:ql.parentElement(e):null},Se=function(e,t,r,n){if(!e)return!1;var i=ke(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(yn(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1},Ce=function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===dn},xe=function(e){return Boolean(e.changedTouches)},Ie=function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},Oe=function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},Ee=function(e){return!!e&&(b(e,Nl)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ql.shadowRoot(e)))},Me=function(e){var t,r=null;return"getRootNode"in e&&(null==(t=ql.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ql.host(ql.getRootNode(e))&&(r=ql.host(ql.getRootNode(e))),r},Re=function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Me(r);)r=t;return r}(e);return ql.contains(t,r)},Ae=function(e){var t=e.ownerDocument;return!!t&&(ql.contains(t,e)||Re(e))},Te=function(e){return"__ln"in e},Pe=function(e,t,r){return 0!==e.size&&Ne(e,t)},Ne=function(e,t,r){var n=ql.parentNode(t);return!!n&&e.has(n)},De=function(e,t){return 0!==e.size&&ph(e,t)},Fe=function(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(e){}return e&&e.target},Le=function(e,t){var r=new lh;gh.push(r),r.init(e);var n=new(ge())(dh(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n},je=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(nh).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=j(e),a=function(e){return function(r){var s=Fe(r);if(!Se(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=ih.Mouse;break;case"touch":a=ih.Touch;break;case"pen":a=ih.Pen}a===ih.Touch?nh[e]===nh.MouseDown?c="TouchStart":nh[e]===nh.MouseUp&&(c="TouchEnd"):ih.Pen}else xe(r)&&(a=ih.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===ih.Touch||c.startsWith("Mouse")&&a===ih.Mouse)&&(a=null)):nh[e]===nh.Click&&(a=u,u=null);var l=xe(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;dh(t)(jr({type:nh[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(nh[e]){case nh.MouseDown:case nh.MouseUp:s=s.replace("mouse","pointer");break;case nh.TouchStart:case nh.TouchEnd:return}c.push(ve(s,a,r))}),dh(function(){c.forEach(function(e){return e()})})},Ue=function(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=dh(ye(dh(function(e){var s=Fe(e);if(s&&!Se(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=_e(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return ve("scroll",a,r)},Be=function(e){return function(e,t){if(We("CSSGroupingRule")&&b(e.parentRule,CSSGroupingRule)||We("CSSMediaRule")&&b(e.parentRule,CSSMediaRule)||We("CSSSupportsRule")&&b(e.parentRule,CSSSupportsRule)||We("CSSConditionRule")&&b(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])},qe=function(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}},ze=function(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(ql.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),dh(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}},Ve=function(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Le(e,e.doc));var i,o,s,a,c,u,l=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=ye(dh(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=dh(ye(dh(function(e){var t=Fe(e),r=xe(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=$l()),c.push({x:n,y:s,id:i.getId(t),timeOffset:$l()-o}),u("undefined"!=typeof DragEvent&&b(e,DragEvent)?rh.Drag:b(e,MouseEvent)?rh.MouseMove:rh.TouchMove)}),s,{trailing:!1})),h=[ve("mousemove",l,n),ve("touchmove",l,n),ve("drag",l,n)];return dh(function(){h.forEach(function(e){return e()})})}(e),h=je(e),p=Ue(e),f=(i={win:n},o=e.viewportResizeCb,s=i.win,a=-1,c=-1,u=dh(ye(dh(function(){var e=be(),t=we();a===e&&c===t||(o({width:Number(t),height:Number(e)}),a=e,c=t)}),200)),ve("resize",u,s)),d=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=Fe(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=ql.parentElement(t)),t&&l&&!(mh.indexOf(l)<0)&&!Se(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=U(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=L({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=vh.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){vh.set(e,r);var o=n.getId(e);dh(t)(jr({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return ve(e,dh(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return Wl(e[0],e[1],{set:function(){dh(p)({target:this,isTrusted:!1})}},!1,g)}))),dh(function(){d.forEach(function(e){return e()})})}(e),g=function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=dh(function(e){return ye(dh(function(o){var s=Fe(o);if(s&&!Se(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[ve("play",a(sh.Play),s),ve("pause",a(sh.Pause),s),ve("seeked",a(sh.Seeked),s),ve("volumechange",a(sh.VolumeChange),s),ve("ratechange",a(sh.RateChange),s)];return dh(function(){c.forEach(function(e){return e()})})}(e),m=function(){},v=function(){},y=function(){},_=function(){};e.recordDOM&&(m=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:dh(function(e,t,o){var s=o[0],a=o[1],c=qe(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:dh(function(e,t,o){var s=o[0],a=qe(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:dh(function(e,t,o){var s=o[0],a=qe(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:dh(function(e,t,o){var s=o[0],a=qe(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};$e("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:($e("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),$e("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),$e("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:dh(function(e,t,o){var s=o[0],a=o[1],c=qe(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(Be(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:dh(function(e,t,o){var s=o[0],a=qe(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(Be(t),[s])}]}),e.apply(t,o)})})}),dh(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),v=ze(e,e.doc),y=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:dh(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=qe(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:h},index:Be(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:dh(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=qe(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:Be(t.parentRule)}),e.apply(t,s)})}),dh(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}(e,{win:n}),e.collectFonts&&(_=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=me(r.fonts,"add",function(e){return function(r){return setTimeout(dh(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),dh(function(){i.forEach(function(e){return e()})})}(e)));for(var w,k=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=dh(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Se(h,n,i,!0)||Se(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),ve("selectionchange",a)}(e),C=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?me(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),x=[],I=S(e.plugins);!(w=I()).done;){var O=w.value;x.push(O.observer(O.callback,n,O.options))}return dh(function(){gh.forEach(function(e){return e.reset()}),null==r||r.disconnect(),l(),h(),p(),f(),d(),g(),m(),v(),y(),_(),k(),C(),x.forEach(function(e){return e()})})},We=function(e){return void 0!==window[e]},$e=function(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)},He=function(e,t,r,n){var i=[];try{var o=me(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Se(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===k(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}},Ge=function(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=me(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Ch(l,o,this),"tagName"in this.canvas&&!Se(this.canvas,n,i,!0)){var h=Ah(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}});c.push(u)}catch(n){var l=Wl(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=S(u);!(s=l()).done;)a();return c},Ye=function(e){var t;try{if(!(t=Nh&&(window.URL||window.webkitURL).createObjectURL(Nh)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+Ph,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}},Je=function(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}},Ze=function(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,d=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,C=e.maskInputFn,x=e.maskTextFn,I=e.hooks,O=e.packFn,E=e.sampling,M=void 0===E?{}:E,R=e.dataURLOptions,A=void 0===R?{}:R,T=e.mousemoveWait,P=e.recordDOM,N=void 0===P||P,D=e.recordCanvas,F=void 0!==D&&D,L=e.recordCrossOriginIframes,j=void 0!==L&&L,U=e.allowedIframeOrigins,B=e.recordAfter,q=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,z=e.userTriggeredOnInput,V=void 0!==z&&z,W=e.collectFonts,$=void 0!==W&&W,H=e.inlineImages,G=void 0!==H&&H,Y=e.plugins,J=e.keepIframeSrcFn,Z=void 0===J?function(){return!1}:J,K=e.ignoreCSSAttributes,X=void 0===K?new Set([]):K,Q=e.errorHandler;Ql=Q,j&&U&&U.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":k(n))+".");var i=Je(n);i&&t.add(i)}return Object.freeze(t)}(U)).size&&(t=void 0);var ee=!j||window.parent===window,te=!1;if(!ee)try{window.parent.document&&(te=!1)}catch(e){te=!0}if(ee&&!r)throw new Error("emit function is required");if(!ee&&!te)return function(){};void 0!==T&&void 0===M.mousemove&&(M.mousemove=T),qh.reset();var re,ne,ie=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},oe=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===re&&(re=window),"NodeList"in re&&!re.NodeList.prototype.forEach&&(re.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in re&&!re.DOMTokenList.prototype.forEach&&(re.DOMTokenList.prototype.forEach=Array.prototype.forEach);var se=0,ae=function(e){for(var t,r=S(Y||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return O&&!te&&(e=O(e)),e};Oh=function(e,o){var s,a=e;if(a.timestamp=$l(),!(null==(s=gh[0])?void 0:s.isFrozen())||a.type===th.FullSnapshot||a.type===th.IncrementalSnapshot&&a.data.source===rh.Mutation||gh.forEach(function(e){return e.unfreeze()}),ee)null==r||r(ae(a),o);else if(te){var c={type:"rrweb",event:ae(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=S(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===th.FullSnapshot)ne=a,se=0;else if(a.type===th.IncrementalSnapshot){if(a.data.source===rh.Mutation&&a.data.isAttachIframe)return;se++;var p=i&&se>=i,f=n&&a.timestamp-ne.timestamp>n;(p||f)&&Eh(!0)}};for(var ce,ue=function(e){Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Mutation},e)})},le=function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Scroll},e)})},he=function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.CanvasMutation},e)})},pe=new Fh({mutationCb:ue,adoptedStyleSheetCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.AdoptedStyleSheet},e)})}}),fe=new _h({mirror:qh,mutationCb:ue,stylesheetManager:pe,recordCrossOriginIframes:j,wrappedEmit:Oh}),de=S(Y||[]);!(ce=de()).done;){var ge=ce.value;ge.getMirror&&ge.getMirror({nodeMirror:qh,crossOriginIframeMirror:fe.crossOriginIframeMirror,crossOriginIframeStyleMirror:fe.crossOriginIframeStyleMirror})}var me=new Lh;Mh=new Dh({recordCanvas:F,mutationCb:he,win:window,blockClass:s,blockSelector:c,mirror:qh,sampling:M.canvas,dataURLOptions:A});var ye=new bh({mutationCb:ue,scrollCb:le,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:ie,dataURLOptions:A,maskTextFn:x,maskInputFn:C,recordCanvas:F,inlineImages:G,sampling:M,slimDOMOptions:oe,iframeManager:fe,stylesheetManager:pe,canvasManager:Mh,keepIframeSrcFn:Z,processedNodeManager:me},mirror:qh});Eh=function(e){if(void 0===e&&(e=!1),N){Oh({type:th.Meta,data:{href:window.location.href,width:we(),height:be()}},e),pe.reset(),ye.init(),gh.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new sn:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,_=r.maskAllInputs,b=void 0!==_&&_,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,C=void 0!==S&&S,x=r.dataURLOptions,I=r.preserveWhiteSpace,O=r.onSerialize,E=r.onIframeLoad,M=r.iframeLoadTimeout,R=r.onStylesheetLoad,A=r.stylesheetLoadTimeout,T=r.keepIframeSrcFn;return _n(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:m,recordCanvas:y,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:E,iframeLoadTimeout:M,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:void 0===T?function(){return!1}:T,newlyAddedElement:!1})}(document,{mirror:qh,blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:ie,maskTextFn:x,maskInputFn:C,slimDOM:oe,dataURLOptions:A,recordCanvas:F,inlineImages:G,onSerialize:function(e){Ie(e,qh)&&fe.addIframe(e),Oe(e,qh)&&pe.trackLinkElement(e),Ee(e)&&ye.addShadowRoot(ql.shadowRoot(e),document)},onIframeLoad:function(e,t){fe.attachIframe(e,t),ye.observeAttachShadow(e)},onStylesheetLoad:function(e,t){pe.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!t)return console.warn("Failed to snapshot the document");Oh({type:th.FullSnapshot,data:{node:t,initialOffset:_e(window)}},e),gh.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&pe.adoptStyleSheets(document.adoptedStyleSheets,qh.getId(document))}};try{var ke=[],Se=function(e){var t;return dh(Ve)({mutationCb:ue,mousemoveCb:function(e,t){return Oh({type:th.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.MouseInteraction},e)})},scrollCb:le,viewportResizeCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.ViewportResize},e)})},inputCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Input},e)})},mediaInteractionCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.StyleDeclaration},e)})},canvasMutationCb:he,fontCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Font},e)})},selectionCb:function(e){Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Selection},e)})},customElementCb:function(e){Oh({type:th.IncrementalSnapshot,data:jr({source:rh.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:p,maskTextClass:d,maskTextSelector:m,maskInputOptions:ie,inlineStylesheet:y,sampling:M,recordDOM:N,recordCanvas:F,inlineImages:G,userTriggeredOnInput:V,collectFonts:$,doc:e,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Z,blockSelector:c,slimDOMOptions:oe,dataURLOptions:A,mirror:qh,iframeManager:fe,stylesheetManager:pe,shadowDomManager:ye,processedNodeManager:me,canvasManager:Mh,ignoreCSSAttributes:X,plugins:(null==(t=null==Y?void 0:Y.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Oh({type:th.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},I)};fe.addLoadListener(function(e){try{var t=e.contentDocument,r=Se(t);ke.push(r);var n=fe.getObserverCleanup(e);fe.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=ke.indexOf(r);-1!==e&&ke.splice(e,1),function(e){for(var t=gh.length-1;t>=0;t--)gh[t].getDoc()===e&&gh.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var Ce=function(){Eh(),ke.push(Se(document)),jh=!0};return"interactive"===document.readyState||"complete"===document.readyState?Ce():(ke.push(ve("DOMContentLoaded",function(){Oh({type:th.DomContentLoaded,data:{}}),"DOMContentLoaded"===q&&Ce()})),ke.push(ve("load",function(){Oh({type:th.Load,data:{}}),"load"===q&&Ce()},window))),function(){ke.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),me.destroy(),jh=!1,Ql=void 0}}catch(e){console.warn(e)}},Ke=function(e){if(Wh[e])return Wh[e];var t=globalThis[e],r=t.prototype,n=e in zh?zh[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Vh?Vh[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!$h())return Wh[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Wh[e]=u:r}catch(e){return r}},Xe=function(e,t,r){var n,i=e+"."+String(r);if(Hh[i])return Hh[i].call(t);var o=Ke(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Hh[i]=s,s.call(t)):t[r]},Qe=function(e,t,r){var n=e+"."+String(r);if(Gh[n])return Gh[n].bind(t);var i=Ke(e)[r];return"function"!=typeof i?t[r]:(Gh[n]=i,i.bind(t))},et=function(e,t){new up(t).stringify(e)},tt=function(e,t){var r=new wd(e,t),n=new bd(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root},rt=function(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then},nt=function(e){var t=!1,r=Pd[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Fd,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Fd,r+"Exit"]:[r,r+"Exit"]},it=function(e){return{eventIndex:0,events:"document"===e.type?["Document",Fd,"DocumentExit"]:"root"===e.type?["Root",Fd,"RootExit"]:nt(e),iterator:0,node:e,visitorIndex:0,visitors:[]}},ot=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fg(t)},st=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t},at=function(e){return"[object Object]"===Object.prototype.toString.call(e)},ct=function(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(at(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(at(e)&&Fg(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"...");return t}(t);if("bigint"===(void 0===t?"undefined":k(t)))return t.toString()+"n";if(b(t,Event)){var s={};for(var a in t){var c=t[a];Array.isArray(c)?s[a]=st(c.length?c[0]:null):s[a]=c}return s}return b(t,Node)?b(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:b(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})},ut=function(e,t,r){var n,i=r?Object.assign({},Bg,r):Bg,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=Dg.parse(n).map(function(e){return e.toString()}),s=[ct(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;b(t.reason,Error)?(r=t.reason,n=[ct("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[ct("Uncaught (in promise)",i.stringifyOptions),ct(t.reason,i.stringifyOptions)]);var o=Dg.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,p=S(i.level);!(h=p()).done;){var f=h.value;c.push(d(n,f))}return function(){c.forEach(function(e){return e()})};function d(t,r){var n=this;return t[r]?function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),!("assert"===r&&c[0]||a)){a=!0;try{var l=Dg.parse(new Error).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return ct(e,i.stringifyOptions)});++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[ct("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}},lt=function(e,t){Ug.add(e,t),jg||(jg=Vg(Ug.drain))},ht=function(e){var t,r=void 0===e?"undefined":_type_of(e);return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t},pt=function(){for(var e=0;e<this.chain.length;e++)ft(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0},ft=function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=ht(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}},dt=function(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&<(pt,t))},gt=function(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)},mt=function(e){this.def=e,this.triggered=!1},vt=function(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0},yt=function(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new vt(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&<(pt,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Wg.call(t,e)},function(e){dt.call(t,e)})}catch(e){dt.call(t,e)}},_t=function(e,t,r){var n=function(e){Im.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Im.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return xm.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}},bt=function(e,t){Tt(!0,e,t)},wt=function(e,t){Tt(!1,e,t)},kt=function(e,t){return"1"===Rt(e,t)},St=function(e,t){if(At(t))return Im.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Rt(e,t);return r&&Im.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r},Ct=function(e){return Pt(e,function(e){return this.get_config(e)})},xt=function(e){return Pt(e,function(e){return this._get_config(e)})},It=function(e){return Pt(e,function(e){return this._get_config(e)})},Ot=function(e,t){Et(t=t||{}).remove(Mt(e,t),!!t.crossSubdomainCookie,t.cookieDomain)},Et=function(e){return"localStorage"===(e=e||{}).persistenceType?xm.localStorage:xm.cookie},Mt=function(e,t){return((t=t||{}).persistencePrefix||ev)+e},Rt=function(e,t){return Et(t).get(Mt(e,t))},At=function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Mr,r=t.navigator||{},n=!1;return xm.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){xm.includes([!0,1,"1","yes"],e)&&(n=!0)}),n},Tt=function(e,t,r){xm.isString(t)&&t.length?(Et(r=r||{}).set(Mt(t,r),e?1:0,xm.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Im.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")},Pt=function(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=St(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Im.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}},Nt=function(e){for(var t={},r=Dt(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t},Dt=function(e){switch(_type_of(e.className)){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}},Ft=function(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!zt(e));return e},Lt=function(e,t,r,n,i,o){var s={$classes:Dt(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Gt(e,t,i,o)&&xm.each(Iv.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Yt(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=Ft(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s},jt=function(e,t,r,n){var i="";return Gt(e,t,r,n)&&e.childNodes&&e.childNodes.length&&xm.each(e.childNodes,function(e){Wt(e)&&e.textContent&&(i+=xm.trim(e.textContent).split(/(\s+)/).filter(Yt).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),xm.trim(i)},Ut=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(Vt(i,"a")||Vt(i,"button")||Vt(i,"input")||Vt(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t},Bt=function(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Tv.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Tv.critical("Error while checking selector: "+o,e)}}return!1},qt=function(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Tv.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Tv.critical("Error while checking selector: "+o,e)}}var s=Nt(e);for(i=0;i<Cv.length;i++)if(s[Cv[i]])return!0;return!1},zt=function(e){return e&&1===e.nodeType},Vt=function(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()},Wt=function(e){return e&&3===e.nodeType},$t=function(e,t){if(!e||Vt(e,"html")||!zt(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===bv;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===pv:t.type===fv;case"select":case"textarea":return t.type===pv;default:return t.type===fv}},Ht=function(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1},Gt=function(e,t,r,n){var i;if(!Bt(e,t,r,n))return!1;for(var o=e;o.parentNode&&!Vt(o,"body");o=o.parentNode){var s=Nt(o);for(i=0;i<xv.length;i++)if(s[xv[i]])return!1}var a=Nt(e);for(i=0;i<Sv.length;i++)if(a[Sv[i]])return!0;if(Vt(e,"input")||Vt(e,"select")||Vt(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!Ht(e)},Yt=function(e){if(null===e||xm.isUndefined(e))return!1;if("string"==typeof e){e=xm.trim(e);if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0},Jt=function(e){var t="onscrollend"in Mr,r=Mm(e),n=yv;if(!t){var i=null;r=Mm(function(){clearTimeout(i),i=setTimeout(e,100)}),n=_v}return{listener:r,eventType:n}},Zt=function(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<Rv.length;t++)if(e.hasAttribute(Rv[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Ov[r]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))},Kt=function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Ev[t])return!0;if(Zt(e))return!1;for(var r=e.parentElement,n=0;r&&n<Av;){if(Zt(r))return!1;if(r.getRootNode&&r.getRootNode()!==gm){var i=r.getRootNode();if(i.host&&Zt(i.host))return!1}r=r.parentElement,n++}return!!Mv[t]},Xt=function(e){return"composedPath"in e?e.composedPath():[]},Qt=function(e){var t=Xt(e);return t&&t.length>0?t[0]:e.target||e.srcElement},er=function(e){return e?Array.isArray(e)?e:[e]:[]},tr=function(e,t){return!!t&&!!e.closest(t)},rr=function(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Dv.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(Nv)||(!!Ht(e)||(t.input.maskAll?!tr(e,t.input.unmaskingSelector):!!tr(e,t.input.maskingSelector)||!!tr(e,Pv))))},nr=function(e,t){return!!e&&(!(!t.text._legacyClassRegex||!Jh(e,t.text._legacyClassRegex))||(t.text.maskAll?!tr(e,t.text.unmaskingSelector):!!tr(e,t.text.maskingSelector)||!!tr(e,Pv)))},ir=function(e){return Math.round(Date.now()-e.performance.now())},or=function(e){return"resource"===e.entryType},sr=function(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}},ar=function(e){return e&&"string"==typeof e&&e.length>jv?(Fv.error("Body truncated from "+e.length+" to "+jv+" characters"),e.substring(0,jv)+"... [truncated]"):e},cr=function(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())},ur=function(e,t,r){return!(!t[e]||0===t[e].length)&&Hm(r,t[e])},lr=function(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(_instanceof(e,Document))t=e.textContent;else if(_instanceof(e,FormData))t=xm.HTTPBuildQuery(e);else{if(!xm.isObject(e))return"Cannot read body of type "+(void 0===e?"undefined":_type_of(e));try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return ar(t)},hr=function(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(ar(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})},pr=function(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Lv.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Lv.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Lv,r),s=function(t){var r=t.requests.filter(function(e){return!Hm(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return Fv.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||or(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:ir(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return or(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:ir(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=sr(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,p=new Request(o,{method:i}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return cr("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return ur("request",r.recordBodyUrls,p.url)&&(f.requestBody=lr(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&cr("response",r.recordHeaders,i)&&(n[i]=o)}}}),f.responseHeaders=n,ur("response",r.recordBodyUrls,p.url)&&(f.responseBody=lr(h.response)),Uv(t,"xmlhttprequest",p.url,u,l).then(function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:ir(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody};e({requests:[n]})}else Fv.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){Fv.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=sr(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};c.headers.forEach(function(e,t){cr("request",r.recordHeaders,t)&&(p[t]=e)}),u.requestHeaders=p,ur("request",r.recordBodyUrls,c.url)&&(l=hr(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){cr("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,ur("response",r.recordBodyUrls,c.url)&&(h=hr(i).then(function(e){u.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return Uv(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:ir(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Fv.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Fv.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),c(),u()}},fr=function(){this.clicks=[]},dr=function(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]},gr=function(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null},mr=function(e){return null!=e},vr=function(e){var t;return null!==(t=null==e?void 0:e.mixpanel)&&void 0!==t?t:U_},yr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyNames,wr=Object.prototype.hasOwnProperty,kr={};!function(e,t){for(var r in t)yr(e,r,{get:t[r],enumerable:!0})}(kr,{DestinationMixpanel:function(){return B_},default:function(){return W_},destinationMixpanel:function(){return V_}});var Sr=Object.defineProperty,Cr=function(e,t){for(var r in t)Sr(e,r,{get:t[r],enumerable:!0})};Cr({},{stepId:function(){return e}});Cr({},{getDestination:function(){return t}});Cr({},{Level:function(){return Ir}});var xr,Ir=((xr=Ir||{})[xr.ERROR=0]="ERROR",xr[xr.WARN=1]="WARN",xr[xr.INFO=2]="INFO",xr[xr.DEBUG=3]="DEBUG",xr);Cr({},{getTransformer:function(){return r}});Cr({},{getSource:function(){return n}});function Or(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,i=0;i<r.length;i++){var o=r[i];if("*"===o&&s(n)){var a=r.slice(i+1).join("."),l=[],h=!0,p=!1,f=void 0;try{for(var d,g=n[Symbol.iterator]();!(h=(d=g.next()).done);h=!0){var m=Or(d.value,a,t);l.push(m)}}catch(e){p=!0,f=e}finally{try{h||null==g.return||g.return()}finally{if(p)throw f}}return l}if(void 0===(n=u(n)||s(n)?n[o]:void 0))break}return c(n)?n:t}function Er(e){return a(e)||l(e)||function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)||!c(e)||s(e)&&e.every(Er)||u(e)&&Object.values(e).every(Er)}Cr({},{getStore:function(){return i},getStoreValue:function(){return o}});var Mr,Rr,Ar=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t,r])).name="FatalError",Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}();function Tr(e,t,r){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,(s(t)?t:[t]).reduce(function(t,n){return _async_to_generator(function(){var i,o,a,u,g,m,v,y,_,b,w,k,S,C,x,I,O,E,M,R,A,T,P,N,D;return _ts_generator(this,function(F){switch(F.label){case 0:return[4,t];case 1:return(i=F.sent())?[2,i]:(o=l(n)?{key:n}:n,Object.keys(o).length?(a=o.condition,u=o.consent,g=o.fn,m=o.key,v=o.loop,y=o.map,_=o.set,b=o.validate,w=o.value,k=_object_spread_props(_object_spread({},r),{mapping:n}),(S=a)?[4,p(a,function(e){if(_instanceof(e,Ar))throw e;return k.logger.error("mapping condition failed",{event:k.event,error:e}),!1})(e,k)]:[3,3]):[2]);case 2:S=!F.sent(),F.label=3;case 3:return S?[2]:u&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(i){t[i]&&(r[i]=!0,e&&e[i]&&(n=!0))}),!!n&&r}(u,k.consent)?[2,w]:(C=c(w)?w:e,v?(x=_sliced_to_array(v,2),I=x[0],O=x[1],"this"!==I?[3,4]:(M=[e],[3,6])):[3,10]);case 4:return[4,d(e,I,k)];case 5:M=F.sent(),F.label=6;case 6:return s(E=M)?[4,Promise.all(E.map(function(e){return f(e,O,k)}))]:[3,8];case 7:return R=F.sent().filter(c),[3,9];case 8:R=void 0,F.label=9;case 9:return C=R,[3,21];case 10:return y?[4,Object.entries(y).reduce(function(t,r){var n=_sliced_to_array(r,2),i=n[0],o=n[1];return _async_to_generator(function(){var r,n;return _ts_generator(this,function(s){switch(s.label){case 0:return[4,t];case 1:return r=s.sent(),[4,d(e,o,k)];case 2:return n=s.sent(),[2,(c(n)&&(r[i]=n),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return C=F.sent(),[3,20];case 12:return _?[4,Promise.all(_.map(function(t){return Tr(e,t,k)}))]:[3,14];case 13:return A=C=F.sent(),[3,19];case 14:return m?(T=C=Or(e,m,w),[3,18]):[3,15];case 15:return(P=g)?[4,p(g,function(e){if(_instanceof(e,Ar))throw e;k.logger.error("mapping fn failed",{event:k.event,error:e})})(e,k)]:[3,17];case 16:P=C=F.sent(),F.label=17;case 17:T=P,F.label=18;case 18:A=T,F.label=19;case 19:F.label=20;case 20:F.label=21;case 21:return(N=b)?[4,p(b,function(e){if(_instanceof(e,Ar))throw e;return k.logger.error("mapping validate failed",{event:k.event,error:e}),!1})(C,k)]:[3,23];case 22:N=!F.sent(),F.label=23;case 23:return N&&(C=void 0),D=h(C),[2,c(D)?D:h(w)]}})})()},Promise.resolve(void 0))]})})()}Mr="undefined"==typeof window?{crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Rr={hostname:""},referrer:""},screen:{width:0,height:0},location:Rr,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}:window;var Pr={DEBUG:!1,LIB_VERSION:"2.80.0"},Nr="__mp_targeting",Dr="__mp_recorder",Fr="__MP_TARGETING_FILENAME__";function Lr(e,t,r){return(Lr=zr()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Br(i,r.prototype),i}).apply(null,arguments)}function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(this,arguments)}function Ur(e){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Br(e,t){return(Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qr(e){var t="function"==typeof Map?new Map:void 0;return qr=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Lr(e,arguments,Ur(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Br(n,e)},qr(e)}function zr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zr=function(){return!!e})()}var Vr,Wr,$r,Hr,Gr=Object.defineProperty,Yr=function(e,t,r){return function(e,t,r){return t in e?Gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},Jr=Object.defineProperty,Zr=function(e,t,r){return function(e,t,r){return t in e?Jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},Kr=((Wr=Kr||{})[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),Xr={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},en={},tn=function(){return!!globalThis.Zone},rn={},nn={},on={childNodes:function(e){return O("Node",e,"childNodes")},parentNode:function(e){return O("Node",e,"parentNode")},parentElement:function(e){return O("Node",e,"parentElement")},textContent:function(e){return O("Node",e,"textContent")},contains:function(e,t){return E("Node",e,"contains")(t)},getRootNode:function(e){return E("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?O("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?O("Element",e,"shadowRoot"):null},querySelector:function(e,t){return O("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return O("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return I("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}},sn=function(){function e(){Zr(this,"idNodeMap",new Map),Zr(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}(),an="__rrweb_original__",cn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,un=/^(?:[a-z+]+:)?\/\//i,ln=/^www\..*/i,hn=/^(data:)([^,]*),(.*)/i,pn=1,fn=new RegExp("[^a-z0-9-_:]"),dn=-2,gn=/^[^ \t\n\r\u000c]+/,mn=/^[, \t\n\r\u000c]+/,vn=new WeakMap;function yn(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&yn(on.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&yn(on.parentNode(e),t,r)}function _n(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,C=t.onSerialize,x=t.onIframeLoad,I=t.iframeLoadTimeout,O=void 0===I?5e3:I,E=t.onStylesheetLoad,T=t.stylesheetLoadTimeout,P=void 0===T?5e3:T,N=t.keepIframeSrcFn,D=void 0===N?function(){return!1}:N,F=t.newlyAddedElement,L=void 0!==F&&F,j=t.cssCaptured,U=void 0!==j&&j,q=t.needsMask,z=t.preserveWhiteSpace,V=void 0===z||z;q||(q=J(e,s,a,void 0===q));var $,H=function(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,_=t.cssCaptured,b=void 0!==_&&_,w=Z(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Kr.Document,childNodes:[],compatMode:e.compatMode}:{type:Kr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Kr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return X(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return K(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Kr.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Kr.Comment,textContent:on.textContent(e)||"",rootId:w};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:D,newlyAddedElement:L,cssCaptured:U});if(!H)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Kr.Comment)return!0;if(e.type===Kr.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"===B(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Q(e.attributes.name)||"icon"===Q(e.attributes.rel)||"apple-touch-icon"===Q(e.attributes.rel)||"shortcut icon"===Q(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Q(e.attributes.property).match(/^(og|twitter|fb):/)||Q(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Q(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Q(e.attributes.name)||"googlebot"===Q(e.attributes.name)||"bingbot"===Q(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Q(e.attributes.name)||"generator"===Q(e.attributes.name)||"framework"===Q(e.attributes.name)||"publisher"===Q(e.attributes.name)||"progid"===Q(e.attributes.name)||Q(e.attributes.property).match(/^article:/)||Q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Q(e.attributes.name)||"yandex-verification"===Q(e.attributes.name)||"csrf-token"===Q(e.attributes.name)||"p:domain_verify"===Q(e.attributes.name)||"verify-v1"===Q(e.attributes.name)||"verification"===Q(e.attributes.name)||"shopify-checkout-api-token"===Q(e.attributes.name)))return!0}}return!1}(H,m)||!V&&H.type===Kr.Text&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?dn:W();var G=Object.assign(H,{id:$});if(n.add(e,G),$===dn)return null;C&&C(e);var Y=!u;if(G.type===Kr.Element){Y=Y&&!G.needBlock,delete G.needBlock;var ee=on.shadowRoot(e);ee&&A(ee)&&(G.isShadowHost=!0)}if((G.type===Kr.Document||G.type===Kr.Element)&&Y){m.headWhitespace&&G.type===Kr.Element&&"head"===G.tagName&&(V=!1);var te={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:P,keepIframeSrcFn:D,cssCaptured:!1};if(G.type===Kr.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else{G.type===Kr.Element&&void 0!==G.attributes._cssText&&"string"==typeof G.attributes._cssText&&(te.cssCaptured=!0);for(var re,ne=S(Array.from(on.childNodes(e)));!(re=ne()).done;){var ie=_n(re.value,te);ie&&G.childNodes.push(ie)}}var oe=null;if(M(e)&&(oe=on.shadowRoot(e)))for(var se,ae=S(Array.from(on.childNodes(oe)));!(se=ae()).done;){var ce=_n(se.value,te);ce&&(A(oe)&&(ce.isShadow=!0),G.childNodes.push(ce))}}var ue=on.parentNode(e);return ue&&R(ue)&&A(ue)&&(G.isShadow=!0),G.type===Kr.Element&&"iframe"===G.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&x){var r=_n(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:P,keepIframeSrcFn:D});r&&x(e,r)}},O),G.type===Kr.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===B(G.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(E){var t=_n(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:P,keepIframeSrcFn:D});t&&E(e,t)}},P),G}var bn={exports:{}},wn=String,kn=function(){return{isColorSupported:!1,reset:wn,bold:wn,dim:wn,italic:wn,underline:wn,inverse:wn,hidden:wn,strikethrough:wn,black:wn,red:wn,green:wn,yellow:wn,blue:wn,magenta:wn,cyan:wn,white:wn,gray:wn,bgBlack:wn,bgRed:wn,bgGreen:wn,bgYellow:wn,bgBlue:wn,bgMagenta:wn,bgCyan:wn,bgWhite:wn}};bn.exports=kn(),bn.exports.createColors=kn;var Sn=bn.exports,Cn=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return b(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),xn=Sn,In=Cn,On=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}_(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=xn.isColorSupported),In&&e&&(r=In(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=xn.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(qr(Error)),En=On;On.default=On;var Mn={};Mn.isClean=Symbol("isClean"),Mn.my=Symbol("my");var Rn={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},An=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Rn[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Rn[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=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},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=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},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=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)},e}(),Tn=An;An.default=An;var Pn=Tn,Nn=ee;ee.default=ee;var Dn=Mn.isClean,Fn=Mn.my,Ln=En,jn=Tn,Un=Nn;function Bn(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Bn(e,r)}):("object"===o&&null!==i&&(i=Bn(i)),r[n]=i)}return r}var qn=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Dn]=!1,this[Fn]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Bn(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Ln(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Dn]){this[Dn]=!1;for(var e=this;e=e.parent;)e[Dn]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new jn).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":k(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Un),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},y(e,[{key:"proxyOf",get:function(){return this}}]),e}(),zn=qn;qn.default=qn;var Vn=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=jr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return _(t,e),y(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(zn),Wn=Vn;Vn.default=Vn;var $n=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hn=Cn.SourceMapConsumer,Gn=Cn.SourceMapGenerator,Yn=Cn.existsSync,Jn=Cn.readFileSync,Zn=Cn.dirname,Kn=Cn.join,Xn=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Zn(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Hn(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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 r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Zn(e),Yn(e))return this.mapFile=e,Jn(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(b(t,Hn))return Gn.fromSourceMap(t).toString();if(b(t,Gn))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Kn(Zn(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Qn=Xn;Xn.default=Xn;var ei=Cn.SourceMapConsumer,ti=Cn.SourceMapGenerator,ri=Cn.fileURLToPath,ni=Cn.pathToFileURL,ii=Cn.isAbsolute,oi=Cn.resolve,si=$n,ai=Cn,ci=En,ui=Qn,li=Symbol("fromOffsetCache"),hi=Boolean(ei&&ti),pi=Boolean(oi&&ii),fi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!pi||/^\w+:\/\//.test(t.from)||ii(t.from)?this.file=t.from:this.file=oi(t.from)),pi&&hi){var r=new ui(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+si(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new ci(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new ci(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ni&&(i.input.url=ni(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[li])t=this[li];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[li]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=ii(a.source)?ni(a.source):new URL(a.source,this.map.consumer().sourceRoot||ni(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!ri)throw new Error("file: protocol is not available in this PostCSS build");c.file=ri(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=jr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},y(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),di=fi;fi.default=fi,ai&&ai.registerInput&&ai.registerInput(fi);var gi=Cn.SourceMapConsumer,mi=Cn.SourceMapGenerator,vi=Cn.dirname,yi=Cn.relative,_i=Cn.resolve,bi=Cn.sep,wi=Cn.pathToFileURL,ki=di,Si=Boolean(gi&&mi),Ci=Boolean(vi&&_i&&yi&&bi),xi=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||vi(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new gi(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ci&&Si&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=mi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new mi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new mi({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?vi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=vi(_i(r,this.mapOpts.annotation)));var n=yi(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ki(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wi){var r=wi(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===bi&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ii=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return _(t,e),t}(zn),Oi=Ii;Ii.default=Ii;var Ei,Mi,Ri,Ai,Ti=Mn.isClean,Pi=Mn.my,Ni=Wn,Di=Oi;function Fi(e){return e.map(function(e){return e.nodes&&(e.nodes=Fi(e.nodes)),delete e.source,e})}function Li(e){if(e[Ti]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){Li(t.value)}}var ji=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Fi(Ei(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ni(e)]}else if(e.selector)e=[new Mi(e)];else if(e.name)e=[new Ri(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Di(e)]}return e.map(function(e){return e[Pi]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ti]&&Li(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},y(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]}}]),t}(zn);ji.registerParse=function(e){Ei=e},ji.registerRule=function(e){Mi=e},ji.registerAtRule=function(e){Ri=e},ji.registerRoot=function(e){Ai=e};var Ui=ji;ji.default=ji,ji.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Ri.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mi.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ni.prototype):"comment"===e.type?Object.setPrototypeOf(e,Di.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ai.prototype),e[Pi]=!0,e.nodes&&e.nodes.forEach(function(e){ji.rebuild(e)})};var Bi,qi,zi=function(e){function t(t){var r;return(r=e.call(this,jr({type:"document"},t))||this).nodes||(r.nodes=[]),r}return _(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Bi(new qi,this,e).stringify()},t}(Ui);zi.registerLazyResult=function(e){Bi=e},zi.registerProcessor=function(e){qi=e};var Vi=zi;zi.default=zi;var Wi={},$i=function(e){Wi[e]||(Wi[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Hi=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=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},e}(),Gi=Hi;Hi.default=Hi;var Yi=Gi,Ji=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Yi(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},y(e,[{key:"content",get:function(){return this.css}}]),e}(),Zi=Ji;Ji.default=Ji;var Ki="'".charCodeAt(0),Xi='"'.charCodeAt(0),Qi="\\".charCodeAt(0),eo="/".charCodeAt(0),to="\n".charCodeAt(0),ro=" ".charCodeAt(0),no="\f".charCodeAt(0),io="\t".charCodeAt(0),oo="\r".charCodeAt(0),so="[".charCodeAt(0),ao="]".charCodeAt(0),co="(".charCodeAt(0),uo=")".charCodeAt(0),lo="{".charCodeAt(0),ho="}".charCodeAt(0),po=";".charCodeAt(0),fo="*".charCodeAt(0),go=":".charCodeAt(0),mo="@".charCodeAt(0),vo=/[\t\n\f\r "#'()/;[\\\]{}]/g,yo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_o=/.[\r\n"'(/\\]/,bo=/[\da-f]/i,wo=Ui,ko=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}_(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(wo),So=ko;ko.default=ko,wo.registerAtRule(ko);var Co,xo,Io=Ui,Oo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}_(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Co(new xo,this,e).stringify()},t}(Io);Oo.registerLazyResult=function(e){Co=e},Oo.registerProcessor=function(e){xo=e};var Eo=Oo;Oo.default=Oo,Io.registerRoot(Oo);var Mo={comma:function(e){return Mo.split(e,[","],!0)},space:function(e){return Mo.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Ro=Mo;Mo.default=Mo;var Ao=Ui,To=Ro,Po=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return _(t,e),y(t,[{key:"selectors",get:function(){return To.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Ao),No=Po;Po.default=Po,Ao.registerRule(Po);var Do=Wn,Fo=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case to:case ro:case io:case oo:case no:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===ro||r===to||r===io||r===oo||r===no);h=["space",p.slice(g,n)],g=n-1;break;case so:case ao:case lo:case ho:case go:case po:case uo:var _=String.fromCharCode(r);h=[_,_,g];break;case co:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Ki&&l!==Xi&&l!==ro&&l!==to&&l!==io&&l!==no&&l!==oo){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Qi;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||_o.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Ki:case Xi:i=r===Ki?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Qi;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case mo:vo.lastIndex=g+1,vo.test(p),n=0===vo.lastIndex?p.length-1:vo.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Qi:for(n=g,s=!0;p.charCodeAt(n+1)===Qi;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==eo&&r!==ro&&r!==to&&r!==io&&r!==oo&&r!==no&&(n+=1,bo.test(p.charAt(n)))){for(;bo.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===ro&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===eo&&p.charCodeAt(g+1)===fo?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(yo.lastIndex=g+1,yo.test(p),n=0===yo.lastIndex?p.length-1:yo.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Lo=Oi,jo=So,Uo=Eo,Bo=No,qo={empty:!0,space:!0},zo=function(){function e(e){this.input=e,this.root=new Uo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new jo;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.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=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Lo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Fo(this.input)},t.decl=function(e,t){var r=new Do;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Bo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=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)},t.endFile=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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=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)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=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()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",qo[a]||qo[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Bo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Vo=Ui,Wo=zo,$o=di,Ho=te;te.default=te,Vo.registerParse(te);var Go=Mn.isClean,Yo=Mn.my,Jo=xi,Zo=Nn,Ko=Ui,Xo=Vi,Qo=$i,es=Zi,ts=Ho,rs=Eo,ns={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},is={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},os={Once:!0,postcssPlugin:!0,prepare:!0},ss=0;function as(e){return e[Go]=!1,e.nodes&&e.nodes.forEach(function(e){return as(e)}),e}var cs={},us=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(b(r,e)||b(r,es))i=as(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=ts;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Yo]&&Ko.rebuild(i)}else i=as(r);this.result=new es(t,i,n),this.helpers=jr({},cs,{postcss:cs,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?jr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!is[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!os[o])if("object"===k(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return v(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!re(n))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Go])return[3,14];o[Go]=!0,s=[ie(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!re(a))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return re(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Zo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Jo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(re(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var i=this.result.root;!i[Go];)i[Go]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=S(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Qo("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)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(re(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Go])return a[Go]=!0,void e.push(ie(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,l===ss)return void(r.nodes&&r.nodes.length&&(r[Go]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Go]=!0;for(var r,n=ne(e),i=S(n);!(r=i()).done;){var o=r.value;if(o===ss)e.nodes&&e.each(function(e){e[Go]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},y(e,[{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"}}]),e}();us.registerPostcss=function(e){cs=e};var ls=us;us.default=us,rs.registerLazyResult(us),Xo.registerLazyResult(us);var hs=xi,ps=Nn,fs=$i,ds=Ho,gs=Zi,ms=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=ps;this.result=new gs(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new hs(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||fs("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)},t.toString=function(){return this._css},t.warnings=function(){return[]},y(e,[{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=ds;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),vs=ms;ms.default=ms;var ys=vs,_s=ls,bs=Vi,ws=Eo,ks=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":k(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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new _s(this,e,t):new ys(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Ss=ks;ks.default=ks,ws.registerProcessor(ks),bs.registerProcessor(ks);var Cs=Wn,xs=Qn,Is=Oi,Os=So,Es=di,Ms=Eo,Rs=No;function As(e,t){if(Array.isArray(e))return e.map(function(e){return As(e)});var r=e.inputs,n=w(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=jr({},i.value,{__proto__:Es.prototype});s.map&&(s.map=jr({},s.map,{__proto__:xs.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return As(e,t)})),n.source){var a=n.source,c=a.inputId,u=w(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Ms(n);if("decl"===n.type)return new Cs(n);if("rule"===n.type)return new Rs(n);if("comment"===n.type)return new Is(n);if("atrule"===n.type)return new Os(n);throw new Error("Unknown node type: "+e.type)}var Ts=As;As.default=As;var Ps=En,Ns=Wn,Ds=ls,Fs=Ui,Ls=Ss,js=Nn,Us=Ts,Bs=Vi,qs=Gi,zs=Oi,Vs=So,Ws=Zi,$s=di,Hs=Ho,Gs=Ro,Ys=No,Js=Eo,Zs=zn;oe.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Ls).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return oe([i(r)]).process(e,t)},i},oe.stringify=js,oe.parse=Hs,oe.fromJSON=Us,oe.list=Gs,oe.comment=function(e){return new zs(e)},oe.atRule=function(e){return new Vs(e)},oe.decl=function(e){return new Ns(e)},oe.rule=function(e){return new Ys(e)},oe.root=function(e){return new Js(e)},oe.document=function(e){return new Bs(e)},oe.CssSyntaxError=Ps,oe.Declaration=Ns,oe.Container=Fs,oe.Processor=Ls,oe.Document=Bs,oe.Comment=zs,oe.Warning=qs,oe.AtRule=Vs,oe.Result=Ws,oe.Input=$s,oe.Rule=Ys,oe.Root=Js,oe.Node=Zs,Ds.registerPostcss(oe);var Ks=oe;oe.default=oe;var Xs,Qs=(Xs=Ks)&&Xs.__esModule&&Object.prototype.hasOwnProperty.call(Xs,"default")?Xs.default:Xs;Qs.stringify,Qs.fromJSON,Qs.plugin,Qs.parse,Qs.list,Qs.document,Qs.comment,Qs.atRule,Qs.rule,Qs.decl,Qs.root,Qs.CssSyntaxError,Qs.Declaration,Qs.Container,Qs.Processor,Qs.Document,Qs.Comment,Qs.Warning,Qs.AtRule,Qs.Result,Qs.Input,Qs.Rule,Qs.Root,Qs.Node;var ea=Object.defineProperty,ta=function(e,t,r){return function(e,t,r){return t in e?ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},ra={exports:{}},na=String,ia=function(){return{isColorSupported:!1,reset:na,bold:na,dim:na,italic:na,underline:na,inverse:na,hidden:na,strikethrough:na,black:na,red:na,green:na,yellow:na,blue:na,magenta:na,cyan:na,white:na,gray:na,bgBlack:na,bgRed:na,bgGreen:na,bgYellow:na,bgBlue:na,bgMagenta:na,bgCyan:na,bgWhite:na}};ra.exports=ia(),ra.exports.createColors=ia;var oa=ra.exports,sa=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return b(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),aa=oa,ca=sa,ua=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}_(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=aa.isColorSupported),ca&&e&&(r=ca(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=aa.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(qr(Error)),la=ua;ua.default=ua;var ha={};ha.isClean=Symbol("isClean"),ha.my=Symbol("my");var pa={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},fa=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return pa[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=pa[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=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},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=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},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=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)},e}(),da=fa;fa.default=fa;var ga=da,ma=se;se.default=se;var va=ha.isClean,ya=ha.my,_a=la,ba=da,wa=ma;function ka(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ka(e,r)}):("object"===o&&null!==i&&(i=ka(i)),r[n]=i)}return r}var Sa=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[va]=!1,this[ya]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ka(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new _a(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[va]){this[va]=!1;for(var e=this;e=e.parent;)e[va]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new ba).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":k(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=wa),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},y(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ca=Sa;Sa.default=Sa;var xa=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=jr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return _(t,e),y(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Ca),Ia=xa;xa.default=xa;var Oa=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Ea=sa.SourceMapConsumer,Ma=sa.SourceMapGenerator,Ra=sa.existsSync,Aa=sa.readFileSync,Ta=sa.dirname,Pa=sa.join,Na=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ta(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ea(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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 r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ta(e),Ra(e))return this.mapFile=e,Aa(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(b(t,Ea))return Ma.fromSourceMap(t).toString();if(b(t,Ma))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Pa(Ta(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Da=Na;Na.default=Na;var Fa=sa.SourceMapConsumer,La=sa.SourceMapGenerator,ja=sa.fileURLToPath,Ua=sa.pathToFileURL,Ba=sa.isAbsolute,qa=sa.resolve,za=Oa,Va=sa,Wa=la,$a=Da,Ha=Symbol("fromOffsetCache"),Ga=Boolean(Fa&&La),Ya=Boolean(qa&&Ba),Ja=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ya||/^\w+:\/\//.test(t.from)||Ba(t.from)?this.file=t.from:this.file=qa(t.from)),Ya&&Ga){var r=new $a(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+za(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Wa(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Wa(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ua&&(i.input.url=Ua(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ha])t=this[Ha];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ha]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:qa(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ba(a.source)?Ua(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ua(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!ja)throw new Error("file: protocol is not available in this PostCSS build");c.file=ja(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=jr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},y(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Za=Ja;Ja.default=Ja,Va&&Va.registerInput&&Va.registerInput(Ja);var Ka=sa.SourceMapConsumer,Xa=sa.SourceMapGenerator,Qa=sa.dirname,ec=sa.relative,tc=sa.resolve,rc=sa.sep,nc=sa.pathToFileURL,ic=Za,oc=Boolean(Ka&&Xa),sc=Boolean(Qa&&tc&&ec&&rc),ac=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Qa(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ka(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),sc&&oc&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Xa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Xa({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Xa({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Qa(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Qa(tc(r,this.mapOpts.annotation)));var n=ec(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ic(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(nc){var r=nc(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rc&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),cc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return _(t,e),t}(Ca),uc=cc;cc.default=cc;var lc,hc,pc,fc,dc=ha.isClean,gc=ha.my,mc=Ia,vc=uc;function yc(e){return e.map(function(e){return e.nodes&&(e.nodes=yc(e.nodes)),delete e.source,e})}function _c(e){if(e[dc]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){_c(t.value)}}var bc=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=yc(lc(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new mc(e)]}else if(e.selector)e=[new hc(e)];else if(e.name)e=[new pc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new vc(e)]}return e.map(function(e){return e[gc]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[dc]&&_c(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},y(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]}}]),t}(Ca);bc.registerParse=function(e){lc=e},bc.registerRule=function(e){hc=e},bc.registerAtRule=function(e){pc=e},bc.registerRoot=function(e){fc=e};var wc=bc;bc.default=bc,bc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,pc.prototype):"rule"===e.type?Object.setPrototypeOf(e,hc.prototype):"decl"===e.type?Object.setPrototypeOf(e,mc.prototype):"comment"===e.type?Object.setPrototypeOf(e,vc.prototype):"root"===e.type&&Object.setPrototypeOf(e,fc.prototype),e[gc]=!0,e.nodes&&e.nodes.forEach(function(e){bc.rebuild(e)})};var kc,Sc,Cc=function(e){function t(t){var r;return(r=e.call(this,jr({type:"document"},t))||this).nodes||(r.nodes=[]),r}return _(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new kc(new Sc,this,e).stringify()},t}(wc);Cc.registerLazyResult=function(e){kc=e},Cc.registerProcessor=function(e){Sc=e};var xc=Cc;Cc.default=Cc;var Ic={},Oc=function(e){Ic[e]||(Ic[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Ec=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=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},e}(),Mc=Ec;Ec.default=Ec;var Rc=Mc,Ac=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Rc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},y(e,[{key:"content",get:function(){return this.css}}]),e}(),Tc=Ac;Ac.default=Ac;var Pc="'".charCodeAt(0),Nc='"'.charCodeAt(0),Dc="\\".charCodeAt(0),Fc="/".charCodeAt(0),Lc="\n".charCodeAt(0),jc=" ".charCodeAt(0),Uc="\f".charCodeAt(0),Bc="\t".charCodeAt(0),qc="\r".charCodeAt(0),zc="[".charCodeAt(0),Vc="]".charCodeAt(0),Wc="(".charCodeAt(0),$c=")".charCodeAt(0),Hc="{".charCodeAt(0),Gc="}".charCodeAt(0),Yc=";".charCodeAt(0),Jc="*".charCodeAt(0),Zc=":".charCodeAt(0),Kc="@".charCodeAt(0),Xc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,eu=/.[\r\n"'(/\\]/,tu=/[\da-f]/i,ru=wc,nu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}_(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(ru),iu=nu;nu.default=nu,ru.registerAtRule(nu);var ou,su,au=wc,cu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}_(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ou(new su,this,e).stringify()},t}(au);cu.registerLazyResult=function(e){ou=e},cu.registerProcessor=function(e){su=e};var uu=cu;cu.default=cu,au.registerRoot(cu);var lu={comma:function(e){return lu.split(e,[","],!0)},space:function(e){return lu.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},hu=lu;lu.default=lu;var pu=wc,fu=hu,du=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return _(t,e),y(t,[{key:"selectors",get:function(){return fu.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(pu),gu=du;du.default=du,pu.registerRule(du);var mu=Ia,vu=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Lc:case jc:case Bc:case qc:case Uc:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===jc||r===Lc||r===Bc||r===qc||r===Uc);h=["space",p.slice(g,n)],g=n-1;break;case zc:case Vc:case Hc:case Gc:case Zc:case Yc:case $c:var _=String.fromCharCode(r);h=[_,_,g];break;case Wc:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Pc&&l!==Nc&&l!==jc&&l!==Lc&&l!==Bc&&l!==Uc&&l!==qc){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Dc;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||eu.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Pc:case Nc:i=r===Pc?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Dc;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Kc:Xc.lastIndex=g+1,Xc.test(p),n=0===Xc.lastIndex?p.length-1:Xc.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Dc:for(n=g,s=!0;p.charCodeAt(n+1)===Dc;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Fc&&r!==jc&&r!==Lc&&r!==Bc&&r!==qc&&r!==Uc&&(n+=1,tu.test(p.charAt(n)))){for(;tu.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===jc&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Fc&&p.charCodeAt(g+1)===Jc?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Qc.lastIndex=g+1,Qc.test(p),n=0===Qc.lastIndex?p.length-1:Qc.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},yu=uc,_u=iu,bu=uu,wu=gu,ku={empty:!0,space:!0},Su=function(){function e(e){this.input=e,this.root=new bu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new _u;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.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=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new yu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=vu(this.input)},t.decl=function(e,t){var r=new mu;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new wu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=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)},t.endFile=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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=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)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=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()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",ku[a]||ku[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new wu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Cu=wc,xu=Su,Iu=Za,Ou=ae;ae.default=ae,Cu.registerParse(ae);var Eu=ha.isClean,Mu=ha.my,Ru=ac,Au=ma,Tu=wc,Pu=xc,Nu=Oc,Du=Tc,Fu=Ou,Lu=uu,ju={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uu={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},Bu={Once:!0,postcssPlugin:!0,prepare:!0},qu=0;function zu(e){return e[Eu]=!1,e.nodes&&e.nodes.forEach(function(e){return zu(e)}),e}var Vu={},Wu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(b(r,e)||b(r,Du))i=zu(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Fu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Mu]&&Tu.rebuild(i)}else i=zu(r);this.result=new Du(t,i,n),this.helpers=jr({},Vu,{postcss:Vu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?jr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!Uu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Bu[o])if("object"===k(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return v(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!ce(n))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Eu])return[3,14];o[Eu]=!0,s=[le(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!ce(a))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return ce(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Au;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ru(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(ce(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var i=this.result.root;!i[Eu];)i[Eu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=S(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Nu("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)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ce(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Eu])return a[Eu]=!0,void e.push(le(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,l===qu)return void(r.nodes&&r.nodes.length&&(r[Eu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Eu]=!0;for(var r,n=ue(e),i=S(n);!(r=i()).done;){var o=r.value;if(o===qu)e.nodes&&e.each(function(e){e[Eu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},y(e,[{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"}}]),e}();Wu.registerPostcss=function(e){Vu=e};var $u=Wu;Wu.default=Wu,Lu.registerLazyResult(Wu),Pu.registerLazyResult(Wu);var Hu=ac,Gu=ma,Yu=Oc,Ju=Ou,Zu=Tc,Ku=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Gu;this.result=new Zu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Hu(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Yu("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)},t.toString=function(){return this._css},t.warnings=function(){return[]},y(e,[{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=Ju;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Xu=Ku;Ku.default=Ku;var Qu=Xu,el=$u,tl=xc,rl=uu,nl=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":k(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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new el(this,e,t):new Qu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),il=nl;nl.default=nl,rl.registerProcessor(nl),tl.registerProcessor(nl);var ol=Ia,sl=Da,al=uc,cl=iu,ul=Za,ll=uu,hl=gu;function pl(e,t){if(Array.isArray(e))return e.map(function(e){return pl(e)});var r=e.inputs,n=w(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=jr({},i.value,{__proto__:ul.prototype});s.map&&(s.map=jr({},s.map,{__proto__:sl.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return pl(e,t)})),n.source){var a=n.source,c=a.inputId,u=w(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new ll(n);if("decl"===n.type)return new ol(n);if("rule"===n.type)return new hl(n);if("comment"===n.type)return new al(n);if("atrule"===n.type)return new cl(n);throw new Error("Unknown node type: "+e.type)}var fl=pl;pl.default=pl;var dl=la,gl=Ia,ml=$u,vl=wc,yl=il,_l=ma,bl=fl,wl=xc,kl=Mc,Sl=uc,Cl=iu,xl=Tc,Il=Za,Ol=Ou,El=hu,Ml=gu,Rl=uu,Al=Ca;he.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new yl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return he([i(r)]).process(e,t)},i},he.stringify=_l,he.parse=Ol,he.fromJSON=bl,he.list=El,he.comment=function(e){return new Sl(e)},he.atRule=function(e){return new Cl(e)},he.decl=function(e){return new gl(e)},he.rule=function(e){return new Ml(e)},he.root=function(e){return new Rl(e)},he.document=function(e){return new wl(e)},he.CssSyntaxError=dl,he.Declaration=gl,he.Container=vl,he.Processor=yl,he.Document=wl,he.Comment=Sl,he.Warning=kl,he.AtRule=Cl,he.Result=xl,he.Input=Il,he.Rule=Ml,he.Root=Rl,he.Node=Al,ml.registerPostcss(he);var Tl=he;he.default=he;var Pl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Tl);Pl.stringify,Pl.fromJSON,Pl.plugin,Pl.parse,Pl.list,Pl.document,Pl.comment,Pl.atRule,Pl.rule,Pl.decl,Pl.root,Pl.CssSyntaxError,Pl.Declaration,Pl.Container,Pl.Processor,Pl.Document,Pl.Comment,Pl.Warning,Pl.AtRule,Pl.Result,Pl.Input,Pl.Rule,Pl.Root,Pl.Node;var Nl=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ta(this,"parentElement",null),ta(this,"parentNode",null),ta(this,"ownerDocument"),ta(this,"firstChild",null),ta(this,"lastChild",null),ta(this,"previousSibling",null),ta(this,"nextSibling",null),ta(this,"ELEMENT_NODE",1),ta(this,"TEXT_NODE",3),ta(this,"nodeType"),ta(this,"nodeName"),ta(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!b(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},y(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Dl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ll={},jl=function(){return!!globalThis.Zone},Ul={},Bl={},ql={childNodes:function(e){return fe("Node",e,"childNodes")},parentNode:function(e){return fe("Node",e,"parentNode")},parentElement:function(e){return fe("Node",e,"parentElement")},textContent:function(e){return fe("Node",e,"textContent")},contains:function(e,t){return de("Node",e,"contains")(t)},getRootNode:function(e){return de("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?fe("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?fe("Element",e,"shadowRoot"):null},querySelector:function(e,t){return fe("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return fe("Element",e,"querySelectorAll")(t)},mutationObserver:ge,patch:me},zl="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.",Vl={map:{},getId:function(){return console.error(zl),-1},getNode:function(){return console.error(zl),null},removeNodeFromMap:function(){console.error(zl)},has:function(){return console.error(zl),!1},reset:function(){console.error(zl)}};function Wl(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return Wl(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Vl=new Proxy(Vl,{get:function(e,t,r){return"map"===t&&console.error(zl),Reflect.get(e,t,r)}}));var $l=Date.now;function Hl(e,t){if(R(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=ql.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Hl(n,t))}/[1-9][0-9]{12}/.test(Date.now().toString())||($l=function(){return(new Date).getTime()});var Gl,Yl,Jl,Zl,Kl,Xl,Ql,eh=function(){function e(){Yr(this,"id",1),Yr(this,"styleIDMap",new WeakMap),Yr(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}(),th=((Gl=th||{})[Gl.DomContentLoaded=0]="DomContentLoaded",Gl[Gl.Load=1]="Load",Gl[Gl.FullSnapshot=2]="FullSnapshot",Gl[Gl.IncrementalSnapshot=3]="IncrementalSnapshot",Gl[Gl.Meta=4]="Meta",Gl[Gl.Custom=5]="Custom",Gl[Gl.Plugin=6]="Plugin",Gl),rh=((Yl=rh||{})[Yl.Mutation=0]="Mutation",Yl[Yl.MouseMove=1]="MouseMove",Yl[Yl.MouseInteraction=2]="MouseInteraction",Yl[Yl.Scroll=3]="Scroll",Yl[Yl.ViewportResize=4]="ViewportResize",Yl[Yl.Input=5]="Input",Yl[Yl.TouchMove=6]="TouchMove",Yl[Yl.MediaInteraction=7]="MediaInteraction",Yl[Yl.StyleSheetRule=8]="StyleSheetRule",Yl[Yl.CanvasMutation=9]="CanvasMutation",Yl[Yl.Font=10]="Font",Yl[Yl.Log=11]="Log",Yl[Yl.Drag=12]="Drag",Yl[Yl.StyleDeclaration=13]="StyleDeclaration",Yl[Yl.Selection=14]="Selection",Yl[Yl.AdoptedStyleSheet=15]="AdoptedStyleSheet",Yl[Yl.CustomElement=16]="CustomElement",Yl),nh=((Jl=nh||{})[Jl.MouseUp=0]="MouseUp",Jl[Jl.MouseDown=1]="MouseDown",Jl[Jl.Click=2]="Click",Jl[Jl.ContextMenu=3]="ContextMenu",Jl[Jl.DblClick=4]="DblClick",Jl[Jl.Focus=5]="Focus",Jl[Jl.Blur=6]="Blur",Jl[Jl.TouchStart=7]="TouchStart",Jl[Jl.TouchMove_Departed=8]="TouchMove_Departed",Jl[Jl.TouchEnd=9]="TouchEnd",Jl[Jl.TouchCancel=10]="TouchCancel",Jl),ih=((Zl=ih||{})[Zl.Mouse=0]="Mouse",Zl[Zl.Pen=1]="Pen",Zl[Zl.Touch=2]="Touch",Zl),oh=((Kl=oh||{})[Kl["2D"]=0]="2D",Kl[Kl.WebGL=1]="WebGL",Kl[Kl.WebGL2=2]="WebGL2",Kl),sh=((Xl=sh||{})[Xl.Play=0]="Play",Xl[Xl.Pause=1]="Pause",Xl[Xl.Seeked=2]="Seeked",Xl[Xl.VolumeChange=3]="VolumeChange",Xl[Xl.RateChange=4]="RateChange",Xl),ah=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(ah||{}),ch=function(){function e(){Yr(this,"length",0),Yr(this,"head",null),Yr(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Te(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Te(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=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--)},e}(),uh=function(e,t){return e+"@"+t},lh=function(){function e(){var e=this;Yr(this,"frozen",!1),Yr(this,"locked",!1),Yr(this,"texts",[]),Yr(this,"attributes",[]),Yr(this,"attributeMap",new WeakMap),Yr(this,"removes",[]),Yr(this,"mapRemoves",[]),Yr(this,"movedMap",{}),Yr(this,"addedSet",new Set),Yr(this,"movedSet",new Set),Yr(this,"droppedSet",new Set),Yr(this,"removesSubTreeCache",new Set),Yr(this,"mutationCb"),Yr(this,"blockClass"),Yr(this,"blockSelector"),Yr(this,"maskTextClass"),Yr(this,"maskTextSelector"),Yr(this,"inlineStylesheet"),Yr(this,"maskInputOptions"),Yr(this,"maskTextFn"),Yr(this,"maskInputFn"),Yr(this,"keepIframeSrcFn"),Yr(this,"recordCanvas"),Yr(this,"inlineImages"),Yr(this,"slimDOMOptions"),Yr(this,"dataURLOptions"),Yr(this,"doc"),Yr(this,"mirror"),Yr(this,"iframeManager"),Yr(this,"stylesheetManager"),Yr(this,"shadowDomManager"),Yr(this,"canvasManager"),Yr(this,"processedNodeManager"),Yr(this,"unattachedDoc"),Yr(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Yr(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new ch,i=function(t){for(var r=t,n=dn;n===dn;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=ql.parentNode(o);if(s&&Ae(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=R(s)?e.mirror.getId(Me(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=_n(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){Ie(t,e.mirror)&&e.iframeManager.addIframe(t),Oe(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Ee(o)&&e.shadowDomManager.addShadowRoot(ql.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=S(e.movedSet);!(a=c()).done;){var u=a.value;Pe(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(ql.parentNode(u))||o(u)}for(var l,h=S(e.addedSet);!(l=h()).done;){var p=l.value;De(e.droppedSet,p)||Pe(e.removesSubTreeCache,p,e.mirror)?De(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(ql.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(ql.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=y.value,w=ql.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=ql.host(w);if(-1!==e.mirror.getId(k)){d=y;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=ql.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),Yr(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(ql.childNodes(t),function(e){return ql.textContent(e)||""}).join("");r.attributes.value=L({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:U(t),value:n,maskInputFn:e.maskInputFn})}),Yr(this,"processMutation",function(t){if(!Ce(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=ql.textContent(t.target);Se(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:J(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,ke(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=U(n);o=L({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Se(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Y(n.tagName,i))if(a.attributes[i]=G(e.doc,j(n.tagName),j(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=S(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=S(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Se(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=R(t.target)?e.mirror.getId(ql.host(t.target)):e.mirror.getId(t.target);Se(t.target,e.blockClass,e.blockSelector,!1)||Ce(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(hh(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Hl(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[uh(n,i)]?hh(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!R(t.target)||!A(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),ql.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Yr(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(Ce(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[uh(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Se(t,e.blockClass,e.blockSelector,!1)||(ql.childNodes(t).forEach(function(t){return e.genAdds(t)}),Ee(t)&&ql.childNodes(ql.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),Yr(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function hh(e,t){e.delete(t),ql.childNodes(t).forEach(function(t){return hh(e,t)})}function ph(e,t){var r=ql.parentNode(t);return!!r&&(!!e.has(r)||ph(e,r))}var fh,dh=function(e){if(!Ql)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(Ql&&!0===Ql(e))return;throw e}}},gh=[],mh=["INPUT","TEXTAREA","SELECT"],vh=new WeakMap,yh=function(){function e(e){Yr(this,"iframeIdToRemoteIdMap",new WeakMap),Yr(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),_h=function(){function e(e){Yr(this,"iframes",new WeakMap),Yr(this,"crossOriginIframeMap",new WeakMap),Yr(this,"crossOriginIframeMirror",new yh(W)),Yr(this,"crossOriginIframeStyleMirror"),Yr(this,"crossOriginIframeRootIdMap",new WeakMap),Yr(this,"iframeContentDocumentMap",new WeakMap),Yr(this,"iframeObserverCleanupMap",new WeakMap),Yr(this,"mirror"),Yr(this,"mutationCb"),Yr(this,"wrappedEmit"),Yr(this,"loadListener"),Yr(this,"stylesheetManager"),Yr(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yh(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case th.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:th.IncrementalSnapshot,data:{source:rh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case th.Meta:case th.Load:case th.DomContentLoaded:return!1;case th.Plugin:return t;case th.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case th.IncrementalSnapshot:switch(t.data.source){case rh.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case rh.Drag:case rh.TouchMove:case rh.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case rh.ViewportResize:return!1;case rh.MediaInteraction:case rh.MouseInteraction:case rh.Scroll:case rh.CanvasMutation:case rh.Input:return this.replaceIds(t.data,e,["id"]),t;case rh.StyleSheetRule:case rh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rh.Font:return t;case rh.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case rh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=S(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===ah.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),bh=function(){function e(e){Yr(this,"shadowDoms",new WeakSet),Yr(this,"mutationCb"),Yr(this,"scrollCb"),Yr(this,"bypassOptions"),Yr(this,"mirror"),Yr(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(A(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Le(jr({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Ue(jr({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(ql.host(e))),r.restoreHandlers.push(ze({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(me(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=ql.shadowRoot(this);return o&&Ae(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kh="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(fh=0;fh<64;fh++)kh[wh.charCodeAt(fh)]=fh;var Sh=new Map,Ch=function(e,t,r){if(e&&(Th(e,t)||"object"===(void 0===e?"undefined":k(e)))){var n=function(e,t){var r=Sh.get(e);return r||(r=new Map,Sh.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function xh(e,t,r){if(b(e,Array))return e.map(function(e){return xh(e,t,r)});if(null===e)return e;if(b(e,Float32Array)||b(e,Float64Array)||b(e,Int32Array)||b(e,Uint32Array)||b(e,Uint8Array)||b(e,Uint16Array)||b(e,Int16Array)||b(e,Int8Array)||b(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(b(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=wh[r[t]>>2],i+=wh[(3&r[t])<<4|r[t+1]>>4],i+=wh[(15&r[t+1])<<2|r[t+2]>>6],i+=wh[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)};if(b(e,DataView))return{rr_type:e.constructor.name,args:[xh(e.buffer,t,r),e.byteOffset,e.byteLength]};if(b(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(b(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return b(e,ImageData)?{rr_type:e.constructor.name,args:[xh(e.data,t,r),e.width,e.height]}:Th(e,t)||"object"===(void 0===e?"undefined":k(e))?{rr_type:e.constructor.name,index:Ch(e,t,r)}:e}var Ih,Oh,Eh,Mh,Rh,Ah=function(e,t,r){return e.map(function(e){return xh(e,t,r)})},Th=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return b(e,t[r])}))},Ph="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Nh="undefined"!=typeof window&&window.Blob&&new Blob([(Ih=Ph,Uint8Array.from(atob(Ih),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"}),Dh=function(){function e(e){var t=this;Yr(this,"pendingCanvasMutations",new Map),Yr(this,"rafStamps",{latestId:0,invokeId:null}),Yr(this,"mirror"),Yr(this,"mutationCb"),Yr(this,"resetObservers"),Yr(this,"frozen",!1),Yr(this,"locked",!1),Yr(this,"processMutation",function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=He(t,r,n,!0),a=new Map,c=new Ye;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:oh["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){Se(e,r,n,!0)||s.push(e)}),s).forEach(v(function(e){var t,r,n,o;return C(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=He(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=me(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return Se(this.canvas,r,n,!0)||setTimeout(function(){var r=Ah(c,t,s);e(s.canvas,{type:oh["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(r){var c=Wl(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:oh["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=S(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(Ge(t.WebGLRenderingContext.prototype,oh.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(Ge(t.WebGL2RenderingContext.prototype,oh.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,w(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Fh=function(){function e(e){Yr(this,"trackedLinkElements",new WeakSet),Yr(this,"mutationCb"),Yr(this,"adoptedStyleSheetCb"),Yr(this,"styleMirror",new eh),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:P(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=S(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=S(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Lh=function(){function e(){Yr(this,"nodeMap",new WeakMap),Yr(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),jh=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(Rh=document.createElement("iframe"),document.body.appendChild(Rh),Array.from=(null==(Vr=Rh.contentWindow)?void 0:Vr.Array.from)||Array.from,document.body.removeChild(Rh))}catch(e){console.debug("Unable to override Array.from",e)}var Uh,Bh,qh=new sn;Ze.addCustomEvent=function(e,t){if(!jh)throw new Error("please add custom event after start recording");Oh({type:th.Custom,data:{tag:e,payload:t}})},Ze.freezePage=function(){gh.forEach(function(e){return e.freeze()})},Ze.takeFullSnapshot=function(e){if(!jh)throw new Error("please take full snapshot after start recording");Eh(e)},Ze.mirror=qh,(Bh=Uh||(Uh={}))[Bh.NotStarted=0]="NotStarted",Bh[Bh.Running=1]="Running",Bh[Bh.Stopped=2]="Stopped";var zh={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Vh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Wh={},$h=function(){return!!globalThis.Zone},Hh={},Gh={},Yh={childNodes:function(e){return Xe("Node",e,"childNodes")},parentNode:function(e){return Xe("Node",e,"parentNode")},parentElement:function(e){return Xe("Node",e,"parentElement")},textContent:function(e){return Xe("Node",e,"textContent")},contains:function(e,t){return Qe("Node",e,"contains")(t)},getRootNode:function(e){return Qe("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Xe("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Xe("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Xe("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Xe("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Ke("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}};function Jh(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Jh(Yh.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return Jh(Yh.parentNode(e),t)}var Zh={exports:{}},Kh=String,Xh=function(){return{isColorSupported:!1,reset:Kh,bold:Kh,dim:Kh,italic:Kh,underline:Kh,inverse:Kh,hidden:Kh,strikethrough:Kh,black:Kh,red:Kh,green:Kh,yellow:Kh,blue:Kh,magenta:Kh,cyan:Kh,white:Kh,gray:Kh,bgBlack:Kh,bgRed:Kh,bgGreen:Kh,bgYellow:Kh,bgBlue:Kh,bgMagenta:Kh,bgCyan:Kh,bgWhite:Kh}};Zh.exports=Xh(),Zh.exports.createColors=Xh;var Qh=Zh.exports,ep=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return b(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tp=Qh,rp=ep,np=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}_(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=tp.isColorSupported),rp&&e&&(r=rp(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=tp.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(qr(Error)),ip=np;np.default=np;var op={};op.isClean=Symbol("isClean"),op.my=Symbol("my");var sp={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},ap=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return sp[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=sp[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=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},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=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},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=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)},e}(),cp=ap;ap.default=ap;var up=cp,lp=et;et.default=et;var hp=op.isClean,pp=op.my,fp=ip,dp=cp,gp=lp;function mp(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return mp(e,r)}):("object"===o&&null!==i&&(i=mp(i)),r[n]=i)}return r}var vp=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[hp]=!1,this[pp]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=mp(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new fp(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[hp]){this[hp]=!1;for(var e=this;e=e.parent;)e[hp]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new dp).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":k(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=gp),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},y(e,[{key:"proxyOf",get:function(){return this}}]),e}(),yp=vp;vp.default=vp;var _p=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=jr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return _(t,e),y(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(yp),bp=_p;_p.default=_p;var wp=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},kp=ep.SourceMapConsumer,Sp=ep.SourceMapGenerator,Cp=ep.existsSync,xp=ep.readFileSync,Ip=ep.dirname,Op=ep.join,Ep=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ip(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new kp(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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 r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ip(e),Cp(e))return this.mapFile=e,xp(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(b(t,kp))return Sp.fromSourceMap(t).toString();if(b(t,Sp))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Op(Ip(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Mp=Ep;Ep.default=Ep;var Rp=ep.SourceMapConsumer,Ap=ep.SourceMapGenerator,Tp=ep.fileURLToPath,Pp=ep.pathToFileURL,Np=ep.isAbsolute,Dp=ep.resolve,Fp=wp,Lp=ep,jp=ip,Up=Mp,Bp=Symbol("fromOffsetCache"),qp=Boolean(Rp&&Ap),zp=Boolean(Dp&&Np),Vp=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!zp||/^\w+:\/\//.test(t.from)||Np(t.from)?this.file=t.from:this.file=Dp(t.from)),zp&&qp){var r=new Up(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Fp(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new jp(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new jp(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Pp&&(i.input.url=Pp(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Bp])t=this[Bp];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Bp]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Dp(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Np(a.source)?Pp(a.source):new URL(a.source,this.map.consumer().sourceRoot||Pp(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Tp)throw new Error("file: protocol is not available in this PostCSS build");c.file=Tp(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=jr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},y(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Wp=Vp;Vp.default=Vp,Lp&&Lp.registerInput&&Lp.registerInput(Vp);var $p=ep.SourceMapConsumer,Hp=ep.SourceMapGenerator,Gp=ep.dirname,Yp=ep.relative,Jp=ep.resolve,Zp=ep.sep,Kp=ep.pathToFileURL,Xp=Wp,Qp=Boolean($p&&Hp),ef=Boolean(Gp&&Jp&&Yp&&Zp),tf=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Gp(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new $p(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),ef&&Qp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hp.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hp({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Hp({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Gp(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Gp(Jp(r,this.mapOpts.annotation)));var n=Yp(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Xp(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Kp){var r=Kp(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Zp&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rf=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return _(t,e),t}(yp),nf=rf;rf.default=rf;var of,sf,af,cf,uf=op.isClean,lf=op.my,hf=bp,pf=nf;function ff(e){return e.map(function(e){return e.nodes&&(e.nodes=ff(e.nodes)),delete e.source,e})}function df(e){if(e[uf]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){df(t.value)}}var gf=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=ff(of(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hf(e)]}else if(e.selector)e=[new sf(e)];else if(e.name)e=[new af(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new pf(e)]}return e.map(function(e){return e[lf]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[uf]&&df(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},y(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]}}]),t}(yp);gf.registerParse=function(e){of=e},gf.registerRule=function(e){sf=e},gf.registerAtRule=function(e){af=e},gf.registerRoot=function(e){cf=e};var mf=gf;gf.default=gf,gf.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,af.prototype):"rule"===e.type?Object.setPrototypeOf(e,sf.prototype):"decl"===e.type?Object.setPrototypeOf(e,hf.prototype):"comment"===e.type?Object.setPrototypeOf(e,pf.prototype):"root"===e.type&&Object.setPrototypeOf(e,cf.prototype),e[lf]=!0,e.nodes&&e.nodes.forEach(function(e){gf.rebuild(e)})};var vf,yf,_f=function(e){function t(t){var r;return(r=e.call(this,jr({type:"document"},t))||this).nodes||(r.nodes=[]),r}return _(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new vf(new yf,this,e).stringify()},t}(mf);_f.registerLazyResult=function(e){vf=e},_f.registerProcessor=function(e){yf=e};var bf=_f;_f.default=_f;var wf={},kf=function(e){wf[e]||(wf[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Sf=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=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},e}(),Cf=Sf;Sf.default=Sf;var xf=Cf,If=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new xf(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},y(e,[{key:"content",get:function(){return this.css}}]),e}(),Of=If;If.default=If;var Ef="'".charCodeAt(0),Mf='"'.charCodeAt(0),Rf="\\".charCodeAt(0),Af="/".charCodeAt(0),Tf="\n".charCodeAt(0),Pf=" ".charCodeAt(0),Nf="\f".charCodeAt(0),Df="\t".charCodeAt(0),Ff="\r".charCodeAt(0),Lf="[".charCodeAt(0),jf="]".charCodeAt(0),Uf="(".charCodeAt(0),Bf=")".charCodeAt(0),qf="{".charCodeAt(0),zf="}".charCodeAt(0),Vf=";".charCodeAt(0),Wf="*".charCodeAt(0),$f=":".charCodeAt(0),Hf="@".charCodeAt(0),Gf=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jf=/.[\r\n"'(/\\]/,Zf=/[\da-f]/i,Kf=mf,Xf=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}_(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Kf),Qf=Xf;Xf.default=Xf,Kf.registerAtRule(Xf);var ed,td,rd=mf,nd=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}_(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ed(new td,this,e).stringify()},t}(rd);nd.registerLazyResult=function(e){ed=e},nd.registerProcessor=function(e){td=e};var id=nd;nd.default=nd,rd.registerRoot(nd);var od={comma:function(e){return od.split(e,[","],!0)},space:function(e){return od.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},sd=od;od.default=od;var ad=mf,cd=sd,ud=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return _(t,e),y(t,[{key:"selectors",get:function(){return cd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(ad),ld=ud;ud.default=ud,ad.registerRule(ud);var hd=bp,pd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Tf:case Pf:case Df:case Ff:case Nf:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Pf||r===Tf||r===Df||r===Ff||r===Nf);h=["space",p.slice(g,n)],g=n-1;break;case Lf:case jf:case qf:case zf:case $f:case Vf:case Bf:var _=String.fromCharCode(r);h=[_,_,g];break;case Uf:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Ef&&l!==Mf&&l!==Pf&&l!==Tf&&l!==Df&&l!==Nf&&l!==Ff){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Rf;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Jf.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Ef:case Mf:i=r===Ef?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Rf;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Hf:Gf.lastIndex=g+1,Gf.test(p),n=0===Gf.lastIndex?p.length-1:Gf.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Rf:for(n=g,s=!0;p.charCodeAt(n+1)===Rf;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Af&&r!==Pf&&r!==Tf&&r!==Df&&r!==Ff&&r!==Nf&&(n+=1,Zf.test(p.charAt(n)))){for(;Zf.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Pf&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Af&&p.charCodeAt(g+1)===Wf?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Yf.lastIndex=g+1,Yf.test(p),n=0===Yf.lastIndex?p.length-1:Yf.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},fd=nf,dd=Qf,gd=id,md=ld,vd={empty:!0,space:!0},yd=function(){function e(e){this.input=e,this.root=new gd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new dd;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.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=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new fd;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=pd(this.input)},t.decl=function(e,t){var r=new hd;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new md;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=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)},t.endFile=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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=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)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=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()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",vd[a]||vd[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new md;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),_d=mf,bd=yd,wd=Wp,kd=tt;tt.default=tt,_d.registerParse(tt);var Sd=op.isClean,Cd=op.my,xd=tf,Id=lp,Od=mf,Ed=bf,Md=kf,Rd=Of,Ad=kd,Td=id,Pd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nd={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},Dd={Once:!0,postcssPlugin:!0,prepare:!0},Fd=0;function Ld(e){return e[Sd]=!1,e.nodes&&e.nodes.forEach(function(e){return Ld(e)}),e}var jd={},Ud=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(b(r,e)||b(r,Rd))i=Ld(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ad;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Cd]&&Od.rebuild(i)}else i=Ld(r);this.result=new Rd(t,i,n),this.helpers=jr({},jd,{postcss:jd,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?jr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!Nd[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Dd[o])if("object"===k(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return v(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!rt(n))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Sd])return[3,14];o[Sd]=!0,s=[it(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!rt(a))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return rt(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Id;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new xd(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(rt(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var i=this.result.root;!i[Sd];)i[Sd]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=S(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Md("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)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rt(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Sd])return a[Sd]=!0,void e.push(it(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Fd)return void(r.nodes&&r.nodes.length&&(r[Sd]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Sd]=!0;for(var r,n=nt(e),i=S(n);!(r=i()).done;){var o=r.value;if(o===Fd)e.nodes&&e.each(function(e){e[Sd]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},y(e,[{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"}}]),e}();Ud.registerPostcss=function(e){jd=e};var Bd=Ud;Ud.default=Ud,Td.registerLazyResult(Ud),Ed.registerLazyResult(Ud);var qd=tf,zd=lp,Vd=kf,Wd=kd,$d=Of,Hd=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=zd;this.result=new $d(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new qd(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Vd("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)},t.toString=function(){return this._css},t.warnings=function(){return[]},y(e,[{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=Wd;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Gd=Hd;Hd.default=Hd;var Yd=Gd,Jd=Bd,Zd=bf,Kd=id,Xd=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":k(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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Jd(this,e,t):new Yd(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Qd=Xd;Xd.default=Xd,Kd.registerProcessor(Xd),Zd.registerProcessor(Xd);var eg=bp,tg=Mp,rg=nf,ng=Qf,ig=Wp,og=id,sg=ld;function ag(e,t){if(Array.isArray(e))return e.map(function(e){return ag(e)});var r=e.inputs,n=w(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=jr({},i.value,{__proto__:ig.prototype});s.map&&(s.map=jr({},s.map,{__proto__:tg.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return ag(e,t)})),n.source){var a=n.source,c=a.inputId,u=w(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new og(n);if("decl"===n.type)return new eg(n);if("rule"===n.type)return new sg(n);if("comment"===n.type)return new rg(n);if("atrule"===n.type)return new ng(n);throw new Error("Unknown node type: "+e.type)}var cg=ag;ag.default=ag;var ug=ip,lg=bp,hg=Bd,pg=mf,fg=Qd,dg=lp,gg=cg,mg=bf,vg=Cf,yg=nf,_g=Qf,bg=Of,wg=Wp,kg=kd,Sg=sd,Cg=ld,xg=id,Ig=yp;ot.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new fg).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ot([i(r)]).process(e,t)},i},ot.stringify=dg,ot.parse=kg,ot.fromJSON=gg,ot.list=Sg,ot.comment=function(e){return new yg(e)},ot.atRule=function(e){return new _g(e)},ot.decl=function(e){return new lg(e)},ot.rule=function(e){return new Cg(e)},ot.root=function(e){return new xg(e)},ot.document=function(e){return new mg(e)},ot.CssSyntaxError=ug,ot.Declaration=lg,ot.Container=pg,ot.Processor=fg,ot.Document=mg,ot.Comment=yg,ot.Warning=vg,ot.AtRule=_g,ot.Result=bg,ot.Input=wg,ot.Rule=Cg,ot.Root=xg,ot.Node=Ig,hg.registerPostcss(ot);var Og=ot;ot.default=ot;var Eg=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Og);Eg.stringify,Eg.fromJSON,Eg.plugin,Eg.parse,Eg.list,Eg.document,Eg.comment,Eg.atRule,Eg.rule,Eg.decl,Eg.root,Eg.CssSyntaxError,Eg.Declaration,Eg.Container,Eg.Processor,Eg.Document,Eg.Comment,Eg.Warning,Eg.AtRule,Eg.Result,Eg.Input,Eg.Rule,Eg.Root,Eg.Node;var Mg=Object.defineProperty,Rg=function(e,t,r){return function(e,t,r){return t in e?Mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},Ag=function(){function e(e){Rg(this,"fileName"),Rg(this,"functionName"),Rg(this,"lineNumber"),Rg(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),Tg=/(^|@)\S+:\d+/,Pg=/^\s*at .*(\S+:\d+|\(native\))/m,Ng=/^(eval@)?(\[native code])?$/,Dg={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Pg)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Pg)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new Ag({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Ng)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Ag({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ag({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Ag({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Ag({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Tg)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ag({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Fg(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=S(n);!(r=i()).done;){var o=r.value;if(at(e[o])&&Fg(e[o],t-1))return!0}return!1}var Lg,jg,Ug,Bg={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"},qg=Mr.setImmediate,zg=Object.prototype.toString,Vg=void 0!==qg?function(e){return qg(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Lg=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Lg=function(e,t,r){return e[t]=r,e}}function Wg(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=ht(e))?lt(function(){var n=new mt(r);try{t.call(e,function(){Wg.apply(n,arguments)},function(){dt.apply(n,arguments)})}catch(e){dt.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&<(pt,r))}catch(e){dt.call(new mt(r),e)}}}Ug=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=jg=void 0;r;)r.fn.call(r.self),r=r.next}}}();var $g,Hg=Lg({},"constructor",yt,!1);yt.prototype=Hg,Lg(Hg,"__NPO__",0,!1),Lg(yt,"resolve",function(e){return e&&"object"===(void 0===e?"undefined":_type_of(e))&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),Lg(yt,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),Lg(yt,"all",function(e){var t=this;return"[object Array]"!==zg.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;gt(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),Lg(yt,"race",function(e){var t=this;return"[object Array]"!==zg.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");gt(t,e,function(e,t){r(t)},n)})}),$g="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:yt;var Gg,Yg,Jg,Zg,Kg,Xg,Qg,em,tm,rm,nm,im,om=864e5,sm=8e3,am=Array.prototype,cm=Function.prototype,um=Object.prototype,lm=am.slice,hm=um.toString,pm=um.hasOwnProperty,fm=Mr.console,dm=Mr.navigator,gm=Mr.document,mm=Mr.opera,vm=Mr.screen,ym=dm.userAgent,_m=cm.bind,bm=am.forEach,wm=am.indexOf,km=am.map,Sm=Array.isArray,Cm={},xm={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Im={log:function(){if(Pr.DEBUG&&!xm.isUndefined(fm)&&fm)try{fm.log.apply(fm,arguments)}catch(e){xm.each(arguments,function(e){fm.log(e)})}},warn:function(){if(Pr.DEBUG&&!xm.isUndefined(fm)&&fm){var e=["Mixpanel warning:"].concat(xm.toArray(arguments));try{fm.warn.apply(fm,e)}catch(t){xm.each(e,function(e){fm.warn(e)})}}},error:function(){if(Pr.DEBUG&&!xm.isUndefined(fm)&&fm){var e=["Mixpanel error:"].concat(xm.toArray(arguments));try{fm.error.apply(fm,e)}catch(t){xm.each(e,function(e){fm.error(e)})}}},critical:function(){if(!xm.isUndefined(fm)&&fm){var e=["Mixpanel error:"].concat(xm.toArray(arguments));try{fm.error.apply(fm,e)}catch(t){xm.each(e,function(e){fm.error(e)})}}}},Om=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Im,arguments)}},Em=function(e){return{log:Om(Im.log,e),warn:Om(Im.warn,e),error:Om(Im.error,e),critical:Om(Im.critical,e)}},Mm=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Im.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pr.DEBUG&&Im.critical(e)}}},Rm=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Mm(t[r]))};xm.bind=function(e,t){var r,n;if(_m&&e.bind===_m)return _m.apply(e,lm.call(arguments,1));if(!xm.isFunction(e))throw new TypeError;return r=lm.call(arguments,2),n=function(){if(!_instanceof(this,n))return e.apply(t,r.concat(lm.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(lm.call(arguments)));return Object(s)===s?s:o},n},xm.each=function(e,t,r){if(null!=e)if(bm&&e.forEach===bm)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===Cm)return}else for(var o in e)if(pm.call(e,o)&&t.call(r,e[o],o,e)===Cm)return},xm.extend=function(e){return xm.each(lm.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},xm.isArray=Sm||function(e){return"[object Array]"===hm.call(e)},xm.isFunction=function(e){return"function"==typeof e},xm.isArguments=function(e){return!(!e||!pm.call(e,"callee"))},xm.toArray=function(e){return e?e.toArray?e.toArray():xm.isArray(e)||xm.isArguments(e)?lm.call(e):xm.values(e):[]},xm.map=function(e,t,r){if(km&&e.map===km)return e.map(t,r);var n=[];return xm.each(e,function(e){n.push(t.call(r,e))}),n},xm.keys=function(e){var t=[];return null===e||xm.each(e,function(e,r){t[t.length]=r}),t},xm.values=function(e){var t=[];return null===e||xm.each(e,function(e){t[t.length]=e}),t},xm.include=function(e,t){var r=!1;return null===e?r:wm&&e.indexOf===wm?-1!=e.indexOf(t):(xm.each(e,function(e){if(r||(r=e===t))return Cm}),r)},xm.includes=function(e,t){return-1!==e.indexOf(t)},xm.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},xm.isObject=function(e){return e===Object(e)&&!xm.isArray(e)},xm.isEmptyObject=function(e){if(xm.isObject(e)){for(var t in e)if(pm.call(e,t))return!1;return!0}return!1},xm.isUndefined=function(e){return void 0===e},xm.isString=function(e){return"[object String]"==hm.call(e)},xm.isDate=function(e){return"[object Date]"==hm.call(e)},xm.isNumber=function(e){return"[object Number]"==hm.call(e)},xm.isElement=function(e){return!(!e||1!==e.nodeType)},xm.encodeDates=function(e){return xm.each(e,function(t,r){xm.isDate(t)?e[r]=xm.formatDate(t):xm.isObject(t)&&(e[r]=xm.encodeDates(t))}),e},xm.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},xm.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},xm.strip_empty_properties=function(e){var t={};return xm.each(e,function(e,r){xm.isString(e)&&e.length>0&&(t[r]=e)}),t},xm.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):xm.isArray(e)?(r=[],xm.each(e,function(e){r.push(xm.truncate(e,t))})):xm.isObject(e)?(r={},xm.each(e,function(e,n){r[n]=xm.truncate(e,t)})):r=e,r},xm.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"===(void 0===h?"undefined":_type_of(h))&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),void 0===h?"undefined":_type_of(h)){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===hm.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)pm.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},xm.JSONDecode=(Kg={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Xg=function(e){var t=new SyntaxError(e);throw t.at=Gg,t.text=Jg,t},Qg=function(e){return e&&e!==Yg&&Xg("Expected '"+e+"' instead of '"+Yg+"'"),Yg=Jg.charAt(Gg),Gg+=1,Yg},em=function(){var e,t="";for("-"===Yg&&(t="-",Qg("-"));Yg>="0"&&Yg<="9";)t+=Yg,Qg();if("."===Yg)for(t+=".";Qg()&&Yg>="0"&&Yg<="9";)t+=Yg;if("e"===Yg||"E"===Yg)for(t+=Yg,Qg(),"-"!==Yg&&"+"!==Yg||(t+=Yg,Qg());Yg>="0"&&Yg<="9";)t+=Yg,Qg();if(e=+t,isFinite(e))return e;Xg("Bad number")},tm=function(){var e,t,r,n="";if('"'===Yg)for(;Qg();){if('"'===Yg)return Qg(),n;if("\\"===Yg)if(Qg(),"u"===Yg){for(r=0,t=0;t<4&&(e=parseInt(Qg(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof Kg[Yg])break;n+=Kg[Yg]}else n+=Yg}Xg("Bad string")},rm=function(){for(;Yg&&Yg<=" ";)Qg()},nm=function(){var e=[];if("["===Yg){if(Qg("["),rm(),"]"===Yg)return Qg("]"),e;for(;Yg;){if(e.push(Zg()),rm(),"]"===Yg)return Qg("]"),e;Qg(","),rm()}}Xg("Bad array")},im=function(){var e,t={};if("{"===Yg){if(Qg("{"),rm(),"}"===Yg)return Qg("}"),t;for(;Yg;){if(e=tm(),rm(),Qg(":"),Object.hasOwnProperty.call(t,e)&&Xg('Duplicate key "'+e+'"'),t[e]=Zg(),rm(),"}"===Yg)return Qg("}"),t;Qg(","),rm()}}Xg("Bad object")},Zg=function(){switch(rm(),Yg){case"{":return im();case"[":return nm();case'"':return tm();case"-":return em();default:return Yg>="0"&&Yg<="9"?em():function(){switch(Yg){case"t":return Qg("t"),Qg("r"),Qg("u"),Qg("e"),!0;case"f":return Qg("f"),Qg("a"),Qg("l"),Qg("s"),Qg("e"),!1;case"n":return Qg("n"),Qg("u"),Qg("l"),Qg("l"),null}Xg('Unexpected "'+Yg+'"')}()}},function(e){var t;return Jg=e,Gg=0,Yg=" ",t=Zg(),rm(),Yg&&Xg("Syntax error"),t}),xm.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=xm.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},xm.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},xm.UUID=function(){try{return Mr.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",xm.map(e,function(e){return e.toString(16)}).join("")}};var Am=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];xm.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Am.length;t++)if(-1!==e.indexOf(Am[t]))return!0;return!1},xm.HTTPBuildQuery=function(e,t){var r,n,i=[];return xm.isUndefined(t)&&(t="&"),xm.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},xm.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){Im.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},xm.cookie={get:function(e){for(var t=e+"=",r=gm.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=xm.JSONDecode(xm.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Wm(gm.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),gm.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Wm(gm.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return gm.cookie=p,p},remove:function(e,t,r){xm.cookie.set(e,"",-1,t,!1,!1,r)}};var Tm=function(e){var t=!0;try{var r="__mplss_"+Bm(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Pm=null,Nm=function(e,t){return null===Pm||t?Pm=Tm(e):Pm},Dm=null,Fm=function(){try{return Mr.localStorage}catch(e){return null}};xm.localStorage=_t(Fm(),"localStorage",Nm),xm.sessionStorage=_t(function(){try{return Mr.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===Dm||t?Dm=Tm(e):Dm}),xm.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(Mr.event)){var o,s,a=!0;return xm.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else Im.error("No valid element provided to register_event")}}();var Lm=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');xm.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!gm.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[gm];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=gm.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,u=0;u<s.length;u++)s[u].className&&xm.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(Lm);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u<s.length;u++)_(s[u])&&(d[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(h=d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return xm.isElement(e)?[e]:xm.isObject(e)&&!xm.isUndefined(e.length)?e:n.call(this,e)}}();var jm=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Um=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];xm.info={campaignParams:function(e){var t="",r={};return xm.each(jm,function(n){(t=xm.getQueryParam(gm.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return xm.each(Um,function(r){(e=xm.getQueryParam(gm.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return xm.extend(xm.info.campaignParams(),xm.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=xm.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=xm.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||xm.includes(e," OPR/")?xm.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":xm.includes(e,"IEMobile")||xm.includes(e,"WPDesktop")?"Internet Explorer Mobile":xm.includes(e,"SamsungBrowser/")?"Samsung Internet":xm.includes(e,"Edge")||xm.includes(e,"Edg/")?"Microsoft Edge":xm.includes(e,"FBIOS")?"Facebook Mobile":xm.includes(e,"Whale/")?"Whale Browser":xm.includes(e,"Chrome")?"Chrome":xm.includes(e,"CriOS")?"Chrome iOS":xm.includes(e,"UCWEB")||xm.includes(e,"UCBrowser")?"UC Browser":xm.includes(e,"FxiOS")?"Firefox iOS":xm.includes(t,"Apple")?xm.includes(e,"Mobile")?"Mobile Safari":"Safari":xm.includes(e,"Android")?"Android Mobile":xm.includes(e,"Konqueror")?"Konqueror":xm.includes(e,"Firefox")?"Firefox":xm.includes(e,"MSIE")||xm.includes(e,"Trident/")?"Internet Explorer":xm.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[xm.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=ym;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Mr.location.href},properties:function(e){return"object"!==(void 0===e?"undefined":_type_of(e))&&(e={}),xm.extend(xm.strip_empty_properties({$os:xm.info.os(),$browser:xm.info.browser(ym,dm.vendor,mm),$referrer:gm.referrer,$referring_domain:xm.info.referringDomain(gm.referrer),$device:xm.info.device(ym)}),{$current_url:xm.info.currentUrl(),$browser_version:xm.info.browserVersion(ym,dm.vendor,mm),$screen_height:vm.height,$screen_width:vm.width,mp_lib:"web",$lib_version:Pr.LIB_VERSION,$insert_id:Bm(),time:xm.timestamp()/1e3},xm.strip_empty_properties(e))},people_properties:function(){return xm.extend(xm.strip_empty_properties({$os:xm.info.os(),$browser:xm.info.browser(ym,dm.vendor,mm)}),{$browser_version:xm.info.browserVersion(ym,dm.vendor,mm)})},mpPageViewProperties:function(){return xm.strip_empty_properties({current_page_title:gm.title,current_domain:Mr.location.hostname,current_url_path:Mr.location.pathname,current_url_protocol:Mr.location.protocol,current_url_search:Mr.location.search})}};var Bm=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},qm=function(){return"00-"+xm.UUID().replace(/-/g,"")+"-"+xm.UUID().replace(/-/g,"").substring(0,16)+"-01"},zm=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Vm=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Wm=function(e){var t=Vm,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=zm);var i=e.match(t);return i?i[0]:""},$m=function(){},Hm=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Gm=null,Ym=null;"undefined"!=typeof JSON&&(Gm=JSON.stringify,Ym=JSON.parse),Gm=Gm||xm.JSONEncode,Ym=Ym||xm.JSONDecode;xm.info=xm.info,xm.info.browser=xm.info.browser,xm.info.browserVersion=xm.info.browserVersion,xm.info.device=xm.info.device,xm.info.properties=xm.info.properties,xm.isBlockedUA=xm.isBlockedUA,xm.isEmptyObject=xm.isEmptyObject,xm.isObject=xm.isObject,xm.JSONDecode=xm.JSONDecode,xm.JSONEncode=xm.JSONEncode,xm.toArray=xm.toArray,xm.NPO=yt;var Jm=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};Jm.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new $g(function(n,i){var o=Mr.indexedDB.open(e,t);o.onerror=function(){i(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},Jm.prototype.init=function(){return Mr.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return _instanceof(e,Mr.IDBDatabase)?$g.resolve():$g.reject(e)})):$g.reject("indexedDB is not supported in this browser")},Jm.prototype.isInitialized=function(){return!!this.dbPromise},Jm.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new $g(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):$g.reject(e)}.bind(this))},Jm.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Jm.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Jm.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Jm.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Zm="mixpanelBrowserDb",Km="mixpanelRecordingEvents",Xm="mixpanelRecordingRegistry",Qm={version:1,storeNames:[Km,Xm]},ev="__mp_opt_in_out_",tv=Em("lock"),rv=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Fm(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||$g};rv.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(xm.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>c)return tv.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(Nm(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),d(g,function(){u.getItem(l)!==i?f(function(){u.getItem(h)===i?d(function(){return!u.getItem(p)},v):m()}):v()})},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Nm(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var nv=function(e){this.storage=e||Fm()};nv.prototype.init=function(){return this.storage?$g.resolve():$g.reject(new Error("localStorage is not available"))},nv.prototype.isInitialized=function(){return!0},nv.prototype.setItem=function(e,t){return new $g(xm.bind(function(r,n){try{this.storage.setItem(e,Gm(t))}catch(e){n(e)}r()},this))},nv.prototype.getItem=function(e){return new $g(xm.bind(function(t,r){var n;try{n=Ym(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},nv.prototype.removeItem=function(e){return new $g(xm.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var iv=Em("batch"),ov=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new nv,this.lock=new rv(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||xm.bind(iv.error,iv),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=xm.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new $g(function(e){setTimeout(function(){var n=r.apply(t,[o]);i=null,o=[],e(n)},n)})),i}):this.enqueuePersisted=xm.bind(function(e){return this._enqueuePersisted([e])},this)};ov.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?$g.resolve():this.queueStorage.init().then(xm.bind(function(){this.initialized=!0},this)).catch(xm.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},ov.prototype.enqueue=function(e,t){var r={id:Bm(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),$g.resolve(!0))},ov.prototype._enqueuePersisted=function(e){var t=xm.bind(function(){return this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(xm.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(xm.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(xm.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},ov.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(r){if(r.length){var n={};xm.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):$g.resolve(t)};var sv=function(e,t){var r=[];return xm.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};ov.prototype.removeItemsByID=function(e){var t={};if(xm.each(e,function(e){t[e]=!0}),this.memQueue=sv(this.memQueue,t),this.usePersistence){var r=xm.bind(function(){return this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(e){return e=sv(e,t),this.saveToStorage(e)},this)).then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(xm.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(xm.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Nm(this.lock.storage,!0)&&r().then(xm.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(xm.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return $g.resolve(!0)};var av=function(e,t){var r=[];return xm.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};ov.prototype.updatePayloads=function(e){return this.memQueue=av(this.memQueue,e),this.usePersistence?this.lock.withLock(xm.bind(function(){return this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(t){return t=av(t,e),this.saveToStorage(t)},this)).catch(xm.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(xm.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):$g.resolve(!0)},ov.prototype.readFromStorage=function(){return this.ensureInit().then(xm.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(xm.bind(function(e){return e&&(xm.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(xm.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},ov.prototype.saveToStorage=function(e){return this.ensureInit().then(xm.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(xm.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},ov.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(xm.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):$g.resolve()};var cv=Em("batch"),uv=function(e,t){this.errorReporter=t.errorReporter,this.queue=new ov(e,{errorReporter:xm.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};uv.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},uv.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},uv.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},uv.prototype.clear=function(){return this.queue.clear()},uv.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},uv.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},uv.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(xm.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},uv.prototype.sendRequestPromise=function(e,t){return new $g(xm.bind(function(r){this.sendRequest(e,t,r)},this))},uv.prototype.flush=function(e){if(this.requestInProgress)return cv.log("Flush: Request already in progress"),$g.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(xm.bind(function(i){var o=i.length===n,s=[],a={};if(xm.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=xm.extend({},t.properties,{mp_sent_by_lib_version:Pr.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),$g.resolve();var c=xm.bind(function(){return this.queue.removeItemsByID(xm.map(i,function(e){return e.id})).then(xm.bind(function(e){return xm.each(i,xm.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),$g.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),$g.resolve())},this))},this),u=xm.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(xm.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(xm.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(l=Mr.navigator.onLine,!xm.isUndefined(l)&&!l)||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),$g.resolve()}if(xm.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),$g.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var l},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),cv.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(xm.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},uv.prototype.reportError=function(e,t){if(cv.error.apply(cv.error,arguments),this.errorReporter)try{_instanceof(t,Error)||(t=new Error(e)),this.errorReporter(e,t)}catch(e){cv.error(e)}};var lv=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},hv=function(e,t){if(!xm.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},pv="change",fv="click",dv="hashchange",gv="load",mv="mp_locationchange",vv="popstate",yv="scrollend",_v="scroll",bv="submit",wv="visibilitychange",kv=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Sv=["mp-include"],Cv=["mp-no-track"],xv=Cv.concat(["mp-sensitive"]),Iv=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Ov={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Ev={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Mv={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Rv=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Av=5,Tv=Em("autocapture"),Pv=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Nv="data-rr-is-password",Dv=["password","email","tel","hidden"],Fv=Em("network-plugin"),Lv={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1},jv=1048576;function Uv(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Fv.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),function(e){return or(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Uv(e,t,r,n,i,o+1)})}var Bv=Em("recorder"),qv=Mr.CompressionStream,zv={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Vv=new Set([rh.MouseMove,rh.MouseInteraction,rh.Scroll,rh.ViewportResize,rh.Input,rh.TouchMove,rh.MediaInteraction,rh.Drag,rh.Selection]),Wv=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||$m,this._onMaxLengthReached=e.onMaxLengthReached||$m,this._onBatchSent=e.onBatchSent||$m,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=om,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=Nm(e.sharedLockStorage||Fm(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Jm(Zm,Km,Qm),this.batcher=new uv(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:zv,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Wv.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Wv.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Wv.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Wv.prototype.get_config=function(e){return this.getConfig(e)},Wv.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>om&&(this.recordMaxMs=om,Bv.critical("record_max_ms cannot be greater than "+om+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=xm.info.currentUrl(),this.replayStartUrl=xm.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=er(r).join(","),t.input.unmaskingSelector=er(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=er(o);if(c)if(_instanceof(c,RegExp))t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=er(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:pr,options:e}}(o))}this.getConfig("record_console")&&i.push(function(e){return{name:"rrweb/console@1",observer:ut,options:e}}({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=hv(this.getConfig("record_allowed_iframe_origins"),Bv);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),function(e){return e.type===th.IncrementalSnapshot&&Vv.has(e.data.source)}(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(rr,n),maskTextFn:this._getMaskFn(nr,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else Bv.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Wv.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Wv.prototype.isRrwebStopped=function(){return null===this._stopRecording},Wv.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Wv.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Wv.deserialize=function(e,t){return new Wv(xm.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Wv.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},Wv.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=xm.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Mr.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Wv.prototype._flushEvents=Ct(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===th.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Pr.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),function(e,t,r){if(!Mr.CompressionStream)return!1;var n=xm.info.browser(e,t,r),i=xm.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)}(ym,dm.vendor,mm)){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new qv("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),Wv.prototype.reportError=function(e,t){Bv.error.apply(Bv.error,arguments);try{t||_instanceof(e,Error)||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){Bv.error(e)}},Wv.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Wv.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>sm?(Bv.critical("record_min_ms cannot be greater than 8000ms. Capping value."),sm):e},Wv.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var $v=function(e){this.idb=new Jm(Zm,Xm,Qm),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};$v.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},$v.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},$v.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return $g.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),$g.resolve())},$v.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return lv(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):$g.resolve(null)},$v.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},$v.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},$v.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):$g.resolve()},$v.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return lv(e)}).map(function(e){return Wv.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return $g.all(t)}.bind(this)).catch(this.handleError.bind(this)):$g.resolve([])};var Hv=Em("recorder"),Gv=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Ze,this.sharedLockStorage=r,this.recordingRegistry=new $v({mixpanelInstance:this.mixpanelInstance,errorReporter:Hv.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Gv.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Hv.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Hv.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:xm.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Wv.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Wv(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Hv.log("Recording already in progress, skipping startRecording.")},Gv.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Gv.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Gv.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return $g.resolve()},Gv.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),$g.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Hv.log("No resumable recording found."),null)}.bind(this))},Gv.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Gv.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Gv.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Gv.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Mr[Dr]=Gv;var Yv,Jv={exports:{}},Zv=(Jv.exports,Yv||(Yv=1,Jv.exports=function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===(void 0===e?"undefined":_type_of(e))&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c=void 0!==l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"==typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=r;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t}()),Jv.exports),Kv=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Zv),Xv={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!xm.isEmptyObject(n))try{i=Kv.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};Mr[Nr]=Promise.resolve(Xv);fr.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only||false){var o=Qt(e);if(!o||Kt(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},dr.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Qt(e)},dr.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=Xt(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},dr.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Tv.critical("Error while observing shadow root",e)}}},dr.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Tv.critical("Shadow DOM observation unavailable: WeakSet not supported"))},dr.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Tv.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Qv=[pv,"input",bv,"select","toggle"],ey=[yv],ty=[dv],ry={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};gr.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||Kt(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},gr.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},gr.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},gr.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},gr.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},gr.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},gr.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},gr.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Qv.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),ty.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ey.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,ry)}catch(e){Tv.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new dr(function(){e.recordChangeEvent()},ry),this.shadowDOMObserver.start()}catch(e){Tv.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},gr.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Tv.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Tv.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Tv.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var ny="autocapture",iy="full-url",oy="allow_selectors",sy="allow_url_regexes",ay="block_attrs",cy="block_element_callback",uy="block_selectors",ly="block_url_regexes",hy="capture_extra_attrs",py="capture_text_content",fy="scroll_capture_all",dy="scroll_depth_percent_checkpoints",gy="click",my="dead_click",vy="input",yy="pageview",_y="rage_click",by="scroll",wy="page_leave",ky="submit",Sy={};Sy[oy]=[],Sy[sy]=[],Sy[ay]=[],Sy[cy]=null,Sy[uy]=[],Sy[ly]=[],Sy[hy]=[],Sy[py]=!1,Sy[fy]=!1,Sy[dy]=[25,50,75,100],Sy[gy]=!0,Sy[my]=!0,Sy[vy]=!0,Sy[yy]=iy,Sy[_y]=!0,Sy[by]=!0,Sy[wy]=!1,Sy[ky]=!0;var Cy={$mp_autocapture:!0},xy="$mp_click",Iy="$mp_dead_click",Oy="$mp_rage_click",Ey=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Ey.prototype.init=function(){!function(){try{return!!gm.createElement("div").matches}catch(e){return!1}}()?Tv.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},Ey.prototype.getFullConfig=function(){var e=this.mp.get_config(ny);return e?xm.isObject(e)?xm.extend({},Sy,e):Sy:{}},Ey.prototype.getConfig=function(e){return this.getFullConfig()[e]},Ey.prototype.currentUrlBlocked=function(){var e=xm.info.currentUrl(),t=this.getConfig(sy)||[];if(t.length)try{return!Hm(e,t)}catch(e){return Tv.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(ly)||[];if(!r||!r.length)return!1;try{return Hm(e,r)}catch(e){return Tv.critical("Error while checking block URL regexes: ",e),!0}},Ey.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(ny)?this.getConfig(yy):this.mp.get_config("track_pageview")},Ey.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===xy&&!this.getConfig(gy)||t===Oy&&!this._getClickTrackingConfig(_y)||t===Iy&&!this._getClickTrackingConfig(my)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};xm.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(Wt(p)&&(p=p.parentNode),$t(p,e)&&Bt(p,e,r,n)&&!qt(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!Vt(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(xm.each(f,function(t){var i=Gt(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Yt(g)&&g),qt(t,e,o,s)&&(v=!0),m.push(Lt(t,e,l,c,r,n))},this),!v){var y=gm.documentElement;if(h={$event_type:e.type,$host:Mr.location.host,$pathname:Mr.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,Mr.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,Mr.innerWidth||0),$pageHeight:gm.body.offsetHeight||0,$pageWidth:gm.body.offsetWidth||0},xm.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Yt(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=jt(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===fv&&(xm.each(kv,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=Ut(e)),a){var _=jt(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!Bt(p,e,r,n)||qt(p,e,o,s))return null;var b=Lt(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,xm.extend(h,xm.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(oy),blockAttrs:this.getConfig(ay),blockElementCallback:this.getConfig(cy),blockSelectors:this.getConfig(uy),captureExtraAttrs:this.getConfig(hy),captureTextContent:this.getConfig(py),capturedForHeatMap:r});n&&(xm.extend(n,Cy),this.mp.track(t,n))}},Ey.prototype.initPageListeners=function(){if(Mr.removeEventListener(vv,this.listenerPopstate),Mr.removeEventListener(dv,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(wy)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Mr.dispatchEvent(new Event(mv))},this.listenerHashchange=function(){Mr.dispatchEvent(new Event(mv))},Mr.addEventListener(vv,this.listenerPopstate),Mr.addEventListener(dv,this.listenerHashchange);var e=Mr.history.pushState;"function"==typeof e&&(Mr.history.pushState=function(t,r,n){e.call(Mr.history,t,r,n),Mr.dispatchEvent(new Event(mv))});var t=Mr.history.replaceState;"function"==typeof t&&(Mr.history.replaceState=function(e,r,n){t.call(Mr.history,e,r,n),Mr.dispatchEvent(new Event(mv))})}},Ey.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===(void 0===t?"undefined":_type_of(t))?t:{}:null},Ey.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(wy)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=xm.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||xm.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(gm.documentElement.clientWidth,Mr.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Cy);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},Ey.prototype._initScrollDepthTracking=function(){if(Mr.removeEventListener(_v,this.listenerScrollDepth),Mr.removeEventListener(yv,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Tv.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0)+Mr.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=gm.body.scrollHeight}}.bind(this),t=Jt(e);this.listenerScrollDepth=t.listener,Mr.addEventListener(t.eventType,this.listenerScrollDepth)}},Ey.prototype.initClickTracking=function(){Mr.removeEventListener(fv,this.listenerClick,!0),(this.getConfig(gy)||this.mp.get_config("record_heatmap_data"))&&(Tv.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(gy)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,xy)}.bind(this),Mr.addEventListener(fv,this.listenerClick,!0))},Ey.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(my)||this.mp.get_config("record_heatmap_data")?(Tv.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new gr(function(e){this.trackDomEvent(e,Iy)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(my);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),Mr.addEventListener(fv,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},Ey.prototype.initInputTracking=function(){Mr.removeEventListener(pv,this.listenerChange,!0),this.getConfig(vy)&&(Tv.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(vy)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),Mr.addEventListener(pv,this.listenerChange,!0))},Ey.prototype.initPageviewTracking=function(){if(Mr.removeEventListener(mv,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Tv.log("Initializing pageview tracking");var e="",t=!1;!this.pageviewTrackingConfig()&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||(t=this.mp.track_pageview(Cy)),t&&(e=xm.info.currentUrl()),this.listenerLocationchange=Mm(function(){if(!this.currentUrlBlocked()){var t=xm.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=iy),i===iy?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r)this.mp.track_pageview(Cy)&&(e=t),n&&(this.lastScrollCheckpoint=0,Tv.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),Mr.addEventListener(mv,this.listenerLocationchange)}},Ey.prototype.initRageClickTracking=function(){Mr.removeEventListener(fv,this.listenerRageClick,!0),(this._getClickTrackingConfig(_y)||this.mp.get_config("record_heatmap_data"))&&(Tv.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new fr),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(_y);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Oy))}.bind(this),Mr.addEventListener(fv,this.listenerRageClick,!0))},Ey.prototype.initScrollTracking=function(){if(Mr.removeEventListener(yv,this.listenerScroll),Mr.removeEventListener(_v,this.listenerScroll),this.getConfig(by)){Tv.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(by)&&!this.currentUrlBlocked()){var e=this.getConfig(fy),t=(this.getConfig(dy)||[]).slice().sort(function(e,t){return e-t}),r=Mr.scrollY,n=xm.extend({$scroll_top:r},Cy);try{var i=gm.body.scrollHeight,o=Math.round(r/(i-Mr.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){Tv.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this),t=Jt(e);this.listenerScroll=t.listener,Mr.addEventListener(t.eventType,this.listenerScroll)}},Ey.prototype.initSubmitTracking=function(){Mr.removeEventListener(bv,this.listenerSubmit,!0),this.getConfig(ky)&&(Tv.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(ky)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),Mr.addEventListener(bv,this.listenerSubmit,!0))},Ey.prototype.initPageLeaveTracking=function(){if(gm.removeEventListener(wv,this.listenerPageLeaveVisibilitychange),Mr.removeEventListener(mv,this.listenerPageLeaveLocationchange),Mr.removeEventListener(gv,this.listenerPageLoad),this.getConfig(wy)||this.mp.get_config("record_heatmap_data")){Tv.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=xm.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=gm.body.scrollHeight}.bind(this),Mr.addEventListener(gv,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Mm(function(t){if(!this.currentUrlBlocked()){var r=xm.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0),this.previousScrollHeight=gm.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Mr.addEventListener(mv,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){gm.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),gm.addEventListener(wv,this.listenerPageLeaveVisibilitychange)}},Ey.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Mr.removeEventListener(fv,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Rm(Ey);var My=function(e,t){return Mr[Nr]&&"function"==typeof Mr[Nr].then||(Mr[Nr]=new Promise(function(r){e(t,r)}).then(function(){var e=Mr[Nr];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete Mr[Nr],e})),Mr[Nr]},Ry=Em("flags"),Ay="mixpanelFlags",Ty={version:1,storeNames:[Ay]},Py=864e5,Ny=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Dy=[Ny.NETWORK_ONLY,Ny.NETWORK_FIRST,Ny.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Fy=function(e,t,r){this.idb=new Jm("mixpanelFlagsDb",Ay,Ty),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};Fy.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ny.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},Fy.prototype.getTtlMs=function(){if(!this._isConfigValid())return Py;var e=this.persistenceConfig.persistenceTtlMs;return null==e?Py:e},Fy.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===Dy.indexOf(e.variantLookupPolicy)?(Ry.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),!1):!(void 0!==e.persistenceTtlMs&&null!==e.persistenceTtlMs&&e.persistenceTtlMs<=0)||(Ry.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),!1))},Fy.prototype.loadFlagsFromStorage=function(e){var t=xm.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ny.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(xm.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(xm.bind(function(n){if(!n)return Ry.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return Ry.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return Ry.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return xm.each(n.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})}),Ry.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}},this)).catch(xm.bind(function(e){return Ry.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},Fy.prototype.save=function(e,t,r){if(this.getPolicy()===Ny.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(xm.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Ry.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)}).catch(function(e){Ry.error("Failed to persist variants to IndexedDB:",e)})},Fy.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(xm.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Ry.log("Cleared persisted variants from IndexedDB")}).catch(function(e){Ry.error("Failed to clear persisted variants from IndexedDB:",e)})};var Ly=Em("flags"),jy="flags",Uy="context",By={};By[Uy]={};var qy=function(e){return xm.isObject(e)?xm.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},zy=function(e){this.fetch=Mr.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};zy.prototype.init=function(){if(this.minApisSupported())return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Fy(this.getConfig("persistence"),this.getMpConfig("token"),xm.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(xm.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(xm.bind(function(){return this.fetchFlags()},this)).catch(function(){Ly.error("Error initializing feature flags")});Ly.critical("Feature Flags unavailable: missing minimum required APIs")},zy.prototype._buildContext=function(){return xm.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Uy))},zy.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(xm.bind(function(){return this.fetchFlags()},this)).catch(function(){Ly.error("Error during flags reset")})):Promise.resolve()},zy.prototype.getFullConfig=function(){var e=this.getMpConfig(jy);return e?xm.isObject(e)?xm.extend({},By,e):By:{}},zy.prototype.getConfig=function(e){return this.getFullConfig()[e]},zy.prototype.isSystemEnabled=function(){return!!this.getMpConfig(jy)},zy.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Ly.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(jy);xm.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Uy);r[Uy]=xm.extend({},n,e);var i={};return i[jy]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){Ly.error("Error fetching flags during updateContext")})},zy.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ly.error("Feature Flags not enabled"),!!this.flags},zy.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=qm();Ly.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",Pr.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Mr,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw new Error("No flags in API response");var i=new Map,o={};xm.each(n,function(e,t){var r=!1,n=t+":";if(xm.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&xm.each(s,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&xm.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Ly.error(e),e}.bind(this)),this.fetchPromise},zy.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Ly.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},zy.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Ly.error("Fetch in progress started time not set, cannot mark fetch complete")},zy.prototype._loadTargetingIfNeeded=function(){var e=!1;xm.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!xm.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){Ly.log("targeting loaded for property filter evaluation")})},zy.prototype.getTargeting=function(){return My(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){Ly.error("Failed to load targeting: "+e)}.bind(this))},zy.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!xm.isEmptyObject(this.pendingFirstTimeEvents)&&(Mr[Nr]&&xm.isFunction(Mr[Nr].then)?Mr[Nr].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},zy.prototype._processFirstTimeEventCheck=function(e,t,r){xm.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||xm.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)Ly.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){Ly.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else Ly.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},zy.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},zy.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=qm(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Pr.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};Ly.log("Recording first-time event for flag: "+e),this.fetch.call(Mr,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){Ly.error("Failed to record first-time event for flag "+e+": "+t)})},zy.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){Ly.critical("Feature Flags not initialized"),e(qy(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(xm.bind(function(){if(r===Ny.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(xm.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return Ly.error(e),qy(t)}):qy(t);var n=xm.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):qy(t)},this))},zy.prototype._loadedPersistenceIsStale=function(){return!(!this._loadedPersistedAtMs||!this._loadedTtlMs)&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},zy.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Ly.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),qy(t);if(!this.areFlagsReady())return Ly.log("Flags not loaded yet"),qy(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Ly.log('No flag found: "'+e+'"'),qy(t))},zy.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Ly.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(xm.bind(function(){if(e===Ny.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(xm.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return Ly.error(e),new Map}):new Map;var t=xm.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},zy.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Ly.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},zy.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return Ly.error(e),t})},zy.prototype.getFeatureData=function(e,t){return Ly.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},zy.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},zy.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return Ly.error(e),t})},zy.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Ly.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},zy.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":mr(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":mr(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};mr(t.experiment_id)&&(r.$experiment_id=t.experiment_id),mr(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),mr(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),mr(t.variant_source)&&(r.$variant_source=t.variant_source),mr(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),mr(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},zy.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},zy.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Rm(zy),zy.prototype.are_flags_ready=zy.prototype.areFlagsReady,zy.prototype.get_variant=zy.prototype.getVariant,zy.prototype.get_variant_sync=zy.prototype.getVariantSync,zy.prototype.get_all_variants=zy.prototype.getAllVariants,zy.prototype.get_all_variants_sync=zy.prototype.getAllVariantsSync,zy.prototype.get_variant_value=zy.prototype.getVariantValue,zy.prototype.get_variant_value_sync=zy.prototype.getVariantValueSync,zy.prototype.is_enabled=zy.prototype.isEnabled,zy.prototype.is_enabled_sync=zy.prototype.isEnabledSync,zy.prototype.load_flags=zy.prototype.loadFlags,zy.prototype.update_context=zy.prototype.updateContext,zy.prototype.when_ready=zy.prototype.whenReady,zy.prototype.get_feature_data=zy.prototype.getFeatureData,zy.prototype.getTargeting=zy.prototype.getTargeting;var Vy=Em("recorder"),Wy="mp_iframe_handshake_request",$y="mp_iframe_handshake_response",Hy=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Hy.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return Im.log("Load recorder check skipped due to disable_persistence config"),$g.resolve(!1);var e=new Jm(Zm,Xm,Qm),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(lv(e[r])||e[r].tabId===t)return!0;return!1}).catch(xm.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},Hy.prototype.checkAndStartSessionRecording=function(e,t){if(!Mr.MutationObserver)return Im.critical("Browser does not support MutationObserver; skipping session recording"),$g.resolve();var r=xm.bind(function(e){return new $g(xm.bind(function(t){var r=Mm(xm.bind(function(){this._recorder=this._recorder||new Mr[Dr](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(xm.isUndefined(Mr[Dr])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=hv(this.getMpConfig("record_allowed_iframe_origins"),Vy);if(n.length>0&&(this._setupParentFrameListener(n),Mr.parent!==Mr))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),$g.resolve();var i=xm.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(xm.bind(function(e){return e?r(!1):$g.resolve()},this))},Hy.prototype.isRecording=function(){if(!this._recorder||!xm.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},Hy.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!xm.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Fr;My(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){Im.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){Im.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},Hy.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():$g.resolve()},Hy.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():$g.resolve()},Hy.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():$g.resolve()},Hy.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Hy.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},Hy.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();t&&(e="https://mixpanel.com/projects/replay-redirect?"+xm.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")}));return e},Hy.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Hy.prototype.getRecorder=function(){return this._recorder},Hy.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===$y&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,Mr.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},Mr.addEventListener("message",this._childFrameMessageHandler)}},Hy.prototype._sendParentFrameRequest=function(e){var t={};t.type=Wy,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{Mr.parent.postMessage(t,e[r])}catch(e){}},Hy.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},Hy.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===Wy&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=$y,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},Mr.addEventListener("message",this._parentFrameMessageHandler)}},Rm(Hy);var Gy=function(){};Gy.prototype.create_properties=function(){},Gy.prototype.event_handler=function(){},Gy.prototype.after_track_handler=function(){},Gy.prototype.init=function(e){return this.mp=e,this},Gy.prototype.track=function(e,t,r,n){var i=this,o=xm.dom_query(e);if(0!==o.length)return xm.each(o,function(e){xm.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;Im.error("The DOM query ("+e+") returned 0 elements")},Gy.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},Gy.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):xm.extend({},e)};var Yy=function(){this.override_event="click"};xm.inherit(Yy,Gy),Yy.prototype.create_properties=function(e,t){var r=Yy.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Yy.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Yy.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Jy=function(){this.override_event="submit"};xm.inherit(Jy,Gy),Jy.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Jy.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Zy="$set",Ky="$set_once",Xy="$unset",Qy="$add",e_="$append",t_="$union",r_="$remove",n_={set_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Zy]=n,r},unset_action:function(e){var t={},r=[];return xm.isArray(e)||(e=[e]),xm.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Xy]=r,t},set_once_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ky]=n,r},union_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=xm.isArray(e)?e:[e])},this):n[e]=xm.isArray(t)?t:[t],r[t_]=n,r},append_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[e_]=n,r},remove_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[r_]=n,r},delete_action:function(){var e={$delete:""};return e}},i_=function(){};xm.extend(i_.prototype,n_),i_.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},i_.prototype.set=It(function(e,t,r){var n=this.set_action(e,t);return xm.isObject(e)&&(r=t),this._send_request(n,r)}),i_.prototype.set_once=It(function(e,t,r){var n=this.set_once_action(e,t);return xm.isObject(e)&&(r=t),this._send_request(n,r)}),i_.prototype.unset=It(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),i_.prototype.union=It(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),i_.prototype.delete=It(function(e){var t=this.delete_action();return this._send_request(t,e)}),i_.prototype.remove=It(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),i_.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=xm.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},i_.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},i_.prototype._get_config=function(e){return this._mixpanel.get_config(e)},i_.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},i_.prototype.remove=i_.prototype.remove,i_.prototype.set=i_.prototype.set,i_.prototype.set_once=i_.prototype.set_once,i_.prototype.union=i_.prototype.union,i_.prototype.unset=i_.prototype.unset,i_.prototype.toString=i_.prototype.toString;var o_=function(){};xm.extend(o_.prototype,n_),o_.prototype._init=function(e){this._mixpanel=e},o_.prototype.set=xt(function(e,t,r){var n=this.set_action(e,t);return xm.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Zy]=xm.extend({},xm.info.people_properties(),n[Zy]),this._send_request(n,r)}),o_.prototype.set_once=xt(function(e,t,r){var n=this.set_once_action(e,t);return xm.isObject(e)&&(r=t),this._send_request(n,r)}),o_.prototype.unset=xt(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),o_.prototype.increment=xt(function(e,t,r){var n={},i={};return xm.isObject(e)?(xm.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Im.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(xm.isUndefined(t)&&(t=1),i[e]=t),n[Qy]=i,this._send_request(n,r)}),o_.prototype.append=xt(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),o_.prototype.remove=xt(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),o_.prototype.union=xt(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),o_.prototype.track_charge=xt(function(){Im.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),o_.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},o_.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Im.error("mixpanel.people.delete_user() requires you to call identify() first")},o_.prototype.toString=function(){return this._mixpanel.toString()+".people"},o_.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=xm.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),xm.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),xm.truncate(o,255))},o_.prototype._get_config=function(e){return this._mixpanel.get_config(e)},o_.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},o_.prototype._enqueue=function(e){Zy in e?this._mixpanel.persistence._add_to_people_queue(Zy,e):Ky in e?this._mixpanel.persistence._add_to_people_queue(Ky,e):Xy in e?this._mixpanel.persistence._add_to_people_queue(Xy,e):Qy in e?this._mixpanel.persistence._add_to_people_queue(Qy,e):e_ in e?this._mixpanel.persistence._add_to_people_queue(e_,e):r_ in e?this._mixpanel.persistence._add_to_people_queue(r_,e):t_ in e?this._mixpanel.persistence._add_to_people_queue(t_,e):Im.error("Invalid call to _enqueue():",e)},o_.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=xm.extend({},this._mixpanel.persistence.load_queue(e)),s=o;xm.isUndefined(o)||!xm.isObject(o)||xm.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),xm.isUndefined(r)||r(t,n)}))},o_.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Zy,this.set,e),this._flush_one_queue(Ky,this.set_once,n),this._flush_one_queue(Xy,this.unset,o,function(e){return xm.keys(e)}),this._flush_one_queue(Qy,this.increment,t),this._flush_one_queue(t_,this.union,i);var c=this._mixpanel.persistence.load_queue(e_);if(!xm.isUndefined(c)&&xm.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(e_,u),xm.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(e_),u=c.pop(),a._mixpanel.persistence.save(),xm.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(r_);if(!xm.isUndefined(p)&&xm.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(r_,f),xm.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(r_),f=p.pop(),a._mixpanel.persistence.save(),xm.isEmptyObject(f)||a.remove(f,d)},o_.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},o_.prototype.set=o_.prototype.set,o_.prototype.set_once=o_.prototype.set_once,o_.prototype.unset=o_.prototype.unset,o_.prototype.increment=o_.prototype.increment,o_.prototype.append=o_.prototype.append,o_.prototype.remove=o_.prototype.remove,o_.prototype.union=o_.prototype.union,o_.prototype.track_charge=o_.prototype.track_charge,o_.prototype.clear_charges=o_.prototype.clear_charges,o_.prototype.delete_user=o_.prototype.delete_user,o_.prototype.toString=o_.prototype.toString;var s_,a_="__mps",c_="__mpso",u_="__mpus",l_="__mpa",h_="__mpap",p_="__mpr",f_="__mpu",d_="$people_distinct_id",g_="__alias",m_="__timers",v_=[a_,c_,u_,l_,h_,p_,f_,d_,g_,m_],y_=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Im.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&xm.localStorage.is_supported()?this.storage=xm.localStorage:this.storage=xm.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};y_.prototype.properties=function(){var e={};return this.load(),xm.each(this.props,function(t,r){xm.include(v_,r)||(e[r]=t)}),e},y_.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=xm.extend({},e))}},y_.prototype.upgrade=function(){var e,t;this.storage===xm.localStorage?(e=xm.cookie.parse(this.name),xm.cookie.remove(this.name),xm.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===xm.cookie&&(t=xm.localStorage.parse(this.name),xm.localStorage.remove(this.name),t&&this.register_once(t))},y_.prototype.save=function(){this.disabled||this.storage.set(this.name,Gm(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},y_.prototype.load_prop=function(e){return this.load(),this.props[e]},y_.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},y_.prototype.clear=function(){this.remove(),this.props={}},y_.prototype.register_once=function(e,t,r){return!!xm.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),xm.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},y_.prototype.register=function(e,t){return!!xm.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),xm.extend(this.props,e),this.save(),!0)},y_.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},y_.prototype.update_search_keyword=function(e){this.register(xm.info.searchInfo(e))},y_.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:xm.info.referringDomain(e)||"$direct"},"")},y_.prototype.get_referrer_info=function(){return xm.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},y_.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},y_.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},y_.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},y_.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},y_.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},y_.prototype.get_cross_subdomain=function(){return this.cross_subdomain},y_.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},y_.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Zy),o=this._get_or_create_queue(Ky),s=this._get_or_create_queue(Xy),a=this._get_or_create_queue(Qy),c=this._get_or_create_queue(t_),u=this._get_or_create_queue(r_,[]),l=this._get_or_create_queue(e_,[]);r===a_?(xm.extend(i,n),this._pop_from_people_queue(Qy,n),this._pop_from_people_queue(t_,n),this._pop_from_people_queue(Xy,n)):r===c_?(xm.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Xy,n)):r===u_?xm.each(n,function(e){xm.each([i,o,a,c],function(t){e in t&&delete t[e]}),xm.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===l_?(xm.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(Xy,n)):r===f_?(xm.each(n,function(e,t){xm.isArray(e)&&(t in c||(c[t]=[]),xm.each(e,function(e){xm.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Xy,n)):r===p_?(u.push(n),this._pop_from_people_queue(e_,n)):r===h_&&(l.push(n),this._pop_from_people_queue(Xy,n)),Im.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Im.log(t),this.save()},y_.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];xm.isUndefined(r)||xm.each(t,function(t,n){e===e_||e===r_?xm.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},y_.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},y_.prototype._get_queue_key=function(e){return e===Zy?a_:e===Ky?c_:e===Xy?u_:e===Qy?l_:e===e_?h_:e===r_?p_:e===t_?f_:void Im.error("Invalid queue:",e)},y_.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=xm.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},y_.prototype.set_event_timer=function(e,t){var r=this.load_prop(m_)||{};r[e]=t,this.props[m_]=r,this.save()},y_.prototype.remove_event_timer=function(e){var t=(this.load_prop(m_)||{})[e];return xm.isUndefined(t)||(delete this.props[m_][e],this.save()),t};var __,b_=function(e,t){throw new Error(e+" not available in this build.")},w_=0,k_="mixpanel",S_="base64",C_="$device:",x_=Mr.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,I_=!x_&&-1===ym.indexOf("MSIE")&&-1===ym.indexOf("Mozilla"),O_=null;dm.sendBeacon&&(O_=function(){return dm.sendBeacon.apply(dm,arguments)});var E_={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},M_={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:E_,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:S_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:$m,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:$m,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:om,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},R_=!1,A_=function(){},T_=function(e,t,r){var n,i=r===k_?__:__[r];if(i&&s_===w_)n=i;else{if(i&&!xm.isArray(i))return void Im.error("You have already initialized "+r);n=new A_}if(n._cached_groups={},n._init(e,t,r),n.people=new o_,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=xm.info.campaignParams(null),s={},a=!1;xm.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}Pr.DEBUG=Pr.DEBUG||n.get_config("debug");var c=s_===w_?"module":"snippet";return Mr.dispatchEvent(new Mr.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:xm.info}})),!xm.isUndefined(i)&&xm.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};A_.prototype.init=function(e,t,r){if(xm.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==k_){var n=T_(e,t,r);return __[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},A_.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||M_.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.hooks={},this.set_config(xm.extend({},M_,n,t,{name:r,token:e,callback_fn:(r===k_?r:k_+"."+r)+"._jsc"})),this.recorderManager=new Hy({mixpanelInstance:this,getConfigFunc:xm.bind(this.get_config,this),setConfigFunc:xm.bind(this.set_config,this),getTabIdFunc:xm.bind(this.get_tab_id,this),reportErrorFunc:xm.bind(this.report_error,this),getDistinctIdFunc:xm.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:b_}),this._jsc=$m,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(xm.localStorage.is_supported(!0)&&x_){if(this.init_batchers(),O_&&Mr.addEventListener){var i=xm.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Mr.addEventListener("pagehide",function(e){e.persisted&&i()}),Mr.addEventListener("visibilitychange",function(){"hidden"===gm.visibilityState&&i()})}}else this._batch_requests=!1,Im.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),xm.each(this.get_batcher_configs(),function(e){Im.log("Clearing batch queue "+e.queue_key),xm.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new y_(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=xm.UUID();this.get_distinct_id()||this.register_once({distinct_id:C_+o,$device_id:o},""),this.flags=new zy({getFullApiRoute:xm.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:xm.bind(this.get_config,this),setConfigFunc:xm.bind(this.set_config,this),getPropertyFunc:xm.bind(this.get_property,this),trackingFunc:xm.bind(this.track,this),loadExtraBundle:b_,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Fr}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(xm.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new Ey(this),this.autocapture.init()},A_.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Im.log("Tab ID initialization skipped due to disable_persistence config");else if(xm.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!xm.sessionStorage.get(r)&&xm.sessionStorage.get(t)||xm.sessionStorage.set(t,"$tab-"+xm.UUID()),xm.sessionStorage.set(r,"1"),this.tab_id=xm.sessionStorage.get(t),Mr.addEventListener("beforeunload",function(){xm.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},A_.prototype.get_tab_id=function(){return this.tab_id||null},A_.prototype._check_and_start_session_recording=Ct(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),A_.prototype._start_recording_on_event=Mm(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(xm.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),A_.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},A_.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},A_.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},A_.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},A_.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},A_.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},A_.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},A_.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},A_.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},A_.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=xm.info.campaignParams(null);xm.each(e,function(e,t){this.unregister(t)}.bind(this))}},A_.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(gm.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(xm.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(gm.referrer)},A_.prototype._dom_loaded=function(){xm.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||xm.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},A_.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!R_)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},A_.prototype._prepare_callback=function(e,t){if(xm.isUndefined(e))return null;if(x_){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},A_.prototype._send_request=function(e,t,r,n){var i=!0;if(I_)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!xm.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=xm.extend(o,r||{}),x_||(r.method="GET");var a="POST"===r.method,c=O_&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),x_||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),xm.extend(t,this.get_config("api_extra_query_params")),e+="?"+xm.HTTPBuildQuery(t);var l=this;if("img"in t){var h=gm.createElement("img");h.src=e,gm.body.appendChild(h)}else if(c){try{i=O_(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(x_)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),xm.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=xm.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=gm.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=gm.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},A_.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!Mr.AbortController)return Im.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:Pr.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+xm.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return Mr.fetch(o,c).then(function(e){return clearTimeout(a),e.ok?e.json():(Im.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};xm.each(n,function(e,t){M_.hasOwnProperty(t)&&(i[t]=e)}),xm.isEmptyObject(i)?(Im.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),Im.critical("Failed to fetch remote settings",e),r()})},A_.prototype._execute_array=function(e){var t,r=[],n=[],i=[];xm.each(e,function(e){e&&(t=e[0],xm.isArray(t)?i.push(e):"function"==typeof e?e.call(this):xm.isArray(e)&&"alias"===t?r.push(e):xm.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){xm.each(e,function(e){if(xm.isArray(e[0])){var r=t;xm.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},A_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},A_.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},A_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=xm.bind(function(e){return new uv(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:xm.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:xm.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:xm.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},A_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,xm.each(this.request_batchers,function(e){e.start()}))},A_.prototype.stop_batch_senders=function(){this._batch_requests=!1,xm.each(this.request_batchers,function(e){e.stop(),e.clear()})},A_.prototype.push=function(e){this._execute_array([e])},A_.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},A_.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},A_.prototype._encode_data_for_request=function(e){var t=Gm(e);return this.get_config("api_payload_format")===S_&&(t=xm.base64Encode(t)),{data:t}},A_.prototype._track_or_batch=function(e,t){var r=xm.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||$m;var a=!0,c=xm.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Im.log("MIXPANEL REQUEST:"),Im.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},A_.prototype.track=Ct(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=$m),xm.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=xm.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!xm.isUndefined(a)){var c=(new Date).getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?xm.info.marketingParams():{};t=xm.extend({},xm.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");xm.isArray(l)?xm.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),A_.prototype.set_group=Ct(function(e,t,r){xm.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),A_.prototype.add_group=Ct(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),A_.prototype.remove_group=Ct(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),A_.prototype.track_with_groups=Ct(function(e,t,r,n){var i=xm.extend({},t||{});return xm.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),A_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},A_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},A_.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new i_)._init(this,e,t),this._cached_groups[r]=n),n},A_.prototype.track_pageview=Ct(function(e,t){"object"!==(void 0===e?"undefined":_type_of(e))&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=xm.extend(xm.info.mpPageViewProperties(),xm.info.campaignParams(),xm.info.clickParams()),i=xm.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)}),A_.prototype.track_links=function(){return this._track_dom.call(this,Yy,arguments)},A_.prototype.track_forms=function(){return this._track_dom.call(this,Jy,arguments)},A_.prototype.time_event=function(e){xm.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var P_={persistent:!0},N_=function(e){var t;return t=xm.isObject(e)?e:xm.isUndefined(e)?{}:{days:e},xm.extend({},P_,t)};A_.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=N_(t);n.persistent?this.persistence.register(e,n.days):xm.extend(this.unpersisted_superprops,e)}},A_.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=N_(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),xm.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},A_.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=N_(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},A_.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},A_.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(C_))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(g_)&&(this.unregister(g_),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){Im.error("[flags] Error fetching flags during identify")})},A_.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=xm.UUID();this.register_once({distinct_id:C_+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},A_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},A_.prototype.alias=function(e,t){if(e===this.get_property(d_))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return xm.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(g_,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},A_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},A_.prototype.set_config=function(e){xm.isObject(e)&&(xm.extend(this.config,e),e.batch_size&&xm.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Pr.DEBUG=Pr.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),xm.isObject(e.hooks)&&(this.hooks={},xm.each(e.hooks,function(e,t){if(xm.isFunction(e))this.hooks[t]=[e];else if(xm.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)xm.isFunction(e[r])||Im.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Im.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},A_.prototype.get_config=function(e){return this.config[e]},A_.prototype._run_hook=function(e){var t=lm.call(arguments,1);return xm.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(xm.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},A_.prototype.get_property=function(e){return this.persistence.load_prop([e])},A_.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},A_.prototype.toString=function(){var e=this.get_config("name");return e!==k_&&(e=k_+"."+e),e},A_.prototype._event_is_disabled=function(e){return xm.isBlockedUA(ym)||this._flags.disable_all_events||xm.include(this.__disabled_events,e)},A_.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&xm.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!xm.cookie.get("mp_optout")||(xm.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},A_.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},A_.prototype._gdpr_call_func=function(e,t){return t=xm.extend({track:xm.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),xm.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},A_.prototype.opt_in_tracking=function(e){e=xm.extend({enable_persistence:!0},e),this._gdpr_call_func(bt,e),this._gdpr_update_persistence(e)},A_.prototype.opt_out_tracking=function(e){(e=xm.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(wt,e),this._gdpr_update_persistence(e)},A_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(kt,e)},A_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(St,e)},A_.prototype.clear_opt_in_out_tracking=function(e){e=xm.extend({enable_persistence:!0},e),this._gdpr_call_func(Ot,e),this._gdpr_update_persistence(e)},A_.prototype.report_error=function(e,t){Im.error.apply(Im.error,arguments);try{t||_instanceof(e,Error)||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(e){Im.error(e)}},A_.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},A_.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Im.log("remove_hook failed. Matching hook was not found"))},A_.prototype.init=A_.prototype.init,A_.prototype.reset=A_.prototype.reset,A_.prototype.enable=A_.prototype.enable,A_.prototype.disable=A_.prototype.disable,A_.prototype.time_event=A_.prototype.time_event,A_.prototype.track=A_.prototype.track,A_.prototype.track_links=A_.prototype.track_links,A_.prototype.track_forms=A_.prototype.track_forms,A_.prototype.track_pageview=A_.prototype.track_pageview,A_.prototype.register=A_.prototype.register,A_.prototype.register_once=A_.prototype.register_once,A_.prototype.unregister=A_.prototype.unregister,A_.prototype.identify=A_.prototype.identify,A_.prototype.alias=A_.prototype.alias,A_.prototype.name_tag=A_.prototype.name_tag,A_.prototype.set_config=A_.prototype.set_config,A_.prototype.get_config=A_.prototype.get_config,A_.prototype.get_api_host=A_.prototype.get_api_host,A_.prototype.get_property=A_.prototype.get_property,A_.prototype.get_distinct_id=A_.prototype.get_distinct_id,A_.prototype.toString=A_.prototype.toString,A_.prototype.opt_out_tracking=A_.prototype.opt_out_tracking,A_.prototype.opt_in_tracking=A_.prototype.opt_in_tracking,A_.prototype.has_opted_out_tracking=A_.prototype.has_opted_out_tracking,A_.prototype.has_opted_in_tracking=A_.prototype.has_opted_in_tracking,A_.prototype.clear_opt_in_out_tracking=A_.prototype.clear_opt_in_out_tracking,A_.prototype.get_group=A_.prototype.get_group,A_.prototype.set_group=A_.prototype.set_group,A_.prototype.add_group=A_.prototype.add_group,A_.prototype.remove_group=A_.prototype.remove_group,A_.prototype.add_hook=A_.prototype.add_hook,A_.prototype.remove_hook=A_.prototype.remove_hook,A_.prototype.track_with_groups=A_.prototype.track_with_groups,A_.prototype.start_batch_senders=A_.prototype.start_batch_senders,A_.prototype.stop_batch_senders=A_.prototype.stop_batch_senders,A_.prototype.start_session_recording=A_.prototype.start_session_recording,A_.prototype.stop_session_recording=A_.prototype.stop_session_recording,A_.prototype.pause_session_recording=A_.prototype.pause_session_recording,A_.prototype.resume_session_recording=A_.prototype.resume_session_recording,A_.prototype.get_session_recording_properties=A_.prototype.get_session_recording_properties,A_.prototype.get_session_replay_url=A_.prototype.get_session_replay_url,A_.prototype.get_tab_id=A_.prototype.get_tab_id,A_.prototype.DEFAULT_API_ROUTES=E_,A_.prototype.__get_recorder=A_.prototype.__get_recorder,A_.prototype.__get_recording_init_promise=A_.prototype.__get_recording_init_promise,y_.prototype.properties=y_.prototype.properties,y_.prototype.update_search_keyword=y_.prototype.update_search_keyword,y_.prototype.update_referrer_info=y_.prototype.update_referrer_info,y_.prototype.get_cross_subdomain=y_.prototype.get_cross_subdomain,y_.prototype.clear=y_.prototype.clear;var D_,F_={},L_=function(){__.init=function(e,t,r){if(r)return __[r]||(__[r]=F_[r]=T_(e,t,r),__[r]._loaded()),__[r];var n=__;F_[k_]?n=F_[k_]:e&&((n=T_(e,t,k_))._loaded(),F_[k_]=n),__=n,1===s_&&(Mr[k_]=__),xm.each(F_,function(e,t){t!==k_&&(__[t]=e)}),__._=xm}},j_=function(){function e(){e.done||(e.done=!0,R_=!0,I_=!1,xm.each(F_,function(e){e._dom_loaded()}))}if(gm.addEventListener)"complete"===gm.readyState?e():gm.addEventListener("DOMContentLoaded",e,!1);else if(gm.attachEvent){gm.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Mr.frameElement}catch(e){}gm.documentElement.doScroll&&t&&function t(){try{gm.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}xm.register_event(Mr,"load",e,!0)},U_=(b_=function(e,t){t()},s_=w_,__=new A_,L_(),__.init(),j_(),__),B_={},q_=["set","set_once","increment","append","union","remove"],z_=["set","set_once","union","remove"],V_={type:"mixpanel",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;if(!(null==n?void 0:n.apiKey))return!1;var i=vr(r),o=n.apiKey,s=(n.identify,n.group,n._state,_object_spread({track_pageview:!1,autocapture:!1},_object_without_properties(n,["apiKey","identify","group","_state"])));i.init(o,s);return _object_spread_props(_object_spread({},t),{settings:_object_spread_props(_object_spread({},n),{_state:{lastIdentity:{}}})})},push:function(e,t){return _async_to_generator(function(e,t){var r,n,i,o,c,h,p,d,g,m,v,y,_,b,w,k,S,C,x,I,O,E;return _ts_generator(this,function(M){switch(M.label){case 0:return r=t.config,n=t.rule,i=t.env,o=t.data,c=t.collector,d=vr(i),g=r.settings||{},m=(null==n?void 0:n.settings)||{},v=g._state||{},void 0===m.reset?[3,4]:a(m.reset)?(y=m.reset,[3,3]):[3,1];case 1:return[4,f(e,m.reset,{collector:c})];case 2:y=M.sent(),M.label=3;case 3:y&&(d.reset(),v.lastIdentity={}),M.label=4;case 4:return void 0===(_=null!==(h=m.identify)&&void 0!==h?h:g.identify)?[3,6]:[4,f(e,_,{collector:c})];case 5:b=M.sent(),u(b)&&(v.lastIdentity=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=_object_spread({},r),i=t.distinctId;return l(i)&&""!==i?(i===r.distinctId||(e.identify(i),n.distinctId=i),n):n}(d,b,v.lastIdentity)),M.label=6;case 6:return void 0===m.people?[3,8]:[4,f(e,m.people,{collector:c})];case 7:w=M.sent(),u(w)&&function(e,t){var r=!0,n=!1,i=void 0;try{for(var o,a=q_[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var c=o.value,h=t[c];u(h)&&0!==Object.keys(h).length&&e.people[c](h)}}catch(e){n=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}if(s(t.unset)){var p=t.unset.filter(function(e){return l(e)});p.length>0&&e.people.unset(p)}!0===t.delete_user&&e.people.delete_user()}(d,w),M.label=8;case 8:return void 0===(k=null!==(p=m.group)&&void 0!==p?p:g.group)?[3,10]:[4,f(e,k,{collector:c})];case 9:S=M.sent(),u(S)&&(C=S.key,x=S.id,l(C)&&""!==C&&(l(x)||s(x))&&""!==x&&d.set_group(C,x)),M.label=10;case 10:return void 0===m.groupProfile?[3,12]:[4,f(e,m.groupProfile,{collector:c})];case 11:I=M.sent(),u(I)&&function(e,t){var r=t.key,n=t.id;if(l(r)&&""!==r&&l(n)&&""!==n){var i=e.get_group(r,n),o=!0,a=!1,c=void 0;try{for(var h,p=z_[Symbol.iterator]();!(o=(h=p.next()).done);o=!0){var f=h.value,d=t[f];u(d)&&0!==Object.keys(d).length&&i[f](d)}}catch(e){a=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(a)throw c}}if(s(t.unset)){var g=t.unset.filter(function(e){return l(e)});g.length>0&&i.unset(g)}!0===t.delete&&i.delete()}}(d,I),M.label=12;case 12:return!0!==(null==n?void 0:n.silent)&&(O=l(null==n?void 0:n.name)?n.name:e.name,E=u(o)?o:{},d.track(O,E)),g._state=v,[2]}})}).apply(this,arguments)},on:function(e,t){var r;if("consent"===e&&t.data){var n=vr(t.env),i=t.data,o=null===(r=t.config)||void 0===r?void 0:r.consent;if(o&&0!==Object.keys(o).length)Object.keys(o).every(function(e){return!0===i[e]})?n.opt_in_tracking():n.opt_out_tracking()}},destroy:function(e){var t,r=e.config,n=e.env,i=vr(n);null===(t=i.stop_batch_senders)||void 0===t||t.call(i);var o=null==r?void 0:r.settings;(null==o?void 0:o._state)&&(o._state={lastIdentity:{}})}},W_=V_;return D_=kr,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var i=!0,o=!1,s=void 0;try{for(var a,c=function(){var i=a.value;wr.call(e,i)||i===r||yr(e,i,{get:function(){return t[i]},enumerable:!(n=_r(t,i))||n.enumerable})},u=br(t)[Symbol.iterator]();!(i=(a=u.next()).done);i=!0)c()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}}return e}(yr({},"__esModule",{value:!0}),D_)}();
|
|
1
|
+
"use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){asyncGeneratorStep(o,n,i,s,a,"next",e)}function a(e){asyncGeneratorStep(o,n,i,s,a,"throw",e)}s(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_set_prototype_of(i,r.prototype),i},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(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}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}function _non_iterable_rest(){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 _non_iterable_spread(){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 _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _object_without_properties(e,t){if(null==e)return{};var r,n,i,o={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=_object_without_properties_loose(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function _object_without_properties_loose(e,t){if(null==e)return{};var r,n,i={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:c(0)}),a(s,"throw",{value:c(1)}),a(s,"return",{value:c(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function c(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},i=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},o=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},s=function(e){return Array.isArray(e)},a=function(e){return"boolean"==typeof e},c=function(e){return void 0!==e},u=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!s(e)&&"[object Object]"===Object.prototype.toString.call(e)},l=function(e){return"string"==typeof e},h=function(e){return Er(e)?e:void 0},p=function(e,t,r){return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return _async_to_generator(function(){var n;return _ts_generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(i))];case 1:case 3:return[2,o.sent()];case 2:return n=o.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return o.sent(),[7];case 6:return[2]}})})()}},f=function(e){return _async_to_generator(function(e){var t,r,n,i,o,s,a=arguments;return _ts_generator(this,function(l){return t=a.length>1&&void 0!==a[1]?a[1]:{},r=a.length>2&&void 0!==a[2]?a[2]:{},c(e)?(o=u(e)&&e.consent||r.consent||(null===(i=r.collector)||void 0===i?void 0:i.consent),s=null!==(n=r.event)&&void 0!==n?n:u(e)?e:{},[2,d(e,t,_object_spread_props(_object_spread({},r),{consent:o,event:s}))]):[2]})}).apply(this,arguments)},d=function(e){return _async_to_generator(function(e){var t,r,n,i,o,a,u,l,h,f,d,g,m,v,y,_,b=arguments;return _ts_generator(this,function(w){switch(w.label){case 0:if(t=b.length>1&&void 0!==b[1]?b[1]:{},o=(r=b.length>2&&void 0!==b[2]?b[2]:{}).consent||(null===(i=r.collector)||void 0===i?void 0:i.consent),a=null!==(n=r.event)&&void 0!==n?n:{},!r.collector)throw new Error("getMappingValue: context.collector is required");u={event:a,mapping:t,collector:r.collector,logger:r.collector.logger,consent:o},l=s(t)?t:[t],h=!0,f=!1,d=void 0,w.label=1;case 1:w.trys.push([1,6,7,8]),g=l[Symbol.iterator](),w.label=2;case 2:return(h=(m=g.next()).done)?[3,5]:(v=m.value,[4,p(Tr,function(e){if(_instanceof(e,Ar))throw e;r.collector&&r.collector.status.failed++,u.logger.error("mapping processing failed",{event:a,error:e})})(e,v,_object_spread_props(_object_spread({},u),{mapping:v}))]);case 3:if(y=w.sent(),c(y))return[2,y];w.label=4;case 4:return h=!0,[3,2];case 5:return[3,8];case 6:return _=w.sent(),f=!0,d=_,[3,8];case 7:try{h||null==g.return||g.return()}finally{if(f)throw d}return[7];case 8:return[2]}})}).apply(this,arguments)},g=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},m=function(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)},v=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){m(o,n,i,s,a,"next",e)}function a(e){m(o,n,i,s,a,"throw",e)}s(void 0)})}},y=function(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e},_=function(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}}),t&&Br(e,t)},b=function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):_instanceof(e,t)},w=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},k=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},S=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},C=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},x=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},I=function(e){if(en[e])return en[e];var t=globalThis[e],r=t.prototype,n=e in Xr?Xr[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Qr?Qr[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!tn())return en[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?en[e]=u:r}catch(e){return r}},O=function(e,t,r){var n,i=e+"."+String(r);if(rn[i])return rn[i].call(t);var o=I(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(rn[i]=s,s.call(t)):t[r]},E=function(e,t,r){var n=e+"."+String(r);if(nn[n])return nn[n].bind(t);var i=I(e)[r];return"function"!=typeof i?t[r]:(nn[n]=i,i.bind(t))},M=function(e){return e.nodeType===e.ELEMENT_NODE},R=function(e){var t=e&&"host"in e&&"mode"in e&&on.host(e)||null;return Boolean(t&&"shadowRoot"in t&&on.shadowRoot(t)===e)},A=function(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)},T=function(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return P(e,r)}).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i},P=function(e,t){if(D(e)){var r;try{r=T(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?q(r,e.styleSheet.href):r}var n=e.cssText;return F(e)&&e.selectorText.includes(":")&&(n=N(n)),t?q(n,t):n},N=function(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")},D=function(e){return"styleSheet"in e},F=function(e){return"selectorText"in e},L=function(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&j(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a},j=function(e){return e.toLowerCase()},U=function(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?j(t):null},B=function(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null},q=function(e,t){return(e||"").replace(cn,function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(un.test(c)||ln.test(c))return"url("+u+c+u+")";if(hn.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,f=S(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"})},z=function(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")},V=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=z(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=z(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=z(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=z(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")},W=function(){return pn++},$=function(e,t){return t&&""!==t.trim()?H(e,t):t},H=function(e,t){var r=vn.get(e);if(r||(r=e.createElement("a"),vn.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href},G=function(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?$(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(mn),!(r>=t.length);){var o=n(gn);if(","===o.slice(-1))o=$(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=$(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?q(n,H(e)):"object"===t&&"data"===r?$(e,n):n:$(e,n):n},Y=function(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t},J=function(e,t,r,n){var i;if(M(e)){if(i=e,!on.childNodes(i).length)return!1}else{if(null===on.parentElement(e))return!1;i=on.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(yn(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1},Z=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}},K=function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=on.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=on.textContent(e),u&&c&&(c=q(c,H(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,on.parentElement(e)):c.replace(/[\S]/g,"*")),{type:Kr.Text,textContent:c||"",rootId:i}},X=function(e,t){for(var r,n,i=t.doc,o=t.blockClass,s=t.blockSelector,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,f=t.inlineImages,d=t.recordCanvas,g=t.keepIframeSrcFn,m=t.newlyAddedElement,v=void 0!==m&&m,y=t.rootId,_=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,s),w=function(e){if(b(e,HTMLFormElement))return"form";var t=j(e.tagName);return fn.test(t)?"div":t}(e),k={},S=e.attributes.length,C=0;C<S;C++){var x=e.attributes[C];Y(w,x.name,x.value)||(k[x.name]=G(i,w,j(x.name),x.value))}if("link"===w&&a){var I=Array.from(i.styleSheets).find(function(t){return t.href===e.href}),O=null;I&&(O=T(I)),O&&(delete k.rel,delete k.href,k._cssText=O)}if("style"===w&&e.sheet){var E=T(e.sheet);E&&(e.childNodes.length>1&&(E=V(E,e)),k._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var M=e.value,R=e.checked;"radio"!==k.type&&"checkbox"!==k.type&&"submit"!==k.type&&"button"!==k.type&&M?k.value=L({element:e,type:U(e),tagName:w,value:M,maskInputOptions:u,maskInputFn:l}):R&&(k.checked=R)}if("option"===w&&(e.selected&&!u.select?k.selected=!0:delete k.selected),"dialog"===w&&e.open&&(k.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&d)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=an in i?i[an]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var A=e.toDataURL(p.type,p.quality),P=i.createElement("canvas");P.width=e.width,P.height=e.height,A!==P.toDataURL(p.type,p.quality)&&(k.rr_dataURL=A)}if("img"===w&&f){$r||($r=i.createElement("canvas"),Hr=$r.getContext("2d"));var N=e,D=N.currentSrc||N.getAttribute("src")||"<unknown-src>",F=N.crossOrigin,B=function(){N.removeEventListener("load",B);try{$r.width=N.naturalWidth,$r.height=N.naturalHeight,Hr.drawImage(N,0,0),k.rr_dataURL=$r.toDataURL(p.type,p.quality)}catch(e){if("anonymous"!==N.crossOrigin)return N.crossOrigin="anonymous",void(N.complete&&0!==N.naturalWidth?B():N.addEventListener("load",B));console.warn("Cannot inline img src="+D+"! Error: "+e)}"anonymous"===N.crossOrigin&&(F?k.crossOrigin=F:N.removeAttribute("crossorigin"))};N.complete&&0!==N.naturalWidth?B():N.addEventListener("load",B)}if("audio"===w||"video"===w){var q=k;q.rr_mediaState=e.paused?"paused":"played",q.rr_mediaCurrentTime=e.currentTime,q.rr_mediaPlaybackRate=e.playbackRate,q.rr_mediaMuted=e.muted,q.rr_mediaLoop=e.loop,q.rr_mediaVolume=e.volume}if(v||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),_){var z=e.getBoundingClientRect(),W=z.width,$=z.height;k={class:k.class,rr_width:W+"px",rr_height:$+"px"}}"iframe"!==w||g(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:Kr.Element,tagName:w,attributes:k,childNodes:[],isSVG:(n=e,Boolean("svg"===n.tagName||n.ownerSVGElement)||void 0),needBlock:_,rootId:y,isCustom:r}},Q=function(e){return null==e?"":e.toLowerCase()},ee=function(e,t){new Pn(t).stringify(e)},te=function(e,t){var r=new $o(e,t),n=new Wo(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root},re=function(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then},ne=function(e){var t=!1,r=ns[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,ss,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,ss,r+"Exit"]:[r,r+"Exit"]},ie=function(e){return{eventIndex:0,events:"document"===e.type?["Document",ss,"DocumentExit"]:"root"===e.type?["Root",ss,"RootExit"]:ne(e),iterator:0,node:e,visitorIndex:0,visitors:[]}},oe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Ls(t)},se=function(e,t){new ga(t).stringify(e)},ae=function(e,t){var r=new Iu(e,t),n=new xu(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root},ce=function(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then},ue=function(e){var t=!1,r=ju[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,qu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,qu,r+"Exit"]:[r,r+"Exit"]},le=function(e){return{eventIndex:0,events:"document"===e.type?["Document",qu,"DocumentExit"]:"root"===e.type?["Root",qu,"RootExit"]:ue(e),iterator:0,node:e,visitorIndex:0,visitors:[]}},he=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new yl(t)},pe=function(e){if(Ll[e])return Ll[e];var t=globalThis[e],r=t.prototype,n=e in Dl?Dl[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Fl?Fl[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!jl())return Ll[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Ll[e]=u:r}catch(e){return r}},fe=function(e,t,r){var n,i=e+"."+String(r);if(Ul[i])return Ul[i].call(t);var o=pe(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Ul[i]=s,s.call(t)):t[r]},de=function(e,t,r){var n=e+"."+String(r);if(Bl[n])return Bl[n].bind(t);var i=pe(e)[r];return"function"!=typeof i?t[r]:(Bl[n]=i,i.bind(t))},ge=function(){return pe("MutationObserver").constructor},me=function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}},ve=function(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}},ye=function(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}},_e=function(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=ql.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=ql.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}},be=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},we=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},ke=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:ql.parentElement(e):null},Se=function(e,t,r,n){if(!e)return!1;var i=ke(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(yn(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1},Ce=function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===dn},xe=function(e){return Boolean(e.changedTouches)},Ie=function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},Oe=function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},Ee=function(e){return!!e&&(b(e,Nl)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ql.shadowRoot(e)))},Me=function(e){var t,r=null;return"getRootNode"in e&&(null==(t=ql.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ql.host(ql.getRootNode(e))&&(r=ql.host(ql.getRootNode(e))),r},Re=function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Me(r);)r=t;return r}(e);return ql.contains(t,r)},Ae=function(e){var t=e.ownerDocument;return!!t&&(ql.contains(t,e)||Re(e))},Te=function(e){return"__ln"in e},Pe=function(e,t,r){return 0!==e.size&&Ne(e,t)},Ne=function(e,t,r){var n=ql.parentNode(t);return!!n&&e.has(n)},De=function(e,t){return 0!==e.size&&ph(e,t)},Fe=function(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(e){}return e&&e.target},Le=function(e,t){var r=new lh;gh.push(r),r.init(e);var n=new(ge())(dh(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n},je=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(nh).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=j(e),a=function(e){return function(r){var s=Fe(r);if(!Se(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=ih.Mouse;break;case"touch":a=ih.Touch;break;case"pen":a=ih.Pen}a===ih.Touch?nh[e]===nh.MouseDown?c="TouchStart":nh[e]===nh.MouseUp&&(c="TouchEnd"):ih.Pen}else xe(r)&&(a=ih.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===ih.Touch||c.startsWith("Mouse")&&a===ih.Mouse)&&(a=null)):nh[e]===nh.Click&&(a=u,u=null);var l=xe(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;dh(t)(jr({type:nh[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(nh[e]){case nh.MouseDown:case nh.MouseUp:s=s.replace("mouse","pointer");break;case nh.TouchStart:case nh.TouchEnd:return}c.push(ve(s,a,r))}),dh(function(){c.forEach(function(e){return e()})})},Ue=function(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=dh(ye(dh(function(e){var s=Fe(e);if(s&&!Se(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=_e(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return ve("scroll",a,r)},Be=function(e){return function(e,t){if(We("CSSGroupingRule")&&b(e.parentRule,CSSGroupingRule)||We("CSSMediaRule")&&b(e.parentRule,CSSMediaRule)||We("CSSSupportsRule")&&b(e.parentRule,CSSSupportsRule)||We("CSSConditionRule")&&b(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])},qe=function(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}},ze=function(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(ql.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),dh(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}},Ve=function(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Le(e,e.doc));var i,o,s,a,c,u,l=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=ye(dh(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=dh(ye(dh(function(e){var t=Fe(e),r=xe(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=$l()),c.push({x:n,y:s,id:i.getId(t),timeOffset:$l()-o}),u("undefined"!=typeof DragEvent&&b(e,DragEvent)?rh.Drag:b(e,MouseEvent)?rh.MouseMove:rh.TouchMove)}),s,{trailing:!1})),h=[ve("mousemove",l,n),ve("touchmove",l,n),ve("drag",l,n)];return dh(function(){h.forEach(function(e){return e()})})}(e),h=je(e),p=Ue(e),f=(i={win:n},o=e.viewportResizeCb,s=i.win,a=-1,c=-1,u=dh(ye(dh(function(){var e=be(),t=we();a===e&&c===t||(o({width:Number(t),height:Number(e)}),a=e,c=t)}),200)),ve("resize",u,s)),d=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=Fe(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=ql.parentElement(t)),t&&l&&!(mh.indexOf(l)<0)&&!Se(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=U(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=L({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=vh.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){vh.set(e,r);var o=n.getId(e);dh(t)(jr({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return ve(e,dh(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return Wl(e[0],e[1],{set:function(){dh(p)({target:this,isTrusted:!1})}},!1,g)}))),dh(function(){d.forEach(function(e){return e()})})}(e),g=function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=dh(function(e){return ye(dh(function(o){var s=Fe(o);if(s&&!Se(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[ve("play",a(sh.Play),s),ve("pause",a(sh.Pause),s),ve("seeked",a(sh.Seeked),s),ve("volumechange",a(sh.VolumeChange),s),ve("ratechange",a(sh.RateChange),s)];return dh(function(){c.forEach(function(e){return e()})})}(e),m=function(){},v=function(){},y=function(){},_=function(){};e.recordDOM&&(m=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:dh(function(e,t,o){var s=o[0],a=o[1],c=qe(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:dh(function(e,t,o){var s=o[0],a=qe(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:dh(function(e,t,o){var s=o[0],a=qe(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:dh(function(e,t,o){var s=o[0],a=qe(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};$e("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:($e("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),$e("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),$e("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:dh(function(e,t,o){var s=o[0],a=o[1],c=qe(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(Be(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:dh(function(e,t,o){var s=o[0],a=qe(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(Be(t),[s])}]}),e.apply(t,o)})})}),dh(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),v=ze(e,e.doc),y=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:dh(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=qe(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:h},index:Be(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:dh(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=qe(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:Be(t.parentRule)}),e.apply(t,s)})}),dh(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}(e,{win:n}),e.collectFonts&&(_=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=me(r.fonts,"add",function(e){return function(r){return setTimeout(dh(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),dh(function(){i.forEach(function(e){return e()})})}(e)));for(var w,k=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=dh(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Se(h,n,i,!0)||Se(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),ve("selectionchange",a)}(e),C=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?me(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),x=[],I=S(e.plugins);!(w=I()).done;){var O=w.value;x.push(O.observer(O.callback,n,O.options))}return dh(function(){gh.forEach(function(e){return e.reset()}),null==r||r.disconnect(),l(),h(),p(),f(),d(),g(),m(),v(),y(),_(),k(),C(),x.forEach(function(e){return e()})})},We=function(e){return void 0!==window[e]},$e=function(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)},He=function(e,t,r,n){var i=[];try{var o=me(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Se(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===k(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}},Ge=function(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=me(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Ch(l,o,this),"tagName"in this.canvas&&!Se(this.canvas,n,i,!0)){var h=Ah(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}});c.push(u)}catch(n){var l=Wl(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=S(u);!(s=l()).done;)a();return c},Ye=function(e){var t;try{if(!(t=Nh&&(window.URL||window.webkitURL).createObjectURL(Nh)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+Ph,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}},Je=function(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}},Ze=function(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,d=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,C=e.maskInputFn,x=e.maskTextFn,I=e.hooks,O=e.packFn,E=e.sampling,M=void 0===E?{}:E,R=e.dataURLOptions,A=void 0===R?{}:R,T=e.mousemoveWait,P=e.recordDOM,N=void 0===P||P,D=e.recordCanvas,F=void 0!==D&&D,L=e.recordCrossOriginIframes,j=void 0!==L&&L,U=e.allowedIframeOrigins,B=e.recordAfter,q=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,z=e.userTriggeredOnInput,V=void 0!==z&&z,W=e.collectFonts,$=void 0!==W&&W,H=e.inlineImages,G=void 0!==H&&H,Y=e.plugins,J=e.keepIframeSrcFn,Z=void 0===J?function(){return!1}:J,K=e.ignoreCSSAttributes,X=void 0===K?new Set([]):K,Q=e.errorHandler;Ql=Q,j&&U&&U.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":k(n))+".");var i=Je(n);i&&t.add(i)}return Object.freeze(t)}(U)).size&&(t=void 0);var ee=!j||window.parent===window,te=!1;if(!ee)try{window.parent.document&&(te=!1)}catch(e){te=!0}if(ee&&!r)throw new Error("emit function is required");if(!ee&&!te)return function(){};void 0!==T&&void 0===M.mousemove&&(M.mousemove=T),qh.reset();var re,ne,ie=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},oe=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===re&&(re=window),"NodeList"in re&&!re.NodeList.prototype.forEach&&(re.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in re&&!re.DOMTokenList.prototype.forEach&&(re.DOMTokenList.prototype.forEach=Array.prototype.forEach);var se=0,ae=function(e){for(var t,r=S(Y||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return O&&!te&&(e=O(e)),e};Oh=function(e,o){var s,a=e;if(a.timestamp=$l(),!(null==(s=gh[0])?void 0:s.isFrozen())||a.type===th.FullSnapshot||a.type===th.IncrementalSnapshot&&a.data.source===rh.Mutation||gh.forEach(function(e){return e.unfreeze()}),ee)null==r||r(ae(a),o);else if(te){var c={type:"rrweb",event:ae(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=S(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===th.FullSnapshot)ne=a,se=0;else if(a.type===th.IncrementalSnapshot){if(a.data.source===rh.Mutation&&a.data.isAttachIframe)return;se++;var p=i&&se>=i,f=n&&a.timestamp-ne.timestamp>n;(p||f)&&Eh(!0)}};for(var ce,ue=function(e){Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Mutation},e)})},le=function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Scroll},e)})},he=function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.CanvasMutation},e)})},pe=new Fh({mutationCb:ue,adoptedStyleSheetCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.AdoptedStyleSheet},e)})}}),fe=new _h({mirror:qh,mutationCb:ue,stylesheetManager:pe,recordCrossOriginIframes:j,wrappedEmit:Oh}),de=S(Y||[]);!(ce=de()).done;){var ge=ce.value;ge.getMirror&&ge.getMirror({nodeMirror:qh,crossOriginIframeMirror:fe.crossOriginIframeMirror,crossOriginIframeStyleMirror:fe.crossOriginIframeStyleMirror})}var me=new Lh;Mh=new Dh({recordCanvas:F,mutationCb:he,win:window,blockClass:s,blockSelector:c,mirror:qh,sampling:M.canvas,dataURLOptions:A});var ye=new bh({mutationCb:ue,scrollCb:le,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:ie,dataURLOptions:A,maskTextFn:x,maskInputFn:C,recordCanvas:F,inlineImages:G,sampling:M,slimDOMOptions:oe,iframeManager:fe,stylesheetManager:pe,canvasManager:Mh,keepIframeSrcFn:Z,processedNodeManager:me},mirror:qh});Eh=function(e){if(void 0===e&&(e=!1),N){Oh({type:th.Meta,data:{href:window.location.href,width:we(),height:be()}},e),pe.reset(),ye.init(),gh.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new sn:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,_=r.maskAllInputs,b=void 0!==_&&_,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,C=void 0!==S&&S,x=r.dataURLOptions,I=r.preserveWhiteSpace,O=r.onSerialize,E=r.onIframeLoad,M=r.iframeLoadTimeout,R=r.onStylesheetLoad,A=r.stylesheetLoadTimeout,T=r.keepIframeSrcFn;return _n(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:m,recordCanvas:y,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:E,iframeLoadTimeout:M,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:void 0===T?function(){return!1}:T,newlyAddedElement:!1})}(document,{mirror:qh,blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:ie,maskTextFn:x,maskInputFn:C,slimDOM:oe,dataURLOptions:A,recordCanvas:F,inlineImages:G,onSerialize:function(e){Ie(e,qh)&&fe.addIframe(e),Oe(e,qh)&&pe.trackLinkElement(e),Ee(e)&&ye.addShadowRoot(ql.shadowRoot(e),document)},onIframeLoad:function(e,t){fe.attachIframe(e,t),ye.observeAttachShadow(e)},onStylesheetLoad:function(e,t){pe.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!t)return console.warn("Failed to snapshot the document");Oh({type:th.FullSnapshot,data:{node:t,initialOffset:_e(window)}},e),gh.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&pe.adoptStyleSheets(document.adoptedStyleSheets,qh.getId(document))}};try{var ke=[],Se=function(e){var t;return dh(Ve)({mutationCb:ue,mousemoveCb:function(e,t){return Oh({type:th.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.MouseInteraction},e)})},scrollCb:le,viewportResizeCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.ViewportResize},e)})},inputCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Input},e)})},mediaInteractionCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.StyleDeclaration},e)})},canvasMutationCb:he,fontCb:function(e){return Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Font},e)})},selectionCb:function(e){Oh({type:th.IncrementalSnapshot,data:jr({source:rh.Selection},e)})},customElementCb:function(e){Oh({type:th.IncrementalSnapshot,data:jr({source:rh.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:p,maskTextClass:d,maskTextSelector:m,maskInputOptions:ie,inlineStylesheet:y,sampling:M,recordDOM:N,recordCanvas:F,inlineImages:G,userTriggeredOnInput:V,collectFonts:$,doc:e,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Z,blockSelector:c,slimDOMOptions:oe,dataURLOptions:A,mirror:qh,iframeManager:fe,stylesheetManager:pe,shadowDomManager:ye,processedNodeManager:me,canvasManager:Mh,ignoreCSSAttributes:X,plugins:(null==(t=null==Y?void 0:Y.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Oh({type:th.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},I)};fe.addLoadListener(function(e){try{var t=e.contentDocument,r=Se(t);ke.push(r);var n=fe.getObserverCleanup(e);fe.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=ke.indexOf(r);-1!==e&&ke.splice(e,1),function(e){for(var t=gh.length-1;t>=0;t--)gh[t].getDoc()===e&&gh.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var Ce=function(){Eh(),ke.push(Se(document)),jh=!0};return"interactive"===document.readyState||"complete"===document.readyState?Ce():(ke.push(ve("DOMContentLoaded",function(){Oh({type:th.DomContentLoaded,data:{}}),"DOMContentLoaded"===q&&Ce()})),ke.push(ve("load",function(){Oh({type:th.Load,data:{}}),"load"===q&&Ce()},window))),function(){ke.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),me.destroy(),jh=!1,Ql=void 0}}catch(e){console.warn(e)}},Ke=function(e){if(Wh[e])return Wh[e];var t=globalThis[e],r=t.prototype,n=e in zh?zh[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Vh?Vh[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!$h())return Wh[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Wh[e]=u:r}catch(e){return r}},Xe=function(e,t,r){var n,i=e+"."+String(r);if(Hh[i])return Hh[i].call(t);var o=Ke(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Hh[i]=s,s.call(t)):t[r]},Qe=function(e,t,r){var n=e+"."+String(r);if(Gh[n])return Gh[n].bind(t);var i=Ke(e)[r];return"function"!=typeof i?t[r]:(Gh[n]=i,i.bind(t))},et=function(e,t){new up(t).stringify(e)},tt=function(e,t){var r=new wd(e,t),n=new bd(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root},rt=function(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then},nt=function(e){var t=!1,r=Pd[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Fd,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Fd,r+"Exit"]:[r,r+"Exit"]},it=function(e){return{eventIndex:0,events:"document"===e.type?["Document",Fd,"DocumentExit"]:"root"===e.type?["Root",Fd,"RootExit"]:nt(e),iterator:0,node:e,visitorIndex:0,visitors:[]}},ot=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fg(t)},st=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t},at=function(e){return"[object Object]"===Object.prototype.toString.call(e)},ct=function(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(at(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(at(e)&&Fg(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"...");return t}(t);if("bigint"===(void 0===t?"undefined":k(t)))return t.toString()+"n";if(b(t,Event)){var s={};for(var a in t){var c=t[a];Array.isArray(c)?s[a]=st(c.length?c[0]:null):s[a]=c}return s}return b(t,Node)?b(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:b(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})},ut=function(e,t,r){var n,i=r?Object.assign({},Bg,r):Bg,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=Dg.parse(n).map(function(e){return e.toString()}),s=[ct(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;b(t.reason,Error)?(r=t.reason,n=[ct("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[ct("Uncaught (in promise)",i.stringifyOptions),ct(t.reason,i.stringifyOptions)]);var o=Dg.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,p=S(i.level);!(h=p()).done;){var f=h.value;c.push(d(n,f))}return function(){c.forEach(function(e){return e()})};function d(t,r){var n=this;return t[r]?function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),!("assert"===r&&c[0]||a)){a=!0;try{var l=Dg.parse(new Error).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return ct(e,i.stringifyOptions)});++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[ct("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}},lt=function(e,t){Ug.add(e,t),jg||(jg=Vg(Ug.drain))},ht=function(e){var t,r=void 0===e?"undefined":_type_of(e);return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t},pt=function(){for(var e=0;e<this.chain.length;e++)ft(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0},ft=function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=ht(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}},dt=function(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&<(pt,t))},gt=function(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)},mt=function(e){this.def=e,this.triggered=!1},vt=function(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0},yt=function(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new vt(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&<(pt,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Wg.call(t,e)},function(e){dt.call(t,e)})}catch(e){dt.call(t,e)}},_t=function(e,t,r){var n=function(e){Im.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Im.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return xm.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}},bt=function(e,t){Tt(!0,e,t)},wt=function(e,t){Tt(!1,e,t)},kt=function(e,t){return"1"===Rt(e,t)},St=function(e,t){if(At(t))return Im.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Rt(e,t);return r&&Im.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r},Ct=function(e){return Pt(e,function(e){return this.get_config(e)})},xt=function(e){return Pt(e,function(e){return this._get_config(e)})},It=function(e){return Pt(e,function(e){return this._get_config(e)})},Ot=function(e,t){Et(t=t||{}).remove(Mt(e,t),!!t.crossSubdomainCookie,t.cookieDomain)},Et=function(e){return"localStorage"===(e=e||{}).persistenceType?xm.localStorage:xm.cookie},Mt=function(e,t){return((t=t||{}).persistencePrefix||ev)+e},Rt=function(e,t){return Et(t).get(Mt(e,t))},At=function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Mr,r=t.navigator||{},n=!1;return xm.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){xm.includes([!0,1,"1","yes"],e)&&(n=!0)}),n},Tt=function(e,t,r){xm.isString(t)&&t.length?(Et(r=r||{}).set(Mt(t,r),e?1:0,xm.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Im.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")},Pt=function(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=St(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Im.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}},Nt=function(e){for(var t={},r=Dt(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t},Dt=function(e){switch(_type_of(e.className)){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}},Ft=function(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!zt(e));return e},Lt=function(e,t,r,n,i,o){var s={$classes:Dt(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Gt(e,t,i,o)&&xm.each(Iv.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Yt(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=Ft(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s},jt=function(e,t,r,n){var i="";return Gt(e,t,r,n)&&e.childNodes&&e.childNodes.length&&xm.each(e.childNodes,function(e){Wt(e)&&e.textContent&&(i+=xm.trim(e.textContent).split(/(\s+)/).filter(Yt).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),xm.trim(i)},Ut=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(Vt(i,"a")||Vt(i,"button")||Vt(i,"input")||Vt(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t},Bt=function(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Tv.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Tv.critical("Error while checking selector: "+o,e)}}return!1},qt=function(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Tv.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Tv.critical("Error while checking selector: "+o,e)}}var s=Nt(e);for(i=0;i<Cv.length;i++)if(s[Cv[i]])return!0;return!1},zt=function(e){return e&&1===e.nodeType},Vt=function(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()},Wt=function(e){return e&&3===e.nodeType},$t=function(e,t){if(!e||Vt(e,"html")||!zt(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===bv;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===pv:t.type===fv;case"select":case"textarea":return t.type===pv;default:return t.type===fv}},Ht=function(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1},Gt=function(e,t,r,n){var i;if(!Bt(e,t,r,n))return!1;for(var o=e;o.parentNode&&!Vt(o,"body");o=o.parentNode){var s=Nt(o);for(i=0;i<xv.length;i++)if(s[xv[i]])return!1}var a=Nt(e);for(i=0;i<Sv.length;i++)if(a[Sv[i]])return!0;if(Vt(e,"input")||Vt(e,"select")||Vt(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!Ht(e)},Yt=function(e){if(null===e||xm.isUndefined(e))return!1;if("string"==typeof e){e=xm.trim(e);if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0},Jt=function(e){var t="onscrollend"in Mr,r=Mm(e),n=yv;if(!t){var i=null;r=Mm(function(){clearTimeout(i),i=setTimeout(e,100)}),n=_v}return{listener:r,eventType:n}},Zt=function(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<Rv.length;t++)if(e.hasAttribute(Rv[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Ov[r]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))},Kt=function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Ev[t])return!0;if(Zt(e))return!1;for(var r=e.parentElement,n=0;r&&n<Av;){if(Zt(r))return!1;if(r.getRootNode&&r.getRootNode()!==gm){var i=r.getRootNode();if(i.host&&Zt(i.host))return!1}r=r.parentElement,n++}return!!Mv[t]},Xt=function(e){return"composedPath"in e?e.composedPath():[]},Qt=function(e){var t=Xt(e);return t&&t.length>0?t[0]:e.target||e.srcElement},er=function(e){return e?Array.isArray(e)?e:[e]:[]},tr=function(e,t){return!!t&&!!e.closest(t)},rr=function(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Dv.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(Nv)||(!!Ht(e)||(t.input.maskAll?!tr(e,t.input.unmaskingSelector):!!tr(e,t.input.maskingSelector)||!!tr(e,Pv))))},nr=function(e,t){return!!e&&(!(!t.text._legacyClassRegex||!Jh(e,t.text._legacyClassRegex))||(t.text.maskAll?!tr(e,t.text.unmaskingSelector):!!tr(e,t.text.maskingSelector)||!!tr(e,Pv)))},ir=function(e){return Math.round(Date.now()-e.performance.now())},or=function(e){return"resource"===e.entryType},sr=function(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}},ar=function(e){return e&&"string"==typeof e&&e.length>jv?(Fv.error("Body truncated from "+e.length+" to "+jv+" characters"),e.substring(0,jv)+"... [truncated]"):e},cr=function(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())},ur=function(e,t,r){return!(!t[e]||0===t[e].length)&&Hm(r,t[e])},lr=function(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(_instanceof(e,Document))t=e.textContent;else if(_instanceof(e,FormData))t=xm.HTTPBuildQuery(e);else{if(!xm.isObject(e))return"Cannot read body of type "+(void 0===e?"undefined":_type_of(e));try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return ar(t)},hr=function(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(ar(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})},pr=function(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Lv.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Lv.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Lv,r),s=function(t){var r=t.requests.filter(function(e){return!Hm(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return Fv.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||or(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:ir(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return or(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:ir(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=sr(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,p=new Request(o,{method:i}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return cr("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return ur("request",r.recordBodyUrls,p.url)&&(f.requestBody=lr(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&cr("response",r.recordHeaders,i)&&(n[i]=o)}}}),f.responseHeaders=n,ur("response",r.recordBodyUrls,p.url)&&(f.responseBody=lr(h.response)),Uv(t,"xmlhttprequest",p.url,u,l).then(function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:ir(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody};e({requests:[n]})}else Fv.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){Fv.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=sr(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};c.headers.forEach(function(e,t){cr("request",r.recordHeaders,t)&&(p[t]=e)}),u.requestHeaders=p,ur("request",r.recordBodyUrls,c.url)&&(l=hr(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){cr("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,ur("response",r.recordBodyUrls,c.url)&&(h=hr(i).then(function(e){u.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return Uv(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:ir(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Fv.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Fv.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),c(),u()}},fr=function(){this.clicks=[]},dr=function(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]},gr=function(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null},mr=function(e){return null!=e},vr=function(e){var t;return null!==(t=null==e?void 0:e.mixpanel)&&void 0!==t?t:U_},yr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyNames,wr=Object.prototype.hasOwnProperty,kr={};!function(e,t){for(var r in t)yr(e,r,{get:t[r],enumerable:!0})}(kr,{DestinationMixpanel:function(){return B_},default:function(){return W_},destinationMixpanel:function(){return V_}});var Sr=Object.defineProperty,Cr=function(e,t){for(var r in t)Sr(e,r,{get:t[r],enumerable:!0})};Cr({},{stepId:function(){return e}});Cr({},{getDestination:function(){return t}});Cr({},{Level:function(){return Ir}});var xr,Ir=((xr=Ir||{})[xr.ERROR=0]="ERROR",xr[xr.WARN=1]="WARN",xr[xr.INFO=2]="INFO",xr[xr.DEBUG=3]="DEBUG",xr);Cr({},{getTransformer:function(){return r}});Cr({},{getSource:function(){return n}});function Or(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,i=0;i<r.length;i++){var o=r[i];if("*"===o&&s(n)){var a=r.slice(i+1).join("."),l=[],h=!0,p=!1,f=void 0;try{for(var d,g=n[Symbol.iterator]();!(h=(d=g.next()).done);h=!0){var m=Or(d.value,a,t);l.push(m)}}catch(e){p=!0,f=e}finally{try{h||null==g.return||g.return()}finally{if(p)throw f}}return l}if(void 0===(n=u(n)||s(n)?n[o]:void 0))break}return c(n)?n:t}function Er(e){return a(e)||l(e)||function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)||!c(e)||s(e)&&e.every(Er)||u(e)&&Object.values(e).every(Er)}Cr({},{getStore:function(){return i},getStoreValue:function(){return o}});var Mr,Rr,Ar=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t,r])).name="FatalError",Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}();function Tr(e,t,r){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,(s(t)?t:[t]).reduce(function(t,n){return _async_to_generator(function(){var i,o,a,u,f,g,m,v,y,_,b,w,k,S,C,x,I,O,E,M,R,A,T,P,N;return _ts_generator(this,function(D){switch(D.label){case 0:return[4,t];case 1:return(i=D.sent())?[2,i]:(o=l(n)?{key:n}:n,Object.keys(o).length?(a=o.condition,u=o.consent,f=o.fn,g=o.key,m=o.loop,v=o.map,y=o.set,_=o.validate,b=o.value,w=_object_spread_props(_object_spread({},r),{mapping:n}),(k=a)?[4,p(a,function(e){if(_instanceof(e,Ar))throw e;return w.logger.error("mapping condition failed",{event:w.event,error:e}),!1})(e,w)]:[3,3]):[2]);case 2:k=!D.sent(),D.label=3;case 3:return k?[2]:u&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(i){t[i]&&(r[i]=!0,e&&e[i]&&(n=!0))}),!!n&&r}(u,w.consent)?[2,b]:(S=c(b)?b:e,m?(C=_sliced_to_array(m,2),x=C[0],I=C[1],"this"!==x?[3,4]:(E=[e],[3,6])):[3,10]);case 4:return[4,d(e,x,w)];case 5:E=D.sent(),D.label=6;case 6:return s(O=E)?[4,Promise.all(O.map(function(e){return c(e)?d(e,I,w):void 0}))]:[3,8];case 7:return M=D.sent().filter(c),[3,9];case 8:M=void 0,D.label=9;case 9:return S=M,[3,21];case 10:return v?[4,Object.entries(v).reduce(function(t,r){var n=_sliced_to_array(r,2),i=n[0],o=n[1];return _async_to_generator(function(){var r,n;return _ts_generator(this,function(s){switch(s.label){case 0:return[4,t];case 1:return r=s.sent(),[4,d(e,o,w)];case 2:return n=s.sent(),[2,(c(n)&&(r[i]=n),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return S=D.sent(),[3,20];case 12:return y?[4,Promise.all(y.map(function(t){return Tr(e,t,w)}))]:[3,14];case 13:return R=S=D.sent(),[3,19];case 14:return g?(A=S=Or(e,g,b),[3,18]):[3,15];case 15:return(T=f)?[4,p(f,function(e){if(_instanceof(e,Ar))throw e;w.logger.error("mapping fn failed",{event:w.event,error:e})})(e,w)]:[3,17];case 16:T=S=D.sent(),D.label=17;case 17:A=T,D.label=18;case 18:R=A,D.label=19;case 19:D.label=20;case 20:D.label=21;case 21:return(P=_)?[4,p(_,function(e){if(_instanceof(e,Ar))throw e;return w.logger.error("mapping validate failed",{event:w.event,error:e}),!1})(S,w)]:[3,23];case 22:P=!D.sent(),D.label=23;case 23:return P&&(S=void 0),N=h(S),[2,c(N)?N:h(b)]}})})()},Promise.resolve(void 0))]})})()}Mr="undefined"==typeof window?{crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Rr={hostname:""},referrer:""},screen:{width:0,height:0},location:Rr,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}:window;var Pr={DEBUG:!1,LIB_VERSION:"2.80.0"},Nr="__mp_targeting",Dr="__mp_recorder",Fr="__MP_TARGETING_FILENAME__";function Lr(e,t,r){return(Lr=zr()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Br(i,r.prototype),i}).apply(null,arguments)}function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(this,arguments)}function Ur(e){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Br(e,t){return(Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qr(e){var t="function"==typeof Map?new Map:void 0;return qr=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Lr(e,arguments,Ur(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Br(n,e)},qr(e)}function zr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zr=function(){return!!e})()}var Vr,Wr,$r,Hr,Gr=Object.defineProperty,Yr=function(e,t,r){return function(e,t,r){return t in e?Gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},Jr=Object.defineProperty,Zr=function(e,t,r){return function(e,t,r){return t in e?Jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},Kr=((Wr=Kr||{})[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),Xr={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},en={},tn=function(){return!!globalThis.Zone},rn={},nn={},on={childNodes:function(e){return O("Node",e,"childNodes")},parentNode:function(e){return O("Node",e,"parentNode")},parentElement:function(e){return O("Node",e,"parentElement")},textContent:function(e){return O("Node",e,"textContent")},contains:function(e,t){return E("Node",e,"contains")(t)},getRootNode:function(e){return E("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?O("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?O("Element",e,"shadowRoot"):null},querySelector:function(e,t){return O("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return O("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return I("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}},sn=function(){function e(){Zr(this,"idNodeMap",new Map),Zr(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}(),an="__rrweb_original__",cn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,un=/^(?:[a-z+]+:)?\/\//i,ln=/^www\..*/i,hn=/^(data:)([^,]*),(.*)/i,pn=1,fn=new RegExp("[^a-z0-9-_:]"),dn=-2,gn=/^[^ \t\n\r\u000c]+/,mn=/^[, \t\n\r\u000c]+/,vn=new WeakMap;function yn(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&yn(on.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&yn(on.parentNode(e),t,r)}function _n(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,C=t.onSerialize,x=t.onIframeLoad,I=t.iframeLoadTimeout,O=void 0===I?5e3:I,E=t.onStylesheetLoad,T=t.stylesheetLoadTimeout,P=void 0===T?5e3:T,N=t.keepIframeSrcFn,D=void 0===N?function(){return!1}:N,F=t.newlyAddedElement,L=void 0!==F&&F,j=t.cssCaptured,U=void 0!==j&&j,q=t.needsMask,z=t.preserveWhiteSpace,V=void 0===z||z;q||(q=J(e,s,a,void 0===q));var $,H=function(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,_=t.cssCaptured,b=void 0!==_&&_,w=Z(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Kr.Document,childNodes:[],compatMode:e.compatMode}:{type:Kr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Kr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return X(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return K(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Kr.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Kr.Comment,textContent:on.textContent(e)||"",rootId:w};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:D,newlyAddedElement:L,cssCaptured:U});if(!H)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Kr.Comment)return!0;if(e.type===Kr.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"===B(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Q(e.attributes.name)||"icon"===Q(e.attributes.rel)||"apple-touch-icon"===Q(e.attributes.rel)||"shortcut icon"===Q(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Q(e.attributes.property).match(/^(og|twitter|fb):/)||Q(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Q(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Q(e.attributes.name)||"googlebot"===Q(e.attributes.name)||"bingbot"===Q(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Q(e.attributes.name)||"generator"===Q(e.attributes.name)||"framework"===Q(e.attributes.name)||"publisher"===Q(e.attributes.name)||"progid"===Q(e.attributes.name)||Q(e.attributes.property).match(/^article:/)||Q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Q(e.attributes.name)||"yandex-verification"===Q(e.attributes.name)||"csrf-token"===Q(e.attributes.name)||"p:domain_verify"===Q(e.attributes.name)||"verify-v1"===Q(e.attributes.name)||"verification"===Q(e.attributes.name)||"shopify-checkout-api-token"===Q(e.attributes.name)))return!0}}return!1}(H,m)||!V&&H.type===Kr.Text&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?dn:W();var G=Object.assign(H,{id:$});if(n.add(e,G),$===dn)return null;C&&C(e);var Y=!u;if(G.type===Kr.Element){Y=Y&&!G.needBlock,delete G.needBlock;var ee=on.shadowRoot(e);ee&&A(ee)&&(G.isShadowHost=!0)}if((G.type===Kr.Document||G.type===Kr.Element)&&Y){m.headWhitespace&&G.type===Kr.Element&&"head"===G.tagName&&(V=!1);var te={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:P,keepIframeSrcFn:D,cssCaptured:!1};if(G.type===Kr.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else{G.type===Kr.Element&&void 0!==G.attributes._cssText&&"string"==typeof G.attributes._cssText&&(te.cssCaptured=!0);for(var re,ne=S(Array.from(on.childNodes(e)));!(re=ne()).done;){var ie=_n(re.value,te);ie&&G.childNodes.push(ie)}}var oe=null;if(M(e)&&(oe=on.shadowRoot(e)))for(var se,ae=S(Array.from(on.childNodes(oe)));!(se=ae()).done;){var ce=_n(se.value,te);ce&&(A(oe)&&(ce.isShadow=!0),G.childNodes.push(ce))}}var ue=on.parentNode(e);return ue&&R(ue)&&A(ue)&&(G.isShadow=!0),G.type===Kr.Element&&"iframe"===G.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&x){var r=_n(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:P,keepIframeSrcFn:D});r&&x(e,r)}},O),G.type===Kr.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===B(G.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(E){var t=_n(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:P,keepIframeSrcFn:D});t&&E(e,t)}},P),G}var bn={exports:{}},wn=String,kn=function(){return{isColorSupported:!1,reset:wn,bold:wn,dim:wn,italic:wn,underline:wn,inverse:wn,hidden:wn,strikethrough:wn,black:wn,red:wn,green:wn,yellow:wn,blue:wn,magenta:wn,cyan:wn,white:wn,gray:wn,bgBlack:wn,bgRed:wn,bgGreen:wn,bgYellow:wn,bgBlue:wn,bgMagenta:wn,bgCyan:wn,bgWhite:wn}};bn.exports=kn(),bn.exports.createColors=kn;var Sn=bn.exports,Cn=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return b(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),xn=Sn,In=Cn,On=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}_(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=xn.isColorSupported),In&&e&&(r=In(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=xn.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(qr(Error)),En=On;On.default=On;var Mn={};Mn.isClean=Symbol("isClean"),Mn.my=Symbol("my");var Rn={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},An=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Rn[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Rn[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=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},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=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},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=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)},e}(),Tn=An;An.default=An;var Pn=Tn,Nn=ee;ee.default=ee;var Dn=Mn.isClean,Fn=Mn.my,Ln=En,jn=Tn,Un=Nn;function Bn(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Bn(e,r)}):("object"===o&&null!==i&&(i=Bn(i)),r[n]=i)}return r}var qn=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Dn]=!1,this[Fn]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Bn(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Ln(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Dn]){this[Dn]=!1;for(var e=this;e=e.parent;)e[Dn]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new jn).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":k(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Un),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},y(e,[{key:"proxyOf",get:function(){return this}}]),e}(),zn=qn;qn.default=qn;var Vn=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=jr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return _(t,e),y(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(zn),Wn=Vn;Vn.default=Vn;var $n=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hn=Cn.SourceMapConsumer,Gn=Cn.SourceMapGenerator,Yn=Cn.existsSync,Jn=Cn.readFileSync,Zn=Cn.dirname,Kn=Cn.join,Xn=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Zn(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Hn(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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 r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Zn(e),Yn(e))return this.mapFile=e,Jn(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(b(t,Hn))return Gn.fromSourceMap(t).toString();if(b(t,Gn))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Kn(Zn(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Qn=Xn;Xn.default=Xn;var ei=Cn.SourceMapConsumer,ti=Cn.SourceMapGenerator,ri=Cn.fileURLToPath,ni=Cn.pathToFileURL,ii=Cn.isAbsolute,oi=Cn.resolve,si=$n,ai=Cn,ci=En,ui=Qn,li=Symbol("fromOffsetCache"),hi=Boolean(ei&&ti),pi=Boolean(oi&&ii),fi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!pi||/^\w+:\/\//.test(t.from)||ii(t.from)?this.file=t.from:this.file=oi(t.from)),pi&&hi){var r=new ui(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+si(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new ci(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new ci(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ni&&(i.input.url=ni(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[li])t=this[li];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[li]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=ii(a.source)?ni(a.source):new URL(a.source,this.map.consumer().sourceRoot||ni(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!ri)throw new Error("file: protocol is not available in this PostCSS build");c.file=ri(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=jr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},y(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),di=fi;fi.default=fi,ai&&ai.registerInput&&ai.registerInput(fi);var gi=Cn.SourceMapConsumer,mi=Cn.SourceMapGenerator,vi=Cn.dirname,yi=Cn.relative,_i=Cn.resolve,bi=Cn.sep,wi=Cn.pathToFileURL,ki=di,Si=Boolean(gi&&mi),Ci=Boolean(vi&&_i&&yi&&bi),xi=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||vi(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new gi(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ci&&Si&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=mi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new mi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new mi({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?vi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=vi(_i(r,this.mapOpts.annotation)));var n=yi(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ki(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wi){var r=wi(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===bi&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ii=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return _(t,e),t}(zn),Oi=Ii;Ii.default=Ii;var Ei,Mi,Ri,Ai,Ti=Mn.isClean,Pi=Mn.my,Ni=Wn,Di=Oi;function Fi(e){return e.map(function(e){return e.nodes&&(e.nodes=Fi(e.nodes)),delete e.source,e})}function Li(e){if(e[Ti]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){Li(t.value)}}var ji=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Fi(Ei(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ni(e)]}else if(e.selector)e=[new Mi(e)];else if(e.name)e=[new Ri(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Di(e)]}return e.map(function(e){return e[Pi]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ti]&&Li(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},y(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]}}]),t}(zn);ji.registerParse=function(e){Ei=e},ji.registerRule=function(e){Mi=e},ji.registerAtRule=function(e){Ri=e},ji.registerRoot=function(e){Ai=e};var Ui=ji;ji.default=ji,ji.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Ri.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mi.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ni.prototype):"comment"===e.type?Object.setPrototypeOf(e,Di.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ai.prototype),e[Pi]=!0,e.nodes&&e.nodes.forEach(function(e){ji.rebuild(e)})};var Bi,qi,zi=function(e){function t(t){var r;return(r=e.call(this,jr({type:"document"},t))||this).nodes||(r.nodes=[]),r}return _(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Bi(new qi,this,e).stringify()},t}(Ui);zi.registerLazyResult=function(e){Bi=e},zi.registerProcessor=function(e){qi=e};var Vi=zi;zi.default=zi;var Wi={},$i=function(e){Wi[e]||(Wi[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Hi=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=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},e}(),Gi=Hi;Hi.default=Hi;var Yi=Gi,Ji=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Yi(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},y(e,[{key:"content",get:function(){return this.css}}]),e}(),Zi=Ji;Ji.default=Ji;var Ki="'".charCodeAt(0),Xi='"'.charCodeAt(0),Qi="\\".charCodeAt(0),eo="/".charCodeAt(0),to="\n".charCodeAt(0),ro=" ".charCodeAt(0),no="\f".charCodeAt(0),io="\t".charCodeAt(0),oo="\r".charCodeAt(0),so="[".charCodeAt(0),ao="]".charCodeAt(0),co="(".charCodeAt(0),uo=")".charCodeAt(0),lo="{".charCodeAt(0),ho="}".charCodeAt(0),po=";".charCodeAt(0),fo="*".charCodeAt(0),go=":".charCodeAt(0),mo="@".charCodeAt(0),vo=/[\t\n\f\r "#'()/;[\\\]{}]/g,yo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_o=/.[\r\n"'(/\\]/,bo=/[\da-f]/i,wo=Ui,ko=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}_(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(wo),So=ko;ko.default=ko,wo.registerAtRule(ko);var Co,xo,Io=Ui,Oo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}_(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Co(new xo,this,e).stringify()},t}(Io);Oo.registerLazyResult=function(e){Co=e},Oo.registerProcessor=function(e){xo=e};var Eo=Oo;Oo.default=Oo,Io.registerRoot(Oo);var Mo={comma:function(e){return Mo.split(e,[","],!0)},space:function(e){return Mo.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Ro=Mo;Mo.default=Mo;var Ao=Ui,To=Ro,Po=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return _(t,e),y(t,[{key:"selectors",get:function(){return To.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Ao),No=Po;Po.default=Po,Ao.registerRule(Po);var Do=Wn,Fo=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case to:case ro:case io:case oo:case no:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===ro||r===to||r===io||r===oo||r===no);h=["space",p.slice(g,n)],g=n-1;break;case so:case ao:case lo:case ho:case go:case po:case uo:var _=String.fromCharCode(r);h=[_,_,g];break;case co:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Ki&&l!==Xi&&l!==ro&&l!==to&&l!==io&&l!==no&&l!==oo){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Qi;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||_o.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Ki:case Xi:i=r===Ki?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Qi;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case mo:vo.lastIndex=g+1,vo.test(p),n=0===vo.lastIndex?p.length-1:vo.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Qi:for(n=g,s=!0;p.charCodeAt(n+1)===Qi;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==eo&&r!==ro&&r!==to&&r!==io&&r!==oo&&r!==no&&(n+=1,bo.test(p.charAt(n)))){for(;bo.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===ro&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===eo&&p.charCodeAt(g+1)===fo?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(yo.lastIndex=g+1,yo.test(p),n=0===yo.lastIndex?p.length-1:yo.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Lo=Oi,jo=So,Uo=Eo,Bo=No,qo={empty:!0,space:!0},zo=function(){function e(e){this.input=e,this.root=new Uo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new jo;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.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=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Lo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Fo(this.input)},t.decl=function(e,t){var r=new Do;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Bo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=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)},t.endFile=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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=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)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=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()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",qo[a]||qo[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Bo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Vo=Ui,Wo=zo,$o=di,Ho=te;te.default=te,Vo.registerParse(te);var Go=Mn.isClean,Yo=Mn.my,Jo=xi,Zo=Nn,Ko=Ui,Xo=Vi,Qo=$i,es=Zi,ts=Ho,rs=Eo,ns={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},is={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},os={Once:!0,postcssPlugin:!0,prepare:!0},ss=0;function as(e){return e[Go]=!1,e.nodes&&e.nodes.forEach(function(e){return as(e)}),e}var cs={},us=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(b(r,e)||b(r,es))i=as(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=ts;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Yo]&&Ko.rebuild(i)}else i=as(r);this.result=new es(t,i,n),this.helpers=jr({},cs,{postcss:cs,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?jr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!is[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!os[o])if("object"===k(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return v(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!re(n))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Go])return[3,14];o[Go]=!0,s=[ie(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!re(a))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return re(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Zo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Jo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(re(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var i=this.result.root;!i[Go];)i[Go]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=S(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Qo("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)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(re(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Go])return a[Go]=!0,void e.push(ie(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,l===ss)return void(r.nodes&&r.nodes.length&&(r[Go]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Go]=!0;for(var r,n=ne(e),i=S(n);!(r=i()).done;){var o=r.value;if(o===ss)e.nodes&&e.each(function(e){e[Go]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},y(e,[{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"}}]),e}();us.registerPostcss=function(e){cs=e};var ls=us;us.default=us,rs.registerLazyResult(us),Xo.registerLazyResult(us);var hs=xi,ps=Nn,fs=$i,ds=Ho,gs=Zi,ms=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=ps;this.result=new gs(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new hs(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||fs("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)},t.toString=function(){return this._css},t.warnings=function(){return[]},y(e,[{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=ds;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),vs=ms;ms.default=ms;var ys=vs,_s=ls,bs=Vi,ws=Eo,ks=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":k(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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new _s(this,e,t):new ys(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Ss=ks;ks.default=ks,ws.registerProcessor(ks),bs.registerProcessor(ks);var Cs=Wn,xs=Qn,Is=Oi,Os=So,Es=di,Ms=Eo,Rs=No;function As(e,t){if(Array.isArray(e))return e.map(function(e){return As(e)});var r=e.inputs,n=w(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=jr({},i.value,{__proto__:Es.prototype});s.map&&(s.map=jr({},s.map,{__proto__:xs.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return As(e,t)})),n.source){var a=n.source,c=a.inputId,u=w(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Ms(n);if("decl"===n.type)return new Cs(n);if("rule"===n.type)return new Rs(n);if("comment"===n.type)return new Is(n);if("atrule"===n.type)return new Os(n);throw new Error("Unknown node type: "+e.type)}var Ts=As;As.default=As;var Ps=En,Ns=Wn,Ds=ls,Fs=Ui,Ls=Ss,js=Nn,Us=Ts,Bs=Vi,qs=Gi,zs=Oi,Vs=So,Ws=Zi,$s=di,Hs=Ho,Gs=Ro,Ys=No,Js=Eo,Zs=zn;oe.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Ls).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return oe([i(r)]).process(e,t)},i},oe.stringify=js,oe.parse=Hs,oe.fromJSON=Us,oe.list=Gs,oe.comment=function(e){return new zs(e)},oe.atRule=function(e){return new Vs(e)},oe.decl=function(e){return new Ns(e)},oe.rule=function(e){return new Ys(e)},oe.root=function(e){return new Js(e)},oe.document=function(e){return new Bs(e)},oe.CssSyntaxError=Ps,oe.Declaration=Ns,oe.Container=Fs,oe.Processor=Ls,oe.Document=Bs,oe.Comment=zs,oe.Warning=qs,oe.AtRule=Vs,oe.Result=Ws,oe.Input=$s,oe.Rule=Ys,oe.Root=Js,oe.Node=Zs,Ds.registerPostcss(oe);var Ks=oe;oe.default=oe;var Xs,Qs=(Xs=Ks)&&Xs.__esModule&&Object.prototype.hasOwnProperty.call(Xs,"default")?Xs.default:Xs;Qs.stringify,Qs.fromJSON,Qs.plugin,Qs.parse,Qs.list,Qs.document,Qs.comment,Qs.atRule,Qs.rule,Qs.decl,Qs.root,Qs.CssSyntaxError,Qs.Declaration,Qs.Container,Qs.Processor,Qs.Document,Qs.Comment,Qs.Warning,Qs.AtRule,Qs.Result,Qs.Input,Qs.Rule,Qs.Root,Qs.Node;var ea=Object.defineProperty,ta=function(e,t,r){return function(e,t,r){return t in e?ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},ra={exports:{}},na=String,ia=function(){return{isColorSupported:!1,reset:na,bold:na,dim:na,italic:na,underline:na,inverse:na,hidden:na,strikethrough:na,black:na,red:na,green:na,yellow:na,blue:na,magenta:na,cyan:na,white:na,gray:na,bgBlack:na,bgRed:na,bgGreen:na,bgYellow:na,bgBlue:na,bgMagenta:na,bgCyan:na,bgWhite:na}};ra.exports=ia(),ra.exports.createColors=ia;var oa=ra.exports,sa=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return b(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),aa=oa,ca=sa,ua=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}_(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=aa.isColorSupported),ca&&e&&(r=ca(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=aa.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(qr(Error)),la=ua;ua.default=ua;var ha={};ha.isClean=Symbol("isClean"),ha.my=Symbol("my");var pa={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},fa=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return pa[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=pa[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=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},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=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},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=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)},e}(),da=fa;fa.default=fa;var ga=da,ma=se;se.default=se;var va=ha.isClean,ya=ha.my,_a=la,ba=da,wa=ma;function ka(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ka(e,r)}):("object"===o&&null!==i&&(i=ka(i)),r[n]=i)}return r}var Sa=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[va]=!1,this[ya]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ka(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new _a(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[va]){this[va]=!1;for(var e=this;e=e.parent;)e[va]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new ba).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":k(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=wa),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},y(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ca=Sa;Sa.default=Sa;var xa=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=jr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return _(t,e),y(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Ca),Ia=xa;xa.default=xa;var Oa=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Ea=sa.SourceMapConsumer,Ma=sa.SourceMapGenerator,Ra=sa.existsSync,Aa=sa.readFileSync,Ta=sa.dirname,Pa=sa.join,Na=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ta(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ea(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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 r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ta(e),Ra(e))return this.mapFile=e,Aa(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(b(t,Ea))return Ma.fromSourceMap(t).toString();if(b(t,Ma))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Pa(Ta(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Da=Na;Na.default=Na;var Fa=sa.SourceMapConsumer,La=sa.SourceMapGenerator,ja=sa.fileURLToPath,Ua=sa.pathToFileURL,Ba=sa.isAbsolute,qa=sa.resolve,za=Oa,Va=sa,Wa=la,$a=Da,Ha=Symbol("fromOffsetCache"),Ga=Boolean(Fa&&La),Ya=Boolean(qa&&Ba),Ja=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ya||/^\w+:\/\//.test(t.from)||Ba(t.from)?this.file=t.from:this.file=qa(t.from)),Ya&&Ga){var r=new $a(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+za(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Wa(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Wa(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ua&&(i.input.url=Ua(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ha])t=this[Ha];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ha]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:qa(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ba(a.source)?Ua(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ua(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!ja)throw new Error("file: protocol is not available in this PostCSS build");c.file=ja(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=jr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},y(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Za=Ja;Ja.default=Ja,Va&&Va.registerInput&&Va.registerInput(Ja);var Ka=sa.SourceMapConsumer,Xa=sa.SourceMapGenerator,Qa=sa.dirname,ec=sa.relative,tc=sa.resolve,rc=sa.sep,nc=sa.pathToFileURL,ic=Za,oc=Boolean(Ka&&Xa),sc=Boolean(Qa&&tc&&ec&&rc),ac=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Qa(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ka(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),sc&&oc&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Xa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Xa({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Xa({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Qa(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Qa(tc(r,this.mapOpts.annotation)));var n=ec(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ic(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(nc){var r=nc(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rc&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),cc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return _(t,e),t}(Ca),uc=cc;cc.default=cc;var lc,hc,pc,fc,dc=ha.isClean,gc=ha.my,mc=Ia,vc=uc;function yc(e){return e.map(function(e){return e.nodes&&(e.nodes=yc(e.nodes)),delete e.source,e})}function _c(e){if(e[dc]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){_c(t.value)}}var bc=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=yc(lc(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new mc(e)]}else if(e.selector)e=[new hc(e)];else if(e.name)e=[new pc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new vc(e)]}return e.map(function(e){return e[gc]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[dc]&&_c(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},y(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]}}]),t}(Ca);bc.registerParse=function(e){lc=e},bc.registerRule=function(e){hc=e},bc.registerAtRule=function(e){pc=e},bc.registerRoot=function(e){fc=e};var wc=bc;bc.default=bc,bc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,pc.prototype):"rule"===e.type?Object.setPrototypeOf(e,hc.prototype):"decl"===e.type?Object.setPrototypeOf(e,mc.prototype):"comment"===e.type?Object.setPrototypeOf(e,vc.prototype):"root"===e.type&&Object.setPrototypeOf(e,fc.prototype),e[gc]=!0,e.nodes&&e.nodes.forEach(function(e){bc.rebuild(e)})};var kc,Sc,Cc=function(e){function t(t){var r;return(r=e.call(this,jr({type:"document"},t))||this).nodes||(r.nodes=[]),r}return _(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new kc(new Sc,this,e).stringify()},t}(wc);Cc.registerLazyResult=function(e){kc=e},Cc.registerProcessor=function(e){Sc=e};var xc=Cc;Cc.default=Cc;var Ic={},Oc=function(e){Ic[e]||(Ic[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Ec=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=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},e}(),Mc=Ec;Ec.default=Ec;var Rc=Mc,Ac=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Rc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},y(e,[{key:"content",get:function(){return this.css}}]),e}(),Tc=Ac;Ac.default=Ac;var Pc="'".charCodeAt(0),Nc='"'.charCodeAt(0),Dc="\\".charCodeAt(0),Fc="/".charCodeAt(0),Lc="\n".charCodeAt(0),jc=" ".charCodeAt(0),Uc="\f".charCodeAt(0),Bc="\t".charCodeAt(0),qc="\r".charCodeAt(0),zc="[".charCodeAt(0),Vc="]".charCodeAt(0),Wc="(".charCodeAt(0),$c=")".charCodeAt(0),Hc="{".charCodeAt(0),Gc="}".charCodeAt(0),Yc=";".charCodeAt(0),Jc="*".charCodeAt(0),Zc=":".charCodeAt(0),Kc="@".charCodeAt(0),Xc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,eu=/.[\r\n"'(/\\]/,tu=/[\da-f]/i,ru=wc,nu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}_(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(ru),iu=nu;nu.default=nu,ru.registerAtRule(nu);var ou,su,au=wc,cu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}_(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ou(new su,this,e).stringify()},t}(au);cu.registerLazyResult=function(e){ou=e},cu.registerProcessor=function(e){su=e};var uu=cu;cu.default=cu,au.registerRoot(cu);var lu={comma:function(e){return lu.split(e,[","],!0)},space:function(e){return lu.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},hu=lu;lu.default=lu;var pu=wc,fu=hu,du=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return _(t,e),y(t,[{key:"selectors",get:function(){return fu.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(pu),gu=du;du.default=du,pu.registerRule(du);var mu=Ia,vu=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Lc:case jc:case Bc:case qc:case Uc:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===jc||r===Lc||r===Bc||r===qc||r===Uc);h=["space",p.slice(g,n)],g=n-1;break;case zc:case Vc:case Hc:case Gc:case Zc:case Yc:case $c:var _=String.fromCharCode(r);h=[_,_,g];break;case Wc:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Pc&&l!==Nc&&l!==jc&&l!==Lc&&l!==Bc&&l!==Uc&&l!==qc){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Dc;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||eu.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Pc:case Nc:i=r===Pc?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Dc;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Kc:Xc.lastIndex=g+1,Xc.test(p),n=0===Xc.lastIndex?p.length-1:Xc.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Dc:for(n=g,s=!0;p.charCodeAt(n+1)===Dc;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Fc&&r!==jc&&r!==Lc&&r!==Bc&&r!==qc&&r!==Uc&&(n+=1,tu.test(p.charAt(n)))){for(;tu.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===jc&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Fc&&p.charCodeAt(g+1)===Jc?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Qc.lastIndex=g+1,Qc.test(p),n=0===Qc.lastIndex?p.length-1:Qc.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},yu=uc,_u=iu,bu=uu,wu=gu,ku={empty:!0,space:!0},Su=function(){function e(e){this.input=e,this.root=new bu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new _u;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.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=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new yu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=vu(this.input)},t.decl=function(e,t){var r=new mu;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new wu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=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)},t.endFile=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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=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)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=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()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",ku[a]||ku[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new wu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Cu=wc,xu=Su,Iu=Za,Ou=ae;ae.default=ae,Cu.registerParse(ae);var Eu=ha.isClean,Mu=ha.my,Ru=ac,Au=ma,Tu=wc,Pu=xc,Nu=Oc,Du=Tc,Fu=Ou,Lu=uu,ju={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uu={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},Bu={Once:!0,postcssPlugin:!0,prepare:!0},qu=0;function zu(e){return e[Eu]=!1,e.nodes&&e.nodes.forEach(function(e){return zu(e)}),e}var Vu={},Wu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(b(r,e)||b(r,Du))i=zu(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Fu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Mu]&&Tu.rebuild(i)}else i=zu(r);this.result=new Du(t,i,n),this.helpers=jr({},Vu,{postcss:Vu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?jr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!Uu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Bu[o])if("object"===k(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return v(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!ce(n))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Eu])return[3,14];o[Eu]=!0,s=[le(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!ce(a))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return ce(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Au;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ru(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(ce(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var i=this.result.root;!i[Eu];)i[Eu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=S(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Nu("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)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ce(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Eu])return a[Eu]=!0,void e.push(le(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,l===qu)return void(r.nodes&&r.nodes.length&&(r[Eu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Eu]=!0;for(var r,n=ue(e),i=S(n);!(r=i()).done;){var o=r.value;if(o===qu)e.nodes&&e.each(function(e){e[Eu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},y(e,[{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"}}]),e}();Wu.registerPostcss=function(e){Vu=e};var $u=Wu;Wu.default=Wu,Lu.registerLazyResult(Wu),Pu.registerLazyResult(Wu);var Hu=ac,Gu=ma,Yu=Oc,Ju=Ou,Zu=Tc,Ku=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Gu;this.result=new Zu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Hu(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Yu("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)},t.toString=function(){return this._css},t.warnings=function(){return[]},y(e,[{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=Ju;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Xu=Ku;Ku.default=Ku;var Qu=Xu,el=$u,tl=xc,rl=uu,nl=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":k(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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new el(this,e,t):new Qu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),il=nl;nl.default=nl,rl.registerProcessor(nl),tl.registerProcessor(nl);var ol=Ia,sl=Da,al=uc,cl=iu,ul=Za,ll=uu,hl=gu;function pl(e,t){if(Array.isArray(e))return e.map(function(e){return pl(e)});var r=e.inputs,n=w(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=jr({},i.value,{__proto__:ul.prototype});s.map&&(s.map=jr({},s.map,{__proto__:sl.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return pl(e,t)})),n.source){var a=n.source,c=a.inputId,u=w(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new ll(n);if("decl"===n.type)return new ol(n);if("rule"===n.type)return new hl(n);if("comment"===n.type)return new al(n);if("atrule"===n.type)return new cl(n);throw new Error("Unknown node type: "+e.type)}var fl=pl;pl.default=pl;var dl=la,gl=Ia,ml=$u,vl=wc,yl=il,_l=ma,bl=fl,wl=xc,kl=Mc,Sl=uc,Cl=iu,xl=Tc,Il=Za,Ol=Ou,El=hu,Ml=gu,Rl=uu,Al=Ca;he.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new yl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return he([i(r)]).process(e,t)},i},he.stringify=_l,he.parse=Ol,he.fromJSON=bl,he.list=El,he.comment=function(e){return new Sl(e)},he.atRule=function(e){return new Cl(e)},he.decl=function(e){return new gl(e)},he.rule=function(e){return new Ml(e)},he.root=function(e){return new Rl(e)},he.document=function(e){return new wl(e)},he.CssSyntaxError=dl,he.Declaration=gl,he.Container=vl,he.Processor=yl,he.Document=wl,he.Comment=Sl,he.Warning=kl,he.AtRule=Cl,he.Result=xl,he.Input=Il,he.Rule=Ml,he.Root=Rl,he.Node=Al,ml.registerPostcss(he);var Tl=he;he.default=he;var Pl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Tl);Pl.stringify,Pl.fromJSON,Pl.plugin,Pl.parse,Pl.list,Pl.document,Pl.comment,Pl.atRule,Pl.rule,Pl.decl,Pl.root,Pl.CssSyntaxError,Pl.Declaration,Pl.Container,Pl.Processor,Pl.Document,Pl.Comment,Pl.Warning,Pl.AtRule,Pl.Result,Pl.Input,Pl.Rule,Pl.Root,Pl.Node;var Nl=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ta(this,"parentElement",null),ta(this,"parentNode",null),ta(this,"ownerDocument"),ta(this,"firstChild",null),ta(this,"lastChild",null),ta(this,"previousSibling",null),ta(this,"nextSibling",null),ta(this,"ELEMENT_NODE",1),ta(this,"TEXT_NODE",3),ta(this,"nodeType"),ta(this,"nodeName"),ta(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!b(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},y(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Dl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ll={},jl=function(){return!!globalThis.Zone},Ul={},Bl={},ql={childNodes:function(e){return fe("Node",e,"childNodes")},parentNode:function(e){return fe("Node",e,"parentNode")},parentElement:function(e){return fe("Node",e,"parentElement")},textContent:function(e){return fe("Node",e,"textContent")},contains:function(e,t){return de("Node",e,"contains")(t)},getRootNode:function(e){return de("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?fe("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?fe("Element",e,"shadowRoot"):null},querySelector:function(e,t){return fe("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return fe("Element",e,"querySelectorAll")(t)},mutationObserver:ge,patch:me},zl="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.",Vl={map:{},getId:function(){return console.error(zl),-1},getNode:function(){return console.error(zl),null},removeNodeFromMap:function(){console.error(zl)},has:function(){return console.error(zl),!1},reset:function(){console.error(zl)}};function Wl(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return Wl(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Vl=new Proxy(Vl,{get:function(e,t,r){return"map"===t&&console.error(zl),Reflect.get(e,t,r)}}));var $l=Date.now;function Hl(e,t){if(R(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=ql.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Hl(n,t))}/[1-9][0-9]{12}/.test(Date.now().toString())||($l=function(){return(new Date).getTime()});var Gl,Yl,Jl,Zl,Kl,Xl,Ql,eh=function(){function e(){Yr(this,"id",1),Yr(this,"styleIDMap",new WeakMap),Yr(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}(),th=((Gl=th||{})[Gl.DomContentLoaded=0]="DomContentLoaded",Gl[Gl.Load=1]="Load",Gl[Gl.FullSnapshot=2]="FullSnapshot",Gl[Gl.IncrementalSnapshot=3]="IncrementalSnapshot",Gl[Gl.Meta=4]="Meta",Gl[Gl.Custom=5]="Custom",Gl[Gl.Plugin=6]="Plugin",Gl),rh=((Yl=rh||{})[Yl.Mutation=0]="Mutation",Yl[Yl.MouseMove=1]="MouseMove",Yl[Yl.MouseInteraction=2]="MouseInteraction",Yl[Yl.Scroll=3]="Scroll",Yl[Yl.ViewportResize=4]="ViewportResize",Yl[Yl.Input=5]="Input",Yl[Yl.TouchMove=6]="TouchMove",Yl[Yl.MediaInteraction=7]="MediaInteraction",Yl[Yl.StyleSheetRule=8]="StyleSheetRule",Yl[Yl.CanvasMutation=9]="CanvasMutation",Yl[Yl.Font=10]="Font",Yl[Yl.Log=11]="Log",Yl[Yl.Drag=12]="Drag",Yl[Yl.StyleDeclaration=13]="StyleDeclaration",Yl[Yl.Selection=14]="Selection",Yl[Yl.AdoptedStyleSheet=15]="AdoptedStyleSheet",Yl[Yl.CustomElement=16]="CustomElement",Yl),nh=((Jl=nh||{})[Jl.MouseUp=0]="MouseUp",Jl[Jl.MouseDown=1]="MouseDown",Jl[Jl.Click=2]="Click",Jl[Jl.ContextMenu=3]="ContextMenu",Jl[Jl.DblClick=4]="DblClick",Jl[Jl.Focus=5]="Focus",Jl[Jl.Blur=6]="Blur",Jl[Jl.TouchStart=7]="TouchStart",Jl[Jl.TouchMove_Departed=8]="TouchMove_Departed",Jl[Jl.TouchEnd=9]="TouchEnd",Jl[Jl.TouchCancel=10]="TouchCancel",Jl),ih=((Zl=ih||{})[Zl.Mouse=0]="Mouse",Zl[Zl.Pen=1]="Pen",Zl[Zl.Touch=2]="Touch",Zl),oh=((Kl=oh||{})[Kl["2D"]=0]="2D",Kl[Kl.WebGL=1]="WebGL",Kl[Kl.WebGL2=2]="WebGL2",Kl),sh=((Xl=sh||{})[Xl.Play=0]="Play",Xl[Xl.Pause=1]="Pause",Xl[Xl.Seeked=2]="Seeked",Xl[Xl.VolumeChange=3]="VolumeChange",Xl[Xl.RateChange=4]="RateChange",Xl),ah=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(ah||{}),ch=function(){function e(){Yr(this,"length",0),Yr(this,"head",null),Yr(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Te(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Te(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=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--)},e}(),uh=function(e,t){return e+"@"+t},lh=function(){function e(){var e=this;Yr(this,"frozen",!1),Yr(this,"locked",!1),Yr(this,"texts",[]),Yr(this,"attributes",[]),Yr(this,"attributeMap",new WeakMap),Yr(this,"removes",[]),Yr(this,"mapRemoves",[]),Yr(this,"movedMap",{}),Yr(this,"addedSet",new Set),Yr(this,"movedSet",new Set),Yr(this,"droppedSet",new Set),Yr(this,"removesSubTreeCache",new Set),Yr(this,"mutationCb"),Yr(this,"blockClass"),Yr(this,"blockSelector"),Yr(this,"maskTextClass"),Yr(this,"maskTextSelector"),Yr(this,"inlineStylesheet"),Yr(this,"maskInputOptions"),Yr(this,"maskTextFn"),Yr(this,"maskInputFn"),Yr(this,"keepIframeSrcFn"),Yr(this,"recordCanvas"),Yr(this,"inlineImages"),Yr(this,"slimDOMOptions"),Yr(this,"dataURLOptions"),Yr(this,"doc"),Yr(this,"mirror"),Yr(this,"iframeManager"),Yr(this,"stylesheetManager"),Yr(this,"shadowDomManager"),Yr(this,"canvasManager"),Yr(this,"processedNodeManager"),Yr(this,"unattachedDoc"),Yr(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Yr(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new ch,i=function(t){for(var r=t,n=dn;n===dn;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=ql.parentNode(o);if(s&&Ae(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=R(s)?e.mirror.getId(Me(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=_n(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){Ie(t,e.mirror)&&e.iframeManager.addIframe(t),Oe(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Ee(o)&&e.shadowDomManager.addShadowRoot(ql.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=S(e.movedSet);!(a=c()).done;){var u=a.value;Pe(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(ql.parentNode(u))||o(u)}for(var l,h=S(e.addedSet);!(l=h()).done;){var p=l.value;De(e.droppedSet,p)||Pe(e.removesSubTreeCache,p,e.mirror)?De(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(ql.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(ql.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=y.value,w=ql.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=ql.host(w);if(-1!==e.mirror.getId(k)){d=y;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=ql.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),Yr(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(ql.childNodes(t),function(e){return ql.textContent(e)||""}).join("");r.attributes.value=L({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:U(t),value:n,maskInputFn:e.maskInputFn})}),Yr(this,"processMutation",function(t){if(!Ce(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=ql.textContent(t.target);Se(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:J(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,ke(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=U(n);o=L({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Se(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Y(n.tagName,i))if(a.attributes[i]=G(e.doc,j(n.tagName),j(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=S(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=S(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Se(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=R(t.target)?e.mirror.getId(ql.host(t.target)):e.mirror.getId(t.target);Se(t.target,e.blockClass,e.blockSelector,!1)||Ce(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(hh(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Hl(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[uh(n,i)]?hh(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!R(t.target)||!A(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),ql.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Yr(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(Ce(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[uh(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Se(t,e.blockClass,e.blockSelector,!1)||(ql.childNodes(t).forEach(function(t){return e.genAdds(t)}),Ee(t)&&ql.childNodes(ql.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),Yr(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function hh(e,t){e.delete(t),ql.childNodes(t).forEach(function(t){return hh(e,t)})}function ph(e,t){var r=ql.parentNode(t);return!!r&&(!!e.has(r)||ph(e,r))}var fh,dh=function(e){if(!Ql)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(Ql&&!0===Ql(e))return;throw e}}},gh=[],mh=["INPUT","TEXTAREA","SELECT"],vh=new WeakMap,yh=function(){function e(e){Yr(this,"iframeIdToRemoteIdMap",new WeakMap),Yr(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),_h=function(){function e(e){Yr(this,"iframes",new WeakMap),Yr(this,"crossOriginIframeMap",new WeakMap),Yr(this,"crossOriginIframeMirror",new yh(W)),Yr(this,"crossOriginIframeStyleMirror"),Yr(this,"crossOriginIframeRootIdMap",new WeakMap),Yr(this,"iframeContentDocumentMap",new WeakMap),Yr(this,"iframeObserverCleanupMap",new WeakMap),Yr(this,"mirror"),Yr(this,"mutationCb"),Yr(this,"wrappedEmit"),Yr(this,"loadListener"),Yr(this,"stylesheetManager"),Yr(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yh(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case th.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:th.IncrementalSnapshot,data:{source:rh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case th.Meta:case th.Load:case th.DomContentLoaded:return!1;case th.Plugin:return t;case th.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case th.IncrementalSnapshot:switch(t.data.source){case rh.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case rh.Drag:case rh.TouchMove:case rh.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case rh.ViewportResize:return!1;case rh.MediaInteraction:case rh.MouseInteraction:case rh.Scroll:case rh.CanvasMutation:case rh.Input:return this.replaceIds(t.data,e,["id"]),t;case rh.StyleSheetRule:case rh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rh.Font:return t;case rh.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case rh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=S(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===ah.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),bh=function(){function e(e){Yr(this,"shadowDoms",new WeakSet),Yr(this,"mutationCb"),Yr(this,"scrollCb"),Yr(this,"bypassOptions"),Yr(this,"mirror"),Yr(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(A(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Le(jr({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Ue(jr({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(ql.host(e))),r.restoreHandlers.push(ze({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(me(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=ql.shadowRoot(this);return o&&Ae(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kh="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(fh=0;fh<64;fh++)kh[wh.charCodeAt(fh)]=fh;var Sh=new Map,Ch=function(e,t,r){if(e&&(Th(e,t)||"object"===(void 0===e?"undefined":k(e)))){var n=function(e,t){var r=Sh.get(e);return r||(r=new Map,Sh.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function xh(e,t,r){if(b(e,Array))return e.map(function(e){return xh(e,t,r)});if(null===e)return e;if(b(e,Float32Array)||b(e,Float64Array)||b(e,Int32Array)||b(e,Uint32Array)||b(e,Uint8Array)||b(e,Uint16Array)||b(e,Int16Array)||b(e,Int8Array)||b(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(b(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=wh[r[t]>>2],i+=wh[(3&r[t])<<4|r[t+1]>>4],i+=wh[(15&r[t+1])<<2|r[t+2]>>6],i+=wh[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)};if(b(e,DataView))return{rr_type:e.constructor.name,args:[xh(e.buffer,t,r),e.byteOffset,e.byteLength]};if(b(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(b(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return b(e,ImageData)?{rr_type:e.constructor.name,args:[xh(e.data,t,r),e.width,e.height]}:Th(e,t)||"object"===(void 0===e?"undefined":k(e))?{rr_type:e.constructor.name,index:Ch(e,t,r)}:e}var Ih,Oh,Eh,Mh,Rh,Ah=function(e,t,r){return e.map(function(e){return xh(e,t,r)})},Th=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return b(e,t[r])}))},Ph="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Nh="undefined"!=typeof window&&window.Blob&&new Blob([(Ih=Ph,Uint8Array.from(atob(Ih),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"}),Dh=function(){function e(e){var t=this;Yr(this,"pendingCanvasMutations",new Map),Yr(this,"rafStamps",{latestId:0,invokeId:null}),Yr(this,"mirror"),Yr(this,"mutationCb"),Yr(this,"resetObservers"),Yr(this,"frozen",!1),Yr(this,"locked",!1),Yr(this,"processMutation",function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=He(t,r,n,!0),a=new Map,c=new Ye;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:oh["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){Se(e,r,n,!0)||s.push(e)}),s).forEach(v(function(e){var t,r,n,o;return C(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=He(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=me(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return Se(this.canvas,r,n,!0)||setTimeout(function(){var r=Ah(c,t,s);e(s.canvas,{type:oh["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(r){var c=Wl(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:oh["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=S(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(Ge(t.WebGLRenderingContext.prototype,oh.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(Ge(t.WebGL2RenderingContext.prototype,oh.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,w(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Fh=function(){function e(e){Yr(this,"trackedLinkElements",new WeakSet),Yr(this,"mutationCb"),Yr(this,"adoptedStyleSheetCb"),Yr(this,"styleMirror",new eh),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:P(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=S(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=S(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Lh=function(){function e(){Yr(this,"nodeMap",new WeakMap),Yr(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),jh=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(Rh=document.createElement("iframe"),document.body.appendChild(Rh),Array.from=(null==(Vr=Rh.contentWindow)?void 0:Vr.Array.from)||Array.from,document.body.removeChild(Rh))}catch(e){console.debug("Unable to override Array.from",e)}var Uh,Bh,qh=new sn;Ze.addCustomEvent=function(e,t){if(!jh)throw new Error("please add custom event after start recording");Oh({type:th.Custom,data:{tag:e,payload:t}})},Ze.freezePage=function(){gh.forEach(function(e){return e.freeze()})},Ze.takeFullSnapshot=function(e){if(!jh)throw new Error("please take full snapshot after start recording");Eh(e)},Ze.mirror=qh,(Bh=Uh||(Uh={}))[Bh.NotStarted=0]="NotStarted",Bh[Bh.Running=1]="Running",Bh[Bh.Stopped=2]="Stopped";var zh={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Vh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Wh={},$h=function(){return!!globalThis.Zone},Hh={},Gh={},Yh={childNodes:function(e){return Xe("Node",e,"childNodes")},parentNode:function(e){return Xe("Node",e,"parentNode")},parentElement:function(e){return Xe("Node",e,"parentElement")},textContent:function(e){return Xe("Node",e,"textContent")},contains:function(e,t){return Qe("Node",e,"contains")(t)},getRootNode:function(e){return Qe("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Xe("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Xe("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Xe("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Xe("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Ke("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}};function Jh(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Jh(Yh.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return Jh(Yh.parentNode(e),t)}var Zh={exports:{}},Kh=String,Xh=function(){return{isColorSupported:!1,reset:Kh,bold:Kh,dim:Kh,italic:Kh,underline:Kh,inverse:Kh,hidden:Kh,strikethrough:Kh,black:Kh,red:Kh,green:Kh,yellow:Kh,blue:Kh,magenta:Kh,cyan:Kh,white:Kh,gray:Kh,bgBlack:Kh,bgRed:Kh,bgGreen:Kh,bgYellow:Kh,bgBlue:Kh,bgMagenta:Kh,bgCyan:Kh,bgWhite:Kh}};Zh.exports=Xh(),Zh.exports.createColors=Xh;var Qh=Zh.exports,ep=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return b(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tp=Qh,rp=ep,np=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}_(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=tp.isColorSupported),rp&&e&&(r=rp(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=tp.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(qr(Error)),ip=np;np.default=np;var op={};op.isClean=Symbol("isClean"),op.my=Symbol("my");var sp={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},ap=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return sp[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=sp[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=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},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=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},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=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)},e}(),cp=ap;ap.default=ap;var up=cp,lp=et;et.default=et;var hp=op.isClean,pp=op.my,fp=ip,dp=cp,gp=lp;function mp(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return mp(e,r)}):("object"===o&&null!==i&&(i=mp(i)),r[n]=i)}return r}var vp=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[hp]=!1,this[pp]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=mp(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new fp(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[hp]){this[hp]=!1;for(var e=this;e=e.parent;)e[hp]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new dp).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":k(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=gp),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},y(e,[{key:"proxyOf",get:function(){return this}}]),e}(),yp=vp;vp.default=vp;var _p=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=jr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return _(t,e),y(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(yp),bp=_p;_p.default=_p;var wp=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},kp=ep.SourceMapConsumer,Sp=ep.SourceMapGenerator,Cp=ep.existsSync,xp=ep.readFileSync,Ip=ep.dirname,Op=ep.join,Ep=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ip(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new kp(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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 r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ip(e),Cp(e))return this.mapFile=e,xp(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(b(t,kp))return Sp.fromSourceMap(t).toString();if(b(t,Sp))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Op(Ip(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Mp=Ep;Ep.default=Ep;var Rp=ep.SourceMapConsumer,Ap=ep.SourceMapGenerator,Tp=ep.fileURLToPath,Pp=ep.pathToFileURL,Np=ep.isAbsolute,Dp=ep.resolve,Fp=wp,Lp=ep,jp=ip,Up=Mp,Bp=Symbol("fromOffsetCache"),qp=Boolean(Rp&&Ap),zp=Boolean(Dp&&Np),Vp=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!zp||/^\w+:\/\//.test(t.from)||Np(t.from)?this.file=t.from:this.file=Dp(t.from)),zp&&qp){var r=new Up(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Fp(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new jp(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new jp(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Pp&&(i.input.url=Pp(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Bp])t=this[Bp];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Bp]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Dp(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Np(a.source)?Pp(a.source):new URL(a.source,this.map.consumer().sourceRoot||Pp(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Tp)throw new Error("file: protocol is not available in this PostCSS build");c.file=Tp(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=jr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},y(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Wp=Vp;Vp.default=Vp,Lp&&Lp.registerInput&&Lp.registerInput(Vp);var $p=ep.SourceMapConsumer,Hp=ep.SourceMapGenerator,Gp=ep.dirname,Yp=ep.relative,Jp=ep.resolve,Zp=ep.sep,Kp=ep.pathToFileURL,Xp=Wp,Qp=Boolean($p&&Hp),ef=Boolean(Gp&&Jp&&Yp&&Zp),tf=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Gp(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new $p(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),ef&&Qp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hp.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hp({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Hp({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Gp(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Gp(Jp(r,this.mapOpts.annotation)));var n=Yp(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Xp(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Kp){var r=Kp(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Zp&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rf=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return _(t,e),t}(yp),nf=rf;rf.default=rf;var of,sf,af,cf,uf=op.isClean,lf=op.my,hf=bp,pf=nf;function ff(e){return e.map(function(e){return e.nodes&&(e.nodes=ff(e.nodes)),delete e.source,e})}function df(e){if(e[uf]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){df(t.value)}}var gf=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=ff(of(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hf(e)]}else if(e.selector)e=[new sf(e)];else if(e.name)e=[new af(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new pf(e)]}return e.map(function(e){return e[lf]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[uf]&&df(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?b(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},y(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]}}]),t}(yp);gf.registerParse=function(e){of=e},gf.registerRule=function(e){sf=e},gf.registerAtRule=function(e){af=e},gf.registerRoot=function(e){cf=e};var mf=gf;gf.default=gf,gf.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,af.prototype):"rule"===e.type?Object.setPrototypeOf(e,sf.prototype):"decl"===e.type?Object.setPrototypeOf(e,hf.prototype):"comment"===e.type?Object.setPrototypeOf(e,pf.prototype):"root"===e.type&&Object.setPrototypeOf(e,cf.prototype),e[lf]=!0,e.nodes&&e.nodes.forEach(function(e){gf.rebuild(e)})};var vf,yf,_f=function(e){function t(t){var r;return(r=e.call(this,jr({type:"document"},t))||this).nodes||(r.nodes=[]),r}return _(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new vf(new yf,this,e).stringify()},t}(mf);_f.registerLazyResult=function(e){vf=e},_f.registerProcessor=function(e){yf=e};var bf=_f;_f.default=_f;var wf={},kf=function(e){wf[e]||(wf[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Sf=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=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},e}(),Cf=Sf;Sf.default=Sf;var xf=Cf,If=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new xf(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},y(e,[{key:"content",get:function(){return this.css}}]),e}(),Of=If;If.default=If;var Ef="'".charCodeAt(0),Mf='"'.charCodeAt(0),Rf="\\".charCodeAt(0),Af="/".charCodeAt(0),Tf="\n".charCodeAt(0),Pf=" ".charCodeAt(0),Nf="\f".charCodeAt(0),Df="\t".charCodeAt(0),Ff="\r".charCodeAt(0),Lf="[".charCodeAt(0),jf="]".charCodeAt(0),Uf="(".charCodeAt(0),Bf=")".charCodeAt(0),qf="{".charCodeAt(0),zf="}".charCodeAt(0),Vf=";".charCodeAt(0),Wf="*".charCodeAt(0),$f=":".charCodeAt(0),Hf="@".charCodeAt(0),Gf=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jf=/.[\r\n"'(/\\]/,Zf=/[\da-f]/i,Kf=mf,Xf=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}_(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Kf),Qf=Xf;Xf.default=Xf,Kf.registerAtRule(Xf);var ed,td,rd=mf,nd=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}_(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ed(new td,this,e).stringify()},t}(rd);nd.registerLazyResult=function(e){ed=e},nd.registerProcessor=function(e){td=e};var id=nd;nd.default=nd,rd.registerRoot(nd);var od={comma:function(e){return od.split(e,[","],!0)},space:function(e){return od.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},sd=od;od.default=od;var ad=mf,cd=sd,ud=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return _(t,e),y(t,[{key:"selectors",get:function(){return cd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(ad),ld=ud;ud.default=ud,ad.registerRule(ud);var hd=bp,pd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Tf:case Pf:case Df:case Ff:case Nf:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Pf||r===Tf||r===Df||r===Ff||r===Nf);h=["space",p.slice(g,n)],g=n-1;break;case Lf:case jf:case qf:case zf:case $f:case Vf:case Bf:var _=String.fromCharCode(r);h=[_,_,g];break;case Uf:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Ef&&l!==Mf&&l!==Pf&&l!==Tf&&l!==Df&&l!==Nf&&l!==Ff){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Rf;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Jf.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Ef:case Mf:i=r===Ef?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Rf;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Hf:Gf.lastIndex=g+1,Gf.test(p),n=0===Gf.lastIndex?p.length-1:Gf.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Rf:for(n=g,s=!0;p.charCodeAt(n+1)===Rf;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Af&&r!==Pf&&r!==Tf&&r!==Df&&r!==Ff&&r!==Nf&&(n+=1,Zf.test(p.charAt(n)))){for(;Zf.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Pf&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Af&&p.charCodeAt(g+1)===Wf?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Yf.lastIndex=g+1,Yf.test(p),n=0===Yf.lastIndex?p.length-1:Yf.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},fd=nf,dd=Qf,gd=id,md=ld,vd={empty:!0,space:!0},yd=function(){function e(e){this.input=e,this.root=new gd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new dd;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.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=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new fd;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=pd(this.input)},t.decl=function(e,t){var r=new hd;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new md;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=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)},t.endFile=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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=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)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=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()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",vd[a]||vd[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new md;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),_d=mf,bd=yd,wd=Wp,kd=tt;tt.default=tt,_d.registerParse(tt);var Sd=op.isClean,Cd=op.my,xd=tf,Id=lp,Od=mf,Ed=bf,Md=kf,Rd=Of,Ad=kd,Td=id,Pd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nd={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},Dd={Once:!0,postcssPlugin:!0,prepare:!0},Fd=0;function Ld(e){return e[Sd]=!1,e.nodes&&e.nodes.forEach(function(e){return Ld(e)}),e}var jd={},Ud=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(b(r,e)||b(r,Rd))i=Ld(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ad;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Cd]&&Od.rebuild(i)}else i=Ld(r);this.result=new Rd(t,i,n),this.helpers=jr({},jd,{postcss:jd,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?jr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!Nd[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Dd[o])if("object"===k(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return v(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!rt(n))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Sd])return[3,14];o[Sd]=!0,s=[it(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!rt(a))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return rt(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Id;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new xd(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(rt(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var i=this.result.root;!i[Sd];)i[Sd]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=S(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Md("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)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rt(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Sd])return a[Sd]=!0,void e.push(it(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Fd)return void(r.nodes&&r.nodes.length&&(r[Sd]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Sd]=!0;for(var r,n=nt(e),i=S(n);!(r=i()).done;){var o=r.value;if(o===Fd)e.nodes&&e.each(function(e){e[Sd]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},y(e,[{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"}}]),e}();Ud.registerPostcss=function(e){jd=e};var Bd=Ud;Ud.default=Ud,Td.registerLazyResult(Ud),Ed.registerLazyResult(Ud);var qd=tf,zd=lp,Vd=kf,Wd=kd,$d=Of,Hd=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=zd;this.result=new $d(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new qd(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Vd("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)},t.toString=function(){return this._css},t.warnings=function(){return[]},y(e,[{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=Wd;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Gd=Hd;Hd.default=Hd;var Yd=Gd,Jd=Bd,Zd=bf,Kd=id,Xd=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":k(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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Jd(this,e,t):new Yd(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Qd=Xd;Xd.default=Xd,Kd.registerProcessor(Xd),Zd.registerProcessor(Xd);var eg=bp,tg=Mp,rg=nf,ng=Qf,ig=Wp,og=id,sg=ld;function ag(e,t){if(Array.isArray(e))return e.map(function(e){return ag(e)});var r=e.inputs,n=w(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=jr({},i.value,{__proto__:ig.prototype});s.map&&(s.map=jr({},s.map,{__proto__:tg.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return ag(e,t)})),n.source){var a=n.source,c=a.inputId,u=w(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new og(n);if("decl"===n.type)return new eg(n);if("rule"===n.type)return new sg(n);if("comment"===n.type)return new rg(n);if("atrule"===n.type)return new ng(n);throw new Error("Unknown node type: "+e.type)}var cg=ag;ag.default=ag;var ug=ip,lg=bp,hg=Bd,pg=mf,fg=Qd,dg=lp,gg=cg,mg=bf,vg=Cf,yg=nf,_g=Qf,bg=Of,wg=Wp,kg=kd,Sg=sd,Cg=ld,xg=id,Ig=yp;ot.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new fg).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ot([i(r)]).process(e,t)},i},ot.stringify=dg,ot.parse=kg,ot.fromJSON=gg,ot.list=Sg,ot.comment=function(e){return new yg(e)},ot.atRule=function(e){return new _g(e)},ot.decl=function(e){return new lg(e)},ot.rule=function(e){return new Cg(e)},ot.root=function(e){return new xg(e)},ot.document=function(e){return new mg(e)},ot.CssSyntaxError=ug,ot.Declaration=lg,ot.Container=pg,ot.Processor=fg,ot.Document=mg,ot.Comment=yg,ot.Warning=vg,ot.AtRule=_g,ot.Result=bg,ot.Input=wg,ot.Rule=Cg,ot.Root=xg,ot.Node=Ig,hg.registerPostcss(ot);var Og=ot;ot.default=ot;var Eg=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Og);Eg.stringify,Eg.fromJSON,Eg.plugin,Eg.parse,Eg.list,Eg.document,Eg.comment,Eg.atRule,Eg.rule,Eg.decl,Eg.root,Eg.CssSyntaxError,Eg.Declaration,Eg.Container,Eg.Processor,Eg.Document,Eg.Comment,Eg.Warning,Eg.AtRule,Eg.Result,Eg.Input,Eg.Rule,Eg.Root,Eg.Node;var Mg=Object.defineProperty,Rg=function(e,t,r){return function(e,t,r){return t in e?Mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},Ag=function(){function e(e){Rg(this,"fileName"),Rg(this,"functionName"),Rg(this,"lineNumber"),Rg(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),Tg=/(^|@)\S+:\d+/,Pg=/^\s*at .*(\S+:\d+|\(native\))/m,Ng=/^(eval@)?(\[native code])?$/,Dg={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Pg)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Pg)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new Ag({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Ng)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Ag({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ag({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Ag({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Ag({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Tg)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ag({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Fg(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=S(n);!(r=i()).done;){var o=r.value;if(at(e[o])&&Fg(e[o],t-1))return!0}return!1}var Lg,jg,Ug,Bg={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"},qg=Mr.setImmediate,zg=Object.prototype.toString,Vg=void 0!==qg?function(e){return qg(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Lg=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Lg=function(e,t,r){return e[t]=r,e}}function Wg(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=ht(e))?lt(function(){var n=new mt(r);try{t.call(e,function(){Wg.apply(n,arguments)},function(){dt.apply(n,arguments)})}catch(e){dt.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&<(pt,r))}catch(e){dt.call(new mt(r),e)}}}Ug=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=jg=void 0;r;)r.fn.call(r.self),r=r.next}}}();var $g,Hg=Lg({},"constructor",yt,!1);yt.prototype=Hg,Lg(Hg,"__NPO__",0,!1),Lg(yt,"resolve",function(e){return e&&"object"===(void 0===e?"undefined":_type_of(e))&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),Lg(yt,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),Lg(yt,"all",function(e){var t=this;return"[object Array]"!==zg.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;gt(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),Lg(yt,"race",function(e){var t=this;return"[object Array]"!==zg.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");gt(t,e,function(e,t){r(t)},n)})}),$g="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:yt;var Gg,Yg,Jg,Zg,Kg,Xg,Qg,em,tm,rm,nm,im,om=864e5,sm=8e3,am=Array.prototype,cm=Function.prototype,um=Object.prototype,lm=am.slice,hm=um.toString,pm=um.hasOwnProperty,fm=Mr.console,dm=Mr.navigator,gm=Mr.document,mm=Mr.opera,vm=Mr.screen,ym=dm.userAgent,_m=cm.bind,bm=am.forEach,wm=am.indexOf,km=am.map,Sm=Array.isArray,Cm={},xm={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Im={log:function(){if(Pr.DEBUG&&!xm.isUndefined(fm)&&fm)try{fm.log.apply(fm,arguments)}catch(e){xm.each(arguments,function(e){fm.log(e)})}},warn:function(){if(Pr.DEBUG&&!xm.isUndefined(fm)&&fm){var e=["Mixpanel warning:"].concat(xm.toArray(arguments));try{fm.warn.apply(fm,e)}catch(t){xm.each(e,function(e){fm.warn(e)})}}},error:function(){if(Pr.DEBUG&&!xm.isUndefined(fm)&&fm){var e=["Mixpanel error:"].concat(xm.toArray(arguments));try{fm.error.apply(fm,e)}catch(t){xm.each(e,function(e){fm.error(e)})}}},critical:function(){if(!xm.isUndefined(fm)&&fm){var e=["Mixpanel error:"].concat(xm.toArray(arguments));try{fm.error.apply(fm,e)}catch(t){xm.each(e,function(e){fm.error(e)})}}}},Om=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Im,arguments)}},Em=function(e){return{log:Om(Im.log,e),warn:Om(Im.warn,e),error:Om(Im.error,e),critical:Om(Im.critical,e)}},Mm=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Im.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pr.DEBUG&&Im.critical(e)}}},Rm=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Mm(t[r]))};xm.bind=function(e,t){var r,n;if(_m&&e.bind===_m)return _m.apply(e,lm.call(arguments,1));if(!xm.isFunction(e))throw new TypeError;return r=lm.call(arguments,2),n=function(){if(!_instanceof(this,n))return e.apply(t,r.concat(lm.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(lm.call(arguments)));return Object(s)===s?s:o},n},xm.each=function(e,t,r){if(null!=e)if(bm&&e.forEach===bm)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===Cm)return}else for(var o in e)if(pm.call(e,o)&&t.call(r,e[o],o,e)===Cm)return},xm.extend=function(e){return xm.each(lm.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},xm.isArray=Sm||function(e){return"[object Array]"===hm.call(e)},xm.isFunction=function(e){return"function"==typeof e},xm.isArguments=function(e){return!(!e||!pm.call(e,"callee"))},xm.toArray=function(e){return e?e.toArray?e.toArray():xm.isArray(e)||xm.isArguments(e)?lm.call(e):xm.values(e):[]},xm.map=function(e,t,r){if(km&&e.map===km)return e.map(t,r);var n=[];return xm.each(e,function(e){n.push(t.call(r,e))}),n},xm.keys=function(e){var t=[];return null===e||xm.each(e,function(e,r){t[t.length]=r}),t},xm.values=function(e){var t=[];return null===e||xm.each(e,function(e){t[t.length]=e}),t},xm.include=function(e,t){var r=!1;return null===e?r:wm&&e.indexOf===wm?-1!=e.indexOf(t):(xm.each(e,function(e){if(r||(r=e===t))return Cm}),r)},xm.includes=function(e,t){return-1!==e.indexOf(t)},xm.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},xm.isObject=function(e){return e===Object(e)&&!xm.isArray(e)},xm.isEmptyObject=function(e){if(xm.isObject(e)){for(var t in e)if(pm.call(e,t))return!1;return!0}return!1},xm.isUndefined=function(e){return void 0===e},xm.isString=function(e){return"[object String]"==hm.call(e)},xm.isDate=function(e){return"[object Date]"==hm.call(e)},xm.isNumber=function(e){return"[object Number]"==hm.call(e)},xm.isElement=function(e){return!(!e||1!==e.nodeType)},xm.encodeDates=function(e){return xm.each(e,function(t,r){xm.isDate(t)?e[r]=xm.formatDate(t):xm.isObject(t)&&(e[r]=xm.encodeDates(t))}),e},xm.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},xm.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},xm.strip_empty_properties=function(e){var t={};return xm.each(e,function(e,r){xm.isString(e)&&e.length>0&&(t[r]=e)}),t},xm.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):xm.isArray(e)?(r=[],xm.each(e,function(e){r.push(xm.truncate(e,t))})):xm.isObject(e)?(r={},xm.each(e,function(e,n){r[n]=xm.truncate(e,t)})):r=e,r},xm.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"===(void 0===h?"undefined":_type_of(h))&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),void 0===h?"undefined":_type_of(h)){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===hm.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)pm.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},xm.JSONDecode=(Kg={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Xg=function(e){var t=new SyntaxError(e);throw t.at=Gg,t.text=Jg,t},Qg=function(e){return e&&e!==Yg&&Xg("Expected '"+e+"' instead of '"+Yg+"'"),Yg=Jg.charAt(Gg),Gg+=1,Yg},em=function(){var e,t="";for("-"===Yg&&(t="-",Qg("-"));Yg>="0"&&Yg<="9";)t+=Yg,Qg();if("."===Yg)for(t+=".";Qg()&&Yg>="0"&&Yg<="9";)t+=Yg;if("e"===Yg||"E"===Yg)for(t+=Yg,Qg(),"-"!==Yg&&"+"!==Yg||(t+=Yg,Qg());Yg>="0"&&Yg<="9";)t+=Yg,Qg();if(e=+t,isFinite(e))return e;Xg("Bad number")},tm=function(){var e,t,r,n="";if('"'===Yg)for(;Qg();){if('"'===Yg)return Qg(),n;if("\\"===Yg)if(Qg(),"u"===Yg){for(r=0,t=0;t<4&&(e=parseInt(Qg(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof Kg[Yg])break;n+=Kg[Yg]}else n+=Yg}Xg("Bad string")},rm=function(){for(;Yg&&Yg<=" ";)Qg()},nm=function(){var e=[];if("["===Yg){if(Qg("["),rm(),"]"===Yg)return Qg("]"),e;for(;Yg;){if(e.push(Zg()),rm(),"]"===Yg)return Qg("]"),e;Qg(","),rm()}}Xg("Bad array")},im=function(){var e,t={};if("{"===Yg){if(Qg("{"),rm(),"}"===Yg)return Qg("}"),t;for(;Yg;){if(e=tm(),rm(),Qg(":"),Object.hasOwnProperty.call(t,e)&&Xg('Duplicate key "'+e+'"'),t[e]=Zg(),rm(),"}"===Yg)return Qg("}"),t;Qg(","),rm()}}Xg("Bad object")},Zg=function(){switch(rm(),Yg){case"{":return im();case"[":return nm();case'"':return tm();case"-":return em();default:return Yg>="0"&&Yg<="9"?em():function(){switch(Yg){case"t":return Qg("t"),Qg("r"),Qg("u"),Qg("e"),!0;case"f":return Qg("f"),Qg("a"),Qg("l"),Qg("s"),Qg("e"),!1;case"n":return Qg("n"),Qg("u"),Qg("l"),Qg("l"),null}Xg('Unexpected "'+Yg+'"')}()}},function(e){var t;return Jg=e,Gg=0,Yg=" ",t=Zg(),rm(),Yg&&Xg("Syntax error"),t}),xm.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=xm.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},xm.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},xm.UUID=function(){try{return Mr.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",xm.map(e,function(e){return e.toString(16)}).join("")}};var Am=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];xm.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Am.length;t++)if(-1!==e.indexOf(Am[t]))return!0;return!1},xm.HTTPBuildQuery=function(e,t){var r,n,i=[];return xm.isUndefined(t)&&(t="&"),xm.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},xm.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){Im.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},xm.cookie={get:function(e){for(var t=e+"=",r=gm.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=xm.JSONDecode(xm.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Wm(gm.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),gm.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Wm(gm.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return gm.cookie=p,p},remove:function(e,t,r){xm.cookie.set(e,"",-1,t,!1,!1,r)}};var Tm=function(e){var t=!0;try{var r="__mplss_"+Bm(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Pm=null,Nm=function(e,t){return null===Pm||t?Pm=Tm(e):Pm},Dm=null,Fm=function(){try{return Mr.localStorage}catch(e){return null}};xm.localStorage=_t(Fm(),"localStorage",Nm),xm.sessionStorage=_t(function(){try{return Mr.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===Dm||t?Dm=Tm(e):Dm}),xm.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(Mr.event)){var o,s,a=!0;return xm.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else Im.error("No valid element provided to register_event")}}();var Lm=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');xm.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!gm.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[gm];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=gm.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,u=0;u<s.length;u++)s[u].className&&xm.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(Lm);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u<s.length;u++)_(s[u])&&(d[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(h=d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return xm.isElement(e)?[e]:xm.isObject(e)&&!xm.isUndefined(e.length)?e:n.call(this,e)}}();var jm=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Um=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];xm.info={campaignParams:function(e){var t="",r={};return xm.each(jm,function(n){(t=xm.getQueryParam(gm.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return xm.each(Um,function(r){(e=xm.getQueryParam(gm.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return xm.extend(xm.info.campaignParams(),xm.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=xm.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=xm.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||xm.includes(e," OPR/")?xm.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":xm.includes(e,"IEMobile")||xm.includes(e,"WPDesktop")?"Internet Explorer Mobile":xm.includes(e,"SamsungBrowser/")?"Samsung Internet":xm.includes(e,"Edge")||xm.includes(e,"Edg/")?"Microsoft Edge":xm.includes(e,"FBIOS")?"Facebook Mobile":xm.includes(e,"Whale/")?"Whale Browser":xm.includes(e,"Chrome")?"Chrome":xm.includes(e,"CriOS")?"Chrome iOS":xm.includes(e,"UCWEB")||xm.includes(e,"UCBrowser")?"UC Browser":xm.includes(e,"FxiOS")?"Firefox iOS":xm.includes(t,"Apple")?xm.includes(e,"Mobile")?"Mobile Safari":"Safari":xm.includes(e,"Android")?"Android Mobile":xm.includes(e,"Konqueror")?"Konqueror":xm.includes(e,"Firefox")?"Firefox":xm.includes(e,"MSIE")||xm.includes(e,"Trident/")?"Internet Explorer":xm.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[xm.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=ym;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Mr.location.href},properties:function(e){return"object"!==(void 0===e?"undefined":_type_of(e))&&(e={}),xm.extend(xm.strip_empty_properties({$os:xm.info.os(),$browser:xm.info.browser(ym,dm.vendor,mm),$referrer:gm.referrer,$referring_domain:xm.info.referringDomain(gm.referrer),$device:xm.info.device(ym)}),{$current_url:xm.info.currentUrl(),$browser_version:xm.info.browserVersion(ym,dm.vendor,mm),$screen_height:vm.height,$screen_width:vm.width,mp_lib:"web",$lib_version:Pr.LIB_VERSION,$insert_id:Bm(),time:xm.timestamp()/1e3},xm.strip_empty_properties(e))},people_properties:function(){return xm.extend(xm.strip_empty_properties({$os:xm.info.os(),$browser:xm.info.browser(ym,dm.vendor,mm)}),{$browser_version:xm.info.browserVersion(ym,dm.vendor,mm)})},mpPageViewProperties:function(){return xm.strip_empty_properties({current_page_title:gm.title,current_domain:Mr.location.hostname,current_url_path:Mr.location.pathname,current_url_protocol:Mr.location.protocol,current_url_search:Mr.location.search})}};var Bm=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},qm=function(){return"00-"+xm.UUID().replace(/-/g,"")+"-"+xm.UUID().replace(/-/g,"").substring(0,16)+"-01"},zm=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Vm=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Wm=function(e){var t=Vm,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=zm);var i=e.match(t);return i?i[0]:""},$m=function(){},Hm=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Gm=null,Ym=null;"undefined"!=typeof JSON&&(Gm=JSON.stringify,Ym=JSON.parse),Gm=Gm||xm.JSONEncode,Ym=Ym||xm.JSONDecode;xm.info=xm.info,xm.info.browser=xm.info.browser,xm.info.browserVersion=xm.info.browserVersion,xm.info.device=xm.info.device,xm.info.properties=xm.info.properties,xm.isBlockedUA=xm.isBlockedUA,xm.isEmptyObject=xm.isEmptyObject,xm.isObject=xm.isObject,xm.JSONDecode=xm.JSONDecode,xm.JSONEncode=xm.JSONEncode,xm.toArray=xm.toArray,xm.NPO=yt;var Jm=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};Jm.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new $g(function(n,i){var o=Mr.indexedDB.open(e,t);o.onerror=function(){i(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},Jm.prototype.init=function(){return Mr.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return _instanceof(e,Mr.IDBDatabase)?$g.resolve():$g.reject(e)})):$g.reject("indexedDB is not supported in this browser")},Jm.prototype.isInitialized=function(){return!!this.dbPromise},Jm.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new $g(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):$g.reject(e)}.bind(this))},Jm.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Jm.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Jm.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Jm.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Zm="mixpanelBrowserDb",Km="mixpanelRecordingEvents",Xm="mixpanelRecordingRegistry",Qm={version:1,storeNames:[Km,Xm]},ev="__mp_opt_in_out_",tv=Em("lock"),rv=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Fm(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||$g};rv.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(xm.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>c)return tv.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(Nm(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),d(g,function(){u.getItem(l)!==i?f(function(){u.getItem(h)===i?d(function(){return!u.getItem(p)},v):m()}):v()})},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Nm(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var nv=function(e){this.storage=e||Fm()};nv.prototype.init=function(){return this.storage?$g.resolve():$g.reject(new Error("localStorage is not available"))},nv.prototype.isInitialized=function(){return!0},nv.prototype.setItem=function(e,t){return new $g(xm.bind(function(r,n){try{this.storage.setItem(e,Gm(t))}catch(e){n(e)}r()},this))},nv.prototype.getItem=function(e){return new $g(xm.bind(function(t,r){var n;try{n=Ym(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},nv.prototype.removeItem=function(e){return new $g(xm.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var iv=Em("batch"),ov=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new nv,this.lock=new rv(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||xm.bind(iv.error,iv),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=xm.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new $g(function(e){setTimeout(function(){var n=r.apply(t,[o]);i=null,o=[],e(n)},n)})),i}):this.enqueuePersisted=xm.bind(function(e){return this._enqueuePersisted([e])},this)};ov.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?$g.resolve():this.queueStorage.init().then(xm.bind(function(){this.initialized=!0},this)).catch(xm.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},ov.prototype.enqueue=function(e,t){var r={id:Bm(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),$g.resolve(!0))},ov.prototype._enqueuePersisted=function(e){var t=xm.bind(function(){return this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(xm.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(xm.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(xm.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},ov.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(r){if(r.length){var n={};xm.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):$g.resolve(t)};var sv=function(e,t){var r=[];return xm.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};ov.prototype.removeItemsByID=function(e){var t={};if(xm.each(e,function(e){t[e]=!0}),this.memQueue=sv(this.memQueue,t),this.usePersistence){var r=xm.bind(function(){return this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(e){return e=sv(e,t),this.saveToStorage(e)},this)).then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(xm.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(xm.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Nm(this.lock.storage,!0)&&r().then(xm.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(xm.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return $g.resolve(!0)};var av=function(e,t){var r=[];return xm.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};ov.prototype.updatePayloads=function(e){return this.memQueue=av(this.memQueue,e),this.usePersistence?this.lock.withLock(xm.bind(function(){return this.ensureInit().then(xm.bind(function(){return this.readFromStorage()},this)).then(xm.bind(function(t){return t=av(t,e),this.saveToStorage(t)},this)).catch(xm.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(xm.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):$g.resolve(!0)},ov.prototype.readFromStorage=function(){return this.ensureInit().then(xm.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(xm.bind(function(e){return e&&(xm.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(xm.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},ov.prototype.saveToStorage=function(e){return this.ensureInit().then(xm.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(xm.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},ov.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(xm.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):$g.resolve()};var cv=Em("batch"),uv=function(e,t){this.errorReporter=t.errorReporter,this.queue=new ov(e,{errorReporter:xm.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};uv.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},uv.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},uv.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},uv.prototype.clear=function(){return this.queue.clear()},uv.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},uv.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},uv.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(xm.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},uv.prototype.sendRequestPromise=function(e,t){return new $g(xm.bind(function(r){this.sendRequest(e,t,r)},this))},uv.prototype.flush=function(e){if(this.requestInProgress)return cv.log("Flush: Request already in progress"),$g.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(xm.bind(function(i){var o=i.length===n,s=[],a={};if(xm.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=xm.extend({},t.properties,{mp_sent_by_lib_version:Pr.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),$g.resolve();var c=xm.bind(function(){return this.queue.removeItemsByID(xm.map(i,function(e){return e.id})).then(xm.bind(function(e){return xm.each(i,xm.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),$g.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),$g.resolve())},this))},this),u=xm.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(xm.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(xm.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(l=Mr.navigator.onLine,!xm.isUndefined(l)&&!l)||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),$g.resolve()}if(xm.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),$g.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var l},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),cv.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(xm.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},uv.prototype.reportError=function(e,t){if(cv.error.apply(cv.error,arguments),this.errorReporter)try{_instanceof(t,Error)||(t=new Error(e)),this.errorReporter(e,t)}catch(e){cv.error(e)}};var lv=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},hv=function(e,t){if(!xm.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},pv="change",fv="click",dv="hashchange",gv="load",mv="mp_locationchange",vv="popstate",yv="scrollend",_v="scroll",bv="submit",wv="visibilitychange",kv=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Sv=["mp-include"],Cv=["mp-no-track"],xv=Cv.concat(["mp-sensitive"]),Iv=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Ov={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Ev={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Mv={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Rv=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Av=5,Tv=Em("autocapture"),Pv=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Nv="data-rr-is-password",Dv=["password","email","tel","hidden"],Fv=Em("network-plugin"),Lv={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1},jv=1048576;function Uv(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Fv.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),function(e){return or(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Uv(e,t,r,n,i,o+1)})}var Bv=Em("recorder"),qv=Mr.CompressionStream,zv={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Vv=new Set([rh.MouseMove,rh.MouseInteraction,rh.Scroll,rh.ViewportResize,rh.Input,rh.TouchMove,rh.MediaInteraction,rh.Drag,rh.Selection]),Wv=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||$m,this._onMaxLengthReached=e.onMaxLengthReached||$m,this._onBatchSent=e.onBatchSent||$m,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=om,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=Nm(e.sharedLockStorage||Fm(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Jm(Zm,Km,Qm),this.batcher=new uv(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:zv,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Wv.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Wv.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Wv.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Wv.prototype.get_config=function(e){return this.getConfig(e)},Wv.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>om&&(this.recordMaxMs=om,Bv.critical("record_max_ms cannot be greater than "+om+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=xm.info.currentUrl(),this.replayStartUrl=xm.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=er(r).join(","),t.input.unmaskingSelector=er(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=er(o);if(c)if(_instanceof(c,RegExp))t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=er(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:pr,options:e}}(o))}this.getConfig("record_console")&&i.push(function(e){return{name:"rrweb/console@1",observer:ut,options:e}}({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=hv(this.getConfig("record_allowed_iframe_origins"),Bv);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),function(e){return e.type===th.IncrementalSnapshot&&Vv.has(e.data.source)}(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(rr,n),maskTextFn:this._getMaskFn(nr,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else Bv.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Wv.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Wv.prototype.isRrwebStopped=function(){return null===this._stopRecording},Wv.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Wv.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Wv.deserialize=function(e,t){return new Wv(xm.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Wv.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},Wv.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=xm.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Mr.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Wv.prototype._flushEvents=Ct(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===th.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Pr.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),function(e,t,r){if(!Mr.CompressionStream)return!1;var n=xm.info.browser(e,t,r),i=xm.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)}(ym,dm.vendor,mm)){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new qv("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),Wv.prototype.reportError=function(e,t){Bv.error.apply(Bv.error,arguments);try{t||_instanceof(e,Error)||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){Bv.error(e)}},Wv.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Wv.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>sm?(Bv.critical("record_min_ms cannot be greater than 8000ms. Capping value."),sm):e},Wv.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var $v=function(e){this.idb=new Jm(Zm,Xm,Qm),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};$v.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},$v.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},$v.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return $g.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),$g.resolve())},$v.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return lv(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):$g.resolve(null)},$v.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},$v.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},$v.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):$g.resolve()},$v.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return lv(e)}).map(function(e){return Wv.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return $g.all(t)}.bind(this)).catch(this.handleError.bind(this)):$g.resolve([])};var Hv=Em("recorder"),Gv=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Ze,this.sharedLockStorage=r,this.recordingRegistry=new $v({mixpanelInstance:this.mixpanelInstance,errorReporter:Hv.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Gv.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Hv.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Hv.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:xm.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Wv.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Wv(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Hv.log("Recording already in progress, skipping startRecording.")},Gv.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Gv.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Gv.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return $g.resolve()},Gv.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),$g.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Hv.log("No resumable recording found."),null)}.bind(this))},Gv.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Gv.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Gv.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Gv.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Mr[Dr]=Gv;var Yv,Jv={exports:{}},Zv=(Jv.exports,Yv||(Yv=1,Jv.exports=function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===(void 0===e?"undefined":_type_of(e))&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c=void 0!==l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"==typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=r;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t}()),Jv.exports),Kv=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Zv),Xv={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!xm.isEmptyObject(n))try{i=Kv.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};Mr[Nr]=Promise.resolve(Xv);fr.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only||false){var o=Qt(e);if(!o||Kt(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},dr.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Qt(e)},dr.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=Xt(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},dr.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Tv.critical("Error while observing shadow root",e)}}},dr.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Tv.critical("Shadow DOM observation unavailable: WeakSet not supported"))},dr.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Tv.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Qv=[pv,"input",bv,"select","toggle"],ey=[yv],ty=[dv],ry={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};gr.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||Kt(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},gr.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},gr.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},gr.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},gr.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},gr.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},gr.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},gr.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Qv.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),ty.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ey.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,ry)}catch(e){Tv.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new dr(function(){e.recordChangeEvent()},ry),this.shadowDOMObserver.start()}catch(e){Tv.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},gr.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Tv.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Tv.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Tv.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var ny="autocapture",iy="full-url",oy="allow_selectors",sy="allow_url_regexes",ay="block_attrs",cy="block_element_callback",uy="block_selectors",ly="block_url_regexes",hy="capture_extra_attrs",py="capture_text_content",fy="scroll_capture_all",dy="scroll_depth_percent_checkpoints",gy="click",my="dead_click",vy="input",yy="pageview",_y="rage_click",by="scroll",wy="page_leave",ky="submit",Sy={};Sy[oy]=[],Sy[sy]=[],Sy[ay]=[],Sy[cy]=null,Sy[uy]=[],Sy[ly]=[],Sy[hy]=[],Sy[py]=!1,Sy[fy]=!1,Sy[dy]=[25,50,75,100],Sy[gy]=!0,Sy[my]=!0,Sy[vy]=!0,Sy[yy]=iy,Sy[_y]=!0,Sy[by]=!0,Sy[wy]=!1,Sy[ky]=!0;var Cy={$mp_autocapture:!0},xy="$mp_click",Iy="$mp_dead_click",Oy="$mp_rage_click",Ey=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Ey.prototype.init=function(){!function(){try{return!!gm.createElement("div").matches}catch(e){return!1}}()?Tv.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},Ey.prototype.getFullConfig=function(){var e=this.mp.get_config(ny);return e?xm.isObject(e)?xm.extend({},Sy,e):Sy:{}},Ey.prototype.getConfig=function(e){return this.getFullConfig()[e]},Ey.prototype.currentUrlBlocked=function(){var e=xm.info.currentUrl(),t=this.getConfig(sy)||[];if(t.length)try{return!Hm(e,t)}catch(e){return Tv.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(ly)||[];if(!r||!r.length)return!1;try{return Hm(e,r)}catch(e){return Tv.critical("Error while checking block URL regexes: ",e),!0}},Ey.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(ny)?this.getConfig(yy):this.mp.get_config("track_pageview")},Ey.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===xy&&!this.getConfig(gy)||t===Oy&&!this._getClickTrackingConfig(_y)||t===Iy&&!this._getClickTrackingConfig(my)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};xm.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(Wt(p)&&(p=p.parentNode),$t(p,e)&&Bt(p,e,r,n)&&!qt(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!Vt(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(xm.each(f,function(t){var i=Gt(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Yt(g)&&g),qt(t,e,o,s)&&(v=!0),m.push(Lt(t,e,l,c,r,n))},this),!v){var y=gm.documentElement;if(h={$event_type:e.type,$host:Mr.location.host,$pathname:Mr.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,Mr.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,Mr.innerWidth||0),$pageHeight:gm.body.offsetHeight||0,$pageWidth:gm.body.offsetWidth||0},xm.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Yt(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=jt(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===fv&&(xm.each(kv,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=Ut(e)),a){var _=jt(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!Bt(p,e,r,n)||qt(p,e,o,s))return null;var b=Lt(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,xm.extend(h,xm.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(oy),blockAttrs:this.getConfig(ay),blockElementCallback:this.getConfig(cy),blockSelectors:this.getConfig(uy),captureExtraAttrs:this.getConfig(hy),captureTextContent:this.getConfig(py),capturedForHeatMap:r});n&&(xm.extend(n,Cy),this.mp.track(t,n))}},Ey.prototype.initPageListeners=function(){if(Mr.removeEventListener(vv,this.listenerPopstate),Mr.removeEventListener(dv,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(wy)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Mr.dispatchEvent(new Event(mv))},this.listenerHashchange=function(){Mr.dispatchEvent(new Event(mv))},Mr.addEventListener(vv,this.listenerPopstate),Mr.addEventListener(dv,this.listenerHashchange);var e=Mr.history.pushState;"function"==typeof e&&(Mr.history.pushState=function(t,r,n){e.call(Mr.history,t,r,n),Mr.dispatchEvent(new Event(mv))});var t=Mr.history.replaceState;"function"==typeof t&&(Mr.history.replaceState=function(e,r,n){t.call(Mr.history,e,r,n),Mr.dispatchEvent(new Event(mv))})}},Ey.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===(void 0===t?"undefined":_type_of(t))?t:{}:null},Ey.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(wy)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=xm.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||xm.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(gm.documentElement.clientWidth,Mr.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Cy);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},Ey.prototype._initScrollDepthTracking=function(){if(Mr.removeEventListener(_v,this.listenerScrollDepth),Mr.removeEventListener(yv,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Tv.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0)+Mr.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=gm.body.scrollHeight}}.bind(this),t=Jt(e);this.listenerScrollDepth=t.listener,Mr.addEventListener(t.eventType,this.listenerScrollDepth)}},Ey.prototype.initClickTracking=function(){Mr.removeEventListener(fv,this.listenerClick,!0),(this.getConfig(gy)||this.mp.get_config("record_heatmap_data"))&&(Tv.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(gy)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,xy)}.bind(this),Mr.addEventListener(fv,this.listenerClick,!0))},Ey.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(my)||this.mp.get_config("record_heatmap_data")?(Tv.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new gr(function(e){this.trackDomEvent(e,Iy)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(my);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),Mr.addEventListener(fv,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},Ey.prototype.initInputTracking=function(){Mr.removeEventListener(pv,this.listenerChange,!0),this.getConfig(vy)&&(Tv.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(vy)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),Mr.addEventListener(pv,this.listenerChange,!0))},Ey.prototype.initPageviewTracking=function(){if(Mr.removeEventListener(mv,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Tv.log("Initializing pageview tracking");var e="",t=!1;!this.pageviewTrackingConfig()&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||(t=this.mp.track_pageview(Cy)),t&&(e=xm.info.currentUrl()),this.listenerLocationchange=Mm(function(){if(!this.currentUrlBlocked()){var t=xm.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=iy),i===iy?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r)this.mp.track_pageview(Cy)&&(e=t),n&&(this.lastScrollCheckpoint=0,Tv.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),Mr.addEventListener(mv,this.listenerLocationchange)}},Ey.prototype.initRageClickTracking=function(){Mr.removeEventListener(fv,this.listenerRageClick,!0),(this._getClickTrackingConfig(_y)||this.mp.get_config("record_heatmap_data"))&&(Tv.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new fr),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(_y);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Oy))}.bind(this),Mr.addEventListener(fv,this.listenerRageClick,!0))},Ey.prototype.initScrollTracking=function(){if(Mr.removeEventListener(yv,this.listenerScroll),Mr.removeEventListener(_v,this.listenerScroll),this.getConfig(by)){Tv.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(by)&&!this.currentUrlBlocked()){var e=this.getConfig(fy),t=(this.getConfig(dy)||[]).slice().sort(function(e,t){return e-t}),r=Mr.scrollY,n=xm.extend({$scroll_top:r},Cy);try{var i=gm.body.scrollHeight,o=Math.round(r/(i-Mr.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){Tv.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this),t=Jt(e);this.listenerScroll=t.listener,Mr.addEventListener(t.eventType,this.listenerScroll)}},Ey.prototype.initSubmitTracking=function(){Mr.removeEventListener(bv,this.listenerSubmit,!0),this.getConfig(ky)&&(Tv.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(ky)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),Mr.addEventListener(bv,this.listenerSubmit,!0))},Ey.prototype.initPageLeaveTracking=function(){if(gm.removeEventListener(wv,this.listenerPageLeaveVisibilitychange),Mr.removeEventListener(mv,this.listenerPageLeaveLocationchange),Mr.removeEventListener(gv,this.listenerPageLoad),this.getConfig(wy)||this.mp.get_config("record_heatmap_data")){Tv.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=xm.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=gm.body.scrollHeight}.bind(this),Mr.addEventListener(gv,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Mm(function(t){if(!this.currentUrlBlocked()){var r=xm.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(gm.documentElement.clientHeight,Mr.innerHeight||0),this.previousScrollHeight=gm.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Mr.addEventListener(mv,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){gm.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),gm.addEventListener(wv,this.listenerPageLeaveVisibilitychange)}},Ey.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Mr.removeEventListener(fv,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Rm(Ey);var My=function(e,t){return Mr[Nr]&&"function"==typeof Mr[Nr].then||(Mr[Nr]=new Promise(function(r){e(t,r)}).then(function(){var e=Mr[Nr];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete Mr[Nr],e})),Mr[Nr]},Ry=Em("flags"),Ay="mixpanelFlags",Ty={version:1,storeNames:[Ay]},Py=864e5,Ny=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Dy=[Ny.NETWORK_ONLY,Ny.NETWORK_FIRST,Ny.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Fy=function(e,t,r){this.idb=new Jm("mixpanelFlagsDb",Ay,Ty),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};Fy.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ny.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},Fy.prototype.getTtlMs=function(){if(!this._isConfigValid())return Py;var e=this.persistenceConfig.persistenceTtlMs;return null==e?Py:e},Fy.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===Dy.indexOf(e.variantLookupPolicy)?(Ry.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),!1):!(void 0!==e.persistenceTtlMs&&null!==e.persistenceTtlMs&&e.persistenceTtlMs<=0)||(Ry.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),!1))},Fy.prototype.loadFlagsFromStorage=function(e){var t=xm.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ny.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(xm.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(xm.bind(function(n){if(!n)return Ry.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return Ry.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return Ry.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return xm.each(n.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})}),Ry.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}},this)).catch(xm.bind(function(e){return Ry.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},Fy.prototype.save=function(e,t,r){if(this.getPolicy()===Ny.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(xm.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Ry.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)}).catch(function(e){Ry.error("Failed to persist variants to IndexedDB:",e)})},Fy.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(xm.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Ry.log("Cleared persisted variants from IndexedDB")}).catch(function(e){Ry.error("Failed to clear persisted variants from IndexedDB:",e)})};var Ly=Em("flags"),jy="flags",Uy="context",By={};By[Uy]={};var qy=function(e){return xm.isObject(e)?xm.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},zy=function(e){this.fetch=Mr.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};zy.prototype.init=function(){if(this.minApisSupported())return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Fy(this.getConfig("persistence"),this.getMpConfig("token"),xm.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(xm.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(xm.bind(function(){return this.fetchFlags()},this)).catch(function(){Ly.error("Error initializing feature flags")});Ly.critical("Feature Flags unavailable: missing minimum required APIs")},zy.prototype._buildContext=function(){return xm.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Uy))},zy.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(xm.bind(function(){return this.fetchFlags()},this)).catch(function(){Ly.error("Error during flags reset")})):Promise.resolve()},zy.prototype.getFullConfig=function(){var e=this.getMpConfig(jy);return e?xm.isObject(e)?xm.extend({},By,e):By:{}},zy.prototype.getConfig=function(e){return this.getFullConfig()[e]},zy.prototype.isSystemEnabled=function(){return!!this.getMpConfig(jy)},zy.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Ly.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(jy);xm.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Uy);r[Uy]=xm.extend({},n,e);var i={};return i[jy]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){Ly.error("Error fetching flags during updateContext")})},zy.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ly.error("Feature Flags not enabled"),!!this.flags},zy.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=qm();Ly.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",Pr.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Mr,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw new Error("No flags in API response");var i=new Map,o={};xm.each(n,function(e,t){var r=!1,n=t+":";if(xm.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&xm.each(s,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&xm.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Ly.error(e),e}.bind(this)),this.fetchPromise},zy.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Ly.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},zy.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Ly.error("Fetch in progress started time not set, cannot mark fetch complete")},zy.prototype._loadTargetingIfNeeded=function(){var e=!1;xm.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!xm.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){Ly.log("targeting loaded for property filter evaluation")})},zy.prototype.getTargeting=function(){return My(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){Ly.error("Failed to load targeting: "+e)}.bind(this))},zy.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!xm.isEmptyObject(this.pendingFirstTimeEvents)&&(Mr[Nr]&&xm.isFunction(Mr[Nr].then)?Mr[Nr].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},zy.prototype._processFirstTimeEventCheck=function(e,t,r){xm.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||xm.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)Ly.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){Ly.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else Ly.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},zy.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},zy.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=qm(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Pr.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};Ly.log("Recording first-time event for flag: "+e),this.fetch.call(Mr,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){Ly.error("Failed to record first-time event for flag "+e+": "+t)})},zy.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){Ly.critical("Feature Flags not initialized"),e(qy(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(xm.bind(function(){if(r===Ny.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(xm.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return Ly.error(e),qy(t)}):qy(t);var n=xm.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):qy(t)},this))},zy.prototype._loadedPersistenceIsStale=function(){return!(!this._loadedPersistedAtMs||!this._loadedTtlMs)&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},zy.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Ly.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),qy(t);if(!this.areFlagsReady())return Ly.log("Flags not loaded yet"),qy(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Ly.log('No flag found: "'+e+'"'),qy(t))},zy.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Ly.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(xm.bind(function(){if(e===Ny.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(xm.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return Ly.error(e),new Map}):new Map;var t=xm.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},zy.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Ly.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},zy.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return Ly.error(e),t})},zy.prototype.getFeatureData=function(e,t){return Ly.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},zy.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},zy.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return Ly.error(e),t})},zy.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Ly.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},zy.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":mr(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":mr(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};mr(t.experiment_id)&&(r.$experiment_id=t.experiment_id),mr(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),mr(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),mr(t.variant_source)&&(r.$variant_source=t.variant_source),mr(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),mr(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},zy.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},zy.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Rm(zy),zy.prototype.are_flags_ready=zy.prototype.areFlagsReady,zy.prototype.get_variant=zy.prototype.getVariant,zy.prototype.get_variant_sync=zy.prototype.getVariantSync,zy.prototype.get_all_variants=zy.prototype.getAllVariants,zy.prototype.get_all_variants_sync=zy.prototype.getAllVariantsSync,zy.prototype.get_variant_value=zy.prototype.getVariantValue,zy.prototype.get_variant_value_sync=zy.prototype.getVariantValueSync,zy.prototype.is_enabled=zy.prototype.isEnabled,zy.prototype.is_enabled_sync=zy.prototype.isEnabledSync,zy.prototype.load_flags=zy.prototype.loadFlags,zy.prototype.update_context=zy.prototype.updateContext,zy.prototype.when_ready=zy.prototype.whenReady,zy.prototype.get_feature_data=zy.prototype.getFeatureData,zy.prototype.getTargeting=zy.prototype.getTargeting;var Vy=Em("recorder"),Wy="mp_iframe_handshake_request",$y="mp_iframe_handshake_response",Hy=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Hy.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return Im.log("Load recorder check skipped due to disable_persistence config"),$g.resolve(!1);var e=new Jm(Zm,Xm,Qm),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(lv(e[r])||e[r].tabId===t)return!0;return!1}).catch(xm.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},Hy.prototype.checkAndStartSessionRecording=function(e,t){if(!Mr.MutationObserver)return Im.critical("Browser does not support MutationObserver; skipping session recording"),$g.resolve();var r=xm.bind(function(e){return new $g(xm.bind(function(t){var r=Mm(xm.bind(function(){this._recorder=this._recorder||new Mr[Dr](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(xm.isUndefined(Mr[Dr])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=hv(this.getMpConfig("record_allowed_iframe_origins"),Vy);if(n.length>0&&(this._setupParentFrameListener(n),Mr.parent!==Mr))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),$g.resolve();var i=xm.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(xm.bind(function(e){return e?r(!1):$g.resolve()},this))},Hy.prototype.isRecording=function(){if(!this._recorder||!xm.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},Hy.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!xm.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Fr;My(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){Im.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){Im.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},Hy.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():$g.resolve()},Hy.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():$g.resolve()},Hy.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():$g.resolve()},Hy.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Hy.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},Hy.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();t&&(e="https://mixpanel.com/projects/replay-redirect?"+xm.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")}));return e},Hy.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Hy.prototype.getRecorder=function(){return this._recorder},Hy.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===$y&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,Mr.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},Mr.addEventListener("message",this._childFrameMessageHandler)}},Hy.prototype._sendParentFrameRequest=function(e){var t={};t.type=Wy,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{Mr.parent.postMessage(t,e[r])}catch(e){}},Hy.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},Hy.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===Wy&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=$y,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},Mr.addEventListener("message",this._parentFrameMessageHandler)}},Rm(Hy);var Gy=function(){};Gy.prototype.create_properties=function(){},Gy.prototype.event_handler=function(){},Gy.prototype.after_track_handler=function(){},Gy.prototype.init=function(e){return this.mp=e,this},Gy.prototype.track=function(e,t,r,n){var i=this,o=xm.dom_query(e);if(0!==o.length)return xm.each(o,function(e){xm.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;Im.error("The DOM query ("+e+") returned 0 elements")},Gy.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},Gy.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):xm.extend({},e)};var Yy=function(){this.override_event="click"};xm.inherit(Yy,Gy),Yy.prototype.create_properties=function(e,t){var r=Yy.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Yy.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Yy.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Jy=function(){this.override_event="submit"};xm.inherit(Jy,Gy),Jy.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Jy.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Zy="$set",Ky="$set_once",Xy="$unset",Qy="$add",e_="$append",t_="$union",r_="$remove",n_={set_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Zy]=n,r},unset_action:function(e){var t={},r=[];return xm.isArray(e)||(e=[e]),xm.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Xy]=r,t},set_once_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ky]=n,r},union_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=xm.isArray(e)?e:[e])},this):n[e]=xm.isArray(t)?t:[t],r[t_]=n,r},append_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[e_]=n,r},remove_action:function(e,t){var r={},n={};return xm.isObject(e)?xm.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[r_]=n,r},delete_action:function(){var e={$delete:""};return e}},i_=function(){};xm.extend(i_.prototype,n_),i_.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},i_.prototype.set=It(function(e,t,r){var n=this.set_action(e,t);return xm.isObject(e)&&(r=t),this._send_request(n,r)}),i_.prototype.set_once=It(function(e,t,r){var n=this.set_once_action(e,t);return xm.isObject(e)&&(r=t),this._send_request(n,r)}),i_.prototype.unset=It(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),i_.prototype.union=It(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),i_.prototype.delete=It(function(e){var t=this.delete_action();return this._send_request(t,e)}),i_.prototype.remove=It(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),i_.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=xm.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},i_.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},i_.prototype._get_config=function(e){return this._mixpanel.get_config(e)},i_.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},i_.prototype.remove=i_.prototype.remove,i_.prototype.set=i_.prototype.set,i_.prototype.set_once=i_.prototype.set_once,i_.prototype.union=i_.prototype.union,i_.prototype.unset=i_.prototype.unset,i_.prototype.toString=i_.prototype.toString;var o_=function(){};xm.extend(o_.prototype,n_),o_.prototype._init=function(e){this._mixpanel=e},o_.prototype.set=xt(function(e,t,r){var n=this.set_action(e,t);return xm.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Zy]=xm.extend({},xm.info.people_properties(),n[Zy]),this._send_request(n,r)}),o_.prototype.set_once=xt(function(e,t,r){var n=this.set_once_action(e,t);return xm.isObject(e)&&(r=t),this._send_request(n,r)}),o_.prototype.unset=xt(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),o_.prototype.increment=xt(function(e,t,r){var n={},i={};return xm.isObject(e)?(xm.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Im.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(xm.isUndefined(t)&&(t=1),i[e]=t),n[Qy]=i,this._send_request(n,r)}),o_.prototype.append=xt(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),o_.prototype.remove=xt(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),o_.prototype.union=xt(function(e,t,r){xm.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),o_.prototype.track_charge=xt(function(){Im.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),o_.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},o_.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Im.error("mixpanel.people.delete_user() requires you to call identify() first")},o_.prototype.toString=function(){return this._mixpanel.toString()+".people"},o_.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=xm.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),xm.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),xm.truncate(o,255))},o_.prototype._get_config=function(e){return this._mixpanel.get_config(e)},o_.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},o_.prototype._enqueue=function(e){Zy in e?this._mixpanel.persistence._add_to_people_queue(Zy,e):Ky in e?this._mixpanel.persistence._add_to_people_queue(Ky,e):Xy in e?this._mixpanel.persistence._add_to_people_queue(Xy,e):Qy in e?this._mixpanel.persistence._add_to_people_queue(Qy,e):e_ in e?this._mixpanel.persistence._add_to_people_queue(e_,e):r_ in e?this._mixpanel.persistence._add_to_people_queue(r_,e):t_ in e?this._mixpanel.persistence._add_to_people_queue(t_,e):Im.error("Invalid call to _enqueue():",e)},o_.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=xm.extend({},this._mixpanel.persistence.load_queue(e)),s=o;xm.isUndefined(o)||!xm.isObject(o)||xm.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),xm.isUndefined(r)||r(t,n)}))},o_.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Zy,this.set,e),this._flush_one_queue(Ky,this.set_once,n),this._flush_one_queue(Xy,this.unset,o,function(e){return xm.keys(e)}),this._flush_one_queue(Qy,this.increment,t),this._flush_one_queue(t_,this.union,i);var c=this._mixpanel.persistence.load_queue(e_);if(!xm.isUndefined(c)&&xm.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(e_,u),xm.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(e_),u=c.pop(),a._mixpanel.persistence.save(),xm.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(r_);if(!xm.isUndefined(p)&&xm.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(r_,f),xm.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(r_),f=p.pop(),a._mixpanel.persistence.save(),xm.isEmptyObject(f)||a.remove(f,d)},o_.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},o_.prototype.set=o_.prototype.set,o_.prototype.set_once=o_.prototype.set_once,o_.prototype.unset=o_.prototype.unset,o_.prototype.increment=o_.prototype.increment,o_.prototype.append=o_.prototype.append,o_.prototype.remove=o_.prototype.remove,o_.prototype.union=o_.prototype.union,o_.prototype.track_charge=o_.prototype.track_charge,o_.prototype.clear_charges=o_.prototype.clear_charges,o_.prototype.delete_user=o_.prototype.delete_user,o_.prototype.toString=o_.prototype.toString;var s_,a_="__mps",c_="__mpso",u_="__mpus",l_="__mpa",h_="__mpap",p_="__mpr",f_="__mpu",d_="$people_distinct_id",g_="__alias",m_="__timers",v_=[a_,c_,u_,l_,h_,p_,f_,d_,g_,m_],y_=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Im.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&xm.localStorage.is_supported()?this.storage=xm.localStorage:this.storage=xm.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};y_.prototype.properties=function(){var e={};return this.load(),xm.each(this.props,function(t,r){xm.include(v_,r)||(e[r]=t)}),e},y_.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=xm.extend({},e))}},y_.prototype.upgrade=function(){var e,t;this.storage===xm.localStorage?(e=xm.cookie.parse(this.name),xm.cookie.remove(this.name),xm.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===xm.cookie&&(t=xm.localStorage.parse(this.name),xm.localStorage.remove(this.name),t&&this.register_once(t))},y_.prototype.save=function(){this.disabled||this.storage.set(this.name,Gm(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},y_.prototype.load_prop=function(e){return this.load(),this.props[e]},y_.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},y_.prototype.clear=function(){this.remove(),this.props={}},y_.prototype.register_once=function(e,t,r){return!!xm.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),xm.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},y_.prototype.register=function(e,t){return!!xm.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),xm.extend(this.props,e),this.save(),!0)},y_.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},y_.prototype.update_search_keyword=function(e){this.register(xm.info.searchInfo(e))},y_.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:xm.info.referringDomain(e)||"$direct"},"")},y_.prototype.get_referrer_info=function(){return xm.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},y_.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},y_.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},y_.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},y_.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},y_.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},y_.prototype.get_cross_subdomain=function(){return this.cross_subdomain},y_.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},y_.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Zy),o=this._get_or_create_queue(Ky),s=this._get_or_create_queue(Xy),a=this._get_or_create_queue(Qy),c=this._get_or_create_queue(t_),u=this._get_or_create_queue(r_,[]),l=this._get_or_create_queue(e_,[]);r===a_?(xm.extend(i,n),this._pop_from_people_queue(Qy,n),this._pop_from_people_queue(t_,n),this._pop_from_people_queue(Xy,n)):r===c_?(xm.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Xy,n)):r===u_?xm.each(n,function(e){xm.each([i,o,a,c],function(t){e in t&&delete t[e]}),xm.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===l_?(xm.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(Xy,n)):r===f_?(xm.each(n,function(e,t){xm.isArray(e)&&(t in c||(c[t]=[]),xm.each(e,function(e){xm.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Xy,n)):r===p_?(u.push(n),this._pop_from_people_queue(e_,n)):r===h_&&(l.push(n),this._pop_from_people_queue(Xy,n)),Im.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Im.log(t),this.save()},y_.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];xm.isUndefined(r)||xm.each(t,function(t,n){e===e_||e===r_?xm.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},y_.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},y_.prototype._get_queue_key=function(e){return e===Zy?a_:e===Ky?c_:e===Xy?u_:e===Qy?l_:e===e_?h_:e===r_?p_:e===t_?f_:void Im.error("Invalid queue:",e)},y_.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=xm.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},y_.prototype.set_event_timer=function(e,t){var r=this.load_prop(m_)||{};r[e]=t,this.props[m_]=r,this.save()},y_.prototype.remove_event_timer=function(e){var t=(this.load_prop(m_)||{})[e];return xm.isUndefined(t)||(delete this.props[m_][e],this.save()),t};var __,b_=function(e,t){throw new Error(e+" not available in this build.")},w_=0,k_="mixpanel",S_="base64",C_="$device:",x_=Mr.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,I_=!x_&&-1===ym.indexOf("MSIE")&&-1===ym.indexOf("Mozilla"),O_=null;dm.sendBeacon&&(O_=function(){return dm.sendBeacon.apply(dm,arguments)});var E_={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},M_={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:E_,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:S_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:$m,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:$m,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:om,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},R_=!1,A_=function(){},T_=function(e,t,r){var n,i=r===k_?__:__[r];if(i&&s_===w_)n=i;else{if(i&&!xm.isArray(i))return void Im.error("You have already initialized "+r);n=new A_}if(n._cached_groups={},n._init(e,t,r),n.people=new o_,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=xm.info.campaignParams(null),s={},a=!1;xm.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}Pr.DEBUG=Pr.DEBUG||n.get_config("debug");var c=s_===w_?"module":"snippet";return Mr.dispatchEvent(new Mr.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:xm.info}})),!xm.isUndefined(i)&&xm.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};A_.prototype.init=function(e,t,r){if(xm.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==k_){var n=T_(e,t,r);return __[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},A_.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||M_.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.hooks={},this.set_config(xm.extend({},M_,n,t,{name:r,token:e,callback_fn:(r===k_?r:k_+"."+r)+"._jsc"})),this.recorderManager=new Hy({mixpanelInstance:this,getConfigFunc:xm.bind(this.get_config,this),setConfigFunc:xm.bind(this.set_config,this),getTabIdFunc:xm.bind(this.get_tab_id,this),reportErrorFunc:xm.bind(this.report_error,this),getDistinctIdFunc:xm.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:b_}),this._jsc=$m,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(xm.localStorage.is_supported(!0)&&x_){if(this.init_batchers(),O_&&Mr.addEventListener){var i=xm.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Mr.addEventListener("pagehide",function(e){e.persisted&&i()}),Mr.addEventListener("visibilitychange",function(){"hidden"===gm.visibilityState&&i()})}}else this._batch_requests=!1,Im.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),xm.each(this.get_batcher_configs(),function(e){Im.log("Clearing batch queue "+e.queue_key),xm.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new y_(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=xm.UUID();this.get_distinct_id()||this.register_once({distinct_id:C_+o,$device_id:o},""),this.flags=new zy({getFullApiRoute:xm.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:xm.bind(this.get_config,this),setConfigFunc:xm.bind(this.set_config,this),getPropertyFunc:xm.bind(this.get_property,this),trackingFunc:xm.bind(this.track,this),loadExtraBundle:b_,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Fr}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(xm.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new Ey(this),this.autocapture.init()},A_.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Im.log("Tab ID initialization skipped due to disable_persistence config");else if(xm.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!xm.sessionStorage.get(r)&&xm.sessionStorage.get(t)||xm.sessionStorage.set(t,"$tab-"+xm.UUID()),xm.sessionStorage.set(r,"1"),this.tab_id=xm.sessionStorage.get(t),Mr.addEventListener("beforeunload",function(){xm.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},A_.prototype.get_tab_id=function(){return this.tab_id||null},A_.prototype._check_and_start_session_recording=Ct(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),A_.prototype._start_recording_on_event=Mm(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(xm.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),A_.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},A_.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},A_.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},A_.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},A_.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},A_.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},A_.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},A_.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},A_.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},A_.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=xm.info.campaignParams(null);xm.each(e,function(e,t){this.unregister(t)}.bind(this))}},A_.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(gm.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(xm.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(gm.referrer)},A_.prototype._dom_loaded=function(){xm.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||xm.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},A_.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!R_)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},A_.prototype._prepare_callback=function(e,t){if(xm.isUndefined(e))return null;if(x_){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},A_.prototype._send_request=function(e,t,r,n){var i=!0;if(I_)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!xm.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=xm.extend(o,r||{}),x_||(r.method="GET");var a="POST"===r.method,c=O_&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),x_||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),xm.extend(t,this.get_config("api_extra_query_params")),e+="?"+xm.HTTPBuildQuery(t);var l=this;if("img"in t){var h=gm.createElement("img");h.src=e,gm.body.appendChild(h)}else if(c){try{i=O_(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(x_)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),xm.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=xm.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=gm.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=gm.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},A_.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!Mr.AbortController)return Im.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:Pr.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+xm.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return Mr.fetch(o,c).then(function(e){return clearTimeout(a),e.ok?e.json():(Im.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};xm.each(n,function(e,t){M_.hasOwnProperty(t)&&(i[t]=e)}),xm.isEmptyObject(i)?(Im.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),Im.critical("Failed to fetch remote settings",e),r()})},A_.prototype._execute_array=function(e){var t,r=[],n=[],i=[];xm.each(e,function(e){e&&(t=e[0],xm.isArray(t)?i.push(e):"function"==typeof e?e.call(this):xm.isArray(e)&&"alias"===t?r.push(e):xm.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){xm.each(e,function(e){if(xm.isArray(e[0])){var r=t;xm.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},A_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},A_.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},A_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=xm.bind(function(e){return new uv(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:xm.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:xm.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:xm.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},A_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,xm.each(this.request_batchers,function(e){e.start()}))},A_.prototype.stop_batch_senders=function(){this._batch_requests=!1,xm.each(this.request_batchers,function(e){e.stop(),e.clear()})},A_.prototype.push=function(e){this._execute_array([e])},A_.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},A_.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},A_.prototype._encode_data_for_request=function(e){var t=Gm(e);return this.get_config("api_payload_format")===S_&&(t=xm.base64Encode(t)),{data:t}},A_.prototype._track_or_batch=function(e,t){var r=xm.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||$m;var a=!0,c=xm.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Im.log("MIXPANEL REQUEST:"),Im.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},A_.prototype.track=Ct(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=$m),xm.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=xm.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!xm.isUndefined(a)){var c=(new Date).getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?xm.info.marketingParams():{};t=xm.extend({},xm.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");xm.isArray(l)?xm.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),A_.prototype.set_group=Ct(function(e,t,r){xm.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),A_.prototype.add_group=Ct(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),A_.prototype.remove_group=Ct(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),A_.prototype.track_with_groups=Ct(function(e,t,r,n){var i=xm.extend({},t||{});return xm.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),A_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},A_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},A_.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new i_)._init(this,e,t),this._cached_groups[r]=n),n},A_.prototype.track_pageview=Ct(function(e,t){"object"!==(void 0===e?"undefined":_type_of(e))&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=xm.extend(xm.info.mpPageViewProperties(),xm.info.campaignParams(),xm.info.clickParams()),i=xm.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)}),A_.prototype.track_links=function(){return this._track_dom.call(this,Yy,arguments)},A_.prototype.track_forms=function(){return this._track_dom.call(this,Jy,arguments)},A_.prototype.time_event=function(e){xm.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var P_={persistent:!0},N_=function(e){var t;return t=xm.isObject(e)?e:xm.isUndefined(e)?{}:{days:e},xm.extend({},P_,t)};A_.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=N_(t);n.persistent?this.persistence.register(e,n.days):xm.extend(this.unpersisted_superprops,e)}},A_.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=N_(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),xm.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},A_.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=N_(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},A_.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},A_.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(C_))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(g_)&&(this.unregister(g_),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){Im.error("[flags] Error fetching flags during identify")})},A_.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=xm.UUID();this.register_once({distinct_id:C_+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},A_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},A_.prototype.alias=function(e,t){if(e===this.get_property(d_))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return xm.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(g_,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},A_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},A_.prototype.set_config=function(e){xm.isObject(e)&&(xm.extend(this.config,e),e.batch_size&&xm.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Pr.DEBUG=Pr.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),xm.isObject(e.hooks)&&(this.hooks={},xm.each(e.hooks,function(e,t){if(xm.isFunction(e))this.hooks[t]=[e];else if(xm.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)xm.isFunction(e[r])||Im.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Im.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},A_.prototype.get_config=function(e){return this.config[e]},A_.prototype._run_hook=function(e){var t=lm.call(arguments,1);return xm.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(xm.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},A_.prototype.get_property=function(e){return this.persistence.load_prop([e])},A_.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},A_.prototype.toString=function(){var e=this.get_config("name");return e!==k_&&(e=k_+"."+e),e},A_.prototype._event_is_disabled=function(e){return xm.isBlockedUA(ym)||this._flags.disable_all_events||xm.include(this.__disabled_events,e)},A_.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&xm.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!xm.cookie.get("mp_optout")||(xm.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},A_.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},A_.prototype._gdpr_call_func=function(e,t){return t=xm.extend({track:xm.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),xm.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},A_.prototype.opt_in_tracking=function(e){e=xm.extend({enable_persistence:!0},e),this._gdpr_call_func(bt,e),this._gdpr_update_persistence(e)},A_.prototype.opt_out_tracking=function(e){(e=xm.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(wt,e),this._gdpr_update_persistence(e)},A_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(kt,e)},A_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(St,e)},A_.prototype.clear_opt_in_out_tracking=function(e){e=xm.extend({enable_persistence:!0},e),this._gdpr_call_func(Ot,e),this._gdpr_update_persistence(e)},A_.prototype.report_error=function(e,t){Im.error.apply(Im.error,arguments);try{t||_instanceof(e,Error)||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(e){Im.error(e)}},A_.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},A_.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Im.log("remove_hook failed. Matching hook was not found"))},A_.prototype.init=A_.prototype.init,A_.prototype.reset=A_.prototype.reset,A_.prototype.enable=A_.prototype.enable,A_.prototype.disable=A_.prototype.disable,A_.prototype.time_event=A_.prototype.time_event,A_.prototype.track=A_.prototype.track,A_.prototype.track_links=A_.prototype.track_links,A_.prototype.track_forms=A_.prototype.track_forms,A_.prototype.track_pageview=A_.prototype.track_pageview,A_.prototype.register=A_.prototype.register,A_.prototype.register_once=A_.prototype.register_once,A_.prototype.unregister=A_.prototype.unregister,A_.prototype.identify=A_.prototype.identify,A_.prototype.alias=A_.prototype.alias,A_.prototype.name_tag=A_.prototype.name_tag,A_.prototype.set_config=A_.prototype.set_config,A_.prototype.get_config=A_.prototype.get_config,A_.prototype.get_api_host=A_.prototype.get_api_host,A_.prototype.get_property=A_.prototype.get_property,A_.prototype.get_distinct_id=A_.prototype.get_distinct_id,A_.prototype.toString=A_.prototype.toString,A_.prototype.opt_out_tracking=A_.prototype.opt_out_tracking,A_.prototype.opt_in_tracking=A_.prototype.opt_in_tracking,A_.prototype.has_opted_out_tracking=A_.prototype.has_opted_out_tracking,A_.prototype.has_opted_in_tracking=A_.prototype.has_opted_in_tracking,A_.prototype.clear_opt_in_out_tracking=A_.prototype.clear_opt_in_out_tracking,A_.prototype.get_group=A_.prototype.get_group,A_.prototype.set_group=A_.prototype.set_group,A_.prototype.add_group=A_.prototype.add_group,A_.prototype.remove_group=A_.prototype.remove_group,A_.prototype.add_hook=A_.prototype.add_hook,A_.prototype.remove_hook=A_.prototype.remove_hook,A_.prototype.track_with_groups=A_.prototype.track_with_groups,A_.prototype.start_batch_senders=A_.prototype.start_batch_senders,A_.prototype.stop_batch_senders=A_.prototype.stop_batch_senders,A_.prototype.start_session_recording=A_.prototype.start_session_recording,A_.prototype.stop_session_recording=A_.prototype.stop_session_recording,A_.prototype.pause_session_recording=A_.prototype.pause_session_recording,A_.prototype.resume_session_recording=A_.prototype.resume_session_recording,A_.prototype.get_session_recording_properties=A_.prototype.get_session_recording_properties,A_.prototype.get_session_replay_url=A_.prototype.get_session_replay_url,A_.prototype.get_tab_id=A_.prototype.get_tab_id,A_.prototype.DEFAULT_API_ROUTES=E_,A_.prototype.__get_recorder=A_.prototype.__get_recorder,A_.prototype.__get_recording_init_promise=A_.prototype.__get_recording_init_promise,y_.prototype.properties=y_.prototype.properties,y_.prototype.update_search_keyword=y_.prototype.update_search_keyword,y_.prototype.update_referrer_info=y_.prototype.update_referrer_info,y_.prototype.get_cross_subdomain=y_.prototype.get_cross_subdomain,y_.prototype.clear=y_.prototype.clear;var D_,F_={},L_=function(){__.init=function(e,t,r){if(r)return __[r]||(__[r]=F_[r]=T_(e,t,r),__[r]._loaded()),__[r];var n=__;F_[k_]?n=F_[k_]:e&&((n=T_(e,t,k_))._loaded(),F_[k_]=n),__=n,1===s_&&(Mr[k_]=__),xm.each(F_,function(e,t){t!==k_&&(__[t]=e)}),__._=xm}},j_=function(){function e(){e.done||(e.done=!0,R_=!0,I_=!1,xm.each(F_,function(e){e._dom_loaded()}))}if(gm.addEventListener)"complete"===gm.readyState?e():gm.addEventListener("DOMContentLoaded",e,!1);else if(gm.attachEvent){gm.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Mr.frameElement}catch(e){}gm.documentElement.doScroll&&t&&function t(){try{gm.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}xm.register_event(Mr,"load",e,!0)},U_=(b_=function(e,t){t()},s_=w_,__=new A_,L_(),__.init(),j_(),__),B_={},q_=["set","set_once","increment","append","union","remove"],z_=["set","set_once","union","remove"],V_={type:"mixpanel",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;if(!(null==n?void 0:n.apiKey))return!1;var i=vr(r),o=n.apiKey,s=(n.identify,n.group,n._state,_object_spread({track_pageview:!1,autocapture:!1},_object_without_properties(n,["apiKey","identify","group","_state"])));i.init(o,s);return _object_spread_props(_object_spread({},t),{settings:_object_spread_props(_object_spread({},n),{_state:{lastIdentity:{}}})})},push:function(e,t){return _async_to_generator(function(e,t){var r,n,i,o,c,h,p,d,g,m,v,y,_,b,w,k,S,C,x,I,O,E;return _ts_generator(this,function(M){switch(M.label){case 0:return r=t.config,n=t.rule,i=t.env,o=t.data,c=t.collector,d=vr(i),g=r.settings||{},m=(null==n?void 0:n.settings)||{},v=g._state||{},void 0===m.reset?[3,4]:a(m.reset)?(y=m.reset,[3,3]):[3,1];case 1:return[4,f(e,m.reset,{collector:c})];case 2:y=M.sent(),M.label=3;case 3:y&&(d.reset(),v.lastIdentity={}),M.label=4;case 4:return void 0===(_=null!==(h=m.identify)&&void 0!==h?h:g.identify)?[3,6]:[4,f(e,_,{collector:c})];case 5:b=M.sent(),u(b)&&(v.lastIdentity=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=_object_spread({},r),i=t.distinctId;return l(i)&&""!==i?(i===r.distinctId||(e.identify(i),n.distinctId=i),n):n}(d,b,v.lastIdentity)),M.label=6;case 6:return void 0===m.people?[3,8]:[4,f(e,m.people,{collector:c})];case 7:w=M.sent(),u(w)&&function(e,t){var r=!0,n=!1,i=void 0;try{for(var o,a=q_[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var c=o.value,h=t[c];u(h)&&0!==Object.keys(h).length&&e.people[c](h)}}catch(e){n=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}if(s(t.unset)){var p=t.unset.filter(function(e){return l(e)});p.length>0&&e.people.unset(p)}!0===t.delete_user&&e.people.delete_user()}(d,w),M.label=8;case 8:return void 0===(k=null!==(p=m.group)&&void 0!==p?p:g.group)?[3,10]:[4,f(e,k,{collector:c})];case 9:S=M.sent(),u(S)&&(C=S.key,x=S.id,l(C)&&""!==C&&(l(x)||s(x))&&""!==x&&d.set_group(C,x)),M.label=10;case 10:return void 0===m.groupProfile?[3,12]:[4,f(e,m.groupProfile,{collector:c})];case 11:I=M.sent(),u(I)&&function(e,t){var r=t.key,n=t.id;if(l(r)&&""!==r&&l(n)&&""!==n){var i=e.get_group(r,n),o=!0,a=!1,c=void 0;try{for(var h,p=z_[Symbol.iterator]();!(o=(h=p.next()).done);o=!0){var f=h.value,d=t[f];u(d)&&0!==Object.keys(d).length&&i[f](d)}}catch(e){a=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(a)throw c}}if(s(t.unset)){var g=t.unset.filter(function(e){return l(e)});g.length>0&&i.unset(g)}!0===t.delete&&i.delete()}}(d,I),M.label=12;case 12:return!0!==(null==n?void 0:n.silent)&&(O=l(null==n?void 0:n.name)?n.name:e.name,E=u(o)?o:{},d.track(O,E)),g._state=v,[2]}})}).apply(this,arguments)},on:function(e,t){var r;if("consent"===e&&t.data){var n=vr(t.env),i=t.data,o=null===(r=t.config)||void 0===r?void 0:r.consent;if(o&&0!==Object.keys(o).length)Object.keys(o).every(function(e){return!0===i[e]})?n.opt_in_tracking():n.opt_out_tracking()}},destroy:function(e){var t,r=e.config,n=e.env,i=vr(n);null===(t=i.stop_batch_senders)||void 0===t||t.call(i);var o=null==r?void 0:r.settings;(null==o?void 0:o._state)&&(o._state={lastIdentity:{}})}},W_=V_;return D_=kr,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var i=!0,o=!1,s=void 0;try{for(var a,c=function(){var i=a.value;wr.call(e,i)||i===r||yr(e,i,{get:function(){return t[i]},enumerable:!(n=_r(t,i))||n.enumerable})},u=br(t)[Symbol.iterator]();!(i=(a=u.next()).done);i=!0)c()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}}return e}(yr({},"__esModule",{value:!0}),D_)}();
|