@shrfe/assets 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/shrfe-core-umd.js +3 -3
- package/package.json +1 -1
package/js/shrfe-core-umd.js
CHANGED
|
@@ -28,12 +28,12 @@ return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.create([
|
|
|
28
28
|
* derived from CryptoJS.mode.CTR
|
|
29
29
|
* Jan Hruby jhruby.web@gmail.com
|
|
30
30
|
*/
|
|
31
|
-
return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255===(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),n(s);var a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)e[t+c]^=a[c]}});return t.Decryptor=i,t}(),e.mode.CTRGladman})},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},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},9560:function(e,t,r){"use strict";var n=r(4345),i=r(3025),o=r(546),s=r(1617),a=r(4816),c=r(6552),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){if("string"===typeof e?(t=t||{},t.url=e):t=e||{},!t.url)throw new Error("Provided config url is not valid");t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o,l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!i){var h=[s,void 0];Array.prototype.unshift.apply(h,n),h=h.concat(l),o=Promise.resolve(t);while(h.length)o=o.then(h.shift(),h.shift());return o}var d=t;while(n.length){var p=n.shift(),f=n.shift();try{d=p(d)}catch(m){f(m);break}}try{o=s(d)}catch(m){return Promise.reject(m)}while(l.length)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}),e.exports=l},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},9805:function(e,t,r){(function(t,n){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},9945:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},9978:function(e){e.exports={version:"0.25.0"}}},__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
|
|
31
|
+
return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255===(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),n(s);var a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)e[t+c]^=a[c]}});return t.Decryptor=i,t}(),e.mode.CTRGladman})},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},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},9560:function(e,t,r){"use strict";var n=r(4345),i=r(3025),o=r(546),s=r(1617),a=r(4816),c=r(6552),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){if("string"===typeof e?(t=t||{},t.url=e):t=e||{},!t.url)throw new Error("Provided config url is not valid");t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o,l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!i){var h=[s,void 0];Array.prototype.unshift.apply(h,n),h=h.concat(l),o=Promise.resolve(t);while(h.length)o=o.then(h.shift(),h.shift());return o}var d=t;while(n.length){var p=n.shift(),f=n.shift();try{d=p(d)}catch(m){f(m);break}}try{o=s(d)}catch(m){return Promise.reject(m)}while(l.length)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}),e.exports=l},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},9805:function(e,t,r){(function(t,n){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},9945:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},9978:function(e){e.exports={version:"0.25.0"}}},__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 gi},HTTPBaseService:function(){return Nr},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return A_},ShrEventBus:function(){return vi},ShrPusherService:function(){return ki},default:function(){return E_}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Dr},fire:function(){return Rr},toast:function(){return Lr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return pi},makeRequestToExecute:function(){return fi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return mi}});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
|
-
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="@refreshToken";class m{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)}getRefreshTokenKey(){return f}getRefreshToken(){return this.get(f)}saveRefreshToken(e){this.set(f,e)}removeRefreshToken(){l.remove(f)}}var g=m;const v="@appClient",y="@loggedInUser";class w{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new g(e)}setClientDetails(e){h.setLocalStorageItem(v,e)}getClientDetails(){return h.getLocalStorageItem(v)}removeClientDetails(){localStorage.removeItem(v)}setLoggedInUser(e){h.setLocalStorageItem(y,e)}getLoggedInUser(){return h.getLocalStorageItem(y)}removeLoggedInUser(){localStorage.removeItem(y)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return e?.id}}var b=w,_=__webpack_require__(6586),k=__webpack_require__.n(_),S=__webpack_require__(6096);function C(){this.__data__=new S.A,this.size=0}var x=C;function A(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var E=A;function I(e){return this.__data__.get(e)}var O=I;function T(e){return this.__data__.has(e)}var M=T,P=__webpack_require__(5436),R=__webpack_require__(3269),D=200;function L(e,t){var r=this.__data__;if(r instanceof S.A){var n=r.__data__;if(!P.A||n.length<D-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new R.A(n)}return r.set(e,t),this.size=r.size,this}var B=L;function N(e){var t=this.__data__=new S.A(e);this.size=t.size}N.prototype.clear=x,N.prototype["delete"]=E,N.prototype.get=O,N.prototype.has=M,N.prototype.set=B;var j=N,U=__webpack_require__(9271),F=__webpack_require__(6979);function z(e,t,r){(void 0!==r&&!(0,F.A)(e[t],r)||void 0===r&&!(t in e))&&(0,U.A)(e,t,r)}var q=z;function H(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 $=H,W=$(),V=W,X=__webpack_require__(9600),Y="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=Y&&"object"==typeof module&&module&&!module.nodeType&&module,J=G&&G.exports===Y,K=J?X.A.Buffer:void 0,Z=K?K.allocUnsafe:void 0;function Q(e,t){if(t)return e.slice();var r=e.length,n=Z?Z(r):new e.constructor(r);return e.copy(n),n}var ee=Q,te=X.A.Uint8Array,re=te;function ne(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}var ie=ne;function oe(e,t){var r=t?ie(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var se=oe;function ae(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ce=ae,ue=__webpack_require__(7942),le=Object.create,he=function(){function e(){}return function(t){if(!(0,ue.A)(t))return{};if(le)return le(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),de=he,pe=__webpack_require__(7902),fe=Object.prototype;function me(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||fe;return e===r}var ge=me;function ve(e){return"function"!=typeof e.constructor||ge(e)?{}:de((0,pe.A)(e))}var ye=ve,we=__webpack_require__(4044),be=__webpack_require__(7313),_e="[object Arguments]";function ke(e){return(0,be.A)(e)&&(0,we.A)(e)==_e}var Se=ke,Ce=Object.prototype,xe=Ce.hasOwnProperty,Ae=Ce.propertyIsEnumerable,Ee=Se(function(){return arguments}())?Se:function(e){return(0,be.A)(e)&&xe.call(e,"callee")&&!Ae.call(e,"callee")},Ie=Ee,Oe=__webpack_require__(6956),Te=__webpack_require__(405),Me=9007199254740991;function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Me}var Re=Pe;function De(e){return null!=e&&Re(e.length)&&!(0,Te.A)(e)}var Le=De;function Be(e){return(0,be.A)(e)&&Le(e)}var Ne=Be;function je(){return!1}var Ue=je,Fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,ze=Fe&&"object"==typeof module&&module&&!module.nodeType&&module,qe=ze&&ze.exports===Fe,He=qe?X.A.Buffer:void 0,$e=He?He.isBuffer:void 0,We=$e||Ue,Ve=We,Xe=__webpack_require__(8938),Ye="[object Arguments]",Ge="[object Array]",Je="[object Boolean]",Ke="[object Date]",Ze="[object Error]",Qe="[object Function]",et="[object Map]",tt="[object Number]",rt="[object Object]",nt="[object RegExp]",it="[object Set]",ot="[object String]",st="[object WeakMap]",at="[object ArrayBuffer]",ct="[object DataView]",ut="[object Float32Array]",lt="[object Float64Array]",ht="[object Int8Array]",dt="[object Int16Array]",pt="[object Int32Array]",ft="[object Uint8Array]",mt="[object Uint8ClampedArray]",gt="[object Uint16Array]",vt="[object Uint32Array]",yt={};function wt(e){return(0,be.A)(e)&&Re(e.length)&&!!yt[(0,we.A)(e)]}yt[ut]=yt[lt]=yt[ht]=yt[dt]=yt[pt]=yt[ft]=yt[mt]=yt[gt]=yt[vt]=!0,yt[Ye]=yt[Ge]=yt[at]=yt[Je]=yt[ct]=yt[Ke]=yt[Ze]=yt[Qe]=yt[et]=yt[tt]=yt[rt]=yt[nt]=yt[it]=yt[ot]=yt[st]=!1;var bt=wt;function _t(e){return function(t){return e(t)}}var kt=_t,St=__webpack_require__(6713),Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,xt=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,At=xt&&xt.exports===Ct,Et=At&&St.A.process,It=function(){try{var e=xt&&xt.require&&xt.require("util").types;return e||Et&&Et.binding&&Et.binding("util")}catch(t){}}(),Ot=It,Tt=Ot&&Ot.isTypedArray,Mt=Tt?kt(Tt):bt,Pt=Mt;function Rt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Dt=Rt,Lt=__webpack_require__(6124);function Bt(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,Lt.A)(r,a,c)}return r}var Nt=Bt;function jt(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var Ut=jt,Ft=__webpack_require__(5378),zt=Object.prototype,qt=zt.hasOwnProperty;function Ht(e,t){var r=(0,Oe.A)(e),n=!r&&Ie(e),i=!r&&!n&&Ve(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&&!qt.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,Ft.A)(u,c))||a.push(u);return a}var $t=Ht;function Wt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Vt=Wt,Xt=Object.prototype,Yt=Xt.hasOwnProperty;function Gt(e){if(!(0,ue.A)(e))return Vt(e);var t=ge(e),r=[];for(var n in e)("constructor"!=n||!t&&Yt.call(e,n))&&r.push(n);return r}var Jt=Gt;function Kt(e){return Le(e)?$t(e,!0):Jt(e)}var Zt=Kt;function Qt(e){return Nt(e,Zt(e))}var er=Qt;function tr(e,t,r,n,i,o,s){var a=Dt(e,r),c=Dt(t,r),u=s.get(c);if(u)q(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,Oe.A)(c),p=!d&&Ve(c),f=!d&&!p&&Pt(c);l=c,d||p||f?(0,Oe.A)(a)?l=a:Ne(a)?l=ce(a):p?(h=!1,l=ee(c,!0)):f?(h=!1,l=se(c,!0)):l=[]:(0,Xe.A)(c)||Ie(c)?(l=a,Ie(a)?l=er(a):(0,ue.A)(a)&&!(0,Te.A)(a)||(l=ye(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),q(e,r,l)}}var rr=tr;function nr(e,t,r,n,i){e!==t&&V(t,function(o,s){if(i||(i=new j),(0,ue.A)(o))rr(e,t,s,r,nr,n,i);else{var a=n?n(Dt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),q(e,s,a)}},Zt)}var ir=nr;function or(e){return e}var sr=or;function ar(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 cr=ar,ur=Math.max;function lr(e,t,r){return t=ur(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=ur(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),cr(e,this,a)}}var hr=lr;function dr(e){return function(){return e}}var pr=dr,fr=__webpack_require__(1758),mr=fr.A?function(e,t){return(0,fr.A)(e,"toString",{configurable:!0,enumerable:!1,value:pr(t),writable:!0})}:sr,gr=mr,vr=800,yr=16,wr=Date.now;function br(e){var t=0,r=0;return function(){var n=wr(),i=yr-(n-r);if(r=n,i>0){if(++t>=vr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _r=br,kr=_r(gr),Sr=kr;function Cr(e,t){return Sr(hr(e,t,sr),e+"")}var xr=Cr;function Ar(e,t,r){if(!(0,ue.A)(r))return!1;var n=typeof t;return!!("number"==n?Le(r)&&(0,Ft.A)(t,r.length):"string"==n&&t in r)&&(0,F.A)(r[t],e)}var Er=Ar;function Ir(e){return xr(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&&Er(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 Or=Ir,Tr=Or(function(e,t,r){ir(e,t,r)}),Mr=Tr;const Pr=e=>k().fire(e),Rr=(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=Mr(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})},Dr=(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",k().stopTimer),e.addEventListener("mouseleave",k().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>`})},Lr={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Br{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new g(e?.encryptionKey),this.authService=new b(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}`},Lr);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(Dr("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):(Dr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?Dr("error","Error",e.response.data.message):Dr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?Dr("error","Error",e.response.data.message):Dr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?Dr("error","Error",e.response.data.message):Dr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&Dr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),Dr("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)}}
|
|
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),C=__webpack_require__(6096);function x(){this.__data__=new C.A,this.size=0}var A=x;function E(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var I=E;function O(e){return this.__data__.get(e)}var T=O;function M(e){return this.__data__.has(e)}var P=M,R=__webpack_require__(5436),D=__webpack_require__(3269),L=200;function B(e,t){var r=this.__data__;if(r instanceof C.A){var n=r.__data__;if(!R.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 C.A(e);this.size=t.size}j.prototype.clear=A,j.prototype["delete"]=I,j.prototype.get=T,j.prototype.has=P,j.prototype.set=N;var U=j,F=__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,F.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 Ce=Se,xe=Object.prototype,Ae=xe.hasOwnProperty,Ee=xe.propertyIsEnumerable,Ie=Ce(function(){return arguments}())?Ce:function(e){return(0,_e.A)(e)&&Ae.call(e,"callee")&&!Ee.call(e,"callee")},Oe=Ie,Te=__webpack_require__(6956),Me=__webpack_require__(405),Pe=9007199254740991;function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pe}var De=Re;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 Ue(){return!1}var Fe=Ue,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||Fe,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,Ct=__webpack_require__(6713),xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=xt&&"object"==typeof module&&module&&!module.nodeType&&module,Et=At&&At.exports===xt,It=Et&&Ct.A.process,Ot=function(){try{var e=At&&At.require&&At.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(t){}}(),Tt=Ot,Mt=Tt&&Tt.isTypedArray,Pt=Mt?St(Mt):_t,Rt=Pt;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,F.A)(r,a,c):(0,Bt.A)(r,a,c)}return r}var jt=Nt;function Ut(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var Ft=Ut,zt=__webpack_require__(5378),qt=Object.prototype,Ht=qt.hasOwnProperty;function $t(e,t){var r=(0,Te.A)(e),n=!r&&Oe(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Rt(e),s=r||n||i||o,a=s?Ft(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&&Rt(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)||Oe(c)?(l=a,Oe(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 U),(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),Cr=Sr;function xr(e,t){return Cr(dr(e,t,ar),e+"")}var Ar=xr;function Er(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 Ir=Er;function Or(e){return Ar(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&&Ir(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=Or,Mr=Tr(function(e,t,r){or(e,t,r)}),Pr=Mr;const Rr=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=Pr(r,e,n);return Rr({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}Rr({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
35
|
* @vue/shared v3.5.24
|
|
36
36
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
37
37
|
* @license MIT
|
|
38
38
|
**/
|
|
39
|
-
function Nr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const jr=Object.assign,Ur=Object.prototype.hasOwnProperty,Fr=(e,t)=>Ur.call(e,t),zr=Array.isArray,qr=e=>"[object Map]"===Xr(e),Hr=e=>"string"===typeof e,$r=e=>"symbol"===typeof e,Wr=e=>null!==e&&"object"===typeof e,Vr=Object.prototype.toString,Xr=e=>Vr.call(e),Yr=e=>Xr(e).slice(8,-1),Gr=e=>Hr(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Jr=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},Kr=/-\w/g,Zr=(Jr(e=>e.replace(Kr,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),Qr=(Jr(e=>e.replace(Zr,"-$1").toLowerCase()),Jr(e=>e.charAt(0).toUpperCase()+e.slice(1))),en=(Jr(e=>{const t=e?`on${Qr(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let tn;let rn,nn,on=0;function sn(){on++}function an(){if(--on>0)return;if(nn){let e=nn;nn=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(rn){let r=rn;rn=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 cn=!0;const un=[];function ln(){un.push(cn),cn=!1}function hn(){const e=un.pop();cn=void 0===e||e}class dn{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 pn{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(!tn||!cn||tn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==tn)t=this.activeLink=new dn(tn,this),tn.deps?(t.prevDep=tn.depsTail,tn.depsTail.nextDep=t,tn.depsTail=t):tn.deps=tn.depsTail=t,fn(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=tn.depsTail,t.nextDep=void 0,tn.depsTail.nextDep=t,tn.depsTail=t,tn.deps===t&&(tn.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){sn();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{an()}}}function fn(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)fn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const mn=new WeakMap,gn=Symbol(""),vn=Symbol(""),yn=Symbol("");function wn(e,t,r){if(cn&&tn){let t=mn.get(e);t||mn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new pn),n.map=t,n.key=r),n.track()}}function bn(e,t,r,n,i,o){const s=mn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(sn(),"clear"===t)s.forEach(a);else{const i=zr(e),o=i&&Gr(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===yn||!$r(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(yn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(gn)),qr(e)&&a(s.get(vn)));break;case"delete":i||(a(s.get(gn)),qr(e)&&a(s.get(vn)));break;case"set":qr(e)&&a(s.get(gn));break}}an()}function _n(e,t){const r=mn.get(e);return r&&r.get(t)}function kn(e){const t=oi(e);return t===e?t:(wn(t,"iterate",yn),ni(e)?t:t.map(si))}function Sn(e){return wn(e=oi(e),"iterate",yn),e}const Cn={__proto__:null,[Symbol.iterator](){return xn(this,Symbol.iterator,si)},concat(...e){return kn(this).concat(...e.map(e=>zr(e)?kn(e):e))},entries(){return xn(this,"entries",e=>(e[1]=si(e[1]),e))},every(e,t){return En(this,"every",e,t,void 0,arguments)},filter(e,t){return En(this,"filter",e,t,e=>e.map(si),arguments)},find(e,t){return En(this,"find",e,t,si,arguments)},findIndex(e,t){return En(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return En(this,"findLast",e,t,si,arguments)},findLastIndex(e,t){return En(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return En(this,"forEach",e,t,void 0,arguments)},includes(...e){return On(this,"includes",e)},indexOf(...e){return On(this,"indexOf",e)},join(e){return kn(this).join(e)},lastIndexOf(...e){return On(this,"lastIndexOf",e)},map(e,t){return En(this,"map",e,t,void 0,arguments)},pop(){return Tn(this,"pop")},push(...e){return Tn(this,"push",e)},reduce(e,...t){return In(this,"reduce",e,t)},reduceRight(e,...t){return In(this,"reduceRight",e,t)},shift(){return Tn(this,"shift")},some(e,t){return En(this,"some",e,t,void 0,arguments)},splice(...e){return Tn(this,"splice",e)},toReversed(){return kn(this).toReversed()},toSorted(e){return kn(this).toSorted(e)},toSpliced(...e){return kn(this).toSpliced(...e)},unshift(...e){return Tn(this,"unshift",e)},values(){return xn(this,"values",si)}};function xn(e,t,r){const n=Sn(e),i=n[t]();return n===e||ni(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const An=Array.prototype;function En(e,t,r,n,i,o){const s=Sn(e),a=s!==e&&!ni(e),c=s[t];if(c!==An[t]){const t=c.apply(e,o);return a?si(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,si(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 In(e,t,r,n){const i=Sn(e);let o=r;return i!==e&&(ni(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,si(n),i,e)}),i[t](o,...n)}function On(e,t,r){const n=oi(e);wn(n,"iterate",yn);const i=n[t](...r);return-1!==i&&!1!==i||!ii(r[0])?i:(r[0]=oi(r[0]),n[t](...r))}function Tn(e,t,r=[]){ln(),sn();const n=oi(e)[t].apply(e,r);return an(),hn(),n}const Mn=Nr("__proto__,__v_isRef,__isVue"),Pn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter($r));function Rn(e){$r(e)||(e=String(e));const t=oi(this);return wn(t,"has",e),t.hasOwnProperty(e)}class Dn{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?Jn:Gn:i?Yn:Xn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=zr(e);if(!n){let e;if(o&&(e=Cn[t]))return e;if("hasOwnProperty"===t)return Rn}const s=Reflect.get(e,t,ci(e)?e:r);if($r(t)?Pn.has(t):Mn(t))return s;if(n||wn(e,"get",t),i)return s;if(ci(s)){const e=o&&Gr(t)?s:s.value;return n&&Wr(e)?ei(e):e}return Wr(s)?n?ei(s):Qn(s):s}}class Ln extends Dn{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];if(!this._isShallow){const t=ri(i);if(ni(r)||ri(r)||(i=oi(i),r=oi(r)),!zr(e)&&ci(i)&&!ci(r))return t||(i.value=r),!0}const o=zr(e)&&Gr(t)?Number(t)<e.length:Fr(e,t),s=Reflect.set(e,t,r,ci(e)?e:n);return e===oi(n)&&(o?en(r,i)&&bn(e,"set",t,r,i):bn(e,"add",t,r)),s}deleteProperty(e,t){const r=Fr(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&bn(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return $r(t)&&Pn.has(t)||wn(e,"has",t),r}ownKeys(e){return wn(e,"iterate",zr(e)?"length":gn),Reflect.ownKeys(e)}}class Bn extends Dn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Nn=new Ln,jn=new Bn,Un=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function zn(e,t,r){return function(...n){const i=this["__v_raw"],o=oi(i),s=qr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?Un:t?ai:si;return!t&&wn(o,"iterate",c?vn:gn),{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}},[Symbol.iterator](){return this}}}}function qn(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Hn(e,t){const r={get(r){const n=this["__v_raw"],i=oi(n),o=oi(r);e||(en(r,o)&&wn(i,"get",r),wn(i,"get",o));const{has:s}=Fn(i),a=t?Un:e?ai:si;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&&wn(oi(t),"iterate",gn),t.size},has(t){const r=this["__v_raw"],n=oi(r),i=oi(t);return e||(en(t,i)&&wn(n,"has",t),wn(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=oi(o),a=t?Un:e?ai:si;return!e&&wn(s,"iterate",gn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};jr(r,e?{add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear")}:{add(e){t||ni(e)||ri(e)||(e=oi(e));const r=oi(this),n=Fn(r),i=n.has.call(r,e);return i||(r.add(e),bn(r,"add",e,e)),this},set(e,r){t||ni(r)||ri(r)||(r=oi(r));const n=oi(this),{has:i,get:o}=Fn(n);let s=i.call(n,e);s||(e=oi(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?en(r,a)&&bn(n,"set",e,r,a):bn(n,"add",e,r),this},delete(e){const t=oi(this),{has:r,get:n}=Fn(t);let i=r.call(t,e);i||(e=oi(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&bn(t,"delete",e,void 0,o),s},clear(){const e=oi(this),t=0!==e.size,r=void 0,n=e.clear();return t&&bn(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=zn(n,e,t)}),r}function $n(e,t){const r=Hn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(Fr(r,n)&&n in t?r:t,n,i)}const Wn={get:$n(!1,!1)},Vn={get:$n(!0,!1)};const Xn=new WeakMap,Yn=new WeakMap,Gn=new WeakMap,Jn=new WeakMap;function Kn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zn(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Kn(Yr(e))}function Qn(e){return ri(e)?e:ti(e,!1,Nn,Wn,Xn)}function ei(e){return ti(e,!0,jn,Vn,Gn)}function ti(e,t,r,n,i){if(!Wr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=Zn(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 ri(e){return!(!e||!e["__v_isReadonly"])}function ni(e){return!(!e||!e["__v_isShallow"])}function ii(e){return!!e&&!!e["__v_raw"]}function oi(e){const t=e&&e["__v_raw"];return t?oi(t):e}const si=e=>Wr(e)?Qn(e):e,ai=e=>Wr(e)?ei(e):e;function ci(e){return!!e&&!0===e["__v_isRef"]}function ui(e){const t=zr(e)?new Array(e.length):{};for(const r in e)t[r]=hi(e,r);return t}class li{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return _n(oi(this._object),this._key)}}function hi(e,t,r){const n=e[t];return ci(n)?n:new li(e,t,r)}function di(e,t,r){const n=Qn({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 pi(e,t,r){const n=Qn({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{...ui(n),execute:i}}const fi=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(fi(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class mi{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 gi=new mi("shr-event-bus");var vi=__webpack_require__(2242),yi=__webpack_require__.n(vi);class wi{pusher;setupPusherConnection(e,t){this.pusher=new(yi())(e,t)}}var bi,_i=new wi;if("undefined"===typeof window){var ki={hostname:""};bi={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ki,referrer:""},screen:{width:0,height:0},location:ki,addEventListener:function(){},removeEventListener:function(){}}}else bi=window;function Si(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 Ci(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 xi(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Ci(o,n,i,s,a,"next",e)}function a(e){Ci(o,n,i,s,a,"throw",e)}s(void 0)})}}function Ai(e,t,r){return Ai=Ui()?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&&Li(o,r.prototype),o},Ai.apply(null,arguments)}function Ei(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 Ii(e,t,r){return t&&Ei(e.prototype,t),e}function Oi(){return Oi=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},Oi.apply(this,arguments)}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ti(e)}function Mi(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&&Li(e,t)}function Pi(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ri(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Di(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 Li(e,t){return Li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Li(e,t)}function Bi(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ni(e,t){if(e){if("string"===typeof e)return Si(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)?Si(e,t):void 0}}function ji(e){var t="function"===typeof Map?new Map:void 0;return ji=function(e){if(null===e||!Ri(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 Ai(e,arguments,Ti(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Li(r,e)},ji(e)}function Ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(_v){}return(Ui=function(){return!!e})()}function Fi(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=Ni(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 zi(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 qi(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 Hi,$i=Object.defineProperty,Wi=function(e,t,r){return t in e?$i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Vi=function(e,t,r){return Wi(e,"symbol"!==("undefined"===typeof t?"undefined":Bi(t))?t+"":t,r)},Xi=Object.defineProperty,Yi=function(e,t,r){return t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Gi=function(e,t,r){return Yi(e,"symbol"!==("undefined"===typeof t?"undefined":Bi(t))?t+"":t,r)},Ji=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}(Ji||{}),Ki={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qi={},eo=function(){return!!globalThis.Zone};function to(e){if(Qi[e])return Qi[e];var t=globalThis[e],r=t.prototype,n=e in Ki?Ki[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 Zi?Zi[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&&!eo())return Qi[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?Qi[e]=u:r}catch(l){return r}}var ro={};function no(e,t,r){var n,i=e+"."+String(r);if(ro[i])return ro[i].call(t);var o=to(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ro[i]=s,s.call(t)):t[r]}var io={};function oo(e,t,r){var n=e+"."+String(r);if(io[n])return io[n].bind(t);var i=to(e),o=i[r];return"function"!==typeof o?t[r]:(io[n]=o,o.bind(t))}function so(e){return no("Node",e,"childNodes")}function ao(e){return no("Node",e,"parentNode")}function co(e){return no("Node",e,"parentElement")}function uo(e){return no("Node",e,"textContent")}function lo(e,t){return oo("Node",e,"contains")(t)}function ho(e){return oo("Node",e,"getRootNode")()}function po(e){return e&&"host"in e?no("ShadowRoot",e,"host"):null}function fo(e){return e.styleSheets}function mo(e){return e&&"shadowRoot"in e?no("Element",e,"shadowRoot"):null}function go(e,t){return no("Element",e,"querySelector")(t)}function vo(e,t){return no("Element",e,"querySelectorAll")(t)}function yo(){return to("MutationObserver").constructor}function wo(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 bo={childNodes:so,parentNode:ao,parentElement:co,textContent:uo,contains:lo,getRootNode:ho,host:po,styleSheets:fo,shadowRoot:mo,querySelector:go,querySelectorAll:vo,mutationObserver:yo,patch:wo};function _o(e){return e.nodeType===e.ELEMENT_NODE}function ko(e){var t=e&&"host"in e&&"mode"in e&&bo.host(e)||null;return Boolean(t&&"shadowRoot"in t&&bo.shadowRoot(t)===e)}function So(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Co(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 xo(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 Ao(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 Eo(e,r)}).join("");return Co(n)}catch(i){return null}}function Eo(e,t){if(Oo(e)){var r;try{r=Ao(e.styleSheet)||xo(e)}catch(i){r=e.cssText}return e.styleSheet.href?$o(r,e.styleSheet.href):r}var n=e.cssText;return To(e)&&e.selectorText.includes(":")&&(n=Io(n)),t?$o(n,t):n}function Io(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Oo(e){return"styleSheet"in e}function To(e){return"selectorText"in e}var Mo=function(){function e(){Gi(this,"idNodeMap",new Map),Gi(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){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},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 Po(){return new Mo}function Ro(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Do(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Do(e){return e.toLowerCase()}var Lo="__rrweb_original__";function Bo(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=Lo in o?o[Lo]: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 No(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Do(t):null}function jo(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 Uo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Fo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,zo=/^(?:[a-z+]+:)?\/\//i,qo=/^www\..*/i,Ho=/^(data:)([^,]*),(.*)/i;function $o(e,t){return(e||"").replace(Fo,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(zo.test(a)||qo.test(a))return"url("+c+a+c+")";if(Ho.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Uo(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Fi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function Wo(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Vo(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=Wo(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=Wo(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=Wo(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=Wo(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 Xo(e,t){return Vo(e,t).join("/* rr_split */")}var Yo,Go,Jo=1,Ko=new RegExp("[^a-z0-9-_:]"),Zo=-2;function Qo(){return Jo++}function es(e){if(Pi(e,HTMLFormElement))return"form";var t=Do(e.tagName);return Ko.test(t)?"div":t}var ts=/^[^ \t\n\r\u000c]+/,rs=/^[, \t\n\r\u000c]+/;function ns(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(rs),r>=t.length)break;var o=n(ts);if(","===o.slice(-1))o=os(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=os(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 is=new WeakMap;function os(e,t){return t&&""!==t.trim()?as(e,t):t}function ss(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function as(e,t){var r=is.get(e);if(r||(r=e.createElement("a"),is.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function cs(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?os(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?ns(e,n):"style"===r?$o(n,as(e)):"object"===t&&"data"===r?os(e,n):n:os(e,n):n}function us(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ls(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 hs(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&hs(bo.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&hs(bo.parentNode(e),t,r)}function ds(e,t,r,n){var i;if(_o(e)){if(i=e,!bo.childNodes(i).length)return!1}else{if(null===bo.parentElement(e))return!1;i=bo.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(hs(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 ps(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 fs(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 ms(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,_=gs(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ji.Document,childNodes:[],compatMode:e.compatMode}:{type:Ji.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ji.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return ys(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 vs(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Ji.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:Ji.Comment,textContent:bo.textContent(e)||"",rootId:_};default:return!1}}function gs(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function vs(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=bo.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=bo.textContent(e),u&&c&&(c=$o(c,as(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,bo.parentElement(e)):c.replace(/[\S]/g,"*")),{type:Ji.Text,textContent:c||"",rootId:i}}function ys(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=ls(e,i,o),w=es(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];us(w,S.name,S.value)||(b[S.name]=cs(n,w,Do(S.name),S.value))}if("link"===w&&s){var C=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;C&&(x=Ao(C)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===w&&e.sheet){var A=Ao(e.sheet);A&&(e.childNodes.length>1&&(A=Xo(A,e)),b._cssText=A)}if("input"===w||"textarea"===w||"select"===w){var E=e.value,I=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=Ro({element:e,type:No(e),tagName:w,value:E,maskInputOptions:c,maskInputFn:u}):I&&(b.checked=I)}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)Bo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var O=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);O!==M&&(b.rr_dataURL=O)}if("img"===w&&d){Yo||(Yo=n.createElement("canvas"),Go=Yo.getContext("2d"));var P=e,R=P.currentSrc||P.getAttribute("src")||"<unknown-src>",D=P.crossOrigin,L=function(){P.removeEventListener("load",L);try{Yo.width=P.naturalWidth,Yo.height=P.naturalHeight,Go.drawImage(P,0,0),b.rr_dataURL=Yo.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==P.crossOrigin)return P.crossOrigin="anonymous",void(P.complete&&0!==P.naturalWidth?L():P.addEventListener("load",L));console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===P.crossOrigin&&(D?b.crossOrigin=D:P.removeAttribute("crossorigin"))};P.complete&&0!==P.naturalWidth?L():P.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,U=N.height;b={class:b.class,rr_width:j+"px",rr_height:U+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(F){}return{type:Ji.Element,tagName:w,attributes:b,childNodes:[],isSVG:ss(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function ws(e){return void 0===e||null===e?"":e.toLowerCase()}function bs(e,t){if(t.comment&&e.type===Ji.Comment)return!0;if(e.type===Ji.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"===jo(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ws(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ws(e.attributes.name)||"icon"===ws(e.attributes.rel)||"apple-touch-icon"===ws(e.attributes.rel)||"shortcut icon"===ws(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ws(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ws(e.attributes.property).match(/^(og|twitter|fb):/)||ws(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ws(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ws(e.attributes.name)||"googlebot"===ws(e.attributes.name)||"bingbot"===ws(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ws(e.attributes.name)||"generator"===ws(e.attributes.name)||"framework"===ws(e.attributes.name)||"publisher"===ws(e.attributes.name)||"progid"===ws(e.attributes.name)||ws(e.attributes.property).match(/^article:/)||ws(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ws(e.attributes.name)||"yandex-verification"===ws(e.attributes.name)||"csrf-token"===ws(e.attributes.name)||"p:domain_verify"===ws(e.attributes.name)||"verify-v1"===ws(e.attributes.name)||"verification"===ws(e.attributes.name)||"shopify-checkout-api-token"===ws(e.attributes.name)))return!0}}return!1}function _s(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,C=t.onIframeLoad,x=t.iframeLoadTimeout,A=void 0===x?5e3:x,E=t.onStylesheetLoad,I=t.stylesheetLoadTimeout,O=void 0===I?5e3:I,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,P=t.newlyAddedElement,R=void 0!==P&&P,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var U=void 0===B;B=ds(e,s,a,U)}var F,z=ms(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:R,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;F=n.hasNode(e)?n.getId(e):bs(z,g)||!j&&z.type===Ji.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?Zo:Qo();var q=Object.assign(z,{id:F});if(n.add(e,q),F===Zo)return null;S&&S(e);var H=!u;if(q.type===Ji.Element){H=H&&!q.needBlock,delete q.needBlock;var $=bo.shadowRoot(e);$&&So($)&&(q.isShadowHost=!0)}if((q.type===Ji.Document||q.type===Ji.Element)&&H){g.headWhitespace&&q.type===Ji.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:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:O,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===Ji.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===Ji.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,X=Fi(Array.from(bo.childNodes(e)));!(V=X()).done;){var Y=V.value,G=_s(Y,W);G&&q.childNodes.push(G)}}var J=null;if(_o(e)&&(J=bo.shadowRoot(e)))for(var K,Z=Fi(Array.from(bo.childNodes(J)));!(K=Z()).done;){var Q=K.value,ee=_s(Q,W);ee&&(So(J)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=bo.parentNode(e);return te&&ko(te)&&So(te)&&(q.isShadow=!0),q.type===Ji.Element&&"iframe"===q.tagName&&ps(e,function(){var t=e.contentDocument;if(t&&C){var r=_s(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:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:O,keepIframeSrcFn:M});r&&C(e,r)}},A),q.type===Ji.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===jo(q.attributes.href))&&fs(e,function(){if(E){var t=_s(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:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:O,keepIframeSrcFn:M});t&&E(e,t)}},O),q}function ks(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Mo: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,C=void 0!==S&&S,x=r.dataURLOptions,A=r.preserveWhiteSpace,E=r.onSerialize,I=r.onIframeLoad,O=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,P=r.keepIframeSrcFn,R=void 0===P?function(){return!1}:P,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===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C;return _s(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:x,inlineImages:g,recordCanvas:y,preserveWhiteSpace:A,onSerialize:E,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:R,newlyAddedElement:!1})}function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Cs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Pi(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 xs={exports:{}},As=String,Es=function(){return{isColorSupported:!1,reset:As,bold:As,dim:As,italic:As,underline:As,inverse:As,hidden:As,strikethrough:As,black:As,red:As,green:As,yellow:As,blue:As,magenta:As,cyan:As,white:As,gray:As,bgBlack:As,bgRed:As,bgGreen:As,bgYellow:As,bgBlue:As,bgMagenta:As,bgCyan:As,bgWhite:As}};xs.exports=Es(),xs.exports.createColors=Es;var Is=xs.exports,Os={},Ts=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Ms=Cs(Ts),Ps=Is,Rs=Ms,Ds=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}Mi(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=Ps.isColorSupported),Rs&&e&&(r=Rs(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=Ps.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}(ji(Error)),Ls=Ds;Ds.default=Ds;var Bs={};Bs.isClean=Symbol("isClean"),Bs.my=Symbol("my");var Ns={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function js(e){return e[0].toUpperCase()+e.slice(1)}var Us=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 Ns[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"+js(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=Ns[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}(),Fs=Us;Us.default=Us;var zs=Fs;function qs(e,t){var r=new zs(t);r.stringify(e)}var Hs=qs;qs.default=qs;var $s=Bs.isClean,Ws=Bs.my,Vs=Ls,Xs=Fs,Ys=Hs;function Gs(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":Bi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Gs(e,r)}):("object"===o&&null!==i&&(i=Gs(i)),r[n]=i)}return r}var Js=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[$s]=!1,this[Ws]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Fi(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=Gs(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 Vs(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[$s]){this[$s]=!1;var e=this;while(e=e.parent)e[$s]=!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 Xs;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=Fi(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":Bi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Bi(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=Ys),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)},Ii(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ks=Js;Js.default=Js;var Zs=Ks,Qs=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Oi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Mi(t,e),Ii(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Zs),ea=Qs;Qs.default=Qs;var ta="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ra=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=ta[64*Math.random()|0];return t},na={nanoid:ra},ia=Ms.SourceMapConsumer,oa=Ms.SourceMapGenerator,sa=Ms.existsSync,aa=Ms.readFileSync,ca=Ms.dirname,ua=Ms.join;function la(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ha=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=ca(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ia(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 la(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":Bi(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=ca(e),sa(e))return this.mapFile=e,aa(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Pi(t,ia))return oa.fromSourceMap(t).toString();if(Pi(t,oa))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=ua(ca(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),da=ha;ha.default=ha;var pa=Ms.SourceMapConsumer,fa=Ms.SourceMapGenerator,ma=Ms.fileURLToPath,ga=Ms.pathToFileURL,va=Ms.isAbsolute,ya=Ms.resolve,wa=na.nanoid,ba=Ms,_a=Ls,ka=da,Sa=Symbol("fromOffsetCache"),Ca=Boolean(pa&&fa),xa=Boolean(ya&&va),Aa=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Bi(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&&(!xa||/^\w+:\/\//.test(t.from)||va(t.from)?this.file=t.from:this.file=ya(t.from)),xa&&Ca){var r=new ka(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 "+wa(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":Bi(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 _a(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 _a(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&&(ga&&(i.input.url=ga(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Sa])r=this[Sa];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[Sa]=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:ya(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=va(a.source)?ga(a.source):new URL(a.source,this.map.consumer().sourceRoot||ga(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(!ma)throw new Error("file: protocol is not available in this PostCSS build");c.file=ma(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=Oi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ii(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ea=Aa;Aa.default=Aa,ba&&ba.registerInput&&ba.registerInput(Aa);var Ia=Ms.SourceMapConsumer,Oa=Ms.SourceMapGenerator,Ta=Ms.dirname,Ma=Ms.relative,Pa=Ms.resolve,Ra=Ms.sep,Da=Ms.pathToFileURL,La=Ea,Ba=Boolean(Ia&&Oa),Na=Boolean(Ta&&Pa&&Ma&&Ra),ja=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=Fi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ta(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ia(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(),Na&&Ba&&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=Oa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Oa({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 Oa({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?Ta(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Ta(Pa(r,this.mapOpts.annotation)));var n=Ma(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 La(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(Da){var r=Da(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;"\\"===Ra&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ua=ja,Fa=Ks,za=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Mi(t,e),t}(Fa),qa=za;za.default=za;var Ha,$a,Wa,Va,Xa=Bs.isClean,Ya=Bs.my,Ga=ea,Ja=qa,Ka=Ks;function Za(e){return e.map(function(e){return e.nodes&&(e.nodes=Za(e.nodes)),delete e.source,e})}function Qa(e){if(e[Xa]=!1,e.proxyOf.nodes)for(var t,r=Fi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Qa(n)}}var ec=function(e){function t(){return e.apply(this,arguments)||this}Mi(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=Fi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Fi(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=Fi(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=Fi(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=Fi(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=Za(Ha(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Fi(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=Fi(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 Ga(e)]}else if(e.selector)e=[new $a(e)];else if(e.name)e=[new Wa(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ja(e)]}var l=e.map(function(e){return e[Ya]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Xa]&&Qa(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=Fi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Fi(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=Fi(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?Pi(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?Pi(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?Pi(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)}))},Ii(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}(Ka);ec.registerParse=function(e){Ha=e},ec.registerRule=function(e){$a=e},ec.registerAtRule=function(e){Wa=e},ec.registerRoot=function(e){Va=e};var tc=ec;ec.default=ec,ec.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Wa.prototype):"rule"===e.type?Object.setPrototypeOf(e,$a.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ga.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ja.prototype):"root"===e.type&&Object.setPrototypeOf(e,Va.prototype),e[Ya]=!0,e.nodes&&e.nodes.forEach(function(e){ec.rebuild(e)})};var rc,nc,ic=tc,oc=function(e){function t(t){var r;return r=e.call(this,Oi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Mi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new rc(new nc,this,e);return t.stringify()},t}(ic);oc.registerLazyResult=function(e){rc=e},oc.registerProcessor=function(e){nc=e};var sc=oc;oc.default=oc;var ac=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}(),cc=ac;ac.default=ac;var uc=cc,lc=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 uc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ii(e,[{key:"content",get:function(){return this.css}}]),e}(),hc=lc;lc.default=lc;var dc="'".charCodeAt(0),pc='"'.charCodeAt(0),fc="\\".charCodeAt(0),mc="/".charCodeAt(0),gc="\n".charCodeAt(0),vc=" ".charCodeAt(0),yc="\f".charCodeAt(0),wc="\t".charCodeAt(0),bc="\r".charCodeAt(0),_c="[".charCodeAt(0),kc="]".charCodeAt(0),Sc="(".charCodeAt(0),Cc=")".charCodeAt(0),xc="{".charCodeAt(0),Ac="}".charCodeAt(0),Ec=";".charCodeAt(0),Ic="*".charCodeAt(0),Oc=":".charCodeAt(0),Tc="@".charCodeAt(0),Mc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Rc=/.[\r\n"'(/\\]/,Dc=/[\da-f]/i,Lc=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 gc:case vc:case wc:case bc:case yc:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===vc||r===gc||r===wc||r===bc||r===yc);h=["space",d.slice(m,n)],m=n-1;break;case _c:case kc:case xc:case Ac:case Oc:case Ec:case Cc:var y=String.fromCharCode(r);h=[y,y,m];break;case Sc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==dc&&l!==pc&&l!==vc&&l!==gc&&l!==wc&&l!==yc&&l!==bc){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)===fc)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||Rc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case dc:case pc:i=r===dc?"'":'"',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)===fc)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Tc:Mc.lastIndex=m+1,Mc.test(d),n=0===Mc.lastIndex?d.length-1:Mc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case fc:n=m,s=!0;while(d.charCodeAt(n+1)===fc)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==mc&&r!==vc&&r!==gc&&r!==wc&&r!==bc&&r!==yc&&(n+=1,Dc.test(d.charAt(n)))){while(Dc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===vc&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===mc&&d.charCodeAt(m+1)===Ic?(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):(Pc.lastIndex=m+1,Pc.test(d),n=0===Pc.lastIndex?d.length-1:Pc.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}},Bc=tc,Nc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Mi(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}(Bc),jc=Nc;Nc.default=Nc,Bc.registerAtRule(Nc);var Uc,Fc,zc=tc,qc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Mi(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=Fi(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 Uc(new Fc,this,e);return t.stringify()},t}(zc);qc.registerLazyResult=function(e){Uc=e},qc.registerProcessor=function(e){Fc=e};var Hc=qc;qc.default=qc,zc.registerRoot(qc);var $c={comma:function(e){return $c.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return $c.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Fi(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}},Wc=$c;$c.default=$c;var Vc=tc,Xc=Wc,Yc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Mi(t,e),Ii(t,[{key:"selectors",get:function(){return Xc.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}(Vc),Gc=Yc;Yc.default=Yc,Vc.registerRule(Yc);var Jc=ea,Kc=Lc,Zc=qa,Qc=jc,eu=Hc,tu=Gc,ru={empty:!0,space:!0};function nu(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var iu=function(){function e(e){this.input=e,this.root=new eu,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 Qc;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=Fi(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 Zc;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=Kc(this.input)},t.decl=function(e,t){var r=new Jc;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]||nu(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 tu;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",ru[a]||ru[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 tu;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}(),ou=iu,su=tc,au=ou,cu=Ea;function uu(e,t){var r=new cu(e,t),n=new au(r);try{n.parse()}catch(i){throw i}return n.root}var lu=uu;uu.default=uu,su.registerParse(uu);var hu=Bs.isClean,du=Bs.my,pu=Ua,fu=Hs,mu=tc,gu=sc,vu=hc,yu=lu,wu=Hc,bu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_u={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},ku={Once:!0,postcssPlugin:!0,prepare:!0},Su=0;function Cu(e){return"object"===("undefined"===typeof e?"undefined":Bi(e))&&"function"===typeof e.then}function xu(e){var t=!1,r=bu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Su,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Su,r+"Exit"]:[r,r+"Exit"]}function Au(e){var t;return t="document"===e.type?["Document",Su,"DocumentExit"]:"root"===e.type?["Root",Su,"RootExit"]:xu(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Eu(e){return e[hu]=!1,e.nodes&&e.nodes.forEach(function(e){return Eu(e)}),e}var Iu={},Ou=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Bi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Pi(r,e)||Pi(r,vu))i=Eu(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=yu;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[du]&&mu.rebuild(i)}else i=Eu(r);this.result=new vu(t,i,n),this.helpers=Oi({},Iu,{postcss:Iu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Bi(e))&&e.prepare?Oi({},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=Fi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Bi(i)))for(var o in i){if(!_u[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ku[o])if("object"===Bi(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 xi(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return zi(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),!Cu(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[hu])return[3,14];o[hu]=!0,s=[Au(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Cu(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 zi(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=Fi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,qi(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":Bi(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 Cu(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=fu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new pu(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=Fi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Cu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[hu])i[hu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Fi(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=Fi(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(Cu(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[hu])return a[hu]=!0,void e.push(Au(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===Su)return void(r.nodes&&r.nodes.length&&(r[hu]=!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[hu]=!0;for(var r,n=xu(e),i=Fi(n);!(r=i()).done;){var o=r.value;if(o===Su)e.nodes&&e.each(function(e){e[hu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ii(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}();Ou.registerPostcss=function(e){Iu=e};var Tu=Ou;Ou.default=Ou,wu.registerLazyResult(Ou),gu.registerLazyResult(Ou);var Mu=Ua,Pu=Hs,Ru=lu,Du=hc,Lu=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=Pu;this.result=new Du(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 Mu(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[]},Ii(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=Ru;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}(),Bu=Lu;Lu.default=Lu;var Nu=Bu,ju=Tu,Uu=sc,Fu=Hc,zu=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=Fi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Bi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Bi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Bi(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 ju(this,e,t):new Nu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),qu=zu;zu.default=zu,Fu.registerProcessor(zu),Uu.registerProcessor(zu);var Hu=ea,$u=da,Wu=qa,Vu=jc,Xu=Ea,Yu=Hc,Gu=Gc;function Ju(e,t){if(Array.isArray(e))return e.map(function(e){return Ju(e)});var r=e.inputs,n=Di(e,["inputs"]);if(r){t=[];for(var i,o=Fi(r);!(i=o()).done;){var s=i.value,a=Oi({},s,{__proto__:Xu.prototype});a.map&&(a.map=Oi({},a.map,{__proto__:$u.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Ju(e,t)})),n.source){var c=n.source,u=c.inputId,l=Di(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Yu(n);if("decl"===n.type)return new Hu(n);if("rule"===n.type)return new Gu(n);if("comment"===n.type)return new Wu(n);if("atrule"===n.type)return new Vu(n);throw new Error("Unknown node type: "+e.type)}var Ku=Ju;Ju.default=Ju;var Zu=Ls,Qu=ea,el=Tu,tl=tc,rl=qu,nl=Hs,il=Ku,ol=sc,sl=cc,al=qa,cl=jc,ul=hc,ll=Ea,hl=lu,dl=Wc,pl=Gc,fl=Hc,ml=Ks;function gl(){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 rl(t)}gl.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 rl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return gl([i(r)]).process(e,t)},i},gl.stringify=nl,gl.parse=hl,gl.fromJSON=il,gl.list=dl,gl.comment=function(e){return new al(e)},gl.atRule=function(e){return new cl(e)},gl.decl=function(e){return new Qu(e)},gl.rule=function(e){return new pl(e)},gl.root=function(e){return new fl(e)},gl.document=function(e){return new ol(e)},gl.CssSyntaxError=Zu,gl.Declaration=Qu,gl.Container=tl,gl.Processor=rl,gl.Document=ol,gl.Comment=al,gl.Warning=sl,gl.AtRule=cl,gl.Result=ul,gl.Input=ll,gl.Rule=pl,gl.Root=fl,gl.Node=ml,el.registerPostcss(gl);var vl=gl;gl.default=gl;var yl=Ss(vl);yl.stringify,yl.fromJSON,yl.plugin,yl.parse,yl.list,yl.document,yl.comment,yl.atRule,yl.rule,yl.decl,yl.root,yl.CssSyntaxError,yl.Declaration,yl.Container,yl.Processor,yl.Document,yl.Comment,yl.Warning,yl.AtRule,yl.Result,yl.Input,yl.Rule,yl.Root,yl.Node;var wl=Object.defineProperty,bl=function(e,t,r){return t in e?wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},_l=function(e,t,r){return bl(e,"symbol"!==("undefined"===typeof t?"undefined":Bi(t))?t+"":t,r)};function kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Sl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Pi(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 Cl={exports:{}},xl=String,Al=function(){return{isColorSupported:!1,reset:xl,bold:xl,dim:xl,italic:xl,underline:xl,inverse:xl,hidden:xl,strikethrough:xl,black:xl,red:xl,green:xl,yellow:xl,blue:xl,magenta:xl,cyan:xl,white:xl,gray:xl,bgBlack:xl,bgRed:xl,bgGreen:xl,bgYellow:xl,bgBlue:xl,bgMagenta:xl,bgCyan:xl,bgWhite:xl}};Cl.exports=Al(),Cl.exports.createColors=Al;var El=Cl.exports,Il={},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Tl=Sl(Ol),Ml=El,Pl=Tl,Rl=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}Mi(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=Ml.isColorSupported),Pl&&e&&(r=Pl(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=Ml.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}(ji(Error)),Dl=Rl;Rl.default=Rl;var Ll={};Ll.isClean=Symbol("isClean"),Ll.my=Symbol("my");var Bl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Nl(e){return e[0].toUpperCase()+e.slice(1)}var jl=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 Bl[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"+Nl(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=Bl[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}(),Ul=jl;jl.default=jl;var Fl=Ul;function zl(e,t){var r=new Fl(t);r.stringify(e)}var ql=zl;zl.default=zl;var Hl=Ll.isClean,$l=Ll.my,Wl=Dl,Vl=Ul,Xl=ql;function Yl(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":Bi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Yl(e,r)}):("object"===o&&null!==i&&(i=Yl(i)),r[n]=i)}return r}var Gl=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Hl]=!1,this[$l]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Fi(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=Yl(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 Wl(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[Hl]){this[Hl]=!1;var e=this;while(e=e.parent)e[Hl]=!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 Vl;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=Fi(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":Bi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Bi(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=Xl),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)},Ii(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Jl=Gl;Gl.default=Gl;var Kl=Jl,Zl=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Oi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Mi(t,e),Ii(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Kl),Ql=Zl;Zl.default=Zl;var eh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",th=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=eh[64*Math.random()|0];return t},rh={nanoid:th},nh=Tl.SourceMapConsumer,ih=Tl.SourceMapGenerator,oh=Tl.existsSync,sh=Tl.readFileSync,ah=Tl.dirname,ch=Tl.join;function uh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var lh=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=ah(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new nh(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 uh(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":Bi(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=ah(e),oh(e))return this.mapFile=e,sh(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(Pi(t,nh))return ih.fromSourceMap(t).toString();if(Pi(t,ih))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=ch(ah(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}(),hh=lh;lh.default=lh;var dh=Tl.SourceMapConsumer,ph=Tl.SourceMapGenerator,fh=Tl.fileURLToPath,mh=Tl.pathToFileURL,gh=Tl.isAbsolute,vh=Tl.resolve,yh=rh.nanoid,wh=Tl,bh=Dl,_h=hh,kh=Symbol("fromOffsetCache"),Sh=Boolean(dh&&ph),Ch=Boolean(vh&&gh),xh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Bi(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&&(!Ch||/^\w+:\/\//.test(t.from)||gh(t.from)?this.file=t.from:this.file=vh(t.from)),Ch&&Sh){var r=new _h(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 "+yh(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":Bi(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 bh(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 bh(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&&(mh&&(i.input.url=mh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[kh])r=this[kh];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[kh]=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:vh(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=gh(a.source)?mh(a.source):new URL(a.source,this.map.consumer().sourceRoot||mh(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(!fh)throw new Error("file: protocol is not available in this PostCSS build");c.file=fh(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=Oi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ii(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ah=xh;xh.default=xh,wh&&wh.registerInput&&wh.registerInput(xh);var Eh=Tl.SourceMapConsumer,Ih=Tl.SourceMapGenerator,Oh=Tl.dirname,Th=Tl.relative,Mh=Tl.resolve,Ph=Tl.sep,Rh=Tl.pathToFileURL,Dh=Ah,Lh=Boolean(Eh&&Ih),Bh=Boolean(Oh&&Mh&&Th&&Ph),Nh=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=Fi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Oh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Eh(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(),Bh&&Lh&&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=Ih.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ih({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 Ih({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?Oh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Oh(Mh(r,this.mapOpts.annotation)));var n=Th(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 Dh(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(Rh){var r=Rh(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;"\\"===Ph&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),jh=Nh,Uh=Jl,Fh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Mi(t,e),t}(Uh),zh=Fh;Fh.default=Fh;var qh,Hh,$h,Wh,Vh=Ll.isClean,Xh=Ll.my,Yh=Ql,Gh=zh,Jh=Jl;function Kh(e){return e.map(function(e){return e.nodes&&(e.nodes=Kh(e.nodes)),delete e.source,e})}function Zh(e){if(e[Vh]=!1,e.proxyOf.nodes)for(var t,r=Fi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Zh(n)}}var Qh=function(e){function t(){return e.apply(this,arguments)||this}Mi(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=Fi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Fi(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=Fi(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=Fi(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=Fi(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=Kh(qh(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Fi(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=Fi(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 Yh(e)]}else if(e.selector)e=[new Hh(e)];else if(e.name)e=[new $h(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Gh(e)]}var l=e.map(function(e){return e[Xh]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Vh]&&Zh(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=Fi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Fi(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=Fi(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?Pi(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?Pi(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?Pi(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)}))},Ii(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}(Jh);Qh.registerParse=function(e){qh=e},Qh.registerRule=function(e){Hh=e},Qh.registerAtRule=function(e){$h=e},Qh.registerRoot=function(e){Wh=e};var ed=Qh;Qh.default=Qh,Qh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,$h.prototype):"rule"===e.type?Object.setPrototypeOf(e,Hh.prototype):"decl"===e.type?Object.setPrototypeOf(e,Yh.prototype):"comment"===e.type?Object.setPrototypeOf(e,Gh.prototype):"root"===e.type&&Object.setPrototypeOf(e,Wh.prototype),e[Xh]=!0,e.nodes&&e.nodes.forEach(function(e){Qh.rebuild(e)})};var td,rd,nd=ed,id=function(e){function t(t){var r;return r=e.call(this,Oi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Mi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new td(new rd,this,e);return t.stringify()},t}(nd);id.registerLazyResult=function(e){td=e},id.registerProcessor=function(e){rd=e};var od=id;id.default=id;var sd=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}(),ad=sd;sd.default=sd;var cd=ad,ud=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 cd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ii(e,[{key:"content",get:function(){return this.css}}]),e}(),ld=ud;ud.default=ud;var hd="'".charCodeAt(0),dd='"'.charCodeAt(0),pd="\\".charCodeAt(0),fd="/".charCodeAt(0),md="\n".charCodeAt(0),gd=" ".charCodeAt(0),vd="\f".charCodeAt(0),yd="\t".charCodeAt(0),wd="\r".charCodeAt(0),bd="[".charCodeAt(0),_d="]".charCodeAt(0),kd="(".charCodeAt(0),Sd=")".charCodeAt(0),Cd="{".charCodeAt(0),xd="}".charCodeAt(0),Ad=";".charCodeAt(0),Ed="*".charCodeAt(0),Id=":".charCodeAt(0),Od="@".charCodeAt(0),Td=/[\t\n\f\r "#'()/;[\\\]{}]/g,Md=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Pd=/.[\r\n"'(/\\]/,Rd=/[\da-f]/i,Dd=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 md:case gd:case yd:case wd:case vd:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===gd||r===md||r===yd||r===wd||r===vd);h=["space",d.slice(m,n)],m=n-1;break;case bd:case _d:case Cd:case xd:case Id:case Ad:case Sd:var y=String.fromCharCode(r);h=[y,y,m];break;case kd:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==hd&&l!==dd&&l!==gd&&l!==md&&l!==yd&&l!==vd&&l!==wd){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)===pd)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||Pd.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case hd:case dd:i=r===hd?"'":'"',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)===pd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Od:Td.lastIndex=m+1,Td.test(d),n=0===Td.lastIndex?d.length-1:Td.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case pd:n=m,s=!0;while(d.charCodeAt(n+1)===pd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==fd&&r!==gd&&r!==md&&r!==yd&&r!==wd&&r!==vd&&(n+=1,Rd.test(d.charAt(n)))){while(Rd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===gd&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===fd&&d.charCodeAt(m+1)===Ed?(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):(Md.lastIndex=m+1,Md.test(d),n=0===Md.lastIndex?d.length-1:Md.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}},Ld=ed,Bd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Mi(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}(Ld),Nd=Bd;Bd.default=Bd,Ld.registerAtRule(Bd);var jd,Ud,Fd=ed,zd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Mi(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=Fi(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 jd(new Ud,this,e);return t.stringify()},t}(Fd);zd.registerLazyResult=function(e){jd=e},zd.registerProcessor=function(e){Ud=e};var qd=zd;zd.default=zd,Fd.registerRoot(zd);var Hd={comma:function(e){return Hd.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Hd.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Fi(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}},$d=Hd;Hd.default=Hd;var Wd=ed,Vd=$d,Xd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Mi(t,e),Ii(t,[{key:"selectors",get:function(){return Vd.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}(Wd),Yd=Xd;Xd.default=Xd,Wd.registerRule(Xd);var Gd=Ql,Jd=Dd,Kd=zh,Zd=Nd,Qd=qd,ep=Yd,tp={empty:!0,space:!0};function rp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var np=function(){function e(e){this.input=e,this.root=new Qd,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 Zd;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=Fi(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 Kd;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=Jd(this.input)},t.decl=function(e,t){var r=new Gd;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]||rp(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 ep;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",tp[a]||tp[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 ep;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}(),ip=np,op=ed,sp=ip,ap=Ah;function cp(e,t){var r=new ap(e,t),n=new sp(r);try{n.parse()}catch(i){throw i}return n.root}var up=cp;cp.default=cp,op.registerParse(cp);var lp=Ll.isClean,hp=Ll.my,dp=jh,pp=ql,fp=ed,mp=od,gp=ld,vp=up,yp=qd,wp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bp={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},_p={Once:!0,postcssPlugin:!0,prepare:!0},kp=0;function Sp(e){return"object"===("undefined"===typeof e?"undefined":Bi(e))&&"function"===typeof e.then}function Cp(e){var t=!1,r=wp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,kp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,kp,r+"Exit"]:[r,r+"Exit"]}function xp(e){var t;return t="document"===e.type?["Document",kp,"DocumentExit"]:"root"===e.type?["Root",kp,"RootExit"]:Cp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ap(e){return e[lp]=!1,e.nodes&&e.nodes.forEach(function(e){return Ap(e)}),e}var Ep={},Ip=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Bi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Pi(r,e)||Pi(r,gp))i=Ap(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=vp;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[hp]&&fp.rebuild(i)}else i=Ap(r);this.result=new gp(t,i,n),this.helpers=Oi({},Ep,{postcss:Ep,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Bi(e))&&e.prepare?Oi({},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=Fi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Bi(i)))for(var o in i){if(!bp[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!_p[o])if("object"===Bi(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 xi(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return zi(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),!Sp(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[lp])return[3,14];o[lp]=!0,s=[xp(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Sp(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 zi(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=Fi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,qi(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":Bi(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 Sp(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=pp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new dp(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=Fi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Sp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[lp])i[lp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Fi(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=Fi(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(Sp(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[lp])return a[lp]=!0,void e.push(xp(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===kp)return void(r.nodes&&r.nodes.length&&(r[lp]=!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[lp]=!0;for(var r,n=Cp(e),i=Fi(n);!(r=i()).done;){var o=r.value;if(o===kp)e.nodes&&e.each(function(e){e[lp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ii(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}();Ip.registerPostcss=function(e){Ep=e};var Op=Ip;Ip.default=Ip,yp.registerLazyResult(Ip),mp.registerLazyResult(Ip);var Tp=jh,Mp=ql,Pp=up,Rp=ld,Dp=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=Mp;this.result=new Rp(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 Tp(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[]},Ii(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=Pp;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}(),Lp=Dp;Dp.default=Dp;var Bp=Lp,Np=Op,jp=od,Up=qd,Fp=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=Fi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Bi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Bi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Bi(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 Np(this,e,t):new Bp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),zp=Fp;Fp.default=Fp,Up.registerProcessor(Fp),jp.registerProcessor(Fp);var qp=Ql,Hp=hh,$p=zh,Wp=Nd,Vp=Ah,Xp=qd,Yp=Yd;function Gp(e,t){if(Array.isArray(e))return e.map(function(e){return Gp(e)});var r=e.inputs,n=Di(e,["inputs"]);if(r){t=[];for(var i,o=Fi(r);!(i=o()).done;){var s=i.value,a=Oi({},s,{__proto__:Vp.prototype});a.map&&(a.map=Oi({},a.map,{__proto__:Hp.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Gp(e,t)})),n.source){var c=n.source,u=c.inputId,l=Di(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Xp(n);if("decl"===n.type)return new qp(n);if("rule"===n.type)return new Yp(n);if("comment"===n.type)return new $p(n);if("atrule"===n.type)return new Wp(n);throw new Error("Unknown node type: "+e.type)}var Jp=Gp;Gp.default=Gp;var Kp=Dl,Zp=Ql,Qp=Op,ef=ed,tf=zp,rf=ql,nf=Jp,of=od,sf=ad,af=zh,cf=Nd,uf=ld,lf=Ah,hf=up,df=$d,pf=Yd,ff=qd,mf=Jl;function gf(){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 tf(t)}gf.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 tf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return gf([i(r)]).process(e,t)},i},gf.stringify=rf,gf.parse=hf,gf.fromJSON=nf,gf.list=df,gf.comment=function(e){return new af(e)},gf.atRule=function(e){return new cf(e)},gf.decl=function(e){return new Zp(e)},gf.rule=function(e){return new pf(e)},gf.root=function(e){return new ff(e)},gf.document=function(e){return new of(e)},gf.CssSyntaxError=Kp,gf.Declaration=Zp,gf.Container=ef,gf.Processor=tf,gf.Document=of,gf.Comment=af,gf.Warning=sf,gf.AtRule=cf,gf.Result=uf,gf.Input=lf,gf.Rule=pf,gf.Root=ff,gf.Node=mf,Qp.registerPostcss(gf);var vf=gf;gf.default=gf;var yf=kl(vf);yf.stringify,yf.fromJSON,yf.plugin,yf.parse,yf.list,yf.document,yf.comment,yf.atRule,yf.rule,yf.decl,yf.root,yf.CssSyntaxError,yf.Declaration,yf.Container,yf.Processor,yf.Document,yf.Comment,yf.Warning,yf.AtRule,yf.Result,yf.Input,yf.Rule,yf.Root,yf.Node;var wf=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];_l(this,"parentElement",null),_l(this,"parentNode",null),_l(this,"ownerDocument"),_l(this,"firstChild",null),_l(this,"lastChild",null),_l(this,"previousSibling",null),_l(this,"nextSibling",null),_l(this,"ELEMENT_NODE",1),_l(this,"TEXT_NODE",3),_l(this,"nodeType"),_l(this,"nodeName"),_l(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!Pi(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"},Ii(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),bf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_f={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},kf={},Sf=function(){return!!globalThis.Zone};function Cf(e){if(kf[e])return kf[e];var t=globalThis[e],r=t.prototype,n=e in bf?bf[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 _f?_f[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&&!Sf())return kf[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?kf[e]=u:r}catch(l){return r}}var xf={};function Af(e,t,r){var n,i=e+"."+String(r);if(xf[i])return xf[i].call(t);var o=Cf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(xf[i]=s,s.call(t)):t[r]}var Ef={};function If(e,t,r){var n=e+"."+String(r);if(Ef[n])return Ef[n].bind(t);var i=Cf(e),o=i[r];return"function"!==typeof o?t[r]:(Ef[n]=o,o.bind(t))}function Of(e){return Af("Node",e,"childNodes")}function Tf(e){return Af("Node",e,"parentNode")}function Mf(e){return Af("Node",e,"parentElement")}function Pf(e){return Af("Node",e,"textContent")}function Rf(e,t){return If("Node",e,"contains")(t)}function Df(e){return If("Node",e,"getRootNode")()}function Lf(e){return e&&"host"in e?Af("ShadowRoot",e,"host"):null}function Bf(e){return e.styleSheets}function Nf(e){return e&&"shadowRoot"in e?Af("Element",e,"shadowRoot"):null}function jf(e,t){return Af("Element",e,"querySelector")(t)}function Uf(e,t){return Af("Element",e,"querySelectorAll")(t)}function Ff(){return Cf("MutationObserver").constructor}function zf(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 qf={childNodes:Of,parentNode:Tf,parentElement:Mf,textContent:Pf,contains:Rf,getRootNode:Df,host:Lf,styleSheets:Bf,shadowRoot:Nf,querySelector:jf,querySelectorAll:Uf,mutationObserver:Ff,patch:zf};function Hf(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 $f="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.",Wf={map:{},getId:function(){return console.error($f),-1},getNode:function(){return console.error($f),null},removeNodeFromMap:function(){console.error($f)},has:function(){return console.error($f),!1},reset:function(){console.error($f)}};function Vf(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 Xf(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 Xf(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Wf=new Proxy(Wf,{get:function(e,t,r){return"map"===t&&console.error($f),Reflect.get(e,t,r)}}));var Yf=Date.now;function Gf(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=qf.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=qf.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function Jf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Kf(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Zf(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:qf.parentElement(e);return t}function Qf(e,t,r,n){if(!e)return!1;var i=Zf(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(hs(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 em(e,t){return-1!==t.getId(e)}function tm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===Zo}function rm(e,t){if(ko(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=qf.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||rm(n,t))}function nm(e){return Boolean(e.changedTouches)}function im(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 om(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function sm(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function am(e){return!!e&&(Pi(e,wf)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(qf.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Yf=function(){return(new Date).getTime()});var cm=function(){function e(){Vi(this,"id",1),Vi(this,"styleIDMap",new WeakMap),Vi(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++},e}();function um(e){var t,r=null;return"getRootNode"in e&&(null==(t=qf.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&qf.host(qf.getRootNode(e))&&(r=qf.host(qf.getRootNode(e))),r}function lm(e){var t,r=e;while(t=um(r))r=t;return r}function hm(e){var t=e.ownerDocument;if(!t)return!1;var r=lm(e);return qf.contains(t,r)}function dm(e){var t=e.ownerDocument;return!!t&&(qf.contains(t,e)||hm(e))}var pm=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}(pm||{}),fm=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}(fm||{}),mm=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}(mm||{}),gm=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(gm||{}),vm=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(vm||{}),ym=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}(ym||{}),wm=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}(wm||{});function bm(e){return"__ln"in e}var _m,km=function(){function e(){Vi(this,"length",0),Vi(this,"head",null),Vi(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&&bm(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&&bm(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}(),Sm=function(e,t){return e+"@"+t},Cm=function(){function e(){var e=this;Vi(this,"frozen",!1),Vi(this,"locked",!1),Vi(this,"texts",[]),Vi(this,"attributes",[]),Vi(this,"attributeMap",new WeakMap),Vi(this,"removes",[]),Vi(this,"mapRemoves",[]),Vi(this,"movedMap",{}),Vi(this,"addedSet",new Set),Vi(this,"movedSet",new Set),Vi(this,"droppedSet",new Set),Vi(this,"removesSubTreeCache",new Set),Vi(this,"mutationCb"),Vi(this,"blockClass"),Vi(this,"blockSelector"),Vi(this,"maskTextClass"),Vi(this,"maskTextSelector"),Vi(this,"inlineStylesheet"),Vi(this,"maskInputOptions"),Vi(this,"maskTextFn"),Vi(this,"maskInputFn"),Vi(this,"keepIframeSrcFn"),Vi(this,"recordCanvas"),Vi(this,"inlineImages"),Vi(this,"slimDOMOptions"),Vi(this,"dataURLOptions"),Vi(this,"doc"),Vi(this,"mirror"),Vi(this,"iframeManager"),Vi(this,"stylesheetManager"),Vi(this,"shadowDomManager"),Vi(this,"canvasManager"),Vi(this,"processedNodeManager"),Vi(this,"unattachedDoc"),Vi(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Vi(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new km,i=function(t){var r=t,n=Zo;while(n===Zo)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=qf.parentNode(o);if(s&&dm(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=ko(s)?e.mirror.getId(um(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=_s(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){om(t,e.mirror)&&e.iframeManager.addIframe(t),sm(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),am(o)&&e.shadowDomManager.addShadowRoot(qf.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)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=Fi(e.movedSet);!(s=a()).done;){var c=s.value;Em(e.removesSubTreeCache,c,e.mirror)&&!e.movedSet.has(qf.parentNode(c))||o(c)}for(var u,l=Fi(e.addedSet);!(u=l()).done;){var h=u.value;Om(e.droppedSet,h)||Em(e.removesSubTreeCache,h,e.mirror)?Om(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}var d=null;while(n.length){var p=null;if(d){var f=e.mirror.getId(qf.parentNode(d.value)),m=i(d.value);-1!==f&&-1!==m&&(p=d)}if(!p){var g=n.tail;while(g){var v=g;if(g=g.previous,v){var y=e.mirror.getId(qf.parentNode(v.value)),w=i(v.value);if(-1===w)continue;if(-1!==y){p=v;break}var b=v.value,_=qf.parentNode(b);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=qf.host(_),S=e.mirror.getId(k);if(-1!==S){p=v;break}}}}}if(!p){while(n.head)n.removeNode(n.head.value);break}d=p.previous,n.removeNode(p.value),o(p.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=qf.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))}}),Vi(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(qf.childNodes(t),function(e){return qf.textContent(e)||""}).join("");r.attributes.value=Ro({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:No(t),value:n,maskInputFn:e.maskInputFn})}),Vi(this,"processMutation",function(t){if(!tm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=qf.textContent(t.target);Qf(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ds(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,Zf(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=No(n);o=Ro({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Qf(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"),!us(n.tagName,i))if(a.attributes[i]=cs(e.doc,Do(n.tagName),Do(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=Fi(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=Fi(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(Qf(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=ko(t.target)?e.mirror.getId(qf.host(t.target)):e.mirror.getId(t.target);Qf(t.target,e.blockClass,e.blockSelector,!1)||tm(r,e.mirror,e.slimDOMOptions)||!em(r,e.mirror)||(e.addedSet.has(r)?(xm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||rm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Sm(n,i)]?xm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!ko(t.target)||!So(t.target))||void 0}),Am(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),Vi(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(tm(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[Sm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Qf(t,e.blockClass,e.blockSelector,!1)||(qf.childNodes(t).forEach(function(t){return e.genAdds(t)}),am(t)&&qf.childNodes(qf.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()},e}();function xm(e,t){e.delete(t),qf.childNodes(t).forEach(function(t){return xm(e,t)})}function Am(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),qf.childNodes(n).forEach(function(e){return r.push(e)}))}}function Em(e,t,r){return 0!==e.size&&Im(e,t)}function Im(e,t,r){var n=qf.parentNode(t);return!!n&&e.has(n)}function Om(e,t){return 0!==e.size&&Tm(e,t)}function Tm(e,t){var r=qf.parentNode(t);return!!r&&(!!e.has(r)||Tm(e,r))}function Mm(e){_m=e}function Pm(){_m=void 0}var Rm=function(e){if(!_m)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(_m&&!0===_m(i))return;throw i}};return t},Dm=[];function Lm(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 Bm(e,t){var r=new Cm;Dm.push(r),r.init(e);var n=new(Ff())(Rm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Nm(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=Vf(Rm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Rm(Vf(Rm(function(e){var t=Lm(e),r=nm(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Yf()),c.push({x:n,y:s,id:i.getId(t),timeOffset:Yf()-o}),u("undefined"!==typeof DragEvent&&Pi(e,DragEvent)?fm.Drag:Pi(e,MouseEvent)?fm.MouseMove:fm.TouchMove)}),s,{trailing:!1})),h=[Hf("mousemove",l,n),Hf("touchmove",l,n),Hf("drag",l,n)];return Rm(function(){h.forEach(function(e){return e()})})}function jm(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=Lm(r);if(!Qf(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=gm.Mouse;break;case"touch":a=gm.Touch;break;case"pen":a=gm.Pen;break}a===gm.Touch?mm[e]===mm.MouseDown?c="TouchStart":mm[e]===mm.MouseUp&&(c="TouchEnd"):gm.Pen}else nm(r)&&(a=gm.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===gm.Touch||c.startsWith("Mouse")&&a===gm.Mouse)&&(a=null)):mm[e]===mm.Click&&(a=u,u=null);var l=nm(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Rm(t)(Oi({type:mm[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(mm).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Do(e),n=l(e);if(window.PointerEvent)switch(mm[e]){case mm.MouseDown:case mm.MouseUp:t=t.replace("mouse","pointer");break;case mm.TouchStart:case mm.TouchEnd:return}c.push(Hf(t,n,r))}),Rm(function(){c.forEach(function(e){return e()})})}function Um(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Rm(Vf(Rm(function(e){var s=Lm(e);if(s&&!Qf(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=Gf(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 Hf("scroll",a,r)}function Fm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Rm(Vf(Rm(function(){var e=Jf(),t=Kf();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return Hf("resize",s,n)}var zm=["INPUT","TEXTAREA","SELECT"],qm=new WeakMap;function Hm(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=Lm(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=qf.parentElement(t)),t&&l&&!(zm.indexOf(l)<0)&&!Qf(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=No(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=Ro({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=qm.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){qm.set(e,r);var o=n.getId(e);Rm(t)(Oi({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return Hf(e,Rm(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 Xf(e[0],e[1],{set:function(){Rm(d)({target:this,isTrusted:!1})}},!1,g)})));return Rm(function(){m.forEach(function(e){return e()})})}function $m(e){var t=[];function r(e,t){if(tg("CSSGroupingRule")&&Pi(e.parentRule,CSSGroupingRule)||tg("CSSMediaRule")&&Pi(e.parentRule,CSSMediaRule)||tg("CSSSupportsRule")&&Pi(e.parentRule,CSSSupportsRule)||tg("CSSConditionRule")&&Pi(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 Wm(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Vm(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:Rm(function(e,t,o){var s=o[0],a=o[1],c=Wm(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:Rm(function(e,t,o){var s=o[0],a=Wm(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:Rm(function(e,t,o){var s=o[0],a=Wm(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:Rm(function(e,t,o){var s=o[0],a=Wm(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={};rg("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(rg("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),rg("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),rg("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:Rm(function(e,t,o){var s=o[0],a=o[1],c=Wm(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($m(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Rm(function(e,t,o){var s=o[0],a=Wm(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($m(t),[s])}]}),e.apply(t,o)})})}),Rm(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 Xm(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(qf.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}}),Rm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function Ym(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:Rm(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=Wm(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:$m(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Rm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Wm(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:$m(t.parentRule)}),e.apply(t,s)})}),Rm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function Gm(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Rm(function(e){return Vf(Rm(function(o){var s=Lm(o);if(s&&!Qf(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=[Hf("play",a(ym.Play),s),Hf("pause",a(ym.Pause),s),Hf("seeked",a(ym.Seeked),s),Hf("volumechange",a(ym.VolumeChange),s),Hf("ratechange",a(ym.RateChange),s)];return Rm(function(){c.forEach(function(e){return e()})})}function Jm(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=zf(r.fonts,"add",function(e){return function(r){return setTimeout(Rm(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),Rm(function(){i.forEach(function(e){return e()})})}function Km(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Rm(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=Qf(h,n,i,!0)||Qf(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),Hf("selectionchange",a)}function Zm(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=zf(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 Qm(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 eg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};Qm(e,t),e.recordDOM&&(r=Bm(e,e.doc));var i=Nm(e),o=jm(e),s=Um(e),a=Fm(e,{win:n}),c=Hm(e),u=Gm(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=Vm(e,{win:n}),h=Xm(e,e.doc),d=Ym(e,{win:n}),e.collectFonts&&(p=Jm(e)));for(var f,m=Km(e),g=Zm(e),v=[],y=Fi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Rm(function(){Dm.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 tg(e){return"undefined"!==typeof window[e]}function rg(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var ng=function(){function e(e){Vi(this,"iframeIdToRemoteIdMap",new WeakMap),Vi(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}(),ig=function(){function e(e){Vi(this,"iframes",new WeakMap),Vi(this,"crossOriginIframeMap",new WeakMap),Vi(this,"crossOriginIframeMirror",new ng(Qo)),Vi(this,"crossOriginIframeStyleMirror"),Vi(this,"crossOriginIframeRootIdMap",new WeakMap),Vi(this,"mirror"),Vi(this,"mutationCb"),Vi(this,"wrappedEmit"),Vi(this,"loadListener"),Vi(this,"stylesheetManager"),Vi(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ng(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.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}),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 pm.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:pm.IncrementalSnapshot,data:{source:fm.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case pm.Meta:case pm.Load:case pm.DomContentLoaded:return!1;case pm.Plugin:return t;case pm.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case pm.IncrementalSnapshot:switch(t.data.source){case fm.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 fm.Drag:case fm.TouchMove:case fm.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case fm.ViewportResize:return!1;case fm.MediaInteraction:case fm.MouseInteraction:case fm.Scroll:case fm.CanvasMutation:case fm.Input:return this.replaceIds(t.data,e,["id"]),t;case fm.StyleSheetRule:case fm.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case fm.Font:return t;case fm.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case fm.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=Fi(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===wm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),og=function(){function e(e){Vi(this,"shadowDoms",new WeakSet),Vi(this,"mutationCb"),Vi(this,"scrollCb"),Vi(this,"bypassOptions"),Vi(this,"mirror"),Vi(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(So(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Bm(Oi({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Um(Oi({},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(qf.host(e))),r.restoreHandlers.push(Xm({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(zf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=qf.shadowRoot(this);return o&&dm(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}(),sg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ag="undefined"===typeof Uint8Array?[]:new Uint8Array(256),cg=0;cg<sg.length;cg++)ag[sg.charCodeAt(cg)]=cg;var ug=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=sg[r[t]>>2],i+=sg[(3&r[t])<<4|r[t+1]>>4],i+=sg[(15&r[t+1])<<2|r[t+2]>>6],i+=sg[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},lg=new Map;function hg(e,t){var r=lg.get(e);return r||(r=new Map,lg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var dg=function(e,t,r){if(e&&(mg(e,t)||"object"===("undefined"===typeof e?"undefined":Bi(e)))){var n=e.constructor.name,i=hg(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function pg(e,t,r){if(Pi(e,Array))return e.map(function(e){return pg(e,t,r)});if(null===e)return e;if(Pi(e,Float32Array)||Pi(e,Float64Array)||Pi(e,Int32Array)||Pi(e,Uint32Array)||Pi(e,Uint8Array)||Pi(e,Uint16Array)||Pi(e,Int16Array)||Pi(e,Int8Array)||Pi(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(Pi(e,ArrayBuffer)){var i=e.constructor.name,o=ug(e);return{rr_type:i,base64:o}}if(Pi(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[pg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(Pi(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(Pi(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(Pi(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[pg(e.data,t,r),e.width,e.height]}}if(mg(e,t)||"object"===("undefined"===typeof e?"undefined":Bi(e))){var d=e.constructor.name,p=dg(e,t,r);return{rr_type:d,index:p}}return e}var fg=function(e,t,r){return e.map(function(e){return pg(e,t,r)})},mg=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 Pi(e,t[r])}))};function gg(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=zf(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 Qf(this.canvas,r,n,!0)||setTimeout(function(){var r=fg(c,t,s);e(s.canvas,{type:vm["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=Xf(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:vm["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Fi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function vg(e){return"experimental-webgl"===e?"webgl":e}function yg(e,t,r,n){var i=[];try{var o=zf(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(!Qf(this,t,r,!0)){var c=vg(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Bi(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 wg(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=zf(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(dg(l,o,this),"tagName"in this.canvas&&!Qf(this.canvas,n,i,!0)){var h=fg(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=Xf(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=Fi(u);!(s=l()).done;)a();return c}function bg(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(wg(t.WebGLRenderingContext.prototype,vm.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(wg(t.WebGL2RenderingContext.prototype,vm.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var _g="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",kg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Sg="undefined"!==typeof window&&window.Blob&&new Blob([kg(_g)],{type:"text/javascript;charset=utf-8"});function Cg(e){var t;try{if(t=Sg&&(window.URL||window.webkitURL).createObjectURL(Sg),!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,"+_g,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var xg,Ag,Eg,Ig=function(){function e(e){var t=this;Vi(this,"pendingCanvasMutations",new Map),Vi(this,"rafStamps",{latestId:0,invokeId:null}),Vi(this,"mirror"),Vi(this,"mutationCb"),Vi(this,"resetObservers"),Vi(this,"frozen",!1),Vi(this,"locked",!1),Vi(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=yg(t,r,n,!0),a=new Map,c=new Cg;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:vm["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){Qf(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(xi(function(e){var r,n,o,s;return zi(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=yg(e,t,r,!1),i=gg(this.processMutation.bind(this),e,t,r),o=bg(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=Di(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Og=function(){function e(e){Vi(this,"trackedLinkElements",new WeakSet),Vi(this,"mutationCb"),Vi(this,"adoptedStyleSheetCb"),Vi(this,"styleMirror",new cm),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:Eo(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Fi(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.trackStylesheetInLinkElement=function(e){},e}(),Tg=function(){function e(){Vi(this,"nodeMap",new WeakMap),Vi(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}(),Mg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Pg=document.createElement("iframe");document.body.appendChild(Pg),Array.from=(null==(Hi=Pg.contentWindow)?void 0:Hi.Array.from)||Array.from,document.body.removeChild(Pg)}}catch(E_){console.debug("Unable to override Array.from",E_)}var Rg,Dg=Po();function Lg(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,C=e.packFn,x=e.sampling,A=void 0===x?{}:x,E=e.dataURLOptions,I=void 0===E?{}:E,O=e.mousemoveWait,T=e.recordDOM,M=void 0===T||T,P=e.recordCanvas,R=void 0!==P&&P,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,U=void 0!==j&&j,F=e.collectFonts,z=void 0!==F&&F,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;Mm(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!==O&&void 0===A.mousemove&&(A.mousemove=O),Dg.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||{};im();var te=0,re=function(e){for(var t,r=Fi($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!K&&(e=C(e)),e};xg=function(e,i){var o,s=e;if(s.timestamp=Yf(),!(null==(o=Dm[0])?void 0:o.isFrozen())||s.type===pm.FullSnapshot||s.type===pm.IncrementalSnapshot&&s.data.source===fm.Mutation||Dm.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===pm.FullSnapshot)Z=s,te=0;else if(s.type===pm.IncrementalSnapshot){if(s.data.source===fm.Mutation&&s.data.isAttachIframe)return;te++;var c=n&&te>=n,u=r&&s.timestamp-Z.timestamp>r;(c||u)&&Ag(!0)}};for(var ne,ie=function(e){xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.Mutation},e)})},oe=function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.Scroll},e)})},se=function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.CanvasMutation},e)})},ae=function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.AdoptedStyleSheet},e)})},ce=new Og({mutationCb:ie,adoptedStyleSheetCb:ae}),ue=new ig({mirror:Dg,mutationCb:ie,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:xg}),le=Fi($||[]);!(ne=le()).done;){var he=ne.value;he.getMirror&&he.getMirror({nodeMirror:Dg,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var de=new Tg;Eg=new Ig({recordCanvas:R,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:Dg,sampling:A.canvas,dataURLOptions:I});var pe=new og({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:I,maskTextFn:k,maskInputFn:_,recordCanvas:R,inlineImages:H,sampling:A,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ce,canvasManager:Eg,keepIframeSrcFn:V,processedNodeManager:de},mirror:Dg});Ag=function(e){if(void 0===e&&(e=!1),M){xg({type:pm.Meta,data:{href:window.location.href,width:Kf(),height:Jf()}},e),ce.reset(),pe.init(),Dm.forEach(function(e){return e.lock()});var t=ks(document,{mirror:Dg,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:_,slimDOM:ee,dataURLOptions:I,recordCanvas:R,inlineImages:H,onSerialize:function(e){om(e,Dg)&&ue.addIframe(e),sm(e,Dg)&&ce.trackLinkElement(e),am(e)&&pe.addShadowRoot(qf.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");xg({type:pm.FullSnapshot,data:{node:t,initialOffset:Gf(window)}},e),Dm.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,Dg.getId(document))}};try{var fe=[],me=function(e){var t;return Rm(eg)({mutationCb:ie,mousemoveCb:function(e,t){return xg({type:pm.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.ViewportResize},e)})},inputCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.Input},e)})},mediaInteractionCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.MediaInteraction},e)})},styleSheetRuleCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.StyleSheetRule},e)})},styleDeclarationCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.Font},e)})},selectionCb:function(e){xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.Selection},e)})},customElementCb:function(e){xg({type:pm.IncrementalSnapshot,data:Oi({source:fm.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:A,recordDOM:M,recordCanvas:R,inlineImages:H,userTriggeredOnInput:U,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:k,keepIframeSrcFn:V,blockSelector:a,slimDOMOptions:ee,dataURLOptions:I,mirror:Dg,iframeManager:ue,stylesheetManager:ce,shadowDomManager:pe,processedNodeManager:de,canvasManager:Eg,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 xg({type:pm.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{fe.push(me(e.contentDocument))}catch(t){console.warn(t)}});var ge=function(){Ag(),fe.push(me(document)),Mg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(Hf("DOMContentLoaded",function(){xg({type:pm.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&ge()})),fe.push(Hf("load",function(){xg({type:pm.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(),Mg=!1,Pm()}}catch(ye){console.warn(ye)}}Lg.addCustomEvent=function(e,t){if(!Mg)throw new Error("please add custom event after start recording");xg({type:pm.Custom,data:{tag:e,payload:t}})},Lg.freezePage=function(){Dm.forEach(function(e){return e.freeze()})},Lg.takeFullSnapshot=function(e){if(!Mg)throw new Error("please take full snapshot after start recording");Ag(e)},Lg.mirror=Dg,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Rg||(Rg={})),Lg.addCustomEvent,Lg.freezePage,Lg.takeFullSnapshot;var Bg,Ng,jg,Ug=bi["setImmediate"],Fg=Object.prototype.toString,zg="undefined"!==typeof Ug?function(e){return Ug(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Bg=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(E_){Bg=function(e,t,r){return e[t]=r,e}}function qg(e,t){jg.add(e,t),Ng||(Ng=zg(jg.drain))}function Hg(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function $g(){for(var e=0;e<this.chain.length;e++)Wg(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Wg(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=Hg(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(E_){r.reject(E_)}}function Vg(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Hg(e))?qg(function(){var n=new Gg(r);try{t.call(e,function(){Vg.apply(n,arguments)},function(){Xg.apply(n,arguments)})}catch(E_){Xg.call(n,E_)}}):(r.msg=e,r.state=1,r.chain.length>0&&qg($g,r))}catch(E_){Xg.call(new Gg(r),E_)}}}function Xg(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&qg($g,t))}function Yg(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 Gg(e){this.def=e,this.triggered=!1}function Jg(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Kg(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 Jg(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&&qg($g,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Vg.call(t,e)},function(e){Xg.call(t,e)})}catch(E_){Xg.call(t,E_)}}jg=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=Ng=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var Zg,Qg=Bg({},"constructor",Kg,!1);Kg.prototype=Qg,Bg(Qg,"__NPO__",0,!1),Bg(Kg,"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)})}),Bg(Kg,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),Bg(Kg,"all",function(e){var t=this;return"[object Array]"!==Fg.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;Yg(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),Bg(Kg,"race",function(e){var t=this;return"[object Array]"!==Fg.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");Yg(t,e,function(e,t){r(t)},n)})}),Zg="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Kg;var ev={DEBUG:!1,LIB_VERSION:"2.71.1"},tv=864e5,rv=8e3,nv=Array.prototype,iv=Function.prototype,ov=Object.prototype,sv=nv.slice,av=ov.toString,cv=ov.hasOwnProperty,uv=bi.console,lv=bi.navigator,hv=bi.document,dv=bi.opera,pv=bi.screen,fv=lv.userAgent,mv=iv.bind,gv=nv.forEach,vv=nv.indexOf,yv=nv.map,wv=Array.isArray,bv={},_v={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},kv={log:function(){if(ev.DEBUG&&!_v.isUndefined(uv)&&uv)try{uv.log.apply(uv,arguments)}catch(E_){_v.each(arguments,function(e){uv.log(e)})}},warn:function(){if(ev.DEBUG&&!_v.isUndefined(uv)&&uv){var e=["Mixpanel warning:"].concat(_v.toArray(arguments));try{uv.warn.apply(uv,e)}catch(E_){_v.each(e,function(e){uv.warn(e)})}}},error:function(){if(ev.DEBUG&&!_v.isUndefined(uv)&&uv){var e=["Mixpanel error:"].concat(_v.toArray(arguments));try{uv.error.apply(uv,e)}catch(E_){_v.each(e,function(e){uv.error(e)})}}},critical:function(){if(!_v.isUndefined(uv)&&uv){var e=["Mixpanel error:"].concat(_v.toArray(arguments));try{uv.error.apply(uv,e)}catch(E_){_v.each(e,function(e){uv.error(e)})}}}},Sv=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(kv,arguments)}},Cv=function(e){return{log:Sv(kv.log,e),error:Sv(kv.error,e),critical:Sv(kv.critical,e)}},xv=function(e){return function(){try{return e.apply(this,arguments)}catch(t){kv.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),ev.DEBUG&&kv.critical(t)}}},Av=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=xv(t[r]))};_v.bind=function(e,t){var r,n;if(mv&&e.bind===mv)return mv.apply(e,sv.call(arguments,1));if(!_v.isFunction(e))throw new TypeError;return r=sv.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(sv.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(sv.call(arguments)));return Object(s)===s?s:o},n},_v.each=function(e,t,r){if(null!==e&&void 0!==e)if(gv&&e.forEach===gv)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)===bv)return}else for(var o in e)if(cv.call(e,o)&&t.call(r,e[o],o,e)===bv)return},_v.extend=function(e){return _v.each(sv.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},_v.isArray=wv||function(e){return"[object Array]"===av.call(e)},_v.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(xl){return!1}},_v.isArguments=function(e){return!(!e||!cv.call(e,"callee"))},_v.toArray=function(e){return e?e.toArray?e.toArray():_v.isArray(e)||_v.isArguments(e)?sv.call(e):_v.values(e):[]},_v.map=function(e,t,r){if(yv&&e.map===yv)return e.map(t,r);var n=[];return _v.each(e,function(e){n.push(t.call(r,e))}),n},_v.keys=function(e){var t=[];return null===e||_v.each(e,function(e,r){t[t.length]=r}),t},_v.values=function(e){var t=[];return null===e||_v.each(e,function(e){t[t.length]=e}),t},_v.include=function(e,t){var r=!1;return null===e?r:vv&&e.indexOf===vv?-1!=e.indexOf(t):(_v.each(e,function(e){if(r||(r=e===t))return bv}),r)},_v.includes=function(e,t){return-1!==e.indexOf(t)},_v.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},_v.isObject=function(e){return e===Object(e)&&!_v.isArray(e)},_v.isEmptyObject=function(e){if(_v.isObject(e)){for(var t in e)if(cv.call(e,t))return!1;return!0}return!1},_v.isUndefined=function(e){return void 0===e},_v.isString=function(e){return"[object String]"==av.call(e)},_v.isDate=function(e){return"[object Date]"==av.call(e)},_v.isNumber=function(e){return"[object Number]"==av.call(e)},_v.isElement=function(e){return!(!e||1!==e.nodeType)},_v.encodeDates=function(e){return _v.each(e,function(t,r){_v.isDate(t)?e[r]=_v.formatDate(t):_v.isObject(t)&&(e[r]=_v.encodeDates(t))}),e},_v.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},_v.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())},_v.strip_empty_properties=function(e){var t={};return _v.each(e,function(e,r){_v.isString(e)&&e.length>0&&(t[r]=e)}),t},_v.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):_v.isArray(e)?(r=[],_v.each(e,function(e){r.push(_v.truncate(e,t))})):_v.isObject(e)?(r={},_v.each(e,function(e,n){r[n]=_v.truncate(e,t)})):r=e,r},_v.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]"===av.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)cv.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})}}(),_v.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}}(),_v.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=_v.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},_v.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},_v.UUID=function(){try{return bi["crypto"]["randomUUID"]()}catch(E_){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]="-",_v.map(e,function(e){return e.toString(16)}).join("")}};var Ev=["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"];_v.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Ev.length;t++)if(-1!==e.indexOf(Ev[t]))return!0;return!1},_v.HTTPBuildQuery=function(e,t){var r,n,i=[];return _v.isUndefined(t)&&(t="&"),_v.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},_v.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(E_){kv.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},_v.cookie={get:function(e){for(var t=e+"=",r=hv.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=_v.JSONDecode(_v.cookie.get(e))||{}}catch(E_){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=qv(hv.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"),hv.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=qv(hv.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 hv.cookie=d,d},remove:function(e,t,r){_v.cookie.set(e,"",-1,t,!1,!1,r)}};var Iv=function(e){var t=!0;try{var r="__mplss_"+jv(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(E_){t=!1}return t},Ov=null,Tv=function(e,t){return null===Ov||t?Ov=Iv(e||bi.localStorage):Ov},Mv=null,Pv=function(e,t){return null===Mv||t?Mv=Iv(e||bi.sessionStorage):Mv};function Rv(e,t,r){var n=function(e){kv.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||kv.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(E_){n(E_)}return null},parse:function(t){try{return _v.JSONDecode(e.getItem(t))||{}}catch(E_){}return null},set:function(t,r){try{e.setItem(t,r)}catch(E_){n(E_)}},remove:function(t){try{e.removeItem(t)}catch(E_){n(E_)}}}}_v.localStorage=Rv(bi.localStorage,"localStorage",Tv),_v.sessionStorage=Rv(bi.sessionStorage,"sessionStorage",Pv),_v.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 kv.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(bi.event),i){var o,s,a=!0;return _v.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 Dv=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');_v.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(!hv.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[hv];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=hv.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&&_v.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Dv);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 _v.isElement(e)?[e]:_v.isObject(e)&&!_v.isUndefined(e.length)?e:n.call(this,e)}}();var Lv=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Bv=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];_v.info={campaignParams:function(e){var t="",r={};return _v.each(Lv,function(n){t=_v.getQueryParam(hv.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return _v.each(Bv,function(r){e=_v.getQueryParam(hv.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return _v.extend(_v.info.campaignParams(),_v.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=_v.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=_v.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||_v.includes(e," OPR/")?_v.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":_v.includes(e,"IEMobile")||_v.includes(e,"WPDesktop")?"Internet Explorer Mobile":_v.includes(e,"SamsungBrowser/")?"Samsung Internet":_v.includes(e,"Edge")||_v.includes(e,"Edg/")?"Microsoft Edge":_v.includes(e,"FBIOS")?"Facebook Mobile":_v.includes(e,"Whale/")?"Whale Browser":_v.includes(e,"Chrome")?"Chrome":_v.includes(e,"CriOS")?"Chrome iOS":_v.includes(e,"UCWEB")||_v.includes(e,"UCBrowser")?"UC Browser":_v.includes(e,"FxiOS")?"Firefox iOS":_v.includes(t,"Apple")?_v.includes(e,"Mobile")?"Mobile Safari":"Safari":_v.includes(e,"Android")?"Android Mobile":_v.includes(e,"Konqueror")?"Konqueror":_v.includes(e,"Firefox")?"Firefox":_v.includes(e,"MSIE")||_v.includes(e,"Trident/")?"Internet Explorer":_v.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=_v.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=fv;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 bi.location.href},properties:function(e){return"object"!==typeof e&&(e={}),_v.extend(_v.strip_empty_properties({$os:_v.info.os(),$browser:_v.info.browser(fv,lv.vendor,dv),$referrer:hv.referrer,$referring_domain:_v.info.referringDomain(hv.referrer),$device:_v.info.device(fv)}),{$current_url:_v.info.currentUrl(),$browser_version:_v.info.browserVersion(fv,lv.vendor,dv),$screen_height:pv.height,$screen_width:pv.width,mp_lib:"web",$lib_version:ev.LIB_VERSION,$insert_id:jv(),time:_v.timestamp()/1e3},_v.strip_empty_properties(e))},people_properties:function(){return _v.extend(_v.strip_empty_properties({$os:_v.info.os(),$browser:_v.info.browser(fv,lv.vendor,dv)}),{$browser_version:_v.info.browserVersion(fv,lv.vendor,dv)})},mpPageViewProperties:function(){return _v.strip_empty_properties({current_page_title:hv.title,current_domain:bi.location.hostname,current_url_path:bi.location.pathname,current_url_protocol:bi.location.protocol,current_url_search:bi.location.search})}};var Nv=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new Zg(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},jv=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},Uv=function(){var e=_v.UUID().replace(/-/g,""),t=_v.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Fv=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,zv=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,qv=function(e){var t=zv,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Fv);var i=e.match(t);return i?i[0]:""},Hv=function(){var e=bi.navigator["onLine"];return _v.isUndefined(e)||e},$v=function(){},Wv=null,Vv=null;"undefined"!==typeof JSON&&(Wv=JSON.stringify,Vv=JSON.parse),Wv=Wv||_v.JSONEncode,Vv=Vv||_v.JSONDecode,_v["info"]=_v.info,_v["info"]["browser"]=_v.info.browser,_v["info"]["browserVersion"]=_v.info.browserVersion,_v["info"]["device"]=_v.info.device,_v["info"]["properties"]=_v.info.properties,_v["isBlockedUA"]=_v.isBlockedUA,_v["isEmptyObject"]=_v.isEmptyObject,_v["isObject"]=_v.isObject,_v["JSONDecode"]=_v.JSONDecode,_v["JSONEncode"]=_v.JSONEncode,_v["toArray"]=_v.toArray,_v["NPO"]=Kg;var Xv="mixpanelBrowserDb",Yv="mixpanelRecordingEvents",Gv="mixpanelRecordingRegistry",Jv=1,Kv=[Yv,Gv],Zv=function(e){this.dbPromise=null,this.storeName=e};Zv.prototype._openDb=function(){return new Zg(function(e,t){var r=bi.indexedDB.open(Xv,Jv);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Kv.forEach(function(e){t.createObjectStore(e)})}})},Zv.prototype.init=function(){return bi.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof bi["IDBDatabase"]?Zg.resolve():Zg.reject(e)})):Zg.reject("indexedDB is not supported in this browser")},Zv.prototype.isInitialized=function(){return!!this.dbPromise},Zv.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Zg(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)):Zg.reject(e)}.bind(this))},Zv.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Zv.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Zv.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Zv.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Qv="__mp_opt_in_out_";function ey(e,t){dy(!0,e,t)}function ty(e,t){dy(!1,e,t)}function ry(e,t){return"1"===ly(e,t)}function ny(e,t){if(hy(t))return kv.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"===ly(e,t);return r&&kv.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function iy(e){return py(e,function(e){return this.get_config(e)})}function oy(e){return py(e,function(e){return this._get_config(e)})}function sy(e){return py(e,function(e){return this._get_config(e)})}function ay(e,t){t=t||{},cy(t).remove(uy(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function cy(e){return e=e||{},"localStorage"===e.persistenceType?_v.localStorage:_v.cookie}function uy(e,t){return t=t||{},(t.persistencePrefix||Qv)+e}function ly(e,t){return cy(t).get(uy(e,t))}function hy(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||bi,r=t["navigator"]||{},n=!1;return _v.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){_v.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function dy(e,t,r){_v.isString(t)&&t.length?(r=r||{},cy(r).set(uy(t,r),e?1:0,_v.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})):kv.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function py(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=ny(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(E_){kv.error("Unexpected error when checking tracking opt-out status: "+E_)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var fy=Cv("lock"),my=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||bi.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Zg};my.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(_v.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 fy.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(E_){n(E_)}},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||(Tv(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(!Tv(u,!0))throw new Error("localStorage support check failed");g()}catch(E_){n(E_)}},this))};var gy=function(e){this.storage=e||bi.localStorage};gy.prototype.init=function(){return Zg.resolve()},gy.prototype.isInitialized=function(){return!0},gy.prototype.setItem=function(e,t){return new Zg(_v.bind(function(r,n){try{this.storage.setItem(e,Wv(t))}catch(i){n(i)}r()},this))},gy.prototype.getItem=function(e){return new Zg(_v.bind(function(t,r){var n;try{n=Vv(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},gy.prototype.removeItem=function(e){return new Zg(_v.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var vy=Cv("batch"),yy=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new gy,this.lock=new my(e,{storage:t.sharedLockStorage||bi.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||_v.bind(vy.error,vy),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Nv(_v.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=_v.bind(function(e){return this._enqueuePersisted([e])},this)};yy.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Zg.resolve():this.queueStorage.init().then(_v.bind(function(){this.initialized=!0},this)).catch(_v.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},yy.prototype.enqueue=function(e,t){var r={id:jv(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Zg.resolve(!0))},yy.prototype._enqueuePersisted=function(e){var t=_v.bind(function(){return this.ensureInit().then(_v.bind(function(){return this.readFromStorage()},this)).then(_v.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(_v.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(_v.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(_v.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},yy.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(_v.bind(function(){return this.readFromStorage()},this)).then(_v.bind(function(r){if(r.length){var n={};_v.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)):Zg.resolve(t)};var wy=function(e,t){var r=[];return _v.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};yy.prototype.removeItemsByID=function(e){var t={};if(_v.each(e,function(e){t[e]=!0}),this.memQueue=wy(this.memQueue,t),this.usePersistence){var r=_v.bind(function(){return this.ensureInit().then(_v.bind(function(){return this.readFromStorage()},this)).then(_v.bind(function(e){return e=wy(e,t),this.saveToStorage(e)},this)).then(_v.bind(function(){return this.readFromStorage()},this)).then(_v.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(_v.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(_v.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Tv(this.lock.storage,!0)&&r().then(_v.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(_v.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Zg.resolve(!0)};var by=function(e,t){var r=[];return _v.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};yy.prototype.updatePayloads=function(e){return this.memQueue=by(this.memQueue,e),this.usePersistence?this.lock.withLock(_v.bind(function(){return this.ensureInit().then(_v.bind(function(){return this.readFromStorage()},this)).then(_v.bind(function(t){return t=by(t,e),this.saveToStorage(t)},this)).catch(_v.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(_v.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Zg.resolve(!0)},yy.prototype.readFromStorage=function(){return this.ensureInit().then(_v.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(_v.bind(function(e){return e&&(_v.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(_v.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},yy.prototype.saveToStorage=function(e){return this.ensureInit().then(_v.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(_v.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},yy.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(_v.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Zg.resolve()};var _y=6e5,ky=Cv("batch"),Sy=function(e,t){this.errorReporter=t.errorReporter,this.queue=new yy(e,{errorReporter:_v.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};Sy.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Sy.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Sy.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Sy.prototype.clear=function(){return this.queue.clear()},Sy.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},Sy.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},Sy.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(_v.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Sy.prototype.sendRequestPromise=function(e,t){return new Zg(_v.bind(function(r){this.sendRequest(e,t,r)},this))},Sy.prototype.flush=function(e){if(this.requestInProgress)return ky.log("Flush: Request already in progress"),Zg.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(_v.bind(function(i){var o=i.length===n,s=[],a={};if(_v.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=_v.extend({},t["properties"],{mp_sent_by_lib_version:ev.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(),Zg.resolve();var c=_v.bind(function(){return this.queue.removeItemsByID(_v.map(i,function(e){return e["id"]})).then(_v.bind(function(e){return _v.each(i,_v.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(),Zg.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Zg.resolve())},this))},this),u=_v.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(_v.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(_v.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Hv()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(_y,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Zg.resolve()}if(_v.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(),Zg.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(E_){this.reportError("Error handling API response",E_),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),ky.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(_v.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Sy.prototype.reportError=function(e,t){if(ky.error.apply(ky.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ky.error(t)}};var Cy=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},xy=250,Ay=Cv("recorder"),Ey=bi["CompressionStream"],Iy={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Oy=new Set([fm.MouseMove,fm.MouseInteraction,fm.Scroll,fm.ViewportResize,fm.Input,fm.TouchMove,fm.MediaInteraction,fm.Drag,fm.Selection]);function Ty(e){return e.type===pm.IncrementalSnapshot&&Oy.has(e.data.source)}var My=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||$v,this._onMaxLengthReached=e.onMaxLengthReached||$v,this._onBatchSent=e.onBatchSent||$v,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.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=tv,this.recordMinMs=0;var t=Tv(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Zv(Yv),this.batcher=new Sy(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Iy,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:xy,sharedLockTimeoutMS:1e4})};My.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},My.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},My.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},My.prototype.get_config=function(e){return this.getConfig(e)},My.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>tv&&(this.recordMaxMs=tv,Ay.critical("record_max_ms cannot be greater than "+tv+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>rv&&(this.recordMinMs=rv,Ay.critical("record_min_ms cannot be greater than "+rv+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=_v.info.currentUrl(),this.replayStartUrl=_v.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);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(Ty(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(E_){this.reportError("Unexpected error when starting rrweb recording.",E_)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var n=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)}else Ay.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},My.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(E_){this.reportError("Error with rrweb stopRecording",E_)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},My.prototype.isRrwebStopped=function(){return null===this._stopRecording},My.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)},My.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,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},My.deserialize=function(e,t){var r=new My(_v.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},My.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=_v.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");bi["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})})},My.prototype._flushEvents=iy(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===pm.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:ev.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()),Ey){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Ey("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)}}),My.prototype.reportError=function(e,t){Ay.error.apply(Ay.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Ay.error(t)}};var Py=function(e){this.idb=new Zv(Gv),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Py.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Py.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Py.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Zg.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."),Zg.resolve())},Py.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 Cy(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Zg.resolve(null)},Py.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Py.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))},Py.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Zg.resolve()},Py.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 Cy(e)}).map(function(e){var t=My.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 Zg.all(t)}.bind(this)).catch(this.handleError.bind(this)):Zg.resolve([])};var Ry=Cv("recorder"),Dy=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Lg,this.sharedLockStorage=r,this.recordingRegistry=new Py({mixpanelInstance:this.mixpanelInstance,errorReporter:Ry.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Dy.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Ry.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Ry.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:_v.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=My.deserialize(e.activeSerializedRecording,i):this.activeRecording=new My(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Ry.log("Recording already in progress, skipping startRecording.")},Dy.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))},Dy.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Dy.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Zg.resolve()},Dy.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Zg.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Ry.log("No resumable recording found."),null)}.bind(this))},Dy.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Dy.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Dy.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),bi["__mp_recorder"]=Dy;var Ly="change",By="click",Ny="hashchange",jy="input",Uy="load",Fy="mp_locationchange",zy="popstate",qy="scrollend",Hy="scroll",$y="select",Wy="submit",Vy="toggle",Xy="visibilitychange",Yy=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Gy=["mp-include"],Jy=["mp-no-track"],Ky=Jy.concat(["mp-sensitive"]),Zy=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Qy={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},ew={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},tw={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},rw=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],nw=5,iw=Cv("autocapture");function ow(e){for(var t={},r=sw(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function sw(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function aw(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!fw(e));return e}function cw(e,t,r,n,i,o){var s={$classes:sw(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),bw(e,t,i,o)&&_v.each(Zy.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);_w(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=aw(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function uw(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={};_v.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(gw(d)&&(d=d.parentNode),ww(d,e)&&dw(d,e,r,n)&&!pw(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!mw(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(_v.each(p,function(t){var i=bw(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&_w(m)&&m),pw(t,e,o,s)&&(v=!0),g.push(cw(t,e,l,c,r,n))},this),!v){var y=hv["documentElement"];if(h={$event_type:e.type,$host:bi.location.host,$pathname:bi.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],bi["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],bi["innerWidth"]||0),$pageHeight:hv["body"]["offsetHeight"]||0,$pageWidth:hv["body"]["offsetWidth"]||0},_v.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);_w(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=lw(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===By&&(_v.each(Yy,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=hw(e)),a){var w=lw(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!dw(d,e,r,n)||pw(d,e,o,s))return null;var b=cw(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],_v.extend(h,_v.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function lw(e,t,r,n){var i="";return bw(e,t,r,n)&&e.childNodes&&e.childNodes.length&&_v.each(e.childNodes,function(e){gw(e)&&e.textContent&&(i+=_v.trim(e.textContent).split(/(\s+)/).filter(_w).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),_v.trim(i)}function hw(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(mw(i,"a")||mw(i,"button")||mw(i,"input")||mw(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function dw(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(E_){return iw.critical("Error while checking element in allowElementCallback",E_),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(E_){iw.critical("Error while checking selector: "+o,E_)}}return!1}function pw(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(E_){return iw.critical("Error while checking element in blockElementCallback",E_),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(E_){iw.critical("Error while checking selector: "+o,E_)}}var s=ow(e);for(i=0;i<Jy.length;i++)if(s[Jy[i]])return!0;return!1}function fw(e){return e&&1===e.nodeType}function mw(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function gw(e){return e&&3===e.nodeType}function vw(){try{var e=hv.createElement("div");return!!e["matches"]}catch(E_){return!1}}function yw(){return"undefined"!==typeof WeakSet}function ww(e,t){if(!e||mw(e,"html")||!fw(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===Wy;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Ly:t.type===By;case"select":case"textarea":return t.type===Ly;default:return t.type===By}}function bw(e,t,r,n){var i;if(!dw(e,t,r,n))return!1;for(var o=e;o.parentNode&&!mw(o,"body");o=o.parentNode){var s=ow(o);for(i=0;i<Ky.length;i++)if(s[Ky[i]])return!1}var a=ow(e);for(i=0;i<Gy.length;i++)if(a[Gy[i]])return!0;if(mw(e,"input")||mw(e,"select")||mw(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}var u=e.name||e.id||"";if("string"===typeof u){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(u.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function _w(e){if(null===e||_v.isUndefined(e))return!1;if("string"===typeof e){e=_v.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 kw(e){var t="onscrollend"in bi,r=xv(e),n=qy;if(!t){var i=null,o=100;r=xv(function(){clearTimeout(i),i=setTimeout(e,o)}),n=Hy}return{listener:r,eventType:n}}function Sw(e){for(var t=0;t<rw.length;t++)if(e.hasAttribute(rw[t]))return!0;return!1}function Cw(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Qy[r]}function xw(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)||(!!Sw(e)||(!!Cw(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Aw(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(ew[t])return!0;if(xw(e))return!1;var r=e.parentElement,n=0;while(r&&n<nw){if(xw(r))return!1;if(r.getRootNode&&r.getRootNode()!==hv){var i=r.getRootNode();if(i.host&&xw(i.host))return!1}r=r.parentElement,n++}return!!tw[t]}var Ew=30,Iw=1e3,Ow=4;function Tw(){this.clicks=[]}function Mw(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Tw.prototype.isRageClick=function(e,t,r){r=r||{};var n=r["threshold_px"]||Ew,i=r["timeout_ms"]||Iw,o=r["click_count"]||Ow,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},Mw.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e["target"]||e["srcElement"]}},Mw.prototype.getComposedPath=function(e){return"composedPath"in e?e["composedPath"]():[]},Mw.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Mw.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){iw.critical("Error while observing shadow root",n)}}},Mw.prototype.start=function(){this.observedShadowRoots||(yw()?this.observedShadowRoots=new WeakSet:iw.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Mw.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){iw.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Pw=500,Rw=[Ly,jy,Wy,$y,Vy],Dw=[qy],Lw=[Ny],Bw={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Nw(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}Nw.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||Aw(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Nw.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Nw.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},Nw.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Nw.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Nw.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Nw.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},Nw.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Rw.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}})}),Lw.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),Dw.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,Bw)}catch(r){iw.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new Mw(function(){e.recordChangeEvent()},Bw),this.shadowDOMObserver.start()}catch(r){iw.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},Nw.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){iw.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){iw.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){iw.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var jw="autocapture",Uw="track_pageview",Fw="full-url",zw="url-with-path-and-query-string",qw="url-with-path",Hw="allow_element_callback",$w="allow_selectors",Ww="allow_url_regexes",Vw="block_attrs",Xw="block_element_callback",Yw="block_selectors",Gw="block_url_regexes",Jw="capture_extra_attrs",Kw="capture_text_content",Zw="scroll_capture_all",Qw="scroll_depth_percent_checkpoints",eb="click",tb="dead_click",rb="input",nb="pageview",ib="rage_click",ob="scroll",sb="page_leave",ab="submit",cb={};cb[$w]=[],cb[Ww]=[],cb[Vw]=[],cb[Xw]=null,cb[Yw]=[],cb[Gw]=[],cb[Jw]=[],cb[Kw]=!1,cb[Zw]=!1,cb[Qw]=[25,50,75,100],cb[eb]=!0,cb[tb]=!0,cb[rb]=!0,cb[nb]=Fw,cb[ib]=!0,cb[ob]=!0,cb[sb]=!1,cb[ab]=!0;var ub={$mp_autocapture:!0},lb="$mp_click",hb="$mp_dead_click",db="$mp_input_change",pb="$mp_rage_click",fb="$mp_scroll",mb="$mp_submit",gb="$mp_page_leave",vb=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};vb.prototype.init=function(){vw()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):iw.critical("Autocapture unavailable: missing required DOM APIs")},vb.prototype.getFullConfig=function(){var e=this.mp.get_config(jw);return e?_v.isObject(e)?_v.extend({},cb,e):cb:{}},vb.prototype.getConfig=function(e){return this.getFullConfig()[e]},vb.prototype.currentUrlBlocked=function(){var e,t=_v.info.currentUrl(),r=this.getConfig(Ww)||[];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(E_){return iw.critical("Error while checking block URL regex: "+i,E_),!0}}if(!n)return!0}var o=this.getConfig(Gw)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(E_){return iw.critical("Error while checking block URL regex: "+o[e],E_),!0}return!1},vb.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(jw)?this.getConfig(nb):this.mp.get_config(Uw)},vb.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===lb&&!this.getConfig(eb)||t===pb&&!this._getClickTrackingConfig(ib)||t===hb&&!this._getClickTrackingConfig(tb)),n=uw(e,{allowElementCallback:this.getConfig(Hw),allowSelectors:this.getConfig($w),blockAttrs:this.getConfig(Vw),blockElementCallback:this.getConfig(Xw),blockSelectors:this.getConfig(Yw),captureExtraAttrs:this.getConfig(Jw),captureTextContent:this.getConfig(Kw),capturedForHeatMap:r});n&&(_v.extend(n,ub),this.mp.track(t,n))}},vb.prototype.initPageListeners=function(){if(bi.removeEventListener(zy,this.listenerPopstate),bi.removeEventListener(Ny,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(sb)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){bi.dispatchEvent(new Event(Fy))},this.listenerHashchange=function(){bi.dispatchEvent(new Event(Fy))},bi.addEventListener(zy,this.listenerPopstate),bi.addEventListener(Ny,this.listenerHashchange);var e=bi.history.pushState;"function"===typeof e&&(bi.history.pushState=function(t,r,n){e.call(bi.history,t,r,n),bi.dispatchEvent(new Event(Fy))});var t=bi.history.replaceState;"function"===typeof t&&(bi.history.replaceState=function(e,r,n){t.call(bi.history,e,r,n),bi.dispatchEvent(new Event(Fy))})}},vb.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},vb.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(sb)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(hv.documentElement.clientHeight,bi.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=_v.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||_v.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(hv.documentElement.clientWidth,bi.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ub);this.mp.track(gb,s,{transport:"sendBeacon"})}},vb.prototype._initScrollDepthTracking=function(){if(bi.removeEventListener(Hy,this.listenerScrollDepth),bi.removeEventListener(qy,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){iw.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(hv.documentElement.clientHeight,bi.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(hv.documentElement.clientHeight,bi.innerHeight||0)+bi.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=hv.body.scrollHeight}}.bind(this),t=kw(e);this.listenerScrollDepth=t.listener,bi.addEventListener(t.eventType,this.listenerScrollDepth)}},vb.prototype.initClickTracking=function(){bi.removeEventListener(By,this.listenerClick),(this.getConfig(eb)||this.mp.get_config("record_heatmap_data"))&&(iw.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(eb)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,lb)}.bind(this),bi.addEventListener(By,this.listenerClick))},vb.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(tb);e||this.mp.get_config("record_heatmap_data")?(iw.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Nw(function(e){this.trackDomEvent(e,hb)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(tb);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=Pw),this._deadClickTracker.trackClick(e,r)}}.bind(this),bi.addEventListener(By,this.listenerDeadClick))):this.stopDeadClickTracking()},vb.prototype.initInputTracking=function(){bi.removeEventListener(Ly,this.listenerChange),this.getConfig(rb)&&(iw.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(rb)&&this.trackDomEvent(e,db)}.bind(this),bi.addEventListener(Ly,this.listenerChange))},vb.prototype.initPageviewTracking=function(){if(bi.removeEventListener(Fy,this.listenerLocationchange),this.pageviewTrackingConfig()){iw.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(ub)),t&&(e=_v.info.currentUrl()),this.listenerLocationchange=xv(function(){if(!this.currentUrlBlocked()){var t=_v.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===Fw?r=t!==e:i===zw?r=t.split("#")[0]!==e.split("#")[0]:i===qw&&(r=n),r){var o=this.mp.track_pageview(ub);o&&(e=t),n&&(this.lastScrollCheckpoint=0,iw.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),bi.addEventListener(Fy,this.listenerLocationchange)}},vb.prototype.initRageClickTracking=function(){bi.removeEventListener(By,this.listenerRageClick);var e=this._getClickTrackingConfig(ib);(e||this.mp.get_config("record_heatmap_data"))&&(iw.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Tw),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(ib);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e["pageX"],e["pageY"],t)&&this.trackDomEvent(e,pb))}.bind(this),bi.addEventListener(By,this.listenerRageClick))},vb.prototype.initScrollTracking=function(){if(bi.removeEventListener(qy,this.listenerScroll),bi.removeEventListener(Hy,this.listenerScroll),this.getConfig(ob)){iw.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(ob)&&!this.currentUrlBlocked()){var e=this.getConfig(Zw),t=(this.getConfig(Qw)||[]).slice().sort(function(e,t){return e-t}),r=bi.scrollY,n=_v.extend({$scroll_top:r},ub);try{var i=hv.body.scrollHeight,o=Math.round(r/(i-bi.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(E_){iw.critical("Error while calculating scroll percentage",E_)}e&&this.mp.track(fb,n)}}.bind(this),t=kw(e);this.listenerScroll=t.listener,bi.addEventListener(t.eventType,this.listenerScroll)}},vb.prototype.initSubmitTracking=function(){bi.removeEventListener(Wy,this.listenerSubmit),this.getConfig(ab)&&(iw.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(ab)&&this.trackDomEvent(e,mb)}.bind(this),bi.addEventListener(Wy,this.listenerSubmit))},vb.prototype.initPageLeaveTracking=function(){if(hv.removeEventListener(Xy,this.listenerPageLeaveVisibilitychange),bi.removeEventListener(Fy,this.listenerPageLeaveLocationchange),bi.removeEventListener(Uy,this.listenerPageLoad),this.getConfig(sb)||this.mp.get_config("record_heatmap_data")){iw.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=_v.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=hv.body.scrollHeight}.bind(this),bi.addEventListener(Uy,this.listenerPageLoad),this.listenerPageLeaveLocationchange=xv(function(t){if(!this.currentUrlBlocked()){var r=_v.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(hv.documentElement.clientHeight,bi.innerHeight||0),this.previousScrollHeight=hv.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),bi.addEventListener(Fy,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){hv.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),hv.addEventListener(Xy,this.listenerPageLeaveVisibilitychange)}},vb.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(bi.removeEventListener(By,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Av(vb);var yb=Cv("flags"),wb="flags",bb="context",_b={};_b[bb]={};var kb=function(e){this.fetch=bi["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};kb.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):yb.critical("Feature Flags unavailable: missing minimum required APIs")},kb.prototype.getFullConfig=function(){var e=this.getMpConfig(wb);return e?_v.isObject(e)?_v.extend({},_b,e):_b:{}},kb.prototype.getConfig=function(e){return this.getFullConfig()[e]},kb.prototype.isSystemEnabled=function(){return!!this.getMpConfig(wb)},kb.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return yb.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(wb);_v.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(bb);return r[bb]=_v.extend({},n,e),this.setMpConfig(wb,r),this.fetchFlags()},kb.prototype.areFlagsReady=function(){return this.isSystemEnabled()||yb.error("Feature Flags not enabled"),!!this.flags},kb.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Uv();yb.log("Fetching flags for distinct ID: "+e);var n=_v.extend({distinct_id:e,device_id:t},this.getConfig(bb)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",ev.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(bi,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;_v.each(t,function(e,t){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.flags=n,this._traceparent=r}.bind(this)).catch(function(e){this.markFetchComplete(),yb.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),yb.error(e)}.bind(this)),this.fetchPromise},kb.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):yb.error("Fetch in progress started time not set, cannot mark fetch complete")},kb.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return yb.error(e),t}):new Promise(function(e){yb.critical("Feature Flags not initialized"),e(t)})},kb.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return yb.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(yb.log('No flag found: "'+e+'"'),t)},kb.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return yb.error(e),t})},kb.prototype.getFeatureData=function(e,t){return yb.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)},kb.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},kb.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return yb.error(e),t})},kb.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(yb.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},kb.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)}},kb.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},Av(kb),kb.prototype["are_flags_ready"]=kb.prototype.areFlagsReady,kb.prototype["get_variant"]=kb.prototype.getVariant,kb.prototype["get_variant_sync"]=kb.prototype.getVariantSync,kb.prototype["get_variant_value"]=kb.prototype.getVariantValue,kb.prototype["get_variant_value_sync"]=kb.prototype.getVariantValueSync,kb.prototype["is_enabled"]=kb.prototype.isEnabled,kb.prototype["is_enabled_sync"]=kb.prototype.isEnabledSync,kb.prototype["update_context"]=kb.prototype.updateContext,kb.prototype["get_feature_data"]=kb.prototype.getFeatureData;var Sb=function(){};Sb.prototype.create_properties=function(){},Sb.prototype.event_handler=function(){},Sb.prototype.after_track_handler=function(){},Sb.prototype.init=function(e){return this.mp=e,this},Sb.prototype.track=function(e,t,r,n){var i=this,o=_v.dom_query(e);if(0!==o.length)return _v.each(o,function(e){_v.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;kv.error("The DOM query ("+e+") returned 0 elements")},Sb.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))}},Sb.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):_v.extend({},e),r};var Cb=function(){this.override_event="click"};_v.inherit(Cb,Sb),Cb.prototype.create_properties=function(e,t){var r=Cb.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},Cb.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()},Cb.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var xb=function(){this.override_event="submit"};_v.inherit(xb,Sb),xb.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},xb.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Ab="$set",Eb="$set_once",Ib="$unset",Ob="$add",Tb="$append",Mb="$union",Pb="$remove",Rb="$delete",Db={set_action:function(e,t){var r={},n={};return _v.isObject(e)?_v.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ab]=n,r},unset_action:function(e){var t={},r=[];return _v.isArray(e)||(e=[e]),_v.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Ib]=r,t},set_once_action:function(e,t){var r={},n={};return _v.isObject(e)?_v.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Eb]=n,r},union_action:function(e,t){var r={},n={};return _v.isObject(e)?_v.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=_v.isArray(e)?e:[e])},this):n[e]=_v.isArray(t)?t:[t],r[Mb]=n,r},append_action:function(e,t){var r={},n={};return _v.isObject(e)?_v.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Tb]=n,r},remove_action:function(e,t){var r={},n={};return _v.isObject(e)?_v.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Pb]=n,r},delete_action:function(){var e={};return e[Rb]="",e}},Lb=function(){};_v.extend(Lb.prototype,Db),Lb.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Lb.prototype.set=sy(function(e,t,r){var n=this.set_action(e,t);return _v.isObject(e)&&(r=t),this._send_request(n,r)}),Lb.prototype.set_once=sy(function(e,t,r){var n=this.set_once_action(e,t);return _v.isObject(e)&&(r=t),this._send_request(n,r)}),Lb.prototype.unset=sy(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Lb.prototype.union=sy(function(e,t,r){_v.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Lb.prototype["delete"]=sy(function(e){var t=this.delete_action();return this._send_request(t,e)}),Lb.prototype.remove=sy(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Lb.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=_v.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)},Lb.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Lb.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Lb.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Lb.prototype["remove"]=Lb.prototype.remove,Lb.prototype["set"]=Lb.prototype.set,Lb.prototype["set_once"]=Lb.prototype.set_once,Lb.prototype["union"]=Lb.prototype.union,Lb.prototype["unset"]=Lb.prototype.unset,Lb.prototype["toString"]=Lb.prototype.toString;var Bb=function(){};_v.extend(Bb.prototype,Db),Bb.prototype._init=function(e){this._mixpanel=e},Bb.prototype.set=oy(function(e,t,r){var n=this.set_action(e,t);return _v.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[Ab]=_v.extend({},_v.info.people_properties(),n[Ab]),this._send_request(n,r)}),Bb.prototype.set_once=oy(function(e,t,r){var n=this.set_once_action(e,t);return _v.isObject(e)&&(r=t),this._send_request(n,r)}),Bb.prototype.unset=oy(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Bb.prototype.increment=oy(function(e,t,r){var n={},i={};return _v.isObject(e)?(_v.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void kv.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(_v.isUndefined(t)&&(t=1),i[e]=t),n[Ob]=i,this._send_request(n,r)}),Bb.prototype.append=oy(function(e,t,r){_v.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Bb.prototype.remove=oy(function(e,t,r){_v.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Bb.prototype.union=oy(function(e,t,r){_v.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Bb.prototype.track_charge=oy(function(){kv.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Bb.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Bb.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}kv.error("mixpanel.people.delete_user() requires you to call identify() first")},Bb.prototype.toString=function(){return this._mixpanel.toString()+".people"},Bb.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=_v.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),_v.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),_v.truncate(o,255))},Bb.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Bb.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Bb.prototype._enqueue=function(e){Ab in e?this._mixpanel["persistence"]._add_to_people_queue(Ab,e):Eb in e?this._mixpanel["persistence"]._add_to_people_queue(Eb,e):Ib in e?this._mixpanel["persistence"]._add_to_people_queue(Ib,e):Ob in e?this._mixpanel["persistence"]._add_to_people_queue(Ob,e):Tb in e?this._mixpanel["persistence"]._add_to_people_queue(Tb,e):Pb in e?this._mixpanel["persistence"]._add_to_people_queue(Pb,e):Mb in e?this._mixpanel["persistence"]._add_to_people_queue(Mb,e):kv.error("Invalid call to _enqueue():",e)},Bb.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=_v.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;_v.isUndefined(o)||!_v.isObject(o)||_v.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),_v.isUndefined(r)||r(t,n)}))},Bb.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Ab,this.set,e),this._flush_one_queue(Eb,this.set_once,n),this._flush_one_queue(Ib,this.unset,o,function(e){return _v.keys(e)}),this._flush_one_queue(Ob,this.increment,t),this._flush_one_queue(Mb,this.union,i);var c=this._mixpanel["persistence"].load_queue(Tb);if(!_v.isUndefined(c)&&_v.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(Tb,u),_v.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(Tb),u=c.pop(),a._mixpanel["persistence"].save(),_v.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(Pb);if(!_v.isUndefined(d)&&_v.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(Pb,p),_v.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(Pb),p=d.pop(),a._mixpanel["persistence"].save(),_v.isEmptyObject(p)||a.remove(p,f)},Bb.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Bb.prototype["set"]=Bb.prototype.set,Bb.prototype["set_once"]=Bb.prototype.set_once,Bb.prototype["unset"]=Bb.prototype.unset,Bb.prototype["increment"]=Bb.prototype.increment,Bb.prototype["append"]=Bb.prototype.append,Bb.prototype["remove"]=Bb.prototype.remove,Bb.prototype["union"]=Bb.prototype.union,Bb.prototype["track_charge"]=Bb.prototype.track_charge,Bb.prototype["clear_charges"]=Bb.prototype.clear_charges,Bb.prototype["delete_user"]=Bb.prototype.delete_user,Bb.prototype["toString"]=Bb.prototype.toString;var Nb,jb="__mps",Ub="__mpso",Fb="__mpus",zb="__mpa",qb="__mpap",Hb="__mpr",$b="__mpu",Wb="$people_distinct_id",Vb="__alias",Xb="__timers",Yb=[jb,Ub,Fb,zb,qb,Hb,$b,Wb,Vb,Xb],Gb=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&&(kv.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&_v.localStorage.is_supported()?this.storage=_v.localStorage:this.storage=_v.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Gb.prototype.properties=function(){var e={};return this.load(),_v.each(this["props"],function(t,r){_v.include(Yb,r)||(e[r]=t)}),e},Gb.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=_v.extend({},e))}},Gb.prototype.upgrade=function(){var e,t;this.storage===_v.localStorage?(e=_v.cookie.parse(this.name),_v.cookie.remove(this.name),_v.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===_v.cookie&&(t=_v.localStorage.parse(this.name),_v.localStorage.remove(this.name),t&&this.register_once(t))},Gb.prototype.save=function(){this.disabled||this.storage.set(this.name,Wv(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Gb.prototype.load_prop=function(e){return this.load(),this["props"][e]},Gb.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Gb.prototype.clear=function(){this.remove(),this["props"]={}},Gb.prototype.register_once=function(e,t,r){return!!_v.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),_v.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},Gb.prototype.register=function(e,t){return!!_v.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),_v.extend(this["props"],e),this.save(),!0)},Gb.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},Gb.prototype.update_search_keyword=function(e){this.register(_v.info.searchInfo(e))},Gb.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:_v.info.referringDomain(e)||"$direct"},"")},Gb.prototype.get_referrer_info=function(){return _v.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},Gb.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"])},Gb.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Gb.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Gb.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Gb.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Gb.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Gb.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Gb.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Ab),o=this._get_or_create_queue(Eb),s=this._get_or_create_queue(Ib),a=this._get_or_create_queue(Ob),c=this._get_or_create_queue(Mb),u=this._get_or_create_queue(Pb,[]),l=this._get_or_create_queue(Tb,[]);r===jb?(_v.extend(i,n),this._pop_from_people_queue(Ob,n),this._pop_from_people_queue(Mb,n),this._pop_from_people_queue(Ib,n)):r===Ub?(_v.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Ib,n)):r===Fb?_v.each(n,function(e){_v.each([i,o,a,c],function(t){e in t&&delete t[e]}),_v.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===zb?(_v.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(Ib,n)):r===$b?(_v.each(n,function(e,t){_v.isArray(e)&&(t in c||(c[t]=[]),_v.each(e,function(e){_v.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Ib,n)):r===Hb?(u.push(n),this._pop_from_people_queue(Tb,n)):r===qb&&(l.push(n),this._pop_from_people_queue(Ib,n)),kv.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),kv.log(t),this.save()},Gb.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];_v.isUndefined(r)||_v.each(t,function(t,n){e===Tb||e===Pb?_v.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Gb.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Gb.prototype._get_queue_key=function(e){return e===Ab?jb:e===Eb?Ub:e===Ib?Fb:e===Ob?zb:e===Tb?qb:e===Pb?Hb:e===Mb?$b:void kv.error("Invalid queue:",e)},Gb.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=_v.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},Gb.prototype.set_event_timer=function(e,t){var r=this.load_prop(Xb)||{};r[e]=t,this["props"][Xb]=r,this.save()},Gb.prototype.remove_event_timer=function(e){var t=this.load_prop(Xb)||{},r=t[e];return _v.isUndefined(r)||(delete this["props"][Xb][e],this.save()),r};var Jb,Kb=function(e,t){throw new Error(e+" not available in this build.")},Zb=0,Qb=1,e_=function(e){return e},t_="mixpanel",r_="base64",n_="json",i_="$device:",o_=bi.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,s_=!o_&&-1===fv.indexOf("MSIE")&&-1===fv.indexOf("Mozilla"),a_=null;lv["sendBeacon"]&&(a_=function(){return lv["sendBeacon"].apply(lv,arguments)});var c_={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},u_={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:c_,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:r_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:$v,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:$v,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_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:tv,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},l_=!1,h_=function(){},d_=function(e,t,r){var n,i=r===t_?Jb:Jb[r];if(i&&Nb===Zb)n=i;else{if(i&&!_v.isArray(i))return void kv.error("You have already initialized "+r);n=new h_}if(n._cached_groups={},n._init(e,t,r),n["people"]=new Bb,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=_v.info.campaignParams(null),s={},a=!1;_v.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}return ev.DEBUG=ev.DEBUG||n.get_config("debug"),!_v.isUndefined(i)&&_v.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};h_.prototype.init=function(e,t,r){if(_v.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==t_){var n=d_(e,t,r);return Jb[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},h_.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"]||u_["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=n_)}if(this.set_config(_v.extend({},u_,n,t,{name:r,token:e,callback_fn:(r===t_?r:t_+"."+r)+"._jsc"})),this["_jsc"]=$v,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(_v.localStorage.is_supported(!0)&&o_){if(this.init_batchers(),a_&&bi.addEventListener){var o=_v.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);bi.addEventListener("pagehide",function(e){e["persisted"]&&o()}),bi.addEventListener("visibilitychange",function(){"hidden"===hv["visibilityState"]&&o()})}}else this._batch_requests=!1,kv.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),_v.each(this.get_batcher_configs(),function(e){kv.log("Clearing batch queue "+e.queue_key),_v.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new Gb(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=_v.UUID();this.get_distinct_id()||this.register_once({distinct_id:i_+s,$device_id:s},""),this.flags=new kb({getFullApiRoute:_v.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:_v.bind(this.get_config,this),setConfigFunc:_v.bind(this.set_config,this),getPropertyFunc:_v.bind(this.get_property,this),trackingFunc:_v.bind(this.track,this)}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new vb(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},h_.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))kv.log("Tab ID initialization skipped due to disable_persistence config");else if(_v.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;!_v.sessionStorage.get(r)&&_v.sessionStorage.get(t)||_v.sessionStorage.set(t,"$tab-"+_v.UUID()),_v.sessionStorage.set(r,"1"),this.tab_id=_v.sessionStorage.get(t),bi.addEventListener("beforeunload",function(){_v.sessionStorage.remove(r)})}catch(E_){this.report_error("Error initializing tab id",E_)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},h_.prototype.get_tab_id=function(){return this.tab_id||null},h_.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return kv.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Zv(Gv),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(Cy(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(_v.bind(function(e){this.report_error("Error checking recording registry",e)},this))},h_.prototype._check_and_start_session_recording=iy(function(e){if(bi["MutationObserver"]){var t=_v.bind(function(e){var t=_v.bind(function(){this._recorder=this._recorder||new bi["__mp_recorder"](this),this._recorder["resumeRecording"](e)},this);_v.isUndefined(bi["__mp_recorder"])?Kb(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 kv.critical("Browser does not support MutationObserver; skipping session recording")}),h_.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},h_.prototype.stop_session_recording=function(){return this._recorder?this._recorder["stopRecording"]():Promise.resolve()},h_.prototype.pause_session_recording=function(){return this._recorder?this._recorder["pauseRecording"]():Promise.resolve()},h_.prototype.resume_session_recording=function(){return this._recorder?this._recorder["resumeRecording"]():Promise.resolve()},h_.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},h_.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e["$mp_replay_id"]=t),e},h_.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var r=_v.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},h_.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},h_.prototype.__get_recorder=function(){return this._recorder},h_.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=_v.info.campaignParams(null);_v.each(e,function(e,t){this.unregister(t)}.bind(this))}},h_.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(hv.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(_v.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(hv.referrer)},h_.prototype._dom_loaded=function(){_v.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||_v.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},h_.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(!l_)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},h_.prototype._prepare_callback=function(e,t){if(_v.isUndefined(e))return null;if(o_){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},h_.prototype._send_request=function(e,t,r,n){var i=!0;if(s_)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||!_v.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=_v.extend(o,r||{}),o_||(r.method="GET");var a="POST"===r.method,c=a_&&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),o_||(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"]),_v.extend(t,this.get_config("api_extra_query_params")),e+="?"+_v.HTTPBuildQuery(t);var l=this;if("img"in t){var h=hv.createElement("img");h.src=e,hv.body.appendChild(h)}else if(c){try{i=a_(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(o_)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"),_v.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=_v.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=hv.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=hv.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},h_.prototype._execute_array=function(e){var t,r=[],n=[],i=[];_v.each(e,function(e){e&&(t=e[0],_v.isArray(t)?i.push(e):"function"===typeof e?e.call(this):_v.isArray(e)&&"alias"===t?r.push(e):_v.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){_v.each(e,function(e){if(_v.isArray(e[0])){var r=t;_v.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)},h_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},h_.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},h_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=_v.bind(function(e){return new Sy(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:_v.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:_v.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:_v.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()},h_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,_v.each(this.request_batchers,function(e){e.start()}))},h_.prototype.stop_batch_senders=function(){this._batch_requests=!1,_v.each(this.request_batchers,function(e){e.stop(),e.clear()})},h_.prototype.push=function(e){this._execute_array([e])},h_.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},h_.prototype._encode_data_for_request=function(e){var t=Wv(e);return this.get_config("api_payload_format")===r_&&(t=_v.base64Encode(t)),{data:t}},h_.prototype._track_or_batch=function(e,t){var r=_v.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||$v;var a=!0,c=_v.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(kv.log("MIXPANEL REQUEST:"),kv.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},h_.prototype.track=iy(function(e,t,r,n){n||"function"!==typeof r||(n=r,r=null),r=r||{};var i=r["transport"];i&&(r.transport=i);var o=r["send_immediately"];if("function"!==typeof n&&(n=$v),_v.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=_v.extend({},t),t["token"]=this.get_config("token");var s=this["persistence"].remove_event_timer(e);if(!_v.isUndefined(s)){var a=(new Date).getTime()-s;t["$duration"]=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?_v.info.marketingParams():{};t=_v.extend({},_v.info.properties({mp_loader:this.get_config("mp_loader")}),c,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");_v.isArray(u)?_v.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t},h=this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n);return h}n(0)}}),h_.prototype.set_group=iy(function(e,t,r){_v.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),h_.prototype.add_group=iy(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)}),h_.prototype.remove_group=iy(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)}),h_.prototype.track_with_groups=iy(function(e,t,r,n){var i=_v.extend({},t||{});return _v.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),h_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},h_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},h_.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 Lb,n._init(this,e,t),this._cached_groups[r]=n),n},h_.prototype.track_pageview=iy(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=_v.extend(_v.info.mpPageViewProperties(),_v.info.campaignParams(),_v.info.clickParams()),i=_v.extend({},n,e);return this.track(r,i)}),h_.prototype.track_links=function(){return this._track_dom.call(this,Cb,arguments)},h_.prototype.track_forms=function(){return this._track_dom.call(this,xb,arguments)},h_.prototype.time_event=function(e){_v.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,(new Date).getTime())};var p_={persistent:!0},f_=function(e){var t;return t=_v.isObject(e)?e:_v.isUndefined(e)?{}:{days:e},_v.extend({},p_,t)};h_.prototype.register=function(e,t){var r=f_(t);r["persistent"]?this["persistence"].register(e,r["days"]):_v.extend(this.unpersisted_superprops,e)},h_.prototype.register_once=function(e,t,r){var n=f_(r);n["persistent"]?this["persistence"].register_once(e,t,n["days"]):("undefined"===typeof t&&(t="None"),_v.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},h_.prototype.unregister=function(e,t){t=f_(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e]},h_.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},h_.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"===typeof e&&0===e.indexOf(i_))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(Vb)&&(this.unregister(Vb),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},h_.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=_v.UUID();this.register_once({distinct_id:i_+e,$device_id:e},""),this._check_and_start_session_recording()},h_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},h_.prototype.alias=function(e,t){if(e===this.get_property(Wb))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return _v.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Vb,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)},h_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},h_.prototype.set_config=function(e){if(_v.isObject(e)){_v.extend(this["config"],e);var t=e["batch_size"];t&&_v.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"]),ev.DEBUG=ev.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},h_.prototype.get_config=function(e){return this["config"][e]},h_.prototype._run_hook=function(e){var t=(this["config"]["hooks"][e]||e_).apply(this,sv.call(arguments,1));return"undefined"===typeof t&&(this.report_error(e+" hook did not return a value"),t=null),t},h_.prototype.get_property=function(e){return this["persistence"].load_prop([e])},h_.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},h_.prototype.toString=function(){var e=this.get_config("name");return e!==t_&&(e=t_+"."+e),e},h_.prototype._event_is_disabled=function(e){return _v.isBlockedUA(fv)||this._flags.disable_all_events||_v.include(this.__disabled_events,e)},h_.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&_v.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")&&!_v.cookie.get("mp_optout")||(_v.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},h_.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()},h_.prototype._gdpr_call_func=function(e,t){return t=_v.extend({track:_v.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),_v.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"]})},h_.prototype.opt_in_tracking=function(e){e=_v.extend({enable_persistence:!0},e),this._gdpr_call_func(ey,e),this._gdpr_update_persistence(e)},h_.prototype.opt_out_tracking=function(e){e=_v.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(ty,e),this._gdpr_update_persistence(e)},h_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ry,e)},h_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(ny,e)},h_.prototype.clear_opt_in_out_tracking=function(e){e=_v.extend({enable_persistence:!0},e),this._gdpr_call_func(ay,e),this._gdpr_update_persistence(e)},h_.prototype.report_error=function(e,t){kv.error.apply(kv.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){kv.error(t)}},h_.prototype["init"]=h_.prototype.init,h_.prototype["reset"]=h_.prototype.reset,h_.prototype["disable"]=h_.prototype.disable,h_.prototype["time_event"]=h_.prototype.time_event,h_.prototype["track"]=h_.prototype.track,h_.prototype["track_links"]=h_.prototype.track_links,h_.prototype["track_forms"]=h_.prototype.track_forms,h_.prototype["track_pageview"]=h_.prototype.track_pageview,h_.prototype["register"]=h_.prototype.register,h_.prototype["register_once"]=h_.prototype.register_once,h_.prototype["unregister"]=h_.prototype.unregister,h_.prototype["identify"]=h_.prototype.identify,h_.prototype["alias"]=h_.prototype.alias,h_.prototype["name_tag"]=h_.prototype.name_tag,h_.prototype["set_config"]=h_.prototype.set_config,h_.prototype["get_config"]=h_.prototype.get_config,h_.prototype["get_api_host"]=h_.prototype.get_api_host,h_.prototype["get_property"]=h_.prototype.get_property,h_.prototype["get_distinct_id"]=h_.prototype.get_distinct_id,h_.prototype["toString"]=h_.prototype.toString,h_.prototype["opt_out_tracking"]=h_.prototype.opt_out_tracking,h_.prototype["opt_in_tracking"]=h_.prototype.opt_in_tracking,h_.prototype["has_opted_out_tracking"]=h_.prototype.has_opted_out_tracking,h_.prototype["has_opted_in_tracking"]=h_.prototype.has_opted_in_tracking,h_.prototype["clear_opt_in_out_tracking"]=h_.prototype.clear_opt_in_out_tracking,h_.prototype["get_group"]=h_.prototype.get_group,h_.prototype["set_group"]=h_.prototype.set_group,h_.prototype["add_group"]=h_.prototype.add_group,h_.prototype["remove_group"]=h_.prototype.remove_group,h_.prototype["track_with_groups"]=h_.prototype.track_with_groups,h_.prototype["start_batch_senders"]=h_.prototype.start_batch_senders,h_.prototype["stop_batch_senders"]=h_.prototype.stop_batch_senders,h_.prototype["start_session_recording"]=h_.prototype.start_session_recording,h_.prototype["stop_session_recording"]=h_.prototype.stop_session_recording,h_.prototype["pause_session_recording"]=h_.prototype.pause_session_recording,h_.prototype["resume_session_recording"]=h_.prototype.resume_session_recording,h_.prototype["get_session_recording_properties"]=h_.prototype.get_session_recording_properties,h_.prototype["get_session_replay_url"]=h_.prototype.get_session_replay_url,h_.prototype["get_tab_id"]=h_.prototype.get_tab_id,h_.prototype["DEFAULT_API_ROUTES"]=c_,h_.prototype["__get_recorder"]=h_.prototype.__get_recorder,Gb.prototype["properties"]=Gb.prototype.properties,Gb.prototype["update_search_keyword"]=Gb.prototype.update_search_keyword,Gb.prototype["update_referrer_info"]=Gb.prototype.update_referrer_info,Gb.prototype["get_cross_subdomain"]=Gb.prototype.get_cross_subdomain,Gb.prototype["clear"]=Gb.prototype.clear;var m_={},g_=function(){_v.each(m_,function(e,t){t!==t_&&(Jb[t]=e)}),Jb["_"]=_v},v_=function(){Jb["init"]=function(e,t,r){if(r)return Jb[r]||(Jb[r]=m_[r]=d_(e,t,r),Jb[r]._loaded()),Jb[r];var n=Jb;m_[t_]?n=m_[t_]:e&&(n=d_(e,t,t_),n._loaded(),m_[t_]=n),Jb=n,Nb===Qb&&(bi[t_]=Jb),g_()}},y_=function(){function e(){e.done||(e.done=!0,l_=!0,s_=!1,_v.each(m_,function(e){e._dom_loaded()}))}function t(){try{hv.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(hv.addEventListener)"complete"===hv.readyState?e():hv.addEventListener("DOMContentLoaded",e,!1);else if(hv.attachEvent){hv.attachEvent("onreadystatechange",e);var r=!1;try{r=null===bi.frameElement}catch(n){}hv.documentElement.doScroll&&r&&t()}_v.register_event(bi,"load",e,!0)};function w_(e){return Kb=e,Nb=Zb,Jb=new h_,v_(),Jb["init"](),y_(),Jb}function b_(e,t){t()}var __=w_(b_);const k_="@mixpanelIdentificationData",S_=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},C_={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(k_,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(k_),hasMixpanelIdentificationData:()=>!!C_.getMixpanelIdentificationData(),init:(e,t)=>{__.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||C_.getMixpanelIdentificationData(),o=S_(i);if("production"===e&&o){C_.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}`),__.identify(r),__.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&__.track(t,r)}};var x_=C_,A_={}}(),__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 Ur=Object.assign,Fr=Object.prototype.hasOwnProperty,zr=(e,t)=>Fr.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=si(e);return t===e?t:(bn(t,"iterate",wn),ii(e)?t:t.map(ai))}function Cn(e){return bn(e=si(e),"iterate",wn),e}const xn={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,ai)},concat(...e){return Sn(this).concat(...e.map(e=>qr(e)?Sn(e):e))},entries(){return An(this,"entries",e=>(e[1]=ai(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(ai),arguments)},find(e,t){return In(this,"find",e,t,ai,arguments)},findIndex(e,t){return In(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return In(this,"findLast",e,t,ai,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 Tn(this,"includes",e)},indexOf(...e){return Tn(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return Tn(this,"lastIndexOf",e)},map(e,t){return In(this,"map",e,t,void 0,arguments)},pop(){return Mn(this,"pop")},push(...e){return Mn(this,"push",e)},reduce(e,...t){return On(this,"reduce",e,t)},reduceRight(e,...t){return On(this,"reduceRight",e,t)},shift(){return Mn(this,"shift")},some(e,t){return In(this,"some",e,t,void 0,arguments)},splice(...e){return Mn(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 Mn(this,"unshift",e)},values(){return An(this,"values",ai)}};function An(e,t,r){const n=Cn(e),i=n[t]();return n===e||ii(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const En=Array.prototype;function In(e,t,r,n,i,o){const s=Cn(e),a=s!==e&&!ii(e),c=s[t];if(c!==En[t]){const t=c.apply(e,o);return a?ai(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,ai(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 On(e,t,r,n){const i=Cn(e);let o=r;return i!==e&&(ii(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,ai(n),i,e)}),i[t](o,...n)}function Tn(e,t,r){const n=si(e);bn(n,"iterate",wn);const i=n[t](...r);return-1!==i&&!1!==i||!oi(r[0])?i:(r[0]=si(r[0]),n[t](...r))}function Mn(e,t,r=[]){hn(),an();const n=si(e)[t].apply(e,r);return cn(),dn(),n}const Pn=jr("__proto__,__v_isRef,__isVue"),Rn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Wr));function Dn(e){Wr(e)||(e=String(e));const t=si(this);return bn(t,"has",e),t.hasOwnProperty(e)}class Ln{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?Kn:Jn:i?Gn:Yn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=qr(e);if(!n){let e;if(o&&(e=xn[t]))return e;if("hasOwnProperty"===t)return Dn}const s=Reflect.get(e,t,ui(e)?e:r);if(Wr(t)?Rn.has(t):Pn(t))return s;if(n||bn(e,"get",t),i)return s;if(ui(s)){const e=o&&Jr(t)?s:s.value;return n&&Vr(e)?ti(e):e}return Vr(s)?n?ti(s):ei(s):s}}class Bn extends Ln{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];if(!this._isShallow){const t=ni(i);if(ii(r)||ni(r)||(i=si(i),r=si(r)),!qr(e)&&ui(i)&&!ui(r))return t||(i.value=r),!0}const o=qr(e)&&Jr(t)?Number(t)<e.length:zr(e,t),s=Reflect.set(e,t,r,ui(e)?e:n);return e===si(n)&&(o?tn(r,i)&&_n(e,"set",t,r,i):_n(e,"add",t,r)),s}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)&&Rn.has(t)||bn(e,"has",t),r}ownKeys(e){return bn(e,"iterate",qr(e)?"length":vn),Reflect.ownKeys(e)}}class Nn extends Ln{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const jn=new Bn,Un=new Nn,Fn=e=>e,zn=e=>Reflect.getPrototypeOf(e);function qn(e,t,r){return function(...n){const i=this["__v_raw"],o=si(i),s=Hr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?Fn:t?ci:ai;return!t&&bn(o,"iterate",c?yn:vn),{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}},[Symbol.iterator](){return this}}}}function Hn(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function $n(e,t){const r={get(r){const n=this["__v_raw"],i=si(n),o=si(r);e||(tn(r,o)&&bn(i,"get",r),bn(i,"get",o));const{has:s}=zn(i),a=t?Fn:e?ci:ai;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(si(t),"iterate",vn),t.size},has(t){const r=this["__v_raw"],n=si(r),i=si(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=si(o),a=t?Fn:e?ci:ai;return!e&&bn(s,"iterate",vn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};Ur(r,e?{add:Hn("add"),set:Hn("set"),delete:Hn("delete"),clear:Hn("clear")}:{add(e){t||ii(e)||ni(e)||(e=si(e));const r=si(this),n=zn(r),i=n.has.call(r,e);return i||(r.add(e),_n(r,"add",e,e)),this},set(e,r){t||ii(r)||ni(r)||(r=si(r));const n=si(this),{has:i,get:o}=zn(n);let s=i.call(n,e);s||(e=si(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=si(this),{has:r,get:n}=zn(t);let i=r.call(t,e);i||(e=si(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=si(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]=qn(n,e,t)}),r}function Wn(e,t){const r=$n(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 Vn={get:Wn(!1,!1)},Xn={get:Wn(!0,!1)};const Yn=new WeakMap,Gn=new WeakMap,Jn=new WeakMap,Kn=new WeakMap;function Zn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qn(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Zn(Gr(e))}function ei(e){return ni(e)?e:ri(e,!1,jn,Vn,Yn)}function ti(e){return ri(e,!0,Un,Xn,Jn)}function ri(e,t,r,n,i){if(!Vr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=Qn(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 ni(e){return!(!e||!e["__v_isReadonly"])}function ii(e){return!(!e||!e["__v_isShallow"])}function oi(e){return!!e&&!!e["__v_raw"]}function si(e){const t=e&&e["__v_raw"];return t?si(t):e}const ai=e=>Vr(e)?ei(e):e,ci=e=>Vr(e)?ti(e):e;function ui(e){return!!e&&!0===e["__v_isRef"]}function li(e){const t=qr(e)?new Array(e.length):{};for(const r in e)t[r]=di(e,r);return t}class hi{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return kn(si(this._object),this._key)}}function di(e,t,r){const n=e[t];return ui(n)?n:new hi(e,t,r)}function pi(e,t,r){const n=ei({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 fi(e,t,r){const n=ei({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{...li(n),execute:i}}const mi=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(mi(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class gi{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 vi=new gi("shr-event-bus");var yi=__webpack_require__(2242),wi=__webpack_require__.n(yi);class bi{pusher;setupPusherConnection(e,t){this.pusher=new(wi())(e,t)}}var _i,ki=new bi;if("undefined"===typeof window){var Si={hostname:""};_i={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Si,referrer:""},screen:{width:0,height:0},location:Si,addEventListener:function(){},removeEventListener:function(){}}}else _i=window;function Ci(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 xi(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 Ai(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){xi(o,n,i,s,a,"next",e)}function a(e){xi(o,n,i,s,a,"throw",e)}s(void 0)})}}function Ei(e,t,r){return Ei=Fi()?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&&Bi(o,r.prototype),o},Ei.apply(null,arguments)}function Ii(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 Oi(e,t,r){return t&&Ii(e.prototype,t),e}function Ti(){return Ti=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},Ti.apply(this,arguments)}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}function Pi(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&&Bi(e,t)}function Ri(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Di(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Li(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 Bi(e,t){return Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bi(e,t)}function Ni(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ji(e,t){if(e){if("string"===typeof e)return Ci(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)?Ci(e,t):void 0}}function Ui(e){var t="function"===typeof Map?new Map:void 0;return Ui=function(e){if(null===e||!Di(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 Ei(e,arguments,Mi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Bi(r,e)},Ui(e)}function Fi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(kv){}return(Fi=function(){return!!e})()}function zi(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=ji(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 qi(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 Hi(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 $i,Wi=Object.defineProperty,Vi=function(e,t,r){return t in e?Wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Xi=function(e,t,r){return Vi(e,"symbol"!==("undefined"===typeof t?"undefined":Ni(t))?t+"":t,r)},Yi=Object.defineProperty,Gi=function(e,t,r){return t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ji=function(e,t,r){return Gi(e,"symbol"!==("undefined"===typeof t?"undefined":Ni(t))?t+"":t,r)},Ki=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}(Ki||{}),Zi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},eo={},to=function(){return!!globalThis.Zone};function ro(e){if(eo[e])return eo[e];var t=globalThis[e],r=t.prototype,n=e in Zi?Zi[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 Qi?Qi[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&&!to())return eo[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?eo[e]=u:r}catch(l){return r}}var no={};function io(e,t,r){var n,i=e+"."+String(r);if(no[i])return no[i].call(t);var o=ro(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(no[i]=s,s.call(t)):t[r]}var oo={};function so(e,t,r){var n=e+"."+String(r);if(oo[n])return oo[n].bind(t);var i=ro(e),o=i[r];return"function"!==typeof o?t[r]:(oo[n]=o,o.bind(t))}function ao(e){return io("Node",e,"childNodes")}function co(e){return io("Node",e,"parentNode")}function uo(e){return io("Node",e,"parentElement")}function lo(e){return io("Node",e,"textContent")}function ho(e,t){return so("Node",e,"contains")(t)}function po(e){return so("Node",e,"getRootNode")()}function fo(e){return e&&"host"in e?io("ShadowRoot",e,"host"):null}function mo(e){return e.styleSheets}function go(e){return e&&"shadowRoot"in e?io("Element",e,"shadowRoot"):null}function vo(e,t){return io("Element",e,"querySelector")(t)}function yo(e,t){return io("Element",e,"querySelectorAll")(t)}function wo(){return ro("MutationObserver").constructor}function bo(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 _o={childNodes:ao,parentNode:co,parentElement:uo,textContent:lo,contains:ho,getRootNode:po,host:fo,styleSheets:mo,shadowRoot:go,querySelector:vo,querySelectorAll:yo,mutationObserver:wo,patch:bo};function ko(e){return e.nodeType===e.ELEMENT_NODE}function So(e){var t=e&&"host"in e&&"mode"in e&&_o.host(e)||null;return Boolean(t&&"shadowRoot"in t&&_o.shadowRoot(t)===e)}function Co(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function xo(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 Ao(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 Eo(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 Io(e,r)}).join("");return xo(n)}catch(i){return null}}function Io(e,t){if(To(e)){var r;try{r=Eo(e.styleSheet)||Ao(e)}catch(i){r=e.cssText}return e.styleSheet.href?Wo(r,e.styleSheet.href):r}var n=e.cssText;return Mo(e)&&e.selectorText.includes(":")&&(n=Oo(n)),t?Wo(n,t):n}function Oo(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function To(e){return"styleSheet"in e}function Mo(e){return"selectorText"in e}var Po=function(){function e(){Ji(this,"idNodeMap",new Map),Ji(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){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},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 Ro(){return new Po}function Do(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Lo(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Lo(e){return e.toLowerCase()}var Bo="__rrweb_original__";function No(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=Bo in o?o[Bo]: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 jo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Lo(t):null}function Uo(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 Fo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var zo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,qo=/^(?:[a-z+]+:)?\/\//i,Ho=/^www\..*/i,$o=/^(data:)([^,]*),(.*)/i;function Wo(e,t){return(e||"").replace(zo,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(qo.test(a)||Ho.test(a))return"url("+c+a+c+")";if($o.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Fo(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=zi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function Vo(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Xo(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=Vo(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=Vo(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=Vo(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=Vo(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 Yo(e,t){return Xo(e,t).join("/* rr_split */")}var Go,Jo,Ko=1,Zo=new RegExp("[^a-z0-9-_:]"),Qo=-2;function es(){return Ko++}function ts(e){if(Ri(e,HTMLFormElement))return"form";var t=Lo(e.tagName);return Zo.test(t)?"div":t}var rs=/^[^ \t\n\r\u000c]+/,ns=/^[, \t\n\r\u000c]+/;function is(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(ns),r>=t.length)break;var o=n(rs);if(","===o.slice(-1))o=ss(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ss(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 os=new WeakMap;function ss(e,t){return t&&""!==t.trim()?cs(e,t):t}function as(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function cs(e,t){var r=os.get(e);if(r||(r=e.createElement("a"),os.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function us(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ss(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?is(e,n):"style"===r?Wo(n,cs(e)):"object"===t&&"data"===r?ss(e,n):n:ss(e,n):n}function ls(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function hs(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 ds(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ds(_o.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ds(_o.parentNode(e),t,r)}function ps(e,t,r,n){var i;if(ko(e)){if(i=e,!_o.childNodes(i).length)return!1}else{if(null===_o.parentElement(e))return!1;i=_o.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(ds(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 fs(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 ms(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 gs(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,_=vs(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ki.Document,childNodes:[],compatMode:e.compatMode}:{type:Ki.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ki.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return ws(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 ys(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Ki.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:Ki.Comment,textContent:_o.textContent(e)||"",rootId:_};default:return!1}}function vs(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function ys(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=_o.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=_o.textContent(e),u&&c&&(c=Wo(c,cs(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,_o.parentElement(e)):c.replace(/[\S]/g,"*")),{type:Ki.Text,textContent:c||"",rootId:i}}function ws(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=hs(e,i,o),w=ts(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];ls(w,S.name,S.value)||(b[S.name]=us(n,w,Lo(S.name),S.value))}if("link"===w&&s){var C=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;C&&(x=Eo(C)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===w&&e.sheet){var A=Eo(e.sheet);A&&(e.childNodes.length>1&&(A=Yo(A,e)),b._cssText=A)}if("input"===w||"textarea"===w||"select"===w){var E=e.value,I=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=Do({element:e,type:jo(e),tagName:w,value:E,maskInputOptions:c,maskInputFn:u}):I&&(b.checked=I)}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)No(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var O=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);O!==M&&(b.rr_dataURL=O)}if("img"===w&&d){Go||(Go=n.createElement("canvas"),Jo=Go.getContext("2d"));var P=e,R=P.currentSrc||P.getAttribute("src")||"<unknown-src>",D=P.crossOrigin,L=function(){P.removeEventListener("load",L);try{Go.width=P.naturalWidth,Go.height=P.naturalHeight,Jo.drawImage(P,0,0),b.rr_dataURL=Go.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==P.crossOrigin)return P.crossOrigin="anonymous",void(P.complete&&0!==P.naturalWidth?L():P.addEventListener("load",L));console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===P.crossOrigin&&(D?b.crossOrigin=D:P.removeAttribute("crossorigin"))};P.complete&&0!==P.naturalWidth?L():P.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,U=N.height;b={class:b.class,rr_width:j+"px",rr_height:U+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(F){}return{type:Ki.Element,tagName:w,attributes:b,childNodes:[],isSVG:as(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function bs(e){return void 0===e||null===e?"":e.toLowerCase()}function _s(e,t){if(t.comment&&e.type===Ki.Comment)return!0;if(e.type===Ki.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"===Uo(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(bs(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===bs(e.attributes.name)||"icon"===bs(e.attributes.rel)||"apple-touch-icon"===bs(e.attributes.rel)||"shortcut icon"===bs(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&bs(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(bs(e.attributes.property).match(/^(og|twitter|fb):/)||bs(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===bs(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===bs(e.attributes.name)||"googlebot"===bs(e.attributes.name)||"bingbot"===bs(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===bs(e.attributes.name)||"generator"===bs(e.attributes.name)||"framework"===bs(e.attributes.name)||"publisher"===bs(e.attributes.name)||"progid"===bs(e.attributes.name)||bs(e.attributes.property).match(/^article:/)||bs(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===bs(e.attributes.name)||"yandex-verification"===bs(e.attributes.name)||"csrf-token"===bs(e.attributes.name)||"p:domain_verify"===bs(e.attributes.name)||"verify-v1"===bs(e.attributes.name)||"verification"===bs(e.attributes.name)||"shopify-checkout-api-token"===bs(e.attributes.name)))return!0}}return!1}function ks(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,C=t.onIframeLoad,x=t.iframeLoadTimeout,A=void 0===x?5e3:x,E=t.onStylesheetLoad,I=t.stylesheetLoadTimeout,O=void 0===I?5e3:I,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,P=t.newlyAddedElement,R=void 0!==P&&P,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var U=void 0===B;B=ps(e,s,a,U)}var F,z=gs(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:R,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;F=n.hasNode(e)?n.getId(e):_s(z,g)||!j&&z.type===Ki.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?Qo:es();var q=Object.assign(z,{id:F});if(n.add(e,q),F===Qo)return null;S&&S(e);var H=!u;if(q.type===Ki.Element){H=H&&!q.needBlock,delete q.needBlock;var $=_o.shadowRoot(e);$&&Co($)&&(q.isShadowHost=!0)}if((q.type===Ki.Document||q.type===Ki.Element)&&H){g.headWhitespace&&q.type===Ki.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:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:O,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===Ki.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===Ki.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,X=zi(Array.from(_o.childNodes(e)));!(V=X()).done;){var Y=V.value,G=ks(Y,W);G&&q.childNodes.push(G)}}var J=null;if(ko(e)&&(J=_o.shadowRoot(e)))for(var K,Z=zi(Array.from(_o.childNodes(J)));!(K=Z()).done;){var Q=K.value,ee=ks(Q,W);ee&&(Co(J)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=_o.parentNode(e);return te&&So(te)&&Co(te)&&(q.isShadow=!0),q.type===Ki.Element&&"iframe"===q.tagName&&fs(e,function(){var t=e.contentDocument;if(t&&C){var r=ks(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:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:O,keepIframeSrcFn:M});r&&C(e,r)}},A),q.type===Ki.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Uo(q.attributes.href))&&ms(e,function(){if(E){var t=ks(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:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:O,keepIframeSrcFn:M});t&&E(e,t)}},O),q}function Ss(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Po: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,C=void 0!==S&&S,x=r.dataURLOptions,A=r.preserveWhiteSpace,E=r.onSerialize,I=r.onIframeLoad,O=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,P=r.keepIframeSrcFn,R=void 0===P?function(){return!1}:P,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===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C;return ks(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:x,inlineImages:g,recordCanvas:y,preserveWhiteSpace:A,onSerialize:E,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:R,newlyAddedElement:!1})}function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function xs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Ri(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 As={exports:{}},Es=String,Is=function(){return{isColorSupported:!1,reset:Es,bold:Es,dim:Es,italic:Es,underline:Es,inverse:Es,hidden:Es,strikethrough:Es,black:Es,red:Es,green:Es,yellow:Es,blue:Es,magenta:Es,cyan:Es,white:Es,gray:Es,bgBlack:Es,bgRed:Es,bgGreen:Es,bgYellow:Es,bgBlue:Es,bgMagenta:Es,bgCyan:Es,bgWhite:Es}};As.exports=Is(),As.exports.createColors=Is;var Os=As.exports,Ts={},Ms=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),Ps=xs(Ms),Rs=Os,Ds=Ps,Ls=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}Pi(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=Rs.isColorSupported),Ds&&e&&(r=Ds(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=Rs.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}(Ui(Error)),Bs=Ls;Ls.default=Ls;var Ns={};Ns.isClean=Symbol("isClean"),Ns.my=Symbol("my");var js={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Us(e){return e[0].toUpperCase()+e.slice(1)}var Fs=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 js[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"+Us(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=js[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}(),zs=Fs;Fs.default=Fs;var qs=zs;function Hs(e,t){var r=new qs(t);r.stringify(e)}var $s=Hs;Hs.default=Hs;var Ws=Ns.isClean,Vs=Ns.my,Xs=Bs,Ys=zs,Gs=$s;function Js(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":Ni(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Js(e,r)}):("object"===o&&null!==i&&(i=Js(i)),r[n]=i)}return r}var Ks=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ws]=!1,this[Vs]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=zi(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=Js(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 Xs(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[Ws]){this[Ws]=!1;var e=this;while(e=e.parent)e[Ws]=!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 Ys;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=zi(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":Ni(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Ni(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=Gs),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)},Oi(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Zs=Ks;Ks.default=Ks;var Qs=Zs,ea=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Ti({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Pi(t,e),Oi(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Qs),ta=ea;ea.default=ea;var ra="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",na=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=ra[64*Math.random()|0];return t},ia={nanoid:na},oa=Ps.SourceMapConsumer,sa=Ps.SourceMapGenerator,aa=Ps.existsSync,ca=Ps.readFileSync,ua=Ps.dirname,la=Ps.join;function ha(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var da=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=ua(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new oa(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 ha(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":Ni(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=ua(e),aa(e))return this.mapFile=e,ca(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(Ri(t,oa))return sa.fromSourceMap(t).toString();if(Ri(t,sa))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=la(ua(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}(),pa=da;da.default=da;var fa=Ps.SourceMapConsumer,ma=Ps.SourceMapGenerator,ga=Ps.fileURLToPath,va=Ps.pathToFileURL,ya=Ps.isAbsolute,wa=Ps.resolve,ba=ia.nanoid,_a=Ps,ka=Bs,Sa=pa,Ca=Symbol("fromOffsetCache"),xa=Boolean(fa&&ma),Aa=Boolean(wa&&ya),Ea=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Ni(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&&(!Aa||/^\w+:\/\//.test(t.from)||ya(t.from)?this.file=t.from:this.file=wa(t.from)),Aa&&xa){var r=new Sa(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 "+ba(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":Ni(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 ka(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 ka(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&&(va&&(i.input.url=va(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Ca])r=this[Ca];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[Ca]=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:wa(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=ya(a.source)?va(a.source):new URL(a.source,this.map.consumer().sourceRoot||va(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(!ga)throw new Error("file: protocol is not available in this PostCSS build");c.file=ga(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=Ti({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Oi(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ia=Ea;Ea.default=Ea,_a&&_a.registerInput&&_a.registerInput(Ea);var Oa=Ps.SourceMapConsumer,Ta=Ps.SourceMapGenerator,Ma=Ps.dirname,Pa=Ps.relative,Ra=Ps.resolve,Da=Ps.sep,La=Ps.pathToFileURL,Ba=Ia,Na=Boolean(Oa&&Ta),ja=Boolean(Ma&&Ra&&Pa&&Da),Ua=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=zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ma(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Oa(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(),ja&&Na&&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=Ta.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ta({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 Ta({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?Ma(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Ma(Ra(r,this.mapOpts.annotation)));var n=Pa(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 Ba(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(La){var r=La(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;"\\"===Da&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Fa=Ua,za=Zs,qa=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Pi(t,e),t}(za),Ha=qa;qa.default=qa;var $a,Wa,Va,Xa,Ya=Ns.isClean,Ga=Ns.my,Ja=ta,Ka=Ha,Za=Zs;function Qa(e){return e.map(function(e){return e.nodes&&(e.nodes=Qa(e.nodes)),delete e.source,e})}function ec(e){if(e[Ya]=!1,e.proxyOf.nodes)for(var t,r=zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;ec(n)}}var tc=function(e){function t(){return e.apply(this,arguments)||this}Pi(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=zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=zi(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=zi(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=zi(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=zi(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=Qa($a(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=zi(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=zi(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 Ja(e)]}else if(e.selector)e=[new Wa(e)];else if(e.name)e=[new Va(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ka(e)]}var l=e.map(function(e){return e[Ga]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Ya]&&ec(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=zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=zi(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=zi(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?Ri(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?Ri(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?Ri(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)}))},Oi(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}(Za);tc.registerParse=function(e){$a=e},tc.registerRule=function(e){Wa=e},tc.registerAtRule=function(e){Va=e},tc.registerRoot=function(e){Xa=e};var rc=tc;tc.default=tc,tc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Va.prototype):"rule"===e.type?Object.setPrototypeOf(e,Wa.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ja.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ka.prototype):"root"===e.type&&Object.setPrototypeOf(e,Xa.prototype),e[Ga]=!0,e.nodes&&e.nodes.forEach(function(e){tc.rebuild(e)})};var nc,ic,oc=rc,sc=function(e){function t(t){var r;return r=e.call(this,Ti({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Pi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new nc(new ic,this,e);return t.stringify()},t}(oc);sc.registerLazyResult=function(e){nc=e},sc.registerProcessor=function(e){ic=e};var ac=sc;sc.default=sc;var cc=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}(),uc=cc;cc.default=cc;var lc=uc,hc=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 lc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Oi(e,[{key:"content",get:function(){return this.css}}]),e}(),dc=hc;hc.default=hc;var pc="'".charCodeAt(0),fc='"'.charCodeAt(0),mc="\\".charCodeAt(0),gc="/".charCodeAt(0),vc="\n".charCodeAt(0),yc=" ".charCodeAt(0),wc="\f".charCodeAt(0),bc="\t".charCodeAt(0),_c="\r".charCodeAt(0),kc="[".charCodeAt(0),Sc="]".charCodeAt(0),Cc="(".charCodeAt(0),xc=")".charCodeAt(0),Ac="{".charCodeAt(0),Ec="}".charCodeAt(0),Ic=";".charCodeAt(0),Oc="*".charCodeAt(0),Tc=":".charCodeAt(0),Mc="@".charCodeAt(0),Pc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Rc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dc=/.[\r\n"'(/\\]/,Lc=/[\da-f]/i,Bc=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 vc:case yc:case bc:case _c:case wc:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===yc||r===vc||r===bc||r===_c||r===wc);h=["space",d.slice(m,n)],m=n-1;break;case kc:case Sc:case Ac:case Ec:case Tc:case Ic:case xc:var y=String.fromCharCode(r);h=[y,y,m];break;case Cc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==pc&&l!==fc&&l!==yc&&l!==vc&&l!==bc&&l!==wc&&l!==_c){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)===mc)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||Dc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case pc:case fc:i=r===pc?"'":'"',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)===mc)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Mc:Pc.lastIndex=m+1,Pc.test(d),n=0===Pc.lastIndex?d.length-1:Pc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case mc:n=m,s=!0;while(d.charCodeAt(n+1)===mc)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==gc&&r!==yc&&r!==vc&&r!==bc&&r!==_c&&r!==wc&&(n+=1,Lc.test(d.charAt(n)))){while(Lc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===yc&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===gc&&d.charCodeAt(m+1)===Oc?(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):(Rc.lastIndex=m+1,Rc.test(d),n=0===Rc.lastIndex?d.length-1:Rc.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}},Nc=rc,jc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Pi(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}(Nc),Uc=jc;jc.default=jc,Nc.registerAtRule(jc);var Fc,zc,qc=rc,Hc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Pi(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=zi(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 Fc(new zc,this,e);return t.stringify()},t}(qc);Hc.registerLazyResult=function(e){Fc=e},Hc.registerProcessor=function(e){zc=e};var $c=Hc;Hc.default=Hc,qc.registerRoot(Hc);var Wc={comma:function(e){return Wc.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Wc.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=zi(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}},Vc=Wc;Wc.default=Wc;var Xc=rc,Yc=Vc,Gc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Pi(t,e),Oi(t,[{key:"selectors",get:function(){return Yc.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}(Xc),Jc=Gc;Gc.default=Gc,Xc.registerRule(Gc);var Kc=ta,Zc=Bc,Qc=Ha,eu=Uc,tu=$c,ru=Jc,nu={empty:!0,space:!0};function iu(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var ou=function(){function e(e){this.input=e,this.root=new tu,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 eu;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=zi(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 Qc;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=Zc(this.input)},t.decl=function(e,t){var r=new Kc;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]||iu(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 ru;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",nu[a]||nu[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 ru;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}(),su=ou,au=rc,cu=su,uu=Ia;function lu(e,t){var r=new uu(e,t),n=new cu(r);try{n.parse()}catch(i){throw i}return n.root}var hu=lu;lu.default=lu,au.registerParse(lu);var du=Ns.isClean,pu=Ns.my,fu=Fa,mu=$s,gu=rc,vu=ac,yu=dc,wu=hu,bu=$c,_u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ku={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},Su={Once:!0,postcssPlugin:!0,prepare:!0},Cu=0;function xu(e){return"object"===("undefined"===typeof e?"undefined":Ni(e))&&"function"===typeof e.then}function Au(e){var t=!1,r=_u[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Cu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Cu,r+"Exit"]:[r,r+"Exit"]}function Eu(e){var t;return t="document"===e.type?["Document",Cu,"DocumentExit"]:"root"===e.type?["Root",Cu,"RootExit"]:Au(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Iu(e){return e[du]=!1,e.nodes&&e.nodes.forEach(function(e){return Iu(e)}),e}var Ou={},Tu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Ni(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Ri(r,e)||Ri(r,yu))i=Iu(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=wu;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[pu]&&gu.rebuild(i)}else i=Iu(r);this.result=new yu(t,i,n),this.helpers=Ti({},Ou,{postcss:Ou,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ni(e))&&e.prepare?Ti({},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=zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Ni(i)))for(var o in i){if(!ku[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Su[o])if("object"===Ni(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 Ai(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return qi(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),!xu(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[du])return[3,14];o[du]=!0,s=[Eu(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!xu(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 qi(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=zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Hi(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":Ni(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 xu(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=mu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new fu(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=zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(xu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[du])i[du]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=zi(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=zi(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(xu(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[du])return a[du]=!0,void e.push(Eu(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===Cu)return void(r.nodes&&r.nodes.length&&(r[du]=!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[du]=!0;for(var r,n=Au(e),i=zi(n);!(r=i()).done;){var o=r.value;if(o===Cu)e.nodes&&e.each(function(e){e[du]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Oi(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}();Tu.registerPostcss=function(e){Ou=e};var Mu=Tu;Tu.default=Tu,bu.registerLazyResult(Tu),vu.registerLazyResult(Tu);var Pu=Fa,Ru=$s,Du=hu,Lu=dc,Bu=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=Ru;this.result=new Lu(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 Pu(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[]},Oi(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=Du;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}(),Nu=Bu;Bu.default=Bu;var ju=Nu,Uu=Mu,Fu=ac,zu=$c,qu=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=zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Ni(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Ni(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Ni(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 Uu(this,e,t):new ju(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Hu=qu;qu.default=qu,zu.registerProcessor(qu),Fu.registerProcessor(qu);var $u=ta,Wu=pa,Vu=Ha,Xu=Uc,Yu=Ia,Gu=$c,Ju=Jc;function Ku(e,t){if(Array.isArray(e))return e.map(function(e){return Ku(e)});var r=e.inputs,n=Li(e,["inputs"]);if(r){t=[];for(var i,o=zi(r);!(i=o()).done;){var s=i.value,a=Ti({},s,{__proto__:Yu.prototype});a.map&&(a.map=Ti({},a.map,{__proto__:Wu.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Ku(e,t)})),n.source){var c=n.source,u=c.inputId,l=Li(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Gu(n);if("decl"===n.type)return new $u(n);if("rule"===n.type)return new Ju(n);if("comment"===n.type)return new Vu(n);if("atrule"===n.type)return new Xu(n);throw new Error("Unknown node type: "+e.type)}var Zu=Ku;Ku.default=Ku;var Qu=Bs,el=ta,tl=Mu,rl=rc,nl=Hu,il=$s,ol=Zu,sl=ac,al=uc,cl=Ha,ul=Uc,ll=dc,hl=Ia,dl=hu,pl=Vc,fl=Jc,ml=$c,gl=Zs;function vl(){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 nl(t)}vl.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 nl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return vl([i(r)]).process(e,t)},i},vl.stringify=il,vl.parse=dl,vl.fromJSON=ol,vl.list=pl,vl.comment=function(e){return new cl(e)},vl.atRule=function(e){return new ul(e)},vl.decl=function(e){return new el(e)},vl.rule=function(e){return new fl(e)},vl.root=function(e){return new ml(e)},vl.document=function(e){return new sl(e)},vl.CssSyntaxError=Qu,vl.Declaration=el,vl.Container=rl,vl.Processor=nl,vl.Document=sl,vl.Comment=cl,vl.Warning=al,vl.AtRule=ul,vl.Result=ll,vl.Input=hl,vl.Rule=fl,vl.Root=ml,vl.Node=gl,tl.registerPostcss(vl);var yl=vl;vl.default=vl;var wl=Cs(yl);wl.stringify,wl.fromJSON,wl.plugin,wl.parse,wl.list,wl.document,wl.comment,wl.atRule,wl.rule,wl.decl,wl.root,wl.CssSyntaxError,wl.Declaration,wl.Container,wl.Processor,wl.Document,wl.Comment,wl.Warning,wl.AtRule,wl.Result,wl.Input,wl.Rule,wl.Root,wl.Node;var bl=Object.defineProperty,_l=function(e,t,r){return t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},kl=function(e,t,r){return _l(e,"symbol"!==("undefined"===typeof t?"undefined":Ni(t))?t+"":t,r)};function Sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Cl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Ri(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 xl={exports:{}},Al=String,El=function(){return{isColorSupported:!1,reset:Al,bold:Al,dim:Al,italic:Al,underline:Al,inverse:Al,hidden:Al,strikethrough:Al,black:Al,red:Al,green:Al,yellow:Al,blue:Al,magenta:Al,cyan:Al,white:Al,gray:Al,bgBlack:Al,bgRed:Al,bgGreen:Al,bgYellow:Al,bgBlue:Al,bgMagenta:Al,bgCyan:Al,bgWhite:Al}};xl.exports=El(),xl.exports.createColors=El;var Il=xl.exports,Ol={},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Ml=Cl(Tl),Pl=Il,Rl=Ml,Dl=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}Pi(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=Pl.isColorSupported),Rl&&e&&(r=Rl(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=Pl.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}(Ui(Error)),Ll=Dl;Dl.default=Dl;var Bl={};Bl.isClean=Symbol("isClean"),Bl.my=Symbol("my");var Nl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function jl(e){return e[0].toUpperCase()+e.slice(1)}var Ul=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 Nl[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"+jl(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=Nl[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}(),Fl=Ul;Ul.default=Ul;var zl=Fl;function ql(e,t){var r=new zl(t);r.stringify(e)}var Hl=ql;ql.default=ql;var $l=Bl.isClean,Wl=Bl.my,Vl=Ll,Xl=Fl,Yl=Hl;function Gl(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":Ni(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Gl(e,r)}):("object"===o&&null!==i&&(i=Gl(i)),r[n]=i)}return r}var Jl=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[$l]=!1,this[Wl]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=zi(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=Gl(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 Vl(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[$l]){this[$l]=!1;var e=this;while(e=e.parent)e[$l]=!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 Xl;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=zi(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":Ni(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Ni(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=Yl),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)},Oi(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Kl=Jl;Jl.default=Jl;var Zl=Kl,Ql=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=Ti({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Pi(t,e),Oi(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Zl),eh=Ql;Ql.default=Ql;var th="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rh=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=th[64*Math.random()|0];return t},nh={nanoid:rh},ih=Ml.SourceMapConsumer,oh=Ml.SourceMapGenerator,sh=Ml.existsSync,ah=Ml.readFileSync,ch=Ml.dirname,uh=Ml.join;function lh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var hh=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=ch(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ih(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 lh(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":Ni(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=ch(e),sh(e))return this.mapFile=e,ah(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(Ri(t,ih))return oh.fromSourceMap(t).toString();if(Ri(t,oh))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=uh(ch(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}(),dh=hh;hh.default=hh;var ph=Ml.SourceMapConsumer,fh=Ml.SourceMapGenerator,mh=Ml.fileURLToPath,gh=Ml.pathToFileURL,vh=Ml.isAbsolute,yh=Ml.resolve,wh=nh.nanoid,bh=Ml,_h=Ll,kh=dh,Sh=Symbol("fromOffsetCache"),Ch=Boolean(ph&&fh),xh=Boolean(yh&&vh),Ah=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Ni(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&&(!xh||/^\w+:\/\//.test(t.from)||vh(t.from)?this.file=t.from:this.file=yh(t.from)),xh&&Ch){var r=new kh(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 "+wh(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":Ni(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 _h(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 _h(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&&(gh&&(i.input.url=gh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Sh])r=this[Sh];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[Sh]=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:yh(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=vh(a.source)?gh(a.source):new URL(a.source,this.map.consumer().sourceRoot||gh(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(!mh)throw new Error("file: protocol is not available in this PostCSS build");c.file=mh(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=Ti({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Oi(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Eh=Ah;Ah.default=Ah,bh&&bh.registerInput&&bh.registerInput(Ah);var Ih=Ml.SourceMapConsumer,Oh=Ml.SourceMapGenerator,Th=Ml.dirname,Mh=Ml.relative,Ph=Ml.resolve,Rh=Ml.sep,Dh=Ml.pathToFileURL,Lh=Eh,Bh=Boolean(Ih&&Oh),Nh=Boolean(Th&&Ph&&Mh&&Rh),jh=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=zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Th(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ih(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(),Nh&&Bh&&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=Oh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Oh({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 Oh({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?Th(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Th(Ph(r,this.mapOpts.annotation)));var n=Mh(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 Lh(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(Dh){var r=Dh(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;"\\"===Rh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Uh=jh,Fh=Kl,zh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Pi(t,e),t}(Fh),qh=zh;zh.default=zh;var Hh,$h,Wh,Vh,Xh=Bl.isClean,Yh=Bl.my,Gh=eh,Jh=qh,Kh=Kl;function Zh(e){return e.map(function(e){return e.nodes&&(e.nodes=Zh(e.nodes)),delete e.source,e})}function Qh(e){if(e[Xh]=!1,e.proxyOf.nodes)for(var t,r=zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Qh(n)}}var ed=function(e){function t(){return e.apply(this,arguments)||this}Pi(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=zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=zi(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=zi(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=zi(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=zi(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=Zh(Hh(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=zi(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=zi(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 Gh(e)]}else if(e.selector)e=[new $h(e)];else if(e.name)e=[new Wh(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Jh(e)]}var l=e.map(function(e){return e[Yh]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Xh]&&Qh(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=zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=zi(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=zi(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?Ri(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?Ri(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?Ri(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)}))},Oi(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}(Kh);ed.registerParse=function(e){Hh=e},ed.registerRule=function(e){$h=e},ed.registerAtRule=function(e){Wh=e},ed.registerRoot=function(e){Vh=e};var td=ed;ed.default=ed,ed.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Wh.prototype):"rule"===e.type?Object.setPrototypeOf(e,$h.prototype):"decl"===e.type?Object.setPrototypeOf(e,Gh.prototype):"comment"===e.type?Object.setPrototypeOf(e,Jh.prototype):"root"===e.type&&Object.setPrototypeOf(e,Vh.prototype),e[Yh]=!0,e.nodes&&e.nodes.forEach(function(e){ed.rebuild(e)})};var rd,nd,id=td,od=function(e){function t(t){var r;return r=e.call(this,Ti({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Pi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new rd(new nd,this,e);return t.stringify()},t}(id);od.registerLazyResult=function(e){rd=e},od.registerProcessor=function(e){nd=e};var sd=od;od.default=od;var ad=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}(),cd=ad;ad.default=ad;var ud=cd,ld=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 ud(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Oi(e,[{key:"content",get:function(){return this.css}}]),e}(),hd=ld;ld.default=ld;var dd="'".charCodeAt(0),pd='"'.charCodeAt(0),fd="\\".charCodeAt(0),md="/".charCodeAt(0),gd="\n".charCodeAt(0),vd=" ".charCodeAt(0),yd="\f".charCodeAt(0),wd="\t".charCodeAt(0),bd="\r".charCodeAt(0),_d="[".charCodeAt(0),kd="]".charCodeAt(0),Sd="(".charCodeAt(0),Cd=")".charCodeAt(0),xd="{".charCodeAt(0),Ad="}".charCodeAt(0),Ed=";".charCodeAt(0),Id="*".charCodeAt(0),Od=":".charCodeAt(0),Td="@".charCodeAt(0),Md=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Rd=/.[\r\n"'(/\\]/,Dd=/[\da-f]/i,Ld=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 gd:case vd:case wd:case bd:case yd:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===vd||r===gd||r===wd||r===bd||r===yd);h=["space",d.slice(m,n)],m=n-1;break;case _d:case kd:case xd:case Ad:case Od:case Ed:case Cd:var y=String.fromCharCode(r);h=[y,y,m];break;case Sd:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==dd&&l!==pd&&l!==vd&&l!==gd&&l!==wd&&l!==yd&&l!==bd){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)===fd)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||Rd.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case dd:case pd:i=r===dd?"'":'"',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)===fd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Td:Md.lastIndex=m+1,Md.test(d),n=0===Md.lastIndex?d.length-1:Md.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case fd:n=m,s=!0;while(d.charCodeAt(n+1)===fd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==md&&r!==vd&&r!==gd&&r!==wd&&r!==bd&&r!==yd&&(n+=1,Dd.test(d.charAt(n)))){while(Dd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===vd&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===md&&d.charCodeAt(m+1)===Id?(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):(Pd.lastIndex=m+1,Pd.test(d),n=0===Pd.lastIndex?d.length-1:Pd.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}},Bd=td,Nd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Pi(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}(Bd),jd=Nd;Nd.default=Nd,Bd.registerAtRule(Nd);var Ud,Fd,zd=td,qd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Pi(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=zi(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 Ud(new Fd,this,e);return t.stringify()},t}(zd);qd.registerLazyResult=function(e){Ud=e},qd.registerProcessor=function(e){Fd=e};var Hd=qd;qd.default=qd,zd.registerRoot(qd);var $d={comma:function(e){return $d.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return $d.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=zi(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}},Wd=$d;$d.default=$d;var Vd=td,Xd=Wd,Yd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Pi(t,e),Oi(t,[{key:"selectors",get:function(){return Xd.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}(Vd),Gd=Yd;Yd.default=Yd,Vd.registerRule(Yd);var Jd=eh,Kd=Ld,Zd=qh,Qd=jd,ep=Hd,tp=Gd,rp={empty:!0,space:!0};function np(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var ip=function(){function e(e){this.input=e,this.root=new ep,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 Qd;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=zi(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 Zd;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=Kd(this.input)},t.decl=function(e,t){var r=new Jd;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]||np(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 tp;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",rp[a]||rp[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 tp;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}(),op=ip,sp=td,ap=op,cp=Eh;function up(e,t){var r=new cp(e,t),n=new ap(r);try{n.parse()}catch(i){throw i}return n.root}var lp=up;up.default=up,sp.registerParse(up);var hp=Bl.isClean,dp=Bl.my,pp=Uh,fp=Hl,mp=td,gp=sd,vp=hd,yp=lp,wp=Hd,bp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_p={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},kp={Once:!0,postcssPlugin:!0,prepare:!0},Sp=0;function Cp(e){return"object"===("undefined"===typeof e?"undefined":Ni(e))&&"function"===typeof e.then}function xp(e){var t=!1,r=bp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Sp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Sp,r+"Exit"]:[r,r+"Exit"]}function Ap(e){var t;return t="document"===e.type?["Document",Sp,"DocumentExit"]:"root"===e.type?["Root",Sp,"RootExit"]:xp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ep(e){return e[hp]=!1,e.nodes&&e.nodes.forEach(function(e){return Ep(e)}),e}var Ip={},Op=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Ni(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Ri(r,e)||Ri(r,vp))i=Ep(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=yp;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[dp]&&mp.rebuild(i)}else i=Ep(r);this.result=new vp(t,i,n),this.helpers=Ti({},Ip,{postcss:Ip,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ni(e))&&e.prepare?Ti({},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=zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Ni(i)))for(var o in i){if(!_p[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!kp[o])if("object"===Ni(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 Ai(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return qi(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),!Cp(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[hp])return[3,14];o[hp]=!0,s=[Ap(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Cp(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 qi(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=zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Hi(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":Ni(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 Cp(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=fp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new pp(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=zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Cp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[hp])i[hp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=zi(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=zi(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(Cp(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[hp])return a[hp]=!0,void e.push(Ap(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===Sp)return void(r.nodes&&r.nodes.length&&(r[hp]=!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[hp]=!0;for(var r,n=xp(e),i=zi(n);!(r=i()).done;){var o=r.value;if(o===Sp)e.nodes&&e.each(function(e){e[hp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Oi(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}();Op.registerPostcss=function(e){Ip=e};var Tp=Op;Op.default=Op,wp.registerLazyResult(Op),gp.registerLazyResult(Op);var Mp=Uh,Pp=Hl,Rp=lp,Dp=hd,Lp=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=Pp;this.result=new Dp(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 Mp(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[]},Oi(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=Rp;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}(),Bp=Lp;Lp.default=Lp;var Np=Bp,jp=Tp,Up=sd,Fp=Hd,zp=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=zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Ni(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Ni(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Ni(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 jp(this,e,t):new Np(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),qp=zp;zp.default=zp,Fp.registerProcessor(zp),Up.registerProcessor(zp);var Hp=eh,$p=dh,Wp=qh,Vp=jd,Xp=Eh,Yp=Hd,Gp=Gd;function Jp(e,t){if(Array.isArray(e))return e.map(function(e){return Jp(e)});var r=e.inputs,n=Li(e,["inputs"]);if(r){t=[];for(var i,o=zi(r);!(i=o()).done;){var s=i.value,a=Ti({},s,{__proto__:Xp.prototype});a.map&&(a.map=Ti({},a.map,{__proto__:$p.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Jp(e,t)})),n.source){var c=n.source,u=c.inputId,l=Li(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Yp(n);if("decl"===n.type)return new Hp(n);if("rule"===n.type)return new Gp(n);if("comment"===n.type)return new Wp(n);if("atrule"===n.type)return new Vp(n);throw new Error("Unknown node type: "+e.type)}var Kp=Jp;Jp.default=Jp;var Zp=Ll,Qp=eh,ef=Tp,tf=td,rf=qp,nf=Hl,of=Kp,sf=sd,af=cd,cf=qh,uf=jd,lf=hd,hf=Eh,df=lp,pf=Wd,ff=Gd,mf=Hd,gf=Kl;function vf(){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 rf(t)}vf.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 rf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return vf([i(r)]).process(e,t)},i},vf.stringify=nf,vf.parse=df,vf.fromJSON=of,vf.list=pf,vf.comment=function(e){return new cf(e)},vf.atRule=function(e){return new uf(e)},vf.decl=function(e){return new Qp(e)},vf.rule=function(e){return new ff(e)},vf.root=function(e){return new mf(e)},vf.document=function(e){return new sf(e)},vf.CssSyntaxError=Zp,vf.Declaration=Qp,vf.Container=tf,vf.Processor=rf,vf.Document=sf,vf.Comment=cf,vf.Warning=af,vf.AtRule=uf,vf.Result=lf,vf.Input=hf,vf.Rule=ff,vf.Root=mf,vf.Node=gf,ef.registerPostcss(vf);var yf=vf;vf.default=vf;var wf=Sl(yf);wf.stringify,wf.fromJSON,wf.plugin,wf.parse,wf.list,wf.document,wf.comment,wf.atRule,wf.rule,wf.decl,wf.root,wf.CssSyntaxError,wf.Declaration,wf.Container,wf.Processor,wf.Document,wf.Comment,wf.Warning,wf.AtRule,wf.Result,wf.Input,wf.Rule,wf.Root,wf.Node;var bf=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];kl(this,"parentElement",null),kl(this,"parentNode",null),kl(this,"ownerDocument"),kl(this,"firstChild",null),kl(this,"lastChild",null),kl(this,"previousSibling",null),kl(this,"nextSibling",null),kl(this,"ELEMENT_NODE",1),kl(this,"TEXT_NODE",3),kl(this,"nodeType"),kl(this,"nodeName"),kl(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!Ri(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"},Oi(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),_f={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},kf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Sf={},Cf=function(){return!!globalThis.Zone};function xf(e){if(Sf[e])return Sf[e];var t=globalThis[e],r=t.prototype,n=e in _f?_f[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 kf?kf[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&&!Cf())return Sf[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?Sf[e]=u:r}catch(l){return r}}var Af={};function Ef(e,t,r){var n,i=e+"."+String(r);if(Af[i])return Af[i].call(t);var o=xf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Af[i]=s,s.call(t)):t[r]}var If={};function Of(e,t,r){var n=e+"."+String(r);if(If[n])return If[n].bind(t);var i=xf(e),o=i[r];return"function"!==typeof o?t[r]:(If[n]=o,o.bind(t))}function Tf(e){return Ef("Node",e,"childNodes")}function Mf(e){return Ef("Node",e,"parentNode")}function Pf(e){return Ef("Node",e,"parentElement")}function Rf(e){return Ef("Node",e,"textContent")}function Df(e,t){return Of("Node",e,"contains")(t)}function Lf(e){return Of("Node",e,"getRootNode")()}function Bf(e){return e&&"host"in e?Ef("ShadowRoot",e,"host"):null}function Nf(e){return e.styleSheets}function jf(e){return e&&"shadowRoot"in e?Ef("Element",e,"shadowRoot"):null}function Uf(e,t){return Ef("Element",e,"querySelector")(t)}function Ff(e,t){return Ef("Element",e,"querySelectorAll")(t)}function zf(){return xf("MutationObserver").constructor}function qf(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 Hf={childNodes:Tf,parentNode:Mf,parentElement:Pf,textContent:Rf,contains:Df,getRootNode:Lf,host:Bf,styleSheets:Nf,shadowRoot:jf,querySelector:Uf,querySelectorAll:Ff,mutationObserver:zf,patch:qf};function $f(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 Wf="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.",Vf={map:{},getId:function(){return console.error(Wf),-1},getNode:function(){return console.error(Wf),null},removeNodeFromMap:function(){console.error(Wf)},has:function(){return console.error(Wf),!1},reset:function(){console.error(Wf)}};function Xf(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 Yf(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 Yf(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Vf=new Proxy(Vf,{get:function(e,t,r){return"map"===t&&console.error(Wf),Reflect.get(e,t,r)}}));var Gf=Date.now;function Jf(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=Hf.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=Hf.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function Kf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zf(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qf(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:Hf.parentElement(e);return t}function em(e,t,r,n){if(!e)return!1;var i=Qf(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(ds(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 tm(e,t){return-1!==t.getId(e)}function rm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===Qo}function nm(e,t){if(So(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Hf.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||nm(n,t))}function im(e){return Boolean(e.changedTouches)}function om(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 sm(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function am(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function cm(e){return!!e&&(Ri(e,bf)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Hf.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Gf=function(){return(new Date).getTime()});var um=function(){function e(){Xi(this,"id",1),Xi(this,"styleIDMap",new WeakMap),Xi(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++},e}();function lm(e){var t,r=null;return"getRootNode"in e&&(null==(t=Hf.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Hf.host(Hf.getRootNode(e))&&(r=Hf.host(Hf.getRootNode(e))),r}function hm(e){var t,r=e;while(t=lm(r))r=t;return r}function dm(e){var t=e.ownerDocument;if(!t)return!1;var r=hm(e);return Hf.contains(t,r)}function pm(e){var t=e.ownerDocument;return!!t&&(Hf.contains(t,e)||dm(e))}var fm=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}(fm||{}),mm=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}(mm||{}),gm=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}(gm||{}),vm=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(vm||{}),ym=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(ym||{}),wm=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}(wm||{}),bm=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}(bm||{});function _m(e){return"__ln"in e}var km,Sm=function(){function e(){Xi(this,"length",0),Xi(this,"head",null),Xi(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&&_m(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&&_m(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}(),Cm=function(e,t){return e+"@"+t},xm=function(){function e(){var e=this;Xi(this,"frozen",!1),Xi(this,"locked",!1),Xi(this,"texts",[]),Xi(this,"attributes",[]),Xi(this,"attributeMap",new WeakMap),Xi(this,"removes",[]),Xi(this,"mapRemoves",[]),Xi(this,"movedMap",{}),Xi(this,"addedSet",new Set),Xi(this,"movedSet",new Set),Xi(this,"droppedSet",new Set),Xi(this,"removesSubTreeCache",new Set),Xi(this,"mutationCb"),Xi(this,"blockClass"),Xi(this,"blockSelector"),Xi(this,"maskTextClass"),Xi(this,"maskTextSelector"),Xi(this,"inlineStylesheet"),Xi(this,"maskInputOptions"),Xi(this,"maskTextFn"),Xi(this,"maskInputFn"),Xi(this,"keepIframeSrcFn"),Xi(this,"recordCanvas"),Xi(this,"inlineImages"),Xi(this,"slimDOMOptions"),Xi(this,"dataURLOptions"),Xi(this,"doc"),Xi(this,"mirror"),Xi(this,"iframeManager"),Xi(this,"stylesheetManager"),Xi(this,"shadowDomManager"),Xi(this,"canvasManager"),Xi(this,"processedNodeManager"),Xi(this,"unattachedDoc"),Xi(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Xi(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Sm,i=function(t){var r=t,n=Qo;while(n===Qo)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=Hf.parentNode(o);if(s&&pm(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=So(s)?e.mirror.getId(lm(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=ks(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){sm(t,e.mirror)&&e.iframeManager.addIframe(t),am(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),cm(o)&&e.shadowDomManager.addShadowRoot(Hf.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)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=zi(e.movedSet);!(s=a()).done;){var c=s.value;Im(e.removesSubTreeCache,c,e.mirror)&&!e.movedSet.has(Hf.parentNode(c))||o(c)}for(var u,l=zi(e.addedSet);!(u=l()).done;){var h=u.value;Tm(e.droppedSet,h)||Im(e.removesSubTreeCache,h,e.mirror)?Tm(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}var d=null;while(n.length){var p=null;if(d){var f=e.mirror.getId(Hf.parentNode(d.value)),m=i(d.value);-1!==f&&-1!==m&&(p=d)}if(!p){var g=n.tail;while(g){var v=g;if(g=g.previous,v){var y=e.mirror.getId(Hf.parentNode(v.value)),w=i(v.value);if(-1===w)continue;if(-1!==y){p=v;break}var b=v.value,_=Hf.parentNode(b);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=Hf.host(_),S=e.mirror.getId(k);if(-1!==S){p=v;break}}}}}if(!p){while(n.head)n.removeNode(n.head.value);break}d=p.previous,n.removeNode(p.value),o(p.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=Hf.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))}}),Xi(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(Hf.childNodes(t),function(e){return Hf.textContent(e)||""}).join("");r.attributes.value=Do({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:jo(t),value:n,maskInputFn:e.maskInputFn})}),Xi(this,"processMutation",function(t){if(!rm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Hf.textContent(t.target);em(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ps(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,Qf(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=jo(n);o=Do({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(em(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"),!ls(n.tagName,i))if(a.attributes[i]=us(e.doc,Lo(n.tagName),Lo(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=zi(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=zi(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(em(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=So(t.target)?e.mirror.getId(Hf.host(t.target)):e.mirror.getId(t.target);em(t.target,e.blockClass,e.blockSelector,!1)||rm(r,e.mirror,e.slimDOMOptions)||!tm(r,e.mirror)||(e.addedSet.has(r)?(Am(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||nm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Cm(n,i)]?Am(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!So(t.target)||!Co(t.target))||void 0}),Em(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),Xi(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(rm(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[Cm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);em(t,e.blockClass,e.blockSelector,!1)||(Hf.childNodes(t).forEach(function(t){return e.genAdds(t)}),cm(t)&&Hf.childNodes(Hf.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()},e}();function Am(e,t){e.delete(t),Hf.childNodes(t).forEach(function(t){return Am(e,t)})}function Em(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),Hf.childNodes(n).forEach(function(e){return r.push(e)}))}}function Im(e,t,r){return 0!==e.size&&Om(e,t)}function Om(e,t,r){var n=Hf.parentNode(t);return!!n&&e.has(n)}function Tm(e,t){return 0!==e.size&&Mm(e,t)}function Mm(e,t){var r=Hf.parentNode(t);return!!r&&(!!e.has(r)||Mm(e,r))}function Pm(e){km=e}function Rm(){km=void 0}var Dm=function(e){if(!km)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(km&&!0===km(i))return;throw i}};return t},Lm=[];function Bm(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 Nm(e,t){var r=new xm;Lm.push(r),r.init(e);var n=new(zf())(Dm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function jm(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=Xf(Dm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Dm(Xf(Dm(function(e){var t=Bm(e),r=im(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Gf()),c.push({x:n,y:s,id:i.getId(t),timeOffset:Gf()-o}),u("undefined"!==typeof DragEvent&&Ri(e,DragEvent)?mm.Drag:Ri(e,MouseEvent)?mm.MouseMove:mm.TouchMove)}),s,{trailing:!1})),h=[$f("mousemove",l,n),$f("touchmove",l,n),$f("drag",l,n)];return Dm(function(){h.forEach(function(e){return e()})})}function Um(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=Bm(r);if(!em(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=vm.Mouse;break;case"touch":a=vm.Touch;break;case"pen":a=vm.Pen;break}a===vm.Touch?gm[e]===gm.MouseDown?c="TouchStart":gm[e]===gm.MouseUp&&(c="TouchEnd"):vm.Pen}else im(r)&&(a=vm.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===vm.Touch||c.startsWith("Mouse")&&a===vm.Mouse)&&(a=null)):gm[e]===gm.Click&&(a=u,u=null);var l=im(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Dm(t)(Ti({type:gm[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(gm).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Lo(e),n=l(e);if(window.PointerEvent)switch(gm[e]){case gm.MouseDown:case gm.MouseUp:t=t.replace("mouse","pointer");break;case gm.TouchStart:case gm.TouchEnd:return}c.push($f(t,n,r))}),Dm(function(){c.forEach(function(e){return e()})})}function Fm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Dm(Xf(Dm(function(e){var s=Bm(e);if(s&&!em(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=Jf(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 $f("scroll",a,r)}function zm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Dm(Xf(Dm(function(){var e=Kf(),t=Zf();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return $f("resize",s,n)}var qm=["INPUT","TEXTAREA","SELECT"],Hm=new WeakMap;function $m(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=Bm(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Hf.parentElement(t)),t&&l&&!(qm.indexOf(l)<0)&&!em(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=jo(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=Do({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=Hm.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Hm.set(e,r);var o=n.getId(e);Dm(t)(Ti({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return $f(e,Dm(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 Yf(e[0],e[1],{set:function(){Dm(d)({target:this,isTrusted:!1})}},!1,g)})));return Dm(function(){m.forEach(function(e){return e()})})}function Wm(e){var t=[];function r(e,t){if(rg("CSSGroupingRule")&&Ri(e.parentRule,CSSGroupingRule)||rg("CSSMediaRule")&&Ri(e.parentRule,CSSMediaRule)||rg("CSSSupportsRule")&&Ri(e.parentRule,CSSSupportsRule)||rg("CSSConditionRule")&&Ri(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 Vm(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Xm(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:Dm(function(e,t,o){var s=o[0],a=o[1],c=Vm(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:Dm(function(e,t,o){var s=o[0],a=Vm(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:Dm(function(e,t,o){var s=o[0],a=Vm(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:Dm(function(e,t,o){var s=o[0],a=Vm(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={};ng("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(ng("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),ng("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),ng("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:Dm(function(e,t,o){var s=o[0],a=o[1],c=Vm(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(Wm(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Dm(function(e,t,o){var s=o[0],a=Vm(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(Wm(t),[s])}]}),e.apply(t,o)})})}),Dm(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 Ym(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Hf.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}}),Dm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function Gm(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:Dm(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=Vm(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:Wm(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Dm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Vm(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:Wm(t.parentRule)}),e.apply(t,s)})}),Dm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function Jm(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Dm(function(e){return Xf(Dm(function(o){var s=Bm(o);if(s&&!em(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=[$f("play",a(wm.Play),s),$f("pause",a(wm.Pause),s),$f("seeked",a(wm.Seeked),s),$f("volumechange",a(wm.VolumeChange),s),$f("ratechange",a(wm.RateChange),s)];return Dm(function(){c.forEach(function(e){return e()})})}function Km(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=qf(r.fonts,"add",function(e){return function(r){return setTimeout(Dm(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),Dm(function(){i.forEach(function(e){return e()})})}function Zm(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Dm(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=em(h,n,i,!0)||em(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),$f("selectionchange",a)}function Qm(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=qf(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 eg(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 tg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};eg(e,t),e.recordDOM&&(r=Nm(e,e.doc));var i=jm(e),o=Um(e),s=Fm(e),a=zm(e,{win:n}),c=$m(e),u=Jm(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=Xm(e,{win:n}),h=Ym(e,e.doc),d=Gm(e,{win:n}),e.collectFonts&&(p=Km(e)));for(var f,m=Zm(e),g=Qm(e),v=[],y=zi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Dm(function(){Lm.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 rg(e){return"undefined"!==typeof window[e]}function ng(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var ig=function(){function e(e){Xi(this,"iframeIdToRemoteIdMap",new WeakMap),Xi(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}(),og=function(){function e(e){Xi(this,"iframes",new WeakMap),Xi(this,"crossOriginIframeMap",new WeakMap),Xi(this,"crossOriginIframeMirror",new ig(es)),Xi(this,"crossOriginIframeStyleMirror"),Xi(this,"crossOriginIframeRootIdMap",new WeakMap),Xi(this,"mirror"),Xi(this,"mutationCb"),Xi(this,"wrappedEmit"),Xi(this,"loadListener"),Xi(this,"stylesheetManager"),Xi(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ig(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.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}),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 fm.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:fm.IncrementalSnapshot,data:{source:mm.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case fm.Meta:case fm.Load:case fm.DomContentLoaded:return!1;case fm.Plugin:return t;case fm.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case fm.IncrementalSnapshot:switch(t.data.source){case mm.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 mm.Drag:case mm.TouchMove:case mm.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case mm.ViewportResize:return!1;case mm.MediaInteraction:case mm.MouseInteraction:case mm.Scroll:case mm.CanvasMutation:case mm.Input:return this.replaceIds(t.data,e,["id"]),t;case mm.StyleSheetRule:case mm.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case mm.Font:return t;case mm.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case mm.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=zi(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===bm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),sg=function(){function e(e){Xi(this,"shadowDoms",new WeakSet),Xi(this,"mutationCb"),Xi(this,"scrollCb"),Xi(this,"bypassOptions"),Xi(this,"mirror"),Xi(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(Co(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Nm(Ti({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Fm(Ti({},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(Hf.host(e))),r.restoreHandlers.push(Ym({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(qf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=Hf.shadowRoot(this);return o&&pm(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}(),ag="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cg="undefined"===typeof Uint8Array?[]:new Uint8Array(256),ug=0;ug<ag.length;ug++)cg[ag.charCodeAt(ug)]=ug;var lg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=ag[r[t]>>2],i+=ag[(3&r[t])<<4|r[t+1]>>4],i+=ag[(15&r[t+1])<<2|r[t+2]>>6],i+=ag[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},hg=new Map;function dg(e,t){var r=hg.get(e);return r||(r=new Map,hg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var pg=function(e,t,r){if(e&&(gg(e,t)||"object"===("undefined"===typeof e?"undefined":Ni(e)))){var n=e.constructor.name,i=dg(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function fg(e,t,r){if(Ri(e,Array))return e.map(function(e){return fg(e,t,r)});if(null===e)return e;if(Ri(e,Float32Array)||Ri(e,Float64Array)||Ri(e,Int32Array)||Ri(e,Uint32Array)||Ri(e,Uint8Array)||Ri(e,Uint16Array)||Ri(e,Int16Array)||Ri(e,Int8Array)||Ri(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(Ri(e,ArrayBuffer)){var i=e.constructor.name,o=lg(e);return{rr_type:i,base64:o}}if(Ri(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[fg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(Ri(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(Ri(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(Ri(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[fg(e.data,t,r),e.width,e.height]}}if(gg(e,t)||"object"===("undefined"===typeof e?"undefined":Ni(e))){var d=e.constructor.name,p=pg(e,t,r);return{rr_type:d,index:p}}return e}var mg=function(e,t,r){return e.map(function(e){return fg(e,t,r)})},gg=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 Ri(e,t[r])}))};function vg(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=qf(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 em(this.canvas,r,n,!0)||setTimeout(function(){var r=mg(c,t,s);e(s.canvas,{type:ym["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=Yf(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:ym["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=zi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function yg(e){return"experimental-webgl"===e?"webgl":e}function wg(e,t,r,n){var i=[];try{var o=qf(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(!em(this,t,r,!0)){var c=yg(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Ni(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 bg(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=qf(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(pg(l,o,this),"tagName"in this.canvas&&!em(this.canvas,n,i,!0)){var h=mg(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=Yf(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=zi(u);!(s=l()).done;)a();return c}function _g(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(bg(t.WebGLRenderingContext.prototype,ym.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(bg(t.WebGL2RenderingContext.prototype,ym.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var kg="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Sg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Cg="undefined"!==typeof window&&window.Blob&&new Blob([Sg(kg)],{type:"text/javascript;charset=utf-8"});function xg(e){var t;try{if(t=Cg&&(window.URL||window.webkitURL).createObjectURL(Cg),!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,"+kg,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Ag,Eg,Ig,Og=function(){function e(e){var t=this;Xi(this,"pendingCanvasMutations",new Map),Xi(this,"rafStamps",{latestId:0,invokeId:null}),Xi(this,"mirror"),Xi(this,"mutationCb"),Xi(this,"resetObservers"),Xi(this,"frozen",!1),Xi(this,"locked",!1),Xi(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=wg(t,r,n,!0),a=new Map,c=new xg;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:ym["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){em(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(Ai(function(e){var r,n,o,s;return qi(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=wg(e,t,r,!1),i=vg(this.processMutation.bind(this),e,t,r),o=_g(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=Li(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Tg=function(){function e(e){Xi(this,"trackedLinkElements",new WeakSet),Xi(this,"mutationCb"),Xi(this,"adoptedStyleSheetCb"),Xi(this,"styleMirror",new um),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:Io(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=zi(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.trackStylesheetInLinkElement=function(e){},e}(),Mg=function(){function e(){Xi(this,"nodeMap",new WeakMap),Xi(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}(),Pg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Rg=document.createElement("iframe");document.body.appendChild(Rg),Array.from=(null==($i=Rg.contentWindow)?void 0:$i.Array.from)||Array.from,document.body.removeChild(Rg)}}catch(I_){console.debug("Unable to override Array.from",I_)}var Dg,Lg=Ro();function Bg(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,C=e.packFn,x=e.sampling,A=void 0===x?{}:x,E=e.dataURLOptions,I=void 0===E?{}:E,O=e.mousemoveWait,T=e.recordDOM,M=void 0===T||T,P=e.recordCanvas,R=void 0!==P&&P,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,U=void 0!==j&&j,F=e.collectFonts,z=void 0!==F&&F,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;Pm(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!==O&&void 0===A.mousemove&&(A.mousemove=O),Lg.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||{};om();var te=0,re=function(e){for(var t,r=zi($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!K&&(e=C(e)),e};Ag=function(e,i){var o,s=e;if(s.timestamp=Gf(),!(null==(o=Lm[0])?void 0:o.isFrozen())||s.type===fm.FullSnapshot||s.type===fm.IncrementalSnapshot&&s.data.source===mm.Mutation||Lm.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===fm.FullSnapshot)Z=s,te=0;else if(s.type===fm.IncrementalSnapshot){if(s.data.source===mm.Mutation&&s.data.isAttachIframe)return;te++;var c=n&&te>=n,u=r&&s.timestamp-Z.timestamp>r;(c||u)&&Eg(!0)}};for(var ne,ie=function(e){Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.Mutation},e)})},oe=function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.Scroll},e)})},se=function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.CanvasMutation},e)})},ae=function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.AdoptedStyleSheet},e)})},ce=new Tg({mutationCb:ie,adoptedStyleSheetCb:ae}),ue=new og({mirror:Lg,mutationCb:ie,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:Ag}),le=zi($||[]);!(ne=le()).done;){var he=ne.value;he.getMirror&&he.getMirror({nodeMirror:Lg,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var de=new Mg;Ig=new Og({recordCanvas:R,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:Lg,sampling:A.canvas,dataURLOptions:I});var pe=new sg({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:I,maskTextFn:k,maskInputFn:_,recordCanvas:R,inlineImages:H,sampling:A,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ce,canvasManager:Ig,keepIframeSrcFn:V,processedNodeManager:de},mirror:Lg});Eg=function(e){if(void 0===e&&(e=!1),M){Ag({type:fm.Meta,data:{href:window.location.href,width:Zf(),height:Kf()}},e),ce.reset(),pe.init(),Lm.forEach(function(e){return e.lock()});var t=Ss(document,{mirror:Lg,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:_,slimDOM:ee,dataURLOptions:I,recordCanvas:R,inlineImages:H,onSerialize:function(e){sm(e,Lg)&&ue.addIframe(e),am(e,Lg)&&ce.trackLinkElement(e),cm(e)&&pe.addShadowRoot(Hf.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");Ag({type:fm.FullSnapshot,data:{node:t,initialOffset:Jf(window)}},e),Lm.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,Lg.getId(document))}};try{var fe=[],me=function(e){var t;return Dm(tg)({mutationCb:ie,mousemoveCb:function(e,t){return Ag({type:fm.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.ViewportResize},e)})},inputCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.Input},e)})},mediaInteractionCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.Font},e)})},selectionCb:function(e){Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.Selection},e)})},customElementCb:function(e){Ag({type:fm.IncrementalSnapshot,data:Ti({source:mm.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:A,recordDOM:M,recordCanvas:R,inlineImages:H,userTriggeredOnInput:U,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:k,keepIframeSrcFn:V,blockSelector:a,slimDOMOptions:ee,dataURLOptions:I,mirror:Lg,iframeManager:ue,stylesheetManager:ce,shadowDomManager:pe,processedNodeManager:de,canvasManager:Ig,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 Ag({type:fm.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{fe.push(me(e.contentDocument))}catch(t){console.warn(t)}});var ge=function(){Eg(),fe.push(me(document)),Pg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push($f("DOMContentLoaded",function(){Ag({type:fm.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&ge()})),fe.push($f("load",function(){Ag({type:fm.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(),Pg=!1,Rm()}}catch(ye){console.warn(ye)}}Bg.addCustomEvent=function(e,t){if(!Pg)throw new Error("please add custom event after start recording");Ag({type:fm.Custom,data:{tag:e,payload:t}})},Bg.freezePage=function(){Lm.forEach(function(e){return e.freeze()})},Bg.takeFullSnapshot=function(e){if(!Pg)throw new Error("please take full snapshot after start recording");Eg(e)},Bg.mirror=Lg,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Dg||(Dg={})),Bg.addCustomEvent,Bg.freezePage,Bg.takeFullSnapshot;var Ng,jg,Ug,Fg=_i["setImmediate"],zg=Object.prototype.toString,qg="undefined"!==typeof Fg?function(e){return Fg(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Ng=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(I_){Ng=function(e,t,r){return e[t]=r,e}}function Hg(e,t){Ug.add(e,t),jg||(jg=qg(Ug.drain))}function $g(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function Wg(){for(var e=0;e<this.chain.length;e++)Vg(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Vg(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=$g(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(I_){r.reject(I_)}}function Xg(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=$g(e))?Hg(function(){var n=new Jg(r);try{t.call(e,function(){Xg.apply(n,arguments)},function(){Yg.apply(n,arguments)})}catch(I_){Yg.call(n,I_)}}):(r.msg=e,r.state=1,r.chain.length>0&&Hg(Wg,r))}catch(I_){Yg.call(new Jg(r),I_)}}}function Yg(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Hg(Wg,t))}function Gg(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 Jg(e){this.def=e,this.triggered=!1}function Kg(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Zg(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 Kg(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&&Hg(Wg,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Xg.call(t,e)},function(e){Yg.call(t,e)})}catch(I_){Yg.call(t,I_)}}Ug=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=jg=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var Qg,ev=Ng({},"constructor",Zg,!1);Zg.prototype=ev,Ng(ev,"__NPO__",0,!1),Ng(Zg,"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)})}),Ng(Zg,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),Ng(Zg,"all",function(e){var t=this;return"[object Array]"!==zg.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;Gg(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),Ng(Zg,"race",function(e){var t=this;return"[object Array]"!==zg.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");Gg(t,e,function(e,t){r(t)},n)})}),Qg="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Zg;var tv={DEBUG:!1,LIB_VERSION:"2.71.1"},rv=864e5,nv=8e3,iv=Array.prototype,ov=Function.prototype,sv=Object.prototype,av=iv.slice,cv=sv.toString,uv=sv.hasOwnProperty,lv=_i.console,hv=_i.navigator,dv=_i.document,pv=_i.opera,fv=_i.screen,mv=hv.userAgent,gv=ov.bind,vv=iv.forEach,yv=iv.indexOf,wv=iv.map,bv=Array.isArray,_v={},kv={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Sv={log:function(){if(tv.DEBUG&&!kv.isUndefined(lv)&&lv)try{lv.log.apply(lv,arguments)}catch(I_){kv.each(arguments,function(e){lv.log(e)})}},warn:function(){if(tv.DEBUG&&!kv.isUndefined(lv)&&lv){var e=["Mixpanel warning:"].concat(kv.toArray(arguments));try{lv.warn.apply(lv,e)}catch(I_){kv.each(e,function(e){lv.warn(e)})}}},error:function(){if(tv.DEBUG&&!kv.isUndefined(lv)&&lv){var e=["Mixpanel error:"].concat(kv.toArray(arguments));try{lv.error.apply(lv,e)}catch(I_){kv.each(e,function(e){lv.error(e)})}}},critical:function(){if(!kv.isUndefined(lv)&&lv){var e=["Mixpanel error:"].concat(kv.toArray(arguments));try{lv.error.apply(lv,e)}catch(I_){kv.each(e,function(e){lv.error(e)})}}}},Cv=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Sv,arguments)}},xv=function(e){return{log:Cv(Sv.log,e),error:Cv(Sv.error,e),critical:Cv(Sv.critical,e)}},Av=function(e){return function(){try{return e.apply(this,arguments)}catch(t){Sv.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),tv.DEBUG&&Sv.critical(t)}}},Ev=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=Av(t[r]))};kv.bind=function(e,t){var r,n;if(gv&&e.bind===gv)return gv.apply(e,av.call(arguments,1));if(!kv.isFunction(e))throw new TypeError;return r=av.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(av.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(av.call(arguments)));return Object(s)===s?s:o},n},kv.each=function(e,t,r){if(null!==e&&void 0!==e)if(vv&&e.forEach===vv)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)===_v)return}else for(var o in e)if(uv.call(e,o)&&t.call(r,e[o],o,e)===_v)return},kv.extend=function(e){return kv.each(av.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},kv.isArray=bv||function(e){return"[object Array]"===cv.call(e)},kv.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(Al){return!1}},kv.isArguments=function(e){return!(!e||!uv.call(e,"callee"))},kv.toArray=function(e){return e?e.toArray?e.toArray():kv.isArray(e)||kv.isArguments(e)?av.call(e):kv.values(e):[]},kv.map=function(e,t,r){if(wv&&e.map===wv)return e.map(t,r);var n=[];return kv.each(e,function(e){n.push(t.call(r,e))}),n},kv.keys=function(e){var t=[];return null===e||kv.each(e,function(e,r){t[t.length]=r}),t},kv.values=function(e){var t=[];return null===e||kv.each(e,function(e){t[t.length]=e}),t},kv.include=function(e,t){var r=!1;return null===e?r:yv&&e.indexOf===yv?-1!=e.indexOf(t):(kv.each(e,function(e){if(r||(r=e===t))return _v}),r)},kv.includes=function(e,t){return-1!==e.indexOf(t)},kv.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},kv.isObject=function(e){return e===Object(e)&&!kv.isArray(e)},kv.isEmptyObject=function(e){if(kv.isObject(e)){for(var t in e)if(uv.call(e,t))return!1;return!0}return!1},kv.isUndefined=function(e){return void 0===e},kv.isString=function(e){return"[object String]"==cv.call(e)},kv.isDate=function(e){return"[object Date]"==cv.call(e)},kv.isNumber=function(e){return"[object Number]"==cv.call(e)},kv.isElement=function(e){return!(!e||1!==e.nodeType)},kv.encodeDates=function(e){return kv.each(e,function(t,r){kv.isDate(t)?e[r]=kv.formatDate(t):kv.isObject(t)&&(e[r]=kv.encodeDates(t))}),e},kv.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},kv.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())},kv.strip_empty_properties=function(e){var t={};return kv.each(e,function(e,r){kv.isString(e)&&e.length>0&&(t[r]=e)}),t},kv.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):kv.isArray(e)?(r=[],kv.each(e,function(e){r.push(kv.truncate(e,t))})):kv.isObject(e)?(r={},kv.each(e,function(e,n){r[n]=kv.truncate(e,t)})):r=e,r},kv.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]"===cv.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)uv.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})}}(),kv.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}}(),kv.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=kv.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},kv.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},kv.UUID=function(){try{return _i["crypto"]["randomUUID"]()}catch(I_){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]="-",kv.map(e,function(e){return e.toString(16)}).join("")}};var Iv=["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"];kv.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Iv.length;t++)if(-1!==e.indexOf(Iv[t]))return!0;return!1},kv.HTTPBuildQuery=function(e,t){var r,n,i=[];return kv.isUndefined(t)&&(t="&"),kv.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},kv.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(I_){Sv.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},kv.cookie={get:function(e){for(var t=e+"=",r=dv.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=kv.JSONDecode(kv.cookie.get(e))||{}}catch(I_){}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=Hv(dv.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"),dv.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=Hv(dv.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 dv.cookie=d,d},remove:function(e,t,r){kv.cookie.set(e,"",-1,t,!1,!1,r)}};var Ov=function(e){var t=!0;try{var r="__mplss_"+Uv(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(I_){t=!1}return t},Tv=null,Mv=function(e,t){return null===Tv||t?Tv=Ov(e||_i.localStorage):Tv},Pv=null,Rv=function(e,t){return null===Pv||t?Pv=Ov(e||_i.sessionStorage):Pv};function Dv(e,t,r){var n=function(e){Sv.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Sv.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(I_){n(I_)}return null},parse:function(t){try{return kv.JSONDecode(e.getItem(t))||{}}catch(I_){}return null},set:function(t,r){try{e.setItem(t,r)}catch(I_){n(I_)}},remove:function(t){try{e.removeItem(t)}catch(I_){n(I_)}}}}kv.localStorage=Dv(_i.localStorage,"localStorage",Mv),kv.sessionStorage=Dv(_i.sessionStorage,"sessionStorage",Rv),kv.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 Sv.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(_i.event),i){var o,s,a=!0;return kv.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 Lv=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');kv.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(!dv.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[dv];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=dv.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&&kv.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Lv);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 kv.isElement(e)?[e]:kv.isObject(e)&&!kv.isUndefined(e.length)?e:n.call(this,e)}}();var Bv=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Nv=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];kv.info={campaignParams:function(e){var t="",r={};return kv.each(Bv,function(n){t=kv.getQueryParam(dv.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return kv.each(Nv,function(r){e=kv.getQueryParam(dv.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return kv.extend(kv.info.campaignParams(),kv.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=kv.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=kv.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||kv.includes(e," OPR/")?kv.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":kv.includes(e,"IEMobile")||kv.includes(e,"WPDesktop")?"Internet Explorer Mobile":kv.includes(e,"SamsungBrowser/")?"Samsung Internet":kv.includes(e,"Edge")||kv.includes(e,"Edg/")?"Microsoft Edge":kv.includes(e,"FBIOS")?"Facebook Mobile":kv.includes(e,"Whale/")?"Whale Browser":kv.includes(e,"Chrome")?"Chrome":kv.includes(e,"CriOS")?"Chrome iOS":kv.includes(e,"UCWEB")||kv.includes(e,"UCBrowser")?"UC Browser":kv.includes(e,"FxiOS")?"Firefox iOS":kv.includes(t,"Apple")?kv.includes(e,"Mobile")?"Mobile Safari":"Safari":kv.includes(e,"Android")?"Android Mobile":kv.includes(e,"Konqueror")?"Konqueror":kv.includes(e,"Firefox")?"Firefox":kv.includes(e,"MSIE")||kv.includes(e,"Trident/")?"Internet Explorer":kv.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=kv.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=mv;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 _i.location.href},properties:function(e){return"object"!==typeof e&&(e={}),kv.extend(kv.strip_empty_properties({$os:kv.info.os(),$browser:kv.info.browser(mv,hv.vendor,pv),$referrer:dv.referrer,$referring_domain:kv.info.referringDomain(dv.referrer),$device:kv.info.device(mv)}),{$current_url:kv.info.currentUrl(),$browser_version:kv.info.browserVersion(mv,hv.vendor,pv),$screen_height:fv.height,$screen_width:fv.width,mp_lib:"web",$lib_version:tv.LIB_VERSION,$insert_id:Uv(),time:kv.timestamp()/1e3},kv.strip_empty_properties(e))},people_properties:function(){return kv.extend(kv.strip_empty_properties({$os:kv.info.os(),$browser:kv.info.browser(mv,hv.vendor,pv)}),{$browser_version:kv.info.browserVersion(mv,hv.vendor,pv)})},mpPageViewProperties:function(){return kv.strip_empty_properties({current_page_title:dv.title,current_domain:_i.location.hostname,current_url_path:_i.location.pathname,current_url_protocol:_i.location.protocol,current_url_search:_i.location.search})}};var jv=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new Qg(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Uv=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},Fv=function(){var e=kv.UUID().replace(/-/g,""),t=kv.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},zv=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,qv=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Hv=function(e){var t=qv,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=zv);var i=e.match(t);return i?i[0]:""},$v=function(){var e=_i.navigator["onLine"];return kv.isUndefined(e)||e},Wv=function(){},Vv=null,Xv=null;"undefined"!==typeof JSON&&(Vv=JSON.stringify,Xv=JSON.parse),Vv=Vv||kv.JSONEncode,Xv=Xv||kv.JSONDecode,kv["info"]=kv.info,kv["info"]["browser"]=kv.info.browser,kv["info"]["browserVersion"]=kv.info.browserVersion,kv["info"]["device"]=kv.info.device,kv["info"]["properties"]=kv.info.properties,kv["isBlockedUA"]=kv.isBlockedUA,kv["isEmptyObject"]=kv.isEmptyObject,kv["isObject"]=kv.isObject,kv["JSONDecode"]=kv.JSONDecode,kv["JSONEncode"]=kv.JSONEncode,kv["toArray"]=kv.toArray,kv["NPO"]=Zg;var Yv="mixpanelBrowserDb",Gv="mixpanelRecordingEvents",Jv="mixpanelRecordingRegistry",Kv=1,Zv=[Gv,Jv],Qv=function(e){this.dbPromise=null,this.storeName=e};Qv.prototype._openDb=function(){return new Qg(function(e,t){var r=_i.indexedDB.open(Yv,Kv);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Zv.forEach(function(e){t.createObjectStore(e)})}})},Qv.prototype.init=function(){return _i.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof _i["IDBDatabase"]?Qg.resolve():Qg.reject(e)})):Qg.reject("indexedDB is not supported in this browser")},Qv.prototype.isInitialized=function(){return!!this.dbPromise},Qv.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Qg(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)):Qg.reject(e)}.bind(this))},Qv.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Qv.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Qv.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Qv.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var ey="__mp_opt_in_out_";function ty(e,t){py(!0,e,t)}function ry(e,t){py(!1,e,t)}function ny(e,t){return"1"===hy(e,t)}function iy(e,t){if(dy(t))return Sv.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"===hy(e,t);return r&&Sv.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function oy(e){return fy(e,function(e){return this.get_config(e)})}function sy(e){return fy(e,function(e){return this._get_config(e)})}function ay(e){return fy(e,function(e){return this._get_config(e)})}function cy(e,t){t=t||{},uy(t).remove(ly(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function uy(e){return e=e||{},"localStorage"===e.persistenceType?kv.localStorage:kv.cookie}function ly(e,t){return t=t||{},(t.persistencePrefix||ey)+e}function hy(e,t){return uy(t).get(ly(e,t))}function dy(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||_i,r=t["navigator"]||{},n=!1;return kv.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){kv.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function py(e,t,r){kv.isString(t)&&t.length?(r=r||{},uy(r).set(ly(t,r),e?1:0,kv.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})):Sv.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function fy(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=iy(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(I_){Sv.error("Unexpected error when checking tracking opt-out status: "+I_)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var my=xv("lock"),gy=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||_i.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Qg};gy.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(kv.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 my.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(I_){n(I_)}},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||(Mv(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(!Mv(u,!0))throw new Error("localStorage support check failed");g()}catch(I_){n(I_)}},this))};var vy=function(e){this.storage=e||_i.localStorage};vy.prototype.init=function(){return Qg.resolve()},vy.prototype.isInitialized=function(){return!0},vy.prototype.setItem=function(e,t){return new Qg(kv.bind(function(r,n){try{this.storage.setItem(e,Vv(t))}catch(i){n(i)}r()},this))},vy.prototype.getItem=function(e){return new Qg(kv.bind(function(t,r){var n;try{n=Xv(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},vy.prototype.removeItem=function(e){return new Qg(kv.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var yy=xv("batch"),wy=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new vy,this.lock=new gy(e,{storage:t.sharedLockStorage||_i.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||kv.bind(yy.error,yy),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=jv(kv.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=kv.bind(function(e){return this._enqueuePersisted([e])},this)};wy.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Qg.resolve():this.queueStorage.init().then(kv.bind(function(){this.initialized=!0},this)).catch(kv.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},wy.prototype.enqueue=function(e,t){var r={id:Uv(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Qg.resolve(!0))},wy.prototype._enqueuePersisted=function(e){var t=kv.bind(function(){return this.ensureInit().then(kv.bind(function(){return this.readFromStorage()},this)).then(kv.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(kv.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(kv.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(kv.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},wy.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(kv.bind(function(){return this.readFromStorage()},this)).then(kv.bind(function(r){if(r.length){var n={};kv.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)):Qg.resolve(t)};var by=function(e,t){var r=[];return kv.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};wy.prototype.removeItemsByID=function(e){var t={};if(kv.each(e,function(e){t[e]=!0}),this.memQueue=by(this.memQueue,t),this.usePersistence){var r=kv.bind(function(){return this.ensureInit().then(kv.bind(function(){return this.readFromStorage()},this)).then(kv.bind(function(e){return e=by(e,t),this.saveToStorage(e)},this)).then(kv.bind(function(){return this.readFromStorage()},this)).then(kv.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(kv.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(kv.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Mv(this.lock.storage,!0)&&r().then(kv.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(kv.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Qg.resolve(!0)};var _y=function(e,t){var r=[];return kv.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};wy.prototype.updatePayloads=function(e){return this.memQueue=_y(this.memQueue,e),this.usePersistence?this.lock.withLock(kv.bind(function(){return this.ensureInit().then(kv.bind(function(){return this.readFromStorage()},this)).then(kv.bind(function(t){return t=_y(t,e),this.saveToStorage(t)},this)).catch(kv.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(kv.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Qg.resolve(!0)},wy.prototype.readFromStorage=function(){return this.ensureInit().then(kv.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(kv.bind(function(e){return e&&(kv.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(kv.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},wy.prototype.saveToStorage=function(e){return this.ensureInit().then(kv.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(kv.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},wy.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(kv.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Qg.resolve()};var ky=6e5,Sy=xv("batch"),Cy=function(e,t){this.errorReporter=t.errorReporter,this.queue=new wy(e,{errorReporter:kv.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};Cy.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Cy.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Cy.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Cy.prototype.clear=function(){return this.queue.clear()},Cy.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},Cy.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},Cy.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(kv.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Cy.prototype.sendRequestPromise=function(e,t){return new Qg(kv.bind(function(r){this.sendRequest(e,t,r)},this))},Cy.prototype.flush=function(e){if(this.requestInProgress)return Sy.log("Flush: Request already in progress"),Qg.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(kv.bind(function(i){var o=i.length===n,s=[],a={};if(kv.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=kv.extend({},t["properties"],{mp_sent_by_lib_version:tv.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(),Qg.resolve();var c=kv.bind(function(){return this.queue.removeItemsByID(kv.map(i,function(e){return e["id"]})).then(kv.bind(function(e){return kv.each(i,kv.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(),Qg.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Qg.resolve())},this))},this),u=kv.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(kv.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(kv.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!$v()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(ky,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Qg.resolve()}if(kv.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(),Qg.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(I_){this.reportError("Error handling API response",I_),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),Sy.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(kv.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Cy.prototype.reportError=function(e,t){if(Sy.error.apply(Sy.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Sy.error(t)}};var xy=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},Ay=250,Ey=xv("recorder"),Iy=_i["CompressionStream"],Oy={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Ty=new Set([mm.MouseMove,mm.MouseInteraction,mm.Scroll,mm.ViewportResize,mm.Input,mm.TouchMove,mm.MediaInteraction,mm.Drag,mm.Selection]);function My(e){return e.type===fm.IncrementalSnapshot&&Ty.has(e.data.source)}var Py=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Wv,this._onMaxLengthReached=e.onMaxLengthReached||Wv,this._onBatchSent=e.onBatchSent||Wv,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.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=rv,this.recordMinMs=0;var t=Mv(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Qv(Gv),this.batcher=new Cy(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Oy,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Ay,sharedLockTimeoutMS:1e4})};Py.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},Py.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},Py.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Py.prototype.get_config=function(e){return this.getConfig(e)},Py.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>rv&&(this.recordMaxMs=rv,Ey.critical("record_max_ms cannot be greater than "+rv+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>nv&&(this.recordMinMs=nv,Ey.critical("record_min_ms cannot be greater than "+nv+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=kv.info.currentUrl(),this.replayStartUrl=kv.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);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(My(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(I_){this.reportError("Unexpected error when starting rrweb recording.",I_)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var n=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)}else Ey.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Py.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(I_){this.reportError("Error with rrweb stopRecording",I_)}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},Py.prototype.isRrwebStopped=function(){return null===this._stopRecording},Py.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)},Py.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,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Py.deserialize=function(e,t){var r=new Py(kv.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},Py.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=kv.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");_i["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})})},Py.prototype._flushEvents=oy(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===fm.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:tv.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()),Iy){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Iy("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)}}),Py.prototype.reportError=function(e,t){Ey.error.apply(Ey.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Ey.error(t)}};var Ry=function(e){this.idb=new Qv(Jv),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Ry.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ry.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Ry.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Qg.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."),Qg.resolve())},Ry.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 xy(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Qg.resolve(null)},Ry.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ry.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))},Ry.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Qg.resolve()},Ry.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 xy(e)}).map(function(e){var t=Py.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 Qg.all(t)}.bind(this)).catch(this.handleError.bind(this)):Qg.resolve([])};var Dy=xv("recorder"),Ly=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Bg,this.sharedLockStorage=r,this.recordingRegistry=new Ry({mixpanelInstance:this.mixpanelInstance,errorReporter:Dy.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ly.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Dy.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Dy.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:kv.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Py.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Py(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Dy.log("Recording already in progress, skipping startRecording.")},Ly.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))},Ly.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ly.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Qg.resolve()},Ly.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Qg.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Dy.log("No resumable recording found."),null)}.bind(this))},Ly.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ly.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ly.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),_i["__mp_recorder"]=Ly;var By="change",Ny="click",jy="hashchange",Uy="input",Fy="load",zy="mp_locationchange",qy="popstate",Hy="scrollend",$y="scroll",Wy="select",Vy="submit",Xy="toggle",Yy="visibilitychange",Gy=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Jy=["mp-include"],Ky=["mp-no-track"],Zy=Ky.concat(["mp-sensitive"]),Qy=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],ew={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},tw={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},rw={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},nw=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],iw=5,ow=xv("autocapture");function sw(e){for(var t={},r=aw(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function aw(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function cw(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!mw(e));return e}function uw(e,t,r,n,i,o){var s={$classes:aw(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),_w(e,t,i,o)&&kv.each(Qy.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);kw(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=cw(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function lw(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={};kv.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(vw(d)&&(d=d.parentNode),bw(d,e)&&pw(d,e,r,n)&&!fw(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!gw(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(kv.each(p,function(t){var i=_w(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&kw(m)&&m),fw(t,e,o,s)&&(v=!0),g.push(uw(t,e,l,c,r,n))},this),!v){var y=dv["documentElement"];if(h={$event_type:e.type,$host:_i.location.host,$pathname:_i.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],_i["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],_i["innerWidth"]||0),$pageHeight:dv["body"]["offsetHeight"]||0,$pageWidth:dv["body"]["offsetWidth"]||0},kv.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);kw(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=hw(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===Ny&&(kv.each(Gy,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=dw(e)),a){var w=hw(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!pw(d,e,r,n)||fw(d,e,o,s))return null;var b=uw(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],kv.extend(h,kv.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function hw(e,t,r,n){var i="";return _w(e,t,r,n)&&e.childNodes&&e.childNodes.length&&kv.each(e.childNodes,function(e){vw(e)&&e.textContent&&(i+=kv.trim(e.textContent).split(/(\s+)/).filter(kw).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),kv.trim(i)}function dw(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(gw(i,"a")||gw(i,"button")||gw(i,"input")||gw(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function pw(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(I_){return ow.critical("Error while checking element in allowElementCallback",I_),!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(I_){ow.critical("Error while checking selector: "+o,I_)}}return!1}function fw(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(I_){return ow.critical("Error while checking element in blockElementCallback",I_),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(I_){ow.critical("Error while checking selector: "+o,I_)}}var s=sw(e);for(i=0;i<Ky.length;i++)if(s[Ky[i]])return!0;return!1}function mw(e){return e&&1===e.nodeType}function gw(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function vw(e){return e&&3===e.nodeType}function yw(){try{var e=dv.createElement("div");return!!e["matches"]}catch(I_){return!1}}function ww(){return"undefined"!==typeof WeakSet}function bw(e,t){if(!e||gw(e,"html")||!mw(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===Vy;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===By:t.type===Ny;case"select":case"textarea":return t.type===By;default:return t.type===Ny}}function _w(e,t,r,n){var i;if(!pw(e,t,r,n))return!1;for(var o=e;o.parentNode&&!gw(o,"body");o=o.parentNode){var s=sw(o);for(i=0;i<Zy.length;i++)if(s[Zy[i]])return!1}var a=sw(e);for(i=0;i<Jy.length;i++)if(a[Jy[i]])return!0;if(gw(e,"input")||gw(e,"select")||gw(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}var u=e.name||e.id||"";if("string"===typeof u){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(u.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function kw(e){if(null===e||kv.isUndefined(e))return!1;if("string"===typeof e){e=kv.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 Sw(e){var t="onscrollend"in _i,r=Av(e),n=Hy;if(!t){var i=null,o=100;r=Av(function(){clearTimeout(i),i=setTimeout(e,o)}),n=$y}return{listener:r,eventType:n}}function Cw(e){for(var t=0;t<nw.length;t++)if(e.hasAttribute(nw[t]))return!0;return!1}function xw(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return ew[r]}function Aw(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)||(!!Cw(e)||(!!xw(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Ew(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(tw[t])return!0;if(Aw(e))return!1;var r=e.parentElement,n=0;while(r&&n<iw){if(Aw(r))return!1;if(r.getRootNode&&r.getRootNode()!==dv){var i=r.getRootNode();if(i.host&&Aw(i.host))return!1}r=r.parentElement,n++}return!!rw[t]}var Iw=30,Ow=1e3,Tw=4;function Mw(){this.clicks=[]}function Pw(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Mw.prototype.isRageClick=function(e,t,r){r=r||{};var n=r["threshold_px"]||Iw,i=r["timeout_ms"]||Ow,o=r["click_count"]||Tw,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},Pw.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e["target"]||e["srcElement"]}},Pw.prototype.getComposedPath=function(e){return"composedPath"in e?e["composedPath"]():[]},Pw.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Pw.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){ow.critical("Error while observing shadow root",n)}}},Pw.prototype.start=function(){this.observedShadowRoots||(ww()?this.observedShadowRoots=new WeakSet:ow.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Pw.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){ow.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Rw=500,Dw=[By,Uy,Vy,Wy,Xy],Lw=[Hy],Bw=[jy],Nw={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function jw(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}jw.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||Ew(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},jw.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},jw.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},jw.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},jw.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},jw.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},jw.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},jw.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Dw.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}})}),Bw.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),Lw.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,Nw)}catch(r){ow.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new Pw(function(){e.recordChangeEvent()},Nw),this.shadowDOMObserver.start()}catch(r){ow.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},jw.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){ow.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){ow.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){ow.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var Uw="autocapture",Fw="track_pageview",zw="full-url",qw="url-with-path-and-query-string",Hw="url-with-path",$w="allow_element_callback",Ww="allow_selectors",Vw="allow_url_regexes",Xw="block_attrs",Yw="block_element_callback",Gw="block_selectors",Jw="block_url_regexes",Kw="capture_extra_attrs",Zw="capture_text_content",Qw="scroll_capture_all",eb="scroll_depth_percent_checkpoints",tb="click",rb="dead_click",nb="input",ib="pageview",ob="rage_click",sb="scroll",ab="page_leave",cb="submit",ub={};ub[Ww]=[],ub[Vw]=[],ub[Xw]=[],ub[Yw]=null,ub[Gw]=[],ub[Jw]=[],ub[Kw]=[],ub[Zw]=!1,ub[Qw]=!1,ub[eb]=[25,50,75,100],ub[tb]=!0,ub[rb]=!0,ub[nb]=!0,ub[ib]=zw,ub[ob]=!0,ub[sb]=!0,ub[ab]=!1,ub[cb]=!0;var lb={$mp_autocapture:!0},hb="$mp_click",db="$mp_dead_click",pb="$mp_input_change",fb="$mp_rage_click",mb="$mp_scroll",gb="$mp_submit",vb="$mp_page_leave",yb=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};yb.prototype.init=function(){yw()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):ow.critical("Autocapture unavailable: missing required DOM APIs")},yb.prototype.getFullConfig=function(){var e=this.mp.get_config(Uw);return e?kv.isObject(e)?kv.extend({},ub,e):ub:{}},yb.prototype.getConfig=function(e){return this.getFullConfig()[e]},yb.prototype.currentUrlBlocked=function(){var e,t=kv.info.currentUrl(),r=this.getConfig(Vw)||[];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(I_){return ow.critical("Error while checking block URL regex: "+i,I_),!0}}if(!n)return!0}var o=this.getConfig(Jw)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(I_){return ow.critical("Error while checking block URL regex: "+o[e],I_),!0}return!1},yb.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Uw)?this.getConfig(ib):this.mp.get_config(Fw)},yb.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===hb&&!this.getConfig(tb)||t===fb&&!this._getClickTrackingConfig(ob)||t===db&&!this._getClickTrackingConfig(rb)),n=lw(e,{allowElementCallback:this.getConfig($w),allowSelectors:this.getConfig(Ww),blockAttrs:this.getConfig(Xw),blockElementCallback:this.getConfig(Yw),blockSelectors:this.getConfig(Gw),captureExtraAttrs:this.getConfig(Kw),captureTextContent:this.getConfig(Zw),capturedForHeatMap:r});n&&(kv.extend(n,lb),this.mp.track(t,n))}},yb.prototype.initPageListeners=function(){if(_i.removeEventListener(qy,this.listenerPopstate),_i.removeEventListener(jy,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(ab)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){_i.dispatchEvent(new Event(zy))},this.listenerHashchange=function(){_i.dispatchEvent(new Event(zy))},_i.addEventListener(qy,this.listenerPopstate),_i.addEventListener(jy,this.listenerHashchange);var e=_i.history.pushState;"function"===typeof e&&(_i.history.pushState=function(t,r,n){e.call(_i.history,t,r,n),_i.dispatchEvent(new Event(zy))});var t=_i.history.replaceState;"function"===typeof t&&(_i.history.replaceState=function(e,r,n){t.call(_i.history,e,r,n),_i.dispatchEvent(new Event(zy))})}},yb.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},yb.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(ab)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(dv.documentElement.clientHeight,_i.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=kv.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||kv.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(dv.documentElement.clientWidth,_i.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},lb);this.mp.track(vb,s,{transport:"sendBeacon"})}},yb.prototype._initScrollDepthTracking=function(){if(_i.removeEventListener($y,this.listenerScrollDepth),_i.removeEventListener(Hy,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ow.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(dv.documentElement.clientHeight,_i.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(dv.documentElement.clientHeight,_i.innerHeight||0)+_i.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=dv.body.scrollHeight}}.bind(this),t=Sw(e);this.listenerScrollDepth=t.listener,_i.addEventListener(t.eventType,this.listenerScrollDepth)}},yb.prototype.initClickTracking=function(){_i.removeEventListener(Ny,this.listenerClick),(this.getConfig(tb)||this.mp.get_config("record_heatmap_data"))&&(ow.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(tb)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,hb)}.bind(this),_i.addEventListener(Ny,this.listenerClick))},yb.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(rb);e||this.mp.get_config("record_heatmap_data")?(ow.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new jw(function(e){this.trackDomEvent(e,db)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(rb);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=Rw),this._deadClickTracker.trackClick(e,r)}}.bind(this),_i.addEventListener(Ny,this.listenerDeadClick))):this.stopDeadClickTracking()},yb.prototype.initInputTracking=function(){_i.removeEventListener(By,this.listenerChange),this.getConfig(nb)&&(ow.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(nb)&&this.trackDomEvent(e,pb)}.bind(this),_i.addEventListener(By,this.listenerChange))},yb.prototype.initPageviewTracking=function(){if(_i.removeEventListener(zy,this.listenerLocationchange),this.pageviewTrackingConfig()){ow.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(lb)),t&&(e=kv.info.currentUrl()),this.listenerLocationchange=Av(function(){if(!this.currentUrlBlocked()){var t=kv.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===zw?r=t!==e:i===qw?r=t.split("#")[0]!==e.split("#")[0]:i===Hw&&(r=n),r){var o=this.mp.track_pageview(lb);o&&(e=t),n&&(this.lastScrollCheckpoint=0,ow.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),_i.addEventListener(zy,this.listenerLocationchange)}},yb.prototype.initRageClickTracking=function(){_i.removeEventListener(Ny,this.listenerRageClick);var e=this._getClickTrackingConfig(ob);(e||this.mp.get_config("record_heatmap_data"))&&(ow.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Mw),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(ob);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e["pageX"],e["pageY"],t)&&this.trackDomEvent(e,fb))}.bind(this),_i.addEventListener(Ny,this.listenerRageClick))},yb.prototype.initScrollTracking=function(){if(_i.removeEventListener(Hy,this.listenerScroll),_i.removeEventListener($y,this.listenerScroll),this.getConfig(sb)){ow.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(sb)&&!this.currentUrlBlocked()){var e=this.getConfig(Qw),t=(this.getConfig(eb)||[]).slice().sort(function(e,t){return e-t}),r=_i.scrollY,n=kv.extend({$scroll_top:r},lb);try{var i=dv.body.scrollHeight,o=Math.round(r/(i-_i.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(I_){ow.critical("Error while calculating scroll percentage",I_)}e&&this.mp.track(mb,n)}}.bind(this),t=Sw(e);this.listenerScroll=t.listener,_i.addEventListener(t.eventType,this.listenerScroll)}},yb.prototype.initSubmitTracking=function(){_i.removeEventListener(Vy,this.listenerSubmit),this.getConfig(cb)&&(ow.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(cb)&&this.trackDomEvent(e,gb)}.bind(this),_i.addEventListener(Vy,this.listenerSubmit))},yb.prototype.initPageLeaveTracking=function(){if(dv.removeEventListener(Yy,this.listenerPageLeaveVisibilitychange),_i.removeEventListener(zy,this.listenerPageLeaveLocationchange),_i.removeEventListener(Fy,this.listenerPageLoad),this.getConfig(ab)||this.mp.get_config("record_heatmap_data")){ow.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=kv.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=dv.body.scrollHeight}.bind(this),_i.addEventListener(Fy,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Av(function(t){if(!this.currentUrlBlocked()){var r=kv.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(dv.documentElement.clientHeight,_i.innerHeight||0),this.previousScrollHeight=dv.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),_i.addEventListener(zy,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){dv.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),dv.addEventListener(Yy,this.listenerPageLeaveVisibilitychange)}},yb.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(_i.removeEventListener(Ny,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Ev(yb);var wb=xv("flags"),bb="flags",_b="context",kb={};kb[_b]={};var Sb=function(e){this.fetch=_i["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};Sb.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):wb.critical("Feature Flags unavailable: missing minimum required APIs")},Sb.prototype.getFullConfig=function(){var e=this.getMpConfig(bb);return e?kv.isObject(e)?kv.extend({},kb,e):kb:{}},Sb.prototype.getConfig=function(e){return this.getFullConfig()[e]},Sb.prototype.isSystemEnabled=function(){return!!this.getMpConfig(bb)},Sb.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return wb.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(bb);kv.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(_b);return r[_b]=kv.extend({},n,e),this.setMpConfig(bb,r),this.fetchFlags()},Sb.prototype.areFlagsReady=function(){return this.isSystemEnabled()||wb.error("Feature Flags not enabled"),!!this.flags},Sb.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Fv();wb.log("Fetching flags for distinct ID: "+e);var n=kv.extend({distinct_id:e,device_id:t},this.getConfig(_b)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",tv.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(_i,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;kv.each(t,function(e,t){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.flags=n,this._traceparent=r}.bind(this)).catch(function(e){this.markFetchComplete(),wb.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),wb.error(e)}.bind(this)),this.fetchPromise},Sb.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):wb.error("Fetch in progress started time not set, cannot mark fetch complete")},Sb.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return wb.error(e),t}):new Promise(function(e){wb.critical("Feature Flags not initialized"),e(t)})},Sb.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return wb.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(wb.log('No flag found: "'+e+'"'),t)},Sb.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return wb.error(e),t})},Sb.prototype.getFeatureData=function(e,t){return wb.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)},Sb.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},Sb.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return wb.error(e),t})},Sb.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(wb.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Sb.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)}},Sb.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},Ev(Sb),Sb.prototype["are_flags_ready"]=Sb.prototype.areFlagsReady,Sb.prototype["get_variant"]=Sb.prototype.getVariant,Sb.prototype["get_variant_sync"]=Sb.prototype.getVariantSync,Sb.prototype["get_variant_value"]=Sb.prototype.getVariantValue,Sb.prototype["get_variant_value_sync"]=Sb.prototype.getVariantValueSync,Sb.prototype["is_enabled"]=Sb.prototype.isEnabled,Sb.prototype["is_enabled_sync"]=Sb.prototype.isEnabledSync,Sb.prototype["update_context"]=Sb.prototype.updateContext,Sb.prototype["get_feature_data"]=Sb.prototype.getFeatureData;var Cb=function(){};Cb.prototype.create_properties=function(){},Cb.prototype.event_handler=function(){},Cb.prototype.after_track_handler=function(){},Cb.prototype.init=function(e){return this.mp=e,this},Cb.prototype.track=function(e,t,r,n){var i=this,o=kv.dom_query(e);if(0!==o.length)return kv.each(o,function(e){kv.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;Sv.error("The DOM query ("+e+") returned 0 elements")},Cb.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))}},Cb.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):kv.extend({},e),r};var xb=function(){this.override_event="click"};kv.inherit(xb,Cb),xb.prototype.create_properties=function(e,t){var r=xb.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},xb.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()},xb.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Ab=function(){this.override_event="submit"};kv.inherit(Ab,Cb),Ab.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Ab.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Eb="$set",Ib="$set_once",Ob="$unset",Tb="$add",Mb="$append",Pb="$union",Rb="$remove",Db="$delete",Lb={set_action:function(e,t){var r={},n={};return kv.isObject(e)?kv.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Eb]=n,r},unset_action:function(e){var t={},r=[];return kv.isArray(e)||(e=[e]),kv.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Ob]=r,t},set_once_action:function(e,t){var r={},n={};return kv.isObject(e)?kv.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ib]=n,r},union_action:function(e,t){var r={},n={};return kv.isObject(e)?kv.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=kv.isArray(e)?e:[e])},this):n[e]=kv.isArray(t)?t:[t],r[Pb]=n,r},append_action:function(e,t){var r={},n={};return kv.isObject(e)?kv.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Mb]=n,r},remove_action:function(e,t){var r={},n={};return kv.isObject(e)?kv.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Rb]=n,r},delete_action:function(){var e={};return e[Db]="",e}},Bb=function(){};kv.extend(Bb.prototype,Lb),Bb.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Bb.prototype.set=ay(function(e,t,r){var n=this.set_action(e,t);return kv.isObject(e)&&(r=t),this._send_request(n,r)}),Bb.prototype.set_once=ay(function(e,t,r){var n=this.set_once_action(e,t);return kv.isObject(e)&&(r=t),this._send_request(n,r)}),Bb.prototype.unset=ay(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Bb.prototype.union=ay(function(e,t,r){kv.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Bb.prototype["delete"]=ay(function(e){var t=this.delete_action();return this._send_request(t,e)}),Bb.prototype.remove=ay(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Bb.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=kv.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)},Bb.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Bb.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Bb.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Bb.prototype["remove"]=Bb.prototype.remove,Bb.prototype["set"]=Bb.prototype.set,Bb.prototype["set_once"]=Bb.prototype.set_once,Bb.prototype["union"]=Bb.prototype.union,Bb.prototype["unset"]=Bb.prototype.unset,Bb.prototype["toString"]=Bb.prototype.toString;var Nb=function(){};kv.extend(Nb.prototype,Lb),Nb.prototype._init=function(e){this._mixpanel=e},Nb.prototype.set=sy(function(e,t,r){var n=this.set_action(e,t);return kv.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[Eb]=kv.extend({},kv.info.people_properties(),n[Eb]),this._send_request(n,r)}),Nb.prototype.set_once=sy(function(e,t,r){var n=this.set_once_action(e,t);return kv.isObject(e)&&(r=t),this._send_request(n,r)}),Nb.prototype.unset=sy(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Nb.prototype.increment=sy(function(e,t,r){var n={},i={};return kv.isObject(e)?(kv.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Sv.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(kv.isUndefined(t)&&(t=1),i[e]=t),n[Tb]=i,this._send_request(n,r)}),Nb.prototype.append=sy(function(e,t,r){kv.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Nb.prototype.remove=sy(function(e,t,r){kv.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Nb.prototype.union=sy(function(e,t,r){kv.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Nb.prototype.track_charge=sy(function(){Sv.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Nb.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Nb.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Sv.error("mixpanel.people.delete_user() requires you to call identify() first")},Nb.prototype.toString=function(){return this._mixpanel.toString()+".people"},Nb.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=kv.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),kv.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),kv.truncate(o,255))},Nb.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Nb.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Nb.prototype._enqueue=function(e){Eb in e?this._mixpanel["persistence"]._add_to_people_queue(Eb,e):Ib in e?this._mixpanel["persistence"]._add_to_people_queue(Ib,e):Ob in e?this._mixpanel["persistence"]._add_to_people_queue(Ob,e):Tb in e?this._mixpanel["persistence"]._add_to_people_queue(Tb,e):Mb in e?this._mixpanel["persistence"]._add_to_people_queue(Mb,e):Rb in e?this._mixpanel["persistence"]._add_to_people_queue(Rb,e):Pb in e?this._mixpanel["persistence"]._add_to_people_queue(Pb,e):Sv.error("Invalid call to _enqueue():",e)},Nb.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=kv.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;kv.isUndefined(o)||!kv.isObject(o)||kv.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),kv.isUndefined(r)||r(t,n)}))},Nb.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Eb,this.set,e),this._flush_one_queue(Ib,this.set_once,n),this._flush_one_queue(Ob,this.unset,o,function(e){return kv.keys(e)}),this._flush_one_queue(Tb,this.increment,t),this._flush_one_queue(Pb,this.union,i);var c=this._mixpanel["persistence"].load_queue(Mb);if(!kv.isUndefined(c)&&kv.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(Mb,u),kv.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(Mb),u=c.pop(),a._mixpanel["persistence"].save(),kv.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(Rb);if(!kv.isUndefined(d)&&kv.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(Rb,p),kv.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(Rb),p=d.pop(),a._mixpanel["persistence"].save(),kv.isEmptyObject(p)||a.remove(p,f)},Nb.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Nb.prototype["set"]=Nb.prototype.set,Nb.prototype["set_once"]=Nb.prototype.set_once,Nb.prototype["unset"]=Nb.prototype.unset,Nb.prototype["increment"]=Nb.prototype.increment,Nb.prototype["append"]=Nb.prototype.append,Nb.prototype["remove"]=Nb.prototype.remove,Nb.prototype["union"]=Nb.prototype.union,Nb.prototype["track_charge"]=Nb.prototype.track_charge,Nb.prototype["clear_charges"]=Nb.prototype.clear_charges,Nb.prototype["delete_user"]=Nb.prototype.delete_user,Nb.prototype["toString"]=Nb.prototype.toString;var jb,Ub="__mps",Fb="__mpso",zb="__mpus",qb="__mpa",Hb="__mpap",$b="__mpr",Wb="__mpu",Vb="$people_distinct_id",Xb="__alias",Yb="__timers",Gb=[Ub,Fb,zb,qb,Hb,$b,Wb,Vb,Xb,Yb],Jb=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&&(Sv.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&kv.localStorage.is_supported()?this.storage=kv.localStorage:this.storage=kv.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Jb.prototype.properties=function(){var e={};return this.load(),kv.each(this["props"],function(t,r){kv.include(Gb,r)||(e[r]=t)}),e},Jb.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=kv.extend({},e))}},Jb.prototype.upgrade=function(){var e,t;this.storage===kv.localStorage?(e=kv.cookie.parse(this.name),kv.cookie.remove(this.name),kv.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===kv.cookie&&(t=kv.localStorage.parse(this.name),kv.localStorage.remove(this.name),t&&this.register_once(t))},Jb.prototype.save=function(){this.disabled||this.storage.set(this.name,Vv(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Jb.prototype.load_prop=function(e){return this.load(),this["props"][e]},Jb.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Jb.prototype.clear=function(){this.remove(),this["props"]={}},Jb.prototype.register_once=function(e,t,r){return!!kv.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),kv.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},Jb.prototype.register=function(e,t){return!!kv.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),kv.extend(this["props"],e),this.save(),!0)},Jb.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},Jb.prototype.update_search_keyword=function(e){this.register(kv.info.searchInfo(e))},Jb.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:kv.info.referringDomain(e)||"$direct"},"")},Jb.prototype.get_referrer_info=function(){return kv.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},Jb.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"])},Jb.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Jb.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Jb.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Jb.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Jb.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Jb.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Jb.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Eb),o=this._get_or_create_queue(Ib),s=this._get_or_create_queue(Ob),a=this._get_or_create_queue(Tb),c=this._get_or_create_queue(Pb),u=this._get_or_create_queue(Rb,[]),l=this._get_or_create_queue(Mb,[]);r===Ub?(kv.extend(i,n),this._pop_from_people_queue(Tb,n),this._pop_from_people_queue(Pb,n),this._pop_from_people_queue(Ob,n)):r===Fb?(kv.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Ob,n)):r===zb?kv.each(n,function(e){kv.each([i,o,a,c],function(t){e in t&&delete t[e]}),kv.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===qb?(kv.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(Ob,n)):r===Wb?(kv.each(n,function(e,t){kv.isArray(e)&&(t in c||(c[t]=[]),kv.each(e,function(e){kv.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Ob,n)):r===$b?(u.push(n),this._pop_from_people_queue(Mb,n)):r===Hb&&(l.push(n),this._pop_from_people_queue(Ob,n)),Sv.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Sv.log(t),this.save()},Jb.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];kv.isUndefined(r)||kv.each(t,function(t,n){e===Mb||e===Rb?kv.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Jb.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Jb.prototype._get_queue_key=function(e){return e===Eb?Ub:e===Ib?Fb:e===Ob?zb:e===Tb?qb:e===Mb?Hb:e===Rb?$b:e===Pb?Wb:void Sv.error("Invalid queue:",e)},Jb.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=kv.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},Jb.prototype.set_event_timer=function(e,t){var r=this.load_prop(Yb)||{};r[e]=t,this["props"][Yb]=r,this.save()},Jb.prototype.remove_event_timer=function(e){var t=this.load_prop(Yb)||{},r=t[e];return kv.isUndefined(r)||(delete this["props"][Yb][e],this.save()),r};var Kb,Zb=function(e,t){throw new Error(e+" not available in this build.")},Qb=0,e_=1,t_=function(e){return e},r_="mixpanel",n_="base64",i_="json",o_="$device:",s_=_i.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,a_=!s_&&-1===mv.indexOf("MSIE")&&-1===mv.indexOf("Mozilla"),c_=null;hv["sendBeacon"]&&(c_=function(){return hv["sendBeacon"].apply(hv,arguments)});var u_={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},l_={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:u_,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:n_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Wv,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Wv,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_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:rv,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},h_=!1,d_=function(){},p_=function(e,t,r){var n,i=r===r_?Kb:Kb[r];if(i&&jb===Qb)n=i;else{if(i&&!kv.isArray(i))return void Sv.error("You have already initialized "+r);n=new d_}if(n._cached_groups={},n._init(e,t,r),n["people"]=new Nb,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=kv.info.campaignParams(null),s={},a=!1;kv.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}return tv.DEBUG=tv.DEBUG||n.get_config("debug"),!kv.isUndefined(i)&&kv.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};d_.prototype.init=function(e,t,r){if(kv.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==r_){var n=p_(e,t,r);return Kb[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},d_.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"]||l_["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=i_)}if(this.set_config(kv.extend({},l_,n,t,{name:r,token:e,callback_fn:(r===r_?r:r_+"."+r)+"._jsc"})),this["_jsc"]=Wv,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(kv.localStorage.is_supported(!0)&&s_){if(this.init_batchers(),c_&&_i.addEventListener){var o=kv.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);_i.addEventListener("pagehide",function(e){e["persisted"]&&o()}),_i.addEventListener("visibilitychange",function(){"hidden"===dv["visibilityState"]&&o()})}}else this._batch_requests=!1,Sv.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),kv.each(this.get_batcher_configs(),function(e){Sv.log("Clearing batch queue "+e.queue_key),kv.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new Jb(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=kv.UUID();this.get_distinct_id()||this.register_once({distinct_id:o_+s,$device_id:s},""),this.flags=new Sb({getFullApiRoute:kv.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:kv.bind(this.get_config,this),setConfigFunc:kv.bind(this.set_config,this),getPropertyFunc:kv.bind(this.get_property,this),trackingFunc:kv.bind(this.track,this)}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new yb(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},d_.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Sv.log("Tab ID initialization skipped due to disable_persistence config");else if(kv.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;!kv.sessionStorage.get(r)&&kv.sessionStorage.get(t)||kv.sessionStorage.set(t,"$tab-"+kv.UUID()),kv.sessionStorage.set(r,"1"),this.tab_id=kv.sessionStorage.get(t),_i.addEventListener("beforeunload",function(){kv.sessionStorage.remove(r)})}catch(I_){this.report_error("Error initializing tab id",I_)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},d_.prototype.get_tab_id=function(){return this.tab_id||null},d_.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Sv.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Qv(Jv),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(xy(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(kv.bind(function(e){this.report_error("Error checking recording registry",e)},this))},d_.prototype._check_and_start_session_recording=oy(function(e){if(_i["MutationObserver"]){var t=kv.bind(function(e){var t=kv.bind(function(){this._recorder=this._recorder||new _i["__mp_recorder"](this),this._recorder["resumeRecording"](e)},this);kv.isUndefined(_i["__mp_recorder"])?Zb(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 Sv.critical("Browser does not support MutationObserver; skipping session recording")}),d_.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},d_.prototype.stop_session_recording=function(){return this._recorder?this._recorder["stopRecording"]():Promise.resolve()},d_.prototype.pause_session_recording=function(){return this._recorder?this._recorder["pauseRecording"]():Promise.resolve()},d_.prototype.resume_session_recording=function(){return this._recorder?this._recorder["resumeRecording"]():Promise.resolve()},d_.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},d_.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e["$mp_replay_id"]=t),e},d_.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var r=kv.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},d_.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},d_.prototype.__get_recorder=function(){return this._recorder},d_.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=kv.info.campaignParams(null);kv.each(e,function(e,t){this.unregister(t)}.bind(this))}},d_.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(dv.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(kv.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(dv.referrer)},d_.prototype._dom_loaded=function(){kv.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||kv.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},d_.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(!h_)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},d_.prototype._prepare_callback=function(e,t){if(kv.isUndefined(e))return null;if(s_){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},d_.prototype._send_request=function(e,t,r,n){var i=!0;if(a_)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||!kv.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=kv.extend(o,r||{}),s_||(r.method="GET");var a="POST"===r.method,c=c_&&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),s_||(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"]),kv.extend(t,this.get_config("api_extra_query_params")),e+="?"+kv.HTTPBuildQuery(t);var l=this;if("img"in t){var h=dv.createElement("img");h.src=e,dv.body.appendChild(h)}else if(c){try{i=c_(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(s_)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"),kv.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=kv.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=dv.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=dv.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},d_.prototype._execute_array=function(e){var t,r=[],n=[],i=[];kv.each(e,function(e){e&&(t=e[0],kv.isArray(t)?i.push(e):"function"===typeof e?e.call(this):kv.isArray(e)&&"alias"===t?r.push(e):kv.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){kv.each(e,function(e){if(kv.isArray(e[0])){var r=t;kv.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)},d_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},d_.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},d_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=kv.bind(function(e){return new Cy(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:kv.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:kv.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:kv.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()},d_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,kv.each(this.request_batchers,function(e){e.start()}))},d_.prototype.stop_batch_senders=function(){this._batch_requests=!1,kv.each(this.request_batchers,function(e){e.stop(),e.clear()})},d_.prototype.push=function(e){this._execute_array([e])},d_.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},d_.prototype._encode_data_for_request=function(e){var t=Vv(e);return this.get_config("api_payload_format")===n_&&(t=kv.base64Encode(t)),{data:t}},d_.prototype._track_or_batch=function(e,t){var r=kv.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Wv;var a=!0,c=kv.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Sv.log("MIXPANEL REQUEST:"),Sv.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},d_.prototype.track=oy(function(e,t,r,n){n||"function"!==typeof r||(n=r,r=null),r=r||{};var i=r["transport"];i&&(r.transport=i);var o=r["send_immediately"];if("function"!==typeof n&&(n=Wv),kv.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=kv.extend({},t),t["token"]=this.get_config("token");var s=this["persistence"].remove_event_timer(e);if(!kv.isUndefined(s)){var a=(new Date).getTime()-s;t["$duration"]=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?kv.info.marketingParams():{};t=kv.extend({},kv.info.properties({mp_loader:this.get_config("mp_loader")}),c,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");kv.isArray(u)?kv.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t},h=this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n);return h}n(0)}}),d_.prototype.set_group=oy(function(e,t,r){kv.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),d_.prototype.add_group=oy(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)}),d_.prototype.remove_group=oy(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)}),d_.prototype.track_with_groups=oy(function(e,t,r,n){var i=kv.extend({},t||{});return kv.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),d_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},d_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},d_.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 Bb,n._init(this,e,t),this._cached_groups[r]=n),n},d_.prototype.track_pageview=oy(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=kv.extend(kv.info.mpPageViewProperties(),kv.info.campaignParams(),kv.info.clickParams()),i=kv.extend({},n,e);return this.track(r,i)}),d_.prototype.track_links=function(){return this._track_dom.call(this,xb,arguments)},d_.prototype.track_forms=function(){return this._track_dom.call(this,Ab,arguments)},d_.prototype.time_event=function(e){kv.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 f_={persistent:!0},m_=function(e){var t;return t=kv.isObject(e)?e:kv.isUndefined(e)?{}:{days:e},kv.extend({},f_,t)};d_.prototype.register=function(e,t){var r=m_(t);r["persistent"]?this["persistence"].register(e,r["days"]):kv.extend(this.unpersisted_superprops,e)},d_.prototype.register_once=function(e,t,r){var n=m_(r);n["persistent"]?this["persistence"].register_once(e,t,n["days"]):("undefined"===typeof t&&(t="None"),kv.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},d_.prototype.unregister=function(e,t){t=m_(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e]},d_.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},d_.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"===typeof e&&0===e.indexOf(o_))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(Xb)&&(this.unregister(Xb),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},d_.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=kv.UUID();this.register_once({distinct_id:o_+e,$device_id:e},""),this._check_and_start_session_recording()},d_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},d_.prototype.alias=function(e,t){if(e===this.get_property(Vb))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return kv.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Xb,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)},d_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},d_.prototype.set_config=function(e){if(kv.isObject(e)){kv.extend(this["config"],e);var t=e["batch_size"];t&&kv.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"]),tv.DEBUG=tv.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},d_.prototype.get_config=function(e){return this["config"][e]},d_.prototype._run_hook=function(e){var t=(this["config"]["hooks"][e]||t_).apply(this,av.call(arguments,1));return"undefined"===typeof t&&(this.report_error(e+" hook did not return a value"),t=null),t},d_.prototype.get_property=function(e){return this["persistence"].load_prop([e])},d_.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},d_.prototype.toString=function(){var e=this.get_config("name");return e!==r_&&(e=r_+"."+e),e},d_.prototype._event_is_disabled=function(e){return kv.isBlockedUA(mv)||this._flags.disable_all_events||kv.include(this.__disabled_events,e)},d_.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&kv.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")&&!kv.cookie.get("mp_optout")||(kv.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},d_.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()},d_.prototype._gdpr_call_func=function(e,t){return t=kv.extend({track:kv.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),kv.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"]})},d_.prototype.opt_in_tracking=function(e){e=kv.extend({enable_persistence:!0},e),this._gdpr_call_func(ty,e),this._gdpr_update_persistence(e)},d_.prototype.opt_out_tracking=function(e){e=kv.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(ry,e),this._gdpr_update_persistence(e)},d_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ny,e)},d_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(iy,e)},d_.prototype.clear_opt_in_out_tracking=function(e){e=kv.extend({enable_persistence:!0},e),this._gdpr_call_func(cy,e),this._gdpr_update_persistence(e)},d_.prototype.report_error=function(e,t){Sv.error.apply(Sv.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Sv.error(t)}},d_.prototype["init"]=d_.prototype.init,d_.prototype["reset"]=d_.prototype.reset,d_.prototype["disable"]=d_.prototype.disable,d_.prototype["time_event"]=d_.prototype.time_event,d_.prototype["track"]=d_.prototype.track,d_.prototype["track_links"]=d_.prototype.track_links,d_.prototype["track_forms"]=d_.prototype.track_forms,d_.prototype["track_pageview"]=d_.prototype.track_pageview,d_.prototype["register"]=d_.prototype.register,d_.prototype["register_once"]=d_.prototype.register_once,d_.prototype["unregister"]=d_.prototype.unregister,d_.prototype["identify"]=d_.prototype.identify,d_.prototype["alias"]=d_.prototype.alias,d_.prototype["name_tag"]=d_.prototype.name_tag,d_.prototype["set_config"]=d_.prototype.set_config,d_.prototype["get_config"]=d_.prototype.get_config,d_.prototype["get_api_host"]=d_.prototype.get_api_host,d_.prototype["get_property"]=d_.prototype.get_property,d_.prototype["get_distinct_id"]=d_.prototype.get_distinct_id,d_.prototype["toString"]=d_.prototype.toString,d_.prototype["opt_out_tracking"]=d_.prototype.opt_out_tracking,d_.prototype["opt_in_tracking"]=d_.prototype.opt_in_tracking,d_.prototype["has_opted_out_tracking"]=d_.prototype.has_opted_out_tracking,d_.prototype["has_opted_in_tracking"]=d_.prototype.has_opted_in_tracking,d_.prototype["clear_opt_in_out_tracking"]=d_.prototype.clear_opt_in_out_tracking,d_.prototype["get_group"]=d_.prototype.get_group,d_.prototype["set_group"]=d_.prototype.set_group,d_.prototype["add_group"]=d_.prototype.add_group,d_.prototype["remove_group"]=d_.prototype.remove_group,d_.prototype["track_with_groups"]=d_.prototype.track_with_groups,d_.prototype["start_batch_senders"]=d_.prototype.start_batch_senders,d_.prototype["stop_batch_senders"]=d_.prototype.stop_batch_senders,d_.prototype["start_session_recording"]=d_.prototype.start_session_recording,d_.prototype["stop_session_recording"]=d_.prototype.stop_session_recording,d_.prototype["pause_session_recording"]=d_.prototype.pause_session_recording,d_.prototype["resume_session_recording"]=d_.prototype.resume_session_recording,d_.prototype["get_session_recording_properties"]=d_.prototype.get_session_recording_properties,d_.prototype["get_session_replay_url"]=d_.prototype.get_session_replay_url,d_.prototype["get_tab_id"]=d_.prototype.get_tab_id,d_.prototype["DEFAULT_API_ROUTES"]=u_,d_.prototype["__get_recorder"]=d_.prototype.__get_recorder,Jb.prototype["properties"]=Jb.prototype.properties,Jb.prototype["update_search_keyword"]=Jb.prototype.update_search_keyword,Jb.prototype["update_referrer_info"]=Jb.prototype.update_referrer_info,Jb.prototype["get_cross_subdomain"]=Jb.prototype.get_cross_subdomain,Jb.prototype["clear"]=Jb.prototype.clear;var g_={},v_=function(){kv.each(g_,function(e,t){t!==r_&&(Kb[t]=e)}),Kb["_"]=kv},y_=function(){Kb["init"]=function(e,t,r){if(r)return Kb[r]||(Kb[r]=g_[r]=p_(e,t,r),Kb[r]._loaded()),Kb[r];var n=Kb;g_[r_]?n=g_[r_]:e&&(n=p_(e,t,r_),n._loaded(),g_[r_]=n),Kb=n,jb===e_&&(_i[r_]=Kb),v_()}},w_=function(){function e(){e.done||(e.done=!0,h_=!0,a_=!1,kv.each(g_,function(e){e._dom_loaded()}))}function t(){try{dv.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(dv.addEventListener)"complete"===dv.readyState?e():dv.addEventListener("DOMContentLoaded",e,!1);else if(dv.attachEvent){dv.attachEvent("onreadystatechange",e);var r=!1;try{r=null===_i.frameElement}catch(n){}dv.documentElement.doScroll&&r&&t()}kv.register_event(_i,"load",e,!0)};function b_(e){return Zb=e,jb=Qb,Kb=new d_,y_(),Kb["init"](),w_(),Kb}function __(e,t){t()}var k_=b_(__);const S_="@mixpanelIdentificationData",C_=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},x_={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(S_,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(S_),hasMixpanelIdentificationData:()=>!!x_.getMixpanelIdentificationData(),init:(e,t)=>{k_.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||x_.getMixpanelIdentificationData(),o=C_(i);if("production"===e&&o){x_.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}`),k_.identify(r),k_.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&k_.track(t,r)}};var A_=x_,E_={}}(),__webpack_exports__}()});
|