1import{cm as ao,cn as fd,co as ld}from"./index-CKoX0LkU.js";import{a3 as Ii,a4 as Aa}from"./home-startup-core-thq0voGQ.js";import"./ui-icons-DZ-xAQXe.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="0e991523-052b-4a16-8d51-56c478433e2d",t._sentryDebugIdIdentifier="sentry-dbid-0e991523-052b-4a16-8d51-56c478433e2d")}catch{}})();var Cr={},E;if(typeof window>"u"){var Bu={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Bu,referrer:""},screen:{width:0,height:0},location:Bu,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var Ne={DEBUG:!1,LIB_VERSION:"2.81.0"},We="__mp_targeting",ls="__mp_recorder",hd="__MP_RECORDER_FILENAME__",$f="__MP_TARGETING_FILENAME__";function zu(t,n){(n==null||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function qu(t,n,i,e,r,o,s){try{var a=t[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function uo(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){qu(o,e,r,s,a,"next",u)}function a(u){qu(o,e,r,s,a,"throw",u)}s(void 0)})}}function vi(t,n,i){return Nf()?vi=Reflect.construct:vi=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&tn(c,s.prototype),c},vi.apply(null,arguments)}function pd(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ue(t,n,i){return n&&pd(t.prototype,n),t}function z(){return z=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},z.apply(this,arguments)}function hs(t){return hs=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},hs(t)}function fe(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&tn(t,n)}function T(t,n){return n!=null&&typeof Symbol<"u"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function dd(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Jt(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,o;for(o=0;o<e.length;o++)r=e[o],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function tn(t,n){return tn=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},tn(t,n)}function P(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function vd(t,n){if(t){if(typeof t=="string")return zu(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return zu(t,n)}}function rn(t){var n=typeof Map=="function"?new Map:void 0;return rn=function(e){if(e===null||!dd(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return vi(e,arguments,hs(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),tn(r,e)},rn(t)}function Nf(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nf=function(){return!!t})()}function I(t,n){var i=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=vd(t))||n){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 Xt(t,n){var i,e,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]}
vendor: 38,460 bytes, lines 1-18
1,trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return u([c,f])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,e&&(r=c[0]&2?e.return:c[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;switch(e=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,e=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(t,s)}catch(f){c=[6,f],e=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ka(t){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var gd=Object.defineProperty,md=function(t,n,i){return n in t?gd(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},x=function(t,n,i){return md(t,(typeof n>"u"?"undefined":P(n))!=="symbol"?n+"":n,i)},Wu,yd=Object.defineProperty,_d=function(t,n,i){return n in t?yd(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Gu=function(t,n,i){return _d(t,(typeof n>"u"?"undefined":P(n))!=="symbol"?n+"":n,i)},Ee=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ee||{}),ju={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Vu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Tn={},wd=function(){return!!globalThis.Zone};function Ma(t){if(Tn[t])return Tn[t];var n=globalThis[t],i=n.prototype,e=t in ju?ju[t]:void 0,r=!!(e&&e.every(function(f){var l,h;return!!((h=(l=Object.getOwnPropertyDescriptor(i,f))==null?void 0:l.get)!=null&&h.toString().includes("[native code]"))})),o=t in Vu?Vu[t]:void 0,s=!!(o&&o.every(function(f){var l;return typeof i[f]=="function"&&((l=i[f])==null?void 0:l.toString().includes("[native code]"))}));if(r&&s&&!wd())return Tn[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?Tn[t]=c:i}catch{return i}}var No={};function Rt(t,n,i){var e,r=t+"."+String(i);if(No[r])return No[r].call(n);var o=Ma(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(No[r]=s,s.call(n)):n[i]}var Lo={};function Lf(t,n,i){var e=t+"."+String(i);if(Lo[e])return Lo[e].bind(n);var r=Ma(t),o=r[i];return typeof o!="function"?n[i]:(Lo[e]=o,o.bind(n))}function bd(t){return Rt("Node",t,"childNodes")}function Sd(t){return Rt("Node",t,"parentNode")}function Cd(t){return Rt("Node",t,"parentElement")}function Ed(t){return Rt("Node",t,"textContent")}function Id(t,n){return Lf("Node",t,"contains")(n)}function Od(t){return Lf("Node",t,"getRootNode")()}function xd(t){return!t||!("host"in t)?null:Rt("ShadowRoot",t,"host")}function Rd(t){return t.styleSheets}function Ad(t){return!t||!("shadowRoot"in t)?null:Rt("Element",t,"shadowRoot")}function kd(t,n){return Rt("Element",t,"querySelector")(n)}function Md(t,n){return Rt("Element",t,"querySelectorAll")(n)}function Td(){return Ma("MutationObserver").constructor}function Pd(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var Ae={childNodes:bd,parentNode:Sd,parentElement:Cd,textContent:Ed,contains:Id,getRootNode:Od,host:xd,styleSheets:Rd,shadowRoot:Ad,querySelector:kd,querySelectorAll:Md,mutationObserver:Td,patch:Pd};function Df(t){return t.nodeType===t.ELEMENT_NODE}function Kr(t){var n=t&&"host"in t&&"mode"in t&&Ae.host(t)||null;return!!(n&&"shadowRoot"in n&&Ae.shadowRoot(n)===t)}function Yr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function $d(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Nd(t){var n=t.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?i.push("layer"):t.layerName&&i.push("layer("+t.layerName+")"),t.supportsText&&i.push("supports("+t.supportsText+")"),t.media.length&&i.push(t.media.mediaText),i.join(" ")+";"}function ps(t){try{var n=t.rules||t.cssRules;if(!n)return null;var i=t.href;!i&&t.ownerNode&&t.ownerNode.ownerDocument&&(i=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return Ff(r,i)}).join("");return $d(e)}catch{return null}}function Ff(t,n){if(Dd(t)){var i;try{i=ps(t.styleSheet)||Nd(t)}catch{i=t.cssText}return t.styleSheet.href?Ri(i,t.styleSheet.href):i}else{var e=t.cssText;return Fd(t)&&t.selectorText.includes(":")&&(e=Ld(e)),n?Ri(e,n):e}}function Ld(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Dd(t){return"styleSheet"in t}function Fd(t){return"selectorText"in t}var Uf=(function(){function t(){Gu(this,"idNodeMap",new Map),Gu(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var o=(r=this.getMeta(e))==null?void 0:r.id;return o??-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e,r){var o=this;r===void 0&&(r=!1);var s=this.getId(e);this.idNodeMap.delete(s),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return o.removeNodeFromMap(a,r)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var o=r.id;this.idNodeMap.set(o,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var o=this.getNode(e);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Ud(){return new Uf}function Oi(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,o=t.value,s=t.maskInputFn,a=o||"",u=r&&Zt(r);return(i[e.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function Zt(t){return t.toLowerCase()}var Hu="__rrweb_original__";function Bd(t){var n=t.getContext("2d");if(!n)return!0;for(var i=50,e=0;e<t.width;e+=i)for(var r=0;r<t.height;r+=i){var o=n.getImageData,s=Hu in o?o[Hu]:o,a=new Uint32Array(s.call(n,e,r,Math.min(i,t.width-e),Math.min(i,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function xi(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Zt(n):null}function Bf(t,n){var i;try{i=new URL(t,n??window.location.href)}catch{return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),o;return(o=r==null?void 0:r[1])!=null?o:null}function zd(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var qd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Wd=/^(?:[a-z+]+:)?\/\//i,Gd=/^www\..*/i,jd=/^(data:)([^,]*),(.*)/i;function Ri(t,n){return(t||"").replace(qd,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(Wd.test(u)||Gd.test(u)||jd.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(zd(n)+u)+c+")";var f=n.split("/"),l=u.split("/");f.pop();for(var h=I(l),g;!(g=h()).done;){var v=g.value;v!=="."&&(v===".."?f.pop():f.push(v))}return"url("+c+f.join("/")+c+")"})}function Pn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Vd(t,n,i){i===void 0&&(i=!1);var e=Array.from(n.childNodes),r=[],o=0;if(e.length>1&&t&&typeof t=="string"){for(var s=Pn(t,i),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=Pn(e[u].textContent,i),f=100,l=3;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,l),1)!==-1);l++);for(;l<c.length;l++){var h=c.substring(0,l),g=s.split(h),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")v=s.indexOf(h,1);else if(g.length===1){if(h=h.substring(0,h.length-1),g=s.split(h),g.length<=1)return r.push(t),r;l=f+1}else l===c.length-1&&(v=s.indexOf(h));if(g.length>=2&&l>f){var m=e[u-1].textContent;if(m&&typeof m=="string"){var d=Pn(m).length;v=s.indexOf(h,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var y=Math.floor(v/a);y>0&&y<t.length;){if(o+=1,o>50*e.length)return r.push(t),r;var _=Pn(t.substring(0,y),i);if(_.length===v){r.push(t.substring(0,y)),t=t.substring(y),s=s.substring(v);break}else _.length<v?y+=Math.max(1,Math.floor((v-_.length)/a)):y-=Math.max(1,Math.floor((_.length-v)*a))}break}}}}return r.push(t),r}function Hd(t,n){return Vd(t,n).join("/* rr_split */")}var Kd=1,Yd=new RegExp("[^a-z0-9-_:]"),nn=-2;function zf(){return Kd++}function Jd(t){if(T(t,HTMLFormElement))return"form";var n=Zt(t.tagName);return Yd.test(n)?"div":n}var hr,Ku,Xd=/^[^ \t\n\r\u000c]+/,Zd=/^[, \t\n\r\u000c]+/;function Qd(t,n){if(n.trim()==="")return n;var i=0;function e(c){var f,l=c.exec(n.substring(i));return l?(f=l[0],i+=f.length,f):""}for(var r=[];e(Zd),!(i>=n.length);){var o=e(Xd);if(o.slice(-1)===",")o=mr(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=mr(t,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var Yu=new WeakMap;function mr(t,n){return!n||n.trim()===""?n:Ta(t,n)}function ev(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Ta(t,n){var i=Yu.get(t);if(i||(i=t.createElement("a"),Yu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function qf(t,n,i,e){return e&&(i==="src"||i==="href"&&!(n==="use"&&e[0]==="#")||i==="xlink:href"&&e[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?mr(t,e):i==="srcset"?Qd(t,e):i==="style"?Ri(e,Ta(t)):n==="object"&&i==="data"?mr(t,e):e)}function Wf(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function tv(t,n,i){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(i)return t.matches(i)}catch{}return!1}function Ai(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?Ai(Ae.parentNode(t),n,i):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return i?Ai(Ae.parentNode(t),n,i):!1}function Gf(t,n,i,e){var r;if(Df(t)){if(r=t,!Ae.childNodes(r).length)return!1}else{if(Ae.parentElement(t)===null)return!1;r=Ae.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(Ai(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch{}return!1}function rv(t,n,i){var e=t.contentWindow;if(e){var r=!1,o;try{o=e.document.readyState}catch{return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);t.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function nv(t,n,i){var e=!1,r;try{r=t.sheet}catch{return}if(!r){var o=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(o),e=!0,n()})}}function iv(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,f=n.maskTextFn,l=n.maskInputFn,h=n.dataURLOptions,g=h===void 0?{}:h,v=n.inlineImages,m=n.recordCanvas,d=n.keepIframeSrcFn,y=n.newlyAddedElement,_=y===void 0?!1:y,b=n.cssCaptured,C=b===void 0?!1:b,S=ov(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Ee.Document,childNodes:[],compatMode:t.compatMode}:{type:Ee.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Ee.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return av(t,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:l,dataURLOptions:g,inlineImages:v,recordCanvas:m,keepIframeSrcFn:d,newlyAddedElement:_,rootId:S});case t.TEXT_NODE:return sv(t,{doc:i,needsMask:s,maskTextFn:f,rootId:S,cssCaptured:C});case t.CDATA_SECTION_NODE:return{type:Ee.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Ee.Comment,textContent:Ae.textContent(t)||"",rootId:S};default:return!1}}function ov(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function sv(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=Ae.parentNode(t),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;return f?u="SCRIPT_PLACEHOLDER":o||(u=Ae.textContent(t),c&&u&&(u=Ri(u,Ta(n.doc)))),!c&&!f&&u&&i&&(u=e?e(u,Ae.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ee.Text,textContent:u||"",rootId:r}}function av(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,f=c===void 0?{}:c,l=n.inlineImages,h=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,m=v===void 0?!1:v,d=n.rootId,y=tv(t,e,r),_=Jd(t),b={},C=t.attributes.length,S=0;S<C;S++){var O=t.attributes[S];Wf(_,O.name,O.value)||(b[O.name]=qf(i,_,Zt(O.name),O.value))}if(_==="link"&&o){var k=Array.from(i.styleSheets).find(function(De){return De.href===t.href}),R=null;k&&(R=ps(k)),R&&(delete b.rel,delete b.href,b._cssText=R)}if(_==="style"&&t.sheet){var $=ps(t.sheet);$&&(t.childNodes.length>1&&($=Hd($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var q=t.value,ve=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&q?b.value=Oi({element:t,type:xi(t),tagName:_,value:q,maskInputOptions:a,maskInputFn:u}):ve&&(b.checked=ve)}if(_==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),_==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&h){if(t.__context==="2d")Bd(t)||(b.rr_dataURL=t.toDataURL(f.type,f.quality));else if(!("__context"in t)){var N=t.toDataURL(f.type,f.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var de=G.toDataURL(f.type,f.quality);N!==de&&(b.rr_dataURL=N)}}if(_==="img"&&l){hr||(hr=i.createElement("canvas"),Ku=hr.getContext("2d"));var K=t,Le=K.currentSrc||K.getAttribute("src")||"<unknown-src>",Pe=K.crossOrigin,xe=function(){K.removeEventListener("load",xe);try{hr.width=K.naturalWidth,hr.height=K.naturalHeight,Ku.drawImage(K,0,0),b.rr_dataURL=hr.toDataURL(f.type,f.quality)}catch(De){if(K.crossOrigin!=="anonymous"){K.crossOrigin="anonymous",K.complete&&K.naturalWidth!==0?xe():K.addEventListener("load",xe);return}else console.warn("Cannot inline img src="+Le+"! Error: "+De)}K.crossOrigin==="anonymous"&&(Pe?b.crossOrigin=Pe:K.removeAttribute("crossorigin"))};K.complete&&K.naturalWidth!==0?xe():K.addEventListener("load",xe)}if(_==="audio"||_==="video"){var ce=b;ce.rr_mediaState=t.paused?"paused":"played",ce.rr_mediaCurrentTime=t.currentTime,ce.rr_mediaPlaybackRate=t.playbackRate,ce.rr_mediaMuted=t.muted,ce.rr_mediaLoop=t.loop,ce.rr_mediaVolume=t.volume}if(m||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),y){var Ie=t.getBoundingClientRect(),Ft=Ie.width,He=Ie.height;b={class:b.class,rr_width:""+Ft+"px",rr_height:""+He+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Ut;try{customElements.get(_)&&(Ut=!0)}catch{}return{type:Ee.Element,tagName:_,attributes:b,childNodes:[],isSVG:ev(t)||void 0,needBlock:y,rootId:d,isCustom:Ut}}function re(t){return t==null?"":t.toLowerCase()}function uv(t,n){if(n.comment&&t.type===Ee.Comment)return!0;if(t.type===Ee.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&Bf(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(re(t.attributes.name).match(/^msapplication-tile(image|color)$/)||re(t.attributes.name)==="application-name"||re(t.attributes.rel)==="icon"||re(t.attributes.rel)==="apple-touch-icon"||re(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&re(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(re(t.attributes.property).match(/^(og|twitter|fb):/)||re(t.attributes.name).match(/^(og|twitter):/)||re(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(re(t.attributes.name)==="robots"||re(t.attributes.name)==="googlebot"||re(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(re(t.attributes.name)==="author"||re(t.attributes.name)==="generator"||re(t.attributes.name)==="framework"||re(t.attributes.name)==="publisher"||re(t.attributes.name)==="progid"||re(t.attributes.property).match(/^article:/)||re(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(re(t.attributes.name)==="google-site-verification"||re(t.attributes.name)==="yandex-verification"||re(t.attributes.name)==="csrf-token"||re(t.attributes.name)==="p:domain_verify"||re(t.attributes.name)==="verify-v1"||re(t.attributes.name)==="verification"||re(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function yr(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,f=n.inlineStylesheet,l=f===void 0?!0:f,h=n.maskInputOptions,g=h===void 0?{}:h,v=n.maskTextFn,m=n.maskInputFn,d=n.slimDOMOptions,y=n.dataURLOptions,_=y===void 0?{}:y,b=n.inlineImages,C=b===void 0?!1:b,S=n.recordCanvas,O=S===void 0?!1:S,k=n.onSerialize,R=n.onIframeLoad,$=n.iframeLoadTimeout,q=$===void 0?5e3:$,ve=n.onStylesheetLoad,N=n.stylesheetLoadTimeout,G=N===void 0?5e3:N,de=n.keepIframeSrcFn,K=de===void 0?function(){return!1}:de,Le=n.newlyAddedElement,Pe=Le===void 0?!1:Le,xe=n.cssCaptured,ce=xe===void 0?!1:xe,Ie=n.needsMask,Ft=n.preserveWhiteSpace,He=Ft===void 0?!0:Ft;if(!Ie){var Ut=Ie===void 0;Ie=Gf(t,s,a,Ut)}var De=iv(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:Ie,inlineStylesheet:l,maskInputOptions:g,maskTextFn:v,maskInputFn:m,dataURLOptions:_,inlineImages:C,recordCanvas:O,keepIframeSrcFn:K,newlyAddedElement:Pe,cssCaptured:ce});if(!De)return console.warn(t,"not serialized"),null;var mt;e.hasNode(t)?mt=e.getId(t):uv(De,d)||!He&&De.type===Ee.Text&&!De.textContent.replace(/^\s+|\s+$/gm,"").length?mt=nn:mt=zf();var J=Object.assign(De,{id:mt});if(e.add(t,J),mt===nn)return null;k&&k(t);var ur=!c;if(J.type===Ee.Element){ur=ur&&!J.needBlock,delete J.needBlock;var cr=Ae.shadowRoot(t);cr&&Yr(cr)&&(J.isShadowHost=!0)}if((J.type===Ee.Document||J.type===Ee.Element)&&ur){d.headWhitespace&&J.type===Ee.Element&&J.tagName==="head"&&(He=!1);var yt={doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:Ie,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:l,maskInputOptions:g,maskTextFn:v,maskInputFn:m,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:He,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:q,onStylesheetLoad:ve,stylesheetLoadTimeout:G,keepIframeSrcFn:K,cssCaptured:!1};if(!(J.type===Ee.Element&&J.tagName==="textarea"&&J.attributes.value!==void 0)){J.type===Ee.Element&&J.attributes._cssText!==void 0&&typeof J.attributes._cssText=="string"&&(yt.cssCaptured=!0);for(var xn=I(Array.from(Ae.childNodes(t))),fr;!(fr=xn()).done;){var Rn=fr.value,An=yr(Rn,yt);An&&J.childNodes.push(An)}}var Br=null;if(Df(t)&&(Br=Ae.shadowRoot(t)))for(var Bt=I(Array.from(Ae.childNodes(Br))),zt;!(zt=Bt()).done;){var qt=zt.value,Wt=yr(qt,yt);Wt&&(Yr(Br)&&(Wt.isShadow=!0),J.childNodes.push(Wt))}}var Gt=Ae.parentNode(t);return Gt&&Kr(Gt)&&Yr(Gt)&&(J.isShadow=!0),J.type===Ee.Element&&J.tagName==="iframe"&&rv(t,function(){var ot=t.contentDocument;if(ot&&R){var lr=yr(ot,{doc:ot,mirror:e,blockClass:r,blockSelector:o,needsMask:Ie,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:g,maskTextFn:v,maskInputFn:m,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:He,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:q,onStylesheetLoad:ve,stylesheetLoadTimeout:G,keepIframeSrcFn:K});lr&&R(t,lr)}},q),J.type===Ee.Element&&J.tagName==="link"&&typeof J.attributes.rel=="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href=="string"&&Bf(J.attributes.href)==="css")&&nv(t,function(){if(ve){var ot=yr(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:Ie,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:g,maskTextFn:v,maskInputFn:m,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:He,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:q,onStylesheetLoad:ve,stylesheetLoadTimeout:G,keepIframeSrcFn:K});ot&&ve(t,ot)}},G),J}function cv(t,n){var i=n||{},e=i.mirror,r=e===void 0?new Uf:e,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,f=c===void 0?"rr-mask":c,l=i.maskTextSelector,h=l===void 0?null:l,g=i.inlineStylesheet,v=g===void 0?!0:g,m=i.inlineImages,d=m===void 0?!1:m,y=i.recordCanvas,_=y===void 0?!1:y,b=i.maskAllInputs,C=b===void 0?!1:b,S=i.maskTextFn,O=i.maskInputFn,k=i.slimDOM,R=k===void 0?!1:k,$=i.dataURLOptions,q=i.preserveWhiteSpace,ve=i.onSerialize,N=i.onIframeLoad,G=i.iframeLoadTimeout,de=i.onStylesheetLoad,K=i.stylesheetLoadTimeout,Le=i.keepIframeSrcFn,Pe=Le===void 0?function(){return!1}:Le,xe=C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:C===!1?{password:!0}:C,ce=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return yr(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:f,maskTextSelector:h,skipChild:!1,inlineStylesheet:v,maskInputOptions:xe,maskTextFn:S,maskInputFn:O,slimDOMOptions:ce,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:q,onSerialize:ve,onIframeLoad:N,iframeLoadTimeout:G,onStylesheetLoad:de,stylesheetLoadTimeout:K,keepIframeSrcFn:Pe,newlyAddedElement:!1})}function fv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function lv(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return T(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Pa={exports:{}},ie=String,jf=function(){return{isColorSupported:!1,reset:ie,bold:ie,dim:ie,italic:ie,underline:ie,inverse:ie,hidden:ie,strikethrough:ie,black:ie,red:ie,green:ie,yellow:ie,blue:ie,magenta:ie,cyan:ie,white:ie,gray:ie,bgBlack:ie,bgRed:ie,bgGreen:ie,bgYellow:ie,bgBlue:ie,bgMagenta:ie,bgCyan:ie,bgWhite:ie}};Pa.exports=jf();Pa.exports.createColors=jf;var hv=Pa.exports,pv={},dv=Object.freeze(Object.defineProperty({__proto__:null,default:pv},Symbol.toStringTag,{value:"Module"})),ye=lv(dv),Ju=hv,Xu=ye,ds=(function(t){fe(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r<"u"&&typeof o<"u"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ju.isColorSupported),Xu&&r&&(s=Xu(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),f=String(c).length,l,h;if(r){var g=Ju.createColors(!0),v=g.bold,m=g.gray,d=g.red;l=function(y){return v(d(y))},h=function(y){return m(y)}}else l=h=function(y){return y};return a.slice(u,c).map(function(y,_){var b=u+1+_,C=" "+(" "+b).slice(-f)+" | ";if(b===o.line){var S=h(C.replace(/\d/g," "))+y.slice(0,o.column-1).replace(/[^\t]/g," ");return l(">")+h(C)+y+` 2 `+S+l("^")}return" "+h(C)+y}).join(` 3`)},i.toString=function(){var r=this.showSourceCode();return r&&(r=` 4 5`+r+` 6`),this.name+": "+this.message+r},n})(rn(Error)),$a=ds;ds.default=ds;var At={};At.isClean=Symbol("isClean");At.my=Symbol("my");var Zu={after:` 7`,beforeClose:` 8`,beforeComment:` 9`,beforeDecl:` 10`,beforeOpen:" ",beforeRule:` 11`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function vv(t){return t[0].toUpperCase()+t.slice(1)}var vs=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes(` 12`)){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s<"u"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Zu[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+vv(o);return this[c]?s=this[c](u,e):u.walk(function(f){if(s=f.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=Zu[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return r=o.raws.after,r.includes(` 13`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before<"u")return o=s.raws.before,o.includes(` 14`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before<"u")return o=s.raws.before,o.includes(` 15`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r<"u"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before<"u")return r=o.raws.before,r.includes(` 16`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between<"u")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r<"u"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before<"u"){var a=o.raws.before.split(` 17`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r<"u"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Vf=vs;vs.default=vs;var gv=Vf;function gs(t,n){var i=new gv(n);i.stringify(t)}var co=gs;gs.default=gs;var $n=At.isClean,mv=At.my,yv=$a,_v=Vf,wv=co;function ms(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r>"u"?"undefined":P(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return ms(s,i)}):(o==="object"&&r!==null&&(r=ms(r)),i[e]=r)}return i}var ys=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[$n]=!1,this[mv]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ms(this);for(var o in e)r[o]=e[o];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new yv(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[$n]){this[$n]=!1;for(var e=this;e=e.parent;)e[$n]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]===` 18`?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new _v;return o.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var f=c.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(l){return(typeof l>"u"?"undefined":P(l))==="object"&&l.toJSON?l.toJSON(null,r):l});else if((typeof c>"u"?"undefined":P(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var f=r.get(c.input);f==null&&(f=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:f,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(l){return l.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=wv),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),fo=ys;ys.default=ys;var bv=fo,_s=(function(t){fe(n,t);function n(i){var e;return i&&typeof i.value<"u"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(bv),lo=_s;_s.default=_s;var Sv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Cv=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Sv[Math.random()*64|0];return n},Ev={nanoid:Cv},Qu=ye.SourceMapConsumer,ec=ye.SourceMapGenerator,Iv=ye.existsSync,Ov=ye.readFileSync,Do=ye.dirname,xv=ye.join;function Rv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var ws=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Do(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Qu(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return Rv(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e>"u"?"undefined":P(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=Do(e),Iv(e))return this.mapFile=e,Ov(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(T(r,Qu))return ec.fromSourceMap(r).toString();if(T(r,ec))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=xv(Do(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Hf=ws;ws.default=ws;var Av=ye.SourceMapConsumer,kv=ye.SourceMapGenerator,tc=ye.fileURLToPath,Nn=ye.pathToFileURL,bs=ye.isAbsolute,Ss=ye.resolve,Mv=Ev.nanoid,Fo=ye,rc=$a,Tv=Hf,Uo=Symbol("fromOffsetCac
18he"),Pv=!!(Av&&kv),nc=!!(Ss&&bs),ki=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i>"u"||(typeof i>"u"?"undefined":P(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!nc||/^\w+:\/\//.test(e.from)||bs(e.from)?this.file=e.from:this.file=Ss(e.from)),nc&&Pv){var r=new Tv(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Mv(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r>"u"?"undefined":P(r))==="object"){var f=r,l=o;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);r=h.line,o=h.col}else r=f.line,o=f.column;if(typeof l.offset=="number"){var g=this.fromOffset(l.offset);u=g.line,c=g.col}else u=l.line,c=l.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var m=this.origin(r,o,u,c);return m?a=new rc(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new rc(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Nn&&(a.input.url=Nn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Uo])o=this[Uo];else{var s=this.css.split(` 19`);o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Uo]=o}r=o[o.length-1];var f=0;if(e>=r)f=o.length-1;else for(var l=o.length-2,h;f<l;)if(h=f+(l-f>>1),e<o[h])l=h-1;else if(e>=o[h+1])f=h+1;else{f=h;break}return{col:e-o[f]+1,line:f+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ss(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var f;bs(u.source)?f=Nn(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||Nn(this.map.mapFile));var l={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(tc)l.file=tc(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(l.source=h),l},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),ho=ki;ki.default=ki;Fo&&Fo.registerInput&&Fo.registerInput(ki);var Kf=ye.SourceMapConsumer,gi=ye.SourceMapGenerator,mi=ye.dirname,Yf=ye.relative,Jf=ye.resolve,Xf=ye.sep,ic=ye.pathToFileURL,$v=ho,Nv=!!(Kf&&gi
vendor: 36,846 bytes, lines 19-24
19),Lv=!!(mi&&Jf&&Yf&&Xf),Dv=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r=` 20`;this.css.includes(`\r 21`)&&(r=`\r 22`),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||mi(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Kf(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Lv&&Nv&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=gi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new gi({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]},n.generateString=function(){var e=this;this.css="",this.map=new gi({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(f,l,h){if(e.css+=f,l&&h!=="end"&&(a.generated.line=r,a.generated.column=o-1,l.source&&l.source.start?(a.source=e.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(r+=u.length,c=f.lastIndexOf(` 23`),o=f.length-c):o+=f.length,l&&h!=="start"){var g=l.parent||{raws:{}},v=l.type==="decl"||l.type==="atrule"&&!l.nodes;(!v||l!==g.last||g.raws.semicolon)&&(l.source&&l.source.end?(a.source=e.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=r,a.generated.column=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var o=this.opts.to?mi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=mi(Jf(o,this.mapOpts.annotation)));var s=Yf(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new $v(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(ic){var o=ic(e).toString();return this.memoizedFileURLs.set(e,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Xf==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Zf=Dv,Fv=fo,Cs=(function(t){fe(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Fv),po=Cs;Cs.default=Cs;var Qf=At.isClean,el=At.my,tl=lo,rl=po,Uv=fo,nl,Na,La,il;function ol(t){return t.map(function(n){return n.nodes&&(n.nodes=ol(n.nodes)),delete n.source,n})}function sl(t){if(t[Qf]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;sl(e)}}var lt=(function(t){fe(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,f=this.normalize(c,this.last),l=I(f),h;!(h=l()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var f;return(f=o)[s].apply(f,[].concat(u.map(function(l){return typeof l=="function"?function(h,g){return l(h.toProxy(),g)}:l})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),l=1;l<c;l++)f[l-1]=arguments[l];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var f=c.value;this.proxyOf.nodes.splice(s+1,0,f)}var l;for(var h in this.indexes)l=this.indexes[h],s<l&&(this.indexes[h]=l+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),f;!(f=c()).done;){var l=f.value;this.proxyOf.nodes.splice(s,0,l)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=ol(nl(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var f=I(r),l;!(l=f()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new tl(r)]}else if(r.selector)r=[new Na(r)];else if(r.name)r=[new La(r)];else if(r.text)r=[new rl(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[el]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Qf]&&sl(v),typeof v.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,f=this.normalize(c,this.first,"prepend").reverse(),l=I(f),h;!(h=l()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+f.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ue(n,[{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]}}]),n})(Uv);lt.registerParse=function(t){nl=t};lt.registerRule=function(t){Na=t};lt.registerAtRule=function(t){La=t};lt.registerRoot=function(t){il=t};var nr=lt;lt.default=lt;lt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,La.prototype):t.type==="rule"?Object.setPrototypeOf(t,Na.prototype):t.type==="decl"?Object.setPrototypeOf(t,tl.prototype):t.type==="comment"?Object.setPrototypeOf(t,rl.prototype):t.type==="root"&&Object.setPrototypeOf(t,il.prototype),t[el]=!0,t.nodes&&t.nodes.forEach(function(n){lt.rebuild(n)})};var Bv=nr,al,ul,on=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new al(new ul,this,r);return o.stringify()},n})(Bv);on.registerLazyResult=function(t){al=t};on.registerProcessor=function(t){ul=t};var Da=on;on.default=on;var Es=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in e)this[o]=e[o]}var n=t.prototype;return n.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},t})(),cl=Es;Es.default=Es;var zv=cl,Is=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new zv(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ue(t,[{key:"content",get:function(){return this.css}}]),t})(),Fa=Is;Is.default=Is;var Bo=39,oc=34,Ln=92,sc=47,Dn=10,zr=32,Fn=12,Un=9,Bn=13,qv=91,Wv=93,Gv=40,jv=41,Vv=123,Hv=125,Kv=59,Yv=42,Jv=58,Xv=64,zn=/[\t\n\f\r "#'()/;[\\\]{}]/g,qn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Zv=/.[\r\n"'(/\\]/,ac=/[\da-f]/i,Qv=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,f,l,h,g,v,m=e.length,d=0,y=[],_=[];function b(){return d}function C(R){throw n.error("Unclosed "+R,d)}function S(){return _.length===0&&d>=m}function O(R){if(_.length)return _.pop();if(!(d>=m)){var $=R?R.ignoreUnclosed:!1;switch(o=e.charCodeAt(d),o){case Dn:case zr:case Un:case Bn:case Fn:{s=d;do s+=1,o=e.charCodeAt(s);while(o===zr||o===Dn||o===Un||o===Bn||o===Fn);v=["space",e.slice(d,s)],d=s-1;break}case qv:case Wv:case Vv:case Hv:case Jv:case Kv:case jv:{var q=String.fromCharCode(o);v=[q,q,d];break}case Gv:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==Bo&&g!==oc&&g!==zr&&g!==Dn&&g!==Un&&g!==Fn&&g!==Bn){s=d;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=d;break}else C("bracket");for(l=s;e.charCodeAt(l-1)===Ln;)l-=1,f=!f}while(f);v=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||Zv.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Bo:case oc:{a=o===Bo?"'":'"',s=d;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=d+1;break}else C("string");for(l=s;e.charCodeAt(l-1)===Ln;)l-=1,f=!f}while(f);v=["string",e.slice(d,s+1),d,s],d=s;break}case Xv:{zn.lastIndex=d+1,zn.test(e),zn.lastIndex===0?s=e.length-1:s=zn.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case Ln:{for(s=d,c=!0;e.charCodeAt(s+1)===Ln;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==sc&&o!==zr&&o!==Dn&&o!==Un&&o!==Bn&&o!==Fn&&(s+=1,ac.test(e.charAt(s)))){for(;ac.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===zr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===sc&&e.charCodeAt(d+1)===Yv?(s=e.indexOf("*/",d+2)+1,s===0&&(r||$?s=e.length:C("comment")),v=["comment",e.slice(d,s+1),d,s],d=s):(qn.lastIndex=d+1,qn.test(e),qn.lastIndex===0?s=e.length-1:s=qn.lastIndex-2,v=["word",e.slice(d,s+1),d,s],y.push(v),d=s);break}}return d++,v}}function k(R){_.push(R)}return{back:k,endOfFile:S,nextToken:O,position:b}},fl=nr,Mi=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(fl),Ua=Mi;Mi.default=Mi;fl.registerAtRule(Mi);var ll=nr,hl,pl,Er=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var f=c.value;f.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new hl(new pl,this,r);return o.stringify()},n})(ll);Er.registerLazyResult=function(t){hl=t};Er.registerProcessor=function(t){pl=t};var Sn=Er;Er.default=Er;ll.registerRoot(Er);var sn={comma:function(n){return sn.split(n,[","],!0)},space:function(n){var i=[" ",` 24`," "];return sn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",f=!1,l=I(n),h;!(h=l()).done;){var g=h.value;f?f=!1:g==="\\"?f=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},dl=sn;sn.default=sn;var vl=nr,eg=dl,Ti=(function(t){fe(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ue(n,[{key:"selectors",get:function(){return eg.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(vl),Ba=Ti;Ti.default=Ti;vl.registerRule(Ti);var tg=lo,rg=Qv,ng=po,ig=Ua,og=Sn,uc=Ba,cc={empty:!0,space:!0};function sg(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var ag=(function(){function t(i){this.input=i,this.root=new og,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new ig;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,f=[],l=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?l.push(o==="("?")":"]"):o==="{"&&l.length>0?l.push("}"):o===l[l.length-1]&&l.pop(),l.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(r.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(r,"params",f),u&&(e=f[f.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var f=c.value,l=f[0],h=f[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return l}a=o}return!1},n.comment=function(e){var r=new ng;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=rg(this.input)},n.decl=function(e,r){var o=new tg;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||sg(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if(u=e[l],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,l);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",m=l;m>0;m--){var d=g[m][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var y=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});y&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new uc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),f=[],l=e;l;){if(o=l[0],f.push(l),o==="("||o==="[")a||(a=l),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=l),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(f,c);return}else break;else if(o==="{"){this.rule(f);return}else if(o==="}"){this.tokenizer.back(f.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,c)}else this.unknownWord(f)},n.parse=function(){for(var e;!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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,o,s){for(var a,u,c=o.length,f="",l=!0,h,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?l=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",h=o[v+1]?o[v+1][0]:"empty",!cc[g]&&!cc[h]?f.slice(-1)===","?l=!1:f+=a[1]:l=!1):f+=a[1];if(!l){var m=o.reduce(function(d,y){return d+y[1]},"");e.raws[r]={raw:m,value:f}}e[r]=f},n.rule=function(e){e.pop();var r=new uc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),ug=ag,cg=nr,fg=ug,lg=ho;function Pi(t,n){var i=new lg(t,n),e=new fg(i);try{e.parse()}catch(r){throw r}return e.root}var za=Pi;Pi.default=Pi;cg.registerParse(Pi);var Ke=At.isClean,hg=At.my,pg=Zf,dg=co,vg=nr,gg=Da,fc=Fa,mg=za,yg=Sn,_g={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},wg={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},bg={Once:!0,postcssPlugin:!0,prepare:!0},Ir=0;function qr(t){return(typeof t>"u"?"undefined":P(t))==="object"&&typeof t.then=="function"}function gl(t){var n=!1,i=_g[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Ir,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Ir,i+"Exit"]:[i,i+"Exit"]}function lc(t){var n;return t.type==="document"?n=["Document",Ir,"DocumentExit"]:t.type==="root"?n=["Root",Ir,"RootExit"]:n=gl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Os(t){return t[Ke]=!1,t.nodes&&t.nodes.forEach(function(n){return Os(n)}),t}var xs={},Or=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":P(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Os(e);else if(T(e,t)||T(e,fc))s=Os(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=mg;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[hg]&&vg.rebuild(s)}this.result=new fc(i,s,r),this.helpers=z({},xs,{postcss:xs,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u>"u"?"undefined":P(u))==="object"&&u.prepare?z({},u,u.prepare(o.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion)var s,a,u,c,f}catch(l){console&&console.error&&console.error(l)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(f,l,h){e.listeners[l]||(e.listeners[l]=[]),e.listeners[l].push([f,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a>"u"?"undefined":P(a))==="object")for(var u in a){if(!wg[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!bg[u])if(P(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return uo(function(){var r,o,s,a,u,c,f,l,h,g,v,m;return Xt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!qr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Ke])return[3,14];u[Ke]=!0,c=[lc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(f=e.visitTick(c),!qr(f))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,f];case 10:return d.sent(),[3,12];case 11:throw l=d.sent(),h=c[c.length-1].node,e.handleError(l,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var y,_,b,C,S;return Xt(this,function(O){switch(O.label){case 0:y=m.value,_=y[0],b=y[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(k){return b(k,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(m=v()).done?[3,18]:[5,ka(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e>"u"?"undefined":P(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return qr(o[0])?Promise.all(o):o}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=dg;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new pg(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(qr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ke];)a[Ke]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var f=c.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var f=void 0;try{f=c(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(qr(f))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var f=r.iterator,l;l=o.nodes[o.indexes[f]];)if(o.indexes[f]+=1,!l[Ke]){l[Ke]=!0,e.push(lc(l));return}r.iterator=0,delete o.indexes[f]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===Ir){o.nodes&&o.nodes.length&&(o[Ke]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ke]=!0;for(var o=gl(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===Ir)e.nodes&&e.each(function(f){f[Ke]||r.walkSync(f)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ue(t,[{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"}}]),t})();Or.registerPostcss=function(t){xs=t};var ml=Or;Or.default=Or;yg.registerLazyResult(Or);gg.registerLazyResult(Or);var Sg=Zf,Cg=co,Eg=za,Ig=Fa,Rs=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=Cg;this.result=new Ig(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Sg(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),f=c[0],l=c[1];f&&(this.result.css=f),l&&(this.result.map=l)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ue(t,[{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,r=Eg;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Og=Rs;Rs.default=Rs;var xg=Og,Rg=ml,Ag=Da,kg=Sn,an=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":P(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a>"u"?"undefined":P(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if(!((typeof a>"u"?"undefined":P(a))==="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new xg(this,e,r):new Rg(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Mg=an;an.default=an;kg.registerProcessor(an);Ag.registerProcessor(an);var Tg=lo,Pg=Hf,$g=po,Ng=Ua,Lg=ho,Dg=Sn,Fg=Ba;function un(t,n){if(Array.isArray(t))return t.map(function(l){return un(l)});var i=t.inputs,e=Jt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=z({},s,{__proto__:Lg.prototype});a.map&&(a.map=z({},a.map,{__proto__:Pg.prototype})),n.push(a)}}
24if(e.nodes&&(e.nodes=t.nodes.map(function(l){return un(l,n)})),e.source){var u=e.source,c=u.inputId,f=Jt(u,["inputId"]);e.source=f,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Dg(e);if(e.type==="decl")return new Tg(e);if(e.type==="rule")return new Fg(e);if(e.type==="comment")return new $g(e);if(e.type==="atrule")return new Ng(e);throw new Error("Unknown node type: "+t.type)}var Ug=un;un.default=un;var Bg=$a,yl=lo,zg=ml,qg=nr,qa=Mg,Wg=co,Gg=Ug,_l=Da,jg=cl,wl=po,bl=Ua,Vg=Fa,Hg=ho,Kg=za,Yg=dl,Sl=Ba,Cl=Sn,Jg=fo;function Z(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new qa(n)}Z.plugin=function(n,i){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+`: postcss.plugin was deprecated. Migration guide: 25https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Cr.LANG&&Cr.LANG.startsWith("cn")&&console.warn(n+`: éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå: 26https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new qa().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r};Z.stringify=Wg;Z.parse=Kg;Z.fromJSON=Gg;Z.list=Yg;Z.comment=function(t){return new wl(t)};Z.atRule=function(t){return new bl(t)};Z.decl=function(t){return new yl(t)};Z.rule=function(t){return new Sl(t)};Z.root=function(t){return new Cl(t)};Z.document=function(t){return new _l(t)};Z.CssSyntaxError=Bg;Z.Declaration=yl;Z.Container=qg;Z.Processor=qa;Z.Document=_l;Z.Comment=wl;Z.Warning=jg;Z.AtRule=bl;Z.Result=Vg;Z.Input=Hg;Z.Rule=Sl;Z.Root=Cl;Z.Node=Jg;zg.registerPostcss(Z);var Xg=Z;Z.default=Z;var le=fv(Xg);le.stringify;le.fromJSON;le.plugin;le.parse;le.list;le.document;le.comment;le.atRule;le.rule;le.decl;le.root;le.CssSyntaxError;le.Declaration;le.Container;le.Processor;le.Document;le.Comment;le.Warning;le.AtRule;le.Result;le.Input;le.Rule;le.Root;le.Node;var Zg=Object.defineProperty,Qg=function(t,n,i){return n in t?Zg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return Qg(t,(typeof n>"u"?"undefined":P(n))!=="symbol"?n+"":n,i)};function em(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tm(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return T(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Wa={exports:{}},oe=String,El=function(){return{isColorSupported:!1,reset:oe,bold:oe,dim:oe,italic:oe,underline:oe,inverse:oe,hidden:oe,strikethrough:oe,black:oe,red:oe,green:oe,yellow:oe,blue:oe,magenta:oe,cyan:oe,white:oe,gray:oe,bgBlack:oe,bgRed:oe,bgGreen:oe,bgYellow:oe,bgBlue:oe,bgMagenta:oe,bgCyan:oe,bgWhite:oe}};Wa.exports=El();Wa.exports.createColors=El;var rm=Wa.exports,nm={},im=Object.freeze(Object.defineProperty({__proto__:null,default:nm},Symbol.toStringTag,{value:"Module"})),_e=tm(im),hc=rm,pc=_e,As=(function(t){fe(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r<"u"&&typeof o<"u"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=hc.isColorSupported),pc&&r&&(s=pc(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),f=String(c).length,l,h;if(r){var g=hc.createColors(!0),v=g.bold,m=g.gray,d=g.red;
vendor: 12,999 bytes, lines 26-43
26l=function(y){return v(d(y))},h=function(y){return m(y)}}else l=h=function(y){return y};return a.slice(u,c).map(function(y,_){var b=u+1+_,C=" "+(" "+b).slice(-f)+" | ";if(b===o.line){var S=h(C.replace(/\d/g," "))+y.slice(0,o.column-1).replace(/[^\t]/g," ");return l(">")+h(C)+y+` 27 `+S+l("^")}return" "+h(C)+y}).join(` 28`)},i.toString=function(){var r=this.showSourceCode();return r&&(r=` 29 30`+r+` 31`),this.name+": "+this.message+r},n})(rn(Error)),Ga=As;As.default=As;var kt={};kt.isClean=Symbol("isClean");kt.my=Symbol("my");var dc={after:` 32`,beforeClose:` 33`,beforeComment:` 34`,beforeDecl:` 35`,beforeOpen:" ",beforeRule:` 36`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function om(t){return t[0].toUpperCase()+t.slice(1)}var ks=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes(` 37`)){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s<"u"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return dc[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+om(o);return this[c]?s=this[c](u,e):u.walk(function(f){if(s=f.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=dc[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return r=o.raws.after,r.includes(` 38`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before<"u")return o=s.raws.before,o.includes(` 39`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before<"u")return o=s.raws.before,o.includes(` 40`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r<"u"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before<"u")return r=o.raws.before,r.includes(` 41`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between<"u")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r<"u"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before<"u"){var a=o.raws.before.split(` 42`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r<"u"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Il=ks;ks.default=ks;var sm=Il;function Ms(t,n){var i=new sm(n);i.stringify(t)}var vo=Ms;Ms.default=Ms;var Wn=kt.isClean,am=kt.my,um=Ga,cm=Il,fm=vo;function Ts(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r>"u"?"undefined":P(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Ts(s,i)}):(o==="object"&&r!==null&&(r=Ts(r)),i[e]=r)}return i}var Ps=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Wn]=!1,this[am]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Ts(this);for(var o in e)r[o]=e[o];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new um(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Wn]){this[Wn]=!1;for(var e=this;e=e.parent;)e[Wn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]===` 43`?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new cm;return o.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var f=c.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(l){return(typeof l>"u"?"undefined":P(l))==="object"&&l.toJSON?l.toJSON(null,r):l});else if((typeof c>"u"?"undefined":P(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var f=r.get(c.input);f==null&&(f=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:f,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(l){return l.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=fm),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),go=Ps;Ps.default=Ps;var lm=go,$s=(function(t){fe(n,t);function n(i){var e;return i&&typeof i.value<"u"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(lm),mo=$s;$s.default=$s;var hm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pm=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=hm[Math.random()*64|0];return n},dm={nanoid:pm},vc=_e.SourceMapConsumer,gc=_e.SourceMapGenerator,vm=_e.existsSync,gm=_e.readFileSync,zo=_e.dirname,mm=_e.join;function ym(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Ns=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=zo(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new vc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return ym(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e>"u"?"undefined":P(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=zo(e),vm(e))return this.mapFile=e,gm(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(T(r,vc))return gc.fromSourceMap(r).toString();if(T(r,gc))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=mm(zo(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Ol=Ns;Ns.default=Ns;var _m=_e.SourceMapConsumer,wm=_e.SourceMapGenerator,mc=_e.fileURLToPath,Gn=_e.pathToFileURL,Ls=_e.isAbsolute,Ds=_e.resolve,bm=dm.nanoid,qo=_e,yc=Ga,Sm=Ol,Wo=Symbol("fromOffsetCac
43he"),Cm=!!(_m&&wm),_c=!!(Ds&&Ls),$i=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i>"u"||(typeof i>"u"?"undefined":P(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!_c||/^\w+:\/\//.test(e.from)||Ls(e.from)?this.file=e.from:this.file=Ds(e.from)),_c&&Cm){var r=new Sm(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+bm(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r>"u"?"undefined":P(r))==="object"){var f=r,l=o;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);r=h.line,o=h.col}else r=f.line,o=f.column;if(typeof l.offset=="number"){var g=this.fromOffset(l.offset);u=g.line,c=g.col}else u=l.line,c=l.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var m=this.origin(r,o,u,c);return m?a=new yc(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new yc(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Gn&&(a.input.url=Gn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Wo])o=this[Wo];else{var s=this.css.split(` 44`);o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Wo]=o}r=o[o.length-1];var f=0;if(e>=r)f=o.length-1;else for(var l=o.length-2,h;f<l;)if(h=f+(l-f>>1),e<o[h])l=h-1;else if(e>=o[h+1])f=h+1;else{f=h;break}return{col:e-o[f]+1,line:f+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ds(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var f;Ls(u.source)?f=Gn(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||Gn(this.map.mapFile));var l={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(mc)l.file=mc(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(l.source=h),l},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),yo=$i;$i.default=$i;qo&&qo.registerInput&&qo.registerInput($i);var xl=_e.SourceMapConsumer,yi=_e.SourceMapGenerator,_i=_e.dirname,Rl=_e.relative,Al=_e.resolve,kl=_e.sep,wc=_e.pathToFileURL,Em=yo,Im=!!(xl&&yi),Om=!!(_i&&Al&&Rl&&kl),xm=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r=` 45`;this.css.includes(`\r 46`)&&(r=`\r 47`),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||_i(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new xl(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Om&&Im&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=yi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yi({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]},n.generateString=function(){var e=this;this.css="",this.map=new yi({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(f,l,h){if(e.css+=f,l&&h!=="end"&&(a.generated.line=r,a.generated.column=o-1,l.source&&l.source.start?(a.source=e.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(r+=u.length,c=f.lastIndexOf(` 48`),o=f.length-c):o+=f.length,l&&h!=="start"){var g=l.parent||{raws:{}},v=l.type==="decl"||l.type==="atrule"&&!l.nodes;(!v||l!==g.last||g.raws.semicolon)&&(l.source&&l.source.end?(a.source=e.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=r,a.generated.column=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var o=this.opts.to?_i(this.opts.to):".";
vendor: 38,682 bytes, lines 48-51
48typeof this.mapOpts.annotation=="string"&&(o=_i(Al(o,this.mapOpts.annotation)));var s=Rl(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new Em(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(wc){var o=wc(e).toString();return this.memoizedFileURLs.set(e,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;kl==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Ml=xm,Rm=go,Fs=(function(t){fe(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Rm),_o=Fs;Fs.default=Fs;var Tl=kt.isClean,Pl=kt.my,$l=mo,Nl=_o,Am=go,Ll,ja,Va,Dl;function Fl(t){return t.map(function(n){return n.nodes&&(n.nodes=Fl(n.nodes)),delete n.source,n})}function Ul(t){if(t[Tl]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Ul(e)}}var ht=(function(t){fe(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,f=this.normalize(c,this.last),l=I(f),h;!(h=l()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var f;return(f=o)[s].apply(f,[].concat(u.map(function(l){return typeof l=="function"?function(h,g){return l(h.toProxy(),g)}:l})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),l=1;l<c;l++)f[l-1]=arguments[l];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var f=c.value;this.proxyOf.nodes.splice(s+1,0,f)}var l;for(var h in this.indexes)l=this.indexes[h],s<l&&(this.indexes[h]=l+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),f;!(f=c()).done;){var l=f.value;this.proxyOf.nodes.splice(s,0,l)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Fl(Ll(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var f=I(r),l;!(l=f()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new $l(r)]}else if(r.selector)r=[new ja(r)];else if(r.name)r=[new Va(r)];else if(r.text)r=[new Nl(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Pl]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Tl]&&Ul(v),typeof v.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,f=this.normalize(c,this.first,"prepend").reverse(),l=I(f),h;!(h=l()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+f.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ue(n,[{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]}}]),n})(Am);ht.registerParse=function(t){Ll=t};ht.registerRule=function(t){ja=t};ht.registerAtRule=function(t){Va=t};ht.registerRoot=function(t){Dl=t};var ir=ht;ht.default=ht;ht.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Va.prototype):t.type==="rule"?Object.setPrototypeOf(t,ja.prototype):t.type==="decl"?Object.setPrototypeOf(t,$l.prototype):t.type==="comment"?Object.setPrototypeOf(t,Nl.prototype):t.type==="root"&&Object.setPrototypeOf(t,Dl.prototype),t[Pl]=!0,t.nodes&&t.nodes.forEach(function(n){ht.rebuild(n)})};var km=ir,Bl,zl,cn=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new Bl(new zl,this,r);return o.stringify()},n})(km);cn.registerLazyResult=function(t){Bl=t};cn.registerProcessor=function(t){zl=t};var Ha=cn;cn.default=cn;var Us=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in e)this[o]=e[o]}var n=t.prototype;return n.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},t})(),ql=Us;Us.default=Us;var Mm=ql,Bs=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new Mm(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ue(t,[{key:"content",get:function(){return this.css}}]),t})(),Ka=Bs;Bs.default=Bs;var Go=39,bc=34,jn=92,Sc=47,Vn=10,Wr=32,Hn=12,Kn=9,Yn=13,Tm=91,Pm=93,$m=40,Nm=41,Lm=123,Dm=125,Fm=59,Um=42,Bm=58,zm=64,Jn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qm=/.[\r\n"'(/\\]/,Cc=/[\da-f]/i,Wm=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,f,l,h,g,v,m=e.length,d=0,y=[],_=[];function b(){return d}function C(R){throw n.error("Unclosed "+R,d)}function S(){return _.length===0&&d>=m}function O(R){if(_.length)return _.pop();if(!(d>=m)){var $=R?R.ignoreUnclosed:!1;switch(o=e.charCodeAt(d),o){case Vn:case Wr:case Kn:case Yn:case Hn:{s=d;do s+=1,o=e.charCodeAt(s);while(o===Wr||o===Vn||o===Kn||o===Yn||o===Hn);v=["space",e.slice(d,s)],d=s-1;break}case Tm:case Pm:case Lm:case Dm:case Bm:case Fm:case Nm:{var q=String.fromCharCode(o);v=[q,q,d];break}case $m:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==Go&&g!==bc&&g!==Wr&&g!==Vn&&g!==Kn&&g!==Hn&&g!==Yn){s=d;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=d;break}else C("bracket");for(l=s;e.charCodeAt(l-1)===jn;)l-=1,f=!f}while(f);v=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||qm.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Go:case bc:{a=o===Go?"'":'"',s=d;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=d+1;break}else C("string");for(l=s;e.charCodeAt(l-1)===jn;)l-=1,f=!f}while(f);v=["string",e.slice(d,s+1),d,s],d=s;break}case zm:{Jn.lastIndex=d+1,Jn.test(e),Jn.lastIndex===0?s=e.length-1:s=Jn.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case jn:{for(s=d,c=!0;e.charCodeAt(s+1)===jn;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Sc&&o!==Wr&&o!==Vn&&o!==Kn&&o!==Yn&&o!==Hn&&(s+=1,Cc.test(e.charAt(s)))){for(;Cc.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Wr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===Sc&&e.charCodeAt(d+1)===Um?(s=e.indexOf("*/",d+2)+1,s===0&&(r||$?s=e.length:C("comment")),v=["comment",e.slice(d,s+1),d,s],d=s):(Xn.lastIndex=d+1,Xn.test(e),Xn.lastIndex===0?s=e.length-1:s=Xn.lastIndex-2,v=["word",e.slice(d,s+1),d,s],y.push(v),d=s);break}}return d++,v}}function k(R){_.push(R)}return{back:k,endOfFile:S,nextToken:O,position:b}},Wl=ir,Ni=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(Wl),Ya=Ni;Ni.default=Ni;Wl.registerAtRule(Ni);var Gl=ir,jl,Vl,xr=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var f=c.value;f.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new jl(new Vl,this,r);return o.stringify()},n})(Gl);xr.registerLazyResult=function(t){jl=t};xr.registerProcessor=function(t){Vl=t};var Cn=xr;xr.default=xr;Gl.registerRoot(xr);var fn={comma:function(n){return fn.split(n,[","],!0)},space:function(n){var i=[" ",` 49`," "];return fn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",f=!1,l=I(n),h;!(h=l()).done;){var g=h.value;f?f=!1:g==="\\"?f=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},Hl=fn;fn.default=fn;var Kl=ir,Gm=Hl,Li=(function(t){fe(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ue(n,[{key:"selectors",get:function(){return Gm.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(Kl),Ja=Li;Li.default=Li;Kl.registerRule(Li);var jm=mo,Vm=Wm,Hm=_o,Km=Ya,Ym=Cn,Ec=Ja,Ic={empty:!0,space:!0};function Jm(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Xm=(function(){function t(i){this.input=i,this.root=new Ym,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Km;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,f=[],l=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?l.push(o==="("?")":"]"):o==="{"&&l.length>0?l.push("}"):o===l[l.length-1]&&l.pop(),l.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(r.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(r,"params",f),u&&(e=f[f.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var f=c.value,l=f[0],h=f[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return l}a=o}return!1},n.comment=function(e){var r=new Hm;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Vm(this.input)},n.decl=function(e,r){var o=new jm;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||Jm(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if(u=e[l],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,l);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",m=l;m>0;m--){var d=g[m][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var y=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});y&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Ec;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),f=[],l=e;l;){if(o=l[0],f.push(l),o==="("||o==="[")a||(a=l),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=l),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(f,c);return}else break;else if(o==="{"){this.rule(f);return}else if(o==="}"){this.tokenizer.back(f.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,c)}else this.unknownWord(f)},n.parse=function(){for(var e;!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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,o,s){for(var a,u,c=o.length,f="",l=!0,h,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?l=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",h=o[v+1]?o[v+1][0]:"empty",!Ic[g]&&!Ic[h]?f.slice(-1)===","?l=!1:f+=a[1]:l=!1):f+=a[1];if(!l){var m=o.reduce(function(d,y){return d+y[1]},"");e.raws[r]={raw:m,value:f}}e[r]=f},n.rule=function(e){e.pop();var r=new Ec;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Zm=Xm,Qm=ir,ey=Zm,ty=yo;function Di(t,n){var i=new ty(t,n),e=new ey(i);try{e.parse()}catch(r){throw r}return e.root}var Xa=Di;Di.default=Di;Qm.registerParse(Di);var Ye=kt.isClean,ry=kt.my,ny=Ml,iy=vo,oy=ir,sy=Ha,Oc=Ka,ay=Xa,uy=Cn,cy={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fy={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},ly={Once:!0,postcssPlugin:!0,prepare:!0},Rr=0;function Gr(t){return(typeof t>"u"?"undefined":P(t))==="object"&&typeof t.then=="function"}function Yl(t){var n=!1,i=cy[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Rr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Rr,i+"Exit"]:[i,i+"Exit"]}function xc(t){var n;return t.type==="document"?n=["Document",Rr,"DocumentExit"]:t.type==="root"?n=["Root",Rr,"RootExit"]:n=Yl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function zs(t){return t[Ye]=!1,t.nodes&&t.nodes.forEach(function(n){return zs(n)}),t}var qs={},Ar=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":P(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=zs(e);else if(T(e,t)||T(e,Oc))s=zs(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=ay;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[ry]&&oy.rebuild(s)}this.result=new Oc(i,s,r),this.helpers=z({},qs,{postcss:qs,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u>"u"?"undefined":P(u))==="object"&&u.prepare?z({},u,u.prepare(o.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion)var s,a,u,c,f}catch(l){console&&console.error&&console.error(l)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(f,l,h){e.listeners[l]||(e.listeners[l]=[]),e.listeners[l].push([f,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a>"u"?"undefined":P(a))==="object")for(var u in a){if(!fy[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ly[u])if(P(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return uo(function(){var r,o,s,a,u,c,f,l,h,g,v,m;return Xt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Gr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Ye])return[3,14];u[Ye]=!0,c=[xc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(f=e.visitTick(c),!Gr(f))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,f];case 10:return d.sent(),[3,12];case 11:throw l=d.sent(),h=c[c.length-1].node,e.handleError(l,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var y,_,b,C,S;return Xt(this,function(O){switch(O.label){case 0:y=m.value,_=y[0],b=y[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(k){return b(k,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(m=v()).done?[3,18]:[5,ka(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e>"u"?"undefined":P(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Gr(o[0])?Promise.all(o):o}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=iy;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new ny(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Gr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ye];)a[Ye]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var f=c.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var f=void 0;try{f=c(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Gr(f))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var f=r.iterator,l;l=o.nodes[o.indexes[f]];)if(o.indexes[f]+=1,!l[Ye]){l[Ye]=!0,e.push(xc(l));return}r.iterator=0,delete o.indexes[f]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===Rr){o.nodes&&o.nodes.length&&(o[Ye]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ye]=!0;for(var o=Yl(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===Rr)e.nodes&&e.each(function(f){f[Ye]||r.walkSync(f)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ue(t,[{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"}}]),t})();Ar.registerPostcss=function(t){qs=t};var Jl=Ar;Ar.default=Ar;uy.registerLazyResult(Ar);sy.registerLazyResult(Ar);var hy=Ml,py=vo,dy=Xa,vy=Ka,Ws=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=py;this.result=new vy(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new hy(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),f=c[0],l=c[1];f&&(this.result.css=f),l&&(this.result.map=l)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ue(t,[{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,r=dy;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),gy=Ws;Ws.default=Ws;var my=gy,yy=Jl,_y=Ha,wy=Cn,ln=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":P(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a>"u"?"undefined":P(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if(!((typeof a>"u"?"undefined":P(a))==="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new my(this,e,r):new yy(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),by=ln;ln.default=ln;wy.registerProcessor(ln);_y.registerProcessor(ln);var Sy=mo,Cy=Ol,Ey=_o,Iy=Ya,Oy=yo,xy=Cn,Ry=Ja;function hn(t,n){if(Array.isArray(t))return t.map(function(l){return hn(l)});var i=t.inputs,e=Jt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=z({},s,{__proto__:Oy.prototype});a.map&&(a.map=z({},a.map,{__proto__:Cy.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(l){return hn(l,n)})),e.source){var u=e.source,c=u.inputId,f=Jt(u,["inputId"]);e.source=f,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new xy(e);if(e.type==="decl")return new Sy(e);if(e.type==="rule")return new Ry(e);if(e.type==="comment")return new Ey(e);if(e.type==="atrule")return new Iy(e);throw new Error("Unknown node type: "+t.type)}var Ay=hn;hn.default=hn;var ky=Ga,Xl=mo,My=Jl,Ty=ir,Za=by,Py=vo,$y=Ay,Zl=Ha,Ny=ql,Ql=_o,eh=Ya,Ly=Ka,Dy=yo,Fy=Xa,Uy=Hl,th=Ja,rh=Cn,By=go;function Q(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Za(n)}Q.plugin=function(n,i){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+`: postcss.plugin was deprecated. Migration guide: 50https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Cr.LANG&&Cr.LANG.startsWith("cn")&&console.warn(n+`: éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå: 51https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Za().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Q([r(u)]).process(s,a)},r};Q.stringify=Py;Q.parse=Fy;Q.fromJSON=$y;Q.list=Uy;Q.comment=function(t){return new Ql(t)};Q.atRule=function(t){return new eh(t)};Q.decl=function(t){return new Xl(t)};Q.rule=function(t){return new th(t)};Q.root=function(t){return new rh(t)};Q.document=function(t){return new Zl(t)};Q.CssSyntaxError=ky;Q.Declaration=Xl;Q.Container=Ty;Q.Processor=Za;Q.Document=Zl;Q.Comment=Ql;Q.Warning=Ny;Q.AtRule=eh;Q.Result=Ly;Q.Input=Dy;Q.Rule=th;Q.Root=rh;Q.Node=By;My.registerPostcss(Q);var zy=Q;Q.default=Q;var he=em(zy);he.stringify;he.fromJSON;he.plugin;he.parse;he.list;he.document;he.comment;he.atRule;he.rule;he.decl;he.root;he.CssSyntaxError;he.Declaration;he.Container;he.Processor;he.Document;he.Comment;he.Warning;he.AtRule;he.Result;he.Input;he.Rule;he.Root;he.Node;var qy=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];Fe(this,"parentElement",null),Fe(this,"parentNode",null),Fe(this,"ownerDocument"),Fe(this,"firstChild",null),Fe(this,"lastChild",null),Fe(this,"previousSibling",null),Fe(this,"nextSibling",null),Fe(this,"ELEMENT_NODE",1),Fe(this,"TEXT_NODE",3),Fe(this,"nodeType"),Fe(this,"nodeName"),Fe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(T(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ue(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),Rc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ac={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Zn={},Wy=function(){return!!globalThis.Zone};function Qa(t){if(Zn[t])return Zn[t];var n=globalThis[t],i=n.prototype,e=t in Rc?Rc[t]:void 0,r=!!(e&&e.every(function(f){var l,h;return!!((h=(l=Object.getOwnPropertyDescriptor(i,f))==null?void 0:l.get)!=null&&h.toString().includes("[native code]"))})),o=t in Ac?Ac[t]:void 0,s=!!(o&&o.every(function(f){var l;return typeof i[f]=="function"&&((l=i[f])==null?void 0:l.toString().includes("[native code]"))}));if(r&&s&&!Wy())return Zn[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?Zn[t]=c:i}catch{return i}}var jo={};function Mt(t,n,i){var e,r=t+"."+String(i);if(jo[r])return jo[r].call(n);var o=Qa(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(jo[r]=s,s.call(n)):n[i]}var Vo={};function nh(t,n,i){var e=t+"."+String(i);if(Vo[e])return Vo[e].bind(n);var r=Qa(t),o=r[i];return typeof o!="function"?n[i]:(Vo[e]=o,o.bind(n))}function Gy(t){return Mt("Node",t,"childNodes")}function jy(t){return Mt("Node",t,"parentNode")}function Vy(t){return Mt("Node",t,"parentElement")}function Hy(t){return Mt("Node",t,"textContent")}function Ky(t,n){return nh("Node",t,"contains")(n)}function Yy(t){return nh("Node",t,"getRootNode")()}function Jy(t){return!t||!("host"in t)?null:Mt("ShadowRoot",t,"host")}function Xy(t){return t.styleSheets}function Zy(t){return!t||!("shadowRoot"in t)?null:Mt("Element",t,"shadowRoot")}function Qy(t,n){return Mt("Element",t,"querySelector")(n)}function e_(t,n){return Mt("Element",t,"querySelectorAll")(n)}function ih(){return Qa("MutationObserver").constructor}function or(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var j={childNodes:Gy,parentNode:jy,parentElement:Vy,textContent:Hy,contains:Ky,getRootNode:Yy,host:Jy,styleSheets:Xy,shadowRoot:Zy,querySelector:Qy,querySelectorAll:e_,mutationObserver:ih,patch:or};function Me(t,n,i){i===void 0&&(i=document);var e={capture:!0,passive:!0};return i.addEventListener(t,n,e),function(){return i.removeEventListener(t,n,e)}}var vr=`Please stop import mirror directly. Instead of that,\r
52now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 53or you can use record.mirror to access the mirror instance during recording.`,kc={map:{},getId:function(){return console.error(vr),-1},getNode:function(){return console.error(vr),null},removeNodeFromMap:function(){console.error(vr)},has:function(){return console.error(vr),!1},reset:function(){console.error(vr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(kc=new Proxy(kc,{get:function(n,i,e){return i==="map"&&console.error(vr),Reflect.get(n,i,e)}}));function pn(t,n,i){i===void 0&&(i={});var e=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),f=this;c<=0||c>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(f,s)):!e&&i.trailing!==!1&&(e=setTimeout(function(){r=i.leading===!1?0:Date.now(),e=null,t.apply(f,s)},c))}}function wo(t,n,i,e,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return wo(t,n,o||{},!0)}}var Fi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Fi=function(){return new Date().getTime()});function oh(t){var n,i,e,r,o=t.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=j.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((e=j.parentElement(o.body))==null?void 0:e.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function sh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ah(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function uh(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:j.parentElement(t);return n}function Te(t,n,i,e){if(!t)return!1;var r=uh(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(Ai(r,n,e))return!0}catch{}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function t_(t,n){return n.getId(t)!==-1}function Ho(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===nn}function ch(t,n){if(Kr(t))return!1;var i=n.getId(t);if(!n.has(i))return!0;var e=j.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?ch(e,n):!0}function Gs(t){return!!t.changedTouches}function r_(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function fh(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function lh(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function js(t){return t?T(t,qy)&&"shadowRoot"in t?!!t.shadowRoot:!!j.shadowRoot(t):!1}var n_=(function(){function t(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(e,o),this.idStyleMap.set(o,e),o},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},n.remove=function(e){var r=this.styleIDMap.get(e);return r!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(r),!0):!1},t})();function hh(t){var n,i=null;return"getRootNode"in t&&((n=j.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&j.host(j.getRootNode(t))&&(i=j.host(j.getRootNode(t))),i}function i_(t){for(var n=t,i;i=hh(n);)n=i;return n}function o_(t){var n=t.ownerDocument;if(!n)return!1;var i=i_(t);return j.contains(n,i)}function ph(t){var n=t.ownerDocument;return n?j.contains(n,t)||o_(t):!1}var V=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(V||{}),D=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.In
vendor: 10,074 bytes, line 53
53put=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(D||{}),$e=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})($e||{}),at=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(at||{}),kr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(kr||{}),gr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(gr||{}),dh=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(dh||{});function Mc(t){return"__ln"in t}var s_=(function(){function t(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<e;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Mc(e.previousSibling)){var o=e.previousSibling.__ln.next;r.next=o,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(e.nextSibling&&Mc(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),Tc=function(t,n){return t+"@"+n},a_=(function(){function t(){var i=this;x(this,"frozen",!1),x(this,"locked",!1),x(this,"texts",[]),x(this,"attributes",[]),x(this,"attributeMap",new WeakMap),x(this,"removes",[]),x(this,"mapRemoves",[]),x(this,"movedMap",{}),x(this,"addedSet",new Set),x(this,"movedSet",new Set),x(this,"droppedSet",new Set),x(this,"removesSubTreeCache",new Set),x(this,"mutationCb"),x(this,"blockClass"),x(this,"blockSelector"),x(this,"maskTextClass"),x(this,"maskTextSelector"),x(this,"inlineStylesheet"),x(this,"maskInputOptions"),x(this,"maskTextFn"),x(this,"maskInputFn"),x(this,"keepIframeSrcFn"),x(this,"recordCanvas"),x(this,"inlineImages"),x(this,"slimDOMOptions"),x(this,"dataURLOptions"),x(this,"doc"),x(this,"mirror"),x(this,"iframeManager"),x(this,"stylesheetManager"),x(this,"shadowDomManager"),x(this,"canvasManager"),x(this,"processedNodeManager"),x(this,"unattachedDoc"),x(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),x(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,o=new s_,s=function(N){for(var G=N,de=nn;de===nn;)G=G&&G.nextSibling,de=G&&i.mirror.getId(G);return de},a=function(N){var G=j.parentNode(N);if(!(!G||!ph(N))){var de=!1;if(N.nodeType===Node.TEXT_NODE){var K=G.tagName;if(K==="TEXTAREA")return;K==="STYLE"&&i.addedSet.has(G)&&(de=!0)}var Le=Kr(G)?i.mirror.getId(hh(N)):i.mirror.getId(G),Pe=s(N);if(Le===-1||Pe===-1)return o.addNode(N);var xe=yr(N,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(ce){fh(ce,i.mirror)&&i.iframeManager.addIframe(ce),lh(ce,i.mirror)&&i.stylesheetManager.trackLinkElement(ce),js(N)&&i.shadowDomManager.addShadowRoot(j.shadowRoot(N),i.doc)},onIframeLoad:function(ce,Ie){i.iframeManager.attachIframe(ce,Ie),i.shadowDomManager.observeAttachShadow(ce)},onStylesheetLoad:function(ce,Ie){i.stylesheetManager.attachLinkElement(ce,Ie)},cssCaptured:de});xe&&(e.push({parentId:Le,nextId:Pe,node:xe}),r.add(xe.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();i.cleanupRemovedNode(u),i.mirror.removeNodeFromMap(u)}for(var c=I(i.movedSet),f;!(f=c()).done;){var l=f.value;Pc(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(j.parentNode(l))||a(l)}for(var h=I(i.addedSet),g;!(g=h()).done;){var v=g.value;!$c(i.droppedSet,v)&&!Pc(i.removesSubTreeCache,v,i.mirror)||$c(i.movedSet,v)?a(v):i.droppedSet.add(v)}for(var m=null;o.length;){var d=null;if(m){var y=i.mirror.getId(j.parentNode(m.value)),_=s(m.value);y!==-1&&_!==-1&&(d=m)}if(!d)for(var b=o.tail;b;){var C=b;if(b=b.previous,C){var S=i.mirror.getId(j.parentNode(C.value)),O=s(C.value);if(O===-1)continue;if(S!==-1){d=C;break}else{var k=C.value,R=j.parentNode(k);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=j.host(R),q=i.mirror.getId($);if(q!==-1){d=C;break}}}}}if(!d){for(;o.head;)o.removeNode(o.head.value);break}m=d.previous,o.removeNode(d.value),a(d.value)}var ve={texts:i.texts.map(function(N){var G=N.node,de=j.parentNode(G);return de&&de.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(de),{id:i.mirror.getId(G),value:N.value}}).filter(function(N){return!r.has(N.id)}).filter(function(N){return i.mirror.has(N.id)}),attributes:i.attributes.map(function(N){var G=N.attributes;if(typeof G.style=="string"){var de=JSON.stringify(N.styleDiff),K=JSON.stringify(N._unchangedStyles);de.length<G.style.length&&(de+K).split("var(").length===G.style.split("var(").length&&(G.style=N.styleDiff)}return{id:i.mirror.getId(N.node),attributes:G}}).filter(function(N){return!r.has(N.id)}).filter(function(N){return i.mirror.has(N.id)}),removes:i.removes,adds:e};!ve.texts.length&&!ve.attributes.length&&!ve.removes.length&&!ve.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(ve))}}),x(this,"genTextAreaValueMutation",function(e){var r=i.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(e,r));var o=Array.from(j.childNodes(e),function(s){return j.textContent(s)||""}).join("");r.attributes.value=Oi({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:xi(e),value:o,maskInputFn:i.maskInputFn})}),x(this,"processMutation",function(e){if(!Ho(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=j.textContent(e.target);!Te(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:Gf(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,uh(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var o=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=xi(o);a=Oi({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Te(e.target,i.blockClass,i.blockSelector,!1)||a===e.oldValue)return;var c=i.attributeMap.get(e.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(e.target,c)),s==="type"&&o.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!Wf(o.tagName,s))if(c.attributes[s]=qf(i.doc,Zt(o.tagName),Zt(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch{i.unattachedDoc=i.doc}var f=i.unattachedDoc.createElement("span");e.oldValue&&f.setAttribute("style",e.oldValue);for(var l=I(Array.from(o.style)),h;!(h=l()).done;){var g=h.value,v=o.style.getPropertyValue(g),m=o.style.getPropertyPriority(g);v!==f.style.getPropertyValue(g)||m!==f.style.getPropertyPriority(g)?m===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,m]:c._unchangedStyles[g]=[v,m]}for(var d=I(Array.from(f.style)),y;!(y=d()).done;){var _=y.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Te(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return i.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var C=i.mirror.getId(b),S=Kr(e.target)?i.mirror.getId(j.host(e.target)):i.mirror.getId(e.target);Te(e.target,i.blockClass,i.blockSelector,!1)||Ho(b,i.mirror,i.slimDOMOptions)||!t_(b,i.mirror)||(i.addedSet.has(b)?(Vs(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&C===-1||ch(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Tc(C,S)]?Vs(i.movedSet,b):(i.removes.push({parentId:S,id:C,isShadow:Kr(e.target)&&Yr(e.target)?!0:void 0}),u_(b,i.removesSubTreeCache))),i.mapRemoves.push(b))});break}}}),x(this,"genAdds",function(e,r){if(!i.processedNodeManager.inOtherBuffer(e,i)&&!(i.addedSet.has(e)||i.movedSet.has(e))){if(i.mirror.hasNode(e)){if(Ho(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Tc(i.mirror.getId(e),o)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Te(e,i.blockClass,i.blockSelector,!1)||(j.childNodes(e).forEach(function(s){return i.genAdds(s)}
vendor: 4,114 bytes, line 53
53),js(e)&&j.childNodes(j.shadowRoot(e)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,e)}))}}),x(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{i.iframeManager.removeIframe(e)}catch{}else try{i.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch{}e.childNodes.forEach(function(r){i.cleanupRemovedNode(r)})})}var n=t.prototype;return n.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){r[o]=e[o]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},n.getDoc=function(){return this.doc},t})();function Vs(t,n){t.delete(n),j.childNodes(n).forEach(function(i){return Vs(t,i)})}function u_(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),j.childNodes(e).forEach(function(r){return i.push(r)}))}}function Pc(t,n,i){return t.size===0?!1:c_(t,n)}function c_(t,n,i){var e=j.parentNode(n);return e?t.has(e):!1}function $c(t,n){return t.size===0?!1:vh(t,n)}function vh(t,n){var i=j.parentNode(n);return i?t.has(i)?!0:vh(t,i):!1}var Jr;function f_(t){Jr=t}function l_(){Jr=void 0}var H=function(t){if(!Jr)return t;var n=function(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(o){if(Jr&&Jr(o)===!0)return;throw o}};return n},Ze=[];function En(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function gh(t,n){var i=new a_;Ze.push(i),i.init(t);var e=new(ih())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function h_(t){for(var n=Ze.length-1;n>=0;n--){var i=Ze[n];i.getDoc()===t&&Ze.splice(n,1)}}function p_(t){var n=t.mousemoveCb,i=t.sampling,e=t.doc,r=t.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=pn(H(function(h){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),h),a=[],u=null}),s),f=H(pn(H(function(h){var g=En(h),v=Gs(h)?h.changedTouches[0]:h,m=v.clientX,d=v.clientY;u||(u=Fi()),a.push({x:m,y:d,id:r.getId(g),timeOffset:Fi()-u}),c(typeof DragEvent<"u"&&T(h,DragEvent)?D.Drag:T(h,MouseEvent)?D.MouseMove:D.TouchMove)}),o,{trailing:!1})),l=[Me("mousemove",f,e),Me("touchmove",f,e),Me("drag",f,e)];return H(function(){l.forEach(function(h){return h()})})}function d_(t){var n=t.mouseInteractionCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,f=function(l){return function(h){var g=En(h);if(!Te(g,r,o,!0)){var v=null,m=l;if("pointerType"in h){switch(h.pointerType){case"mouse":v=at.Mouse;break;case"touch":v=at.Touch;break;case"pen":v=at.Pen;break}v===at.Touch?$e[l]===$e.MouseDown?m="TouchStart":$e[l]===$e.MouseUp&&(m="TouchEnd"):at.Pen}else Gs(h)&&(v=at.Touch);v!==null?(c=v,(m.startsWith("Touch")&&v===at.Touch||m.startsWith("Mouse")&&v===at.Mouse)&&(v=null)):$e[l]===$e.Click&&(v=c,c=null);var d=Gs(h)?h.changedTouches[0]:h;if(d){var y=e.getId(g),_=d.clientX,b=d.clientY;H(n)(z({type:$e[m],id:y,x:_,y:b},v!==null&&{pointerType:v}))}}}};return Object.keys($e).filter(function(l){return Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1}).forEach(function(l){var h=Zt(l),g=f(l);
vendor: 26,459 bytes, line 53
53if(window.PointerEvent)switch($e[l]){case $e.MouseDown:case $e.MouseUp:h=h.replace("mouse","pointer");break;case $e.TouchStart:case $e.TouchEnd:return}u.push(Me(h,g,i))}),H(function(){u.forEach(function(l){return l()})})}function mh(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling,a=H(pn(H(function(u){var c=En(u);if(!(!c||Te(c,r,o,!0))){var f=e.getId(c);if(c===i&&i.defaultView){var l=oh(i.defaultView);n({id:f,x:l.left,y:l.top})}else n({id:f,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return Me("scroll",a,i)}function v_(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,o=-1,s=H(pn(H(function(){var a=sh(),u=ah();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Me("resize",s,e)}var g_=["INPUT","TEXTAREA","SELECT"],Nc=new WeakMap;function m_(t){var n=t.inputCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,c=t.maskInputFn,f=t.sampling,l=t.userTriggeredOnInput;function h(C){var S=En(C),O=C.isTrusted,k=S&&S.tagName;if(S&&k==="OPTION"&&(S=j.parentElement(S)),!(!S||!k||g_.indexOf(k)<0||Te(S,r,o,!0))&&!(S.classList.contains(s)||a&&S.matches(a))){var R=S.value,$=!1,q=xi(S)||"";q==="radio"||q==="checkbox"?$=S.checked:(u[k.toLowerCase()]||u[q])&&(R=Oi({element:S,maskInputOptions:u,tagName:k,type:q,value:R,maskInputFn:c})),g(S,l?{text:R,isChecked:$,userTriggered:O}:{text:R,isChecked:$});var ve=S.name;q==="radio"&&ve&&$&&i.querySelectorAll('input[type="radio"][name="'+ve+'"]').forEach(function(N){if(N!==S){var G=N.value;g(N,l?{text:G,isChecked:!$,userTriggered:!1}:{text:G,isChecked:!$})}})}}function g(C,S){var O=Nc.get(C);if(!O||O.text!==S.text||O.isChecked!==S.isChecked){Nc.set(C,S);var k=e.getId(C);H(n)(z({},S,{id:k}))}}var v=f.input==="last"?["change"]:["input","change"],m=v.map(function(C){return Me(C,H(h),i)}),d=i.defaultView;if(!d)return function(){m.forEach(function(C){return C()})};var y=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(y&&y.set){var b;(b=m).push.apply(b,[].concat(_.map(function(C){return wo(C[0],C[1],{set:function(){H(h)({target:this,isTrusted:!1})}},!1,d)})))}return H(function(){m.forEach(function(C){return C()})})}function Ui(t){var n=[];function i(e,r){if(Qn("CSSGroupingRule")&&T(e.parentRule,CSSGroupingRule)||Qn("CSSMediaRule")&&T(e.parentRule,CSSMediaRule)||Qn("CSSSupportsRule")&&T(e.parentRule,CSSSupportsRule)||Qn("CSSConditionRule")&&T(e.parentRule,CSSConditionRule)){var o=Array.from(e.parentRule.cssRules),s=o.indexOf(e);r.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return i(t,n)}function wt(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function y_(t,n){var i=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:H(function(h,g,v){var m=v[0],d=v[1],y=wt(g,e,r.styleMirror),_=y.id,b=y.styleId;return(_&&_!==-1||b&&b!==-1)&&i({id:_,styleId:b,adds:[{rule:m,index:d}]}),h.apply(g,v)})}),o.CSSStyleSheet.prototype.addRule=function(h,g,v){v===void 0&&(v=this.cssRules.length);var m=h+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[m,v])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:H(function(h,g,v){var m=v[0],d=wt(g,e,r.styleMirror),y=d.id,_=d.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,removes:[{index:m}]}),h.apply(g,v)})}),o.CSSStyleSheet.prototype.removeRule=function(h){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:H(function(h,g,v){var m=v[0],d=wt(g,e,r.styleMirror),y=d.id,_=d.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,replace:m}),h.apply(g,v)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:H(function(h,g,v){var m=v[0],d=wt(g,e,r.styleMirror),y=d.id,_=d.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,replaceSync:m}),h.apply(g,v)})}));var f={};ei("CSSGroupingRule")?f.CSSGroupingRule=o.CSSGroupingRule:(ei("CSSMediaRule")&&(f.CSSMediaRule=o.CSSMediaRule),ei("CSSConditionRule")&&(f.CSSConditionRule=o.CSSConditionRule),ei("CSSSupportsRule")&&(f.CSSSupportsRule=o.CSSSupportsRule));var l={};return Object.entries(f).forEach(function(h){var g=h[0],v=h[1];l[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(l[g].insertRule,{apply:H(function(m,d,y){var _=y[0],b=y[1],C=wt(d.parentStyleSheet,e,r.styleMirror),S=C.id,O=C.styleId;return(S&&S!==-1||O&&O!==-1)&&i({id:S,styleId:O,adds:[{rule:_,index:[].concat(Ui(d),[b||0])}]}),m.apply(d,y)})}),v.prototype.deleteRule=new Proxy(l[g].deleteRule,{apply:H(function(m,d,y){var _=y[0],b=wt(d.parentStyleSheet,e,r.styleMirror),C=b.id,S=b.styleId;return(C&&C!==-1||S&&S!==-1)&&i({id:C,styleId:S,removes:[{index:[].concat(Ui(d),[_])}]}),m.apply(d,y)})})}),H(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(f).forEach(function(h){var g=h[0],v=h[1];v.prototype.insertRule=l[g].insertRule,v.prototype.deleteRule=l[g].deleteRule})})}function yh(t,n){var i=t.mirror,e=t.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(j.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var l;return(l=c.get)==null?void 0:l.call(this)},set:function(l){var h,g=(h=c.set)==null?void 0:h.call(this,l);if(a!==null&&a!==-1)try{e.adoptStyleSheets(l,a)}catch{}return g}}),H(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function __(t,n){var i=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,o=t.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:H(function(c,f,l){var h,g=l[0],v=l[1],m=l[2];if(r.has(g))return a.apply(f,[g,v,m]);var d=wt((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),y=d.id,_=d.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,set:{property:g,value:v,priority:m},index:Ui(f.parentRule)}),c.apply(f,l)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:H(function(c,f,l){var h,g=l[0];if(r.has(g))return u.apply(f,[g]);var v=wt((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),m=v.id,d=v.styleId;return(m&&m!==-1||d&&d!==-1)&&i({id:m,styleId:d,remove:{property:g},index:Ui(f.parentRule)}),c.apply(f,l)})}),H(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function w_(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,o=t.sampling,s=t.doc,a=H(function(c){return pn(H(function(f){var l=En(f);if(!(!l||Te(l,i,e,!0))){var h=l.currentTime,g=l.volume,v=l.muted,m=l.playbackRate,d=l.loop;n({type:c,id:r.getId(l),currentTime:h,volume:g,muted:v,playbackRate:m,loop:d})}}),o.media||500)}),u=[Me("play",a(gr.Play),s),Me("pause",a(gr.Pause),s),Me("seeked",a(gr.Seeked),s),Me("volumechange",a(gr.VolumeChange),s),Me("ratechange",a(gr.RateChange),s)];return H(function(){u.forEach(function(c){return c()})})}function b_(t){var n=t.fontCb,i=t.doc,e=i.defaultView;if(!e)return function(){};var r=[],o=new WeakMap,s=e.FontFace;e.FontFace=function(c,f,l){var h=new s(c,f,l);return o.set(h,{family:c,buffer:typeof f!="string",descriptors:l,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),h};var a=or(i.fonts,"add",function(u){return function(c){return setTimeout(H(function(){var f=o.get(c);f&&(n(f),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){e.FontFace=s}),r.push(a),H(function(){r.forEach(function(u){return u()})})}function S_(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,o=t.selectionCb,s=!0,a=H(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],f=u.rangeCount||0,l=0;l<f;l++){var h=u.getRangeAt(l),g=h.startContainer,v=h.startOffset,m=h.endContainer,d=h.endOffset,y=Te(g,e,r,!0)||Te(m,e,r,!0);y||c.push({start:i.getId(g),startOffset:v,end:i.getId(m),endOffset:d})}o({ranges:c})}});return a(),Me("selectionchange",a)}function C_(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=or(e.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch{console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function E_(t,n){var i=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,o=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,c=t.styleSheetRuleCb,f=t.styleDeclarationCb,l=t.canvasMutationCb,h=t.fontCb,g=t.selectionCb,v=t.customElementCb;t.mutationCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},t.inputCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},t.fontCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}h.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function I_(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};E_(t,n);var e;t.recordDOM&&(e=gh(t,t.doc));var r=p_(t),o=d_(t),s=mh(t),a=v_(t,{win:i}),u=m_(t),c=w_(t),f=function(){},l=function(){},h=function(){},g=function(){};t.recordDOM&&(f=y_(t,{win:i}),l=yh(t,t.doc),h=__(t,{win:i}),t.collectFonts&&(g=b_(t)));for(var v=S_(t),m=C_(t),d=[],y=I(t.plugins),_;!(_=y()).done;){var b=_.value;d.push(b.observer(b.callback,i,b.options))}return H(function(){Ze.forEach(function(C){return C.reset()}),e==null||e.disconnect(),r(),o(),s(),a(),u(),c(),f(),l(),h(),g(),v(),m(),d.forEach(function(C){return C()})})}function Qn(t){return typeof window[t]<"u"}function ei(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var Lc=(function(){function t(i){x(this,"iframeIdToRemoteIdMap",new WeakMap),x(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=t.prototype;return n.getId=function(e,r,o,s){var a=o||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(e,r){var o=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return o.getId(e,u,s,a)})},n.getRemoteId=function(e,r,o){var s=o||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(e,r){var o=this,s=this.getRemoteIdToIdMap(e);return r.map(function(a){return o.getRemoteId(e,a,s)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t})(),O_=(function(){function t(i){x(this,"iframes",new WeakMap),x(this,"crossOriginIframeMap",new WeakMap),x(this,"crossOriginIframeMirror",new Lc(zf)),x(this,"crossOriginIframeStyleMirror"),x(this,"crossOriginIframeRootIdMap",new WeakMap),x(this,"iframeContentDocumentMap",new WeakMap),x(this,"iframeObserverCleanupMap",new WeakMap),x(this,"mirror"),x(this,"mutationCb"),x(this,"wrappedEmit"),x(this,"loadListener"),x(this,"stylesheetManager"),x(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Lc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},n.setObserverCleanup=function(e,r){this.iframeObserverCleanupMap.set(e,r)},n.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},n.removeIframe=function(e){var r=this.iframeContentDocumentMap.get(e);r&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(r),this.mirror.removeNodeFromMap(r,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var o=this.iframeObserverCleanupMap.get(e);if(o){try{o()}catch{}this.iframeObserverCleanupMap.delete(e)}},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((o=e.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=e.source;if(o){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var o=this,s;switch(r.type){case V.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:V.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return r;case V.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case V.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,e);var c=o.crossOriginIframeRootIdMap.get(e);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,o,s){for(var a=I(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=e.getIds(o,r[c]):r[c]=e.getId(o,r[c]))}return r},n.replaceIds=function(e,r,o){return this.replace(this.crossOriginIframeMirror,e,r,o)},n.replaceStyleIds=function(e,r,o){return this.replace(this.crossOriginIframeStyleMirror,e,r,o)},n.replaceIdOnNode=function(e,r){var o=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var o=this;e.type!==dh.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},t})(),x_=(function(){function t(i){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var o=this;if(Yr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=gh(z({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(mh(z({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,o.mirror.getId(j.host(e))),o.restoreHandlers.push(yh({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var o=this;this.restoreHandlers.push(or(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=j.shadowRoot(this);return c&&ph(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),_r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ti=0;ti<_r.length;ti++)R_[_r.charCodeAt(ti)]=ti;var A_=function(n){var i=new Uint8Array(n),e,r=i.length,o="";for(e=0;e<r;e+=3)o+=_r[i[e]>>2],o+=_r[(i[e]&3)<<4|i[e+1]>>4],o+=_r[(i[e+1]&15)<<2|i[e+2]>>6],o+=_r[i[e+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Dc=new Map;function k_(t,n){var i=Dc.get(t);return i||(i=new Map,Dc.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var _h=function(t,n,i){if(!(!t||!(bh(t,n)||(typeof t>"u"?"undefined":P(t))==="object"))){var e=t.constructor.name,r=k_(i,e),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function wi(t,n,i){if(T(t,Array))return t.map(function(v){return wi(v,n,i)});if(t===null)return t;if(T(t,Float32Array)||T(t,Float64Array)||T(t,Int32Array)||T(t,Uint32Array)||T(t,Uint8Array)||T(t,Uint16Array)||T(t,Int16Array)||T(t,Int8Array)||T(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(T(t,ArrayBuffer)){var r=t.constructor.name,o=A_(t);return{rr_type:r,base64:o}}else if(T(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[wi(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(T(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(T(t,HTMLCanvasElement)){var c="HTMLImageElement",f=t.toDataURL();return{rr_type:c,src:f}}else if(T(t,ImageData)){var l=t.constructor.name;return{rr_type:l,args:[wi(t.data,n,i),t.width,t.height]}}else if(bh(t,n)||(typeof t>"u"?"undefined":P(t))==="object"){var h=t.constructor.name,g=_h(t,n,i);return{rr_type:h,index:g}}return t}var wh=function(t,n,i){return t.map(function(e){return wi(e,n,i)})},bh=function(t,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=i.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return T(t,n[r])})};function M_(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var f=or(n.CanvasRenderingContext2D.prototype,c,function(h){return function(){for(var g=this,v=arguments.length,m=new Array(v),d=0;d<v;d++)m[d]=arguments[d];return Te(this.canvas,i,e,!0)||setTimeout(function(){var y=wh(m,n,g);t(g.canvas,{type:kr["2D"],property:c,args:y})},0),h.apply(this,m)}});o.push(f)}catch{var l=wo(n.CanvasRenderingContext2D.prototype,c,{set:function(v){t(this.canvas,{type:kr["2D"],property:c,args:[v],setter:!0})}});o.push(l)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function T_(t){return t==="experimental-webgl"?"webgl":t}function Fc(t,n,i,e){var r=[];try{var o=or(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];if(!Te(this,n,i,!0)){var l=T_(a);if("__context"in this||(this.__context=l),e&&["webgl","webgl2"].includes(l))if(c[0]&&P(c[0])==="object"){var h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function Uc(t,n,i,e,r,o){for(var s=function(){var l=f.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))return"continue";try{if(typeof t[l]!="function")return"continue";var h=or(t,l,function(v){return function(){for(var m=arguments.length,d=new Array(m),y=0;y<m;y++)d[y]=arguments[y];var _=v.apply(this,d);if(_h(_,o,this),"tagName"in this.canvas&&!Te(this.canvas,e,r,!0)){var b=wh(d,o,this),C={type:n,property:l,args:b};i(this.canvas,C)}return _}});a.push(h)}catch{var g=wo(t,l,{set:function(d){i(this.canvas,{type:n,property:l,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=I(u),f;!(f=c()).done;)s();return a}function P_(t,n,i,e){var r,o=[];if((r=o).push.apply(r,[].concat(Uc(n.WebGLRenderingContext.prototype,kr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext<"u"){var s;(s=o).push.apply(s,[].concat(Uc(n.WebGL2RenderingContext.prototype,kr.WebGL2,t,i,e,n)))}return function(){o.forEach(function(a){return a()})}}var Sh="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
53yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",$_=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Bc=typeof window<"u"&&window.Blob&&new Blob([$_(Sh)],{type:"text/javascript;charset=utf-8"});function N_(t){var n;try{if(n=Bc&&(window.URL||window.webkitURL).createObjectURL(Bc),!n)throw"";var i=new Worker(n,{name:t==null?void 0:t.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch{return new Worker("data:text/javascript;base64,"+Sh,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var L_=(function(){function t(i){var e=this;x(this,"pendingCanvasMutations",new Map),x(this,"rafStamps",{latestId:0,invokeId:null}),x(this,"mirror"),x(this,"mutationCb"),x(this,"resetObservers"),x(this,"frozen",!1),x(this,"locked",!1),x(this,"processMutation",function(l,h){var g=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(g||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(l)||e.pendingCanvasMutations.set(l,[]),e.pendingCanvasMutations.get(l).push(h)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,f=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:f})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,o,s,a){var u=this,c=Fc(r,o,s,!0),f=new Map,l=new N_;l.onmessage=function(y){var _=y.data.id;if(f.set(_,!1),"base64"in y.data){var b=y.data,C=b.base64,S=b.type,O=b.width,k=b.height;u.mutationCb({id:_,type:kr["2D"],commands:[{property:"clearRect",args:[0,0,O,k]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:S}]},0,0]}]})}};var h=1e3/e,g=0,v,m=function(){var y=[];return r.document.querySelectorAll("canvas").forEach(function(_){Te(_,o,s,!0)||y.push(_)}),y},d=function(y){if(g&&y-g<h){v=requestAnimationFrame(d);return}g=y;var _=u;
vendor: 30,185 bytes, lines 53-70
53m().forEach(uo(function(b){var C,S,O,k;return Xt(this,function(R){switch(R.label){case 0:return S=_.mirror.getId(b),f.get(S)?[2]:b.width===0||b.height===0?[2]:(f.set(S,!0),["webgl","webgl2"].includes(b.__context)&&(O=b.getContext(b.__context),((C=O==null?void 0:O.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return k=R.sent(),l.postMessage({id:S,bitmap:k,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[k]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(e,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Fc(e,r,o,!1),a=M_(this.processMutation.bind(this),e,r,o),u=P_(this.processMutation.bind(this),e,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(o){e.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,o){var s=e.mirror.getId(o);e.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(e);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=Jt(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),D_=(function(){function t(i){x(this,"trackedLinkElements",new WeakSet),x(this,"mutationCb"),x(this,"adoptedStyleSheetCb"),x(this,"styleMirror",new n_),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var o,s=function(){var l=f.value,h=void 0;o.styleMirror.has(l)?h=o.styleMirror.getId(l):(h=o.styleMirror.add(l),u.push({styleId:h,rules:Array.from(l.rules||CSSRule,function(g,v){return{rule:Ff(g,l.href),index:v}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=I(e),f;!(f=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var o=e;if(o.adoptedStyleSheets)for(var s=I(o.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var f=e;f.sheet&&this.styleMirror.remove(f.sheet)}e.childNodes&&e.childNodes.forEach(function(l){r.cleanupStylesheetsForRemovedNode(l)})}catch{}},n.trackStylesheetInLinkElement=function(e){},t})(),F_=(function(){function t(){x(this,"nodeMap",new WeakMap),x(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var o=this.nodeMap.get(e);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(e,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t})();function U_(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch{return null}}function B_(t){if(!Array.isArray(t)||t.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var n=new Set,i=0;i<t.length;i++){var e=t[i];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+i+"] must be a string, got "+(typeof e>"u"?"undefined":P(e))+".");var r=U_(e);r&&n.add(r)}return Object.freeze(n)}var ge,bi,Ko,Bi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Yo=document.createElement("iframe");document.body.appendChild(Yo),Array.from=((Wu=Yo.contentWindow)==null?void 0:Wu.Array.from)||Array.from,document.body.removeChild(Yo)}}catch(t){console.debug("Unable to override Array.from",t)}var qe=Ud();function Tt(t){t===void 0&&(t={});var n=t.emit,i=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,o=r===void 0?"rr-block":r,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,f=t.ignoreSelector,l=f===void 0?null:f,h=t.maskTextClass,g=h===void 0?"rr-mask":h,v=t.maskTextSelector,m=v===void 0?null:v,d=t.inlineStylesheet,y=d===void 0?!0:d,_=t.maskAllInputs,b=t.maskInputOptions,C=t.slimDOMOptions,S=t.maskInputFn,O=t.maskTextFn,k=t.hooks,R=t.packFn,$=t.sampling,q=$===void 0?{}:$,ve=t.dataURLOptions,N=ve===void 0?{}:ve,G=t.mousemoveWait,de=t.recordDOM,K=de===void 0?!0:de,Le=t.recordCanvas,Pe=Le===void 0?!1:Le,xe=t.recordCrossOriginIframes,ce=xe===void 0?!1:xe,Ie=t.allowedIframeOrigins,Ft=t.recordAfter,He=Ft===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Ft,Ut=t.userTriggeredOnInput,De=Ut===void 0?!1:Ut,mt=t.collectFonts,J=mt===void 0?!1:mt,ur=t.inlineImages,cr=ur===void 0?!1:ur,yt=t.plugins,xn=t.keepIframeSrcFn,fr=xn===void 0?function(){return!1}:xn,Rn=t.ignoreCSSAttributes,An=Rn===void 0?new Set([]):Rn,Br=t.errorHandler;f_(Br);var Bt;ce&&Ie&&Ie.length>0&&(Bt=B_(Ie),Bt.size===0&&(Bt=void 0));var zt=ce?window.parent===window:!0,qt=!1;if(!zt)try{window.parent.document&&(qt=!1)}catch{qt=!0}if(zt&&!n)throw new Error("emit function is required");if(!zt&&!qt)return function(){};G!==void 0&&q.mousemove===void 0&&(q.mousemove=G),qe.reset();var Wt=_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},Gt=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};r_();var ot,lr=0,Pu=function(Y){for(var ke=I(yt||[]),M;!(M=ke()).done;){var te=M.value;te.eventProcessor&&(Y=te.eventProcessor(Y))}return R&&!qt&&(Y=R(Y)),Y};ge=function(Y,ke){var M,te=Y;if(te.timestamp=Fi(),(M=Ze[0])!=null&&M.isFrozen()&&te.type!==V.FullSnapshot&&!(te.type===V.IncrementalSnapshot&&te.data.source===D.Mutation)&&Ze.forEach(function(cd){return cd.unfreeze()}),zt)n==null||n(Pu(te),ke);else if(qt){var Ht={type:"rrweb",event:Pu(te),origin:window.location.origin,isCheckout:ke};if(Bt)for(var $o=I(Bt),Uu;!(Uu=$o()).done;){var sd=Uu.value;window.parent.postMessage(Ht,sd)}else window.parent.postMessage(Ht,"*")}if(te.type===V.FullSnapshot)ot=te,lr=0;else if(te.type===V.IncrementalSnapshot){if(te.data.source===D.Mutation&&te.data.isAttachIframe)return;lr++;var ad=e&&lr>=e,ud=i&&te.timestamp-ot.timestamp>i;(ad||ud)&&bi(!0)}};for(var kn=function(Y){ge({type:V.IncrementalSnapshot,data:z({source:D.Mutation},Y)})},$u=function(Y){return ge({type:V.IncrementalSnapshot,data:z({source:D.Scroll},Y)})},Nu=function(Y){return ge({type:V.IncrementalSnapshot,data:z({source:D.CanvasMutation},Y)})},id=function(Y){return ge({type:V.IncrementalSnapshot,data:z({source:D.AdoptedStyleSheet},Y)})},jt=new D_({mutationCb:kn,adoptedStyleSheetCb:id}),st=new O_({mirror:qe,mutationCb:kn,stylesheetManager:jt,recordCrossOriginIframes:ce,wrappedEmit:ge}),od=I(yt||[]),Lu;!(Lu=od()).done;){var Du=Lu.value;Du.getMirror&&Du.getMirror({nodeMirror:qe,crossOriginIframeMirror:st.crossOriginIframeMirror,crossOriginIframeStyleMirror:st.crossOriginIframeStyleMirror})}var To=new F_;Ko=new L_({recordCanvas:Pe,mutationCb:Nu,win:window,blockClass:o,blockSelector:a,mirror:qe,sampling:q.canvas,dataURLOptions:N});var Mn=new x_({mutationCb:kn,scrollCb:$u,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:Wt,dataURLOptions:N,maskTextFn:O,maskInputFn:S,recordCanvas:Pe,inlineImages:cr,sampling:q,slimDOMOptions:Gt,iframeManager:st,stylesheetManager:jt,canvasManager:Ko,keepIframeSrcFn:fr,processedNodeManager:To},mirror:qe});bi=function(Y){if(Y===void 0&&(Y=!1),!!K){ge({type:V.Meta,data:{href:window.location.href,width:ah(),height:sh()}},Y),jt.reset(),Mn.init(),Ze.forEach(function(M){return M.lock()});var ke=cv(document,{mirror:qe,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:Wt,maskTextFn:O,maskInputFn:S,slimDOM:Gt,dataURLOptions:N,recordCanvas:Pe,inlineImages:cr,onSerialize:function(M){fh(M,qe)&&st.addIframe(M),lh(M,qe)&&jt.trackLinkElement(M),js(M)&&Mn.addShadowRoot(j.shadowRoot(M),document)},onIframeLoad:function(M,te){st.attachIframe(M,te),Mn.observeAttachShadow(M)},onStylesheetLoad:function(M,te){jt.attachLinkElement(M,te)},keepIframeSrcFn:fr});if(!ke)return console.warn("Failed to snapshot the document");ge({type:V.FullSnapshot,data:{node:ke,initialOffset:oh(window)}},Y),Ze.forEach(function(M){return M.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&jt.adoptStyleSheets(document.adoptedStyleSheets,qe.getId(document))}};try{var Vt=[],Fu=function(Y){var ke;return H(I_)({mutationCb:kn,mousemoveCb:function(M,te){return ge({type:V.IncrementalSnapshot,data:{source:te,positions:M}})},mouseInteractionCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.MouseInteraction},M)})},scrollCb:$u,viewportResizeCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.ViewportResize},M)})},inputCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.Input},M)})},mediaInteractionCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.MediaInteraction},M)})},styleSheetRuleCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.StyleSheetRule},M)})},styleDeclarationCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.StyleDeclaration},M)})},canvasMutationCb:Nu,fontCb:function(M){return ge({type:V.IncrementalSnapshot,data:z({source:D.Font},M)})},selectionCb:function(M){ge({type:V.IncrementalSnapshot,data:z({source:D.Selection},M)})},customElementCb:function(M){ge({type:V.IncrementalSnapshot,data:z({source:D.CustomElement},M)})},blockClass:o,ignoreClass:c,ignoreSelector:l,maskTextClass:g,maskTextSelector:m,maskInputOptions:Wt,inlineStylesheet:y,sampling:q,recordDOM:K,recordCanvas:Pe,inlineImages:cr,userTriggeredOnInput:De,collectFonts:J,doc:Y,maskInputFn:S,maskTextFn:O,keepIframeSrcFn:fr,blockSelector:a,slimDOMOptions:Gt,dataURLOptions:N,mirror:qe,iframeManager:st,stylesheetManager:jt,shadowDomManager:Mn,processedNodeManager:To,canvasManager:Ko,ignoreCSSAttributes:An,plugins:((ke=yt==null?void 0:yt.filter(function(M){return M.observer}))==null?void 0:ke.map(function(M){return{observer:M.observer,options:M.options,callback:function(te){return ge({type:V.Plugin,data:{plugin:M.name,payload:te}})}}}))||[]},k)};st.addLoadListener(function(Y){try{var ke=Y.contentDocument,M=Fu(ke);Vt.push(M);var te=st.getObserverCleanup(Y);st.setObserverCleanup(Y,function(){if(te)try{te()}catch{}try{M();var Ht=Vt.indexOf(M);Ht!==-1&&Vt.splice(Ht,1),h_(ke)}catch{}})}catch(Ht){console.warn(Ht)}});var Po=function(){bi(),Vt.push(Fu(document)),Bi=!0};return document.readyState==="interactive"||document.readyState==="complete"?Po():(Vt.push(Me("DOMContentLoaded",function(){ge({type:V.DomContentLoaded,data:{}}),He==="DOMContentLoaded"&&Po()})),Vt.push(Me("load",function(){ge({type:V.Load,data:{}}),He==="load"&&Po()},window))),function(){Vt.forEach(function(Y){try{Y()}catch(M){var ke=String(M).toLowerCase();ke.includes("cross-origin")||console.warn(M)}}),To.destroy(),Bi=!1,l_()}}catch(Y){console.warn(Y)}}Tt.addCustomEvent=function(t,n){if(!Bi)throw new Error("please add custom event after start recording");ge({type:V.Custom,data:{tag:t,payload:n}})};Tt.freezePage=function(){Ze.forEach(function(t){return t.freeze()})};Tt.takeFullSnapshot=function(t){if(!Bi)throw new Error("please take full snapshot after start recording");bi(t)};Tt.mirror=qe;var zc;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(zc||(zc={}));Tt.addCustomEvent;Tt.freezePage;Tt.takeFullSnapshot;var qc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ri={},z_=function(){return!!globalThis.Zone};function eu(t){if(ri[t])return ri[t];var n=globalThis[t],i=n.prototype,e=t in qc?qc[t]:void 0,r=!!(e&&e.every(function(f){var l,h;return!!((h=(l=Object.getOwnPropertyDescriptor(i,f))==null?void 0:l.get)!=null&&h.toString().includes("[native code]"))})),o=t in Wc?Wc[t]:void 0,s=!!(o&&o.every(function(f){var l;return typeof i[f]=="function"&&((l=i[f])==null?void 0:l.toString().includes("[native code]"))}));if(r&&s&&!z_())return ri[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?ri[t]=c:i}catch{return i}}var Jo={};function Pt(t,n,i){var e,r=t+"."+String(i);if(Jo[r])return Jo[r].call(n);var o=eu(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Jo[r]=s,s.call(n)):n[i]}var Xo={};function Ch(t,n,i){var e=t+"."+String(i);if(Xo[e])return Xo[e].bind(n);var r=eu(t),o=r[i];return typeof o!="function"?n[i]:(Xo[e]=o,o.bind(n))}function q_(t){return Pt("Node",t,"childNodes")}function W_(t){return Pt("Node",t,"parentNode")}function G_(t){return Pt("Node",t,"parentElement")}function j_(t){return Pt("Node",t,"textContent")}function V_(t,n){return Ch("Node",t,"contains")(n)}function H_(t){return Ch("Node",t,"getRootNode")()}function K_(t){return!t||!("host"in t)?null:Pt("ShadowRoot",t,"host")}function Y_(t){return t.styleSheets}function J_(t){return!t||!("shadowRoot"in t)?null:Pt("Element",t,"shadowRoot")}function X_(t,n){return Pt("Element",t,"querySelector")(n)}function Z_(t,n){return Pt("Element",t,"querySelectorAll")(n)}function Q_(){return eu("MutationObserver").constructor}function ew(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var Gc={childNodes:q_,parentNode:W_,parentElement:G_,textContent:j_,contains:V_,getRootNode:H_,host:K_,styleSheets:Y_,shadowRoot:J_,querySelector:X_,querySelectorAll:Z_,mutationObserver:Q_,patch:ew};function Hs(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Hs(Gc.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Hs(Gc.parentNode(t),n)}function tw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function rw(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return T(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var tu={exports:{}},se=String,Eh=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se}};tu.exports=Eh();tu.exports.createColors=Eh;var nw=tu.exports,iw={},ow=Object.freeze(Object.defineProperty({__proto__:null,default:iw},Symbol.toStringTag,{value:"Module"})),we=rw(ow),jc=nw,Vc=we,Ks=(function(t){fe(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r<"u"&&typeof o<"u"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=jc.isColorSupported),Vc&&r&&(s=Vc(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),f=String(c).length,l,h;if(r){var g=jc.createColors(!0),v=g.bold,m=g.gray,d=g.red;l=function(y){return v(d(y))},h=function(y){return m(y)}}else l=h=function(y){return y};return a.slice(u,c).map(function(y,_){var b=u+1+_,C=" "+(" "+b).slice(-f)+" | ";if(b===o.line){var S=h(C.replace(/\d/g," "))+y.slice(0,o.column-1).replace(/[^\t]/g," ");return l(">")+h(C)+y+` 54 `+S+l("^")}return" "+h(C)+y}).join(` 55`)},i.toString=function(){var r=this.showSourceCode();return r&&(r=` 56 57`+r+` 58`),this.name+": "+this.message+r},n})(rn(Error)),ru=Ks;Ks.default=Ks;var $t={};$t.isClean=Symbol("isClean");$t.my=Symbol("my");var Hc={after:` 59`,beforeClose:` 60`,beforeComment:` 61`,beforeDecl:` 62`,beforeOpen:" ",beforeRule:` 63`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function sw(t){return t[0].toUpperCase()+t.slice(1)}var Ys=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes(` 64`)){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s<"u"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Hc[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+sw(o);return this[c]?s=this[c](u,e):u.walk(function(f){if(s=f.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=Hc[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return r=o.raws.after,r.includes(` 65`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before<"u")return o=s.raws.before,o.includes(` 66`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before<"u")return o=s.raws.before,o.includes(` 67`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r<"u"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before<"u")return r=o.raws.before,r.includes(` 68`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between<"u")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r<"u"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before<"u"){var a=o.raws.before.split(` 69`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r<"u"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Ih=Ys;Ys.default=Ys;var aw=Ih;function Js(t,n){var i=new aw(n);i.stringify(t)}var bo=Js;Js.default=Js;var ni=$t.isClean,uw=$t.my,cw=ru,fw=Ih,lw=bo;function Xs(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r>"u"?"undefined":P(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Xs(s,i)}):(o==="object"&&r!==null&&(r=Xs(r)),i[e]=r)}return i}var Zs=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[ni]=!1,this[uw]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Xs(this);for(var o in e)r[o]=e[o];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new cw(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[ni]){this[ni]=!1;for(var e=this;e=e.parent;)e[ni]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]===` 70`?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new fw;return o.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var f=c.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(l){return(typeof l>"u"?"undefined":P(l))==="object"&&l.toJSON?l.toJSON(null,r):l});else if((typeof c>"u"?"undefined":P(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var f=r.get(c.input);f==null&&(f=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:f,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(l){return l.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=lw),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),So=Zs;Zs.default=Zs;var hw=So,Qs=(function(t){fe(n,t);function n(i){var e;return i&&typeof i.value<"u"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(hw),Co=Qs;Qs.default=Qs;var pw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",dw=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=pw[Math.random()*64|0];return n},vw={nanoid:dw},Kc=we.SourceMapConsumer,Yc=we.SourceMapGenerator,gw=we.existsSync,mw=we.readFileSync,Zo=we.dirname,yw=we.join;function _w(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var ea=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Zo(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Kc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return _w(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e>"u"?"undefined":P(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=Zo(e),gw(e))return this.mapFile=e,mw(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(T(r,Kc))return Yc.fromSourceMap(r).toString();if(T(r,Yc))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=yw(Zo(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Oh=ea;ea.default=ea;var ww=we.SourceMapConsumer,bw=we.SourceMapGenerator,Jc=we.fileURLToPath,ii=we.pathToFileURL,ta=we.isAbsolute,ra=we.resolve,Sw=vw.nanoid,Qo=we,Xc=ru,Cw=Oh,es=Symbol("fromOffsetCac
70he"),Ew=!!(ww&&bw),Zc=!!(ra&&ta),zi=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i>"u"||(typeof i>"u"?"undefined":P(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Zc||/^\w+:\/\//.test(e.from)||ta(e.from)?this.file=e.from:this.file=ra(e.from)),Zc&&Ew){var r=new Cw(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Sw(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r>"u"?"undefined":P(r))==="object"){var f=r,l=o;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);r=h.line,o=h.col}else r=f.line,o=f.column;if(typeof l.offset=="number"){var g=this.fromOffset(l.offset);u=g.line,c=g.col}else u=l.line,c=l.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var m=this.origin(r,o,u,c);return m?a=new Xc(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new Xc(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(ii&&(a.input.url=ii(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[es])o=this[es];else{var s=this.css.split(` 71`);o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[es]=o}r=o[o.length-1];var f=0;if(e>=r)f=o.length-1;else for(var l=o.length-2,h;f<l;)if(h=f+(l-f>>1),e<o[h])l=h-1;else if(e>=o[h+1])f=h+1;else{f=h;break}return{col:e-o[f]+1,line:f+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ra(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var f;ta(u.source)?f=ii(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||ii(this.map.mapFile));var l={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(Jc)l.file=Jc(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(l.source=h),l},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Eo=zi;zi.default=zi;Qo&&Qo.registerInput&&Qo.registerInput(zi);var xh=we.SourceMapConsumer,Si=we.SourceMapGenerator,Ci=we.dirname,Rh=we.relative,Ah=we.resolve,kh=we.sep,Qc=we.pathToFileURL,Iw=Eo,Ow=!!(xh&&Si),xw=!!(Ci&&Ah&&Rh&&kh),Rw=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r=` 72`;this.css.includes(`\r 73`)&&(r=`\r 74`),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Ci(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new xh(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),xw&&Ow&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Si.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Si({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]},n.generateString=function(){var e=this;this.css="",this.map=new Si({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(f,l,h){if(e.css+=f,l&&h!=="end"&&(a.generated.line=r,a.generated.column=o-1,l.source&&l.source.start?(a.source=e.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(r+=u.length,c=f.lastIndexOf(` 75`),o=f.length-c):o+=f.length,l&&h!=="start"){var g=l.parent||{raws:{}},v=l.type==="decl"||l.type==="atrule"&&!l.nodes;(!v||l!==g.last||g.raws.semicolon)&&(l.source&&l.source.end?(a.source=e.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=r,a.generated.column=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var o=this.opts.to?Ci(this.opts.to):".";
vendor: 40,216 bytes, lines 75-87
75typeof this.mapOpts.annotation=="string"&&(o=Ci(Ah(o,this.mapOpts.annotation)));var s=Rh(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new Iw(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Qc){var o=Qc(e).toString();return this.memoizedFileURLs.set(e,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;kh==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Mh=Rw,Aw=So,na=(function(t){fe(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Aw),Io=na;na.default=na;var Th=$t.isClean,Ph=$t.my,$h=Co,Nh=Io,kw=So,Lh,nu,iu,Dh;function Fh(t){return t.map(function(n){return n.nodes&&(n.nodes=Fh(n.nodes)),delete n.source,n})}function Uh(t){if(t[Th]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Uh(e)}}var pt=(function(t){fe(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,f=this.normalize(c,this.last),l=I(f),h;!(h=l()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var f;return(f=o)[s].apply(f,[].concat(u.map(function(l){return typeof l=="function"?function(h,g){return l(h.toProxy(),g)}:l})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),l=1;l<c;l++)f[l-1]=arguments[l];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var f=c.value;this.proxyOf.nodes.splice(s+1,0,f)}var l;for(var h in this.indexes)l=this.indexes[h],s<l&&(this.indexes[h]=l+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),f;!(f=c()).done;){var l=f.value;this.proxyOf.nodes.splice(s,0,l)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Fh(Lh(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var f=I(r),l;!(l=f()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new $h(r)]}else if(r.selector)r=[new nu(r)];else if(r.name)r=[new iu(r)];else if(r.text)r=[new Nh(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Ph]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Th]&&Uh(v),typeof v.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,f=this.normalize(c,this.first,"prepend").reverse(),l=I(f),h;!(h=l()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+f.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?T(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ue(n,[{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]}}]),n})(kw);pt.registerParse=function(t){Lh=t};pt.registerRule=function(t){nu=t};pt.registerAtRule=function(t){iu=t};pt.registerRoot=function(t){Dh=t};var sr=pt;pt.default=pt;pt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,iu.prototype):t.type==="rule"?Object.setPrototypeOf(t,nu.prototype):t.type==="decl"?Object.setPrototypeOf(t,$h.prototype):t.type==="comment"?Object.setPrototypeOf(t,Nh.prototype):t.type==="root"&&Object.setPrototypeOf(t,Dh.prototype),t[Ph]=!0,t.nodes&&t.nodes.forEach(function(n){pt.rebuild(n)})};var Mw=sr,Bh,zh,dn=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new Bh(new zh,this,r);return o.stringify()},n})(Mw);dn.registerLazyResult=function(t){Bh=t};dn.registerProcessor=function(t){zh=t};var ou=dn;dn.default=dn;var ia=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in e)this[o]=e[o]}var n=t.prototype;return n.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},t})(),qh=ia;ia.default=ia;var Tw=qh,oa=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new Tw(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ue(t,[{key:"content",get:function(){return this.css}}]),t})(),su=oa;oa.default=oa;var ts=39,ef=34,oi=92,tf=47,si=10,jr=32,ai=12,ui=9,ci=13,Pw=91,$w=93,Nw=40,Lw=41,Dw=123,Fw=125,Uw=59,Bw=42,zw=58,qw=64,fi=/[\t\n\f\r "#'()/;[\\\]{}]/g,li=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ww=/.[\r\n"'(/\\]/,rf=/[\da-f]/i,Gw=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,f,l,h,g,v,m=e.length,d=0,y=[],_=[];function b(){return d}function C(R){throw n.error("Unclosed "+R,d)}function S(){return _.length===0&&d>=m}function O(R){if(_.length)return _.pop();if(!(d>=m)){var $=R?R.ignoreUnclosed:!1;switch(o=e.charCodeAt(d),o){case si:case jr:case ui:case ci:case ai:{s=d;do s+=1,o=e.charCodeAt(s);while(o===jr||o===si||o===ui||o===ci||o===ai);v=["space",e.slice(d,s)],d=s-1;break}case Pw:case $w:case Dw:case Fw:case zw:case Uw:case Lw:{var q=String.fromCharCode(o);v=[q,q,d];break}case Nw:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==ts&&g!==ef&&g!==jr&&g!==si&&g!==ui&&g!==ai&&g!==ci){s=d;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=d;break}else C("bracket");for(l=s;e.charCodeAt(l-1)===oi;)l-=1,f=!f}while(f);v=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||Ww.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case ts:case ef:{a=o===ts?"'":'"',s=d;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=d+1;break}else C("string");for(l=s;e.charCodeAt(l-1)===oi;)l-=1,f=!f}while(f);v=["string",e.slice(d,s+1),d,s],d=s;break}case qw:{fi.lastIndex=d+1,fi.test(e),fi.lastIndex===0?s=e.length-1:s=fi.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case oi:{for(s=d,c=!0;e.charCodeAt(s+1)===oi;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==tf&&o!==jr&&o!==si&&o!==ui&&o!==ci&&o!==ai&&(s+=1,rf.test(e.charAt(s)))){for(;rf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===jr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===tf&&e.charCodeAt(d+1)===Bw?(s=e.indexOf("*/",d+2)+1,s===0&&(r||$?s=e.length:C("comment")),v=["comment",e.slice(d,s+1),d,s],d=s):(li.lastIndex=d+1,li.test(e),li.lastIndex===0?s=e.length-1:s=li.lastIndex-2,v=["word",e.slice(d,s+1),d,s],y.push(v),d=s);break}}return d++,v}}function k(R){_.push(R)}return{back:k,endOfFile:S,nextToken:O,position:b}},Wh=sr,qi=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(Wh),au=qi;qi.default=qi;Wh.registerAtRule(qi);var Gh=sr,jh,Vh,Mr=(function(t){fe(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var f=c.value;f.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new jh(new Vh,this,r);return o.stringify()},n})(Gh);Mr.registerLazyResult=function(t){jh=t};Mr.registerProcessor=function(t){Vh=t};var In=Mr;Mr.default=Mr;Gh.registerRoot(Mr);var vn={comma:function(n){return vn.split(n,[","],!0)},space:function(n){var i=[" ",` 76`," "];return vn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",f=!1,l=I(n),h;!(h=l()).done;){var g=h.value;f?f=!1:g==="\\"?f=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},Hh=vn;vn.default=vn;var Kh=sr,jw=Hh,Wi=(function(t){fe(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ue(n,[{key:"selectors",get:function(){return jw.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(Kh),uu=Wi;Wi.default=Wi;Kh.registerRule(Wi);var Vw=Co,Hw=Gw,Kw=Io,Yw=au,Jw=In,nf=uu,of={empty:!0,space:!0};function Xw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Zw=(function(){function t(i){this.input=i,this.root=new Jw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Yw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,f=[],l=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?l.push(o==="("?")":"]"):o==="{"&&l.length>0?l.push("}"):o===l[l.length-1]&&l.pop(),l.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(r.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(r,"params",f),u&&(e=f[f.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var f=c.value,l=f[0],h=f[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return l}a=o}return!1},n.comment=function(e){var r=new Kw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Hw(this.input)},n.decl=function(e,r){var o=new Vw;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||Xw(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if(u=e[l],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,l);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",m=l;m>0;m--){var d=g[m][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var y=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});y&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new nf;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),f=[],l=e;l;){if(o=l[0],f.push(l),o==="("||o==="[")a||(a=l),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=l),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(f,c);return}else break;else if(o==="{"){this.rule(f);return}else if(o==="}"){this.tokenizer.back(f.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,c)}else this.unknownWord(f)},n.parse=function(){for(var e;!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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,o,s){for(var a,u,c=o.length,f="",l=!0,h,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?l=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",h=o[v+1]?o[v+1][0]:"empty",!of[g]&&!of[h]?f.slice(-1)===","?l=!1:f+=a[1]:l=!1):f+=a[1];if(!l){var m=o.reduce(function(d,y){return d+y[1]},"");e.raws[r]={raw:m,value:f}}e[r]=f},n.rule=function(e){e.pop();var r=new nf;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Qw=Zw,eb=sr,tb=Qw,rb=Eo;function Gi(t,n){var i=new rb(t,n),e=new tb(i);try{e.parse()}catch(r){throw r}return e.root}var cu=Gi;Gi.default=Gi;eb.registerParse(Gi);var Je=$t.isClean,nb=$t.my,ib=Mh,ob=bo,sb=sr,ab=ou,sf=su,ub=cu,cb=In,fb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},lb={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},hb={Once:!0,postcssPlugin:!0,prepare:!0},Tr=0;function Vr(t){return(typeof t>"u"?"undefined":P(t))==="object"&&typeof t.then=="function"}function Yh(t){var n=!1,i=fb[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Tr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Tr,i+"Exit"]:[i,i+"Exit"]}function af(t){var n;return t.type==="document"?n=["Document",Tr,"DocumentExit"]:t.type==="root"?n=["Root",Tr,"RootExit"]:n=Yh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function sa(t){return t[Je]=!1,t.nodes&&t.nodes.forEach(function(n){return sa(n)}),t}var aa={},Pr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":P(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=sa(e);else if(T(e,t)||T(e,sf))s=sa(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=ub;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[nb]&&sb.rebuild(s)}this.result=new sf(i,s,r),this.helpers=z({},aa,{postcss:aa,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u>"u"?"undefined":P(u))==="object"&&u.prepare?z({},u,u.prepare(o.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion)var s,a,u,c,f}catch(l){console&&console.error&&console.error(l)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(f,l,h){e.listeners[l]||(e.listeners[l]=[]),e.listeners[l].push([f,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a>"u"?"undefined":P(a))==="object")for(var u in a){if(!lb[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!hb[u])if(P(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return uo(function(){var r,o,s,a,u,c,f,l,h,g,v,m;return Xt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Vr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Je])return[3,14];u[Je]=!0,c=[af(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(f=e.visitTick(c),!Vr(f))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,f];case 10:return d.sent(),[3,12];case 11:throw l=d.sent(),h=c[c.length-1].node,e.handleError(l,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var y,_,b,C,S;return Xt(this,function(O){switch(O.label){case 0:y=m.value,_=y[0],b=y[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(k){return b(k,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(m=v()).done?[3,18]:[5,ka(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e>"u"?"undefined":P(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Vr(o[0])?Promise.all(o):o}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=ob;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new ib(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Vr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Je];)a[Je]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var f=c.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var f=void 0;try{f=c(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Vr(f))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var f=r.iterator,l;l=o.nodes[o.indexes[f]];)if(o.indexes[f]+=1,!l[Je]){l[Je]=!0,e.push(af(l));return}r.iterator=0,delete o.indexes[f]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===Tr){o.nodes&&o.nodes.length&&(o[Je]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Je]=!0;for(var o=Yh(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===Tr)e.nodes&&e.each(function(f){f[Je]||r.walkSync(f)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ue(t,[{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"}}]),t})();Pr.registerPostcss=function(t){aa=t};var Jh=Pr;Pr.default=Pr;cb.registerLazyResult(Pr);ab.registerLazyResult(Pr);var pb=Mh,db=bo,vb=cu,gb=su,ua=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=db;this.result=new gb(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new pb(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),f=c[0],l=c[1];f&&(this.result.css=f),l&&(this.result.map=l)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ue(t,[{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,r=vb;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),mb=ua;ua.default=ua;var yb=mb,_b=Jh,wb=ou,bb=In,gn=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":P(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a>"u"?"undefined":P(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if(!((typeof a>"u"?"undefined":P(a))==="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new yb(this,e,r):new _b(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Sb=gn;gn.default=gn;bb.registerProcessor(gn);wb.registerProcessor(gn);var Cb=Co,Eb=Oh,Ib=Io,Ob=au,xb=Eo,Rb=In,Ab=uu;function mn(t,n){if(Array.isArray(t))return t.map(function(l){return mn(l)});var i=t.inputs,e=Jt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=z({},s,{__proto__:xb.prototype});a.map&&(a.map=z({},a.map,{__proto__:Eb.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(l){return mn(l,n)})),e.source){var u=e.source,c=u.inputId,f=Jt(u,["inputId"]);e.source=f,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Rb(e);if(e.type==="decl")return new Cb(e);if(e.type==="rule")return new Ab(e);if(e.type==="comment")return new Ib(e);if(e.type==="atrule")return new Ob(e);throw new Error("Unknown node type: "+t.type)}var kb=mn;mn.default=mn;var Mb=ru,Xh=Co,Tb=Jh,Pb=sr,fu=Sb,$b=bo,Nb=kb,Zh=ou,Lb=qh,Qh=Io,ep=au,Db=su,Fb=Eo,Ub=cu,Bb=Hh,tp=uu,rp=In,zb=So;function ee(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new fu(n)}ee.plugin=function(n,i){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+`: postcss.plugin was deprecated. Migration guide: 77https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Cr.LANG&&Cr.LANG.startsWith("cn")&&console.warn(n+`: éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå: 78https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new fu().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return ee([r(u)]).process(s,a)},r};ee.stringify=$b;ee.parse=Ub;ee.fromJSON=Nb;ee.list=Bb;ee.comment=function(t){return new Qh(t)};ee.atRule=function(t){return new ep(t)};ee.decl=function(t){return new Xh(t)};ee.rule=function(t){return new tp(t)};ee.root=function(t){return new rp(t)};ee.document=function(t){return new Zh(t)};ee.CssSyntaxError=Mb;ee.Declaration=Xh;ee.Container=Pb;ee.Processor=fu;ee.Document=Zh;ee.Comment=Qh;ee.Warning=Lb;ee.AtRule=ep;ee.Result=Db;ee.Input=Fb;ee.Rule=tp;ee.Root=rp;ee.Node=zb;Tb.registerPostcss(ee);var qb=ee;ee.default=ee;var pe=tw(qb);pe.stringify;pe.fromJSON;pe.plugin;pe.parse;pe.list;pe.document;pe.comment;pe.atRule;pe.rule;pe.decl;pe.root;pe.CssSyntaxError;pe.Declaration;pe.Container;pe.Processor;pe.Document;pe.Comment;pe.Warning;pe.AtRule;pe.Result;pe.Input;pe.Rule;pe.Root;pe.Node;var Wb=Object.defineProperty,Gb=function(t,n,i){return n in t?Wb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},hi=function(t,n,i){return Gb(t,(typeof n>"u"?"undefined":P(n))!=="symbol"?n+"":n,i)};function jb(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var pr=(function(){function t(i){hi(this,"fileName"),hi(this,"functionName"),hi(this,"lineNumber"),hi(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t})(),Vb=/(^|@)\S+:\d+/,uf=/^\s*at .*(\S+:\d+|\(native\))/m,Hb=/^(eval@)?(\[native code])?$/,rs={parse:function(n){return n?typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u"?this.parseOpera(n):n.stack&&n.stack.match(uf)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var i=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=i.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var i=n.stack.split(` 79`).filter(function(e){return!!e.match(uf)},this);return i.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),o=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=o?r.replace(o[0],""):r;var s=r.split(/\s+/).slice(1),a=this.extractLocation(o?o[1]:s.pop()),u=s.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new pr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split(` 80`).filter(function(e){return!e.match(Hb)},this);return i.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new pr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(e.replace(r,""));return new pr({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf(` 81`)>-1&&n.message.split(` 82`).length>n.stacktrace.split(` 83`).length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split(` 84`),r=[],o=2,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new pr({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split(` 85`),r=[],o=0,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new pr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split(` 86`).filter(function(e){return!!e.match(Vb)&&!e.match(/^Error created at/)},this);return i.map(function(e){var r=e.split("@"),o=this.extractLocation(r.pop()),s=r.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new pr({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function Kb(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var i=t.localName;if(!i)break;i=i.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var o=0;o<e.children.length;o++){var s=e.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===i&&r.push(s)}r.length>1&&(i+=":eq("+r.indexOf(t)+")"),n=i+(n?">"+n:""),t=e}return n}function ca(t){return Object.prototype.toString.call(t)==="[object Object]"}function np(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=I(i),r;!(r=e()).done;){var o=r.value;if(ca(t[o])&&np(t[o],n-1))return!0}return!1}function dr(t,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var c=e.indexOf(this);~c?e.splice(c+1):e.push(this),~c?r.splice(c,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(o(u))return s(u);if((typeof u>"u"?"undefined":P(u))==="bigint")return u.toString()+"n";if(T(u,Event)){var f={};for(var l in u){var h=u[l];Array.isArray(h)?f[l]=Kb(h.length?h[0]:null):f[l]=h}return f}else{if(T(u,Node))return T(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(T(u,Error))return u.stack?u.stack+` 87End of stack for Error object`:u.name+": "+u.message}return u});function o(a){return!!(ca(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||ca(a)&&np(a,i.depthOfLimit))}function s(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var cf={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","t
87ime","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Yb(t,n,i){var e=i?Object.assign({},cf,i):cf,r=e.logger;if(!r)return function(){};var o;typeof r=="string"?o=n[r]:o=r;var s=0,a=!1,u=[];if(e.level.includes("error")){var c=function(m){var d=m.message,y=m.error,_=rs.parse(y).map(function(C){return C.toString()}),b=[dr(d,e.stringifyOptions)];t({level:"error",trace:_,payload:b})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var f=function(m){var d,y;T(m.reason,Error)?(d=m.reason,y=[dr("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,y=[dr("Uncaught (in promise)",e.stringifyOptions),dr(m.reason,e.stringifyOptions)]);var _=rs.parse(d).map(function(b){return b.toString()});t({level:"error",trace:_,payload:y})};n.addEventListener("unhandledrejection",f),u.push(function(){n.removeEventListener("unhandledrejection",f)})}for(var l=I(e.level),h;!(h=l()).done;){var g=h.value;u.push(v(o,g))}return function(){u.forEach(function(m){return m()})};function v(m,d){var y=this;return m[d]?jb(m,d,function(_){var b=y;return function(){for(var C=arguments.length,S=new Array(C),O=0;O<C;O++)S[O]=arguments[O];if(_.apply(b,S),!(d==="assert"&&S[0])&&!a){a=!0;try{var k=rs.parse(new Error).map(function(q){return q.toString()}).splice(1),R=d==="assert"?S.slice(1):S,$=R.map(function(q){return dr(q,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:d,trace:k,payload:$}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[dr("The number of log records reached the threshold.")]})}catch(q){_.apply(void 0,[].concat(["rrweb logger error:",q],S))}finally{a=!1}
vendor: 5,048 bytes, line 87
87}}}):function(){}}}var Jb="rrweb/console@1",Xb=function(t){return{name:Jb,observer:Yb,options:t}},ff=E.setImmediate,Ot,fa,la,ip=Object.prototype.toString,Zb=typeof ff<"u"?function(n){return ff(n)}:setTimeout;try{Object.defineProperty({},"x",{}),Ot=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch{Ot=function(i,e,r){return i[e]=r,i}}la=(function(){var n,i,e;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){e=new r(s,a),i?i.next=e:n=e,i=e,e=void 0},drain:function(){var s=n;for(n=i=fa=void 0;s;)s.fn.call(s.self),s=s.next}}})();function ji(t,n){la.add(t,n),fa||(fa=Zb(la.drain))}function op(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function lu(){for(var t=0;t<this.chain.length;t++)Qb(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Qb(t,n,i){var e,r;try{n===!1?i.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=op(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(o){i.reject(o)}}function sp(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=op(t))?ji(function(){var e=new lf(i);try{n.call(t,function(){sp.apply(e,arguments)},function(){Xr.apply(e,arguments)})}catch(r){Xr.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&ji(lu,i))}catch(e){Xr.call(new lf(i),e)}}}function Xr(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&ji(lu,n))}function ap(t,n,i,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(u){i(s,u)},e)})(r)}function lf(t){this.def=t,this.triggered=!1}function eS(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Nt(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new eS(this);this.then=function(e,r){var o={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&ji(lu,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){sp.call(n,e)},function(e){Xr.call(n,e)})}catch(i){Xr.call(n,i)}}var up=Ot({},"constructor",Nt,!1);Nt.prototype=up;Ot(up,"__NPO__",0,!1);Ot(Nt,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})});Ot(Nt,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})});Ot(Nt,"all",function(n){var i=this;return ip.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;ap(i,n,function(f,l){a[f]=l,++u===s&&r(a)},o)})});Ot(Nt,"race",function(n){var i=this;return ip.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");ap(i,n,function(a,u){r(u)},o)})});var U;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?U=Promise:U=Nt;var Zr=1440*60*1e3,ns=8*1e3,Oo=Array.prototype,tS=Function.prototype,cp=Object.prototype,bt=Oo.slice,On=cp.toString,xo=cp.hasOwnProperty,Se=E.console,ut=E.navigator,F=E.document,Hr=E.opera,hf=E.screen,Xe=ut.userAgent,is=tS.bind,pf=Oo.forEach,df=Oo.indexOf,vf=Oo.map,rS=Array.isArray,ha={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},L={log:function(){if(Ne.DEBUG&&!p.isUndefined(Se)&&Se)try{Se.log.apply(Se,arguments)}catch{p.each(arguments,function(n){Se.log(n)})}},warn:function(){if(Ne.DEBUG&&!p.isUndefined(Se)&&Se){var t=["Mixpanel warning:"].concat(p.toArray(arguments));try{Se.warn.apply(Se,t)}catch{p.each(t,function(i){Se.warn(i)})}}},error:function(){if(Ne.DEBUG&&!p.isUndefined(Se)&&Se){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Se.error.apply(Se,t)}catch{p.each(t,function(i){Se.error(i)})}}},critical:function(){if(!p.isUndefined(Se)&&Se){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Se.error.apply(Se,t)}catch{p.each(t,function(i){Se.error(i)})}}}},pi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(L,arguments)}},tt=function(t){return{log:pi(L.log,t),warn:pi(L.warn,t),error:pi(L.error,t),critical:pi(L.critical,t)}},Qt=function(t){return function(){try{return t.apply(this,arguments)}catch(n){L.critical("Implementation error. Please turn on debug and contact [email protected]."),Ne.DEBUG&&L.critical(n)}}},hu=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Qt(n[i]))};p.bind=function(t,n){var i,e;
87if(is&&t.bind===is)return is.apply(t,bt.call(arguments,1));if(!p.isFunction(t))throw new TypeError;return i=bt.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(bt.call(arguments)));var r={};r.prototype=t.prototype;var o=new r;r.prototype=null;var s=t.apply(o,i.concat(bt.call(arguments)));return Object(s)===s?s:o},e};p.each=function(t,n,i){if(t!=null){if(pf&&t.forEach===pf)t.forEach(n,i);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(i,t[e],e,t)===ha)return}else for(var o in t)if(xo.call(t,o)&&n.call(i,t[o],o,t)===ha)return}};p.extend=function(t){return p.each(bt.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t};p.isArray=rS||function(t){return On.call(t)==="[object Array]"};p.isFunction=function(t){return typeof t=="function"};p.isArguments=function(t){return!!(t&&xo.call(t,"callee"))};p.toArray=function(t){return t?t.toArray?t.toArray():p.isArray(t)||p.isArguments(t)?bt.call(t):p.values(t):[]};p.map=function(t,n,i){if(vf&&t.map===vf)return t.map(n,i);var e=[];return p.each(t,function(r){e.push(n.call(i,r))}),e};p.keys=function(t){var n=[];return t===null||p.each(t,function(i,e){n[n.length]=e}),n};p.values=function(t){var n=[];return t===null||p.each(t,function(i){n[n.length]=i}),n};p.include=function(t,n){var i=!1;return t===null?i:df&&t.indexOf===df?t.indexOf(n)!=-1:(p.each(t,function(e){if(i||(i=e===n))return ha}),i)};p.includes=function(t,n){return t.indexOf(n)!==-1};p.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t};p.isObject=function(t){return t===Object(t)&&!p.isArray(t)};p.isEmptyObject=function(t){if(p.isObject(t)){for(var n in t)if(xo.call(t,n))return!1;return!0}return!1};p.isUndefined=function(t){return t===void 0};p.isString=function(t){return On.call(t)=="[object String]"};p.isDate=function(t){return On.call(t)=="[object Date]"};p.isNumber=function(t){return On.call(t)=="[object Number]"};p.isElement=function(t){return!!(t&&t.nodeType===1)};p.encodeDates=function(t){return p.each(t,function(n,i){p.isDate(n)?t[i]=p.formatDate(n):p.isObject(n)&&(t[i]=p.encodeDates(n))}),t};p.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};p.formatDate=function(t){function n(i){return i<10?"0"+i:i}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())};p.strip_empty_properties=function(t){var n={};return p.each(t,function(i,e){p.isString(i)&&i.length>0&&(n[e]=i)}),n};p.truncate=function(t,n){var i;return typeof t=="string"?i=t.slice(0,n):p.isArray(t)?(i=[],p.each(t,function(e){i.push(p.truncate(e,n))})):p.isObject(t)?(i={},p.each(t,function(e,r){i[r]=p.truncate(e,n)})):i=t,i};p.JSONEncode=(function(){return function(t){var n=t,i=function(r){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];
vendor: 4,255 bytes, lines 87-93
87return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,o){var s="",a=" ",u=0,c="",f="",l=0,h=s,g=[],v=o[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(s+=a,g=[],On.apply(v)==="[object Array]"){for(l=v.length,u=0;u<l;u+=1)g[u]=e(u,v)||"null";return f=g.length===0?"[]":s?`[ 88`+s+g.join(`, 89`+s)+` 90`+h+"]":"["+g.join(",")+"]",s=h,f}for(c in v)xo.call(v,c)&&(f=e(c,v),f&&g.push(i(c)+(s?": ":":")+f));return f=g.length===0?"{}":s?"{"+g.join(",")+h+"}":"{"+g.join(",")+"}",s=h,f}};return e("",{"":n})}})();p.JSONDecode=(function(){var t,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` 91`,r:"\r",t:" "},e,r=function(g){var v=new SyntaxError(g);throw v.at=t,v.text=e,v},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var g,v="";for(n==="-"&&(v="-",o("-"));n>="0"&&n<="9";)v+=n,o();if(n===".")for(v+=".";o()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,o(),(n==="-"||n==="+")&&(v+=n,o());n>="0"&&n<="9";)v+=n,o();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,m="",d;if(n==='"')for(;o();){if(n==='"')return o(),m;if(n==="\\")if(o(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(o(),16),!!isFinite(g));v+=1)d=d*16+g;m+=String.fromCharCode(d)}else if(typeof i[n]=="string")m+=i[n];else break;else m+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}r('Unexpected "'+n+'"')},f,l=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(f()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},h=function(){var g,v={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),v;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=f(),u(),n==="}")return o("}"),v;o(","),u()}}r("Bad object")};return f=function(){switch(u(),n){case"{":return h();case"[":return l();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var v;return e=g,t=0,n=" ",v=f(),u(),n&&r("Syntax error"),v}})();p.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,e,r,o,s,a,u,c,f=0,l=0,h="",g=[];if(!t)return t;t=p.utf8Encode(t);do i=t.charCodeAt(f++),e=t.charCodeAt(f++),r=t.charCodeAt(f++),c=i<<16|e<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[l++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(f<t.length);switch(h=g.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h};p.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,` 92`).replace(/\r/g,` 93`);var n="",i,e,r=0,o;for(i=e=0,r=t.length,o=0;o<r;o++){var s=t.charCodeAt(o),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>i&&(n+=t.substring(i,e)),n+=a,i=e=o+1)}return e>i&&(n+=t.substring(i,t.length)),n};p.UUID=function(){try{return E.crypto.randomUUID()}catch{for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",p.map(t,function(e){return e.toString(16)}).join("")}};var gf=["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"];p.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<gf.length;n++)if(t.indexOf(gf[n])!==-1)return!0;return!1};p.HTTPBuildQuery=function(t,n){var i,e,r=[];return p.isUndefined(n)&&(n="&"),p.each(t,function(o,s){i=encodeURIComponent(o.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+i}),r.join(n)};p.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");
vendor: 8,088 bytes, line 93
93var i="[\\?&]"+n+"=([^&#]*)",e=new RegExp(i),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch{L.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};p.cookie={get:function(t){for(var n=t+"=",i=F.cookie.split(";"),e=0;e<i.length;e++){for(var r=i[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=p.JSONDecode(p.cookie.get(t))||{}}catch{}return n},set_seconds:function(t,n,i,e,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(e){var f=mf(F.location.hostname);a=f?"; domain=."+f:""}if(i){var l=new Date;l.setTime(l.getTime()+i*1e3),u="; expires="+l.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),F.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(t,n,i,e,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(e){var f=mf(F.location.hostname);a=f?"; domain=."+f:""}if(i){var l=new Date;l.setTime(l.getTime()+i*24*60*60*1e3),u="; expires="+l.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return F.cookie=h,h},remove:function(t,n,i){p.cookie.set(t,"",-1,n,!1,!1,i)}};var fp=function(t){var n=!0;try{var i="__mplss_"+pu(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch{n=!1}return n},os=null,yn=function(t,n){return os!==null&&!n?os:os=fp(t)},ss=null,nS=function(t,n){return ss!==null&&!n?ss:ss=fp(t)};function lp(t,n,i){var e=function(r){L.error(n+" error: "+r)};return{is_supported:function(r){var o=i(t,r);return o||L.error(n+" unsupported"),o},error:e,get:function(r){try{return t.getItem(r)}catch(o){e(o)}return null},parse:function(r){try{return p.JSONDecode(t.getItem(r))||{}}catch{}return null},set:function(r,o){try{t.setItem(r,o)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(o){e(o)}}}}var Ro=function(){try{return E.localStorage}catch{return null}},iS=function(){try{return E.sessionStorage}catch{return null}};p.localStorage=lp(Ro(),"localStorage",yn);p.sessionStorage=lp(iS(),"sessionStorage",nS);p.register_event=(function(){var t=function(e,r,o,s,a){if(!e){L.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,o,!!a);else{var u="on"+r,c=e[u];e[u]=n(e,o,c)}};function n(e,r,o){var s=function(a){if(a=a||i(E.event),!!a){var u=!0,c,f;return p.isFunction(o)&&(c=o(a)),f=r.call(e,a),(c===!1||f===!1)&&(u=!1),u}};return s}function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation),e}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},t})();var oS=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');p.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!F.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,f,l,h,g,v,m,d=[F];for(l=0;l<o.length;l++){if(s=o[l].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var y=a[1],_=F.getElementById(y);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),c=[],f=0,h=0;h<d.length;h++)for(u=="*"?v=t(d[h]):v=d[h].getElementsByTagName(u),g=0;g<v.length;g++)c[f++]=v[g];for(d=[],m=0,h=0;h<c.length;h++)c[h].className&&p.isString(c[h].className)&&i(c[h],b)&&(d[m++]=c[h]);continue}var C=s.match(oS);if(C){u=C[1];var S=C[2],O=C[3],k=C[4];for(u||(u="*"),c=[],f=0,h=0;h<d.length;h++)for(u=="*"?v=t(d[h]):v=d[h].getElementsByTagName(u),g=0;g<v.length;g++)c[f++]=v[g];d=[],m=0;var R;switch(O){case"=":R=function($){return $.getAttribute(S)==k};break;case"~":R=function($){return $.getAttribute(S).match(new RegExp("\\b"+k+"\\b"))};break;case"|":R=function($){return $.getAttribute(S).match(new RegExp("^"+k+"-?"))};break;case"^":R=function($){return $.getAttribute(S).indexOf(k)===0};break;case"$":R=function($){return $.getAttribute(S).lastIndexOf(k)==$.getAttribute(S).length-k.length};break;case"*":R=function($){return $.getAttribute(S).indexOf(k)>-1};break;default:R=function($){return $.getAttribute(S)}}for(d=[],m=0,h=0;h<c.length;h++)R(c[h])&&(d[m++]=c[h]);continue}for(u=s,c=[],f=0,h=0;h<d.length;h++)for(v=d[h].getElementsByTagName(u),g=0;g<v.length;g++)c[f++]=v[g];d=c}return d}return function(r){return p.isElement(r)?[r]:p.isObject(r)&&!p.isUndefined(r.length)?r:e.call(this,r)}})();var sS=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],aS=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];p.info={campaignParams:function(t){var n="",i={};return p.each(sS,function(e){n=p.getQueryParam(F.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return p.each(aS,function(i){t=p.getQueryParam(F.URL,i),t.length&&(n[i]=t)}),n},marketingParams:function(){return p.extend(p.info.campaignParams(),p.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=p.info.searchEngine(t),i=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=p.getQueryParam(t,i);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,i){return n=n||"",i||p.includes(t," OPR/")?p.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":p.includes(t,"IEMobile")||p.includes(t,"WPDesktop")?"Internet Explorer Mobile":p.includes(t,"SamsungBrowser/")?"Samsung Internet":p.includes(t,"Edge")||p.includes(t,"Edg/")?"Microsoft Edge":p.includes(t,"FBIOS")?"Facebook Mobile":p.includes(t,"Whale/")?"Whale Browser":p.includes(t,"Chrome")?"Chrome":p.includes(t,"CriOS")?"Chrome iOS":p.includes(t,"UCWEB")||p.includes(t,"UCBrowser")?"UC Browser":p.includes(t,"FxiOS")?"Firefox iOS":p.includes(n,"Apple")?p.includes(t,"Mobile")?"Mobile Safari":"Safari":p.includes(t,"Android")?"Android Mobile":p.includes(t,"Konqueror")?"Konqueror":p.includes(t,"Firefox")?"Firefox":p.includes(t,"MSIE")||p.includes(t,"Trident/")?"Internet Explorer":p.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,i){var e=p.info.browser(t,n,i),r={"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=r[e];if(o===void 0)return null;var s=t.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var t=Xe;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(t){return typeof t!="object"&&(t={}
93),p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(Xe,ut.vendor,Hr),$referrer:F.referrer,$referring_domain:p.info.referringDomain(F.referrer),$device:p.info.device(Xe)}),{$current_url:p.info.currentUrl(),$browser_version:p.info.browserVersion(Xe,ut.vendor,Hr),$screen_height:hf.height,$screen_width:hf.width,mp_lib:"web",$lib_version:Ne.LIB_VERSION,$insert_id:pu(),time:p.timestamp()/1e3},p.strip_empty_properties(t))},people_properties:function(){return p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(Xe,ut.vendor,Hr)}),{$browser_version:p.info.browserVersion(Xe,ut.vendor,Hr)})},mpPageViewProperties:function(){return p.strip_empty_properties({current_page_title:F.title,current_domain:E.location.hostname,current_url_path:E.location.pathname,current_url_protocol:E.location.protocol,current_url_search:E.location.search})}};var uS=function(t,n){var i=null,e=[];return function(r){var o=this;return e.push(r),i||(i=new U(function(s){setTimeout(function(){var a=t.apply(o,[e]);i=null,e=[],s(a)},n)})),i}},pu=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},hp=function(){var t=p.UUID().replace(/-/g,""),n=p.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},cS=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,fS=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,mf=function(t){var n=fS,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=cS);var r=t.match(n);return r?r[0]:""},lS=function(){var t=E.navigator.onLine;return p.isUndefined(t)||t},Et=function(){},Vi=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},$r=null,Hi=null;typeof JSON<"u"&&($r=JSON.stringify,Hi=JSON.parse);$r=$r||p.JSONEncode;Hi=Hi||p.JSONDecode;var hS=function(t,n,i){if(!E.CompressionStream)return!1;var e=p.info.browser(t,n,i),r=p.info.browserVersion(t,n,i);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};p.info=p.info;p.info.browser=p.info.browser;p.info.browserVersion=p.info.browserVersion;p.info.device=p.info.device;p.info.properties=p.info.properties;p.isBlockedUA=p.isBlockedUA;p.isEmptyObject=p.isEmptyObject;p.isObject=p.isObject;p.JSONDecode=p.JSONDecode;p.JSONEncode=p.JSONEncode;p.toArray=p.toArray;p.NPO=Nt;var Be=function(t,n,i){this.dbName=t,this.storeName=n,this.version=i.version,this.storeNamesInDb=i.storeNames,this.dbPromise=null};Be.prototype._openDb=function(){var t=this.dbName,n=this.version,i=this.storeNamesInDb;return new U(function(e,r){var o=E.indexedDB.open(t,n);o.onerror=function(){r(o.error)},o.onsuccess=function(){e(o.result)},o.onupgradeneeded=function(s){var a=s.target.result;i.forEach(function(u){a.objectStoreNames.contains(u)||a.createObjectStore(u)})}})};Be.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof E.IDBDatabase?U.resolve():U.reject(t)})):U.reject("indexedDB is not supported in this browser")};Be.prototype.isInitialized=function(){return!!this.dbPromise};Be.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new U(function(o,s){var a=r.transaction(i,t);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(e).catch((function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):U.reject(r)}).bind(this))};Be.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})};Be.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})};Be.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})};Be.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var du="mixpanelBrowserDb",pp="mixpanelRecordingEvents",vu="mixpanelRecordingRegistry",gu={version:1,storeNames:[pp,vu]},pS="__mp_opt_in_out_";function dS(t,n){gp(!0,t,n)}
vendor: 4,624 bytes, line 93
93function vS(t,n){gp(!1,t,n)}function gS(t,n){return vp(t,n)==="1"}function dp(t,n){if(yS(n))return L.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 i=vp(t,n)==="0";return i&&L.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function Lt(t){return _u(t,function(n){return this.get_config(n)})}function Dt(t){return _u(t,function(n){return this._get_config(n)})}function Dr(t){return _u(t,function(n){return this._get_config(n)})}function mS(t,n){n=n||{},mu(n).remove(yu(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function mu(t){return t=t||{},t.persistenceType==="localStorage"?p.localStorage:p.cookie}function yu(t,n){return n=n||{},(n.persistencePrefix||pS)+t}function vp(t,n){return mu(n).get(yu(t,n))}function yS(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||E,i=n.navigator||{},e=!1;return p.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){p.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function gp(t,n,i){if(!p.isString(n)||!n.length){L.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},mu(i).set(yu(n,i),t?1:0,p.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&t&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function _u(t,n){return function(){var i=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(i=dp(e,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){L.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var _S=tt("lock"),mp=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||Ro(),this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||U};mp.prototype.withLock=function(t,n){var i=this.promiseImpl;return new i(p.bind(function(e,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,f=this.storage,l=a+":X",h=a+":Y",g=a+":Z",v=function(b){if(new Date().getTime()-s>c){_S.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),f.removeItem(g),f.removeItem(h),y();return}setTimeout(function(){try{b()}catch(C){r(C)}},u*(Math.random()+.1))},m=function(b,C){b()?C():v(function(){m(b,C)})},d=function(){var b=f.getItem(h);return b&&b!==o?!1:(f.setItem(h,o),f.getItem(h)===o?!0:(yn(f,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},y=function(){f.setItem(l,o),m(d,function(){if(f.getItem(l)===o){_();return}v(function(){if(f.getItem(h)!==o){y();return}m(function(){return!f.getItem(g)},_)})})},_=function(){f.setItem(g,"1");var b=function(){f.removeItem(g),f.getItem(h)===o&&f.removeItem(h),f.getItem(l)===o&&f.removeItem(l)};t().then(function(C){b(),e(C)}).catch(function(C){b(),r(C)})};try{if(yn(f,!0))y();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var Fr=function(t){this.storage=t||Ro()};Fr.prototype.init=function(){return this.storage?U.resolve():U.reject(new Error("localStorage is not available"))};Fr.prototype.isInitialized=function(){return!0};Fr.prototype.setItem=function(t,n){return new U(p.bind(function(i,e){try{this.storage.setItem(t,$r(n))}catch(r){e(r)}i()},this))};Fr.prototype.getItem=function(t){return new U(p.bind(function(n,i){var e;try{e=Hi(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))};Fr.prototype.removeItem=function(t){return new U(p.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var yf=tt("batch"),rt=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Fr,this.lock=new mp(t,{storage:n.sharedLockStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind(yf.error,yf),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=uS(p.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=p.bind(function(i){return this._enqueuePersisted([i])},this)};rt.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?U.resolve():this.queueStorage.init(
vendor: 8,958 bytes, line 93
93).then(p.bind(function(){this.initialized=!0},this)).catch(p.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))};rt.prototype.enqueue=function(t,n){var i={id:pu(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),U.resolve(!0))};rt.prototype._enqueuePersisted=function(t){var n=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){return this.saveToStorage(i.concat(t))},this)).then(p.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(t)),i},this)).catch(p.bind(function(i){return this.reportError("Error enqueueing items",i,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(p.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))};rt.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){if(i.length){var e={};p.each(n,function(s){e[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!e[o.id]&&(o.orphaned=!0,n.push(o),n.length>=t))break}}return n},this)):U.resolve(n)};var _f=function(t,n){var i=[];return p.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};rt.prototype.removeItemsByID=function(t){var n={};if(p.each(t,function(e){n[e]=!0}),this.memQueue=_f(this.memQueue,n),this.usePersistence){var i=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){return e=_f(e,n),this.saveToStorage(e)},this)).then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){for(var r=0;r<e.length;r++){var o=e[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(p.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(p.bind(function(e){return this.reportError("Error acquiring storage lock",e),yn(this.lock.storage,!0)?!1:i().then(p.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(p.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return U.resolve(!0)};var wf=function(t,n){var i=[];return p.each(t,function(e){var r=e.id;if(r in n){var o=n[r];o!==null&&(e.payload=o,i.push(e))}else i.push(e)}),i};rt.prototype.updatePayloads=function(t){return this.memQueue=wf(this.memQueue,t),this.usePersistence?this.lock.withLock(p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){return i=wf(i,t),this.saveToStorage(i)},this)).catch(p.bind(function(i){return this.reportError("Error updating items",t,i),!1},this))},this),this.pid).catch(p.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):U.resolve(!0)};rt.prototype.readFromStorage=function(){return this.ensureInit().then(p.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(p.bind(function(t){return t&&(p.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(p.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))};rt.prototype.saveToStorage=function(t){return this.ensureInit().then(p.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(p.bind(function(n){return this.reportError("Error saving queue",n),!1},this))};rt.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(p.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):U.resolve()};var wS=600*1e3,Qr=tt("batch"),ze=function(t,n){this.errorReporter=n.errorReporter,this.queue=new rt(t,{errorReporter:p.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};ze.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)};ze.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};ze.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};ze.prototype.clear=function(){return this.queue.clear()};ze.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};ze.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};ze.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(p.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};ze.prototype.sendRequestPromise=function(t,n){return new U(p.bind(function(i){this.sendRequest(t,n,i)},this))};ze.prototype.flush=function(t){if(this.requestInProgress)return Qr.log("Flush: Request already in progress"),U.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(p.bind(function(r){var o=r.length===e,s=[],a={};if(p.each(r,function(l){var h=l.payload;if(this.beforeSendHook&&!l.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=p.extend({},h.properties,{mp_sent_by_lib_version:Ne.LIB_VERSION}));var g=!0,v=l.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:l,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:l}),g&&s.push(h)}a[l.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),U.resolve();var u=p.bind(function(){return this.queue.removeItemsByID(p.map(r,function(l){return l.id})).then(p.bind(function(l){return p.each(r,p.bind(function(h){var g=h.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),l?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),U.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),U.resolve())},this))},this),c=p.bind(function(l){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(p.isObject(l)&&l.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(p.isObject(l)&&(l.httpStatusCode>=500||l.httpStatusCode===429||l.httpStatusCode<=0&&!lS()||l.error==="timeout")){var h=this.flushInterval*2;return l.retryAfter&&(h=parseInt(l.retryAfter,10)*1e3||h),h=Math.min(wS,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),U.resolve()}else if(p.isObject(l)&&l.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),U.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),f={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(f.transport="sendBeacon"),Qr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,f).then(c)},this)).catch(p.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))};ze.prototype.reportError=function(t,n){if(Qr.error.apply(Qr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){Qr.error(i)}};var wu=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},bS=250,yp=function(t,n){if(!p.isArray(t))return t&&n.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var i=[],e=0;e<t.length;
vendor: 12,203 bytes, line 93
93e++)try{var r=new URL(t[e]).origin;if(r==="null"){n.critical(t[e]+" has an opaque origin. Skipping this entry.");continue}i.push(r)}catch{n.critical(t[e]+" is not a valid origin URL. Skipping this entry.")}return i},_n="change",dt="click",pa="hashchange",SS="input",bf="load",St="mp_locationchange",Sf="popstate",Ao="scrollend",bu="scroll",CS="select",Ki="submit",ES="toggle",Cf="visibilitychange",IS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Ef=["mp-include"],da=["mp-no-track"],If=da.concat(["mp-sensitive"]),OS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],xS={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},RS={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},AS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Of=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],kS=5,ne=tt("autocapture");function va(t){for(var n={},i=_p(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function _p(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function MS(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!wp(t));return t}function xf(t,n,i,e,r,o){var s={$classes:_p(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(s.$id=a),Su(t,n,r,o)&&p.each(OS.concat(e),function(l){if(t.hasAttribute(l)&&!i[l]){var h=t.getAttribute(l);Yi(h)&&(s["$attr-"+l]=h)}});for(var u=1,c=1,f=t;f=MS(f);)u++,f.tagName===t.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function TS(t,n){var i=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,f={};p.each(r,function(S){f[S]=!0});var l=null,h=typeof t.target>"u"?t.srcElement:t.target;if(bp(h)&&(h=h.parentNode),LS(h,t)&&ga(h,t,i,e)&&!as(h,t,o,s)){for(var g=[h],v=h;v.parentNode&&!Qe(v,"body");)g.push(v.parentNode),v=v.parentNode;var m=[],d,y=!1;if(p.each(g,function(S){var O=Su(S,t,i,e);!f.href&&S.tagName.toLowerCase()==="a"&&(d=S.getAttribute("href"),d=O&&Yi(d)&&d),as(S,t,o,s)&&(y=!0),m.push(xf(S,t,f,u,i,e))},this),!y){var _=F.documentElement;if(l={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:m,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:F.body.offsetHeight||0,$pageWidth:F.body.offsetWidth||0},p.each(u,function(S){if(!f[S]&&h.hasAttribute(S)){var O=h.getAttribute(S);Yi(O)&&(l["$el_attr__"+S]=O)}}),a&&(b=Rf(h,t,i,e),b&&b.length&&(l.$el_text=b)),t.type===dt&&(p.each(IS,function(S){S in t&&(l["$"+S]=t[S])}),c&&(l.$captured_for_heatmap=!0),h=PS(t)),a){var b=Rf(h,t,i,e);b&&b.length&&(l.$el_text=b)}if(h){if(!ga(h,t,i,e)||as(h,t,o,s))return null;var C=xf(h,t,f,u,i,e);l.$target=C,l.$el_classes=C.$classes,p.extend(l,p.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return l}function Rf(t,n,i,e){var r="";return Su(t,n,i,e)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(o){bp(o)&&o.textContent&&(r+=p.trim(o.textContent).split(/(\s+)/).filter(Yi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),p.trim(r)}function PS(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Qe(r,"a")||Qe(r,"button")||Qe(r,"input")||Qe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function ga(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(s){return ne.critical("Error while checking element in allowElementCallback",s),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var o=e[r];try{if(t.matches(o))return!0}catch(s){ne.critical("Error while checking selector: "+o,s)}}return!1}function as(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return ne.critical("Error while checking element in blockElementCallback",a),!0}if(e&&e.length)for(r=0;r<e.length;r++){var o=e[r];try{if(t.matches(o))return!0}catch(a){ne.critical("Error while checking selector: "+o,a)}}var s=va(t);for(r=0;r<da.length;r++)if(s[da[r]])return!0;return!1}function wp(t){return t&&t.nodeType===1}function Qe(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function bp(t){return t&&t.nodeType===3}function $S(){try{var t=F.createElement("div");return!!t.matches}catch{return!1}}function NS(){return typeof WeakSet<"u"}function LS(t,n){if(!t||Qe(t,"html")||!wp(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===Ki;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===_n:n.type===dt;case"select":case"textarea":return n.type===_n;default:return n.type===dt}}function Sp(t){var n=(t.name||t.id||"").toString().toLowerCase();if(typeof n=="string"){var i=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(i.test(n.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function Su(t,n,i,e){var r;if(!ga(t,n,i,e))return!1;for(var o=t;o.parentNode&&!Qe(o,"body");o=o.parentNode){var s=va(o);for(r=0;r<If.length;r++)if(s[If[r]])return!1}var a=va(t);for(r=0;r<Ef.length;r++)if(a[Ef[r]])return!0;if(Qe(t,"input")||Qe(t,"select")||Qe(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var u=t.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}return!Sp(t)}function Yi(t){if(t===null||p.isUndefined(t))return!1;if(typeof t=="string"){t=p.trim(t);var n=/^(?:(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(n.test((t||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(t))return!1}return!0}function Cp(t){var n="onscrollend"in E,i=Qt(t),e=Ao;if(!n){var r=null,o=100;i=Qt(function(){clearTimeout(r),r=setTimeout(t,o)}),e=bu}return{listener:i,eventType:e}}function DS(t){for(var n=0;n<Of.length;n++)if(t.hasAttribute(Of[n]))return!0;return!1}function FS(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return xS[i]}function us(t){var n=t.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||DS(t)||FS(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function Ep(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(RS[n])return!0;if(us(t))return!1;for(var i=t.parentElement,e=0;i&&e<kS;){if(us(i))return!1;if(i.getRootNode&&i.getRootNode()!==F){var r=i.getRootNode();if(r.host&&us(r.host))return!1}i=i.parentElement,e++}return!!AS[n]}function Ip(t){return"composedPath"in t?t.composedPath():[]}function Op(t){var n=Ip(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var xp=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",US="data-rr-is-password",BS=["password","email","tel","hidden"];function di(t){return t?Array.isArray(t)?t:[t]:[]}function zS(t){var n={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},i=t.get_config("record_mask_input_selector"),e=t.get_config("record_unmask_input_selector"),r=t.get_config("record_mask_all_inputs");n.input.maskingSelector=di(i).join(","),n.input.unmaskingSelector=di(e).join(","),r!==void 0&&(n.input.maskAll=r);var o=t.get_config("record_mask_text_selector"),s=t.get_config("record_unmask_text_selector"),a=t.get_config("record_mask_all_text"),u=t.get_config("record_mask_text_class"),c=di(o);if(u)if(u instanceof RegExp)n.text._legacyClassRegex=u;else{var f="."+u;c.indexOf(f)===-1&&c.push(f)}return n.text.maskingSelector=c.join(","),n.text.unmaskingSelector=di(s).join(","),a===void 0&&o!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function br(t,n){return n?!!t.closest(n):!1}function qS(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(BS.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(US)||Sp(t)?!0:n.input.maskAll?!br(t,n.input.unmaskingSelector):!!(br(t,n.input.maskingSelector)||br(t,xp))}function WS(t,n){return t?n.text._legacyClassRegex&&Hs(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!br(t,n.text.unmaskingSelector):!!(br(t,n.text.maskingSelector)||br(t,xp)):!1}var er=tt("network-plugin");function Ji(t){return Math.round(Date.now()-t.performance.now())}var cs={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function GS(t){return t.entryType==="navigation"}function ma(t){return t.entryType==="resource"}function jS(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function Rp(t,n,i){if(!(n in t)||typeof t[n]!="function")return function(){};var e=t[n],r=i(e);return t[n]=r,function(){t[n]=e}}var fs=1024*1024;function Ap(t){return!t||typeof t!="string"?t:t.length>fs?(er.error("Body truncated from "+t.length+" to "+fs+" characters"),t.substring(0,fs)+"... [truncated]"):t}function VS(t,n,i){if(!n.PerformanceObserver)return er.error("PerformanceObserver not supported"),function(){};if(i.recordInitialRequests){var e=n.performance.getEntries().filter(function(o){return GS(o)||ma(o)&&i.initiatorTypes.includes(o.initiatorType)});t({requests:e.map(function(o){return{url:o.name,initiatorType:o.initiatorType,status:"responseStatus"in o?o.responseStatus:void 0,startTime:Math.round(o.startTime),endTime:Math.round(o.responseEnd),timeOrigin:Ji(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(o){var s=o.getEntries().filter(function(a){return ma(a)&&i.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});t({requests:s.map(function(a){return{url:a.name,initiatorType:a.initiatorType,status:"responseStatus"in a?a.responseStatus:void 0,startTime:Math.round(a.startTime),endTime:Math.round(a.responseEnd),timeOrigin:Ji(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function Xi(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function Zi(t,n,i){return!n[t]||n[t].length===0?!1:Vi(i,n[t])}function Af(t){if(t==null)return null;var n;if(typeof t=="string")n=t;else if(t instanceof Document)n=t.textContent;else if(t instanceof FormData)n=p.HTTPBuildQuery(t);else if(p.isObject(t))try{n=JSON.stringify(t)}catch{return"Failed to stringify response object"}else return"Cannot read body of type "+typeof t;return Ap(n)}function kf(t){return new Promise(function(n){var i=setTimeout(function(){n("Timeout while trying to read body")},500);try{t.clone().text().then(function(e){clearTimeout(i),n(Ap(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function Cu(t,n,i,e,r,o){if(o===void 0&&(o=0),o>10)return er.error("Cannot find performance entry"),Promise.resolve(null);var s=t.performance.getEntriesByName(i),a=jS(s,function(u){return ma(u)&&u.initiatorType===n&&(!e||u.startTime>=e)&&(!r||u.startTime<=r)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*o)}).then(function(){return Cu(t,n,i,e,r,o+1)})}function HS(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=Rp(n.XMLHttpRequest.prototype,"open",function(r){return function(o,s,a,u,c){a===void 0&&(a=!0);
vendor: 5,246 bytes, line 93
93var f=this,l=new Request(s,{method:o}),h={},g,v,m={},d=f.setRequestHeader.bind(f);f.setRequestHeader=function(_,b){return Xi("request",i.recordHeaders,_)&&(m[_]=b),d(_,b)},h.requestHeaders=m;var y=f.send.bind(f);f.send=function(_){return Zi("request",i.recordBodyUrls,l.url)&&(h.requestBody=Af(_)),g=n.performance.now(),y(_)},f.addEventListener("readystatechange",function(){if(f.readyState===f.DONE){v=n.performance.now();var _={},b=f.getAllResponseHeaders();if(b){var C=b.trim().split(/[\r\n]+/);C.forEach(function(S){if(S){var O=S.indexOf(": ");if(O!==-1){var k=S.substring(0,O),R=S.substring(O+2);k&&Xi("response",i.recordHeaders,k)&&(_[k]=R)}}})}h.responseHeaders=_,Zi("response",i.recordBodyUrls,l.url)&&(h.responseBody=Af(f.response)),Cu(n,"xmlhttprequest",l.url,g,v).then(function(S){if(!S){er.error("Failed to get performance entry for XHR request to "+l.url);return}var O={url:S.name,method:l.method,initiatorType:S.initiatorType,status:f.status,startTime:Math.round(S.startTime),endTime:Math.round(S.responseEnd),timeOrigin:Ji(n),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};t({requests:[O]})}).catch(function(S){er.error("Error recording XHR request to "+l.url+": "+String(S))})}}),r.call(f,o,s,a,u,c)}});return function(){e()}}function KS(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=Rp(n,"fetch",function(r){return function(){var o=new Request(arguments[0],arguments[1]),s,a={},u,c,f,l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var g={};o.headers.forEach(function(v,m){Xi("request",i.recordHeaders,m)&&(g[m]=v)}),a.requestHeaders=g,Zi("request",i.recordBodyUrls,o.url)&&(l=kf(o).then(function(v){a.requestBody=v})),u=n.performance.now(),f=r.apply(n,arguments).then(function(v){s=v,c=n.performance.now();var m={};return s.headers.forEach(function(d,y){Xi("response",i.recordHeaders,y)&&(m[y]=d)}),a.responseHeaders=m,Zi("response",i.recordBodyUrls,o.url)&&(h=kf(s).then(function(d){a.responseBody=d})),s})}catch(v){f=Promise.reject(v)}return Promise.all([l,h,f]).then(function(){return Cu(n,"fetch",o.url,u,c)}).then(function(v){if(!v){er.error("Failed to get performance entry for fetch request to "+o.url);return}var m={url:v.name,method:o.method,initiatorType:v.initiatorType,status:s?s.status:void 0,startTime:Math.round(v.startTime),endTime:Math.round(v.responseEnd),timeOrigin:Ji(n),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};t({requests:[m]})}).catch(function(v){er.error("Error recording fetch request to "+o.url+": "+String(v))}),f}});return function(){e()}}function YS(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},cs.recordHeaders,i.recordHeaders||{}),r=Object.assign({},cs.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var o=Object.assign({},cs,i),s=function(f){var l=f.requests.filter(function(h){var g=Vi(h.url,o.ignoreRequestUrls||[]);return!g&&!o.ignoreRequestFn(h)});(l.length>0||f.isInitial)&&t(Object.assign({},f,{requests:l}))},a=VS(s,n,o),u=HS(s,n,o),c=KS(s,n,o);return function(){a(),u(),c()}}var JS="rrweb/[email protected]",XS=function(t){return{name:JS,observer:YS,options:t}},Yt=tt("recorder"),ZS=E.CompressionStream,QS={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},eC=new Set([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function tC(t){return t.type===V.IncrementalSnapshot&&eC.has(t.data.source)}var me=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Et,this._onMaxLengthReached=t.onMaxLengthReached||Et,this._onBatchSent=t.onBatchSent||Et,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Zr,this.recordMinMs=0,this._recordMinMsCheckStart=null;var n=yn(t.sharedLockStorage||Ro(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Be(du,pp,gu),this.batcher=new ze(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:QS,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:bS,sharedLockTimeoutMS:10*1e3})};me.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(t.$user_id=i),t};me.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init(
93).catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))};me.prototype.getConfig=function(t){return this._mixpanel.get_config(t)};me.prototype.get_config=function(t){return this.getConfig(t)};me.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Yt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Zr&&(this.recordMaxMs=Zr,Yt.critical("record_max_ms cannot be greater than "+Zr+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=p.info.currentUrl(),this.replayStartUrl=p.info.currentUrl()),t||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var n=(function(){clearTimeout(this.idleTimeoutId);var c=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,c),this.idleExpires=new Date().getTime()+c}).bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=zS(this._mixpanel),r=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,r.push(XS(o))}this.getConfig("record_console")&&r.push(Xb({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=yp(this.getConfig("record_allowed_iframe_origins"),Yt);try{this._stopRecording=this._rrwebRecord({emit:(function(c){if(this.idleExpires&&this.idleExpires<c.timestamp){this._onIdleTimeout();return}this._recordMinMsCheckStart===null&&(this._recordMinMsCheckStart=c.timestamp),tC(c)&&(this.batcher.stopped&&c.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(c),(this.lastEventTimestamp===null||c.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=c.timestamp)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(qS,e),maskTextFn:this._getMaskFn(WS,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:r})}catch(c){this.reportError("Unexpected error when starting rrweb recording.",c)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)};me.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n};me.prototype.isRrwebStopped=function(){return this._stopRecording===null};me.prototype.flushEventsWithOptOut=function(t,n,i){var e=(function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,n,i,e)};me.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}};me.deserialize=function(t,n){var i=new me(p.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return i};me.prototype._getApiRoute=function(){return this.getConfig("api_routes").record};me.prototype._sendRequest=function(t,n,i,e){var r=(function(s,a){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=p.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})};me.prototype._flushEvents=Lt(function(t,n,i){var e=t.length;if(e>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<e;u++)o=Math.min(o,t[u].timestamp),s=Math.max(s,t[u].timestamp),t[u].type===V.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}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 c=s-this.replayStartTime,f={$current_url:this.batchStartUrl,$lib_version:Ne.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},l=JSON.stringify(t);
93if(Object.assign(f,this.getUserIdInfo()),hS(Xe,ut.vendor,Hr)){var h=new Blob([l],{type:"application/json"}).stream(),g=h.pipeThrough(new ZS("gzip"));new Response(g).blob().then((function(v){f.format="gzip",this._sendRequest(r,f,v,i)}).bind(this))}else f.format="body",this._sendRequest(r,f,l,i)}});me.prototype.reportError=function(t,n){Yt.error.apply(Yt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){Yt.error(i)}};me.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};me.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>ns?(Yt.critical("record_min_ms cannot be greater than "+ns+"ms. Capping value."),ns):t};me.prototype._getMaskFn=function(t,n){return(function(i,e){if(!i.trim().length)return"";var r=!0;try{r=t(e,n)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(r){var o=Math.min(i.length,1e4);return"*".repeat(o)}else return i}).bind(this)};var vt=function(t){this.idb=new Be(du,vu,gu),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};vt.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};vt.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)};vt.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return U.resolve();var n=t.tabId;return n?this.idb.init().then((function(){return this.idb.setItem(n,t)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),U.resolve())};vt.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(t){return wu(t)?null:t}).bind(this)).catch(this.handleError.bind(this)):U.resolve(null)};vt.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};vt.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}).bind(this)).catch(this.handleError.bind(this))};vt.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):U.resolve()};vt.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(t){var n=t.filter(function(i){return wu(i)}).map((function(i){var e=me.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then((function(){return this.idb.removeItem(i.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return U.all(n)}).bind(this)).catch(this.handleError.bind(this)):U.resolve([])};var en=tt("recorder"),nt=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||Tt,this.sharedLockStorage=i,this.recordingRegistry=new vt({mixpanelInstance:this.mixpanelInstance,errorReporter:en.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};nt.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){en.log("Recording already in progress, skipping startRecording.");return}var n=(function(){en.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),i=(function(){en.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),e=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:i,replayId:p.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=me.deserialize(t.activeSerializedRecording,r):this.activeRecording=new me(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};nt.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))};nt.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};nt.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return U.resolve()};nt.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),U.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(en.log("No resumable recording found."),null)}).bind(this))};nt.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};nt.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()};nt.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null};Object.defineProperty(nt.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});E[ls]=nt;function rC(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ei={exports:{}},nC=Ei.exports,Mf;function iC(){return Mf||(Mf=1,(function(t,n){(function(i,e){t.exports=e()})(nC,function(){Array.isArray||(Array.isArray=function(o){return Object.prototype.toString.call(o)==="[object Array]"});function i(o){for(var s=[],a=0,u=o.length;a<u;a++)s.indexOf(o[a])===-1&&s.push(o[a]);return s}var e={}
vendor: 4,122 bytes, line 93
93,r={"==":function(o,s){return o==s},"===":function(o,s){return o===s},"!=":function(o,s){return o!=s},"!==":function(o,s){return o!==s},">":function(o,s){return o>s},">=":function(o,s){return o>=s},"<":function(o,s,a){return a===void 0?o<s:o<s&&s<a},"<=":function(o,s,a){return a===void 0?o<=s:o<=s&&s<=a},"!!":function(o){return e.truthy(o)},"!":function(o){return!e.truthy(o)},"%":function(o,s){return o%s},log:function(o){return console.log(o),o},in:function(o,s){return!s||typeof s.indexOf>"u"?!1:s.indexOf(o)!==-1},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(o,s,a){if(a<0){var u=String(o).substr(s);return u.substr(0,u.length+a)}return String(o).substr(s,a)},"+":function(){return Array.prototype.reduce.call(arguments,function(o,s){return parseFloat(o,10)+parseFloat(s,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(o,s){return parseFloat(o,10)*parseFloat(s,10)})},"-":function(o,s){return s===void 0?-o:o-s},"/":function(o,s){return o/s},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(o,s){return o.concat(s)},[])},var:function(o,s){var a=s===void 0?null:s,u=this;if(typeof o>"u"||o===""||o===null)return u;for(var c=String(o).split("."),f=0;f<c.length;f++)if(u==null||(u=u[c[f]],u===void 0))return a;return u},missing:function(){for(var o=[],s=Array.isArray(arguments[0])?arguments[0]:arguments,a=0;a<s.length;a++){var u=s[a],c=e.apply({var:u},this);(c===null||c==="")&&o.push(u)}return o},missing_some:function(o,s){var a=e.apply({missing:s},this);return s.length-a.length>=o?[]:a}};return e.is_logic=function(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&Object.keys(o).length===1},e.truthy=function(o){return Array.isArray(o)&&o.length===0?!1:!!o},e.get_operator=function(o){return Object.keys(o)[0]},e.get_values=function(o){return o[e.get_operator(o)]},e.apply=function(o,s){if(Array.isArray(o))return o.map(function(d){return e.apply(d,s)});if(!e.is_logic(o))return o;var a=e.get_operator(o),u=o[a],c,f,l,h,g;if(Array.isArray(u)||(u=[u]),a==="if"||a=="?:"){for(c=0;c<u.length-1;c+=2)if(e.truthy(e.apply(u[c],s)))return e.apply(u[c+1],s);return u.length===c+1?e.apply(u[c],s):null}else if(a==="and"){for(c=0;c<u.length;c+=1)if(f=e.apply(u[c],s),!e.truthy(f))return f;return f}else if(a==="or"){for(c=0;c<u.length;c+=1)if(f=e.apply(u[c],s),e.truthy(f))return f;return f}else{if(a==="filter")return h=e.apply(u[0],s),l=u[1],Array.isArray(h)?h.filter(function(d){return e.truthy(e.apply(l,d))}):[];if(a==="map")return h=e.apply(u[0],s),l=u[1],Array.isArray(h)?h.map(function(d){return e.apply(l,d)}):[];if(a==="reduce")return h=e.apply(u[0],s),l=u[1],g=typeof u[2]<"u"?e.apply(u[2],s):null,Array.isArray(h)?h.reduce(function(d,y){return e.apply(l,{current:y,accumulator:d})},g):g;if(a==="all"){if(h=e.apply(u[0],s),l=u[1],!Array.isArray(h)||!h.length)return!1;for(c=0;c<h.length;c+=1)if(!e.truthy(e.apply(l,h[c])))return!1;return!0}else if(a==="none"){if(h=e.apply(u[0],s),l=u[1],!Array.isArray(h)||!h.length)return!0;for(c=0;c<h.length;c+=1)if(e.truthy(e.apply(l,h[c])))return!1;return!0}else if(a==="some"){if(h=e.apply(u[0],s),l=u[1],!Array.isArray(h)||!h.length)return!1;for(c=0;c<h.length;c+=1)if(e.truthy(e.apply(l,h[c])))return!0;return!1}}if(u=u.map(function(d){return e.apply(d,s)}),r.hasOwnProperty(a)&&typeof r[a]=="function")return r[a].apply(s,u);if(a.indexOf(".")>0){var v=String(a).split("."),m=r;for(c=0;c<v.length;c++){if(!m.hasOwnProperty(v[c]))throw new Error("Unrecognized operation "+a+" (failed at "+v.slice(0,c+1).join(".")+")");m=m[v[c]]}return m.apply(s,u)}throw new Error("Unrecognized operation "+a)},e.uses_data=function(o){var s=[];if(e.is_logic(o)){var a=e.get_operator(o),u=o[a];Array.isArray(u)||(u=[u]),a==="var"?s.push(u[0]):u.forEach(function(c){s.push.apply(s,e.uses_data(c))})}return i(s)},e.add_operation=function(o,s){r[o]=s},e.rm_operation=function(o){delete r[o]},e.rule_like=function(o,s){if(s===o||s==="@")return!0;if(s==="number")return typeof o=="number";
93if(s==="string")return typeof o=="string";if(s==="array")return Array.isArray(o)&&!e.is_logic(o);if(e.is_logic(s)){if(e.is_logic(o)){var a=e.get_operator(s),u=e.get_operator(o);if(a==="@"||a===u)return e.rule_like(e.get_values(o,!1),e.get_values(s,!1))}return!1}if(Array.isArray(s))if(Array.isArray(o)){if(s.length!==o.length)return!1;for(var c=0;c<s.length;c+=1)if(!e.rule_like(o[c],s[c]))return!1;return!0}else return!1;return!1},e})})(Ei)),Ei.exports}var oC=iC(),sC=rC(oC),aC=function(t,n,i){if(t!==i.event_name)return{matches:!1};var e=i.property_filters,r=!0;if(e&&!p.isEmptyObject(e))try{r=sC.apply(e,n||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:r}},kp={};kp.eventMatchesCriteria=aC;E[We]=Promise.resolve(kp);var uC=30,cC=1e3,fC=4,lC=!1;function Mp(){this.clicks=[]}Mp.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||uC,e=n.timeout_ms||cC,r=n.click_count||fC,o=n.interactive_elements_only||lC;if(o){var s=Op(t);if(!s||Ep(s))return!1}var a=Date.now(),u=t.pageX,c=t.pageY,f=this.clicks[this.clicks.length-1];if(f&&a-f.timestamp<e&&Math.sqrt(Math.pow(u-f.x,2)+Math.pow(c-f.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function Ur(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}Ur.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return Op(t)};Ur.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=Ip(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}};Ur.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(t,this.observerConfig),this.shadowObservers.push(i)}catch(e){ne.critical("Error while observing shadow root",e)}}};Ur.prototype.start=function(){if(!this.observedShadowRoots){if(!NS()){ne.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};Ur.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){ne.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var hC=500,pC=[_n,SS,Ki,CS,ES],dC=[Ao],vC=[pa],Tf={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function it(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}it.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||Ep(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)};it.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i};it.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,i=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],o=0;o<e.length;o++){var s=e[o];i-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r};it.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100};it.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};it.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))};it.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var e=i.getDeadClicks(t),r=0;r<e.length;r++)i.onDeadClickCallback(e[r].event);i.pendingClicks.length>0?i.processRecursively(t):i.processingActive=!1}},n)};it.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;pC.forEach(function(i){var e=function(){t.recordChangeEvent()};document.addEventListener(i,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:i,handler:e,options:{capture:!0,passive:!0}})}
93),vC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),dC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e,{passive:!0}),t.eventListeners.push({target:window,event:i,handler:e,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,Tf)}catch(i){ne.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new Ur(function(){t.recordChangeEvent()},Tf),this.shadowDOMObserver.start()}catch(i){ne.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}};it.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 t=0;t<this.eventListeners.length;t++){var n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){ne.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){ne.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){ne.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var Tp="autocapture",gC="track_pageview",ya="full-url",mC="url-with-path-and-query-string",yC="url-with-path",_C="allow_element_callback",Pp="allow_selectors",$p="allow_url_regexes",Np="block_attrs",Lp="block_element_callback",Dp="block_selectors",Fp="block_url_regexes",Up="capture_extra_attrs",Bp="capture_text_content",zp="scroll_capture_all",qp="scroll_depth_percent_checkpoints",Qi="click",eo="dead_click",_a="input",Wp="pageview",to="rage_click",wa="scroll",ko="page_leave",ba="submit",Ce={};Ce[Pp]=[];Ce[$p]=[];Ce[Np]=[];Ce[Lp]=null;Ce[Dp]=[];Ce[Fp]=[];Ce[Up]=[];Ce[Bp]=!1;Ce[zp]=!1;Ce[qp]=[25,50,75,100];Ce[Qi]=!0;Ce[eo]=!0;Ce[_a]=!0;Ce[Wp]=ya;Ce[to]=!0;Ce[wa]=!0;Ce[ko]=!1;Ce[ba]=!0;var wn={$mp_autocapture:!0},Gp="$mp_click",jp="$mp_dead_click",wC="$mp_input_change",Vp="$mp_rage_click",bC="$mp_scroll",SC="$mp_submit",CC="$mp_page_leave",be=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};be.prototype.init=function(){if(!$S()){ne.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()};be.prototype.getFullConfig=function(){var t=this.mp.get_config(Tp);return t?p.isObject(t)?p.extend({},Ce,t):Ce:{}};be.prototype.getConfig=function(t){return this.getFullConfig()[t]};be.prototype.currentUrlBlocked=function(){var t=p.info.currentUrl(),n=this.getConfig($p)||[];if(n.length)try{return!Vi(t,n)}catch(e){return ne.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(Fp)||[];if(!i||!i.length)return!1;try{return Vi(t,i)}catch(e){return ne.critical("Error while checking block URL regexes: ",e),!0}};be.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Tp)?this.getConfig(Wp):this.mp.get_config(gC)};be.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Gp&&!this.getConfig(Qi)||n===Vp&&!this._getClickTrackingConfig(to)||n===jp&&!this._getClickTrackingConfig(eo)),e=TS(t,{allowElementCallback:this.getConfig(_C),allowSelectors:this.getConfig(Pp),blockAttrs:this.getConfig(Np),blockElementCallback:this.getConfig(Lp),blockSelectors:this.getConfig(Dp),captureExtraAttrs:this.getConfig(Up),captureTextContent:this.getConfig(Bp),captured
93ForHeatMap:i});e&&(p.extend(e,wn),this.mp.track(n,e))}};be.prototype.initPageListeners=function(){if(E.removeEventListener(Sf,this.listenerPopstate),E.removeEventListener(pa,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(ko)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(St))},this.listenerHashchange=function(){E.dispatchEvent(new Event(St))},E.addEventListener(Sf,this.listenerPopstate),E.addEventListener(pa,this.listenerHashchange);var t=E.history.pushState;typeof t=="function"&&(E.history.pushState=function(i,e,r){t.call(E.history,i,e,r),E.dispatchEvent(new Event(St))});var n=E.history.replaceState;typeof n=="function"&&(E.history.replaceState=function(i,e,r){n.call(E.history,i,e,r),E.dispatchEvent(new Event(St))})}};be.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null};be.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(ko)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(F.documentElement.clientHeight,E.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(i-e)*100),o=Math.round(e/i*100);i<=e&&(r=100,o=100);var s=p.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:o,$scroll_height:i,$event_type:t.type,$current_url:n||p.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(F.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},wn);this.mp.track(CC,s,{transport:"sendBeacon"})}};be.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(bu,this.listenerScrollDepth),E.removeEventListener(Ao,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){ne.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(F.documentElement.clientHeight,E.innerHeight||0);var t=(function(){if(!this.currentUrlBlocked()){var i=Math.max(F.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=F.body.scrollHeight}}).bind(this),n=Cp(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}};be.prototype.initClickTracking=function(){E.removeEventListener(dt,this.listenerClick,!0),!(!this.getConfig(Qi)&&!this.mp.get_config("record_heatmap_data"))&&(ne.log("Initializing click tracking"),this.listenerClick=(function(t){!this.getConfig(Qi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Gp)}).bind(this),E.addEventListener(dt,this.listenerClick,!0))};be.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(eo);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}ne.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new it((function(n){this.trackDomEvent(n,jp)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(n){var i=this._getClickTrackingConfig(eo);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=hC),this._deadClickTracker.trackClick(n,e)}}).bind(this),E.addEventListener(dt,this.listenerDeadClick,!0))};be.prototype.initInputTracking=function(){E.removeEventListener(_n,this.listenerChange,!0),this.getConfig(_a)&&(ne.log("Initializing input tracking"),this.listenerChange=(function(t){this.getConfig(_a)&&this.trackDomEvent(t,wC)}).bind(this),E.addEventListener(_n,this.listenerChange,!0))};be.prototype.initPageviewTracking=function(){if(E.removeEventListener(St,this.listenerLocationchange),!(!this.pageviewTrackingConfig()&&!this.mp.get_config("record_heatmap_data"))){ne.log("Initializing pageview tracking");var t="",n=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(n=this.mp.track_pageview(wn)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=Qt((function(){if(!this.currentUrlBlocked()){var i=p.info.currentUrl(),e=!1,r=i.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(!o&&this.mp.is_recording_heatmap_data()&&(o=ya),o===ya?e=i!==t:o===mC?e=i.split("#")[0]!==t.split("#")[0]:o===yC&&(e=r),e){var s=this.mp.track_pageview(wn);s&&(t=i),r&&(this.lastScrollCheckpoint=0,ne.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),E.addEventListener(St,this.listenerLocationchange)}};be.prototype.initRageClickTracking=function(){E.removeEventListener(dt,this.listenerRageClick,!0);var t=this._getClickTrackingConfig(to);!t&&!this.mp.get_config("record_heatmap_data")||(ne.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Mp),this.listenerRageClick=(function(n){var i=this._getClickTrackingConfig(to);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,Vp)}).bind(this),E.addEventListener(dt,this.listenerRageClick,!0))};be.prototype.initScrollTracking=function(){if(E.removeEventListener(Ao,this.listenerScroll),E.removeEventListener(bu,this.listenerScroll),!!this.getConfig(wa)){ne.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=(function(){if(this.getConfig(wa)&&!this.currentUrlBlocked()){var i=this.getConfig(zp),e=(this.getConfig(qp)||[]).slice().sort(function(f,l){return f-l}
93),r=E.scrollY,o=p.extend({$scroll_top:r},wn);try{var s=F.body.scrollHeight,a=Math.round(r/(s-E.innerHeight)*100);if(o.$scroll_height=s,o.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<e.length;u++){var c=e[u];a>=c&&this.lastScrollCheckpoint<c&&(o.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(f){ne.critical("Error while calculating scroll percentage",f)}i&&this.mp.track(bC,o)}}).bind(this),n=Cp(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}};be.prototype.initSubmitTracking=function(){E.removeEventListener(Ki,this.listenerSubmit,!0),this.getConfig(ba)&&(ne.log("Initializing submit tracking"),this.listenerSubmit=(function(t){this.getConfig(ba)&&this.trackDomEvent(t,SC)}).bind(this),E.addEventListener(Ki,this.listenerSubmit,!0))};be.prototype.initPageLeaveTracking=function(){if(F.removeEventListener(Cf,this.listenerPageLeaveVisibilitychange),E.removeEventListener(St,this.listenerPageLeaveLocationchange),E.removeEventListener(bf,this.listenerPageLoad),!(!this.getConfig(ko)&&!this.mp.get_config("record_heatmap_data"))){ne.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=p.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=F.body.scrollHeight}).bind(this),E.addEventListener(bf,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Qt((function(n){if(!this.currentUrlBlocked()){var i=p.info.currentUrl(),e=i!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=i,this.maxScrollViewDepth=Math.max(F.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=F.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),E.addEventListener(St,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(n){F.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}).bind(this),F.addEventListener(Cf,this.listenerPageLeaveVisibilitychange)}};be.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(dt,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};hu(be);var Hp=function(t,n){return E[We]&&typeof E[We].then=="function"||(E[We]=new Promise(function(i){t(n,i)}).then(function(){var i=E[We];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[We],i})),E[We]},je=tt("flags"),EC="mixpanelFlagsDb",Kp="mixpanelFlags",IC={version:1,storeNames:[Kp]},OC="persisted_variants_for_",Pf=1440*60*1e3,It=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),xC=[It.NETWORK_ONLY,It.NETWORK_FIRST,It.PERSISTENCE_UNTIL_NETWORK_SUCCESS],ar=function(t,n,i){this.idb=new Be(EC,Kp,IC),this.persistenceConfig=t,this.persistedVariantsKey=OC+n,this.isGloballyDisabled=i||function(){return!1}};ar.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?It.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy};ar.prototype.getTtlMs=function(){if(!this._isConfigValid())return Pf;var t=this.persistenceConfig.persistenceTtlMs;return t??Pf};ar.prototype._isConfigValid=function(){var t=this.persistenceConfig;return t?xC.indexOf(t.variantLookupPolicy)===-1?(je.error("Invalid variantLookupPolicy:",t.variantLookupPolicy),!1):t.persistenceTtlMs!==void 0&&t.persistenceTtlMs!==null&&t.persistenceTtlMs<=0?(je.error("If provided, persistenceTtlMs must be a positive number. Provided value:",t.persistenceTtlMs),!1):!0:!1};ar.prototype.loadFlagsFromStorage=function(t){var n=p.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===It.NETWORK_ONLY)return n();var i=this.getTtlMs();return this.idb.init().then(p.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(p.bind(function(e){if(!e)return je.log("No persisted variants found in IndexedDB"),null;if(i&&Date.now()-e.persistedAt>=i)return je.log("Persisted variants are expiring"),null;if(!t||e.distinctId!==t.distinct_id)return je.log("Persisted variants found, but for a different distinct_id so clearing."),n();var r=new Map;return p.each(e.flagVariants,function(o,s){r.set(s,{key:o.variant_key,value:o.variant_value,experiment_id:o.experiment_id,is_experiment_active:o.is_experiment_active,is_qa_tester:o.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:e.persistedAt,ttl_in_ms:i})}),je.log("Loaded",r.size,"variants from IndexedDB for distinct_id",e.distinctId),{flags:r,pendingFirstTimeEvents:e.pendingFirstTimeEvents||{},persistedAtMs:e.persistedAt,ttlMs:i}},this)).catch(p.bind(function(e){return je.error("Failed to load persisted variants from IndexedDB, so clearing",e),n()},this))};ar.prototype.save=function(t,n,i){if(this.getPolicy()===It.NETWORK_ONLY)return Promise.resolve();var e={};
vendor: 5,142 bytes, line 93
93n.forEach(function(o,s){e[s]={variant_key:o.key,variant_value:o.value,experiment_id:o.experiment_id,is_experiment_active:o.is_experiment_active,is_qa_tester:o.is_qa_tester}});var r={persistedAt:Date.now(),distinctId:t&&t.distinct_id,context:t,flagVariants:e,pendingFirstTimeEvents:i||{}};return this.idb.init().then(p.bind(function(){return this.idb.setItem(this.persistedVariantsKey,r)},this)).then(function(){je.log("Saved",n.size,"variants to IndexedDB for distinct_id",r.distinctId)}).catch(function(o){je.error("Failed to persist variants to IndexedDB:",o)})};ar.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(p.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){je.log("Cleared persisted variants from IndexedDB")}).catch(function(t){je.error("Failed to clear persisted variants from IndexedDB:",t)})};var X=tt("flags"),ro="flags",no="context",RC="persistence",Sa={};Sa[no]={};var AC=function(t,n){return t+":"+n},kC=function(t){return t.split(":")[0]},Kt=function(t){return p.isObject(t)?p.extend({},t,{variant_source:"fallback"}):{value:t,variant_source:"fallback"}},A=function(t){this.fetch=E.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc,this.loadExtraBundle=t.loadExtraBundle||function(){},this.targetingSrc=t.targetingSrc||""};A.prototype.init=function(){if(!this.minApisSupported()){X.critical("Feature Flags unavailable: missing minimum required APIs");return}return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new ar(this.getConfig(RC),this.getMpConfig("token"),p.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(p.bind(function(t){t&&(this.flags=t.flags,this.pendingFirstTimeEvents=t.pendingFirstTimeEvents,this._loadedPersistedAtMs=t.persistedAtMs,this._loadedTtlMs=t.ttlMs)},this)),this.persistenceLoadedPromise.then(p.bind(function(){return this.fetchFlags()},this)).catch(function(){X.error("Error initializing feature flags")})};A.prototype._buildContext=function(){return p.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(no))};A.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(p.bind(function(){return this.fetchFlags()},this)).catch(function(){X.error("Error during flags reset")})):Promise.resolve()};A.prototype.getFullConfig=function(){var t=this.getMpConfig(ro);return t?p.isObject(t)?p.extend({},Sa,t):Sa:{}};A.prototype.getConfig=function(t){return this.getFullConfig()[t]};A.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ro)};A.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return X.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(ro);p.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(no);i[no]=p.extend({},e,t);var r={};return r[ro]=i,this.setMpConfig(r),this.fetchFlags().catch(function(){X.error("Error fetching flags during updateContext")})};A.prototype.areFlagsReady=function(){return this.isSystemEnabled()||X.error("Feature Flags not enabled"),!!this.flags};A.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this._buildContext(),n=t.distinct_id,i=hp();X.log("Fetching flags for distinct ID: "+n);var e=new URLSearchParams;e.set("context",JSON.stringify(t)),e.set("token",this.getMpConfig("token")),e.set("mp_lib","web"),e.set("$lib_version",Ne.LIB_VERSION);var r=this.getFullApiRoute()+"?"+e.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(E,r,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then((function(o){return this.markFetchComplete(),o.json()}).bind(this)).then((function(o){var s=o.flags;if(!s)throw new Error("No flags in API response");var a=new Map,u={};p.each(s,function(f,l){var h=!1,g=l+":";if(p.each(this.activatedFirstTimeEvents,function(m,d){d.startsWith(g)&&(h=!0)}),h){var v=this.flags&&this.flags.get(l);v&&a.set(l,v)}else a.set(l,{key:f.variant_key,value:f.variant_value,experiment_id:f.experiment_id,is_experiment_active:f.is_experiment_active,is_qa_tester:f.is_qa_tester,variant_source:"network"})},this);var c=o.pending_first_time_events;c&&c.length>0&&p.each(c,function(f){var l=f.flag_key,h=AC(l,f.first_time_event_hash);this.activatedFirstTimeEvents[h]||(u[h]={flag_key:l,flag_id:f.flag_id,project_id:f.project_id,first_time_event_hash:f.first_time_event_hash,event_name:f.event_name,property_filters:f.property_filters,pending_variant:f.pen
93ding_variant})},this),this.activatedFirstTimeEvents&&p.each(this.activatedFirstTimeEvents,function(f,l){var h=kC(l);f&&!a.has(h)&&this.flags&&this.flags.has(h)&&a.set(h,this.flags.get(h))},this),this.flags=a,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=u,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=i,this._loadTargetingIfNeeded(),this.persistence.save(t,this.flags,this.pendingFirstTimeEvents)}).bind(this)).catch((function(o){throw this._fetchInProgressStartTime&&this.markFetchComplete(),X.error(o),o}).bind(this)),this.fetchPromise};A.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(X.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()};A.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){X.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null};A.prototype._loadTargetingIfNeeded=function(){var t=!1;p.each(this.pendingFirstTimeEvents,function(n){n.property_filters&&!p.isEmptyObject(n.property_filters)&&(t=!0)}),t&&this.getTargeting().then(function(){X.log("targeting loaded for property filter evaluation")})};A.prototype.getTargeting=function(){return Hp(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(t){X.error("Failed to load targeting: "+t)}).bind(this))};A.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||p.isEmptyObject(this.pendingFirstTimeEvents)||(E[We]&&p.isFunction(E[We].then)?E[We].then((function(i){this._processFirstTimeEventCheck(t,n,i)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(t,n,null)}).bind(this)):this._processFirstTimeEventCheck(t,n,null))};A.prototype._processFirstTimeEventCheck=function(t,n,i){p.each(this.pendingFirstTimeEvents,function(e,r){if(!this.activatedFirstTimeEvents[r]){var o=e.flag_key,s;if(!i&&e.property_filters&&!p.isEmptyObject(e.property_filters)){X.warn('Skipping event check for "'+o+'" - property filters require targeting library');return}if(!i)s={matches:t===e.event_name,error:null};else{var a={event_name:e.event_name,property_filters:e.property_filters};s=i.eventMatchesCriteria(t,n,a)}if(s.error){X.error('Error checking first-time event for flag "'+o+'": '+s.error);return}if(s.matches){X.log('First-time event matched for flag "'+o+'": '+t);var u={key:e.pending_variant.variant_key,value:e.pending_variant.variant_value,experiment_id:e.pending_variant.experiment_id,is_experiment_active:e.pending_variant.is_experiment_active};this.flags.set(o,u),this.trackedFeatures.delete(o),this.activatedFirstTimeEvents[r]=!0,this.recordFirstTimeEvent(e.flag_id,e.project_id,e.first_time_event_hash)}}},this)};A.prototype.getFirstTimeEventApiRoute=function(t){var n=this.getFullApiRoute().replace(/\/$/,"");return n+"/"+t+"/first-time-events"};A.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=hp(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Ne.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(t)+"?"+o.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};X.log("Recording first-time event for flag: "+t),this.fetch.call(E,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r},body:JSON.stringify(a)}).catch(function(u){X.error("Failed to record first-time event for flag "+t+": "+u)})};A.prototype.getVariant=function(t,n){if(!this.persistenceLoadedPromise)return new Promise(function(e){X.critical("Feature Flags not initialized"),e(Kt(n))});var i=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(p.bind(function(){if(i===It.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(t,n):this.fetchPromise?this.fetchPromise.then(p.bind(function(){return this.getVariantSync(t,n)},this)).catch(function(r){return X.error(r),Kt(n)}):Kt(n);var e=p.bind(function(){return this.getVariantSync(t,n)},this);return this.fetchPromise?this.fetchPromise.then(e).catch(e):Kt(n)},this))};A.prototype._loadedPersistenceIsStale=function(){return!this._loadedPersistedAtMs||!this._loadedTtlMs?!1:Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs};A.prototype.getVariantSync=function(t,n){if(this._loadedPersistenceIsStale())return X.log('Loaded persisted variants are past TTL so returning fallback for "'+t+'"'),Kt(n);if(!this.areFlagsReady())return X.log("Flags not loaded yet"),Kt(n);var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(X.log('No flag found: "'+t+'"'),Kt(n))};A.prototype.getAllVariants=function(){if(!this.persistenceLoadedProm
93ise)return X.critical("Feature Flags not initialized"),Promise.resolve(new Map);var t=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(p.bind(function(){if(t===It.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(p.bind(function(){return this.getAllVariantsSync()},this)).catch(function(i){return X.error(i),new Map}):new Map;var n=p.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):new Map},this))};A.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(X.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map};A.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return X.error(i),n})};A.prototype.getFeatureData=function(t,n){return X.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(t,n)};A.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value};A.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,n)}).bind(this)).catch(function(i){return X.error(i),n})};A.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(X.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i};function _t(t){return t!=null}A.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var i={"Experiment name":t,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":_t(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":_t(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};_t(n.experiment_id)&&(i.$experiment_id=n.experiment_id),_t(n.is_experiment_active)&&(i.$is_experiment_active=n.is_experiment_active),_t(n.is_qa_tester)&&(i.$is_qa_tester=n.is_qa_tester),_t(n.variant_source)&&(i.$variant_source=n.variant_source),_t(n.persisted_at_in_ms)&&(i.$persisted_at_in_ms=n.persisted_at_in_ms),_t(n.ttl_in_ms)&&(i.$ttl_in_ms=n.ttl_in_ms),this.track("$experiment_started",i)}};A.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()};A.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};hu(A);A.prototype.are_flags_ready=A.prototype.areFlagsReady;A.prototype.get_variant=A.prototype.getVariant;A.prototype.get_variant_sync=A.prototype.getVariantSync;A.prototype.get_all_variants=A.prototype.getAllVariants;A.prototype.get_all_variants_sync=A.prototype.getAllVariantsSync;A.prototype.get_variant_value=A.prototype.getVariantValue;A.prototype.get_variant_value_sync=A.prototype.getVariantValueSync;A.prototype.is_enabled=A.prototype.isEnabled;A.prototype.is_enabled_sync=A.prototype.isEnabledSync;A.prototype.load_flags=A.prototype.loadFlags;A.prototype.update_context=A.prototype.updateContext;A.prototype.when_ready=A.prototype.whenReady;A.prototype.get_feature_data=A.prototype.getFeatureData;A.prototype.getTargeting=A.prototype.getTargeting;var MC=tt("recorder"),Yp="mp_iframe_handshake_request",Jp="mp_iframe_handshake_response",Oe=function(t){this.mixpanelInstance=t.mixpanelInstance,this.getMpConfig=t.getConfigFunc,this.getTabId=t.getTabIdFunc,this.reportError=t.reportErrorFunc,this.getDistinctId=t.getDistinctIdFunc,this.loadExtraBundle=t.loadExtraBundle,this.recorderSrc=t.recorderSrc,this.targetingSrc=t.targetingSrc,this.libBasePath=t.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Oe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return L.log("Load recorder check skipped due to disable_persistence config"),U.resolve(!1);var t=new Be(du,vu,gu),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(wu(i[e])||i[e].tabId===n)return!0;return!1}).catch(p.bind(function(i){return this.reportError("Error checking recording registry",i),!1},this))};Oe.prototype.checkAndStartSessionRecording=function(t,n){if(!E.MutationObserver)return L.critical("Browser does not support MutationObserver; skipping session recording"),U.resolve();var i=p.bind(function(a){return new U(p.bind(function(u){var c=Qt(p.bind(function(){this._recorder=this._recorder||new E[ls](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(p.isUndefined(E[ls])){var f=this.recorderSrc||this.libBasePath+hd;this.loadExtraBundle(f,c)}else c()},this))},this),e=yp(this.getMpConfig("record_allowed_iframe_origins"),MC),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),U.resolve();var o=p.isUndefined(n)?this.getMpConfig("record_sessions_percent"):n,s=o>0&&Math.random()*100<=o;return t||s?i(!0):this.shouldLoadRecorder().then(p.bind(function(a){return a?i(!1):U.resolve()},this))};Oe.prototype.isRecording=function(){if(!this._recorder||!p.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(t){return this.reportError("Error checking if recording is active",t),!1}};Oe.prototype.startRecordingOnEvent=function(t,n){var i=this.isRecording(),e=this.getMpConfig("recording_event_triggers");if(!i&&e){var r=e[t];if(r&&typeof r.percentage=="number"){var o=r.percentage,s=r.property_filters;if(s&&!p.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+$f;Hp(this.loadExtraBundle,a).then((function(u){try{var c=u.eventMatchesCriteria(t,n,{event_name:t,property_filters:s});c.matches&&this.checkAndStartSessionRecording(!1,o)}catch(f){L.critical("Could not parse recording event trigger properties logic:",f)}}).bind(this)).catch(function(u){L.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,o)}}};Oe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():U.resolve()};Oe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():U.resolve()};Oe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():U.resolve()};
93Oe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")};Oe.prototype.getSessionRecordingProperties=function(){var t={},n=this.getSessionReplayId();return n&&(t.$mp_replay_id=n),t};Oe.prototype.getSessionReplayUrl=function(){var t=null,n=this.getSessionReplayId();if(n){var i=p.HTTPBuildQuery({replay_id:n,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});t="https://mixpanel.com/projects/replay-redirect?"+i}return t};Oe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var t=null;return this._recorder&&(t=this._recorder.replayId),t||null};Oe.prototype.getRecorder=function(){return this._recorder};Oe.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var i=this;this._childFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;r&&r.type===Jp&&r.token===i.getMpConfig("token")&&r.replayId&&(i._parentReplayId=r.replayId,r.distinctId&&i.mixpanelInstance.identify(r.distinctId),i._parentFrameRetryActive=!1,E.removeEventListener("message",i._childFrameMessageHandler),i._childFrameMessageHandler=null,n(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}};Oe.prototype._sendParentFrameRequest=function(t){var n={};n.type=Yp,n.token=this.getMpConfig("token");for(var i=0;i<t.length;i++)try{E.parent.postMessage(n,t[i])}catch{}};Oe.prototype._sendParentFrameRequestWithRetry=function(t){var n=this,i=10,e=0,r=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(t);function o(){setTimeout(function(){!n._parentFrameRetryActive||n._parentReplayId||++e>=i||(n._sendParentFrameRequest(t),r*=2,o())},r)}o()};Oe.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var e=i.data;if(e&&e.type===Yp&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var o={};o.type=Jp,o.token=n.getMpConfig("token"),o.replayId=r,o.distinctId=n.getDistinctId(),i.source.postMessage(o,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}};hu(Oe);var gt=function(){};gt.prototype.create_properties=function(){};gt.prototype.event_handler=function(){};gt.prototype.after_track_handler=function(){};gt.prototype.init=function(t){return this.mp=t,this};gt.prototype.track=function(t,n,i,e){var r=this,o=p.dom_query(t);if(o.length===0){L.error("The DOM query ("+t+") returned 0 elements");return}return p.each(o,function(s){p.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),f=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(e,c,u,!0),f),r.mp.track(n,c,r.track_callback(e,c,u))})},this),!0};gt.prototype.track_callback=function(t,n,i,e){e=e||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,i,e))}};gt.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=p.extend({},t),i};var Nr=function(){this.override_event="click"};p.inherit(Nr,gt);Nr.prototype.create_properties=function(t,n){var i=Nr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i};Nr.prototype.event_handler=function(t,n,i){i.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||t.preventDefault()};Nr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var Mo=function(){this.override_event="submit"};p.inherit(Mo,gt);Mo.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()};Mo.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var xt="$set",Lr="$set_once",Ge="$unset",tr="$add",et="$append",rr="$union",ft="$remove",TC="$delete",Xp={set_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[xt]=e,i},unset_action:function(t){var n={},i=[];return p.isArray(t)||(t=[t]),p.each(t,function(e){this._is_reserved_property(e)||i.push(e)},this),n[Ge]=i,n},set_once_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[Lr]=e,i},union_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=p.isArray(r)?r:[r])},this):e[t]=p.isArray(n)?n:[n],i[rr]=e,i},append_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[et]=e,i},remove_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[ft]=e,i},delete_action:function(){var t={};return t[TC]="",t}},ae=function(){};p.extend(ae.prototype,Xp);ae.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i};ae.prototype.set=Dr(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)});ae.prototype.set_once=Dr(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)});ae.prototype.unset=Dr(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)});ae.prototype.union=Dr(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)});ae.prototype.delete=Dr(function(t){var n=this.delete_action();return this._send_request(n,t)});ae.prototype.remove=Dr(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)});ae.prototype._send_request=function(t,n){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var i=p.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)};ae.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"};ae.prototype._get_config=function(t){return this._mixpanel.get_config(t)};ae.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};ae.prototype.remove=ae.prototype.remove;ae.prototype.set=ae.prototype.set;ae.prototype.set_once=ae.prototype.set_once;ae.prototype.union=ae.prototype.union;ae.prototype.unset=ae.prototype.unset;ae.prototype.toString=ae.prototype.toString;var B=function(){};p.extend(B.prototype,Xp);B.prototype._init=function(t){this._mixpanel=t};B.prototype.set=Dt(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[xt]=p.extend({},p.info.people_properties(),e[xt]),this._send_request(e,i)});B.prototype.set_once=Dt(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)});B.prototype.unset=Dt(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)});B.prototype.increment=Dt(function(t,n,i){var e={},r={};return p.isObject(t)?(p.each(t,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){L.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(p.isUndefined(n)&&(n=1),r[t]=n),e[tr]=r,this._send_request(e,i)});
vendor: 9,873 bytes, line 93
93B.prototype.append=Dt(function(t,n,i){p.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)});B.prototype.remove=Dt(function(t,n,i){p.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)});B.prototype.union=Dt(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)});B.prototype.track_charge=Dt(function(){L.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});B.prototype.clear_charges=function(t){return this.set("$transactions",[],t)};B.prototype.delete_user=function(){if(!this._identify_called()){L.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)};B.prototype.toString=function(){return this._mixpanel.toString()+".people"};B.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(t.$device_id=i),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var o=p.encodeDates(t);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},n):(this._enqueue(t),p.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),p.truncate(o,255))};B.prototype._get_config=function(t){return this._mixpanel.get_config(t)};B.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};B.prototype._enqueue=function(t){xt in t?this._mixpanel.persistence._add_to_people_queue(xt,t):Lr in t?this._mixpanel.persistence._add_to_people_queue(Lr,t):Ge in t?this._mixpanel.persistence._add_to_people_queue(Ge,t):tr in t?this._mixpanel.persistence._add_to_people_queue(tr,t):et in t?this._mixpanel.persistence._add_to_people_queue(et,t):ft in t?this._mixpanel.persistence._add_to_people_queue(ft,t):rr in t?this._mixpanel.persistence._add_to_people_queue(rr,t):L.error("Invalid call to _enqueue():",t)};B.prototype._flush_one_queue=function(t,n,i,e){var r=this,o=p.extend({},this._mixpanel.persistence.load_queue(t)),s=o;!p.isUndefined(o)&&p.isObject(o)&&!p.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(t,o),r._mixpanel.persistence.save(),e&&(s=e(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(t,o),p.isUndefined(i)||i(a,u)}))};B.prototype._flush=function(t,n,i,e,r,o,s){var a=this;this._flush_one_queue(xt,this.set,t),this._flush_one_queue(Lr,this.set_once,e),this._flush_one_queue(Ge,this.unset,o,function(d){return p.keys(d)}),this._flush_one_queue(tr,this.increment,n),this._flush_one_queue(rr,this.union,r);var u=this._mixpanel.persistence.load_queue(et);if(!p.isUndefined(u)&&p.isArray(u)&&u.length)for(var c,f=function(d,y){d===0&&a._mixpanel.persistence._add_to_people_queue(et,c),p.isUndefined(i)||i(d,y)},l=u.length-1;l>=0;l--)u=this._mixpanel.persistence.load_queue(et),c=u.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(c)||a.append(c,f);var h=this._mixpanel.persistence.load_queue(ft);if(!p.isUndefined(h)&&p.isArray(h)&&h.length)for(var g,v=function(d,y){d===0&&a._mixpanel.persistence._add_to_people_queue(ft,g),p.isUndefined(s)||s(d,y)},m=h.length-1;m>=0;m--)h=this._mixpanel.persistence.load_queue(ft),g=h.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(g)||a.remove(g,v)};B.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"};B.prototype.set=B.prototype.set;B.prototype.set_once=B.prototype.set_once;B.prototype.unset=B.prototype.unset;B.prototype.increment=B.prototype.increment;B.prototype.append=B.prototype.append;B.prototype.remove=B.prototype.remove;B.prototype.union=B.prototype.union;B.prototype.track_charge=B.prototype.track_charge;B.prototype.clear_charges=B.prototype.clear_charges;B.prototype.delete_user=B.prototype.delete_user;B.prototype.toString=B.prototype.toString;var Eu="__mps",Iu="__mpso",Ou="__mpus",xu="__mpa",Ru="__mpap",Au="__mpr",ku="__mpu",Zp="$people_distinct_id",io="__alias",bn="__timers",PC=[Eu,Iu,Ou,xu,Ru,Au,ku,Zp,io,bn],W=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(L.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&p.localStorage.is_supported()?this.storage=p.localStorage:this.storage=p.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};W.prototype.properties=function(){var t={};return this.load(),p.each(this.props,function(n,i){p.include(PC,i)||(t[i]=n)}),t};W.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=p.extend({},t))}};W.prototype.upgrade=function(){var t,n;this.storage===p.localStorage?(t=p.cookie.parse(this.name),p.cookie.remove(this.name),p.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===p.cookie&&(n=p.localStorage.parse(this.name),p.localStorage.remove(this.name),n&&this.register_once(n))};W.prototype.save=function(){this.disabled||this.storage.set(this.name,$r(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};W.prototype.load_prop=function(t){return this.load(),this.props[t]};W.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};W.prototype.clear=function(){this.remove(),this.props={}};W.prototype.register_once=function(t,n,i){return p.isObject(t)?(typeof n>"u"&&(n="None"),this.expire_days=typeof i>"u"?this.default_expiry:i,this.load(),p.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1};W.prototype.register=function(t,n){return p.isObject(t)?(this.expire_days=typeof n>"u"?this.default_expiry:n,this.load(),p.extend(this.props,t),this.save(),!0):!1};W.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())};W.prototype.update_search_keyword=function(t){this.register(p.info.searchInfo(t))};W.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:p.info.referringDomain(t)||"$direct"},"")};W.prototype.get_referrer_info=function(){return p.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};W.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)};W.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()};W.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())};W.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())};W.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())};W.prototype.get_cross_subdomain=function(){return this.cross_subdomain};W.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())};W.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(xt),o=this._get_or_create_queue(Lr),s=this._get_or_create_queue(Ge),a=this._get_or_create_queue(tr),u=this._get_or_create_queue(rr),c=this._get_or_create_queue(ft,[]),f=this._get_or_create_queue(et,[]);i===Eu?(p.extend(r,e),this._pop_from_people_queue(tr,e),this._pop_from_people_queue(rr,e),this._pop_from_people_queue(Ge,e)):i===Iu?(p.each(e,function(l,h){h in o||(o[h]=l)}),this._pop_from_people_queue(Ge,e)):i===Ou?p.each(e,function(l){p.each([r,o,a,u],function(h){l in h&&delete h[l]}),p.each(f,function(h){l in h&&delete h[l]}),s[l]=!0}):i===xu?(p.each(e,function(l,h){h in r?r[h]+=l:(h in a||(a[h]=0),a[h]+=l)},this),this._pop_from_people_queue(Ge,e)):i===ku?(p.each(e,function(l,h){p.isArray(l)&&(h in u||(u[h]=[]),p.each(l,function(g){p.include(u[h],g)||u[h].push(g)}))}),this._pop_from_people_queue(Ge,e)):i===Au?(c.push(e),this._pop_from_people_queue(et,e)):i===Ru&&(f.push(e),this._pop_from_people_queue(Ge,e)),L.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),L.log(n),this.save()};W.prototype._pop_from_people_queue=function(t,n){var i=this.props[this._get_queue_key(t)];p.isUndefined(i)||p.each(n,function(e,r){t===et||t===ft?p.each(i,function(o){o[r]===e&&delete o[r]}):delete i[r]},this)};W.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))};W.prototype._get_queue_key=function(t){if(t===xt)return Eu;if(t===Lr)return Iu;if(t===Ge)return Ou;if(t===tr)return xu;if(t===et)return Ru;if(t===ft)return Au;if(t===rr)return ku;L.error("Invalid queue:",t)};W.prototype._get_or_create_queue=function(t,n){var i=this._get_queue_key(t);return n=p.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)};W.prototype.set_event_timer=function(t,n){var i=this.load_prop(bn)||{};i[t]=n,this.props[bn]=i,this.save()};W.prototype.remove_event_timer=function(t){var n=this.load_prop(bn)||{},i=n[t];return p.isUndefined(i)||(delete this.props[bn][t],this.save()),i};var oo,Ca=function(t,n){throw new Error(t+" not available in this build.")},Re,Ea=0,$C=1,Ue="mixpanel",Qp="base64",NC="json",Mu="$device:",LC="str
93ict",DC="fallback",FC="disabled",Sr=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ed=!Sr&&Xe.indexOf("MSIE")===-1&&Xe.indexOf("Mozilla")===-1,so=null;ut.sendBeacon&&(so=function(){return ut.sendBeacon.apply(ut,arguments)});var td={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Ia={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:td,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Qp,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Et,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Et,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:1800*1e3,record_mask_inputs:!0,record_max_ms:Zr,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:FC},rd=!1,w=function(){},Oa=function(t,n,i){var e,r=i===Ue?Re:Re[i];if(r&&oo===Ea)e=r;else{if(r&&!p.isArray(r)){L.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new B,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var o=p.info.campaignParams(null),s={},a=!1;p.each(o,function(c,f){s["initial_"+f]=c,c&&(a=!0)}),a&&e.people.set_once(s)}Ne.DEBUG=Ne.DEBUG||e.get_config("debug");var u=oo===Ea?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:u,token:t,name:i,info:p.info}})),!p.isUndefined(r)&&p.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};w.prototype.init=function(t,n,i){if(p.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Ue){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=Oa(t,n,i);return Re[i]=e,e._loaded(),e};w.prototype._init=function(t,n,i){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||Ia.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=NC)}if(this.hooks={},this.set_config(p.extend({},Ia,e,n,{name:i,token:t,callback_fn:(i===Ue?i:Ue+"."+i)+"._jsc"})),this.recorderManager=new Oe({mixpanelInstance:this,getConfigFunc:p.bind(this.get_config,this),setConfigFunc:p.bind(this.set_config,this),getTabIdFunc:p.bind(this.get_tab_id,this),reportErrorFunc:p.bind(this.report_error,this),getDistinctIdFunc:p.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:Ca}),this._jsc=Et,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!p.localStorage.is_supported(!0)||!Sr)this._batch_requests=!1,L.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),function(u){L.log("Clearing batch queue "+u.queue_key),p.localStorage.remove(u.queue_key)});else if(this.init_batchers(),so&&E.addEventListener){var o=p.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(u){u.persisted&&o()}),E.addEventListener("visibilitychange",function(){F.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new W(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=p.UUID();this.get_distinct_id()||this.register_once({distinct_id:Mu+s,$device_id:s},""),this.flags=new A({getFullApiRoute:p.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:p.bind(this.get_config,this),setConfigFunc:p.bind(this.set_config,this),getPropertyFunc:p.bind(this.get_property,this),trackingFunc:p.bind(this.track,this),loadExtraBundle:Ca,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+$f}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===LC||a===DC?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(p.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new be(this),this.autocapture.init()};w.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))L.log("Tab ID initialization skipped due to disable_persistence config");
93else if(p.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,i="mp_gen_new_tab_id_"+t;(p.sessionStorage.get(i)||!p.sessionStorage.get(n))&&p.sessionStorage.set(n,"$tab-"+p.UUID()),p.sessionStorage.set(i,"1"),this.tab_id=p.sessionStorage.get(n),E.addEventListener("beforeunload",function(){p.sessionStorage.remove(i)})}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.")};w.prototype.get_tab_id=function(){return this.tab_id||null};w.prototype._check_and_start_session_recording=Lt(function(t){return this.recorderManager.checkAndStartSessionRecording(t)});w.prototype._start_recording_on_event=Qt(function(t,n){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(p.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(t,n)},this))});w.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)};w.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()};w.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()};w.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()};w.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()};w.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()};w.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()};w.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()};w.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise};w.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 t=p.info.campaignParams(null);p.each(t,(function(n,i){this.unregister(i)}).bind(this))}};w.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(F.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(p.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(F.referrer)};w.prototype._dom_loaded=function(){p.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||p.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue};w.prototype._track_dom=function(t,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!rd)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)};w.prototype._prepare_callback=function(t,n){if(p.isUndefined(t))return null;if(Sr){var i=function(s){t(s,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},o}};w.prototype._send_request=function(t,n,i,e){var r=!0;if(ed)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!e&&(p.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=p.extend(o,i||{}),Sr||(i.method="GET");var a=i.method==="POST",u=so&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),Sr||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),p.extend(n,this.get_config("api_extra_query_params")),t+="?"+p.HTTPBuildQuery(n);var f=this;if("img"in n){var l=F.createElement("img");l.src=t,F.body.appendChild(l)}else if(u){try{r=so(t,s)}catch(y){f.report_error(y),r=!1}try{e&&e(r?1:0)}catch(y){f.report_error(y)}}else if(Sr)try{var h=new XMLHttpRequest;h.open(i.method,t,!0);var g=this.get_config("xhr_headers");
vendor: 11,928 bytes, line 93
93if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),p.each(g,function(y,_){h.setRequestHeader(_,y)}),i.timeout_ms&&typeof h.timeout<"u"){h.timeout=i.timeout_ms;var v=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(h.readyState===4)if(h.status===200){if(e)if(c){var y;try{y=p.JSONDecode(h.responseText)}catch(C){if(f.report_error(C),i.ignore_json_errors)y=h.responseText;else return}e(y)}else e(Number(h.responseText))}else{var _;if(h.timeout&&!h.status&&new Date().getTime()-v>=h.timeout?_="timeout":_="Bad HTTP status: "+h.status+" "+h.statusText,f.report_error(_),e)if(c){var b=h.responseHeaders||{};e({status:0,httpStatusCode:h.status,error:_,retryAfter:b["Retry-After"]})}else e(0)}},h.send(s)}catch(y){f.report_error(y),r=!1}else{var m=F.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=t;var d=F.getElementsByTagName("script")[0];d.parentNode.insertBefore(m,d)}return r};w.prototype._fetch_remote_settings=function(t){var n=this,i=function(){t==="strict"&&(n.set_config({record_sessions_percent:0}),n._remote_settings_strict_disabled=!0)};if(!E.AbortController)return L.critical("Remote settings unavailable: missing minimum required APIs"),i(),Promise.resolve();var e=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,r={$lib_version:Ne.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=p.HTTPBuildQuery(r),s=e+"?"+o,a=new AbortController,u=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(n.get_config("token")+":")},signal:a.signal};return E.fetch(s,c).then(function(f){if(clearTimeout(u),!f.ok){L.critical("Network response was not ok"),i();return}return f.json()}).then(function(f){if(f&&f.sdk_config&&f.sdk_config.config){var l=f.sdk_config.config,h={};p.each(l,function(g,v){Ia.hasOwnProperty(v)&&(h[v]=g)}),p.isEmptyObject(h)?(L.critical("No valid config keys found in remote settings."),i()):n.set_config(h)}else i()}).catch(function(f){clearTimeout(u),L.critical("Failed to fetch remote settings",f),i()})};w.prototype._execute_array=function(t){var n,i=[],e=[],r=[];p.each(t,function(s){s&&(n=s[0],p.isArray(n)?r.push(s):typeof s=="function"?s.call(this):p.isArray(s)&&n==="alias"?i.push(s):p.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):e.push(s))},this);var o=function(s,a){p.each(s,function(u){if(p.isArray(u[0])){var c=a;p.each(u,function(f){c=c[f[0]].apply(c,f.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(e,this),o(r,this)};w.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};w.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs};w.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=p.bind(function(i){return new ze(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:p.bind(function(e,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(e),r,this._prepare_callback(o,e))},this),beforeSendHook:p.bind(function(e){var r=this._run_hook("before_send_"+i.type,e);return r?r[0]:null},this),stopAllBatchingFunc:p.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};w.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,p.each(this.request_batchers,function(t){t.start()}))};w.prototype.stop_batch_senders=function(){this._batch_requests=!1,p.each(this.request_batchers,function(t){t.stop(),t.clear()})};w.prototype.push=function(t){this._execute_array([t])};w.prototype.enable=function(t){var n,i,e,r;if(typeof t>"u")this._flags.disable_all_events=!1;else{for(n={},i=[],e=0;e<t.length;e++)n[t[e]]=!0;for(r=0;r<this.__disabled_events.length;r++)n[this.__disabled_events[r]]||i.push(this.__disabled_events[r]);this.__disabled_events=i}};w.prototype.disable=function(t){typeof t>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)};w.prototype._encode_data_for_request=function(t){var n=$r(t);return this.get_config("api_payload_format")===Qp&&(n=p.base64Encode(n)),{data:n}};w.prototype._track_or_batch=function(t,n){var i=p.truncate(t.data,255),e=t.endpoint,r=t.batcher,o=t.should_send_immediately,s=t.send_request_options||{};n=n||Et;var a=!0,u=p.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+t.type,i),i&&(i=i[0])),i?(L.log("MIXPANEL REQUEST:"),L.log(i),this._send_request(e,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i};w.prototype.track=Lt(function(t,n,i,e){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof i=="function"&&(e=i,i=null),i=i||{};var o=i.transport;o&&(i.transport=o);var s=i.send_immediately;if(typeof e!="function"&&(e=Et),p.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=p.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(t);if(!p.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?p.info.marketingParams():{};n=p.extend({},p.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var f=this.get_config("property_blacklist");p.isArray(f)?p.each(f,function(h){delete n[h]}):this.report_error("Invalid value for property_blacklist config: "+f),this._start_recording_on_event(t,n);var l={event:t,properties:n};return r=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:s,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r});w.prototype.set_group=Lt(function(t,n,i){p.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)});w.prototype.add_group=Lt(function(t,n,i){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,i)});w.prototype.remove_group=Lt(function(t,n,i){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,i)});w.prototype.track_with_groups=Lt(function(t,n,i,e){var r=p.extend({},n||{});return p.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(t,r,e)});w.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)};w.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]};w.prototype.get_group=function(t,n){var i=this._create_map_key(t,n),e=this._cached_groups[i];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ae,e._init(this,t,n),this._cached_groups[i]=e),e};w.prototype.track_pageview=Lt(function(t,n){typeof t!="object"&&(t={}),n=n||{};var i=n.event_name||"$mp_web_page_view",e=p.extend(p.info.mpPageViewProperties(),p.info.campaignParams(),p.info.clickParams()),r=p.extend({},e,t);return this.is_recording_heatmap_data()&&(r.$captured_for_heatmap=!0),this.track(i,r)});w.prototype.track_links=function(){return this._track_dom.call(this,Nr,arguments)};w.prototype.track_forms=function(){return this._track_dom.call(this,Mo,arguments)};w.prototype.time_event=function(t){if(p.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var UC={persistent:!0},Tu=function(t){var n;return p.isObject(t)?n=t:p.isUndefined(t)?n={}:n={days:t},p.extend({},UC,n)};w.prototype.register=function(t,n){var i=this._run_hook("before_register",t,n);if(i!==null){t=i[0],n=i[1];var e=Tu(n);e.persistent?this.persistence.register(t,e.days):p.extend(this.unpersisted_superprops,t)}};w.prototype.register_once=function(t,n,i){var e=this._run_hook("before_register_once",t,n,i);if(e!==null){t=e[0],n=e[1],i=e[2];var r=Tu(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n>"u"&&(n="None"),p.each(t,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===n)&&(this.unpersisted_superprops[s]=o)},this))}};w.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=Tu(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])};w.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)};w.prototype.identify=function(t,n,i,e,r,o,s,a){var u=this._run_hook("before_identify",t);if(u===null)return-1;t=u[0];var c=this.get_distinct_id();if(t&&c!==t){if(typeof t=="string"&&t.indexOf(Mu)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var f=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:f},"")}t!==c&&t!==this.get_property(io)&&(this.unregister(io),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,i,e,r,o,s,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags().catch(function(){L.error("[flags] Error fetching flags during identify")})};w.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=p.UUID();this.register_once({distinct_id:Mu+t,$device_id:t},""),this._check_and_start_session_recording(),this.flags.reset()};w.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};w.prototype.alias=function(t,n){if(t===this.get_property(Zp))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return p.isUndefined(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(io,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){i.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)};w.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)};w.prototype.set_config=function(t){if(p.isObject(t)){p.extend(this.config,t);var n=t.batch_size;n&&p.each(this.request_batchers,function(i){i.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),Ne.DEBUG=Ne.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),p.isObject(t.hooks)&&(this.hooks={},p.each(t.hooks,function(i,e){if(p.isFunction(i))this.hooks[e]=[i];else if(p.isArray(i)){this.hooks[e]=[];for(var r=0;r<i.length;r++)p.isFunction(i[r])||L.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else L.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};w.prototype.get_config=function(t){return this.config[t]};
93w.prototype._run_hook=function(t){var n=bt.call(arguments,1);return p.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e>"u"?(this.report_error(t+" hook did not return a valid value"),n=null):(p.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n};w.prototype.get_property=function(t){return this.persistence.load_prop([t])};w.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")};w.prototype.toString=function(){var t=this.get_config("name");return t!==Ue&&(t=Ue+"."+t),t};w.prototype._event_is_disabled=function(t){return p.isBlockedUA(Xe)||this._flags.disable_all_events||p.include(this.__disabled_events,t)};w.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&p.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")||p.cookie.get("mp_optout"))&&(p.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};w.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};w.prototype._gdpr_call_func=function(t,n){return n=p.extend({track:p.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")},n),p.localStorage.is_supported()||(n.persistence_type="cookie"),t(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})};w.prototype.opt_in_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(dS,t),this._gdpr_update_persistence(t)};w.prototype.opt_out_tracking=function(t){t=p.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(vS,t),this._gdpr_update_persistence(t)};w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(gS,t)};w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(dp,t)};w.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(mS,t),this._gdpr_update_persistence(t)};w.prototype.report_error=function(t,n){L.error.apply(L.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){L.error(i)}};w.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)};w.prototype.remove_hook=function(t,n){var i;this.hooks[t]&&(i=this.hooks[t].indexOf(n),i!==-1?this.hooks[t].splice(i,1):L.log("remove_hook failed. Matching hook was not found"))};w.prototype.init=w.prototype.init;w.prototype.reset=w.prototype.reset;w.prototype.enable=w.prototype.enable;w.prototype.disable=w.prototype.disable;w.prototype.time_event=w.prototype.time_event;w.prototype.track=w.prototype.track;w.prototype.track_links=w.prototype.track_links;w.prototype.track_forms=w.prototype.track_forms;w.prototype.track_pageview=w.prototype.track_pageview;w.prototype.register=w.prototype.register;w.prototype.register_once=w.prototype.register_once;w.prototype.unregister=w.prototype.unregister;w.prototype.identify=w.prototype.identify;w.prototype.alias=w.prototype.alias;w.prototype.name_tag=w.prototype.name_tag;w.prototype.set_config=w.prototype.set_config;w.prototype.get_config=w.prototype.get_config;w.prototype.get_api_host=w.prototype.get_api_host;w.prototype.get_property=w.prototype.get_property;w.prototype.get_distinct_id=w.prototype.get_distinct_id;w.prototype.toString=w.prototype.toString;w.prototype.opt_out_tracking=w.prototype.opt_out_tracking;w.prototype.opt_in_tracking=w.prototype.opt_in_tracking;w.prototype.has_opted_out_tracking=w.prototype.has_opted_out_tracking;w.prototype.has_opted_in_tracking=w.prototype.has_opted_in_tracking;w.prototype.clear_opt_in_out_tracking=w.prototype.clear_opt_in_out_tracking;w.prototype.get_group=w.prototype.get_group;w.prototype.set_group=w.prototype.set_group;w.prototype.add_group=w.prototype.add_group;w.prototype.remove_group=w.prototype.remove_group;w.prototype.add_hook=w.prototype.add_hook;w.prototype.remove_hook=w.prototype.remove_hook;w.prototype.track_with_groups=w.prototype.track_with_groups;w.prototype.start_batch_senders=w.prototype.start_batch_senders;w.prototype.stop_batch_senders=w.prototype.stop_batch_senders;w.prototype.start_session_recording=w.prototype.start_session_recording;w.prototype.stop_session_recording=w.prototype.stop_session_recording;w.prototype.pause_session_recording=w.prototype.pause_session_recording;w.prototype.resume_session_recording=w.prototype.resume_session_recording;w.prototype.get_session_recording_properties=w.prototype.get_session_recording_properties;w.prototype.get_session_replay_url=w.prototype.get_session_replay_url;w.prototype.get_tab_id=w.prototype.get_tab_id;w.prototype.DEFAULT_API_ROUTES=td;w.prototype.__get_recorder=w.prototype.__get_recorder;w.prototype.__get_recording_init_promise=w.prototype.__get_recording_init_promise;W.prototype.properties=W.prototype.properties;W.prototype.update_search_keyword=W.prototype.update_search_keyword;W.prototype.update_referrer_info=W.prototype.update_referrer_info;W.prototype.get_cross_subdomain=W.prototype.get_cross_subdomain;W.prototype.clear=W.prototype.clear;var wr={},BC=function(){p.each(wr,function(t,n){n!==Ue&&(Re[n]=t)}),Re._=p},zC=function(){Re.init=function(t,n,i){if(i)return Re[i]||(Re[i]=wr[i]=Oa(t,n,i),Re[i]._loaded()),Re[i];var e=Re;wr[Ue]?e=wr[Ue]:t&&(e=Oa(t,n,Ue),e._loaded(),wr[Ue]=e),Re=e,oo===$C&&(E[Ue]=Re),BC()}},qC=function(){function t(){t.done||(t.done=!0,rd=!0,ed=!1,p.each(wr,function(e){e._dom_loaded()}))}function n(){try{F.documentElement.doScroll("left")}catch{setTimeout(n,1);return}t()}if(F.addEventListener)F.readyState==="complete"?t():F.addEventListener("DOMContentLoaded",t,!1);else if(F.attachEvent){F.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch{}F.documentElement.doScroll&&i&&n()}p.register_event(E,"load",t,!0)};function WC(t){return Ca=t,oo=Ea,Re=new w,zC(),Re.init(),qC(),Re}function GC(t,n){n()}var Ve=WC(GC);let ct=!1,Ct=null;const jC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function VC(t){if(typeof t!="string")return null;const n=t.trim().toLowerCase();return n.includes("@")?n:null}function xa(t){if(typeof t!="string")return null;const n=t.trim().toLowerCase();return jC.test(n)?n:null}function Ra(){const{mixpanelToken:t,enabledDestinations:n}=ao();!n.has("mixpanel")||ct||(Ve.init(t,{track_pageview:!1,persistence:"localStorage",api_transport:"xhr",batch_requests:!0,hooks:{before_send_events:i=>({...i,properties:fd(i.properties)})}}),Ve.register({app_surface:Aa()}),ct=!0)}
93function nd(){Ve.register({app_surface:Aa()})}function JC(t){const{enabledDestinations:n}=ao();if(!n.has("mixpanel"))return;const i=xa(t.userId);if(!i)return;const e=VC(t.email??null);if(Ct===i){e&&Ii(()=>{ct||Ra(),ct&&Ve.people.set({$email:e,user_id:i})});return}Ii(()=>{if(ct||Ra(),!ct)return;const r=Ct??xa(Ve.get_property("$user_id"));r&&r!==i&&(Ve.reset(),nd()),Ve.identify(i),Ve.people.set({user_id:i,...e?{$email:e}:{}}),Ct=i})}function XC(){const{enabledDestinations:t}=ao();if(!t.has("mixpanel")){Ct=null;return}Ii(()=>{if(!ct){Ct=null;return}(Ct||xa(Ve.get_property("$user_id")))&&(Ve.reset(),nd()),Ct=null})}function ZC(t,n={}){const{enabledDestinations:i}=ao();if(!i.has("mixpanel"))return!1;let e="failed";return Ii(()=>{ct||Ra(),Ve.track(t,{app_surface:Aa(),...ld("mixpanel",n)}),e=!0}),e}function QC(){ct=!1,Ct=null}export{JC as identifyMixpanelUser,Ra as initMixpanel,VC as normalizeMixpanelDistinctEmail,QC as resetMixpanelSdkStateForTests,XC as resetMixpanelUser,ZC as trackMixpanelEvent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.