1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96057,e=>{"use strict";var t,r,n,i,s,o,a,c,u,l,h,p,d,f,g,v,m,_,y=e.i(54414),b="u">typeof window?window:void 0,w="u">typeof globalThis?globalThis:b;"u"<typeof self&&(w.self=w),"u"<typeof File&&(w.File=function(){});var k=Array.prototype,S=k.forEach,x=k.indexOf,E=null==w?void 0:w.navigator,C=null==w?void 0:w.document,I=null==w?void 0:w.location,O=null==w?void 0:w.fetch,R=null!=w&&w.XMLHttpRequest&&"withCredentials"in new w.XMLHttpRequest?w.XMLHttpRequest:void 0,M=null==w?void 0:w.AbortController,A=null==E?void 0:E.userAgent,T=null!=b?b:{},P={DEBUG:!1,LIB_VERSION:"1.354.0"};function F(e,t,r,n,i,s,o){try{var a=e[s](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function D(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(e){F(s,n,i,o,a,"next",e)}function a(e){F(s,n,i,o,a,"throw",e)}o(void 0)})}}function L(){return(L=Object.assign.bind()).apply(null,arguments)}function N(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var $=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],U=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],j=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return U.concat(t).some(e=>{var t=e.toLowerCase();return -1!==r.indexOf(t)})};function B(e,t){return -1!==e.indexOf(t)}var q=function(e){return e.trim()},z=function(e){return e.replace(/^\$/,"")},V=Array.isArray,W=Object.prototype,H=W.hasOwnProperty,G=W.toString,Y=V||function(e){return"[object Array]"===G.call(e)},J=e=>"function"==typeof e,Z=e=>e===Object(e)&&!Y(e),K=e=>{if(Z(e)){for(var t in e)if(H.call(e,t))return!1;return!0}return!1},X=e=>void 0===e,Q=e=>"[object String]"==G.call(e),ee=e=>Q(e)&&0===e.trim().length,et=e=>null===e,er=e=>X(e)||et(e),en=e=>"[object Number]"==G.call(e)&&e==e,ei=e=>en(e)&&e>0,es=e=>"[object Boolean]"===G.call(e),eo=e=>B($,e);function ea(e){return null===e||"object"!=typeof e}function ec(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function eu(e){return!X(Event)&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var el=[!0,"true",1,"1","yes"],eh=[!1,"false",0,"0","no"];function ep(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),en(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e<t?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),ep(i||r,t,r,n))}class ed{constructor(e){this.t={},this.i=e.i,this.o=ep(e.bucketSize,0,100,e.h),this.m=ep(e.refillRate,0,this.o,e.h),this.$=ep(e.refillInterval,0,864e5,e.h)}S(e,t){var r=Math.floor((t-e.lastAccess)/this.$);if(r>0){var n=r*this.m;e.tokens=Math.min(e.tokens+n,this.o),e.lastAccess=e.lastAccess+r*this.$}}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.t[n];return i?this.S(i,r):(i={tokens:this.o,lastAccess:r},this.t[n]=i),0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.i)||t.call(this,e)),0===i.tokens)}stop(){this.t={}}}var ef,eg,ev,em="Mobile",e_="Android",ey="Tablet",eb=e_+" "+ey,ew="iPad",ek="Apple",eS=ek+" Watch",ex="Safari",eE="BlackBerry",eC="Samsung",eI=eC+"Browser",eO=eC+" Internet",eR="Chrome",eM=eR+" OS",eA=eR+" iOS",eT="Internet Explorer",eP=eT+" "+em,eF="Opera",eD=eF+" Mini",eL="Edge",eN="Microsoft "+eL,e$="Firefox",eU=e$+" iOS",ej="Nintendo",eB="PlayStation",eq="Xbox",ez=e_+" "+em,eV=em+" "+ex,eW="Windows",eH=eW+" Phone",eG="Nokia",eY="Ouya",eJ="Generic",eZ=eJ+" "+em.toLowerCase(),eK=eJ+" "+ey.toLowerCase(),eX="Konqueror",eQ="(\\d+(\\.\\d+)?)",e0=RegExp("Version/"+eQ),e1=RegExp(eq,"i"),e2=RegExp(eB+" \\w+","i"),e3=RegExp(ej+" \\w+","i"),e5=RegExp(eE+"|PlayBook|BB10","i"),e4={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},e6=function(e,t){var r;return t=t||"",B(e," OPR/")&&B(e,"Mini")?eD:B(e," OPR/")?eF:e5.test(e)?eE:B(e,"IE"+em)||B(e,"WPDesktop")?eP:B(e,eI)?eO:B(e,eL)||B(e,"Edg/")?eN:B(e,"FBIOS")?"Facebook "+em:B(e,"UCWEB")||B(e,"UCBrowser")?"UC Browser":B(e,"CriOS")?eA:B(e,"CrMo")||B(e,eR)?eR:B(e,e_)&&B(e,ex)?ez:B(e,"FxiOS")?eU:B(e.toLowerCase(),eX.toLowerCase())?eX:(r=t)&&B(r,ek)||B(e,ex)&&!B(e,eR)&&!B(e,e_)?B(e,em)?eV:ex:B(e,e$)?e$:B(e,"MSIE")||B(e,"Trident/")?eT:B(e,"Gecko")?e$:""},e8={[eP]:[RegExp("rv:"+eQ)],[eN]:[RegExp(eL+"?\\/"+eQ)],[eR]:[RegExp("("+eR+"|
1CrMo)\\/"+eQ)],[eA]:[RegExp("CriOS\\/"+eQ)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+eQ)],[ex]:[e0],[eV]:[e0],[eF]:[RegExp("(Opera|OPR)\\/"+eQ)],[e$]:[RegExp(e$+"\\/"+eQ)],[eU]:[RegExp("FxiOS\\/"+eQ)],[eX]:[RegExp("Konqueror[:/]?"+eQ,"i")],[eE]:[RegExp(eE+" "+eQ),e0],[ez]:[RegExp("android\\s"+eQ,"i")],[eO]:[RegExp(eI+"\\/"+eQ)],[eT]:[RegExp("(rv:|MSIE )"+eQ)],Mozilla:[RegExp("rv:"+eQ)]},e9=function(e,t){var r=e8[e6(e,t)];if(X(r))return null;for(var n=0;n<r.length;n++){var i=r[n],s=e.match(i);if(s)return parseFloat(s[s.length-2])}return null},e7=[[RegExp(eq+"; "+eq+" (.*?)[);]","i"),e=>[eq,e&&e[1]||""]],[RegExp(ej,"i"),[ej,""]],[RegExp(eB,"i"),[eB,""]],[e5,[eE,""]],[RegExp(eW,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[eH,""];if(new RegExp(em).test(t)&&!/IEMobile\b/.test(t))return[eW+" "+em,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=e4[r[1]]||"";return/arm/i.test(t)&&(n="RT"),[eW,n]}return[eW,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=X(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+e_+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+e_+")","i"),e=>e&&e[2]?[e_,[e[2],e[3],e[4]||"0"].join(".")]:[e_,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[eM,""]],[/Linux|debian/i,["Linux",""]]],te=function(e){return e3.test(e)?ej:e2.test(e)?eB:e1.test(e)?eq:RegExp(eY,"i").test(e)?eY:RegExp("("+eH+"|WPDesktop)","i").test(e)?eH:/iPad/.test(e)?ew:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?eS:e5.test(e)?eE:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(eG,"i").test(e)?eG:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(em).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?e_:eb:RegExp("(pda|"+em+")","i").test(e)?eZ:RegExp(ey,"i").test(e)&&!RegExp(ey+" pc","i").test(e)?eK:""},tt=e=>e instanceof Error;class tr{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(r,t,0).apply(e),i=this.buildParsingContext(t),s=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(s,r),$exception_level:"error"}}modifyFrames(e){var t=this;return D(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&Y(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var r,n;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),L({},e,{cause:r,stack:n})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return D(function*(){var r=e;for(var n of t.modifiers)r=yield n(r);return r})()}convertToExceptionList(e,t){var r,n,i,s={type:e.type,value:e.value,mechanism:{type:null!=(r=t.type)?r:"generic",handled:null==(n=t.handled)||n,synthetic:null!=(i=e.synthetic)&&i}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var o=[s];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,L({},t,{handled:!0}))),o}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return ev&&r.length===eg||(eg=r.length,ev=r.reduce((r,n)=>{ef||(ef={});var i=ef[n];if(i)r[i[0]]=i[1];else for(var s=e(n),o=s.length-1;o>=0;o--){var a=s[o],c=null==a?void 0:a.filename,u=t[n];if(c&&u){r[c]=u,ef[n]=[c,u];break}}return r},{})),ev}}(this.stackParser),skipFirstLines:null!=(t=e.skipFirstLines)?t:1}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var n=(r,n)=>{if(n<=4){var i=this.buildCoercingContext(e,t,n);return this.applyCoercers(r,i)}};return L({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}function tn(e,t,r,n,i){var s={platform:e,filename:t,function:"<anonymous>
1"===r?"?":r,in_app:!0};return X(n)||(s.lineno=n),X(i)||(s.colno=i),s}var ti=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},ts=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,to=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ta=/\((\S*)(?::(\d+))(?::(\d+))\)/,tc=(e,t)=>{var r=ts.exec(e);if(r){var[,n,i,s]=r;return tn(t,n,"?",+i,+s)}var o=to.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var a=ta.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[c,u]=ti(o[1]||"?",o[2]);return tn(t,u,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},tu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tl=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,th=(e,t)=>{var r=tu.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=tl.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],s=r[1]||"?";return[s,i]=ti(s,i),tn(t,i,s,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},tp=/\(error: (.*)\)/;class td{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=Q(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return ec(e,"DOMException")}isDOMError(e){return ec(e,"DOMError")}}class tf{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var r=e.message;return r.error&&"string"==typeof r.error.message?String(r.error.message):String(r)}getStack(e){return e.stacktrace||e.stack||void 0}}class tg{match(e){return ec(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var r;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}var tv=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class tm{match(e){return"string"==typeof e}coerce(e,t){var r,[n,i]=this.getInfos(e);return{type:null!=n?n:"Error",value:null!=i?i:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,n=e.match(tv);return n&&(t=n[1],r=n[2]),[t,r]}}var t_=["fatal","error","warning","log","info","debug"];function ty(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class tb{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:null==(r=t.syntheticException)?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return eu(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+ty(e)}isSeverityLevel(e){return Q(e)&&!ee(e)&&t_.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(tt(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class tw{match(e){return eu(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+ty(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class tk{match(e){return ea(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class tS{match(e){return ec(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return ea(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){if(ea(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var tx=function(e,t){var{debugEnabled:r}=void 0===t?{}:t,n={k:function(t){if(b&&(P.DEBUG||T.POSTHOG_DEBUG||r)&&!X(b.console)&&b.console){for(var n=("__rrweb_original__"in b.console[t])?b.console[t].__rrweb_original__:b.console[t],i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];n(e,...s)}},info:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("log",...t)},warn:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("warn",...t)},error:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("error",...t)},critical:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];console.error(e,...r)},uninitializedWarning:e=>{n.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>tx(e+" "+t,r)};return n},tE=tx("[PostHog.js]"),tC=tE.createLogger,tI=tC("[ExternalScriptsLoader]"),tO=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return tI.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==C?void 0:C.querySelectorAll("script");
1if(n){for(var i,s=0;s<n.length;s++)if(i=function(){if(n[s].src===t){var e=n[s];return e.__posthog_loading_callback_fired?{v:r()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,r(void 0,t)}),e.onerror=e=>r(e),{v:void 0})}}())return i.v}var o=()=>{if(!C)return r("document not found");var n=C.createElement("script");if(n.type="text/javascript",n.crossOrigin="anonymous",n.src=t,n.onload=e=>{n.__posthog_loading_callback_fired=!0,r(void 0,e)},n.onerror=e=>r(e),e.config.prepare_external_dependency_script&&(n=e.config.prepare_external_dependency_script(n)),!n)return r("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)C.head.appendChild(n);else{var i,s=C.querySelectorAll("body > script");s.length>0?null==(i=s[0].parentNode)||i.insertBefore(n,s[0]):C.body.appendChild(n)}};null!=C&&C.body?o():null==C||C.addEventListener("DOMContentLoaded",o)};T.__PosthogExtensions__=T.__PosthogExtensions__||{},T.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{var n="/static/"+t+".js?v="+e.version;"remote-config"===t&&(n="/array/"+e.config.token+"/config.js"),"toolbar"===t&&(n=n+"&t="+3e5*Math.floor(Date.now()/3e5));var i=e.requestRouter.endpointFor("assets",n);tO(e,i,r)},T.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);tO(e,n,r)};var tR={};function tM(e,t,r){if(Y(e)){if(S&&e.forEach===S)e.forEach(t,r);else if("length"in e&&e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===tR)return}}}function tA(e,t,r){if(!er(e)){if(Y(e))return tM(e,t,r);if(e instanceof FormData){for(var n of e.entries())if(t.call(r,n[1],n[0])===tR)return}else for(var i in e)if(H.call(e,i)&&t.call(r,e[i],i)===tR)return}}var tT=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return tM(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},tP=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return tM(r,function(t){tM(t,function(t){e.push(t)})}),e};function tF(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var tD=function(e){try{return e()}catch(e){return}},tL=function(e){return function(){try{for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(e){tE.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),tE.critical(e)}}},tN=function(e){var t={};return tA(e,function(e,r){(Q(e)&&e.length>0||en(e))&&(t[r]=e)}),t},t$=["herokuapp.com","vercel.app","netlify.app"];function tU(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function tj(e,t,r,n){var{capture:i=!1,passive:s=!0}=null!=n?n:{};null==e||e.addEventListener(t,r,{capture:i,passive:s})}function tB(e){return"ph_toolbar_internal"===e.name}var tq="$people_distinct_id",tz="__alias",tV="__timers",tW="$autocapture_disabled_server_side",tH="$heatmaps_enabled_server_side",tG="$exception_capture_enabled_server_side",tY="$error_tracking_suppression_rules",tJ="$error_tracking_capture_extension_exceptions",tZ="$web_vitals_enabled_server_side",tK="$dead_clicks_enabled_server_side",tX="$product_tours_enabled_server_side",tQ="$web_vitals_allowed_metrics",t0="$session_recording_remote_config",t1="$sesid",t2="$session_is_sampled",t3="$enabled_feature_flags",t5="$early_access_features",t4="$feature_flag_details",t6="$stored_person_properties",t8="$stored_group_properties",t9="$surveys",t7="$flag_call_reported",re="$feature_flag_errors",rt="$user_state",rr="$client_session_props",rn="$capture_rate_limit",ri="$initial_campaign_params",rs="$initial_referrer_info",ro="$initial_person_info",ra="$epp",rc="__POSTHOG_TOOLBAR__",ru="$posthog_cookieless",rl=[tq,tz,"__cmpns",tV,"$session_recording_enabled_server_side",tH,t1,t3,tY,rt,t5,t4,t8,t6,t9,t7,re,rr,rn,ri,rs,ra,ro];Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return en(e)&&isFinite(e)&&Math.floor(e)===e});var rh="0123456789abcdef";class rp{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||e<0||t<0||r<0||n<0||e>0xffffffffffff||t>4095||r>0x3fffffff||n>0xffffffff)throw RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/0x10000000000,i[1]=e/0x100000000,i[2]=e/0x1000000,i[3]=e/65536,i[4]=e/256,i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new rp(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+rh.charAt(this.bytes[t]>>>4)+rh.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new rp(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class rd{constructor(){this.P=0,this.T=0,this.I=new rv}generate(){var e=this.generateOrAbort();if(X(e)){this.P=0;var t=this.generateOrAbort();if(X(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.P)this.P=e,this.C();else{if(!(e+1e4>this.P))return;this.T++,this.T>0x3ffffffffff&&(this.P++,this.C())}return rp.fromFieldsV7(this.P,Math.trunc(this.T/0x40000000),0x3fffffff&this.T,this.I.nextUint32())}C(){this.T=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var rf,rg=e=>{if("u">typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};b&&!X(b.crypto)&&crypto.getRandomValues&&(rg=e=>crypto.getRandomValues(e));class rv{constructor(){this.R=new Uint32Array(8),this.F=1/0}nextUint32(){return this.F>=this.R.length&&(rg(this.R),this.F=0),this.R[this.F++]}}var rm=()=>r_().toString(),r_=()=>(rf||(rf=new rd)).generate(),ry="",rb=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,rw={O:()=>!!C,M:function(e){tE.error("cookieStore error: "+e)},A:function(e){if(C){try{for(var t=e+"=",r=C.cookie.split(";").filter(e=>e.length),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null}},j:function(e){var t;try{t=JSON.parse(rw.A(e))||{}}catch(e){}return t},D:function(e,t,r,n,i){if(C)try{var s="",o="",a=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=C),ry)return ry;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),n=Math.min(r.length,8),i="dmn_chk_"+rm();!ry&&n--;){var s=r.slice(n).join("."),o=i+"=1;domain=."+s+";path=/";t.cookie=o+";max-age=3",t.cookie.includes(i)&&(t.cookie=o+";max-age=0",ry=s)}return ry}(e);if(!r){var n,i=(n=e.match(rb))?n[0]:"";i!==r&&tE.info("Warning: cookie subdomain discovery mismatch",i,r),r=i}return r?"; domain=."+r:""}return""}(C.location.hostname,n);if(r){var c=new Date;c.setTime(c.getTime()+24*r*36e5),s="; expires="+c.toUTCString()}i&&(o="; secure");var u=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+a+o;return u.length>3686.4&&tE.warn("cookieStore warning: large cookie, len="+u.length),C.cookie=u,u}catch(e){return}},L:function(e,t){if(null!=C&&C.cookie)try{rw.D(e,"",-1,t)}catch(e){return}}},rk=null,rS={O:function(){if(!et(rk))return rk;var e=!0;if(X(b))e=!1;
1else try{var t="__mplssupport__";rS.D(t,"xyz"),'"xyz"'!==rS.A(t)&&(e=!1),rS.L(t)}catch(t){e=!1}return e||tE.error("localStorage unsupported; falling back to cookie store"),rk=e,e},M:function(e){tE.error("localStorage error: "+e)},A:function(e){try{return null==b?void 0:b.localStorage.getItem(e)}catch(e){rS.M(e)}return null},j:function(e){try{return JSON.parse(rS.A(e))||{}}catch(e){}return null},D:function(e,t){try{null==b||b.localStorage.setItem(e,JSON.stringify(t))}catch(e){rS.M(e)}},L:function(e){try{null==b||b.localStorage.removeItem(e)}catch(e){rS.M(e)}}},rx=["$device_id","distinct_id",t1,t2,ra,ro,rt],rE={},rC={O:function(){return!0},M:function(e){tE.error("memoryStorage error: "+e)},A:function(e){return rE[e]||null},j:function(e){return rE[e]||null},D:function(e,t){rE[e]=t},L:function(e){delete rE[e]}},rI=null,rO={O:function(){if(!et(rI))return rI;if(rI=!0,X(b))rI=!1;else try{var e="__support__";rO.D(e,"xyz"),'"xyz"'!==rO.A(e)&&(rI=!1),rO.L(e)}catch(e){rI=!1}return rI},M:function(e){tE.error("sessionStorage error: ",e)},A:function(e){try{return null==b?void 0:b.sessionStorage.getItem(e)}catch(e){rO.M(e)}return null},j:function(e){try{return JSON.parse(rO.A(e))||null}catch(e){}return null},D:function(e,t){try{null==b||b.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){rO.M(e)}},L:function(e){try{null==b||b.sessionStorage.removeItem(e)}catch(e){rO.M(e)}}},rR=((sO={})[sO.PENDING=-1]="PENDING",sO[sO.DENIED=0]="DENIED",sO[sO.GRANTED=1]="GRANTED",sO);class rM{constructor(e){this._instance=e}get N(){return this._instance.config}get consent(){return this.U()?rR.DENIED:this.H}isOptedOut(){return"always"===this.N.cookieless_mode||this.consent===rR.DENIED||this.consent===rR.PENDING&&(this.N.opt_out_capturing_by_default||"on_reject"===this.N.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===rR.DENIED}optInOut(e){this.B.D(this.q,+!!e,this.N.cookie_expiration,this.N.cross_subdomain_cookie,this.N.secure_cookie)}reset(){this.B.L(this.q,this.N.cross_subdomain_cookie)}get q(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:r}=this._instance.config;return r||(t?t+e:"__ph_opt_in_out_"+e)}get H(){var e=this.B.A(this.q);return B(el,e)?rR.GRANTED:B(eh,e)?rR.DENIED:rR.PENDING}get B(){if(!this.W){var e=this.N.opt_out_capturing_persistence_type;this.W="localStorage"===e?rS:rw;var t="localStorage"===e?rw:rS;t.A(this.q)&&(this.W.A(this.q)||this.optInOut(B(el,t.A(this.q))),t.L(this.q,this.N.cross_subdomain_cookie))}return this.W}U(){return!!this.N.respect_dnt&&!!tU([null==E?void 0:E.doNotTrack,null==E?void 0:E.msDoNotTrack,T.doNotTrack],e=>B(el,e))}}var rA=tC("[Dead Clicks]"),rT=()=>!0,rP=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(tK)),n=e.instance.config.capture_dead_clicks;return es(n)?n:!!Z(n)||r};class rF{get lazyLoadedDeadClicksAutocapture(){return this.G}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[tK]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.V(()=>{this.J()}):this.stop()}V(e){var t,r;null!=(t=T.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?rA.error("failed to load script",t):e()})}J(){var e;if(C){if(!this.G&&null!=(e=T.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=Z(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.G=T.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.G.start(C),rA.info("starting...")}}else rA.error("`document` not found. Cannot start.")}stop(){this.G&&(this.G.stop(),this.G=void 0,rA.info("stopping..."))}}var rD=tC("[SegmentIntegration]"),rL="posthog-js";function rN(e,t){var{organization:r,projectId:n,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=void 0===t?{}:t;return t=>{if(!("*"===s||s.includes(t.level))||!e.__loaded)return t;t.tags||(t.tags={});var a,c,u,l,h,p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/pers
1on/"+e.get_distinct_id());t.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var d=(null==(a=t.exception)?void 0:a.values)||[],f=d.map(e=>L({},e,{stacktrace:e.stacktrace?L({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>L({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(c=d[0])?void 0:c.value)||t.message,$exception_type:null==(u=d[0])?void 0:u.type,$exception_level:t.level,$exception_list:f,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(l=d[0])?void 0:l.value)||t.message,$sentry_exception_type:null==(h=d[0])?void 0:h.type,$sentry_tags:t.tags};return r&&n&&(g.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+t.event_id),o&&e.exceptions.sendExceptionEvent(g),t}}class r${constructor(e,t,r,n,i,s){this.name=rL,this.setupOnce=function(o){o(rN(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==s||s}))}}}var rU=e=>{var t=null==C?void 0:C.createElement("a");return X(t)?null:(t.href=e,t)},rj=function(e,t){void 0===t&&(t="&");var r,n,i=[];return tA(e,function(e,t){X(e)||X(t)||"undefined"===t||(r=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r)}),i.join(t)},rB=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<n.length;i++){var s=n[i].split("=");if(s[0]===t){r=s;break}}if(!Y(r)||r.length<2)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(e){tE.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},rq=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[0]||"",s=n[1],o=i.split("?"),a=o[1],c=o[0],u=(a||"").split("&"),l=[],h=0;h<u.length;h++){var p=u[h].split("=");Y(p)&&(t.includes(p[0])?l.push(p[0]+"="+r):l.push(u[h]))}var d=c;return null!=a&&(d+="?"+l.join("&")),null!=s&&(d+="#"+s),d},rz=function(e,t){var r=e.match(RegExp(t+"=([^&]*)"));return r?r[1]:null},rV=null!=b&&b.location?rz(b.location.hash,"__posthog")||rz(location.hash,"state"):null,rW="_postHogToolbarParams",rH=tC("[Toolbar]"),rG=((sR=rG||{})[sR.UNINITIALIZED=0]="UNINITIALIZED",sR[sR.LOADING=1]="LOADING",sR[sR.LOADED=2]="LOADED",sR);class rY{constructor(e){this.instance=e}K(e){T.ph_toolbar_state=e}Y(){var e;return null!=(e=T.ph_toolbar_state)?e:rG.UNINITIALIZED}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),tB(this.instance.config)||!b||!C)return!1;e=null!=e?e:b.location,r=null!=r?r:b.history;try{if(!t){try{b.localStorage.setItem("test","test"),b.localStorage.removeItem("test")}catch(e){return!1}t=null==b?void 0:b.localStorage}var n,i=rV||rz(e.hash,"__posthog")||rz(e.hash,"state"),s=i?tD(()=>JSON.parse(atob(decodeURIComponent(i))))||tD(()=>JSON.parse(decodeURIComponent(i))):null;return s&&"ph_authorize"===s.action?((n=s).source="url",n&&Object.keys(n).length>0&&(s.desiredHash?e.hash=s.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(rW)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token)&&(this.loadToolbar(n),!0)}catch(e){return!1}}X(e){var t=T.ph_load_toolbar||T.ph_load_editor;!er(t)&&J(t)?t(e,this.instance):rH.warn("No toolbar load function found")}loadToolbar(e){var t,r=!(null==C||!C.getElementById(rc));if(!b||r)return!1;var n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,i=L({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});return(b.localStorage.setItem(rW,JSON.stringify(L({},i,{source:void 0}))),this.Y()===rG.LOADED)?this.X(i):this.Y()===rG.UNINITIALIZED&&(this.K(rG.LOADING),null==(t=T.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{e?(rH.error("[Toolbar] Failed to load",e),this.K(rG.UNINITIALIZED)):(this.K(rG.LOADED),this.X(i))}),tj(b,"turbolinks:load",()=>{this.K(rG.UNINITIALIZED),this.loadToolbar(i)})),!0}Z(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}class rJ{constructor(e){this.tt=(e,t,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(tE.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:r}),this.it=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.et()}et(){var e;this.rt=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.tt)}destroy(){var e;null==(e=this.rt)||e.call(this),this.rt=void 0}doPageView(e,t){var r,n=this.st(e,t);return this.it={pathname:null!=(r=null==b?void 0:b.location.pathname)?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var t;return this.st(e,null==(t=this.it)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.it)?void 0:e.pageViewId}}st(e,t){var r=this.it;if(!r)return{$pageview_id:t};var n={$pageview_id:t,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:s,lastScrollY:o,maxScrollY:a,maxContentHeight:c,lastContentY:u,maxContentY:l}=i;if(!(X(s)||X(o)||X(a)||X(c)||X(u)||X(l))){s=Math.ceil(s),o=Math.ceil(o),a=Math.ceil(a),c=Math.ceil(c),u=Math.ceil(u),l=Math.ceil(l);var h=s<=1?1:ep(o/s,0,1,tE),p=s<=1?1:ep(a/s,0,1,tE),d=c<=1?1:ep(u/c,0,1,tE),f=c<=1?1:ep(l/c,0,1,tE);n=tT(n,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:h,$prev_pageview_max_scroll:a,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:d,$prev_pageview_max_content:l,$prev_pageview_max_content_percentage:f})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var rZ=((sM={}).GZipJS="gzip-js",sM.Base64="base64",sM),rK=Uint8Array,rX=Uint16Array,rQ=Uint32Array,r0=new rK([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),r1=new rK([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),r2=new rK([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r3=function(e,t){for(var r=new rX(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];
1var i=new rQ(r[30]);for(n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)i[s]=s-r[n]<<5|n;return[r,i]},r5=r3(r0,2),r4=r5[0],r6=r5[1];r4[28]=258,r6[258]=28;for(var r8=r3(r1,0)[1],r9=new rX(32768),r7=0;r7<32768;++r7){var ne=(43690&r7)>>>1|(21845&r7)<<1;ne=(61680&(ne=(52428&ne)>>>2|(13107&ne)<<2))>>>4|(3855&ne)<<4,r9[r7]=((65280&ne)>>>8|(255&ne)<<8)>>>1}var nt=function(e,t,r){for(var n=e.length,i=0,s=new rX(t);i<n;++i)++s[e[i]-1];var o,a=new rX(t);for(i=0;i<t;++i)a[i]=a[i-1]+s[i-1]<<1;if(r){o=new rX(1<<t);var c=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],l=t-e[i],h=a[e[i]-1]++<<l,p=h|(1<<l)-1;h<=p;++h)o[r9[h]>>>c]=u}else for(o=new rX(n),i=0;i<n;++i)o[i]=r9[a[e[i]-1]++]>>>15-e[i];return o},nr=new rK(288);for(r7=0;r7<144;++r7)nr[r7]=8;for(r7=144;r7<256;++r7)nr[r7]=9;for(r7=256;r7<280;++r7)nr[r7]=7;for(r7=280;r7<288;++r7)nr[r7]=8;var nn=new rK(32);for(r7=0;r7<32;++r7)nn[r7]=5;var ni=nt(nr,9,0),ns=nt(nn,5,0),no=function(e){return(e/8|0)+(7&e&&1)},na=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof rX?rX:e instanceof rQ?rQ:rK)(r-t);return n.set(e.subarray(t,r)),n},nc=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},nu=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},nl=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return[new rK(0),0];if(1==i){var o=new rK(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],c=r[1],u=0,l=1,h=2;for(r[0]={s:-1,f:a.f+c.f,l:a,r:c};l!=i-1;)a=r[r[u].f<r[h].f?u++:h++],c=r[u!=l&&r[u].f<r[h].f?u++:h++],r[l++]={s:-1,f:a.f+c.f,l:a,r:c};var p=s[0].s;for(n=1;n<i;++n)s[n].s>p&&(p=s[n].s);var d=new rX(p+1),f=nh(r[l-1],d,0);if(f>t){n=0;var g=0,v=f-t,m=1<<v;for(s.sort(function(e,t){return d[t.s]-d[e.s]||e.f-t.f});n<i;++n){var _=s[n].s;if(!(d[_]>t))break;g+=m-(1<<f-d[_]),d[_]=t}for(g>>>=v;g>0;){var y=s[n].s;d[y]<t?g-=1<<t-d[y]++-1:++n}for(;n>=0&&g;--n){var b=s[n].s;d[b]==t&&(--d[b],++g)}f=t}return[new rK(d),f]},nh=function(e,t,r){return -1==e.s?Math.max(nh(e.l,t,r+1),nh(e.r,t,r+1)):t[e.s]=r},np=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new rX(++t),n=0,i=e[0],s=1,o=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return[r.subarray(0,n),t]},nd=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},nf=function(e,t,r){var n=r.length,i=no(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;s<n;++s)e[i+s+4]=r[s];return 8*(i+4+n)},ng=function(e,t,r,n,i,s,o,a,c,u,l){nc(t,l++,r),++i[256];for(var h=nl(i,15),p=h[0],d=h[1],f=nl(s,15),g=f[0],v=f[1],m=np(p),_=m[0],y=m[1],b=np(g),w=b[0],k=b[1],S=new rX(19),x=0;x<_.length;++x)S[31&_[x]]++;for(x=0;x<w.length;++x)S[31&w[x]]++;for(var E=nl(S,7),C=E[0],I=E[1],O=19;O>4&&!C[r2[O-1]];--O);var R,M,A,T,P=u+5<<3,F=nd(i,nr)+nd(s,nn)+o,D=nd(i,p)+nd(s,g)+o+14+3*O+nd(S,C)+(2*S[16]+3*S[17]+7*S[18]);if(P<=F&&P<=D)return nf(t,l,e.subarray(c,c+u));if(nc(t,l,1+(D<F)),l+=2,D<F){R=nt(p,d,0),M=p,A=nt(g,v,0),T=g;var L=nt(C,I,0);for(nc(t,l,y-257),nc(t,l+5,k-1),nc(t,l+10,O-4),l+=14,x=0;x<O;++x)nc(t,l+3*x,C[r2[x]]);l+=3*O;for(var N=[_,w],$=0;$<2;++$){var U=N[$];for(x=0;x<U.length;++x){var j=31&U[x];nc(t,l,L[j]),l+=C[j],j>15&&(nc(t,l,U[x]>>>5&127),l+=U[x]>>>12)}}}else R=ni,M=nr,A=ns,T=nn;for(x=0;x<a;++x)if(n[x]>255){nu(t,l,R[(j=n[x]>>>18&31)+257]),l+=M[j+257],j>7&&(nc(t,l,n[x]>>>23&31),l+=r0[j]);var B=31&n[x];nu(t,l,A[B]),l+=T[B],B>3&&(nu(t,l,n[x]>>>5&8191),l+=r1[B])}else nu(t,l,R[n[x]]),l+=M[n[x]];return nu(t,l,R[256]),l+M[256]},nv=new rQ([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nm=function(){for(var e=new rQ(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&0xedb88320)^r>>>1;e[t]=r}return e}(),n_=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},ny=function(e){var t,r,n,i,s="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var o=e.charCodeAt(i),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),et(a)||(r>t&&(s+=e.substring(t,r)),s+=a,t=r=i+1)}return r>t&&(s+=e.substring(t,e.length)),s},nb=!!R||!!O,nw="text/plain",nk=function(e,t,r){void 0===r&&(r=!0);var n,[i,s]=e.split("?"),o=L({},t),a=null!=(n=null==s?void 0:s.split("&").map(e=>{var t,[n,i]=e.split("="),s=r&&null!=(t=o[n])?t:i;return delete o[n],n+"="+s}))?n:[],c=rj(o);return c&&a.push(c),i+"?"+a.join("&")},nS=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),nx=e=>{var{data:t,compression:r}=e;if(t){if(r===rZ.GZipJS){var n,i,s,o,a,c,u,l,h=new Blob([(n=function(e,t){var r=e.length;if("u">typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new rK(e.length+(e.length>>>1)),i=0,s=function(e){n[i++]=e},o=0;o<r;++o){if(i+5>n.length){var a=new rK(i+8+(r-o<<1));a.set(n),n=a}var c=e.charCodeAt(o);c<128?s(c):(c<2048?s(192|c>>>6):(c>55295&&c<57344?(s(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++o))>>>18),s(128|c>>>12&63)):s(224|c>>>12),s(128|c>>>6&63)),s(128|63&c))}return na(n,0,i)}(nS(t)),i={mtime:0},s=0xffffffff,o={p:function(e){for(var t=s,r=0;r<e.length;++r)t=nm[255&t^e[r]]^t>>>8;s=t},d:function(){return 0xffffffff^s}},a=n.length,o.p(n),l=(c=10+(i.filename&&i.filename.length+1||0),u=function(e,t,r,n,i,s){var o=e.length,a=new rK(n+o+5*(1+Math.floor(o/7e3))+8),c=a.subarray(n,a.length-8),u=0;if(!t||o<8)for(var l=0;l<=o;l+=65535){var h=l+65535;
1h<o?u=nf(c,u,e.subarray(l,h)):(c[l]=s,u=nf(c,u,e.subarray(l,o)))}else{for(var p=nv[t-1],d=p>>>13,f=8191&p,g=(1<<r)-1,v=new rX(32768),m=new rX(g+1),_=Math.ceil(r/3),y=2*_,b=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<y)&g},w=new rQ(25e3),k=new rX(288),S=new rX(32),x=0,E=0,C=(l=0,0),I=0,O=0;l<o;++l){var R=b(l),M=32767&l,A=m[R];if(v[M]=A,m[R]=M,I<=l){var T=o-l;if((x>7e3||C>24576)&&T>423){u=ng(e,c,0,w,k,S,E,C,O,l-O,u),C=x=E=0,O=l;for(var P=0;P<286;++P)k[P]=0;for(P=0;P<30;++P)S[P]=0}var F=2,D=0,L=f,N=M-A&32767;if(T>2&&R==b(l-N))for(var $=Math.min(d,T)-1,U=Math.min(32767,l),j=Math.min(258,T);N<=U&&--L&&M!=A;){if(e[l+F]==e[l+F-N]){for(var B=0;B<j&&e[l+B]==e[l+B-N];++B);if(B>F){if(F=B,D=N,B>$)break;var q=Math.min(N,B-2),z=0;for(P=0;P<q;++P){var V=l-N+P+32768&32767,W=V-v[V]+32768&32767;W>z&&(z=W,A=V)}}}N+=(M=A)-(A=v[M])+32768&32767}if(D){w[C++]=0x10000000|r6[F]<<18|r8[D];var H=31&r6[F],G=31&r8[D];E+=r0[H]+r1[G],++k[257+H],++S[G],I=l+F,++x}else w[C++]=e[l],++k[e[l]]}}u=ng(e,c,s,w,k,S,E,C,O,l-O,u)}return na(a,0,n+no(u)+8)}(n,null==i.level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(n.length)))):12+i.mem,c,8,!0)).length,function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&n_(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(u,i),n_(u,l-8,o.d()),n_(u,l-4,a),u)],{type:nw});return{contentType:nw,body:h,estimatedSize:h.size}}if(r===rZ.Base64){let e;var p="data="+encodeURIComponent("string"==typeof(e=function(e){var t,r,n,i,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=ny(e);do t=(s=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=s>>12&63,n=s>>6&63,i=63&s,l[c++]=o.charAt(t)+o.charAt(r)+o.charAt(n)+o.charAt(i);while(a<e.length)switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}(nS(t)))?e:nS(e));return{contentType:"application/x-www-form-urlencoded",body:p,estimatedSize:new Blob([p]).size}}var d=nS(t);return{contentType:"application/json",body:d,estimatedSize:new Blob([d]).size}}},nE=[];O&&nE.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:i,estimatedSize:s}=null!=(t=nx(e))?t:{},o=new Headers;tA(e.headers,function(e,t){o.append(t,e)}),n&&o.append("Content-Type",n);var a=e.url,c=null;if(M){var u=new M;c={signal:u.signal,timeout:setTimeout(()=>u.abort(),e.timeout)}}O(a,L({method:(null==e?void 0:e.method)||"GET",headers:o,keepalive:"POST"===e.method&&52428.8>(s||0),body:i,signal:null==(r=c)?void 0:r.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var n={statusCode:t.status,text:r};if(200===t.status)try{n.json=JSON.parse(r)}catch(e){tE.error(e)}null==e.callback||e.callback(n)})).catch(t=>{tE.error(t),null==e.callback||e.callback({statusCode:0,error:t})}).finally(()=>c?clearTimeout(c.timeout):null)}}),R&&nE.push({transport:"XHR",method:e=>{var t,r=new R;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:i}=null!=(t=nx(e))?t:{};tA(e.headers,function(e,t){r.setRequestHeader(t,e)}),n&&r.setRequestHeader("Content-Type",n),e.timeout&&(r.timeout=e.timeout),e.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(e){}null==e.callback||e.callback(t)}},r.send(i)}}),null!=E&&E.sendBeacon&&nE.push({transport:"sendBeacon",method:e=>{var t=nk(e.url,{beacon:"1"});try{var r,{contentType:n,body:i}=null!=(r=nx(e))?r:{},s="string"==typeof i?new Blob([i],{type:n}):i;E.sendBeacon(t,s)}catch(e){}}});var nC=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function nI(e,t,r){return nS({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var nO={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>nC(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!nC(t,e))),icontains:(e,t)=>t.map(nR).some(t=>e.map(nR).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(nR).every(t=>e.map(nR).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r<parseFloat(e))})},nR=e=>e.toLowerCase();function nM(e,t){return!e||Object.entries(e).every(e=>{var[r,n]=e,i=null==t?void 0:t[r];
1if(X(i)||et(i))return!1;var s=[String(i)],o=nO[n.operator];return!!o&&o(n.values,s)})}var nA=tC("[Error tracking]");class nT{constructor(e){var t,r;this.nt=[],this.ot=new tr([new td,new tS,new tg,new tf,new tw,new tb,new tm,new tk],function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){void 0===n&&(n=0);for(var i=[],s=t.split("\n"),o=n;o<s.length;o++){var a=s[o];if(!(a.length>1024)){var c=tp.test(a)?a.replace(tp,"$1"):a;if(!c.match(/\S*Error: /)){for(var u of r){var l=u(c,e);if(l){i.push(l);break}}if(i.length>=50)break}}}if(!i.length)return[];var h=Array.from(i);return h.reverse(),h.slice(0,50).map(e=>L({},e,{filename:e.filename||(h[h.length-1]||{}).filename,function:e.function||"?"}))}}("web:javascript",tc,th)),this._instance=e,this.nt=null!=(t=null==(r=this._instance.persistence)?void 0:r.get_property(tY))?t:[]}onRemoteConfig(e){var t,r,n;if("errorTracking"in e){var i=null!=(t=null==(r=e.errorTracking)?void 0:r.suppressionRules)?t:[],s=null==(n=e.errorTracking)?void 0:n.captureExtensionExceptions;this.nt=i,this._instance.persistence&&this._instance.persistence.register({[tY]:this.nt,[tJ]:s})}}get ut(){var e,t=!!this._instance.get_property(tJ),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!=(e=null!=r?r:t)&&e}buildProperties(e,t){return this.ot.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.ht(t)){if(this.dt(t))return void nA.info("Skipping exception capture because a suppression rule matched");if(!this.ut&&this.vt(t))return void nA.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ct(t))return void nA.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent",ft:!0})}dt(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:r,value:n}=t;return Q(r)&&r.length>0&&e.$exception_types.push(r),Q(n)&&n.length>0&&e.$exception_values.push(n),e},{$exception_types:[],$exception_values:[]});return this.nt.some(e=>{var r=e.values.map(e=>{var r,n=nO[e.operator],i=Y(e.value)?e.value:[e.value],s=null!=(r=t[e.key])?r:[];return i.length>0&&n(i,s)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}vt(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.stacktrace)?void 0:r.frames)?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ct(e){if(e.length>0){var t,r,n,i,s=null!=(t=null==(r=e[0].stacktrace)?void 0:r.frames)?t:[],o=s[s.length-1];return null!=(n=null==o||null==(i=o.filename)?void 0:i.includes("posthog.com/static"))&&n}return!1}ht(e){return!er(e)&&Y(e)}}var nP="https?://(.*)",nF=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],nD=tP(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],nF),nL="<masked>",nN=["li_fat_id"];function n$(e,t,r){if(!C)return{};var n,i=t?tP([],nF,r||[]):[],s=nU(rq(C.URL,i,nL),e);return tT((n={},tA(nN,function(e){var t=rw.A(e);n[e]=t||null}),n),s)}function nU(e,t){var r=nD.concat(t||[]),n={};return tA(r,function(t){var r=rB(e,t);n[t]=r||null}),n}function nj(e){var t=e?0===e.search(nP+"google.([^/?]*)")?"google":0===e.search(nP+"bing.com")?"bing":0===e.search(nP+"yahoo.com")?"yahoo":0===e.search(nP+"duckduckgo.com")?"duckduckgo":null:null,r={};if(!et(t)){r.$search_engine=t;var n=C?rB(C.referrer,"yahoo"!=t?"q":"p"):"";n.length&&(r.ph_keyword=n)}return r}function nB(){return navigator.language||navigator.userLanguage}function nq(){return(null==C?void 0:C.referrer)||"$direct"}function nz(e,t){var r=e?tP([],nF,t||[]):[],n=null==I?void 0:I.href.substring(0,1e3);return{r:nq().substring(0,1e3),u:n?rq(n,r,nL):void 0}}function nV(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=rU(r))?void 0:t.host};
1if(n){i.$current_url=n;var s=rU(n);i.$host=null==s?void 0:s.host,i.$pathname=null==s?void 0:s.pathname,tT(i,nU(n))}return r&&tT(i,nj(r)),i}function nW(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var nH=tC("[FeatureFlags]"),nG=tC("[FeatureFlags]",{debugEnabled:!0}),nY="$active_feature_flags",nJ="$override_feature_flags",nZ="$feature_flag_payloads",nK="$override_feature_flag_payloads",nX="$feature_flag_request_id",nQ="$feature_flag_evaluated_at",n0=e=>{var t={};for(var[r,n]of tF(e||{}))n&&(t[r]=n);return t},n1=((sA={}).FeatureFlags="feature_flags",sA.Recordings="recordings",sA);class n2{constructor(e){this._t=!1,this.bt=!1,this.yt=!1,this.wt=!1,this.xt=!1,this.$t=!1,this.Et=!1,this._instance=e,this.featureFlagEventHandlers=[]}St(){var e,t=null!=(e=this._instance.config.evaluation_contexts)?e:this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.Et||(nH.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Et=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||nH.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}kt(){return this.St().length>0}get hasLoadedFlags(){return this.bt}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(t4),t=this._instance.get_property(nJ),r=this._instance.get_property(nK);if(!r&&!t)return e||{};var n=tT({},e||{});for(var i of[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])]){var s,o,a=n[i],c=null==t?void 0:t[i],u=X(c)?null!=(s=null==a?void 0:a.enabled)&&s:!!c,l=X(c)?a.variant:"string"==typeof c?c:void 0,h=null==r?void 0:r[i],p=L({},a,{enabled:u,variant:u?null!=l?l:null==a?void 0:a.variant:void 0});u!==(null==a?void 0:a.enabled)&&(p.original_enabled=null==a?void 0:a.enabled),l!==(null==a?void 0:a.variant)&&(p.original_variant=null==a?void 0:a.variant),h&&(p.metadata=L({},null==a?void 0:a.metadata,{payload:h,original_payload:null==a||null==(o=a.metadata)?void 0:o.payload})),n[i]=p}return this._t||(nH.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this._t=!0),n}getFlagVariants(){var e=this._instance.get_property(t3),t=this._instance.get_property(nJ);if(!t)return e||{};for(var r=tT({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this._t||(nH.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this._t=!0),r}getFlagPayloads(){var e=this._instance.get_property(nZ),t=this._instance.get_property(nK);if(!t)return e||{};for(var r=tT({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this._t||(nH.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this._t=!0),r}reloadFeatureFlags(){this.wt||this._instance.config.advanced_disable_feature_flags||this.Pt||(this._instance.Tt.emit("featureFlagsReloading",!0),this.Pt=setTimeout(()=>{this.It()},5))}Ct(){clearTimeout(this.Pt),this.Pt=void 0}ensureFlagsLoaded(){this.bt||this.yt||this.Pt||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.wt=e}It(e){var t;if(this.Ct(),!this._instance.Rt())if(this.yt)this.xt=!0;else{var r=this._instance.config.token,n=this._instance.get_property("$device_id"),i={token:r,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:L({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(t6)||{}),group_properties:this._instance.get_property(t8),timezone:nW()};et(n)||X(n)||(i.$device_id=n),(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.kt()&&(i.evaluation_contexts=this.St());var s=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+s);this.yt=!0,this._instance._send_request({method:"POST",url:o,data:i,compression:this._instance.config.disable_compression?void 0:rZ.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,r,n,s=!0;if(200===e.statusCode&&(this.xt||(this.$anon_distinct_id=void 0),s=!1),this.yt=!1,!i.disable_flags||this.xt){this.$t
1=!s;var o,a=[];e.error?e.error instanceof Error?a.push("AbortError"===e.error.name?"timeout":"connection_error"):a.push("unknown_error"):200!==e.statusCode&&a.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&a.push("errors_while_computing_flags");var c=!(null==(r=e.json)||null==(r=r.quotaLimited)||!r.includes(n1.FeatureFlags));(c&&a.push("quota_limited"),null==(n=this._instance.persistence)||n.register({[re]:a}),c)?nH.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags(null!=(o=e.json)?o:{},s),this.xt&&(this.xt=!1,this.It()))}}})}}getFeatureFlag(e,t){var r;if(void 0===t&&(t={}),!t.fresh||this.$t){if(this.bt||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlagResult(e,t);return null!=(r=null==n?void 0:n.variant)?r:null==n?void 0:n.enabled}nH.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.$t)if(this.bt||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants(),n=e in r,i=r[e],s=this.getFlagPayloads()[e],o=String(i),a=this._instance.get_property(nX)||void 0,c=this._instance.get_property(nQ)||void 0,u=this._instance.get_property(t7)||{};if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(o))){Y(u[e])?u[e].push(o):u[e]=[o],null==(d=this._instance.persistence)||d.register({[t7]:u});var l=this.getFeatureFlagDetails(e),h=[...null!=(f=this._instance.get_property(re))?f:[]];X(i)&&h.push("flag_missing");var p={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:a,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:(null==(g=this._instance.config.bootstrap)||null==(g=g.featureFlags)?void 0:g[e])||null,$feature_flag_bootstrapped_payload:(null==(v=this._instance.config.bootstrap)||null==(v=v.featureFlagPayloads)?void 0:v[e])||null,$used_bootstrap_value:!this.$t};X(null==l||null==(m=l.metadata)?void 0:m.version)||(p.$feature_flag_version=l.metadata.version);var d,f,g,v,m,_,y,b,w,k,S,x=null!=(_=null==l||null==(y=l.reason)?void 0:y.description)?_:null==l||null==(b=l.reason)?void 0:b.code;x&&(p.$feature_flag_reason=x),null!=l&&null!=(w=l.metadata)&&w.id&&(p.$feature_flag_id=l.metadata.id),X(null==l?void 0:l.original_variant)&&X(null==l?void 0:l.original_enabled)||(p.$feature_flag_original_response=X(l.original_variant)?l.original_enabled:l.original_variant),null!=l&&null!=(k=l.metadata)&&k.original_payload&&(p.$feature_flag_original_payload=null==l||null==(S=l.metadata)?void 0:S.original_payload),h.length&&(p.$feature_flag_error=h.join(",")),this._instance.capture("$feature_flag_called",p)}if(n){var E=s;if(!X(s))try{E=JSON.parse(s)}catch(e){}return{key:e,enabled:!!i,variant:"string"==typeof i?i:void 0,payload:E}}}else nH.warn('getFeatureFlagResult for key "'+e+"\" failed. Feature flags didn't load in time.")}getRemoteConfigPayload(e,t){var r=this._instance.config.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.kt()&&(n.evaluation_contexts=this.St()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this._instance.config.disable_compression?void 0:rZ.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:r=>{var n,i=null==(n=r.json)?void 0:n.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),!t.fresh||this.$t){if(this.bt||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return X(r)?void 0:!!r}nH.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.bt=!0;var r=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();!function(e,t,r,n,i){void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={});var s,o=((s=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(s).map(e=>{var t;return[e,null!=(t=s[e].variant)?t:s[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(s).filter(e=>s[e].enabled).filter(e=>{var t;return null==(t=s[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=s[e].metadata)?void 0:t.payload]}))):nH.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),a=o.flags,c=o.featureFlags,u=o.featureFlagPayloads;if(c){var l=e.requestId,h=e.evaluatedAt;if(Y(c)){nH.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var p={};if(c)for(var d=0;d<c.length;d++)p[c[d]]=!0;t&&t.register({[nY]:c,[t3]:p})}else{var f=c,g=u,v=a;if(e.errorsWhileComputingFlags)if(a){var m=new Set(Object.keys(a).filter(e=>{var t;return!(null!=(t=a[e])&&t.failed)}));f=L({},r,Object.fromEntries(Object.entries(f).filter(e=>{var[t]=e;return m.has(t)}))),g=L({},n,Object.fromEntries(Object.entries(g||{}).filter(e=>{var[t]=e;return m.has(t)}))),v=L({},i,Object.fromEntries(Object.entries(v||{}).filter(e=>{var[t]=e;return m.has(t)})))}else f=L({},r,f),g=L({},n,g),v=L({},i,v);t&&t.register(L({[nY]:Object.keys(n0(f)),[t3]:f||{},[nZ]:g||{},[t4]:v||{}},l?{[nX]:l}:{},h?{[nQ]:h}:{}))}}}(e,this._instance.persistence,r,n,i),this.Ft(t)}}override(e,t){void 0===t&&(t=!1),nH.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return nH.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(nJ),this._instance.persistence.unregister(nK),this.Ft(),nG.info("All overrides cleared");if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t;if(this._t=!!(null!=(t=e.suppressWarning)&&t),"flags"in e){if(!1===e.flags)this._instance.persistence.unregister(nJ),nG.info("Flag overrides cleared");else if(e.flags){if(Y(e.flags)){for(var r={},n=0;n<e.flags.length;n++)r[e.flags[n]]=!0;this._instance.persistence.register({[nJ]:r})}else this._instance.persistence.register({[nJ]:e.flags});nG.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this._instance.persistence.unregister(nK),nG.info("Payload overrides cleared")):e.payloads&&(this._instance.persistence.register({[nK]:e.payloads}),nG.info("Payload overrides set",{payloads:e.payloads}))),void this.Ft()}this.Ft()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.bt){var{flags:t,flagVariants:r}=this.Ot();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this._instance.get_property(t5)||[]).find(t=>t.flagKey===e),s={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:s};i&&(o.$early_access_feature_name=i.name),r&&(o.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(s,!1);var a=L({},this.getFlagVariants(),{[e]:t});null==(n=this._instance.persistence)||n.register({[nY]:Object.keys(n0(a)),[t3]:a}),this.Ft()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(t5),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:t=>{var r,n;if(t.json){var i=t.json.earlyAccessFeatures;return null==(r=this._instance.persistence)||r.unregister(t5),null==(n=this._instance.persistence)||n.register({[t5]:i}),e(i)}}})}Ot(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}Ft(e){var{flags:t,flagVariants:r}=this.Ot();
1this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(t6)||{};this._instance.register({[t6]:L({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(t6)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(t8)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=L({},r[t],e[t]),delete e[t]}),this._instance.register({[t8]:L({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(t8)||{};this._instance.register({[t8]:L({},t,{[e]:{}})})}else this._instance.unregister(t8)}reset(){this.bt=!1,this.yt=!1,this.wt=!1,this.xt=!1,this.$t=!1,this.$anon_distinct_id=void 0,this.Ct(),this._t=!1}}var n3=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class n5{constructor(e,t){this.N=e,this.props={},this.Mt=!1,this.At=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.B=this.jt(e),this.load(),e.debug&&tE.info("Persistence loaded",e.persistence,L({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.Dt}jt(e){-1===n3.indexOf(e.persistence.toLowerCase())&&(tE.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,r,n=(void 0===(t=e.cookie_persisted_properties||[])&&(t=[]),r=[...rx,...t],L({},rS,{j:function(e){try{var t={};try{t=rw.j(e)||{}}catch(e){}var r=tT(t,JSON.parse(rS.A(e)||"{}"));return rS.D(e,r),r}catch(e){}return null},D:function(e,t,n,i,s,o){try{rS.D(e,t,void 0,void 0,o);var a={};r.forEach(e=>{t[e]&&(a[e]=t[e])}),Object.keys(a).length&&rw.D(e,a,n,i,s,o)}catch(e){rS.M(e)}},L:function(e,t){try{null==b||b.localStorage.removeItem(e),rw.L(e,t)}catch(e){rS.M(e)}}})),i=e.persistence.toLowerCase();return"localstorage"===i&&rS.O()?rS:"localstorage+cookie"===i&&n.O()?n:"sessionstorage"===i&&rO.O()?rO:"memory"===i?rC:"cookie"===i?rw:n.O()?n:rw}properties(){var e={};return tA(this.props,function(t,r){if(r===t3&&Z(t))for(var n,i=Object.keys(t),s=0;s<i.length;s++)e["$feature/"+i[s]]=t[i[s]];else n=!1,(et(rl)?n:x&&rl.indexOf===x?-1!=rl.indexOf(r):(tA(rl,function(e){if(n||(n=e===r))return tR}),n))||(e[r]=t)}),e}load(){if(!this.Dt){var e=this.B.j(this.At);e&&(this.props=tT({},e))}}save(){this.Dt||this.B.D(this.At,this.props,this.Lt,this.Nt,this.Ut,this.N.debug)}remove(){this.B.L(this.At,!1),this.B.L(this.At,!0)}clear(){this.remove(),this.props={}}register_once(e,t,r){if(Z(e)){X(t)&&(t="None"),this.Lt=X(r)?this.zt:r;var n=!1;if(tA(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e,n=!0)}),n)return this.save(),!0}return!1}register(e,t){if(Z(e)){this.Lt=X(t)?this.zt:t;var r=!1;if(tA(e,(t,n)=>{e.hasOwnProperty(n)&&this.props[n]!==t&&(this.props[n]=t,r=!0)}),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.Mt){var e=n$(this.N.custom_campaign_params,this.N.mask_personal_data_properties,this.N.custom_personal_data_properties);K(tN(e))||this.register(e),this.Mt=!0}}update_search_keyword(){var e;this.register((e=null==C?void 0:C.referrer)?nj(e):{})}update_referrer_info(){var e;this.register_once({$referrer:nq(),$referring_domain:null!=C&&C.referrer&&(null==(e=rU(C.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[ri]||this.props[rs]||this.register_once({[ro]:nz(this.N.mask_personal_data_properties,this.N.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};tA([rs,ri],t=>{var r=this.props[t];r&&tA(r,function(t,r){e["$initial_"+z(r)]=t})});var t,r,n=this.props[ro];return n&&tT(e,(t=nV(n),r={},tA(t,function(e,t){r["$initial_"+z(t)]=e}),r)),e}safe_merge(e){return tA(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){if(this.zt=this.Lt=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var r=[...e].sort(),n=[...t].sort();return r.every((e,t)=>e===n[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var n=this.jt(e),i=this.props;this.clear(),this.B=n,this.props=i,this.save()}}set_disabled(e){this.Dt=e,this.Dt?this.remove():this.save()}set_cross_subdomain(e){e!==this.Nt&&(this.Nt=e,this.remove(),this.save())}set_secure(e){e!==this.Ut&&(this.Ut=e,this.remove(),this.save())}set_event_timer(e,t){var r=this.props[tV]||{};r[e]=t,this.props[tV]=r,this.save()}remove_event_timer(e){var t=(this.props[tV]||{})[e];return X(t)||(delete this.props[tV][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var n4=((sT={}).Activation="events",sT.Cancellation="cancelEvents",sT),n6=((sP={}).Button="button",sP.Tab="tab",sP.Selector="selector",(sF={}).TopLeft="top_left",sF.TopRight="top_right",sF.TopCenter="top_center",sF.MiddleLeft="middle_left",sF.MiddleRight="middle_right",sF.MiddleCenter="middle_center",sF.Left="left",sF.Center="center",sF.Right="right",sF.NextToTrigger="next_to_trigger",(sD={}).Top="top",sD.Left="left",sD.Right="right",sD.Bottom="bottom",(sL={}).Popover="popover",sL.API="api",sL.Widget="widget",sL.ExternalSurvey="external_survey",sL),n8=((sN={}).Open="open",sN.MultipleChoice="multiple_choice",sN.SingleChoice="single_choice",sN.Rating="rating",sN.Link="link",(s$={}).NextQuestion="next_question",s$.End="end",s$.ResponseBased="response_based",s$.SpecificQuestion="specific_question",(sU={}).Once="once",sU.Recurring="recurring",sU.Always="always",(sj={}).SHOWN="survey shown",sj.DISMISSED="survey dismissed",sj.SENT="survey sent",sj.ABANDONED="survey abandoned",sj),n9=((sB={}).SURVEY_ID="$survey_id",sB.SURVEY_NAME="$survey_name",sB.SURVEY_RESPONSE="$survey_response",sB.SURVEY_ITERATION="$survey_iteration",sB.SURVEY_ITERATION_
1START_DATE="$survey_iteration_start_date",sB.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",sB.SURVEY_SUBMISSION_ID="$survey_submission_id",sB.SURVEY_QUESTIONS="$survey_questions",sB.SURVEY_COMPLETED="$survey_completed",sB.PRODUCT_TOUR_ID="$product_tour_id",sB.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",sB),n7=((sq={}).Popover="popover",sq.Inline="inline",sq),ie=tC("[Surveys]"),it="seenSurvey_",ir=e=>{var t;return t=""+it+e.id,e.current_iteration&&e.current_iteration>0&&(t=""+it+e.id+"_"+e.current_iteration),t},ii=[n6.Popover,n6.Widget,n6.API],is={ignoreConditions:!1,ignoreDelay:!1,displayType:n7.Popover};class io{constructor(){this.Ht={},this.Ht={}}on(e,t){return this.Ht[e]||(this.Ht[e]=[]),this.Ht[e].push(t),()=>{this.Ht[e]=this.Ht[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.Ht[e]||[])r(t);for(var n of this.Ht["*"]||[])n(e,t)}}function ia(e,t,r){if(er(e))return!1;switch(r){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class ic{constructor(e){this.Bt=new io,this.qt=(e,t)=>this.Wt(e,t)&&this.Gt(e,t)&&this.Vt(e,t)&&this.Jt(e,t),this.Wt=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Kt=new Set,this.Yt=new Set}init(){var e,t;X(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!X(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,r;null==(t=this.Yt)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.Kt)||t.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var n,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(n=this._instance)||n.autocapture.setElementSelectors(i)}}on(e,t){var r;null!=t&&0!=e.length&&(this.Kt.has(e)||this.Kt.has(null==t?void 0:t.event))&&this.Yt&&(null==(r=this.Yt)?void 0:r.size)>0&&this.Yt.forEach(e=>{this.Xt(t,e)&&this.Bt.emit("actionCaptured",e.name)})}Qt(e){this.onAction("actionCaptured",t=>e(t))}Xt(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.qt(e,r))return!0;return!1}onAction(e,t){return this.Bt.on(e,t)}Gt(e,t){if(null!=t&&t.url){var r,n=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n||!ia(n,t.url,t.url_matching||"contains"))return!1}return!0}Vt(e,t){return!!this.Zt(e,t)&&!!this.ti(e,t)&&!!this.ii(e,t)}Zt(e,t){if(null==t||!t.href)return!0;var r=this.ei(e);if(r.length>0)return r.some(e=>ia(e.href,t.href,t.href_matching||"exact"));var n,i,s=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";return!!s&&ia((i=s.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}ti(e,t){if(null==t||!t.text)return!0;var r=this.ei(e);if(r.length>0)return r.some(e=>ia(e.text,t.text,t.text_matching||"exact")||ia(e.$el_text,t.text,t.text_matching||"exact"));var n,i,s,o,a=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";return!!a&&(i=function(e){for(var t,r=[],n=/(?::|")text="(.*?)"/g;!er(t=n.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(a),s=t.text,o=t.text_matching||"exact",i.some(e=>ia(e,s,o)))}ii(e,t){if(null==t||!t.selector)return!0;var r,n,i=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var s=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";if(t.selector_regex&&s)try{return new RegExp(t.selector_regex).test(s)}catch(e){}return!1}ei(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}Jt(e,t){return null==t||!t.properties||0===t.properties.length||nM(t.properties.reduce((e,t)=>{var r=Y(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class iu{constructor(e){this._instance=e,this.ri=new Map,this.si=new Map,this.ni=new Map}oi(e,t){return!!e&&nM(e.propertyFilters,null==t?void 0:t.properties)}ai(e,t){var r=new Map;
1return e.forEach(e=>{var n;null==(n=e.conditions)||null==(n=n[t])||null==(n=n.values)||n.forEach(t=>{if(null!=t&&t.name){var n=r.get(t.name)||[];n.push(e.id),r.set(t.name,n)}})}),r}li(e,t,r){var n=(r===n4.Activation?this.ri:this.si).get(e),i=[];return this.ui(e=>{i=e.filter(e=>null==n?void 0:n.includes(e.id))}),i.filter(n=>{var i,s=null==(i=n.conditions)||null==(i=i[r])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.oi(s,t)})}register(e){var t;X(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.hi(e),this.di(e))}di(e){var t=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0});0!==t.length&&(null==this.vi&&(this.vi=new ic(this._instance),this.vi.init(),this.vi.Qt(e=>{this.onAction(e)})),t.forEach(e=>{var t,r,n,i,s;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(r=e.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(i=this.vi)||i.register(e.conditions.actions.values),null==(s=e.conditions)||null==(s=s.actions)||null==(s=s.values)||s.forEach(t=>{if(t&&t.name){var r=this.ni.get(t.name);r&&r.push(e.id),this.ni.set(t.name,r||[e.id])}}))}))}hi(e){var t,r=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}),n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0});(0!==r.length||0!==n.length)&&(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.ri=this.ai(e,n4.Activation),this.si=this.ai(e,n4.Cancellation))}onEvent(e,t){var r,n=this.ci(),i=this.fi(),s=this.pi(),o=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[i])||[];if(s===e&&t&&o.length>0){n.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:o});var a,c,u=(null==t||null==(a=t.properties)?void 0:a.$survey_id)||(null==t||null==(c=t.properties)?void 0:c.$product_tour_id);if(u){var l=o.indexOf(u);l>=0&&(o.splice(l,1),this.gi(o))}}else{if(this.si.has(e)){var h=this.li(e,t,n4.Cancellation);h.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:h.map(e=>e.id)}),h.forEach(e=>{var t=o.indexOf(e.id);t>=0&&o.splice(t,1),this.mi(e.id)}),this.gi(o))}if(this.ri.has(e)){n.info("event name matched",{event:e,eventPayload:t,items:this.ri.get(e)});var p=this.li(e,t,n4.Activation);this.gi(o.concat(p.map(e=>e.id)||[]))}}}onAction(e){var t,r=this.fi(),n=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[];this.ni.has(e)&&this.gi(n.concat(this.ni.get(e)||[]))}gi(e){var t,r=this.ci(),n=this.fi(),i=[...new Set(e)].filter(e=>!this.bi(e));r.info("updating activated items",{activatedItems:i}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[n]:i})}getActivatedIds(){var e,t=this.fi();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getEventToItemsMap(){return this.ri}yi(){return this.vi}}class il extends iu{constructor(e){super(e)}fi(){return"$surveys_activated"}pi(){return n8.SHOWN}ui(e){var t;null==(t=this._instance)||t.getSurveys(e)}mi(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}ci(){return ie}bi(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class ih{constructor(e){this.wi=void 0,this._surveyManager=null,this.xi=!1,this.$i=[],this.Ei=null,this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(er(t))return ie.warn("Flags not loaded yet. Not loading surveys.");var r=Y(t);this.wi=r?t.length>0:t,ie.info("flags response received, isSurveysEnabled: "+this.wi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null!=r&&r.startsWith(it)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}
1e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.xi)ie.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)ie.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())ie.info("Not loading surveys in cookieless mode without consent.");else{var e=null==T?void 0:T.__PosthogExtensions__;if(e){if(!X(this.wi)||this._instance.config.advanced_enable_surveys){var t=this.wi||this._instance.config.advanced_enable_surveys;this.xi=!0;try{var r=e.generateSurveys;if(r)return void this.Si(r,t);var n=e.loadExternalDependency;if(!n)return void this.ki("PostHog loadExternalDependency extension not found.");n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.ki("Could not load surveys script",r):this.Si(e.generateSurveys,t)})}catch(e){throw this.ki("Error initializing surveys",e),e}finally{this.xi=!1}}}else ie.error("PostHog Extensions not found.")}}Si(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new il(this._instance),ie.info("Surveys loaded successfully"),this.Pi({isLoaded:!0})}ki(e,t){ie.error(e,t),this.Pi({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.$i.push(e),this._surveyManager&&this.Pi({isLoaded:!0}),()=>{this.$i=this.$i.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return ie.info("Disabled. Not loading surveys."),e([]);var r,n=this._instance.get_property(t9);if(n&&!t)return e(n,{isLoaded:!0});"u">typeof Promise&&this.Ei?this.Ei.then(t=>{var{surveys:r,context:n}=t;return e(r,n)}):("u">typeof Promise&&(this.Ei=new Promise(e=>{r=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{this.Ei=null;var n=t.statusCode;if(200!==n||!t.json){var i="Surveys API could not be loaded, status: "+n;ie.error(i);var s={isLoaded:!1,error:i};return e([],s),void(null==r||r({surveys:[],context:s}))}var o,a,c=t.json.surveys||[],u=c.filter(e=>{var t,r;return!(!e.start_date||e.end_date)&&(!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)||!(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)||!r.length))});u.length>0&&(null==(a=this._surveyEventReceiver)||a.register(u)),null==(o=this._instance.persistence)||o.register({[t9]:c});var l={isLoaded:!0};e(c,l),null==r||r({surveys:c,context:l})}}))}Pi(e){for(var t of this.$i)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){ie.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!er(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);ie.warn("init was not called")}Ti(e){var t=null;return this.getSurveys(r=>{var n;t=null!=(n=r.find(t=>t.id===e))?n:null}),t}Ii(e){if(er(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.Ti(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(er(this._surveyManager))return ie.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.Ii(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return er(this._surveyManager)?(ie.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(t=>{var n,i=null!=(n=t.find(t=>t.id===e))?n:null;if(i){var s=this.Ii(i);r({visible:s.eligible,disabledReason:s.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,r){var n;if(er(this._surveyManager))ie.warn("init was not called");else{var i="string"==typeof e?this.Ti(e):e;if(null!=i&&i.id)if(ii.includes(i.type)){var s=null==C?void 0:C.querySelector(t);if(s)return null!=(n=i.appearance)&&n.surveyPopupDelaySeconds?(ie.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;ie.info("Rendering survey "+i.id+" with delay of "+(null==(e=i.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(i,s,r),ie.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,r);ie.warn("Survey element not found")}else ie.warn("Surveys of type "+i.type+" cannot be rendered in the app");else ie.warn("Survey not found")}}displaySurvey(e,t){var r;if(er(this._surveyManager))ie.warn("init was not called");else{var n=this.Ti(e);if(n){var i=n;
1if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=L({},n,{appearance:L({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==n7.Popover&&t.initialResponses&&ie.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var s=this.canRenderSurvey(n);if(!s.visible)return void ie.warn("Survey is not eligible to be displayed: ",s.disabledReason)}t.displayType!==n7.Inline?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else ie.warn("Survey not found")}}cancelPendingSurvey(e){er(this._surveyManager)?ie.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||e.handlePageUnload()}}var ip=tC("[Conversations]");class id{constructor(e){this.Ci=void 0,this._conversationsManager=null,this.Ri=!1,this.Fi=null,this._instance=e}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;er(t)||(es(t)?this.Ci=t:(this.Ci=t.enabled,this.Fi=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.Ci=void 0,this.Fi=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ri||this._instance.config.disable_conversations||tB(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==T?void 0:T.__PosthogExtensions__;if(e&&!X(this.Ci)&&this.Ci)if(this.Fi&&this.Fi.token){this.Ri=!0;try{var t=e.initConversations;if(t)return this.Oi(t),void(this.Ri=!1);var r=e.loadExternalDependency;if(!r)return void this.Mi("PostHog loadExternalDependency extension not found.");r(this._instance,"conversations",t=>{t||!e.initConversations?this.Mi("Could not load conversations script",t):this.Oi(e.initConversations),this.Ri=!1})}catch(e){this.Mi("Error initializing conversations",e),this.Ri=!1}}else ip.error("Conversations enabled but missing token in remote config.")}}Oi(e){if(this.Fi)try{this._conversationsManager=e(this.Fi,this._instance),ip.info("Conversations loaded successfully")}catch(e){this.Mi("Error completing conversations initialization",e)}else ip.error("Cannot complete initialization: remote config is null")}Mi(e,t){ip.error(e,t),this._conversationsManager=null,this.Ri=!1}show(){this._conversationsManager?this._conversationsManager.show():ip.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Ci&&!et(this._conversationsManager)}isVisible(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&e}sendMessage(e,t,r){var n=this;return D(function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,r):(ip.warn("Conversations not available yet."),null)})()}getMessages(e,t){var r=this;return D(function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,t):(ip.warn("Conversations not available yet."),null)})()}markAsRead(e){var t=this;return D(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(ip.warn("Conversations not available yet."),null)})()}getTickets(e){var t=this;return D(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(ip.warn("Conversations not available yet."),null)})()}requestRestoreLink(e){var t=this;return D(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(ip.warn("Conversations not available yet."),null)})()}restoreFromToken(e){var t=this;return D(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(ip.warn("Conversations not available yet."),null)})()}restoreFromUrlToken(){var e=this;return D(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(ip.warn("Conversations not available yet."),null)})()}getCurrentTicketId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())?e:null}getWidgetSessionId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())?e:null}}class ig{constructor(e){var t;this.Ai=!1,this.ji=!1,this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.Ai=!0)}onRemoteConfig(e){var t,r=null==(t=e.logs)?void 0:t.captureConsoleLogs;!er(r)&&r&&(this.Ai=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Ai&&!this.ji){var e=tC("[logs]"),t=null==T?void 0:T.__PosthogExtensions__;if(t){var r=t.loadExternalDependency;r?r(this._instance,"logs",r=>{var n;r||null==(n=t.logs)||!n.initializeLogs?e.error("Could not load logs script",r):(t.logs.initializeLogs(this._instance),this.ji=!0)}):e.error("PostHog loadExternalDependency extension not found.")}else e.error("PostHog Extensions not found.")}}}var iv=tC("[RateLimiter]");class im{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;
1if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{iv.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void iv.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,r,n,{captureEventsBurstLimit:i,captureEventsPerSecond:s}=this,o=(new Date).getTime(),a=null!=(t=null==(r=this.instance.persistence)?void 0:r.get_property(rn))?t:{tokens:i,last:o};a.tokens+=(o-a.last)/1e3*s,a.last=o,a.tokens>i&&(a.tokens=i);var c=a.tokens<1;return c||e||(a.tokens=Math.max(0,a.tokens-1)),!c||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+s+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=c,null==(n=this.instance.persistence)||n.set_property(rn,a),{isRateLimited:c,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var i_=tC("[RemoteConfig]");class iy{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=T._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Di(e){var t,r;null!=(t=T.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}Li(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:t=>{e(t.json)}})}load(){try{if(this.remoteConfig)return i_.info("Using preloaded remote config",this.remoteConfig),this.Ni(this.remoteConfig),void this.Ui();if(this._instance.Rt())return void i_.warn("Remote config is disabled. Falling back to local config.");this.Di(e=>{e?(this.Ni(e),this.Ui()):(i_.info("No config found after loading remote JS config. Falling back to JSON."),this.Li(e=>{this.Ni(e),this.Ui()}))})}catch(e){i_.error("Error loading remote config",e)}}stop(){this.zi&&(clearInterval(this.zi),this.zi=void 0)}refresh(){this._instance.Rt()||"hidden"===(null==C?void 0:C.visibilityState)||this._instance.featureFlags.reloadFeatureFlags()}Ui(){this.zi||(this.zi=setInterval(()=>{this.refresh()},3e5))}Ni(e){e||i_.error("Failed to fetch remote config from PostHog."),this._instance.Ni(null!=e?e:{}),!1!==(null==e?void 0:e.hasFeatureFlags)&&(this._instance.config.advanced_disable_feature_flags_on_first_load||this._instance.featureFlags.ensureFlagsLoaded())}}class ib{constructor(e,t){this.Hi=!0,this.Bi=[],this.qi=ep((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,tE.createLogger("flush interval"),3e3),this.Wi=e}enqueue(e){this.Bi.push(e),this.Gi||this.Vi()}unload(){this.Ji();var e=Object.values(this.Bi.length>0?this.Ki():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.Wi(L({},e,{transport:"sendBeacon"}))})}enable(){this.Hi=!1,this.Vi()}Vi(){var e=this;this.Hi||(this.Gi=setTimeout(()=>{if(this.Ji(),this.Bi.length>0){var t=this.Ki();for(var r in t)!function(){var n=t[r],i=(new Date).getTime();n.data&&Y(n.data)&&tA(n.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.Wi(n)}()}},this.qi))}Ji(){clearTimeout(this.Gi),this.Gi=void 0}Ki(){var e={};return tA(this.Bi,t=>{var r,n=(t?t.batchKey:null)||t.url;X(e[n])&&(e[n]=L({},t,{data:[]})),null==(r=e[n].data)||r.push(t.data)}),this.Bi=[],e}}var iw=["retriesPerformedSoFar"];class ik{constructor(e){this.Yi=!1,this.Xi=3e3,this.Bi=[],this._instance=e,this.Bi=[],this.Qi=!0,!X(b)&&"onLine"in b.navigator&&(this.Qi=b.navigator.onLine,this.Zi=()=>{this.Qi=!0,this.te()},this.ie=()=>{this.Qi=!1},tj(b,"online",this.Zi),tj(b,"offline",this.ie))}get length(){return this.Bi.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=N(e,iw);ei(t)&&(r.url=nk(r.url,{retry_count:t})),this._instance._send_request(L({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.ee(L({retriesPerformedSoFar:t},r)):null==r.callback||r.callback(e)}}))}ee(e){var t,r,n,i=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=i+1;var s=(n=(Math.random()-.5)*((r=Math.min(18e5,t=3e3*Math.pow(2,i)))-t/2),Math.ceil(r+n)),o=Date.now()+s;this.Bi.push({retryAt:o,requestOptions:e});var a="Enqueued failed request for retry in "+s;navigator.onLine||(a+=" (Browser is offline)"),tE.warn(a),this.Yi||(this.Yi=!0,this.re())}re(){(this.se&&clearTimeout(this.se),0===this.Bi.length)?(this.Yi=!1,this.se=void 0):this.se=setTimeout(()=>{this.Qi&&this.Bi.length>0&&this.te(),this.re()},this.Xi)}te(){var e=Date.now(),t=[],r=this.Bi.filter(r=>r.retryAt<e||(t.push(r),!1));if(this.Bi=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.se&&(clearTimeout(this.se),this.se=void 0),this.Yi=!1,X(b)||(this.Zi&&(b.removeEventListener("online",this.Zi),this.Zi=void 0),this.ie&&(b.removeEventListener("offline",this.ie),this.ie=void 0)),this.Bi))try{this._instance._send_request(L({},e,{transport:"sendBeacon"}))}catch(e){tE.error(e)}this.Bi=[]}}class iS{constructor(e){this.ne=()=>{this.oe||(this.oe={});var e,t,r,n,i=this.scrollElement(),s=this.scrollY(),o=i?Math.max(0,i.scrollHeight-i.clientHeight):0,a=s+((null==i?void 0:i.clientHeight)||0),c=(null==i?void 0:i.scrollHeight)||0;this.oe.lastScrollY=Math.ceil(s),this.oe.maxScrollY=Math.max(s,null!=(e=this.oe.maxScrollY)?e:0),this.oe.maxScrollHeight=Math.max(o,null!=(t=this.oe.maxScrollHeight)?t:0),this.oe.lastContentY=a,this.oe.maxContentY=Math.max(a,null!=(r=this.oe.maxContentY)?r:0),this.oe.maxContentHeight=Math.max(c,null!=(n=this.oe.maxContentHeight)?n:0)},this._instance=e}getContext(){return this.oe}resetContext(){var e=this.oe;return setTimeout(this.ne,0),e}startMeasuringScrollPosition(){tj(b,"scroll",this.ne,{capture:!0}),tj(b,"scrollend",this.ne,{capture:!0}),tj(b,"resize",this.ne)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==b?void 0:b.document.documentElement;for(var e of Y(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector]){var t=null==b?void 0:b.document.querySelector(e);
1if(t)return t}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return b&&(b.scrollY||b.pageYOffset||b.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return b&&(b.scrollX||b.pageXOffset||b.document.documentElement.scrollLeft)||0}}var ix=e=>nz(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class iE{constructor(e,t,r,n){this.ae=e=>{var t=this.le();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.ue(this._instance)};this.he.register({[rr]:r})}},this._instance=e,this.de=t,this.he=r,this.ue=n||ix,this.de.onSessionId(this.ae)}le(){return this.he.props[rr]}getSetOnceProps(){var e,t=null==(e=this.le())?void 0:e.props;return t?"r"in t?nV(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return tA(tN(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+z(r)]=t}),e}}var iC=tC("[SessionId]");class iI{on(e,t){return this.ve.on(e,t)}constructor(e,t,r){if(this.ce=[],this.fe=void 0,this.ve=new io,this.pe=(e,t)=>!(!ei(e)||!ei(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.N=e.config,this.he=e.persistence,this._e=void 0,this.ge=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.me=t||rm,this.be=r||rm;var n,i=this.N.persistence_name||this.N.token,s=this.N.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*ep(s,60,36e3,iC.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ye(),this.we="ph_"+i+"_window_id",this.xe="ph_"+i+"_primary_window_exists",this.$e()){var o=rO.j(this.we),a=rO.j(this.xe);o&&!a?this._e=o:rO.L(this.we),rO.D(this.xe,!0)}if(null!=(n=this.N.bootstrap)&&n.sessionID)try{var c=(e=>{var t=e.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})(this.N.bootstrap.sessionID);this.Ee(this.N.bootstrap.sessionID,(new Date).getTime(),c)}catch(e){iC.error("Invalid sessionID in bootstrap",e)}this.Se()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return X(this.ce)&&(this.ce=[]),this.ce.push(e),this.ge&&e(this.ge,this._e),()=>{this.ce=this.ce.filter(t=>t!==e)}}$e(){return"memory"!==this.N.persistence&&!this.he.Dt&&rO.O()}ke(e){e!==this._e&&(this._e=e,this.$e()&&rO.D(this.we,e))}Pe(){return this._e?this._e:this.$e()?rO.j(this.we):null}Ee(e,t,r){e===this.ge&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.ge=e,this.he.register({[t1]:[t,e,r]}))}Te(){var e=this.he.props[t1];return Y(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ee(null,null,null)}destroy(){clearTimeout(this.Ie),this.Ie=void 0,this.fe&&b&&(b.removeEventListener("beforeunload",this.fe,{capture:!1}),this.fe=void 0),this.ce=[]}Se(){this.fe=()=>{this.$e()&&rO.L(this.xe)},tj(b,"beforeunload",this.fe,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.N.cookieless_mode)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[n,i,s]=this.Te(),o=this.Pe(),a=ei(s)&&Math.abs(r-s)>864e5,c=!1,u=!i,l=!u&&!e&&this.pe(r,n);u||l||a?(i=this.me(),o=this.be(),iC.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:u,activityTimeout:l,sessionPastMaximumLength:a}}),s=r,c=!0):o||(o=this.be(),c=!0);var h=ei(n)&&e&&!a?n:r,p=ei(s)?s:(new Date).getTime();return this.ke(o),this.Ee(i,h,p),e||this.ye(),c&&this.ce.forEach(e
vendor: 4,590 bytes, line 1
1=>e(i,o,c?{noSessionId:u,activityTimeout:l,sessionPastMaximumLength:a}:void 0)),{sessionId:i,windowId:o,sessionStartTimestamp:p,changeReason:c?{noSessionId:u,activityTimeout:l,sessionPastMaximumLength:a}:void 0,lastActivityTimestamp:n}}ye(){clearTimeout(this.Ie),this.Ie=setTimeout(()=>{var[e]=this.Te();if(this.pe((new Date).getTime(),e)){var t=this.ge;this.resetSessionId(),this.ve.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var iO=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&j(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>j(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver},iR=((sz={}).US="us",sz.EU="eu",sz.CUSTOM="custom",sz),iM="i.posthog.com";class iA{constructor(e){this.Ce={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+iM,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ce[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ce[this.apiHost]=iR.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ce[this.apiHost]=iR.EU:this.Ce[this.apiHost]=iR.CUSTOM),this.Ce[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if(this.region===iR.CUSTOM)return this.apiHost+t;var r=iM+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var iT={icontains:(e,t)=>!!b&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!b&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!b&&nC(t.href,e),not_regex:(e,t)=>!!b&&!nC(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class iP{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{iP.Re("retrieved web experiments from the server"),t.Fe=new Map,e.forEach(e=>{if(e.feature_flag_key){t.Fe&&(iP.Re("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.Fe)||r.set(e.feature_flag_key,e));var r,n=t._instance.getFeatureFlag(e.feature_flag_key);Q(n)&&e.variants[n]&&t.Oe(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var s=e.variants[i];iP.Me(s)&&t.Oe(e.name,i,s.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())iP.Re("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(er(this.Fe))return this.Fe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();iP.Re("applying feature flags",e),e.forEach(e=>{var t;if(this.Fe&&null!=(t=this.Fe)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.Fe)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.Oe(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=iP.getWindowLocation();if(null!=e&&e.search){var t=rB(null==e?void 0:e.search,"__experiment_id"),r=rB(null==e?void 0:e.search,"__experiment_variant");t&&r&&(iP.Re("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.Ae(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this._instance.config.disable_web_experiments&&!r)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>200===t.statusCode&&t.json?e(t.json.experiments||[]):e([])})}Ae(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(iP.Re("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.Oe(n[0].name,t,n[0].variants[t].transforms))}static Me(e){return!er(e.conditions)&&iP.je(e)&&iP.De(e)}static je(e){if(er(e.conditions)||er(null==(t=e.conditions)?void 0:t.url))return!0;var t,r,n,i,s=iP.getWindowLocation();return!!s&&(null==(r=e.conditions)||!r.url||iT[null!=(n=null==(i=e.conditions)?void 0:i.urlMatchType)?n:"icontains"](e.conditions.url,s))}
1static getWindowLocation(){return null==b?void 0:b.location}static De(e){if(er(e.conditions)||er(null==(r=e.conditions)?void 0:r.utm))return!0;var t=n$();if(t.utm_source){var r,n,i,s,o,a,c,u,l,h=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==t.utm_campaign,p=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==t.utm_source,d=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_medium||(null==(c=e.conditions)||null==(c=c.utm)?void 0:c.utm_medium)==t.utm_medium,f=null==(u=e.conditions)||null==(u=u.utm)||!u.utm_term||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_term)==t.utm_term;return h&&d&&f&&p}return!1}static Re(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];tE.info("[WebExperiments] "+e,r)}Oe(e,t,r){this._is_bot()?iP.Re("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){iP.Re("applying transform of variant "+t+" for experiment "+e+" ",r);var n,i=null==(n=document)?void 0:n.querySelectorAll(r.selector);null==i||i.forEach(e=>{r.html&&(e.innerHTML=r.html),r.css&&e.setAttribute("style",r.css)})}}):iP.Re("Control variants leave the page unmodified.")}_is_bot(){return E&&this._instance?iO(E,this._instance.config.custom_blocked_useragents):void 0}}var iF=tC("[PostHog ExternalIntegrations]"),iD={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class iL{constructor(e){this._instance=e}V(e,t){var r;null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return iF.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this,r=function(e){var r,n,s;!i||null!=(r=T.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[e]||t.V(iD[e],()=>{var r;null==(r=T.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[e])||r.start(t._instance)}),!i&&null!=(n=T.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[e]&&(null==(s=T.__PosthogExtensions__)||null==(s=s.integrations)||null==(s=s[e])||s.stop())};for(var[n,i]of Object.entries(null!=(e=this._instance.config.integrations)?e:{}))r(n)}}var iN={},i$=0,iU=()=>{},ij="posthog",iB=!nb&&-1===(null==A?void 0:A.indexOf("MSIE"))&&-1===(null==A?void 0:A.indexOf("Mozilla")),iq=e=>{var t;return L({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!Q(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of t$)if(r===n)return!1;return!0}(null==C?void 0:C.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:iU,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,debug:I&&Q(null==I?void 0:I.search)&&-1!==I.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==b||null==(t=b.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;tE.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:iU,__preview_eager_load_replay:!1},{rageclick:!(e&&e>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(e&&e>="2025-05-24")||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0})},iz=e=>{var t={};X(e.process_person)||(t.person_profiles=e.process_person),X(e.xhr_headers)||(t.request_headers=e.x
vendor: 6,074 bytes, line 1
1hr_headers),X(e.cookie_name)||(t.persistence_name=e.cookie_name),X(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),X(e.store_google)||(t.save_campaign_params=e.store_google),X(e.verbose)||(t.debug=e.verbose);var r=tT({},t,e);return Y(e.property_blacklist)&&(X(e.property_denylist)?r.property_denylist=e.property_blacklist:Y(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:tE.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class iV{constructor(){this.__forceAllowLocalhost=!1}get Le(){return this.__forceAllowLocalhost}set Le(e){tE.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class iW{get decideEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}get flagsEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}constructor(){this.webPerformance=new iV,this.Ne=!1,this.version=P.LIB_VERSION,this.Tt=new io,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=iq(),this.SentryIntegration=r$,this.sentryIntegration=e=>{var t;return t=rN(this,e),{name:rL,processEvent:e=>t(e)}},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Ue=!1,this.ze=null,this.He=null,this.Be=null,this.featureFlags=new n2(this),this.toolbar=new rY(this),this.scrollManager=new iS(this),this.pageViewManager=new rJ(this),this.surveys=new ih(this),this.conversations=new id(this),this.logs=new ig(this),this.experiments=new iP(this),this.exceptions=new nT(this),this.rateLimiter=new im(this),this.requestRouter=new iA(this),this.consent=new rM(this),this.externalIntegrations=new iL(this),this.people={set:(e,t,r)=>{var n=Q(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=Q(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>tE.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==ij){var n,i=null!=(n=iN[r])?n:new iW;return i._init(e,t,r),iN[r]=i,iN[ij][r]=i,i}return this._init(e,t,r)}_init(e,t,r){if(void 0===t&&(t={}),X(e)||ee(e))return tE.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.qe(t.debug),this.We=t,this.Ge=[],t.person_profiles?this.He=t.person_profiles:t.process_person&&(this.He=t.process_person),this.set_config(tT({},iq(t.defaults),iz(t),{name:r,token:e})),this.config.on_xhr_error&&tE.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:rZ.GZipJS;var n=this.Ve();this.persistence=new n5(this.config,n),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new n5(L({},this.config,{persistence:"sessionStorage"}),n);var i=L({},this.persistence.props),s=L({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Je=new ib(e=>this.Ke(e),this.config.request_queue_config),this.Ye=new ik(this),this.__request_queue=[];var o="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(o||(this.sessionManager=new iI(this),this.sessionPropsManager=new iE(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(tE.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.Xe(o)},0)):(tE.info("Initializing extensions synchronously"),this.Xe(o)),P.DEBUG=P.DEBUG||this.config.debug,P.DEBUG&&tE.info("Starting in debug mode",{this:this,config:t,thisC:L({},this.config),p:i,s:s}),void 0!==(null==(a=t.bootstrap)?void 0:a.distinctID)){var a,c,u,l=this.config.get_device_id(rm()),h=null!=(c=t.bootstrap)&&c.isIdentifiedID?l:t.bootstrap.distinctID;this.persistence.set_property(rt,null!=(u=t.bootstrap)&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:h})}if(this.Qe()){var p,d,f=Object.keys((null==(p=t.bootstrap)?void 0:p.featureFlags)||{}).filter(e=>{var r;return!(null==(r=t.bootstrap)||null==(r=r.featureFlags)||!r[e])}).reduce((e,r)=>{var n;return e[r]=(null==(n=t.bootstrap)||null==(n=n.featureFlags)?void 0:n[r])||!1,e},{}),g=Object.keys((null==(d=t.bootstrap)?void 0:d.featureFlagPayloads)||{}).filter(e=>f[e]).reduce((e,r)=>{var n,i;return null!=(n=t.bootstrap)&&null!=(n=n.featureFlagPayloads)&&n[r]&&(e[r]=null==(i=t.bootstrap)||null==(i=i.featureFlagPayloads)?void 0:i[r]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:f,featureFlagPayloads:g})}if(o)this.register_once({distinct_id:ru,$device_id:null},"");else if(!this.get_distinct_id()){var v=this.config.get_device_id(rm());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(rt,"anonymous")}return tj(b,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var n=r=>{var n=()=>r.anonymousId()||rm();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(rt,"identified")),t()},i=r.user();"then"in i&&J(i.then)?i.then(n):n(i)}(e,()=>{var n;r.register((Promise&&Promise.resolve||rD.warn("This browser does not have Promise support, and can not use the segment integration"),n=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(rD.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(rD.info("UserId set, identifying with PostHog"),e.identify(t.event.userId)
1);var n=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>n(e,e.event.event),page:e=>n(e,"$pageview"),identify:e=>n(e,"$identify"),screen:e=>n(e,"$screen")})).then(()=>{t()})})}(this,()=>this.Ze()):this.Ze(),J(this.config._onCapture)&&this.config._onCapture!==iU&&(tE.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&tE.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Xe(e){var t=performance.now(),r=L({},iW.__defaultExtensionClasses,this.config.__extensionClasses);r.historyAutocapture&&(this.historyAutocapture=new r.historyAutocapture(this),this.historyAutocapture.startIfEnabled());var n=[];r.tracingHeaders&&n.push(()=>{new r.tracingHeaders(this).startIfEnabledOrStop()}),r.siteApps&&n.push(()=>{var e;this.siteApps=new r.siteApps(this),null==(e=this.siteApps)||e.init()}),!e&&r.sessionRecording&&n.push(()=>{this.sessionRecording=new r.sessionRecording(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||n.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),r.autocapture&&n.push(()=>{this.autocapture=new r.autocapture(this),this.autocapture.startIfEnabled()}),n.push(()=>{this.surveys.loadIfEnabled()}),n.push(()=>{this.logs.loadIfEnabled()}),n.push(()=>{this.conversations.loadIfEnabled()}),r.productTours&&n.push(()=>{this.productTours=new r.productTours(this),this.productTours.loadIfEnabled()}),r.heatmaps&&n.push(()=>{this.heatmaps=new r.heatmaps(this),this.heatmaps.startIfEnabled()}),r.webVitalsAutocapture&&n.push(()=>{this.webVitalsAutocapture=new r.webVitalsAutocapture(this)}),r.exceptionObserver&&n.push(()=>{this.exceptionObserver=new r.exceptionObserver(this),this.exceptionObserver.startIfEnabledOrStop()}),r.deadClicksAutocapture&&n.push(()=>{this.deadClicksAutocapture=new r.deadClicksAutocapture(this,rP),this.deadClicksAutocapture.startIfEnabledOrStop()}),n.push(()=>{if(this.tr){var e=this.tr;this.tr=void 0,this.Ni(e)}}),this.ir(n,t)}ir(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.ir(e,t)},0);var r=e.shift();if(r)try{r()}catch(e){tE.error("Error initializing extension:",e)}}var n=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:n}),this.config.__preview_deferred_init_extensions&&tE.info("PostHog extensions initialized ("+n+"ms)")}Ni(e){var t,r,n,i,s,o,a,c,u;C&&C.body?(this.config.__preview_deferred_init_extensions&&(this.tr=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=B(e.supportedCompression,rZ.GZipJS)?rZ.GZipJS:B(e.supportedCompression,rZ.Base64)?rZ.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.He?this.He:"identified_only"}),null==(r=this.siteApps)||r.onRemoteConfig(e),null==(n=this.sessionRecording)||n.onRemoteConfig(e),null==(i=this.autocapture)||i.onRemoteConfig(e),null==(s=this.heatmaps)||s.onRemoteConfig(e),this.surveys.onRemoteConfig(e),this.logs.onRemoteConfig(e),this.conversations.onRemoteConfig(e),null==(o=this.productTours)||o.onRemoteConfig(e),null==(a=this.webVitalsAutocapture)||a.onRemoteConfig(e),null==(c=this.exceptionObserver)||c.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(u=this.deadClicksAutocapture)||u.onRemoteConfig(e)):(tE.info("document not ready yet, trying again in 500 milliseconds..."),setTimeout(()=>{this.Ni(e)},500))}Ze(){try{this.config.loaded(this)}catch(e){tE.critical("`loaded` function failed",e)}if(this.er(),this.config.internal_or_test_user_hostname&&null!=I&&I.hostname){var e=I.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.rr()},1),this.sr=new iy(this),this.sr.load()}er(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Je)||e.enable())}_dom_loaded(){this.is_capturing()&&tM(this.__request_queue,e=>this.Ke(e)),this.__request_queue=[],this.er()}_handle_unload(){var e,t;this.surveys.handlePageUnload(),this.config.request_batching?(this.nr()&&this.capture("$pageleave"),null==(e=this.Je)||e.unload(),null==(t=this.Ye)||t.unload()):this.nr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(iB?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=nk(e.url,{ip:+!!this.config.ip}),e.headers=L({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
1(e=>{var t,r,n,i=L({},e);i.timeout=i.timeout||6e4,i.url=nk(i.url,{_:(new Date).getTime().toString(),ver:P.LIB_VERSION,compression:i.compression});var s=null!=(t=i.transport)?t:"fetch",o=nE.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),a=null!=(r=null==(n=tU(o,e=>e.transport===s))?void 0:n.method)?r:o[0].method;if(!a)throw Error("No available transport method");a(i)})(L({},e,{callback:t=>{var r,n;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(r=(n=this.config).on_request_error)||r.call(n,t)),null==e.callback||e.callback(t)}}))))}Ke(e){this.Ye?this.Ye.retriableRequest(e):this._send_request(e)}_execute_array(e){i$++;try{var t,r=[],n=[],i=[];tM(e,e=>{e&&(t=e[0],Y(t)?i.push(e):J(e)?e.call(this):Y(e)&&"alias"===t?r.push(e):Y(e)&&-1!==t.indexOf("capture")&&J(this[t])?i.push(e):n.push(e))});var s=function(e,t){tM(e,function(e){if(Y(e[0])){var r=t;tA(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(r,this),s(n,this),s(i,this)}finally{i$--}}Qe(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){if(i$>0&&Y(e)&&Q(e[0])){var t=iW.prototype[e[0]];J(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,r){var n;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Je){if(this.is_capturing())if(!X(e)&&Q(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(i&&!this.config.__preview_capture_bot_pageviews)){var s=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==s||!s.isRateLimited){null!=t&&t.$current_url&&!Q(null==t?void 0:t.$current_url)&&(tE.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),"$exception"!==e||null!=r&&r.ft||tE.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,a=(null==r?void 0:r.timestamp)||o,c=rm(),u={uuid:c,event:e,properties:this.calculateEventProperties(e,t||{},a,c)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&i&&(u.event="$bot_pageview",u.properties.$browser_type="bot"),s&&(u.properties.$lib_rate_limit_remaining_tokens=s.remainingTokens),(null==r?void 0:r.$set)&&(u.$set=null==r?void 0:r.$set);var l,h="$groupidentify"!==e,p=this.ar(null==r?void 0:r.$set_once,h);if(p&&(u.$set_once=p),(d=u,f=null!=r&&r._noTruncate?null:this.config.properties_string_max_length,g=e=>Q(e)&&!et(f)?e.slice(0,f):e,v=new Set,u=function e(t,r){var n;return t!==Object(t)?g?g(t,r):t:v.has(t)?void 0:(v.add(t),Y(t)?(n=[],tM(t,t=>{n.push(e(t))})):(n={},tA(t,(t,r)=>{v.has(t)||(n[r]=e(t,r))})),n)}(d)).timestamp=a,X(null==r?void 0:r.timestamp)||(u.properties.$event_time_override_provided=!0,u.properties.$event_time_override_system_time=o),e===n8.DISMISSED||e===n8.SENT){var d,f,g,v,m,_,y,b=null==t?void 0:t[n9.SURVEY_ID],w=null==t?void 0:t[n9.SURVEY_ITERATION];l={id:b,current_iteration:w},localStorage.getItem(ir(l))||localStorage.setItem(ir(l),"true"),u.$set=L({},u.$set,{[(m={id:b,current_iteration:w},y="$survey_"+(_=e===n8.SENT?"responded":"dismissed")+"/"+m.id,m.current_iteration&&m.current_iteration>0&&(y="$survey_"+_+"/"+m.id+"/"+m.current_iteration),y)]:!0})}else e===n8.SHOWN&&(u.$set=L({},u.$set,{[n9.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));var k=L({},u.properties.$set,u.$set);if(K(k)||this.setPersonPropertiesForFlags(k),!er(this.config.before_send)){var S=this.lr(u);if(!S)return;u=S}this.Tt.emit("eventCaptured",u);var x={method:"POST",url:null!=(n=null==r?void 0:r._url)?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:u,compression:"best-available",batchKey:null==r?void 0:r._batchKey};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Ke(x):this.Je.enqueue(x),u}tE.critical("This capture call is ignored due to client rate limiting.")}}else tE.error("No event name provided to posthog.capture")}else tE.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,r,n,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;var s,o=i?void 0:this.persistence.remove_event_timer(e),a=L({},t);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),"$snapshot"===e){var c=L({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=c.distinct_id,(!Q(a.distinct_id)&&!en(a.distinct_id)||ee(a.distinct_id))&&tE.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var u,l=function(e,t){if(!A)return{};var r,n,i=e?tP([],nF,t||[]):[],[s,o]=function(e){for(var t=0;t<e7.length;t++){var[r,n]=e7[t],i=r.exec(e),s=i&&(J(n)?n(i,e):n);if(s)return s}return["",""]}(A);return tT(tN({$os:s,$os_version:o,$browser:e6(A,navigator.vendor),$device:te(A),$device_type:(n=te(A))===ew||n===eb||"Kobo"===n||"Kindle Fire"===n||n===eK?ey:n===ej||n===eq||n===eB||n===eY?"Console":n===eS?"Wearable":n?em:"Desktop",$timezone:nW(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:rq(null==I?void 0:I.href,i,nL),$host:null==I?void 0:I.host,$pathname:null==I?void 0:I.pathname,$raw_user_agent:A.length>1e3?A.substring(0,997)+"...":A,$browser_version:e9(A,navigator.vendor),$browser_language:nB(),$browser_language_prefix:"string"==typeof(r=nB())?r.split("-")[0]:void 0,$screen_height:null==b?void 0:b.screen.height,$screen_width:null==b?void 0:b.screen.width,$viewport_height:null==b?void 0:b.innerHe
1ight,$viewport_width:null==b?void 0:b.innerWidth,$lib:"web",$lib_version:P.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:p}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());a.$session_id=h,a.$window_id=p}this.sessionPropsManager&&tT(a,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&tT(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=null==(s=this.Ye)?void 0:s.length}catch(e){a.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===iR.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),u="$pageview"!==e||i?"$pageleave"!==e||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,n),a=tT(a,u),"$pageview"===e&&C&&(a.title=C.title),!X(o)){var d=r.getTime()-o;a.$duration=parseFloat((d/1e3).toFixed(3))}A&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=tT({},l,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),Y(this.config.property_denylist)?tA(this.config.property_denylist,function(e){delete a[e]}):tE.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var f=this.config.sanitize_properties;f&&(tE.error("sanitize_properties is deprecated. Use before_send instead"),a=f(a,e));var g=this.ur();return a.$process_person_profile=g,g&&!i&&this.hr("_calculate_event_properties"),a}ar(e,t){if(void 0===t&&(t=!0),!this.persistence||!this.ur()||this.Ne)return e;var r,n=tT({},this.persistence.get_initial_props(),(null==(r=this.sessionPropsManager)?void 0:r.getSetOnceProps())||{},e||{}),i=this.config.sanitize_properties;return i&&(tE.error("sanitize_properties is deprecated. Use before_send instead"),n=i(n,"$set_once")),t&&(this.Ne=!0),K(n)?void 0:n}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}dr(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){return this.featureFlags.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){return this.featureFlags.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateFlags(e,t,r){var n=null!=r&&r.merge?this.featureFlags.getFlagVariants():{},i=null!=r&&r.merge?this.featureFlags.getFlagPayloads():{},s=L({},n,e),o=L({},i,t),a={};for(var[c,u]of Object.entries(s)){var l="string"==typeof u;a[c]={key:c,enabled:!!l||!!u,variant:l?u:void 0,reason:void 0,metadata:X(null==o?void 0:o[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.featureFlags.receivedFeatureFlags({flags:a})}updateEarlyAccessFeatureEnrollment(e,t,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,r)}on(e,t){return this.Tt.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,r;return null!=(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=is),this.surveys.displaySurvey(e,t)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,r){if(!this.__loaded||!this.persistence)return tE.uninitializedWarning("posthog.identify");if(en(e)&&(e=e.toString(),tE.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))tE.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
1ot a hardcoded string.');else if(e!==ru){if(this.hr("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(tz)&&(this.unregister(tz),this.register({distinct_id:e}));var i="anonymous"===(this.persistence.get_property(rt)||"anonymous");e!==n&&i?(this.persistence.set_property(rt,"identified"),this.setPersonPropertiesForFlags(L({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Be=nI(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(t7))}}else tE.critical('The string "'+ru+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else tE.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.hr("posthog.setPersonProperties")){var r=nI(this.get_distinct_id(),e,t);this.Be!==r?(this.setPersonPropertiesForFlags(L({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Be=r):tE.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,r){if(e&&t){var n=this.getGroups();n[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:L({},n,{[e]:t})}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),this.setGroupPropertiesForFlags({[e]:r})),n[e]===t||r||this.reloadFeatureFlags()}else tE.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.hr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){if(tE.info("reset"),!this.__loaded)return tE.uninitializedWarning("posthog.reset");var t,r,n,i,s,o=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(r=this.sessionPersistence)||r.clear(),this.surveys.reset(),null==(n=this.sr)||n.stop(),this.featureFlags.reset(),null==(i=this.persistence)||i.set_property(rt,"anonymous"),null==(s=this.sessionManager)||s.resetSessionId(),this.Be=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:ru,$device_id:null},"");else{var a=this.config.get_device_id(rm());this.register_once({distinct_id:a,$device_id:e?a:o},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&r){var i,s=null!=(i=e.timestampLookBack)?i:10;if(!r)return n;n+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-s,0)}return n}alias(e,t){return e===this.get_property(tq)?(tE.critical("Attempting to create alias for existing People user - aborting."),-2):this.hr("posthog.alias")?(X(t)&&(t=this.get_distinct_id()),e!==t?(this.dr(tz,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(tE.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=L({},this.config);if(Z(e)){tT(this.config,iz(e));var r,n,i,s,o,a,c,u,l=this.Ve();null==(r=this.persistence)||r.update_config(this.config,t,l),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new n5(L({},this.config,{persistence:"sessionStorage"}),l);var h=this.qe(this.config.debug);es(h)&&(this.config.debug=h),es(this.config.debug)&&(this.config.debug?(P.DEBUG=!0,rS.O()&&rS.D("ph_debug","true"),tE.info("set_config",{config:e,oldConfig:t,newConfig:L({},this.config)})):(P.DEBUG=!1,rS.O()&&rS.L("ph_debug"))),null==(n=this.exceptionObserver)||n.onConfigChange(),null==(i=this.sessionRecording)||i.startIfEnabledOrStop(),null==(s=this.autocapture)||s.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),null==(a=this.exceptionObserver)||a.startIfEnabledOrStop(),null==(c=this.deadClicksAutocapture)||
1c.startIfEnabledOrStop(),this.surveys.loadIfEnabled(),this.vr(),null==(u=this.externalIntegrations)||u.startIfEnabledOrStop()}}startSessionRecording(e){var t,r,n,i,s,o=!0===e,a={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(a).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),a.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),a.linked_flag&&(null==(n=this.sessionRecording)||n.overrideLinkedFlag()),a.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),a.event_trigger&&(null==(s=this.sessionRecording)||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){var r=Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(L({},n,t))}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!=(e=this.config.name)?e:ij;return t!==ij&&(t=ij+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(rt))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(rt))}ur(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&K(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[tz])&&(null==(t=this.persistence)||null==(t=t.props)||!t[ra]))}nr(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.ur()||this.hr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.hr("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}hr(e){return"never"===this.config.person_profiles?(tE.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.dr(ra,!0),!0)}Ve(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}vr(){var e,t,r,n,i=this.Ve();return(null==(e=this.persistence)?void 0:e.Dt)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.Dt)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t;if("always"!==this.config.cookieless_mode){if("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()){this.reset(!0),null==(n=this.sessionManager)||n.destroy(),null==(i=this.pageViewManager)||i.destroy(),this.sessionManager=new iI(this),this.pageViewManager=new rJ(this),this.persistence&&(this.sessionPropsManager=new iE(this,this.sessionManager,this.persistence));var r,n,i,s,o,a,c=null!=(s=null==(o=this.config.__extensionClasses)?void 0:o.sessionRecording)?s:null==(a=iW.__defaultExtensionClasses)?void 0:a.sessionRecording;c&&(this.sessionRecording=new c(this),this.sessionRecording.startIfEnabledOrStop())}this.consent.optInOut(!0),this.vr(),this.er(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(X(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!=(r=null==e?void 0:e.captureEventName)?r:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.rr()}
vendor: 5,641 bytes, line 1
1else tE.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t,r;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.vr(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:ru,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),null==(t=this.pageViewManager)||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(r=this.sessionRecording)||r.stopRecording(),this.sessionRecording=void 0,this.rr())):tE.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===rR.GRANTED?"granted":e===rR.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.vr()}_is_bot(){return E?iO(E,this.config.custom_blocked_useragents):void 0}rr(){C&&("visible"===C.visibilityState?this.Ue||(this.Ue=!0,this.capture("$pageview",{title:C.title},{send_instantly:!0}),this.ze&&(C.removeEventListener("visibilitychange",this.ze),this.ze=null)):this.ze||(this.ze=this.rr.bind(this),tj(C,"visibilitychange",this.ze)))}debug(e){!1===e?(null==b||b.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==b||b.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Rt(){var e,t,r,n,i=this.We||{};return"advanced_disable_flags"in i?!!i.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(tE.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(t="advanced_disable_decide",r=(e="advanced_disable_flags")in i&&!er(i[e]),n=t in i&&!er(i[t]),r?i[e]:!!n&&(tE&&tE.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),i[t]))}lr(e){if(er(this.config.before_send))return e;var t=Y(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var n of t){if(er(r=n(r))){var i="Event '"+e.event+"' was rejected in beforeSend function";return eo(e.event)?tE.warn(i+". This can cause unexpected behavior."):tE.info(i),null}r.properties&&!K(r.properties)||tE.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return null==(e=this.pageViewManager.it)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}qe(e){var t=es(e)&&!e,r=rS.O()&&"true"===rS.A("ph_debug");return!t&&(!!r||e)}}function iH(e){return e instanceof Element&&(e.id===rc||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function iG(e){return!!e&&1===e.nodeType}function iY(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function iJ(e){return!!e&&3===e.nodeType}function iZ(e){return!!e&&11===e.nodeType}function iK(e){return e?q(e).split(/\s+/):[]}function iX(e){var t=null==b?void 0:b.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function iQ(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return iK(t)}function i0(e){return er(e)?null:q(e).split(/(\s+)/).filter(e=>sc(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function i1(e){var t="";return se(e)&&!st(e)&&e.childNodes&&e.childNodes.length&&tA(e.childNodes,function(e){var r;iJ(e)&&e.textContent&&(t+=null!=(r=i0(e.textContent))?r:"")}),q(t)}function i2(e){var t;return X(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}iW.__defaultExtensionClasses={},function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=tL(e.prototype[t[r]])}(iW,["identify"]);var i3=["a","button","form","input","select","textarea","label"];function i5(e,t){if(X(t))return!0;var r,n=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function i4(e){var t=e.parentNode;return!(!t||!iG(t))&&t}var i6=["next","previous","prev",">","<"],i8=[".ph-no-rageclick",".ph-no-capture"],i9=e=>!e||iY(e,"html")||!iG(e),i7=(e,t)=>{if(!b||i9(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!iY(i,"body");)if(iZ(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var s=i4(i);if(!s)break;if(t||i3.indexOf(s.tagName.toLowerCase())>-1)r=!0;else{var o=b.getComputedStyle(s);o&&"pointer"===o.getPropertyValue("cursor")&&(r=!0)}n.push(s),i=s}return{parentIsUsefulElement:r,targetElementList:n}};function se(e){for(var t=e;t.parentNode&&!iY(t,"body");t=t.parentNode){var r=iQ(t);if(B(r,"ph-sensitive")||B(r,"ph-no-capture"))return!1}if(B(iQ(e),"ph-include"))return!0;var n=e.type||"";if(Q(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}
1var i=e.name||e.id||"";return!(Q(i)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function st(e){return!!(iY(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||iY(e,"select")||iY(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var sr="(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})",sn=RegExp("^(?:"+sr+")$"),si=new RegExp(sr),ss="\\d{3}-?\\d{2}-?\\d{4}",so=RegExp("^("+ss+")$"),sa=RegExp("("+ss+")");function sc(e,t){return void 0===t&&(t=!0),!(er(e)||Q(e)&&(e=q(e),(t?sn:si).test((e||"").replace(/[- ]/g,""))||(t?so:sa).test(e)))&&!0}function su(e){var t=i1(e);return sc(t=(t+" "+function e(t){var r="";return t&&t.childNodes&&t.childNodes.length&&tA(t.childNodes,function(t){var n;if(t&&"span"===(null==(n=t.tagName)?void 0:n.toLowerCase()))try{var i=i1(t);r=(r+" "+i).trim(),t.childNodes&&t.childNodes.length&&(r=(r+" "+e(t)).trim())}catch(e){tE.error("[AutoCapture]",e)}}),r}(e)).trim())?t:""}function sl(e){return e.replace(/"|\\"/g,'\\"')}class sh{constructor(e){this.disabled=!1===e;var t=Z(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,r){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<this.thresholdPx&&r-n.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var sp="$copy_autocapture",sd=tC("[AutoCapture]");function sf(e,t){return t.length>e?t.slice(0,e)+"...":t}var sg=tC("[ExceptionAutocapture]");function sv(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return J(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}var sm=tC("[TracingHeaders]"),s_=tC("[Web Vitals]");tC("[SessionRecording]");var sy="[SessionRecording]",sb=tC(sy),sw=tC("[Heatmaps]");function sk(e){return Z(e)&&"clientX"in e&&"clientY"in e&&en(e.clientX)&&en(e.clientY)}var sS=tC("[Product Tours]"),sx="ph_product_tours",sE=["$set_once","$set"],sC=tC("[SiteApps]"),sI=L({},{sessionRecording:class{get started(){var e;return!(null==(e=this.cr)||!e.isStarted)}get status(){return this.cr?this.cr.status:this.pr&&!this._r?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.pr=!1,this.gr=!1,this.mr=void 0,this._instance=e,!this._instance.sessionManager)throw sb.error("started without valid sessionManager"),Error(sy+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw Error(sy+' cannot be used with cookieless_mode="always"')}get _r(){var e,t=!(null==(e=this._instance.get_property(t0))||!e.enabled),r=!this._instance.config.disable_session_recording,n=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return b&&t&&r&&!n}startIfEnabledOrStop(e){var t;if(!this._r||null==(t=this.cr)||!t.isStarted){var r=!X(Object.assign)&&!X(Array.from);this._r&&r?(this.br(e),sb.info("starting")):this.stopRecording()}}br(e){var t,r,n;this._r&&(null!=T&&null!=(t=T.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=T.__PosthogExtensions__)&&r.initSessionRecording?this.yr(e):null==(n=T.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.wr,t=>{if(t)return sb.error("could not load recorder",t);this.yr(e)}))}stopRecording(){var e,t;null==(e=this.mr)||e.call(this),this.mr=void 0,null==(t=this.cr)||t.stop()}$r(){var e;null==(e=this._instance.persistence)||e.unregister(t2)}Er(e){if(this._instance.persistence){var t,r,n=this._instance.persistence,i=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=null==t?void 0:t.sampleRate,i=er(r)?null:parseFloat(r);er(i)&&this.$r();var s=null==t?void 0:t.minimumDurationMilliseconds;n.register({[t0]:L({cache_timestamp:Date.now(),enabled:!!t},t,{networkPayloadCapture:L({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:i,minimumDurationMilliseconds:X(s)?null:s,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};i(),null==(t=this.mr)||t.call(this),this.mr=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.gr=!1,this.Er(e),this.pr=!0,this.startIfEnabledOrStop()):this.pr=!0:sb.info("skipping remote config with no sessionRecording",e)}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.cr)&&r.log?this.cr.log(e,t):sb.warn("log called before recorder was ready")}get wr(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(t0);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Sr(){var e,t=this._instance.get_property(t0);if(!t)return!1;var r=null!=(e=("object"==typeof t?t:JSON.parse(t)).cache_timestamp)?e:Date.now();return Date.now()-r<=3e5}yr(e){var t,r;if(null==(t=T.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.cr||(this.cr=null==(r=T.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this.cr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.Sr()?this.cr.start(e):this.gr||(this.gr=!0,sb.info("persisted remote config is stale, requesting fresh config before starting"),new iy(this._instance).load())}onRRwebEmit(e){var t;null==(t=this.cr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.cr||null==(t=this._instance.persistence)||t.register({$replay_override_linked_flag:!0}),null==(e=this.cr)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.cr||null==(t=this._instance.persistence)||t.register({$replay_override_sampling:!0}),null==(e=this.cr)||e.overrideSampling()}overrideTrigger(e){var t,r;this.cr||null==(r=this._instance.persistence)||r.register({["url"===e?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}
1),null==(t=this.cr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.cr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.cr)||!r.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.kr=!1,this.Pr=null,this.Tr=!1,this.instance=e,this.rageclicks=new sh(e.config.rageclick),this.Ir=null}get N(){var e,t,r=Z(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=null==(e=r.url_allowlist)?void 0:e.map(e=>new RegExp(e)),r.url_ignorelist=null==(t=r.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),r}Cr(){if(this.isBrowserSupported()){if(b&&C){var e=e=>{e=e||(null==b?void 0:b.event);try{this.Rr(e)}catch(e){sd.error("Failed to capture event",e)}};if(tj(C,"submit",e,{capture:!0}),tj(C,"change",e,{capture:!0}),tj(C,"click",e,{capture:!0}),this.N.capture_copied_text){var t=e=>{e=e||(null==b?void 0:b.event),this.Rr(e,sp)};tj(C,"copy",t,{capture:!0}),tj(C,"cut",t,{capture:!0})}}}else sd.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.kr&&(this.Cr(),this.kr=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Tr=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[tW]:!!e.autocapture_opt_out}),this.Pr=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Ir=e}getElementSelectors(e){var t,r=[];return null==(t=this.Ir)||t.forEach(t=>{var n=null==C?void 0:C.querySelectorAll(t);null==n||n.forEach(n=>{e===n&&r.push(t)})}),r}get isEnabled(){var e,t,r=null==(e=this.instance.persistence)?void 0:e.props[tW];if(et(this.Pr)&&!es(r)&&!this.instance.Rt())return!1;var n=null!=(t=this.Pr)?t:!!r;return!!this.instance.config.autocapture&&!n}Rr(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,n=i2(e);iJ(n)&&(n=n.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&function(e,t){if(!b||i9(e)||(es(t)?(r=!!t&&i8,n=void 0):(r=null!=(i=null==t?void 0:t.css_selector_ignorelist)?i:i8,n=null==t?void 0:t.content_ignorelist),!1===r))return!1;var r,n,i,{targetElementList:s}=i7(e,!1);return!function(e,t){var r;if(!1===e||X(e))return!1;if(!0===e)r=i6;else{if(!Y(e))return!1;if(e.length>10)return tE.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:n}=e;return r.some(e=>t.includes(e)||n.includes(e))})}(n,s.map(e=>{var t;return{safeText:i1(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!i5(s,r)}(n,this.instance.config.rageclick)&&this.Rr(e,"$rageclick");var i=t===sp;if(n&&function(e,t,r,n,i){if(void 0===r&&(r=void 0),!b||i9(e)||null!=(s=r)&&s.url_allowlist&&!iX(r.url_allowlist)||null!=(o=r)&&o.url_ignorelist&&iX(r.url_ignorelist))return!1;if(null!=(a=r)&&a.dom_event_allowlist){var s,o,a,c,u=r.dom_event_allowlist;if(u&&!u.some(e=>t.type===e))return!1}var{parentIsUsefulElement:l,targetElementList:h}=i7(e,n);if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(X(r))return!0;var n,i=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var s of e)if(n=i(s))return n.v;return!1}(h,r)||!i5(h,null==(c=r)?void 0:c.css_selector_allowlist))return!1;var p=b.getComputedStyle(e);if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===t.type)return!0;var d=e.tagName.toLowerCase();switch(d){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return l?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(i3.indexOf(d)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.N,i,i?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:o}=function(e,t){for(var r,n,{e:i,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:a,elementsC
1hainAsString:c}=t,u=[e],l=e;l.parentNode&&!iY(l,"body");)iZ(l.parentNode)?(u.push(l.parentNode.host),l=l.parentNode.host):(u.push(l.parentNode),l=l.parentNode);var h,p=[],d={},f=!1,g=!1;if(tA(u,e=>{var t=se(e);"a"===e.tagName.toLowerCase()&&(f=e.getAttribute("href"),f=t&&f&&sc(f)&&f),B(iQ(e),"ph-no-capture")&&(g=!0),p.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),s={tag_name:i};i3.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?s.$el_text=sf(1024,su(e)):s.$el_text=sf(1024,i1(e)));var o=iQ(e);o.length>0&&(s.classes=o.filter(function(e){return""!==e})),tA(e.attributes,function(r){var i;if((!st(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&sc(r.value)&&(!Q(i=r.name)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var o=r.value;"class"===r.name&&(o=iK(o).join(" ")),s["attr__"+r.name]=sf(1024,o)}});for(var a=1,c=1,u=e;u=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!iG(t))return t}(u);)a++,u.tagName===e.tagName&&c++;return s.nth_child=a,s.nth_of_type=c,s}(e,s,o,a)),tT(d,function(e){if(!se(e))return{};var t={};return tA(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&sc(n)&&(t[r]=n)}}),t}(e))}),g)return{props:{},explicitNoCapture:g};if(o||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?p[0].$el_text=su(e):p[0].$el_text=i1(e)),f){p[0].attr__href=f;var v,m,_=null==(v=rU(f))?void 0:v.host,y=null==b||null==(m=b.location)?void 0:m.host;_&&y&&_!==y&&(h=f)}return{props:tT({$event_type:i.type,$ce_version:1},c?{}:{$elements:p},{$elements_chain:p.map(e=>{var t,r,n,i={text:null==(r=e.$el_text)?void 0:r.slice(0,400),tag_name:e.tag_name,href:null==(n=e.attr__href)?void 0:n.slice(0,2048),attr_class:(t=e.attr__class)?Y(t)?t:iK(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return tF(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return i.attributes[t]=r}),i}).map(e=>{var t,r,n="";if(e.tag_name&&(n+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))n+="."+i.replace(/"/g,"");var s=L({},e.text?{text:e.text}:{},{"nth-child":null!=(t=e.nth_child)?t:0,"nth-of-type":null!=(r=e.nth_of_type)?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return tF(s).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return o[sl(t.toString())]=sl(r.toString())}),n+=":",n+=tF(o).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")}).join(";")},null!=(r=p[0])&&r.$el_text?{$el_text:null==(n=p[0])?void 0:n.$el_text}:{},h&&"click"===i.type?{$external_click_url:h}:{},d)}}(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.N.element_attribute_ignorelist,elementsChainAsString:this.Tr});if(o)return!1;var a=this.getElementSelectors(n);if(a&&a.length>0&&(s.$element_selectors=a),t===sp){var c,u=i0(null==b||null==(c=b.getSelection())?void 0:c.toString()),l=e.type||"clipboard";if(!u)return!1;s.$selected_content=u,s.$copy_type=l}return this.instance.capture(t,s),!0}}}isBrowserSupported(){return J(null==C?void 0:C.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Fr=(null==b||null==(t=b.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(tE.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Or&&this.Or(),this.Or=void 0,tE.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(b&&b.history){var r=this;null!=(e=b.history.pushState)&&e.__posthog_wrapped__||sv(b.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r.Mr("pushState")}),null!=(t=b.history.replaceState)&&t.__posthog_wrapped__||sv(b.history,"replaceState",e=>function(t,n,i){e.call(this,t,n,i),r.Mr("replaceState")}),this.Ar()}}Mr(e){try{var t,r=null==b||null==(t=b.location)?void 0:t.pathname;if(!r)return;r!==this.Fr&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.Fr=r}catch(t){tE.error("Error capturing "+e+" pageview",t)}}
1Ar(){if(!this.Or){var e=()=>{this.Mr("popstate")};tj(b,"popstate",e),this.Or=()=>{b&&b.removeEventListener("popstate",e)}}}},heatmaps:class{constructor(e){var t;this.jr=!1,this.kr=!1,this.Dr=null,this.instance=e,this.jr=!(null==(t=this.instance.persistence)||!t.props[tH]),this.rageclicks=new sh(e.config.rageclick)}get flushIntervalMilliseconds(){var e=5e3;return Z(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return er(this.instance.config.capture_heatmaps)?er(this.instance.config.enable_heatmaps)?this.jr:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this.kr||(sw.info("starting..."),this.Lr(),this.Nr());else{var e;clearInterval(null!=(e=this.Dr)?e:void 0),this.Ur(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[tH]:t}),this.jr=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}zr(e){this.Hr(e.originalEvent,"deadclick")}Nr(){this.Dr&&clearInterval(this.Dr),this.Dr="visible"===(null==C?void 0:C.visibilityState)?setInterval(this.te.bind(this),this.flushIntervalMilliseconds):null}Lr(){b&&C&&(this.Br=this.te.bind(this),tj(b,"beforeunload",this.Br),this.qr=e=>this.Hr(e||(null==b?void 0:b.event)),tj(C,"click",this.qr,{capture:!0}),this.Wr=e=>this.Gr(e||(null==b?void 0:b.event)),tj(C,"mousemove",this.Wr,{capture:!0}),this.Vr=new rF(this.instance,rT,this.zr.bind(this)),this.Vr.startIfEnabledOrStop(),this.Jr=this.Nr.bind(this),tj(C,"visibilitychange",this.Jr),this.kr=!0)}Ur(){var e;b&&C&&(this.Br&&b.removeEventListener("beforeunload",this.Br),this.qr&&C.removeEventListener("click",this.qr,{capture:!0}),this.Wr&&C.removeEventListener("mousemove",this.Wr,{capture:!0}),this.Jr&&C.removeEventListener("visibilitychange",this.Jr),clearTimeout(this.Kr),null==(e=this.Vr)||e.stop(),this.kr=!1)}Yr(e,t){var r=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),s=function(e,t,r){for(var n=e;n&&iG(n)&&!iY(n,"body")&&n!==r;){if(B(t,null==b?void 0:b.getComputedStyle(n).position))return!0;n=i4(n)}return!1}(i2(e),["fixed","sticky"],i);return{x:e.clientX+(s?0:n),y:e.clientY+(s?0:r),target_fixed:s,type:t}}Hr(e,t){var r;if(void 0===t&&(t="click"),!iH(e.target)&&sk(e)){var n=this.Yr(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Xr(L({},n,{type:"rageclick"})),this.Xr(n)}}Gr(e){!iH(e.target)&&sk(e)&&(clearTimeout(this.Kr),this.Kr=setTimeout(()=>{this.Xr(this.Yr(e,"mousemove"))},500))}Xr(e){if(b){var t=b.location.href,r=this.instance.config.mask_personal_data_properties,n=this.instance.config.custom_personal_data_properties,i=rq(t,r?tP([],nF,n||[]):[],nL);this.R=this.R||{},this.R[i]||(this.R[i]=[]),this.R[i].push(e)}}te(){this.R&&!K(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:rF,webVitalsAutocapture:class{constructor(e){var t;this.jr=!1,this.kr=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Qr=()=>{clearTimeout(this.Zr),0!==this.R.metrics.length&&(this._instance.capture("$web_vitals",this.R.metrics.reduce((e,t)=>L({},e,{["$web_vitals_"+t.name+"_event"]:L({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ts=e=>{var t,r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(X(r))s_.error("Could not read session ID. Dropping metrics!");else{this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.es();X(n)||(er(null==e?void 0:e.name)||er(null==e?void 0:e.value)?s_.error("Invalid metric received",e):this.rs&&e.value>=this.rs?s_.error("Ignoring metric with value >= "+this.rs,e):(this.R.url!==n&&(this.Qr(),this.Zr=setTimeout(this.Qr,this.flushToCaptureTimeoutMs)),X(this.R.url)&&(this.R.url=n),this.R.firstMetricTimestamp=X(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.R.metrics.push(L({},e,{$current_url:n,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.R.metrics.length===this.allowedMetrics.length&&this.Qr()))}},this.ss=()=>
1{if(!this.kr){var e,t,r,n,i=T.__PosthogExtensions__;X(i)||X(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:r,onINP:n}=i.postHogWebVitalsCallbacks),e&&t&&r&&n?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.ts.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.ts.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.ts.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.ts.bind(this)),this.kr=!0):s_.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.jr=!(null==(t=this._instance.persistence)||!t.props[tZ]),this.startIfEnabled()}get allowedMetrics(){var e,t,r=Z(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return er(r)?(null==(t=this._instance.persistence)?void 0:t.props[tQ])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(Z(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Z(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return null!=e&&e}get rs(){var e=Z(this._instance.config.capture_performance)&&en(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:9e5;return 0<e&&e<=6e4?9e5:e}get isEnabled(){var e=null==I?void 0:I.protocol;if("http:"!==e&&"https:"!==e)return s_.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Z(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:es(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return es(t)?t:this.jr}startIfEnabled(){this.isEnabled&&!this.kr&&(s_.info("enabled, starting..."),this.V(this.ss))}onRemoteConfig(e){if("capturePerformance"in e){var t=Z(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=Z(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[tZ]:t}),this._instance.persistence.register({[tQ]:r})),this.jr=t,this.startIfEnabled()}}V(e){var t,r;if(null!=(t=T.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks)e();else{var n=this.useAttribution?"web-vitals-with-attribution":"web-vitals";null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,n,t=>{t?s_.error("failed to load script",t):e()})}}es(){var e=b?b.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties;return rq(e,t?tP([],nF,r||[]):[],nL)}s_.error("Could not determine current URL")}}},{exceptionObserver:class{constructor(e){var t,r,n;this.ss=()=>{var e;if(b&&this.isEnabled&&null!=(e=T.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=T.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=T.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=T.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ns&&this.N.capture_unhandled_errors&&(this.ns=t(this.captureException.bind(this))),!this.os&&this.N.capture_unhandled_rejections&&(this.os=r(this.captureException.bind(this))),!this.ls&&this.N.capture_console_errors&&(this.ls=n(this.captureException.bind(this)))}catch(e){sg.error("failed to start",e),this.us()}}},this._instance=e,this.hs=!(null==(t=this._instance.persistence)||!t.props[tG]),this.ds=new ed({refillRate:null!=(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)?r:1,bucketSize:null!=(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)?n:10,refillInterval:1e4,h:sg}),this.N=this.vs(),this.startIfEnabledOrStop()}vs(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Z(e)?t=L({},t,e):(X(e)?this.hs:e)&&(t=L({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.N.capture_console_errors||this.N.capture_unhandled_errors||this.N.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(sg.info("enabled"),this.us(),this.V(this.ss)):this.us()}V(e){var t,r;
1null!=(t=T.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return sg.error("failed to load script",t);e()})}us(){var e,t,r;null==(e=this.ns)||e.call(this),this.ns=void 0,null==(t=this.os)||t.call(this),this.os=void 0,null==(r=this.ls)||r.call(this),this.ls=void 0}onRemoteConfig(e){if("autocaptureExceptions"in e){var t=e.autocaptureExceptions;this.hs=!!t,this._instance.persistence&&this._instance.persistence.register({[tG]:this.hs}),this.N=this.vs(),this.startIfEnabledOrStop()}}onConfigChange(){this.N=this.vs()}captureException(e){var t,r,n=null!=(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)?t:"Exception";this.ds.consumeRateLimit(n)?sg.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}},{productTours:class{constructor(e){this.cs=null,this.fs=null,this._instance=e}onRemoteConfig(e){"productTours"in e&&(this._instance.persistence&&this._instance.persistence.register({[tX]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.cs||(e=this._instance).config.disable_product_tours||null==(t=e.persistence)||!t.get_property(tX)||this.V(()=>this.ps())}V(e){var t,r;null!=(t=T.__PosthogExtensions__)&&t.generateProductTours?e():null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"product-tours",t=>{t?sS.error("Could not load product tours script",t):e()})}ps(){var e;!this.cs&&null!=(e=T.__PosthogExtensions__)&&e.generateProductTours&&(this.cs=T.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!Y(this.fs)||t){var r=this._instance.persistence;if(r){var n=r.props[sx];if(Y(n)&&!t)return this.fs=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{var n=t.statusCode;if(200!==n||!t.json){var i="Product Tours API could not be loaded, status: "+n;return sS.error(i),void e([],{isLoaded:!1,error:i})}var s=Y(t.json.product_tours)?t.json.product_tours:[];this.fs=s,r&&r.register({[sx]:s}),e(s,{isLoaded:!0})}})}else e(this.fs,{isLoaded:!0})}getActiveProductTours(e){er(this.cs)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.cs.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.cs)||t.showTourById(e)}previewTour(e){this.cs?this.cs.previewTour(e):this.V(()=>{var t;this.ps(),null==(t=this.cs)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.cs)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.cs)||e.nextStep()}previousStep(){var e;null==(e=this.cs)||e.previousStep()}clearCache(){var e;this.fs=null,null==(e=this._instance.persistence)||e.unregister(sx)}resetTour(e){var t;null==(t=this.cs)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.cs)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.cs)||t.cancelPendingTour(e)}}},{siteApps:class{constructor(e){this._instance=e,this._s=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}gs(e,t){if(t){var r=this.globalsForEvent(t);this._s.push(r),this._s.length>1e3&&(this._s=this._s.slice(10))}}get siteAppLoaders(){var e;return null==(e=T._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.gs.bind(this));this.bs=()=>{e(),this._s=[],this.bs=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,r,n,i,s,o,a,c={},u=this._instance.get_property("$groups")||[];for(var[l,h]of Object.entries(this._instance.get_property("$stored_group_properties")||{}))c[l]={id:u[l],type:l,properties:h};var{$set_once:p,$set:d}=e;return{event:L({},N(e,sE),{properties:L({},e.properties,d?{$set:L({},null!=(t=null==(r=e.properties)?void 0:r.$set)?t:{},d)}:{},p?{$set_once:L({},null!=(n=null==(i=e.properties)?void 0:i.$set_once)?n:{},p)}:{}),elements_chain:null!=(s=null==(o=e.properties)?void 0:o.$elements_chain)?s:"",distinct_id:null==(a=e.properties)?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(e){var t=this.apps[e.id],r=()=>{var r;!t.errored&&this._s.length&&(sC.info("Processing "+this._s.length+" events for site app with id "+e.id),this._s.forEac
1h(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.bs)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,sC.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),n&&r()};try{var{processEvent:s}=e.init({posthog:this._instance,callback:e=>{i(e)}});s&&(t.processEvent=s),n=!0}catch(t){sC.error("Error while initializing PostHog app with config id "+e.id,t),i(!1)}if(n&&t.loaded)try{r()}catch(r){sC.error("Error while processing buffered events PostHog app with config id "+e.id,r),t.errored=!0}}ys(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}ws(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var r of Object.values(this.apps))try{null==r.processEvent||r.processEvent(t)}catch(t){sC.error("Error while processing event "+e.event+" for site app "+r.id,t)}}}onRemoteConfig(e){var t,r,n,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.ys(),void this._instance.on("eventCaptured",e=>this.ws(e))):void sC.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.bs)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var s=function(e){var t;T["__$$ph_site_app_"+e]=i._instance,null==(t=T.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,a,t=>{if(t)return sC.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:o,url:a}of e.siteApps)s(o)}else sC.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},{tracingHeaders:class{constructor(e){this.xs=void 0,this.$s=void 0,this.ss=()=>{var e,t;X(this.xs)&&(null==(e=T.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),X(this.$s)&&(null==(t=T.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}V(e){var t,r;null!=(t=T.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=T.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return sm.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.V(this.ss):(null==(e=this.xs)||e.call(this),null==(t=this.$s)||t.call(this),this.xs=void 0,this.$s=void 0)}}});iW.__defaultExtensionClasses=L({},sI),(sV={}).SHOWN="product tour shown",sV.DISMISSED="product tour dismissed",sV.COMPLETED="product tour completed",sV.STEP_SHOWN="product tour step shown",sV.STEP_COMPLETED="product tour step completed",sV.BUTTON_CLICKED="product tour button clicked",sV.STEP_SELECTOR_FAILED="product tour step selector failed",sV.BANNER_CONTAINER_SELECTOR_FAILED="product tour banner container selector failed",sV.BANNER_ACTION_CLICKED="product tour banner action clicked",(sW={}).TOUR_ID="$product_tour_id",sW.TOUR_NAME="$product_tour_name",sW.TOUR_ITERATION="$product_tour_iteration",sW.TOUR_RENDER_REASON="$product_tour_render_reason",sW.TOUR_STEP_ID="$product_tour_step_id",sW.TOUR_STEP_ORDER="$product_tour_step_order",sW.TOUR_STEP_TYPE="$product_tour_step_type",sW.TOUR_DISMISS_REASON="$product_tour_dismiss_reason",sW.TOUR_BUTTON_TEXT="$product_tour_button_text",sW.TOUR_BUTTON_ACTION="$product_tour_button_action",sW.TOUR_BUTTON_LINK="$product_tour_button_link",sW.TOUR_BUTTON_TOUR_ID="$product_tour_button_tour_id",sW.TOUR_STEPS_COUNT="$product_tour_steps_count",sW.TOUR_STEP_SELECTOR="$product_tour_step_selector",sW.TOUR_STEP_SELECTOR_FOUND="$product_tour_step_selector_found",sW.TOUR_STEP_ELEMENT_TAG="$product_tour_step_element_tag",sW.TOUR_STEP_ELEMENT_ID="$product_tour_step_element_id",sW.TOUR_STEP_ELEMENT_CLASSES="$product_tour_step_element_classes",sW.TOUR_STEP_ELEMENT_TEXT="$product_tour_step_element_text",sW.TOUR_ERROR="$product_tour_error",sW.TOUR_MATCHES_COUNT="$product_tour_matches_count",sW.TOUR_FAILURE_PHASE="$product_tour_failure_phase",sW.TOUR_WAITED_FOR_ELEMENT="$product_tour_waited_for_element",sW.TOUR_WAIT_DURATION_MS="$product_tour_wait_duration_ms",sW.TOUR_BANNER_SELECTOR="$product_tour_banner_selector",sW.TOUR_LINKED_SURVEY_ID="$product_tour_linked_survey_id",sW.USE_MANUAL_SELECTOR="$use_manual_selector",sW.INFERENCE_DATA_PRESENT="$inference_data_present";var sO,sR,sM,sA,sT,sP,sF,sD,sL,sN,s$,sU,sj,sB,sq,sz,sV,sW,sH,sG=(sH=iN[ij]=new iW,function(){function e(){e.done||(e.done=!0,iB=!1,tA(iN,function(e){e._dom_loaded()}))}null!=C&&C.addEventListener?"complete"===C.readyState?e():tj(C,"DOMContentLoaded",e,{capture:!1}):b&&tE.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),sH),sY=e.i(72979);if("u"<typeof window){var sJ={hostname:""};pd={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:sJ,referrer:""},screen:{width:0,height:0},location:sJ,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else pd=window;var sZ="__mp_targeting",sK="__mp_recorder";function sX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function sQ(e,t,r,n,i,s,o){try{var a=e[s](o),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function s0(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(e){sQ(s,n,i,o,a,"next",e)}function a(e){sQ(s,n,i,o,a,"throw",e)}o(void 0)})}}function s1(e,t,r){return(s1=ot()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&s9(i,r.prototype),i}).apply(null,arguments)}function s2(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}
1function s3(){return(s3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s5(e){return(s5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s4(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s9(e,t)}function s6(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function s8(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function s9(e,t){return(s9=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s7(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function oe(e){var t="function"==typeof Map?new Map:void 0;return(oe=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s1(e,arguments,s5(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s9(r,e)})(e)}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ot=function(){return!!e})()}function or(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return sX(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sX(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function on(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function oi(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var os=Object.defineProperty,oo=function(e,t,r){var n;return n=(void 0===t?"undefined":s7(t))!=="symbol"?t+"":t,n in e?os(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},oa=Object.defineProperty,oc=function(e,t,r){var n;return n=(void 0===t?"undefined":s7(t))!=="symbol"?t+"":t,n in e?oa(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},ou=((pi=ou||{})[pi.Document=0]="Document",pi[pi.DocumentType=1]="DocumentType",pi[pi.Element=2]="Element",pi[pi.Text=3]="Text",pi[pi.CDATA=4]="CDATA",pi[pi.Comment=5]="Comment",pi),ol={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},oh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},op={};function od(e){if(op[e])return op[e];var t=globalThis[e],r=t.prototype,n=e in ol?ol[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),s=e in oh?oh[e]:void 0,o=!!(s&&s.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!globalThis.Zone)return op[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return op[e]=u}catch(e){return r}}var of={};function og(e,t,r){var n,i=e+"."+String(r);if(of[i])return of[i].call(t);var s=null==(n=Object.getOwnPropertyDescriptor(od(e),r))?void 0:n.get;return s?(of[i]=s,s.call(t)):t[r]}var ov=function(e){return og("Node",e,"childNodes")},om=function(e){return og("Node",e,"parentNode")},o_=function(e){return og("Node",e,"parentElement")},oy=function(e){return og("Node",e,"textContent")},ob=function(e){return e&&"shadowRoot"in e?og("Element",e,"shadowRoot"):null};
1function ow(e){return e.nodeType===e.ELEMENT_NODE}function ok(e){var t,r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?og("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&ob(r)===e)}function oS(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ox(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return oE(e,n)}).join("")).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}catch(e){return null}}function oE(e,t){if("styleSheet"in e){var r;try{r=ox(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?oL(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?oL(n,t):n}var oC=function(){function e(){oc(this,"idNodeMap",new Map),oc(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function oI(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,s=e.value,o=e.maskInputFn,a=s||"",c=i&&oO(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=o?o(a,t):"*".repeat(a.length)),a}function oO(e){return e.toLowerCase()}var oR="__rrweb_original__";function oM(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?oO(t):null}function oA(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var oT=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oP=/^(?:[a-z+]+:)?\/\//i,oF=/^www\..*/i,oD=/^(data:)([^,]*),(.*)/i;function oL(e,t){return(e||"").replace(oT,function(e,r,n,i,s,o){var a=n||s||o,c=r||i||"";if(!a)return e;if(oP.test(a)||oF.test(a)||oD.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,p,d=or(l);!(p=d()).done;){var f=p.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function oN(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var o$=1,oU=RegExp("[^a-z0-9-_:]");function oj(){return o$++}var oB=/^[^ \t\n\r\u000c]+/,oq=/^[, \t\n\r\u000c]+/,oz=new WeakMap;function oV(e,t){return t&&""!==t.trim()?oW(e,t):t}function oW(e,t){var r=oz.get(e);if(r||(r=e.createElement("a"),oz.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function oH(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return oV(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return oV(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(oq),!(r>=t.length);){var s=n(oB);if(","===s.slice(-1))s=oV(e,s.substring(0,s.length-1)),i.push(s);else{var o="";s=oV(e,s);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((s+o).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((s+o).trim());break}else"("===c&&(a=!0);o+=c,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return oL(n,oW(e));else if("object"===t&&"data"===r)return oV(e,n);return n}function oG(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function oY(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&oY(om(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&oY(om(e),t,r)}function oJ(e,t,r,n){var i;if(ow(e)){if(!ov(i=e).length)return!1}else{if(null===o_(e))return!1;i=o_(e)}
1try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(oY(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function oZ(e){return null==e?"":e.toLowerCase()}function oK(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,s=t.blockSelector,o=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,d=void 0===p?{}:p,f=t.maskTextFn,g=t.maskInputFn,v=t.slimDOMOptions,m=t.dataURLOptions,_=void 0===m?{}:m,y=t.inlineImages,b=void 0!==y&&y,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,x=t.onIframeLoad,E=t.iframeLoadTimeout,C=void 0===E?5e3:E,I=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,R=void 0===O?5e3:O,M=t.keepIframeSrcFn,A=void 0===M?function(){return!1}:M,T=t.newlyAddedElement,P=t.cssCaptured,F=t.needsMask,D=t.preserveWhiteSpace,L=void 0===D||D;F||(F=oJ(e,o,a,void 0===F));var N=function(e,t){var r,n,i,s,o,a,c,u,l,h,p,d=t.doc,f=t.mirror,g=t.blockClass,v=t.blockSelector,m=t.needsMask,_=t.inlineStylesheet,y=t.maskInputOptions,b=t.maskTextFn,w=t.maskInputFn,k=t.dataURLOptions,S=t.inlineImages,x=t.recordCanvas,E=t.keepIframeSrcFn,C=t.newlyAddedElement,I=t.cssCaptured,O=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(d,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:ou.Document,childNodes:[],compatMode:e.compatMode};return{type:ou.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ou.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,s=t.blockSelector,o=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,g=t.newlyAddedElement,v=t.rootId,m=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,s),_=function(e){if(s6(e,HTMLFormElement))return"form";var t=oO(e.tagName);return oU.test(t)?"div":t}(e),y={},b=e.attributes.length,w=0;w<b;w++){var k=e.attributes[w];oG(_,k.name,k.value)||(y[k.name]=oH(n,_,oO(k.name),k.value))}if("link"===_&&o){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;S&&(x=ox(S)),x&&(delete y.rel,delete y.href,y._cssText=x)}if("style"===_&&e.sheet){var E=ox(e.sheet);E&&(e.childNodes.length>1&&(E=(function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],s=0;if(n.length>1&&e&&"string"==typeof e){for(var o=oN(e,r),a=o.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=oN(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=o.split(h),d=-1;if(2===p.length)d=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)d=o.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=o.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(d=o.indexOf(h));if(p.length>=2&&l>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var g=oN(f).length;d=o.indexOf(h,g)}-1===d&&(d=p[0].length)}if(-1!==d){for(var v=Math.floor(d/a);v>0&&v<e.length;){if((s+=1)>50*n.length)return i.push(e),i;var m=oN(e.substring(0,v),r);if(m.length===d){i.push(e.substring(0,v)),e=e.substring(v),o=o.substring(d);break}m.length<d?v+=Math.max(1,Math.floor((d-m.length)/a)):v-=Math.max(1,Math.floor((m.length-d)*a))}break}}}}return i.push(e),i})(E,e).join("/* rr_split */")),y._cssText=E)}if("input"===_||"textarea"===_||"select"===_){var C=e.value,I=e.checked;"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&C?y.value=oI({element:e,type:oM(e),tagName:_,value:C,maskInputOptions:c,maskInputFn:u}):I&&(y.checked=I)}if("option"===_&&(e.selected&&!c.select?y.selected=!0:delete y.selected),"dialog"===_&&e.open&&(y.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===_&&d){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;
1if(new Uint32Array((oR in i?i[oR]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(y.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var O=e.toDataURL(h.type,h.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,O!==R.toDataURL(h.type,h.quality)&&(y.rr_dataURL=O)}}if("img"===_&&p){pg||(pv=(pg=n.createElement("canvas")).getContext("2d"));var M=e.currentSrc||e.getAttribute("src")||"<unknown-src>",A=e.crossOrigin,T=function(){e.removeEventListener("load",T);try{pg.width=e.naturalWidth,pg.height=e.naturalHeight,pv.drawImage(e,0,0),y.rr_dataURL=pg.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?T():e.addEventListener("load",T);return}console.warn("Cannot inline img src="+M+"! Error: "+t)}"anonymous"===e.crossOrigin&&(A?y.crossOrigin=A:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?T():e.addEventListener("load",T)}if("audio"===_||"video"===_){var P=y;P.rr_mediaState=e.paused?"paused":"played",P.rr_mediaCurrentTime=e.currentTime,P.rr_mediaPlaybackRate=e.playbackRate,P.rr_mediaMuted=e.muted,P.rr_mediaLoop=e.loop,P.rr_mediaVolume=e.volume}if(!(void 0!==g&&g)&&(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),m){var F=e.getBoundingClientRect(),D=F.width,L=F.height;
1y={class:y.class,rr_width:""+D+"px",rr_height:""+L+"px"}}"iframe"!==_||f(y.src)||(e.contentDocument||(y.rr_src=y.src),delete y.src);try{customElements.get(_)&&(r=!0)}catch(e){}return{type:ou.Element,tagName:_,attributes:y,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:m,rootId:v,isCustom:r}}(e,{doc:d,blockClass:g,blockSelector:v,inlineStylesheet:_,maskInputOptions:void 0===y?{}:y,maskInputFn:w,dataURLOptions:void 0===k?{}:k,inlineImages:S,recordCanvas:x,keepIframeSrcFn:E,newlyAddedElement:void 0!==C&&C,rootId:O});case e.TEXT_NODE:return r=e,i=(n={doc:d,needsMask:m,maskTextFn:b,rootId:O,cssCaptured:void 0!==I&&I}).needsMask,s=n.maskTextFn,o=n.rootId,a=n.cssCaptured,u=(c=om(r))&&c.tagName,l="",h="STYLE"===u||void 0,(p="SCRIPT"===u||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=oy(r),h&&l&&(l=oL(l,oW(n.doc)))),!h&&!p&&l&&i&&(l=s?s(l,o_(r)):l.replace(/[\S]/g,"*")),{type:ou.Text,textContent:l||"",rootId:o};case e.CDATA_SECTION_NODE:return{type:ou.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:ou.Comment,textContent:oy(e)||"",rootId:O};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:s,needsMask:F,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:void 0!==T&&T,cssCaptured:void 0!==P&&P});if(!N)return console.warn(e,"not serialized"),null;q=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===ou.Comment)return!0;if(e.type===ou.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===oA(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(oZ(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===oZ(e.attributes.name)||"icon"===oZ(e.attributes.rel)||"apple-touch-icon"===oZ(e.attributes.rel)||"shortcut icon"===oZ(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&oZ(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(oZ(e.attributes.property).match(/^(og|twitter|fb):/)||oZ(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===oZ(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===oZ(e.attributes.name)||"googlebot"===oZ(e.attributes.name)||"bingbot"===oZ(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===oZ(e.attributes.name)||"generator"===oZ(e.attributes.name)||"framework"===oZ(e.attributes.name)||"publisher"===oZ(e.attributes.name)||"progid"===oZ(e.attributes.name)||oZ(e.attributes.property).match(/^article:/)||oZ(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===oZ(e.attributes.name)||"yandex-verification"===oZ(e.attributes.name)||"csrf-token"===oZ(e.attributes.name)||"p:domain_verify"===oZ(e.attributes.name)||"verify-v1"===oZ(e.attributes.name)||"verification"===oZ(e.attributes.name)||"shopify-checkout-api-token"===oZ(e.attributes.name)))return!0}}return!1}(N,v)&&(L||N.type!==ou.Text||N.textContent.replace(/^\s+|\s+$/gm,"").length)?oj():-2;var $=Object.assign(N,{id:q});if(n.add(e,$),-2===q)return null;S&&S(e);var U=!u;if($.type===ou.Element){U=U&&!$.needBlock,delete $.needBlock;var j=ob(e);j&&oS(j)&&($.isShadowHost=!0)}if(($.type===ou.Document||$.type===ou.Element)&&U){v.headWhitespace&&$.type===ou.Element&&"head"===$.tagName&&(L=!1);var B={doc:r,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:k,preserveWhiteSpace:L,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:A,cssCaptured:!1};if($.type===ou.Element&&"textarea"===$.tagName&&void 0!==$.attributes.value);else{$.type===ou.Element&&void 0!==$.attributes._cssText&&"string"==typeof $.attributes._cssText&&(B.cssCaptured=!0);for(var q,z,V=or(Array.from(ov(e)));!(z=V()).done;){var W=oK(z.value,B);W&&$.childNodes.push(W)}}var H=null;if(ow(e)&&(H=ob(e)))for(var G,Y=or(Array.from(ov(H)));!(G=Y()).done;){var J=oK(G.value,B);J&&(oS(H)&&(J.isShadow=!0),$.childNodes.push(J))}}var Z=om(e);return Z&&ok(Z)&&oS(Z)&&($.isShadow=!0),$.type===ou.Element&&"iframe"===$.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var s=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var o=setTimeout(function(){s||(t(),s=!0)},r);e.addEventListener("load",function(){clearTimeout(o),s=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&x){var r=oK(t,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:k,preserveWhiteSpace:L,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:A});r&&x(e,r)}},C),$.type===ou.Element&&"link"===$.tagName&&"string"==typeof $.attributes.rel&&("stylesheet"===$.attributes.rel||"preload"===$.attributes.rel&&"string"==typeof $.attributes.href&&"css"===oA($.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()})}}(e,function(){if(I){var t=oK(e,{doc:r,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:k,preserveWhiteSpace:L,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:A});t&&I(e,t)}},R),$}var oX={exports:{}},oQ=String,o0=function(){return{isColorSupported:!1,reset:oQ,bold:oQ,dim:oQ,italic:oQ,underline:oQ,inverse:oQ,hidden:oQ,strikethrough:oQ,black:oQ,red:oQ,green:oQ,yellow:oQ,blue:oQ,magenta:oQ,cyan:oQ,white:oQ,gray:oQ,bgBlack:oQ,bgRed:oQ,bgGreen:oQ,bgYellow:oQ,bgBlue:oQ,bgMagenta:oQ,bgCyan:oQ,bgWhite:oQ}};oX.exports=o0(),oX.exports.createColors=o0;var o1=oX.exports,o2=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return s6(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),o3=function(e){function t(r,n,i,s,o,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,o&&(c.file=o),s&&(c.source=s),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}s4(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=o1.isColorSupported),o2&&e&&(i=o2(i));var s=i.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),c=String(a).length;if(e){var u=o1.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return s.slice(o,a).map(function(e,i){var s=o+1+i,a=" "+(" "+s).slice(-c)+" | ";if(s===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(oe(Error));o3.default=o3;var o5={};o5.isClean=Symbol("isClean"),o5.my=Symbol("my");var o4={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},o6=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var s=this.raw(e,null,"indent");if(s.length)for(var o=0;o<i;o++)r+=s}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return o4[r];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?n=this[a](s,e):s.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=o4[r]),s.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function o8(e,t){new o6(t).stringify(e)}o6.default=o6,o8.default=o8;var o9=o5.isClean,o7=o5.my,ae=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[o9]=!1,this[o7]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=or(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],o=void 0===s?"undefined":s7(s);"parent"===i&&"object"===o?r&&(n[i]=r):"source"===i?n[i]=s:Array.isArray(s)?n[i]=s.map(function(t){return e(t,n)}):("object"===o&&null!==s&&(s=e(s)),n[i]=s)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new o3(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[o9]){this[o9]=!1;for(var e=this;e=e.parent;)e[o9]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,s=0;s<e;s++)"\n"===r[s]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new o6().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,s=!1,o=or(t);!(n=o()).done;){var a=n.value;a===this?s=!0:s?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}s||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var s in this)if(Object.prototype.hasOwnProperty.call(this,s)&&"parent"!==s&&"proxyCache"!==s){var o=this[s];if(Array.isArray(o))r[s]=o.map(function(e){return(void 0===e?"undefined":s7(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===o?"undefined":s7(o))==="object"&&o.toJSON)r[s]=o.toJSON(null,t);else if("source"===s){var a=t.get(o.input);null==a&&(a=i,t.set(o.input,i),i++),r[s]={end:o.end,inputId:a,start:o.start}}else r[s]=o}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=o8),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},s2(e,[{key:"proxyOf",get:function(){return this}}]),e}();ae.default=ae;var at=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=s3({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return s4(t,e),s2(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ae);at.default=at;var ar=o2.SourceMapConsumer,an=o2.SourceMapGenerator,ai=o2.existsSync,as=o2.readFileSync,ao=o2.dirname,aa=o2.join,ac=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ao(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ar(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),sY.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":s7(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ao(e),ai(e))return this.mapFile=e,as(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(s6(t,ar))return an.fromSourceMap(t).toString();else if(s6(t,an))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=aa(ao(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();ac.default=ac;var au=o2.SourceMapConsumer,al=o2.SourceMapGenerator,ah=o2.fileURLToPath,ap=o2.pathToFileURL,ad=o2.isAbsolute,af=o2.resolve,ag=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,av=Symbol("fromOffsetCache"),am=!!(au&&al),a_=!!(af&&ad),ay=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":s7(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!a_||/^\w+:\/\//.test(t.from)||ad(t.from)?this.file=t.from:this.file=af(t.from)),a_&&am){var r=new ac(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ag(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":s7(t))==="object"){var i,s,o,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);s=l.line,o=l.col}else s=c.line,o=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,s,o);return(i=p?new o3(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new o3(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:o,line:s},this.css,this.file,n.plugin)).input={column:r,endColumn:o,endLine:s,line:t,source:this.css},this.file&&(ap&&(i.input.url=ap(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[av])a=this[av];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[av]=a}o=a[a.length-1];var s=0;if(e>=o)s=a.length-1;else for(var o,a,c,u=a.length-2;s<u;)if(e<a[c=s+(u-s>>1)])u=c-1;else if(e>=a[c+1])s=c+1;else{s=c;break}return{col:e-a[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:af(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,s,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:n,line:r})),s=ad(a.source)?ap(a.source):new URL(a.source,this.map.consumer().sourceRoot||ap(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:s.toString()};if("file:"===s.protocol)if(ah)c.file=ah(s);else throw Error("file: protocol is not available in this PostCSS build");var u=o.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=s3({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},s2(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();ay.default=ay,o2&&o2.registerInput&&o2.registerInput(ay);var ab=o2.SourceMapConsumer,aw=o2.SourceMapGenerator,ak=o2.dirname,aS=o2.relative,ax=o2.resolve,aE=o2.sep,aC=o2.pathToFileURL,aI=!!(ab&&aw),aO=!!(ak&&ax&&aS&&aE),aR=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=or(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||ak(r.file),s=void 0;!1===this.mapOpts.sourcesContent?(s=new ab(r.text)).sourcesContent&&(s.sourcesContent=null):s=r.consumer(),this.map.applySourceMap(s,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),aO&&aI&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=aw.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new aw({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new aw({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,s="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(o.generated.line=n,o.generated.column=i-1,c.source&&c.source.start?(o.source=r.sourcePath(c),o.original.line=c.source.start.line,o.original.column=c.source.start.column-1):(o.source=s,o.original.line=1,o.original.column=0),r.map.addMapping(o)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(o.source=r.sourcePath(c),o.original.line=c.source.end.line,o.original.column=c.source.end.column-1,o.generated.line=n,o.generated.column=i-2):(o.source=s,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=i-1),r.map.addMapping(o))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ak(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ak(ax(r,this.mapOpts.annotation)));var n=aS(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ay(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return sY.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(aC){var r=aC(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===aE&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),aM=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return s4(t,e),t}(ae);aM.default=aM;var aA=o5.isClean,aT=o5.my,aP=function(e){function t(){return e.apply(this,arguments)||this}s4(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=or(t);!(n=i()).done;)for(var s,o=n.value,a=this.normalize(o,this.last),c=or(a);!(s=c()).done;){var u=s.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=or(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var s,o=or(i);!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var o,a=or(s);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+s.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(pm(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,s=or(e);!(i=s()).done;){var o=i.value;o.parent&&o.parent.removeChild(o,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=or(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new at(e)]}else if(e.selector)e=[new p_(e)];else if(e.name)e=[new py(e)];else if(e.text)e=[new aM(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[aT]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[aA]&&function e(t){if(t[aA]=!1,t.proxyOf.nodes)for(var r,n=or(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=or(t);!(n=i()).done;){for(var s,o=n.value,a=this.normalize(o,this.first,"prepend").reverse(),c=or(a);!(s=c()).done;){var u=s.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=or(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},s2(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(ae);aP.registerParse=function(e){pm=e},aP.registerRule=function(e){p_=e},aP.registerAtRule=function(e){py=e},aP.registerRoot=function(e){pb=e},aP.default=aP,aP.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,py.prototype):"rule"===e.type?Object.setPrototypeOf(e,p_.prototype):"decl"===e.type?Object.setPrototypeOf(e,at.prototype):"comment"===e.type?Object.setPrototypeOf(e,aM.prototype):"root"===e.type&&Object.setPrototypeOf(e,pb.prototype),e[aT]=!0,e.nodes&&e.nodes.forEac
1h(function(e){aP.rebuild(e)})};var aF=function(e){function t(t){var r;return(r=e.call(this,s3({type:"document"},t))||this).nodes||(r.nodes=[]),r}return s4(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new pw(new pk,this,e).stringify()},t}(aP);aF.registerLazyResult=function(e){pw=e},aF.registerProcessor=function(e){pk=e},aF.default=aF;var aD=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();aD.default=aD;var aL=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new aD(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},s2(e,[{key:"content",get:function(){return this.css}}]),e}();aL.default=aL;var aN=/[\t\n\f\r "#'()/;[\\\]{}]/g,a$=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,aU=/.[\r\n"'(/\\]/,aj=/[\da-f]/i,aB=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}s4(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(aP);aB.default=aB,aP.registerAtRule(aB);var aq=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}s4(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var s,o=or(i);!(s=o()).done;)s.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new pS(new px,this,e).stringify()},t}(aP);aq.registerLazyResult=function(e){pS=e},aq.registerProcessor=function(e){px=e},aq.default=aq,aP.registerRoot(aq);var az={comma:function(e){return az.split(e,[","],!0)},space:function(e){return az.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],s="",o=!1,a=0,c=!1,u="",l=!1,h=or(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(o=!0),o?(""!==s&&i.push(s.trim()),s="",o=!1):s+=p}return(r||""!==s)&&i.push(s.trim()),i}};az.default=az;var aV=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return s4(t,e),s2(t,[{key:"selectors",get:function(){return az.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(aP);aV.default=aV,aP.registerRule(aV);var aW=function(e,t){void 0===t&&(t={});var r,n,i,s,o,a,c,u,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,g=0,v=[],m=[];function _(t){throw e.error("Unclosed "+t,g)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&g>=f},nextToken:function(e){if(m.length)return m.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var y=String.fromCharCode(r);h=[y,y,g];break;
1case 40:if(u=v.length?v.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else _("bracket");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),s=p.slice(g,n+1),-1===n||aU.test(s)?h=["(","(",g]:(h=["brackets",s,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else _("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:aN.lastIndex=g+1,aN.test(p),n=0===aN.lastIndex?p.length-1:aN.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,o=!0;92===p.charCodeAt(n+1);)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,aj.test(p.charAt(n)))){for(;aj.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:_("comment")),h=["comment",p.slice(g,n+1),g,n]):(a$.lastIndex=g+1,a$.test(p),n=0===a$.lastIndex?p.length-1:a$.lastIndex-2,h=["word",p.slice(g,n+1),g,n],v.push(h)),g=n}return g++,h}},position:function(){return g}}},aH={empty:!0,space:!0},aG=function(){function e(e){this.input=e,this.root=new aq,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new aB;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var s=!1,o=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,s=or(e.entries());!(n=s()).done;){var o=n.value,a=o[0],c=o[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new aM;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=aW(this.input)},t.decl=function(e,t){var r,n,i=new at;this.init(i,e[0][2]);var s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new aV;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=c),s.push("}");else if(0===s.length)if(";"===r)if(n)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,s,o,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(s=(i=r[h])[0])||h!==c-1||n?"comment"===s?(a=r[h-1]?r[h-1][0]:"empty",o=r[h+1]?r[h+1][0]:"empty",aH[a]||aH[o]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new aV;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function aY(e,t){var r=new aG(new ay(e,t));try{r.parse()}catch(e){throw e}return r.root}aY.default=aY,aP.registerParse(aY);var aJ=o5.isClean,aZ=o5.my,aK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},aX={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},aQ={Once:!0,postcssPlugin:!0,prepare:!0};function a0(e){return(void 0===e?"undefined":s7(e))==="object"&&"function"==typeof e.then}function a1(e){var t=!1,r=aK[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function a2(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:a1(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function a3(e){return e[aJ]=!1,e.nodes&&e.nodes.forEach(function(e){return a3(e)}),e}var a5={},a4=function(){function e(t,r,n){var i,s=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":s7(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=a3(r);else if(s6(r,e)||s6(r,aL))i=a3(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var o=aY;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[aZ]&&aP.rebuild(i)}this.result=new aL(t,i,n),this.helpers=s3({},a5,{postcss:a5,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":s7(e))==="object"&&e.prepare?s3({},e,e.prepare(s.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=or(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":s7(i))==="object")for(var s in i){if(!aX[s]&&/^[A-Z]/.test(s))throw Error("Unknown event "+s+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!aQ[s])if("object"===s7(i[s]))for(var o in i[s])r(i,"*"===o?s:s+"-"+o.toLowerCase(),i[s][o]);else"function"==typeof i[s]&&r(i,s,i[s])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return s0(function(){var t,r,n,i,s,o,a,c,u,l,h,p;return on(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!a0(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];s=e.result.root,d.label=7;case 7:if(s[aJ])return[3,14];s[aJ]=!0,o=[a2(s)],d.label=8;case 8:if(!(o.length>0))return[3,13];if(!a0(a=e.visitTick(o)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.sent(),u=o[o.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return on(this,function(o){switch(o.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,o.label=1;case 1:if(o.trys.push([1,6,,7]),"document"!==s.type)return[3,3];return[4,Promise.all(s.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return o.sent(),[3,5];case 3:return[4,n(s,e.helpers)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:throw i=o.sent(),e.handleError(i);case 7:return[2]}})},h=or(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,oi(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":s7(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(a0(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=o8;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new aR(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=or(this.plugins);!(e=t()).done;){var r=e.value;if(a0(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[aJ];)n[aJ]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,s=or(n.nodes);!(i=s()).done;){var o=i.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=or(e);!(r=n()).done;){var i=r.value,s=i[0],o=i[1];this.result.lastPlugin=s;var a=void 0;try{a=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(a0(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],s=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return o(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[aJ]){a[aJ]=!0,e.push(a2(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[aJ]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[aJ]=!0;for(var r,n=a1(e),i=or(n);!(r=i()).done;){var s=r.value;if(0===s)e.nodes&&e.each(function(e){e[aJ]||t.walkSync(e)});else{var o=this.listeners[s];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},s2(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();a4.registerPostcss=function(e){a5=e},a4.default=a4,aq.registerLazyResult(a4),aF.registerLazyResult(a4);var a6=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new aL(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var s=new aR(o8,n,this._opts,t);if(s.isMap()){var o=s.generate(),a=o[0],c=o[1];a&&(this.result.css=a),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},s2(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=aY(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();a6.default=a6;var a8=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=or(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":s7(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":s7(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":s7(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new a4(this,e,t):new a6(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function a9(e,t){if(Array.isArray(e))return e.map(function(e){return a9(e)});var r=e.inputs,n=s8(e,["inputs"]);if(r){t=[];for(var i,s=or(r);!(i=s()).done;){var o=i.value,a=s3({},o,{__proto__:ay.prototype});a.map&&(a.map=s3({},a.map,{__proto__:ac.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return a9(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=s8(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new aq(n);if("decl"===n.type)return new at(n);if("rule"===n.type)return new aV(n);if("comment"===n.type)return new aM(n);if("atrule"===n.type)return new aB(n);else throw Error("Unknown node type: "+e.type)}function a7(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new a8(t)}a8.default=a8,aq.registerProcessor(a8),aF.registerProcessor(a8),a9.default=a9,a7.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),y.default.env.LANG&&y.default.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));
1var o=t.apply(void 0,[].concat(i));return o.postcssPlugin=e,o.postcssVersion=new a8().version,o}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return a7([i(r)]).process(e,t)},i},a7.stringify=o8,a7.parse=aY,a7.fromJSON=a9,a7.list=az,a7.comment=function(e){return new aM(e)},a7.atRule=function(e){return new aB(e)},a7.decl=function(e){return new at(e)},a7.rule=function(e){return new aV(e)},a7.root=function(e){return new aq(e)},a7.document=function(e){return new aF(e)},a7.CssSyntaxError=o3,a7.Declaration=at,a7.Container=aP,a7.Processor=a8,a7.Document=aF,a7.Comment=aM,a7.Warning=aD,a7.AtRule=aB,a7.Result=aL,a7.Input=ay,a7.Rule=aV,a7.Root=aq,a7.Node=ae,a4.registerPostcss(a7),a7.default=a7;var ce=a7&&a7.__esModule&&Object.prototype.hasOwnProperty.call(a7,"default")?a7.default:a7;ce.stringify,ce.fromJSON,ce.plugin,ce.parse,ce.list,ce.document,ce.comment,ce.atRule,ce.rule,ce.decl,ce.root,ce.CssSyntaxError,ce.Declaration,ce.Container,ce.Processor,ce.Document,ce.Comment,ce.Warning,ce.AtRule,ce.Result,ce.Input,ce.Rule,ce.Root,ce.Node;var ct=Object.defineProperty,cr=function(e,t,r){var n;return n=(void 0===t?"undefined":s7(t))!=="symbol"?t+"":t,n in e?ct(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},cn={exports:{}},ci=String,cs=function(){return{isColorSupported:!1,reset:ci,bold:ci,dim:ci,italic:ci,underline:ci,inverse:ci,hidden:ci,strikethrough:ci,black:ci,red:ci,green:ci,yellow:ci,blue:ci,magenta:ci,cyan:ci,white:ci,gray:ci,bgBlack:ci,bgRed:ci,bgGreen:ci,bgYellow:ci,bgBlue:ci,bgMagenta:ci,bgCyan:ci,bgWhite:ci}};cn.exports=cs(),cn.exports.createColors=cs;var co=cn.exports,ca=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return s6(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),cc=function(e){function t(r,n,i,s,o,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,o&&(c.file=o),s&&(c.source=s),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}s4(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=co.isColorSupported),ca&&e&&(i=ca(i));var s=i.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),c=String(a).length;if(e){var u=co.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return s.slice(o,a).map(function(e,i){var s=o+1+i,a=" "+(" "+s).slice(-c)+" | ";if(s===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(oe(Error));cc.default=cc;var cu={};cu.isClean=Symbol("isClean"),cu.my=Symbol("my");var cl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},ch=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var s=this.raw(e,null,"indent");if(s.length)for(var o=0;o<i;o++)r+=s}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return cl[r];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?n=this[a](s,e):s.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=cl[r]),s.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function cp(e,t){new ch(t).stringify(e)}ch.default=ch,cp.default=cp;var cd=cu.isClean,cf=cu.my,cg=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[cd]=!1,this[cf]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=or(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],o=void 0===s?"undefined":s7(s);"parent"===i&&"object"===o?r&&(n[i]=r):"source"===i?n[i]=s:Array.isArray(s)?n[i]=s.map(function(t){return e(t,n)}):("object"===o&&null!==s&&(s=e(s)),n[i]=s)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new cc(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[cd]){this[cd]=!1;for(var e=this;e=e.parent;)e[cd]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,s=0;s<e;s++)"\n"===r[s]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new ch().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,s=!1,o=or(t);!(n=o()).done;){var a=n.value;a===this?s=!0:s?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}s||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var s in this)if(Object.prototype.hasOwnProperty.call(this,s)&&"parent"!==s&&"proxyCache"!==s){var o=this[s];if(Array.isArray(o))r[s]=o.map(function(e){return(void 0===e?"undefined":s7(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===o?"undefined":s7(o))==="object"&&o.toJSON)r[s]=o.toJSON(null,t);else if("source"===s){var a=t.get(o.input);null==a&&(a=i,t.set(o.input,i),i++),r[s]={end:o.end,inputId:a,start:o.start}}else r[s]=o}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=cp),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},s2(e,[{key:"proxyOf",get:function(){return this}}]),e}();cg.default=cg;var cv=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=s3({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return s4(t,e),s2(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(cg);cv.default=cv;var cm=ca.SourceMapConsumer,c_=ca.SourceMapGenerator,cy=ca.existsSync,cb=ca.readFileSync,cw=ca.dirname,ck=ca.join,cS=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=cw(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new cm(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),sY.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":s7(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=cw(e),cy(e))return this.mapFile=e,cb(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(s6(t,cm))return c_.fromSourceMap(t).toString();else if(s6(t,c_))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=ck(cw(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();cS.default=cS;var cx=ca.SourceMapConsumer,cE=ca.SourceMapGenerator,cC=ca.fileURLToPath,cI=ca.pathToFileURL,cO=ca.isAbsolute,cR=ca.resolve,cM=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,cA=Symbol("fromOffsetCache"),cT=!!(cx&&cE),cP=!!(cR&&cO),cF=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":s7(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!cP||/^\w+:\/\//.test(t.from)||cO(t.from)?this.file=t.from:this.file=cR(t.from)),cP&&cT){var r=new cS(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+cM(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":s7(t))==="object"){var i,s,o,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);s=l.line,o=l.col}else s=c.line,o=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,s,o);return(i=p?new cc(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new cc(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:o,line:s},this.css,this.file,n.plugin)).input={column:r,endColumn:o,endLine:s,line:t,source:this.css},this.file&&(cI&&(i.input.url=cI(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[cA])a=this[cA];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[cA]=a}o=a[a.length-1];var s=0;if(e>=o)s=a.length-1;else for(var o,a,c,u=a.length-2;s<u;)if(e<a[c=s+(u-s>>1)])u=c-1;else if(e>=a[c+1])s=c+1;else{s=c;break}return{col:e-a[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:cR(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,s,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:n,line:r})),s=cO(a.source)?cI(a.source):new URL(a.source,this.map.consumer().sourceRoot||cI(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:s.toString()};if("file:"===s.protocol)if(cC)c.file=cC(s);else throw Error("file: protocol is not available in this PostCSS build");var u=o.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=s3({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},s2(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();cF.default=cF,ca&&ca.registerInput&&ca.registerInput(cF);var cD=ca.SourceMapConsumer,cL=ca.SourceMapGenerator,cN=ca.dirname,c$=ca.relative,cU=ca.resolve,cj=ca.sep,cB=ca.pathToFileURL,cq=!!(cD&&cL),cz=!!(cN&&cU&&c$&&cj),cV=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=or(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||cN(r.file),s=void 0;!1===this.mapOpts.sourcesContent?(s=new cD(r.text)).sourcesContent&&(s.sourcesContent=null):s=r.consumer(),this.map.applySourceMap(s,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),cz&&cq&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=cL.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new cL({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new cL({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,s="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(o.generated.line=n,o.generated.column=i-1,c.source&&c.source.start?(o.source=r.sourcePath(c),o.original.line=c.source.start.line,o.original.column=c.source.start.column-1):(o.source=s,o.original.line=1,o.original.column=0),r.map.addMapping(o)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(o.source=r.sourcePath(c),o.original.line=c.source.end.line,o.original.column=c.source.end.column-1,o.generated.line=n,o.generated.column=i-2):(o.source=s,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=i-1),r.map.addMapping(o))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?cN(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=cN(cU(r,this.mapOpts.annotation)));var n=c$(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new cF(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return sY.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(cB){var r=cB(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===cj&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),cW=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return s4(t,e),t}(cg);cW.default=cW;var cH=cu.isClean,cG=cu.my,cY=function(e){function t(){return e.apply(this,arguments)||this}s4(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=or(t);!(n=i()).done;)for(var s,o=n.value,a=this.normalize(o,this.last),c=or(a);!(s=c()).done;){var u=s.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=or(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var s,o=or(i);!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var o,a=or(s);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+s.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(pE(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,s=or(e);!(i=s()).done;){var o=i.value;o.parent&&o.parent.removeChild(o,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=or(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new cv(e)]}else if(e.selector)e=[new pC(e)];else if(e.name)e=[new pI(e)];else if(e.text)e=[new cW(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[cG]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[cH]&&function e(t){if(t[cH]=!1,t.proxyOf.nodes)for(var r,n=or(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=or(t);!(n=i()).done;){for(var s,o=n.value,a=this.normalize(o,this.first,"prepend").reverse(),c=or(a);!(s=c()).done;){var u=s.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=or(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},s2(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(cg);cY.registerParse=function(e){pE=e},cY.registerRule=function(e){pC=e},cY.registerAtRule=function(e){pI=e},cY.registerRoot=function(e){pO=e},cY.default=cY,cY.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,pI.prototype):"rule"===e.type?Object.setPrototypeOf(e,pC.prototype):"decl"===e.type?Object.setPrototypeOf(e,cv.prototype):"comment"===e.type?Object.setPrototypeOf(e,cW.prototype):"root"===e.type&&Object.setPrototypeOf(e,pO.prototype),e[cG]=!0,e.nodes&&e.nodes.forEac
1h(function(e){cY.rebuild(e)})};var cJ=function(e){function t(t){var r;return(r=e.call(this,s3({type:"document"},t))||this).nodes||(r.nodes=[]),r}return s4(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new pR(new pM,this,e).stringify()},t}(cY);cJ.registerLazyResult=function(e){pR=e},cJ.registerProcessor=function(e){pM=e},cJ.default=cJ;var cZ=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();cZ.default=cZ;var cK=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new cZ(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},s2(e,[{key:"content",get:function(){return this.css}}]),e}();cK.default=cK;var cX=/[\t\n\f\r "#'()/;[\\\]{}]/g,cQ=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,c0=/.[\r\n"'(/\\]/,c1=/[\da-f]/i,c2=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}s4(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(cY);c2.default=c2,cY.registerAtRule(c2);var c3=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}s4(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var s,o=or(i);!(s=o()).done;)s.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new pA(new pT,this,e).stringify()},t}(cY);c3.registerLazyResult=function(e){pA=e},c3.registerProcessor=function(e){pT=e},c3.default=c3,cY.registerRoot(c3);var c5={comma:function(e){return c5.split(e,[","],!0)},space:function(e){return c5.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],s="",o=!1,a=0,c=!1,u="",l=!1,h=or(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(o=!0),o?(""!==s&&i.push(s.trim()),s="",o=!1):s+=p}return(r||""!==s)&&i.push(s.trim()),i}};c5.default=c5;var c4=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return s4(t,e),s2(t,[{key:"selectors",get:function(){return c5.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(cY);c4.default=c4,cY.registerRule(c4);var c6=function(e,t){void 0===t&&(t={});var r,n,i,s,o,a,c,u,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,g=0,v=[],m=[];function _(t){throw e.error("Unclosed "+t,g)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&g>=f},nextToken:function(e){if(m.length)return m.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var y=String.fromCharCode(r);h=[y,y,g];break;
1case 40:if(u=v.length?v.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else _("bracket");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),s=p.slice(g,n+1),-1===n||c0.test(s)?h=["(","(",g]:(h=["brackets",s,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else _("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:cX.lastIndex=g+1,cX.test(p),n=0===cX.lastIndex?p.length-1:cX.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,o=!0;92===p.charCodeAt(n+1);)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,c1.test(p.charAt(n)))){for(;c1.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:_("comment")),h=["comment",p.slice(g,n+1),g,n]):(cQ.lastIndex=g+1,cQ.test(p),n=0===cQ.lastIndex?p.length-1:cQ.lastIndex-2,h=["word",p.slice(g,n+1),g,n],v.push(h)),g=n}return g++,h}},position:function(){return g}}},c8={empty:!0,space:!0},c9=function(){function e(e){this.input=e,this.root=new c3,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new c2;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var s=!1,o=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,s=or(e.entries());!(n=s()).done;){var o=n.value,a=o[0],c=o[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new cW;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=c6(this.input)},t.decl=function(e,t){var r,n,i=new cv;this.init(i,e[0][2]);var s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new c4;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=c),s.push("}");else if(0===s.length)if(";"===r)if(n)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,s,o,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(s=(i=r[h])[0])||h!==c-1||n?"comment"===s?(a=r[h-1]?r[h-1][0]:"empty",o=r[h+1]?r[h+1][0]:"empty",c8[a]||c8[o]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new c4;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function c7(e,t){var r=new c9(new cF(e,t));try{r.parse()}catch(e){throw e}return r.root}c7.default=c7,cY.registerParse(c7);var ue=cu.isClean,ut=cu.my,ur={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},un={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},ui={Once:!0,postcssPlugin:!0,prepare:!0};function us(e){return(void 0===e?"undefined":s7(e))==="object"&&"function"==typeof e.then}function uo(e){var t=!1,r=ur[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function ua(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:uo(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function uc(e){return e[ue]=!1,e.nodes&&e.nodes.forEach(function(e){return uc(e)}),e}var uu={},ul=function(){function e(t,r,n){var i,s=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":s7(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=uc(r);else if(s6(r,e)||s6(r,cK))i=uc(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var o=c7;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[ut]&&cY.rebuild(i)}this.result=new cK(t,i,n),this.helpers=s3({},uu,{postcss:uu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":s7(e))==="object"&&e.prepare?s3({},e,e.prepare(s.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=or(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":s7(i))==="object")for(var s in i){if(!un[s]&&/^[A-Z]/.test(s))throw Error("Unknown event "+s+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ui[s])if("object"===s7(i[s]))for(var o in i[s])r(i,"*"===o?s:s+"-"+o.toLowerCase(),i[s][o]);else"function"==typeof i[s]&&r(i,s,i[s])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return s0(function(){var t,r,n,i,s,o,a,c,u,l,h,p;return on(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!us(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];s=e.result.root,d.label=7;case 7:if(s[ue])return[3,14];s[ue]=!0,o=[ua(s)],d.label=8;case 8:if(!(o.length>0))return[3,13];if(!us(a=e.visitTick(o)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.sent(),u=o[o.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return on(this,function(o){switch(o.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,o.label=1;case 1:if(o.trys.push([1,6,,7]),"document"!==s.type)return[3,3];return[4,Promise.all(s.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return o.sent(),[3,5];case 3:return[4,n(s,e.helpers)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:throw i=o.sent(),e.handleError(i);case 7:return[2]}})},h=or(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,oi(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":s7(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(us(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=cp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new cV(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=or(this.plugins);!(e=t()).done;){var r=e.value;if(us(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[ue];)n[ue]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,s=or(n.nodes);!(i=s()).done;){var o=i.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=or(e);!(r=n()).done;){var i=r.value,s=i[0],o=i[1];this.result.lastPlugin=s;var a=void 0;try{a=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(us(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],s=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return o(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[ue]){a[ue]=!0,e.push(ua(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[ue]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[ue]=!0;for(var r,n=uo(e),i=or(n);!(r=i()).done;){var s=r.value;if(0===s)e.nodes&&e.each(function(e){e[ue]||t.walkSync(e)});else{var o=this.listeners[s];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},s2(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();ul.registerPostcss=function(e){uu=e},ul.default=ul,c3.registerLazyResult(ul),cJ.registerLazyResult(ul);var uh=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new cK(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var s=new cV(cp,n,this._opts,t);if(s.isMap()){var o=s.generate(),a=o[0],c=o[1];a&&(this.result.css=a),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},s2(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=c7(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();uh.default=uh;var up=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=or(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":s7(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":s7(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":s7(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new ul(this,e,t):new uh(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function ud(e,t){if(Array.isArray(e))return e.map(function(e){return ud(e)});var r=e.inputs,n=s8(e,["inputs"]);if(r){t=[];for(var i,s=or(r);!(i=s()).done;){var o=i.value,a=s3({},o,{__proto__:cF.prototype});a.map&&(a.map=s3({},a.map,{__proto__:cS.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return ud(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=s8(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new c3(n);if("decl"===n.type)return new cv(n);if("rule"===n.type)return new c4(n);if("comment"===n.type)return new cW(n);if("atrule"===n.type)return new c2(n);else throw Error("Unknown node type: "+e.type)}function uf(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new up(t)}up.default=up,c3.registerProcessor(up),cJ.registerProcessor(up),ud.default=ud,uf.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),y.default.env.LANG&&y.default.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));
1var o=t.apply(void 0,[].concat(i));return o.postcssPlugin=e,o.postcssVersion=new up().version,o}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return uf([i(r)]).process(e,t)},i},uf.stringify=cp,uf.parse=c7,uf.fromJSON=ud,uf.list=c5,uf.comment=function(e){return new cW(e)},uf.atRule=function(e){return new c2(e)},uf.decl=function(e){return new cv(e)},uf.rule=function(e){return new c4(e)},uf.root=function(e){return new c3(e)},uf.document=function(e){return new cJ(e)},uf.CssSyntaxError=cc,uf.Declaration=cv,uf.Container=cY,uf.Processor=up,uf.Document=cJ,uf.Comment=cW,uf.Warning=cZ,uf.AtRule=c2,uf.Result=cK,uf.Input=cF,uf.Rule=c4,uf.Root=c3,uf.Node=cg,ul.registerPostcss(uf),uf.default=uf;var ug=uf&&uf.__esModule&&Object.prototype.hasOwnProperty.call(uf,"default")?uf.default:uf;ug.stringify,ug.fromJSON,ug.plugin,ug.parse,ug.list,ug.document,ug.comment,ug.atRule,ug.rule,ug.decl,ug.root,ug.CssSyntaxError,ug.Declaration,ug.Container,ug.Processor,ug.Document,ug.Comment,ug.Warning,ug.AtRule,ug.Result,ug.Input,ug.Rule,ug.Root,ug.Node;var uv=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];cr(this,"parentElement",null),cr(this,"parentNode",null),cr(this,"ownerDocument"),cr(this,"firstChild",null),cr(this,"lastChild",null),cr(this,"previousSibling",null),cr(this,"nextSibling",null),cr(this,"ELEMENT_NODE",1),cr(this,"TEXT_NODE",3),cr(this,"nodeType"),cr(this,"nodeName"),cr(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!s6(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},s2(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),um={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},u_={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},uy={};function ub(e){if(uy[e])return uy[e];var t=globalThis[e],r=t.prototype,n=e in um?um[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),s=e in u_?u_[e]:void 0,o=!!(s&&s.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!globalThis.Zone)return uy[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return uy[e]=u}catch(e){return r}}var uw={};function uk(e,t,r){var n,i=e+"."+String(r);if(uw[i])return uw[i].call(t);var s=null==(n=Object.getOwnPropertyDescriptor(ub(e),r))?void 0:n.get;return s?(uw[i]=s,s.call(t)):t[r]}var uS={};function ux(e,t,r){var n=e+"."+String(r);if(uS[n])return uS[n].bind(t);var i=ub(e)[r];return"function"!=typeof i?t[r]:(uS[n]=i,i.bind(t))}function uE(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var uC=function(e){return uk("Node",e,"childNodes")},uI=function(e){return uk("Node",e,"parentNode")},uO=function(e){return uk("Node",e,"parentElement")},uR=function(e){return uk("Node",e,"textContent")},uM=function(e,t){return ux("Node",e,"contains")(t)},uA=function(e){return ux("Node",e,"getRootNode")()},uT=function(e){return e&&"host"in e?uk("ShadowRoot",e,"host"):null},uP=function(e){return e&&"shadowRoot"in e?uk("Element",e,"shadowRoot"):null};function uF(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var uD="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",uL={map:{},getId:function(){return console.error(uD),-1},getNode:function(){return console.error(uD),null},removeNodeFromMap:function(){console.error(uD)},has:function(){return console.error(uD),!1},reset:function(){console.error(uD)}};function uN(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var s=arguments.length,o=Array(s),a=0;a<s;a++)o[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
1t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,o)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},u))}}function u$(e,t,r,n,i){void 0===i&&(i=window);var s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),s&&s.set&&s.set.call(this,e)}}),function(){return u$(e,t,s||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(uL=new Proxy(uL,{get:function(e,t,r){return"map"===t&&console.error(uD),Reflect.get(e,t,r)}}));var uU=Date.now;function uj(e){var t,r,n,i,s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:s.documentElement.scrollLeft||(null==s?void 0:s.body)&&(null==(t=uO(s.body))?void 0:t.scrollLeft)||(null==(r=null==s?void 0:s.body)?void 0:r.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null==s?void 0:s.body)&&(null==(n=uO(s.body))?void 0:n.scrollTop)||(null==(i=null==s?void 0:s.body)?void 0:i.scrollTop)||0}}function uB(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uq(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function uz(e){return e?e.nodeType===e.ELEMENT_NODE?e:uO(e):null}function uV(e,t,r,n){if(!e)return!1;var i=uz(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(oY(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function uW(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function uH(e){return!!e.changedTouches}function uG(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function uY(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function uJ(e){return!!e&&(s6(e,uv)&&"shadowRoot"in e?!!e.shadowRoot:!!uP(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(uU=function(){return new Date().getTime()});var uZ=function(){function e(){oo(this,"id",1),oo(this,"styleIDMap",new WeakMap),oo(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function uK(e){var t,r=null;return"getRootNode"in e&&(null==(t=uA(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&uT(uA(e))&&(r=uT(uA(e))),r}function uX(e){var t,r,n=e.ownerDocument;return!!n&&(uM(n,e)||!!(r=(t=e).ownerDocument)&&uM(r,function(e){for(var t,r=e;t=uK(r);)r=t;return r}(t)))}var uQ=((ps=uQ||{})[ps.DomContentLoaded=0]="DomContentLoaded",ps[ps.Load=1]="Load",ps[ps.FullSnapshot=2]="FullSnapshot",ps[ps.IncrementalSnapshot=3]="IncrementalSnapshot",ps[ps.Meta=4]="Meta",ps[ps.Custom=5]="Custom",ps[ps.Plugin=6]="Plugin",ps),u0=((po=u0||{})[po.Mutation=0]="Mutation",po[po.MouseMove=1]="MouseMove",po[po.MouseInteraction=2]="MouseInteraction",po[po.Scroll=3]="Scroll",po[po.ViewportResize=4]="ViewportResize",po[po.Input=5]="Input",po[po.TouchMove=6]="TouchMove",po[po.MediaInteraction=7]="MediaInteraction",po[po.StyleSheetRule=8]="StyleSheetRule",po[po.CanvasMutation=9]="CanvasMutation",po[po.Font=10]="Font",po[po.Log=11]="Log",po[po.Drag=12]="Drag",po[po.StyleDeclaration=13]="StyleDeclaration",po[po.Selection=14]="Selection",po[po.AdoptedStyleSheet=15]="AdoptedStyleSheet",po[po.CustomElement=16]="CustomElement",po),u1=((pa=u1||{})[pa.MouseUp=0]="MouseUp",pa[pa.MouseDown=1]="MouseDown",pa[pa.Click=2]="Click",pa[pa.ContextMenu=3]="ContextMenu",pa[pa.DblClick=4]="DblClick",pa[pa.Focus=5]="Focus",pa[pa.Blur=6]="Blur",pa[pa.TouchStart=7]="TouchStart",pa[pa.TouchMove_Departed=8]="TouchMove_Departed",pa[pa.TouchEnd=9]="TouchEnd",pa[pa.TouchCancel=10]="TouchCancel",pa),u2=((pc=u2||{})[pc.Mouse=0]="Mouse",pc[pc.Pen=1]="Pen",pc[pc.Touch=2]="Touch",pc),u3=((pu=u3||{})[pu["2D"]=0]="2D",pu[pu.WebGL=1]="WebGL",pu[pu.WebGL2=2]="WebGL2",pu),u5=((pl=u5||{})[pl.Play=0]="Play",pl[pl.Pause=1]="Pause",pl[pl.Seeked=2]="Seeked",pl[pl.VolumeChange=3]="VolumeChange",pl[pl.RateChange=4]="RateChange",pl),u4=((ph=u4||{})[ph.Document=0]="Document",ph[ph.DocumentType=1]="DocumentType",ph[ph.Element=2]="Element",ph[ph.Text=3]="Text",ph[ph.CDATA=4]="CDATA",ph[ph.Comment=5]="Comment",ph),u6=function(){function e(){oo(this,"length",0),oo(this,"head",null),oo(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),u8=function(e,t){return e+"@"+t},u9=function(){function e(){var e=this;oo(this,"frozen",!1),oo(this,"locked",!1),oo(this,"texts",[]),oo(this,"attributes",[]),oo(this,"attributeMap",new WeakMap),oo(this,"removes",[]),oo(this,"mapRemoves",[]),oo(this,"movedMap",{}),oo(this,"addedSet",new Set),oo(this,"movedSet",new Set),oo(this,"droppedSet",new Set),oo(this,"removesSubTreeCache",new Set),oo(this,"mutationCb"),oo(this,"blockClass"),oo(this,"blockSelector"),oo(this,"maskTextClass"),oo(this,"maskTextSelector"),oo(this,"inlineStylesheet"),oo(this,"maskInputOptions"),oo(this,"maskTextFn"),oo(this,"maskInputFn"),oo(this,"keepIframeSrcFn"),oo(this,"recordCanvas"),oo(this,"inlineImages"),oo(this,"slimDOMOptions"),oo(this,"dataURLOptions"),oo(this,"doc"),oo(this,"mirror"),oo(this,"iframeManager"),oo(this,"stylesheetManager"),oo(this,"shadowDomManager"),oo(this,"canvasManager"),oo(this,"processedNodeManager"),oo(this,"unattachedDoc"),oo(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),oo(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new u6,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},s=function(s){var o=uI(s);if(o&&uX(s)){var a=!1;if(s.nodeType===Node.TEXT_NODE){var c=o.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(o)&&(a=!0)}var u=ok(o)?e.mirror.getId(uK(s)):e.mirror.getId(o),l=i(s);if(-1===u||-1===l)return n.addNode(s);var h=oK(s,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){uG(t,e.mirror)&&e.iframeManager.addIframe(t),uY(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),uJ(s)&&e.shadowDomManager.addShadowRoot(uP(s),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var o=e.mapRemoves.shift();if("IFRAME"===o.nodeName)try{e.iframeManager.removeIframe(o)}catch(e){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(o);e.mirror.removeNodeFromMap(o)}for(var a,c=or(e.movedSet);!(a=c()).done;){var u=a.value;(!le(e.removesSubTreeCache,u,e.mirror)||e.movedSet.has(uI(u)))&&s(u)}for(var l,h=or(e.addedSet);!(l=h()).done;){var p=l.value;lt(e.droppedSet,p)||le(e.removesSubTreeCache,p,e.mirror)?lt(e.movedSet,p)?s(p):e.droppedSet.add(p):s(p)}for(var d=null;n.length;){var f=null;if(d){var g=e.mirror.getId(uI(d.value)),v=i(d.value);-1!==g&&-1!==v&&(f=d)}if(!f)for(var m=n.tail;m;){var _=m;if(m=m.previous,_){var y=e.mirror.getId(uI(_.value));if(-1===i(_.value))continue;if(-1!==y){f=_;break}var b=uI(_.value);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=uT(b);if(-1!==e.mirror.getId(w)){f=_;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}d=f.previous,n.removeNode(f.value),s(f.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=uI(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),oo(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(uC(t),function(e){return uR(e)||""}).join("");r.attributes.value=oI({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:oM(t),value:n,maskInputFn:e.maskInputFn})}),oo(this,"processMutation",function(t){if(!uW(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=uR(t.target);uV(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:oJ(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,uz(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,s=t.target.getAttribute(i);if("value"===i){var o=oM(n);s=oI({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:o,value:s,maskInputFn:e.maskInputFn})}if(uV(t.target,e.blockClass,e.blockSelector,!1)||s===t.oldValue)return;var a=e.attributeMap.get(t.target);
1if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(s))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!oG(n.tagName,i))if(a.attributes[i]=oH(e.doc,oO(n.tagName),oO(i),s),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=or(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),d=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||d!==c.style.getPropertyPriority(h)?""===d?a.styleDiff[h]=p:a.styleDiff[h]=[p,d]:a._unchangedStyles[h]=[p,d]}for(var f,g=or(Array.from(c.style));!(f=g()).done;){var v=f.value;""===n.style.getPropertyValue(v)&&(a.styleDiff[v]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(uV(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=ok(t.target)?e.mirror.getId(uT(t.target)):e.mirror.getId(t.target);uV(t.target,e.blockClass,e.blockSelector,!1)||uW(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(u7(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(ok(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=uI(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[u8(n,i)]?u7(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(ok(t.target)&&oS(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),uC(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),oo(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(uW(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[u8(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!uV(t,e.blockClass,e.blockSelector,!1)&&(uC(t).forEach(function(t){return e.genAdds(t)}),uJ(t)&&uC(uP(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function u7(e,t){e.delete(t),uC(t).forEach(function(t){return u7(e,t)})}function le(e,t,r){var n,i;return 0!==e.size&&(n=e,!!(i=uI(t))&&n.has(i))}function lt(e,t){return 0!==e.size&&function e(t,r){var n=uI(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var lr=function(e){return pP?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(pP&&!0===pP(e))return;throw e}}:e},ln=[];function li(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function ls(e,t){var r=new u9;ln.push(r),r.init(e);var n=new(ub("MutationObserver")).constructor(lr(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function lo(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.sampling;return uF("scroll",lr(uN(lr(function(e){var o=li(e);if(!(!o||uV(o,i,s,!0))){var a=n.getId(o);if(o===r&&r.defaultView){var c=uj(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),r)}var la=["INPUT","TEXTAREA","SELECT"],lc=new WeakMap;function lu(e){var t=[];
1if(ld("CSSGroupingRule")&&s6(e.parentRule,CSSGroupingRule)||ld("CSSMediaRule")&&s6(e.parentRule,CSSMediaRule)||ld("CSSSupportsRule")&&s6(e.parentRule,CSSSupportsRule)||ld("CSSConditionRule")&&s6(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function ll(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function lh(e,t){var r,n,i,s=e.mirror,o=e.stylesheetManager,a=null;a="#document"===t.nodeName?s.getId(t):s.getId(uT(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{o.adoptStyleSheets(e,a)}catch(e){}return r}}),lr(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function lp(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};d=t,f=e.mutationCb,g=e.mousemoveCb,v=e.mouseInteractionCb,m=e.scrollCb,_=e.viewportResizeCb,y=e.inputCb,b=e.mediaInteractionCb,w=e.styleSheetRuleCb,k=e.styleDeclarationCb,S=e.canvasMutationCb,x=e.fontCb,E=e.selectionCb,C=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mutation&&d.mutation.apply(d,[].concat(t)),f.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mousemove&&d.mousemove.apply(d,[].concat(t)),g.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mouseInteraction&&d.mouseInteraction.apply(d,[].concat(t)),v.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.scroll&&d.scroll.apply(d,[].concat(t)),m.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.viewportResize&&d.viewportResize.apply(d,[].concat(t)),_.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.input&&d.input.apply(d,[].concat(t)),y.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mediaInteaction&&d.mediaInteaction.apply(d,[].concat(t)),b.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleSheetRule&&d.styleSheetRule.apply(d,[].concat(t)),w.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleDeclaration&&d.styleDeclaration.apply(d,[].concat(t)),k.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.canvasMutation&&d.canvasMutation.apply(d,[].concat(t)),S.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.font&&d.font.apply(d,[].concat(t)),x.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.selection&&d.selection.apply(d,[].concat(t)),E.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.customElement&&d.customElement.apply(d,[].concat(t)),C.apply(void 0,[].concat(t))},e.recordDOM&&(en=ls(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,s=e.mirror;if(!1===n.mousemove)return function(){};var o="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=uN(lr(function(e){var n=Date.now()-t;r(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],t=null}),a),l=lr(uN(lr(function(e){var r=li(e),n=uH(e)?e.changedTouches[0]:e,i=n.clientX,o=n.clientY;t||(t=uU()),c.push({x:i,y:o,id:s.getId(r),timeOffset:uU()-t}),u("u">typeof DragEvent&&s6(e,DragEvent)?u0.Drag:s6(e,MouseEvent)?u0.MouseMove:u0.TouchMove)}),o,{trailing:!1})),h=[uF("mousemove",l,i),uF("touchmove",l,i),uF("drag",l,i)];return lr(function(){h.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.sampling;if(!1===o.mouseInteraction)return function(){};var a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,c=[],u=null;return Object.keys(u1).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
1).forEach(function(e){var o=oO(e),a=function(r){var o=li(r);if(!uV(o,i,s,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=u2.Mouse;break;case"touch":a=u2.Touch;break;case"pen":a=u2.Pen}a===u2.Touch?u1[e]===u1.MouseDown?c="TouchStart":u1[e]===u1.MouseUp&&(c="TouchEnd"):u2.Pen}else uH(r)&&(a=u2.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===u2.Touch||c.startsWith("Mouse")&&a===u2.Mouse)&&(a=null)):u1[e]===u1.Click&&(a=u,u=null);var l=uH(r)?r.changedTouches[0]:r;if(l){var h=n.getId(o),p=l.clientX,d=l.clientY;lr(t)(s3({type:u1[c],id:h,x:p,y:d},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(u1[e]){case u1.MouseDown:case u1.MouseUp:o=o.replace("mouse","pointer");break;case u1.TouchStart:case u1.TouchEnd:return}c.push(uF(o,a,r))}),lr(function(){c.forEach(function(e){return e()})})}(e),s=lo(e),o=(I={win:r},O=e.viewportResizeCb,R=I.win,M=-1,A=-1,uF("resize",lr(uN(lr(function(){var e=uB(),t=uq();(M!==e||A!==t)&&(O({width:Number(t),height:Number(e)}),M=e,A=t)}),200)),R)),a=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=li(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=uO(t)),!(!t||!l||0>la.indexOf(l)||uV(t,i,s,!0)))&&!(t.classList.contains(o)||a&&t.matches(a))){var p=t.value,f=!1,g=oM(t)||"";"radio"===g||"checkbox"===g?f=t.checked:(c[l.toLowerCase()]||c[g])&&(p=oI({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),d(t,h?{text:p,isChecked:f,userTriggered:n}:{text:p,isChecked:f});var v=t.name;"radio"===g&&v&&f&&r.querySelectorAll('input[type="radio"][name="'+v+'"]').forEach(function(e){if(e!==t){var r=e.value;d(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function d(e,r){var i=lc.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){lc.set(e,r);var s=n.getId(e);lr(t)(s3({},r,{id:s}))}}var f=("last"===l.input?["change"]:["input","change"]).map(function(e){return uF(e,lr(p),r)}),g=r.defaultView;if(!g)return function(){f.forEach(function(e){return e()})};var v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),m=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,[].concat(m.map(function(e){return u$(e[0],e[1],{set:function(){lr(p)({target:this,isTrusted:!1})}},!1,g)}))),lr(function(){f.forEach(function(e){return e()})})}(e),c=(T=e.mediaInteractionCb,P=e.blockClass,F=e.blockSelector,D=e.mirror,L=e.sampling,N=e.doc,U=[uF("play",($=lr(function(e){return uN(lr(function(t){var r=li(t);if(!(!r||uV(r,P,F,!0))){var n=r.currentTime,i=r.volume,s=r.muted,o=r.playbackRate,a=r.loop;T({type:e,id:D.getId(r),currentTime:n,volume:i,muted:s,playbackRate:o,loop:a})}}),L.media||500)}))(u5.Play),N),uF("pause",$(u5.Pause),N),uF("seeked",$(u5.Seeked),N),uF("volumechange",$(u5.VolumeChange),N),uF("ratechange",$(u5.RateChange),N)],lr(function(){U.forEach(function(e){return e()})})),u=function(){},l=function(){},h=function(){},p=function(){};e.recordDOM&&(u=function(e,t){var r,n,i=e.styleSheetRuleCb,s=e.mirror,o=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:lr(function(e,t,r){var n=r[0],a=r[1],c=ll(t,s,o.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:lr(function(e,t,r){var n=r[0],a=ll(t,s,o.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:n}]}),e.apply(t,r)}
1)}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:lr(function(e,t,r){var n=r[0],a=ll(t,s,o.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:lr(function(e,t,r){var n=r[0],a=ll(t,s,o.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replaceSync:n}),e.apply(t,r)})}));var l={};lf("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(lf("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),lf("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),lf("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];h[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(h[t].insertRule,{apply:lr(function(e,t,r){var n=r[0],a=r[1],c=ll(t.parentStyleSheet,s,o.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:[].concat(lu(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:lr(function(e,t,r){var n=r[0],a=ll(t.parentStyleSheet,s,o.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:[].concat(lu(t),[n])}]}),e.apply(t,r)})})}),lr(function(){a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:r}),l=lh(e,e.doc),j=e.styleDeclarationCb,B=e.mirror,q=e.ignoreCSSAttributes,z=e.stylesheetManager,W=(V=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,V.CSSStyleDeclaration.prototype.setProperty=new Proxy(W,{apply:lr(function(e,t,r){var n,i=r[0],s=r[1],o=r[2];if(q.has(i))return W.apply(t,[i,s,o]);var a=ll(null==(n=t.parentRule)?void 0:n.parentStyleSheet,B,z.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&j({id:c,styleId:u,set:{property:i,value:s,priority:o},index:lu(t.parentRule)}),e.apply(t,r)})}),H=V.CSSStyleDeclaration.prototype.removeProperty,V.CSSStyleDeclaration.prototype.removeProperty=new Proxy(H,{apply:lr(function(e,t,r){var n,i=r[0];if(q.has(i))return H.apply(t,[i]);var s=ll(null==(n=t.parentRule)?void 0:n.parentStyleSheet,B,z.styleMirror),o=s.id,a=s.styleId;return(o&&-1!==o||a&&-1!==a)&&j({id:o,styleId:a,remove:{property:i},index:lu(t.parentRule)}),e.apply(t,r)})}),h=lr(function(){V.CSSStyleDeclaration.prototype.setProperty=W,V.CSSStyleDeclaration.prototype.removeProperty=H}),e.collectFonts&&(p=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,r){var n=new o(e,t,r);return s.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=uE(r.fonts,"add",function(e){return function(r){return setTimeout(lr(function(){var e=s.get(r);e&&(t(e),s.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=o}),i.push(a),lr(function(){i.forEach(function(e){return e()})})}(e)));for(var d,f,g,v,m,_,y,b,w,k,S,x,E,C,I,O,R,M,A,T,P,F,D,L,N,$,U,j,B,q,z,V,W,H,G,Y,J,Z,K,X,Q,ee,et,er,en,ei,es=(G=e.doc,Y=e.mirror,J=e.blockClass,Z=e.blockSelector,K=e.selectionCb,X=!0,(Q=lr(function(){var e=G.getSelection();if(e&&(!X||null==e||!e.isCollapsed)){X=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),s=i.startContainer,o=i.startOffset,a=i.endContainer,c=i.endOffset;uV(s,J,Z,!0)||uV(a,J,Z,!0)||t.push({start:Y.getId(s),startOffset:o,end:Y.getId(a),endOffset:c})}K({ranges:t})}}))(),uF("selectionchange",Q)),eo=(ee=e.doc,et=e.customElementCb,(er=ee.defaultView)&&er.customElements?uE(er.customElements,"define",function(e){return function(t,r,n){try{et({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),ea=[],ec=or(e.plugins);!(ei=ec()).done;){var eu=ei.value;ea.push(eu.observer(eu.callback,r,eu.options))}
1return lr(function(){ln.forEach(function(e){return e.reset()}),null==en||en.disconnect(),n(),i(),s(),o(),a(),c(),u(),l(),h(),p(),es(),eo(),ea.forEach(function(e){return e()})})}function ld(e){return void 0!==window[e]}function lf(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var lg=function(){function e(e){oo(this,"iframeIdToRemoteIdMap",new WeakMap),oo(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),s=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),s.set(o,t)),o},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
vendor: 1,547 bytes, line 1
1return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),lv=function(){function e(e){oo(this,"iframes",new WeakMap),oo(this,"crossOriginIframeMap",new WeakMap),oo(this,"crossOriginIframeMirror",new lg(oj)),oo(this,"crossOriginIframeStyleMirror"),oo(this,"crossOriginIframeRootIdMap",new WeakMap),oo(this,"iframeContentDocumentMap",new WeakMap),oo(this,"iframeObserverCleanupMap",new WeakMap),oo(this,"mirror"),oo(this,"mutationCb"),oo(this,"wrappedEmit"),oo(this,"loadListener"),oo(this,"stylesheetManager"),oo(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new lg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}
1,t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case uQ.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:uQ.IncrementalSnapshot,data:{source:u0.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case uQ.Meta:case uQ.Load:case uQ.DomContentLoaded:break;case uQ.Plugin:return t;case uQ.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case uQ.IncrementalSnapshot:switch(t.data.source){case u0.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case u0.Drag:case u0.TouchMove:case u0.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case u0.ViewportResize:return!1;case u0.MediaInteraction:case u0.MouseInteraction:case u0.Scroll:case u0.CanvasMutation:case u0.Input:return this.replaceIds(t.data,e,["id"]),t;case u0.StyleSheetRule:case u0.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case u0.Font:return t;case u0.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case u0.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,s=or(n);!(i=s()).done;){var o=i.value;(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===u4.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),lm=function(){function e(e){oo(this,"shadowDoms",new WeakSet),oo(this,"mutationCb"),oo(this,"scrollCb"),oo(this,"bypassOptions"),oo(this,"mirror"),oo(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(oS(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=ls(s3({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(lo(s3({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(uT(e))),r.restoreHandlers.push(lh({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(uE(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),s=uP(this);return s&&uX(this)&&r.addShadowRoot(s,t),i}}))}
1,t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),l_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ly="u"<typeof Uint8Array?[]:new Uint8Array(256),lb=0;lb<l_.length;lb++)ly[l_.charCodeAt(lb)]=lb;var lw=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=l_[r[t]>>2],i+=l_[(3&r[t])<<4|r[t+1]>>4],i+=l_[(15&r[t+1])<<2|r[t+2]>>6],i+=l_[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},lk=new Map,lS=function(e,t,r){if(e&&(lE(e,t)||(void 0===e?"undefined":s7(e))==="object")){var n,i=e.constructor.name,s=((n=lk.get(r))||(n=new Map,lk.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),o=s.indexOf(e);return -1===o&&(o=s.length,s.push(e)),o}},lx=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(s6(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(s6(t,Float32Array)||s6(t,Float64Array)||s6(t,Int32Array)||s6(t,Uint32Array)||s6(t,Uint8Array)||s6(t,Uint16Array)||s6(t,Int16Array)||s6(t,Int8Array)||s6(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(s6(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:lw(t)};else if(s6(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(s6(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(s6(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(s6(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(lE(t,r)||(void 0===t?"undefined":s7(t))==="object")return{rr_type:t.constructor.name,index:lS(t,r,n)};return t}(e,t,r)})},lE=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return s6(e,t[r])})};function lC(e,t,r,n){var i=[];try{var s=uE(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var s=arguments.length,o=Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];if(!uV(this,t,r,!0)){var c="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(o[0]&&"object"===s7(o[0])){var u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],o))}});i.push(s)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function lI(e,t,r,n,i,s){for(var o,a=[],c=Object.getOwnPropertyNames(e),u=or(c);!(o=u()).done;)!function(){var c=o.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if("function"!=typeof e[c])return"continue";var u=uE(e,c,function(e){return function(){for(var o=arguments.length,a=Array(o),u=0;u<o;u++)a[u]=arguments[u];var l=e.apply(this,a);if(lS(l,s,this),"tagName"in this.canvas&&!uV(this.canvas,n,i,!0)){var h=lx(a,s,this);r(this.canvas,{type:t,property:c,args:h})}return l}});a.push(u)}catch(n){a.push(u$(e,c,{set:function(e){r(this.canvas,{type:t,property:c,args:[e],setter:!0})}}))}}();return a}var lO="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
1yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",lR="u">typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(lO),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function lM(e){var t;try{if(!(t=lR&&(window.URL||window.webkitURL).createObjectURL(lR)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+lO,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var lA=function(){function e(e){var t=this;oo(this,"pendingCanvasMutations",new Map),oo(this,"rafStamps",{latestId:0,invokeId:null}),oo(this,"mirror"),oo(this,"mutationCb"),oo(this,"resetObservers"),oo(this,"frozen",!1),oo(this,"locked",!1),oo(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,s=e.blockClass,o=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,s,o),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,s,o,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var s,o=this,a=lC(t,r,n,!0),c=new Map,u=new lM;u.onmessage=function(e){var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,a=r.height;o.mutationCb({id:t,type:u3["2D"],commands:[{property:"clearRect",args:[0,0,s,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l=1e3/e,h=0,p=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){uV(t,r,n,!0)||e.push(t)}),e},d=function(e){if(h&&e-h<l){s=requestAnimationFrame(d);return}
1h=e,p().forEach(s0(function(e){var t,r,n,s;return on(this,function(a){switch(a.label){case 0:if(r=o.mirror.getId(e),c.get(r)||0===e.width||0===e.height)return[2];return c.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(n=e.getContext(e.__context))?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&n.clear(n.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return s=a.sent(),u.postMessage({id:r,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),s=requestAnimationFrame(d)};s=requestAnimationFrame(d),this.resetObservers=function(){a(),cancelAnimationFrame(s)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,i,s=lC(e,t,r,!1),o=function(e,t,r,n){for(var i,s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=or(o);!(i=a()).done;)!function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=uE(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return uV(this.canvas,r,n,!0)||setTimeout(function(){var r=lx(c,t,s);e(s.canvas,{type:u3["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(r){var c=u$(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:u3["2D"],property:o,args:[t],setter:!0})}});s.push(c)}}();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),a=(n=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(lI(e.WebGLRenderingContext.prototype,u3.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(lI(e.WebGL2RenderingContext.prototype,u3.WebGL2,n,t,r,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){s(),o(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,s8(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),lT=function(){function e(e){oo(this,"trackedLinkElements",new WeakSet),oo(this,"mutationCb"),oo(this,"adoptedStyleSheetCb"),oo(this,"styleMirror",new uZ),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){if(0!==e.length){for(var r,n,i={id:t,styleIds:[]},s=[],o=or(e);!(n=o()).done;)r=this,function(){var e=n.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:oE(t,e.href),index:r}})})),i.styleIds.push(t)}();s.length>0&&(i.styles=s),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE&&e.adoptedStyleSheets)for(var r,n=or(e.adoptedStyleSheets);!(r=n()).done;){var i=r.value;this.styleMirror.remove(i)}"STYLE"===e.nodeName&&e.sheet&&this.styleMirror.remove(e.sheet),"LINK"===e.nodeName&&"stylesheet"===e.rel&&e.sheet&&this.styleMirror.remove(e.sheet),e.childNodes&&e.childNodes.forEac
1h(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),lP=function(){function e(){oo(this,"nodeMap",new WeakMap),oo(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),lF=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var lD=document.createElement("iframe");document.body.appendChild(lD),Array.from=(null==(pf=lD.contentWindow)?void 0:pf.Array.from)||Array.from,document.body.removeChild(lD)}}catch(e){console.debug("Unable to override Array.from",e)}var lL=new oC;function lN(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,s=void 0===i?"rr-block":i,o=e.blockSelector,a=void 0===o?null:o,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,d=void 0===p?"rr-mask":p,f=e.maskTextSelector,g=void 0===f?null:f,v=e.inlineStylesheet,m=void 0===v||v,_=e.maskAllInputs,y=e.maskInputOptions,b=e.slimDOMOptions,w=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,E=e.sampling,C=void 0===E?{}:E,I=e.dataURLOptions,O=void 0===I?{}:I,R=e.mousemoveWait,M=e.recordDOM,A=void 0===M||M,T=e.recordCanvas,P=void 0!==T&&T,F=e.recordCrossOriginIframes,D=void 0!==F&&F,L=e.recordAfter,N=void 0===L?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":L,$=e.userTriggeredOnInput,U=void 0!==$&&$,j=e.collectFonts,B=void 0!==j&&j,q=e.inlineImages,z=void 0!==q&&q,V=e.plugins,W=e.keepIframeSrcFn,H=void 0===W?function(){return!1}:W,G=e.ignoreCSSAttributes,Y=void 0===G?new Set([]):G;pP=e.errorHandler;var J=!D||window.parent===window,Z=!1;if(!J)try{window.parent.document&&(Z=!1)}catch(e){Z=!0}if(J&&!t)throw Error("emit function is required");if(!J&&!Z)return function(){};void 0!==R&&void 0===C.mousemove&&(C.mousemove=R),lL.reset();var K=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==y?y:{password:!0},X=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};void 0===et&&(et=window),"NodeList"in et&&!et.NodeList.prototype.forEach&&(et.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in et&&!et.DOMTokenList.prototype.forEach&&(et.DOMTokenList.prototype.forEach=Array.prototype.forEach);var Q=0,ee=function(e){for(var t,r=or(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!Z&&(e=x(e)),e};pF=function(e,i){var s;if(e.timestamp=uU(),(null==(s=ln[0])?void 0:s.isFrozen())&&e.type!==uQ.FullSnapshot&&(e.type!==uQ.IncrementalSnapshot||e.data.source!==u0.Mutation)&&ln.forEach(function(e){return e.unfreeze()}),J)null==t||t(ee(e),i);else if(Z){var o={type:"rrweb",event:ee(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(o,"*")}if(e.type===uQ.FullSnapshot)er=e,Q=0;else if(e.type===uQ.IncrementalSnapshot){if(e.data.source===u0.Mutation&&e.data.isAttachIframe)return;Q++;var a=n&&Q>=n,c=r&&e.timestamp-er.timestamp>r;(a||c)&&pD(!0)}};for(var et,er,en,ei=function(e){pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.Mutation},e)})},es=function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.Scroll},e)})},eo=function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.CanvasMutation},e)})},ea=new lT({mutationCb:ei,adoptedStyleSheetCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.AdoptedStyleSheet},e)})}}),ec=new lv({mirror:lL,mutationCb:ei,stylesheetManager:ea,recordCrossOriginIframes:D,wrappedEmit:pF}),eu=or(V||[]);!(en=eu()).done;){var el=en.value;el.getMirror&&el.getMirror({nodeMirror:lL,crossOriginIframeMirror:ec.crossOriginIframeMirror,crossOriginIframeStyleMirror:ec.crossOriginIframeStyleMirror})}var eh=new lP;
1pL=new lA({recordCanvas:P,mutationCb:eo,win:window,blockClass:s,blockSelector:a,mirror:lL,sampling:C.canvas,dataURLOptions:O});var ep=new lm({mutationCb:ei,scrollCb:es,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:d,maskTextSelector:g,inlineStylesheet:m,maskInputOptions:K,dataURLOptions:O,maskTextFn:k,maskInputFn:w,recordCanvas:P,inlineImages:z,sampling:C,slimDOMOptions:X,iframeManager:ec,stylesheetManager:ea,canvasManager:pL,keepIframeSrcFn:H,processedNodeManager:eh},mirror:lL});pD=function(e){if(void 0===e&&(e=!1),A){pF({type:uQ.Meta,data:{href:window.location.href,width:uq(),height:uB()}},e),ea.reset(),ep.init(),ln.forEach(function(e){return e.lock()});var t,r,n,i,o,c,u,l,h,p,f,v,_,y,b,S,x,E,C,I,R,M,T,F,D=(t=document,i=void 0===(n=(r={mirror:lL,blockClass:s,blockSelector:a,maskTextClass:d,maskTextSelector:g,inlineStylesheet:m,maskAllInputs:K,maskTextFn:k,maskInputFn:w,slimDOM:X,dataURLOptions:O,recordCanvas:P,inlineImages:z,onSerialize:function(e){uG(e,lL)&&ec.addIframe(e),uY(e,lL)&&ea.trackLinkElement(e),uJ(e)&&ep.addShadowRoot(uP(e),document)},onIframeLoad:function(e,t){ec.attachIframe(e,t),ep.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ea.attachLinkElement(e,t)},keepIframeSrcFn:H}).mirror)?new oC:n,o=r.blockClass,c=r.blockSelector,u=r.maskTextClass,l=r.maskTextSelector,h=r.inlineStylesheet,p=r.inlineImages,f=r.recordCanvas,_=void 0!==(v=r.maskAllInputs)&&v,y=r.maskTextFn,b=r.maskInputFn,x=void 0!==(S=r.slimDOM)&&S,E=r.dataURLOptions,C=r.preserveWhiteSpace,I=r.onSerialize,R=r.onIframeLoad,M=r.iframeLoadTimeout,T=r.onStylesheetLoad,oK(t,{doc:t,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===c?null:c,maskTextClass:void 0===u?"rr-mask":u,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!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}:!1===_?{password:!0}:_,maskTextFn:y,maskInputFn:b,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:E,inlineImages:void 0!==p&&p,recordCanvas:void 0!==f&&f,preserveWhiteSpace:C,onSerialize:I,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:T,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(F=r.keepIframeSrcFn)?function(){return!1}:F,newlyAddedElement:!1}));if(!D)return console.warn("Failed to snapshot the document");pF({type:uQ.FullSnapshot,data:{node:D,initialOffset:uj(window)}},e),ln.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ea.adoptStyleSheets(document.adoptedStyleSheets,lL.getId(document))}};try{var ed=[],ef=function(e){var t;return lr(lp)({mutationCb:ei,mousemoveCb:function(e,t){return pF({type:uQ.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.MouseInteraction},e)})},scrollCb:es,viewportResizeCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.ViewportResize},e)})},inputCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.Input},e)})},mediaInteractionCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.MediaInteraction},e)})},styleSheetRuleCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.StyleSheetRule},e)})},styleDeclarationCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.StyleDeclaration},e)})},canvasMutationCb:eo,fontCb:function(e){return pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.Font},e)})},selectionCb:function(e){pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.Selection},e)})},customElementCb:function(e){pF({type:uQ.IncrementalSnapshot,data:s3({source:u0.CustomElement},e)})},blockClass:s,ignoreClass:u,ignoreSelector:h,maskTextClass:d,maskTextSelector:g,maskInputOptions:K,inlineStylesheet:m,sampling:C,recordDOM:A,recordCanvas:P,inlineImages:z,userTriggeredOnInput:U,collectFonts:B,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:H,blockSelector:a,slimDOMOptions:X,dataURLOptions:O,mirror:lL,iframeManager:ec,stylesheetManager:ea,shadowDomManager:ep,processedNodeManager:eh,canvasManager:pL,ignoreCSSAttributes:Y,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return pF({type:uQ.Plugin,data:{plugin:e.name,payload:t}}
1)}}}))||[]},S)};ec.addLoadListener(function(e){try{var t=e.contentDocument,r=ef(t);ed.push(r);var n=ec.getObserverCleanup(e);ec.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=ed.indexOf(r);-1!==e&&ed.splice(e,1);for(var i=ln.length-1;i>=0;i--)ln[i].getDoc()===t&&ln.splice(i,1)}catch(e){}})}catch(e){console.warn(e)}});var eg=function(){pD(),ed.push(ef(document)),lF=!0};return"interactive"===document.readyState||"complete"===document.readyState?eg():(ed.push(uF("DOMContentLoaded",function(){pF({type:uQ.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&eg()})),ed.push(uF("load",function(){pF({type:uQ.Load,data:{}}),"load"===N&&eg()},window))),function(){ed.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),eh.destroy(),lF=!1,pP=void 0}}catch(e){console.warn(e)}}lN.addCustomEvent=function(e,t){if(!lF)throw Error("please add custom event after start recording");pF({type:uQ.Custom,data:{tag:e,payload:t}})},lN.freezePage=function(){ln.forEach(function(e){return e.freeze()})},lN.takeFullSnapshot=function(e){if(!lF)throw Error("please take full snapshot after start recording");pD(e)},lN.mirror=lL,(pp=pN||(pN={}))[pp.NotStarted=0]="NotStarted",pp[pp.Running=1]="Running",pp[pp.Stopped=2]="Stopped",lN.addCustomEvent,lN.freezePage,lN.takeFullSnapshot;var l$={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lU={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},lj={};function lB(e){if(lj[e])return lj[e];var t=globalThis[e],r=t.prototype,n=e in l$?l$[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),s=e in lU?lU[e]:void 0,o=!!(s&&s.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!globalThis.Zone)return lj[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return lj[e]=u}catch(e){return r}}var lq={},lz=function(e){var t="Node",r=e,n="parentNode",i,s=t+"."+String(n);if(lq[s])return lq[s].call(r);var o=null==(i=Object.getOwnPropertyDescriptor(lB(t),n))?void 0:i.get;return o?(lq[s]=o,o.call(r)):r[n]},lV={exports:{}},lW=String,lH=function(){return{isColorSupported:!1,reset:lW,bold:lW,dim:lW,italic:lW,underline:lW,inverse:lW,hidden:lW,strikethrough:lW,black:lW,red:lW,green:lW,yellow:lW,blue:lW,magenta:lW,cyan:lW,white:lW,gray:lW,bgBlack:lW,bgRed:lW,bgGreen:lW,bgYellow:lW,bgBlue:lW,bgMagenta:lW,bgCyan:lW,bgWhite:lW}};lV.exports=lH(),lV.exports.createColors=lH;var lG=lV.exports,lY=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return s6(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),lJ=function(e){function t(r,n,i,s,o,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,o&&(c.file=o),s&&(c.source=s),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}s4(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=lG.isColorSupported),lY&&e&&(i=lY(i));var s=i.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),c=String(a).length;if(e){var u=lG.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return s.slice(o,a).map(function(e,i){var s=o+1+i,a=" "+(" "+s).slice(-c)+" | ";if(s===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(oe(Error));lJ.default=lJ;var lZ={};lZ.isClean=Symbol("isClean"),lZ.my=Symbol("my");var lK={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},lX=function(){function e(e){this.builder=e}var t=e.prototype;
1return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var s=this.raw(e,null,"indent");if(s.length)for(var o=0;o<i;o++)r+=s}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return lK[r];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?n=this[a](s,e):s.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=lK[r]),s.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function lQ(e,t){new lX(t).stringify(e)}lX.default=lX,lQ.default=lQ;var l0=lZ.isClean,l1=lZ.my,l2=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[l0]=!1,this[l1]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=or(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],o=void 0===s?"undefined":s7(s);"parent"===i&&"object"===o?r&&(n[i]=r):"source"===i?n[i]=s:Array.isArray(s)?n[i]=s.map(function(t){return e(t,n)}):("object"===o&&null!==s&&(s=e(s)),n[i]=s)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new lJ(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[l0]){this[l0]=!1;for(var e=this;e=e.parent;)e[l0]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,s=0;s<e;s++)"\n"===r[s]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new lX().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,s=!1,o=or(t);!(n=o()).done;){var a=n.value;a===this?s=!0:s?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}s||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var s in this)if(Object.prototype.hasOwnProperty.call(this,s)&&"parent"!==s&&"proxyCache"!==s){var o=this[s];if(Array.isArray(o))r[s]=o.map(function(e){return(void 0===e?"undefined":s7(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===o?"undefined":s7(o))==="object"&&o.toJSON)r[s]=o.toJSON(null,t);else if("source"===s){var a=t.get(o.input);null==a&&(a=i,t.set(o.input,i),i++),r[s]={end:o.end,inputId:a,start:o.start}}else r[s]=o}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=lQ),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},s2(e,[{key:"proxyOf",get:function(){return this}}]),e}();l2.default=l2;var l3=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=s3({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return s4(t,e),s2(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(l2);l3.default=l3;var l5=lY.SourceMapConsumer,l4=lY.SourceMapGenerator,l6=lY.existsSync,l8=lY.readFileSync,l9=lY.dirname,l7=lY.join,he=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=l9(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new l5(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),sY.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":s7(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=l9(e),l6(e))return this.mapFile=e,l8(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(s6(t,l5))return l4.fromSourceMap(t).toString();else if(s6(t,l4))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=l7(l9(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();he.default=he;var ht=lY.SourceMapConsumer,hr=lY.SourceMapGenerator,hn=lY.fileURLToPath,hi=lY.pathToFileURL,hs=lY.isAbsolute,ho=lY.resolve,ha=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,hc=Symbol("fromOffsetCache"),hu=!!(ht&&hr),hl=!!(ho&&hs),hh=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":s7(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!hl||/^\w+:\/\//.test(t.from)||hs(t.from)?this.file=t.from:this.file=ho(t.from)),hl&&hu){var r=new he(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ha(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":s7(t))==="object"){var i,s,o,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);s=l.line,o=l.col}else s=c.line,o=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,s,o);return(i=p?new lJ(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new lJ(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:o,line:s},this.css,this.file,n.plugin)).input={column:r,endColumn:o,endLine:s,line:t,source:this.css},this.file&&(hi&&(i.input.url=hi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[hc])a=this[hc];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[hc]=a}o=a[a.length-1];var s=0;if(e>=o)s=a.length-1;else for(var o,a,c,u=a.length-2;s<u;)if(e<a[c=s+(u-s>>1)])u=c-1;else if(e>=a[c+1])s=c+1;else{s=c;break}return{col:e-a[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ho(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,s,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:n,line:r})),s=hs(a.source)?hi(a.source):new URL(a.source,this.map.consumer().sourceRoot||hi(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:s.toString()};if("file:"===s.protocol)if(hn)c.file=hn(s);else throw Error("file: protocol is not available in this PostCSS build");var u=o.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=s3({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},s2(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();hh.default=hh,lY&&lY.registerInput&&lY.registerInput(hh);var hp=lY.SourceMapConsumer,hd=lY.SourceMapGenerator,hf=lY.dirname,hg=lY.relative,hv=lY.resolve,hm=lY.sep,h_=lY.pathToFileURL,hy=!!(hp&&hd),hb=!!(hf&&hv&&hg&&hm),hw=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=or(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||hf(r.file),s=void 0;!1===this.mapOpts.sourcesContent?(s=new hp(r.text)).sourcesContent&&(s.sourcesContent=null):s=r.consumer(),this.map.applySourceMap(s,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),hb&&hy&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hd.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hd({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new hd({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,s="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(o.generated.line=n,o.generated.column=i-1,c.source&&c.source.start?(o.source=r.sourcePath(c),o.original.line=c.source.start.line,o.original.column=c.source.start.column-1):(o.source=s,o.original.line=1,o.original.column=0),r.map.addMapping(o)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(o.source=r.sourcePath(c),o.original.line=c.source.end.line,o.original.column=c.source.end.column-1,o.generated.line=n,o.generated.column=i-2):(o.source=s,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=i-1),r.map.addMapping(o))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?hf(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=hf(hv(r,this.mapOpts.annotation)));var n=hg(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new hh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return sY.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(h_){var r=h_(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===hm&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),hk=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return s4(t,e),t}(l2);hk.default=hk;var hS=lZ.isClean,hx=lZ.my,hE=function(e){function t(){return e.apply(this,arguments)||this}s4(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=or(t);!(n=i()).done;)for(var s,o=n.value,a=this.normalize(o,this.last),c=or(a);!(s=c()).done;){var u=s.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=or(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var s,o=or(i);!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var o,a=or(s);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+s.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(p$(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,s=or(e);!(i=s()).done;){var o=i.value;o.parent&&o.parent.removeChild(o,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=or(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l3(e)]}else if(e.selector)e=[new pU(e)];else if(e.name)e=[new pj(e)];else if(e.text)e=[new hk(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[hx]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[hS]&&function e(t){if(t[hS]=!1,t.proxyOf.nodes)for(var r,n=or(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=or(t);!(n=i()).done;){for(var s,o=n.value,a=this.normalize(o,this.first,"prepend").reverse(),c=or(a);!(s=c()).done;){var u=s.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=or(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?s6(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},s2(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(l2);hE.registerParse=function(e){p$=e},hE.registerRule=function(e){pU=e},hE.registerAtRule=function(e){pj=e},hE.registerRoot=function(e){pB=e},hE.default=hE,hE.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,pj.prototype):"rule"===e.type?Object.setPrototypeOf(e,pU.prototype):"decl"===e.type?Object.setPrototypeOf(e,l3.prototype):"comment"===e.type?Object.setPrototypeOf(e,hk.prototype):"root"===e.type&&Object.setPrototypeOf(e,pB.prototype),e[hx]=!0,e.nodes&&e.nodes.forEac
1h(function(e){hE.rebuild(e)})};var hC=function(e){function t(t){var r;return(r=e.call(this,s3({type:"document"},t))||this).nodes||(r.nodes=[]),r}return s4(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new pq(new pz,this,e).stringify()},t}(hE);hC.registerLazyResult=function(e){pq=e},hC.registerProcessor=function(e){pz=e},hC.default=hC;var hI=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();hI.default=hI;var hO=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new hI(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},s2(e,[{key:"content",get:function(){return this.css}}]),e}();hO.default=hO;var hR=/[\t\n\f\r "#'()/;[\\\]{}]/g,hM=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,hA=/.[\r\n"'(/\\]/,hT=/[\da-f]/i,hP=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}s4(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(hE);hP.default=hP,hE.registerAtRule(hP);var hF=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}s4(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var s,o=or(i);!(s=o()).done;)s.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new pV(new pW,this,e).stringify()},t}(hE);hF.registerLazyResult=function(e){pV=e},hF.registerProcessor=function(e){pW=e},hF.default=hF,hE.registerRoot(hF);var hD={comma:function(e){return hD.split(e,[","],!0)},space:function(e){return hD.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],s="",o=!1,a=0,c=!1,u="",l=!1,h=or(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(o=!0),o?(""!==s&&i.push(s.trim()),s="",o=!1):s+=p}return(r||""!==s)&&i.push(s.trim()),i}};hD.default=hD;var hL=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return s4(t,e),s2(t,[{key:"selectors",get:function(){return hD.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(hE);hL.default=hL,hE.registerRule(hL);var hN=function(e,t){void 0===t&&(t={});var r,n,i,s,o,a,c,u,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,g=0,v=[],m=[];function _(t){throw e.error("Unclosed "+t,g)}return{back:function(e){m.push(e)},endOfFile:function(){return 0===m.length&&g>=f},nextToken:function(e){if(m.length)return m.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var y=String.fromCharCode(r);h=[y,y,g];break;
1case 40:if(u=v.length?v.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else _("bracket");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),s=p.slice(g,n+1),-1===n||hA.test(s)?h=["(","(",g]:(h=["brackets",s,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else _("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:hR.lastIndex=g+1,hR.test(p),n=0===hR.lastIndex?p.length-1:hR.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,o=!0;92===p.charCodeAt(n+1);)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,hT.test(p.charAt(n)))){for(;hT.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:_("comment")),h=["comment",p.slice(g,n+1),g,n]):(hM.lastIndex=g+1,hM.test(p),n=0===hM.lastIndex?p.length-1:hM.lastIndex-2,h=["word",p.slice(g,n+1),g,n],v.push(h)),g=n}return g++,h}},position:function(){return g}}},h$={empty:!0,space:!0},hU=function(){function e(e){this.input=e,this.root=new hF,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new hP;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var s=!1,o=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,s=or(e.entries());!(n=s()).done;){var o=n.value,a=o[0],c=o[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new hk;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=hN(this.input)},t.decl=function(e,t){var r,n,i=new l3;this.init(i,e[0][2]);var s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new hL;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=c),s.push("}");else if(0===s.length)if(";"===r)if(n)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,s,o,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(s=(i=r[h])[0])||h!==c-1||n?"comment"===s?(a=r[h-1]?r[h-1][0]:"empty",o=r[h+1]?r[h+1][0]:"empty",h$[a]||h$[o]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new hL;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function hj(e,t){var r=new hU(new hh(e,t));try{r.parse()}catch(e){throw e}return r.root}hj.default=hj,hE.registerParse(hj);var hB=lZ.isClean,hq=lZ.my,hz={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},hV={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},hW={Once:!0,postcssPlugin:!0,prepare:!0};function hH(e){return(void 0===e?"undefined":s7(e))==="object"&&"function"==typeof e.then}function hG(e){var t=!1,r=hz[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function hY(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:hG(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function hJ(e){return e[hB]=!1,e.nodes&&e.nodes.forEach(function(e){return hJ(e)}),e}var hZ={},hK=function(){function e(t,r,n){var i,s=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":s7(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=hJ(r);else if(s6(r,e)||s6(r,hO))i=hJ(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var o=hj;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[hq]&&hE.rebuild(i)}this.result=new hO(t,i,n),this.helpers=s3({},hZ,{postcss:hZ,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":s7(e))==="object"&&e.prepare?s3({},e,e.prepare(s.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=or(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":s7(i))==="object")for(var s in i){if(!hV[s]&&/^[A-Z]/.test(s))throw Error("Unknown event "+s+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!hW[s])if("object"===s7(i[s]))for(var o in i[s])r(i,"*"===o?s:s+"-"+o.toLowerCase(),i[s][o]);else"function"==typeof i[s]&&r(i,s,i[s])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return s0(function(){var t,r,n,i,s,o,a,c,u,l,h,p;return on(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!hH(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];s=e.result.root,d.label=7;case 7:if(s[hB])return[3,14];s[hB]=!0,o=[hY(s)],d.label=8;case 8:if(!(o.length>0))return[3,13];if(!hH(a=e.visitTick(o)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.sent(),u=o[o.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return on(this,function(o){switch(o.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,o.label=1;case 1:if(o.trys.push([1,6,,7]),"document"!==s.type)return[3,3];return[4,Promise.all(s.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return o.sent(),[3,5];case 3:return[4,n(s,e.helpers)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:throw i=o.sent(),e.handleError(i);case 7:return[2]}})},h=or(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,oi(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":s7(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(hH(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=lQ;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new hw(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=or(this.plugins);!(e=t()).done;){var r=e.value;if(hH(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[hB];)n[hB]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,s=or(n.nodes);!(i=s()).done;){var o=i.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=or(e);!(r=n()).done;){var i=r.value,s=i[0],o=i[1];this.result.lastPlugin=s;var a=void 0;try{a=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(hH(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],s=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return o(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[hB]){a[hB]=!0,e.push(hY(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[hB]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[hB]=!0;for(var r,n=hG(e),i=or(n);!(r=i()).done;){var s=r.value;if(0===s)e.nodes&&e.each(function(e){e[hB]||t.walkSync(e)});else{var o=this.listeners[s];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},s2(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();hK.registerPostcss=function(e){hZ=e},hK.default=hK,hF.registerLazyResult(hK),hC.registerLazyResult(hK);var hX=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new hO(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var s=new hw(lQ,n,this._opts,t);if(s.isMap()){var o=s.generate(),a=o[0],c=o[1];a&&(this.result.css=a),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},s2(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=hj(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();hX.default=hX;var hQ=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=or(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":s7(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":s7(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":s7(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new hK(this,e,t):new hX(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function h0(e,t){if(Array.isArray(e))return e.map(function(e){return h0(e)});var r=e.inputs,n=s8(e,["inputs"]);if(r){t=[];for(var i,s=or(r);!(i=s()).done;){var o=i.value,a=s3({},o,{__proto__:hh.prototype});a.map&&(a.map=s3({},a.map,{__proto__:he.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return h0(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=s8(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new hF(n);if("decl"===n.type)return new l3(n);if("rule"===n.type)return new hL(n);if("comment"===n.type)return new hk(n);if("atrule"===n.type)return new hP(n);else throw Error("Unknown node type: "+e.type)}function h1(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new hQ(t)}hQ.default=hQ,hF.registerProcessor(hQ),hC.registerProcessor(hQ),h0.default=h0,h1.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),y.default.env.LANG&&y.default.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));
1var o=t.apply(void 0,[].concat(i));return o.postcssPlugin=e,o.postcssVersion=new hQ().version,o}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return h1([i(r)]).process(e,t)},i},h1.stringify=lQ,h1.parse=hj,h1.fromJSON=h0,h1.list=hD,h1.comment=function(e){return new hk(e)},h1.atRule=function(e){return new hP(e)},h1.decl=function(e){return new l3(e)},h1.rule=function(e){return new hL(e)},h1.root=function(e){return new hF(e)},h1.document=function(e){return new hC(e)},h1.CssSyntaxError=lJ,h1.Declaration=l3,h1.Container=hE,h1.Processor=hQ,h1.Document=hC,h1.Comment=hk,h1.Warning=hI,h1.AtRule=hP,h1.Result=hO,h1.Input=hh,h1.Rule=hL,h1.Root=hF,h1.Node=l2,hK.registerPostcss(h1),h1.default=h1;var h2=h1&&h1.__esModule&&Object.prototype.hasOwnProperty.call(h1,"default")?h1.default:h1;h2.stringify,h2.fromJSON,h2.plugin,h2.parse,h2.list,h2.document,h2.comment,h2.atRule,h2.rule,h2.decl,h2.root,h2.CssSyntaxError,h2.Declaration,h2.Container,h2.Processor,h2.Document,h2.Comment,h2.Warning,h2.AtRule,h2.Result,h2.Input,h2.Rule,h2.Root,h2.Node;var h3=Object.defineProperty,h5=function(e,t,r){var n;return n=(void 0===t?"undefined":s7(t))!=="symbol"?t+"":t,n in e?h3(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},h4=function(){function e(e){h5(this,"fileName"),h5(this,"functionName"),h5(this,"lineNumber"),h5(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),h6=/(^|@)\S+:\d+/,h8=/^\s*at .*(\S+:\d+|\(native\))/m,h9=/^(eval@)?(\[native code])?$/,h7={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(h8)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(h8)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop());return new h4({functionName:n.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(h9)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new h4({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new h4({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,s=r.length;i<s;i+=2){var o=t.exec(r[i]);o&&n.push(new h4({fileName:o[2],lineNumber:parseFloat(o[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,s=r.length;i<s;i+=2){var o=t.exec(r[i]);o&&n.push(new h4({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(h6)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop());return new h4({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function pe(e){return"[object Object]"===Object.prototype.toString.call(e)}
1function pt(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var s,o,a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(pe(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||pe(s)&&function e(t,r){if(0===r)return!0;for(var n,i=Object.keys(t),s=or(i);!(n=s()).done;){var o=n.value;if(pe(t[o])&&e(t[o],r-1))return!0}return!1}(s,r.depthOfLimit)){return o=t.toString(),r.stringLengthLimit&&o.length>r.stringLengthLimit&&(o=""+o.slice(0,r.stringLengthLimit)+"..."),o}if((void 0===t?"undefined":s7(t))==="bigint")return t.toString()+"n";if(s6(t,Event)){var c={};for(var u in t){var l=t[u];Array.isArray(l)?c[u]=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var s=0;s<n.children.length;s++){var o=n.children[s];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===r&&i.push(o)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}(l.length?l[0]:null):c[u]=l}return c}return s6(t,Node)?s6(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:s6(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var pr={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function pn(e,t,r){var n=r?Object.assign({},pr,r):pr,i=n.logger;if(!i)return function(){};l="string"==typeof i?t[i]:i;var s=0,o=!1,a=[];if(n.level.includes("error")){var c=function(t){var r=t.message,i=t.error;e({level:"error",trace:h7.parse(i).map(function(e){return e.toString()}),payload:[pt(r,n.stringifyOptions)]})};t.addEventListener("error",c),a.push(function(){t.removeEventListener("error",c)});var u=function(t){var r,i;s6(t.reason,Error)?i=[pt("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[pt("Uncaught (in promise)",n.stringifyOptions),pt(t.reason,n.stringifyOptions)]),e({level:"error",trace:h7.parse(r).map(function(e){return e.toString()}),payload:i})};t.addEventListener("unhandledrejection",u),a.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var l,h,p=or(n.level);!(h=p()).done;){var d=h.value;a.push(function(t,r){var i=this;if(!t[r])return function(){};try{if(!(r in t))return function(){};var a=t[r],c=function(t){return function(){for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];if((t.apply(i,c),"assert"!==r||!c[0])&&!o){o=!0;try{var l=h7.parse(Error()).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return pt(e,n.stringifyOptions)});++s<n.lengthThreshold?e({level:r,trace:l,payload:h}):s===n.lengthThreshold&&e({level:"warn",trace:[],payload:[pt("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{o=!1}}}}(a);return"function"==typeof c&&(c.prototype=c.prototype||{},Object.defineProperties(c,{__rrweb_original__:{enumerable:!1,value:a}})),t[r]=c,function(){t[r]=a}}catch(e){return function(){}}}(l,d))}return function(){a.forEach(function(e){return e()})}}var pi,ps,po,pa,pc,pu,pl,ph,pp,pd,pf,pg,pv,pm,p_,py,pb,pw,pk,pS,px,pE,pC,pI,pO,pR,pM,pA,pT,pP,pF,pD,pL,pN,p$,pU,pj,pB,pq,pz,pV,pW,pH,pG,pY,pJ=pd.setImmediate,pZ=Object.prototype.toString,pK=void 0!==pJ?function(e){return pJ(e)}:setTimeout;try{Object.defineProperty({},"x",{}),pH=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){pH=function(e,t,r){return e[t]=r,e}}function pX(e,t){pY.add(e,t),pG||(pG=pK(pY.drain))}function pQ(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function p0(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=pQ(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function p1(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=pQ(e))?pX(function(){var n=new p5(r);try{t.call(e,function(){p1.apply(n,arguments)},function(){p2.apply(n,arguments)})}catch(e){p2.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&pX(p0,r))}catch(e){p2.call(new p5(r),e)}}}function p2(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&pX(p0,t))}function p3(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function p5(e){this.def=e,this.triggered=!1}function p4(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p6(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;
1var t=new p4(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&pX(p0,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){p1.call(t,e)},function(e){p2.call(t,e)})}catch(e){p2.call(t,e)}}pY=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,s){r=new n(i,s),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=pG=void 0;r;)r.fn.call(r.self),r=r.next}}}();var p8=pH({},"constructor",p6,!1);p6.prototype=p8,pH(p8,"__NPO__",0,!1),pH(p6,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),pH(p6,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),pH(p6,"all",function(e){var t=this;return"[object Array]"!==pZ.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,s=Array(i),o=0;p3(t,e,function(e,t){s[e]=t,++o===i&&r(s)},n)})}),pH(p6,"race",function(e){var t=this;return"[object Array]"!==pZ.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");p3(t,e,function(e,t){r(t)},n)})}),g="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:p6;var p9={DEBUG:!1,LIB_VERSION:"2.75.0"},p7=Array.prototype,de=Function.prototype,dt=Object.prototype,dr=p7.slice,dn=dt.toString,di=dt.hasOwnProperty,ds=pd.console,da=pd.navigator,dc=pd.document,du=pd.opera,dl=pd.screen,dh=da.userAgent,dp=de.bind,dd=p7.forEach,df=p7.indexOf,dg=p7.map,dv=Array.isArray,dm={},d_={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},dy={log:function(){if(p9.DEBUG&&!d_.isUndefined(ds)&&ds)try{ds.log.apply(ds,arguments)}catch(e){d_.each(arguments,function(e){ds.log(e)})}},warn:function(){if(p9.DEBUG&&!d_.isUndefined(ds)&&ds){var e=["Mixpanel warning:"].concat(d_.toArray(arguments));try{ds.warn.apply(ds,e)}catch(t){d_.each(e,function(e){ds.warn(e)})}}},error:function(){if(p9.DEBUG&&!d_.isUndefined(ds)&&ds){var e=["Mixpanel error:"].concat(d_.toArray(arguments));try{ds.error.apply(ds,e)}catch(t){d_.each(e,function(e){ds.error(e)})}}},critical:function(){if(!d_.isUndefined(ds)&&ds){var e=["Mixpanel error:"].concat(d_.toArray(arguments));try{ds.error.apply(ds,e)}catch(t){d_.each(e,function(e){ds.error(e)})}}}},db=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(dy,arguments)}},dw=function(e){return{log:db(dy.log,e),error:db(dy.error,e),critical:db(dy.critical,e)}},dk=function(e){return function(){try{return e.apply(this,arguments)}catch(e){dy.critical("Implementation error. Please turn on debug and contact [email protected]."),p9.DEBUG&&dy.critical(e)}}},dS=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=dk(t[r]))};d_.bind=function(e,t){var r,n;if(dp&&e.bind===dp)return dp.apply(e,dr.call(arguments,1));if(!d_.isFunction(e))throw TypeError();return r=dr.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(dr.call(arguments)));var i={};i.prototype=e.prototype;var s=new i;i.prototype=null;var o=e.apply(s,r.concat(dr.call(arguments)));return Object(o)===o?o:s}},d_.each=function(e,t,r){if(null!=e){if(dd&&e.forEach===dd)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===dm)return}else for(var s in e)if(di.call(e,s)&&t.call(r,e[s],s,e)===dm)return}},d_.extend=function(e){return d_.each(dr.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},d_.isArray=dv||function(e){return"[object Array]"===dn.call(e)},d_.isFunction=function(e){return"function"==typeof e},d_.isArguments=function(e){return!!(e&&di.call(e,"callee"))},d_.toArray=function(e){return e?e.toArray?e.toArray():d_.isArray(e)||d_.isArguments(e)?dr.call(e):d_.values(e):[]},d_.map=function(e,t,r){if(dg&&e.map===dg)return e.map(t,r);var n=[];return d_.each(e,function(e){n.push(t.call(r,e))}),n},d_.keys=function(e){var t=[];return null===e||d_.each(e,function(e,r){t[t.length]=r}),t},d_.values=function(e){var t=[];return null===e||d_.each(e,function(e){t[t.length]=e}),t},d_.include=function(e,t){var r=!1;return null===e?r:df&&e.indexOf===df?-1!=e.indexOf(t):(d_.each(e,function(e){if(r||(r=e===t))return dm}),r)},d_.includes=function(e,t){return -1!==e.indexOf(t)},d_.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},d_.isObject=function(e){return e===Object(e)&&!d_.isArray(e)},d_.isEmptyObject=function(e){if(d_.isObject(e)){for(var t in e)if(di.call(e,t))return!1;return!0}return!1},d_.isUndefined=function(e){return void 0===e},d_.isString=function(e){return"[object String]"==dn.call(e)},d_.isDate=function(e){return"[object Date]"==dn.call(e)},d_.isNumber=function(e){return"[object Number]"==dn.call(e)},d_.isElement=function(e){return!!(e&&1===e.nodeType)},d_.encodeDates=function(e){return d_.each(e,function(t,r){d_.isDate(t)?e[r]=d_.formatDate(t):d_.isObject(t)&&(e[r]=d_.encodeDates(t))}),e},d_.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},d_.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},d_.strip_empty_properties=function(e){var t={};return d_.each(e,function(e,r){d_.isString(e)&&e.length>0&&(t[r]=e)}),t},d_.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):d_.isArray(e)?(r=[],d_.each(e,function(e){r.push(d_.truncate(e,t))})):d_.isObject(e)?(r={},d_.each(e,function(e,n){r[n]=d_.truncate(e,t)})):r=e,r},d_.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",s=0,o="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===dn.apply(h)){for(s=0,c=h.length;s<c;s+=1)l[s]=r(s,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(o in h)di.call(h,o)&&(a=r(o,h))&&l.push(t(o)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},o=function(e){var r=SyntaxError(e);throw r.at=t,r.text=n,r},a=function(e){return e&&e!==r&&o("Expected '"+e+"' instead of '"+r
1+"'"),r=n.charAt(t),t+=1,r},c=function(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),("-"===r||"+"===r)&&(t+=r,a());r>="0"&&r<="9";)t+=r,a();if(isFinite(e=+t))return e;o("Bad number")},u=function(){var e,t,n,i="";if('"'===r)for(;a();){if('"'===r)return a(),i;if("\\"===r)if(a(),"u"===r){for(t=0,n=0;t<4&&isFinite(e=parseInt(a(),16));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else if("string"==typeof s[r])i+=s[r];else break;else i+=r}o("Bad string")},l=function(){for(;r&&r<=" ";)a()},h=function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}o('Unexpected "'+r+'"')},p=function(){var e=[];if("["===r){if(a("["),l(),"]"===r)return a("]"),e;for(;r;){if(e.push(i()),l(),"]"===r)return a("]"),e;a(","),l()}}o("Bad array")},d=function(){var e,t={};if("{"===r){if(a("{"),l(),"}"===r)return a("}"),t;for(;r;){if(e=u(),l(),a(":"),Object.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=i(),l(),"}"===r)return a("}"),t;a(","),l()}}o("Bad object")},i=function(){switch(l(),r){case"{":return d();case"[":return p();case'"':return u();case"-":return c();default:return r>="0"&&r<="9"?c():h()}},d_.JSONDecode=function(e){var s;return n=e,t=0,r=" ",s=i(),l(),r&&o("Syntax error"),s},d_.base64Encode=function(e){var t,r,n,i,s,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",h=[];if(!e)return e;e=d_.utf8Encode(e);do t=e.charCodeAt(c++),r=(o=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,n=o>>12&63,i=o>>6&63,s=63&o,h[u++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(s);while(c<e.length)switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},d_.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",s=0;for(n=0,t=r=0,s=e.length;n<s;n++){var o=e.charCodeAt(n),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},d_.UUID=function(){try{return pd.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",d_.map(e,function(e){return e.toString(16)}).join("")}};var dx=["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"];d_.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<dx.length;t++)if(-1!==e.indexOf(dx[t]))return!0;return!1},d_.HTTPBuildQuery=function(e,t){var r,n,i=[];return d_.isUndefined(t)&&(t="&"),d_.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},d_.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){dy.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},d_.cookie={get:function(e){for(var t=e+"=",r=dc.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=d_.JSONDecode(d_.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,s,o){var a="",c="",u="";if(o)a="; domain="+o;else if(n){var l=dj(dc.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}s&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),dc.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,s,o){var a="",c="",u="";if(o)a="; domain="+o;else if(n){var l=dj(dc.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}s&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return dc.cookie=p,p},remove:function(e,t,r){d_.cookie.set(e,"",-1,t,!1,!1,r)}};var dE=function(e){var t=!0;
1try{var r="__mplss_"+dL(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},dC=null,dI=function(e,t){return null===dC||t?dC=dE(e||pd.localStorage):dC},dO=null;function dR(e,t,r){var n=function(e){dy.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||dy.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return d_.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var dM=null,dA=null;try{dM=pd.localStorage,dA=pd.sessionStorage}catch(e){}d_.localStorage=dR(dM,"localStorage",dI),d_.sessionStorage=dR(dA,"sessionStorage",function(e,t){return null===dO||t?dO=dE(e||pd.sessionStorage):dO}),d_.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,s){if(!t)return void dy.error("No valid element provided to register_event");if(t.addEventListener&&!i)t.addEventListener(r,n,!!s);else{var o,a,c,u="on"+r,l=t[u];t[u]=(o=t,a=n,c=l,function(t){if(t=t||e(pd.event)){var r,n,i=!0;return d_.isFunction(c)&&(r=c(t)),n=a.call(o,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var dT=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');d_.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!dc.getElementsByTagName)return[];var n=r.split(" "),i=[dc];for(f=0;f<n.length;f++){if((l=n[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=l.split("#"))[0];var s=h[1],o=dc.getElementById(s);if(!o||b&&o.nodeName.toLowerCase()!=b)return[];i=[o];continue}if(l.indexOf(".")>-1){b=(h=l.split("."))[0];var a,c=h[1];for(b||(b="*"),p=[],d=0,g=0;g<i.length;g++)for(v=0,m="*"==b?e(i[g]):i[g].getElementsByTagName(b);v<m.length;v++)p[d++]=m[v];for(g=0,i=[],_=0;g<p.length;g++)p[g].className&&d_.isString(p[g].className)&&(a=p[g],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(i[_++]=p[g]);continue}var u=l.match(dT);if(u){var l,h,p,d,f,g,v,m,_,y,b=u[1],w=u[2],k=u[3],S=u[4];for(b||(b="*"),p=[],d=0,g=0;g<i.length;g++)for(v=0,m="*"==b?e(i[g]):i[g].getElementsByTagName(b);v<m.length;v++)p[d++]=m[v];switch(i=[],_=0,k){case"=":y=function(e){return e.getAttribute(w)==S};break;case"~":y=function(e){return e.getAttribute(w).match(RegExp("\\b"+S+"\\b"))};break;case"|":y=function(e){return e.getAttribute(w).match(RegExp("^"+S+"-?"))};break;case"^":y=function(e){return 0===e.getAttribute(w).indexOf(S)};break;case"$":y=function(e){return e.getAttribute(w).lastIndexOf(S)==e.getAttribute(w).length-S.length};break;case"*":y=function(e){return e.getAttribute(w).indexOf(S)>-1};break;default:y=function(e){return e.getAttribute(w)}}for(g=0,i=[],_=0;g<p.length;g++)y(p[g])&&(i[_++]=p[g]);continue}for(g=0,b=l,p=[],d=0;g<i.length;g++)for(v=0,m=i[g].getElementsByTagName(b);v<m.length;v++)p[d++]=m[v];i=p}return i}return function(e){return d_.isElement(e)?[e]:d_.isObject(e)&&!d_.isUndefined(e.length)?e:r.call(this,e)}}();var dP=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],dF=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];d_.info={campaignParams:function(e){var t="",r={};return d_.each(dP,function(n){(t=d_.getQueryParam(dc.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return d_.each(dF,function(r){(e=d_.getQueryParam(dc.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return d_.extend(d_.info.campaignParams(),d_.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=d_.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=d_.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||d_.includes(e," OPR/"))return d_.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(d_.includes(e,"IEMobile")||d_.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(d_.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(d_.includes(e,"Edge")||d_.includes(e,"Edg/"))return"Microsoft Edge";else if(d_.includes(e,"FBIOS"))return"Facebook Mobile";else if(d_.includes(e,"Whale/"))return"Whale Browser";else if(d_.includes(e,"Chrome"))return"Chrome";else if(d_.includes(e,"CriOS"))return"Chrome iOS";else if(d_.includes(e,"UCWEB")||d_.includes(e,"UCBrowser"))return"UC Browser";else if(d_.includes(e,"FxiOS"))return"Firefox iOS";else if(d_.includes(t,"Apple"))return d_.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(d_.includes(e,"Android"))return"Android Mobile";else if(d_.includes(e,"Konqueror"))return"Konqueror";else if(d_.includes(e,"Firefox"))return"Firefox";else if(d_.includes(e,"MSIE")||d_.includes(e,"Trident/"))return"Internet Explorer";else if(d_.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[d_.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(dh))return/Phone/.test(dh)||/WPDesktop/.test(dh)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(dh))return"iOS";if(/Android/.test(dh))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(dh))return"BlackBerry";if(/Mac/i.test(dh))return"Mac OS X";else if(/Linux/.test(dh))return"Linux";else if(/CrOS/.test(dh))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return pd.location.href},properties:function(e){return"object"!=typeof e&&(e={}),d_.extend(d_.strip_empty_properties({$os:d_.info.os(),$browser:d_.info.browser(dh,da.vendor,du),$referrer:dc.referrer,$referring_domain:d_.info.referringDomain(dc.referrer),$device:d_.info.device(dh)}),{$current_url:d_.info.currentUrl(),$browser_version:d_.info.browserVersion(dh,da.vendor,du),$screen_height:dl.height,$screen_width:dl.width,mp_lib:"web",$lib_version:p9.LIB_VERSION,$insert_id:dL(),time:d_.timestamp()/1e3},d_.strip_empty_properties(e))},people_properties:function(){return d_.extend(d_.strip_empty_properties({$os:d_.info.os(),$browser:d_.info.browser(dh,da.vendor,du)}),{$browser_version:d_.info.browserVersion(dh,da.vendor,du)})},mpPageViewProperties:function(){return d_.strip_empty_properties({current_page_title:dc.title,current_domain:pd.location.hostname,current_url_path:pd.location.pathname,current_url_protocol:pd.location.protocol,current_url_search:pd.location.search})}};var dD=function(e,t){var r=null,n=[];return function(i){var s=this;return n.push(i),r||(r=new g(function(i){setTimeout(function(){var t=e.apply(s,[n]);r=null,n=[],i(t)},t)}
1)),r}},dL=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},dN=function(){return"00-"+d_.UUID().replace(/-/g,"")+"-"+d_.UUID().replace(/-/g,"").substring(0,16)+"-01"},d$=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,dU=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,dj=function(e){var t=dU,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=d$);var i=e.match(t);return i?i[0]:""},dB=function(){var e=pd.navigator.onLine;return d_.isUndefined(e)||e},dq=function(){},dz=null,dV=null;"u">typeof JSON&&(dz=JSON.stringify,dV=JSON.parse),dz=dz||d_.JSONEncode,dV=dV||d_.JSONDecode;var dW=function(e,t,r){if(!pd.CompressionStream)return!1;var n=d_.info.browser(e,t,r),i=d_.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};d_.info=d_.info,d_.info.browser=d_.info.browser,d_.info.browserVersion=d_.info.browserVersion,d_.info.device=d_.info.device,d_.info.properties=d_.info.properties,d_.isBlockedUA=d_.isBlockedUA,d_.isEmptyObject=d_.isEmptyObject,d_.isObject=d_.isObject,d_.JSONDecode=d_.JSONDecode,d_.JSONEncode=d_.JSONEncode,d_.toArray=d_.toArray,d_.NPO=p6;var dH="mixpanelRecordingEvents",dG="mixpanelRecordingRegistry",dY=[dH,dG],dJ=function(e){this.dbPromise=null,this.storeName=e};function dZ(e,t){d8(!0,e,t)}function dK(e,t){d8(!1,e,t)}function dX(e,t){return"1"===d6(e,t)}function dQ(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||pd,r=t.navigator||{},n=!1;return d_.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){d_.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return dy.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===d6(e,t);return r&&dy.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function d0(e){return d9(e,function(e){return this.get_config(e)})}function d1(e){return d9(e,function(e){return this._get_config(e)})}function d2(e){return d9(e,function(e){return this._get_config(e)})}function d3(e,t){d5(t=t||{}).remove(d4(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function d5(e){return"localStorage"===(e=e||{}).persistenceType?d_.localStorage:d_.cookie}function d4(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function d6(e,t){return d5(t).get(d4(e,t))}function d8(e,t,r){d_.isString(t)&&t.length?(d5(r=r||{}).set(d4(t,r),+!!e,d_.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):dy.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function d9(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=dQ(n,{ignoreDnt:i,persistenceType:s,persistencePrefix:o,window:a}))}catch(e){dy.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}dJ.prototype._openDb=function(){return new g(function(e,t){var r=pd.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;dY.forEach(function(e){t.createObjectStore(e)})}})},dJ.prototype.init=function(){return pd.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof pd.IDBDatabase?g.resolve():g.reject(e)})):g.reject("indexedDB is not supported in this browser")},dJ.prototype.isInitialized=function(){return!!this.dbPromise},dJ.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new g(function(i,s){var o=n.transaction(r,e);o.oncomplete=function(){i(o)},o.onabort=o.onerror=function(){s(o.error)},t(o.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):g.reject(e)}).bind(this))},dJ.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},dJ.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},dJ.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},dJ.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var d7=dw("lock"),fe=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||pd.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||g};fe.prototype.withLock=function(e,t){return new this.promiseImpl(d_.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),o=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=o+":X",h=o+":Y",p=o+":Z",d=function(e){if(new Date().getTime()-s>c){d7.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),v();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():d(function(){f(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(dI(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},v=function(){u.setItem(l,i),f(g,function(){u.getItem(l)===i?m():d(function(){u.getItem(h)!==i?v():f(function(){return!u.getItem(p)},m)})})},m=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(dI(u,!0))v();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var ft=function(e){this.storage=e||pd.localStorage};ft.prototype.init=function(){return g.resolve()},ft.prototype.isInitialized=function(){return!0},ft.prototype.setItem=function(e,t){return new g(d_.bind(function(r,n){try{this.storage.setItem(e,dz(t))}catch(e){n(e)}r()},this))},ft.prototype.getItem=function(e){return new g(d_.bind(function(t,r){var n;try{n=dV(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},ft.prototype.removeItem=function(e){return new g(d_.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var fr=dw("batch"),fn=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new ft,this.lock=new fe(e,{storage:t.sharedLockStorage||pd.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||d_.bind(fr.error,fr),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=dD(d_.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=d_.bind(function(e){return this._enqueuePersisted([e])},this)};fn.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?g.resolve():this.queueStorage.init(
1).then(d_.bind(function(){this.initialized=!0},this)).catch(d_.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},fn.prototype.enqueue=function(e,t){var r={id:dL(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),g.resolve(!0))},fn.prototype._enqueuePersisted=function(e){var t=d_.bind(function(){return this.ensureInit().then(d_.bind(function(){return this.readFromStorage()},this)).then(d_.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(d_.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(d_.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(d_.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},fn.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(d_.bind(function(){return this.readFromStorage()},this)).then(d_.bind(function(r){if(r.length){var n={};d_.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var s=r[i];if(new Date().getTime()>s.flushAfter&&!n[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}return t},this)):g.resolve(t)};var fi=function(e,t){var r=[];return d_.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};fn.prototype.removeItemsByID=function(e){var t={};if(d_.each(e,function(e){t[e]=!0}),this.memQueue=fi(this.memQueue,t),!this.usePersistence)return g.resolve(!0);var r=d_.bind(function(){return this.ensureInit().then(d_.bind(function(){return this.readFromStorage()},this)).then(d_.bind(function(e){return e=fi(e,t),this.saveToStorage(e)},this)).then(d_.bind(function(){return this.readFromStorage()},this)).then(d_.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw Error("Item not removed from storage")}return!0},this)).catch(d_.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(d_.bind(function(e){return this.reportError("Error acquiring storage lock",e),!dI(this.lock.storage,!0)&&r().then(d_.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(d_.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var fs=function(e,t){var r=[];return d_.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};fn.prototype.updatePayloads=function(e){return(this.memQueue=fs(this.memQueue,e),this.usePersistence)?this.lock.withLock(d_.bind(function(){return this.ensureInit().then(d_.bind(function(){return this.readFromStorage()},this)).then(d_.bind(function(t){return t=fs(t,e),this.saveToStorage(t)},this)).catch(d_.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(d_.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):g.resolve(!0)},fn.prototype.readFromStorage=function(){return this.ensureInit().then(d_.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(d_.bind(function(e){return e&&!d_.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(d_.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},fn.prototype.saveToStorage=function(e){return this.ensureInit().then(d_.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(d_.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},fn.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(d_.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):g.resolve()};var fo=dw("batch"),fa=function(e,t){this.errorReporter=t.errorReporter,this.queue=new fn(e,{errorReporter:d_.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};fa.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},fa.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},fa.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},fa.prototype.clear=function(){return this.queue.clear()},fa.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},fa.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},fa.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(d_.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},fa.prototype.sendRequestPromise=function(e,t){return new g(d_.bind(function(r){this.sendRequest(e,t,r)},this))},fa.prototype.flush=function(e){if(this.requestInProgress)return fo.log("Flush: Request already in progress"),g.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(d_.bind(function(i){var s=i.length===n,o=[],a={};if(d_.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=d_.extend({},t.properties,{mp_sent_by_lib_version:p9.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&o.push(t)}a[e.id]=t},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),g.resolve();var c=d_.bind(function(){return this.queue.removeItemsByID(d_.map(i,function(e){return e.id})).then(d_.bind(function(e){return(d_.each(i,d_.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s)?(this.resetFlush(),g.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),g.resolve())},this))},this),u=d_.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(d_.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(d_.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&!dB()||"timeout"===s.error)){var o=2*this.flushInterval;
1return s.retryAfter&&(o=1e3*parseInt(s.retryAfter,10)||o),o=Math.min(6e5,o),this.reportError("Error; retry in "+o+" ms"),this.scheduleFlush(o),g.resolve()}else{if(!d_.isObject(s)||413!==s.httpStatusCode)return c();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),g.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),fo.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,l).then(u)},this)).catch(d_.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},fa.prototype.reportError=function(e,t){if(fo.error.apply(fo.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){fo.error(e)}};var fc=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},fu="change",fl="click",fh="hashchange",fp="load",fd="mp_locationchange",ff="popstate",fg="scrollend",fv="scroll",fm="submit",f_="visibilitychange",fy=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],fb=["mp-include"],fw=["mp-no-track"],fk=fw.concat(["mp-sensitive"]),fS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],fx={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},fE={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},fC={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0}
1,fI=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],fO=dw("autocapture");function fR(e){for(var t={},r=fM(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function fM(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function fA(e,t,r,n,i,s){var o={$classes:fM(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(o.$id=a),fU(e,t,i,s)&&d_.each(fS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);fj(n)&&(o["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!fD(e))return e}(l);)c++,l.tagName===e.tagName&&u++;return o.$nth_child=c,o.$nth_of_type=u,o}function fT(e,t,r,n){var i="";return fU(e,t,r,n)&&e.childNodes&&e.childNodes.length&&d_.each(e.childNodes,function(e){fN(e)&&e.textContent&&(i+=d_.trim(e.textContent).split(/(\s+)/).filter(fj).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),d_.trim(i)}function fP(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return fO.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var s=n[i];try{if(e.matches(s))return!0}catch(e){fO.critical("Error while checking selector: "+s,e)}}return!1}function fF(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return fO.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var i,s=n[i];try{if(e.matches(s))return!0}catch(e){fO.critical("Error while checking selector: "+s,e)}}var o=fR(e);for(i=0;i<fw.length;i++)if(o[fw[i]])return!0;return!1}function fD(e){return e&&1===e.nodeType}function fL(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function fN(e){return e&&3===e.nodeType}function f$(e){var t=(e.name||e.id||"").toString().toLowerCase();return!!("string"==typeof t&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))||!1}function fU(e,t,r,n){if(!fP(e,t,r,n))return!1;for(var i,s=e;s.parentNode&&!fL(s,"body");s=s.parentNode){var o=fR(s);for(i=0;i<fk.length;i++)if(o[fk[i]])return!1}var a=fR(e);for(i=0;i<fb.length;i++)if(a[fb[i]])return!0;if(fL(e,"input")||fL(e,"select")||fL(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!f$(e)}function fj(e){if(null===e||d_.isUndefined(e))return!1;if("string"==typeof e&&(e=d_.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function fB(e){var t="onscrollend"in pd,r=dk(e),n=fg;if(!t){var i=null;r=dk(function(){clearTimeout(i),i=setTimeout(e,100)}),n=fv}return{listener:r,eventType:n}}function fq(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<fI.length;t++)if(e.hasAttribute(fI[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&fx[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function fz(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(fE[t])return!0;if(fq(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(fq(r))return!1;if(r.getRootNode&&r.getRootNode()!==dc){var i=r.getRootNode();if(i.host&&fq(i.host))return!1}r=r.parentElement,n++}return!!fC[t]}function fV(e){return"composedPath"in e?e.composedPath():[]}function fW(e){var t=fV(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var fH=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",fG=["password","email","tel","hidden"];function fY(e){return e?Array.isArray(e)?e:[e]:[]}function fJ(e,t){return!!t&&!!e.closest(t)}function fZ(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==fG.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute("data-rr-is-password")||f$(e))||(t.input.maskAll?!fJ(e,t.input.unmaskingSelector):!!(fJ(e,t.input.maskingSelector)||fJ(e,fH)))}function fK(e,t){return!!e&&(!!(t.text._legacyClassRegex&&function e(t,r,n){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return e(lz(t),r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(r.test(s))return!0}return e(lz(t),r)}(e,t.text._legacyClassRegex))||(t.text.maskAll?!fJ(e,t.text.unmaskingSelector):!!(fJ(e,t.text.maskingSelector)||fJ(e,fH))))}var fX=dw("recorder"),fQ=pd.CompressionStream,f0={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},f1=new Set([u0.MouseMove,u0.MouseInteraction,u0.Scroll,u0.ViewportResize,u0.Input,u0.TouchMove,u0.MediaInteraction,u0.Drag,u0.Selection]),f2=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||dq,this._onMaxLengthReached=e.onMaxLengthReached||dq,this._onBatchSent=e.onBatchSent||dq,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=dI(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new dJ(dH),this.batcher=new fa(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:f0,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};f2.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},f2.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},f2.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},f2.prototype.get_config=function(e){return this.getConfig(e)},f2.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void fX.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,fX.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=d_.info.currentUrl(),this.replayStartUrl=d_.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t,r=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);r();var n=this.getConfig("record_block_selector");(""===n||null===n)&&(n=void 0);var i=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=fY(r).join(","),t.input.unmaskingSelector=fY(n).join(","),void 0!==i&&(t.input.maskAll=i);var s=e.get_config("record_mask_text_selector"),o=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=fY(s);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=fY(o).join(","),void 0===a&&void 0!==s?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(e.type===uQ.IncrementalSnapshot&&f1.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),r()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(fZ,i),maskTextFn:this._getMaskFn(fK,i),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(t={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:pn,options:t})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var s=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),s)},f2.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},f2.prototype.isRrwebStopped=function(){return null===this._stopRecording},f2.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},f2.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},f2.deserialize=function(e,t){return new f2(d_.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},f2.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=d_.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");pd.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},f2.prototype._flushEvents=d0(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,s=1/0,o=-1/0,a=!1,c=0;c<n;c++)s=Math.min(s,e[c].timestamp),o=Math.max(o,e[c].timestamp),e[c].type===uQ.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=s}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=s);var u=o-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:p9.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(l,this.getUserIdInfo()),dW(dh,da.vendor,du)?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new fQ("gzip"))).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this)):(l.format="body",this._sendRequest(i,l,h,r))}}),f2.prototype.reportError=function(e,t){fX.error.apply(fX.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){fX.error(e)}},f2.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},f2.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(fX.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},f2.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var s=Math.min(r.length,1e4);return"*".repeat(s)}).bind(this)};
1var f3=function(e){this.idb=new dJ(dG),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};f3.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},f3.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},f3.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return g.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),g.resolve())},f3.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return fc(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):g.resolve(null)},f3.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},f3.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},f3.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):g.resolve()},f3.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return fc(e)}).map((function(e){return f2.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return g.all(t)}).bind(this)).catch(this.handleError.bind(this)):g.resolve([])};var f5=dw("recorder"),f4=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||lN,this.sharedLockStorage=r,this.recordingRegistry=new f3({mixpanelInstance:this.mixpanelInstance,errorReporter:f5.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};f4.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void f5.log("Recording already in progress, skipping startRecording.");var t=(function(){f5.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){f5.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:d_.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=f2.deserialize(e.activeSerializedRecording,i):this.activeRecording=new f2(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},f4.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))},f4.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},f4.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return g.resolve()},f4.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),g.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(f5.log("No resumable recording found."),null)}).bind(this))},f4.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},f4.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(f4.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),pd[sK]=f4;var f6={exports:{}},f8=(f6.exports,(f=function(){var e,t;if(v)return f6.exports;return v=1,Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),s=0;s<i.length;s++)if(null==n||void 0===(n=n[i[s]]))return r;return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],s=e.apply({var:i},this);(null===s||""===s)&&t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}},e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var i,s,o,a,c,u=e.get_operator(r),l=r[u];
1if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(e.truthy(e.apply(l[i],n)))return e.apply(l[i+1],n);return l.length===i+1?e.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length&&(s=e.apply(l[i],n),e.truthy(s));i+=1);return s}if("or"===u){for(i=0;i<l.length&&(s=e.apply(l[i],n),!e.truthy(s));i+=1);return s}if("filter"===u)return(a=e.apply(l[0],n),o=l[1],Array.isArray(a))?a.filter(function(t){return e.truthy(e.apply(o,t))}):[];if("map"===u)return(a=e.apply(l[0],n),o=l[1],Array.isArray(a))?a.map(function(t){return e.apply(o,t)}):[];else if("reduce"===u)return(a=e.apply(l[0],n),o=l[1],c=void 0!==l[2]?e.apply(l[2],n):null,Array.isArray(a))?a.reduce(function(t,r){return e.apply(o,{current:r,accumulator:t})},c):c;else if("all"===u){if(a=e.apply(l[0],n),o=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(o,a[i])))return!1;return!0}else if("none"===u){if(a=e.apply(l[0],n),o=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(o,a[i])))return!1;return!0}else if("some"===u){if(a=e.apply(l[0],n),o=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(o,a[i])))return!0;return!1}if(l=l.map(function(t){return e.apply(t,n)}),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=t;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw Error("Unrecognized operation "+u)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach(function(t){r.push.apply(r,e.uses_data(t))})}for(var s=[],o=0,a=r.length;o<a;o++)-1===s.indexOf(r[o])&&s.push(r[o]);return s},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t||"@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(t)){if(r.length!==t.length)return!1;for(var s=0;s<r.length;s+=1)if(!e.rule_like(t[s],r[s]))return!1;return!0}return!1},f6.exports=e,f6.exports}())&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f),f9=function(e,t){if(null==e)return e;if("string"==typeof e)return e.toLowerCase();if(Array.isArray(e))return e.map(function(e){return f9(e,t)});if(e!==Object(e))return e;var r={};for(var n in e)e.hasOwnProperty(n)&&(r[t&&"string"==typeof n?n.toLowerCase():n]=f9(e[n],t));return r},f7={};function ge(){this.clicks=[]}function gt(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}f7.eventMatchesCriteria=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!d_.isEmptyObject(n))try{var s,o=(s=t||{},f9(s,!0)),a=f9(n,!1);i=f8.apply(a,o)}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},pd[sZ]=Promise.resolve(f7),ge.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var s=fW(e);if(!s||fz(s))return!1}var o=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&o-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:o}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:o}];return!1},gt.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return fW(e)},gt.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=fV(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},gt.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){fO.critical("Error while observing shadow root",e)}}}
1,gt.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void fO.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},gt.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){fO.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var gr=[fu,"input",fm,"select","toggle"],gn=[fg],gi=[fh],gs={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function go(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}go.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||fz(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},go.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},go.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],s=0;s<n.length;s++){var o=n[s];r-o.timestamp>=t?this.hasChangesAfter(o.timestamp)||i.push(o):this.pendingClicks.push(o)}return i},go.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},go.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},go.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},go.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},go.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;gr.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),gi.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),gn.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,gs)}catch(e){fO.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new gt(function(){e.recordChangeEvent()},gs),this.shadowDOMObserver.start()}catch(e){fO.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},go.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){fO.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){fO.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){fO.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var ga="autocapture",gc="full-url",gu="allow_selectors",gl="allow_url_regexes",gh="block_attrs",gp="block_element_callback",gd="block_selectors",gf="block_url_regexes",gg="capture_extra_attrs",gv="capture_text_content",gm="scroll_capture_all",g_="scroll_depth_percent_checkpoints",gy="click",gb="dead_click",gw="input",gk="pageview",gS="rage_click",gx="scroll",gE="page_leave",gC="submit",gI={};gI[gu]=[],gI[gl]=[],gI[gh]=[],gI[gp]=null,gI[gd]=[],gI[gf]=[],gI[gg]=[],gI[gv]=!1,gI[gm]=!1,gI[g_]=[25,50,75,100],gI[gy]=!0,gI[gb]=!0,gI[gw]=!0,gI[gk]=gc,gI[gS]=!0,gI[gx]=!0,gI[gE]=!1,gI[gC]=!0;var gO={$mp_autocapture:!0},gR="$mp_click",gM="$mp_dead_click",gA="$mp_rage_click",gT=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};gT.prototype.init=function(){!function(){try{return!!dc.createElement("div").matches}catch(e){return!1}}()?fO.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},gT.prototype.getFullConfig=function(){var e=this.mp.get_config(ga);return e?d_.isObject(e)?d_.extend({},gI,e):gI:{}},gT.prototype.getConfig=function(e){return this.getFullConfig()[e]},gT.prototype.currentUrlBlocked=function(){var e,t=d_.info.currentUrl(),r=this.getConfig(gl)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(e){return fO.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var s=this.getConfig(gf)||[];if(!s||!s.length)return!1;for(e=0;e<s.length;e++)try{if(t.match(s[e]))return!0}catch(t){return fO.critical("Error while checking block URL regex: "+s[e],t),!0}return!1},gT.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(ga)?this.getConfig(gk):this.mp.get_config("track_pageview")},gT.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===gR&&!this.getConfig(gy)||t===gA&&!this._getClickTrackingConfig(gS)||t===gM&&!this._getClickTrackingConfig(gb)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],s=t.blockElementCallback,o=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.captured
1ForHeatMap||!1,l={};d_.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(fN(p)&&(p=p.parentNode),function(e,t){if(!e||fL(e,"html")||!fD(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===fm;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===fu;return t.type===fl;case"select":case"textarea":return t.type===fu;default:return t.type===fl}}(p,e)&&fP(p,e,r,n)&&!fF(p,e,s,o)){for(var d=[p],f=p;f.parentNode&&!fL(f,"body");)d.push(f.parentNode),f=f.parentNode;var g,v=[],m=!1;if(d_.each(d,function(t){var i=fU(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&fj(g)&&g),fF(t,e,s,o)&&(m=!0),v.push(fA(t,e,l,c,r,n))},this),!m){var _=dc.documentElement;if(h={$event_type:e.type,$host:pd.location.host,$pathname:pd.location.pathname,$elements:v,$el_attr__href:g,$viewportHeight:Math.max(_.clientHeight,pd.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,pd.innerWidth||0),$pageHeight:dc.body.offsetHeight||0,$pageWidth:dc.body.offsetWidth||0},d_.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);fj(t)&&(h["$el_attr__"+e]=t)}}),a&&(y=fT(p,e,r,n))&&y.length&&(h.$el_text=y),e.type===fl&&(d_.each(fy,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(fL(i,"a")||fL(i,"button")||fL(i,"input")||fL(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var y=fT(p,e,r,n);y&&y.length&&(h.$el_text=y)}if(p){if(!fP(p,e,r,n)||fF(p,e,s,o))return null;var b=fA(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,d_.extend(h,d_.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(gu),blockAttrs:this.getConfig(gh),blockElementCallback:this.getConfig(gp),blockSelectors:this.getConfig(gd),captureExtraAttrs:this.getConfig(gg),captureTextContent:this.getConfig(gv),capturedForHeatMap:r});n&&(d_.extend(n,gO),this.mp.track(t,n))}},gT.prototype.initPageListeners=function(){if(pd.removeEventListener(ff,this.listenerPopstate),pd.removeEventListener(fh,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(gE)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){pd.dispatchEvent(new Event(fd))},this.listenerHashchange=function(){pd.dispatchEvent(new Event(fd))},pd.addEventListener(ff,this.listenerPopstate),pd.addEventListener(fh,this.listenerHashchange);var e=pd.history.pushState;"function"==typeof e&&(pd.history.pushState=function(t,r,n){e.call(pd.history,t,r,n),pd.dispatchEvent(new Event(fd))});var t=pd.history.replaceState;"function"==typeof t&&(pd.history.replaceState=function(e,r,n){t.call(pd.history,e,r,n),pd.dispatchEvent(new Event(fd))})}},gT.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},gT.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(gE)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(dc.documentElement.clientHeight,pd.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),s=Math.round(n/r*100);r<=n&&(i=100,s=100);var o=d_.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:s,$scroll_height:r,$event_type:e.type,$current_url:t||d_.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(dc.documentElement.clientWidth,pd.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},gO);this.mp.track("$mp_page_leave",o,{transport:"sendBeacon"})}},gT.prototype._initScrollDepthTracking=function(){if(pd.removeEventListener(fv,this.listenerScrollDepth),pd.removeEventListener(fg,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){fO.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(dc.documentElement.clientHeight,pd.innerHeight||0);var e=fB((function(){if(!this.currentUrlBlocked()){var e=Math.max(dc.documentElement.clientHeight,pd.innerHeight||0)+pd.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=dc.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,pd.addEventListener(e.eventType,this.listenerScrollDepth)}},gT.prototype.initClickTracking=function(){pd.removeEventListener(fl,this.listenerClick),(this.getConfig(gy)||this.mp.get_config("record_heatmap_data"))&&(fO.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(gy)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,gR)}).bind(this),pd.addEventListener(fl,this.listenerClick))},gT.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(gb)||this.mp.get_config("record_heatmap_data")?(fO.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new go((function(e){this.trackDomEvent(e,gM)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(gb);
1if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),pd.addEventListener(fl,this.listenerDeadClick))):this.stopDeadClickTracking()},gT.prototype.initInputTracking=function(){pd.removeEventListener(fu,this.listenerChange),this.getConfig(gw)&&(fO.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(gw)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),pd.addEventListener(fu,this.listenerChange))},gT.prototype.initPageviewTracking=function(){if(pd.removeEventListener(fd,this.listenerLocationchange),this.pageviewTrackingConfig()){fO.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(gO)),t&&(e=d_.info.currentUrl()),this.listenerLocationchange=dk((function(){if(!this.currentUrlBlocked()){var t=d_.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===gc?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(gO)&&(e=t),n&&(this.lastScrollCheckpoint=0,fO.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),pd.addEventListener(fd,this.listenerLocationchange)}},gT.prototype.initRageClickTracking=function(){pd.removeEventListener(fl,this.listenerRageClick),(this._getClickTrackingConfig(gS)||this.mp.get_config("record_heatmap_data"))&&(fO.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new ge),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(gS);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,gA)}).bind(this),pd.addEventListener(fl,this.listenerRageClick))},gT.prototype.initScrollTracking=function(){if(pd.removeEventListener(fg,this.listenerScroll),pd.removeEventListener(fv,this.listenerScroll),this.getConfig(gx)){fO.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(gx)&&!this.currentUrlBlocked()){var e=this.getConfig(gm),t=(this.getConfig(g_)||[]).slice().sort(function(e,t){return e-t}),r=pd.scrollY,n=d_.extend({$scroll_top:r},gO);try{var i=dc.body.scrollHeight,s=Math.round(r/(i-pd.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var o=0;o<t.length;o++){var a=t[o];s>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){fO.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this),t=fB(e);this.listenerScroll=t.listener,pd.addEventListener(t.eventType,this.listenerScroll)}},gT.prototype.initSubmitTracking=function(){pd.removeEventListener(fm,this.listenerSubmit),this.getConfig(gC)&&(fO.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(gC)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),pd.addEventListener(fm,this.listenerSubmit))},gT.prototype.initPageLeaveTracking=function(){if(dc.removeEventListener(f_,this.listenerPageLeaveVisibilitychange),pd.removeEventListener(fd,this.listenerPageLeaveLocationchange),pd.removeEventListener(fp,this.listenerPageLoad),this.getConfig(gE)||this.mp.get_config("record_heatmap_data")){fO.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=d_.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=dc.body.scrollHeight}).bind(this),pd.addEventListener(fp,this.listenerPageLoad),this.listenerPageLeaveLocationchange=dk((function(t){if(!this.currentUrlBlocked()){var r=d_.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(dc.documentElement.clientHeight,pd.innerHeight||0),this.previousScrollHeight=dc.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),pd.addEventListener(fd,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){dc.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),dc.addEventListener(f_,this.listenerPageLeaveVisibilitychange)}},gT.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(pd.removeEventListener(fl,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},dS(gT);var gP=dw("flags"),gF="flags",gD="context",gL={};gL[gD]={};var gN=function(e){this.fetch=pd.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};gN.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):gP.critical("Feature Flags unavailable: missing minimum required APIs")},gN.prototype.getFullConfig=function(){var e=this.getMpConfig(gF);return e?d_.isObject(e)?d_.extend({},gL,e):gL:{}},gN.prototype.getConfig=function(e){return this.getFullConfig()[e]},gN.prototype.isSystemEnabled=function(){return!!this.getMpConfig(gF)},gN.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return gP.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(gF);d_.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(gD);return r[gD]=d_.extend({},n,e),this.setMpConfig(gF,r),this.fetchFlags()},gN.prototype.areFlagsReady=function(){return this.isSystemEnabled()||gP.error("Feature Flags not enabled"),!!this.flags},gN.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=dN();gP.log("Fetching flags for distinct ID: "+e);var n=d_.extend({distinct_id:e,device_id:t},this.getConfig(gD)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",p9.LIB_VERSION);var s=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(pd,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json().then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var n=new Map,i={};d_.each(t,function(e,t){var r=!1,i=t+":";if(d_.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var s=this.flags&&this.flags.get(t);s&&n.set(t,s)}else n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})},this);var s=e.pending_first_time_events;s&&s.length>0&&d_.each(s,function(e){var t=e.flag_key,r=t+":"+e.first_time_event_hash;this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&d_.each(this.activatedFirstTimeEvents,function(e,t){var r=t.split(":")[0];e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}).bind(this)).catch((function(e){this.markFetchComplete(),gP.error(e)}).bind(this))}).bind(this)).catch((function(e){this.markFetchComplete(),gP.error(e)}).bind(this)),this.fetchPromise},gN.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):gP.error("Fetch in progress started time not set, cannot mark fetch complete")},gN.prototype._loadTargetingIfNeeded=function(){var e=!1;d_.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!d_.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){gP.log("targeting loaded for property filter evaluation")})},gN.prototype.getTargeting=function(){var e,t;return(e=this.loadExtraBundle.bind(this),t=this.targetingSrc,pd[sZ]&&"function"==typeof pd[sZ].then||(pd[sZ]=new Promise(function(r){e(t,r)}).then(function(){var e=pd[sZ];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete pd[sZ],e})),pd[sZ]).catch((function(e){gP.error("Failed to load targeting: "+e)}).bind(this))},gN.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||d_.isEmptyObject(this.pendingFirstTimeEvents)||(pd[sZ]&&d_.isFunction(pd[sZ].then)?pd[sZ].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},gN.prototype._processFirstTimeEventCheck=function(e,t,r){d_.each(this.pendingFirstTimeEvents,function(n,i){if
1(!this.activatedFirstTimeEvents[i]){var s,o=n.flag_key;if(!r&&n.property_filters&&!d_.isEmptyObject(n.property_filters))return void gP.warn('Skipping event check for "'+o+'" - property filters require targeting library');if(r){var a={event_name:n.event_name,property_filters:n.property_filters};s=r.eventMatchesCriteria(e,t,a)}else s={matches:e===n.event_name,error:null};if(s.error)return void gP.error('Error checking first-time event for flag "'+o+'": '+s.error);if(s.matches){gP.log('First-time event matched for flag "'+o+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(o,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}},this)},gN.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},gN.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=dN(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",p9.LIB_VERSION);var o=this.getFirstTimeEventApiRoute(e)+"?"+s.toString();gP.log("Recording first-time event for flag: "+e),this.fetch.call(pd,o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify({distinct_id:n,project_id:t,first_time_event_hash:r})}).catch(function(t){gP.error("Failed to record first-time event for flag "+e+": "+t)})},gN.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return gP.error(e),t}):new Promise(function(e){gP.critical("Feature Flags not initialized"),e(t)})},gN.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return gP.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(gP.log('No flag found: "'+e+'"'),t)},gN.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return gP.error(e),t})},gN.prototype.getFeatureData=function(e,t){return gP.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},gN.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},gN.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return gP.error(e),t})},gN.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(gP.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},gN.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},gN.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},dS(gN),gN.prototype.are_flags_ready=gN.prototype.areFlagsReady,gN.prototype.get_variant=gN.prototype.getVariant,gN.prototype.get_variant_sync=gN.prototype.getVariantSync,gN.prototype.get_variant_value=gN.prototype.getVariantValue,gN.prototype.get_variant_value_sync=gN.prototype.getVariantValueSync,gN.prototype.is_enabled=gN.prototype.isEnabled,gN.prototype.is_enabled_sync=gN.prototype.isEnabledSync,gN.prototype.update_context=gN.prototype.updateContext,gN.prototype.get_feature_data=gN.prototype.getFeatureData,gN.prototype.getTargeting=gN.prototype.getTargeting;var g$=function(){};g$.prototype.create_properties=function(){},g$.prototype.event_handler=function(){},g$.prototype.after_track_handler=function(){},g$.prototype.init=function(e){return this.mp=e,this},g$.prototype.track=function(e,t,r,n){var i=this,s=d_.dom_query(e);return 0===s.length?void dy.error("The DOM query ("+e+") returned 0 elements"):(d_.each(s,function(e){d_.register_event(e,this.override_event,function(e){var s={},o=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,s),window.setTimeout(i.track_callback(n,o,s,!0),a),i.mp.track(t,o,i.track_callback(n,o,s))})},this),!0)},g$.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},g$.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):d_.extend({},e)};var gU=function(){this.override_event="click"};
1d_.inherit(gU,g$),gU.prototype.create_properties=function(e,t){var r=gU.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},gU.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},gU.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var gj=function(){this.override_event="submit"};d_.inherit(gj,g$),gj.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},gj.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var gB="$set",gq="$set_once",gz="$unset",gV="$add",gW="$append",gH="$union",gG="$remove",gY={set_action:function(e,t){var r={},n={};return d_.isObject(e)?d_.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gB]=n,r},unset_action:function(e){var t={},r=[];return d_.isArray(e)||(e=[e]),d_.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[gz]=r,t},set_once_action:function(e,t){var r={},n={};return d_.isObject(e)?d_.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gq]=n,r},union_action:function(e,t){var r={},n={};return d_.isObject(e)?d_.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=d_.isArray(e)?e:[e])},this):n[e]=d_.isArray(t)?t:[t],r[gH]=n,r},append_action:function(e,t){var r={},n={};return d_.isObject(e)?d_.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gW]=n,r},remove_action:function(e,t){var r={},n={};return d_.isObject(e)?d_.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gG]=n,r},delete_action:function(){var e={};return e.$delete="",e}},gJ=function(){};d_.extend(gJ.prototype,gY),gJ.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},gJ.prototype.set=d2(function(e,t,r){var n=this.set_action(e,t);return d_.isObject(e)&&(r=t),this._send_request(n,r)}),gJ.prototype.set_once=d2(function(e,t,r){var n=this.set_once_action(e,t);return d_.isObject(e)&&(r=t),this._send_request(n,r)}),gJ.prototype.unset=d2(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),gJ.prototype.union=d2(function(e,t,r){d_.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),gJ.prototype.delete=d2(function(e){var t=this.delete_action();return this._send_request(t,e)}),gJ.prototype.remove=d2(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),gJ.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=d_.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},gJ.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},gJ.prototype._get_config=function(e){return this._mixpanel.get_config(e)},gJ.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},gJ.prototype.remove=gJ.prototype.remove,gJ.prototype.set=gJ.prototype.set,gJ.prototype.set_once=gJ.prototype.set_once,gJ.prototype.union=gJ.prototype.union,gJ.prototype.unset=gJ.prototype.unset,gJ.prototype.toString=gJ.prototype.toString;var gZ=function(){};d_.extend(gZ.prototype,gY),gZ.prototype._init=function(e){this._mixpanel=e},gZ.prototype.set=d1(function(e,t,r){var n=this.set_action(e,t);return d_.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[gB]=d_.extend({},d_.info.people_properties(),n[gB]),this._send_request(n,r)}),gZ.prototype.set_once=d1(function(e,t,r){var n=this.set_once_action(e,t);return d_.isObject(e)&&(r=t),this._send_request(n,r)}),gZ.prototype.unset=d1(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),gZ.prototype.increment=d1(function(e,t,r){var n={},i={};return d_.isObject(e)?(d_.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void dy.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(d_.isUndefined(t)&&(t=1),i[e]=t),n[gV]=i,this._send_request(n,r)}),gZ.prototype.append=d1(function(e,t,r){d_.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),gZ.prototype.remove=d1(function(e,t,r){d_.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),gZ.prototype.union=d1(function(e,t,r){d_.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),gZ.prototype.track_charge=d1(function(){dy.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),gZ.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},gZ.prototype.delete_user=function(){if(!this._identify_called())return void dy.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},gZ.prototype.toString=function(){return this._mixpanel.toString()+".people"},gZ.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var s=d_.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),d_.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),d_.truncate(s,255))},gZ.prototype._get_config=function(e){return this._mixpanel.get_config(e)},gZ.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},gZ.prototype._enqueue=function(e){gB in e?this._mixpanel.persistence._add_to_people_queue(gB,e):gq in e?this._mixpanel.persistence._add_to_people_queue(gq,e):gz in e?this._mixpanel.persistence._add_to_people_queue(gz,e):gV in e?this._mixpanel.persistence._add_to_people_queue(gV,e):gW in e?this._mixpanel.persistence._add_to_people_queue(gW,e):gG in e?this._mixpanel.persistence._add_to_people_queue(gG,e):gH in e?this._mixpanel.persistence._add_to_people_queue(gH,e):dy.error("Invalid call to _enqueue():",e)},gZ.prototype._flush_one_queue=function(e,t,r,n){var i=this,s=d_.extend({},this._mixpanel.persistence.load_queue(e)),o=s;!d_.isUndefined(s)&&d_.isObject(s)&&!d_.isEmptyObject(s)&&(i._mixpanel.persistence._pop_from_people_queue(e,s),i._mixpanel.persistence.save(),n&&(o=n(s)),t.call(i,o,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,s),d_.isUndefined(r)||r(t,n)}
1))},gZ.prototype._flush=function(e,t,r,n,i,s,o){var a=this;this._flush_one_queue(gB,this.set,e),this._flush_one_queue(gq,this.set_once,n),this._flush_one_queue(gz,this.unset,s,function(e){return d_.keys(e)}),this._flush_one_queue(gV,this.increment,t),this._flush_one_queue(gH,this.union,i);var c=this._mixpanel.persistence.load_queue(gW);if(!d_.isUndefined(c)&&d_.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(gW,u),d_.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel.persistence.load_queue(gW)).pop(),a._mixpanel.persistence.save(),d_.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(gG);if(!d_.isUndefined(p)&&d_.isArray(p)&&p.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(gG,d),d_.isUndefined(o)||o(e,t)},g=p.length-1;g>=0;g--)d=(p=this._mixpanel.persistence.load_queue(gG)).pop(),a._mixpanel.persistence.save(),d_.isEmptyObject(d)||a.remove(d,f)},gZ.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},gZ.prototype.set=gZ.prototype.set,gZ.prototype.set_once=gZ.prototype.set_once,gZ.prototype.unset=gZ.prototype.unset,gZ.prototype.increment=gZ.prototype.increment,gZ.prototype.append=gZ.prototype.append,gZ.prototype.remove=gZ.prototype.remove,gZ.prototype.union=gZ.prototype.union,gZ.prototype.track_charge=gZ.prototype.track_charge,gZ.prototype.clear_charges=gZ.prototype.clear_charges,gZ.prototype.delete_user=gZ.prototype.delete_user,gZ.prototype.toString=gZ.prototype.toString;var gK="__mps",gX="__mpso",gQ="__mpus",g0="__mpa",g1="__mpap",g2="__mpr",g3="__mpu",g5="$people_distinct_id",g4="__alias",g6="__timers",g8=[gK,gX,gQ,g0,g1,g2,g3,g5,g4,g6],g9=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(dy.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&d_.localStorage.is_supported()?this.storage=d_.localStorage:this.storage=d_.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};g9.prototype.properties=function(){var e={};return this.load(),d_.each(this.props,function(t,r){d_.include(g8,r)||(e[r]=t)}),e},g9.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=d_.extend({},e))}},g9.prototype.upgrade=function(){var e,t;this.storage===d_.localStorage?(e=d_.cookie.parse(this.name),d_.cookie.remove(this.name),d_.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===d_.cookie&&(t=d_.localStorage.parse(this.name),d_.localStorage.remove(this.name),t&&this.register_once(t))},g9.prototype.save=function(){this.disabled||this.storage.set(this.name,dz(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},g9.prototype.load_prop=function(e){return this.load(),this.props[e]},g9.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},g9.prototype.clear=function(){this.remove(),this.props={}},g9.prototype.register_once=function(e,t,r){return!!d_.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),d_.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},g9.prototype.register=function(e,t){return!!d_.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),d_.extend(this.props,e),this.save(),!0)},g9.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},g9.prototype.update_search_keyword=function(e){this.register(d_.info.searchInfo(e))},g9.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:d_.info.referringDomain(e)||"$direct"},"")},g9.prototype.get_referrer_info=function(){return d_.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},g9.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},g9.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},g9.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},g9.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},g9.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},g9.prototype.get_cross_subdomain=function(){return this.cross_subdomain},g9.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},g9.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(gB),s=this._get_or_create_queue(gq),o=this._get_or_create_queue(gz),a=this._get_or_create_queue(gV),c=this._get_or_create_queue(gH),u=this._get_or_create_queue(gG,[]),l=this._get_or_create_queue(gW,[]);r===gK?(d_.extend(i,n),this._pop_from_people_queue(gV,n),this._pop_from_people_queue(gH,n),this._pop_from_people_queue(gz,n)):r===gX?(d_.each(n,function(e,t){t in s||(s[t]=e)}),this._pop_from_people_queue(gz,n)):r===gQ?d_.each(n,function(e){d_.each([i,s,a,c],function(t){e in t&&delete t[e]}),d_.each(l,function(t){e in t&&delete t[e]}),o[e]=!0}):r===g0?(d_.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(gz,n)):r===g3?(d_.each(n,function(e,t){d_.isArray(e)&&(t in c||(c[t]=[]),d_.each(e,function(e){d_.include(c[t],e)||c[t].push(e)}))}
1),this._pop_from_people_queue(gz,n)):r===g2?(u.push(n),this._pop_from_people_queue(gW,n)):r===g1&&(l.push(n),this._pop_from_people_queue(gz,n)),dy.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),dy.log(t),this.save()},g9.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];d_.isUndefined(r)||d_.each(t,function(t,n){e===gW||e===gG?d_.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},g9.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},g9.prototype._get_queue_key=function(e){return e===gB?gK:e===gq?gX:e===gz?gQ:e===gV?g0:e===gW?g1:e===gG?g2:e===gH?g3:void dy.error("Invalid queue:",e)},g9.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=d_.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},g9.prototype.set_event_timer=function(e,t){var r=this.load_prop(g6)||{};r[e]=t,this.props[g6]=r,this.save()},g9.prototype.remove_event_timer=function(e){var t=(this.load_prop(g6)||{})[e];return d_.isUndefined(t)||(delete this.props[g6][e],this.save()),t};var g7=function(e,t){throw Error(e+" not available in this build.")},ve="mixpanel",vt="base64",vr="$device:",vn=pd.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,vi=!vn&&-1===dh.indexOf("MSIE")&&-1===dh.indexOf("Mozilla"),vs=null;da.sendBeacon&&(vs=function(){return da.sendBeacon.apply(da,arguments)});var vo={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},va={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:vo,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:vt,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:dq,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:dq,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js",targeting_src:"https://cdn.mxpnl.com/libs/mixpanel-targeting.min.js",remote_settings_mode:"disabled"},vc=!1,vu=function(){},vl=function(e,t,r){var n,i=r===ve?_:_[r];if(i&&0===m)n=i;else{if(i&&!d_.isArray(i))return void dy.error("You have already initialized "+r);n=new vu}if(n._cached_groups={},n._init(e,t,r),n.people=new gZ,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var s=d_.info.campaignParams(null),o={},a=!1;d_.each(s,function(e,t){o["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(o)}p9.DEBUG=p9.DEBUG||n.get_config("debug");var c=0===m?"module":"snippet";return pd.dispatchEvent(new pd.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:d_.info}})),!d_.isUndefined(i)&&d_.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};vu.prototype.init=function(e,t,r){if(d_.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===ve)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=vl(e,t,r);return _[r]=n,n._loaded(),n},vu.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||va.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(d_.extend({},va,n,t,{name:r,token:e,callback_fn:(r===ve?r:ve+"."+r)+"._jsc"})),this._jsc=dq,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(d_.localStorage.is_supported(!0)&&vn){if(this.init_batchers(),vs&&pd.addEventListener){var i=d_.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);pd.addEventListener("pagehide",function(e){e.persisted&&i()}),pd.addEventListener("visibilitychange",function(){"hidden"===dc.visibilityState&&i()})}}else this._batch_requests=!1,dy.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),d_.each(this.get_batcher_configs(),function(e){dy.log("Clearing batch queue "+e.queue_key),d_.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new g9(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=d_.UUID();this.get_distinct_id()||this.register_once({distinct_id:vr+s,$device_id:s},""),this.flags=new gN({getFullApiRoute:d_.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:d_.bind(this.get_config,this),setConfigFunc:d_.bind(this.set_config,this),getPropertyFunc:d_.bind(this.get_property,this),trackingFunc:d_.bind(this.track,this),loadExtraBundle:g7,targetingSrc:this.get_config("targeting_src")}),this.flags.init(),this.flags=this.flags,this.autocapture=new gT(this),this.autocapture.init(),this._init_tab_id();var o=this.get_config("remote_settings_mode");"strict"===o||"fallback"===o?this._fetch_remote_settings(o).then(d_.bind(function(){this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},vu.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))dy.log("Tab ID initialization skipped due to disable_persistence config");
1else if(d_.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(d_.sessionStorage.get(r)||!d_.sessionStorage.get(t))&&d_.sessionStorage.set(t,"$tab-"+d_.UUID()),d_.sessionStorage.set(r,"1"),this.tab_id=d_.sessionStorage.get(t),pd.addEventListener("beforeunload",function(){d_.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},vu.prototype.get_tab_id=function(){return this.tab_id||null},vu.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return dy.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new dJ(dG),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(fc(e[r])||e[r].tabId===t)return!0;return!1}).catch(d_.bind(function(e){this.report_error("Error checking recording registry",e)},this))},vu.prototype._check_and_start_session_recording=d0(function(e){if(!pd.MutationObserver)return void dy.critical("Browser does not support MutationObserver; skipping session recording");var t=d_.bind(function(e){var t=d_.bind(function(){this._recorder=this._recorder||new pd[sK](this),this._recorder.resumeRecording(e)},this);d_.isUndefined(pd[sK])?g7(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}),vu.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},vu.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},vu.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},vu.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},vu.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},vu.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},vu.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+d_.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},vu.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},vu.prototype.__get_recorder=function(){return this._recorder},vu.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=d_.info.campaignParams(null);d_.each(e,(function(e,t){this.unregister(t)}).bind(this))}},vu.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(dc.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(d_.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(dc.referrer)},vu.prototype._dom_loaded=function(){d_.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||d_.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},vu.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!vc)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},vu.prototype._prepare_callback=function(e,t){if(d_.isUndefined(e))return null;if(vn)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},vu.prototype._send_request=function(e,t,r,n){var i=!0;if(vi)return this.__request_queue.push(arguments),i;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},o=null;!n&&(d_.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=d_.extend(s,r||{}),vn||(r.method="GET");var a="POST"===r.method,c=vs&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),!vn&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(o="data="+encodeURIComponent(t.data),delete t.data),d_.extend(t,this.get_config("api_extra_query_params")),e+="?"+d_.HTTPBuildQuery(t);var l=this;if("img"in t){var h=dc.createElement("img");h.src=e,dc.body.appendChild(h)}else if(c){try{i=vs(e,o)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(vn)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),d_.each(d,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var f=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(n)if(u){try{e=d_.JSONDecode(p.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else if(t=p.timeout&&!p.status&&new Date().getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(u){var e,t,i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(o)}catch(e){l.report_error(e),i=!1}else{var g=dc.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var v=dc.getElementsByTagName("script")[0];v.parentNode.insertBefore(g,v)}return i},vu.prototype._fetch_remote_settings=function(e){var t=function(){"strict"===e&&s.set_config({record_sessions_percent:0})};if(!pd.AbortController)return dy.critical("Remote settings unavailable: missing minimum required APIs"),t(),Promise.resolve();var r=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,n={$lib_version:p9.LIB_VERSION,mp_lib:"web",sdk_config:"1"},i=d_.HTTPBuildQuery(n),s=this,o=new AbortController,a=setTimeout(function(){o.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(s.get_config("token")+":")},signal:o.signal};return pd.fetch(r+"?"+i,c).then(function(e){if(clearTimeout(a),!e.ok){dy.critical("Network response was not ok"),t();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var r=e.sdk_config.config,n={};d_.each(r,function(e,t){va.hasOwnProperty(t)&&(n[t]=e)}),d_.isEmptyObject(n)?(dy.critical("No valid config keys found in remote settings."),t()):s.set_config(n)}else t()}).catch(function(e){clearTimeout(a),dy.critical("Failed to fetch remote settings",e),t()})},vu.prototype._execute_array=function(e){var t,r=[],n=[],i=[];d_.each(e,function(e){e&&(t=e[0],d_.isArray(t)?i.push(e):"function"==typeof e?e.call(this):d_.isArray(e)&&"alias"===t?r.push(e):d_.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var s=function(e,t){d_.each(e,function(e){if(d_.isArray(e[0])){var r=t;d_.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(r,this),s(n,this),s(i,this)},vu.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},vu.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},vu.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=d_.bind(function(e){return new fa(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:d_.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:d_.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:d_.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},vu.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,d_.each(this.request_batchers,function(e){e.start()}))},vu.prototype.stop_batch_senders=function(){this._batch_requests=!1,d_.each(this.request_batchers,function(e){e.stop(),e.clear()})},vu.prototype.push=function(e){this._execute_array([e])},vu.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},vu.prototype._encode_data_for_request=function(e){var t=dz(e);return this.get_config("api_payload_format")===vt&&(t=d_.base64Encode(t)),{data:t}},vu.prototype._track_or_batch=function(e,t){var r=d_.truncate(e.data,255),n=e.endpoint,i=e.batcher,s=e.should_send_immediately,o=e.send_request_options||{};t=t||dq;var a=!0,c=d_.bind(function(){return(!o.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(dy.log("MIXPANEL REQUEST:"),dy.log(r),this._send_request(n,this._encode_data_for_request(r),o,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!s?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},vu.prototype.track=d0(function(e,t,r,n){if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var i,s=(r=r||{}).transport;s&&(r.transport=s);var o=r.send_immediately;if("function"!=typeof n&&(n=dq),d_.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=d_.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!d_.isUndefined(a)){var c=new Date().getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?d_.info.marketingParams():{};t=d_.extend({},d_.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");d_.isArray(l)?d_.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),vu.prototype.set_group=d0(function(e,t,r){d_.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),vu.prototype.add_group=d0(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),vu.prototype.remove_group=d0(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),vu.prototype.track_with_groups=d0(function(e,t,r,n){var i=d_.extend({},t||{});return d_.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),vu.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},vu.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},vu.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new gJ)._init(this,e,t),this._cached_groups[r]=n),n},vu.prototype.track_pageview=d0(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=d_.extend(d_.info.mpPageViewProperties(),d_.info.campaignParams(),d_.info.clickParams()),i=d_.extend({},n,e);return this.track(r,i)}),vu.prototype.track_links=function(){return this._track_dom.call(this,gU,arguments)},vu.prototype.track_forms=function(){return this._track_dom.call(this,gj,arguments)},vu.prototype.time_event=function(e){d_.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var vh={persistent:!0},vp=function(e){var t;return t=d_.isObject(e)?e:d_.isUndefined(e)?{}:{days:e},d_.extend({},vh,t)};vu.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var n=vp(t=r[1]);n.persistent?this.persistence.register(e,n.days):d_.extend(this.unpersisted_superprops,e)}},vu.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1];var i=vp(r=n[2]);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),d_.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},vu.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);
1null!==r&&(e=r[0],(t=vp(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},vu.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},vu.prototype.identify=function(e,t,r,n,i,s,o,a){var c=this._run_hook("before_identify",e);if(null===c)return -1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(vr))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:u},""),e!==u&&e!==this.get_property(g4)&&(this.unregister(g4),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,s,o,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},vu.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=d_.UUID();this.register_once({distinct_id:vr+e,$device_id:e},""),this._check_and_start_session_recording()},vu.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},vu.prototype.alias=function(e,t){if(e===this.get_property(g5))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(d_.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(g4,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},vu.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},vu.prototype.set_config=function(e){d_.isObject(e)&&(d_.extend(this.config,e),e.batch_size&&d_.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),p9.DEBUG=p9.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),d_.isObject(e.hooks)&&(this.hooks={},d_.each(e.hooks,function(e,t){if(d_.isFunction(e))this.hooks[t]=[e];else if(d_.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)d_.isFunction(e[r])||dy.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else dy.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},vu.prototype.get_config=function(e){return this.config[e]},vu.prototype._run_hook=function(e){var t=dr.call(arguments,1);return d_.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(d_.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},vu.prototype.get_property=function(e){return this.persistence.load_prop([e])},vu.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},vu.prototype.toString=function(){var e=this.get_config("name");return e!==ve&&(e=ve+"."+e),e},vu.prototype._event_is_disabled=function(e){return d_.isBlockedUA(dh)||this._flags.disable_all_events||d_.include(this.__disabled_events,e)},vu.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&d_.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")||d_.cookie.get("mp_optout"))&&(d_.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},vu.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},vu.prototype._gdpr_call_func=function(e,t){return t=d_.extend({track:d_.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),d_.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie
1:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},vu.prototype.opt_in_tracking=function(e){e=d_.extend({enable_persistence:!0},e),this._gdpr_call_func(dZ,e),this._gdpr_update_persistence(e)},vu.prototype.opt_out_tracking=function(e){(e=d_.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(dK,e),this._gdpr_update_persistence(e)},vu.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(dX,e)},vu.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(dQ,e)},vu.prototype.clear_opt_in_out_tracking=function(e){e=d_.extend({enable_persistence:!0},e),this._gdpr_call_func(d3,e),this._gdpr_update_persistence(e)},vu.prototype.report_error=function(e,t){dy.error.apply(dy.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){dy.error(e)}},vu.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},vu.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):dy.log("remove_hook failed. Matching hook was not found"))},vu.prototype.init=vu.prototype.init,vu.prototype.reset=vu.prototype.reset,vu.prototype.disable=vu.prototype.disable,vu.prototype.time_event=vu.prototype.time_event,vu.prototype.track=vu.prototype.track,vu.prototype.track_links=vu.prototype.track_links,vu.prototype.track_forms=vu.prototype.track_forms,vu.prototype.track_pageview=vu.prototype.track_pageview,vu.prototype.register=vu.prototype.register,vu.prototype.register_once=vu.prototype.register_once,vu.prototype.unregister=vu.prototype.unregister,vu.prototype.identify=vu.prototype.identify,vu.prototype.alias=vu.prototype.alias,vu.prototype.name_tag=vu.prototype.name_tag,vu.prototype.set_config=vu.prototype.set_config,vu.prototype.get_config=vu.prototype.get_config,vu.prototype.get_api_host=vu.prototype.get_api_host,vu.prototype.get_property=vu.prototype.get_property,vu.prototype.get_distinct_id=vu.prototype.get_distinct_id,vu.prototype.toString=vu.prototype.toString,vu.prototype.opt_out_tracking=vu.prototype.opt_out_tracking,vu.prototype.opt_in_tracking=vu.prototype.opt_in_tracking,vu.prototype.has_opted_out_tracking=vu.prototype.has_opted_out_tracking,vu.prototype.has_opted_in_tracking=vu.prototype.has_opted_in_tracking,vu.prototype.clear_opt_in_out_tracking=vu.prototype.clear_opt_in_out_tracking,vu.prototype.get_group=vu.prototype.get_group,vu.prototype.set_group=vu.prototype.set_group,vu.prototype.add_group=vu.prototype.add_group,vu.prototype.remove_group=vu.prototype.remove_group,vu.prototype.add_hook=vu.prototype.add_hook,vu.prototype.remove_hook=vu.prototype.remove_hook,vu.prototype.track_with_groups=vu.prototype.track_with_groups,vu.prototype.start_batch_senders=vu.prototype.start_batch_senders,vu.prototype.stop_batch_senders=vu.prototype.stop_batch_senders,vu.prototype.start_session_recording=vu.prototype.start_session_recording,vu.prototype.stop_session_recording=vu.prototype.stop_session_recording,vu.prototype.pause_session_recording=vu.prototype.pause_session_recording,vu.prototype.resume_session_recording=vu.prototype.resume_session_recording,vu.prototype.get_session_recording_properties=vu.prototype.get_session_recording_properties,vu.prototype.get_session_replay_url=vu.prototype.get_session_replay_url,vu.prototype.get_tab_id=vu.prototype.get_tab_id,vu.prototype.DEFAULT_API_ROUTES=vo,vu.prototype.__get_recorder=vu.prototype.__get_recorder,g9.prototype.properties=g9.prototype.properties,g9.prototype.update_search_keyword=g9.prototype.update_search_keyword,g9.prototype.update_referrer_info=g9.prototype.update_referrer_info,g9.prototype.get_cross_subdomain=g9.prototype.get_cross_subdomain,g9.prototype.clear=g9.prototype.clear;var vd={},vf=function(){d_.each(vd,function(e,t){t!==ve&&(_[t]=e)}),_._=d_},vg=(g7=function(e,t){t()},m=0,(_=new vu).init=function(e,t,r){if(r)return _[r]||(_[r]=vd[r]=vl(e,t,r),_[r]._loaded()),_[r];var n=_;vd[ve]?n=vd[ve]:e&&((n=vl(e,t,ve))._loaded(),vd[ve]=n),_=n,1===m&&(pd[ve]=_),vf()}
1,_.init(),function(){function e(){e.done||(e.done=!0,vc=!0,vi=!1,d_.each(vd,function(e){e._dom_loaded()}))}if(dc.addEventListener)"complete"===dc.readyState?e():dc.addEventListener("DOMContentLoaded",e,!1);else if(dc.attachEvent){dc.attachEvent("onreadystatechange",e);var t=!1;try{t=null===pd.frameElement}catch(e){}dc.documentElement.doScroll&&t&&function t(){try{dc.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}d_.register_event(pd,"load",e,!0)}(),_);let vv=!1;function vm(){vv||(vv=!0,sG.init("phc_T1zs33kS6Na76ZwxVpPESaQCpwjvDwGOwClJDdRt4L8",{api_host:"https://us.i.posthog.com",loaded:e=>{}}),vg.init("dbef480165be32e94b462103a34ffed8",{debug:!1,track_pageview:!0,persistence:"localStorage"}))}function v_(e,t={}){try{vg.track(e,t)}catch{}try{sG.capture(e,t)}catch{}}function vy(e,t={}){try{vg.identify(e),vg.people.set(t)}catch{}try{sG.identify(e,t)}catch{}}e.s(["identifyUser",()=>vy,"initAnalytics",()=>vm,"trackEvent",()=>v_],96057)}]);
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.