@shrfe/assets 1.0.20 → 1.0.22

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.
Files changed (43) hide show
  1. package/js/shrfe-core-umd.js +4 -4
  2. package/package.json +1 -1
  3. package/wc-lib/p-0ab5aa8f.entry.js +1 -0
  4. package/wc-lib/{p-7aab95ba.entry.js → p-0c66b75b.entry.js} +1 -1
  5. package/wc-lib/p-1721388d.entry.js +1 -0
  6. package/wc-lib/p-252bb260.entry.js +1 -0
  7. package/wc-lib/p-28add28f.entry.js +1 -0
  8. package/wc-lib/p-322b6a84.entry.js +1 -0
  9. package/wc-lib/p-45d216c5.entry.js +6 -0
  10. package/wc-lib/p-4adb8241.entry.js +1 -0
  11. package/wc-lib/p-513a64f8.entry.js +1 -0
  12. package/wc-lib/p-681129c8.entry.js +1 -0
  13. package/wc-lib/p-82beda62.entry.js +1 -0
  14. package/wc-lib/p-929e3dd9.entry.js +1 -0
  15. package/wc-lib/p-CUS2AmqM.js +2 -0
  16. package/wc-lib/p-a0c6e079.entry.js +1 -0
  17. package/wc-lib/p-a5a7f920.js +1 -0
  18. package/wc-lib/p-a9faae34.entry.js +1 -0
  19. package/wc-lib/p-adc51af7.entry.js +1 -0
  20. package/wc-lib/{p-b6c40d9f.entry.js → p-bbc59b1f.entry.js} +1 -1
  21. package/wc-lib/p-cb6082d5.entry.js +1 -0
  22. package/wc-lib/p-ee08c411.entry.js +1 -0
  23. package/wc-lib/p-f1e95f08.entry.js +1 -0
  24. package/wc-lib/wc-lib.esm.js +1 -1
  25. package/wc-lib/p-06933d31.entry.js +0 -1
  26. package/wc-lib/p-073e72b7.js +0 -1
  27. package/wc-lib/p-125d443b.entry.js +0 -1
  28. package/wc-lib/p-197b576e.entry.js +0 -1
  29. package/wc-lib/p-3eaa4250.entry.js +0 -1
  30. package/wc-lib/p-4865cb8d.entry.js +0 -1
  31. package/wc-lib/p-6f116fdb.entry.js +0 -1
  32. package/wc-lib/p-72ad0bd5.entry.js +0 -1
  33. package/wc-lib/p-75161f0b.entry.js +0 -1
  34. package/wc-lib/p-86b5690c.entry.js +0 -1
  35. package/wc-lib/p-8f324339.entry.js +0 -1
  36. package/wc-lib/p-9cf22f72.entry.js +0 -1
  37. package/wc-lib/p-C6hwjI5h.js +0 -2
  38. package/wc-lib/p-ae4dbe50.entry.js +0 -6
  39. package/wc-lib/p-b243e285.entry.js +0 -1
  40. package/wc-lib/p-bbc4e214.entry.js +0 -1
  41. package/wc-lib/p-c57ce36c.entry.js +0 -1
  42. package/wc-lib/p-c592afb3.entry.js +0 -1
  43. package/wc-lib/p-ff9e9733.entry.js +0 -1
@@ -25,15 +25,15 @@ return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.create([
25
25
  */
26
26
  (function(t,r){e.exports=r()})(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=256,o=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r<e.length-2;r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=this._encodeByte(n>>>6&63),t+=this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=2===i?this._encodeByte(n>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),o=0,s=0,a=0,c=0,u=0,l=0,h=0;s<r-4;s+=4)c=this._decodeChar(e.charCodeAt(s+0)),u=this._decodeChar(e.charCodeAt(s+1)),l=this._decodeChar(e.charCodeAt(s+2)),h=this._decodeChar(e.charCodeAt(s+3)),n[o++]=c<<2|u>>>4,n[o++]=u<<4|l>>>2,n[o++]=l<<6|h,a|=c&i,a|=u&i,a|=l&i,a|=h&i;if(s<r-1&&(c=this._decodeChar(e.charCodeAt(s)),u=this._decodeChar(e.charCodeAt(s+1)),n[o++]=c<<2|u>>>4,a|=c&i,a|=u&i),s<r-2&&(l=this._decodeChar(e.charCodeAt(s+2)),n[o++]=u<<4|l>>>2,a|=l&i),s<r-3&&(h=this._decodeChar(e.charCodeAt(s+3)),n[o++]=l<<6|h,a|=h&i),0!==a)throw new Error("Base64Coder: incorrect characters for decoding");return n},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,t+=62-e>>>8&3,String.fromCharCode(t)},e.prototype._decodeChar=function(e){var t=i;return t+=(42-e&e-44)>>>8&-i+e-43+62,t+=(46-e&e-48)>>>8&-i+e-47+63,t+=(47-e&e-58)>>>8&-i+e-48+52,t+=(64-e&e-91)>>>8&-i+e-65+0,t+=(96-e&e-123)>>>8&-i+e-97+26,t},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0;r--){if(e[r]!==this._paddingCharacter)break;t++}if(e.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=o;var s=new o;function a(e){return s.encode(e)}function c(e){return s.decode(e)}t.encode=a,t.decode=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,t+=62-e>>>8&49,String.fromCharCode(t)},t.prototype._decodeChar=function(e){var t=i;return t+=(44-e&e-46)>>>8&-i+e-45+62,t+=(94-e&e-96)>>>8&-i+e-95+63,t+=(47-e&e-58)>>>8&-i+e-48+52,t+=(64-e&e-91)>>>8&-i+e-65+0,t+=(96-e&e-123)>>>8&-i+e-97+26,t},t}(o);t.URLSafeCoder=u;var l=new u;function h(e){return l.encode(e)}function d(e){return l.decode(e)}t.encodeURLSafe=h,t.decodeURLSafe=d,t.encodedLength=function(e){return s.encodedLength(e)},t.maxDecodedLength=function(e){return s.maxDecodedLength(e)},t.decodedLength=function(e){return s.decodedLength(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="utf8: invalid string",i="utf8: invalid source encoding";function o(e){for(var t=new Uint8Array(s(e)),r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=192|i>>6,t[r++]=128|63&i):i<55296?(t[r++]=224|i>>12,t[r++]=128|i>>6&63,t[r++]=128|63&i):(n++,i=(1023&i)<<10,i|=1023&e.charCodeAt(n),i+=65536,t[r++]=240|i>>18,t[r++]=128|i>>12&63,t[r++]=128|i>>6&63,t[r++]=128|63&i)}return t}function s(e){for(var t=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<128)t+=1;else if(i<2048)t+=2;else if(i<55296)t+=3;else{if(!(i<=57343))throw new Error(n);if(r>=e.length-1)throw new Error(n);r++,t+=4}}return t}function a(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(128&n){var o=void 0;if(n<224){if(r>=e.length)throw new Error(i);var s=e[++r];if(128!==(192&s))throw new Error(i);n=(31&n)<<6|63&s,o=128}else if(n<240){if(r>=e.length-1)throw new Error(i);s=e[++r];var a=e[++r];if(128!==(192&s)||128!==(192&a))throw new Error(i);n=(15&n)<<12|(63&s)<<6|63&a,o=2048}else{if(!(n<248))throw new Error(i);if(r>=e.length-2)throw new Error(i);s=e[++r],a=e[++r];var c=e[++r];if(128!==(192&s)||128!==(192&a)||128!==(192&c))throw new Error(i);n=(15&n)<<18|(63&s)<<12|(63&a)<<6|63&c,o=65536}if(n<o||n>=55296&&n<=57343)throw new Error(i);if(n>=65536){if(n>1114111)throw new Error(i);n-=65536,t.push(String.fromCharCode(55296|n>>10)),n=56320|1023&n}}t.push(String.fromCharCode(n))}return t.join("")}t.encode=o,t.encodedLength=s,t.decode=a},function(e,t,r){e.exports=r(3).default},function(e,t,r){"use strict";r.r(t);class n{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,n=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:r,name:n,callback:o}}remove(e){delete this[e.number]}}var i=new n("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},s=o;class a{constructor(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}load(e,t,r){var n=this;if(n.loading[e]&&n.loading[e].length>0)n.loading[e].push(r);else{n.loading[e]=[r];var i=Kt.createScriptRequest(n.getPath(e,t)),o=n.receivers.create(function(t){if(n.receivers.remove(o),n.loading[e]){var r=n.loading[e];delete n.loading[e];for(var s=function(e){e||i.cleanup()},a=0;a<r.length;a++)r[a](t,s)}});i.send(o)}}getRoot(e){var t,r=Kt.getDocument().location.protocol;return t=e&&e.useTLS||"https:"===r?this.options.cdn_https:this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var c=new n("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:s.cdn_http,cdn_https:s.cdn_https,version:s.VERSION,suffix:s.dependency_suffix,receivers:c});const l={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},h=function(e){const t="See:",r=l.urls[e];if(!r)return"";let n;return r.fullUrl?n=r.fullUrl:r.path&&(n=l.baseUrl+r.path),n?`${t} ${n}`:""};var d,p={buildLogSuffix:h};(function(e){e["UserAuthentication"]="user-authentication",e["ChannelAuthorization"]="channel-authorization"})(d||(d={}));class f extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class m extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}const S=function(e,t,r,n,i){const o=Kt.createXHR();for(var s in o.open("POST",r.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)o.setRequestHeader(s,r.headers[s]);if(null!=r.headersProvider){let e=r.headersProvider();for(var s in e)o.setRequestHeader(s,e[s])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let t,r=!1;try{t=JSON.parse(o.responseText),r=!0}catch(e){i(new k(200,`JSON returned from ${n.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}r&&i(null,t)}else{let e="";switch(n){case d.UserAuthentication:e=p.buildLogSuffix("authenticationEndpoint");break;case d.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${p.buildLogSuffix("authorizationEndpoint")}`;break}i(new k(o.status,`Unable to retrieve auth string from ${n.toString()} endpoint - received status: ${o.status} from ${r.endpoint}. ${e}`),null)}},o.send(t),o};var x=S;function C(e){return D(R(e))}for(var E=String.fromCharCode,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O={},I=0,T=A.length;I<T;I++)O[A.charAt(I)]=I;var M=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},R=function(e){return e.replace(/[^\x00-\x7F]/g,M)},P=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[A.charAt(r>>>18),A.charAt(r>>>12&63),t>=2?"=":A.charAt(r>>>6&63),t>=1?"=":A.charAt(63&r)];return n.join("")},D=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,P)};class L{constructor(e,t,r,n){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=n(this.timer))},r)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var B=L;function N(e){window.clearTimeout(e)}function j(e){window.clearInterval(e)}class F extends B{constructor(e,t){super(setTimeout,N,e,function(e){return t(),null})}}class U extends B{constructor(e,t){super(setInterval,j,e,function(e){return t(),e})}}var z={now(){return Date.now?Date.now():(new Date).valueOf()},defer(e){return new F(0,e)},method(e,...t){var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}},q=z;function H(e,...t){for(var r=0;r<t.length;r++){var n=t[r];for(var i in n)n[i]&&n[i].constructor&&n[i].constructor===Object?e[i]=H(e[i]||{},n[i]):e[i]=n[i]}return e}function $(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"===typeof arguments[t]?e.push(arguments[t]):e.push(se(arguments[t]));return e.join(" : ")}function W(e,t){var r=Array.prototype.indexOf;if(null===e)return-1;if(r&&e.indexOf===r)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function V(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(e[r],r,e)}function X(e){var t=[];return V(e,function(e,r){t.push(r)}),t}function Y(e){var t=[];return V(e,function(e){t.push(e)}),t}function G(e,t,r){for(var n=0;n<e.length;n++)t.call(r||window,e[n],n,e)}function J(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n,e,r));return r}function K(e,t){var r={};return V(e,function(e,n){r[n]=t(e)}),r}function Z(e,t){t=t||function(e){return!!e};for(var r=[],n=0;n<e.length;n++)t(e[n],n,e,r)&&r.push(e[n]);return r}function Q(e,t){var r={};return V(e,function(n,i){(t&&t(n,i,e,r)||Boolean(n))&&(r[i]=n)}),r}function ee(e){var t=[];return V(e,function(e,r){t.push([r,e])}),t}function te(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1}function re(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0}function ne(e){return K(e,function(e){return"object"===typeof e&&(e=se(e)),encodeURIComponent(C(e.toString()))})}function ie(e){var t=Q(e,function(e){return void 0!==e}),r=J(ee(ne(t)),q.method("join","=")).join("&");return r}function oe(e){var t=[],r=[];return function e(n,i){var o,s,a;switch(typeof n){case"object":if(!n)return null;for(o=0;o<t.length;o+=1)if(t[o]===n)return{$ref:r[o]};if(t.push(n),r.push(i),"[object Array]"===Object.prototype.toString.apply(n))for(a=[],o=0;o<n.length;o+=1)a[o]=e(n[o],i+"["+o+"]");else for(s in a={},n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=e(n[s],i+"["+JSON.stringify(s)+"]"));return a;case"number":case"string":case"boolean":return n}}(e,"$")}function se(e){try{return JSON.stringify(e)}catch(t){return JSON.stringify(oe(e))}}class ae{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...t){var r=$.apply(this,arguments);if(Ar.log)Ar.log(r);else if(Ar.logToConsole){const t=e.bind(this);t(r)}}}var ce=new ae,ue=function(e,t,r,n,i){void 0===r.headers&&null==r.headersProvider||ce.warn(`To send headers with the ${n.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var s=e.getDocument(),a=s.createElement("script");e.auth_callbacks[o]=function(e){i(null,e)};var c="Pusher.auth_callbacks['"+o+"']";a.src=r.endpoint+"?callback="+encodeURIComponent(c)+"&"+t;var u=s.getElementsByTagName("head")[0]||s.documentElement;u.insertBefore(a,u.firstChild)},le=ue;class he{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var n=document.getElementsByTagName("head")[0];n.insertBefore(t.script,n.firstChild),t.errorScript&&n.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class de{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=ie(this.data),r=this.url+"/"+e.number+"?"+t;this.request=Kt.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var pe=function(e,t){return function(r,n){var o="http"+(t?"s":"")+"://",s=o+(e.host||e.options.host)+e.options.path,a=Kt.createJSONPRequest(s,r),c=Kt.ScriptReceivers.create(function(t,r){i.remove(c),a.cleanup(),r&&r.host&&(e.host=r.host),n&&n(t,r)});a.send(c)}},fe={name:"jsonp",getAgent:pe},me=fe;function ge(e,t,r){var n=e+(t.useTLS?"s":""),i=t.useTLS?t.hostTLS:t.hostNonTLS;return n+"://"+i+r}function ve(e,t){var r="/app/"+e,n="?protocol="+s.PROTOCOL+"&client=js&version="+s.VERSION+(t?"&"+t:"");return r+n}var ye={getInitial:function(e,t){var r=(t.httpPath||"")+ve(e,"flash=false");return ge("ws",t,r)}},we={getInitial:function(e,t){var r=(t.httpPath||"/pusher")+ve(e);return ge("http",t,r)}},be={getInitial:function(e,t){return ge("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return ve(e)}};class _e{constructor(){this._callbacks={}}get(e){return this._callbacks[ke(e)]}add(e,t,r){var n=ke(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push({fn:t,context:r})}remove(e,t,r){if(e||t||r){var n=e?[ke(e)]:X(this._callbacks);t||r?this.removeCallback(n,t,r):this.removeAllCallbacks(n)}else this._callbacks={}}removeCallback(e,t,r){G(e,function(e){this._callbacks[e]=Z(this._callbacks[e]||[],function(e){return t&&t!==e.fn||r&&r!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){G(e,function(e){delete this._callbacks[e]},this)}}function ke(e){return"_"+e}class Se{constructor(e){this.callbacks=new _e,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?(this.global_callbacks=Z(this.global_callbacks||[],t=>t!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var i=this.callbacks.get(e),o=[];if(r?o.push(t,r):t&&o.push(t),i&&i.length>0)for(n=0;n<i.length;n++)i[n].fn.apply(i[n].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class xe extends Se{constructor(e,t,r,n,i){super(),this.initialize=Kt.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=n,this.options=i,this.state="new",this.timeline=i.timeline,this.activityTimeout=i.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(t){return q.defer(()=>{this.onError(t),this.changeState("closed")}),!1}return this.bindListeners(),ce.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(q.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return H({cid:this.id},e)}}class Ce{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,n){return new xe(this.hooks,e,t,r,n)}}var Ee=new Ce({urls:ye,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Kt.getWebSocketAPI())},isSupported:function(){return Boolean(Kt.getWebSocketAPI())},getSocket:function(e){return Kt.createWebSocket(e)}}),Ae={urls:we,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Oe=H({getSocket:function(e){return Kt.HTTPFactory.createStreamingSocket(e)}},Ae),Ie=H({getSocket:function(e){return Kt.HTTPFactory.createPollingSocket(e)}},Ae),Te={isSupported:function(){return Kt.isXHRSupported()}},Me=new Ce(H({},Oe,Te)),Re=new Ce(H({},Ie,Te)),Pe={ws:Ee,xhr_streaming:Me,xhr_polling:Re},De=Pe,Le=new Ce({file:"sockjs",urls:be,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:u.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),Be={isSupported:function(e){var t=Kt.isXDRSupported(e.useTLS);return t}},Ne=new Ce(H({},Oe,Be)),je=new Ce(H({},Ie,Be));De.xdr_streaming=Ne,De.xdr_polling=je,De.sockjs=Le;var Fe=De;class Ue extends Se{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}}var ze=new Ue;class qe{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,n){n=H({},n,{activityTimeout:this.pingDelay});var i=this.transport.createConnection(e,t,r,n),o=null,s=function(){i.unbind("open",s),i.bind("closed",a),o=q.now()},a=e=>{if(i.unbind("closed",a),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=q.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return i.bind("open",s),i}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const He={decodeMessage:function(e){try{var t=JSON.parse(e.data),r=t.data;if("string"===typeof r)try{r=JSON.parse(t.data)}catch(i){}var n={event:t.event,channel:t.channel,data:r};return t.user_id&&(n.user_id=t.user_id),n}catch(i){throw{type:"MessageParseError",error:i,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=He.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}};var $e=He;class We extends Se{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var n={event:e,data:t};return r&&(n.channel=r),ce.debug("Event sent",n),this.send($e.encodeMessage(n))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=$e.decodeMessage(e)}catch(r){this.emit("error",{type:"MessageParseError",error:r,data:e.data})}if(void 0!==t){switch(ce.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{V(e,(e,t)=>{this.transport.unbind(t,e)})};V(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=$e.getCloseAction(e),r=$e.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class Ve{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=$e.processHandshake(e)}catch(r){return this.finish("error",{error:r}),void this.transport.close()}"connected"===t.action?this.finish("connected",{connection:new We(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=$e.getCloseAction(e)||"backoff",r=$e.getCloseError(e);this.finish(t,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(H({transport:this.transport,action:e},t))}}class Xe{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(Kt.TimelineTransport.getAgent(this,e),t)}}class Ye extends Se{constructor(e,t){super(function(t,r){ce.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new f("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=p.buildLogSuffix("triggeringClientEvents");ce.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;if("pusher_internal:subscription_succeeded"===t)this.handleSubscriptionSucceededEvent(e);else if("pusher_internal:subscription_count"===t)this.handleSubscriptionCountEvent(e);else if(0!==t.indexOf("pusher_internal:")){var n={};this.emit(t,r,n)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,ce.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof k?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Ge extends Ye{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class Je{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){V(this.members,(t,r)=>{e(this.get(r))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ke=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{c(n.next(e))}catch(t){o(t)}}function a(e){try{c(n["throw"](e))}catch(t){o(t)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())})};class Ze extends Ge{constructor(e,t){super(e,t),this.members=new Je}authorize(e,t){super.authorize(e,(e,r)=>Ke(this,void 0,void 0,function*(){if(!e)if(null!=r.channel_data){var n=JSON.parse(r.channel_data);this.members.setMyID(n.user_id)}else{if(yield this.pusher.user.signinDonePromise,null==this.pusher.user.user_data){let e=p.buildLogSuffix("authorizationEndpoint");return ce.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),void t("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}t(e,r)}))}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var r=e.data,n={};e.user_id&&(n.user_id=e.user_id),this.emit(t,r,n)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var n=this.members.addMember(r);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var i=this.members.removeMember(r);i&&this.emit("pusher:member_removed",i);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Qe=r(1),et=r(0);class tt extends Ge{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(e,r)=>{if(e)return void t(e,r);let n=r["shared_secret"];n?(this.key=Object(et["decode"])(n),delete r["shared_secret"],t(null,r)):t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new w("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")?this.handleEncryptedEvent(t,r):super.handleEvent(e)}handleEncryptedEvent(e,t){if(!this.key)return void ce.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void ce.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let r=Object(et["decode"])(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)return void ce.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);let n=Object(et["decode"])(t.nonce);if(n.length<this.nacl.secretbox.nonceLength)return void ce.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${n.length}`);let i=this.nacl.secretbox.open(r,n,this.key);if(null===i)return ce.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(t,o)=>{t?ce.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):(i=this.nacl.secretbox.open(r,n,this.key),null!==i?this.emit(e,this.getDataToEmit(i)):ce.error("Failed to decrypt event with new key. Dropping encrypted event"))});this.emit(e,this.getDataToEmit(i))}getDataToEmit(e){let t=Object(Qe["decode"])(e);try{return JSON.parse(t)}catch(r){return t}}}class rt extends Se{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=Kt.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),"connecting"!==this.state&&"unavailable"!==this.state||this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,r){return!!this.connection&&this.connection.send_event(e,t,r)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):"error"===r.action?(this.emit("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new F(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new F(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new F(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new F(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return H({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return H({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var n=e;"connected"===n&&(n+=" with new socket ID "+t.socket_id),ce.debug("State changed",r+" -> "+n),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class nt{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=it(e,t)),this.channels[e]}all(){return Y(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){V(this.channels,function(e){e.disconnect()})}}function it(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return st.createEncryptedChannel(e,t,t.config.nacl);let r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",n=p.buildLogSuffix("encryptedChannelSupport");throw new w(`${r}. ${n}`)}if(0===e.indexOf("private-"))return st.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return st.createPresenceChannel(e,t);if(0===e.indexOf("#"))throw new m('Cannot create a channel with name "'+e+'".');return st.createChannel(e,t)}var ot={createChannels(){return new nt},createConnectionManager(e,t){return new rt(e,t)},createChannel(e,t){return new Ye(e,t)},createPrivateChannel(e,t){return new Ge(e,t)},createPresenceChannel(e,t){return new Ze(e,t)},createEncryptedChannel(e,t,r){return new tt(e,t,r)},createTimelineSender(e,t){return new Xe(e,t)},createHandshake(e,t){return new Ve(e,t)},createAssistantToTheTransportManager(e,t,r){return new qe(e,t,r)}},st=ot;class at{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return st.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ct{constructor(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){var r=this.strategies,n=0,i=this.timeout,o=null,s=(a,c)=>{c?t(null,c):(n+=1,this.loop&&(n%=r.length),n<r.length?(i&&(i*=2,this.timeoutLimit&&(i=Math.min(i,this.timeoutLimit))),o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s)):t(!0))};return o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,r,n){var i=null,o=null;return r.timeout>0&&(i=new F(r.timeout,function(){o.abort(),n(!0)})),o=e.connect(t,function(e,t){e&&i&&i.isRunning()&&!r.failFast||(i&&i.ensureAborted(),n(e,t))}),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class ut{constructor(e){this.strategies=e}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){return lt(this.strategies,e,function(e,r){return function(n,i){r[e].error=n,n?ht(r)&&t(!0):(G(r,function(e){e.forceMinPriority(i.transport.priority)}),t(null,i))}})}}function lt(e,t,r){var n=J(e,function(e,n,i,o){return e.connect(t,r(n,o))});return{abort:function(){G(n,dt)},forceMinPriority:function(e){G(n,function(t){t.forceMinPriority(e)})}}}function ht(e){return re(e,function(e){return Boolean(e.error)})}function dt(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class pt{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,n=mt(r),i=n&&n.cacheSkipCount?n.cacheSkipCount:0,o=[this.strategy];if(n&&n.timestamp+this.ttl>=q.now()){var s=this.transports[n.transport];s&&(["ws","wss"].includes(n.transport)||i>3?(this.timeline.info({cached:!0,transport:n.transport,latency:n.latency}),o.push(new ct([s],{timeout:2*n.latency+1e3,failFast:!0}))):i++)}var a=q.now(),c=o.pop().connect(e,function n(s,u){s?(vt(r),o.length>0?(a=q.now(),c=o.pop().connect(e,n)):t(s)):(gt(r,u.transport.name,q.now()-a,i),t(null,u))});return{abort:function(){c.abort()},forceMinPriority:function(t){e=t,c&&c.forceMinPriority(t)}}}}function ft(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function mt(e){var t=Kt.getLocalStorage();if(t)try{var r=t[ft(e)];if(r)return JSON.parse(r)}catch(n){vt(e)}return null}function gt(e,t,r,n){var i=Kt.getLocalStorage();if(i)try{i[ft(e)]=se({timestamp:q.now(),transport:t,latency:r,cacheSkipCount:n})}catch(o){}}function vt(e){var t=Kt.getLocalStorage();if(t)try{delete t[ft(e)]}catch(r){}}class yt{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r,n=this.strategy,i=new F(this.options.delay,function(){r=n.connect(e,t)});return{abort:function(){i.ensureAborted(),r&&r.abort()},forceMinPriority:function(t){e=t,r&&r.forceMinPriority(t)}}}}class wt{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,t){var r=this.test()?this.trueBranch:this.falseBranch;return r.connect(e,t)}}class bt{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(e,n){n&&r.abort(),t(e,n)});return r}}function _t(e){return function(){return e.isSupported()}}var kt=function(e,t,r){var n={};function i(t,i,o,s,a){var c=r(e,t,i,o,s,a);return n[t]=c,c}var o,s=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),a=Object.assign({},s,{useTLS:!0}),c=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new at({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=new at({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=i("ws","ws",3,s,l),p=i("wss","ws",3,a,l),f=i("sockjs","sockjs",1,c),m=i("xhr_streaming","xhr_streaming",1,c,h),g=i("xdr_streaming","xdr_streaming",1,c,h),v=i("xhr_polling","xhr_polling",1,c),y=i("xdr_polling","xdr_polling",1,c),w=new ct([d],u),b=new ct([p],u),_=new ct([f],u),k=new ct([new wt(_t(m),m,g)],u),S=new ct([new wt(_t(v),v,y)],u),x=new ct([new wt(_t(k),new ut([k,new yt(S,{delay:4e3})]),S)],u),C=new wt(_t(x),x,_);return o=t.useTLS?new ut([w,new yt(C,{delay:2e3})]):new ut([w,new yt(b,{delay:2e3}),new yt(C,{delay:5e3})]),new pt(new bt(new wt(_t(d),o,C)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},St=kt,xt=function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),u.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,r){e.hooks.isInitialized()?(e.changeState("initialized"),r(!0)):(t&&e.onError(t),e.onClose(),r(!1))})):e.onClose()},Ct={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new g),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},Et=Ct;const At=262144;class Ot extends Se{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Kt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(Kt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){while(1){var r=this.advanceBuffer(t);if(!r)break;this.emit("chunk",{status:e,data:r})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf("\n");return-1!==r?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>At}}var It;(function(e){e[e["CONNECTING"]=0]="CONNECTING",e[e["OPEN"]=1]="OPEN",e[e["CLOSED"]=3]="CLOSED"})(It||(It={}));var Tt=It,Mt=1;class Rt{constructor(e,t){this.hooks=e,this.session=Nt(1e3)+"/"+jt(8),this.location=Pt(t),this.readyState=Tt.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==Tt.OPEN)return!1;try{return Kt.createSocketRequest("POST",Lt(Dt(this.location,this.session))).start(e),!0}catch(t){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=Tt.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(200===e.status){var t;this.readyState===Tt.OPEN&&this.onActivity();var r=e.data.slice(0,1);switch(r){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0);break}}}onOpen(e){this.readyState===Tt.CONNECTING?(e&&e.hostname&&(this.location.base=Bt(this.location.base,e.hostname)),this.readyState=Tt.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===Tt.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=Kt.createSocketRequest("POST",Lt(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){q.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Pt(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}function Dt(e,t){return e.base+"/"+t+"/xhr_send"}function Lt(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+Mt++}function Bt(e,t){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return r[1]+t+r[3]}function Nt(e){return Kt.randomInt(e)}function jt(e){for(var t=[],r=0;r<e;r++)t.push(Nt(32).toString(32));return t.join("")}var Ft=Rt,Ut={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},zt=Ut,qt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},Ht=qt,$t={getRequest:function(e){var t=Kt.getXHRAPI(),r=new t;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText);break;case 4:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText),e.emit("finished",r.status),e.close();break}},r},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},Wt=$t,Vt={createStreamingSocket(e){return this.createSocket(zt,e)},createPollingSocket(e){return this.createSocket(Ht,e)},createSocket(e,t){return new Ft(e,t)},createXHR(e,t){return this.createRequest(Wt,e,t)},createRequest(e,t,r){return new Ot(e,t,r)}},Xt=Vt;Xt.createXDR=function(e,t){return this.createRequest(Et,e,t)};var Yt,Gt=Xt,Jt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:St,Transports:Fe,transportConnectionInitializer:xt,HTTPFactory:Gt,TimelineTransport:me,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():u.load("json2",{},t)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:x,jsonp:le}},onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest(e,t){return new de(e,t)},createScriptRequest(e){return new he(e)},getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var e=this.getXHRAPI();return new e},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ze},createWebSocket(e){var t=this.getWebSocketAPI();return new t(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported(e){var t=e?"https:":"http:",r=this.getProtocol();return Boolean(window["XDomainRequest"])&&r===t},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt(e){const t=function(){const e=window.crypto||window["msCrypto"],t=e.getRandomValues(new Uint32Array(1))[0];return t/Math.pow(2,32)};return Math.floor(t()*e)}},Kt=Jt;(function(e){e[e["ERROR"]=3]="ERROR",e[e["INFO"]=6]="INFO",e[e["DEBUG"]=7]="DEBUG"})(Yt||(Yt={}));var Zt=Yt;class Qt{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(H({},t,{timestamp:q.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(Zt.ERROR,e)}info(e){this.log(Zt.INFO,e)}debug(e){this.log(Zt.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var r=H({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(e,r)=>{e||this.sent++,t&&t(e,r)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class er{constructor(e,t,r,n){this.name=e,this.priority=t,this.transport=r,this.options=n||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return tr(new _,t);if(this.priority<e)return tr(new v,t);var r=!1,n=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),i=null,o=function(){n.unbind("initialized",o),n.connect()},s=function(){i=st.createHandshake(n,function(e){r=!0,u(),t(null,e)})},a=function(e){u(),t(e)},c=function(){var e;u(),e=se(n),t(new y(e))},u=function(){n.unbind("initialized",o),n.unbind("open",s),n.unbind("error",a),n.unbind("closed",c)};return n.bind("initialized",o),n.bind("open",s),n.bind("error",a),n.bind("closed",c),n.initialize(),{abort:()=>{r||(u(),i?i.close():n.close())},forceMinPriority:e=>{r||this.priority<e&&(i?i.close():n.close())}}}}function tr(e,t){return q.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:rr}=Kt;var nr=function(e,t,r,n,i,o){var s=rr[r];if(!s)throw new b(r);var a,c=(!e.enabledTransports||-1!==W(e.enabledTransports,t))&&(!e.disabledTransports||-1===W(e.disabledTransports,t));return c?(i=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},i),a=new er(t,n,o?o.getAssistant(s):s,i)):a=ir,a},ir={isSupported:function(){return!1},connect:function(e,t){var r=q.defer(function(){t(new _)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function or(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&ce.warn("The disableStats option is deprecated in favor of enableStats")}const sr=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},ar=e=>{if("undefined"===typeof Kt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=sr(t,e);Kt.getAuthorizers()[e.transport](Kt,n,e,d.UserAuthentication,r)}};var cr=ar;const ur=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in r+="&channel_name="+encodeURIComponent(e.channelName),t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},lr=e=>{if("undefined"===typeof Kt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=ur(t,e);Kt.getAuthorizers()[e.transport](Kt,n,e,d.ChannelAuthorization,r)}};var hr=lr;const dr=(e,t,r)=>{const n={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return(t,i)=>{const o=e.channel(t.channelName),s=r(o,n);s.authorize(t.socketId,i)}};function pr(e,t){let r={activityTimeout:e.activityTimeout||s.activityTimeout,cluster:e.cluster,httpPath:e.httpPath||s.httpPath,httpPort:e.httpPort||s.httpPort,httpsPort:e.httpsPort||s.httpsPort,pongTimeout:e.pongTimeout||s.pongTimeout,statsHost:e.statsHost||s.stats_host,unavailableTimeout:e.unavailableTimeout||s.unavailableTimeout,wsPath:e.wsPath||s.wsPath,wsPort:e.wsPort||s.wsPort,wssPort:e.wssPort||s.wssPort,enableStats:yr(e),httpHost:fr(e),useTLS:vr(e),wsHost:mr(e),userAuthenticator:wr(e),channelAuthorizer:_r(e,t)};return"disabledTransports"in e&&(r.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(r.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(r.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(r.timelineParams=e.timelineParams),"nacl"in e&&(r.nacl=e.nacl),r}function fr(e){return e.httpHost?e.httpHost:e.cluster?`sockjs-${e.cluster}.pusher.com`:s.httpHost}function mr(e){return e.wsHost?e.wsHost:gr(e.cluster)}function gr(e){return`ws-${e}.pusher.com`}function vr(e){return"https:"===Kt.getProtocol()||!1!==e.forceTLS}function yr(e){return"enableStats"in e?e.enableStats:"disableStats"in e&&!e.disableStats}function wr(e){const t=Object.assign(Object.assign({},s.userAuthentication),e.userAuthentication);return"customHandler"in t&&null!=t["customHandler"]?t["customHandler"]:cr(t)}function br(e,t){let r;return"channelAuthorization"in e?r=Object.assign(Object.assign({},s.channelAuthorization),e.channelAuthorization):(r={transport:e.authTransport||s.authTransport,endpoint:e.authEndpoint||s.authEndpoint},"auth"in e&&("params"in e.auth&&(r.params=e.auth.params),"headers"in e.auth&&(r.headers=e.auth.headers)),"authorizer"in e&&(r.customHandler=dr(t,r,e.authorizer))),r}function _r(e,t){const r=br(e,t);return"customHandler"in r&&null!=r["customHandler"]?r["customHandler"]:hr(r)}class kr extends Se{constructor(e){super(function(e,t){ce.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{var t=e.event;"pusher_internal:watchlist_events"===t&&this.handleEvent(e)})}}function Sr(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});return{promise:r,resolve:e,reject:t}}var xr=Sr;class Cr extends Se{constructor(e){super(function(e,t){ce.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e)return ce.warn(`Error during signin: ${e}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new kr(e),this.pusher.connection.bind("message",e=>{var t=e.event;"pusher:signin_success"===t&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){return ce.error(`Failed parsing user data after signin: ${e.user_data}`),void this._cleanup()}if("string"!==typeof this.user_data.id||""===this.user_data.id)return ce.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new Ye(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested)return;if(this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:t,reject:r}=xr();e.done=!1;const n=()=>{e.done=!0};e.then(n).catch(n),this.signinDonePromise=e,this._signinDoneResolve=t}}class Er{static ready(){Er.isReady=!0;for(var e=0,t=Er.instances.length;e<t;e++)Er.instances[e].connect()}static getClientFeatures(){return X(Q({ws:Kt.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){Or(e),or(t),this.key=e,this.config=pr(t,this),this.channels=st.createChannels(),this.global_emitter=new Se,this.sessionID=Kt.randomInt(1e9),this.timeline=new Qt(this.key,this.sessionID,{cluster:this.config.cluster,features:Er.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Zt.INFO,version:s.VERSION}),this.config.enableStats&&(this.timelineSender=st.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Kt.TimelineTransport.name}));var r=e=>Kt.getDefaultStrategy(this.config,e,nr);this.connection=st.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=e.event,r=0===t.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}r||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{ce.warn(e)}),Er.instances.push(this),this.timeline.info({instances:Er.instances.length}),this.user=new Cr(this),Er.isReady&&this.connect()}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new U(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e),t&&t.subscribed&&t.unsubscribe())}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Er.instances=[],Er.isReady=!1,Er.logToConsole=!1,Er.Runtime=Kt,Er.ScriptReceivers=Kt.ScriptReceivers,Er.DependenciesReceivers=Kt.DependenciesReceivers,Er.auth_callbacks=Kt.auth_callbacks;var Ar=t["default"]=Er;function Or(e){if(null===e||void 0===e)throw"You must pass your app key when you instantiate Pusher."}Kt.setup(Er)}])})},6586:function(e){
27
27
  /*!
28
- * sweetalert2 v11.26.20
28
+ * sweetalert2 v11.26.24
29
29
  * Released under the MIT License.
30
30
  */
31
- (function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>document.body.querySelector(`.${h.container}`),E=e=>{const t=C();return t?t.querySelector(e):null},A=e=>E(`.${e}`),O=()=>A(h.popup),I=()=>A(h.icon),T=()=>A(h["icon-content"]),M=()=>A(h.title),R=()=>A(h["html-container"]),P=()=>A(h.image),D=()=>A(h["progress-steps"]),L=()=>A(h["validation-message"]),B=()=>E(`.${h.actions} .${h.confirm}`),N=()=>E(`.${h.actions} .${h.cancel}`),j=()=>E(`.${h.actions} .${h.deny}`),F=()=>A(h["input-label"]),U=()=>E(`.${h.loader}`),z=()=>A(h.actions),q=()=>A(h.footer),H=()=>A(h["timer-progress-bar"]),$=()=>A(h.close),W='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',V=()=>{const e=O();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(W),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>de(e))},X=()=>K(document.body,h.shown)&&!K(document.body,h["toast-shown"])&&!K(document.body,h["no-backdrop"]),Y=()=>{const e=O();return!!e&&K(e,h.toast)},G=()=>{const e=O();return!!e&&e.hasAttribute("data-loading")},J=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},K=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Z=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},Q=(e,t,r)=>{if(Z(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ne(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},ee=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},te=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},re=(e,t,r)=>{e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{r?e.classList.add(t):e.classList.remove(t)}):r?e.classList.add(t):e.classList.remove(t)}))},ne=(e,t)=>{re(e,t,!0)},ie=(e,t)=>{re(e,t,!1)},oe=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&K(e,t))return e}},se=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===parseInt(`${r}`)?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ae=(e,t="flex")=>{e&&(e.style.display=t)},ce=e=>{e&&(e.style.display="none")},ue=(e,t="block")=>{e&&new MutationObserver(()=>{he(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},le=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},he=(e,t,r="flex")=>{t?ae(e,r):ce(e)},de=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),pe=()=>!de(B())&&!de(j())&&!de(N()),fe=e=>Boolean(e.scrollHeight>e.clientHeight),me=(e,t)=>{let r=e;while(r&&r!==t){if(fe(r))return!0;r=r.parentElement}return!1},ge=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ve=(e,t=!1)=>{const r=H();r&&de(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},ye=()=>{const e=H();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},we=()=>"undefined"===typeof window||"undefined"===typeof document,be=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),_e=()=>{const e=C();return!!e&&(e.remove(),ie([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},ke=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},Se=()=>{const e=O();if(!e)return;const t=oe(e,h.input),r=oe(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=oe(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=oe(e,h.textarea);t&&(t.oninput=ke),r&&(r.onchange=ke),o&&(o.onchange=ke),s&&(s.onchange=ke),a&&(a.oninput=ke),n&&i&&(n.oninput=()=>{ke(),i.value=n.value},n.onchange=()=>{ke(),i.value=n.value})},xe=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ce=e=>{const t=O();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ee=e=>{"rtl"===window.getComputedStyle(e).direction&&(ne(C(),h.rtl),s.isRTL=!0)},Ae=e=>{const t=_e();if(we())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ne(r,h["no-transition"]),J(r,be),r.dataset["swal2Theme"]=e.theme;const n=xe(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ce(e),Ee(n),Se()},Oe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Ie(e,t):e&&J(t,e)},Ie=(e,t)=>{"jquery"in e?Te(t,e):J(t,e.toString())},Te=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Me=(e,t)=>{const r=z(),n=U();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ae(r):ce(r),Q(r,t,"actions"),Re(r,n,t),J(n,t.loaderHtml||""),Q(n,t,"loader"))};function Re(e,t,r){const n=B(),i=j(),o=N();n&&i&&o&&(Le(n,"confirm",r),Le(i,"deny",r),Le(o,"cancel",r),Pe(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function Pe(e,t,r,n){n.buttonsStyling?(ne([e,t,r],h.styled),n.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",n.confirmButtonColor),n.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",n.denyButtonColor),n.cancelButtonColor&&r.style.setProperty("--swal2-cancel-button-background-color",n.cancelButtonColor),De(e),De(t),De(r)):ie([e,t,r],h.styled)}function De(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Le(e,t,r){const n=m(t);he(e,r[`show${n}Button`],"inline-block"),J(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],Q(e,r,`${t}Button`)}const Be=(e,t)=>{const r=$();r&&(J(r,t.closeButtonHtml||""),Q(r,t,"closeButton"),he(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Ne=(e,t)=>{const r=C();r&&(je(r,t.backdrop),Fe(r,t.position),Ue(r,t.grow),Q(r,t,"container"))};function je(e,t){"string"===typeof t?e.style.background=t:t||ne([document.documentElement,document.body],h["no-backdrop"])}function Fe(e,t){t&&(t in h?ne(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ne(e,h.center)))}function Ue(e,t){t&&ne(e,h[`grow-${t}`])}var ze={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const qe=["input","file","range","select","radio","checkbox","textarea"],He=(e,t)=>{const r=O();if(!r)return;const n=ze.innerParams.get(e),i=!n||t.input!==n.input;qe.forEach(e=>{const n=oe(r,h[e]);n&&(Ve(e,t.inputAttributes),n.className=h[e],i&&ce(n))}),t.input&&(i&&$e(t),Xe(t))},$e=e=>{if(!e.input)return;if(!Ze[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Ze).join(" | ")}, got "${e.input}"`);const t=Je(e.input);if(!t)return;const r=Ze[e.input](t,e);ae(t),e.inputAutoFocus&&setTimeout(()=>{te(r)})},We=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Ve=(e,t)=>{const r=O();if(!r)return;const n=ee(r,e);if(n){We(n);for(const e in t)n.setAttribute(e,t[e])}},Xe=e=>{if(!e.input)return;const t=Je(e.input);t&&Q(t,e,"input")},Ye=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ne(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Je=e=>{const t=O();if(t)return oe(t,h[e]||h.input)},Ke=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Ze={};Ze.text=Ze.email=Ze.password=Ze.number=Ze.tel=Ze.url=Ze.search=Ze.date=Ze["datetime-local"]=Ze.time=Ze.week=Ze.month=(e,t)=>{const r=e;return Ke(r,t.inputValue),Ge(r,r,t),Ye(r,t),r.type=t.input,r},Ze.file=(e,t)=>{const r=e;return Ge(r,r,t),Ye(r,t),r},Ze.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ke(n,t.inputValue),n.type=t.input,Ge(n,e,t)),i&&Ke(i,t.inputValue),e},Ze.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");J(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Ge(r,r,t),r},Ze.radio=e=>{const t=e;return t.textContent="",e},Ze.checkbox=(e,t)=>{const r=O();if(!r)throw new Error("Popup not found");const n=ee(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&J(o,e)}return n},Ze.textarea=(e,t)=>{const r=e;Ke(r,t.inputValue),Ye(r,t),Ge(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=O();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=O();o&&(e>i?o.style.width=`${e}px`:se(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const Qe=(e,t)=>{const r=R();r&&(ue(r),Q(r,t,"htmlContainer"),t.html?(Oe(t.html,r),ae(r,"block")):t.text?(r.textContent=t.text,ae(r,"block")):ce(r),He(e,t))},et=(e,t)=>{const r=q();r&&(ue(r),he(r,Boolean(t.footer),"block"),t.footer&&Oe(t.footer,r),Q(r,t,"footer"))},tt=(e,t)=>{const r=ze.innerParams.get(e),n=I();if(!n)return;if(r&&t.icon===r.icon)return st(n,t),void rt(n,t);if(!t.icon&&!t.iconHtml)return void ce(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ce(n);ae(n),st(n,t),rt(n,t),ne(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",nt)},rt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&ie(e,n);ne(e,t.icon&&p[t.icon]),at(e,t),nt(),Q(e,t,"icon")},nt=()=>{const e=O();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},it=e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,ot='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',st=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ct(t.iconHtml);else if("success"===t.icon)n=it(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=ot;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ct(e[t.icon])}r.trim()!==n.trim()&&J(e,n)},at=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])le(e,r,"background-color",t.iconColor);le(e,".swal2-success-ring","border-color",t.iconColor)}},ct=e=>`<div class="${h["icon-content"]}">${e}</div>`,ut=(e,t)=>{const r=P();r&&(t.imageUrl?(ae(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),se(r,"width",t.imageWidth),se(r,"height",t.imageHeight),r.className=h.image,Q(r,t,"image")):ce(r))};let lt=!1,ht=0,dt=0,pt=0,ft=0;const mt=e=>{e.addEventListener("mousedown",vt),document.body.addEventListener("mousemove",yt),e.addEventListener("mouseup",wt),e.addEventListener("touchstart",vt),document.body.addEventListener("touchmove",yt),e.addEventListener("touchend",wt)},gt=e=>{e.removeEventListener("mousedown",vt),document.body.removeEventListener("mousemove",yt),e.removeEventListener("mouseup",wt),e.removeEventListener("touchstart",vt),document.body.removeEventListener("touchmove",yt),e.removeEventListener("touchend",wt)},vt=e=>{const t=O();if(!t)return;const r=I();if(e.target===t||r&&r.contains(e.target)){lt=!0;const r=bt(e);ht=r.clientX,dt=r.clientY,pt=parseInt(t.style.insetInlineStart)||0,ft=parseInt(t.style.insetBlockStart)||0,ne(t,"swal2-dragging")}},yt=e=>{const t=O();if(t&&lt){let{clientX:r,clientY:n}=bt(e);const i=r-ht;t.style.insetInlineStart=`${pt+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${ft+(n-dt)}px`}},wt=()=>{const e=O();lt=!1,ie(e,"swal2-dragging")},bt=e=>{let t=0,r=0;return e.type.startsWith("mouse")?(t=e.clientX,r=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,r=e.touches[0].clientY),{clientX:t,clientY:r}},_t=(e,t)=>{const r=C(),n=O();if(r&&n){if(t.toast){se(r,"width",t.width),n.style.width="100%";const e=U();e&&n.insertBefore(e,I())}else se(n,"width",t.width);se(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ce(L()),kt(n,t),t.draggable&&!t.toast?(ne(n,h.draggable),mt(n)):(ie(n,h.draggable),gt(n))}},kt=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${de(e)?r.popup:""}`,t.toast?(ne([document.documentElement,document.body],h["toast-shown"]),ne(e,h.toast)):ne(e,h.modal),Q(e,t,"popup"),"string"===typeof t.customClass&&ne(e,t.customClass),t.icon&&ne(e,h[`icon-${t.icon}`])},St=(e,t)=>{const r=D();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ae(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=xt(e);if(r.appendChild(s),o===i&&ne(s,h["active-progress-step"]),o!==n.length-1){const e=Ct(t);r.appendChild(e)}})):ce(r)},xt=e=>{const t=document.createElement("li");return ne(t,h["progress-step"]),J(t,e),t},Ct=e=>{const t=document.createElement("li");return ne(t,h["progress-step-line"]),e.progressStepsDistance&&se(t,"width",e.progressStepsDistance),t},Et=(e,t)=>{const r=M();r&&(ue(r),he(r,Boolean(t.title||t.titleText),"block"),t.title&&Oe(t.title,r),t.titleText&&(r.innerText=t.titleText),Q(r,t,"title"))},At=(e,t)=>{var r;_t(e,t),Ne(e,t),St(e,t),tt(e,t),ut(e,t),Et(e,t),Be(e,t),Qe(e,t),Me(e,t),et(e,t);const n=O();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},Ot=()=>de(O()),It=()=>{var e;return null===(e=B())||void 0===e?void 0:e.click()},Tt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Rt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Pt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Dt=(e,t,r)=>{if(Pt(e),!t.toast){const n=e=>jt(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:O();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Lt=(e,t)=>{var r;const n=V();if(n.length)return e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();null===(r=O())||void 0===r||r.focus()},Bt=["ArrowRight","ArrowDown"],Nt=["ArrowLeft","ArrowUp"],jt=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ft(t,e):"Tab"===t.key?Ut(t):[...Bt,...Nt].includes(t.key)?zt(t.key):"Escape"===t.key&&qt(t,e,r)))},Ft=(e,t)=>{if(!_(t.allowEnterKey))return;const r=O();if(!r||!t.input)return;const n=ee(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;It(),e.preventDefault()}},Ut=e=>{const t=e.target,r=V();let n=-1;for(let i=0;i<r.length;i++)if(t===r[i]){n=i;break}e.shiftKey?Lt(n,-1):Lt(n,1),e.stopPropagation(),e.preventDefault()},zt=e=>{const t=z(),r=B(),n=j(),i=N();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Bt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&de(a))break}a instanceof HTMLButtonElement&&a.focus()}},qt=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Rt.esc)};var Ht={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const $t=()=>{const e=C(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Wt=()=>{const e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Vt="undefined"!==typeof window&&Boolean(window.GestureEvent),Xt=()=>{if(Vt&&!K(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ne(document.body,h.iosfix),Yt()}},Yt=()=>{const e=C();if(!e)return;let t;e.ontouchstart=e=>{t=Gt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Gt=e=>{const t=e.target,r=C(),n=R();return!(!r||!n)&&(!Jt(e)&&!Kt(e)&&(t===r||!(fe(r)||!(t instanceof HTMLElement)||me(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||fe(n)&&n.contains(t))))},Jt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Kt=e=>e.touches&&e.touches.length>1,Zt=()=>{if(K(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);ie(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Qt=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let er=null;const tr=e=>{null===er&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(er=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${er+Qt()}px`)},rr=()=>{null!==er&&(document.body.style.paddingRight=`${er}px`,er=null)};function nr(e,t,r,n){Y()?dr(e,n):(c(r).then(()=>dr(e,n)),Pt(s)),Vt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(rr(),Zt(),Wt()),ir()}function ir(){ie([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function or(e){e=ur(e);const t=Ht.swalPromiseResolve.get(this),r=sr(this);this.isAwaitingPromise?e.isDismissed||(cr(this),t(e)):r&&t(e)}const sr=e=>{const t=O();if(!t)return!1;const r=ze.innerParams.get(e);if(!r||K(t,r.hideClass.popup))return!1;ie(t,r.showClass.popup),ne(t,r.hideClass.popup);const n=C();return ie(n,r.showClass.backdrop),ne(n,r.hideClass.backdrop),lr(e,t,r),!0};function ar(e){const t=Ht.swalPromiseReject.get(this);cr(this),t&&t(e)}const cr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,ze.innerParams.get(e)||e._destroy())},ur=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),lr=(e,t,r)=>{var n;const i=C(),o=ge(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?hr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&nr(e,i,Boolean(r.returnFocus),r.didClose)},hr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=nr.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},dr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},pr=e=>{let t=O();if(t||new gi,t=O(),!t)return;const r=U();Y()?ce(I()):fr(t,e),ae(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},fr=(e,t)=>{const r=z(),n=U();r&&n&&(!t&&de(B())&&(t=B()),ae(r),t&&(ce(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ne([e,r],h.loading))},mr=(e,t)=>{"select"===t.input||"radio"===t.input?br(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(pr(B()),_r(e,t))},gr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return vr(r);case"radio":return yr(r);case"file":return wr(r);default:return t.inputAutoTrim?r.value.trim():r.value}},vr=e=>e.checked?1:0,yr=e=>e.checked?e.value:null,wr=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,br=(e,t)=>{const r=O();if(!r)return;const n=e=>{"select"===t.input?kr(r,xr(e),t):"radio"===t.input&&Sr(r,xr(e),t)};k(t.inputOptions)||x(t.inputOptions)?(pr(B()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},_r=(e,t)=>{const r=e.getInput();r&&(ce(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ae(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ae(r),r.focus(),e.hideLoading()}))};function kr(e,t,r){const n=oe(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,J(i,t),i.selected=Cr(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Sr(e,t,r){const n=oe(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Cr(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");J(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const xr=e=>{const t=[];return e instanceof Map?e.forEach((e,r)=>{let n=e;"object"===typeof n&&(n=xr(n)),t.push([r,n])}):Object.keys(e).forEach(r=>{let n=e[r];"object"===typeof n&&(n=xr(n)),t.push([r,n])}),t},Cr=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Er=e=>{const t=ze.innerParams.get(e);e.disableButtons(),t.input?Ir(e,"confirm"):Dr(e,!0)},Ar=e=>{const t=ze.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Ir(e,"deny"):Mr(e,!1)},Or=(e,t)=>{e.disableButtons(),t(Rt.cancel)},Ir=(e,t)=>{const r=ze.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=gr(e,r);r.inputValidator?Tr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Mr(e,i):Dr(e,i)},Tr=(e,t,r)=>{const n=ze.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Mr(e,t):Dr(e,t)})},Mr=(e,t)=>{const r=ze.innerParams.get(e);if(r.showLoaderOnDeny&&pr(j()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),cr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Pr(e,t))}else e.close({isDenied:!0,value:t})},Rr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Pr=(e,t)=>{e.rejectPromise(t)},Dr=(e,t)=>{const r=ze.innerParams.get(e);if(r.showLoaderOnConfirm&&pr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{de(L())||!1===r?(e.hideLoading(),cr(e)):Rr(e,"undefined"===typeof r?t:r)}).catch(t=>Pr(e,t))}else Rr(e,t)};function Lr(){const e=ze.innerParams.get(this);if(!e)return;const t=ze.domCache.get(this);ce(t.loader),Y()?e.icon&&ae(I()):Br(t),ie([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=ze.focusedElement.get(this);r instanceof HTMLElement&&(r.focus(),ze.focusedElement.delete(this))}const Br=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ae(r[0],"inline-block"):pe()&&ce(e.actions)};function Nr(){const e=ze.innerParams.get(this),t=ze.domCache.get(this);return t?ee(t.popup,e.input):null}function jr(e,t,r){const n=ze.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function Fr(e,t){const r=O();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function Ur(){jr(this,["confirmButton","denyButton","cancelButton"],!1);const e=ze.focusedElement.get(this);e instanceof HTMLElement&&(e.focus(),ze.focusedElement.delete(this))}function zr(){ze.focusedElement.set(this,document.activeElement),jr(this,["confirmButton","denyButton","cancelButton"],!0)}function qr(){Fr(this.getInput(),!1)}function Hr(){Fr(this.getInput(),!0)}function $r(e){const t=ze.domCache.get(this),r=ze.innerParams.get(this);J(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ne(t.validationMessage,r.customClass.validationMessage),ae(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),te(n),ne(n,h.inputerror))}function Wr(){const e=ze.domCache.get(this);e.validationMessage&&ce(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),ie(t,h.inputerror))}const Vr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Xr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Yr={allowEnterKey:void 0},Gr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Jr=e=>Object.prototype.hasOwnProperty.call(Vr,e),Kr=e=>-1!==Xr.indexOf(e),Zr=e=>Yr[e],Qr=e=>{Jr(e)||g(`Unknown parameter "${e}"`)},en=e=>{Gr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},tn=e=>{const t=Zr(e);t&&b(e,t)},rn=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)Qr(t),e.toast&&en(t),tn(t)};function nn(e){const t=C(),r=O(),n=ze.innerParams.get(this);if(!r||K(r,n.hideClass.popup))return void g("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=on(e),o=Object.assign({},n,i);rn(o),t&&(t.dataset["swal2Theme"]=o.theme),At(this,o),ze.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const on=e=>{const t={};return Object.keys(e).forEach(r=>{if(Kr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function sn(){var e;const t=ze.domCache.get(this),r=ze.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),an(this)):cn(this)}const an=e=>{cn(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},cn=e=>{e.isAwaitingPromise?(un(ze,e),e.isAwaitingPromise=!0):(un(Ht,e),un(ze,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},un=(e,t)=>{for(const r in e)e[r].delete(t)};var ln=Object.freeze({__proto__:null,_destroy:sn,close:or,closeModal:or,closePopup:or,closeToast:or,disableButtons:zr,disableInput:Hr,disableLoading:Lr,enableButtons:Ur,enableInput:qr,getInput:Nr,handleAwaitingPromise:cr,hideLoading:Lr,rejectPromise:ar,resetValidationMessage:Wr,showValidationMessage:$r,update:nn});const hn=(e,t,r)=>{e.toast?dn(e,t,r):(mn(t),gn(t),vn(e,t,r))},dn=(e,t,r)=>{t.popup.onclick=()=>{e&&(pn(e)||e.timer||e.input)||r(Rt.close)}},pn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let fn=!1;const mn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(fn=!0)}}},gn=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(fn=!0)}}},vn=(e,t,r)=>{t.container.onclick=n=>{fn?fn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Rt.backdrop)}},yn=e=>"object"===typeof e&&null!==e&&"jquery"in e,wn=e=>e instanceof Element||yn(e),bn=e=>{const t={};return"object"!==typeof e[0]||wn(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||wn(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function _n(...e){return new this(...e)}function kn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Sn=()=>s.timeout&&s.timeout.getTimerLeft(),xn=()=>{if(s.timeout)return ye(),s.timeout.stop()},Cn=()=>{if(s.timeout){const e=s.timeout.start();return ve(e),e}},En=()=>{const e=s.timeout;return e&&(e.running?xn():Cn())},An=e=>{if(s.timeout){const t=s.timeout.increase(e);return ve(t,!0),t}},On=()=>Boolean(s.timeout&&s.timeout.isRunning());let In=!1;const Tn={};function Mn(e="data-swal-template"){Tn[e]=this,In||(document.body.addEventListener("click",Rn),In=!0)}const Rn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Tn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Tn[e].fire({template:r})}};class Pn{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Pn;const Dn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Ln=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},Bn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Nn=Object.freeze({__proto__:null,argsToParams:bn,bindClickHandler:Mn,clickCancel:Mt,clickConfirm:It,clickDeny:Tt,enableLoading:pr,fire:_n,getActions:z,getCancelButton:N,getCloseButton:$,getConfirmButton:B,getContainer:C,getDenyButton:j,getFocusableElements:V,getFooter:q,getHtmlContainer:R,getIcon:I,getIconContent:T,getImage:P,getInputLabel:F,getLoader:U,getPopup:O,getProgressSteps:D,getTimerLeft:Sn,getTimerProgressBar:H,getTitle:M,getValidationMessage:L,increaseTimer:An,isDeprecatedParameter:Zr,isLoading:G,isTimerRunning:On,isUpdatableParameter:Kr,isValidParameter:Jr,isVisible:Ot,mixin:kn,off:Bn,on:Dn,once:Ln,resumeTimer:Cn,showLoading:pr,stopTimer:xn,toggleTimer:En});class jn{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Fn=["swal-title","swal-html","swal-footer"],Un=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Yn(r);const n=Object.assign(zn(r),qn(r),Hn(r),$n(r),Wn(r),Vn(r),Xn(r,Fn));return n},zn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Gn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Vr&&"boolean"===typeof Vr[r]?t[r]="false"!==n:r in Vr&&"object"===typeof Vr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},qn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Gn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(r&&["confirm","cancel","deny"].includes(r)){if(t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0,e.hasAttribute("color")){const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n)}if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label");null!==n&&(t[`${r}ButtonAriaLabel`]=n)}}}),t},$n=e=>{const t={},r=e.querySelector("swal-image");return r&&(Gn(r,["src","width","height","alt"]),r.hasAttribute("src")&&(t.imageUrl=r.getAttribute("src")||void 0),r.hasAttribute("width")&&(t.imageWidth=r.getAttribute("width")||void 0),r.hasAttribute("height")&&(t.imageHeight=r.getAttribute("height")||void 0),r.hasAttribute("alt")&&(t.imageAlt=r.getAttribute("alt")||void 0)),t},Wn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Gn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Vn=e=>{const t={},r=e.querySelector("swal-input");r&&(Gn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Gn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Xn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Gn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Yn=e=>{const t=Fn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Gn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Jn=10,Kn=e=>{var t,r;const n=C(),i=O();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ti(n,i,e),setTimeout(()=>{Qn(n,i)},Jn),X()&&(ei(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),$t()),Y()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},Zn=e=>{const t=O();if(!t||e.target!==t)return;const r=C();r&&(t.removeEventListener("animationend",Zn),t.removeEventListener("transitionend",Zn),r.style.overflowY="auto",ie(r,h["no-transition"]))},Qn=(e,t)=>{ge(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Zn),t.addEventListener("transitionend",Zn)):e.style.overflowY="auto"},ei=(e,t,r)=>{Xt(),t&&"hidden"!==r&&tr(r),setTimeout(()=>{e.scrollTop=0})},ti=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ne(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ae(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ne(t,r.showClass.popup),t.style.removeProperty("opacity")},Jn)):ae(t,"grid"),ne([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ne([document.documentElement,document.body],h["height-auto"])};var ri={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function ni(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ri["email"]),"url"===e.input&&(e.inputValidator=ri["url"]))}function ii(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function oi(e){ni(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),ii(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Ae(e)}let si;var ai=new WeakMap;class ci{constructor(...e){if(n(this,ai,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;si=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ai,this,this._main(si.params))}_main(e,t={}){if(rn(Object.assign({},t,e)),s.currentInstance){const e=Ht.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&Wt()}s.currentInstance=si;const r=li(e,t);oi(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=hi(si);return At(si,r),ze.innerParams.set(si,r),ui(si,n,r)}then(e){return r(ai,this).then(e)}finally(e){return r(ai,this).finally(e)}}const ui=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};Ht.swalPromiseResolve.set(e,n),Ht.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Er(e)},t.denyButton.onclick=()=>{Ar(e)},t.cancelButton.onclick=()=>{Or(e,o)},t.closeButton.onclick=()=>{o(Rt.close)},hn(r,t,o),Dt(s,r,o),mr(e,r),Kn(r),di(s,r,o),pi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),li=(e,t)=>{const r=Un(e),n=Object.assign({},Vr,t,r,e);return n.showClass=Object.assign({},Vr.showClass,n.showClass),n.hideClass=Object.assign({},Vr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},hi=e=>{const t={popup:O(),container:C(),actions:z(),confirmButton:B(),denyButton:j(),cancelButton:N(),loader:U(),closeButton:$(),validationMessage:L(),progressSteps:D()};return ze.domCache.set(e,t),t},di=(e,t,r)=>{const n=H();ce(n),t.timer&&(e.timeout=new jn(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ae(n),Q(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ve(t.timer)})))},pi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(fi(e)||mi(e,t)||Lt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},fi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&de(r))return r.focus(),!0;return!1},mi=(e,t)=>t.focusDeny&&de(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&de(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!de(e.confirmButton))&&(e.confirmButton.focus(),!0);ci.prototype.disableButtons=zr,ci.prototype.enableButtons=Ur,ci.prototype.getInput=Nr,ci.prototype.disableInput=Hr,ci.prototype.enableInput=qr,ci.prototype.hideLoading=Lr,ci.prototype.disableLoading=Lr,ci.prototype.showValidationMessage=$r,ci.prototype.resetValidationMessage=Wr,ci.prototype.close=or,ci.prototype.closePopup=or,ci.prototype.closeModal=or,ci.prototype.closeToast=or,ci.prototype.rejectPromise=ar,ci.prototype.update=nn,ci.prototype._destroy=sn,Object.assign(ci,Nn),Object.keys(ln).forEach(e=>{ci[e]=function(...t){if(si&&si[e])return si[e](...t)}}),ci.DismissReason=Rt,ci.version="11.26.20";const gi=ci;return gi.default=gi,gi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},a=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)};t.A={encrypt:s,decrypt:a}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},encrypt:function(){return encrypt},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),setLocalStorageItem=(e,t,r="production")=>{"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localStorage.getItem(e))return"production"===t?JSON.parse(decrypt(localStorage.getItem(e))):JSON.parse(localStorage.getItem(e))},setSessionStorageItem=(e,t,r="production")=>{"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionStorage.getItem(e))return"production"===t?JSON.parse(decrypt(sessionStorage.getItem(e))):JSON.parse(sessionStorage.getItem(e))},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return wi},HTTPBaseService:function(){return Nr},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return VE},ShrEventBus:function(){return bi},ShrPusherService:function(){return Ci},default:function(){return XE}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Dr},fire:function(){return Pr},toast:function(){return Lr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return gi},makeRequestToExecute:function(){return vi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return yi}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
31
+ (function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),A=e=>{const t=E();return t?t.querySelector(e):null},O=e=>A(`.${e}`),I=()=>O(h.popup),T=()=>O(h.icon),M=()=>O(h["icon-content"]),R=()=>O(h.title),P=()=>O(h["html-container"]),D=()=>O(h.image),L=()=>O(h["progress-steps"]),B=()=>O(h["validation-message"]),N=()=>A(`.${h.actions} .${h.confirm}`),j=()=>A(`.${h.actions} .${h.cancel}`),F=()=>A(`.${h.actions} .${h.deny}`),U=()=>O(h["input-label"]),z=()=>A(`.${h.loader}`),q=()=>O(h.actions),H=()=>O(h.footer),$=()=>O(h["timer-progress-bar"]),W=()=>O(h.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',X=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},Y=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),G=()=>{const e=I();return!!e&&Z(e,h.toast)},J=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),me=e=>Boolean(e.scrollHeight>e.clientHeight),ge=(e,t)=>{let r=e;while(r&&r!==t){if(me(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ae=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Oe=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Ae(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),De(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function De(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),Le(e)})}function Le(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=m(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Xe(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Ye(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Xe=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Ye=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Ge=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Je=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Je(r,r,t),Ge(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Je(r,r,t),Ge(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Je(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Je(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Ge(r,t),Je(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=D();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,mt=0;const gt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,mt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${mt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),gt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=L();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},At=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},Ot=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),At(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,r)=>{if(Dt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=X();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=X();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Xt="undefined"!==typeof window&&Boolean(window.GestureEvent),Yt=Xt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gt=()=>{if(Xt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Jt()}},Jt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(me(r)||!(t instanceof HTMLElement)||ge(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||me(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){G()?fr(e,n):(c(r).then(()=>fr(e,n)),Dt(s)),Xt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Y()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},mr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();G()?ue(T()):gr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},gr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(mr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(mr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Ar(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Ar(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Ar=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Or=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&mr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Lr(e,t))}else e.close({isDenied:!0,value:t})},Dr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Lr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&mr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Dr(e,"undefined"===typeof r?t:r)}).catch(t=>Lr(e,t))}else Dr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),G()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Xr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Yr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Gr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Jr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Yr,e),Qr=e=>-1!==Gr.indexOf(e),en=e=>Jr[e],tn=e=>{Zr(e)||g(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void g("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),Ot(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Xr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(mn(e)||e.timer||e.input)||r(Pt.close)}},mn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let gn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(gn=!0)}}},yn=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(gn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{gn?gn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},An=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},On=()=>{const e=s.timeout;return e&&(e.running?En():An())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Dn),Mn=!0)}const Dn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Ln{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ln;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:mr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:X,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:D,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:L,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:J,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:An,showLoading:mr,stopTimer:En,toggleTimer:On});class Un{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Jn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Xn(r),Yn(r),Gn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Yr&&"boolean"===typeof Yr[r]?t[r]="false"!==n:r in Yr&&"object"===typeof Yr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Xn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Yn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Gn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Jn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),Y()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Yt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),G()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Gt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Oe(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),Y()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return Ot(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Or(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Lt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),mi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Yr,t,r,e);return n.showClass=Object.assign({},Yr.showClass,n.showClass),n.hideClass=Object.assign({},Yr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:L()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},mi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(gi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},gi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Xr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},a=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)};t.A={encrypt:s,decrypt:a}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},encrypt:function(){return encrypt},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),setLocalStorageItem=(e,t,r="production")=>{"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localStorage.getItem(e))return"production"===t?JSON.parse(decrypt(localStorage.getItem(e))):JSON.parse(localStorage.getItem(e))},setSessionStorageItem=(e,t,r="production")=>{"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionStorage.getItem(e))return"production"===t?JSON.parse(decrypt(sessionStorage.getItem(e))):JSON.parse(sessionStorage.getItem(e))},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return wi},HTTPBaseService:function(){return Nr},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return pA},ShrEventBus:function(){return bi},ShrPusherService:function(){return Ci},default:function(){return fA}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Dr},fire:function(){return Pr},toast:function(){return Lr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return gi},makeRequestToExecute:function(){return vi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return yi}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
32
32
  /*! js-cookie v3.0.5 | MIT */
33
33
  function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d="@accessBreezeToken",p="@accessToken",f="idms_token",m="@refreshToken";class g{encryptionKey;constructor(e){this.encryptionKey=e}get(e){return l.get(e)?JSON.parse(h.decrypt(l.get(e),this.encryptionKey)):""}set(e,t,r){let n="";n=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,n,r)}getBreezeTokenKey(){return d}getBreezeToken(){return this.get(d)}saveBreezeToken(e,t){const r=e.expires?Date.parse(e.expires):void 0;e.expires=r,this.set(d,e,t)}removeBreezeToken(e){l.remove(d,e)}getTokenKey(){return p}getToken(){return this.get(p)}saveToken(e,t){this.set(p,e,t)}removeToken(e){l.remove(p,e)}removeLocalStorageToken(){localStorage.removeItem(f)}getRefreshTokenKey(){return m}getRefreshToken(){return this.get(m)}saveRefreshToken(e){this.set(m,e)}removeRefreshToken(){l.remove(m)}}var v=g;const y="@appClient",w="@loggedInUser";class b{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new v(e)}setClientDetails(e){h.setLocalStorageItem(y,e)}getClientDetails(){return h.getLocalStorageItem(y)}removeClientDetails(){localStorage.removeItem(y)}setLoggedInUser(e){h.setLocalStorageItem(w,e)}getLoggedInUser(){return h.getLocalStorageItem(w)}removeLoggedInUser(){localStorage.removeItem(w)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return e?.id}}var _=b,k=__webpack_require__(6586),S=__webpack_require__.n(k),x=__webpack_require__(6096);function C(){this.__data__=new x.A,this.size=0}var E=C;function A(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var O=A;function I(e){return this.__data__.get(e)}var T=I;function M(e){return this.__data__.has(e)}var R=M,P=__webpack_require__(5436),D=__webpack_require__(3269),L=200;function B(e,t){var r=this.__data__;if(r instanceof x.A){var n=r.__data__;if(!P.A||n.length<L-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new D.A(n)}return r.set(e,t),this.size=r.size,this}var N=B;function j(e){var t=this.__data__=new x.A(e);this.size=t.size}j.prototype.clear=E,j.prototype["delete"]=O,j.prototype.get=T,j.prototype.has=R,j.prototype.set=N;var F=j,U=__webpack_require__(9271),z=__webpack_require__(6979);function q(e,t,r){(void 0!==r&&!(0,z.A)(e[t],r)||void 0===r&&!(t in e))&&(0,U.A)(e,t,r)}var H=q;function $(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var W=$,V=W(),X=V,Y=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,J=G&&"object"==typeof module&&module&&!module.nodeType&&module,K=J&&J.exports===G,Z=K?Y.A.Buffer:void 0,Q=Z?Z.allocUnsafe:void 0;function ee(e,t){if(t)return e.slice();var r=e.length,n=Q?Q(r):new e.constructor(r);return e.copy(n),n}var te=ee,re=Y.A.Uint8Array,ne=re;function ie(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}var oe=ie;function se(e,t){var r=t?oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ae=se;function ce(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ue=ce,le=__webpack_require__(7942),he=Object.create,de=function(){function e(){}return function(t){if(!(0,le.A)(t))return{};if(he)return he(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),pe=de,fe=__webpack_require__(7902),me=Object.prototype;function ge(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||me;return e===r}var ve=ge;function ye(e){return"function"!=typeof e.constructor||ve(e)?{}:pe((0,fe.A)(e))}var we=ye,be=__webpack_require__(4044),_e=__webpack_require__(7313),ke="[object Arguments]";function Se(e){return(0,_e.A)(e)&&(0,be.A)(e)==ke}var xe=Se,Ce=Object.prototype,Ee=Ce.hasOwnProperty,Ae=Ce.propertyIsEnumerable,Oe=xe(function(){return arguments}())?xe:function(e){return(0,_e.A)(e)&&Ee.call(e,"callee")&&!Ae.call(e,"callee")},Ie=Oe,Te=__webpack_require__(6956),Me=__webpack_require__(405),Re=9007199254740991;function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Re}var De=Pe;function Le(e){return null!=e&&De(e.length)&&!(0,Me.A)(e)}var Be=Le;function Ne(e){return(0,_e.A)(e)&&Be(e)}var je=Ne;function Fe(){return!1}var Ue=Fe,ze="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=ze&&"object"==typeof module&&module&&!module.nodeType&&module,He=qe&&qe.exports===ze,$e=He?Y.A.Buffer:void 0,We=$e?$e.isBuffer:void 0,Ve=We||Ue,Xe=Ve,Ye=__webpack_require__(8938),Ge="[object Arguments]",Je="[object Array]",Ke="[object Boolean]",Ze="[object Date]",Qe="[object Error]",et="[object Function]",tt="[object Map]",rt="[object Number]",nt="[object Object]",it="[object RegExp]",ot="[object Set]",st="[object String]",at="[object WeakMap]",ct="[object ArrayBuffer]",ut="[object DataView]",lt="[object Float32Array]",ht="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",ft="[object Int32Array]",mt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",wt={};function bt(e){return(0,_e.A)(e)&&De(e.length)&&!!wt[(0,be.A)(e)]}wt[lt]=wt[ht]=wt[dt]=wt[pt]=wt[ft]=wt[mt]=wt[gt]=wt[vt]=wt[yt]=!0,wt[Ge]=wt[Je]=wt[ct]=wt[Ke]=wt[ut]=wt[Ze]=wt[Qe]=wt[et]=wt[tt]=wt[rt]=wt[nt]=wt[it]=wt[ot]=wt[st]=wt[at]=!1;var _t=bt;function kt(e){return function(t){return e(t)}}var St=kt,xt=__webpack_require__(6713),Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,Et=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,At=Et&&Et.exports===Ct,Ot=At&&xt.A.process,It=function(){try{var e=Et&&Et.require&&Et.require("util").types;return e||Ot&&Ot.binding&&Ot.binding("util")}catch(t){}}(),Tt=It,Mt=Tt&&Tt.isTypedArray,Rt=Mt?St(Mt):_t,Pt=Rt;function Dt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Lt=Dt,Bt=__webpack_require__(6124);function Nt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,U.A)(r,a,c):(0,Bt.A)(r,a,c)}return r}var jt=Nt;function Ft(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var Ut=Ft,zt=__webpack_require__(5378),qt=Object.prototype,Ht=qt.hasOwnProperty;function $t(e,t){var r=(0,Te.A)(e),n=!r&&Ie(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Pt(e),s=r||n||i||o,a=s?Ut(e.length,String):[],c=a.length;for(var u in e)!t&&!Ht.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,zt.A)(u,c))||a.push(u);return a}var Wt=$t;function Vt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Vt,Yt=Object.prototype,Gt=Yt.hasOwnProperty;function Jt(e){if(!(0,le.A)(e))return Xt(e);var t=ve(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Kt=Jt;function Zt(e){return Be(e)?Wt(e,!0):Kt(e)}var Qt=Zt;function er(e){return jt(e,Qt(e))}var tr=er;function rr(e,t,r,n,i,o,s){var a=Lt(e,r),c=Lt(t,r),u=s.get(c);if(u)H(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Te.A)(c),p=!d&&Xe(c),f=!d&&!p&&Pt(c);l=c,d||p||f?(0,Te.A)(a)?l=a:je(a)?l=ue(a):p?(h=!1,l=te(c,!0)):f?(h=!1,l=ae(c,!0)):l=[]:(0,Ye.A)(c)||Ie(c)?(l=a,Ie(a)?l=tr(a):(0,le.A)(a)&&!(0,Me.A)(a)||(l=we(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),H(e,r,l)}}var nr=rr;function ir(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new F),(0,le.A)(o))nr(e,t,s,r,ir,n,i);else{var a=n?n(Lt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),H(e,s,a)}},Qt)}var or=ir;function sr(e){return e}var ar=sr;function cr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ur=cr,lr=Math.max;function hr(e,t,r){return t=lr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=lr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),ur(e,this,a)}}var dr=hr;function pr(e){return function(){return e}}var fr=pr,mr=__webpack_require__(1758),gr=mr.A?function(e,t){return(0,mr.A)(e,"toString",{configurable:!0,enumerable:!1,value:fr(t),writable:!0})}:ar,vr=gr,yr=800,wr=16,br=Date.now;function _r(e){var t=0,r=0;return function(){var n=br(),i=wr-(n-r);if(r=n,i>0){if(++t>=yr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var kr=_r,Sr=kr(vr),xr=Sr;function Cr(e,t){return xr(dr(e,t,ar),e+"")}var Er=Cr;function Ar(e,t,r){if(!(0,le.A)(r))return!1;var n=typeof t;return!!("number"==n?Be(r)&&(0,zt.A)(t,r.length):"string"==n&&t in r)&&(0,z.A)(r[t],e)}var Or=Ar;function Ir(e){return Er(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Or(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Tr=Ir,Mr=Tr(function(e,t,r){or(e,t,r)}),Rr=Mr;const Pr=e=>S().fire(e),Dr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Rr(r,e,n);return Pr({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},Lr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Pr({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",S().stopTimer),e.addEventListener("mouseleave",S().resumeTimer)},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Br={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Nr{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new v(e?.encryptionKey),this.authService=new _(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};handleRequest=e=>{this.token="breeze"===this.projectType?this.tokenService.getBreezeToken()?.token:this.tokenService.getToken();const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Br);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(Lr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e.headers&&e.headers["X-IDMS-TOKEN"]&&e.headers["X-IDMS-TOKEN-EXPIRY"]&&this.tokenService.saveBreezeToken({token:e.headers["X-IDMS-TOKEN"],expires:e.headers["X-IDMS-TOKEN-EXPIRY"]}),e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status&&!t?._retry){t._retry=!0;const e=await this.refreshToken();if(200===e.status)return this.token=e.data.jwt,this.tokenService.saveToken(this.token),this.tokenService.saveRefreshToken(e.data.jwt_refresh),navigator.onLine?this.instance(t):(Lr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?Lr("error","Error",e.response.data.message):Lr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?Lr("error","Error",e.response.data.message):Lr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?Lr("error","Error",e.response.data.message):Lr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&Lr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),Lr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={jwt_refresh:this.tokenService.getRefreshToken()};return s().post(`${this.apiBaseUrl}${this.refreshTokenPath}`,e)}}
34
34
  /**
35
- * @vue/shared v3.5.29
35
+ * @vue/shared v3.5.30
36
36
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
37
37
  * @license MIT
38
38
  **/
39
- function jr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const Fr=Object.assign,Ur=Object.prototype.hasOwnProperty,zr=(e,t)=>Ur.call(e,t),qr=Array.isArray,Hr=e=>"[object Map]"===Yr(e),$r=e=>"string"===typeof e,Wr=e=>"symbol"===typeof e,Vr=e=>null!==e&&"object"===typeof e,Xr=Object.prototype.toString,Yr=e=>Xr.call(e),Gr=e=>Yr(e).slice(8,-1),Jr=e=>$r(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Kr=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},Zr=/-\w/g,Qr=(Kr(e=>e.replace(Zr,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),en=(Kr(e=>e.replace(Qr,"-$1").toLowerCase()),Kr(e=>e.charAt(0).toUpperCase()+e.slice(1))),tn=(Kr(e=>{const t=e?`on${en(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let rn;let nn,on,sn=0;function an(){sn++}function cn(){if(--sn>0)return;if(on){let e=on;on=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(nn){let r=nn;nn=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let un=!0;const ln=[];function hn(){ln.push(un),un=!1}function dn(){const e=ln.pop();un=void 0===e||e}class pn{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!rn||!un||rn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==rn)t=this.activeLink=new pn(rn,this),rn.deps?(t.prevDep=rn.depsTail,rn.depsTail.nextDep=t,rn.depsTail=t):rn.deps=rn.depsTail=t,mn(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=rn.depsTail,t.nextDep=void 0,rn.depsTail.nextDep=t,rn.depsTail=t,rn.deps===t&&(rn.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){an();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{cn()}}}function mn(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)mn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const gn=new WeakMap,vn=Symbol(""),yn=Symbol(""),wn=Symbol("");function bn(e,t,r){if(un&&rn){let t=gn.get(e);t||gn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new fn),n.map=t,n.key=r),n.track()}}function _n(e,t,r,n,i,o){const s=gn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(an(),"clear"===t)s.forEach(a);else{const i=qr(e),o=i&&Jr(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===wn||!Wr(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(wn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(vn)),Hr(e)&&a(s.get(yn)));break;case"delete":i||(a(s.get(vn)),Hr(e)&&a(s.get(yn)));break;case"set":Hr(e)&&a(s.get(vn));break}}cn()}function kn(e,t){const r=gn.get(e);return r&&r.get(t)}function Sn(e){const t=ci(e);return t===e?t:(bn(t,"iterate",wn),si(e)?t:t.map(ui))}function xn(e){return bn(e=ci(e),"iterate",wn),e}function Cn(e,t){return oi(e)?ii(e)?li(ui(t)):li(t):ui(t)}const En={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Cn(this,e))},concat(...e){return Sn(this).concat(...e.map(e=>qr(e)?Sn(e):e))},entries(){return An(this,"entries",e=>(e[1]=Cn(this,e[1]),e))},every(e,t){return In(this,"every",e,t,void 0,arguments)},filter(e,t){return In(this,"filter",e,t,e=>e.map(e=>Cn(this,e)),arguments)},find(e,t){return In(this,"find",e,t,e=>Cn(this,e),arguments)},findIndex(e,t){return In(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return In(this,"findLast",e,t,e=>Cn(this,e),arguments)},findLastIndex(e,t){return In(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return In(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return In(this,"map",e,t,void 0,arguments)},pop(){return Rn(this,"pop")},push(...e){return Rn(this,"push",e)},reduce(e,...t){return Tn(this,"reduce",e,t)},reduceRight(e,...t){return Tn(this,"reduceRight",e,t)},shift(){return Rn(this,"shift")},some(e,t){return In(this,"some",e,t,void 0,arguments)},splice(...e){return Rn(this,"splice",e)},toReversed(){return Sn(this).toReversed()},toSorted(e){return Sn(this).toSorted(e)},toSpliced(...e){return Sn(this).toSpliced(...e)},unshift(...e){return Rn(this,"unshift",e)},values(){return An(this,"values",e=>Cn(this,e))}};function An(e,t,r){const n=xn(e),i=n[t]();return n===e||si(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const On=Array.prototype;function In(e,t,r,n,i,o){const s=xn(e),a=s!==e&&!si(e),c=s[t];if(c!==On[t]){const t=c.apply(e,o);return a?ui(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,Cn(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Tn(e,t,r,n){const i=xn(e);let o=r;return i!==e&&(si(e)?r.length>3&&(o=function(t,n,i){return r.call(this,t,n,i,e)}):o=function(t,n,i){return r.call(this,t,Cn(e,n),i,e)}),i[t](o,...n)}function Mn(e,t,r){const n=ci(e);bn(n,"iterate",wn);const i=n[t](...r);return-1!==i&&!1!==i||!ai(r[0])?i:(r[0]=ci(r[0]),n[t](...r))}function Rn(e,t,r=[]){hn(),an();const n=ci(e)[t].apply(e,r);return cn(),dn(),n}const Pn=jr("__proto__,__v_isRef,__isVue"),Dn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Wr));function Ln(e){Wr(e)||(e=String(e));const t=ci(this);return bn(t,"has",e),t.hasOwnProperty(e)}class Bn{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?Zn:Kn:i?Jn:Gn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=qr(e);if(!n){let e;if(o&&(e=En[t]))return e;if("hasOwnProperty"===t)return Ln}const s=Reflect.get(e,t,hi(e)?e:r);if(Wr(t)?Dn.has(t):Pn(t))return s;if(n||bn(e,"get",t),i)return s;if(hi(s)){const e=o&&Jr(t)?s:s.value;return n&&Vr(e)?ri(e):e}return Vr(s)?n?ri(s):ti(s):s}}class Nn extends Bn{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=qr(e)&&Jr(t);if(!this._isShallow){const e=oi(i);if(si(r)||oi(r)||(i=ci(i),r=ci(r)),!o&&hi(i)&&!hi(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:zr(e,t),a=Reflect.set(e,t,r,hi(e)?e:n);return e===ci(n)&&(s?tn(r,i)&&_n(e,"set",t,r,i):_n(e,"add",t,r)),a}deleteProperty(e,t){const r=zr(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&_n(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Wr(t)&&Dn.has(t)||bn(e,"has",t),r}ownKeys(e){return bn(e,"iterate",qr(e)?"length":vn),Reflect.ownKeys(e)}}class jn extends Bn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Fn=new Nn,Un=new jn,zn=e=>e,qn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,r){return function(...n){const i=this["__v_raw"],o=ci(i),s=Hr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?zn:t?li:ui;return!t&&bn(o,"iterate",c?yn:vn),Fr(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function $n(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Wn(e,t){const r={get(r){const n=this["__v_raw"],i=ci(n),o=ci(r);e||(tn(r,o)&&bn(i,"get",r),bn(i,"get",o));const{has:s}=qn(i),a=t?zn:e?li:ui;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&bn(ci(t),"iterate",vn),t.size},has(t){const r=this["__v_raw"],n=ci(r),i=ci(t);return e||(tn(t,i)&&bn(n,"has",t),bn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=ci(o),a=t?zn:e?li:ui;return!e&&bn(s,"iterate",vn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};Fr(r,e?{add:$n("add"),set:$n("set"),delete:$n("delete"),clear:$n("clear")}:{add(e){t||si(e)||oi(e)||(e=ci(e));const r=ci(this),n=qn(r),i=n.has.call(r,e);return i||(r.add(e),_n(r,"add",e,e)),this},set(e,r){t||si(r)||oi(r)||(r=ci(r));const n=ci(this),{has:i,get:o}=qn(n);let s=i.call(n,e);s||(e=ci(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?tn(r,a)&&_n(n,"set",e,r,a):_n(n,"add",e,r),this},delete(e){const t=ci(this),{has:r,get:n}=qn(t);let i=r.call(t,e);i||(e=ci(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&_n(t,"delete",e,void 0,o),s},clear(){const e=ci(this),t=0!==e.size,r=void 0,n=e.clear();return t&&_n(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Hn(n,e,t)}),r}function Vn(e,t){const r=Wn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(zr(r,n)&&n in t?r:t,n,i)}const Xn={get:Vn(!1,!1)},Yn={get:Vn(!0,!1)};const Gn=new WeakMap,Jn=new WeakMap,Kn=new WeakMap,Zn=new WeakMap;function Qn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ei(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Qn(Gr(e))}function ti(e){return oi(e)?e:ni(e,!1,Fn,Xn,Gn)}function ri(e){return ni(e,!0,Un,Yn,Kn)}function ni(e,t,r,n,i){if(!Vr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=ei(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ii(e){return oi(e)?ii(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function oi(e){return!(!e||!e["__v_isReadonly"])}function si(e){return!(!e||!e["__v_isShallow"])}function ai(e){return!!e&&!!e["__v_raw"]}function ci(e){const t=e&&e["__v_raw"];return t?ci(t):e}const ui=e=>Vr(e)?ti(e):e,li=e=>Vr(e)?ri(e):e;function hi(e){return!!e&&!0===e["__v_isRef"]}function di(e){return hi(e)?e.value:e}function pi(e){const t=qr(e)?new Array(e.length):{};for(const r in e)t[r]=mi(e,r);return t}class fi{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._raw=ci(e);let n=!0,i=e;if(!qr(e)||!Jr(String(t)))do{n=!ai(i)||si(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=di(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&hi(this._raw[this._key])){const t=this._object[this._key];if(hi(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return kn(this._raw,this._key)}}function mi(e,t,r){return new fi(e,t,r)}function gi(e,t,r){const n=ti({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function vi(e,t,r){const n=ti({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...pi(n),execute:i}}const yi=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(yi(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class wi{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const bi=new wi("shr-event-bus");var _i=__webpack_require__(2242),ki=__webpack_require__.n(_i);class Si{pusher;setupPusherConnection(e,t){this.pusher=new(ki())(e,t)}}var xi,Ci=new Si;if("undefined"===typeof window){var Ei={hostname:""};xi={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ei,referrer:""},screen:{width:0,height:0},location:Ei,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else xi=window;var Ai="__mp_targeting",Oi="__mp_recorder";function Ii(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 Ti(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function Mi(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Ti(o,n,i,s,a,"next",e)}function a(e){Ti(o,n,i,s,a,"throw",e)}s(void 0)})}}function Ri(e,t,r){return Ri=Wi()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&zi(o,r.prototype),o},Ri.apply(null,arguments)}function Pi(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)}}function Di(e,t,r){return t&&Pi(e.prototype,t),e}function Li(){return Li=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},Li.apply(this,arguments)}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(e)}function Ni(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&&zi(e,t)}function ji(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Fi(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Ui(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}function zi(e,t){return zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zi(e,t)}function qi(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hi(e,t){if(e){if("string"===typeof e)return Ii(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)?Ii(e,t):void 0}}function $i(e){var t="function"===typeof Map?new Map:void 0;return $i=function(e){if(null===e||!Fi(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ri(e,arguments,Bi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),zi(r,e)},$i(e)}function Wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(hk){}return(Wi=function(){return!!e})()}function Vi(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=Hi(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.")}function Xi(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(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(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(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function Yi(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.")}var Gi,Ji=Object.defineProperty,Ki=function(e,t,r){return t in e?Ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Zi=function(e,t,r){return Ki(e,"symbol"!==("undefined"===typeof t?"undefined":qi(t))?t+"":t,r)},Qi=Object.defineProperty,eo=function(e,t,r){return t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},to=function(e,t,r){return eo(e,"symbol"!==("undefined"===typeof t?"undefined":qi(t))?t+"":t,r)},ro=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}(ro||{}),no={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},io={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},oo={},so=function(){return!!globalThis.Zone};function ao(e){if(oo[e])return oo[e];var t=globalThis[e],r=t.prototype,n=e in no?no[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 io?io[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&&!so())return oo[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?oo[e]=u:r}catch(l){return r}}var co={};function uo(e,t,r){var n,i=e+"."+String(r);if(co[i])return co[i].call(t);var o=ao(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(co[i]=s,s.call(t)):t[r]}var lo={};function ho(e,t,r){var n=e+"."+String(r);if(lo[n])return lo[n].bind(t);var i=ao(e),o=i[r];return"function"!==typeof o?t[r]:(lo[n]=o,o.bind(t))}function po(e){return uo("Node",e,"childNodes")}function fo(e){return uo("Node",e,"parentNode")}function mo(e){return uo("Node",e,"parentElement")}function go(e){return uo("Node",e,"textContent")}function vo(e,t){return ho("Node",e,"contains")(t)}function yo(e){return ho("Node",e,"getRootNode")()}function wo(e){return e&&"host"in e?uo("ShadowRoot",e,"host"):null}function bo(e){return e.styleSheets}function _o(e){return e&&"shadowRoot"in e?uo("Element",e,"shadowRoot"):null}function ko(e,t){return uo("Element",e,"querySelector")(t)}function So(e,t){return uo("Element",e,"querySelectorAll")(t)}function xo(){return ao("MutationObserver").constructor}function Co(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(o){return function(){}}}var Eo={childNodes:po,parentNode:fo,parentElement:mo,textContent:go,contains:vo,getRootNode:yo,host:wo,styleSheets:bo,shadowRoot:_o,querySelector:ko,querySelectorAll:So,mutationObserver:xo,patch:Co};function Ao(e){return e.nodeType===e.ELEMENT_NODE}function Oo(e){var t=e&&"host"in e&&"mode"in e&&Eo.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Eo.shadowRoot(t)===e)}function Io(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function To(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Mo(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(" ")+";"}function Ro(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 Po(e,r)}).join("");return To(n)}catch(i){return null}}function Po(e,t){if(Lo(e)){var r;try{r=Ro(e.styleSheet)||Mo(e)}catch(i){r=e.cssText}return e.styleSheet.href?Jo(r,e.styleSheet.href):r}var n=e.cssText;return Bo(e)&&e.selectorText.includes(":")&&(n=Do(n)),t?Jo(n,t):n}function Do(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Lo(e){return"styleSheet"in e}function Bo(e){return"selectorText"in e}var No=function(){function e(){to(this,"idNodeMap",new Map),to(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}();function jo(){return new No}function Fo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Uo(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Uo(e){return e.toLowerCase()}var zo="__rrweb_original__";function qo(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=zo in o?o[zo]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Ho(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Uo(t):null}function $o(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Wo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Vo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xo=/^(?:[a-z+]+:)?\/\//i,Yo=/^www\..*/i,Go=/^(data:)([^,]*),(.*)/i;function Jo(e,t){return(e||"").replace(Vo,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(Xo.test(a)||Yo.test(a))return"url("+c+a+c+")";if(Go.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Wo(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Vi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function Ko(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Zo(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=Ko(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=Ko(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var m=n[c-1].textContent;if(m&&"string"===typeof m){var g=Ko(m).length;f=s.indexOf(d,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=Ko(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function Qo(e,t){return Zo(e,t).join("/* rr_split */")}var es,ts,rs=1,ns=new RegExp("[^a-z0-9-_:]"),is=-2;function os(){return rs++}function ss(e){if(ji(e,HTMLFormElement))return"form";var t=Uo(e.tagName);return ns.test(t)?"div":t}var as=/^[^ \t\n\r\u000c]+/,cs=/^[, \t\n\r\u000c]+/;function us(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):""}var i=[];while(1){if(n(cs),r>=t.length)break;var o=n(as);if(","===o.slice(-1))o=hs(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=hs(e,o);var a=!1;while(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(", ")}var ls=new WeakMap;function hs(e,t){return t&&""!==t.trim()?ps(e,t):t}function ds(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ps(e,t){var r=ls.get(e);if(r||(r=e.createElement("a"),ls.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function fs(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?hs(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?us(e,n):"style"===r?Jo(n,ps(e)):"object"===t&&"data"===r?hs(e,n):n:hs(e,n):n}function ms(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function gs(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(o){}return!1}function vs(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&vs(Eo.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&vs(Eo.parentNode(e),t,r)}function ys(e,t,r,n){var i;if(Ao(e)){if(i=e,!Eo.childNodes(i).length)return!1}else{if(null===Eo.parentElement(e))return!1;i=Eo.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(vs(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function ws(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){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()})}}}function bs(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function _s(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,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=ks(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ro.Document,childNodes:[],compatMode:e.compatMode}:{type:ro.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ro.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return xs(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Ss(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:ro.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:ro.Comment,textContent:Eo.textContent(e)||"",rootId:_};default:return!1}}function ks(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Ss(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Eo.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Eo.textContent(e),u&&c&&(c=Jo(c,ps(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Eo.parentElement(e)):c.replace(/[\S]/g,"*")),{type:ro.Text,textContent:c||"",rootId:i}}function xs(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,v=t.rootId,y=gs(e,i,o),w=ss(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];ms(w,S.name,S.value)||(b[S.name]=fs(n,w,Uo(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=Ro(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=Ro(e.sheet);E&&(e.childNodes.length>1&&(E=Qo(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var A=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&A?b.value=Fo({element:e,type:Ho(e),tagName:w,value:A,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)qo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){es||(es=n.createElement("canvas"),ts=es.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",D=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{es.width=R.naturalWidth,es.height=R.naturalHeight,ts.drawImage(R,0,0),b.rr_dataURL=es.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(D?b.crossOrigin=D:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:ro.Element,tagName:w,attributes:b,childNodes:[],isSVG:ds(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Cs(e){return void 0===e||null===e?"":e.toLowerCase()}function Es(e,t){if(t.comment&&e.type===ro.Comment)return!0;if(e.type===ro.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"===$o(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Cs(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Cs(e.attributes.name)||"icon"===Cs(e.attributes.rel)||"apple-touch-icon"===Cs(e.attributes.rel)||"shortcut icon"===Cs(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Cs(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Cs(e.attributes.property).match(/^(og|twitter|fb):/)||Cs(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Cs(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Cs(e.attributes.name)||"googlebot"===Cs(e.attributes.name)||"bingbot"===Cs(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Cs(e.attributes.name)||"generator"===Cs(e.attributes.name)||"framework"===Cs(e.attributes.name)||"publisher"===Cs(e.attributes.name)||"progid"===Cs(e.attributes.name)||Cs(e.attributes.property).match(/^article:/)||Cs(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Cs(e.attributes.name)||"yandex-verification"===Cs(e.attributes.name)||"csrf-token"===Cs(e.attributes.name)||"p:domain_verify"===Cs(e.attributes.name)||"verify-v1"===Cs(e.attributes.name)||"verification"===Cs(e.attributes.name)||"shopify-checkout-api-token"===Cs(e.attributes.name)))return!0}}return!1}function As(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,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,A=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,I=void 0===O?5e3:O,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=ys(e,s,a,F)}var U,z=_s(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Es(z,g)||!j&&z.type===ro.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?is:os();var q=Object.assign(z,{id:U});if(n.add(e,q),U===is)return null;S&&S(e);var H=!u;if(q.type===ro.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Eo.shadowRoot(e);$&&Io($)&&(q.isShadowHost=!0)}if((q.type===ro.Document||q.type===ro.Element)&&H){g.headWhitespace&&q.type===ro.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===ro.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===ro.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,X=Vi(Array.from(Eo.childNodes(e)));!(V=X()).done;){var Y=V.value,G=As(Y,W);G&&q.childNodes.push(G)}}var J=null;if(Ao(e)&&(J=Eo.shadowRoot(e)))for(var K,Z=Vi(Array.from(Eo.childNodes(J)));!(K=Z()).done;){var Q=K.value,ee=As(Q,W);ee&&(Io(J)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Eo.parentNode(e);return te&&Oo(te)&&Io(te)&&(q.isShadow=!0),q.type===ro.Element&&"iframe"===q.tagName&&ws(e,function(){var t=e.contentDocument;if(t&&x){var r=As(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===ro.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===$o(q.attributes.href))&&bs(e,function(){if(A){var t=As(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&A(e,t)}},I),q}function Os(e,t){var r=t||{},n=r.mirror,i=void 0===n?new No: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,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,m=r.inlineImages,g=void 0!==m&&m,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,A=r.onSerialize,O=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,D=!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,L=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return As(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:D,maskTextFn:_,maskInputFn:k,slimDOMOptions:L,dataURLOptions:C,inlineImages:g,recordCanvas:y,preserveWhiteSpace:E,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ts(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ji(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}var Ms={exports:{}},Rs=String,Ps=function(){return{isColorSupported:!1,reset:Rs,bold:Rs,dim:Rs,italic:Rs,underline:Rs,inverse:Rs,hidden:Rs,strikethrough:Rs,black:Rs,red:Rs,green:Rs,yellow:Rs,blue:Rs,magenta:Rs,cyan:Rs,white:Rs,gray:Rs,bgBlack:Rs,bgRed:Rs,bgGreen:Rs,bgYellow:Rs,bgBlue:Rs,bgMagenta:Rs,bgCyan:Rs,bgWhite:Rs}};Ms.exports=Ps(),Ms.exports.createColors=Ps;var Ds=Ms.exports,Ls={},Bs=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Ns=Ts(Bs),js=Ds,Fs=Ns,Us=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof 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}Ni(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof 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=js.isColorSupported),Fs&&e&&(r=Fs(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=js.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(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}($i(Error)),zs=Us;Us.default=Us;var qs={};qs.isClean=Symbol("isClean"),qs.my=Symbol("my");var Hs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $s(e){return e[0].toUpperCase()+e.slice(1)}var Ws=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("undefined"!==typeof 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");var n=e.parent,i=0;while(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){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;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&&(n=e.raws[t],"undefined"!==typeof n))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 Hs[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+$s(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Hs[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.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("undefined"!==typeof 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&&(t=e.raws.after,"undefined"!==typeof t))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&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.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&&(t=e.raws.semicolon,"undefined"!==typeof t))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}(),Vs=Ws;Ws.default=Ws;var Xs=Vs;function Ys(e,t){var r=new Xs(t);r.stringify(e)}var Gs=Ys;Ys.default=Ys;var Js=qs.isClean,Ks=qs.my,Zs=zs,Qs=Vs,ea=Gs;function ta(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="undefined"===typeof i?"undefined":qi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ta(e,r)}):("object"===o&&null!==i&&(i=ta(i)),r[n]=i)}return r}var ra=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Js]=!1,this[Ks]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Vi(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=ta(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 Zs(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[Js]){this[Js]=!1;var e=this;while(e=e.parent)e[Js]=!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){t=this.toString();var n=t.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){var r=new Qs;return r.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=Vi(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(){var e=this;while(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"===("undefined"===typeof e?"undefined":qi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":qi(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=ea),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)},Di(e,[{key:"proxyOf",get:function(){return this}}]),e}(),na=ra;ra.default=ra;var ia=na,oa=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Li({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ni(t,e),Di(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ia),sa=oa;oa.default=oa;var aa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ca=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=aa[64*Math.random()|0];return t},ua={nanoid:ca},la=Ns.SourceMapConsumer,ha=Ns.SourceMapGenerator,da=Ns.existsSync,pa=Ns.readFileSync,fa=Ns.dirname,ma=Ns.join;function ga(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var va=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=fa(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new la(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ga(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":qi(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=fa(e),da(e))return this.mapFile=e,pa(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(ji(t,la))return ha.fromSourceMap(t).toString();if(ji(t,ha))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=ma(fa(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}(),ya=va;va.default=va;var wa=Ns.SourceMapConsumer,ba=Ns.SourceMapGenerator,_a=Ns.fileURLToPath,ka=Ns.pathToFileURL,Sa=Ns.isAbsolute,xa=Ns.resolve,Ca=ua.nanoid,Ea=Ns,Aa=zs,Oa=ya,Ia=Symbol("fromOffsetCache"),Ta=Boolean(wa&&ba),Ma=Boolean(xa&&Sa),Ra=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":qi(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&&(!Ma||/^\w+:\/\//.test(t.from)||Sa(t.from)?this.file=t.from:this.file=xa(t.from)),Ma&&Ta){var r=new Oa(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 "+Ca(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"===("undefined"===typeof t?"undefined":qi(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 d=this.origin(t,r,o,s);return i=d?new Aa(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Aa(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ka&&(i.input.url=ka(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Ia])r=this[Ia];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Ia]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:xa(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=Sa(a.source)?ka(a.source):new URL(a.source,this.map.consumer().sourceRoot||ka(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(!_a)throw new Error("file: protocol is not available in this PostCSS build");c.file=_a(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=Li({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Di(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Pa=Ra;Ra.default=Ra,Ea&&Ea.registerInput&&Ea.registerInput(Ra);var Da=Ns.SourceMapConsumer,La=Ns.SourceMapGenerator,Ba=Ns.dirname,Na=Ns.relative,ja=Ns.resolve,Fa=Ns.sep,Ua=Ns.pathToFileURL,za=Pa,qa=Boolean(Da&&La),Ha=Boolean(Ba&&ja&&Na&&Fa),$a=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=Vi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ba(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Da(r.text),o.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--)e=this.root.nodes[t],"comment"===e.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(),Ha&&qa&&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=La.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new La({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 La({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),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&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()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof 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?Ba(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Ba(ja(r,this.mapOpts.annotation)));var n=Na(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 za(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(Ua){var r=Ua(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;"\\"===Fa&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Wa=$a,Va=na,Xa=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ni(t,e),t}(Va),Ya=Xa;Xa.default=Xa;var Ga,Ja,Ka,Za,Qa=qs.isClean,ec=qs.my,tc=sa,rc=Ya,nc=na;function ic(e){return e.map(function(e){return e.nodes&&(e.nodes=ic(e.nodes)),delete e.source,e})}function oc(e){if(e[Qa]=!1,e.proxyOf.nodes)for(var t,r=Vi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;oc(n)}}var sc=function(e){function t(){return e.apply(this,arguments)||this}Ni(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=Vi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Vi(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=Vi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;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=Vi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(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=Vi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=ic(Ga(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Vi(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=Vi(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("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new tc(e)]}else if(e.selector)e=[new Ja(e)];else if(e.name)e=[new Ka(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new rc(e)]}var l=e.map(function(e){return e[ec]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Qa]&&oc(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},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=Vi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Vi(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=Vi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.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],t>=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(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ji(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?ji(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?ji(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)}))},Di(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}(nc);sc.registerParse=function(e){Ga=e},sc.registerRule=function(e){Ja=e},sc.registerAtRule=function(e){Ka=e},sc.registerRoot=function(e){Za=e};var ac=sc;sc.default=sc,sc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Ka.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ja.prototype):"decl"===e.type?Object.setPrototypeOf(e,tc.prototype):"comment"===e.type?Object.setPrototypeOf(e,rc.prototype):"root"===e.type&&Object.setPrototypeOf(e,Za.prototype),e[ec]=!0,e.nodes&&e.nodes.forEach(function(e){sc.rebuild(e)})};var cc,uc,lc=ac,hc=function(e){function t(t){var r;return r=e.call(this,Li({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ni(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new cc(new uc,this,e);return t.stringify()},t}(lc);hc.registerLazyResult=function(e){cc=e},hc.registerProcessor=function(e){uc=e};var dc=hc;hc.default=hc;var pc=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]}var t=e.prototype;return t.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}(),fc=pc;pc.default=pc;var mc=fc,gc=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 mc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Di(e,[{key:"content",get:function(){return this.css}}]),e}(),vc=gc;gc.default=gc;var yc="'".charCodeAt(0),wc='"'.charCodeAt(0),bc="\\".charCodeAt(0),_c="/".charCodeAt(0),kc="\n".charCodeAt(0),Sc=" ".charCodeAt(0),xc="\f".charCodeAt(0),Cc="\t".charCodeAt(0),Ec="\r".charCodeAt(0),Ac="[".charCodeAt(0),Oc="]".charCodeAt(0),Ic="(".charCodeAt(0),Tc=")".charCodeAt(0),Mc="{".charCodeAt(0),Rc="}".charCodeAt(0),Pc=";".charCodeAt(0),Dc="*".charCodeAt(0),Lc=":".charCodeAt(0),Bc="@".charCodeAt(0),Nc=/[\t\n\f\r "#'()/;[\\\]{}]/g,jc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Fc=/.[\r\n"'(/\\]/,Uc=/[\da-f]/i,zc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case kc:case Sc:case Cc:case Ec:case xc:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Sc||r===kc||r===Cc||r===Ec||r===xc);h=["space",d.slice(m,n)],m=n-1;break;case Ac:case Oc:case Mc:case Rc:case Lc:case Pc:case Tc:var y=String.fromCharCode(r);h=[y,y,m];break;case Ic:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==yc&&l!==wc&&l!==Sc&&l!==kc&&l!==Cc&&l!==xc&&l!==Ec){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===bc)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Fc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case yc:case wc:i=r===yc?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===bc)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Bc:Nc.lastIndex=m+1,Nc.test(d),n=0===Nc.lastIndex?d.length-1:Nc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case bc:n=m,s=!0;while(d.charCodeAt(n+1)===bc)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==_c&&r!==Sc&&r!==kc&&r!==Cc&&r!==Ec&&r!==xc&&(n+=1,Uc.test(d.charAt(n)))){while(Uc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Sc&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===_c&&d.charCodeAt(m+1)===Dc?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(jc.lastIndex=m+1,jc.test(d),n=0===jc.lastIndex?d.length-1:jc.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},qc=ac,Hc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ni(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}(qc),$c=Hc;Hc.default=Hc,qc.registerAtRule(Hc);var Wc,Vc,Xc=ac,Yc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ni(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=Vi(i);!(o=s()).done;){var a=o.value;a.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){void 0===e&&(e={});var t=new Wc(new Vc,this,e);return t.stringify()},t}(Xc);Yc.registerLazyResult=function(e){Wc=e},Yc.registerProcessor=function(e){Vc=e};var Gc=Yc;Yc.default=Yc,Xc.registerRoot(Yc);var Jc={comma:function(e){return Jc.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Jc.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Vi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},Kc=Jc;Jc.default=Jc;var Zc=ac,Qc=Kc,eu=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ni(t,e),Di(t,[{key:"selectors",get:function(){return Qc.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}(Zc),tu=eu;eu.default=eu,Zc.registerRule(eu);var ru=sa,nu=zc,iu=Ya,ou=$c,su=Gc,au=tu,cu={empty:!0,space:!0};function uu(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var lu=function(){function e(e){this.input=e,this.root=new su,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 ou;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===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){n=a.length-1,r=a[n];while(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;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;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=Vi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(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 iu;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=nu(this.input)},t.decl=function(e,t){var r=new ru;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||uu(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[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));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)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}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(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 au;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){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(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)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[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);break}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)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",cu[a]||cu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new au;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},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}(),hu=lu,du=ac,pu=hu,fu=Pa;function mu(e,t){var r=new fu(e,t),n=new pu(r);try{n.parse()}catch(i){throw i}return n.root}var gu=mu;mu.default=mu,du.registerParse(mu);var vu=qs.isClean,yu=qs.my,wu=Wa,bu=Gs,_u=ac,ku=dc,Su=vc,xu=gu,Cu=Gc,Eu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Au={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},Ou={Once:!0,postcssPlugin:!0,prepare:!0},Iu=0;function Tu(e){return"object"===("undefined"===typeof e?"undefined":qi(e))&&"function"===typeof e.then}function Mu(e){var t=!1,r=Eu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Iu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Iu,r+"Exit"]:[r,r+"Exit"]}function Ru(e){var t;return t="document"===e.type?["Document",Iu,"DocumentExit"]:"root"===e.type?["Root",Iu,"RootExit"]:Mu(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Pu(e){return e[vu]=!1,e.nodes&&e.nodes.forEach(function(e){return Pu(e)}),e}var Du={},Lu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":qi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(ji(r,e)||ji(r,Su))i=Pu(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=xu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[yu]&&_u.rebuild(i)}else i=Pu(r);this.result=new Su(t,i,n),this.helpers=Li({},Du,{postcss:Du,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":qi(e))&&e.prepare?Li({},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);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}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=Vi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":qi(i)))for(var o in i){if(!Au[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ou[o])if("object"===qi(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 Mi(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Xi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Tu(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[vu])return[3,14];o[vu]=!0,s=[Ru(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Tu(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.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 Xi(this,function(a){switch(a.label){case 0:t=d.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=Vi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Yi(l())];case 16:p.sent(),p.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"===("undefined"===typeof e?"undefined":qi(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 Tu(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(n){throw this.handleError(n)}},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=bu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new wu(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[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=Vi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Tu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[vu])i[vu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Vi(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 this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Vi(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(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Tu(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(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[vu])return a[vu]=!0,void e.push(Ru(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Iu)return void(r.nodes&&r.nodes.length&&(r[vu]=!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[vu]=!0;for(var r,n=Mu(e),i=Vi(n);!(r=i()).done;){var o=r.value;if(o===Iu)e.nodes&&e.each(function(e){e[vu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Di(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}();Lu.registerPostcss=function(e){Du=e};var Bu=Lu;Lu.default=Lu,Cu.registerLazyResult(Lu),ku.registerLazyResult(Lu);var Nu=Wa,ju=Gs,Fu=gu,Uu=vc,zu=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=ju;this.result=new Uu(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 Nu(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 this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Di(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=Fu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),qu=zu;zu.default=zu;var Hu=qu,$u=Bu,Wu=dc,Vu=Gc,Xu=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=Vi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":qi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":qi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":qi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new $u(this,e,t):new Hu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Yu=Xu;Xu.default=Xu,Vu.registerProcessor(Xu),Wu.registerProcessor(Xu);var Gu=sa,Ju=ya,Ku=Ya,Zu=$c,Qu=Pa,el=Gc,tl=tu;function rl(e,t){if(Array.isArray(e))return e.map(function(e){return rl(e)});var r=e.inputs,n=Ui(e,["inputs"]);if(r){t=[];for(var i,o=Vi(r);!(i=o()).done;){var s=i.value,a=Li({},s,{__proto__:Qu.prototype});a.map&&(a.map=Li({},a.map,{__proto__:Ju.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return rl(e,t)})),n.source){var c=n.source,u=c.inputId,l=Ui(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new el(n);if("decl"===n.type)return new Gu(n);if("rule"===n.type)return new tl(n);if("comment"===n.type)return new Ku(n);if("atrule"===n.type)return new Zu(n);throw new Error("Unknown node type: "+e.type)}var nl=rl;rl.default=rl;var il=zs,ol=sa,sl=Bu,al=ac,cl=Yu,ul=Gs,ll=nl,hl=dc,dl=fc,pl=Ya,fl=$c,ml=vc,gl=Pa,vl=gu,yl=Kc,wl=tu,bl=Gc,_l=na;function kl(){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 cl(t)}kl.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 cl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return kl([i(r)]).process(e,t)},i},kl.stringify=ul,kl.parse=vl,kl.fromJSON=ll,kl.list=yl,kl.comment=function(e){return new pl(e)},kl.atRule=function(e){return new fl(e)},kl.decl=function(e){return new ol(e)},kl.rule=function(e){return new wl(e)},kl.root=function(e){return new bl(e)},kl.document=function(e){return new hl(e)},kl.CssSyntaxError=il,kl.Declaration=ol,kl.Container=al,kl.Processor=cl,kl.Document=hl,kl.Comment=pl,kl.Warning=dl,kl.AtRule=fl,kl.Result=ml,kl.Input=gl,kl.Rule=wl,kl.Root=bl,kl.Node=_l,sl.registerPostcss(kl);var Sl=kl;kl.default=kl;var xl=Is(Sl);xl.stringify,xl.fromJSON,xl.plugin,xl.parse,xl.list,xl.document,xl.comment,xl.atRule,xl.rule,xl.decl,xl.root,xl.CssSyntaxError,xl.Declaration,xl.Container,xl.Processor,xl.Document,xl.Comment,xl.Warning,xl.AtRule,xl.Result,xl.Input,xl.Rule,xl.Root,xl.Node;var Cl=Object.defineProperty,El=function(e,t,r){return t in e?Cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Al=function(e,t,r){return El(e,"symbol"!==("undefined"===typeof t?"undefined":qi(t))?t+"":t,r)};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Il(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ji(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}var Tl={exports:{}},Ml=String,Rl=function(){return{isColorSupported:!1,reset:Ml,bold:Ml,dim:Ml,italic:Ml,underline:Ml,inverse:Ml,hidden:Ml,strikethrough:Ml,black:Ml,red:Ml,green:Ml,yellow:Ml,blue:Ml,magenta:Ml,cyan:Ml,white:Ml,gray:Ml,bgBlack:Ml,bgRed:Ml,bgGreen:Ml,bgYellow:Ml,bgBlue:Ml,bgMagenta:Ml,bgCyan:Ml,bgWhite:Ml}};Tl.exports=Rl(),Tl.exports.createColors=Rl;var Pl=Tl.exports,Dl={},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Bl=Il(Ll),Nl=Pl,jl=Bl,Fl=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof 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}Ni(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof 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=Nl.isColorSupported),jl&&e&&(r=jl(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=Nl.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(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}($i(Error)),Ul=Fl;Fl.default=Fl;var zl={};zl.isClean=Symbol("isClean"),zl.my=Symbol("my");var ql={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hl(e){return e[0].toUpperCase()+e.slice(1)}var $l=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("undefined"!==typeof 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");var n=e.parent,i=0;while(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){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;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&&(n=e.raws[t],"undefined"!==typeof n))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 ql[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Hl(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=ql[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.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("undefined"!==typeof 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&&(t=e.raws.after,"undefined"!==typeof t))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&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.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&&(t=e.raws.semicolon,"undefined"!==typeof t))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}(),Wl=$l;$l.default=$l;var Vl=Wl;function Xl(e,t){var r=new Vl(t);r.stringify(e)}var Yl=Xl;Xl.default=Xl;var Gl=zl.isClean,Jl=zl.my,Kl=Ul,Zl=Wl,Ql=Yl;function eh(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="undefined"===typeof i?"undefined":qi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return eh(e,r)}):("object"===o&&null!==i&&(i=eh(i)),r[n]=i)}return r}var th=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Gl]=!1,this[Jl]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Vi(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=eh(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 Kl(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[Gl]){this[Gl]=!1;var e=this;while(e=e.parent)e[Gl]=!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){t=this.toString();var n=t.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){var r=new Zl;return r.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=Vi(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(){var e=this;while(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"===("undefined"===typeof e?"undefined":qi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":qi(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=Ql),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)},Di(e,[{key:"proxyOf",get:function(){return this}}]),e}(),rh=th;th.default=th;var nh=rh,ih=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Li({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ni(t,e),Di(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(nh),oh=ih;ih.default=ih;var sh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ah=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=sh[64*Math.random()|0];return t},ch={nanoid:ah},uh=Bl.SourceMapConsumer,lh=Bl.SourceMapGenerator,hh=Bl.existsSync,dh=Bl.readFileSync,ph=Bl.dirname,fh=Bl.join;function mh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var gh=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=ph(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new uh(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return mh(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":qi(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=ph(e),hh(e))return this.mapFile=e,dh(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(ji(t,uh))return lh.fromSourceMap(t).toString();if(ji(t,lh))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=fh(ph(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}(),vh=gh;gh.default=gh;var yh=Bl.SourceMapConsumer,wh=Bl.SourceMapGenerator,bh=Bl.fileURLToPath,_h=Bl.pathToFileURL,kh=Bl.isAbsolute,Sh=Bl.resolve,xh=ch.nanoid,Ch=Bl,Eh=Ul,Ah=vh,Oh=Symbol("fromOffsetCache"),Ih=Boolean(yh&&wh),Th=Boolean(Sh&&kh),Mh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":qi(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&&(!Th||/^\w+:\/\//.test(t.from)||kh(t.from)?this.file=t.from:this.file=Sh(t.from)),Th&&Ih){var r=new Ah(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 "+xh(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"===("undefined"===typeof t?"undefined":qi(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 d=this.origin(t,r,o,s);return i=d?new Eh(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Eh(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(_h&&(i.input.url=_h(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Oh])r=this[Oh];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Oh]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Sh(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=kh(a.source)?_h(a.source):new URL(a.source,this.map.consumer().sourceRoot||_h(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(!bh)throw new Error("file: protocol is not available in this PostCSS build");c.file=bh(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=Li({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Di(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Rh=Mh;Mh.default=Mh,Ch&&Ch.registerInput&&Ch.registerInput(Mh);var Ph=Bl.SourceMapConsumer,Dh=Bl.SourceMapGenerator,Lh=Bl.dirname,Bh=Bl.relative,Nh=Bl.resolve,jh=Bl.sep,Fh=Bl.pathToFileURL,Uh=Rh,zh=Boolean(Ph&&Dh),qh=Boolean(Lh&&Nh&&Bh&&jh),Hh=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=Vi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Lh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ph(r.text),o.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--)e=this.root.nodes[t],"comment"===e.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(),qh&&zh&&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=Dh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Dh({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 Dh({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),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&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()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof 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?Lh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Lh(Nh(r,this.mapOpts.annotation)));var n=Bh(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 Uh(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(Fh){var r=Fh(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;"\\"===jh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),$h=Hh,Wh=rh,Vh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ni(t,e),t}(Wh),Xh=Vh;Vh.default=Vh;var Yh,Gh,Jh,Kh,Zh=zl.isClean,Qh=zl.my,ed=oh,td=Xh,rd=rh;function nd(e){return e.map(function(e){return e.nodes&&(e.nodes=nd(e.nodes)),delete e.source,e})}function id(e){if(e[Zh]=!1,e.proxyOf.nodes)for(var t,r=Vi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;id(n)}}var od=function(e){function t(){return e.apply(this,arguments)||this}Ni(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=Vi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Vi(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=Vi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;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=Vi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(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=Vi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=nd(Yh(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Vi(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=Vi(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("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new ed(e)]}else if(e.selector)e=[new Gh(e)];else if(e.name)e=[new Jh(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new td(e)]}var l=e.map(function(e){return e[Qh]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Zh]&&id(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},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=Vi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Vi(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=Vi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.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],t>=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(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ji(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?ji(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?ji(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)}))},Di(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}(rd);od.registerParse=function(e){Yh=e},od.registerRule=function(e){Gh=e},od.registerAtRule=function(e){Jh=e},od.registerRoot=function(e){Kh=e};var sd=od;od.default=od,od.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Jh.prototype):"rule"===e.type?Object.setPrototypeOf(e,Gh.prototype):"decl"===e.type?Object.setPrototypeOf(e,ed.prototype):"comment"===e.type?Object.setPrototypeOf(e,td.prototype):"root"===e.type&&Object.setPrototypeOf(e,Kh.prototype),e[Qh]=!0,e.nodes&&e.nodes.forEach(function(e){od.rebuild(e)})};var ad,cd,ud=sd,ld=function(e){function t(t){var r;return r=e.call(this,Li({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ni(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new ad(new cd,this,e);return t.stringify()},t}(ud);ld.registerLazyResult=function(e){ad=e},ld.registerProcessor=function(e){cd=e};var hd=ld;ld.default=ld;var dd=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]}var t=e.prototype;return t.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}(),pd=dd;dd.default=dd;var fd=pd,md=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 fd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Di(e,[{key:"content",get:function(){return this.css}}]),e}(),gd=md;md.default=md;var vd="'".charCodeAt(0),yd='"'.charCodeAt(0),wd="\\".charCodeAt(0),bd="/".charCodeAt(0),_d="\n".charCodeAt(0),kd=" ".charCodeAt(0),Sd="\f".charCodeAt(0),xd="\t".charCodeAt(0),Cd="\r".charCodeAt(0),Ed="[".charCodeAt(0),Ad="]".charCodeAt(0),Od="(".charCodeAt(0),Id=")".charCodeAt(0),Td="{".charCodeAt(0),Md="}".charCodeAt(0),Rd=";".charCodeAt(0),Pd="*".charCodeAt(0),Dd=":".charCodeAt(0),Ld="@".charCodeAt(0),Bd=/[\t\n\f\r "#'()/;[\\\]{}]/g,Nd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jd=/.[\r\n"'(/\\]/,Fd=/[\da-f]/i,Ud=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case _d:case kd:case xd:case Cd:case Sd:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===kd||r===_d||r===xd||r===Cd||r===Sd);h=["space",d.slice(m,n)],m=n-1;break;case Ed:case Ad:case Td:case Md:case Dd:case Rd:case Id:var y=String.fromCharCode(r);h=[y,y,m];break;case Od:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==vd&&l!==yd&&l!==kd&&l!==_d&&l!==xd&&l!==Sd&&l!==Cd){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===wd)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||jd.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case vd:case yd:i=r===vd?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===wd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Ld:Bd.lastIndex=m+1,Bd.test(d),n=0===Bd.lastIndex?d.length-1:Bd.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case wd:n=m,s=!0;while(d.charCodeAt(n+1)===wd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==bd&&r!==kd&&r!==_d&&r!==xd&&r!==Cd&&r!==Sd&&(n+=1,Fd.test(d.charAt(n)))){while(Fd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===kd&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===bd&&d.charCodeAt(m+1)===Pd?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Nd.lastIndex=m+1,Nd.test(d),n=0===Nd.lastIndex?d.length-1:Nd.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},zd=sd,qd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ni(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}(zd),Hd=qd;qd.default=qd,zd.registerAtRule(qd);var $d,Wd,Vd=sd,Xd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ni(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=Vi(i);!(o=s()).done;){var a=o.value;a.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){void 0===e&&(e={});var t=new $d(new Wd,this,e);return t.stringify()},t}(Vd);Xd.registerLazyResult=function(e){$d=e},Xd.registerProcessor=function(e){Wd=e};var Yd=Xd;Xd.default=Xd,Vd.registerRoot(Xd);var Gd={comma:function(e){return Gd.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Gd.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Vi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},Jd=Gd;Gd.default=Gd;var Kd=sd,Zd=Jd,Qd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ni(t,e),Di(t,[{key:"selectors",get:function(){return Zd.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}(Kd),ep=Qd;Qd.default=Qd,Kd.registerRule(Qd);var tp=oh,rp=Ud,np=Xh,ip=Hd,op=Yd,sp=ep,ap={empty:!0,space:!0};function cp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var up=function(){function e(e){this.input=e,this.root=new op,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 ip;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===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){n=a.length-1,r=a[n];while(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;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;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=Vi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(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 np;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=rp(this.input)},t.decl=function(e,t){var r=new tp;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||cp(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[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));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)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}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(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 sp;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){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(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)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[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);break}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)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",ap[a]||ap[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new sp;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},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}(),lp=up,hp=sd,dp=lp,pp=Rh;function fp(e,t){var r=new pp(e,t),n=new dp(r);try{n.parse()}catch(i){throw i}return n.root}var mp=fp;fp.default=fp,hp.registerParse(fp);var gp=zl.isClean,vp=zl.my,yp=$h,wp=Yl,bp=sd,_p=hd,kp=gd,Sp=mp,xp=Yd,Cp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ep={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},Ap={Once:!0,postcssPlugin:!0,prepare:!0},Op=0;function Ip(e){return"object"===("undefined"===typeof e?"undefined":qi(e))&&"function"===typeof e.then}function Tp(e){var t=!1,r=Cp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Op,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Op,r+"Exit"]:[r,r+"Exit"]}function Mp(e){var t;return t="document"===e.type?["Document",Op,"DocumentExit"]:"root"===e.type?["Root",Op,"RootExit"]:Tp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Rp(e){return e[gp]=!1,e.nodes&&e.nodes.forEach(function(e){return Rp(e)}),e}var Pp={},Dp=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":qi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(ji(r,e)||ji(r,kp))i=Rp(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Sp;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[vp]&&bp.rebuild(i)}else i=Rp(r);this.result=new kp(t,i,n),this.helpers=Li({},Pp,{postcss:Pp,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":qi(e))&&e.prepare?Li({},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);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}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=Vi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":qi(i)))for(var o in i){if(!Ep[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ap[o])if("object"===qi(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 Mi(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Xi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Ip(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[gp])return[3,14];o[gp]=!0,s=[Mp(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Ip(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.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 Xi(this,function(a){switch(a.label){case 0:t=d.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=Vi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Yi(l())];case 16:p.sent(),p.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"===("undefined"===typeof e?"undefined":qi(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 Ip(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(n){throw this.handleError(n)}},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=wp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new yp(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[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=Vi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Ip(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[gp])i[gp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Vi(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 this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Vi(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(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ip(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(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[gp])return a[gp]=!0,void e.push(Mp(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Op)return void(r.nodes&&r.nodes.length&&(r[gp]=!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[gp]=!0;for(var r,n=Tp(e),i=Vi(n);!(r=i()).done;){var o=r.value;if(o===Op)e.nodes&&e.each(function(e){e[gp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Di(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}();Dp.registerPostcss=function(e){Pp=e};var Lp=Dp;Dp.default=Dp,xp.registerLazyResult(Dp),_p.registerLazyResult(Dp);var Bp=$h,Np=Yl,jp=mp,Fp=gd,Up=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=Np;this.result=new Fp(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 Bp(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 this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Di(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=jp;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),zp=Up;Up.default=Up;var qp=zp,Hp=Lp,$p=hd,Wp=Yd,Vp=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=Vi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":qi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":qi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":qi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Hp(this,e,t):new qp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Xp=Vp;Vp.default=Vp,Wp.registerProcessor(Vp),$p.registerProcessor(Vp);var Yp=oh,Gp=vh,Jp=Xh,Kp=Hd,Zp=Rh,Qp=Yd,ef=ep;function tf(e,t){if(Array.isArray(e))return e.map(function(e){return tf(e)});var r=e.inputs,n=Ui(e,["inputs"]);if(r){t=[];for(var i,o=Vi(r);!(i=o()).done;){var s=i.value,a=Li({},s,{__proto__:Zp.prototype});a.map&&(a.map=Li({},a.map,{__proto__:Gp.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tf(e,t)})),n.source){var c=n.source,u=c.inputId,l=Ui(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Qp(n);if("decl"===n.type)return new Yp(n);if("rule"===n.type)return new ef(n);if("comment"===n.type)return new Jp(n);if("atrule"===n.type)return new Kp(n);throw new Error("Unknown node type: "+e.type)}var rf=tf;tf.default=tf;var nf=Ul,of=oh,sf=Lp,af=sd,cf=Xp,uf=Yl,lf=rf,hf=hd,df=pd,pf=Xh,ff=Hd,mf=gd,gf=Rh,vf=mp,yf=Jd,wf=ep,bf=Yd,_f=rh;function kf(){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 cf(t)}kf.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 cf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return kf([i(r)]).process(e,t)},i},kf.stringify=uf,kf.parse=vf,kf.fromJSON=lf,kf.list=yf,kf.comment=function(e){return new pf(e)},kf.atRule=function(e){return new ff(e)},kf.decl=function(e){return new of(e)},kf.rule=function(e){return new wf(e)},kf.root=function(e){return new bf(e)},kf.document=function(e){return new hf(e)},kf.CssSyntaxError=nf,kf.Declaration=of,kf.Container=af,kf.Processor=cf,kf.Document=hf,kf.Comment=pf,kf.Warning=df,kf.AtRule=ff,kf.Result=mf,kf.Input=gf,kf.Rule=wf,kf.Root=bf,kf.Node=_f,sf.registerPostcss(kf);var Sf=kf;kf.default=kf;var xf=Ol(Sf);xf.stringify,xf.fromJSON,xf.plugin,xf.parse,xf.list,xf.document,xf.comment,xf.atRule,xf.rule,xf.decl,xf.root,xf.CssSyntaxError,xf.Declaration,xf.Container,xf.Processor,xf.Document,xf.Comment,xf.Warning,xf.AtRule,xf.Result,xf.Input,xf.Rule,xf.Root,xf.Node;var Cf=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Al(this,"parentElement",null),Al(this,"parentNode",null),Al(this,"ownerDocument"),Al(this,"firstChild",null),Al(this,"lastChild",null),Al(this,"previousSibling",null),Al(this,"nextSibling",null),Al(this,"ELEMENT_NODE",1),Al(this,"TEXT_NODE",3),Al(this,"nodeType"),Al(this,"nodeName"),Al(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!ji(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(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"},Di(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),Ef={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Af={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Of={},If=function(){return!!globalThis.Zone};function Tf(e){if(Of[e])return Of[e];var t=globalThis[e],r=t.prototype,n=e in Ef?Ef[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 Af?Af[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&&!If())return Of[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?Of[e]=u:r}catch(l){return r}}var Mf={};function Rf(e,t,r){var n,i=e+"."+String(r);if(Mf[i])return Mf[i].call(t);var o=Tf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Mf[i]=s,s.call(t)):t[r]}var Pf={};function Df(e,t,r){var n=e+"."+String(r);if(Pf[n])return Pf[n].bind(t);var i=Tf(e),o=i[r];return"function"!==typeof o?t[r]:(Pf[n]=o,o.bind(t))}function Lf(e){return Rf("Node",e,"childNodes")}function Bf(e){return Rf("Node",e,"parentNode")}function Nf(e){return Rf("Node",e,"parentElement")}function jf(e){return Rf("Node",e,"textContent")}function Ff(e,t){return Df("Node",e,"contains")(t)}function Uf(e){return Df("Node",e,"getRootNode")()}function zf(e){return e&&"host"in e?Rf("ShadowRoot",e,"host"):null}function qf(e){return e.styleSheets}function Hf(e){return e&&"shadowRoot"in e?Rf("Element",e,"shadowRoot"):null}function $f(e,t){return Rf("Element",e,"querySelector")(t)}function Wf(e,t){return Rf("Element",e,"querySelectorAll")(t)}function Vf(){return Tf("MutationObserver").constructor}function Xf(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(o){return function(){}}}var Yf={childNodes:Lf,parentNode:Bf,parentElement:Nf,textContent:jf,contains:Ff,getRootNode:Uf,host:zf,styleSheets:qf,shadowRoot:Hf,querySelector:$f,querySelectorAll:Wf,mutationObserver:Vf,patch:Xf};function Gf(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)}}var Jf="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.",Kf={map:{},getId:function(){return console.error(Jf),-1},getNode:function(){return console.error(Jf),null},removeNodeFromMap:function(){console.error(Jf)},has:function(){return console.error(Jf),!1},reset:function(){console.error(Jf)}};function Zf(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))}}function Qf(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 Qf(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Kf=new Proxy(Kf,{get:function(e,t,r){return"map"===t&&console.error(Jf),Reflect.get(e,t,r)}}));var em=Date.now;function tm(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=Yf.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=Yf.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function rm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function im(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:Yf.parentElement(e);return t}function om(e,t,r,n){if(!e)return!1;var i=im(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(vs(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function sm(e,t){return-1!==t.getId(e)}function am(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===is}function cm(e,t){if(Oo(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Yf.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||cm(n,t))}function um(e){return Boolean(e.changedTouches)}function lm(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function hm(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function dm(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function pm(e){return!!e&&(ji(e,Cf)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Yf.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(em=function(){return(new Date).getTime()});var fm=function(){function e(){Zi(this,"id",1),Zi(this,"styleIDMap",new WeakMap),Zi(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}();function mm(e){var t,r=null;return"getRootNode"in e&&(null==(t=Yf.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Yf.host(Yf.getRootNode(e))&&(r=Yf.host(Yf.getRootNode(e))),r}function gm(e){var t,r=e;while(t=mm(r))r=t;return r}function vm(e){var t=e.ownerDocument;if(!t)return!1;var r=gm(e);return Yf.contains(t,r)}function ym(e){var t=e.ownerDocument;return!!t&&(Yf.contains(t,e)||vm(e))}var wm=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(wm||{}),bm=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(bm||{}),_m=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(_m||{}),km=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(km||{}),Sm=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Sm||{}),xm=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(xm||{}),Cm=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}(Cm||{});function Em(e){return"__ln"in e}var Am,Om=function(){function e(){Zi(this,"length",0),Zi(this,"head",null),Zi(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&&Em(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&&Em(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}(),Im=function(e,t){return e+"@"+t},Tm=function(){function e(){var e=this;Zi(this,"frozen",!1),Zi(this,"locked",!1),Zi(this,"texts",[]),Zi(this,"attributes",[]),Zi(this,"attributeMap",new WeakMap),Zi(this,"removes",[]),Zi(this,"mapRemoves",[]),Zi(this,"movedMap",{}),Zi(this,"addedSet",new Set),Zi(this,"movedSet",new Set),Zi(this,"droppedSet",new Set),Zi(this,"removesSubTreeCache",new Set),Zi(this,"mutationCb"),Zi(this,"blockClass"),Zi(this,"blockSelector"),Zi(this,"maskTextClass"),Zi(this,"maskTextSelector"),Zi(this,"inlineStylesheet"),Zi(this,"maskInputOptions"),Zi(this,"maskTextFn"),Zi(this,"maskInputFn"),Zi(this,"keepIframeSrcFn"),Zi(this,"recordCanvas"),Zi(this,"inlineImages"),Zi(this,"slimDOMOptions"),Zi(this,"dataURLOptions"),Zi(this,"doc"),Zi(this,"mirror"),Zi(this,"iframeManager"),Zi(this,"stylesheetManager"),Zi(this,"shadowDomManager"),Zi(this,"canvasManager"),Zi(this,"processedNodeManager"),Zi(this,"unattachedDoc"),Zi(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Zi(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Om,i=function(t){var r=t,n=is;while(n===is)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=Yf.parentNode(o);if(s&&ym(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=Oo(s)?e.mirror.getId(mm(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=As(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){hm(t,e.mirror)&&e.iframeManager.addIframe(t),dm(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),pm(o)&&e.shadowDomManager.addShadowRoot(Yf.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))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();if("IFRAME"===s.nodeName)try{e.iframeManager.removeIframe(s)}catch(E){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(s);e.mirror.removeNodeFromMap(s)}for(var a,c=Vi(e.movedSet);!(a=c()).done;){var u=a.value;Pm(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(Yf.parentNode(u))||o(u)}for(var l,h=Vi(e.addedSet);!(l=h()).done;){var d=l.value;Lm(e.droppedSet,d)||Pm(e.removesSubTreeCache,d,e.mirror)?Lm(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var m=e.mirror.getId(Yf.parentNode(p.value)),g=i(p.value);-1!==m&&-1!==g&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(Yf.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=Yf.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=Yf.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=Yf.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))}}),Zi(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(Yf.childNodes(t),function(e){return Yf.textContent(e)||""}).join("");r.attributes.value=Fo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Ho(t),value:n,maskInputFn:e.maskInputFn})}),Zi(this,"processMutation",function(t){if(!am(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Yf.textContent(t.target);om(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ys(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,im(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=Ho(n);o=Fo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(om(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"),!ms(n.tagName,i))if(a.attributes[i]=fs(e.doc,Uo(n.tagName),Uo(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=Vi(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=Vi(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!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(om(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=Oo(t.target)?e.mirror.getId(Yf.host(t.target)):e.mirror.getId(t.target);om(t.target,e.blockClass,e.blockSelector,!1)||am(r,e.mirror,e.slimDOMOptions)||!sm(r,e.mirror)||(e.addedSet.has(r)?(Mm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||cm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Im(n,i)]?Mm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Oo(t.target)||!Io(t.target))||void 0}),Rm(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),Zi(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(am(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[Im(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);om(t,e.blockClass,e.blockSelector,!1)||(Yf.childNodes(t).forEach(function(t){return e.genAdds(t)}),pm(t)&&Yf.childNodes(Yf.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,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 Mm(e,t){e.delete(t),Yf.childNodes(t).forEach(function(t){return Mm(e,t)})}function Rm(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),Yf.childNodes(n).forEach(function(e){return r.push(e)}))}}function Pm(e,t,r){return 0!==e.size&&Dm(e,t)}function Dm(e,t,r){var n=Yf.parentNode(t);return!!n&&e.has(n)}function Lm(e,t){return 0!==e.size&&Bm(e,t)}function Bm(e,t){var r=Yf.parentNode(t);return!!r&&(!!e.has(r)||Bm(e,r))}function Nm(e){Am=e}function jm(){Am=void 0}var Fm=function(e){if(!Am)return e;var t=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(i){if(Am&&!0===Am(i))return;throw i}};return t},Um=[];function zm(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(r){}return e&&e.target}function qm(e,t){var r=new Tm;Um.push(r),r.init(e);var n=new(Vf())(Fm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Hm(e){for(var t=Um.length-1;t>=0;t--){var r=Um[t];r.getDoc()===e&&Um.splice(t,1)}}function $m(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=Zf(Fm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Fm(Zf(Fm(function(e){var t=zm(e),r=um(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=em()),c.push({x:n,y:s,id:i.getId(t),timeOffset:em()-o}),u("undefined"!==typeof DragEvent&&ji(e,DragEvent)?bm.Drag:ji(e,MouseEvent)?bm.MouseMove:bm.TouchMove)}),s,{trailing:!1})),h=[Gf("mousemove",l,n),Gf("touchmove",l,n),Gf("drag",l,n)];return Fm(function(){h.forEach(function(e){return e()})})}function Wm(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,l=function(e){return function(r){var s=zm(r);if(!om(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=km.Mouse;break;case"touch":a=km.Touch;break;case"pen":a=km.Pen;break}a===km.Touch?_m[e]===_m.MouseDown?c="TouchStart":_m[e]===_m.MouseUp&&(c="TouchEnd"):km.Pen}else um(r)&&(a=km.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===km.Touch||c.startsWith("Mouse")&&a===km.Mouse)&&(a=null)):_m[e]===_m.Click&&(a=u,u=null);var l=um(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Fm(t)(Li({type:_m[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(_m).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Uo(e),n=l(e);if(window.PointerEvent)switch(_m[e]){case _m.MouseDown:case _m.MouseUp:t=t.replace("mouse","pointer");break;case _m.TouchStart:case _m.TouchEnd:return}c.push(Gf(t,n,r))}),Fm(function(){c.forEach(function(e){return e()})})}function Vm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Fm(Zf(Fm(function(e){var s=zm(e);if(s&&!om(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=tm(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 Gf("scroll",a,r)}function Xm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Fm(Zf(Fm(function(){var e=rm(),t=nm();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return Gf("resize",s,n)}var Ym=["INPUT","TEXTAREA","SELECT"],Gm=new WeakMap;function Jm(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 d(e){var t=zm(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Yf.parentElement(t)),t&&l&&!(Ym.indexOf(l)<0)&&!om(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=Ho(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=Fo({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=Gm.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Gm.set(e,r);var o=n.getId(e);Fm(t)(Li({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return Gf(e,Fm(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v,y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=m).push.apply(v,[].concat(w.map(function(e){return Qf(e[0],e[1],{set:function(){Fm(d)({target:this,isTrusted:!1})}},!1,g)})));return Fm(function(){m.forEach(function(e){return e()})})}function Km(e){var t=[];function r(e,t){if(cg("CSSGroupingRule")&&ji(e.parentRule,CSSGroupingRule)||cg("CSSMediaRule")&&ji(e.parentRule,CSSMediaRule)||cg("CSSSupportsRule")&&ji(e.parentRule,CSSSupportsRule)||cg("CSSConditionRule")&&ji(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function Zm(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Qm(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:Fm(function(e,t,o){var s=o[0],a=o[1],c=Zm(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:Fm(function(e,t,o){var s=o[0],a=Zm(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:Fm(function(e,t,o){var s=o[0],a=Zm(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:Fm(function(e,t,o){var s=o[0],a=Zm(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={};ug("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(ug("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),ug("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),ug("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:Fm(function(e,t,o){var s=o[0],a=o[1],c=Zm(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(Km(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Fm(function(e,t,o){var s=o[0],a=Zm(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(Km(t),[s])}]}),e.apply(t,o)})})}),Fm(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})})}function eg(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Yf.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(n){}return r}}),Fm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function tg(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:Fm(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 d=Zm(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:Km(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Fm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Zm(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:Km(t.parentRule)}),e.apply(t,s)})}),Fm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function rg(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Fm(function(e){return Zf(Fm(function(o){var s=zm(o);if(s&&!om(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=[Gf("play",a(xm.Play),s),Gf("pause",a(xm.Pause),s),Gf("seeked",a(xm.Seeked),s),Gf("volumechange",a(xm.VolumeChange),s),Gf("ratechange",a(xm.RateChange),s)];return Fm(function(){c.forEach(function(e){return e()})})}function ng(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=Xf(r.fonts,"add",function(e){return function(r){return setTimeout(Fm(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),Fm(function(){i.forEach(function(e){return e()})})}function ig(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Fm(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,d=l.startOffset,p=l.endContainer,f=l.endOffset,m=om(h,n,i,!0)||om(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),Gf("selectionchange",a)}function og(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=Xf(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function sg(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,d=e.fontCb,p=e.selectionCb,f=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));d.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));p.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));f.apply(void 0,[].concat(r))}}function ag(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};sg(e,t),e.recordDOM&&(r=qm(e,e.doc));var i=$m(e),o=Wm(e),s=Vm(e),a=Xm(e,{win:n}),c=Jm(e),u=rg(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=Qm(e,{win:n}),h=eg(e,e.doc),d=tg(e,{win:n}),e.collectFonts&&(p=ng(e)));for(var f,m=ig(e),g=og(e),v=[],y=Vi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Fm(function(){Um.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),m(),g(),v.forEach(function(e){return e()})})}function cg(e){return"undefined"!==typeof window[e]}function ug(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var lg=function(){function e(e){Zi(this,"iframeIdToRemoteIdMap",new WeakMap),Zi(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}(),hg=function(){function e(e){Zi(this,"iframes",new WeakMap),Zi(this,"crossOriginIframeMap",new WeakMap),Zi(this,"crossOriginIframeMirror",new lg(os)),Zi(this,"crossOriginIframeStyleMirror"),Zi(this,"crossOriginIframeRootIdMap",new WeakMap),Zi(this,"iframeContentDocumentMap",new WeakMap),Zi(this,"iframeObserverCleanupMap",new WeakMap),Zi(this,"mirror"),Zi(this,"mutationCb"),Zi(this,"wrappedEmit"),Zi(this,"loadListener"),Zi(this,"stylesheetManager"),Zi(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new lg(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(n){}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){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case wm.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:wm.IncrementalSnapshot,data:{source:bm.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case wm.Meta:case wm.Load:case wm.DomContentLoaded:return!1;case wm.Plugin:return t;case wm.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case wm.IncrementalSnapshot:switch(t.data.source){case bm.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 bm.Drag:case bm.TouchMove:case bm.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case bm.ViewportResize:return!1;case bm.MediaInteraction:case bm.MouseInteraction:case bm.Scroll:case bm.CanvasMutation:case bm.Input:return this.replaceIds(t.data,e,["id"]),t;case bm.StyleSheetRule:case bm.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case bm.Font:return t;case bm.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case bm.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=Vi(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===Cm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),dg=function(){function e(e){Zi(this,"shadowDoms",new WeakSet),Zi(this,"mutationCb"),Zi(this,"scrollCb"),Zi(this,"bypassOptions"),Zi(this,"mirror"),Zi(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(Io(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=qm(Li({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Vm(Li({},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(Yf.host(e))),r.restoreHandlers.push(eg({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(Xf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=Yf.shadowRoot(this);return o&&ym(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),pg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fg="undefined"===typeof Uint8Array?[]:new Uint8Array(256),mg=0;mg<pg.length;mg++)fg[pg.charCodeAt(mg)]=mg;var gg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=pg[r[t]>>2],i+=pg[(3&r[t])<<4|r[t+1]>>4],i+=pg[(15&r[t+1])<<2|r[t+2]>>6],i+=pg[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},vg=new Map;function yg(e,t){var r=vg.get(e);return r||(r=new Map,vg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var wg=function(e,t,r){if(e&&(kg(e,t)||"object"===("undefined"===typeof e?"undefined":qi(e)))){var n=e.constructor.name,i=yg(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function bg(e,t,r){if(ji(e,Array))return e.map(function(e){return bg(e,t,r)});if(null===e)return e;if(ji(e,Float32Array)||ji(e,Float64Array)||ji(e,Int32Array)||ji(e,Uint32Array)||ji(e,Uint8Array)||ji(e,Uint16Array)||ji(e,Int16Array)||ji(e,Int8Array)||ji(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(ji(e,ArrayBuffer)){var i=e.constructor.name,o=gg(e);return{rr_type:i,base64:o}}if(ji(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[bg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(ji(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(ji(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(ji(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[bg(e.data,t,r),e.width,e.height]}}if(kg(e,t)||"object"===("undefined"===typeof e?"undefined":qi(e))){var d=e.constructor.name,p=wg(e,t,r);return{rr_type:d,index:p}}return e}var _g=function(e,t,r){return e.map(function(e){return bg(e,t,r)})},kg=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return ji(e,t[r])}))};function Sg(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=Xf(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 om(this.canvas,r,n,!0)||setTimeout(function(){var r=_g(c,t,s);e(s.canvas,{type:Sm["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=Qf(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Sm["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Vi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function xg(e){return"experimental-webgl"===e?"webgl":e}function Cg(e,t,r,n){var i=[];try{var o=Xf(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(!om(this,t,r,!0)){var c=xg(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===qi(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(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Eg(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=Xf(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(wg(l,o,this),"tagName"in this.canvas&&!om(this.canvas,n,i,!0)){var h=_g(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=Qf(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=Vi(u);!(s=l()).done;)a();return c}function Ag(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Eg(t.WebGLRenderingContext.prototype,Sm.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Eg(t.WebGL2RenderingContext.prototype,Sm.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Og="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Ig=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Tg="undefined"!==typeof window&&window.Blob&&new Blob([Ig(Og)],{type:"text/javascript;charset=utf-8"});function Mg(e){var t;try{if(t=Tg&&(window.URL||window.webkitURL).createObjectURL(Tg),!t)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(n){return new Worker("data:text/javascript;base64,"+Og,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Rg,Pg,Dg,Lg=function(){function e(e){var t=this;Zi(this,"pendingCanvasMutations",new Map),Zi(this,"rafStamps",{latestId:0,invokeId:null}),Zi(this,"mirror"),Zi(this,"mutationCb"),Zi(this,"resetObservers"),Zi(this,"frozen",!1),Zi(this,"locked",!1),Zi(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&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=Cg(t,r,n,!0),a=new Map,c=new Mg;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:Sm["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,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){om(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(Mi(function(e){var r,n,o,s;return Xi(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[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=Cg(e,t,r,!1),i=Sg(this.processMutation.bind(this),e,t,r),o=Ag(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){e.type;var t=Ui(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Bg=function(){function e(e){Zi(this,"trackedLinkElements",new WeakSet),Zi(this,"mutationCb"),Zi(this,"adoptedStyleSheetCb"),Zi(this,"styleMirror",new fm),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:Po(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Vi(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=Vi(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(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),Ng=function(){function e(){Zi(this,"nodeMap",new WeakMap),Zi(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}(),jg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Fg=document.createElement("iframe");document.body.appendChild(Fg),Array.from=(null==(Gi=Fg.contentWindow)?void 0:Gi.Array.from)||Array.from,document.body.removeChild(Fg)}}catch(YE){console.debug("Unable to override Array.from",YE)}var Ug,zg=jo();function qg(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,m=void 0===f?null:f,g=e.inlineStylesheet,v=void 0===g||g,y=e.maskAllInputs,w=e.maskInputOptions,b=e.slimDOMOptions,_=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,A=e.dataURLOptions,O=void 0===A?{}:A,I=e.mousemoveWait,T=e.recordDOM,M=void 0===T||T,R=e.recordCanvas,P=void 0!==R&&R,D=e.recordCrossOriginIframes,L=void 0!==D&&D,B=e.recordAfter,N=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,F=void 0!==j&&j,U=e.collectFonts,z=void 0!==U&&U,q=e.inlineImages,H=void 0!==q&&q,$=e.plugins,W=e.keepIframeSrcFn,V=void 0===W?function(){return!1}:W,X=e.ignoreCSSAttributes,Y=void 0===X?new Set([]):X,G=e.errorHandler;Nm(G);var J=!L||window.parent===window,K=!1;if(!J)try{window.parent.document&&(K=!1)}catch(ve){K=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!K)return function(){};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),zg.reset();var Z,Q=!0===y?{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!==w?w:{password:!0},ee=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};lm();var te=0,re=function(e){for(var t,r=Vi($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};Rg=function(e,i){var o,s=e;if(s.timestamp=em(),!(null==(o=Um[0])?void 0:o.isFrozen())||s.type===wm.FullSnapshot||s.type===wm.IncrementalSnapshot&&s.data.source===bm.Mutation||Um.forEach(function(e){return e.unfreeze()}),J)null==t||t(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===wm.FullSnapshot)Z=s,te=0;else if(s.type===wm.IncrementalSnapshot){if(s.data.source===bm.Mutation&&s.data.isAttachIframe)return;te++;var c=n&&te>=n,u=r&&s.timestamp-Z.timestamp>r;(c||u)&&Pg(!0)}};for(var ne,ie=function(e){Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.Mutation},e)})},oe=function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.Scroll},e)})},se=function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.CanvasMutation},e)})},ae=function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.AdoptedStyleSheet},e)})},ce=new Bg({mutationCb:ie,adoptedStyleSheetCb:ae}),ue=new hg({mirror:zg,mutationCb:ie,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:Rg}),le=Vi($||[]);!(ne=le()).done;){var he=ne.value;he.getMirror&&he.getMirror({nodeMirror:zg,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var de=new Ng;Dg=new Lg({recordCanvas:P,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:zg,sampling:E.canvas,dataURLOptions:O});var pe=new dg({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:_,recordCanvas:P,inlineImages:H,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ce,canvasManager:Dg,keepIframeSrcFn:V,processedNodeManager:de},mirror:zg});Pg=function(e){if(void 0===e&&(e=!1),M){Rg({type:wm.Meta,data:{href:window.location.href,width:nm(),height:rm()}},e),ce.reset(),pe.init(),Um.forEach(function(e){return e.lock()});var t=Os(document,{mirror:zg,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:_,slimDOM:ee,dataURLOptions:O,recordCanvas:P,inlineImages:H,onSerialize:function(e){hm(e,zg)&&ue.addIframe(e),dm(e,zg)&&ce.trackLinkElement(e),pm(e)&&pe.addShadowRoot(Yf.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:V});if(!t)return console.warn("Failed to snapshot the document");Rg({type:wm.FullSnapshot,data:{node:t,initialOffset:tm(window)}},e),Um.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,zg.getId(document))}};try{var fe=[],me=function(e){var t;return Fm(ag)({mutationCb:ie,mousemoveCb:function(e,t){return Rg({type:wm.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.ViewportResize},e)})},inputCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.Input},e)})},mediaInteractionCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.Font},e)})},selectionCb:function(e){Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.Selection},e)})},customElementCb:function(e){Rg({type:wm.IncrementalSnapshot,data:Li({source:bm.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:H,userTriggeredOnInput:F,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:k,keepIframeSrcFn:V,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:zg,iframeManager:ue,stylesheetManager:ce,shadowDomManager:pe,processedNodeManager:de,canvasManager:Dg,ignoreCSSAttributes:Y,plugins:(null==(t=null==$?void 0:$.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Rg({type:wm.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{var t=e.contentDocument,r=me(t);fe.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,function(){if(n)try{n()}catch(ve){}try{r();var e=fe.indexOf(r);-1!==e&&fe.splice(e,1),Hm(t)}catch(ve){}})}catch(i){console.warn(i)}});var ge=function(){Pg(),fe.push(me(document)),jg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(Gf("DOMContentLoaded",function(){Rg({type:wm.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&ge()})),fe.push(Gf("load",function(){Rg({type:wm.Load,data:{}}),"load"===N&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),de.destroy(),jg=!1,jm()}}catch(ye){console.warn(ye)}}qg.addCustomEvent=function(e,t){if(!jg)throw new Error("please add custom event after start recording");Rg({type:wm.Custom,data:{tag:e,payload:t}})},qg.freezePage=function(){Um.forEach(function(e){return e.freeze()})},qg.takeFullSnapshot=function(e){if(!jg)throw new Error("please take full snapshot after start recording");Pg(e)},qg.mirror=zg,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Ug||(Ug={})),qg.addCustomEvent,qg.freezePage,qg.takeFullSnapshot;var Hg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Wg={},Vg=function(){return!!globalThis.Zone};function Xg(e){if(Wg[e])return Wg[e];var t=globalThis[e],r=t.prototype,n=e in Hg?Hg[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 $g?$g[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&&!Vg())return Wg[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?Wg[e]=u:r}catch(l){return r}}var Yg={};function Gg(e,t,r){var n,i=e+"."+String(r);if(Yg[i])return Yg[i].call(t);var o=Xg(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Yg[i]=s,s.call(t)):t[r]}var Jg={};function Kg(e,t,r){var n=e+"."+String(r);if(Jg[n])return Jg[n].bind(t);var i=Xg(e),o=i[r];return"function"!==typeof o?t[r]:(Jg[n]=o,o.bind(t))}function Zg(e){return Gg("Node",e,"childNodes")}function Qg(e){return Gg("Node",e,"parentNode")}function ev(e){return Gg("Node",e,"parentElement")}function tv(e){return Gg("Node",e,"textContent")}function rv(e,t){return Kg("Node",e,"contains")(t)}function nv(e){return Kg("Node",e,"getRootNode")()}function iv(e){return e&&"host"in e?Gg("ShadowRoot",e,"host"):null}function ov(e){return e.styleSheets}function sv(e){return e&&"shadowRoot"in e?Gg("Element",e,"shadowRoot"):null}function av(e,t){return Gg("Element",e,"querySelector")(t)}function cv(e,t){return Gg("Element",e,"querySelectorAll")(t)}function uv(){return Xg("MutationObserver").constructor}function lv(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(o){return function(){}}}var hv={childNodes:Zg,parentNode:Qg,parentElement:ev,textContent:tv,contains:rv,getRootNode:nv,host:iv,styleSheets:ov,shadowRoot:sv,querySelector:av,querySelectorAll:cv,mutationObserver:uv,patch:lv};function dv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return dv(hv.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return dv(hv.parentNode(e),t)}function pv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function fv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ji(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}var mv={exports:{}},gv=String,vv=function(){return{isColorSupported:!1,reset:gv,bold:gv,dim:gv,italic:gv,underline:gv,inverse:gv,hidden:gv,strikethrough:gv,black:gv,red:gv,green:gv,yellow:gv,blue:gv,magenta:gv,cyan:gv,white:gv,gray:gv,bgBlack:gv,bgRed:gv,bgGreen:gv,bgYellow:gv,bgBlue:gv,bgMagenta:gv,bgCyan:gv,bgWhite:gv}};mv.exports=vv(),mv.exports.createColors=vv;var yv=mv.exports,wv={},bv=Object.freeze(Object.defineProperty({__proto__:null,default:wv},Symbol.toStringTag,{value:"Module"})),_v=fv(bv),kv=yv,Sv=_v,xv=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof 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}Ni(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof 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=kv.isColorSupported),Sv&&e&&(r=Sv(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=kv.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(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}($i(Error)),Cv=xv;xv.default=xv;var Ev={};Ev.isClean=Symbol("isClean"),Ev.my=Symbol("my");var Av={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ov(e){return e[0].toUpperCase()+e.slice(1)}var Iv=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("undefined"!==typeof 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");var n=e.parent,i=0;while(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){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;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&&(n=e.raws[t],"undefined"!==typeof n))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 Av[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Ov(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Av[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.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("undefined"!==typeof 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&&(t=e.raws.after,"undefined"!==typeof t))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&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.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&&(t=e.raws.semicolon,"undefined"!==typeof t))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}(),Tv=Iv;Iv.default=Iv;var Mv=Tv;function Rv(e,t){var r=new Mv(t);r.stringify(e)}var Pv=Rv;Rv.default=Rv;var Dv=Ev.isClean,Lv=Ev.my,Bv=Cv,Nv=Tv,jv=Pv;function Fv(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="undefined"===typeof i?"undefined":qi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Fv(e,r)}):("object"===o&&null!==i&&(i=Fv(i)),r[n]=i)}return r}var Uv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Dv]=!1,this[Lv]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Vi(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=Fv(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 Bv(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[Dv]){this[Dv]=!1;var e=this;while(e=e.parent)e[Dv]=!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){t=this.toString();var n=t.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){var r=new Nv;return r.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=Vi(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(){var e=this;while(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"===("undefined"===typeof e?"undefined":qi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":qi(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=jv),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)},Di(e,[{key:"proxyOf",get:function(){return this}}]),e}(),zv=Uv;Uv.default=Uv;var qv=zv,Hv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Li({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ni(t,e),Di(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(qv),$v=Hv;Hv.default=Hv;var Wv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Vv=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=Wv[64*Math.random()|0];return t},Xv={nanoid:Vv},Yv=_v.SourceMapConsumer,Gv=_v.SourceMapGenerator,Jv=_v.existsSync,Kv=_v.readFileSync,Zv=_v.dirname,Qv=_v.join;function ey(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ty=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=Zv(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Yv(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ey(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":qi(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=Zv(e),Jv(e))return this.mapFile=e,Kv(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(ji(t,Yv))return Gv.fromSourceMap(t).toString();if(ji(t,Gv))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=Qv(Zv(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}(),ry=ty;ty.default=ty;var ny=_v.SourceMapConsumer,iy=_v.SourceMapGenerator,oy=_v.fileURLToPath,sy=_v.pathToFileURL,ay=_v.isAbsolute,cy=_v.resolve,uy=Xv.nanoid,ly=_v,hy=Cv,dy=ry,py=Symbol("fromOffsetCache"),fy=Boolean(ny&&iy),my=Boolean(cy&&ay),gy=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":qi(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&&(!my||/^\w+:\/\//.test(t.from)||ay(t.from)?this.file=t.from:this.file=cy(t.from)),my&&fy){var r=new dy(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 "+uy(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"===("undefined"===typeof t?"undefined":qi(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 d=this.origin(t,r,o,s);return i=d?new hy(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new hy(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(sy&&(i.input.url=sy(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[py])r=this[py];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[py]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:cy(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=ay(a.source)?sy(a.source):new URL(a.source,this.map.consumer().sourceRoot||sy(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(!oy)throw new Error("file: protocol is not available in this PostCSS build");c.file=oy(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=Li({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Di(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),vy=gy;gy.default=gy,ly&&ly.registerInput&&ly.registerInput(gy);var yy=_v.SourceMapConsumer,wy=_v.SourceMapGenerator,by=_v.dirname,_y=_v.relative,ky=_v.resolve,Sy=_v.sep,xy=_v.pathToFileURL,Cy=vy,Ey=Boolean(yy&&wy),Ay=Boolean(by&&ky&&_y&&Sy),Oy=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=Vi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||by(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new yy(r.text),o.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--)e=this.root.nodes[t],"comment"===e.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(),Ay&&Ey&&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=wy.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wy({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 wy({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),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&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()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof 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?by(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=by(ky(r,this.mapOpts.annotation)));var n=_y(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 Cy(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(xy){var r=xy(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;"\\"===Sy&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Iy=Oy,Ty=zv,My=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ni(t,e),t}(Ty),Ry=My;My.default=My;var Py,Dy,Ly,By,Ny=Ev.isClean,jy=Ev.my,Fy=$v,Uy=Ry,zy=zv;function qy(e){return e.map(function(e){return e.nodes&&(e.nodes=qy(e.nodes)),delete e.source,e})}function Hy(e){if(e[Ny]=!1,e.proxyOf.nodes)for(var t,r=Vi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Hy(n)}}var $y=function(e){function t(){return e.apply(this,arguments)||this}Ni(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=Vi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Vi(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=Vi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;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=Vi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(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=Vi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=qy(Py(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Vi(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=Vi(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("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new Fy(e)]}else if(e.selector)e=[new Dy(e)];else if(e.name)e=[new Ly(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Uy(e)]}var l=e.map(function(e){return e[jy]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Ny]&&Hy(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},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=Vi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Vi(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=Vi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.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],t>=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(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ji(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?ji(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?ji(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)}))},Di(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}(zy);$y.registerParse=function(e){Py=e},$y.registerRule=function(e){Dy=e},$y.registerAtRule=function(e){Ly=e},$y.registerRoot=function(e){By=e};var Wy=$y;$y.default=$y,$y.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Ly.prototype):"rule"===e.type?Object.setPrototypeOf(e,Dy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Fy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Uy.prototype):"root"===e.type&&Object.setPrototypeOf(e,By.prototype),e[jy]=!0,e.nodes&&e.nodes.forEach(function(e){$y.rebuild(e)})};var Vy,Xy,Yy=Wy,Gy=function(e){function t(t){var r;return r=e.call(this,Li({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ni(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new Vy(new Xy,this,e);return t.stringify()},t}(Yy);Gy.registerLazyResult=function(e){Vy=e},Gy.registerProcessor=function(e){Xy=e};var Jy=Gy;Gy.default=Gy;var Ky=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]}var t=e.prototype;return t.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}(),Zy=Ky;Ky.default=Ky;var Qy=Zy,ew=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 Qy(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Di(e,[{key:"content",get:function(){return this.css}}]),e}(),tw=ew;ew.default=ew;var rw="'".charCodeAt(0),nw='"'.charCodeAt(0),iw="\\".charCodeAt(0),ow="/".charCodeAt(0),sw="\n".charCodeAt(0),aw=" ".charCodeAt(0),cw="\f".charCodeAt(0),uw="\t".charCodeAt(0),lw="\r".charCodeAt(0),hw="[".charCodeAt(0),dw="]".charCodeAt(0),pw="(".charCodeAt(0),fw=")".charCodeAt(0),mw="{".charCodeAt(0),gw="}".charCodeAt(0),vw=";".charCodeAt(0),yw="*".charCodeAt(0),ww=":".charCodeAt(0),bw="@".charCodeAt(0),_w=/[\t\n\f\r "#'()/;[\\\]{}]/g,kw=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Sw=/.[\r\n"'(/\\]/,xw=/[\da-f]/i,Cw=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case sw:case aw:case uw:case lw:case cw:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===aw||r===sw||r===uw||r===lw||r===cw);h=["space",d.slice(m,n)],m=n-1;break;case hw:case dw:case mw:case gw:case ww:case vw:case fw:var y=String.fromCharCode(r);h=[y,y,m];break;case pw:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==rw&&l!==nw&&l!==aw&&l!==sw&&l!==uw&&l!==cw&&l!==lw){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===iw)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Sw.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case rw:case nw:i=r===rw?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===iw)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case bw:_w.lastIndex=m+1,_w.test(d),n=0===_w.lastIndex?d.length-1:_w.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case iw:n=m,s=!0;while(d.charCodeAt(n+1)===iw)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==ow&&r!==aw&&r!==sw&&r!==uw&&r!==lw&&r!==cw&&(n+=1,xw.test(d.charAt(n)))){while(xw.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===aw&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===ow&&d.charCodeAt(m+1)===yw?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(kw.lastIndex=m+1,kw.test(d),n=0===kw.lastIndex?d.length-1:kw.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Ew=Wy,Aw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ni(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}(Ew),Ow=Aw;Aw.default=Aw,Ew.registerAtRule(Aw);var Iw,Tw,Mw=Wy,Rw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ni(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=Vi(i);!(o=s()).done;){var a=o.value;a.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){void 0===e&&(e={});var t=new Iw(new Tw,this,e);return t.stringify()},t}(Mw);Rw.registerLazyResult=function(e){Iw=e},Rw.registerProcessor=function(e){Tw=e};var Pw=Rw;Rw.default=Rw,Mw.registerRoot(Rw);var Dw={comma:function(e){return Dw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Dw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Vi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},Lw=Dw;Dw.default=Dw;var Bw=Wy,Nw=Lw,jw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ni(t,e),Di(t,[{key:"selectors",get:function(){return Nw.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}(Bw),Fw=jw;jw.default=jw,Bw.registerRule(jw);var Uw=$v,zw=Cw,qw=Ry,Hw=Ow,$w=Pw,Ww=Fw,Vw={empty:!0,space:!0};function Xw(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var Yw=function(){function e(e){this.input=e,this.root=new $w,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 Hw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===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){n=a.length-1,r=a[n];while(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;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;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=Vi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(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 qw;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=zw(this.input)},t.decl=function(e,t){var r=new Uw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Xw(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[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));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)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}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(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 Ww;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){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(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)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[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);break}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)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Vw[a]||Vw[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Ww;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},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}(),Gw=Yw,Jw=Wy,Kw=Gw,Zw=vy;function Qw(e,t){var r=new Zw(e,t),n=new Kw(r);try{n.parse()}catch(i){throw i}return n.root}var eb=Qw;Qw.default=Qw,Jw.registerParse(Qw);var tb=Ev.isClean,rb=Ev.my,nb=Iy,ib=Pv,ob=Wy,sb=Jy,ab=tw,cb=eb,ub=Pw,lb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},hb={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},db={Once:!0,postcssPlugin:!0,prepare:!0},pb=0;function fb(e){return"object"===("undefined"===typeof e?"undefined":qi(e))&&"function"===typeof e.then}function mb(e){var t=!1,r=lb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,pb,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,pb,r+"Exit"]:[r,r+"Exit"]}function gb(e){var t;return t="document"===e.type?["Document",pb,"DocumentExit"]:"root"===e.type?["Root",pb,"RootExit"]:mb(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function vb(e){return e[tb]=!1,e.nodes&&e.nodes.forEach(function(e){return vb(e)}),e}var yb={},wb=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":qi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(ji(r,e)||ji(r,ab))i=vb(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=cb;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[rb]&&ob.rebuild(i)}else i=vb(r);this.result=new ab(t,i,n),this.helpers=Li({},yb,{postcss:yb,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":qi(e))&&e.prepare?Li({},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);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(YE){console&&console.error&&console.error(YE)}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=Vi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":qi(i)))for(var o in i){if(!hb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!db[o])if("object"===qi(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 Mi(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Xi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!fb(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[tb])return[3,14];o[tb]=!0,s=[gb(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!fb(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.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 Xi(this,function(a){switch(a.label){case 0:t=d.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=Vi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Yi(l())];case 16:p.sent(),p.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"===("undefined"===typeof e?"undefined":qi(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 fb(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(n){throw this.handleError(n)}},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=ib;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new nb(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[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=Vi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(fb(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[tb])i[tb]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Vi(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 this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Vi(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(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(fb(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(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[tb])return a[tb]=!0,void e.push(gb(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===pb)return void(r.nodes&&r.nodes.length&&(r[tb]=!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[tb]=!0;for(var r,n=mb(e),i=Vi(n);!(r=i()).done;){var o=r.value;if(o===pb)e.nodes&&e.each(function(e){e[tb]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Di(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}();wb.registerPostcss=function(e){yb=e};var bb=wb;wb.default=wb,ub.registerLazyResult(wb),sb.registerLazyResult(wb);var _b=Iy,kb=Pv,Sb=eb,xb=tw,Cb=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=kb;this.result=new xb(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 _b(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 this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Di(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=Sb;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Eb=Cb;Cb.default=Cb;var Ab=Eb,Ob=bb,Ib=Jy,Tb=Pw,Mb=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=Vi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":qi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":qi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":qi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Ob(this,e,t):new Ab(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Rb=Mb;Mb.default=Mb,Tb.registerProcessor(Mb),Ib.registerProcessor(Mb);var Pb=$v,Db=ry,Lb=Ry,Bb=Ow,Nb=vy,jb=Pw,Fb=Fw;function Ub(e,t){if(Array.isArray(e))return e.map(function(e){return Ub(e)});var r=e.inputs,n=Ui(e,["inputs"]);if(r){t=[];for(var i,o=Vi(r);!(i=o()).done;){var s=i.value,a=Li({},s,{__proto__:Nb.prototype});a.map&&(a.map=Li({},a.map,{__proto__:Db.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Ub(e,t)})),n.source){var c=n.source,u=c.inputId,l=Ui(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new jb(n);if("decl"===n.type)return new Pb(n);if("rule"===n.type)return new Fb(n);if("comment"===n.type)return new Lb(n);if("atrule"===n.type)return new Bb(n);throw new Error("Unknown node type: "+e.type)}var zb=Ub;Ub.default=Ub;var qb=Cv,Hb=$v,$b=bb,Wb=Wy,Vb=Rb,Xb=Pv,Yb=zb,Gb=Jy,Jb=Zy,Kb=Ry,Zb=Ow,Qb=tw,e_=vy,t_=eb,r_=Lw,n_=Fw,i_=Pw,o_=zv;function s_(){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 Vb(t)}s_.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 Vb).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return s_([i(r)]).process(e,t)},i},s_.stringify=Xb,s_.parse=t_,s_.fromJSON=Yb,s_.list=r_,s_.comment=function(e){return new Kb(e)},s_.atRule=function(e){return new Zb(e)},s_.decl=function(e){return new Hb(e)},s_.rule=function(e){return new n_(e)},s_.root=function(e){return new i_(e)},s_.document=function(e){return new Gb(e)},s_.CssSyntaxError=qb,s_.Declaration=Hb,s_.Container=Wb,s_.Processor=Vb,s_.Document=Gb,s_.Comment=Kb,s_.Warning=Jb,s_.AtRule=Zb,s_.Result=Qb,s_.Input=e_,s_.Rule=n_,s_.Root=i_,s_.Node=o_,$b.registerPostcss(s_);var a_=s_;s_.default=s_;var c_=pv(a_);c_.stringify,c_.fromJSON,c_.plugin,c_.parse,c_.list,c_.document,c_.comment,c_.atRule,c_.rule,c_.decl,c_.root,c_.CssSyntaxError,c_.Declaration,c_.Container,c_.Processor,c_.Document,c_.Comment,c_.Warning,c_.AtRule,c_.Result,c_.Input,c_.Rule,c_.Root,c_.Node;var u_=Object.defineProperty,l_=function(e,t,r){return t in e?u_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},h_=function(e,t,r){return l_(e,"symbol"!==("undefined"===typeof t?"undefined":qi(t))?t+"":t,r)};function d_(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(o){return function(){}}}var p_=function(){function e(e){h_(this,"fileName"),h_(this,"functionName"),h_(this,"lineNumber"),h_(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),f_=/(^|@)\S+:\d+/,m_=/^\s*at .*(\S+:\d+|\(native\))/m,g_=/^(eval@)?(\[native code])?$/,v_={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(m_)?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+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(m_)},this);return t.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+)\)$)/);t=r?t.replace(r[0],""):t;var n=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 p_({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(g_)},this);return t.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 p_({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new p_({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 p_({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 p_({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(f_)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new p_({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function y_(e){if(!e||!e.outerHTML)return"";var t="";while(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}function w_(e){return"[object Object]"===Object.prototype.toString.call(e)}function b_(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=Vi(n);!(r=i()).done;){var o=r.value;if(w_(e[o])&&b_(e[o],t-1))return!0}return!1}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 r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,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(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":qi(t)))return t.toString()+"n";if(ji(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=y_(u.length?u[0]:null):a[c]=u}return a}return ji(t,Node)?ji(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:ji(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(w_(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!w_(e)||!b_(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var k_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function S_(e,t,r){var n,i=r?Object.assign({},k_,r):k_,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=v_.parse(n).map(function(e){return e.toString()}),s=[__(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;ji(t.reason,Error)?(r=t.reason,n=[__("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[__("Uncaught (in promise)",i.stringifyOptions),__(t.reason,i.stringifyOptions)]);var o=v_.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,d=Vi(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?d_(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=v_.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return __(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[__("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var x_,C_,E_,A_="rrweb/console@1",O_=function(e){return{name:A_,observer:S_,options:e}},I_=xi["setImmediate"],T_=Object.prototype.toString,M_="undefined"!==typeof I_?function(e){return I_(e)}:setTimeout;try{Object.defineProperty({},"x",{}),x_=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(YE){x_=function(e,t,r){return e[t]=r,e}}function R_(e,t){E_.add(e,t),C_||(C_=M_(E_.drain))}function P_(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function D_(){for(var e=0;e<this.chain.length;e++)L_(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function L_(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=P_(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(YE){r.reject(YE)}}function B_(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=P_(e))?R_(function(){var n=new F_(r);try{t.call(e,function(){B_.apply(n,arguments)},function(){N_.apply(n,arguments)})}catch(YE){N_.call(n,YE)}}):(r.msg=e,r.state=1,r.chain.length>0&&R_(D_,r))}catch(YE){N_.call(new F_(r),YE)}}}function N_(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&R_(D_,t))}function j_(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)}function F_(e){this.def=e,this.triggered=!1}function U_(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function z_(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 U_(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&&R_(D_,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){B_.call(t,e)},function(e){N_.call(t,e)})}catch(YE){N_.call(t,YE)}}E_=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;e=t=C_=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var q_,H_=x_({},"constructor",z_,!1);z_.prototype=H_,x_(H_,"__NPO__",0,!1),x_(z_,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),x_(z_,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),x_(z_,"all",function(e){var t=this;return"[object Array]"!==T_.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;j_(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),x_(z_,"race",function(e){var t=this;return"[object Array]"!==T_.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");j_(t,e,function(e,t){r(t)},n)})}),q_="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:z_;var $_={DEBUG:!1,LIB_VERSION:"2.75.0"},W_=864e5,V_=8e3,X_=Array.prototype,Y_=Function.prototype,G_=Object.prototype,J_=X_.slice,K_=G_.toString,Z_=G_.hasOwnProperty,Q_=xi.console,ek=xi.navigator,tk=xi.document,rk=xi.opera,nk=xi.screen,ik=ek.userAgent,ok=Y_.bind,sk=X_.forEach,ak=X_.indexOf,ck=X_.map,uk=Array.isArray,lk={},hk={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},dk={log:function(){if($_.DEBUG&&!hk.isUndefined(Q_)&&Q_)try{Q_.log.apply(Q_,arguments)}catch(YE){hk.each(arguments,function(e){Q_.log(e)})}},warn:function(){if($_.DEBUG&&!hk.isUndefined(Q_)&&Q_){var e=["Mixpanel warning:"].concat(hk.toArray(arguments));try{Q_.warn.apply(Q_,e)}catch(YE){hk.each(e,function(e){Q_.warn(e)})}}},error:function(){if($_.DEBUG&&!hk.isUndefined(Q_)&&Q_){var e=["Mixpanel error:"].concat(hk.toArray(arguments));try{Q_.error.apply(Q_,e)}catch(YE){hk.each(e,function(e){Q_.error(e)})}}},critical:function(){if(!hk.isUndefined(Q_)&&Q_){var e=["Mixpanel error:"].concat(hk.toArray(arguments));try{Q_.error.apply(Q_,e)}catch(YE){hk.each(e,function(e){Q_.error(e)})}}}},pk=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(dk,arguments)}},fk=function(e){return{log:pk(dk.log,e),error:pk(dk.error,e),critical:pk(dk.critical,e)}},mk=function(e){return function(){try{return e.apply(this,arguments)}catch(t){dk.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),$_.DEBUG&&dk.critical(t)}}},gk=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=mk(t[r]))};hk.bind=function(e,t){var r,n;if(ok&&e.bind===ok)return ok.apply(e,J_.call(arguments,1));if(!hk.isFunction(e))throw new TypeError;return r=J_.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(J_.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(J_.call(arguments)));return Object(s)===s?s:o},n},hk.each=function(e,t,r){if(null!==e&&void 0!==e)if(sk&&e.forEach===sk)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)===lk)return}else for(var o in e)if(Z_.call(e,o)&&t.call(r,e[o],o,e)===lk)return},hk.extend=function(e){return hk.each(J_.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},hk.isArray=uk||function(e){return"[object Array]"===K_.call(e)},hk.isFunction=function(e){return"function"===typeof e},hk.isArguments=function(e){return!(!e||!Z_.call(e,"callee"))},hk.toArray=function(e){return e?e.toArray?e.toArray():hk.isArray(e)||hk.isArguments(e)?J_.call(e):hk.values(e):[]},hk.map=function(e,t,r){if(ck&&e.map===ck)return e.map(t,r);var n=[];return hk.each(e,function(e){n.push(t.call(r,e))}),n},hk.keys=function(e){var t=[];return null===e||hk.each(e,function(e,r){t[t.length]=r}),t},hk.values=function(e){var t=[];return null===e||hk.each(e,function(e){t[t.length]=e}),t},hk.include=function(e,t){var r=!1;return null===e?r:ak&&e.indexOf===ak?-1!=e.indexOf(t):(hk.each(e,function(e){if(r||(r=e===t))return lk}),r)},hk.includes=function(e,t){return-1!==e.indexOf(t)},hk.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},hk.isObject=function(e){return e===Object(e)&&!hk.isArray(e)},hk.isEmptyObject=function(e){if(hk.isObject(e)){for(var t in e)if(Z_.call(e,t))return!1;return!0}return!1},hk.isUndefined=function(e){return void 0===e},hk.isString=function(e){return"[object String]"==K_.call(e)},hk.isDate=function(e){return"[object Date]"==K_.call(e)},hk.isNumber=function(e){return"[object Number]"==K_.call(e)},hk.isElement=function(e){return!(!e||1!==e.nodeType)},hk.encodeDates=function(e){return hk.each(e,function(t,r){hk.isDate(t)?e[r]=hk.formatDate(t):hk.isObject(t)&&(e[r]=hk.encodeDates(t))}),e},hk.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},hk.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())},hk.strip_empty_properties=function(e){var t={};return hk.each(e,function(e,r){hk.isString(e)&&e.length>0&&(t[r]=e)}),t},hk.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):hk.isArray(e)?(r=[],hk.each(e,function(e){r.push(hk.truncate(e,t))})):hk.isObject(e)?(r={},hk.each(e,function(e,n){r[n]=hk.truncate(e,t)})):r=e,r},hk.JSONEncode=function(){return function(e){var t=e,r=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+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===K_.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)Z_.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),hk.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),hk.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=hk.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},hk.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),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&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},hk.UUID=function(){try{return xi["crypto"]["randomUUID"]()}catch(YE){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]="-",hk.map(e,function(e){return e.toString(16)}).join("")}};var vk=["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"];hk.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<vk.length;t++)if(-1!==e.indexOf(vk[t]))return!0;return!1},hk.HTTPBuildQuery=function(e,t){var r,n,i=[];return hk.isUndefined(t)&&(t="&"),hk.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},hk.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(YE){dk.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},hk.cookie={get:function(e){for(var t=e+"=",r=tk.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==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=hk.JSONDecode(hk.cookie.get(e))||{}}catch(YE){}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=Dk(tk.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"),tk.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=Dk(tk.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 d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return tk.cookie=d,d},remove:function(e,t,r){hk.cookie.set(e,"",-1,t,!1,!1,r)}};var yk=function(e){var t=!0;try{var r="__mplss_"+Tk(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(YE){t=!1}return t},wk=null,bk=function(e,t){return null===wk||t?wk=yk(e||xi.localStorage):wk},_k=null,kk=function(e,t){return null===_k||t?_k=yk(e||xi.sessionStorage):_k};function Sk(e,t,r){var n=function(e){dk.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||dk.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(YE){n(YE)}return null},parse:function(t){try{return hk.JSONDecode(e.getItem(t))||{}}catch(YE){}return null},set:function(t,r){try{e.setItem(t,r)}catch(YE){n(YE)}},remove:function(t){try{e.removeItem(t)}catch(YE){n(YE)}}}}var xk=null,Ck=null;try{xk=xi.localStorage,Ck=xi.sessionStorage}catch(GE){}hk.localStorage=Sk(xk,"localStorage",bk),hk.sessionStorage=Sk(Ck,"sessionStorage",kk),hk.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else dk.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(xi.event),i){var o,s,a=!0;return hk.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Ek=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');hk.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(!tk.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[tk];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var m=i[1],g=tk.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&hk.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Ek);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return hk.isElement(e)?[e]:hk.isObject(e)&&!hk.isUndefined(e.length)?e:n.call(this,e)}}();var Ak=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Ok=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];hk.info={campaignParams:function(e){var t="",r={};return hk.each(Ak,function(n){t=hk.getQueryParam(tk.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return hk.each(Ok,function(r){e=hk.getQueryParam(tk.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return hk.extend(hk.info.campaignParams(),hk.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=hk.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=hk.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||hk.includes(e," OPR/")?hk.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":hk.includes(e,"IEMobile")||hk.includes(e,"WPDesktop")?"Internet Explorer Mobile":hk.includes(e,"SamsungBrowser/")?"Samsung Internet":hk.includes(e,"Edge")||hk.includes(e,"Edg/")?"Microsoft Edge":hk.includes(e,"FBIOS")?"Facebook Mobile":hk.includes(e,"Whale/")?"Whale Browser":hk.includes(e,"Chrome")?"Chrome":hk.includes(e,"CriOS")?"Chrome iOS":hk.includes(e,"UCWEB")||hk.includes(e,"UCBrowser")?"UC Browser":hk.includes(e,"FxiOS")?"Firefox iOS":hk.includes(t,"Apple")?hk.includes(e,"Mobile")?"Mobile Safari":"Safari":hk.includes(e,"Android")?"Android Mobile":hk.includes(e,"Konqueror")?"Konqueror":hk.includes(e,"Firefox")?"Firefox":hk.includes(e,"MSIE")||hk.includes(e,"Trident/")?"Internet Explorer":hk.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=hk.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=ik;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 xi.location.href},properties:function(e){return"object"!==typeof e&&(e={}),hk.extend(hk.strip_empty_properties({$os:hk.info.os(),$browser:hk.info.browser(ik,ek.vendor,rk),$referrer:tk.referrer,$referring_domain:hk.info.referringDomain(tk.referrer),$device:hk.info.device(ik)}),{$current_url:hk.info.currentUrl(),$browser_version:hk.info.browserVersion(ik,ek.vendor,rk),$screen_height:nk.height,$screen_width:nk.width,mp_lib:"web",$lib_version:$_.LIB_VERSION,$insert_id:Tk(),time:hk.timestamp()/1e3},hk.strip_empty_properties(e))},people_properties:function(){return hk.extend(hk.strip_empty_properties({$os:hk.info.os(),$browser:hk.info.browser(ik,ek.vendor,rk)}),{$browser_version:hk.info.browserVersion(ik,ek.vendor,rk)})},mpPageViewProperties:function(){return hk.strip_empty_properties({current_page_title:tk.title,current_domain:xi.location.hostname,current_url_path:xi.location.pathname,current_url_protocol:xi.location.protocol,current_url_search:xi.location.search})}};var Ik=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new q_(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Tk=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},Mk=function(){var e=hk.UUID().replace(/-/g,""),t=hk.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Rk=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Pk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Dk=function(e){var t=Pk,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Rk);var i=e.match(t);return i?i[0]:""},Lk=function(){var e=xi.navigator["onLine"];return hk.isUndefined(e)||e},Bk=function(){},Nk=null,jk=null;"undefined"!==typeof JSON&&(Nk=JSON.stringify,jk=JSON.parse),Nk=Nk||hk.JSONEncode,jk=jk||hk.JSONDecode;var Fk=function(e,t,r){if(!xi.CompressionStream)return!1;var n=hk.info.browser(e,t,r),i=hk.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};hk["info"]=hk.info,hk["info"]["browser"]=hk.info.browser,hk["info"]["browserVersion"]=hk.info.browserVersion,hk["info"]["device"]=hk.info.device,hk["info"]["properties"]=hk.info.properties,hk["isBlockedUA"]=hk.isBlockedUA,hk["isEmptyObject"]=hk.isEmptyObject,hk["isObject"]=hk.isObject,hk["JSONDecode"]=hk.JSONDecode,hk["JSONEncode"]=hk.JSONEncode,hk["toArray"]=hk.toArray,hk["NPO"]=z_;var Uk="mixpanelBrowserDb",zk="mixpanelRecordingEvents",qk="mixpanelRecordingRegistry",Hk=1,$k=[zk,qk],Wk=function(e){this.dbPromise=null,this.storeName=e};Wk.prototype._openDb=function(){return new q_(function(e,t){var r=xi.indexedDB.open(Uk,Hk);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;$k.forEach(function(e){t.createObjectStore(e)})}})},Wk.prototype.init=function(){return xi.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof xi["IDBDatabase"]?q_.resolve():q_.reject(e)})):q_.reject("indexedDB is not supported in this browser")},Wk.prototype.isInitialized=function(){return!!this.dbPromise},Wk.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new q_(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)):q_.reject(e)}.bind(this))},Wk.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Wk.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Wk.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Wk.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Vk="__mp_opt_in_out_";function Xk(e,t){oS(!0,e,t)}function Yk(e,t){oS(!1,e,t)}function Gk(e,t){return"1"===nS(e,t)}function Jk(e,t){if(iS(t))return dk.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"===nS(e,t);return r&&dk.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Kk(e){return sS(e,function(e){return this.get_config(e)})}function Zk(e){return sS(e,function(e){return this._get_config(e)})}function Qk(e){return sS(e,function(e){return this._get_config(e)})}function eS(e,t){t=t||{},tS(t).remove(rS(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function tS(e){return e=e||{},"localStorage"===e.persistenceType?hk.localStorage:hk.cookie}function rS(e,t){return t=t||{},(t.persistencePrefix||Vk)+e}function nS(e,t){return tS(t).get(rS(e,t))}function iS(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||xi,r=t["navigator"]||{},n=!1;return hk.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){hk.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function oS(e,t,r){hk.isString(t)&&t.length?(r=r||{},tS(r).set(rS(t,r),e?1:0,hk.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})):dk.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function sS(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=Jk(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(YE){dk.error("Unexpected error when checking tracking opt-out status: "+YE)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var aS=fk("lock"),cS=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||xi.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||q_};cS.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(hk.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",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return aS.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(YE){n(YE)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(bk(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):g()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),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(!bk(u,!0))throw new Error("localStorage support check failed");g()}catch(YE){n(YE)}},this))};var uS=function(e){this.storage=e||xi.localStorage};uS.prototype.init=function(){return q_.resolve()},uS.prototype.isInitialized=function(){return!0},uS.prototype.setItem=function(e,t){return new q_(hk.bind(function(r,n){try{this.storage.setItem(e,Nk(t))}catch(i){n(i)}r()},this))},uS.prototype.getItem=function(e){return new q_(hk.bind(function(t,r){var n;try{n=jk(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},uS.prototype.removeItem=function(e){return new q_(hk.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var lS=fk("batch"),hS=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new uS,this.lock=new cS(e,{storage:t.sharedLockStorage||xi.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||hk.bind(lS.error,lS),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Ik(hk.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=hk.bind(function(e){return this._enqueuePersisted([e])},this)};hS.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?q_.resolve():this.queueStorage.init().then(hk.bind(function(){this.initialized=!0},this)).catch(hk.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},hS.prototype.enqueue=function(e,t){var r={id:Tk(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),q_.resolve(!0))},hS.prototype._enqueuePersisted=function(e){var t=hk.bind(function(){return this.ensureInit().then(hk.bind(function(){return this.readFromStorage()},this)).then(hk.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(hk.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(hk.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(hk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},hS.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(hk.bind(function(){return this.readFromStorage()},this)).then(hk.bind(function(r){if(r.length){var n={};hk.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)):q_.resolve(t)};var dS=function(e,t){var r=[];return hk.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};hS.prototype.removeItemsByID=function(e){var t={};if(hk.each(e,function(e){t[e]=!0}),this.memQueue=dS(this.memQueue,t),this.usePersistence){var r=hk.bind(function(){return this.ensureInit().then(hk.bind(function(){return this.readFromStorage()},this)).then(hk.bind(function(e){return e=dS(e,t),this.saveToStorage(e)},this)).then(hk.bind(function(){return this.readFromStorage()},this)).then(hk.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(hk.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(hk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!bk(this.lock.storage,!0)&&r().then(hk.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(hk.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return q_.resolve(!0)};var pS=function(e,t){var r=[];return hk.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};hS.prototype.updatePayloads=function(e){return this.memQueue=pS(this.memQueue,e),this.usePersistence?this.lock.withLock(hk.bind(function(){return this.ensureInit().then(hk.bind(function(){return this.readFromStorage()},this)).then(hk.bind(function(t){return t=pS(t,e),this.saveToStorage(t)},this)).catch(hk.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(hk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):q_.resolve(!0)},hS.prototype.readFromStorage=function(){return this.ensureInit().then(hk.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(hk.bind(function(e){return e&&(hk.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(hk.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},hS.prototype.saveToStorage=function(e){return this.ensureInit().then(hk.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(hk.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},hS.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(hk.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):q_.resolve()};var fS=6e5,mS=fk("batch"),gS=function(e,t){this.errorReporter=t.errorReporter,this.queue=new hS(e,{errorReporter:hk.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};gS.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},gS.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},gS.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},gS.prototype.clear=function(){return this.queue.clear()},gS.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},gS.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},gS.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(hk.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},gS.prototype.sendRequestPromise=function(e,t){return new q_(hk.bind(function(r){this.sendRequest(e,t,r)},this))},gS.prototype.flush=function(e){if(this.requestInProgress)return mS.log("Flush: Request already in progress"),q_.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(hk.bind(function(i){var o=i.length===n,s=[],a={};if(hk.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=hk.extend({},t["properties"],{mp_sent_by_lib_version:$_.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(),q_.resolve();var c=hk.bind(function(){return this.queue.removeItemsByID(hk.map(i,function(e){return e["id"]})).then(hk.bind(function(e){return hk.each(i,hk.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(),q_.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),q_.resolve())},this))},this),u=hk.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(hk.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(hk.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Lk()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(fS,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),q_.resolve()}if(hk.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(),q_.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(YE){this.reportError("Error handling API response",YE),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),mS.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(hk.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},gS.prototype.reportError=function(e,t){if(mS.error.apply(mS.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){mS.error(t)}};var vS=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},yS=250,wS="change",bS="click",_S="hashchange",kS="input",SS="load",xS="mp_locationchange",CS="popstate",ES="scrollend",AS="scroll",OS="select",IS="submit",TS="toggle",MS="visibilitychange",RS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],PS=["mp-include"],DS=["mp-no-track"],LS=DS.concat(["mp-sensitive"]),BS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],NS={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},jS={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},FS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},US=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],zS=5,qS=fk("autocapture");function HS(e){for(var t={},r=$S(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function $S(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function WS(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!ZS(e));return e}function VS(e,t,r,n,i,o){var s={$classes:$S(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),ox(e,t,i,o)&&hk.each(BS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);sx(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=WS(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function XS(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={};hk.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(ex(d)&&(d=d.parentNode),nx(d,e)&&JS(d,e,r,n)&&!KS(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!QS(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(hk.each(p,function(t){var i=ox(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&sx(m)&&m),KS(t,e,o,s)&&(v=!0),g.push(VS(t,e,l,c,r,n))},this),!v){var y=tk["documentElement"];if(h={$event_type:e.type,$host:xi.location.host,$pathname:xi.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],xi["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],xi["innerWidth"]||0),$pageHeight:tk["body"]["offsetHeight"]||0,$pageWidth:tk["body"]["offsetWidth"]||0},hk.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);sx(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=YS(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===bS&&(hk.each(RS,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=GS(e)),a){var w=YS(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!JS(d,e,r,n)||KS(d,e,o,s))return null;var b=VS(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],hk.extend(h,hk.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function YS(e,t,r,n){var i="";return ox(e,t,r,n)&&e.childNodes&&e.childNodes.length&&hk.each(e.childNodes,function(e){ex(e)&&e.textContent&&(i+=hk.trim(e.textContent).split(/(\s+)/).filter(sx).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),hk.trim(i)}function GS(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(QS(i,"a")||QS(i,"button")||QS(i,"input")||QS(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function JS(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(YE){return qS.critical("Error while checking element in allowElementCallback",YE),!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(YE){qS.critical("Error while checking selector: "+o,YE)}}return!1}function KS(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(YE){return qS.critical("Error while checking element in blockElementCallback",YE),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(YE){qS.critical("Error while checking selector: "+o,YE)}}var s=HS(e);for(i=0;i<DS.length;i++)if(s[DS[i]])return!0;return!1}function ZS(e){return e&&1===e.nodeType}function QS(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ex(e){return e&&3===e.nodeType}function tx(){try{var e=tk.createElement("div");return!!e["matches"]}catch(YE){return!1}}function rx(){return"undefined"!==typeof WeakSet}function nx(e,t){if(!e||QS(e,"html")||!ZS(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===IS;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===wS:t.type===bS;case"select":case"textarea":return t.type===wS;default:return t.type===bS}}function ix(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function ox(e,t,r,n){var i;if(!JS(e,t,r,n))return!1;for(var o=e;o.parentNode&&!QS(o,"body");o=o.parentNode){var s=HS(o);for(i=0;i<LS.length;i++)if(s[LS[i]])return!1}var a=HS(e);for(i=0;i<PS.length;i++)if(a[PS[i]])return!0;if(QS(e,"input")||QS(e,"select")||QS(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!ix(e)}function sx(e){if(null===e||hk.isUndefined(e))return!1;if("string"===typeof e){e=hk.trim(e);var t=/^(?:(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}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function ax(e){var t="onscrollend"in xi,r=mk(e),n=ES;if(!t){var i=null,o=100;r=mk(function(){clearTimeout(i),i=setTimeout(e,o)}),n=AS}return{listener:r,eventType:n}}function cx(e){for(var t=0;t<US.length;t++)if(e.hasAttribute(US[t]))return!0;return!1}function ux(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return NS[r]}function lx(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)||(!!cx(e)||(!!ux(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function hx(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(jS[t])return!0;if(lx(e))return!1;var r=e.parentElement,n=0;while(r&&n<zS){if(lx(r))return!1;if(r.getRootNode&&r.getRootNode()!==tk){var i=r.getRootNode();if(i.host&&lx(i.host))return!1}r=r.parentElement,n++}return!!FS[t]}function dx(e){return"composedPath"in e?e["composedPath"]():[]}function px(e){var t=dx(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var fx=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",mx="data-rr-is-password",gx=["password","email","tel","hidden"];function vx(e){return e?Array.isArray(e)?e:[e]:[]}function yx(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=vx(r).join(","),t.input.unmaskingSelector=vx(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=vx(o);if(c)if(c instanceof 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=vx(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function wx(e,t){return!!t&&!!e.closest(t)}function bx(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==gx.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(mx)||(!!ix(e)||(t.input.maskAll?!wx(e,t.input.unmaskingSelector):!!wx(e,t.input.maskingSelector)||!!wx(e,fx))))}function _x(e,t){return!!e&&(!(!t.text._legacyClassRegex||!dv(e,t.text._legacyClassRegex))||(t.text.maskAll?!wx(e,t.text.unmaskingSelector):!!wx(e,t.text.maskingSelector)||!!wx(e,fx)))}var kx=fk("recorder"),Sx=xi["CompressionStream"],xx={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Cx=new Set([bm.MouseMove,bm.MouseInteraction,bm.Scroll,bm.ViewportResize,bm.Input,bm.TouchMove,bm.MediaInteraction,bm.Drag,bm.Selection]);function Ex(e){return e.type===wm.IncrementalSnapshot&&Cx.has(e.data.source)}var Ax=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Bk,this._onMaxLengthReached=e.onMaxLengthReached||Bk,this._onBatchSent=e.onBatchSent||Bk,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=W_,this.recordMinMs=0;var t=bk(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Wk(zk),this.batcher=new gS(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:xx,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:yS,sharedLockTimeoutMS:1e4})};Ax.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},Ax.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))},Ax.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Ax.prototype.get_config=function(e){return this.getConfig(e)},Ax.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>W_&&(this.recordMaxMs=W_,kx.critical("record_max_ms cannot be greater than "+W_+"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=hk.info.currentUrl(),this.replayStartUrl=hk.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=yx(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(Ex(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(bx,n),maskTextFn:this._getMaskFn(_x,n),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[O_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(YE){this.reportError("Unexpected error when starting rrweb recording.",YE)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else kx.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Ax.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(YE){this.reportError("Error with rrweb stopRecording",YE)}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},Ax.prototype.isRrwebStopped=function(){return null===this._stopRecording},Ax.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)},Ax.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}},Ax.deserialize=function(e,t){var r=new Ax(hk.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}));return r},Ax.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=hk.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");xi["fetch"](o+"/"+this.getConfig("api_routes")["record"]+"?"+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})})},Ax.prototype._flushEvents=Kk(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===wm.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:$_.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()),Fk(ik,ek.vendor,rk)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Sx("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)}}),Ax.prototype.reportError=function(e,t){kx.error.apply(kx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){kx.error(t)}},Ax.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Ax.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>V_?(kx.critical("record_min_ms cannot be greater than "+V_+"ms. Capping value."),V_):e},Ax.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(YE){this.reportError("Error checking if text should be masked, defaulting to masked",YE)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var Ox=function(e){this.idb=new Wk(qk),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Ox.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ox.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Ox.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return q_.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."),q_.resolve())},Ox.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 vS(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):q_.resolve(null)},Ox.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ox.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))},Ox.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):q_.resolve()},Ox.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 vS(e)}).map(function(e){var t=Ax.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return q_.all(t)}.bind(this)).catch(this.handleError.bind(this)):q_.resolve([])};var Ix=fk("recorder"),Tx=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||qg,this.sharedLockStorage=r,this.recordingRegistry=new Ox({mixpanelInstance:this.mixpanelInstance,errorReporter:Ix.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Mx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}Tx.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Ix.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Ix.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:hk.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Ax.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Ax(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Ix.log("Recording already in progress, skipping startRecording.")},Tx.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))},Tx.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Tx.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return q_.resolve()},Tx.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),q_.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Ix.log("No resumable recording found."),null)}.bind(this))},Tx.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Tx.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Tx.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),xi[Oi]=Tx;var Rx,Px={exports:{}};Px.exports;function Dx(){return Rx||(Rx=1,function(e){(function(t,r){e.exports=r()})(0,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||"undefined"===typeof 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("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)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"===typeof 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="undefined"!==typeof 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("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.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})}(Px)),Px.exports}var Lx=Dx(),Bx=Mx(Lx),Nx=function(e,t){if(null===e||void 0===e)return e;if("string"===typeof e)return e.toLowerCase();if(Array.isArray(e))return e.map(function(e){return Nx(e,t)});if(e===Object(e)){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=t&&"string"===typeof n?n.toLowerCase():n;r[i]=Nx(e[n],t)}return r}return e},jx=function(e){return Nx(e,!0)},Fx=function(e){return Nx(e,!1)},Ux=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!hk.isEmptyObject(n))try{var o=jx(t||{}),s=Fx(n);i=Bx.apply(s,o)}catch(a){return{matches:!1,error:a.toString()}}return{matches:i}},zx={};zx["eventMatchesCriteria"]=Ux,xi[Ai]=Promise.resolve(zx);var qx=30,Hx=1e3,$x=4,Wx=!1;function Vx(){this.clicks=[]}function Xx(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Vx.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||qx,n=t["timeout_ms"]||Hx,i=t["click_count"]||$x,o=t["interactive_elements_only"]||Wx;if(o){var s=px(e);if(!s||hx(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},Xx.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return px(e)},Xx.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=dx(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Xx.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(n){qS.critical("Error while observing shadow root",n)}}},Xx.prototype.start=function(){this.observedShadowRoots||(rx()?this.observedShadowRoots=new WeakSet:qS.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Xx.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){qS.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Yx=500,Gx=[wS,kS,IS,OS,TS],Jx=[ES],Kx=[_S],Zx={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Qx(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}Qx.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||hx(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Qx.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Qx.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},Qx.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Qx.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Qx.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Qx.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},Qx.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Gx.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}})}),Kx.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),Jx.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,Zx)}catch(r){qS.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new Xx(function(){e.recordChangeEvent()},Zx),this.shadowDOMObserver.start()}catch(r){qS.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},Qx.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(r){qS.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){qS.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){qS.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var eC="autocapture",tC="track_pageview",rC="full-url",nC="url-with-path-and-query-string",iC="url-with-path",oC="allow_element_callback",sC="allow_selectors",aC="allow_url_regexes",cC="block_attrs",uC="block_element_callback",lC="block_selectors",hC="block_url_regexes",dC="capture_extra_attrs",pC="capture_text_content",fC="scroll_capture_all",mC="scroll_depth_percent_checkpoints",gC="click",vC="dead_click",yC="input",wC="pageview",bC="rage_click",_C="scroll",kC="page_leave",SC="submit",xC={};xC[sC]=[],xC[aC]=[],xC[cC]=[],xC[uC]=null,xC[lC]=[],xC[hC]=[],xC[dC]=[],xC[pC]=!1,xC[fC]=!1,xC[mC]=[25,50,75,100],xC[gC]=!0,xC[vC]=!0,xC[yC]=!0,xC[wC]=rC,xC[bC]=!0,xC[_C]=!0,xC[kC]=!1,xC[SC]=!0;var CC={$mp_autocapture:!0},EC="$mp_click",AC="$mp_dead_click",OC="$mp_input_change",IC="$mp_rage_click",TC="$mp_scroll",MC="$mp_submit",RC="$mp_page_leave",PC=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};PC.prototype.init=function(){tx()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):qS.critical("Autocapture unavailable: missing required DOM APIs")},PC.prototype.getFullConfig=function(){var e=this.mp.get_config(eC);return e?hk.isObject(e)?hk.extend({},xC,e):xC:{}},PC.prototype.getConfig=function(e){return this.getFullConfig()[e]},PC.prototype.currentUrlBlocked=function(){var e,t=hk.info.currentUrl(),r=this.getConfig(aC)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(YE){return qS.critical("Error while checking block URL regex: "+i,YE),!0}}if(!n)return!0}var o=this.getConfig(hC)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(YE){return qS.critical("Error while checking block URL regex: "+o[e],YE),!0}return!1},PC.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(eC)?this.getConfig(wC):this.mp.get_config(tC)},PC.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===EC&&!this.getConfig(gC)||t===IC&&!this._getClickTrackingConfig(bC)||t===AC&&!this._getClickTrackingConfig(vC)),n=XS(e,{allowElementCallback:this.getConfig(oC),allowSelectors:this.getConfig(sC),blockAttrs:this.getConfig(cC),blockElementCallback:this.getConfig(uC),blockSelectors:this.getConfig(lC),captureExtraAttrs:this.getConfig(dC),captureTextContent:this.getConfig(pC),capturedForHeatMap:r});n&&(hk.extend(n,CC),this.mp.track(t,n))}},PC.prototype.initPageListeners=function(){if(xi.removeEventListener(CS,this.listenerPopstate),xi.removeEventListener(_S,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(kC)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){xi.dispatchEvent(new Event(xS))},this.listenerHashchange=function(){xi.dispatchEvent(new Event(xS))},xi.addEventListener(CS,this.listenerPopstate),xi.addEventListener(_S,this.listenerHashchange);var e=xi.history.pushState;"function"===typeof e&&(xi.history.pushState=function(t,r,n){e.call(xi.history,t,r,n),xi.dispatchEvent(new Event(xS))});var t=xi.history.replaceState;"function"===typeof t&&(xi.history.replaceState=function(e,r,n){t.call(xi.history,e,r,n),xi.dispatchEvent(new Event(xS))})}},PC.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},PC.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(kC)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(tk.documentElement.clientHeight,xi.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=hk.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||hk.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(tk.documentElement.clientWidth,xi.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},CC);this.mp.track(RC,s,{transport:"sendBeacon"})}},PC.prototype._initScrollDepthTracking=function(){if(xi.removeEventListener(AS,this.listenerScrollDepth),xi.removeEventListener(ES,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){qS.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(tk.documentElement.clientHeight,xi.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(tk.documentElement.clientHeight,xi.innerHeight||0)+xi.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=tk.body.scrollHeight}}.bind(this),t=ax(e);this.listenerScrollDepth=t.listener,xi.addEventListener(t.eventType,this.listenerScrollDepth)}},PC.prototype.initClickTracking=function(){xi.removeEventListener(bS,this.listenerClick),(this.getConfig(gC)||this.mp.get_config("record_heatmap_data"))&&(qS.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(gC)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,EC)}.bind(this),xi.addEventListener(bS,this.listenerClick))},PC.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(vC);e||this.mp.get_config("record_heatmap_data")?(qS.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Qx(function(e){this.trackDomEvent(e,AC)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(vC);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=Yx),this._deadClickTracker.trackClick(e,r)}}.bind(this),xi.addEventListener(bS,this.listenerDeadClick))):this.stopDeadClickTracking()},PC.prototype.initInputTracking=function(){xi.removeEventListener(wS,this.listenerChange),this.getConfig(yC)&&(qS.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(yC)&&this.trackDomEvent(e,OC)}.bind(this),xi.addEventListener(wS,this.listenerChange))},PC.prototype.initPageviewTracking=function(){if(xi.removeEventListener(xS,this.listenerLocationchange),this.pageviewTrackingConfig()){qS.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(CC)),t&&(e=hk.info.currentUrl()),this.listenerLocationchange=mk(function(){if(!this.currentUrlBlocked()){var t=hk.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===rC?r=t!==e:i===nC?r=t.split("#")[0]!==e.split("#")[0]:i===iC&&(r=n),r){var o=this.mp.track_pageview(CC);o&&(e=t),n&&(this.lastScrollCheckpoint=0,qS.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),xi.addEventListener(xS,this.listenerLocationchange)}},PC.prototype.initRageClickTracking=function(){xi.removeEventListener(bS,this.listenerRageClick);var e=this._getClickTrackingConfig(bC);(e||this.mp.get_config("record_heatmap_data"))&&(qS.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Vx),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(bC);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,IC))}.bind(this),xi.addEventListener(bS,this.listenerRageClick))},PC.prototype.initScrollTracking=function(){if(xi.removeEventListener(ES,this.listenerScroll),xi.removeEventListener(AS,this.listenerScroll),this.getConfig(_C)){qS.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(_C)&&!this.currentUrlBlocked()){var e=this.getConfig(fC),t=(this.getConfig(mC)||[]).slice().sort(function(e,t){return e-t}),r=xi.scrollY,n=hk.extend({$scroll_top:r},CC);try{var i=tk.body.scrollHeight,o=Math.round(r/(i-xi.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(YE){qS.critical("Error while calculating scroll percentage",YE)}e&&this.mp.track(TC,n)}}.bind(this),t=ax(e);this.listenerScroll=t.listener,xi.addEventListener(t.eventType,this.listenerScroll)}},PC.prototype.initSubmitTracking=function(){xi.removeEventListener(IS,this.listenerSubmit),this.getConfig(SC)&&(qS.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(SC)&&this.trackDomEvent(e,MC)}.bind(this),xi.addEventListener(IS,this.listenerSubmit))},PC.prototype.initPageLeaveTracking=function(){if(tk.removeEventListener(MS,this.listenerPageLeaveVisibilitychange),xi.removeEventListener(xS,this.listenerPageLeaveLocationchange),xi.removeEventListener(SS,this.listenerPageLoad),this.getConfig(kC)||this.mp.get_config("record_heatmap_data")){qS.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=hk.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=tk.body.scrollHeight}.bind(this),xi.addEventListener(SS,this.listenerPageLoad),this.listenerPageLeaveLocationchange=mk(function(t){if(!this.currentUrlBlocked()){var r=hk.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(tk.documentElement.clientHeight,xi.innerHeight||0),this.previousScrollHeight=tk.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),xi.addEventListener(xS,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){tk.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),tk.addEventListener(MS,this.listenerPageLeaveVisibilitychange)}},PC.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(xi.removeEventListener(bS,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},gk(PC);var DC=function(e,t){return xi[Ai]&&"function"===typeof xi[Ai].then||(xi[Ai]=new Promise(function(r){e(t,r)}).then(function(){var e=xi[Ai];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete xi[Ai],e})),xi[Ai]},LC=fk("flags"),BC="flags",NC="context",jC={};jC[NC]={};var FC=function(e,t){return e+":"+t},UC=function(e){return e.split(":")[0]},zC=function(e){this.fetch=xi["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||""};zC.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):LC.critical("Feature Flags unavailable: missing minimum required APIs")},zC.prototype.getFullConfig=function(){var e=this.getMpConfig(BC);return e?hk.isObject(e)?hk.extend({},jC,e):jC:{}},zC.prototype.getConfig=function(e){return this.getFullConfig()[e]},zC.prototype.isSystemEnabled=function(){return!!this.getMpConfig(BC)},zC.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return LC.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(BC);hk.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(NC);return r[NC]=hk.extend({},n,e),this.setMpConfig(BC,r),this.fetchFlags()},zC.prototype.areFlagsReady=function(){return this.isSystemEnabled()||LC.error("Feature Flags not enabled"),!!this.flags},zC.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Mk();LC.log("Fetching flags for distinct ID: "+e);var n=hk.extend({distinct_id:e,device_id:t},this.getConfig(NC)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",$_.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(xi,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};hk.each(t,function(e,t){var r=!1,i=t+":";if(hk.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&hk.each(o,function(e){var t=e["flag_key"],r=FC(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[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&&hk.each(this.activatedFirstTimeEvents,function(e,t){var r=UC(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),LC.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),LC.error(e)}.bind(this)),this.fetchPromise},zC.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):LC.error("Fetch in progress started time not set, cannot mark fetch complete")},zC.prototype._loadTargetingIfNeeded=function(){var e=!1;hk.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!hk.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){LC.log("targeting loaded for property filter evaluation")})},zC.prototype.getTargeting=function(){return DC(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){LC.error("Failed to load targeting: "+e)}.bind(this))},zC.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!hk.isEmptyObject(this.pendingFirstTimeEvents)&&(xi[Ai]&&hk.isFunction(xi[Ai].then)?xi[Ai].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},zC.prototype._processFirstTimeEventCheck=function(e,t,r){hk.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||hk.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)LC.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){LC.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.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else LC.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},zC.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},zC.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Mk(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",$_.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};LC.log("Recording first-time event for flag: "+e),this.fetch.call(xi,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){LC.error("Failed to record first-time event for flag "+e+": "+t)})},zC.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return LC.error(e),t}):new Promise(function(e){LC.critical("Feature Flags not initialized"),e(t)})},zC.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return LC.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(LC.log('No flag found: "'+e+'"'),t)},zC.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return LC.error(e),t})},zC.prototype.getFeatureData=function(e,t){return LC.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)},zC.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},zC.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return LC.error(e),t})},zC.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(LC.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},zC.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},zC.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},gk(zC),zC.prototype["are_flags_ready"]=zC.prototype.areFlagsReady,zC.prototype["get_variant"]=zC.prototype.getVariant,zC.prototype["get_variant_sync"]=zC.prototype.getVariantSync,zC.prototype["get_variant_value"]=zC.prototype.getVariantValue,zC.prototype["get_variant_value_sync"]=zC.prototype.getVariantValueSync,zC.prototype["is_enabled"]=zC.prototype.isEnabled,zC.prototype["is_enabled_sync"]=zC.prototype.isEnabledSync,zC.prototype["update_context"]=zC.prototype.updateContext,zC.prototype["get_feature_data"]=zC.prototype.getFeatureData,zC.prototype["getTargeting"]=zC.prototype.getTargeting;var qC=function(){};qC.prototype.create_properties=function(){},qC.prototype.event_handler=function(){},qC.prototype.after_track_handler=function(){},qC.prototype.init=function(e){return this.mp=e,this},qC.prototype.track=function(e,t,r,n){var i=this,o=hk.dom_query(e);if(0!==o.length)return hk.each(o,function(e){hk.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;dk.error("The DOM query ("+e+") returned 0 elements")},qC.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))}},qC.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):hk.extend({},e),r};var HC=function(){this.override_event="click"};hk.inherit(HC,qC),HC.prototype.create_properties=function(e,t){var r=HC.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},HC.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()},HC.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var $C=function(){this.override_event="submit"};hk.inherit($C,qC),$C.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},$C.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var WC="$set",VC="$set_once",XC="$unset",YC="$add",GC="$append",JC="$union",KC="$remove",ZC="$delete",QC={set_action:function(e,t){var r={},n={};return hk.isObject(e)?hk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[WC]=n,r},unset_action:function(e){var t={},r=[];return hk.isArray(e)||(e=[e]),hk.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[XC]=r,t},set_once_action:function(e,t){var r={},n={};return hk.isObject(e)?hk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[VC]=n,r},union_action:function(e,t){var r={},n={};return hk.isObject(e)?hk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=hk.isArray(e)?e:[e])},this):n[e]=hk.isArray(t)?t:[t],r[JC]=n,r},append_action:function(e,t){var r={},n={};return hk.isObject(e)?hk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[GC]=n,r},remove_action:function(e,t){var r={},n={};return hk.isObject(e)?hk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[KC]=n,r},delete_action:function(){var e={};return e[ZC]="",e}},eE=function(){};hk.extend(eE.prototype,QC),eE.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},eE.prototype.set=Qk(function(e,t,r){var n=this.set_action(e,t);return hk.isObject(e)&&(r=t),this._send_request(n,r)}),eE.prototype.set_once=Qk(function(e,t,r){var n=this.set_once_action(e,t);return hk.isObject(e)&&(r=t),this._send_request(n,r)}),eE.prototype.unset=Qk(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),eE.prototype.union=Qk(function(e,t,r){hk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),eE.prototype["delete"]=Qk(function(e){var t=this.delete_action();return this._send_request(t,e)}),eE.prototype.remove=Qk(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),eE.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=hk.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)},eE.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},eE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},eE.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},eE.prototype["remove"]=eE.prototype.remove,eE.prototype["set"]=eE.prototype.set,eE.prototype["set_once"]=eE.prototype.set_once,eE.prototype["union"]=eE.prototype.union,eE.prototype["unset"]=eE.prototype.unset,eE.prototype["toString"]=eE.prototype.toString;var tE=function(){};hk.extend(tE.prototype,QC),tE.prototype._init=function(e){this._mixpanel=e},tE.prototype.set=Zk(function(e,t,r){var n=this.set_action(e,t);return hk.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[WC]=hk.extend({},hk.info.people_properties(),n[WC]),this._send_request(n,r)}),tE.prototype.set_once=Zk(function(e,t,r){var n=this.set_once_action(e,t);return hk.isObject(e)&&(r=t),this._send_request(n,r)}),tE.prototype.unset=Zk(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),tE.prototype.increment=Zk(function(e,t,r){var n={},i={};return hk.isObject(e)?(hk.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void dk.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(hk.isUndefined(t)&&(t=1),i[e]=t),n[YC]=i,this._send_request(n,r)}),tE.prototype.append=Zk(function(e,t,r){hk.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),tE.prototype.remove=Zk(function(e,t,r){hk.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),tE.prototype.union=Zk(function(e,t,r){hk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),tE.prototype.track_charge=Zk(function(){dk.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),tE.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},tE.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}dk.error("mixpanel.people.delete_user() requires you to call identify() first")},tE.prototype.toString=function(){return this._mixpanel.toString()+".people"},tE.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=hk.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),hk.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),hk.truncate(o,255))},tE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},tE.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},tE.prototype._enqueue=function(e){WC in e?this._mixpanel["persistence"]._add_to_people_queue(WC,e):VC in e?this._mixpanel["persistence"]._add_to_people_queue(VC,e):XC in e?this._mixpanel["persistence"]._add_to_people_queue(XC,e):YC in e?this._mixpanel["persistence"]._add_to_people_queue(YC,e):GC in e?this._mixpanel["persistence"]._add_to_people_queue(GC,e):KC in e?this._mixpanel["persistence"]._add_to_people_queue(KC,e):JC in e?this._mixpanel["persistence"]._add_to_people_queue(JC,e):dk.error("Invalid call to _enqueue():",e)},tE.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=hk.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;hk.isUndefined(o)||!hk.isObject(o)||hk.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),hk.isUndefined(r)||r(t,n)}))},tE.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(WC,this.set,e),this._flush_one_queue(VC,this.set_once,n),this._flush_one_queue(XC,this.unset,o,function(e){return hk.keys(e)}),this._flush_one_queue(YC,this.increment,t),this._flush_one_queue(JC,this.union,i);var c=this._mixpanel["persistence"].load_queue(GC);if(!hk.isUndefined(c)&&hk.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(GC,u),hk.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(GC),u=c.pop(),a._mixpanel["persistence"].save(),hk.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(KC);if(!hk.isUndefined(d)&&hk.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(KC,p),hk.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(KC),p=d.pop(),a._mixpanel["persistence"].save(),hk.isEmptyObject(p)||a.remove(p,f)},tE.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},tE.prototype["set"]=tE.prototype.set,tE.prototype["set_once"]=tE.prototype.set_once,tE.prototype["unset"]=tE.prototype.unset,tE.prototype["increment"]=tE.prototype.increment,tE.prototype["append"]=tE.prototype.append,tE.prototype["remove"]=tE.prototype.remove,tE.prototype["union"]=tE.prototype.union,tE.prototype["track_charge"]=tE.prototype.track_charge,tE.prototype["clear_charges"]=tE.prototype.clear_charges,tE.prototype["delete_user"]=tE.prototype.delete_user,tE.prototype["toString"]=tE.prototype.toString;var rE,nE="__mps",iE="__mpso",oE="__mpus",sE="__mpa",aE="__mpap",cE="__mpr",uE="__mpu",lE="$people_distinct_id",hE="__alias",dE="__timers",pE=[nE,iE,oE,sE,aE,cE,uE,lE,hE,dE],fE=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&&(dk.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&hk.localStorage.is_supported()?this.storage=hk.localStorage:this.storage=hk.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};fE.prototype.properties=function(){var e={};return this.load(),hk.each(this["props"],function(t,r){hk.include(pE,r)||(e[r]=t)}),e},fE.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=hk.extend({},e))}},fE.prototype.upgrade=function(){var e,t;this.storage===hk.localStorage?(e=hk.cookie.parse(this.name),hk.cookie.remove(this.name),hk.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===hk.cookie&&(t=hk.localStorage.parse(this.name),hk.localStorage.remove(this.name),t&&this.register_once(t))},fE.prototype.save=function(){this.disabled||this.storage.set(this.name,Nk(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},fE.prototype.load_prop=function(e){return this.load(),this["props"][e]},fE.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},fE.prototype.clear=function(){this.remove(),this["props"]={}},fE.prototype.register_once=function(e,t,r){return!!hk.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),hk.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},fE.prototype.register=function(e,t){return!!hk.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),hk.extend(this["props"],e),this.save(),!0)},fE.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},fE.prototype.update_search_keyword=function(e){this.register(hk.info.searchInfo(e))},fE.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:hk.info.referringDomain(e)||"$direct"},"")},fE.prototype.get_referrer_info=function(){return hk.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},fE.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"])},fE.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},fE.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},fE.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},fE.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},fE.prototype.get_cross_subdomain=function(){return this.cross_subdomain},fE.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},fE.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(WC),o=this._get_or_create_queue(VC),s=this._get_or_create_queue(XC),a=this._get_or_create_queue(YC),c=this._get_or_create_queue(JC),u=this._get_or_create_queue(KC,[]),l=this._get_or_create_queue(GC,[]);r===nE?(hk.extend(i,n),this._pop_from_people_queue(YC,n),this._pop_from_people_queue(JC,n),this._pop_from_people_queue(XC,n)):r===iE?(hk.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(XC,n)):r===oE?hk.each(n,function(e){hk.each([i,o,a,c],function(t){e in t&&delete t[e]}),hk.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===sE?(hk.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(XC,n)):r===uE?(hk.each(n,function(e,t){hk.isArray(e)&&(t in c||(c[t]=[]),hk.each(e,function(e){hk.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(XC,n)):r===cE?(u.push(n),this._pop_from_people_queue(GC,n)):r===aE&&(l.push(n),this._pop_from_people_queue(XC,n)),dk.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),dk.log(t),this.save()},fE.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];hk.isUndefined(r)||hk.each(t,function(t,n){e===GC||e===KC?hk.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},fE.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},fE.prototype._get_queue_key=function(e){return e===WC?nE:e===VC?iE:e===XC?oE:e===YC?sE:e===GC?aE:e===KC?cE:e===JC?uE:void dk.error("Invalid queue:",e)},fE.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=hk.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},fE.prototype.set_event_timer=function(e,t){var r=this.load_prop(dE)||{};r[e]=t,this["props"][dE]=r,this.save()},fE.prototype.remove_event_timer=function(e){var t=this.load_prop(dE)||{},r=t[e];return hk.isUndefined(r)||(delete this["props"][dE][e],this.save()),r};var mE,gE=function(e,t){throw new Error(e+" not available in this build.")},vE=0,yE=1,wE="mixpanel",bE="base64",_E="json",kE="$device:",SE="strict",xE="fallback",CE="disabled",EE=xi.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,AE=!EE&&-1===ik.indexOf("MSIE")&&-1===ik.indexOf("Mozilla"),OE=null;ek["sendBeacon"]&&(OE=function(){return ek["sendBeacon"].apply(ek,arguments)});var IE={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},TE={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:IE,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:bE,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Bk,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Bk,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_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,record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:W_,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js",targeting_src:"https://cdn.mxpnl.com/libs/mixpanel-targeting.min.js",remote_settings_mode:CE},ME=!1,RE=function(){},PE=function(e,t,r){var n,i=r===wE?mE:mE[r];if(i&&rE===vE)n=i;else{if(i&&!hk.isArray(i))return void dk.error("You have already initialized "+r);n=new RE}if(n._cached_groups={},n._init(e,t,r),n["people"]=new tE,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=hk.info.campaignParams(null),s={},a=!1;hk.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}$_.DEBUG=$_.DEBUG||n.get_config("debug");var c=rE===vE?"module":"snippet";return xi.dispatchEvent(new xi.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:hk.info}})),!hk.isUndefined(i)&&hk.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};RE.prototype.init=function(e,t,r){if(hk.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==wE){var n=PE(e,t,r);return mE[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},RE.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||TE["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=_E)}if(this.hooks={},this.set_config(hk.extend({},TE,n,t,{name:r,token:e,callback_fn:(r===wE?r:wE+"."+r)+"._jsc"})),this["_jsc"]=Bk,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(hk.localStorage.is_supported(!0)&&EE){if(this.init_batchers(),OE&&xi.addEventListener){var o=hk.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);xi.addEventListener("pagehide",function(e){e["persisted"]&&o()}),xi.addEventListener("visibilitychange",function(){"hidden"===tk["visibilityState"]&&o()})}}else this._batch_requests=!1,dk.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),hk.each(this.get_batcher_configs(),function(e){dk.log("Clearing batch queue "+e.queue_key),hk.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new fE(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=hk.UUID();this.get_distinct_id()||this.register_once({distinct_id:kE+s,$device_id:s},""),this.flags=new zC({getFullApiRoute:hk.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:hk.bind(this.get_config,this),setConfigFunc:hk.bind(this.set_config,this),getPropertyFunc:hk.bind(this.get_property,this),trackingFunc:hk.bind(this.track,this),loadExtraBundle:gE,targetingSrc:this.get_config("targeting_src")}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new PC(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");a===SE||a===xE?this._fetch_remote_settings(a).then(hk.bind(function(){this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},RE.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))dk.log("Tab ID initialization skipped due to disable_persistence config");else if(hk.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;!hk.sessionStorage.get(r)&&hk.sessionStorage.get(t)||hk.sessionStorage.set(t,"$tab-"+hk.UUID()),hk.sessionStorage.set(r,"1"),this.tab_id=hk.sessionStorage.get(t),xi.addEventListener("beforeunload",function(){hk.sessionStorage.remove(r)})}catch(YE){this.report_error("Error initializing tab id",YE)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},RE.prototype.get_tab_id=function(){return this.tab_id||null},RE.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return dk.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Wk(qk),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(vS(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(hk.bind(function(e){this.report_error("Error checking recording registry",e)},this))},RE.prototype._check_and_start_session_recording=Kk(function(e){if(xi["MutationObserver"]){var t=hk.bind(function(e){var t=hk.bind(function(){this._recorder=this._recorder||new xi[Oi](this),this._recorder["resumeRecording"](e)},this);hk.isUndefined(xi[Oi])?gE(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else dk.critical("Browser does not support MutationObserver; skipping session recording")}),RE.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},RE.prototype.stop_session_recording=function(){return this._recorder?this._recorder["stopRecording"]():Promise.resolve()},RE.prototype.pause_session_recording=function(){return this._recorder?this._recorder["pauseRecording"]():Promise.resolve()},RE.prototype.resume_session_recording=function(){return this._recorder?this._recorder["resumeRecording"]():Promise.resolve()},RE.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},RE.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e["$mp_replay_id"]=t),e},RE.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var r=hk.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},RE.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},RE.prototype.__get_recorder=function(){return this._recorder},RE.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=hk.info.campaignParams(null);hk.each(e,function(e,t){this.unregister(t)}.bind(this))}},RE.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(tk.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(hk.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(tk.referrer)},RE.prototype._dom_loaded=function(){hk.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||hk.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},RE.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(!ME)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},RE.prototype._prepare_callback=function(e,t){if(hk.isUndefined(e))return null;if(EE){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},RE.prototype._send_request=function(e,t,r,n){var i=!0;if(AE)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||!hk.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=hk.extend(o,r||{}),EE||(r.method="GET");var a="POST"===r.method,c=OE&&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),EE||(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"]),hk.extend(t,this.get_config("api_extra_query_params")),e+="?"+hk.HTTPBuildQuery(t);var l=this;if("img"in t){var h=tk.createElement("img");h.src=e,tk.body.appendChild(h)}else if(c){try{i=OE(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(EE)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),hk.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=hk.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var m=tk.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=tk.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},RE.prototype._fetch_remote_settings=function(e){var t=function(){"strict"===e&&s.set_config({record_sessions_percent:0})};if(!xi["AbortController"])return dk.critical("Remote settings unavailable: missing minimum required APIs"),t(),Promise.resolve();var r=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],n={$lib_version:$_.LIB_VERSION,mp_lib:"web",sdk_config:"1"},i=hk.HTTPBuildQuery(n),o=r+"?"+i,s=this,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(s.get_config("token")+":")},signal:a.signal};return xi["fetch"](o,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(dk.critical("Network response was not ok"),void t())}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var r=e["sdk_config"]["config"],n={};hk.each(r,function(e,t){TE.hasOwnProperty(t)&&(n[t]=e)}),hk.isEmptyObject(n)?(dk.critical("No valid config keys found in remote settings."),t()):s.set_config(n)}else t()}).catch(function(e){clearTimeout(c),dk.critical("Failed to fetch remote settings",e),t()})},RE.prototype._execute_array=function(e){var t,r=[],n=[],i=[];hk.each(e,function(e){e&&(t=e[0],hk.isArray(t)?i.push(e):"function"===typeof e?e.call(this):hk.isArray(e)&&"alias"===t?r.push(e):hk.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){hk.each(e,function(e){if(hk.isArray(e[0])){var r=t;hk.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)},RE.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},RE.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},RE.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=hk.bind(function(e){return new gS(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:hk.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:hk.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:hk.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()},RE.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,hk.each(this.request_batchers,function(e){e.start()}))},RE.prototype.stop_batch_senders=function(){this._batch_requests=!1,hk.each(this.request_batchers,function(e){e.stop(),e.clear()})},RE.prototype.push=function(e){this._execute_array([e])},RE.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},RE.prototype._encode_data_for_request=function(e){var t=Nk(e);return this.get_config("api_payload_format")===bE&&(t=hk.base64Encode(t)),{data:t}},RE.prototype._track_or_batch=function(e,t){var r=hk.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Bk;var a=!0,c=hk.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(dk.log("MIXPANEL REQUEST:"),dk.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},RE.prototype.track=Kk(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=Bk),hk.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=hk.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!hk.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")?hk.info.marketingParams():{};t=hk.extend({},hk.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");hk.isArray(l)?hk.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);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)}}),RE.prototype.set_group=Kk(function(e,t,r){hk.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),RE.prototype.add_group=Kk(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)}),RE.prototype.remove_group=Kk(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)}),RE.prototype.track_with_groups=Kk(function(e,t,r,n){var i=hk.extend({},t||{});return hk.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),RE.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},RE.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},RE.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 eE,n._init(this,e,t),this._cached_groups[r]=n),n},RE.prototype.track_pageview=Kk(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=hk.extend(hk.info.mpPageViewProperties(),hk.info.campaignParams(),hk.info.clickParams()),i=hk.extend({},n,e);return this.track(r,i)}),RE.prototype.track_links=function(){return this._track_dom.call(this,HC,arguments)},RE.prototype.track_forms=function(){return this._track_dom.call(this,$C,arguments)},RE.prototype.time_event=function(e){hk.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 DE={persistent:!0},LE=function(e){var t;return t=hk.isObject(e)?e:hk.isUndefined(e)?{}:{days:e},hk.extend({},DE,t)};RE.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=LE(t);n["persistent"]?this["persistence"].register(e,n["days"]):hk.extend(this.unpersisted_superprops,e)}},RE.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=LE(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),hk.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},RE.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=LE(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},RE.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},RE.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(kE))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(hE)&&(this.unregister(hE),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()},RE.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=hk.UUID();this.register_once({distinct_id:kE+e,$device_id:e},""),this._check_and_start_session_recording()},RE.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},RE.prototype.alias=function(e,t){if(e===this.get_property(lE))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return hk.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(hE,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)},RE.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},RE.prototype.set_config=function(e){if(hk.isObject(e)){hk.extend(this["config"],e);var t=e["batch_size"];t&&hk.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"]),$_.DEBUG=$_.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),hk.isObject(e["hooks"])&&(this.hooks={},hk.each(e["hooks"],function(e,t){if(hk.isFunction(e))this.hooks[t]=[e];else if(hk.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)hk.isFunction(e[r])||dk.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else dk.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},RE.prototype.get_config=function(e){return this["config"][e]},RE.prototype._run_hook=function(e){var t=J_.call(arguments,1);return hk.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(hk.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},RE.prototype.get_property=function(e){return this["persistence"].load_prop([e])},RE.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},RE.prototype.toString=function(){var e=this.get_config("name");return e!==wE&&(e=wE+"."+e),e},RE.prototype._event_is_disabled=function(e){return hk.isBlockedUA(ik)||this._flags.disable_all_events||hk.include(this.__disabled_events,e)},RE.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&hk.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")&&!hk.cookie.get("mp_optout")||(hk.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},RE.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()},RE.prototype._gdpr_call_func=function(e,t){return t=hk.extend({track:hk.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),hk.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"]})},RE.prototype.opt_in_tracking=function(e){e=hk.extend({enable_persistence:!0},e),this._gdpr_call_func(Xk,e),this._gdpr_update_persistence(e)},RE.prototype.opt_out_tracking=function(e){e=hk.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(Yk,e),this._gdpr_update_persistence(e)},RE.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Gk,e)},RE.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Jk,e)},RE.prototype.clear_opt_in_out_tracking=function(e){e=hk.extend({enable_persistence:!0},e),this._gdpr_call_func(eS,e),this._gdpr_update_persistence(e)},RE.prototype.report_error=function(e,t){dk.error.apply(dk.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){dk.error(t)}},RE.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},RE.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):dk.log("remove_hook failed. Matching hook was not found"))},RE.prototype["init"]=RE.prototype.init,RE.prototype["reset"]=RE.prototype.reset,RE.prototype["disable"]=RE.prototype.disable,RE.prototype["time_event"]=RE.prototype.time_event,RE.prototype["track"]=RE.prototype.track,RE.prototype["track_links"]=RE.prototype.track_links,RE.prototype["track_forms"]=RE.prototype.track_forms,RE.prototype["track_pageview"]=RE.prototype.track_pageview,RE.prototype["register"]=RE.prototype.register,RE.prototype["register_once"]=RE.prototype.register_once,RE.prototype["unregister"]=RE.prototype.unregister,RE.prototype["identify"]=RE.prototype.identify,RE.prototype["alias"]=RE.prototype.alias,RE.prototype["name_tag"]=RE.prototype.name_tag,RE.prototype["set_config"]=RE.prototype.set_config,RE.prototype["get_config"]=RE.prototype.get_config,RE.prototype["get_api_host"]=RE.prototype.get_api_host,RE.prototype["get_property"]=RE.prototype.get_property,RE.prototype["get_distinct_id"]=RE.prototype.get_distinct_id,RE.prototype["toString"]=RE.prototype.toString,RE.prototype["opt_out_tracking"]=RE.prototype.opt_out_tracking,RE.prototype["opt_in_tracking"]=RE.prototype.opt_in_tracking,RE.prototype["has_opted_out_tracking"]=RE.prototype.has_opted_out_tracking,RE.prototype["has_opted_in_tracking"]=RE.prototype.has_opted_in_tracking,RE.prototype["clear_opt_in_out_tracking"]=RE.prototype.clear_opt_in_out_tracking,RE.prototype["get_group"]=RE.prototype.get_group,RE.prototype["set_group"]=RE.prototype.set_group,RE.prototype["add_group"]=RE.prototype.add_group,RE.prototype["remove_group"]=RE.prototype.remove_group,RE.prototype["add_hook"]=RE.prototype.add_hook,RE.prototype["remove_hook"]=RE.prototype.remove_hook,RE.prototype["track_with_groups"]=RE.prototype.track_with_groups,RE.prototype["start_batch_senders"]=RE.prototype.start_batch_senders,RE.prototype["stop_batch_senders"]=RE.prototype.stop_batch_senders,RE.prototype["start_session_recording"]=RE.prototype.start_session_recording,RE.prototype["stop_session_recording"]=RE.prototype.stop_session_recording,RE.prototype["pause_session_recording"]=RE.prototype.pause_session_recording,RE.prototype["resume_session_recording"]=RE.prototype.resume_session_recording,RE.prototype["get_session_recording_properties"]=RE.prototype.get_session_recording_properties,RE.prototype["get_session_replay_url"]=RE.prototype.get_session_replay_url,RE.prototype["get_tab_id"]=RE.prototype.get_tab_id,RE.prototype["DEFAULT_API_ROUTES"]=IE,RE.prototype["__get_recorder"]=RE.prototype.__get_recorder,fE.prototype["properties"]=fE.prototype.properties,fE.prototype["update_search_keyword"]=fE.prototype.update_search_keyword,fE.prototype["update_referrer_info"]=fE.prototype.update_referrer_info,fE.prototype["get_cross_subdomain"]=fE.prototype.get_cross_subdomain,fE.prototype["clear"]=fE.prototype.clear;var BE={},NE=function(){hk.each(BE,function(e,t){t!==wE&&(mE[t]=e)}),mE["_"]=hk},jE=function(){mE["init"]=function(e,t,r){if(r)return mE[r]||(mE[r]=BE[r]=PE(e,t,r),mE[r]._loaded()),mE[r];var n=mE;BE[wE]?n=BE[wE]:e&&(n=PE(e,t,wE),n._loaded(),BE[wE]=n),mE=n,rE===yE&&(xi[wE]=mE),NE()}},FE=function(){function e(){e.done||(e.done=!0,ME=!0,AE=!1,hk.each(BE,function(e){e._dom_loaded()}))}function t(){try{tk.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(tk.addEventListener)"complete"===tk.readyState?e():tk.addEventListener("DOMContentLoaded",e,!1);else if(tk.attachEvent){tk.attachEvent("onreadystatechange",e);var r=!1;try{r=null===xi.frameElement}catch(n){}tk.documentElement.doScroll&&r&&t()}hk.register_event(xi,"load",e,!0)};function UE(e){return gE=e,rE=vE,mE=new RE,jE(),mE["init"](),FE(),mE}function zE(e,t){t()}var qE=UE(zE);const HE="@mixpanelIdentificationData",$E=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},WE={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(HE,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(HE),hasMixpanelIdentificationData:()=>!!WE.getMixpanelIdentificationData(),init:(e,t)=>{qE.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||WE.getMixpanelIdentificationData(),o=$E(i);if("production"===e&&o){WE.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),qE.identify(r),qE.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&qE.track(t,r)}};var VE=WE,XE={}}(),__webpack_exports__}()});
39
+ function jr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const Fr=Object.assign,Ur=Object.prototype.hasOwnProperty,zr=(e,t)=>Ur.call(e,t),qr=Array.isArray,Hr=e=>"[object Map]"===Yr(e),$r=e=>"string"===typeof e,Wr=e=>"symbol"===typeof e,Vr=e=>null!==e&&"object"===typeof e,Xr=Object.prototype.toString,Yr=e=>Xr.call(e),Gr=e=>Yr(e).slice(8,-1),Jr=e=>$r(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Kr=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},Zr=/-\w/g,Qr=(Kr(e=>e.replace(Zr,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),en=(Kr(e=>e.replace(Qr,"-$1").toLowerCase()),Kr(e=>e.charAt(0).toUpperCase()+e.slice(1))),tn=(Kr(e=>{const t=e?`on${en(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let rn;let nn,on,sn=0;function an(){sn++}function cn(){if(--sn>0)return;if(on){let e=on;on=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(nn){let r=nn;nn=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let un=!0;const ln=[];function hn(){ln.push(un),un=!1}function dn(){const e=ln.pop();un=void 0===e||e}class pn{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!rn||!un||rn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==rn)t=this.activeLink=new pn(rn,this),rn.deps?(t.prevDep=rn.depsTail,rn.depsTail.nextDep=t,rn.depsTail=t):rn.deps=rn.depsTail=t,mn(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=rn.depsTail,t.nextDep=void 0,rn.depsTail.nextDep=t,rn.depsTail=t,rn.deps===t&&(rn.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){an();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{cn()}}}function mn(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)mn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const gn=new WeakMap,vn=Symbol(""),yn=Symbol(""),wn=Symbol("");function bn(e,t,r){if(un&&rn){let t=gn.get(e);t||gn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new fn),n.map=t,n.key=r),n.track()}}function _n(e,t,r,n,i,o){const s=gn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(an(),"clear"===t)s.forEach(a);else{const i=qr(e),o=i&&Jr(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===wn||!Wr(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(wn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(vn)),Hr(e)&&a(s.get(yn)));break;case"delete":i||(a(s.get(vn)),Hr(e)&&a(s.get(yn)));break;case"set":Hr(e)&&a(s.get(vn));break}}cn()}function kn(e,t){const r=gn.get(e);return r&&r.get(t)}function Sn(e){const t=ci(e);return t===e?t:(bn(t,"iterate",wn),si(e)?t:t.map(ui))}function xn(e){return bn(e=ci(e),"iterate",wn),e}function Cn(e,t){return oi(e)?ii(e)?li(ui(t)):li(t):ui(t)}const En={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Cn(this,e))},concat(...e){return Sn(this).concat(...e.map(e=>qr(e)?Sn(e):e))},entries(){return An(this,"entries",e=>(e[1]=Cn(this,e[1]),e))},every(e,t){return In(this,"every",e,t,void 0,arguments)},filter(e,t){return In(this,"filter",e,t,e=>e.map(e=>Cn(this,e)),arguments)},find(e,t){return In(this,"find",e,t,e=>Cn(this,e),arguments)},findIndex(e,t){return In(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return In(this,"findLast",e,t,e=>Cn(this,e),arguments)},findLastIndex(e,t){return In(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return In(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return In(this,"map",e,t,void 0,arguments)},pop(){return Rn(this,"pop")},push(...e){return Rn(this,"push",e)},reduce(e,...t){return Tn(this,"reduce",e,t)},reduceRight(e,...t){return Tn(this,"reduceRight",e,t)},shift(){return Rn(this,"shift")},some(e,t){return In(this,"some",e,t,void 0,arguments)},splice(...e){return Rn(this,"splice",e)},toReversed(){return Sn(this).toReversed()},toSorted(e){return Sn(this).toSorted(e)},toSpliced(...e){return Sn(this).toSpliced(...e)},unshift(...e){return Rn(this,"unshift",e)},values(){return An(this,"values",e=>Cn(this,e))}};function An(e,t,r){const n=xn(e),i=n[t]();return n===e||si(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const On=Array.prototype;function In(e,t,r,n,i,o){const s=xn(e),a=s!==e&&!si(e),c=s[t];if(c!==On[t]){const t=c.apply(e,o);return a?ui(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,Cn(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Tn(e,t,r,n){const i=xn(e),o=i!==e&&!si(e);let s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=Cn(e,t)),r.call(this,t,Cn(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));const c=i[t](s,...n);return a?Cn(e,c):c}function Mn(e,t,r){const n=ci(e);bn(n,"iterate",wn);const i=n[t](...r);return-1!==i&&!1!==i||!ai(r[0])?i:(r[0]=ci(r[0]),n[t](...r))}function Rn(e,t,r=[]){hn(),an();const n=ci(e)[t].apply(e,r);return cn(),dn(),n}const Pn=jr("__proto__,__v_isRef,__isVue"),Dn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Wr));function Ln(e){Wr(e)||(e=String(e));const t=ci(this);return bn(t,"has",e),t.hasOwnProperty(e)}class Bn{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?Zn:Kn:i?Jn:Gn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=qr(e);if(!n){let e;if(o&&(e=En[t]))return e;if("hasOwnProperty"===t)return Ln}const s=Reflect.get(e,t,hi(e)?e:r);if(Wr(t)?Dn.has(t):Pn(t))return s;if(n||bn(e,"get",t),i)return s;if(hi(s)){const e=o&&Jr(t)?s:s.value;return n&&Vr(e)?ri(e):e}return Vr(s)?n?ri(s):ti(s):s}}class Nn extends Bn{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=qr(e)&&Jr(t);if(!this._isShallow){const e=oi(i);if(si(r)||oi(r)||(i=ci(i),r=ci(r)),!o&&hi(i)&&!hi(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:zr(e,t),a=Reflect.set(e,t,r,hi(e)?e:n);return e===ci(n)&&(s?tn(r,i)&&_n(e,"set",t,r,i):_n(e,"add",t,r)),a}deleteProperty(e,t){const r=zr(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&_n(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Wr(t)&&Dn.has(t)||bn(e,"has",t),r}ownKeys(e){return bn(e,"iterate",qr(e)?"length":vn),Reflect.ownKeys(e)}}class jn extends Bn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Fn=new Nn,Un=new jn,zn=e=>e,qn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,r){return function(...n){const i=this["__v_raw"],o=ci(i),s=Hr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?zn:t?li:ui;return!t&&bn(o,"iterate",c?yn:vn),Fr(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function $n(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Wn(e,t){const r={get(r){const n=this["__v_raw"],i=ci(n),o=ci(r);e||(tn(r,o)&&bn(i,"get",r),bn(i,"get",o));const{has:s}=qn(i),a=t?zn:e?li:ui;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&bn(ci(t),"iterate",vn),t.size},has(t){const r=this["__v_raw"],n=ci(r),i=ci(t);return e||(tn(t,i)&&bn(n,"has",t),bn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=ci(o),a=t?zn:e?li:ui;return!e&&bn(s,"iterate",vn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};Fr(r,e?{add:$n("add"),set:$n("set"),delete:$n("delete"),clear:$n("clear")}:{add(e){const r=ci(this),n=qn(r),i=ci(e),o=t||si(e)||oi(e)?e:i,s=n.has.call(r,o)||tn(e,o)&&n.has.call(r,e)||tn(i,o)&&n.has.call(r,i);return s||(r.add(o),_n(r,"add",o,o)),this},set(e,r){t||si(r)||oi(r)||(r=ci(r));const n=ci(this),{has:i,get:o}=qn(n);let s=i.call(n,e);s||(e=ci(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?tn(r,a)&&_n(n,"set",e,r,a):_n(n,"add",e,r),this},delete(e){const t=ci(this),{has:r,get:n}=qn(t);let i=r.call(t,e);i||(e=ci(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&_n(t,"delete",e,void 0,o),s},clear(){const e=ci(this),t=0!==e.size,r=void 0,n=e.clear();return t&&_n(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Hn(n,e,t)}),r}function Vn(e,t){const r=Wn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(zr(r,n)&&n in t?r:t,n,i)}const Xn={get:Vn(!1,!1)},Yn={get:Vn(!0,!1)};const Gn=new WeakMap,Jn=new WeakMap,Kn=new WeakMap,Zn=new WeakMap;function Qn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ei(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Qn(Gr(e))}function ti(e){return oi(e)?e:ni(e,!1,Fn,Xn,Gn)}function ri(e){return ni(e,!0,Un,Yn,Kn)}function ni(e,t,r,n,i){if(!Vr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=ei(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ii(e){return oi(e)?ii(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function oi(e){return!(!e||!e["__v_isReadonly"])}function si(e){return!(!e||!e["__v_isShallow"])}function ai(e){return!!e&&!!e["__v_raw"]}function ci(e){const t=e&&e["__v_raw"];return t?ci(t):e}const ui=e=>Vr(e)?ti(e):e,li=e=>Vr(e)?ri(e):e;function hi(e){return!!e&&!0===e["__v_isRef"]}function di(e){return hi(e)?e.value:e}function pi(e){const t=qr(e)?new Array(e.length):{};for(const r in e)t[r]=mi(e,r);return t}class fi{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._raw=ci(e);let n=!0,i=e;if(!qr(e)||!Jr(String(t)))do{n=!ai(i)||si(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=di(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&hi(this._raw[this._key])){const t=this._object[this._key];if(hi(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return kn(this._raw,this._key)}}function mi(e,t,r){return new fi(e,t,r)}function gi(e,t,r){const n=ti({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function vi(e,t,r){const n=ti({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...pi(n),execute:i}}const yi=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(yi(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class wi{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const bi=new wi("shr-event-bus");var _i=__webpack_require__(2242),ki=__webpack_require__.n(_i);class Si{pusher;setupPusherConnection(e,t){this.pusher=new(ki())(e,t)}}var xi,Ci=new Si;if("undefined"===typeof window){var Ei={hostname:""};xi={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ei,referrer:""},screen:{width:0,height:0},location:Ei,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else xi=window;var Ai={DEBUG:!1,LIB_VERSION:"2.76.0"},Oi="__mp_targeting",Ii="__mp_recorder",Ti="__MP_RECORDER_FILENAME__",Mi="__MP_TARGETING_FILENAME__";function Ri(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 Pi(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function Di(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Pi(o,n,i,s,a,"next",e)}function a(e){Pi(o,n,i,s,a,"throw",e)}s(void 0)})}}function Li(e,t,r){return Li=Yi()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&$i(o,r.prototype),o},Li.apply(null,arguments)}function Bi(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)}}function Ni(e,t,r){return t&&Bi(e.prototype,t),e}function ji(){return ji=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},ji.apply(this,arguments)}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fi(e)}function Ui(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&&$i(e,t)}function zi(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function qi(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Hi(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}function $i(e,t){return $i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$i(e,t)}function Wi(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Vi(e,t){if(e){if("string"===typeof e)return Ri(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)?Ri(e,t):void 0}}function Xi(e){var t="function"===typeof Map?new Map:void 0;return Xi=function(e){if(null===e||!qi(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Li(e,arguments,Fi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$i(r,e)},Xi(e)}function Yi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(pk){}return(Yi=function(){return!!e})()}function Gi(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=Vi(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.")}function Ji(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(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(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(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function Ki(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.")}var Zi,Qi=Object.defineProperty,eo=function(e,t,r){return t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},to=function(e,t,r){return eo(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)},ro=Object.defineProperty,no=function(e,t,r){return t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},io=function(e,t,r){return no(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)},oo=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}(oo||{}),so={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ao={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},co={},uo=function(){return!!globalThis.Zone};function lo(e){if(co[e])return co[e];var t=globalThis[e],r=t.prototype,n=e in so?so[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 ao?ao[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&&!uo())return co[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?co[e]=u:r}catch(l){return r}}var ho={};function po(e,t,r){var n,i=e+"."+String(r);if(ho[i])return ho[i].call(t);var o=lo(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ho[i]=s,s.call(t)):t[r]}var fo={};function mo(e,t,r){var n=e+"."+String(r);if(fo[n])return fo[n].bind(t);var i=lo(e),o=i[r];return"function"!==typeof o?t[r]:(fo[n]=o,o.bind(t))}function go(e){return po("Node",e,"childNodes")}function vo(e){return po("Node",e,"parentNode")}function yo(e){return po("Node",e,"parentElement")}function wo(e){return po("Node",e,"textContent")}function bo(e,t){return mo("Node",e,"contains")(t)}function _o(e){return mo("Node",e,"getRootNode")()}function ko(e){return e&&"host"in e?po("ShadowRoot",e,"host"):null}function So(e){return e.styleSheets}function xo(e){return e&&"shadowRoot"in e?po("Element",e,"shadowRoot"):null}function Co(e,t){return po("Element",e,"querySelector")(t)}function Eo(e,t){return po("Element",e,"querySelectorAll")(t)}function Ao(){return lo("MutationObserver").constructor}function Oo(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(o){return function(){}}}var Io={childNodes:go,parentNode:vo,parentElement:yo,textContent:wo,contains:bo,getRootNode:_o,host:ko,styleSheets:So,shadowRoot:xo,querySelector:Co,querySelectorAll:Eo,mutationObserver:Ao,patch:Oo};function To(e){return e.nodeType===e.ELEMENT_NODE}function Mo(e){var t=e&&"host"in e&&"mode"in e&&Io.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Io.shadowRoot(t)===e)}function Ro(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Po(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Do(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(" ")+";"}function Lo(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 Bo(e,r)}).join("");return Po(n)}catch(i){return null}}function Bo(e,t){if(jo(e)){var r;try{r=Lo(e.styleSheet)||Do(e)}catch(i){r=e.cssText}return e.styleSheet.href?Qo(r,e.styleSheet.href):r}var n=e.cssText;return Fo(e)&&e.selectorText.includes(":")&&(n=No(n)),t?Qo(n,t):n}function No(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jo(e){return"styleSheet"in e}function Fo(e){return"selectorText"in e}var Uo=function(){function e(){io(this,"idNodeMap",new Map),io(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}();function zo(){return new Uo}function qo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Ho(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Ho(e){return e.toLowerCase()}var $o="__rrweb_original__";function Wo(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=$o in o?o[$o]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Vo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ho(t):null}function Xo(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Yo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Go=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Jo=/^(?:[a-z+]+:)?\/\//i,Ko=/^www\..*/i,Zo=/^(data:)([^,]*),(.*)/i;function Qo(e,t){return(e||"").replace(Go,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(Jo.test(a)||Ko.test(a))return"url("+c+a+c+")";if(Zo.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Yo(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Gi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function es(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ts(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=es(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=es(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var m=n[c-1].textContent;if(m&&"string"===typeof m){var g=es(m).length;f=s.indexOf(d,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=es(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function rs(e,t){return ts(e,t).join("/* rr_split */")}var ns,is,os=1,ss=new RegExp("[^a-z0-9-_:]"),as=-2;function cs(){return os++}function us(e){if(zi(e,HTMLFormElement))return"form";var t=Ho(e.tagName);return ss.test(t)?"div":t}var ls=/^[^ \t\n\r\u000c]+/,hs=/^[, \t\n\r\u000c]+/;function ds(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):""}var i=[];while(1){if(n(hs),r>=t.length)break;var o=n(ls);if(","===o.slice(-1))o=fs(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=fs(e,o);var a=!1;while(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(", ")}var ps=new WeakMap;function fs(e,t){return t&&""!==t.trim()?gs(e,t):t}function ms(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function gs(e,t){var r=ps.get(e);if(r||(r=e.createElement("a"),ps.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function vs(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?fs(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?ds(e,n):"style"===r?Qo(n,gs(e)):"object"===t&&"data"===r?fs(e,n):n:fs(e,n):n}function ys(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ws(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(o){}return!1}function bs(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&bs(Io.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&bs(Io.parentNode(e),t,r)}function _s(e,t,r,n){var i;if(To(e)){if(i=e,!Io.childNodes(i).length)return!1}else{if(null===Io.parentElement(e))return!1;i=Io.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(bs(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function ks(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){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()})}}}function Ss(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function xs(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,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=Cs(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:oo.Document,childNodes:[],compatMode:e.compatMode}:{type:oo.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oo.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return As(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Es(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:oo.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:oo.Comment,textContent:Io.textContent(e)||"",rootId:_};default:return!1}}function Cs(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Es(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Io.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Io.textContent(e),u&&c&&(c=Qo(c,gs(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Io.parentElement(e)):c.replace(/[\S]/g,"*")),{type:oo.Text,textContent:c||"",rootId:i}}function As(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,v=t.rootId,y=ws(e,i,o),w=us(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];ys(w,S.name,S.value)||(b[S.name]=vs(n,w,Ho(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=Lo(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=Lo(e.sheet);E&&(e.childNodes.length>1&&(E=rs(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var A=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&A?b.value=qo({element:e,type:Vo(e),tagName:w,value:A,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)Wo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){ns||(ns=n.createElement("canvas"),is=ns.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",D=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{ns.width=R.naturalWidth,ns.height=R.naturalHeight,is.drawImage(R,0,0),b.rr_dataURL=ns.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(D?b.crossOrigin=D:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:oo.Element,tagName:w,attributes:b,childNodes:[],isSVG:ms(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Os(e){return void 0===e||null===e?"":e.toLowerCase()}function Is(e,t){if(t.comment&&e.type===oo.Comment)return!0;if(e.type===oo.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"===Xo(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Os(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Os(e.attributes.name)||"icon"===Os(e.attributes.rel)||"apple-touch-icon"===Os(e.attributes.rel)||"shortcut icon"===Os(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Os(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Os(e.attributes.property).match(/^(og|twitter|fb):/)||Os(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Os(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Os(e.attributes.name)||"googlebot"===Os(e.attributes.name)||"bingbot"===Os(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Os(e.attributes.name)||"generator"===Os(e.attributes.name)||"framework"===Os(e.attributes.name)||"publisher"===Os(e.attributes.name)||"progid"===Os(e.attributes.name)||Os(e.attributes.property).match(/^article:/)||Os(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Os(e.attributes.name)||"yandex-verification"===Os(e.attributes.name)||"csrf-token"===Os(e.attributes.name)||"p:domain_verify"===Os(e.attributes.name)||"verify-v1"===Os(e.attributes.name)||"verification"===Os(e.attributes.name)||"shopify-checkout-api-token"===Os(e.attributes.name)))return!0}}return!1}function Ts(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,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,A=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,I=void 0===O?5e3:O,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=_s(e,s,a,F)}var U,z=xs(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Is(z,g)||!j&&z.type===oo.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?as:cs();var q=Object.assign(z,{id:U});if(n.add(e,q),U===as)return null;S&&S(e);var H=!u;if(q.type===oo.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Io.shadowRoot(e);$&&Ro($)&&(q.isShadowHost=!0)}if((q.type===oo.Document||q.type===oo.Element)&&H){g.headWhitespace&&q.type===oo.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===oo.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===oo.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,X=Gi(Array.from(Io.childNodes(e)));!(V=X()).done;){var Y=V.value,G=Ts(Y,W);G&&q.childNodes.push(G)}}var J=null;if(To(e)&&(J=Io.shadowRoot(e)))for(var K,Z=Gi(Array.from(Io.childNodes(J)));!(K=Z()).done;){var Q=K.value,ee=Ts(Q,W);ee&&(Ro(J)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Io.parentNode(e);return te&&Mo(te)&&Ro(te)&&(q.isShadow=!0),q.type===oo.Element&&"iframe"===q.tagName&&ks(e,function(){var t=e.contentDocument;if(t&&x){var r=Ts(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===oo.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Xo(q.attributes.href))&&Ss(e,function(){if(A){var t=Ts(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&A(e,t)}},I),q}function Ms(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Uo: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,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,m=r.inlineImages,g=void 0!==m&&m,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,A=r.onSerialize,O=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,D=!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,L=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return Ts(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:D,maskTextFn:_,maskInputFn:k,slimDOMOptions:L,dataURLOptions:C,inlineImages:g,recordCanvas:y,preserveWhiteSpace:E,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ps(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return zi(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}var Ds={exports:{}},Ls=String,Bs=function(){return{isColorSupported:!1,reset:Ls,bold:Ls,dim:Ls,italic:Ls,underline:Ls,inverse:Ls,hidden:Ls,strikethrough:Ls,black:Ls,red:Ls,green:Ls,yellow:Ls,blue:Ls,magenta:Ls,cyan:Ls,white:Ls,gray:Ls,bgBlack:Ls,bgRed:Ls,bgGreen:Ls,bgYellow:Ls,bgBlue:Ls,bgMagenta:Ls,bgCyan:Ls,bgWhite:Ls}};Ds.exports=Bs(),Ds.exports.createColors=Bs;var Ns=Ds.exports,js={},Fs=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Us=Ps(Fs),zs=Ns,qs=Us,Hs=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof 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}Ui(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof 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=zs.isColorSupported),qs&&e&&(r=qs(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=zs.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(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}(Xi(Error)),$s=Hs;Hs.default=Hs;var Ws={};Ws.isClean=Symbol("isClean"),Ws.my=Symbol("my");var Vs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Xs(e){return e[0].toUpperCase()+e.slice(1)}var Ys=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("undefined"!==typeof 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");var n=e.parent,i=0;while(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){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;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&&(n=e.raws[t],"undefined"!==typeof n))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 Vs[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Xs(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Vs[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.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("undefined"!==typeof 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&&(t=e.raws.after,"undefined"!==typeof t))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&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.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&&(t=e.raws.semicolon,"undefined"!==typeof t))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}(),Gs=Ys;Ys.default=Ys;var Js=Gs;function Ks(e,t){var r=new Js(t);r.stringify(e)}var Zs=Ks;Ks.default=Ks;var Qs=Ws.isClean,ea=Ws.my,ta=$s,ra=Gs,na=Zs;function ia(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="undefined"===typeof i?"undefined":Wi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ia(e,r)}):("object"===o&&null!==i&&(i=ia(i)),r[n]=i)}return r}var oa=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Qs]=!1,this[ea]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Gi(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=ia(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 ta(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[Qs]){this[Qs]=!1;var e=this;while(e=e.parent)e[Qs]=!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){t=this.toString();var n=t.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){var r=new ra;return r.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=Gi(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(){var e=this;while(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"===("undefined"===typeof e?"undefined":Wi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Wi(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=na),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)},Ni(e,[{key:"proxyOf",get:function(){return this}}]),e}(),sa=oa;oa.default=oa;var aa=sa,ca=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=ji({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ui(t,e),Ni(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(aa),ua=ca;ca.default=ca;var la="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ha=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=la[64*Math.random()|0];return t},da={nanoid:ha},pa=Us.SourceMapConsumer,fa=Us.SourceMapGenerator,ma=Us.existsSync,ga=Us.readFileSync,va=Us.dirname,ya=Us.join;function wa(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ba=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=va(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new pa(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return wa(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Wi(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=va(e),ma(e))return this.mapFile=e,ga(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(zi(t,pa))return fa.fromSourceMap(t).toString();if(zi(t,fa))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=ya(va(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}(),_a=ba;ba.default=ba;var ka=Us.SourceMapConsumer,Sa=Us.SourceMapGenerator,xa=Us.fileURLToPath,Ca=Us.pathToFileURL,Ea=Us.isAbsolute,Aa=Us.resolve,Oa=da.nanoid,Ia=Us,Ta=$s,Ma=_a,Ra=Symbol("fromOffsetCache"),Pa=Boolean(ka&&Sa),Da=Boolean(Aa&&Ea),La=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Wi(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&&(!Da||/^\w+:\/\//.test(t.from)||Ea(t.from)?this.file=t.from:this.file=Aa(t.from)),Da&&Pa){var r=new Ma(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 "+Oa(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"===("undefined"===typeof t?"undefined":Wi(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 d=this.origin(t,r,o,s);return i=d?new Ta(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Ta(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ca&&(i.input.url=Ca(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Ra])r=this[Ra];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Ra]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Aa(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=Ea(a.source)?Ca(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ca(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(!xa)throw new Error("file: protocol is not available in this PostCSS build");c.file=xa(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=ji({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ni(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ba=La;La.default=La,Ia&&Ia.registerInput&&Ia.registerInput(La);var Na=Us.SourceMapConsumer,ja=Us.SourceMapGenerator,Fa=Us.dirname,Ua=Us.relative,za=Us.resolve,qa=Us.sep,Ha=Us.pathToFileURL,$a=Ba,Wa=Boolean(Na&&ja),Va=Boolean(Fa&&za&&Ua&&qa),Xa=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=Gi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Fa(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Na(r.text),o.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--)e=this.root.nodes[t],"comment"===e.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(),Va&&Wa&&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=ja.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ja({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 ja({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),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&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()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof 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?Fa(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Fa(za(r,this.mapOpts.annotation)));var n=Ua(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 $a(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(Ha){var r=Ha(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;"\\"===qa&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ya=Xa,Ga=sa,Ja=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ui(t,e),t}(Ga),Ka=Ja;Ja.default=Ja;var Za,Qa,ec,tc,rc=Ws.isClean,nc=Ws.my,ic=ua,oc=Ka,sc=sa;function ac(e){return e.map(function(e){return e.nodes&&(e.nodes=ac(e.nodes)),delete e.source,e})}function cc(e){if(e[rc]=!1,e.proxyOf.nodes)for(var t,r=Gi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;cc(n)}}var uc=function(e){function t(){return e.apply(this,arguments)||this}Ui(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=Gi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Gi(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=Gi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;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=Gi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(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=Gi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=ac(Za(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Gi(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=Gi(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("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new ic(e)]}else if(e.selector)e=[new Qa(e)];else if(e.name)e=[new ec(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new oc(e)]}var l=e.map(function(e){return e[nc]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[rc]&&cc(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},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=Gi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Gi(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=Gi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.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],t>=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(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?zi(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?zi(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?zi(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)}))},Ni(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}(sc);uc.registerParse=function(e){Za=e},uc.registerRule=function(e){Qa=e},uc.registerAtRule=function(e){ec=e},uc.registerRoot=function(e){tc=e};var lc=uc;uc.default=uc,uc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ec.prototype):"rule"===e.type?Object.setPrototypeOf(e,Qa.prototype):"decl"===e.type?Object.setPrototypeOf(e,ic.prototype):"comment"===e.type?Object.setPrototypeOf(e,oc.prototype):"root"===e.type&&Object.setPrototypeOf(e,tc.prototype),e[nc]=!0,e.nodes&&e.nodes.forEach(function(e){uc.rebuild(e)})};var hc,dc,pc=lc,fc=function(e){function t(t){var r;return r=e.call(this,ji({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new hc(new dc,this,e);return t.stringify()},t}(pc);fc.registerLazyResult=function(e){hc=e},fc.registerProcessor=function(e){dc=e};var mc=fc;fc.default=fc;var gc=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]}var t=e.prototype;return t.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}(),vc=gc;gc.default=gc;var yc=vc,wc=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 yc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ni(e,[{key:"content",get:function(){return this.css}}]),e}(),bc=wc;wc.default=wc;var _c="'".charCodeAt(0),kc='"'.charCodeAt(0),Sc="\\".charCodeAt(0),xc="/".charCodeAt(0),Cc="\n".charCodeAt(0),Ec=" ".charCodeAt(0),Ac="\f".charCodeAt(0),Oc="\t".charCodeAt(0),Ic="\r".charCodeAt(0),Tc="[".charCodeAt(0),Mc="]".charCodeAt(0),Rc="(".charCodeAt(0),Pc=")".charCodeAt(0),Dc="{".charCodeAt(0),Lc="}".charCodeAt(0),Bc=";".charCodeAt(0),Nc="*".charCodeAt(0),jc=":".charCodeAt(0),Fc="@".charCodeAt(0),Uc=/[\t\n\f\r "#'()/;[\\\]{}]/g,zc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qc=/.[\r\n"'(/\\]/,Hc=/[\da-f]/i,$c=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Cc:case Ec:case Oc:case Ic:case Ac:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Ec||r===Cc||r===Oc||r===Ic||r===Ac);h=["space",d.slice(m,n)],m=n-1;break;case Tc:case Mc:case Dc:case Lc:case jc:case Bc:case Pc:var y=String.fromCharCode(r);h=[y,y,m];break;case Rc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==_c&&l!==kc&&l!==Ec&&l!==Cc&&l!==Oc&&l!==Ac&&l!==Ic){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Sc)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||qc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case _c:case kc:i=r===_c?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Sc)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Fc:Uc.lastIndex=m+1,Uc.test(d),n=0===Uc.lastIndex?d.length-1:Uc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Sc:n=m,s=!0;while(d.charCodeAt(n+1)===Sc)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==xc&&r!==Ec&&r!==Cc&&r!==Oc&&r!==Ic&&r!==Ac&&(n+=1,Hc.test(d.charAt(n)))){while(Hc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Ec&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===xc&&d.charCodeAt(m+1)===Nc?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(zc.lastIndex=m+1,zc.test(d),n=0===zc.lastIndex?d.length-1:zc.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Wc=lc,Vc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ui(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}(Wc),Xc=Vc;Vc.default=Vc,Wc.registerAtRule(Vc);var Yc,Gc,Jc=lc,Kc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ui(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=Gi(i);!(o=s()).done;){var a=o.value;a.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){void 0===e&&(e={});var t=new Yc(new Gc,this,e);return t.stringify()},t}(Jc);Kc.registerLazyResult=function(e){Yc=e},Kc.registerProcessor=function(e){Gc=e};var Zc=Kc;Kc.default=Kc,Jc.registerRoot(Kc);var Qc={comma:function(e){return Qc.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Qc.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Gi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},eu=Qc;Qc.default=Qc;var tu=lc,ru=eu,nu=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ui(t,e),Ni(t,[{key:"selectors",get:function(){return ru.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}(tu),iu=nu;nu.default=nu,tu.registerRule(nu);var ou=ua,su=$c,au=Ka,cu=Xc,uu=Zc,lu=iu,hu={empty:!0,space:!0};function du(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var pu=function(){function e(e){this.input=e,this.root=new uu,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 cu;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===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){n=a.length-1,r=a[n];while(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;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;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=Gi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(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 au;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=su(this.input)},t.decl=function(e,t){var r=new ou;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||du(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[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));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)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}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(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 lu;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){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(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)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[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);break}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)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",hu[a]||hu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new lu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},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}(),fu=pu,mu=lc,gu=fu,vu=Ba;function yu(e,t){var r=new vu(e,t),n=new gu(r);try{n.parse()}catch(i){throw i}return n.root}var wu=yu;yu.default=yu,mu.registerParse(yu);var bu=Ws.isClean,_u=Ws.my,ku=Ya,Su=Zs,xu=lc,Cu=mc,Eu=bc,Au=wu,Ou=Zc,Iu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Tu={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},Mu={Once:!0,postcssPlugin:!0,prepare:!0},Ru=0;function Pu(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&"function"===typeof e.then}function Du(e){var t=!1,r=Iu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Ru,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Ru,r+"Exit"]:[r,r+"Exit"]}function Lu(e){var t;return t="document"===e.type?["Document",Ru,"DocumentExit"]:"root"===e.type?["Root",Ru,"RootExit"]:Du(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Bu(e){return e[bu]=!1,e.nodes&&e.nodes.forEach(function(e){return Bu(e)}),e}var Nu={},ju=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Wi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(zi(r,e)||zi(r,Eu))i=Bu(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Au;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[_u]&&xu.rebuild(i)}else i=Bu(r);this.result=new Eu(t,i,n),this.helpers=ji({},Nu,{postcss:Nu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.prepare?ji({},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);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}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=Gi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Wi(i)))for(var o in i){if(!Tu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Mu[o])if("object"===Wi(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 Di(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Ji(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Pu(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[bu])return[3,14];o[bu]=!0,s=[Lu(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Pu(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.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 Ji(this,function(a){switch(a.label){case 0:t=d.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=Gi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Ki(l())];case 16:p.sent(),p.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"===("undefined"===typeof e?"undefined":Wi(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 Pu(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(n){throw this.handleError(n)}},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=Su;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ku(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[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=Gi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Pu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[bu])i[bu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Gi(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 this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Gi(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(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Pu(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(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[bu])return a[bu]=!0,void e.push(Lu(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Ru)return void(r.nodes&&r.nodes.length&&(r[bu]=!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[bu]=!0;for(var r,n=Du(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(o===Ru)e.nodes&&e.each(function(e){e[bu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ni(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}();ju.registerPostcss=function(e){Nu=e};var Fu=ju;ju.default=ju,Ou.registerLazyResult(ju),Cu.registerLazyResult(ju);var Uu=Ya,zu=Zs,qu=wu,Hu=bc,$u=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=zu;this.result=new Hu(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 Uu(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 this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ni(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=qu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Wu=$u;$u.default=$u;var Vu=Wu,Xu=Fu,Yu=mc,Gu=Zc,Ju=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=Gi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Wi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Wi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Wi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Xu(this,e,t):new Vu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Ku=Ju;Ju.default=Ju,Gu.registerProcessor(Ju),Yu.registerProcessor(Ju);var Zu=ua,Qu=_a,el=Ka,tl=Xc,rl=Ba,nl=Zc,il=iu;function ol(e,t){if(Array.isArray(e))return e.map(function(e){return ol(e)});var r=e.inputs,n=Hi(e,["inputs"]);if(r){t=[];for(var i,o=Gi(r);!(i=o()).done;){var s=i.value,a=ji({},s,{__proto__:rl.prototype});a.map&&(a.map=ji({},a.map,{__proto__:Qu.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return ol(e,t)})),n.source){var c=n.source,u=c.inputId,l=Hi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new nl(n);if("decl"===n.type)return new Zu(n);if("rule"===n.type)return new il(n);if("comment"===n.type)return new el(n);if("atrule"===n.type)return new tl(n);throw new Error("Unknown node type: "+e.type)}var sl=ol;ol.default=ol;var al=$s,cl=ua,ul=Fu,ll=lc,hl=Ku,dl=Zs,pl=sl,fl=mc,ml=vc,gl=Ka,vl=Xc,yl=bc,wl=Ba,bl=wu,_l=eu,kl=iu,Sl=Zc,xl=sa;function Cl(){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 hl(t)}Cl.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 hl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Cl([i(r)]).process(e,t)},i},Cl.stringify=dl,Cl.parse=bl,Cl.fromJSON=pl,Cl.list=_l,Cl.comment=function(e){return new gl(e)},Cl.atRule=function(e){return new vl(e)},Cl.decl=function(e){return new cl(e)},Cl.rule=function(e){return new kl(e)},Cl.root=function(e){return new Sl(e)},Cl.document=function(e){return new fl(e)},Cl.CssSyntaxError=al,Cl.Declaration=cl,Cl.Container=ll,Cl.Processor=hl,Cl.Document=fl,Cl.Comment=gl,Cl.Warning=ml,Cl.AtRule=vl,Cl.Result=yl,Cl.Input=wl,Cl.Rule=kl,Cl.Root=Sl,Cl.Node=xl,ul.registerPostcss(Cl);var El=Cl;Cl.default=Cl;var Al=Rs(El);Al.stringify,Al.fromJSON,Al.plugin,Al.parse,Al.list,Al.document,Al.comment,Al.atRule,Al.rule,Al.decl,Al.root,Al.CssSyntaxError,Al.Declaration,Al.Container,Al.Processor,Al.Document,Al.Comment,Al.Warning,Al.AtRule,Al.Result,Al.Input,Al.Rule,Al.Root,Al.Node;var Ol=Object.defineProperty,Il=function(e,t,r){return t in e?Ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Tl=function(e,t,r){return Il(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)};function Ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Rl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return zi(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}var Pl={exports:{}},Dl=String,Ll=function(){return{isColorSupported:!1,reset:Dl,bold:Dl,dim:Dl,italic:Dl,underline:Dl,inverse:Dl,hidden:Dl,strikethrough:Dl,black:Dl,red:Dl,green:Dl,yellow:Dl,blue:Dl,magenta:Dl,cyan:Dl,white:Dl,gray:Dl,bgBlack:Dl,bgRed:Dl,bgGreen:Dl,bgYellow:Dl,bgBlue:Dl,bgMagenta:Dl,bgCyan:Dl,bgWhite:Dl}};Pl.exports=Ll(),Pl.exports.createColors=Ll;var Bl=Pl.exports,Nl={},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),Fl=Rl(jl),Ul=Bl,zl=Fl,ql=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof 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}Ui(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof 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=Ul.isColorSupported),zl&&e&&(r=zl(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=Ul.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(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}(Xi(Error)),Hl=ql;ql.default=ql;var $l={};$l.isClean=Symbol("isClean"),$l.my=Symbol("my");var Wl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Vl(e){return e[0].toUpperCase()+e.slice(1)}var Xl=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("undefined"!==typeof 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");var n=e.parent,i=0;while(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){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;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&&(n=e.raws[t],"undefined"!==typeof n))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 Wl[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Vl(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Wl[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.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("undefined"!==typeof 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&&(t=e.raws.after,"undefined"!==typeof t))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&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.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&&(t=e.raws.semicolon,"undefined"!==typeof t))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}(),Yl=Xl;Xl.default=Xl;var Gl=Yl;function Jl(e,t){var r=new Gl(t);r.stringify(e)}var Kl=Jl;Jl.default=Jl;var Zl=$l.isClean,Ql=$l.my,eh=Hl,th=Yl,rh=Kl;function nh(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="undefined"===typeof i?"undefined":Wi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return nh(e,r)}):("object"===o&&null!==i&&(i=nh(i)),r[n]=i)}return r}var ih=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Zl]=!1,this[Ql]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Gi(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=nh(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 eh(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[Zl]){this[Zl]=!1;var e=this;while(e=e.parent)e[Zl]=!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){t=this.toString();var n=t.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){var r=new th;return r.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=Gi(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(){var e=this;while(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"===("undefined"===typeof e?"undefined":Wi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Wi(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=rh),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)},Ni(e,[{key:"proxyOf",get:function(){return this}}]),e}(),oh=ih;ih.default=ih;var sh=oh,ah=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=ji({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ui(t,e),Ni(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(sh),ch=ah;ah.default=ah;var uh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lh=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=uh[64*Math.random()|0];return t},hh={nanoid:lh},dh=Fl.SourceMapConsumer,ph=Fl.SourceMapGenerator,fh=Fl.existsSync,mh=Fl.readFileSync,gh=Fl.dirname,vh=Fl.join;function yh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wh=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=gh(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new dh(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return yh(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Wi(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=gh(e),fh(e))return this.mapFile=e,mh(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(zi(t,dh))return ph.fromSourceMap(t).toString();if(zi(t,ph))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=vh(gh(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}(),bh=wh;wh.default=wh;var _h=Fl.SourceMapConsumer,kh=Fl.SourceMapGenerator,Sh=Fl.fileURLToPath,xh=Fl.pathToFileURL,Ch=Fl.isAbsolute,Eh=Fl.resolve,Ah=hh.nanoid,Oh=Fl,Ih=Hl,Th=bh,Mh=Symbol("fromOffsetCache"),Rh=Boolean(_h&&kh),Ph=Boolean(Eh&&Ch),Dh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Wi(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&&(!Ph||/^\w+:\/\//.test(t.from)||Ch(t.from)?this.file=t.from:this.file=Eh(t.from)),Ph&&Rh){var r=new Th(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 "+Ah(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"===("undefined"===typeof t?"undefined":Wi(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 d=this.origin(t,r,o,s);return i=d?new Ih(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Ih(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(xh&&(i.input.url=xh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Mh])r=this[Mh];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Mh]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Eh(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=Ch(a.source)?xh(a.source):new URL(a.source,this.map.consumer().sourceRoot||xh(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(!Sh)throw new Error("file: protocol is not available in this PostCSS build");c.file=Sh(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=ji({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ni(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Lh=Dh;Dh.default=Dh,Oh&&Oh.registerInput&&Oh.registerInput(Dh);var Bh=Fl.SourceMapConsumer,Nh=Fl.SourceMapGenerator,jh=Fl.dirname,Fh=Fl.relative,Uh=Fl.resolve,zh=Fl.sep,qh=Fl.pathToFileURL,Hh=Lh,$h=Boolean(Bh&&Nh),Wh=Boolean(jh&&Uh&&Fh&&zh),Vh=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=Gi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||jh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Bh(r.text),o.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--)e=this.root.nodes[t],"comment"===e.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(),Wh&&$h&&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=Nh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Nh({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 Nh({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),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&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()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof 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?jh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=jh(Uh(r,this.mapOpts.annotation)));var n=Fh(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 Hh(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(qh){var r=qh(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;"\\"===zh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Xh=Vh,Yh=oh,Gh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ui(t,e),t}(Yh),Jh=Gh;Gh.default=Gh;var Kh,Zh,Qh,ed,td=$l.isClean,rd=$l.my,nd=ch,id=Jh,od=oh;function sd(e){return e.map(function(e){return e.nodes&&(e.nodes=sd(e.nodes)),delete e.source,e})}function ad(e){if(e[td]=!1,e.proxyOf.nodes)for(var t,r=Gi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;ad(n)}}var cd=function(e){function t(){return e.apply(this,arguments)||this}Ui(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=Gi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Gi(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=Gi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;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=Gi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(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=Gi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=sd(Kh(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Gi(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=Gi(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("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new nd(e)]}else if(e.selector)e=[new Zh(e)];else if(e.name)e=[new Qh(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new id(e)]}var l=e.map(function(e){return e[rd]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[td]&&ad(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},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=Gi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Gi(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=Gi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.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],t>=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(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?zi(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?zi(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?zi(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)}))},Ni(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}(od);cd.registerParse=function(e){Kh=e},cd.registerRule=function(e){Zh=e},cd.registerAtRule=function(e){Qh=e},cd.registerRoot=function(e){ed=e};var ud=cd;cd.default=cd,cd.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Qh.prototype):"rule"===e.type?Object.setPrototypeOf(e,Zh.prototype):"decl"===e.type?Object.setPrototypeOf(e,nd.prototype):"comment"===e.type?Object.setPrototypeOf(e,id.prototype):"root"===e.type&&Object.setPrototypeOf(e,ed.prototype),e[rd]=!0,e.nodes&&e.nodes.forEach(function(e){cd.rebuild(e)})};var ld,hd,dd=ud,pd=function(e){function t(t){var r;return r=e.call(this,ji({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new ld(new hd,this,e);return t.stringify()},t}(dd);pd.registerLazyResult=function(e){ld=e},pd.registerProcessor=function(e){hd=e};var fd=pd;pd.default=pd;var md=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]}var t=e.prototype;return t.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}(),gd=md;md.default=md;var vd=gd,yd=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 vd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ni(e,[{key:"content",get:function(){return this.css}}]),e}(),wd=yd;yd.default=yd;var bd="'".charCodeAt(0),_d='"'.charCodeAt(0),kd="\\".charCodeAt(0),Sd="/".charCodeAt(0),xd="\n".charCodeAt(0),Cd=" ".charCodeAt(0),Ed="\f".charCodeAt(0),Ad="\t".charCodeAt(0),Od="\r".charCodeAt(0),Id="[".charCodeAt(0),Td="]".charCodeAt(0),Md="(".charCodeAt(0),Rd=")".charCodeAt(0),Pd="{".charCodeAt(0),Dd="}".charCodeAt(0),Ld=";".charCodeAt(0),Bd="*".charCodeAt(0),Nd=":".charCodeAt(0),jd="@".charCodeAt(0),Fd=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ud=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zd=/.[\r\n"'(/\\]/,qd=/[\da-f]/i,Hd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case xd:case Cd:case Ad:case Od:case Ed:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Cd||r===xd||r===Ad||r===Od||r===Ed);h=["space",d.slice(m,n)],m=n-1;break;case Id:case Td:case Pd:case Dd:case Nd:case Ld:case Rd:var y=String.fromCharCode(r);h=[y,y,m];break;case Md:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==bd&&l!==_d&&l!==Cd&&l!==xd&&l!==Ad&&l!==Ed&&l!==Od){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===kd)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||zd.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case bd:case _d:i=r===bd?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===kd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case jd:Fd.lastIndex=m+1,Fd.test(d),n=0===Fd.lastIndex?d.length-1:Fd.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case kd:n=m,s=!0;while(d.charCodeAt(n+1)===kd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Sd&&r!==Cd&&r!==xd&&r!==Ad&&r!==Od&&r!==Ed&&(n+=1,qd.test(d.charAt(n)))){while(qd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Cd&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Sd&&d.charCodeAt(m+1)===Bd?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Ud.lastIndex=m+1,Ud.test(d),n=0===Ud.lastIndex?d.length-1:Ud.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},$d=ud,Wd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ui(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}($d),Vd=Wd;Wd.default=Wd,$d.registerAtRule(Wd);var Xd,Yd,Gd=ud,Jd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ui(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=Gi(i);!(o=s()).done;){var a=o.value;a.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){void 0===e&&(e={});var t=new Xd(new Yd,this,e);return t.stringify()},t}(Gd);Jd.registerLazyResult=function(e){Xd=e},Jd.registerProcessor=function(e){Yd=e};var Kd=Jd;Jd.default=Jd,Gd.registerRoot(Jd);var Zd={comma:function(e){return Zd.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Zd.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Gi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},Qd=Zd;Zd.default=Zd;var ep=ud,tp=Qd,rp=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ui(t,e),Ni(t,[{key:"selectors",get:function(){return tp.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}(ep),np=rp;rp.default=rp,ep.registerRule(rp);var ip=ch,op=Hd,sp=Jh,ap=Vd,cp=Kd,up=np,lp={empty:!0,space:!0};function hp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var dp=function(){function e(e){this.input=e,this.root=new cp,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 ap;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===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){n=a.length-1,r=a[n];while(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;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;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=Gi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(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 sp;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=op(this.input)},t.decl=function(e,t){var r=new ip;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||hp(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[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));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)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}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(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 up;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){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(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)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[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);break}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)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",lp[a]||lp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new up;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},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}(),pp=dp,fp=ud,mp=pp,gp=Lh;function vp(e,t){var r=new gp(e,t),n=new mp(r);try{n.parse()}catch(i){throw i}return n.root}var yp=vp;vp.default=vp,fp.registerParse(vp);var wp=$l.isClean,bp=$l.my,_p=Xh,kp=Kl,Sp=ud,xp=fd,Cp=wd,Ep=yp,Ap=Kd,Op={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ip={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},Tp={Once:!0,postcssPlugin:!0,prepare:!0},Mp=0;function Rp(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&"function"===typeof e.then}function Pp(e){var t=!1,r=Op[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Mp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Mp,r+"Exit"]:[r,r+"Exit"]}function Dp(e){var t;return t="document"===e.type?["Document",Mp,"DocumentExit"]:"root"===e.type?["Root",Mp,"RootExit"]:Pp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Lp(e){return e[wp]=!1,e.nodes&&e.nodes.forEach(function(e){return Lp(e)}),e}var Bp={},Np=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Wi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(zi(r,e)||zi(r,Cp))i=Lp(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ep;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[bp]&&Sp.rebuild(i)}else i=Lp(r);this.result=new Cp(t,i,n),this.helpers=ji({},Bp,{postcss:Bp,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.prepare?ji({},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);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}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=Gi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Wi(i)))for(var o in i){if(!Ip[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Tp[o])if("object"===Wi(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 Di(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Ji(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Rp(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[wp])return[3,14];o[wp]=!0,s=[Dp(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Rp(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.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 Ji(this,function(a){switch(a.label){case 0:t=d.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=Gi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Ki(l())];case 16:p.sent(),p.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"===("undefined"===typeof e?"undefined":Wi(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 Rp(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(n){throw this.handleError(n)}},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=kp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new _p(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[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=Gi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Rp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[wp])i[wp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Gi(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 this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Gi(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(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Rp(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(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[wp])return a[wp]=!0,void e.push(Dp(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Mp)return void(r.nodes&&r.nodes.length&&(r[wp]=!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[wp]=!0;for(var r,n=Pp(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(o===Mp)e.nodes&&e.each(function(e){e[wp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ni(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}();Np.registerPostcss=function(e){Bp=e};var jp=Np;Np.default=Np,Ap.registerLazyResult(Np),xp.registerLazyResult(Np);var Fp=Xh,Up=Kl,zp=yp,qp=wd,Hp=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=Up;this.result=new qp(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 Fp(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 this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ni(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=zp;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),$p=Hp;Hp.default=Hp;var Wp=$p,Vp=jp,Xp=fd,Yp=Kd,Gp=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=Gi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Wi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Wi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Wi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Vp(this,e,t):new Wp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Jp=Gp;Gp.default=Gp,Yp.registerProcessor(Gp),Xp.registerProcessor(Gp);var Kp=ch,Zp=bh,Qp=Jh,ef=Vd,tf=Lh,rf=Kd,nf=np;function of(e,t){if(Array.isArray(e))return e.map(function(e){return of(e)});var r=e.inputs,n=Hi(e,["inputs"]);if(r){t=[];for(var i,o=Gi(r);!(i=o()).done;){var s=i.value,a=ji({},s,{__proto__:tf.prototype});a.map&&(a.map=ji({},a.map,{__proto__:Zp.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return of(e,t)})),n.source){var c=n.source,u=c.inputId,l=Hi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new rf(n);if("decl"===n.type)return new Kp(n);if("rule"===n.type)return new nf(n);if("comment"===n.type)return new Qp(n);if("atrule"===n.type)return new ef(n);throw new Error("Unknown node type: "+e.type)}var sf=of;of.default=of;var af=Hl,cf=ch,uf=jp,lf=ud,hf=Jp,df=Kl,pf=sf,ff=fd,mf=gd,gf=Jh,vf=Vd,yf=wd,wf=Lh,bf=yp,_f=Qd,kf=np,Sf=Kd,xf=oh;function Cf(){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 hf(t)}Cf.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 hf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Cf([i(r)]).process(e,t)},i},Cf.stringify=df,Cf.parse=bf,Cf.fromJSON=pf,Cf.list=_f,Cf.comment=function(e){return new gf(e)},Cf.atRule=function(e){return new vf(e)},Cf.decl=function(e){return new cf(e)},Cf.rule=function(e){return new kf(e)},Cf.root=function(e){return new Sf(e)},Cf.document=function(e){return new ff(e)},Cf.CssSyntaxError=af,Cf.Declaration=cf,Cf.Container=lf,Cf.Processor=hf,Cf.Document=ff,Cf.Comment=gf,Cf.Warning=mf,Cf.AtRule=vf,Cf.Result=yf,Cf.Input=wf,Cf.Rule=kf,Cf.Root=Sf,Cf.Node=xf,uf.registerPostcss(Cf);var Ef=Cf;Cf.default=Cf;var Af=Ml(Ef);Af.stringify,Af.fromJSON,Af.plugin,Af.parse,Af.list,Af.document,Af.comment,Af.atRule,Af.rule,Af.decl,Af.root,Af.CssSyntaxError,Af.Declaration,Af.Container,Af.Processor,Af.Document,Af.Comment,Af.Warning,Af.AtRule,Af.Result,Af.Input,Af.Rule,Af.Root,Af.Node;var Of=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Tl(this,"parentElement",null),Tl(this,"parentNode",null),Tl(this,"ownerDocument"),Tl(this,"firstChild",null),Tl(this,"lastChild",null),Tl(this,"previousSibling",null),Tl(this,"nextSibling",null),Tl(this,"ELEMENT_NODE",1),Tl(this,"TEXT_NODE",3),Tl(this,"nodeType"),Tl(this,"nodeName"),Tl(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!zi(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(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"},Ni(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),If={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Tf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mf={},Rf=function(){return!!globalThis.Zone};function Pf(e){if(Mf[e])return Mf[e];var t=globalThis[e],r=t.prototype,n=e in If?If[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 Tf?Tf[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&&!Rf())return Mf[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?Mf[e]=u:r}catch(l){return r}}var Df={};function Lf(e,t,r){var n,i=e+"."+String(r);if(Df[i])return Df[i].call(t);var o=Pf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Df[i]=s,s.call(t)):t[r]}var Bf={};function Nf(e,t,r){var n=e+"."+String(r);if(Bf[n])return Bf[n].bind(t);var i=Pf(e),o=i[r];return"function"!==typeof o?t[r]:(Bf[n]=o,o.bind(t))}function jf(e){return Lf("Node",e,"childNodes")}function Ff(e){return Lf("Node",e,"parentNode")}function Uf(e){return Lf("Node",e,"parentElement")}function zf(e){return Lf("Node",e,"textContent")}function qf(e,t){return Nf("Node",e,"contains")(t)}function Hf(e){return Nf("Node",e,"getRootNode")()}function $f(e){return e&&"host"in e?Lf("ShadowRoot",e,"host"):null}function Wf(e){return e.styleSheets}function Vf(e){return e&&"shadowRoot"in e?Lf("Element",e,"shadowRoot"):null}function Xf(e,t){return Lf("Element",e,"querySelector")(t)}function Yf(e,t){return Lf("Element",e,"querySelectorAll")(t)}function Gf(){return Pf("MutationObserver").constructor}function Jf(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(o){return function(){}}}var Kf={childNodes:jf,parentNode:Ff,parentElement:Uf,textContent:zf,contains:qf,getRootNode:Hf,host:$f,styleSheets:Wf,shadowRoot:Vf,querySelector:Xf,querySelectorAll:Yf,mutationObserver:Gf,patch:Jf};function Zf(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)}}var Qf="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.",em={map:{},getId:function(){return console.error(Qf),-1},getNode:function(){return console.error(Qf),null},removeNodeFromMap:function(){console.error(Qf)},has:function(){return console.error(Qf),!1},reset:function(){console.error(Qf)}};function tm(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))}}function rm(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 rm(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(em=new Proxy(em,{get:function(e,t,r){return"map"===t&&console.error(Qf),Reflect.get(e,t,r)}}));var nm=Date.now;function im(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=Kf.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=Kf.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function om(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function am(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:Kf.parentElement(e);return t}function cm(e,t,r,n){if(!e)return!1;var i=am(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(bs(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function um(e,t){return-1!==t.getId(e)}function lm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===as}function hm(e,t){if(Mo(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Kf.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||hm(n,t))}function dm(e){return Boolean(e.changedTouches)}function pm(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function fm(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function mm(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function gm(e){return!!e&&(zi(e,Of)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Kf.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nm=function(){return(new Date).getTime()});var vm=function(){function e(){to(this,"id",1),to(this,"styleIDMap",new WeakMap),to(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}();function ym(e){var t,r=null;return"getRootNode"in e&&(null==(t=Kf.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Kf.host(Kf.getRootNode(e))&&(r=Kf.host(Kf.getRootNode(e))),r}function wm(e){var t,r=e;while(t=ym(r))r=t;return r}function bm(e){var t=e.ownerDocument;if(!t)return!1;var r=wm(e);return Kf.contains(t,r)}function _m(e){var t=e.ownerDocument;return!!t&&(Kf.contains(t,e)||bm(e))}var km=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(km||{}),Sm=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(Sm||{}),xm=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(xm||{}),Cm=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(Cm||{}),Em=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Em||{}),Am=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(Am||{}),Om=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}(Om||{});function Im(e){return"__ln"in e}var Tm,Mm=function(){function e(){to(this,"length",0),to(this,"head",null),to(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&&Im(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&&Im(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}(),Rm=function(e,t){return e+"@"+t},Pm=function(){function e(){var e=this;to(this,"frozen",!1),to(this,"locked",!1),to(this,"texts",[]),to(this,"attributes",[]),to(this,"attributeMap",new WeakMap),to(this,"removes",[]),to(this,"mapRemoves",[]),to(this,"movedMap",{}),to(this,"addedSet",new Set),to(this,"movedSet",new Set),to(this,"droppedSet",new Set),to(this,"removesSubTreeCache",new Set),to(this,"mutationCb"),to(this,"blockClass"),to(this,"blockSelector"),to(this,"maskTextClass"),to(this,"maskTextSelector"),to(this,"inlineStylesheet"),to(this,"maskInputOptions"),to(this,"maskTextFn"),to(this,"maskInputFn"),to(this,"keepIframeSrcFn"),to(this,"recordCanvas"),to(this,"inlineImages"),to(this,"slimDOMOptions"),to(this,"dataURLOptions"),to(this,"doc"),to(this,"mirror"),to(this,"iframeManager"),to(this,"stylesheetManager"),to(this,"shadowDomManager"),to(this,"canvasManager"),to(this,"processedNodeManager"),to(this,"unattachedDoc"),to(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),to(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Mm,i=function(t){var r=t,n=as;while(n===as)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=Kf.parentNode(o);if(s&&_m(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=Mo(s)?e.mirror.getId(ym(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ts(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){fm(t,e.mirror)&&e.iframeManager.addIframe(t),mm(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),gm(o)&&e.shadowDomManager.addShadowRoot(Kf.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))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();if("IFRAME"===s.nodeName)try{e.iframeManager.removeIframe(s)}catch(E){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(s);e.mirror.removeNodeFromMap(s)}for(var a,c=Gi(e.movedSet);!(a=c()).done;){var u=a.value;Bm(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(Kf.parentNode(u))||o(u)}for(var l,h=Gi(e.addedSet);!(l=h()).done;){var d=l.value;jm(e.droppedSet,d)||Bm(e.removesSubTreeCache,d,e.mirror)?jm(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var m=e.mirror.getId(Kf.parentNode(p.value)),g=i(p.value);-1!==m&&-1!==g&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(Kf.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=Kf.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=Kf.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=Kf.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))}}),to(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(Kf.childNodes(t),function(e){return Kf.textContent(e)||""}).join("");r.attributes.value=qo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Vo(t),value:n,maskInputFn:e.maskInputFn})}),to(this,"processMutation",function(t){if(!lm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Kf.textContent(t.target);cm(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:_s(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,am(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=Vo(n);o=qo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(cm(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"),!ys(n.tagName,i))if(a.attributes[i]=vs(e.doc,Ho(n.tagName),Ho(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=Gi(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=Gi(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!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(cm(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=Mo(t.target)?e.mirror.getId(Kf.host(t.target)):e.mirror.getId(t.target);cm(t.target,e.blockClass,e.blockSelector,!1)||lm(r,e.mirror,e.slimDOMOptions)||!um(r,e.mirror)||(e.addedSet.has(r)?(Dm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||hm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Rm(n,i)]?Dm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Mo(t.target)||!Ro(t.target))||void 0}),Lm(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),to(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(lm(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[Rm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);cm(t,e.blockClass,e.blockSelector,!1)||(Kf.childNodes(t).forEach(function(t){return e.genAdds(t)}),gm(t)&&Kf.childNodes(Kf.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,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 Dm(e,t){e.delete(t),Kf.childNodes(t).forEach(function(t){return Dm(e,t)})}function Lm(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),Kf.childNodes(n).forEach(function(e){return r.push(e)}))}}function Bm(e,t,r){return 0!==e.size&&Nm(e,t)}function Nm(e,t,r){var n=Kf.parentNode(t);return!!n&&e.has(n)}function jm(e,t){return 0!==e.size&&Fm(e,t)}function Fm(e,t){var r=Kf.parentNode(t);return!!r&&(!!e.has(r)||Fm(e,r))}function Um(e){Tm=e}function zm(){Tm=void 0}var qm=function(e){if(!Tm)return e;var t=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(i){if(Tm&&!0===Tm(i))return;throw i}};return t},Hm=[];function $m(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(r){}return e&&e.target}function Wm(e,t){var r=new Pm;Hm.push(r),r.init(e);var n=new(Gf())(qm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Vm(e){for(var t=Hm.length-1;t>=0;t--){var r=Hm[t];r.getDoc()===e&&Hm.splice(t,1)}}function Xm(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=tm(qm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=qm(tm(qm(function(e){var t=$m(e),r=dm(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=nm()),c.push({x:n,y:s,id:i.getId(t),timeOffset:nm()-o}),u("undefined"!==typeof DragEvent&&zi(e,DragEvent)?Sm.Drag:zi(e,MouseEvent)?Sm.MouseMove:Sm.TouchMove)}),s,{trailing:!1})),h=[Zf("mousemove",l,n),Zf("touchmove",l,n),Zf("drag",l,n)];return qm(function(){h.forEach(function(e){return e()})})}function Ym(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,l=function(e){return function(r){var s=$m(r);if(!cm(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Cm.Mouse;break;case"touch":a=Cm.Touch;break;case"pen":a=Cm.Pen;break}a===Cm.Touch?xm[e]===xm.MouseDown?c="TouchStart":xm[e]===xm.MouseUp&&(c="TouchEnd"):Cm.Pen}else dm(r)&&(a=Cm.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Cm.Touch||c.startsWith("Mouse")&&a===Cm.Mouse)&&(a=null)):xm[e]===xm.Click&&(a=u,u=null);var l=dm(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;qm(t)(ji({type:xm[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(xm).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Ho(e),n=l(e);if(window.PointerEvent)switch(xm[e]){case xm.MouseDown:case xm.MouseUp:t=t.replace("mouse","pointer");break;case xm.TouchStart:case xm.TouchEnd:return}c.push(Zf(t,n,r))}),qm(function(){c.forEach(function(e){return e()})})}function Gm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=qm(tm(qm(function(e){var s=$m(e);if(s&&!cm(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=im(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 Zf("scroll",a,r)}function Jm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=qm(tm(qm(function(){var e=om(),t=sm();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return Zf("resize",s,n)}var Km=["INPUT","TEXTAREA","SELECT"],Zm=new WeakMap;function Qm(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 d(e){var t=$m(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Kf.parentElement(t)),t&&l&&!(Km.indexOf(l)<0)&&!cm(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=Vo(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=qo({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=Zm.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Zm.set(e,r);var o=n.getId(e);qm(t)(ji({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return Zf(e,qm(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v,y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=m).push.apply(v,[].concat(w.map(function(e){return rm(e[0],e[1],{set:function(){qm(d)({target:this,isTrusted:!1})}},!1,g)})));return qm(function(){m.forEach(function(e){return e()})})}function eg(e){var t=[];function r(e,t){if(hg("CSSGroupingRule")&&zi(e.parentRule,CSSGroupingRule)||hg("CSSMediaRule")&&zi(e.parentRule,CSSMediaRule)||hg("CSSSupportsRule")&&zi(e.parentRule,CSSSupportsRule)||hg("CSSConditionRule")&&zi(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function tg(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function rg(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:qm(function(e,t,o){var s=o[0],a=o[1],c=tg(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:qm(function(e,t,o){var s=o[0],a=tg(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:qm(function(e,t,o){var s=o[0],a=tg(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:qm(function(e,t,o){var s=o[0],a=tg(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={};dg("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(dg("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),dg("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),dg("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:qm(function(e,t,o){var s=o[0],a=o[1],c=tg(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(eg(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:qm(function(e,t,o){var s=o[0],a=tg(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(eg(t),[s])}]}),e.apply(t,o)})})}),qm(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})})}function ng(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Kf.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(n){}return r}}),qm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function ig(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:qm(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 d=tg(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:eg(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:qm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=tg(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:eg(t.parentRule)}),e.apply(t,s)})}),qm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function og(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=qm(function(e){return tm(qm(function(o){var s=$m(o);if(s&&!cm(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=[Zf("play",a(Am.Play),s),Zf("pause",a(Am.Pause),s),Zf("seeked",a(Am.Seeked),s),Zf("volumechange",a(Am.VolumeChange),s),Zf("ratechange",a(Am.RateChange),s)];return qm(function(){c.forEach(function(e){return e()})})}function sg(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=Jf(r.fonts,"add",function(e){return function(r){return setTimeout(qm(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),qm(function(){i.forEach(function(e){return e()})})}function ag(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=qm(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,d=l.startOffset,p=l.endContainer,f=l.endOffset,m=cm(h,n,i,!0)||cm(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),Zf("selectionchange",a)}function cg(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=Jf(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function ug(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,d=e.fontCb,p=e.selectionCb,f=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));d.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));p.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));f.apply(void 0,[].concat(r))}}function lg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};ug(e,t),e.recordDOM&&(r=Wm(e,e.doc));var i=Xm(e),o=Ym(e),s=Gm(e),a=Jm(e,{win:n}),c=Qm(e),u=og(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=rg(e,{win:n}),h=ng(e,e.doc),d=ig(e,{win:n}),e.collectFonts&&(p=sg(e)));for(var f,m=ag(e),g=cg(e),v=[],y=Gi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return qm(function(){Hm.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),m(),g(),v.forEach(function(e){return e()})})}function hg(e){return"undefined"!==typeof window[e]}function dg(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var pg=function(){function e(e){to(this,"iframeIdToRemoteIdMap",new WeakMap),to(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}(),fg=function(){function e(e){to(this,"iframes",new WeakMap),to(this,"crossOriginIframeMap",new WeakMap),to(this,"crossOriginIframeMirror",new pg(cs)),to(this,"crossOriginIframeStyleMirror"),to(this,"crossOriginIframeRootIdMap",new WeakMap),to(this,"iframeContentDocumentMap",new WeakMap),to(this,"iframeObserverCleanupMap",new WeakMap),to(this,"mirror"),to(this,"mutationCb"),to(this,"wrappedEmit"),to(this,"loadListener"),to(this,"stylesheetManager"),to(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pg(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(n){}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){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case km.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:km.IncrementalSnapshot,data:{source:Sm.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case km.Meta:case km.Load:case km.DomContentLoaded:return!1;case km.Plugin:return t;case km.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case km.IncrementalSnapshot:switch(t.data.source){case Sm.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 Sm.Drag:case Sm.TouchMove:case Sm.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sm.ViewportResize:return!1;case Sm.MediaInteraction:case Sm.MouseInteraction:case Sm.Scroll:case Sm.CanvasMutation:case Sm.Input:return this.replaceIds(t.data,e,["id"]),t;case Sm.StyleSheetRule:case Sm.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sm.Font:return t;case Sm.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Sm.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=Gi(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===Om.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),mg=function(){function e(e){to(this,"shadowDoms",new WeakSet),to(this,"mutationCb"),to(this,"scrollCb"),to(this,"bypassOptions"),to(this,"mirror"),to(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(Ro(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Wm(ji({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Gm(ji({},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(Kf.host(e))),r.restoreHandlers.push(ng({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(Jf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=Kf.shadowRoot(this);return o&&_m(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),gg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vg="undefined"===typeof Uint8Array?[]:new Uint8Array(256),yg=0;yg<gg.length;yg++)vg[gg.charCodeAt(yg)]=yg;var wg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=gg[r[t]>>2],i+=gg[(3&r[t])<<4|r[t+1]>>4],i+=gg[(15&r[t+1])<<2|r[t+2]>>6],i+=gg[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},bg=new Map;function _g(e,t){var r=bg.get(e);return r||(r=new Map,bg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var kg=function(e,t,r){if(e&&(Cg(e,t)||"object"===("undefined"===typeof e?"undefined":Wi(e)))){var n=e.constructor.name,i=_g(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function Sg(e,t,r){if(zi(e,Array))return e.map(function(e){return Sg(e,t,r)});if(null===e)return e;if(zi(e,Float32Array)||zi(e,Float64Array)||zi(e,Int32Array)||zi(e,Uint32Array)||zi(e,Uint8Array)||zi(e,Uint16Array)||zi(e,Int16Array)||zi(e,Int8Array)||zi(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(zi(e,ArrayBuffer)){var i=e.constructor.name,o=wg(e);return{rr_type:i,base64:o}}if(zi(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Sg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(zi(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(zi(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(zi(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[Sg(e.data,t,r),e.width,e.height]}}if(Cg(e,t)||"object"===("undefined"===typeof e?"undefined":Wi(e))){var d=e.constructor.name,p=kg(e,t,r);return{rr_type:d,index:p}}return e}var xg=function(e,t,r){return e.map(function(e){return Sg(e,t,r)})},Cg=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return zi(e,t[r])}))};function Eg(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=Jf(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 cm(this.canvas,r,n,!0)||setTimeout(function(){var r=xg(c,t,s);e(s.canvas,{type:Em["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=rm(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Em["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Gi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function Ag(e){return"experimental-webgl"===e?"webgl":e}function Og(e,t,r,n){var i=[];try{var o=Jf(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(!cm(this,t,r,!0)){var c=Ag(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Wi(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(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Ig(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=Jf(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(kg(l,o,this),"tagName"in this.canvas&&!cm(this.canvas,n,i,!0)){var h=xg(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=rm(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=Gi(u);!(s=l()).done;)a();return c}function Tg(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Ig(t.WebGLRenderingContext.prototype,Em.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Ig(t.WebGL2RenderingContext.prototype,Em.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Mg="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Rg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Pg="undefined"!==typeof window&&window.Blob&&new Blob([Rg(Mg)],{type:"text/javascript;charset=utf-8"});function Dg(e){var t;try{if(t=Pg&&(window.URL||window.webkitURL).createObjectURL(Pg),!t)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(n){return new Worker("data:text/javascript;base64,"+Mg,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Lg,Bg,Ng,jg=function(){function e(e){var t=this;to(this,"pendingCanvasMutations",new Map),to(this,"rafStamps",{latestId:0,invokeId:null}),to(this,"mirror"),to(this,"mutationCb"),to(this,"resetObservers"),to(this,"frozen",!1),to(this,"locked",!1),to(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&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=Og(t,r,n,!0),a=new Map,c=new Dg;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:Em["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,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){cm(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(Di(function(e){var r,n,o,s;return Ji(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[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=Og(e,t,r,!1),i=Eg(this.processMutation.bind(this),e,t,r),o=Tg(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){e.type;var t=Hi(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Fg=function(){function e(e){to(this,"trackedLinkElements",new WeakSet),to(this,"mutationCb"),to(this,"adoptedStyleSheetCb"),to(this,"styleMirror",new vm),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:Bo(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Gi(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=Gi(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(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),Ug=function(){function e(){to(this,"nodeMap",new WeakMap),to(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}(),zg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var qg=document.createElement("iframe");document.body.appendChild(qg),Array.from=(null==(Zi=qg.contentWindow)?void 0:Zi.Array.from)||Array.from,document.body.removeChild(qg)}}catch(mA){console.debug("Unable to override Array.from",mA)}var Hg,$g=zo();function Wg(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,m=void 0===f?null:f,g=e.inlineStylesheet,v=void 0===g||g,y=e.maskAllInputs,w=e.maskInputOptions,b=e.slimDOMOptions,_=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,A=e.dataURLOptions,O=void 0===A?{}:A,I=e.mousemoveWait,T=e.recordDOM,M=void 0===T||T,R=e.recordCanvas,P=void 0!==R&&R,D=e.recordCrossOriginIframes,L=void 0!==D&&D,B=e.recordAfter,N=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,F=void 0!==j&&j,U=e.collectFonts,z=void 0!==U&&U,q=e.inlineImages,H=void 0!==q&&q,$=e.plugins,W=e.keepIframeSrcFn,V=void 0===W?function(){return!1}:W,X=e.ignoreCSSAttributes,Y=void 0===X?new Set([]):X,G=e.errorHandler;Um(G);var J=!L||window.parent===window,K=!1;if(!J)try{window.parent.document&&(K=!1)}catch(ve){K=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!K)return function(){};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),$g.reset();var Z,Q=!0===y?{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!==w?w:{password:!0},ee=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};pm();var te=0,re=function(e){for(var t,r=Gi($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};Lg=function(e,i){var o,s=e;if(s.timestamp=nm(),!(null==(o=Hm[0])?void 0:o.isFrozen())||s.type===km.FullSnapshot||s.type===km.IncrementalSnapshot&&s.data.source===Sm.Mutation||Hm.forEach(function(e){return e.unfreeze()}),J)null==t||t(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===km.FullSnapshot)Z=s,te=0;else if(s.type===km.IncrementalSnapshot){if(s.data.source===Sm.Mutation&&s.data.isAttachIframe)return;te++;var c=n&&te>=n,u=r&&s.timestamp-Z.timestamp>r;(c||u)&&Bg(!0)}};for(var ne,ie=function(e){Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Mutation},e)})},oe=function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Scroll},e)})},se=function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.CanvasMutation},e)})},ae=function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.AdoptedStyleSheet},e)})},ce=new Fg({mutationCb:ie,adoptedStyleSheetCb:ae}),ue=new fg({mirror:$g,mutationCb:ie,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:Lg}),le=Gi($||[]);!(ne=le()).done;){var he=ne.value;he.getMirror&&he.getMirror({nodeMirror:$g,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var de=new Ug;Ng=new jg({recordCanvas:P,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:$g,sampling:E.canvas,dataURLOptions:O});var pe=new mg({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:_,recordCanvas:P,inlineImages:H,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ce,canvasManager:Ng,keepIframeSrcFn:V,processedNodeManager:de},mirror:$g});Bg=function(e){if(void 0===e&&(e=!1),M){Lg({type:km.Meta,data:{href:window.location.href,width:sm(),height:om()}},e),ce.reset(),pe.init(),Hm.forEach(function(e){return e.lock()});var t=Ms(document,{mirror:$g,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:_,slimDOM:ee,dataURLOptions:O,recordCanvas:P,inlineImages:H,onSerialize:function(e){fm(e,$g)&&ue.addIframe(e),mm(e,$g)&&ce.trackLinkElement(e),gm(e)&&pe.addShadowRoot(Kf.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:V});if(!t)return console.warn("Failed to snapshot the document");Lg({type:km.FullSnapshot,data:{node:t,initialOffset:im(window)}},e),Hm.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,$g.getId(document))}};try{var fe=[],me=function(e){var t;return qm(lg)({mutationCb:ie,mousemoveCb:function(e,t){return Lg({type:km.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.ViewportResize},e)})},inputCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Input},e)})},mediaInteractionCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Font},e)})},selectionCb:function(e){Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Selection},e)})},customElementCb:function(e){Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:H,userTriggeredOnInput:F,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:k,keepIframeSrcFn:V,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:$g,iframeManager:ue,stylesheetManager:ce,shadowDomManager:pe,processedNodeManager:de,canvasManager:Ng,ignoreCSSAttributes:Y,plugins:(null==(t=null==$?void 0:$.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Lg({type:km.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{var t=e.contentDocument,r=me(t);fe.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,function(){if(n)try{n()}catch(ve){}try{r();var e=fe.indexOf(r);-1!==e&&fe.splice(e,1),Vm(t)}catch(ve){}})}catch(i){console.warn(i)}});var ge=function(){Bg(),fe.push(me(document)),zg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(Zf("DOMContentLoaded",function(){Lg({type:km.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&ge()})),fe.push(Zf("load",function(){Lg({type:km.Load,data:{}}),"load"===N&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),de.destroy(),zg=!1,zm()}}catch(ye){console.warn(ye)}}Wg.addCustomEvent=function(e,t){if(!zg)throw new Error("please add custom event after start recording");Lg({type:km.Custom,data:{tag:e,payload:t}})},Wg.freezePage=function(){Hm.forEach(function(e){return e.freeze()})},Wg.takeFullSnapshot=function(e){if(!zg)throw new Error("please take full snapshot after start recording");Bg(e)},Wg.mirror=$g,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Hg||(Hg={})),Wg.addCustomEvent,Wg.freezePage,Wg.takeFullSnapshot;var Vg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yg={},Gg=function(){return!!globalThis.Zone};function Jg(e){if(Yg[e])return Yg[e];var t=globalThis[e],r=t.prototype,n=e in Vg?Vg[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 Xg?Xg[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&&!Gg())return Yg[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?Yg[e]=u:r}catch(l){return r}}var Kg={};function Zg(e,t,r){var n,i=e+"."+String(r);if(Kg[i])return Kg[i].call(t);var o=Jg(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Kg[i]=s,s.call(t)):t[r]}var Qg={};function ev(e,t,r){var n=e+"."+String(r);if(Qg[n])return Qg[n].bind(t);var i=Jg(e),o=i[r];return"function"!==typeof o?t[r]:(Qg[n]=o,o.bind(t))}function tv(e){return Zg("Node",e,"childNodes")}function rv(e){return Zg("Node",e,"parentNode")}function nv(e){return Zg("Node",e,"parentElement")}function iv(e){return Zg("Node",e,"textContent")}function ov(e,t){return ev("Node",e,"contains")(t)}function sv(e){return ev("Node",e,"getRootNode")()}function av(e){return e&&"host"in e?Zg("ShadowRoot",e,"host"):null}function cv(e){return e.styleSheets}function uv(e){return e&&"shadowRoot"in e?Zg("Element",e,"shadowRoot"):null}function lv(e,t){return Zg("Element",e,"querySelector")(t)}function hv(e,t){return Zg("Element",e,"querySelectorAll")(t)}function dv(){return Jg("MutationObserver").constructor}function pv(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(o){return function(){}}}var fv={childNodes:tv,parentNode:rv,parentElement:nv,textContent:iv,contains:ov,getRootNode:sv,host:av,styleSheets:cv,shadowRoot:uv,querySelector:lv,querySelectorAll:hv,mutationObserver:dv,patch:pv};function mv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return mv(fv.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return mv(fv.parentNode(e),t)}function gv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function vv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return zi(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}var yv={exports:{}},wv=String,bv=function(){return{isColorSupported:!1,reset:wv,bold:wv,dim:wv,italic:wv,underline:wv,inverse:wv,hidden:wv,strikethrough:wv,black:wv,red:wv,green:wv,yellow:wv,blue:wv,magenta:wv,cyan:wv,white:wv,gray:wv,bgBlack:wv,bgRed:wv,bgGreen:wv,bgYellow:wv,bgBlue:wv,bgMagenta:wv,bgCyan:wv,bgWhite:wv}};yv.exports=bv(),yv.exports.createColors=bv;var _v=yv.exports,kv={},Sv=Object.freeze(Object.defineProperty({__proto__:null,default:kv},Symbol.toStringTag,{value:"Module"})),xv=vv(Sv),Cv=_v,Ev=xv,Av=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof 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}Ui(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof 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=Cv.isColorSupported),Ev&&e&&(r=Ev(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=Cv.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(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}(Xi(Error)),Ov=Av;Av.default=Av;var Iv={};Iv.isClean=Symbol("isClean"),Iv.my=Symbol("my");var Tv={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Mv(e){return e[0].toUpperCase()+e.slice(1)}var Rv=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("undefined"!==typeof 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");var n=e.parent,i=0;while(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){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;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&&(n=e.raws[t],"undefined"!==typeof n))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 Tv[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Mv(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Tv[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof 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&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.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("undefined"!==typeof 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&&(t=e.raws.after,"undefined"!==typeof t))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&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.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&&(t=e.raws.semicolon,"undefined"!==typeof t))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}(),Pv=Rv;Rv.default=Rv;var Dv=Pv;function Lv(e,t){var r=new Dv(t);r.stringify(e)}var Bv=Lv;Lv.default=Lv;var Nv=Iv.isClean,jv=Iv.my,Fv=Ov,Uv=Pv,zv=Bv;function qv(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="undefined"===typeof i?"undefined":Wi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return qv(e,r)}):("object"===o&&null!==i&&(i=qv(i)),r[n]=i)}return r}var Hv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Nv]=!1,this[jv]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Gi(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=qv(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 Fv(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[Nv]){this[Nv]=!1;var e=this;while(e=e.parent)e[Nv]=!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){t=this.toString();var n=t.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){var r=new Uv;return r.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=Gi(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(){var e=this;while(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"===("undefined"===typeof e?"undefined":Wi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Wi(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=zv),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)},Ni(e,[{key:"proxyOf",get:function(){return this}}]),e}(),$v=Hv;Hv.default=Hv;var Wv=$v,Vv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=ji({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ui(t,e),Ni(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Wv),Xv=Vv;Vv.default=Vv;var Yv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gv=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=Yv[64*Math.random()|0];return t},Jv={nanoid:Gv},Kv=xv.SourceMapConsumer,Zv=xv.SourceMapGenerator,Qv=xv.existsSync,ey=xv.readFileSync,ty=xv.dirname,ry=xv.join;function ny(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var iy=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=ty(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Kv(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ny(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Wi(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=ty(e),Qv(e))return this.mapFile=e,ey(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(zi(t,Kv))return Zv.fromSourceMap(t).toString();if(zi(t,Zv))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=ry(ty(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}(),oy=iy;iy.default=iy;var sy=xv.SourceMapConsumer,ay=xv.SourceMapGenerator,cy=xv.fileURLToPath,uy=xv.pathToFileURL,ly=xv.isAbsolute,hy=xv.resolve,dy=Jv.nanoid,py=xv,fy=Ov,my=oy,gy=Symbol("fromOffsetCache"),vy=Boolean(sy&&ay),yy=Boolean(hy&&ly),wy=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Wi(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&&(!yy||/^\w+:\/\//.test(t.from)||ly(t.from)?this.file=t.from:this.file=hy(t.from)),yy&&vy){var r=new my(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 "+dy(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"===("undefined"===typeof t?"undefined":Wi(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 d=this.origin(t,r,o,s);return i=d?new fy(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new fy(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(uy&&(i.input.url=uy(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[gy])r=this[gy];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[gy]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:hy(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=ly(a.source)?uy(a.source):new URL(a.source,this.map.consumer().sourceRoot||uy(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(!cy)throw new Error("file: protocol is not available in this PostCSS build");c.file=cy(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=ji({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ni(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),by=wy;wy.default=wy,py&&py.registerInput&&py.registerInput(wy);var _y=xv.SourceMapConsumer,ky=xv.SourceMapGenerator,Sy=xv.dirname,xy=xv.relative,Cy=xv.resolve,Ey=xv.sep,Ay=xv.pathToFileURL,Oy=by,Iy=Boolean(_y&&ky),Ty=Boolean(Sy&&Cy&&xy&&Ey),My=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=Gi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Sy(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new _y(r.text),o.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--)e=this.root.nodes[t],"comment"===e.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(),Ty&&Iy&&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=ky.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ky({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 ky({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),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&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()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof 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?Sy(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Sy(Cy(r,this.mapOpts.annotation)));var n=xy(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 Oy(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(Ay){var r=Ay(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;"\\"===Ey&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ry=My,Py=$v,Dy=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ui(t,e),t}(Py),Ly=Dy;Dy.default=Dy;var By,Ny,jy,Fy,Uy=Iv.isClean,zy=Iv.my,qy=Xv,Hy=Ly,$y=$v;function Wy(e){return e.map(function(e){return e.nodes&&(e.nodes=Wy(e.nodes)),delete e.source,e})}function Vy(e){if(e[Uy]=!1,e.proxyOf.nodes)for(var t,r=Gi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Vy(n)}}var Xy=function(e){function t(){return e.apply(this,arguments)||this}Ui(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=Gi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Gi(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=Gi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;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=Gi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(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=Gi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=Wy(By(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Gi(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=Gi(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("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new qy(e)]}else if(e.selector)e=[new Ny(e)];else if(e.name)e=[new jy(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Hy(e)]}var l=e.map(function(e){return e[zy]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Uy]&&Vy(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},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=Gi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Gi(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=Gi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.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],t>=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(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?zi(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?zi(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?zi(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)}))},Ni(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}($y);Xy.registerParse=function(e){By=e},Xy.registerRule=function(e){Ny=e},Xy.registerAtRule=function(e){jy=e},Xy.registerRoot=function(e){Fy=e};var Yy=Xy;Xy.default=Xy,Xy.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,jy.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ny.prototype):"decl"===e.type?Object.setPrototypeOf(e,qy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Hy.prototype):"root"===e.type&&Object.setPrototypeOf(e,Fy.prototype),e[zy]=!0,e.nodes&&e.nodes.forEach(function(e){Xy.rebuild(e)})};var Gy,Jy,Ky=Yy,Zy=function(e){function t(t){var r;return r=e.call(this,ji({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new Gy(new Jy,this,e);return t.stringify()},t}(Ky);Zy.registerLazyResult=function(e){Gy=e},Zy.registerProcessor=function(e){Jy=e};var Qy=Zy;Zy.default=Zy;var ew=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]}var t=e.prototype;return t.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}(),tw=ew;ew.default=ew;var rw=tw,nw=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 rw(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ni(e,[{key:"content",get:function(){return this.css}}]),e}(),iw=nw;nw.default=nw;var ow="'".charCodeAt(0),sw='"'.charCodeAt(0),aw="\\".charCodeAt(0),cw="/".charCodeAt(0),uw="\n".charCodeAt(0),lw=" ".charCodeAt(0),hw="\f".charCodeAt(0),dw="\t".charCodeAt(0),pw="\r".charCodeAt(0),fw="[".charCodeAt(0),mw="]".charCodeAt(0),gw="(".charCodeAt(0),vw=")".charCodeAt(0),yw="{".charCodeAt(0),ww="}".charCodeAt(0),bw=";".charCodeAt(0),_w="*".charCodeAt(0),kw=":".charCodeAt(0),Sw="@".charCodeAt(0),xw=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cw=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ew=/.[\r\n"'(/\\]/,Aw=/[\da-f]/i,Ow=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case uw:case lw:case dw:case pw:case hw:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===lw||r===uw||r===dw||r===pw||r===hw);h=["space",d.slice(m,n)],m=n-1;break;case fw:case mw:case yw:case ww:case kw:case bw:case vw:var y=String.fromCharCode(r);h=[y,y,m];break;case gw:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==ow&&l!==sw&&l!==lw&&l!==uw&&l!==dw&&l!==hw&&l!==pw){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===aw)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Ew.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case ow:case sw:i=r===ow?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===aw)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Sw:xw.lastIndex=m+1,xw.test(d),n=0===xw.lastIndex?d.length-1:xw.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case aw:n=m,s=!0;while(d.charCodeAt(n+1)===aw)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==cw&&r!==lw&&r!==uw&&r!==dw&&r!==pw&&r!==hw&&(n+=1,Aw.test(d.charAt(n)))){while(Aw.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===lw&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===cw&&d.charCodeAt(m+1)===_w?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Cw.lastIndex=m+1,Cw.test(d),n=0===Cw.lastIndex?d.length-1:Cw.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Iw=Yy,Tw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ui(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}(Iw),Mw=Tw;Tw.default=Tw,Iw.registerAtRule(Tw);var Rw,Pw,Dw=Yy,Lw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ui(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=Gi(i);!(o=s()).done;){var a=o.value;a.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){void 0===e&&(e={});var t=new Rw(new Pw,this,e);return t.stringify()},t}(Dw);Lw.registerLazyResult=function(e){Rw=e},Lw.registerProcessor=function(e){Pw=e};var Bw=Lw;Lw.default=Lw,Dw.registerRoot(Lw);var Nw={comma:function(e){return Nw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Nw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Gi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},jw=Nw;Nw.default=Nw;var Fw=Yy,Uw=jw,zw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ui(t,e),Ni(t,[{key:"selectors",get:function(){return Uw.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}(Fw),qw=zw;zw.default=zw,Fw.registerRule(zw);var Hw=Xv,$w=Ow,Ww=Ly,Vw=Mw,Xw=Bw,Yw=qw,Gw={empty:!0,space:!0};function Jw(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var Kw=function(){function e(e){this.input=e,this.root=new Xw,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 Vw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===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){n=a.length-1,r=a[n];while(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;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;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=Gi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(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 Ww;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=$w(this.input)},t.decl=function(e,t){var r=new Hw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Jw(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[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));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)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}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(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 Yw;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){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(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)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[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);break}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)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Gw[a]||Gw[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Yw;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},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}(),Zw=Kw,Qw=Yy,eb=Zw,tb=by;function rb(e,t){var r=new tb(e,t),n=new eb(r);try{n.parse()}catch(i){throw i}return n.root}var nb=rb;rb.default=rb,Qw.registerParse(rb);var ib=Iv.isClean,ob=Iv.my,sb=Ry,ab=Bv,cb=Yy,ub=Qy,lb=iw,hb=nb,db=Bw,pb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fb={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},mb={Once:!0,postcssPlugin:!0,prepare:!0},gb=0;function vb(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&"function"===typeof e.then}function yb(e){var t=!1,r=pb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,gb,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,gb,r+"Exit"]:[r,r+"Exit"]}function wb(e){var t;return t="document"===e.type?["Document",gb,"DocumentExit"]:"root"===e.type?["Root",gb,"RootExit"]:yb(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function bb(e){return e[ib]=!1,e.nodes&&e.nodes.forEach(function(e){return bb(e)}),e}var _b={},kb=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Wi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(zi(r,e)||zi(r,lb))i=bb(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=hb;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[ob]&&cb.rebuild(i)}else i=bb(r);this.result=new lb(t,i,n),this.helpers=ji({},_b,{postcss:_b,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.prepare?ji({},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);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(mA){console&&console.error&&console.error(mA)}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=Gi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Wi(i)))for(var o in i){if(!fb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mb[o])if("object"===Wi(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 Di(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Ji(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!vb(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[ib])return[3,14];o[ib]=!0,s=[wb(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!vb(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.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 Ji(this,function(a){switch(a.label){case 0:t=d.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=Gi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Ki(l())];case 16:p.sent(),p.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"===("undefined"===typeof e?"undefined":Wi(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 vb(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(n){throw this.handleError(n)}},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=ab;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new sb(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[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=Gi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(vb(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[ib])i[ib]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Gi(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 this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Gi(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(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(vb(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(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[ib])return a[ib]=!0,void e.push(wb(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===gb)return void(r.nodes&&r.nodes.length&&(r[ib]=!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[ib]=!0;for(var r,n=yb(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(o===gb)e.nodes&&e.each(function(e){e[ib]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ni(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}();kb.registerPostcss=function(e){_b=e};var Sb=kb;kb.default=kb,db.registerLazyResult(kb),ub.registerLazyResult(kb);var xb=Ry,Cb=Bv,Eb=nb,Ab=iw,Ob=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=Cb;this.result=new Ab(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 xb(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 this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ni(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=Eb;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ib=Ob;Ob.default=Ob;var Tb=Ib,Mb=Sb,Rb=Qy,Pb=Bw,Db=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=Gi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Wi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Wi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Wi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Mb(this,e,t):new Tb(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Lb=Db;Db.default=Db,Pb.registerProcessor(Db),Rb.registerProcessor(Db);var Bb=Xv,Nb=oy,jb=Ly,Fb=Mw,Ub=by,zb=Bw,qb=qw;function Hb(e,t){if(Array.isArray(e))return e.map(function(e){return Hb(e)});var r=e.inputs,n=Hi(e,["inputs"]);if(r){t=[];for(var i,o=Gi(r);!(i=o()).done;){var s=i.value,a=ji({},s,{__proto__:Ub.prototype});a.map&&(a.map=ji({},a.map,{__proto__:Nb.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Hb(e,t)})),n.source){var c=n.source,u=c.inputId,l=Hi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new zb(n);if("decl"===n.type)return new Bb(n);if("rule"===n.type)return new qb(n);if("comment"===n.type)return new jb(n);if("atrule"===n.type)return new Fb(n);throw new Error("Unknown node type: "+e.type)}var $b=Hb;Hb.default=Hb;var Wb=Ov,Vb=Xv,Xb=Sb,Yb=Yy,Gb=Lb,Jb=Bv,Kb=$b,Zb=Qy,Qb=tw,e_=Ly,t_=Mw,r_=iw,n_=by,i_=nb,o_=jw,s_=qw,a_=Bw,c_=$v;function u_(){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 Gb(t)}u_.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 Gb).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return u_([i(r)]).process(e,t)},i},u_.stringify=Jb,u_.parse=i_,u_.fromJSON=Kb,u_.list=o_,u_.comment=function(e){return new e_(e)},u_.atRule=function(e){return new t_(e)},u_.decl=function(e){return new Vb(e)},u_.rule=function(e){return new s_(e)},u_.root=function(e){return new a_(e)},u_.document=function(e){return new Zb(e)},u_.CssSyntaxError=Wb,u_.Declaration=Vb,u_.Container=Yb,u_.Processor=Gb,u_.Document=Zb,u_.Comment=e_,u_.Warning=Qb,u_.AtRule=t_,u_.Result=r_,u_.Input=n_,u_.Rule=s_,u_.Root=a_,u_.Node=c_,Xb.registerPostcss(u_);var l_=u_;u_.default=u_;var h_=gv(l_);h_.stringify,h_.fromJSON,h_.plugin,h_.parse,h_.list,h_.document,h_.comment,h_.atRule,h_.rule,h_.decl,h_.root,h_.CssSyntaxError,h_.Declaration,h_.Container,h_.Processor,h_.Document,h_.Comment,h_.Warning,h_.AtRule,h_.Result,h_.Input,h_.Rule,h_.Root,h_.Node;var d_=Object.defineProperty,p_=function(e,t,r){return t in e?d_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},f_=function(e,t,r){return p_(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)};function m_(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(o){return function(){}}}var g_=function(){function e(e){f_(this,"fileName"),f_(this,"functionName"),f_(this,"lineNumber"),f_(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),v_=/(^|@)\S+:\d+/,y_=/^\s*at .*(\S+:\d+|\(native\))/m,w_=/^(eval@)?(\[native code])?$/,b_={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(y_)?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+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(y_)},this);return t.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+)\)$)/);t=r?t.replace(r[0],""):t;var n=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 g_({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(w_)},this);return t.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 g_({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new g_({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 g_({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 g_({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(v_)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new g_({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function __(e){if(!e||!e.outerHTML)return"";var t="";while(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}function k_(e){return"[object Object]"===Object.prototype.toString.call(e)}function S_(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(k_(e[o])&&S_(e[o],t-1))return!0}return!1}function x_(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 r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,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(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":Wi(t)))return t.toString()+"n";if(zi(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=__(u.length?u[0]:null):a[c]=u}return a}return zi(t,Node)?zi(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:zi(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(k_(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!k_(e)||!S_(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var C_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function E_(e,t,r){var n,i=r?Object.assign({},C_,r):C_,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=b_.parse(n).map(function(e){return e.toString()}),s=[x_(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;zi(t.reason,Error)?(r=t.reason,n=[x_("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[x_("Uncaught (in promise)",i.stringifyOptions),x_(t.reason,i.stringifyOptions)]);var o=b_.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,d=Gi(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?m_(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=b_.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return x_(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[x_("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var A_,O_,I_,T_="rrweb/console@1",M_=function(e){return{name:T_,observer:E_,options:e}},R_=xi["setImmediate"],P_=Object.prototype.toString,D_="undefined"!==typeof R_?function(e){return R_(e)}:setTimeout;try{Object.defineProperty({},"x",{}),A_=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(mA){A_=function(e,t,r){return e[t]=r,e}}function L_(e,t){I_.add(e,t),O_||(O_=D_(I_.drain))}function B_(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function N_(){for(var e=0;e<this.chain.length;e++)j_(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function j_(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=B_(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(mA){r.reject(mA)}}function F_(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=B_(e))?L_(function(){var n=new q_(r);try{t.call(e,function(){F_.apply(n,arguments)},function(){U_.apply(n,arguments)})}catch(mA){U_.call(n,mA)}}):(r.msg=e,r.state=1,r.chain.length>0&&L_(N_,r))}catch(mA){U_.call(new q_(r),mA)}}}function U_(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&L_(N_,t))}function z_(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)}function q_(e){this.def=e,this.triggered=!1}function H_(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}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 H_(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&&L_(N_,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){F_.call(t,e)},function(e){U_.call(t,e)})}catch(mA){U_.call(t,mA)}}I_=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;e=t=O_=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var W_,V_=A_({},"constructor",$_,!1);$_.prototype=V_,A_(V_,"__NPO__",0,!1),A_($_,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),A_($_,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),A_($_,"all",function(e){var t=this;return"[object Array]"!==P_.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;z_(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),A_($_,"race",function(e){var t=this;return"[object Array]"!==P_.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");z_(t,e,function(e,t){r(t)},n)})}),W_="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:$_;var X_=864e5,Y_=8e3,G_=Array.prototype,J_=Function.prototype,K_=Object.prototype,Z_=G_.slice,Q_=K_.toString,ek=K_.hasOwnProperty,tk=xi.console,rk=xi.navigator,nk=xi.document,ik=xi.opera,ok=xi.screen,sk=rk.userAgent,ak=J_.bind,ck=G_.forEach,uk=G_.indexOf,lk=G_.map,hk=Array.isArray,dk={},pk={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},fk={log:function(){if(Ai.DEBUG&&!pk.isUndefined(tk)&&tk)try{tk.log.apply(tk,arguments)}catch(mA){pk.each(arguments,function(e){tk.log(e)})}},warn:function(){if(Ai.DEBUG&&!pk.isUndefined(tk)&&tk){var e=["Mixpanel warning:"].concat(pk.toArray(arguments));try{tk.warn.apply(tk,e)}catch(mA){pk.each(e,function(e){tk.warn(e)})}}},error:function(){if(Ai.DEBUG&&!pk.isUndefined(tk)&&tk){var e=["Mixpanel error:"].concat(pk.toArray(arguments));try{tk.error.apply(tk,e)}catch(mA){pk.each(e,function(e){tk.error(e)})}}},critical:function(){if(!pk.isUndefined(tk)&&tk){var e=["Mixpanel error:"].concat(pk.toArray(arguments));try{tk.error.apply(tk,e)}catch(mA){pk.each(e,function(e){tk.error(e)})}}}},mk=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(fk,arguments)}},gk=function(e){return{log:mk(fk.log,e),error:mk(fk.error,e),critical:mk(fk.critical,e)}},vk=function(e){return function(){try{return e.apply(this,arguments)}catch(t){fk.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Ai.DEBUG&&fk.critical(t)}}},yk=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=vk(t[r]))};pk.bind=function(e,t){var r,n;if(ak&&e.bind===ak)return ak.apply(e,Z_.call(arguments,1));if(!pk.isFunction(e))throw new TypeError;return r=Z_.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Z_.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Z_.call(arguments)));return Object(s)===s?s:o},n},pk.each=function(e,t,r){if(null!==e&&void 0!==e)if(ck&&e.forEach===ck)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)===dk)return}else for(var o in e)if(ek.call(e,o)&&t.call(r,e[o],o,e)===dk)return},pk.extend=function(e){return pk.each(Z_.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},pk.isArray=hk||function(e){return"[object Array]"===Q_.call(e)},pk.isFunction=function(e){return"function"===typeof e},pk.isArguments=function(e){return!(!e||!ek.call(e,"callee"))},pk.toArray=function(e){return e?e.toArray?e.toArray():pk.isArray(e)||pk.isArguments(e)?Z_.call(e):pk.values(e):[]},pk.map=function(e,t,r){if(lk&&e.map===lk)return e.map(t,r);var n=[];return pk.each(e,function(e){n.push(t.call(r,e))}),n},pk.keys=function(e){var t=[];return null===e||pk.each(e,function(e,r){t[t.length]=r}),t},pk.values=function(e){var t=[];return null===e||pk.each(e,function(e){t[t.length]=e}),t},pk.include=function(e,t){var r=!1;return null===e?r:uk&&e.indexOf===uk?-1!=e.indexOf(t):(pk.each(e,function(e){if(r||(r=e===t))return dk}),r)},pk.includes=function(e,t){return-1!==e.indexOf(t)},pk.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},pk.isObject=function(e){return e===Object(e)&&!pk.isArray(e)},pk.isEmptyObject=function(e){if(pk.isObject(e)){for(var t in e)if(ek.call(e,t))return!1;return!0}return!1},pk.isUndefined=function(e){return void 0===e},pk.isString=function(e){return"[object String]"==Q_.call(e)},pk.isDate=function(e){return"[object Date]"==Q_.call(e)},pk.isNumber=function(e){return"[object Number]"==Q_.call(e)},pk.isElement=function(e){return!(!e||1!==e.nodeType)},pk.encodeDates=function(e){return pk.each(e,function(t,r){pk.isDate(t)?e[r]=pk.formatDate(t):pk.isObject(t)&&(e[r]=pk.encodeDates(t))}),e},pk.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},pk.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())},pk.strip_empty_properties=function(e){var t={};return pk.each(e,function(e,r){pk.isString(e)&&e.length>0&&(t[r]=e)}),t},pk.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):pk.isArray(e)?(r=[],pk.each(e,function(e){r.push(pk.truncate(e,t))})):pk.isObject(e)?(r={},pk.each(e,function(e,n){r[n]=pk.truncate(e,t)})):r=e,r},pk.JSONEncode=function(){return function(e){var t=e,r=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+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===Q_.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)ek.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),pk.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),pk.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=pk.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},pk.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),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&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},pk.UUID=function(){try{return xi["crypto"]["randomUUID"]()}catch(mA){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]="-",pk.map(e,function(e){return e.toString(16)}).join("")}};var wk=["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"];pk.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<wk.length;t++)if(-1!==e.indexOf(wk[t]))return!0;return!1},pk.HTTPBuildQuery=function(e,t){var r,n,i=[];return pk.isUndefined(t)&&(t="&"),pk.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},pk.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(mA){fk.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},pk.cookie={get:function(e){for(var t=e+"=",r=nk.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==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=pk.JSONDecode(pk.cookie.get(e))||{}}catch(mA){}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=Bk(nk.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"),nk.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=Bk(nk.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 d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return nk.cookie=d,d},remove:function(e,t,r){pk.cookie.set(e,"",-1,t,!1,!1,r)}};var bk=function(e){var t=!0;try{var r="__mplss_"+Rk(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(mA){t=!1}return t},_k=null,kk=function(e,t){return null===_k||t?_k=bk(e||xi.localStorage):_k},Sk=null,xk=function(e,t){return null===Sk||t?Sk=bk(e||xi.sessionStorage):Sk};function Ck(e,t,r){var n=function(e){fk.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||fk.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(mA){n(mA)}return null},parse:function(t){try{return pk.JSONDecode(e.getItem(t))||{}}catch(mA){}return null},set:function(t,r){try{e.setItem(t,r)}catch(mA){n(mA)}},remove:function(t){try{e.removeItem(t)}catch(mA){n(mA)}}}}var Ek=null,Ak=null;try{Ek=xi.localStorage,Ak=xi.sessionStorage}catch(gA){}pk.localStorage=Ck(Ek,"localStorage",kk),pk.sessionStorage=Ck(Ak,"sessionStorage",xk),pk.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else fk.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(xi.event),i){var o,s,a=!0;return pk.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Ok=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');pk.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(!nk.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[nk];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var m=i[1],g=nk.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&pk.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Ok);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return pk.isElement(e)?[e]:pk.isObject(e)&&!pk.isUndefined(e.length)?e:n.call(this,e)}}();var Ik=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Tk=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];pk.info={campaignParams:function(e){var t="",r={};return pk.each(Ik,function(n){t=pk.getQueryParam(nk.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return pk.each(Tk,function(r){e=pk.getQueryParam(nk.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return pk.extend(pk.info.campaignParams(),pk.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=pk.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=pk.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||pk.includes(e," OPR/")?pk.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":pk.includes(e,"IEMobile")||pk.includes(e,"WPDesktop")?"Internet Explorer Mobile":pk.includes(e,"SamsungBrowser/")?"Samsung Internet":pk.includes(e,"Edge")||pk.includes(e,"Edg/")?"Microsoft Edge":pk.includes(e,"FBIOS")?"Facebook Mobile":pk.includes(e,"Whale/")?"Whale Browser":pk.includes(e,"Chrome")?"Chrome":pk.includes(e,"CriOS")?"Chrome iOS":pk.includes(e,"UCWEB")||pk.includes(e,"UCBrowser")?"UC Browser":pk.includes(e,"FxiOS")?"Firefox iOS":pk.includes(t,"Apple")?pk.includes(e,"Mobile")?"Mobile Safari":"Safari":pk.includes(e,"Android")?"Android Mobile":pk.includes(e,"Konqueror")?"Konqueror":pk.includes(e,"Firefox")?"Firefox":pk.includes(e,"MSIE")||pk.includes(e,"Trident/")?"Internet Explorer":pk.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=pk.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=sk;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 xi.location.href},properties:function(e){return"object"!==typeof e&&(e={}),pk.extend(pk.strip_empty_properties({$os:pk.info.os(),$browser:pk.info.browser(sk,rk.vendor,ik),$referrer:nk.referrer,$referring_domain:pk.info.referringDomain(nk.referrer),$device:pk.info.device(sk)}),{$current_url:pk.info.currentUrl(),$browser_version:pk.info.browserVersion(sk,rk.vendor,ik),$screen_height:ok.height,$screen_width:ok.width,mp_lib:"web",$lib_version:Ai.LIB_VERSION,$insert_id:Rk(),time:pk.timestamp()/1e3},pk.strip_empty_properties(e))},people_properties:function(){return pk.extend(pk.strip_empty_properties({$os:pk.info.os(),$browser:pk.info.browser(sk,rk.vendor,ik)}),{$browser_version:pk.info.browserVersion(sk,rk.vendor,ik)})},mpPageViewProperties:function(){return pk.strip_empty_properties({current_page_title:nk.title,current_domain:xi.location.hostname,current_url_path:xi.location.pathname,current_url_protocol:xi.location.protocol,current_url_search:xi.location.search})}};var Mk=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new W_(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Rk=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},Pk=function(){var e=pk.UUID().replace(/-/g,""),t=pk.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Dk=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Lk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Bk=function(e){var t=Lk,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Dk);var i=e.match(t);return i?i[0]:""},Nk=function(){var e=xi.navigator["onLine"];return pk.isUndefined(e)||e},jk=function(){},Fk=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Uk=null,zk=null;"undefined"!==typeof JSON&&(Uk=JSON.stringify,zk=JSON.parse),Uk=Uk||pk.JSONEncode,zk=zk||pk.JSONDecode;var qk=function(e,t,r){if(!xi.CompressionStream)return!1;var n=pk.info.browser(e,t,r),i=pk.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};pk["info"]=pk.info,pk["info"]["browser"]=pk.info.browser,pk["info"]["browserVersion"]=pk.info.browserVersion,pk["info"]["device"]=pk.info.device,pk["info"]["properties"]=pk.info.properties,pk["isBlockedUA"]=pk.isBlockedUA,pk["isEmptyObject"]=pk.isEmptyObject,pk["isObject"]=pk.isObject,pk["JSONDecode"]=pk.JSONDecode,pk["JSONEncode"]=pk.JSONEncode,pk["toArray"]=pk.toArray,pk["NPO"]=$_;var Hk="mixpanelBrowserDb",$k="mixpanelRecordingEvents",Wk="mixpanelRecordingRegistry",Vk=1,Xk=[$k,Wk],Yk=function(e){this.dbPromise=null,this.storeName=e};Yk.prototype._openDb=function(){return new W_(function(e,t){var r=xi.indexedDB.open(Hk,Vk);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Xk.forEach(function(e){t.createObjectStore(e)})}})},Yk.prototype.init=function(){return xi.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof xi["IDBDatabase"]?W_.resolve():W_.reject(e)})):W_.reject("indexedDB is not supported in this browser")},Yk.prototype.isInitialized=function(){return!!this.dbPromise},Yk.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new W_(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)):W_.reject(e)}.bind(this))},Yk.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Yk.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Yk.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Yk.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Gk="__mp_opt_in_out_";function Jk(e,t){cS(!0,e,t)}function Kk(e,t){cS(!1,e,t)}function Zk(e,t){return"1"===sS(e,t)}function Qk(e,t){if(aS(t))return fk.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"===sS(e,t);return r&&fk.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function eS(e){return uS(e,function(e){return this.get_config(e)})}function tS(e){return uS(e,function(e){return this._get_config(e)})}function rS(e){return uS(e,function(e){return this._get_config(e)})}function nS(e,t){t=t||{},iS(t).remove(oS(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function iS(e){return e=e||{},"localStorage"===e.persistenceType?pk.localStorage:pk.cookie}function oS(e,t){return t=t||{},(t.persistencePrefix||Gk)+e}function sS(e,t){return iS(t).get(oS(e,t))}function aS(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||xi,r=t["navigator"]||{},n=!1;return pk.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){pk.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function cS(e,t,r){pk.isString(t)&&t.length?(r=r||{},iS(r).set(oS(t,r),e?1:0,pk.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})):fk.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function uS(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=Qk(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(mA){fk.error("Unexpected error when checking tracking opt-out status: "+mA)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var lS=gk("lock"),hS=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||xi.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||W_};hS.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(pk.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",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return lS.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(mA){n(mA)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(kk(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):g()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),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(!kk(u,!0))throw new Error("localStorage support check failed");g()}catch(mA){n(mA)}},this))};var dS=function(e){this.storage=e||xi.localStorage};dS.prototype.init=function(){return W_.resolve()},dS.prototype.isInitialized=function(){return!0},dS.prototype.setItem=function(e,t){return new W_(pk.bind(function(r,n){try{this.storage.setItem(e,Uk(t))}catch(i){n(i)}r()},this))},dS.prototype.getItem=function(e){return new W_(pk.bind(function(t,r){var n;try{n=zk(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},dS.prototype.removeItem=function(e){return new W_(pk.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var pS=gk("batch"),fS=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new dS,this.lock=new hS(e,{storage:t.sharedLockStorage||xi.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||pk.bind(pS.error,pS),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Mk(pk.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=pk.bind(function(e){return this._enqueuePersisted([e])},this)};fS.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?W_.resolve():this.queueStorage.init().then(pk.bind(function(){this.initialized=!0},this)).catch(pk.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},fS.prototype.enqueue=function(e,t){var r={id:Rk(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),W_.resolve(!0))},fS.prototype._enqueuePersisted=function(e){var t=pk.bind(function(){return this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(pk.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(pk.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(pk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},fS.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(r){if(r.length){var n={};pk.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)):W_.resolve(t)};var mS=function(e,t){var r=[];return pk.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};fS.prototype.removeItemsByID=function(e){var t={};if(pk.each(e,function(e){t[e]=!0}),this.memQueue=mS(this.memQueue,t),this.usePersistence){var r=pk.bind(function(){return this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(e){return e=mS(e,t),this.saveToStorage(e)},this)).then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.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(pk.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(pk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!kk(this.lock.storage,!0)&&r().then(pk.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(pk.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return W_.resolve(!0)};var gS=function(e,t){var r=[];return pk.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};fS.prototype.updatePayloads=function(e){return this.memQueue=gS(this.memQueue,e),this.usePersistence?this.lock.withLock(pk.bind(function(){return this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(t){return t=gS(t,e),this.saveToStorage(t)},this)).catch(pk.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(pk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):W_.resolve(!0)},fS.prototype.readFromStorage=function(){return this.ensureInit().then(pk.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(pk.bind(function(e){return e&&(pk.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(pk.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},fS.prototype.saveToStorage=function(e){return this.ensureInit().then(pk.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(pk.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},fS.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(pk.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):W_.resolve()};var vS=6e5,yS=gk("batch"),wS=function(e,t){this.errorReporter=t.errorReporter,this.queue=new fS(e,{errorReporter:pk.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};wS.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},wS.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},wS.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},wS.prototype.clear=function(){return this.queue.clear()},wS.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},wS.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},wS.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(pk.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},wS.prototype.sendRequestPromise=function(e,t){return new W_(pk.bind(function(r){this.sendRequest(e,t,r)},this))},wS.prototype.flush=function(e){if(this.requestInProgress)return yS.log("Flush: Request already in progress"),W_.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(pk.bind(function(i){var o=i.length===n,s=[],a={};if(pk.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=pk.extend({},t["properties"],{mp_sent_by_lib_version:Ai.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(),W_.resolve();var c=pk.bind(function(){return this.queue.removeItemsByID(pk.map(i,function(e){return e["id"]})).then(pk.bind(function(e){return pk.each(i,pk.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(),W_.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),W_.resolve())},this))},this),u=pk.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(pk.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(pk.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Nk()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(vS,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),W_.resolve()}if(pk.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(),W_.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(mA){this.reportError("Error handling API response",mA),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),yS.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(pk.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},wS.prototype.reportError=function(e,t){if(yS.error.apply(yS.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){yS.error(t)}};var bS=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},_S=250,kS="change",SS="click",xS="hashchange",CS="input",ES="load",AS="mp_locationchange",OS="popstate",IS="scrollend",TS="scroll",MS="select",RS="submit",PS="toggle",DS="visibilitychange",LS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],BS=["mp-include"],NS=["mp-no-track"],jS=NS.concat(["mp-sensitive"]),FS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],US={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},zS={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},qS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},HS=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],$S=5,WS=gk("autocapture");function VS(e){for(var t={},r=XS(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function XS(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function YS(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!tx(e));return e}function GS(e,t,r,n,i,o){var s={$classes:XS(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),cx(e,t,i,o)&&pk.each(FS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);ux(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=YS(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function JS(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={};pk.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(nx(d)&&(d=d.parentNode),sx(d,e)&&QS(d,e,r,n)&&!ex(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!rx(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(pk.each(p,function(t){var i=cx(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&ux(m)&&m),ex(t,e,o,s)&&(v=!0),g.push(GS(t,e,l,c,r,n))},this),!v){var y=nk["documentElement"];if(h={$event_type:e.type,$host:xi.location.host,$pathname:xi.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],xi["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],xi["innerWidth"]||0),$pageHeight:nk["body"]["offsetHeight"]||0,$pageWidth:nk["body"]["offsetWidth"]||0},pk.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);ux(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=KS(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===SS&&(pk.each(LS,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=ZS(e)),a){var w=KS(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!QS(d,e,r,n)||ex(d,e,o,s))return null;var b=GS(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],pk.extend(h,pk.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function KS(e,t,r,n){var i="";return cx(e,t,r,n)&&e.childNodes&&e.childNodes.length&&pk.each(e.childNodes,function(e){nx(e)&&e.textContent&&(i+=pk.trim(e.textContent).split(/(\s+)/).filter(ux).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),pk.trim(i)}function ZS(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(rx(i,"a")||rx(i,"button")||rx(i,"input")||rx(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function QS(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(mA){return WS.critical("Error while checking element in allowElementCallback",mA),!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(mA){WS.critical("Error while checking selector: "+o,mA)}}return!1}function ex(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(mA){return WS.critical("Error while checking element in blockElementCallback",mA),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(mA){WS.critical("Error while checking selector: "+o,mA)}}var s=VS(e);for(i=0;i<NS.length;i++)if(s[NS[i]])return!0;return!1}function tx(e){return e&&1===e.nodeType}function rx(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function nx(e){return e&&3===e.nodeType}function ix(){try{var e=nk.createElement("div");return!!e["matches"]}catch(mA){return!1}}function ox(){return"undefined"!==typeof WeakSet}function sx(e,t){if(!e||rx(e,"html")||!tx(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===RS;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===kS:t.type===SS;case"select":case"textarea":return t.type===kS;default:return t.type===SS}}function ax(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function cx(e,t,r,n){var i;if(!QS(e,t,r,n))return!1;for(var o=e;o.parentNode&&!rx(o,"body");o=o.parentNode){var s=VS(o);for(i=0;i<jS.length;i++)if(s[jS[i]])return!1}var a=VS(e);for(i=0;i<BS.length;i++)if(a[BS[i]])return!0;if(rx(e,"input")||rx(e,"select")||rx(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!ax(e)}function ux(e){if(null===e||pk.isUndefined(e))return!1;if("string"===typeof e){e=pk.trim(e);var t=/^(?:(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}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function lx(e){var t="onscrollend"in xi,r=vk(e),n=IS;if(!t){var i=null,o=100;r=vk(function(){clearTimeout(i),i=setTimeout(e,o)}),n=TS}return{listener:r,eventType:n}}function hx(e){for(var t=0;t<HS.length;t++)if(e.hasAttribute(HS[t]))return!0;return!1}function dx(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return US[r]}function px(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)||(!!hx(e)||(!!dx(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function fx(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(zS[t])return!0;if(px(e))return!1;var r=e.parentElement,n=0;while(r&&n<$S){if(px(r))return!1;if(r.getRootNode&&r.getRootNode()!==nk){var i=r.getRootNode();if(i.host&&px(i.host))return!1}r=r.parentElement,n++}return!!qS[t]}function mx(e){return"composedPath"in e?e["composedPath"]():[]}function gx(e){var t=mx(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var vx=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",yx="data-rr-is-password",wx=["password","email","tel","hidden"];function bx(e){return e?Array.isArray(e)?e:[e]:[]}function _x(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=bx(r).join(","),t.input.unmaskingSelector=bx(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=bx(o);if(c)if(c instanceof 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=bx(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function kx(e,t){return!!t&&!!e.closest(t)}function Sx(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==wx.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(yx)||(!!ax(e)||(t.input.maskAll?!kx(e,t.input.unmaskingSelector):!!kx(e,t.input.maskingSelector)||!!kx(e,vx))))}function xx(e,t){return!!e&&(!(!t.text._legacyClassRegex||!mv(e,t.text._legacyClassRegex))||(t.text.maskAll?!kx(e,t.text.unmaskingSelector):!!kx(e,t.text.maskingSelector)||!!kx(e,vx)))}var Cx=gk("network-plugin");function Ex(e){return Math.round(Date.now()-e.performance.now())}var Ax={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Ox(e){return"navigation"===e.entryType}function Ix(e){return"resource"===e.entryType}function Tx(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function Mx(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}}var Rx=1048576;function Px(e){return e&&"string"===typeof e&&e.length>Rx?(Cx.error("Body truncated from "+e.length+" to "+Rx+" characters"),e.substring(0,Rx)+"... [truncated]"):e}function Dx(e,t,r){if(!t.PerformanceObserver)return Cx.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return Ox(e)||Ix(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:Ex(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return Ix(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:Ex(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function Lx(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function Bx(e,t,r){return!(!t[e]||0===t[e].length)&&Fk(r,t[e])}function Nx(e){if(null===e||void 0===e)return null;var t;if("string"===typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=pk.HTTPBuildQuery(e);else{if(!pk.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(r){return"Failed to stringify response object"}}return Px(t)}function jx(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(Px(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(n){clearTimeout(r),t("Failed to read body: "+String(n))}})}function Fx(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Cx.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=Tx(s,function(e){return Ix(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Fx(e,t,r,n,i,o+1)})}function Ux(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=Mx(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,d=new Request(o,{method:i}),p={},f={},m=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return Lx("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},p.requestHeaders=f;var g=h.send.bind(h);h.send=function(e){return Bx("request",r.recordBodyUrls,d.url)&&(p.requestBody=Nx(e)),u=t.performance.now(),g(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&Lx("response",r.recordHeaders,i)&&(n[i]=o)}}})}p.responseHeaders=n,Bx("response",r.recordBodyUrls,d.url)&&(p.responseBody=Nx(h.response)),Fx(t,"xmlhttprequest",d.url,u,l).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Ex(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else Cx.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){Cx.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}function zx(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=Mx(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 d={};c.headers.forEach(function(e,t){Lx("request",r.recordHeaders,t)&&(d[t]=e)}),u.requestHeaders=d,Bx("request",r.recordBodyUrls,c.url)&&(l=jx(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){Lx("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,Bx("response",r.recordBodyUrls,c.url)&&(h=jx(i).then(function(e){u.responseBody=e})),i})}catch(p){a=Promise.reject(p)}return Promise.all([l,h,a]).then(function(){return Fx(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:Ex(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Cx.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Cx.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}function qx(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Ax.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Ax.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Ax,r),s=function(t){var r=t.requests.filter(function(e){var t=Fk(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=Dx(s,t,o),c=Ux(s,t,o),u=zx(s,t,o);return function(){a(),c(),u()}}var Hx="rrweb/network@1.mp",$x=function(e){return{name:Hx,observer:qx,options:e}},Wx=gk("recorder"),Vx=xi["CompressionStream"],Xx={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Yx=new Set([Sm.MouseMove,Sm.MouseInteraction,Sm.Scroll,Sm.ViewportResize,Sm.Input,Sm.TouchMove,Sm.MediaInteraction,Sm.Drag,Sm.Selection]);function Gx(e){return e.type===km.IncrementalSnapshot&&Yx.has(e.data.source)}var Jx=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||jk,this._onMaxLengthReached=e.onMaxLengthReached||jk,this._onBatchSent=e.onBatchSent||jk,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=X_,this.recordMinMs=0;var t=kk(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Yk($k),this.batcher=new wS(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Xx,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:_S,sharedLockTimeoutMS:1e4})};Jx.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},Jx.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))},Jx.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Jx.prototype.get_config=function(e){return this.getConfig(e)},Jx.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>X_&&(this.recordMaxMs=X_,Wx.critical("record_max_ms cannot be greater than "+X_+"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=pk.info.currentUrl(),this.replayStartUrl=pk.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=_x(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($x(o))}this.getConfig("record_console")&&i.push(M_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(Gx(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Sx,n),maskTextFn:this._getMaskFn(xx,n),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(mA){this.reportError("Unexpected error when starting rrweb recording.",mA)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var a=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),a)}else Wx.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Jx.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(mA){this.reportError("Error with rrweb stopRecording",mA)}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},Jx.prototype.isRrwebStopped=function(){return null===this._stopRecording},Jx.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)},Jx.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}},Jx.deserialize=function(e,t){var r=new Jx(pk.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}));return r},Jx.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},Jx.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=pk.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");xi["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})})},Jx.prototype._flushEvents=eS(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===km.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:Ai.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()),qk(sk,rk.vendor,ik)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Vx("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)}}),Jx.prototype.reportError=function(e,t){Wx.error.apply(Wx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Wx.error(t)}},Jx.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Jx.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>Y_?(Wx.critical("record_min_ms cannot be greater than "+Y_+"ms. Capping value."),Y_):e},Jx.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(mA){this.reportError("Error checking if text should be masked, defaulting to masked",mA)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var Kx=function(e){this.idb=new Yk(Wk),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Kx.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Kx.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Kx.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return W_.resolve();var t=e["tabId"];return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),W_.resolve())},Kx.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 bS(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):W_.resolve(null)},Kx.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Kx.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))},Kx.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):W_.resolve()},Kx.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 bS(e)}).map(function(e){var t=Jx.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return W_.all(t)}.bind(this)).catch(this.handleError.bind(this)):W_.resolve([])};var Zx=gk("recorder"),Qx=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Wg,this.sharedLockStorage=r,this.recordingRegistry=new Kx({mixpanelInstance:this.mixpanelInstance,errorReporter:Zx.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function eC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}Qx.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Zx.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Zx.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:pk.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Jx.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Jx(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Zx.log("Recording already in progress, skipping startRecording.")},Qx.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))},Qx.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Qx.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return W_.resolve()},Qx.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),W_.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Zx.log("No resumable recording found."),null)}.bind(this))},Qx.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Qx.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Qx.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Qx.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),xi[Ii]=Qx;var tC,rC={exports:{}};rC.exports;function nC(){return tC||(tC=1,function(e){(function(t,r){e.exports=r()})(0,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||"undefined"===typeof 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("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)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"===typeof 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="undefined"!==typeof 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("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.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})}(rC)),rC.exports}var iC=nC(),oC=eC(iC),sC=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!pk.isEmptyObject(n))try{i=oC.apply(n,t||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:i}},aC={};aC["eventMatchesCriteria"]=sC,xi[Oi]=Promise.resolve(aC);var cC=30,uC=1e3,lC=4,hC=!1;function dC(){this.clicks=[]}function pC(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}dC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||cC,n=t["timeout_ms"]||uC,i=t["click_count"]||lC,o=t["interactive_elements_only"]||hC;if(o){var s=gx(e);if(!s||fx(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},pC.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return gx(e)},pC.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=mx(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},pC.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(n){WS.critical("Error while observing shadow root",n)}}},pC.prototype.start=function(){this.observedShadowRoots||(ox()?this.observedShadowRoots=new WeakSet:WS.critical("Shadow DOM observation unavailable: WeakSet not supported"))},pC.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){WS.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var fC=500,mC=[kS,CS,RS,MS,PS],gC=[IS],vC=[xS],yC={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function wC(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}wC.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||fx(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},wC.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},wC.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},wC.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},wC.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},wC.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},wC.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},wC.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;mC.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}})}),vC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),gC.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,yC)}catch(r){WS.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new pC(function(){e.recordChangeEvent()},yC),this.shadowDOMObserver.start()}catch(r){WS.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},wC.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(r){WS.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){WS.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){WS.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var bC="autocapture",_C="track_pageview",kC="full-url",SC="url-with-path-and-query-string",xC="url-with-path",CC="allow_element_callback",EC="allow_selectors",AC="allow_url_regexes",OC="block_attrs",IC="block_element_callback",TC="block_selectors",MC="block_url_regexes",RC="capture_extra_attrs",PC="capture_text_content",DC="scroll_capture_all",LC="scroll_depth_percent_checkpoints",BC="click",NC="dead_click",jC="input",FC="pageview",UC="rage_click",zC="scroll",qC="page_leave",HC="submit",$C={};$C[EC]=[],$C[AC]=[],$C[OC]=[],$C[IC]=null,$C[TC]=[],$C[MC]=[],$C[RC]=[],$C[PC]=!1,$C[DC]=!1,$C[LC]=[25,50,75,100],$C[BC]=!0,$C[NC]=!0,$C[jC]=!0,$C[FC]=kC,$C[UC]=!0,$C[zC]=!0,$C[qC]=!1,$C[HC]=!0;var WC={$mp_autocapture:!0},VC="$mp_click",XC="$mp_dead_click",YC="$mp_input_change",GC="$mp_rage_click",JC="$mp_scroll",KC="$mp_submit",ZC="$mp_page_leave",QC=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};QC.prototype.init=function(){ix()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):WS.critical("Autocapture unavailable: missing required DOM APIs")},QC.prototype.getFullConfig=function(){var e=this.mp.get_config(bC);return e?pk.isObject(e)?pk.extend({},$C,e):$C:{}},QC.prototype.getConfig=function(e){return this.getFullConfig()[e]},QC.prototype.currentUrlBlocked=function(){var e=pk.info.currentUrl(),t=this.getConfig(AC)||[];if(t.length)try{return!Fk(e,t)}catch(mA){return WS.critical("Error while checking block URL regexes: ",mA),!0}var r=this.getConfig(MC)||[];if(!r||!r.length)return!1;try{return Fk(e,r)}catch(mA){return WS.critical("Error while checking block URL regexes: ",mA),!0}},QC.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(bC)?this.getConfig(FC):this.mp.get_config(_C)},QC.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===VC&&!this.getConfig(BC)||t===GC&&!this._getClickTrackingConfig(UC)||t===XC&&!this._getClickTrackingConfig(NC)),n=JS(e,{allowElementCallback:this.getConfig(CC),allowSelectors:this.getConfig(EC),blockAttrs:this.getConfig(OC),blockElementCallback:this.getConfig(IC),blockSelectors:this.getConfig(TC),captureExtraAttrs:this.getConfig(RC),captureTextContent:this.getConfig(PC),capturedForHeatMap:r});n&&(pk.extend(n,WC),this.mp.track(t,n))}},QC.prototype.initPageListeners=function(){if(xi.removeEventListener(OS,this.listenerPopstate),xi.removeEventListener(xS,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(qC)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){xi.dispatchEvent(new Event(AS))},this.listenerHashchange=function(){xi.dispatchEvent(new Event(AS))},xi.addEventListener(OS,this.listenerPopstate),xi.addEventListener(xS,this.listenerHashchange);var e=xi.history.pushState;"function"===typeof e&&(xi.history.pushState=function(t,r,n){e.call(xi.history,t,r,n),xi.dispatchEvent(new Event(AS))});var t=xi.history.replaceState;"function"===typeof t&&(xi.history.replaceState=function(e,r,n){t.call(xi.history,e,r,n),xi.dispatchEvent(new Event(AS))})}},QC.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},QC.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(qC)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(nk.documentElement.clientHeight,xi.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=pk.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||pk.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(nk.documentElement.clientWidth,xi.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},WC);this.mp.track(ZC,s,{transport:"sendBeacon"})}},QC.prototype._initScrollDepthTracking=function(){if(xi.removeEventListener(TS,this.listenerScrollDepth),xi.removeEventListener(IS,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){WS.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0)+xi.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=nk.body.scrollHeight}}.bind(this),t=lx(e);this.listenerScrollDepth=t.listener,xi.addEventListener(t.eventType,this.listenerScrollDepth)}},QC.prototype.initClickTracking=function(){xi.removeEventListener(SS,this.listenerClick),(this.getConfig(BC)||this.mp.get_config("record_heatmap_data"))&&(WS.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(BC)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,VC)}.bind(this),xi.addEventListener(SS,this.listenerClick))},QC.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(NC);e||this.mp.get_config("record_heatmap_data")?(WS.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new wC(function(e){this.trackDomEvent(e,XC)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(NC);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=fC),this._deadClickTracker.trackClick(e,r)}}.bind(this),xi.addEventListener(SS,this.listenerDeadClick))):this.stopDeadClickTracking()},QC.prototype.initInputTracking=function(){xi.removeEventListener(kS,this.listenerChange),this.getConfig(jC)&&(WS.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(jC)&&this.trackDomEvent(e,YC)}.bind(this),xi.addEventListener(kS,this.listenerChange))},QC.prototype.initPageviewTracking=function(){if(xi.removeEventListener(AS,this.listenerLocationchange),this.pageviewTrackingConfig()){WS.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(WC)),t&&(e=pk.info.currentUrl()),this.listenerLocationchange=vk(function(){if(!this.currentUrlBlocked()){var t=pk.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===kC?r=t!==e:i===SC?r=t.split("#")[0]!==e.split("#")[0]:i===xC&&(r=n),r){var o=this.mp.track_pageview(WC);o&&(e=t),n&&(this.lastScrollCheckpoint=0,WS.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),xi.addEventListener(AS,this.listenerLocationchange)}},QC.prototype.initRageClickTracking=function(){xi.removeEventListener(SS,this.listenerRageClick);var e=this._getClickTrackingConfig(UC);(e||this.mp.get_config("record_heatmap_data"))&&(WS.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new dC),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(UC);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,GC))}.bind(this),xi.addEventListener(SS,this.listenerRageClick))},QC.prototype.initScrollTracking=function(){if(xi.removeEventListener(IS,this.listenerScroll),xi.removeEventListener(TS,this.listenerScroll),this.getConfig(zC)){WS.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(zC)&&!this.currentUrlBlocked()){var e=this.getConfig(DC),t=(this.getConfig(LC)||[]).slice().sort(function(e,t){return e-t}),r=xi.scrollY,n=pk.extend({$scroll_top:r},WC);try{var i=nk.body.scrollHeight,o=Math.round(r/(i-xi.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(mA){WS.critical("Error while calculating scroll percentage",mA)}e&&this.mp.track(JC,n)}}.bind(this),t=lx(e);this.listenerScroll=t.listener,xi.addEventListener(t.eventType,this.listenerScroll)}},QC.prototype.initSubmitTracking=function(){xi.removeEventListener(RS,this.listenerSubmit),this.getConfig(HC)&&(WS.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(HC)&&this.trackDomEvent(e,KC)}.bind(this),xi.addEventListener(RS,this.listenerSubmit))},QC.prototype.initPageLeaveTracking=function(){if(nk.removeEventListener(DS,this.listenerPageLeaveVisibilitychange),xi.removeEventListener(AS,this.listenerPageLeaveLocationchange),xi.removeEventListener(ES,this.listenerPageLoad),this.getConfig(qC)||this.mp.get_config("record_heatmap_data")){WS.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=pk.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=nk.body.scrollHeight}.bind(this),xi.addEventListener(ES,this.listenerPageLoad),this.listenerPageLeaveLocationchange=vk(function(t){if(!this.currentUrlBlocked()){var r=pk.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0),this.previousScrollHeight=nk.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),xi.addEventListener(AS,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){nk.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),nk.addEventListener(DS,this.listenerPageLeaveVisibilitychange)}},QC.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(xi.removeEventListener(SS,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},yk(QC);var eE=function(e,t){return xi[Oi]&&"function"===typeof xi[Oi].then||(xi[Oi]=new Promise(function(r){e(t,r)}).then(function(){var e=xi[Oi];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete xi[Oi],e})),xi[Oi]},tE=gk("flags"),rE="flags",nE="context",iE={};iE[nE]={};var oE=function(e,t){return e+":"+t},sE=function(e){return e.split(":")[0]},aE=function(e){this.fetch=xi["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||""};aE.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):tE.critical("Feature Flags unavailable: missing minimum required APIs")},aE.prototype.getFullConfig=function(){var e=this.getMpConfig(rE);return e?pk.isObject(e)?pk.extend({},iE,e):iE:{}},aE.prototype.getConfig=function(e){return this.getFullConfig()[e]},aE.prototype.isSystemEnabled=function(){return!!this.getMpConfig(rE)},aE.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return tE.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(rE);pk.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(nE);return r[nE]=pk.extend({},n,e),this.setMpConfig(rE,r),this.fetchFlags()},aE.prototype.areFlagsReady=function(){return this.isSystemEnabled()||tE.error("Feature Flags not enabled"),!!this.flags},aE.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Pk();tE.log("Fetching flags for distinct ID: "+e);var n=pk.extend({distinct_id:e,device_id:t},this.getConfig(nE)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Ai.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(xi,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};pk.each(t,function(e,t){var r=!1,i=t+":";if(pk.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&pk.each(o,function(e){var t=e["flag_key"],r=oE(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[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&&pk.each(this.activatedFirstTimeEvents,function(e,t){var r=sE(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),tE.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),tE.error(e)}.bind(this)),this.fetchPromise},aE.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):tE.error("Fetch in progress started time not set, cannot mark fetch complete")},aE.prototype._loadTargetingIfNeeded=function(){var e=!1;pk.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!pk.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){tE.log("targeting loaded for property filter evaluation")})},aE.prototype.getTargeting=function(){return eE(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){tE.error("Failed to load targeting: "+e)}.bind(this))},aE.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!pk.isEmptyObject(this.pendingFirstTimeEvents)&&(xi[Oi]&&pk.isFunction(xi[Oi].then)?xi[Oi].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},aE.prototype._processFirstTimeEventCheck=function(e,t,r){pk.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||pk.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)tE.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){tE.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.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else tE.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},aE.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},aE.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Pk(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Ai.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};tE.log("Recording first-time event for flag: "+e),this.fetch.call(xi,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){tE.error("Failed to record first-time event for flag "+e+": "+t)})},aE.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return tE.error(e),t}):new Promise(function(e){tE.critical("Feature Flags not initialized"),e(t)})},aE.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return tE.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(tE.log('No flag found: "'+e+'"'),t)},aE.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return tE.error(e),t})},aE.prototype.getFeatureData=function(e,t){return tE.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)},aE.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},aE.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return tE.error(e),t})},aE.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(tE.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},aE.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},aE.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},yk(aE),aE.prototype["are_flags_ready"]=aE.prototype.areFlagsReady,aE.prototype["get_variant"]=aE.prototype.getVariant,aE.prototype["get_variant_sync"]=aE.prototype.getVariantSync,aE.prototype["get_variant_value"]=aE.prototype.getVariantValue,aE.prototype["get_variant_value_sync"]=aE.prototype.getVariantValueSync,aE.prototype["is_enabled"]=aE.prototype.isEnabled,aE.prototype["is_enabled_sync"]=aE.prototype.isEnabledSync,aE.prototype["update_context"]=aE.prototype.updateContext,aE.prototype["get_feature_data"]=aE.prototype.getFeatureData,aE.prototype["getTargeting"]=aE.prototype.getTargeting;var cE=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};cE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return fk.log("Load recorder check skipped due to disable_persistence config"),W_.resolve(!1);var e=new Yk(Wk),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(bS(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(pk.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},cE.prototype.checkAndStartSessionRecording=function(e,t){if(!xi["MutationObserver"])return fk.critical("Browser does not support MutationObserver; skipping session recording"),W_.resolve();var r=pk.bind(function(e){return new W_(pk.bind(function(t){var r=vk(pk.bind(function(){this._recorder=this._recorder||new xi[Ii](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(pk.isUndefined(xi[Ii])){var n=this.recorderSrc||this.libBasePath+Ti;this.loadExtraBundle(n,r)}else r()},this))},this),n=pk.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,i=n>0&&100*Math.random()<=n;return e||i?r(!0):this.shouldLoadRecorder().then(pk.bind(function(e){return e?r(!1):W_.resolve()},this))},cE.prototype.isRecording=function(){if(!this._recorder||!pk.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},cE.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&&!pk.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Mi;eE(this.loadExtraBundle,a).then(function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(mA){fk.critical("Could not parse recording event trigger properties logic:",mA)}}.bind(this)).catch(function(e){fk.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},cE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():W_.resolve()},cE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():W_.resolve()},cE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():W_.resolve()},cE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},cE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},cE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=pk.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},cE.prototype.getSessionReplayId=function(){var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},cE.prototype.getRecorder=function(){return this._recorder},yk(cE);var uE=function(){};uE.prototype.create_properties=function(){},uE.prototype.event_handler=function(){},uE.prototype.after_track_handler=function(){},uE.prototype.init=function(e){return this.mp=e,this},uE.prototype.track=function(e,t,r,n){var i=this,o=pk.dom_query(e);if(0!==o.length)return pk.each(o,function(e){pk.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;fk.error("The DOM query ("+e+") returned 0 elements")},uE.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))}},uE.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):pk.extend({},e),r};var lE=function(){this.override_event="click"};pk.inherit(lE,uE),lE.prototype.create_properties=function(e,t){var r=lE.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},lE.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()},lE.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var hE=function(){this.override_event="submit"};pk.inherit(hE,uE),hE.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},hE.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var dE="$set",pE="$set_once",fE="$unset",mE="$add",gE="$append",vE="$union",yE="$remove",wE="$delete",bE={set_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[dE]=n,r},unset_action:function(e){var t={},r=[];return pk.isArray(e)||(e=[e]),pk.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[fE]=r,t},set_once_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[pE]=n,r},union_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=pk.isArray(e)?e:[e])},this):n[e]=pk.isArray(t)?t:[t],r[vE]=n,r},append_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gE]=n,r},remove_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[yE]=n,r},delete_action:function(){var e={};return e[wE]="",e}},_E=function(){};pk.extend(_E.prototype,bE),_E.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},_E.prototype.set=rS(function(e,t,r){var n=this.set_action(e,t);return pk.isObject(e)&&(r=t),this._send_request(n,r)}),_E.prototype.set_once=rS(function(e,t,r){var n=this.set_once_action(e,t);return pk.isObject(e)&&(r=t),this._send_request(n,r)}),_E.prototype.unset=rS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),_E.prototype.union=rS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),_E.prototype["delete"]=rS(function(e){var t=this.delete_action();return this._send_request(t,e)}),_E.prototype.remove=rS(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),_E.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=pk.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)},_E.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},_E.prototype._get_config=function(e){return this._mixpanel.get_config(e)},_E.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},_E.prototype["remove"]=_E.prototype.remove,_E.prototype["set"]=_E.prototype.set,_E.prototype["set_once"]=_E.prototype.set_once,_E.prototype["union"]=_E.prototype.union,_E.prototype["unset"]=_E.prototype.unset,_E.prototype["toString"]=_E.prototype.toString;var kE=function(){};pk.extend(kE.prototype,bE),kE.prototype._init=function(e){this._mixpanel=e},kE.prototype.set=tS(function(e,t,r){var n=this.set_action(e,t);return pk.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[dE]=pk.extend({},pk.info.people_properties(),n[dE]),this._send_request(n,r)}),kE.prototype.set_once=tS(function(e,t,r){var n=this.set_once_action(e,t);return pk.isObject(e)&&(r=t),this._send_request(n,r)}),kE.prototype.unset=tS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),kE.prototype.increment=tS(function(e,t,r){var n={},i={};return pk.isObject(e)?(pk.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void fk.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(pk.isUndefined(t)&&(t=1),i[e]=t),n[mE]=i,this._send_request(n,r)}),kE.prototype.append=tS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),kE.prototype.remove=tS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),kE.prototype.union=tS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),kE.prototype.track_charge=tS(function(){fk.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),kE.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},kE.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}fk.error("mixpanel.people.delete_user() requires you to call identify() first")},kE.prototype.toString=function(){return this._mixpanel.toString()+".people"},kE.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=pk.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),pk.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),pk.truncate(o,255))},kE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},kE.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},kE.prototype._enqueue=function(e){dE in e?this._mixpanel["persistence"]._add_to_people_queue(dE,e):pE in e?this._mixpanel["persistence"]._add_to_people_queue(pE,e):fE in e?this._mixpanel["persistence"]._add_to_people_queue(fE,e):mE in e?this._mixpanel["persistence"]._add_to_people_queue(mE,e):gE in e?this._mixpanel["persistence"]._add_to_people_queue(gE,e):yE in e?this._mixpanel["persistence"]._add_to_people_queue(yE,e):vE in e?this._mixpanel["persistence"]._add_to_people_queue(vE,e):fk.error("Invalid call to _enqueue():",e)},kE.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=pk.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;pk.isUndefined(o)||!pk.isObject(o)||pk.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),pk.isUndefined(r)||r(t,n)}))},kE.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(dE,this.set,e),this._flush_one_queue(pE,this.set_once,n),this._flush_one_queue(fE,this.unset,o,function(e){return pk.keys(e)}),this._flush_one_queue(mE,this.increment,t),this._flush_one_queue(vE,this.union,i);var c=this._mixpanel["persistence"].load_queue(gE);if(!pk.isUndefined(c)&&pk.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(gE,u),pk.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(gE),u=c.pop(),a._mixpanel["persistence"].save(),pk.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(yE);if(!pk.isUndefined(d)&&pk.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(yE,p),pk.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(yE),p=d.pop(),a._mixpanel["persistence"].save(),pk.isEmptyObject(p)||a.remove(p,f)},kE.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},kE.prototype["set"]=kE.prototype.set,kE.prototype["set_once"]=kE.prototype.set_once,kE.prototype["unset"]=kE.prototype.unset,kE.prototype["increment"]=kE.prototype.increment,kE.prototype["append"]=kE.prototype.append,kE.prototype["remove"]=kE.prototype.remove,kE.prototype["union"]=kE.prototype.union,kE.prototype["track_charge"]=kE.prototype.track_charge,kE.prototype["clear_charges"]=kE.prototype.clear_charges,kE.prototype["delete_user"]=kE.prototype.delete_user,kE.prototype["toString"]=kE.prototype.toString;var SE,xE="__mps",CE="__mpso",EE="__mpus",AE="__mpa",OE="__mpap",IE="__mpr",TE="__mpu",ME="$people_distinct_id",RE="__alias",PE="__timers",DE=[xE,CE,EE,AE,OE,IE,TE,ME,RE,PE],LE=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&&(fk.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&pk.localStorage.is_supported()?this.storage=pk.localStorage:this.storage=pk.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};LE.prototype.properties=function(){var e={};return this.load(),pk.each(this["props"],function(t,r){pk.include(DE,r)||(e[r]=t)}),e},LE.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=pk.extend({},e))}},LE.prototype.upgrade=function(){var e,t;this.storage===pk.localStorage?(e=pk.cookie.parse(this.name),pk.cookie.remove(this.name),pk.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===pk.cookie&&(t=pk.localStorage.parse(this.name),pk.localStorage.remove(this.name),t&&this.register_once(t))},LE.prototype.save=function(){this.disabled||this.storage.set(this.name,Uk(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},LE.prototype.load_prop=function(e){return this.load(),this["props"][e]},LE.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},LE.prototype.clear=function(){this.remove(),this["props"]={}},LE.prototype.register_once=function(e,t,r){return!!pk.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),pk.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},LE.prototype.register=function(e,t){return!!pk.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),pk.extend(this["props"],e),this.save(),!0)},LE.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},LE.prototype.update_search_keyword=function(e){this.register(pk.info.searchInfo(e))},LE.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:pk.info.referringDomain(e)||"$direct"},"")},LE.prototype.get_referrer_info=function(){return pk.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},LE.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"])},LE.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},LE.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},LE.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},LE.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},LE.prototype.get_cross_subdomain=function(){return this.cross_subdomain},LE.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},LE.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(dE),o=this._get_or_create_queue(pE),s=this._get_or_create_queue(fE),a=this._get_or_create_queue(mE),c=this._get_or_create_queue(vE),u=this._get_or_create_queue(yE,[]),l=this._get_or_create_queue(gE,[]);r===xE?(pk.extend(i,n),this._pop_from_people_queue(mE,n),this._pop_from_people_queue(vE,n),this._pop_from_people_queue(fE,n)):r===CE?(pk.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(fE,n)):r===EE?pk.each(n,function(e){pk.each([i,o,a,c],function(t){e in t&&delete t[e]}),pk.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===AE?(pk.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(fE,n)):r===TE?(pk.each(n,function(e,t){pk.isArray(e)&&(t in c||(c[t]=[]),pk.each(e,function(e){pk.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(fE,n)):r===IE?(u.push(n),this._pop_from_people_queue(gE,n)):r===OE&&(l.push(n),this._pop_from_people_queue(fE,n)),fk.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),fk.log(t),this.save()},LE.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];pk.isUndefined(r)||pk.each(t,function(t,n){e===gE||e===yE?pk.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},LE.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},LE.prototype._get_queue_key=function(e){return e===dE?xE:e===pE?CE:e===fE?EE:e===mE?AE:e===gE?OE:e===yE?IE:e===vE?TE:void fk.error("Invalid queue:",e)},LE.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=pk.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},LE.prototype.set_event_timer=function(e,t){var r=this.load_prop(PE)||{};r[e]=t,this["props"][PE]=r,this.save()},LE.prototype.remove_event_timer=function(e){var t=this.load_prop(PE)||{},r=t[e];return pk.isUndefined(r)||(delete this["props"][PE][e],this.save()),r};var BE,NE=function(e,t){throw new Error(e+" not available in this build.")},jE=0,FE=1,UE="mixpanel",zE="base64",qE="json",HE="$device:",$E="strict",WE="fallback",VE="disabled",XE=xi.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,YE=!XE&&-1===sk.indexOf("MSIE")&&-1===sk.indexOf("Mozilla"),GE=null;rk["sendBeacon"]&&(GE=function(){return rk["sendBeacon"].apply(rk,arguments)});var JE={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},KE={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:JE,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:zE,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:jk,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:jk,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_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:X_,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:VE},ZE=!1,QE=function(){},eA=function(e,t,r){var n,i=r===UE?BE:BE[r];if(i&&SE===jE)n=i;else{if(i&&!pk.isArray(i))return void fk.error("You have already initialized "+r);n=new QE}if(n._cached_groups={},n._init(e,t,r),n["people"]=new kE,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=pk.info.campaignParams(null),s={},a=!1;pk.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}Ai.DEBUG=Ai.DEBUG||n.get_config("debug");var c=SE===jE?"module":"snippet";return xi.dispatchEvent(new xi.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:pk.info}})),!pk.isUndefined(i)&&pk.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};QE.prototype.init=function(e,t,r){if(pk.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==UE){var n=eA(e,t,r);return BE[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},QE.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||KE["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=qE)}if(this.hooks={},this.set_config(pk.extend({},KE,n,t,{name:r,token:e,callback_fn:(r===UE?r:UE+"."+r)+"._jsc"})),this.recorderManager=new cE({mixpanelInstance:this,getConfigFunc:pk.bind(this.get_config,this),setConfigFunc:pk.bind(this.set_config,this),getTabIdFunc:pk.bind(this.get_tab_id,this),reportErrorFunc:pk.bind(this.report_error,this),getDistinctIdFunc:pk.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:NE}),this["_jsc"]=jk,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(pk.localStorage.is_supported(!0)&&XE){if(this.init_batchers(),GE&&xi.addEventListener){var o=pk.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);xi.addEventListener("pagehide",function(e){e["persisted"]&&o()}),xi.addEventListener("visibilitychange",function(){"hidden"===nk["visibilityState"]&&o()})}}else this._batch_requests=!1,fk.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),pk.each(this.get_batcher_configs(),function(e){fk.log("Clearing batch queue "+e.queue_key),pk.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new LE(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=pk.UUID();this.get_distinct_id()||this.register_once({distinct_id:HE+s,$device_id:s},""),this.flags=new aE({getFullApiRoute:pk.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:pk.bind(this.get_config,this),setConfigFunc:pk.bind(this.set_config,this),getPropertyFunc:pk.bind(this.get_property,this),trackingFunc:pk.bind(this.track,this),loadExtraBundle:NE,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Mi}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new QC(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise=a===$E||a===WE?this._fetch_remote_settings(a).then(pk.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},QE.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))fk.log("Tab ID initialization skipped due to disable_persistence config");else if(pk.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;!pk.sessionStorage.get(r)&&pk.sessionStorage.get(t)||pk.sessionStorage.set(t,"$tab-"+pk.UUID()),pk.sessionStorage.set(r,"1"),this.tab_id=pk.sessionStorage.get(t),xi.addEventListener("beforeunload",function(){pk.sessionStorage.remove(r)})}catch(mA){this.report_error("Error initializing tab id",mA)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},QE.prototype.get_tab_id=function(){return this.tab_id||null},QE.prototype._check_and_start_session_recording=eS(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),QE.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},QE.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},QE.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},QE.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},QE.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},QE.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},QE.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},QE.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},QE.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},QE.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},QE.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=pk.info.campaignParams(null);pk.each(e,function(e,t){this.unregister(t)}.bind(this))}},QE.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(nk.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(pk.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(nk.referrer)},QE.prototype._dom_loaded=function(){pk.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||pk.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},QE.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(!ZE)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},QE.prototype._prepare_callback=function(e,t){if(pk.isUndefined(e))return null;if(XE){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},QE.prototype._send_request=function(e,t,r,n){var i=!0;if(YE)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||!pk.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=pk.extend(o,r||{}),XE||(r.method="GET");var a="POST"===r.method,c=GE&&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),XE||(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"]),pk.extend(t,this.get_config("api_extra_query_params")),e+="?"+pk.HTTPBuildQuery(t);var l=this;if("img"in t){var h=nk.createElement("img");h.src=e,nk.body.appendChild(h)}else if(c){try{i=GE(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(XE)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),pk.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=pk.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var m=nk.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=nk.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},QE.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!xi["AbortController"])return fk.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:Ai.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=pk.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return xi["fetch"](s,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(fk.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={};pk.each(n,function(e,t){KE.hasOwnProperty(t)&&(i[t]=e)}),pk.isEmptyObject(i)?(fk.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),fk.critical("Failed to fetch remote settings",e),r()})},QE.prototype._execute_array=function(e){var t,r=[],n=[],i=[];pk.each(e,function(e){e&&(t=e[0],pk.isArray(t)?i.push(e):"function"===typeof e?e.call(this):pk.isArray(e)&&"alias"===t?r.push(e):pk.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){pk.each(e,function(e){if(pk.isArray(e[0])){var r=t;pk.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)},QE.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},QE.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},QE.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=pk.bind(function(e){return new wS(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:pk.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:pk.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:pk.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()},QE.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,pk.each(this.request_batchers,function(e){e.start()}))},QE.prototype.stop_batch_senders=function(){this._batch_requests=!1,pk.each(this.request_batchers,function(e){e.stop(),e.clear()})},QE.prototype.push=function(e){this._execute_array([e])},QE.prototype.enable=function(e){var t,r,n,i;if("undefined"===typeof 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}},QE.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},QE.prototype._encode_data_for_request=function(e){var t=Uk(e);return this.get_config("api_payload_format")===zE&&(t=pk.base64Encode(t)),{data:t}},QE.prototype._track_or_batch=function(e,t){var r=pk.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||jk;var a=!0,c=pk.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(fk.log("MIXPANEL REQUEST:"),fk.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},QE.prototype.track=eS(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=jk),pk.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=pk.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!pk.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")?pk.info.marketingParams():{};t=pk.extend({},pk.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");pk.isArray(l)?pk.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)}}),QE.prototype.set_group=eS(function(e,t,r){pk.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),QE.prototype.add_group=eS(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)}),QE.prototype.remove_group=eS(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)}),QE.prototype.track_with_groups=eS(function(e,t,r,n){var i=pk.extend({},t||{});return pk.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),QE.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},QE.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},QE.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 _E,n._init(this,e,t),this._cached_groups[r]=n),n},QE.prototype.track_pageview=eS(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=pk.extend(pk.info.mpPageViewProperties(),pk.info.campaignParams(),pk.info.clickParams()),i=pk.extend({},n,e);return this.track(r,i)}),QE.prototype.track_links=function(){return this._track_dom.call(this,lE,arguments)},QE.prototype.track_forms=function(){return this._track_dom.call(this,hE,arguments)},QE.prototype.time_event=function(e){pk.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 tA={persistent:!0},rA=function(e){var t;return t=pk.isObject(e)?e:pk.isUndefined(e)?{}:{days:e},pk.extend({},tA,t)};QE.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=rA(t);n["persistent"]?this["persistence"].register(e,n["days"]):pk.extend(this.unpersisted_superprops,e)}},QE.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=rA(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),pk.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},QE.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=rA(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},QE.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},QE.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(HE))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(RE)&&(this.unregister(RE),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()},QE.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=pk.UUID();this.register_once({distinct_id:HE+e,$device_id:e},""),this._check_and_start_session_recording()},QE.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},QE.prototype.alias=function(e,t){if(e===this.get_property(ME))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return pk.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(RE,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)},QE.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},QE.prototype.set_config=function(e){if(pk.isObject(e)){pk.extend(this["config"],e);var t=e["batch_size"];t&&pk.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"]),Ai.DEBUG=Ai.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),pk.isObject(e["hooks"])&&(this.hooks={},pk.each(e["hooks"],function(e,t){if(pk.isFunction(e))this.hooks[t]=[e];else if(pk.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)pk.isFunction(e[r])||fk.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else fk.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},QE.prototype.get_config=function(e){return this["config"][e]},QE.prototype._run_hook=function(e){var t=Z_.call(arguments,1);return pk.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(pk.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},QE.prototype.get_property=function(e){return this["persistence"].load_prop([e])},QE.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},QE.prototype.toString=function(){var e=this.get_config("name");return e!==UE&&(e=UE+"."+e),e},QE.prototype._event_is_disabled=function(e){return pk.isBlockedUA(sk)||this._flags.disable_all_events||pk.include(this.__disabled_events,e)},QE.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&pk.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")&&!pk.cookie.get("mp_optout")||(pk.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},QE.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()},QE.prototype._gdpr_call_func=function(e,t){return t=pk.extend({track:pk.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),pk.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"]})},QE.prototype.opt_in_tracking=function(e){e=pk.extend({enable_persistence:!0},e),this._gdpr_call_func(Jk,e),this._gdpr_update_persistence(e)},QE.prototype.opt_out_tracking=function(e){e=pk.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(Kk,e),this._gdpr_update_persistence(e)},QE.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Zk,e)},QE.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Qk,e)},QE.prototype.clear_opt_in_out_tracking=function(e){e=pk.extend({enable_persistence:!0},e),this._gdpr_call_func(nS,e),this._gdpr_update_persistence(e)},QE.prototype.report_error=function(e,t){fk.error.apply(fk.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){fk.error(t)}},QE.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},QE.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):fk.log("remove_hook failed. Matching hook was not found"))},QE.prototype["init"]=QE.prototype.init,QE.prototype["reset"]=QE.prototype.reset,QE.prototype["enable"]=QE.prototype.enable,QE.prototype["disable"]=QE.prototype.disable,QE.prototype["time_event"]=QE.prototype.time_event,QE.prototype["track"]=QE.prototype.track,QE.prototype["track_links"]=QE.prototype.track_links,QE.prototype["track_forms"]=QE.prototype.track_forms,QE.prototype["track_pageview"]=QE.prototype.track_pageview,QE.prototype["register"]=QE.prototype.register,QE.prototype["register_once"]=QE.prototype.register_once,QE.prototype["unregister"]=QE.prototype.unregister,QE.prototype["identify"]=QE.prototype.identify,QE.prototype["alias"]=QE.prototype.alias,QE.prototype["name_tag"]=QE.prototype.name_tag,QE.prototype["set_config"]=QE.prototype.set_config,QE.prototype["get_config"]=QE.prototype.get_config,QE.prototype["get_api_host"]=QE.prototype.get_api_host,QE.prototype["get_property"]=QE.prototype.get_property,QE.prototype["get_distinct_id"]=QE.prototype.get_distinct_id,QE.prototype["toString"]=QE.prototype.toString,QE.prototype["opt_out_tracking"]=QE.prototype.opt_out_tracking,QE.prototype["opt_in_tracking"]=QE.prototype.opt_in_tracking,QE.prototype["has_opted_out_tracking"]=QE.prototype.has_opted_out_tracking,QE.prototype["has_opted_in_tracking"]=QE.prototype.has_opted_in_tracking,QE.prototype["clear_opt_in_out_tracking"]=QE.prototype.clear_opt_in_out_tracking,QE.prototype["get_group"]=QE.prototype.get_group,QE.prototype["set_group"]=QE.prototype.set_group,QE.prototype["add_group"]=QE.prototype.add_group,QE.prototype["remove_group"]=QE.prototype.remove_group,QE.prototype["add_hook"]=QE.prototype.add_hook,QE.prototype["remove_hook"]=QE.prototype.remove_hook,QE.prototype["track_with_groups"]=QE.prototype.track_with_groups,QE.prototype["start_batch_senders"]=QE.prototype.start_batch_senders,QE.prototype["stop_batch_senders"]=QE.prototype.stop_batch_senders,QE.prototype["start_session_recording"]=QE.prototype.start_session_recording,QE.prototype["stop_session_recording"]=QE.prototype.stop_session_recording,QE.prototype["pause_session_recording"]=QE.prototype.pause_session_recording,QE.prototype["resume_session_recording"]=QE.prototype.resume_session_recording,QE.prototype["get_session_recording_properties"]=QE.prototype.get_session_recording_properties,QE.prototype["get_session_replay_url"]=QE.prototype.get_session_replay_url,QE.prototype["get_tab_id"]=QE.prototype.get_tab_id,QE.prototype["DEFAULT_API_ROUTES"]=JE,QE.prototype["__get_recorder"]=QE.prototype.__get_recorder,QE.prototype["__get_recording_init_promise"]=QE.prototype.__get_recording_init_promise,LE.prototype["properties"]=LE.prototype.properties,LE.prototype["update_search_keyword"]=LE.prototype.update_search_keyword,LE.prototype["update_referrer_info"]=LE.prototype.update_referrer_info,LE.prototype["get_cross_subdomain"]=LE.prototype.get_cross_subdomain,LE.prototype["clear"]=LE.prototype.clear;var nA={},iA=function(){pk.each(nA,function(e,t){t!==UE&&(BE[t]=e)}),BE["_"]=pk},oA=function(){BE["init"]=function(e,t,r){if(r)return BE[r]||(BE[r]=nA[r]=eA(e,t,r),BE[r]._loaded()),BE[r];var n=BE;nA[UE]?n=nA[UE]:e&&(n=eA(e,t,UE),n._loaded(),nA[UE]=n),BE=n,SE===FE&&(xi[UE]=BE),iA()}},sA=function(){function e(){e.done||(e.done=!0,ZE=!0,YE=!1,pk.each(nA,function(e){e._dom_loaded()}))}function t(){try{nk.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(nk.addEventListener)"complete"===nk.readyState?e():nk.addEventListener("DOMContentLoaded",e,!1);else if(nk.attachEvent){nk.attachEvent("onreadystatechange",e);var r=!1;try{r=null===xi.frameElement}catch(n){}nk.documentElement.doScroll&&r&&t()}pk.register_event(xi,"load",e,!0)};function aA(e){return NE=e,SE=jE,BE=new QE,oA(),BE["init"](),sA(),BE}function cA(e,t){t()}var uA=aA(cA);const lA="@mixpanelIdentificationData",hA=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},dA={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(lA,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(lA),hasMixpanelIdentificationData:()=>!!dA.getMixpanelIdentificationData(),init:(e,t)=>{uA.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||dA.getMixpanelIdentificationData(),o=hA(i);if("production"===e&&o){dA.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),uA.identify(r),uA.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&uA.track(t,r)}};var pA=dA,fA={}}(),__webpack_exports__}()});