diff --git a/assets/icons/delete.svg b/assets/icons/delete.svg
new file mode 100644
index 0000000..50b9d66
--- /dev/null
+++ b/assets/icons/delete.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/info.svg b/assets/icons/info.svg
new file mode 100644
index 0000000..213d381
--- /dev/null
+++ b/assets/icons/info.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/build/addons.asset.php b/frontend/build/addons.asset.php
index cbe6a7a..991eb4a 100644
--- a/frontend/build/addons.asset.php
+++ b/frontend/build/addons.asset.php
@@ -1 +1 @@
- array('react', 'react-dom'), 'version' => 'fd3b74144a72f90a0449');
+ array('react', 'react-dom'), 'version' => '5313a9a7ab78caac3bd1');
diff --git a/frontend/build/addons.js b/frontend/build/addons.js
index cb28cfa..dfc64b4 100644
--- a/frontend/build/addons.js
+++ b/frontend/build/addons.js
@@ -1,2 +1,2 @@
-(()=>{var e={108:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});const n=(e,t)=>{if(!e)return!0;const r=String(e).split("."),n=String(t).split(".");for(let e=0;ei)return!0;if(t{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Oppdater side","ui.notifications.couldNotLoad":"Kunne ikke laste inn siden","ui.notifications.refreshPage":"Oppdater siden og kontakt vår support hvis problemet vedvarer."}')},488:(e,t,r)=>{"use strict";r.d(t,{Dn:()=>c,M:()=>l,Tc:()=>a});const n={EUR:"€",USD:"$",GBP:"£",DKK:"kr",NOK:"kr",SEK:"kr"},i=["DKK","SEK","NOK"],o=e=>n[e]||e,s=(e,t,r)=>i.includes(r)?`${e} ${t}`:`${t} ${e}`,a=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"full"===e.priceType);if(t&&t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},c=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&void 0!==t.amount&&null!==t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},l=(e,t="Free",r=null)=>{if("free"===e.licenseType)return t;if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&"premium"===e.licenseType){if(0===t.amount)return r?.labels?.freeUntilRenewal||"Free until renewal";if(t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return`${s(r,e,t.currency)} `}}let n=e.prices.find(e=>"full"===e.priceType&&(!0===e.isActive||void 0===e.isActive));if(n||(n=e.prices.find(e=>!0===e.isActive)),n||(n=e.prices[0]),n&&n.amount&&n.currency){const e=o(n.currency),t=Number(n.amount).toFixed(2);return s(t,e,n.currency)}}if(e.priceCurrency&&e.priceAmount){const t=o(e.priceCurrency),r=Number(e.priceAmount).toFixed(2);return s(r,t,e.priceCurrency)}return""}},1174:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{uiI18n:e}=(0,i.D)(),t=e?.notifications?.updateWPText?.replace("{0}","6.2");return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},e?.notifications?.updateWPTitle),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.href="undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?`${window.marketplaceConfig.wpConfig.adminUrl}update-core.php`:"/wp-admin/update-core.php"}},(0,n.createElement)("span",null,e?.updateWPButton))))}},1199:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Pagina verversen","ui.notifications.couldNotLoad":"Kon de pagina niet laden","ui.notifications.refreshPage":"Ververs de pagina en neem contact op met onze (Engelstalige) support als het probleem zich blijft voordoen."}')},1338:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,pluginInAction:r,subscriptionStatus:a,isCheckingSubscription:c,isOnecomBrand:l,handlePluginAction:u,uiI18n:p,isSpecialPlugin:h}=(0,i.D)(),d=a[e.slug],f=c[e.slug],g=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",m=g?`${g}assets/`:"",v=t=>{const r=!e.installed;if(l&&h(e.slug)&&r&&"install"===t){(0,o.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:e,context:{action:t,result:"initiated"}});const r=new CustomEvent("onecom-plugin-provision",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});return void document.dispatchEvent(r)}u(t,e,"product_detail")},y=(e,t)=>e?e.replace("{0}",t||""):"",b=e?.name||"",_=l&&h(e.slug)&&!e.installed&&!1===d,w=l&&h(e.slug)&&!e.installed&&(f||void 0===d);return(0,n.createElement)("div",{className:"plugin-actions gv-mt-md"},w?(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md"}):_?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Select",buttonAction:"subscribe_addon",plugin:e});const t=new CustomEvent("onecom-subscribe-addon",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});document.dispatchEvent(t)},disabled:f},"Select"):e.installed?e.activated?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Manage",buttonAction:"manage_product",context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}});const t=(0,s.v)(e,!1);(0,s.J)(t)}},(0,n.createElement)("span",null,p?.labels?.manage||"Manage"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${m}icons/arrow_right.svg`})):(0,n.createElement)("button",{className:"gv-button gv-button-primary",disabled:r[e.slug],onClick:()=>v("activate")},r[e.slug]?y(p?.notifications?.activating||"Activating {0}",b):p?.activateButton||e.i18n?.activateButton||"Activate"):(0,n.createElement)("button",{className:"gv-button "+("seo-by-rank-math"===e.slug?"gv-button-secondary":"gv-button-primary"),disabled:r[e.slug],onClick:()=>v("install")},r[e.slug]?y(p?.notifications?.installing||"Installing {0}",b):p?.installButton||e.i18n?.installButton||"Install"))}},1352:(e,t,r)=>{"use strict";r.d(t,{TO:()=>o.T,gJ:()=>s,hz:()=>a,rV:()=>i.r});var n=r(1609),i=r(7565),o=r(8484);r(1831);const s=(0,n.createContext)();class a{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}},1609:e=>{"use strict";e.exports=window.React},1755:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(7979),o=r(8291);function s(){const{assetsBaseUrl:e}=(0,i.D)(),{t}=(0,o.Bd)();return e||void 0!==window.marketplaceConfig&&window.marketplaceConfig,(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},t("ui.notifications.couldNotLoad")),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t("ui.notifications.refreshPage")),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.reload()}},(0,n.createElement)("span",null,t("ui.button.refreshPage")))))}},1831:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(7565),i=r(8484);const o={type:"3rdParty",init(e){(0,n.P)(e.options.react),(0,i.V)(e)}}},2176:(e,t,r)=>{"use strict";r(8437)},2635:(e,t,r)=>{"use strict";r.r(t),r.d(t,{changeLanguage:()=>Q,createInstance:()=>G,default:()=>H,dir:()=>K,exists:()=>re,getFixedT:()=>ee,hasLoadedNamespace:()=>ie,init:()=>J,keyFromSelector:()=>I,loadLanguages:()=>se,loadNamespaces:()=>oe,loadResources:()=>Y,reloadResources:()=>Z,setDefaultNamespace:()=>ne,t:()=>te,use:()=>X});const n=e=>"string"==typeof e,i=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},o=e=>null==e?"":""+e,s=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,c=e=>!e||n(e),l=(e,t,r)=>{const i=n(t)?t.split("."):t;let o=0;for(;o{const{obj:n,k:i}=l(e,t,Object);if(void 0!==n||1===t.length)return void(n[i]=r);let o=t[t.length-1],s=t.slice(0,t.length-1),a=l(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=l(e,s,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r},p=(e,t)=>{const{obj:r,k:n}=l(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},h=(e,t,r)=>{for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):h(e[i],t[i],r):e[i]=t[i]);return e},d=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const g=e=>n(e)?e.replace(/[&<>"'\/]/g,e=>f[e]):e,m=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let i=e;for(let e=0;e-1&&se?.replace("_","-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class w{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var k=new w;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,r,i={}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):n(r)&&o?a.push(...r.split(o)):a.push(r)));const c=p(this.data,a);return!c&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!c&&s&&n(r)?y(this.data?.[e]?.[t],r,o):c}addResource(e,t,r,n,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),u(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,i={silent:!1}){for(const i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=p(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?h(a,r,i):a={...a,...r},u(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var C={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};const E=Symbol("i18next/PATH_KEY");function I(e,t){const{[E]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,i)=>(r?.revoke?.(),i===E?e:(e.push(i),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return r.join(t?.keySeparator??".")}const O={},N=e=>!n(e)&&"boolean"!=typeof e&&"number"!=typeof e;class A extends S{constructor(e,t={}){super(),((e,t,r)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(r[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);return void 0!==n?.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const s=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=m.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const i=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,r,i));if(s&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(o)?[o]:o};const s=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(i)}return{key:e,namespaces:n(o)?[o]:o}}translate(e,t,r){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=I(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(e[e.length-1],i),l=c[c.length-1];let u=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const p=i.lng||this.language,h=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===p?.toLowerCase())return h?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;const d=this.resolve(e,i);let f=d?.res;const g=d?.usedKey||a,m=d?.exactUsedKey||a,v=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==i.count&&!n(i.count),_=A.hasDefaultValue(i),w=b?this.pluralResolver.getSuffix(p,i.count,i):"",k=i.ordinal&&b?this.pluralResolver.getSuffix(p,i.count,{ordinal:!1}):"",S=b&&!i.ordinal&&0===i.count,x=S&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${w}`]||i[`defaultValue${k}`]||i.defaultValue;let C=f;y&&!f&&_&&(C=x);const E=N(C),O=Object.prototype.toString.apply(C);if(!(y&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(O)<0)||n(v)&&Array.isArray(C))if(y&&n(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,i,r));else{let t=!1,n=!1;!this.isValidLookup(f)&&_&&(t=!0,f=x),this.isValidLookup(f)||(n=!0,f=a);const o=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:f,c=_&&x!==f&&this.options.updateMissing;if(n||t||c){if(this.logger.log(c?"updateKey":"missingKey",p,l,a,c?x:f),s){const e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r{const n=_&&r!==f?r:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,n,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,n,c,i),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,i);S&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,i[`defaultValue${t}`]||x)})}):r(e,a,x))}f=this.extendTranslation(f,e,i,d,r),n&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(n||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,C,{...i,ns:c}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(i),d):e}if(s){const e=Array.isArray(C),t=e?[]:{},r=e?m:g;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const n=`${r}${s}${e}`;t[e]=_&&!f?this.translate(n,{...i,defaultValue:N(x)?x[e]:void 0,joinArrays:!1,ns:c}):this.translate(n,{...i,joinArrays:!1,ns:c}),t[e]===n&&(t[e]=C[e])}f=t}}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(i),d):f}extendTranslation(e,t,r,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const s=n(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||i.usedLng,r),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=n(s)?[s]:s;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=C.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,i,o,s,a;return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(e,t),l=c.key;i=l;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=void 0!==t.count&&!n(t.count),h=p&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(n(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(a=e,O[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(O[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{if(this.isValidLookup(r))return;s=n;const i=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&0===e.indexOf(o)&&i.push(l+e.replace(o,this.options.pluralSeparator)),i.push(l+e),h&&i.push(l+r)),d){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;i.push(n),p&&(t.ordinal&&0===e.indexOf(o)&&i.push(n+e.replace(o,this.options.pluralSeparator)),i.push(n+e),h&&i.push(n+r))}}let a;for(;a=i.pop();)this.isValidLookup(r)||(o=a,r=this.getResource(n,e,a,t))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!n(e.replace);let i=r?e.replace:e;if(r&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const e of t)delete i[e]}return i}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class R{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):n(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{i.indexOf(e)<0&&o(this.formatLanguageCode(e))}),i}}const M={zero:0,one:1,two:2,few:3,many:4,other:5},T={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class L{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=b("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:n})}catch(r){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),T;if(!e.match(/-|_/))return T;const n=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(n,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((e,t)=>M[e]-M[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const P=(e,t,r,i=".",o=!0)=>{let s=((e,t,r)=>{const n=p(e,r);return void 0!==n?n:p(t,r)})(e,t,r);return!s&&o&&n(r)&&(s=y(e,r,i),void 0===s&&(s=y(t,r,i))),s},D=e=>e.replace(/\$/g,"$$$$");class F{constructor(e={}){this.logger=k.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?d(i):o||"{{",this.suffix=s?d(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=p?d(p):h||d("$t("),this.nestingSuffix=f?d(f):m||d(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let s,a,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const n=P(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}const n=e.split(this.formatSeparator),o=n.shift().trim(),s=n.join(this.formatSeparator).trim();return this.format(P(t,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:o})};this.resetRegExp();const p=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>D(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?D(this.escape(e)):D(e)}].forEach(t=>{for(c=0;s=t.regex.exec(e);){const r=s[1].trim();if(a=u(r),void 0===a)if("function"==typeof p){const t=p(e,s,i);a=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))a="";else{if(h){a=s[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a=""}else n(a)||this.useRawValueToEscape||(a=o(a));const l=t.safeValue(a);if(e=e.replace(s[0],l),h?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t,r={}){let i,s,a;const c=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,a);const o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!n(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==u&&(l=i[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=t(c.call(this,i[1].trim(),a),a),s&&i[0]===e&&!n(s))return s;n(s)||(s=o(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const U=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=n+JSON.stringify(o);let a=t[s];return a||(a=e(b(n),i),t[s]=a),a(r)}},j=e=>(t,r,n)=>e(b(r),n)(t);class B{constructor(e={}){this.logger=k.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?U:j;this.formats={number:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=U(t)}format(e,t,r,n={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class $ extends S{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){const i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){const n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:i}=l(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&n{this.read.call(this,e,t,r,n+1,2*i,o)},i):o(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}}prepareLoading(e,t,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);const o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i,o={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const a={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=5===c.length?c(e,t,r,n,a):c(e,t,r,n),i&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else c(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const z=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),q=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{};class W extends S{constructor(e={},t){var r;if(super(),this.options=q(e),this.services={},this.logger=k,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(n(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=z();this.options={...r,...this.options,...q(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?k.init(o(this.modules.logger),this.options):k.init(null,this.options),e=this.modules.formatter?this.modules.formatter:B;const t=new R(this.options);this.store=new x(this.options.resources,this.options);const n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new L(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new F(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new $(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=i(),a=()=>{const e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),s}loadResources(e,t=V){let r=t;const i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===i?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=V),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=i();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(n,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(n,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=n(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(n(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const i=(e,t,...n)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||i.keyPrefix);const s=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=I(e,{...this.options,...t})),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=I(e,{...this.options,...t})),a=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(a,o)};return n(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(r,e)||n&&!o(i,e)))}loadNamespaces(e,t){const r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=i();n(e)&&(e=[e]);const o=this.options.preload||[],s=e.filter(e=>o.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=o.concat(s),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new R(z());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new W(e,t)}cloneInstance(e={},t=V){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new W(n);if(void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{});i.store=new x(e,n),i.services.resourceStore=i.store}return i.translator=new A(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=W.createInstance();H.createInstance=W.createInstance;const G=H.createInstance,K=H.dir,J=H.init,Y=H.loadResources,Z=H.reloadResources,X=H.use,Q=H.changeLanguage,ee=H.getFixedT,te=H.t,re=H.exists,ne=H.setDefaultNamespace,ie=H.hasLoadedNamespace,oe=H.loadNamespaces,se=H.loadLanguages},2648:(e,t,r)=>{"use strict";r(1609),r(8437),r(9454)},2875:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});const n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},o=e=>i[e],s=e=>e.replace(n,o)},3220:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,v:()=>n});const n=(e,t=!1)=>{let r=e.redirectUrl;const n="seo-by-rank-math"===e.slug||"seo-by-rank-math-pro"===e.slug,i=e.onboardingUrl&&"string"==typeof e.onboardingUrl&&""!==e.onboardingUrl.trim();if(n){const t=window.marketplaceConfig?.wpConfig;(!t||!0!==t.rankMathRegistrationSkip)&&i&&(r=e.onboardingUrl)}else t&&i&&(r=e.onboardingUrl);return r},i=e=>{if(e&&""!==e.trim()){const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.adminUrl;if(t){let r=e;r.startsWith("wp-admin/")&&(r=r.substring(9));const n=`${t}${r}`;window.location.href=n}else{const t=`${window.location.origin}/${e}`;window.location.href=t}return}window.location.href="/wp-admin/plugins.php"}},3227:(e,t,r)=>{"use strict";r(1609),r(7674),r(1352),r(9454)},3273:(e,t,r)=>{"use strict";r(1609),r(1352)},3461:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Päivitä sivu","ui.notifications.couldNotLoad":"Sivua ei voitu ladata","ui.notifications.refreshPage":"Päivitä sivu ja ota yhteyttä asiakaspalveluumme, jos ongelma jatkuu."}')},3526:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{loadingAction:e,loadingPlugin:t,assetsBaseUrl:r}=(0,i.D)();if(!e)return null;const o=`${r||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||""}assets/images/spinner.svg`;return(0,n.createElement)("div",{className:"loading-overlay show"},(0,n.createElement)("div",{className:"gv-loader-container gv-pos-center gv-pos-absolute"},(0,n.createElement)("gv-loader",{src:o}),(0,n.createElement)("p",null,e)))}},3591:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualizar página","ui.notifications.couldNotLoad":"No se puede cargar la página","ui.notifications.refreshPage":"Actualice la página y póngase en contacto con nuestro servicio de asistencia si el problema persiste."}')},3699:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(1609),i=r(7979),o=r(488),s=r(4598),a=r(9962),c=r(4677),l=r(4800),u=(r(6530),r(1755)),p=r(1174),h=r(7008),d=r(3220);function f(){const{apiBaseUrl:e,assetsBaseUrl:t,pluginInAction:r,setPluginInAction:f,subscriptionStatus:g,fetchSubscriptionStatus:m,isOnecomBrand:v,plugins:y,setPlugins:b,uiI18n:_,setUiI18n:w,handlePluginAction:k,catalogError:S,setCatalogError:x,catalogLoading:C,setCatalogLoading:E,shouldShowProvision:I,isSpecialPlugin:O,shouldShowPlugin:N,isWpVersionSupported:A}=(0,i.D)(),[R,M]=(0,n.useState)(null),[T,L]=(0,n.useState)([]),[P,D]=(0,n.useState)(null),F=(0,n.useRef)(null),U=(0,n.useRef)(!1),j=(0,n.useRef)(!1),B=((0,n.useRef)(null),(0,n.useRef)(null)),$=(0,n.useRef)(null),z=(0,n.useRef)(!1),q=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",V=q?`${q}assets/icons/`:"",W="undefined"!=typeof window?new URLSearchParams(window.location.search).get("plugin"):null;if((0,n.useEffect)(()=>{U.current||(U.current=!0,E(!0),x(null),fetch(e).then(e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return B.current=Date.now(),e.json()}).then(e=>{if((e.is_cached||e.cached)&&(z.current=!0),!(e.success&&e.data&&e.data.catalog))throw(0,h.oe)({category:"addons_page",itemName:"Addons Page",isContentRendered:!1}),new Error("Invalid API response structure");{const t=e.data.catalog;b(t);const r=!0===t.find(e=>"seo-by-rank-math"===e.slug)?.activated,n=!0===t.find(e=>"seo-by-rank-math-pro"===e.slug)?.activated,i=t.filter(e=>!!N(e)&&!0!==e.activated&&(!0===e.featured||"true"===e.featured)&&("seo-by-rank-math"===e.slug?!r&&!n:"seo-by-rank-math-pro"!==e.slug||r)).sort((e,t)=>(void 0!==e.displayOrder?parseInt(e.displayOrder):1/0)-(void 0!==t.displayOrder?parseInt(t.displayOrder):1/0)).slice(0,3);L(i);const o=e.data.uiI18n||e.data.ui_i18n;o&&w(o),v&&t.filter(e=>O(e.slug)).forEach(e=>{m(e.slug)})}}).catch(e=>{console.error("Failed to fetch plugins:",e),(0,h.oe)({category:"addons_page",itemName:"Addons Page",isContentRendered:!1}),x(e.message||"Failed to load plugins")}).finally(()=>{E(!1)}))},[e,b,w,x,E,N]),(0,n.useEffect)(()=>{if(W&&y.length){const e=y.find(e=>e.slug===W);e&&M(e)}else W||M(null)},[W,y]),(0,n.useEffect)(()=>{const e=()=>{const e=new URLSearchParams(window.location.search).get("plugin");if(e){if(y.length){const t=y.find(t=>t.slug===e);t&&M(t)}}else M(null)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[y]),(0,n.useEffect)(()=>{const e=e=>{F.current&&!F.current.contains(e.target)&&D(null)};return null!==P?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[P]),(0,n.useEffect)(()=>{C||S||!(y.length>0)||W||j.current||($.current=Date.now(),"true"===sessionStorage.getItem("mp_skip_page_view")?sessionStorage.removeItem("mp_skip_page_view"):(0,h.oe)({category:"addons_page",itemName:"Addons Page",contentReceivedAt:B.current,contentRenderedAt:$.current,isCached:z.current}),j.current=!0)},[C,S,y.length,W]),C)return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mb-sm",style:{width:"13%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-fluid",style:{width:"33%"}}),(0,n.createElement)("div",{className:"gv-flex gv-justify-between gv-items-start"},(0,n.createElement)("div",{className:"gv-w-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-sm gv-mb-sm",style:{width:"13%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-md",style:{width:"33%"}})),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-md",style:{width:"13%"}})),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-skeleton-loader"},[0,1,2].map(e=>(0,n.createElement)("div",{key:e,className:"gv-card gv-gap-md gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius"},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-3 gv-tab-span-3"},(0,n.createElement)("div",{className:"gv-skeleton gv-icon-tile"})),(0,n.createElement)("div",{className:"gv-desk-span-8 gv-tab-span-7 gv-span-7"},(0,n.createElement)("div",{className:"gv-skeleton gv-mb-xs",style:{height:"20px",width:"70%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-mb-sm",style:{height:"16px",width:"100%"}}),(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"40%"}})),(0,n.createElement)("div",{className:"gv-span-2 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"24px",width:"24px"}}))))),(0,n.createElement)("div",{className:"gv-data-table gv-mt-lg gv-overflow-x-auto gv-skeleton-loader"},(0,n.createElement)("table",{className:"gv-col-5-shrink gv-col-6-shrink"},(0,n.createElement)("thead",null,(0,n.createElement)("tr",null,(0,n.createElement)("th",{scope:"col"}),(0,n.createElement)("th",{scope:"col"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"50px"}})),(0,n.createElement)("th",{scope:"col"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"50px"}})),(0,n.createElement)("th",{scope:"col"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"50px"}})),(0,n.createElement)("th",{scope:"col"}))),(0,n.createElement)("tbody",null,[0,1].map(e=>(0,n.createElement)("tr",{key:e},(0,n.createElement)("td",{style:{width:"80px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-icon-tile"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"24px"}}))))))));if(S)return(0,n.createElement)(u.A,null);if(!A("6.2"))return(0,n.createElement)(p.A,null);const H=y.filter(e=>e.installed||I(e));return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col"},(0,n.createElement)("div",{className:"addons-header-wrap"},(0,n.createElement)("h3",null,_?.headings?.myProducts),(0,n.createElement)("p",{className:"gv-text-sm"},_?.text?.myProducts)),T.length>0&&(0,n.createElement)("section",{className:"addons-section gv-mt-fluid"},(0,n.createElement)("div",{className:"addons-header-container gv-flex gv-max-mob-flex-col gv-justify-between gv-items-start gv-tab-gap-lg"},(0,n.createElement)("div",{className:"heading-container gv-flex-1"},(0,n.createElement)("p",{className:"gv-text-bold gv-text-lg gv-mb-xs"},_?.headings?.recommendedProducts),(0,n.createElement)("p",{className:"gv-text-sm gv-mb-md"},_?.text?.recommendedText)),(0,n.createElement)("button",{className:"gv-button gv-button-primary gv-mode-condensed gv-flex-shrink-0",onClick:()=>{const e="undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?window.marketplaceConfig.wpConfig.adminUrl:"/wp-admin/";window.location.href=`${e}admin.php?page=onecom-marketplace`}},_.seeAllProducts,(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${V}arrow_right.svg`,alt:"See all products"}))),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-mt-md"},T.map(e=>{I(e);const t=e.i18n.freeTrialPeriod&&""!==e.i18n.freeTrialPeriod.trim()?e.i18n.freeTrialPeriod:_?.labels?.free||"Free",r=(0,o.M)(e,t,_),i=(0,o.Tc)(e),s=(0,o.Dn)(e);return(0,n.createElement)("div",{key:e.slug,className:"gv-card gv-gap-sm gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius ocmp-plugin-cards",onClick:()=>{var t;window.location.href=(t=e.slug,`${"undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?window.marketplaceConfig.wpConfig.adminUrl:"/wp-admin/"}admin.php?page=onecom-marketplace&plugin=${t}`)}},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-2 gv-tab-span-2"},(0,n.createElement)("img",{className:"gv-icon-tile",src:e.iconUrl||`${V}add_box.svg`,alt:e.name})),(0,n.createElement)("div",{className:"gv-desk-span-9 gv-tab-span-9 gv-span-9 gv-ml-sm"},(0,n.createElement)("div",{className:"gv-flex gv-flex-col gv-justify-between gv-h-full"},(0,n.createElement)("p",{className:"gv-text-sm gv-text-bold gv-mb-xs"},e.name),(0,n.createElement)("p",{className:"oc-card-content gv-text-on-alternative gv-mb-sm gv-text-sm gv-flex-1"},e.i18n.listingDescription||e.i18n.subtitle),(0,n.createElement)("span",{className:"gv-caption-lg gv-text-bold"},(0,n.createElement)(n.Fragment,null,"premium"===e.licenseType&&s>0?null!==s?s:i:r,"free"!==e.licenseType&&r&&r!==t&&r!==(_?.labels?.freeUntilRenewal||"Free until renewal")&&(0,n.createElement)("span",{className:"gv-period"},"/",_?.labels?.timeMonth))))),(0,n.createElement)("div",{className:"gv-span-1 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-reset-button",style:{display:"inline-block"},"aria-label":`View details for ${e.name}`},(0,n.createElement)("img",{className:"gv-tile",src:`${V}arrow_forward.svg`,alt:`View ${e.name} details`,style:{minWidth:"24px"}}))))}))),H.length>0&&(0,n.createElement)("section",{className:"addons-section gv-mt-fluid"},(0,n.createElement)("div",{className:"gv-data-table gv-mt-lg gv-addons-table"},(0,n.createElement)("table",{className:"gv-col-5-shrink gv-col-6-shrink"},(0,n.createElement)("thead",null,(0,n.createElement)("tr",null,(0,n.createElement)("th",{scope:"col"}),(0,n.createElement)("th",{scope:"col"},_?.labels?.name),(0,n.createElement)("th",{scope:"col"},_?.labels?.type),(0,n.createElement)("th",{scope:"col"},_?.labels?.status),(0,n.createElement)("th",{scope:"col"}),(0,n.createElement)("th",{scope:"col"}))),(0,n.createElement)("tbody",null,H.map((e,t)=>{const r=I(e);return(0,n.createElement)("tr",{id:e.slug,key:e.slug},(0,n.createElement)("td",{style:{width:"80px"}},(0,n.createElement)("img",{src:e.iconUrl||`${V}add_box.svg`,alt:e.name,className:"gv-icon-tile",style:{maxWidth:"auto"}})),(0,n.createElement)("td",null,e.name),(0,n.createElement)("td",null,"free"===e.licenseType?_?.labels?.freePlugin:_?.labels?.premiumPlugin),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-text-indicator"},(0,n.createElement)("span",{className:e.activated?"gv-indicator gv-state-positive":"gv-indicator gv-state-informative"}),(0,n.createElement)("span",null," ",e.activated?_?.labels?.active||"Active":r?_?.labels?.notInstalled||"Not Installed":_?.labels?.notActive||"Not Active"))),(0,n.createElement)("td",null,r?(0,n.createElement)("a",{href:"#",className:"gv-action",onClick:t=>{t.preventDefault();const r=new CustomEvent("onecom-plugin-provision",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});document.dispatchEvent(r)}},_?.installAndActivate||"Install and activate"):!e.activated&&(0,n.createElement)("a",{href:"#",className:"gv-action",onClick:t=>{t.preventDefault(),k("activate",e,"addons")}},_?.activateButton||"Activate")),(0,n.createElement)("td",null,(e.activated||e.installed&&!r)&&(0,n.createElement)("div",{className:"gv-pos-relative",ref:P===t?F:null},(0,n.createElement)("button",{type:"button","aria-label":"Toggle menu",className:"gv-reset-button",onClick:()=>D(P===t?null:t)},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${V}more_horiz.svg`})),(0,n.createElement)("div",{className:"gv-contextual-menu gv-pos-right "+(P===t?"":"gv-invisible")},(0,n.createElement)("div",{className:"gv-menu"},(0,n.createElement)("button",{type:"button",className:"gv-btn-close","aria-label":"Close",onClick:()=>D(null)},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${V}close.svg`})),(0,n.createElement)("ul",null,e.activated&&(0,n.createElement)("li",{className:"gv-mb-0"},(0,n.createElement)("a",{href:"#",className:"gv-menu-item",onClick:t=>{t.preventDefault(),D(null),(e=>{"undefined"!=typeof window&&window.marketplaceConfig?.data_consent_status&&(0,h.Mh)({buttonName:"Manage",buttonAction:"manage_product",context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}});const t=(0,d.v)(e,!1);(0,d.J)(t)})(e)}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${V}settings.svg`}),(0,n.createElement)("span",null,_?.labels?.manage||"Manage"))),e.activated&&(0,n.createElement)("li",{className:"gv-mb-0"},(0,n.createElement)("a",{href:"#",className:"gv-menu-item",onClick:t=>{t.preventDefault(),D(null),k("deactivate",e,"addons")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${V}cancel.svg`}),(0,n.createElement)("span",null,_?.deactivate||"Deactivate"))),(0,n.createElement)("li",{className:"gv-mb-0"},!e.activated&&e.installed&&(0,n.createElement)("a",{href:"#",className:"gv-menu-item",onClick:t=>{t.preventDefault(),D(null),k("delete",e,"addons")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${V}cancel.svg`}),(0,n.createElement)("span",null,_?.deleteButton||"Delete")))))))))}))))),(0,n.createElement)(c.A,null),(0,n.createElement)(l.A,null),R&&!W&&(()=>{const e=(t=R)&&"seo-by-rank-math"===t.slug?a.A:s.A;var t;return(0,n.createElement)(e,{plugin:R,onClose:()=>M(null),loading:C})})())}},3804:(e,t,r)=>{"use strict";r(4915),Object.create(null)},4469:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,noticeState:r,setNoticeState:a,handlePluginAction:c,cancelReload:l,uiI18n:u}=(0,i.D)();if(!r||!r.visible||r.pluginSlug!==e?.slug)return null;const p=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",h=p?`${p}assets/`:"",d="installed"===r.type,f="activated"===r.type,g=(e,t)=>e?e.replace("{0}",t||""):"",m=e?.name||"";return(0,n.createElement)("div",{className:"gv-notice gv-notice-success gv-p-lg gv-max-mob-pt-lg gv-mb-0 gv-mt-lg",style:{gridColumn:"1 / -1",width:"100%"}},(0,n.createElement)("img",{className:"gv-notice-icon",src:`${h}icons/success.svg`,alt:"Success"}),(0,n.createElement)("div",{className:"gv-notice-content"},(0,n.createElement)("div",{className:"gv-notice-title"},d&&g(u?.notifications?.pluginInstalled||"Plugin was installed.",m),f&&g(u?.notifications?.pluginActivated||"Plugin was activated.",m)),(0,n.createElement)("p",{className:"gv-text-sm"},d&&(u?.notifications?.activateNow||"Activate it now to start using it."),f&&g(u?.notifications?.manageInMyProducts||"{0} plugin was activated for this site. You can manage it on the My products page.",m))),d&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{c("activate",e,"product_detail")}},u?.activatePluginButton),f&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{(0,o.Mh)({buttonName:"Get started",buttonAction:"manage_product",plugin:e,context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}}),l();const t=(0,s.v)(e,!0);(0,s.J)(t)}},(0,n.createElement)("span",null,u?.featuredCta||"Get Started"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/arrow_forward.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-notice-close","aria-label":"Close",onClick:()=>{a({visible:!1,type:null,pluginSlug:null}),sessionStorage.removeItem("mp_success_notice")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/close.svg`})))}},4598:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(7979),l=r(488);function u({plugin:e,onClose:t,usePortal:r=!0,loading:u=!1}){const{assetsBaseUrl:p,useWPHandlers:h,pluginInAction:d,uiI18n:f,subscriptionStatus:g,isCheckingSubscription:m,setNoticeState:v,setErrorState:y}=(0,c.D)(),b=p||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",_=b?`${b}assets/icons/`:"";if(u){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-flex-col gv-items-start"},(0,n.createElement)("div",{className:"gv-flex gv-items-center gv-gap-xs"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"60px"}}))),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-sm gv-text-sm"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mb-sm",style:{marginBottom:"24px"}}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"80%"}})),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full",style:{marginTop:"75px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"70%"}})),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"120px",height:"32px"}})),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mt-md"}))))),(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"150px"}}))),[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-w-full"})))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"180px"}}),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"250px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{v(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null}),y(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null})},[e.slug,v,y]),(0,n.useEffect)(()=>{const e=()=>{v({visible:!1,type:null,pluginSlug:null}),y({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[v,y]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const w=e.bannerUrl||e.image||e.thumbnail||"https://gravity.group.one/guide-images/product-image@2x.png",k=e.name||"Product",S=e.i18n?.description||e.i18n?.subtitle||e.description||e.shortDescription||"No description available.",x=e.i18n?.subtitle,C="free"===e.licenseType,E=e.i18n?.freeTrialText||"",I=E&&""!==E.trim(),O=e.i18n?.freeTrialPeriod||"",N=O&&""!==O.trim(),A=N||I?f?.headings?.freeTrial||"Free trial*":(0,l.M)(e,f?.labels?.free||"Free",f),R=A===(f?.labels?.freeUntilRenewal||"Free until renewal"),M=(0,l.Tc)(e),T=(0,l.Dn)(e),L=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},P=L(e.i18n,"keyBenefitContent"),D=L(e.i18n,"keyFeatureContent"),F=[];if(e.i18n&&"object"==typeof e.i18n){let t=1;for(;e.i18n[`coreFeatureTitle${t}`]||e.i18n[`coreFeatureContent${t}`];){const r=e.i18n[`coreFeatureTitle${t}`],n=e.i18n[`coreFeatureContent${t}`];r&&""!==r.trim()&&n&&""!==n.trim()&&F.push({name:r,desc:n}),t++}}const U=D,j=P,B=F,$=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-flex-col gv-items-start"},(0,n.createElement)("a",{href:"#",onClick:r=>{if(r.preventDefault(),!d[e.slug])if("undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()},className:"gv-flex gv-items-center gv-gap-xs",role:"button","aria-label":"Go back",style:{opacity:d[e.slug]?.5:1,pointerEvents:d[e.slug]?"none":"auto",cursor:d[e.slug]?"not-allowed":"pointer"},"aria-disabled":d[e.slug]?"true":"false"},(0,n.createElement)("img",{style:{minWidth:"24px"},className:"gv-tile",src:`${_}arrow_back.svg`,alt:"Back to plugins"}),(0,n.createElement)("span",null,f.backButton)),(0,n.createElement)(s.A,{plugin:e}),(0,n.createElement)(a.A,{plugin:e})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},k),(0,n.createElement)("p",{className:"gv-text-sm"},S)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${w} 1x, ${w} 2x`}),(0,n.createElement)("img",{src:w,srcSet:`${w} 1x, ${w} 2x`,alt:`${k} image`})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},k),(0,n.createElement)("p",null,x)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},N||I?(0,n.createElement)("span",{className:"gv-price-text"},A):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("span",{className:"gv-price-text"},"premium"===e.licenseType&&null!==T?null!==T?T:M:A),!C&&!R&&A&&(0,n.createElement)("span",{className:"gv-period"},"/",f?.labels?.timeMonth))),N||I?(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},E)):!C&&A&&M&&null!==T&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},f.labels.untilRenewal," [",T,"]/",f?.labels?.timeMonth),(0,n.createElement)("div",{className:"gv-info"},f.labels.afterThat," [",M,"]/",f?.labels?.timeMonth))),h?(0,n.createElement)(o.A,{plugin:e}):e.download&&(0,n.createElement)("a",{href:e.download,download:!0,className:"gv-button gv-button-secondary"},"Download"))))),U.length>0&&(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},f?.keyFeatureHeading||e.i18n?.keyFeatureHeading))),U.map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},e)))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},j.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},f?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},j.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),B.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},f?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},B.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)($,document.body):$}},4677:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o({plugin:e}){const{assetsBaseUrl:t,errorState:r,setErrorState:o,uiI18n:s,plugins:a}=(0,i.D)(),c=e||a.find(e=>e.slug===r.pluginSlug),l=r&&r.visible&&r.pluginSlug===c?.slug;if((0,n.useEffect)(()=>{if(l){const e=setTimeout(()=>{h()},5e3);return()=>clearTimeout(e)}},[l]),!l)return null;const u=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/`:"",h=()=>{o({visible:!1,type:null,pluginSlug:null})},d="activate"===r.type,f="deactivate"===r.type,g="install"===r.type,m="delete"===r.type,v=(e,t)=>e?e.replace("{0}",t||""):"",y=c?.name||"";return(0,n.createElement)("div",{className:"gv-toast-container"},(0,n.createElement)("div",{className:"gv-toast gv-toast-alert gv-visible"},(0,n.createElement)("gv-icon",{className:"gv-notice-icon","aria-hidden":"true",src:`${p}icons/error.svg`}),(0,n.createElement)("div",{className:"gv-toast-content"},d&&v(s?.notifications?.pluginActivationFailed||"Couldn't activate plugin.",y),f&&v(s?.notifications?.pluginDeactivationFailed||"Couldn't deactivate plugin.",y),g&&v(s?.notifications?.pluginInstallationFailed||"Couldn't install plugin.",y),m&&v(s?.notifications?.pluginDeletionFailed||"Couldn't delete plugin.",y)),(0,n.createElement)("button",{type:"button",className:"gv-toast-close","aria-label":"Close",onClick:h},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}icons/close.svg`}))))}},4800:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o({plugin:e}){const{assetsBaseUrl:t,successState:r,setSuccessState:o,uiI18n:s,plugins:a}=(0,i.D)(),c=e||a.find(e=>e.slug===r.pluginSlug),l=r&&r.visible&&r.pluginSlug===c?.slug;if((0,n.useEffect)(()=>{if(l){const e=setTimeout(()=>{h()},5e3);return()=>clearTimeout(e)}},[l]),!l)return null;const u=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/`:"",h=()=>{o({visible:!1,type:null,pluginSlug:null})},d="activate"===r.type,f="deactivate"===r.type,g="delete"===r.type,m=(e,t)=>e?e.replace("{0}",t||""):"",v=c?.name||"";return(0,n.createElement)("div",{className:"gv-toast-container"},(0,n.createElement)("div",{className:"gv-toast gv-toast-success gv-visible"},(0,n.createElement)("gv-icon",{className:"gv-notice-icon","aria-hidden":"true",src:`${p}icons/check_circle.svg`}),(0,n.createElement)("div",{className:"gv-toast-content"},d&&m(s?.notifications?.pluginActivatedShort||"Plugin activated.",v),f&&m(s?.notifications?.pluginDeactivated||"Plugin deactivated.",v),g&&m(s?.notifications?.pluginDeleted||"Plugin deleted successfully.",v)),(0,n.createElement)("button",{type:"button",className:"gv-toast-close","aria-label":"Close",onClick:h},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}icons/close.svg`}))))}},4811:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualiser la page","ui.notifications.couldNotLoad":"Impossible de charger la page","ui.notifications.refreshPage":"Veuillez rafraîchir la page et contact notre support si le problème persiste."}')},4814:(e,t,r)=>{"use strict";r(1609),r(3804),r(9454),r(7565)},4915:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5036:(e,t,r)=>{"use strict";var n=r(2635),i=r(8291),o=r(7823),s=r(8491),a=r(5205),c=r(3591),l=r(3461),u=r(4811),p=r(7529),h=r(1199),d=r(333);const f={en_GB:{translation:o},da_DK:{translation:s},de_DE:{translation:a},es_ES:{translation:c},fi_FI:{translation:l},fr_FR:{translation:u},it_IT:{translation:p},nl_NL:{translation:h},no_NO:{translation:d},nb_NO:{translation:d},pt_PT:{translation:r(5383)},sv_SE:{translation:r(8300)},fi:{translation:l}};n.default.use(i.r9).init({resources:f,lng:"en_GB",fallbackLng:"en_GB",interpolation:{escapeValue:!1}})},5205:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Seite aktualisieren","ui.notifications.couldNotLoad":"Die Seite konnte nicht geladen werden","ui.notifications.refreshPage":"Bitte aktualisieren Sie die Seite und Kontakt Sie unser Support, falls das Problem weiterhin besteht."}')},5383:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Atualizar página","ui.notifications.couldNotLoad":"Não foi possível carregar a página","ui.notifications.refreshPage":"Atualize a página e contacte a nossa equipa de suporte se o problema persistir."}')},5795:e=>{"use strict";e.exports=window.ReactDOM},6255:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(3699),o=r(3526),s=r(7979);const a=({apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:a,assetsBaseUrl:c})=>(0,n.createElement)(s.t,{apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:a,assetsBaseUrl:c},(0,n.createElement)(o.A,null),(0,n.createElement)("div",{className:"gv-activated"},(0,n.createElement)("div",{className:"marketplace-container gv-layout-product gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)(i.A,null))))},6530:()=>{var e=Object.defineProperty,t=(t,r,n)=>(((t,r,n)=>{r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n})(t,"symbol"!=typeof r?r+"":r,n),n);const r={};async function n(e){if(r.hasOwnProperty(e))return r[e];let t;return t=e.startsWith("data:")||!("caches"in self)?fetch(e).then(e=>e.text()):caches.open("gravity").then(async t=>{let r=await t.match(e);return r||(r=await fetch(e),r.ok&&await t.put(e,r.clone())),r.text()}),r[e]=t,t}class i extends HTMLElement{static get observedAttributes(){return["src"]}fetchFlag(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchFlag(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchFlag(r)}}t(i,"TAG_NAME","gv-flag");class o extends HTMLElement{static get observedAttributes(){return["src"]}fetchIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIcon(r)}}t(o,"TAG_NAME","gv-icon");class s extends HTMLElement{static get observedAttributes(){return["src"]}fetchIllustration(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIllustration(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIllustration(r)}}t(s,"TAG_NAME","gv-illustration");class a extends HTMLElement{static get observedAttributes(){return["src"]}fetchIndicator(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIndicator(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIndicator(r)}}t(a,"TAG_NAME","gv-indicator");class c extends HTMLElement{static get observedAttributes(){return["src"]}fetchLoader(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLoader(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLoader(r)}}t(c,"TAG_NAME","gv-loader");class l extends HTMLElement{static get observedAttributes(){return["src"]}fetchLogo(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLogo(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLogo(r)}}t(l,"TAG_NAME","gv-logo");class u extends HTMLElement{static get observedAttributes(){return["src"]}fetchPayIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchPayIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchPayIcon(r)}}t(u,"TAG_NAME","gv-pay-icon");class p extends HTMLElement{static get observedAttributes(){return["src"]}fetchTile(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchTile(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchTile(r)}}function h(e,t){customElements.get(e)||customElements.define(e,t)}t(p,"TAG_NAME","gv-tile"),h(i.TAG_NAME,i),h(o.TAG_NAME,o),h(s.TAG_NAME,s),h(a.TAG_NAME,a),h(c.TAG_NAME,c),h(l.TAG_NAME,l),h(u.TAG_NAME,u),h(p.TAG_NAME,p)},6751:(e,t,r)=>{"use strict";var n;if(r.d(t,{A:()=>Hd}),"undefined"==typeof window){var i={hostname:""};n={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:i,referrer:""},screen:{width:0,height:0},location:i,addEventListener:function(){},removeEventListener:function(){}}}else n=window;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},v(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var k,S=Object.defineProperty,x=function(e,t,r){return function(e,t,r){return t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},C=Object.defineProperty,E=function(e,t,r){return function(e,t,r){return t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},I=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(I||{}),O={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},N={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},A={};function R(e){if(A[e])return A[e];var t=globalThis[e],r=t.prototype,n=e in O?O[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in N?N[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return A[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 l=c[e].prototype;return document.body.removeChild(a),l?A[e]=l:r}catch(e){return r}}var M={};function T(e,t,r){var n,i=e+"."+String(r);if(M[i])return M[i].call(t);var o=R(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(M[i]=s,s.call(t)):t[r]}var L=function(e){return T("Node",e,"childNodes")},P=function(e){return T("Node",e,"parentNode")},D=function(e){return T("Node",e,"parentElement")},F=function(e){return T("Node",e,"textContent")},U=function(e){return e&&"host"in e?T("ShadowRoot",e,"host"):null},j=function(e){return e&&"shadowRoot"in e?T("Element",e,"shadowRoot"):null};function B(e){return e.nodeType===e.ELEMENT_NODE}function $(e){var t=e&&"host"in e&&"mode"in e&&U(e)||null;return Boolean(t&&"shadowRoot"in t&&j(t)===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return V(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function V(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=q(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?te(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?te(i,t):i}var W=function(){function e(){E(this,"idNodeMap",new Map),E(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function H(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&G(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function G(e){return e.toLowerCase()}var K="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?G(t):null}function Y(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,X=/^(?:[a-z+]+:)?\/\//i,Q=/^www\..*/i,ee=/^(data:)([^,]*),(.*)/i;function te(e,t){return(e||"").replace(Z,function(e,r,n,i,o,s){var a,c=n||o||s,l=r||i||"";if(!c)return e;if(X.test(c)||Q.test(c))return"url("+l+c+l+")";if(ee.test(c))return"url("+l+c+l+")";if("/"===c[0])return"url("+l+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+l+")";var u=t.split("/"),p=c.split("/");u.pop();for(var h,d=b(p);!(h=d()).done;){var f=h.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+l+u.join("/")+l+")"})}function re(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ne,ie,oe=1,se=new RegExp("[^a-z0-9-_:]");function ae(){return oe++}var ce=/^[^ \t\n\r\u000c]+/,le=/^[, \t\n\r\u000c]+/,ue=new WeakMap;function pe(e,t){return t&&""!==t.trim()?he(e,t):t}function he(e,t){var r=ue.get(e);if(r||(r=e.createElement("a"),ue.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function de(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?pe(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(le),!(r>=t.length);){var o=n(ce);if(","===o.slice(-1))o=pe(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=pe(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?te(n,he(e)):"object"===t&&"data"===r?pe(e,n):n:pe(e,n):n}function fe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ge(P(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ge(P(e),t,r)}function me(e,t,r,n){var i;if(B(e)){if(!L(i=e).length)return!1}else{if(null===D(e))return!1;i=D(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ge(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 ve(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,l=void 0===c?{}:c,u=t.maskTextFn,p=t.maskInputFn,h=t.dataURLOptions,f=void 0===h?{}:h,g=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,b=void 0!==y&&y,_=t.cssCaptured,w=void 0!==_&&_,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:I.Document,childNodes:[],compatMode:e.compatMode}:{type:I.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,c=t.dataURLOptions,l=void 0===c?{}:c,u=t.inlineImages,p=t.recordCanvas,h=t.keepIframeSrcFn,f=t.newlyAddedElement,g=void 0!==f&&f,m=t.rootId,v=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,t.blockClass,t.blockSelector),y=function(e){if(d(e,HTMLFormElement))return"form";var t=G(e.tagName);return se.test(t)?"div":t}(e),b={},_=e.attributes.length,w=0;w<_;w++){var k=e.attributes[w];fe(y,k.name,k.value)||(b[k.name]=de(n,y,G(k.name),k.value))}if("link"===y&&i){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;S&&(x=q(S)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===y&&e.sheet){var C=q(e.sheet);C&&(e.childNodes.length>1&&(C=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=re(e,r),a=s.length/e.length,c=1;c2&&""===h[0]&&""!==n[c-1].textContent)d=s.indexOf(p,1);else if(1===h.length){if(p=p.substring(0,p.length-1),(h=s.split(p)).length<=1)return i.push(e),i;u=101}else u===l.length-1&&(d=s.indexOf(p));if(h.length>=2&&u>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var g=re(f).length;d=s.indexOf(p,g)}-1===d&&(d=h[0].length)}if(-1!==d){for(var m=Math.floor(d/a);m>0&&m50*n.length)return i.push(e),i;var v=re(e.substring(0,m),r);if(v.length===d){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}v.length",T=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{ne.width=R.naturalWidth,ne.height=R.naturalHeight,ie.drawImage(R,0,0),b.rr_dataURL=ne.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+M+"! Error: "+e)}"anonymous"===R.crossOrigin&&(T?b.crossOrigin=T:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===y||"video"===y){var P=b;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(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var D=e.getBoundingClientRect(),F=D.width,U=D.height;b={class:b.class,rr_width:F+"px",rr_height:U+"px"}}"iframe"!==y||h(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:I.Element,tagName:y,attributes:b,childNodes:[],isSVG:(j=e,Boolean("svg"===j.tagName||j.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var j}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:b,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=P(e),a=s&&s.tagName,c="",l="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?c="SCRIPT_PLACEHOLDER":o||(c=F(e),l&&c&&(c=te(c,he(t.doc)))),!l&&!u&&c&&r&&(c=n?n(c,D(e)):c.replace(/[\S]/g,"*")),{type:I.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:u,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:I.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:I.Comment,textContent:F(e)||"",rootId:k};default:return!1}}function ye(e){return null==e?"":e.toLowerCase()}function be(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,l=void 0!==c&&c,u=t.inlineStylesheet,p=void 0===u||u,h=t.maskInputOptions,d=void 0===h?{}:h,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,w=void 0!==_&&_,k=t.recordCanvas,S=void 0!==k&&k,x=t.onSerialize,C=t.onIframeLoad,E=t.iframeLoadTimeout,O=void 0===E?5e3:E,N=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,R=void 0===A?5e3:A,M=t.keepIframeSrcFn,T=void 0===M?function(){return!1}:M,D=t.newlyAddedElement,F=void 0!==D&&D,U=t.cssCaptured,q=void 0!==U&&U,V=t.needsMask,W=t.preserveWhiteSpace,H=void 0===W||W;V||(V=me(e,s,a,void 0===V));var G,K=ve(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:F,cssCaptured:q});if(!K)return console.warn(e,"not serialized"),null;G=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===I.Comment)return!0;if(e.type===I.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"===Y(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(K,m)||!H&&K.type===I.Text&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ae();var J=Object.assign(K,{id:G});if(n.add(e,J),-2===G)return null;x&&x(e);var Z=!l;if(J.type===I.Element){Z=Z&&!J.needBlock,delete J.needBlock;var X=j(e);X&&z(X)&&(J.isShadowHost=!0)}if((J.type===I.Document||J.type===I.Element)&&Z){m.headWhitespace&&J.type===I.Element&&"head"===J.tagName&&(H=!1);var Q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:R,keepIframeSrcFn:T,cssCaptured:!1};if(J.type===I.Element&&"textarea"===J.tagName&&void 0!==J.attributes.value);else{J.type===I.Element&&void 0!==J.attributes._cssText&&"string"==typeof J.attributes._cssText&&(Q.cssCaptured=!0);for(var ee,te=b(Array.from(L(e)));!(ee=te()).done;){var re=be(ee.value,Q);re&&J.childNodes.push(re)}}var ne=null;if(B(e)&&(ne=j(e)))for(var ie,oe=b(Array.from(L(ne)));!(ie=oe()).done;){var se=be(ie.value,Q);se&&(z(ne)&&(se.isShadow=!0),J.childNodes.push(se))}}var ce=P(e);return ce&&$(ce)&&z(ce)&&(J.isShadow=!0),J.type===I.Element&&"iframe"===J.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var r=be(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:R,keepIframeSrcFn:T});r&&C(e,r)}},O),J.type===I.Element&&"link"===J.tagName&&"string"==typeof J.attributes.rel&&("stylesheet"===J.attributes.rel||"preload"===J.attributes.rel&&"string"==typeof J.attributes.href&&"css"===Y(J.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(N){var t=be(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:R,keepIframeSrcFn:T});t&&N(e,t)}},R),J}function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return d(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ke={exports:{}},Se=String,xe=function(){return{isColorSupported:!1,reset:Se,bold:Se,dim:Se,italic:Se,underline:Se,inverse:Se,hidden:Se,strikethrough:Se,black:Se,red:Se,green:Se,yellow:Se,blue:Se,magenta:Se,cyan:Se,white:Se,gray:Se,bgBlack:Se,bgRed:Se,bgGreen:Se,bgYellow:Se,bgBlue:Se,bgMagenta:Se,bgCyan:Se,bgWhite:Se}};ke.exports=xe(),ke.exports.createColors=xe;var Ce=ke.exports,Ee=we(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ie=Ce,Oe=Ee,Ne=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ie.isColorSupported),Oe&&e&&(r=Oe(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=Ie.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),Ae=Ne;Ne.default=Ne;var Re={};Re.isClean=Symbol("isClean"),Re.my=Symbol("my");var Me={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Te=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Le=Te;Te.default=Te;var Pe=Le;function De(e,t){new Pe(t).stringify(e)}var Fe=De;De.default=De;var Ue=Re.isClean,je=Re.my,Be=Ae,$e=Le,ze=Fe;function qe(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return qe(e,r)}):("object"===o&&null!==i&&(i=qe(i)),r[n]=i)}return r}var Ve=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[je]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=qe(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 Be(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[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Xe(e),Ye(e))return this.mapFile=e,Ze(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Ke))return Je.fromSourceMap(t).toString();if(d(t,Je))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Qe(Xe(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}(),tt=et;et.default=et;var rt=Ee.SourceMapConsumer,nt=Ee.SourceMapGenerator,it=Ee.fileURLToPath,ot=Ee.pathToFileURL,st=Ee.isAbsolute,at=Ee.resolve,ct=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},lt=Ee,ut=Ae,pt=tt,ht=Symbol("fromOffsetCache"),dt=Boolean(rt&&nt),ft=Boolean(at&&st),gt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ft||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=at(t.from)),ft&&dt){var r=new pt(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new ut(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new ut(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ot&&(i.input.url=ot(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[ht])t=this[ht];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:at(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=st(a.source)?ot(a.source):new URL(a.source,this.map.consumer().sourceRoot||ot(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!it)throw new Error("file: protocol is not available in this PostCSS build");c.file=it(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),Et&&Ct&&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=yt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yt({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new yt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?bt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=bt(wt(r,this.mapOpts.annotation)));var n=_t(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 xt(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(St){var r=St(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ot=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(We),Nt=Ot;Ot.default=Ot;var At,Rt,Mt,Tt,Lt=Re.isClean,Pt=Re.my,Dt=Ge,Ft=Nt;function Ut(e){return e.map(function(e){return e.nodes&&(e.nodes=Ut(e.nodes)),delete e.source,e})}function jt(e){if(e[Lt]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)jt(t.value)}var Bt=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(We);Bt.registerParse=function(e){At=e},Bt.registerRule=function(e){Rt=e},Bt.registerAtRule=function(e){Mt=e},Bt.registerRoot=function(e){Tt=e};var $t=Bt;Bt.default=Bt,Bt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Mt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Rt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Dt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ft.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tt.prototype),e[Pt]=!0,e.nodes&&e.nodes.forEach(function(e){Bt.rebuild(e)})};var zt,qt,Vt=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new zt(new qt,this,e).stringify()},t}($t);Vt.registerLazyResult=function(e){zt=e},Vt.registerProcessor=function(e){qt=e};var Wt=Vt;Vt.default=Vt;var Ht=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}(),Gt=Ht;Ht.default=Ht;var Kt=Gt,Jt=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 Kt(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Yt=Jt;Jt.default=Jt;var Zt="'".charCodeAt(0),Xt='"'.charCodeAt(0),Qt="\\".charCodeAt(0),er="/".charCodeAt(0),tr="\n".charCodeAt(0),rr=" ".charCodeAt(0),nr="\f".charCodeAt(0),ir="\t".charCodeAt(0),or="\r".charCodeAt(0),sr="[".charCodeAt(0),ar="]".charCodeAt(0),cr="(".charCodeAt(0),lr=")".charCodeAt(0),ur="{".charCodeAt(0),pr="}".charCodeAt(0),hr=";".charCodeAt(0),dr="*".charCodeAt(0),fr=":".charCodeAt(0),gr="@".charCodeAt(0),mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,vr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yr=/.[\r\n"'(/\\]/,br=/[\da-f]/i,_r=$t,wr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Sr(new xr,this,e).stringify()},t}(Cr);Er.registerLazyResult=function(e){Sr=e},Er.registerProcessor=function(e){xr=e};var Ir=Er;Er.default=Er,Cr.registerRoot(Er);var Or={comma:function(e){return Or.split(e,[","],!0)},space:function(e){return Or.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},Nr=Or;Or.default=Or;var Ar=$t,Rr=Nr,Mr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return Rr.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}(Ar),Tr=Mr;Mr.default=Mr,Ar.registerRule(Mr);var Lr=Ge,Pr=Nt,Dr=kr,Fr=Ir,Ur=Tr,jr={empty:!0,space:!0},Br=function(){function e(e){this.input=e,this.root=new Fr,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 Dr;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Pr;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case tr:case rr:case ir:case or:case nr:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===rr||r===tr||r===ir||r===or||r===nr);p=["space",h.slice(g,n)],g=n-1;break;case sr:case ar:case ur:case pr:case fr:case hr:case lr:var b=String.fromCharCode(r);p=[b,b,g];break;case cr:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Zt&&u!==Xt&&u!==rr&&u!==tr&&u!==ir&&u!==nr&&u!==or){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||yr.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Zt:case Xt:i=r===Zt?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case gr:mr.lastIndex=g+1,mr.test(h),n=0===mr.lastIndex?h.length-1:mr.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Qt:for(n=g,s=!0;h.charCodeAt(n+1)===Qt;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==er&&r!==rr&&r!==tr&&r!==ir&&r!==or&&r!==nr&&(n+=1,br.test(h.charAt(n)))){for(;br.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===rr&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===er&&h.charCodeAt(g+1)===dr?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(vr.lastIndex=g+1,vr.test(h),n=0===vr.lastIndex?h.length-1:vr.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Lr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ur;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!on(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return on(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Jr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Kr(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(on(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Hr];)n[Hr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(on(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=ui.isColorSupported),pi&&e&&(r=pi(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=ui.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),di=hi;hi.default=hi;var fi={};fi.isClean=Symbol("isClean"),fi.my=Symbol("my");var gi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},mi=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),vi=mi;mi.default=mi;var yi=vi;function bi(e,t){new yi(t).stringify(e)}var _i=bi;bi.default=bi;var wi=fi.isClean,ki=fi.my,Si=di,xi=vi,Ci=_i;function Ei(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ei(e,r)}):("object"===o&&null!==i&&(i=Ei(i)),r[n]=i)}return r}var Ii=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wi]=!1,this[ki]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=Ei(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 Si(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[wi]){this[wi]=!1;for(var e=this;e=e.parent;)e[wi]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Pi(e),Ti(e))return this.mapFile=e,Li(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Ri))return Mi.fromSourceMap(t).toString();if(d(t,Mi))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Di(Pi(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}(),Ui=Fi;Fi.default=Fi;var ji=li.SourceMapConsumer,Bi=li.SourceMapGenerator,$i=li.fileURLToPath,zi=li.pathToFileURL,qi=li.isAbsolute,Vi=li.resolve,Wi=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hi=li,Gi=di,Ki=Ui,Ji=Symbol("fromOffsetCache"),Yi=Boolean(ji&&Bi),Zi=Boolean(Vi&&qi),Xi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Zi||/^\w+:\/\//.test(t.from)||qi(t.from)?this.file=t.from:this.file=Vi(t.from)),Zi&&Yi){var r=new Ki(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new Gi(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new Gi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(zi&&(i.input.url=zi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ji])t=this[Ji];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Vi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=qi(a.source)?zi(a.source):new URL(a.source,this.map.consumer().sourceRoot||zi(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!$i)throw new Error("file: protocol is not available in this PostCSS build");c.file=$i(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),lo&&co&&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=to.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new to({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new to({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ro(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ro(io(r,this.mapOpts.annotation)));var n=no(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 ao(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(so){var r=so(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===oo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),po=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(Oi),ho=po;po.default=po;var fo,go,mo,vo,yo=fi.isClean,bo=fi.my,_o=Ai,wo=ho;function ko(e){return e.map(function(e){return e.nodes&&(e.nodes=ko(e.nodes)),delete e.source,e})}function So(e){if(e[yo]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)So(t.value)}var xo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(Oi);xo.registerParse=function(e){fo=e},xo.registerRule=function(e){go=e},xo.registerAtRule=function(e){mo=e},xo.registerRoot=function(e){vo=e};var Co=xo;xo.default=xo,xo.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,mo.prototype):"rule"===e.type?Object.setPrototypeOf(e,go.prototype):"decl"===e.type?Object.setPrototypeOf(e,_o.prototype):"comment"===e.type?Object.setPrototypeOf(e,wo.prototype):"root"===e.type&&Object.setPrototypeOf(e,vo.prototype),e[bo]=!0,e.nodes&&e.nodes.forEach(function(e){xo.rebuild(e)})};var Eo,Io,Oo=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Eo(new Io,this,e).stringify()},t}(Co);Oo.registerLazyResult=function(e){Eo=e},Oo.registerProcessor=function(e){Io=e};var No=Oo;Oo.default=Oo;var Ao=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}(),Ro=Ao;Ao.default=Ao;var Mo=Ro,To=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 Mo(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Lo=To;To.default=To;var Po="'".charCodeAt(0),Do='"'.charCodeAt(0),Fo="\\".charCodeAt(0),Uo="/".charCodeAt(0),jo="\n".charCodeAt(0),Bo=" ".charCodeAt(0),$o="\f".charCodeAt(0),zo="\t".charCodeAt(0),qo="\r".charCodeAt(0),Vo="[".charCodeAt(0),Wo="]".charCodeAt(0),Ho="(".charCodeAt(0),Go=")".charCodeAt(0),Ko="{".charCodeAt(0),Jo="}".charCodeAt(0),Yo=";".charCodeAt(0),Zo="*".charCodeAt(0),Xo=":".charCodeAt(0),Qo="@".charCodeAt(0),es=/[\t\n\f\r "#'()/;[\\\]{}]/g,ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rs=/.[\r\n"'(/\\]/,ns=/[\da-f]/i,is=Co,os=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new as(new cs,this,e).stringify()},t}(ls);us.registerLazyResult=function(e){as=e},us.registerProcessor=function(e){cs=e};var ps=us;us.default=us,ls.registerRoot(us);var hs={comma:function(e){return hs.split(e,[","],!0)},space:function(e){return hs.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},ds=hs;hs.default=hs;var fs=Co,gs=ds,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return gs.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}(fs),vs=ms;ms.default=ms,fs.registerRule(ms);var ys=Ai,bs=ho,_s=ss,ws=ps,ks=vs,Ss={empty:!0,space:!0},xs=function(){function e(e){this.input=e,this.root=new ws,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 _s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new bs;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case jo:case Bo:case zo:case qo:case $o:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===Bo||r===jo||r===zo||r===qo||r===$o);p=["space",h.slice(g,n)],g=n-1;break;case Vo:case Wo:case Ko:case Jo:case Xo:case Yo:case Go:var b=String.fromCharCode(r);p=[b,b,g];break;case Ho:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Po&&u!==Do&&u!==Bo&&u!==jo&&u!==zo&&u!==$o&&u!==qo){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Fo;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||rs.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Po:case Do:i=r===Po?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Fo;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case Qo:es.lastIndex=g+1,es.test(h),n=0===es.lastIndex?h.length-1:es.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Fo:for(n=g,s=!0;h.charCodeAt(n+1)===Fo;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==Uo&&r!==Bo&&r!==jo&&r!==zo&&r!==qo&&r!==$o&&(n+=1,ns.test(h.charAt(n)))){for(;ns.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===Bo&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===Uo&&h.charCodeAt(g+1)===Zo?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(ts.lastIndex=g+1,ts.test(h),n=0===ts.lastIndex?h.length-1:ts.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new ys;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ks;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!zs(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return zs(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ts;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ms(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(zs(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[As];)n[As]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(zs(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndext?(n&&(clearTimeout(n),n=null),i=c,e.apply(u,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,s)},l))}}function sc(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return sc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ic=new Proxy(ic,{get:function(e,t,r){return"map"===t&&console.error(nc),Reflect.get(e,t,r)}}));var ac=Date.now;function cc(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=Ya(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=Ya(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function lc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Ya(e):null}function hc(e,t,r,n){if(!e)return!1;var i=pc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(ge(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function dc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function fc(e,t){if($(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Ja(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||fc(n,t))}function gc(e){return Boolean(e.changedTouches)}function mc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function vc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function yc(e){return!!e&&(d(e,Fa)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(tc(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ac=function(){return(new Date).getTime()});var bc=function(){function e(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function _c(e){var t,r=null;return"getRootNode"in e&&(null==(t=Qa(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ec(Qa(e))&&(r=ec(Qa(e))),r}function wc(e){var t=e.ownerDocument;return!!t&&(Xa(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=_c(r);)r=t;return r}(e);return Xa(t,r)}(e))}var kc=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(kc||{}),Sc=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Sc||{}),xc=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(xc||{}),Cc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Cc||{}),Ec=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ec||{}),Ic=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Ic||{}),Oc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Oc||{});function Nc(e){return"__ln"in e}var Ac,Rc=function(){function e(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case kc.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:kc.IncrementalSnapshot,data:{source:Sc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case kc.Meta:case kc.Load:case kc.DomContentLoaded:return!1;case kc.Plugin:return t;case kc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case kc.IncrementalSnapshot:switch(t.data.source){case Sc.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 Sc.Drag:case Sc.TouchMove:case Sc.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sc.ViewportResize:return!1;case Sc.MediaInteraction:case Sc.MouseInteraction:case Sc.Scroll:case Sc.CanvasMutation:case Sc.Input:return this.replaceIds(t.data,e,["id"]),t;case Sc.StyleSheetRule:case Sc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sc.Font:return t;case Sc.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Sc.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=b(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Oc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Qc=function(){function e(e){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(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(z(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=$c(u({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(zc(u({},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(ec(e))),r.restoreHandlers.push(Gc({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(Ga(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=tc(this);return o&&wc(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),el="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tl="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rl=0;rl<64;rl++)tl[el.charCodeAt(rl)]=rl;var nl=new Map,il=function(e,t,r){if(e&&(al(e,t)||"object"===(void 0===e?"undefined":m(e)))){var n=function(e,t){var r=nl.get(e);return r||(r=new Map,nl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function ol(e,t,r){return d(e,Array)?e.map(function(e){return ol(e,t,r)}):null===e?e:d(e,Float32Array)||d(e,Float64Array)||d(e,Int32Array)||d(e,Uint32Array)||d(e,Uint8Array)||d(e,Uint16Array)||d(e,Int16Array)||d(e,Int8Array)||d(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:d(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t>2],i+=el[(3&r[t])<<4|r[t+1]>>4],i+=el[(15&r[t+1])<<2|r[t+2]>>6],i+=el[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:d(e,DataView)?{rr_type:e.constructor.name,args:[ol(e.buffer,t,r),e.byteOffset,e.byteLength]}:d(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:d(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:d(e,ImageData)?{rr_type:e.constructor.name,args:[ol(e.data,t,r),e.width,e.height]}:al(e,t)||"object"===(void 0===e?"undefined":m(e))?{rr_type:e.constructor.name,index:il(e,t,r)}:e}var sl=function(e,t,r){return e.map(function(e){return ol(e,t,r)})},al=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return d(e,t[r])}))};function cl(e,t,r,n){var i=[];try{var o=Ga(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),bl=function(){function e(){x(this,"nodeMap",new WeakMap),x(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}(),_l=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var wl=document.createElement("iframe");document.body.appendChild(wl),Array.from=(null==(k=wl.contentWindow)?void 0:k.Array.from)||Array.from,document.body.removeChild(wl)}}catch(e){console.debug("Unable to override Array.from",e)}var kl,Sl,xl=new W;function Cl(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,l=void 0===c?"rr-ignore":c,p=e.ignoreSelector,h=void 0===p?null:p,d=e.maskTextClass,f=void 0===d?"rr-mask":d,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,x=e.maskTextFn,C=e.hooks,E=e.packFn,I=e.sampling,O=void 0===I?{}:I,N=e.dataURLOptions,A=void 0===N?{}:N,R=e.mousemoveWait,M=e.recordDOM,T=void 0===M||M,L=e.recordCanvas,P=void 0!==L&&L,D=e.recordCrossOriginIframes,F=void 0!==D&&D,U=e.recordAfter,j=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,B=e.userTriggeredOnInput,$=void 0!==B&&B,z=e.collectFonts,q=void 0!==z&&z,V=e.inlineImages,H=void 0!==V&&V,G=e.plugins,K=e.keepIframeSrcFn,J=void 0===K?function(){return!1}:K,Y=e.ignoreCSSAttributes,Z=void 0===Y?new Set([]):Y,X=e.errorHandler;Ac=X;var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw new Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==R&&void 0===O.mousemove&&(O.mousemove=R),xl.reset();var te,re=!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!==w?w:{password:!0},ne=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k,headTitleMutations:"all"===k}:k||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ie=0,oe=function(e){for(var t,r=b(G||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return E&&!ee&&(e=E(e)),e};fl=function(e,i){var o,s=e;if(s.timestamp=ac(),!(null==(o=jc[0])?void 0:o.isFrozen())||s.type===kc.FullSnapshot||s.type===kc.IncrementalSnapshot&&s.data.source===Sc.Mutation||jc.forEach(function(e){return e.unfreeze()}),Q)null==t||t(oe(s),i);else if(ee){var a={type:"rrweb",event:oe(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===kc.FullSnapshot)te=s,ie=0;else if(s.type===kc.IncrementalSnapshot){if(s.data.source===Sc.Mutation&&s.data.isAttachIframe)return;ie++;var c=n&&ie>=n,l=r&&s.timestamp-te.timestamp>r;(c||l)&&gl(!0)}};for(var se,ae=function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Mutation},e)})},ce=function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Scroll},e)})},le=function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.CanvasMutation},e)})},ue=new yl({mutationCb:ae,adoptedStyleSheetCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.AdoptedStyleSheet},e)})}}),pe=new Xc({mirror:xl,mutationCb:ae,stylesheetManager:ue,recordCrossOriginIframes:F,wrappedEmit:fl}),he=b(G||[]);!(se=he()).done;){var de=se.value;de.getMirror&&de.getMirror({nodeMirror:xl,crossOriginIframeMirror:pe.crossOriginIframeMirror,crossOriginIframeStyleMirror:pe.crossOriginIframeStyleMirror})}var fe=new bl;ml=new vl({recordCanvas:P,mutationCb:le,win:window,blockClass:o,blockSelector:a,mirror:xl,sampling:O.canvas,dataURLOptions:A});var ge=new Qc({mutationCb:ae,scrollCb:ce,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:re,dataURLOptions:A,maskTextFn:x,maskInputFn:S,recordCanvas:P,inlineImages:H,sampling:O,slimDOMOptions:ne,iframeManager:pe,stylesheetManager:ue,canvasManager:ml,keepIframeSrcFn:J,processedNodeManager:fe},mirror:xl});gl=function(e){if(void 0===e&&(e=!1),T){fl({type:kc.Meta,data:{href:window.location.href,width:uc(),height:lc()}},e),ue.reset(),ge.init(),jc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new W:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,c=r.maskTextSelector,l=r.inlineStylesheet,u=r.inlineImages,p=r.recordCanvas,h=r.maskAllInputs,d=void 0!==h&&h,f=r.slimDOM,g=void 0!==f&&f,m=r.keepIframeSrcFn;return be(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===c?null:c,skipChild:!1,inlineStylesheet:void 0===l||l,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==u&&u,recordCanvas:void 0!==p&&p,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===m?function(){return!1}:m,newlyAddedElement:!1})}(document,{mirror:xl,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:re,maskTextFn:x,maskInputFn:S,slimDOM:ne,dataURLOptions:A,recordCanvas:P,inlineImages:H,onSerialize:function(e){mc(e,xl)&&pe.addIframe(e),vc(e,xl)&&ue.trackLinkElement(e),yc(e)&&ge.addShadowRoot(tc(e),document)},onIframeLoad:function(e,t){pe.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ue.attachLinkElement(e,t)},keepIframeSrcFn:J});if(!t)return console.warn("Failed to snapshot the document");fl({type:kc.FullSnapshot,data:{node:t,initialOffset:cc(window)}},e),jc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,xl.getId(document))}};try{var me=[],ve=function(e){var t;return Uc(Kc)({mutationCb:ae,mousemoveCb:function(e,t){return fl({type:kc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.MouseInteraction},e)})},scrollCb:ce,viewportResizeCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.ViewportResize},e)})},inputCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Input},e)})},mediaInteractionCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.MediaInteraction},e)})},styleSheetRuleCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.StyleSheetRule},e)})},styleDeclarationCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.StyleDeclaration},e)})},canvasMutationCb:le,fontCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Font},e)})},selectionCb:function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Selection},e)})},customElementCb:function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.CustomElement},e)})},blockClass:o,ignoreClass:l,ignoreSelector:h,maskTextClass:f,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:y,sampling:O,recordDOM:T,recordCanvas:P,inlineImages:H,userTriggeredOnInput:$,collectFonts:q,doc:e,maskInputFn:S,maskTextFn:x,keepIframeSrcFn:J,blockSelector:a,slimDOMOptions:ne,dataURLOptions:A,mirror:xl,iframeManager:pe,stylesheetManager:ue,shadowDomManager:ge,processedNodeManager:fe,canvasManager:ml,ignoreCSSAttributes:Z,plugins:(null==(t=null==G?void 0:G.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return fl({type:kc.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};pe.addLoadListener(function(e){try{me.push(ve(e.contentDocument))}catch(e){console.warn(e)}});var ye=function(){gl(),me.push(ve(document)),_l=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(me.push(rc("DOMContentLoaded",function(){fl({type:kc.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&ye()})),me.push(rc("load",function(){fl({type:kc.Load,data:{}}),"load"===j&&ye()},window))),function(){me.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),fe.destroy(),_l=!1,Ac=void 0}}catch(e){console.warn(e)}}Cl.addCustomEvent=function(e,t){if(!_l)throw new Error("please add custom event after start recording");fl({type:kc.Custom,data:{tag:e,payload:t}})},Cl.freezePage=function(){jc.forEach(function(e){return e.freeze()})},Cl.takeFullSnapshot=function(e){if(!_l)throw new Error("please take full snapshot after start recording");gl(e)},Cl.mirror=xl,(Sl=kl||(kl={}))[Sl.NotStarted=0]="NotStarted",Sl[Sl.Running=1]="Running",Sl[Sl.Stopped=2]="Stopped",Cl.addCustomEvent,Cl.freezePage,Cl.takeFullSnapshot;var El=Object.defineProperty,Il=function(e,t,r){return function(e,t,r){return t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},Ol=function(){function e(e){Il(this,"fileName"),Il(this,"functionName"),Il(this,"lineNumber"),Il(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}(),Nl=/(^|@)\S+:\d+/,Al=/^\s*at .*(\S+:\d+|\(native\))/m,Rl=/^(eval@)?(\[native code])?$/,Ml={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Al)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Al)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new Ol({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Rl)},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 Ol({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ol({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ol({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Tl(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Ll(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pl(e,t){if(0===t)return!0;for(var r,n=b(Object.keys(e));!(r=n()).done;){var i=r.value;if(Ll(e[i])&&Pl(e[i],t-1))return!0}return!1}function Dl(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(Ll(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Ll(s)&&Pl(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":m(t)))return t.toString()+"n";if(d(t,Event)){var a={};for(var c in t){var l=t[c];Array.isArray(l)?a[c]=Tl(l.length?l[0]:null):a[c]=l}return a}return d(t,Node)?d(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:d(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var Fl={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 Ul(e,t,r){var n,i=r?Object.assign({},Fl,r):Fl,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var l=function(t){var r=t.message,n=t.error,o=Ml.parse(n).map(function(e){return e.toString()}),s=[Dl(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",l),c.push(function(){t.removeEventListener("error",l)});var u=function(t){var r,n;d(t.reason,Error)?n=[Dl("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Dl("Uncaught (in promise)",i.stringifyOptions),Dl(t.reason,i.stringifyOptions)]);var o=Ml.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",u),c.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var p,h=b(i.level);!(p=h()).done;){var f=p.value;c.push(g(n,f))}return function(){c.forEach(function(e){return e()})};function g(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var c=t[o],l=function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),l=0;l0&&Wl(Gl,r))}catch(e){Yl.call(new Xl(r),e)}}}function Yl(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Wl(Gl,t))}function Zl(e,t,r,n){for(var i=0;i0&&(t[r]=e)}),t},Tu.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Tu.isArray(e)?(r=[],Tu.each(e,function(e){r.push(Tu.truncate(e,t))})):Tu.isObject(e)?(r={},Tu.each(e,function(e,n){r[n]=Tu.truncate(e,t)})):r=e,r},Tu.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,l=i,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",u=[],"[object Array]"===bu.apply(p)){for(c=p.length,o=0;o="0"&&iu<="9";)t+=iu,lu();if("."===iu)for(t+=".";lu()&&iu>="0"&&iu<="9";)t+=iu;if("e"===iu||"E"===iu)for(t+=iu,lu(),"-"!==iu&&"+"!==iu||(t+=iu,lu());iu>="0"&&iu<="9";)t+=iu,lu();if(e=+t,isFinite(e))return e;cu("Bad number")},pu=function(){var e,t,r,n="";if('"'===iu)for(;lu();){if('"'===iu)return lu(),n;if("\\"===iu)if(lu(),"u"===iu){for(r=0,t=0;t<4&&(e=parseInt(lu(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof au[iu])break;n+=au[iu]}else n+=iu}cu("Bad string")},hu=function(){for(;iu&&iu<=" ";)lu()},su=function(){switch(hu(),iu){case"{":return function(){var e,t={};if("{"===iu){if(lu("{"),hu(),"}"===iu)return lu("}"),t;for(;iu;){if(e=pu(),hu(),lu(":"),Object.hasOwnProperty.call(t,e)&&cu('Duplicate key "'+e+'"'),t[e]=su(),hu(),"}"===iu)return lu("}"),t;lu(","),hu()}}cu("Bad object")}();case"[":return function(){var e=[];if("["===iu){if(lu("["),hu(),"]"===iu)return lu("]"),e;for(;iu;){if(e.push(su()),hu(),"]"===iu)return lu("]"),e;lu(","),hu()}}cu("Bad array")}();case'"':return pu();case"-":return uu();default:return iu>="0"&&iu<="9"?uu():function(){switch(iu){case"t":return lu("t"),lu("r"),lu("u"),lu("e"),!0;case"f":return lu("f"),lu("a"),lu("l"),lu("s"),lu("e"),!1;case"n":return lu("n"),lu("u"),lu("l"),lu("l"),null}cu('Unexpected "'+iu+'"')}()}},function(e){var t;return ou=e,nu=0,iu=" ",t=su(),hu(),iu&&cu("Syntax error"),t}),Tu.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=Tu.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Tu.UUID=function(){try{return n.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",Tu.map(e,function(e){return e.toString(16)}).join("")}};var ju=["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"];Tu.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(t){if(!Su.getElementsByTagName)return[];var n,i,o,s,a,c,l,u,p,h,d=t.split(" "),f=[Su];for(c=0;c-1){o=(i=n.split("#"))[0];var g=i[1],m=Su.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];f=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,l=0;l-1};break;default:b=function(e){return e.getAttribute(_)}}for(f=[],h=0,l=0;l=3?t[2]:""},currentUrl:function(){return n.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Tu.extend(Tu.strip_empty_properties({$os:Tu.info.os(),$browser:Tu.info.browser(Eu,ku.vendor,xu),$referrer:Su.referrer,$referring_domain:Tu.info.referringDomain(Su.referrer),$device:Tu.info.device(Eu)}),{$current_url:Tu.info.currentUrl(),$browser_version:Tu.info.browserVersion(Eu,ku.vendor,xu),$screen_height:Cu.height,$screen_width:Cu.width,mp_lib:"web",$lib_version:du.LIB_VERSION,$insert_id:Ku(),time:Tu.timestamp()/1e3},Tu.strip_empty_properties(e))},people_properties:function(){return Tu.extend(Tu.strip_empty_properties({$os:Tu.info.os(),$browser:Tu.info.browser(Eu,ku.vendor,xu)}),{$browser_version:Tu.info.browserVersion(Eu,ku.vendor,xu)})},mpPageViewProperties:function(){return Tu.strip_empty_properties({current_page_title:Su.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var Ku=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},Ju=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Yu=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Zu=function(e){var t=Yu,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Ju);var i=e.match(t);return i?i[0]:""},Xu=function(){},Qu=null,ep=null;"undefined"!=typeof JSON&&(Qu=JSON.stringify,ep=JSON.parse),Qu=Qu||Tu.JSONEncode,ep=ep||Tu.JSONDecode,Tu.info=Tu.info,Tu.info.browser=Tu.info.browser,Tu.info.browserVersion=Tu.info.browserVersion,Tu.info.device=Tu.info.device,Tu.info.properties=Tu.info.properties,Tu.isBlockedUA=Tu.isBlockedUA,Tu.isEmptyObject=Tu.isEmptyObject,Tu.isObject=Tu.isObject,Tu.JSONDecode=Tu.JSONDecode,Tu.JSONEncode=Tu.JSONEncode,Tu.toArray=Tu.toArray,Tu.NPO=eu;var tp="mixpanelRecordingEvents",rp="mixpanelRecordingRegistry",np=[tp,rp],ip=function(e){this.dbPromise=null,this.storeName=e};function op(e,t){mp(!0,e,t)}function sp(e,t){mp(!1,e,t)}function ap(e,t){return"1"===gp(e,t)}function cp(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n,r=t.navigator||{},i=!1;return Tu.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){Tu.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return Lu.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"===gp(e,t);return r&&Lu.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function lp(e){return vp(e,function(e){return this.get_config(e)})}function up(e){return vp(e,function(e){return this._get_config(e)})}function pp(e){return vp(e,function(e){return this._get_config(e)})}function hp(e,t){dp(t=t||{}).remove(fp(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function dp(e){return"localStorage"===(e=e||{}).persistenceType?Tu.localStorage:Tu.cookie}function fp(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function gp(e,t){return dp(t).get(fp(e,t))}function mp(e,t,r){Tu.isString(t)&&t.length?(dp(r=r||{}).set(fp(t,r),e?1:0,Tu.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})):Lu.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function vp(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=cp(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Lu.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)}}ip.prototype._openDb=function(){return new tu(function(e,t){var r=n.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;np.forEach(function(e){t.createObjectStore(e)})}})},ip.prototype.init=function(){return n.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n.IDBDatabase?tu.resolve():tu.reject(e)})):tu.reject("indexedDB is not supported in this browser")},ip.prototype.isInitialized=function(){return!!this.dbPromise},ip.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new tu(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):tu.reject(e)}.bind(this))},ip.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},ip.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},ip.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},ip.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var yp=Du("lock"),bp=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||tu};bp.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Tu.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",h=s+":Z",d=function(e){if((new Date).getTime()-o>c)return yp.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),l.removeItem(h),l.removeItem(p),void m();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=l.getItem(p);return!(e&&e!==i||(l.setItem(p,i),l.getItem(p)!==i&&(zu(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},m=function(){l.setItem(u,i),f(g,function(){l.getItem(u)!==i?d(function(){l.getItem(p)===i?f(function(){return!l.getItem(h)},v):m()}):v()})},v=function(){l.setItem(h,"1");var t=function(){l.removeItem(h),l.getItem(p)===i&&l.removeItem(p),l.getItem(u)===i&&l.removeItem(u)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!zu(l,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var _p=function(e){this.storage=e||n.localStorage};_p.prototype.init=function(){return tu.resolve()},_p.prototype.isInitialized=function(){return!0},_p.prototype.setItem=function(e,t){return new tu(Tu.bind(function(r,n){try{this.storage.setItem(e,Qu(t))}catch(e){n(e)}r()},this))},_p.prototype.getItem=function(e){return new tu(Tu.bind(function(t,r){var n;try{n=ep(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},_p.prototype.removeItem=function(e){return new tu(Tu.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var wp=Du("batch"),kp=function(e,t){var r,i,o,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new _p,this.lock=new bp(e,{storage:t.sharedLockStorage||n.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Tu.bind(wp.error,wp),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=Tu.bind(this._enqueuePersisted,this),i=t.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new tu(function(e){setTimeout(function(){var n=r.apply(t,[s]);o=null,s=[],e(n)},i)})),o}):this.enqueuePersisted=Tu.bind(function(e){return this._enqueuePersisted([e])},this)};kp.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?tu.resolve():this.queueStorage.init().then(Tu.bind(function(){this.initialized=!0},this)).catch(Tu.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},kp.prototype.enqueue=function(e,t){var r={id:Ku(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),tu.resolve(!0))},kp.prototype._enqueuePersisted=function(e){var t=Tu.bind(function(){return this.ensureInit().then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Tu.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Tu.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Tu.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},kp.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):tu.resolve(t)};var Sp=function(e,t){var r=[];return Tu.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};kp.prototype.removeItemsByID=function(e){var t={};if(Tu.each(e,function(e){t[e]=!0}),this.memQueue=Sp(this.memQueue,t),this.usePersistence){var r=Tu.bind(function(){return this.ensureInit().then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(e){return e=Sp(e,t),this.saveToStorage(e)},this)).then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}c[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),tu.resolve();var l=Tu.bind(function(){return this.queue.removeItemsByID(Tu.map(o,function(e){return e.id})).then(Tu.bind(function(e){return Tu.each(o,Tu.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:o.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(),tu.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),tu.resolve())},this))},this),u=Tu.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(Tu.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Tu.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(p=n.navigator.onLine,!Tu.isUndefined(p)&&!p)||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),tu.resolve()}if(Tu.isObject(s)&&413===s.httpStatusCode){if(o.length>1){var u=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,u,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),tu.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var p},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),Cp.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,p).then(u)},this)).catch(Tu.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Ep.prototype.reportError=function(e,t){if(Cp.error.apply(Cp.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Cp.error(t)}};var Ip=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Op=Du("recorder"),Np=n.CompressionStream,Ap={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Rp=new Set([Sc.MouseMove,Sc.MouseInteraction,Sc.Scroll,Sc.ViewportResize,Sc.Input,Sc.TouchMove,Sc.MediaInteraction,Sc.Drag,Sc.Selection]),Mp=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Xu,this._onMaxLengthReached=e.onMaxLengthReached||Xu,this._onBatchSent=e.onBatchSent||Xu,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=fu,this.recordMinMs=0;var t=zu(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ip(tp),this.batcher=new Ep(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Ap,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Mp.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},Mp.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()fu&&(this.recordMaxMs=fu,Op.critical("record_max_ms cannot be greater than "+fu+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Tu.info.currentUrl(),this.replayStartUrl=Tu.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r,n=this.getConfig("record_block_selector");""!==n&&null!==n||(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(r={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:Ul,options:r})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else Op.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Mp.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Mp.prototype.isRrwebStopped=function(){return null===this._stopRecording},Mp.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)},Mp.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}},Mp.deserialize=function(e,t){return new Mp(Tu.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}))},Mp.prototype._sendRequest=function(e,t,r,i){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Tu.info.currentUrl()),this._onBatchSent(),i({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");n.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){o(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},Mp.prototype._flushEvents=lp(function(e,t,r){var i=e.length;if(i>0){for(var o=this.replayId,s=1/0,a=-1/0,c=!1,l=0;l=16.4&&o<16.6)}(Eu,ku.vendor,xu)){var d=new Blob([h],{type:"application/json"}).stream().pipeThrough(new Np("gzip"));new Response(d).blob().then(function(e){p.format="gzip",this._sendRequest(o,p,e,r)}.bind(this))}else p.format="body",this._sendRequest(o,p,h,r)}}),Mp.prototype.reportError=function(e,t){Op.error.apply(Op.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Op.error(t)}},Mp.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Mp.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Op.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e};var Tp=function(e){this.idb=new ip(rp),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Tp.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Tp.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Tp.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return tu.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."),tu.resolve())},Tp.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 Ip(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):tu.resolve(null)},Tp.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Tp.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))},Tp.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):tu.resolve()},Tp.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 Ip(e)}).map(function(e){return Mp.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 tu.all(t)}.bind(this)).catch(this.handleError.bind(this)):tu.resolve([])};var Lp=Du("recorder"),Pp=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Cl,this.sharedLockStorage=r,this.recordingRegistry=new Tp({mixpanelInstance:this.mixpanelInstance,errorReporter:Lp.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Pp.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Lp.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Lp.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:Tu.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Mp.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Mp(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Lp.log("Recording already in progress, skipping startRecording.")},Pp.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))},Pp.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Pp.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return tu.resolve()},Pp.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),tu.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Lp.log("No resumable recording found."),null)}.bind(this))},Pp.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Pp.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Pp.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n.__mp_recorder=Pp;var Dp="change",Fp="click",Up="hashchange",jp="load",Bp="mp_locationchange",$p="popstate",zp="scrollend",qp="scroll",Vp="submit",Wp="visibilitychange",Hp=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Gp=["mp-include"],Kp=["mp-no-track"],Jp=Kp.concat(["mp-sensitive"]),Yp=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Zp={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},Xp={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},Qp={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},eh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],th=Du("autocapture");function rh(e){for(var t={},r=nh(e).split(" "),n=0;n0?t[0]:e.target||e.srcElement}function bh(){this.clicks=[]}function _h(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}bh.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 o=yh(e);if(!o||mh(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&s-l.timestamp=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},_h.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return yh(e)},_h.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=vh(e),r=0;r=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Ch.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Ch.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Ch.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Ch.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Ch.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;wh.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}})}),Sh.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),kh.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,xh)}catch(e){th.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new _h(function(){e.recordChangeEvent()},xh),this.shadowDOMObserver.start()}catch(e){th.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Ch.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;ethis.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Su.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,n.addEventListener(e.eventType,this.listenerScrollDepth)}},Zh.prototype.initClickTracking=function(){n.removeEventListener(Fp,this.listenerClick),(this.getConfig(Uh)||this.mp.get_config("record_heatmap_data"))&&(th.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Uh)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Kh)}.bind(this),n.addEventListener(Fp,this.listenerClick))},Zh.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(jh)||this.mp.get_config("record_heatmap_data")?(th.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Ch(function(e){this.trackDomEvent(e,Jh)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(jh);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),n.addEventListener(Fp,this.listenerDeadClick))):this.stopDeadClickTracking()},Zh.prototype.initInputTracking=function(){n.removeEventListener(Dp,this.listenerChange),this.getConfig(Bh)&&(th.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Bh)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),n.addEventListener(Dp,this.listenerChange))},Zh.prototype.initPageviewTracking=function(){if(n.removeEventListener(Bp,this.listenerLocationchange),this.pageviewTrackingConfig()){th.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Gh)),t&&(e=Tu.info.currentUrl()),this.listenerLocationchange=Fu(function(){if(!this.currentUrlBlocked()){var t=Tu.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===Ih?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(Gh)&&(e=t),n&&(this.lastScrollCheckpoint=0,th.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),n.addEventListener(Bp,this.listenerLocationchange)}},Zh.prototype.initRageClickTracking=function(){n.removeEventListener(Fp,this.listenerRageClick),(this._getClickTrackingConfig(zh)||this.mp.get_config("record_heatmap_data"))&&(th.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new bh),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(zh);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Yh))}.bind(this),n.addEventListener(Fp,this.listenerRageClick))},Zh.prototype.initScrollTracking=function(){if(n.removeEventListener(zp,this.listenerScroll),n.removeEventListener(qp,this.listenerScroll),this.getConfig(qh)){th.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=fh(function(){if(this.getConfig(qh)&&!this.currentUrlBlocked()){var e=this.getConfig(Dh),t=(this.getConfig(Fh)||[]).slice().sort(function(e,t){return e-t}),r=n.scrollY,i=Tu.extend({$scroll_top:r},Gh);try{var o=Su.body.scrollHeight,s=Math.round(r/(o-n.innerHeight)*100);if(i.$scroll_height=o,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a=c&&this.lastScrollCheckpoint=0;p--)c=this._mixpanel.persistence.load_queue(ud),l=c.pop(),a._mixpanel.persistence.save(),Tu.isEmptyObject(l)||a.append(l,u);var h=this._mixpanel.persistence.load_queue(hd);if(!Tu.isUndefined(h)&&Tu.isArray(h)&&h.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(hd,d),Tu.isUndefined(s)||s(e,t)},g=h.length-1;g>=0;g--)h=this._mixpanel.persistence.load_queue(hd),d=h.pop(),a._mixpanel.persistence.save(),Tu.isEmptyObject(d)||a.remove(d,f)},gd.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},gd.prototype.set=gd.prototype.set,gd.prototype.set_once=gd.prototype.set_once,gd.prototype.unset=gd.prototype.unset,gd.prototype.increment=gd.prototype.increment,gd.prototype.append=gd.prototype.append,gd.prototype.remove=gd.prototype.remove,gd.prototype.union=gd.prototype.union,gd.prototype.track_charge=gd.prototype.track_charge,gd.prototype.clear_charges=gd.prototype.clear_charges,gd.prototype.delete_user=gd.prototype.delete_user,gd.prototype.toString=gd.prototype.toString;var md,vd="__mps",yd="__mpso",bd="__mpus",_d="__mpa",wd="__mpap",kd="__mpr",Sd="__mpu",xd="$people_distinct_id",Cd="__alias",Ed="__timers",Id=[vd,yd,bd,_d,wd,kd,Sd,xd,Cd,Ed],Od=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&&(Lu.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Tu.localStorage.is_supported()?this.storage=Tu.localStorage:this.storage=Tu.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Od.prototype.properties=function(){var e={};return this.load(),Tu.each(this.props,function(t,r){Tu.include(Id,r)||(e[r]=t)}),e},Od.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Tu.extend({},e))}},Od.prototype.upgrade=function(){var e,t;this.storage===Tu.localStorage?(e=Tu.cookie.parse(this.name),Tu.cookie.remove(this.name),Tu.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Tu.cookie&&(t=Tu.localStorage.parse(this.name),Tu.localStorage.remove(this.name),t&&this.register_once(t))},Od.prototype.save=function(){this.disabled||this.storage.set(this.name,Qu(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Od.prototype.load_prop=function(e){return this.load(),this.props[e]},Od.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Od.prototype.clear=function(){this.remove(),this.props={}},Od.prototype.register_once=function(e,t,r){return!!Tu.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Tu.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},Od.prototype.register=function(e,t){return!!Tu.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Tu.extend(this.props,e),this.save(),!0)},Od.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Od.prototype.update_search_keyword=function(e){this.register(Tu.info.searchInfo(e))},Od.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Tu.info.referringDomain(e)||"$direct"},"")},Od.prototype.get_referrer_info=function(){return Tu.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Od.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)},Od.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Od.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Od.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Od.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Od.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Od.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Od.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(sd),o=this._get_or_create_queue(ad),s=this._get_or_create_queue(cd),a=this._get_or_create_queue(ld),c=this._get_or_create_queue(pd),l=this._get_or_create_queue(hd,[]),u=this._get_or_create_queue(ud,[]);r===vd?(Tu.extend(i,n),this._pop_from_people_queue(ld,n),this._pop_from_people_queue(pd,n),this._pop_from_people_queue(cd,n)):r===yd?(Tu.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(cd,n)):r===bd?Tu.each(n,function(e){Tu.each([i,o,a,c],function(t){e in t&&delete t[e]}),Tu.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):r===_d?(Tu.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(cd,n)):r===Sd?(Tu.each(n,function(e,t){Tu.isArray(e)&&(t in c||(c[t]=[]),Tu.each(e,function(e){Tu.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(cd,n)):r===kd?(l.push(n),this._pop_from_people_queue(ud,n)):r===wd&&(u.push(n),this._pop_from_people_queue(cd,n)),Lu.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Lu.log(t),this.save()},Od.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Tu.isUndefined(r)||Tu.each(t,function(t,n){e===ud||e===hd?Tu.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Od.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Od.prototype._get_queue_key=function(e){return e===sd?vd:e===ad?yd:e===cd?bd:e===ld?_d:e===ud?wd:e===hd?kd:e===pd?Sd:void Lu.error("Invalid queue:",e)},Od.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Tu.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Od.prototype.set_event_timer=function(e,t){var r=this.load_prop(Ed)||{};r[e]=t,this.props[Ed]=r,this.save()},Od.prototype.remove_event_timer=function(e){var t=(this.load_prop(Ed)||{})[e];return Tu.isUndefined(t)||(delete this.props[Ed][e],this.save()),t};var Nd,Ad=function(e,t){throw new Error(e+" not available in this build.")},Rd=function(e){return e},Md="mixpanel",Td="base64",Ld="$device:",Pd=n.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Dd=!Pd&&-1===Eu.indexOf("MSIE")&&-1===Eu.indexOf("Mozilla"),Fd=null;ku.sendBeacon&&(Fd=function(){return ku.sendBeacon.apply(ku,arguments)});var Ud={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},jd={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ud,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Td,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Xu,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Xu,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:fu,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Bd=!1,$d=function(){},zd=function(e,t,r){var n,i=r===Md?Nd:Nd[r];if(i&&0===md)n=i;else{if(i&&!Tu.isArray(i))return void Lu.error("You have already initialized "+r);n=new $d}if(n._cached_groups={},n._init(e,t,r),n.people=new gd,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=Tu.info.campaignParams(null),s={},a=!1;Tu.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return du.DEBUG=du.DEBUG||n.get_config("debug"),!Tu.isUndefined(i)&&Tu.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};$d.prototype.init=function(e,t,r){if(Tu.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Md){var n=zd(e,t,r);return Nd[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},$d.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||jd.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config(Tu.extend({},jd,i,t,{name:r,token:e,callback_fn:(r===Md?r:Md+"."+r)+"._jsc"})),this._jsc=Xu,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(Tu.localStorage.is_supported(!0)&&Pd){if(this.init_batchers(),Fd&&n.addEventListener){var o=Tu.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n.addEventListener("pagehide",function(e){e.persisted&&o()}),n.addEventListener("visibilitychange",function(){"hidden"===Su.visibilityState&&o()})}}else this._batch_requests=!1,Lu.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Tu.each(this.get_batcher_configs(),function(e){Lu.log("Clearing batch queue "+e.queue_key),Tu.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Od(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Tu.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ld+s,$device_id:s},""),this.flags=new rd({getFullApiRoute:Tu.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Tu.bind(this.get_config,this),setConfigFunc:Tu.bind(this.set_config,this),getPropertyFunc:Tu.bind(this.get_property,this),trackingFunc:Tu.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Zh(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},$d.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Lu.log("Tab ID initialization skipped due to disable_persistence config");else if(Tu.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;!Tu.sessionStorage.get(r)&&Tu.sessionStorage.get(t)||Tu.sessionStorage.set(t,"$tab-"+Tu.UUID()),Tu.sessionStorage.set(r,"1"),this.tab_id=Tu.sessionStorage.get(t),n.addEventListener("beforeunload",function(){Tu.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.")},$d.prototype.get_tab_id=function(){return this.tab_id||null},$d.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Lu.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new ip(rp),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Lu.critical("Browser does not support MutationObserver; skipping session recording")}),$d.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},$d.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},$d.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},$d.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},$d.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},$d.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},$d.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Tu.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},$d.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},$d.prototype.__get_recorder=function(){return this._recorder},$d.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Tu.info.campaignParams(null);Tu.each(e,function(e,t){this.unregister(t)}.bind(this))}},$d.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Su.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Tu.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Su.referrer)},$d.prototype._dom_loaded=function(){Tu.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Tu.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},$d.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Bd)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},$d.prototype._prepare_callback=function(e,t){if(Tu.isUndefined(e))return null;if(Pd)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},$d.prototype._send_request=function(e,t,r,n){var i=!0;if(Dd)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!Tu.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Tu.extend(o,r||{}),Pd||(r.method="GET");var a="POST"===r.method,c=Fd&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Pd||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),Tu.extend(t,this.get_config("api_extra_query_params")),e+="?"+Tu.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Su.createElement("img");p.src=e,Su.body.appendChild(p)}else if(c){try{i=Fd(e,s)}catch(e){u.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){u.report_error(e)}}else if(Pd)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),Tu.each(d,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var f=(new Date).getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var e;if(4===h.readyState)if(200===h.status){if(n)if(l){var t;try{t=Tu.JSONDecode(h.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=h.responseText}n(t)}else n(Number(h.responseText))}else if(e=h.timeout&&!h.status&&(new Date).getTime()-f>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(e),n)if(l){var i=h.responseHeaders||{};n({status:0,httpStatusCode:h.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},h.send(s)}catch(e){u.report_error(e),i=!1}else{var g=Su.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Su.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},$d.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Tu.each(e,function(e){e&&(t=e[0],Tu.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Tu.isArray(e)&&"alias"===t?r.push(e):Tu.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){Tu.each(e,function(e){if(Tu.isArray(e[0])){var r=t;Tu.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},$d.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},$d.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},$d.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Tu.bind(function(e){return new Ep(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Tu.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:Tu.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:Tu.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},$d.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Tu.each(this.request_batchers,function(e){e.start()}))},$d.prototype.stop_batch_senders=function(){this._batch_requests=!1,Tu.each(this.request_batchers,function(e){e.stop(),e.clear()})},$d.prototype.push=function(e){this._execute_array([e])},$d.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},$d.prototype._encode_data_for_request=function(e){var t=Qu(e);return this.get_config("api_payload_format")===Td&&(t=Tu.base64Encode(t)),{data:t}},$d.prototype._track_or_batch=function(e,t){var r=Tu.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Xu;var a=!0,c=Tu.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Lu.log("MIXPANEL REQUEST:"),Lu.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},$d.prototype.track=lp(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=Xu),Tu.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Tu.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!Tu.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?Tu.info.marketingParams():{};t=Tu.extend({},Tu.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");Tu.isArray(l)?Tu.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,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)}n(0)}}),$d.prototype.set_group=lp(function(e,t,r){Tu.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),$d.prototype.add_group=lp(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),$d.prototype.remove_group=lp(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),$d.prototype.track_with_groups=lp(function(e,t,r,n){var i=Tu.extend({},t||{});return Tu.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),$d.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},$d.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},$d.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new fd)._init(this,e,t),this._cached_groups[r]=n),n},$d.prototype.track_pageview=lp(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Tu.extend(Tu.info.mpPageViewProperties(),Tu.info.campaignParams(),Tu.info.clickParams()),i=Tu.extend({},n,e);return this.track(r,i)}),$d.prototype.track_links=function(){return this._track_dom.call(this,id,arguments)},$d.prototype.track_forms=function(){return this._track_dom.call(this,od,arguments)},$d.prototype.time_event=function(e){Tu.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 qd={persistent:!0},Vd=function(e){var t;return t=Tu.isObject(e)?e:Tu.isUndefined(e)?{}:{days:e},Tu.extend({},qd,t)};$d.prototype.register=function(e,t){var r=Vd(t);r.persistent?this.persistence.register(e,r.days):Tu.extend(this.unpersisted_superprops,e)},$d.prototype.register_once=function(e,t,r){var n=Vd(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),Tu.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},$d.prototype.unregister=function(e,t){(t=Vd(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},$d.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},$d.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Ld))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(Cd)&&(this.unregister(Cd),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},$d.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Tu.UUID();this.register_once({distinct_id:Ld+e,$device_id:e},""),this._check_and_start_session_recording()},$d.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},$d.prototype.alias=function(e,t){if(e===this.get_property(xd))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Tu.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Cd,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},$d.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},$d.prototype.set_config=function(e){Tu.isObject(e)&&(Tu.extend(this.config,e),e.batch_size&&Tu.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),du.DEBUG=du.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},$d.prototype.get_config=function(e){return this.config[e]},$d.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Rd).apply(this,yu.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},$d.prototype.get_property=function(e){return this.persistence.load_prop([e])},$d.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},$d.prototype.toString=function(){var e=this.get_config("name");return e!==Md&&(e=Md+"."+e),e},$d.prototype._event_is_disabled=function(e){return Tu.isBlockedUA(Eu)||this._flags.disable_all_events||Tu.include(this.__disabled_events,e)},$d.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Tu.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")&&!Tu.cookie.get("mp_optout")||(Tu.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},$d.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},$d.prototype._gdpr_call_func=function(e,t){return t=Tu.extend({track:Tu.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),Tu.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},$d.prototype.opt_in_tracking=function(e){e=Tu.extend({enable_persistence:!0},e),this._gdpr_call_func(op,e),this._gdpr_update_persistence(e)},$d.prototype.opt_out_tracking=function(e){(e=Tu.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(sp,e),this._gdpr_update_persistence(e)},$d.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ap,e)},$d.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(cp,e)},$d.prototype.clear_opt_in_out_tracking=function(e){e=Tu.extend({enable_persistence:!0},e),this._gdpr_call_func(hp,e),this._gdpr_update_persistence(e)},$d.prototype.report_error=function(e,t){Lu.error.apply(Lu.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Lu.error(t)}},$d.prototype.init=$d.prototype.init,$d.prototype.reset=$d.prototype.reset,$d.prototype.disable=$d.prototype.disable,$d.prototype.time_event=$d.prototype.time_event,$d.prototype.track=$d.prototype.track,$d.prototype.track_links=$d.prototype.track_links,$d.prototype.track_forms=$d.prototype.track_forms,$d.prototype.track_pageview=$d.prototype.track_pageview,$d.prototype.register=$d.prototype.register,$d.prototype.register_once=$d.prototype.register_once,$d.prototype.unregister=$d.prototype.unregister,$d.prototype.identify=$d.prototype.identify,$d.prototype.alias=$d.prototype.alias,$d.prototype.name_tag=$d.prototype.name_tag,$d.prototype.set_config=$d.prototype.set_config,$d.prototype.get_config=$d.prototype.get_config,$d.prototype.get_api_host=$d.prototype.get_api_host,$d.prototype.get_property=$d.prototype.get_property,$d.prototype.get_distinct_id=$d.prototype.get_distinct_id,$d.prototype.toString=$d.prototype.toString,$d.prototype.opt_out_tracking=$d.prototype.opt_out_tracking,$d.prototype.opt_in_tracking=$d.prototype.opt_in_tracking,$d.prototype.has_opted_out_tracking=$d.prototype.has_opted_out_tracking,$d.prototype.has_opted_in_tracking=$d.prototype.has_opted_in_tracking,$d.prototype.clear_opt_in_out_tracking=$d.prototype.clear_opt_in_out_tracking,$d.prototype.get_group=$d.prototype.get_group,$d.prototype.set_group=$d.prototype.set_group,$d.prototype.add_group=$d.prototype.add_group,$d.prototype.remove_group=$d.prototype.remove_group,$d.prototype.track_with_groups=$d.prototype.track_with_groups,$d.prototype.start_batch_senders=$d.prototype.start_batch_senders,$d.prototype.stop_batch_senders=$d.prototype.stop_batch_senders,$d.prototype.start_session_recording=$d.prototype.start_session_recording,$d.prototype.stop_session_recording=$d.prototype.stop_session_recording,$d.prototype.pause_session_recording=$d.prototype.pause_session_recording,$d.prototype.resume_session_recording=$d.prototype.resume_session_recording,$d.prototype.get_session_recording_properties=$d.prototype.get_session_recording_properties,$d.prototype.get_session_replay_url=$d.prototype.get_session_replay_url,$d.prototype.get_tab_id=$d.prototype.get_tab_id,$d.prototype.DEFAULT_API_ROUTES=Ud,$d.prototype.__get_recorder=$d.prototype.__get_recorder,Od.prototype.properties=Od.prototype.properties,Od.prototype.update_search_keyword=Od.prototype.update_search_keyword,Od.prototype.update_referrer_info=Od.prototype.update_referrer_info,Od.prototype.get_cross_subdomain=Od.prototype.get_cross_subdomain,Od.prototype.clear=Od.prototype.clear;var Wd={},Hd=(Ad=function(e,t){t()},md=0,(Nd=new $d).init=function(e,t,r){if(r)return Nd[r]||(Nd[r]=Wd[r]=zd(e,t,r),Nd[r]._loaded()),Nd[r];var i=Nd;Wd[Md]?i=Wd[Md]:e&&((i=zd(e,t,Md))._loaded(),Wd[Md]=i),Nd=i,1===md&&(n[Md]=Nd),Tu.each(Wd,function(e,t){t!==Md&&(Nd[t]=e)}),Nd._=Tu},Nd.init(),function(){function e(){e.done||(e.done=!0,Bd=!0,Dd=!1,Tu.each(Wd,function(e){e._dom_loaded()}))}if(Su.addEventListener)"complete"===Su.readyState?e():Su.addEventListener("DOMContentLoaded",e,!1);else if(Su.attachEvent){Su.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n.frameElement}catch(e){}Su.documentElement.doScroll&&t&&function t(){try{Su.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Tu.register_event(n,"load",e,!0)}(),Nd)},7008:(e,t,r)=>{"use strict";r.d(t,{Mh:()=>p,bi:()=>s,lL:()=>o,oe:()=>u,qt:()=>a});var n=r(6751);let i=!1;const o=()=>{try{if("undefined"==typeof window)return!1;if(i)return!0;const e=window.marketplaceConfig||{};if(!e.data_consent_status)return!1;const t=e.mixpanel||{},r=t.token;if(!r||""===r)return!1;n.A.init(r,{debug:t.debug||!1,track_pageview:!1,persistence:"localStorage",property_blacklist:["$initial_referrer","$initial_referring_domain","$current_url","$referrer","$referring_domain","mp_lib","$lib_version","$browser","$browser_version","$device","$screen_height","$screen_width","$os","$search_engine"]});const o=t.distinctId;return o&&""!==o&&n.A.identify(o),i=!0,!0}catch(e){return!1}},s=()=>{try{i&&void 0!==n.A&&(n.A.reset(),i=!1)}catch(e){console.error("[MixpanelTracking] Error disabling Mixpanel:",e)}},a=()=>{try{if("undefined"==typeof window)return!1;const e=((window.marketplaceConfig||{}).mixpanel||{}).token;return!(!e||""===e)&&(i=!1,o())}catch(e){return console.error("[MixpanelTracking] Error enabling Mixpanel:",e),!1}},c=()=>{try{if("undefined"==typeof window)return{};const e=((window.marketplaceConfig||{}).mixpanel||{}).globalProperties||{},t=new URLSearchParams(window.location.search).get("page")||"",r={...e,hit_type:"event",page:t||window.location.pathname,path:window.location.pathname+window.location.search,referrer:document.referrer.split("/").filter(Boolean).pop()||""};return Object.fromEntries(Object.entries(r).filter(([e,t])=>""!==t&&null!=t&&(!Array.isArray(t)||0!==t.length)))}catch(e){return{}}},l=(e,t={})=>{try{if(!(()=>{try{return i&&void 0!==n.A}catch(e){return!1}})())return;const r={...c(),...t};n.A.track(e,r)}catch(t){console.error("[MixpanelTracking] Error tracking event:",e,t)}},u=({pluginSlug:e,pluginName:t,category:r,itemName:n,isContentRendered:i=!0,contentReceivedAt:o=null,contentRenderedAt:s=null,isCached:a=!1,visibleConditionalProducts:c=[]}={})=>{try{const u=Date.now(),p={content_received_at:o||u,is_content_rendered:i,is_cached:a};c&&c.length>0&&(p.visible_conditional_products=c),i&&(p.content_rendered_at=s||u),n?p.item_name=n:e&&(p.item_name=e),e&&(p.product_slug=e),t&&(p.product_name=t),r&&(p.item_category=r),l("Page Viewed",p)}catch(e){console.error("[MixpanelTracking] Error tracking page view:",e)}},p=({buttonName:e,buttonAction:t,plugin:r=null,context:n={}}={})=>{try{const i={button_name:e||"",button_action:t||"",item_name:e||"",timestamp:Date.now()};r&&Object.assign(i,(e=>{if(!e)return{};const t={product_slug:e.slug||"",product_name:e.name||""};if(e.categories&&e.categories.length>0){const r="object"==typeof e.categories[0]?e.categories[0].slug||e.categories[0].title:e.categories[0];t.item_category=r}return e.licenseType&&(t.license_type=e.licenseType),void 0!==e.priceAmount&&(t.price_amount=e.priceAmount),e.priceCurrency&&(t.price_currency=e.priceCurrency),t})(r)),Object.assign(i,n),l("Button Clicked",i)}catch(e){console.error("[MixpanelTracking] Error tracking button click:",e)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Aggiorna pagina","ui.notifications.couldNotLoad":"Impossibile caricare la pagina","ui.notifications.refreshPage":"Aggiorna la pagina e contatta il nostro supporto se il problema persiste."}')},7565:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,r:()=>o});let n={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:r(2875).x};const i=(e={})=>{n={...n,...e}},o=()=>n},7674:(e,t,r)=>{"use strict";r(1609),r(1352)},7823:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Refresh page","ui.notifications.couldNotLoad":"Couldn’t load the page","ui.notifications.refreshPage":"Please refresh the page and contact our support if the issue persists."}')},7829:(e,t,r)=>{"use strict";r(1609),r(4814),r(1352)},7979:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,t:()=>a});var n=r(1609),i=r(7008),o=r(108);const s=(0,n.createContext)(null),a=({children:e,apiBaseUrl:t,useWPHandlers:r,wpConfig:a,enableDefaultStyles:c,assetsBaseUrl:l})=>{const[u,p]=(0,n.useState)({}),[h,d]=(0,n.useState)({}),[f,g]=(0,n.useState)({}),[m,v]=(0,n.useState)([]),[y,b]=(0,n.useState)({}),[_,w]=(0,n.useState)(""),[k,S]=(0,n.useState)(""),[x,C]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[E,I]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[O,N]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[A,R]=(0,n.useState)(!1),[M,T]=(0,n.useState)(!1),[L,P]=(0,n.useState)(!0),[D,F]=(0,n.useState)(()=>{const e="undefined"!=typeof window&&window.marketplaceConfig?.data_consent_status;return!0===e||"true"===e||"1"===e||1===e}),U=((0,n.useRef)({}),(0,n.useRef)(null)),j="onecom"===("undefined"!=typeof window&&window.marketplaceConfig?.brand),B="undefined"!=typeof window&&window.marketplaceConfig?.activePlugins?window.marketplaceConfig.activePlugins:[],$="undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor?window.marketplaceConfig.activeThemeAuthor:"",z="undefined"!=typeof window&&window.marketplaceConfig?.wpVersion?window.marketplaceConfig.wpVersion:"";(0,n.useEffect)(()=>{const e=sessionStorage.getItem("mp_success_notice");if(e)try{const t=JSON.parse(e);C({visible:t.visible,type:t.type,pluginSlug:t.pluginSlug}),N({visible:t.visible,type:t.successType,pluginSlug:t.pluginSlug}),setTimeout(()=>{sessionStorage.removeItem("mp_success_notice")},100)}catch(e){console.error("Error parsing persisted success notice",e)}},[]),(0,n.useEffect)(()=>{!0===D&&(0,i.lL)();const e=e=>{const t=void 0!==e.detail?.data_consent_status&&e.detail.data_consent_status;F(t),!0===t?("undefined"!=typeof window&&window.marketplaceConfig&&(window.marketplaceConfig.data_consent_status=!0),(0,i.qt)()):("undefined"!=typeof window&&window.marketplaceConfig&&(window.marketplaceConfig.data_consent_status=!1),(0,i.bi)())};window.addEventListener("onConsentStatusChanged",e);const t=t=>{if("onecom_data_consent_status"===t.key){const r="1"===t.newValue;e({detail:{data_consent_status:r}})}};return window.addEventListener("storage",t),()=>{window.removeEventListener("onConsentStatusChanged",e),window.removeEventListener("storage",t)}},[]);const q=(0,n.useCallback)(async e=>{if(j&&W(e)){g(t=>({...t,[e]:!0}));try{const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.ajaxUrl;if(!t)return void g(t=>({...t,[e]:!1}));const r=new FormData;r.append("action","get_addon_purchase_status"),r.append("addon_purchase_check","true"),r.append("addon_slug",e);const n=await fetch(t,{method:"POST",body:r}),i=await n.json();d(t=>({...t,[e]:i.is_purchased}))}catch(t){d(t=>({...t,[e]:!1}))}finally{g(t=>({...t,[e]:!1}))}}},[j]),V=(0,n.useCallback)(()=>{U.current&&(clearTimeout(U.current),U.current=null),sessionStorage.removeItem("mp_success_notice")},[]),W=(0,n.useCallback)(e=>"wp-rocket"===e||"seo-by-rank-math-pro"===e,[]),H=(0,n.useCallback)(e=>(0,o.u)(z,e),[z]),G=(0,n.useCallback)(e=>!(!e||!j)&&W(e.slug)&&!e.installed&&!0===h[e.slug],[j,h,W]),K=(0,n.useCallback)(e=>{if(!e.rules)return!0;if(e.rules.mustHavePlugins&&Array.isArray(e.rules.mustHavePlugins)){if(0===e.rules.mustHavePlugins.length)return!0;if(!e.rules.mustHavePlugins.some(e=>B.includes(e)))return!1}if(e.rules.mustHaveThemesByAuthor&&"string"==typeof e.rules.mustHaveThemesByAuthor){const t=e.rules.mustHaveThemesByAuthor;if($!==t)return!1}return!0},[B,$]),J=(0,n.useCallback)(async(e,n,o="")=>{const s="activate"===e&&"imagify"===n.slug;p(e=>({...e,[n.slug]:!0}));let c=!1;const l=n.name||n.slug;let u="";if(u="activate"===e?(y?.notifications?.activating||"Activating {0}").replace("{0}",l)+"...":"deactivate"===e?(y?.notifications?.deactivating||"Deactivating {0}").replace("{0}",l)+"...":"install"===e?(y?.notifications?.installing||"Installing {0}").replace("{0}",l)+"...":"delete"===e?(y?.notifications?.deleting||"Deleting {0}").replace("{0}",l)+"...":`${e.charAt(0).toUpperCase()+(e.endsWith("e")?e.slice(1,-1):e.slice(1))+"ing"} ${l}`,w(u),S(""),s){let s=`${t}${e}/${n.slug}`;const l=`download_url=${encodeURIComponent(n.download||"")}`;return s=r?`${a.ajaxUrl}?action=marketplace_${e}_plugin&_wpnonce=${a.nonce}&nonce=${a.nonce}&slug=${n.slug}&${l}`:s+(s.includes("?")?"&":"?")+l,void setTimeout(async()=>{try{await fetch(s,{method:"POST"})}catch(e){console.log("Imagify activation request initiated")}let r=0;const a=async()=>{try{const r=`${t}active/${n.slug}`,s=await fetch(r),a=await s.json();if(a&&a.activated)return(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"success",special_case:"imagify_redirect"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:n.slug,successType:"activate"})),U.current=setTimeout(()=>{window.location.reload()},500)):(N({visible:!0,type:"activate",pluginSlug:n.slug}),U.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),w(""),S(""),c=!0))}catch(e){console.error("Error checking activation status",e)}r++,r<6?setTimeout(a,1e3):(I({visible:!0,type:"activate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"error",error_message:"Imagify activation timeout after polling"}}),w(""),S(""),p(e=>({...e,[n.slug]:!1})))};setTimeout(a,1e3)},100)}try{let s=`${t}/${e}/${n.slug}`;const l=`download_url=${encodeURIComponent(n.download||"")}`;s=r?`${a.ajaxUrl}?action=marketplace_${e}_plugin&_wpnonce=${a.nonce}&nonce=${a.nonce}&slug=${n.slug}&${l}`:s+(s.includes("?")?"&":"?")+l;const u=await fetch(s,{method:"POST"}),p=await u.json();if(p.success)if(v(t=>t.map(t=>t.slug===n.slug?{...t,installed:p.data.installed,activated:p.data.activated}:"deactivate"===e&&"seo-by-rank-math"===n.slug&&"seo-by-rank-math-pro"===t.slug?{...t,activated:!1}:"activate"===e&&"seo-by-rank-math-pro"===n.slug&&"seo-by-rank-math"===t.slug?{...t,activated:!0}:t)),"install"===e&&p.data.installed)C({visible:!0,type:"installed",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:n,context:{action:e,result:"success"}});else if("delete"!==e||p.data.installed){if("activate"===e&&p.data.activated)return c=!0,(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"success"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:n.slug,successType:"activate"})),U.current=setTimeout(()=>{window.location.reload()},500)):(N({visible:!0,type:"activate",pluginSlug:n.slug}),U.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),w(""),S("")));if("deactivate"===e&&!p.data.activated)return c=!0,N({visible:!0,type:"deactivate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Deactivate",buttonAction:"product_deactivate",plugin:n,context:{action:e,result:"success"}}),U.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),w(""),void S("")}else C({visible:!0,type:"deleted",pluginSlug:n.slug}),N({visible:!0,type:"delete",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Delete",buttonAction:"product_delete",plugin:n,context:{action:e,result:"success"}});else"activate"===e?(I({visible:!0,type:"activate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||y?.notifications?.pluginActivationFailed||"Activation failed"}})):"deactivate"===e?(I({visible:!0,type:"deactivate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Deactivate",buttonAction:"product_deactivate",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||y?.notifications?.pluginDeactivationFailed||"Deactivation failed"}})):"install"===e?(I({visible:!0,type:"install",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||"Installation failed"}})):"delete"===e?(I({visible:!0,type:"delete",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Delete",buttonAction:"product_delete",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||y?.notifications?.pluginDeletionFailed||"Deletion failed"}})):alert(p.data?.message||"Failed to perform action")}catch(t){console.error("Plugin action failed",t),"activate"!==e&&"install"!==e&&"delete"!==e||(0,i.Mh)({buttonName:"activate"===e?"Activate":"install"===e?"Install":"Delete",buttonAction:"activate"===e?"product_activate":"install"===e?"product_install":"product_delete",plugin:n,context:{action:e,result:"error",error_message:t.message||"Network error"}})}finally{c||p(e=>({...e,[n.slug]:!1})),w(""),S("")}},[t,r,a,y]),Y={apiBaseUrl:t,useWPHandlers:r,wpConfig:a,enableDefaultStyles:c,assetsBaseUrl:l,pluginInAction:u,setPluginInAction:p,subscriptionStatus:h,isCheckingSubscription:f,fetchSubscriptionStatus:q,isOnecomBrand:j,plugins:m,setPlugins:v,uiI18n:y,setUiI18n:b,handlePluginAction:J,cancelReload:V,loadingAction:_,loadingPlugin:k,noticeState:x,setNoticeState:C,errorState:E,setErrorState:I,successState:O,setSuccessState:N,allPluginsActivated:A,setAllPluginsActivated:R,catalogError:M,setCatalogError:T,catalogLoading:L,setCatalogLoading:P,shouldShowProvision:G,isSpecialPlugin:W,shouldShowPlugin:K,isWpVersionSupported:H,wpVersion:z,activePlugins:B,activeThemeAuthor:$};return(0,n.createElement)(s.Provider,{value:Y},e)},c=()=>{const e=(0,n.useContext)(s);if(!e)throw new Error("useMarketplace must be used within MarketplaceProvider");return e}},8291:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>n.B,r9:()=>i.r}),r(7829),r(4814);var n=r(8437),i=(r(2648),r(2176),r(3273),r(3227),r(7674),r(1831));r(7565),r(1352)},8300:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Uppdatera sidan","ui.notifications.couldNotLoad":"Det gick inte att ladda sidan","ui.notifications.refreshPage":"Uppdatera sidan och kontakta vår support om problemet kvarstår."}')},8437:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(1609),i=r(1352),o=r(9454);const s=(e,t,r,n)=>e.getFixedT(t,r,n),a=(e,t={})=>{const{i18n:r}=t,{i18n:a,defaultNS:c}=(0,n.useContext)(i.gJ)||{},l=r||a||(0,i.TO)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new i.hz),!l){(0,o.mc)(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>(0,o.Kg)(t)?t:(0,o.Gv)(t)&&(0,o.Kg)(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}l.options.react?.wait&&(0,o.mc)(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...(0,i.rV)(),...l.options.react,...t},{useSuspense:p,keyPrefix:h}=u;let d=e||c||l.options?.defaultNS;d=(0,o.Kg)(d)?[d]:d||["translation"],l.reportNamespaces.addUsedNamespaces?.(d);const f=(l.isInitialized||l.initializedStoreOnce)&&d.every(e=>(0,o.NM)(e,l,u)),g=((e,t,r,i)=>(0,n.useCallback)(s(e,t,r,i),[e,t,r,i]))(l,t.lng||null,"fallback"===u.nsMode?d:d[0],h),m=()=>g,v=()=>s(l,t.lng||null,"fallback"===u.nsMode?d:d[0],h),[y,b]=(0,n.useState)(m);let _=d.join();t.lng&&(_=`${t.lng}${_}`);const w=((e,t)=>{const r=(0,n.useRef)();return(0,n.useEffect)(()=>{r.current=e},[e,t]),r.current})(_),k=(0,n.useRef)(!0);(0,n.useEffect)(()=>{const{bindI18n:e,bindI18nStore:r}=u;k.current=!0,f||p||(t.lng?(0,o.GA)(l,t.lng,d,()=>{k.current&&b(v)}):(0,o.dM)(l,d,()=>{k.current&&b(v)})),f&&w&&w!==_&&k.current&&b(v);const n=()=>{k.current&&b(v)};return e&&l?.on(e,n),r&&l?.store.on(r,n),()=>{k.current=!1,l&&e&&e?.split(" ").forEach(e=>l.off(e,n)),r&&l&&r.split(" ").forEach(e=>l.store.off(e,n))}},[l,_]),(0,n.useEffect)(()=>{k.current&&f&&b(m)},[l,h,f]);const S=[y,l,f];if(S.t=y,S.i18n=l,S.ready=f,f)return S;if(!f&&!p)return S;throw new Promise(e=>{t.lng?(0,o.GA)(l,t.lng,d,()=>e()):(0,o.dM)(l,d,()=>e())})}},8484:(e,t,r)=>{"use strict";let n;r.d(t,{T:()=>o,V:()=>i});const i=e=>{n=e},o=()=>n},8491:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Genindlæs side","ui.notifications.couldNotLoad":"Kunne ikke indlæse siden","ui.notifications.refreshPage":"Opdater venligst siden og kontakt vores support, hvis problemet fortsætter."}')},9454:(e,t,r)=>{"use strict";r.d(t,{GA:()=>a,Gv:()=>u,Kg:()=>l,NM:()=>c,dM:()=>s,mc:()=>i});const n={},i=(e,t,r,i)=>{l(r)&&n[r]||(l(r)&&(n[r]=new Date),((e,t,r,n)=>{const i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);l(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,i))},o=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},s=(e,t,r)=>{e.loadNamespaces(t,o(e,r))},a=(e,t,r,n)=>{if(l(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return s(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,o(e,n))},c=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(i(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),l=e=>"string"==typeof e,u=e=>"object"==typeof e&&null!==e},9962:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(7979),l=r(488);function u({plugin:e,onClose:t,usePortal:r=!0,loading:u=!1}){const{assetsBaseUrl:p,useWPHandlers:h,pluginInAction:d,plugins:f,uiI18n:g,subscriptionStatus:m,isCheckingSubscription:v,noticeState:y,setNoticeState:b,setErrorState:_}=(0,c.D)(),w=f.find(e=>"seo-by-rank-math"===e.slug)||null,k=f.find(e=>"seo-by-rank-math-pro"===e.slug)||null,S=p||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",x=S?`${S}assets/icons/`:"";if(u){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-w-max-container gv-mx-auto"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-mb-lg"},(0,n.createElement)("a",{href:"#",onClick:e=>{if(e.preventDefault(),"undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}arrow_back.svg`}),(0,n.createElement)("span",null,g.backButton))),(0,n.createElement)("header",{className:"gv-area-header"},(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("header",{className:"gv-area-header gv-mt-fluid gv-mb-fluid"},(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid gv-mb-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"160px"}}),(0,n.createElement)("ul",{className:""},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"160px",marginBottom:"28px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;const C=(0,n.useRef)(null),E=(0,n.useRef)(null),I=(0,n.useRef)(null),O=(0,n.useRef)(null),N=(0,n.useRef)(null),[A,R]=((0,n.useRef)([]),(0,n.useState)(0));(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{b(e=>!e.visible||e.pluginSlug!==w?.slug&&e.pluginSlug!==k?.slug?{visible:!1,type:null,pluginSlug:null}:e),_(e=>!e.visible||e.pluginSlug!==w?.slug&&e.pluginSlug!==k?.slug?{visible:!1,type:null,pluginSlug:null}:e)},[w?.slug,k?.slug,b,_]),(0,n.useEffect)(()=>{const e=()=>{b({visible:!1,type:null,pluginSlug:null}),_({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[b,_]),(0,n.useEffect)(()=>{const e=C.current,t=E.current,r=I.current,n=O.current,i=N.current;if(!(e&&t&&r&&n&&i))return;const o=t.querySelector(".gv-previous"),s=t.querySelector(".gv-next");let a=!1,c="top",l=!1,u=!1,p=!1,h=null,d=!1;const f=()=>{const t=e.scrollLeft,r=e.offsetWidth,n=Math.round(t/r);R(n),o&&(0===n?o.classList.add("gv-disabled"):o.classList.remove("gv-disabled")),s&&(n>=Math.round(e.scrollWidth/r)-1?s.classList.add("gv-disabled"):s.classList.remove("gv-disabled"))},g=()=>{const e=parseFloat(getComputedStyle(r).paddingTop)||0,i=n.offsetHeight/2,o=i+e,s=window.innerHeight/2-o,a=2*i;return t.style.transform=`translateY(${o}px)`,t.style.top=`${s}px`,t.style.bottom=`${a}px`,{bottomValue:a,halfHeaderHeight:i}},m=e=>{const n=r.getBoundingClientRect(),i=window.innerHeight-e,o=n.bottom<=i;o!==a&&(a=o,a?t.classList.add("gv-state-bottom"):t.classList.remove("gv-state-bottom"))},v=()=>{if(p)return;let e;e=l?l&&!u?"overlay":"bottom":"top",e!==c&&(p=!0,c=e,"top"===c?(i.classList.add("gv-state-top"),i.classList.remove("gv-state-overlay")):"overlay"===c?(i.classList.remove("gv-state-top"),i.classList.add("gv-state-overlay")):(i.classList.remove("gv-state-top"),i.classList.remove("gv-state-overlay")),requestAnimationFrame(()=>{setTimeout(()=>{p=!1},50)}))},{bottomValue:y}=g();e.addEventListener("scroll",f);const b=new IntersectionObserver(e=>{e.forEach(e=>{!e.isIntersecting&&e.boundingClientRect.top<0?l=!0:(e.isIntersecting||e.boundingClientRect.top>=0)&&(l=!1),v()})},{threshold:[0,1],rootMargin:"0px"}),_=document.createElement("div");_.style.position="absolute",_.style.bottom="0",_.style.left="0",_.style.width="1px",_.style.height="1px",_.style.pointerEvents="none",r.style.position="relative",r.appendChild(_);const w=new IntersectionObserver(e=>{e.forEach(e=>{u=e.isIntersecting,v()})},{threshold:[0],rootMargin:"-100px 0px 0px 0px"});b.observe(i),w.observe(_);const k=()=>{d||(d=!0,requestAnimationFrame(()=>{m(y)}),h=setTimeout(()=>{d=!1},100))},S=()=>{const{bottomValue:e}=g();m(e)};return window.addEventListener("scroll",k),window.addEventListener("resize",S),f(),m(y),v(),()=>{h&&clearTimeout(h),e.removeEventListener("scroll",f),window.removeEventListener("scroll",k),window.removeEventListener("resize",S),b.disconnect(),w.disconnect(),_&&_.parentNode&&_.parentNode.removeChild(_)}},[]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const M=k.detailsBannerUrl||k.bannerUrl,T=w?.name||e.name||"Product",L=w?.i18n?.description||w?.i18n?.subtitle,P=w?.i18n?.subtitle,D=k?.name||"Rank Math Pro",F=k?.i18n?.subtitle||k?.i18n?.description,U=k?(0,l.M)(k,g?.labels?.free||"Free",g):"",j=U===(g?.labels?.freeUntilRenewal||"Free until renewal"),B=(0,l.Tc)(k),$=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},z=w?.i18n||e.i18n,q=$(z,"keyBenefitContent"),V=$(w?.i18n,"keyFeatureContent"),W=$(k?.i18n,"keyFeatureContent"),H=Math.max(V.length,W.length),G=[];if(z&&"object"==typeof z){let e=1;for(;z[`coreFeatureTitle${e}`]||z[`coreFeatureContent${e}`];){const t=z[`coreFeatureTitle${e}`],r=z[`coreFeatureContent${e}`];t&&""!==t.trim()&&r&&""!==r.trim()&&G.push({name:t,desc:r}),e++}}const K=q,J=G,Y=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-w-max-container gv-mx-auto gv-p-fluid gv-p-0"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav"},(0,n.createElement)("a",{href:"#",onClick:r=>{if(r.preventDefault(),!d[e.slug])if("undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()},className:"gv-flex gv-items-center gv-gap-xs",role:"button","aria-label":"Go back",style:{opacity:d[e.slug]?.5:1,pointerEvents:d[e.slug]?"none":"auto",cursor:d[e.slug]?"not-allowed":"pointer"},"aria-disabled":d[e.slug]?"true":"false"},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}arrow_back.svg`}),(0,n.createElement)("span",null,g.backButton)),(0,n.createElement)(s.A,{plugin:y?.pluginSlug===k?.slug?k:w}),(0,n.createElement)(a.A,{plugin:w}),(0,n.createElement)(a.A,{plugin:k})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},"Rank Math"),(0,n.createElement)("p",{className:"gv-text-sm"},L)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${M} 2x, ${M} 1x`}),(0,n.createElement)("img",{src:M,srcSet:`${M} 2x, ${M} 1x`,alt:"Product image"})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-2 gv-recommended-2 gv-area-table"},(0,n.createElement)("div",{className:"gv-dots-scroll-area"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-slider-nav",ref:E},(0,n.createElement)("button",{type:"button",className:"gv-nav-button gv-previous gv-disabled",onClick:()=>{const e=C.current;if(!e)return;const t=e.offsetWidth;e.scrollTo({left:e.scrollLeft-t,behavior:"smooth"})}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}chevron_left.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-nav-button gv-next",onClick:()=>{const e=C.current;if(!e)return;const t=e.offsetWidth;e.scrollTo({left:e.scrollLeft+t,behavior:"smooth"})}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}chevron_right.svg`}))),(0,n.createElement)("div",{className:"gv-table-slider",ref:C},(0,n.createElement)("div",{className:"gv-table",role:"table",ref:I},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup",ref:O},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},`${T} free`),(0,n.createElement)("p",null,P)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},(0,n.createElement)("span",{className:"gv-price-text"},g?.labels?.free||"Free"))),h&&w?(0,n.createElement)(o.A,{plugin:w}):w?.download&&(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-secondary"},g?.installButton||w?.i18n?.installButton||"Install"))),(0,n.createElement)("div",{className:"gv-product gv-p-0",role:"columnheader"},(0,n.createElement)("div",{className:"gv-recommended-label"},"Recommended"),(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},D),(0,n.createElement)("p",null,F.substring(0,120),F.length>120?"…":"")),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},(0,n.createElement)("span",{className:"gv-price-text"},U,U&&!j&&",-"),U&&!j&&(0,n.createElement)("span",{className:"gv-period"},"/",g?.labels?.timeMonth)),U&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},g.labels.afterThat," [",B,"]/",g?.labels?.timeMonth))),h&&k?(0,n.createElement)(o.A,{plugin:k}):(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary"},"Select"))))),H>0&&(0,n.createElement)("div",{className:"gv-section",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},g?.keyFeatureHeading||w?.i18n?.keyFeatureHeading||"Key features")),(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},g?.keyFeatureHeading||k?.i18n?.keyFeatureHeading||"Key features"))),Array.from({length:H}).map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},V[t]||"")),(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},W[t]||"")))))))),(0,n.createElement)("div",{className:"gv-slider-pagination gv-state-top",ref:N},(0,n.createElement)("div",{className:"gv-dots",role:"tablist"},[0,1].map(e=>(0,n.createElement)("span",{key:e,className:"gv-dot "+(A===e?"gv-active":""),role:"tab","aria-selected":A===e?"true":"false","aria-label":`Go to slide ${e+1}`,onClick:()=>(e=>{const t=C.current;if(!t)return;const r=t.offsetWidth;t.scrollTo({left:r*e,behavior:"smooth"})})(e),style:{cursor:"pointer"}})))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},K.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},K.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),J.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},J.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)(Y,document.body):Y}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n);var e=r(1609),t=r(5795),i=r.n(t),o=r(6255),s=(r(5036),r(108));document.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("marketplace-addons-root");if(t){const n=window.marketplaceConfig||{};n.locale&&Promise.resolve().then(r.bind(r,2635)).then(({default:e})=>{e.changeLanguage(n.locale)});const a=(0,s.u)(n.wpVersion,"6.2");"function"==typeof i().createRoot&&a?i().createRoot(t).render((0,e.createElement)(o.A,{...n})):i().render((0,e.createElement)(o.A,{...n}),t)}})})(),window.MarketPlaceWP=n})();
+(()=>{var e={108:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});const n=(e,t)=>{if(!e)return!0;const r=String(e).split("."),n=String(t).split(".");for(let e=0;ei)return!0;if(t{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Oppdater side","ui.notifications.couldNotLoad":"Kunne ikke laste inn siden","ui.notifications.refreshPage":"Oppdater siden og kontakt vår support hvis problemet vedvarer."}')},488:(e,t,r)=>{"use strict";r.d(t,{Dn:()=>c,M:()=>l,Tc:()=>a});const n={EUR:"€",USD:"$",GBP:"£",DKK:"kr",NOK:"kr",SEK:"kr"},i=["DKK","SEK","NOK"],o=e=>n[e]||e,s=(e,t,r)=>i.includes(r)?`${e} ${t}`:`${t} ${e}`,a=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"full"===e.priceType);if(t&&t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},c=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&void 0!==t.amount&&null!==t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},l=(e,t="Free",r=null)=>{if("free"===e.licenseType)return t;if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&"premium"===e.licenseType){if(0===t.amount)return r?.labels?.freeUntilRenewal||"Free until renewal";if(t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return`${s(r,e,t.currency)} `}}let n=e.prices.find(e=>"full"===e.priceType&&(!0===e.isActive||void 0===e.isActive));if(n||(n=e.prices.find(e=>!0===e.isActive)),n||(n=e.prices[0]),n&&n.amount&&n.currency){const e=o(n.currency),t=Number(n.amount).toFixed(2);return s(t,e,n.currency)}}if(e.priceCurrency&&e.priceAmount){const t=o(e.priceCurrency),r=Number(e.priceAmount).toFixed(2);return s(r,t,e.priceCurrency)}return""}},1174:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{uiI18n:e}=(0,i.D)(),t=e?.notifications?.updateWPText?.replace("{0}","6.2");return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},e?.notifications?.updateWPTitle),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.href="undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?`${window.marketplaceConfig.wpConfig.adminUrl}update-core.php`:"/wp-admin/update-core.php"}},(0,n.createElement)("span",null,e?.updateWPButton))))}},1199:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Pagina verversen","ui.notifications.couldNotLoad":"Kon de pagina niet laden","ui.notifications.refreshPage":"Ververs de pagina en neem contact op met onze (Engelstalige) support als het probleem zich blijft voordoen."}')},1338:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,pluginInAction:r,subscriptionStatus:a,isCheckingSubscription:c,isOnecomBrand:l,handlePluginAction:u,uiI18n:p,isSpecialPlugin:h}=(0,i.D)(),d=a[e.slug],f=c[e.slug],g=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",m=g?`${g}assets/`:"",v=t=>{const r=!e.installed;if(l&&h(e.slug)&&r&&"install"===t){(0,o.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:e,context:{action:t,result:"initiated"}});const r=new CustomEvent("onecom-plugin-provision",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});return void document.dispatchEvent(r)}u(t,e,"product_detail")},y=(e,t)=>e?e.replace("{0}",t||""):"",b=e?.name||"",_=l&&h(e.slug)&&!e.installed&&!1===d,w=l&&h(e.slug)&&!e.installed&&(f||void 0===d);return(0,n.createElement)("div",{className:"plugin-actions gv-mt-md"},w?(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md"}):_?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Select",buttonAction:"subscribe_addon",plugin:e});const t=new CustomEvent("onecom-subscribe-addon",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});document.dispatchEvent(t)},disabled:f},"Select"):e.installed?e.activated?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Manage",buttonAction:"manage_product",context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}});const t=(0,s.v)(e,!1);(0,s.J)(t)}},(0,n.createElement)("span",null,p?.labels?.manage||"Manage"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${m}icons/arrow_right.svg`})):(0,n.createElement)("button",{className:"gv-button gv-button-primary",disabled:r[e.slug],onClick:()=>v("activate")},r[e.slug]?y(p?.notifications?.activating||"Activating {0}",b):p?.activateButton||e.i18n?.activateButton||"Activate"):(0,n.createElement)("button",{className:"gv-button "+("seo-by-rank-math"===e.slug?"gv-button-secondary":"gv-button-primary"),disabled:r[e.slug],onClick:()=>v("install")},r[e.slug]?y(p?.notifications?.installing||"Installing {0}",b):p?.installButton||e.i18n?.installButton||"Install"))}},1352:(e,t,r)=>{"use strict";r.d(t,{TO:()=>o.T,gJ:()=>s,hz:()=>a,rV:()=>i.r});var n=r(1609),i=r(7565),o=r(8484);r(1831);const s=(0,n.createContext)();class a{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}},1609:e=>{"use strict";e.exports=window.React},1755:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(7979),o=r(8291);function s(){const{assetsBaseUrl:e}=(0,i.D)(),{t}=(0,o.Bd)();return e||void 0!==window.marketplaceConfig&&window.marketplaceConfig,(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},t("ui.notifications.couldNotLoad")),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t("ui.notifications.refreshPage")),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.reload()}},(0,n.createElement)("span",null,t("ui.button.refreshPage")))))}},1831:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(7565),i=r(8484);const o={type:"3rdParty",init(e){(0,n.P)(e.options.react),(0,i.V)(e)}}},2176:(e,t,r)=>{"use strict";r(8437)},2635:(e,t,r)=>{"use strict";r.r(t),r.d(t,{changeLanguage:()=>Q,createInstance:()=>G,default:()=>H,dir:()=>K,exists:()=>re,getFixedT:()=>ee,hasLoadedNamespace:()=>ie,init:()=>J,keyFromSelector:()=>I,loadLanguages:()=>se,loadNamespaces:()=>oe,loadResources:()=>Y,reloadResources:()=>Z,setDefaultNamespace:()=>ne,t:()=>te,use:()=>X});const n=e=>"string"==typeof e,i=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},o=e=>null==e?"":""+e,s=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,c=e=>!e||n(e),l=(e,t,r)=>{const i=n(t)?t.split("."):t;let o=0;for(;o{const{obj:n,k:i}=l(e,t,Object);if(void 0!==n||1===t.length)return void(n[i]=r);let o=t[t.length-1],s=t.slice(0,t.length-1),a=l(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=l(e,s,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r},p=(e,t)=>{const{obj:r,k:n}=l(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},h=(e,t,r)=>{for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):h(e[i],t[i],r):e[i]=t[i]);return e},d=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const g=e=>n(e)?e.replace(/[&<>"'\/]/g,e=>f[e]):e,m=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let i=e;for(let e=0;e-1&&se?.replace("_","-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class w{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var k=new w;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,r,i={}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):n(r)&&o?a.push(...r.split(o)):a.push(r)));const c=p(this.data,a);return!c&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!c&&s&&n(r)?y(this.data?.[e]?.[t],r,o):c}addResource(e,t,r,n,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),u(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,i={silent:!1}){for(const i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=p(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?h(a,r,i):a={...a,...r},u(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var C={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};const E=Symbol("i18next/PATH_KEY");function I(e,t){const{[E]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,i)=>(r?.revoke?.(),i===E?e:(e.push(i),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return r.join(t?.keySeparator??".")}const O={},N=e=>!n(e)&&"boolean"!=typeof e&&"number"!=typeof e;class A extends S{constructor(e,t={}){super(),((e,t,r)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(r[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);return void 0!==n?.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const s=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=m.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const i=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,r,i));if(s&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(o)?[o]:o};const s=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(i)}return{key:e,namespaces:n(o)?[o]:o}}translate(e,t,r){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=I(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(e[e.length-1],i),l=c[c.length-1];let u=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const p=i.lng||this.language,h=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===p?.toLowerCase())return h?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;const d=this.resolve(e,i);let f=d?.res;const g=d?.usedKey||a,m=d?.exactUsedKey||a,v=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==i.count&&!n(i.count),_=A.hasDefaultValue(i),w=b?this.pluralResolver.getSuffix(p,i.count,i):"",k=i.ordinal&&b?this.pluralResolver.getSuffix(p,i.count,{ordinal:!1}):"",S=b&&!i.ordinal&&0===i.count,x=S&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${w}`]||i[`defaultValue${k}`]||i.defaultValue;let C=f;y&&!f&&_&&(C=x);const E=N(C),O=Object.prototype.toString.apply(C);if(!(y&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(O)<0)||n(v)&&Array.isArray(C))if(y&&n(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,i,r));else{let t=!1,n=!1;!this.isValidLookup(f)&&_&&(t=!0,f=x),this.isValidLookup(f)||(n=!0,f=a);const o=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:f,c=_&&x!==f&&this.options.updateMissing;if(n||t||c){if(this.logger.log(c?"updateKey":"missingKey",p,l,a,c?x:f),s){const e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r{const n=_&&r!==f?r:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,n,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,n,c,i),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,i);S&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,i[`defaultValue${t}`]||x)})}):r(e,a,x))}f=this.extendTranslation(f,e,i,d,r),n&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(n||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,C,{...i,ns:c}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(i),d):e}if(s){const e=Array.isArray(C),t=e?[]:{},r=e?m:g;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const n=`${r}${s}${e}`;t[e]=_&&!f?this.translate(n,{...i,defaultValue:N(x)?x[e]:void 0,joinArrays:!1,ns:c}):this.translate(n,{...i,joinArrays:!1,ns:c}),t[e]===n&&(t[e]=C[e])}f=t}}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(i),d):f}extendTranslation(e,t,r,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const s=n(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||i.usedLng,r),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=n(s)?[s]:s;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=C.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,i,o,s,a;return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(e,t),l=c.key;i=l;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=void 0!==t.count&&!n(t.count),h=p&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(n(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(a=e,O[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(O[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{if(this.isValidLookup(r))return;s=n;const i=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&0===e.indexOf(o)&&i.push(l+e.replace(o,this.options.pluralSeparator)),i.push(l+e),h&&i.push(l+r)),d){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;i.push(n),p&&(t.ordinal&&0===e.indexOf(o)&&i.push(n+e.replace(o,this.options.pluralSeparator)),i.push(n+e),h&&i.push(n+r))}}let a;for(;a=i.pop();)this.isValidLookup(r)||(o=a,r=this.getResource(n,e,a,t))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!n(e.replace);let i=r?e.replace:e;if(r&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const e of t)delete i[e]}return i}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class M{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):n(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{i.indexOf(e)<0&&o(this.formatLanguageCode(e))}),i}}const R={zero:0,one:1,two:2,few:3,many:4,other:5},T={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class L{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=b("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:n})}catch(r){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),T;if(!e.match(/-|_/))return T;const n=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(n,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((e,t)=>R[e]-R[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const P=(e,t,r,i=".",o=!0)=>{let s=((e,t,r)=>{const n=p(e,r);return void 0!==n?n:p(t,r)})(e,t,r);return!s&&o&&n(r)&&(s=y(e,r,i),void 0===s&&(s=y(t,r,i))),s},D=e=>e.replace(/\$/g,"$$$$");class F{constructor(e={}){this.logger=k.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?d(i):o||"{{",this.suffix=s?d(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=p?d(p):h||d("$t("),this.nestingSuffix=f?d(f):m||d(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let s,a,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const n=P(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}const n=e.split(this.formatSeparator),o=n.shift().trim(),s=n.join(this.formatSeparator).trim();return this.format(P(t,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:o})};this.resetRegExp();const p=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>D(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?D(this.escape(e)):D(e)}].forEach(t=>{for(c=0;s=t.regex.exec(e);){const r=s[1].trim();if(a=u(r),void 0===a)if("function"==typeof p){const t=p(e,s,i);a=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))a="";else{if(h){a=s[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a=""}else n(a)||this.useRawValueToEscape||(a=o(a));const l=t.safeValue(a);if(e=e.replace(s[0],l),h?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t,r={}){let i,s,a;const c=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,a);const o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!n(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==u&&(l=i[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=t(c.call(this,i[1].trim(),a),a),s&&i[0]===e&&!n(s))return s;n(s)||(s=o(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const U=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=n+JSON.stringify(o);let a=t[s];return a||(a=e(b(n),i),t[s]=a),a(r)}},B=e=>(t,r,n)=>e(b(r),n)(t);class j{constructor(e={}){this.logger=k.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?U:B;this.formats={number:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=U(t)}format(e,t,r,n={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class $ extends S{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){const i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){const n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:i}=l(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&n{this.read.call(this,e,t,r,n+1,2*i,o)},i):o(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}}prepareLoading(e,t,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);const o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i,o={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const a={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=5===c.length?c(e,t,r,n,a):c(e,t,r,n),i&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else c(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const z=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),q=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{};class W extends S{constructor(e={},t){var r;if(super(),this.options=q(e),this.services={},this.logger=k,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(n(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=z();this.options={...r,...this.options,...q(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?k.init(o(this.modules.logger),this.options):k.init(null,this.options),e=this.modules.formatter?this.modules.formatter:j;const t=new M(this.options);this.store=new x(this.options.resources,this.options);const n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new L(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new F(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new $(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=i(),a=()=>{const e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),s}loadResources(e,t=V){let r=t;const i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===i?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=V),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=i();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(n,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(n,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=n(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(n(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const i=(e,t,...n)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||i.keyPrefix);const s=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=I(e,{...this.options,...t})),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=I(e,{...this.options,...t})),a=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(a,o)};return n(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(r,e)||n&&!o(i,e)))}loadNamespaces(e,t){const r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=i();n(e)&&(e=[e]);const o=this.options.preload||[],s=e.filter(e=>o.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=o.concat(s),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new M(z());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new W(e,t)}cloneInstance(e={},t=V){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new W(n);if(void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{});i.store=new x(e,n),i.services.resourceStore=i.store}return i.translator=new A(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=W.createInstance();H.createInstance=W.createInstance;const G=H.createInstance,K=H.dir,J=H.init,Y=H.loadResources,Z=H.reloadResources,X=H.use,Q=H.changeLanguage,ee=H.getFixedT,te=H.t,re=H.exists,ne=H.setDefaultNamespace,ie=H.hasLoadedNamespace,oe=H.loadNamespaces,se=H.loadLanguages},2648:(e,t,r)=>{"use strict";r(1609),r(8437),r(9454)},2875:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});const n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},o=e=>i[e],s=e=>e.replace(n,o)},3220:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,v:()=>n});const n=(e,t=!1)=>{let r=e.redirectUrl;const n="seo-by-rank-math"===e.slug||"seo-by-rank-math-pro"===e.slug,i=e.onboardingUrl&&"string"==typeof e.onboardingUrl&&""!==e.onboardingUrl.trim();if(n){const t=window.marketplaceConfig?.wpConfig;(!t||!0!==t.rankMathRegistrationSkip)&&i&&(r=e.onboardingUrl)}else t&&i&&(r=e.onboardingUrl);return r},i=e=>{if(e&&""!==e.trim()){const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.adminUrl;if(t){let r=e;r.startsWith("wp-admin/")&&(r=r.substring(9));const n=`${t}${r}`;window.location.href=n}else{const t=`${window.location.origin}/${e}`;window.location.href=t}return}window.location.href="/wp-admin/plugins.php"}},3227:(e,t,r)=>{"use strict";r(1609),r(7674),r(1352),r(9454)},3273:(e,t,r)=>{"use strict";r(1609),r(1352)},3331:(e,t,r)=>{"use strict";r.d(t,{hw:()=>i,j6:()=>s,lb:()=>o});var n=r(1609);const i=(e,t,r)=>e?e.replace(t,r||""):"",o=(e,t,r)=>e.replace(/%([^%]+)%/g,(e,n)=>`${t}${n}${r}`),s=({htmlString:e})=>(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e}})},3461:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Päivitä sivu","ui.notifications.couldNotLoad":"Sivua ei voitu ladata","ui.notifications.refreshPage":"Päivitä sivu ja ota yhteyttä asiakaspalveluumme, jos ongelma jatkuu."}')},3526:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{loadingAction:e,loadingPlugin:t,assetsBaseUrl:r}=(0,i.D)();if(!e)return null;const o=`${r||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||""}assets/images/spinner.svg`;return(0,n.createElement)("div",{className:"loading-overlay show"},(0,n.createElement)("div",{className:"gv-loader-container gv-pos-center gv-pos-absolute"},(0,n.createElement)("gv-loader",{src:o}),(0,n.createElement)("p",null,e)))}},3591:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualizar página","ui.notifications.couldNotLoad":"No se puede cargar la página","ui.notifications.refreshPage":"Actualice la página y póngase en contacto con nuestro servicio de asistencia si el problema persiste."}')},3699:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(1609),i=r(7979),o=r(488),s=r(4598),a=r(9962),c=r(4677),l=r(4800),u=(r(6530),r(1755)),p=r(1174),h=r(7008),d=r(3220);function f(){const{apiBaseUrl:e,assetsBaseUrl:t,pluginInAction:r,setPluginInAction:f,subscriptionStatus:g,fetchSubscriptionStatus:m,isOnecomBrand:v,plugins:y,setPlugins:b,uiI18n:_,setUiI18n:w,handlePluginAction:k,catalogError:S,setCatalogError:x,catalogLoading:C,setCatalogLoading:E,currentPluginSlug:I,shouldShowProvision:O,isSpecialPlugin:N,shouldShowPlugin:A,isWpVersionSupported:M,openDeleteModal:R}=(0,i.D)(),[T,L]=(0,n.useState)(null),[P,D]=(0,n.useState)([]),[F,U]=(0,n.useState)(null),B=(0,n.useRef)(null),j=(0,n.useRef)(!1),$=(0,n.useRef)(!1),z=((0,n.useRef)(null),(0,n.useRef)(null)),q=(0,n.useRef)(null),V=(0,n.useRef)(!1),W=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",H=W?`${W}assets/icons/`:"";if((0,n.useEffect)(()=>{j.current||(j.current=!0,E(!0),x(null),fetch(e).then(e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return z.current=Date.now(),e.json()}).then(e=>{if((e.is_cached||e.cached)&&(V.current=!0),!(e.success&&e.data&&e.data.catalog))throw(0,h.oe)({category:"addons_page",itemName:"Addons Page",isContentRendered:!1}),new Error("Invalid API response structure");{const t=e.data.catalog;b(t);const r=!0===t.find(e=>"seo-by-rank-math"===e.slug)?.activated,n=!0===t.find(e=>"seo-by-rank-math-pro"===e.slug)?.activated,i=t.filter(e=>!!A(e)&&!0!==e.activated&&(!0===e.featured||"true"===e.featured)&&("seo-by-rank-math"===e.slug?!r&&!n:"seo-by-rank-math-pro"!==e.slug||r)).sort((e,t)=>(void 0!==e.displayOrder?parseInt(e.displayOrder):1/0)-(void 0!==t.displayOrder?parseInt(t.displayOrder):1/0)).slice(0,3);D(i);const o=e.data.uiI18n||e.data.ui_i18n;o&&w(o),v&&t.filter(e=>N(e.slug)).forEach(e=>{m(e.slug)})}}).catch(e=>{console.error("Failed to fetch plugins:",e),(0,h.oe)({category:"addons_page",itemName:"Addons Page",isContentRendered:!1}),x(e.message||"Failed to load plugins")}).finally(()=>{E(!1)}))},[e,b,w,x,E,A]),(0,n.useEffect)(()=>{if(I&&y.length){const e=y.find(e=>e.slug===I);e&&L(e)}else I||L(null)},[I,y]),(0,n.useEffect)(()=>{const e=e=>{B.current&&!B.current.contains(e.target)&&U(null)};return null!==F?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[F]),(0,n.useEffect)(()=>{C||S||!(y.length>0)||I||$.current||(q.current=Date.now(),"true"===sessionStorage.getItem("mp_skip_page_view")?sessionStorage.removeItem("mp_skip_page_view"):(0,h.oe)({category:"addons_page",itemName:"Addons Page",contentReceivedAt:z.current,contentRenderedAt:q.current,isCached:V.current}),$.current=!0)},[C,S,y.length,I]),C)return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mb-sm",style:{width:"13%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-fluid",style:{width:"33%"}}),(0,n.createElement)("div",{className:"gv-flex gv-justify-between gv-items-start"},(0,n.createElement)("div",{className:"gv-w-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-sm gv-mb-sm",style:{width:"13%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-md",style:{width:"33%"}})),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-md",style:{width:"13%"}})),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-skeleton-loader"},[0,1,2].map(e=>(0,n.createElement)("div",{key:e,className:"gv-card gv-gap-md gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius"},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-3 gv-tab-span-3"},(0,n.createElement)("div",{className:"gv-skeleton gv-icon-tile"})),(0,n.createElement)("div",{className:"gv-desk-span-8 gv-tab-span-7 gv-span-7"},(0,n.createElement)("div",{className:"gv-skeleton gv-mb-xs",style:{height:"20px",width:"70%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-mb-sm",style:{height:"16px",width:"100%"}}),(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"40%"}})),(0,n.createElement)("div",{className:"gv-span-2 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"24px",width:"24px"}}))))),(0,n.createElement)("div",{className:"gv-data-table gv-mt-lg gv-overflow-x-auto gv-skeleton-loader"},(0,n.createElement)("table",{className:"gv-col-5-shrink gv-col-6-shrink"},(0,n.createElement)("thead",null,(0,n.createElement)("tr",null,(0,n.createElement)("th",{scope:"col"}),(0,n.createElement)("th",{scope:"col"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"50px"}})),(0,n.createElement)("th",{scope:"col"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"50px"}})),(0,n.createElement)("th",{scope:"col"},(0,n.createElement)("div",{className:"gv-skeleton",style:{height:"16px",width:"50px"}})),(0,n.createElement)("th",{scope:"col"}))),(0,n.createElement)("tbody",null,[0,1].map(e=>(0,n.createElement)("tr",{key:e},(0,n.createElement)("td",{style:{width:"80px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-icon-tile"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"24px"}}))))))));if(S)return(0,n.createElement)(u.A,null);if(!M("6.2"))return(0,n.createElement)(p.A,null);const G=y.filter(e=>e.installed||O(e));return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col"},(0,n.createElement)("div",{className:"addons-header-wrap"},(0,n.createElement)("h3",null,_?.headings?.myProducts),(0,n.createElement)("p",{className:"gv-text-sm"},_?.text?.myProducts)),P.length>0&&(0,n.createElement)("section",{className:"addons-section gv-mt-fluid"},(0,n.createElement)("div",{className:"addons-header-container gv-flex gv-max-mob-flex-col gv-justify-between gv-items-start gv-tab-gap-lg"},(0,n.createElement)("div",{className:"heading-container gv-flex-1"},(0,n.createElement)("p",{className:"gv-text-bold gv-text-lg gv-mb-xs"},_?.headings?.recommendedProducts),(0,n.createElement)("p",{className:"gv-text-sm gv-mb-md"},_?.text?.recommendedText)),(0,n.createElement)("button",{className:"gv-button gv-button-primary gv-mode-condensed gv-flex-shrink-0",onClick:()=>{const e="undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?window.marketplaceConfig.wpConfig.adminUrl:"/wp-admin/";window.location.href=`${e}admin.php?page=onecom-marketplace`}},_.seeAllProducts,(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}arrow_right.svg`,alt:"See all products"}))),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-mt-md"},P.map(e=>{O(e);const t=e.i18n.freeTrialPeriod&&""!==e.i18n.freeTrialPeriod.trim()?e.i18n.freeTrialPeriod:_?.labels?.free||"Free",r=(0,o.M)(e,t,_),i=(0,o.Tc)(e),s=(0,o.Dn)(e);return(0,n.createElement)("div",{key:e.slug,className:"gv-card gv-gap-sm gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius ocmp-plugin-cards",onClick:()=>{var t;window.location.href=(t=e.slug,`${"undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?window.marketplaceConfig.wpConfig.adminUrl:"/wp-admin/"}admin.php?page=onecom-marketplace&plugin=${t}`)}},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-2 gv-tab-span-2"},(0,n.createElement)("img",{className:"gv-icon-tile",src:e.iconUrl||`${H}add_box.svg`,alt:e.name})),(0,n.createElement)("div",{className:"gv-desk-span-9 gv-tab-span-9 gv-span-9 gv-ml-sm"},(0,n.createElement)("div",{className:"gv-flex gv-flex-col gv-justify-between gv-h-full"},(0,n.createElement)("p",{className:"gv-text-sm gv-text-bold gv-mb-xs"},e.name),(0,n.createElement)("p",{className:"oc-card-content gv-text-on-alternative gv-mb-sm gv-text-sm gv-flex-1"},e.i18n.listingDescription||e.i18n.subtitle),(0,n.createElement)("span",{className:"gv-caption-lg gv-text-bold"},(0,n.createElement)(n.Fragment,null,"premium"===e.licenseType&&s>0?null!==s?s:i:r,"free"!==e.licenseType&&r&&r!==t&&r!==(_?.labels?.freeUntilRenewal||"Free until renewal")&&(0,n.createElement)("span",{className:"gv-period"},"/",_?.labels?.timeMonth))))),(0,n.createElement)("div",{className:"gv-span-1 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-reset-button",style:{display:"inline-block"},"aria-label":`View details for ${e.name}`},(0,n.createElement)("img",{className:"gv-tile",src:`${H}arrow_forward.svg`,alt:`View ${e.name} details`,style:{minWidth:"24px"}}))))}))),G.length>0&&(0,n.createElement)("section",{className:"addons-section gv-mt-fluid"},(0,n.createElement)("div",{className:"gv-data-table gv-mt-lg gv-addons-table"},(0,n.createElement)("table",{className:"gv-col-5-shrink gv-col-6-shrink"},(0,n.createElement)("thead",null,(0,n.createElement)("tr",null,(0,n.createElement)("th",{scope:"col"}),(0,n.createElement)("th",{scope:"col"},_?.labels?.name),(0,n.createElement)("th",{scope:"col"},_?.labels?.type),(0,n.createElement)("th",{scope:"col"},_?.labels?.status),(0,n.createElement)("th",{scope:"col"}),(0,n.createElement)("th",{scope:"col"}))),(0,n.createElement)("tbody",null,G.map((e,t)=>{const r=O(e);return(0,n.createElement)("tr",{id:e.slug,key:e.slug},(0,n.createElement)("td",{style:{width:"80px"}},(0,n.createElement)("img",{src:e.iconUrl||`${H}add_box.svg`,alt:e.name,className:"gv-icon-tile",style:{maxWidth:"auto"}})),(0,n.createElement)("td",null,e.name),(0,n.createElement)("td",null,"free"===e.licenseType?_?.labels?.freePlugin:_?.labels?.premiumPlugin),(0,n.createElement)("td",null,(0,n.createElement)("div",{className:"gv-text-indicator"},(0,n.createElement)("span",{className:e.activated?"gv-indicator gv-state-positive":"gv-indicator gv-state-informative"}),(0,n.createElement)("span",null," ",e.activated?_?.labels?.active||"Active":r?_?.labels?.notInstalled||"Not Installed":_?.labels?.notActive||"Not Active"))),(0,n.createElement)("td",null,r?(0,n.createElement)("a",{href:"#",className:"gv-action",onClick:t=>{t.preventDefault();const r=new CustomEvent("onecom-plugin-provision",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});document.dispatchEvent(r)}},_?.installAndActivate||"Install and activate"):!e.activated&&(0,n.createElement)("a",{href:"#",className:"gv-action",onClick:t=>{t.preventDefault(),k("activate",e,"addons")}},_?.activateButton||"Activate")),(0,n.createElement)("td",null,(e.activated||e.installed&&!r)&&(0,n.createElement)("div",{className:"gv-pos-relative",ref:F===t?B:null},(0,n.createElement)("button",{type:"button","aria-label":"Toggle menu",className:"gv-reset-button",onClick:()=>U(F===t?null:t)},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}more_horiz.svg`})),(0,n.createElement)("div",{className:"gv-contextual-menu gv-pos-right "+(F===t?"":"gv-invisible")},(0,n.createElement)("div",{className:"gv-menu"},(0,n.createElement)("button",{type:"button",className:"gv-btn-close","aria-label":"Close",onClick:()=>U(null)},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}close.svg`})),(0,n.createElement)("ul",null,e.activated&&(0,n.createElement)("li",{className:"gv-mb-0"},(0,n.createElement)("a",{href:"#",className:"gv-menu-item",onClick:t=>{t.preventDefault(),U(null),(e=>{"undefined"!=typeof window&&window.marketplaceConfig?.data_consent_status&&(0,h.Mh)({buttonName:"Manage",buttonAction:"manage_product",context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}});const t=(0,d.v)(e,!1);(0,d.J)(t)})(e)}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}settings.svg`}),(0,n.createElement)("span",null,_?.labels?.manage||"Manage"))),e.activated&&(0,n.createElement)("li",{className:"gv-mb-0"},(0,n.createElement)("a",{href:"#",className:"gv-menu-item",onClick:t=>{t.preventDefault(),U(null),k("deactivate",e,"addons")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}cancel.svg`}),(0,n.createElement)("span",null,_?.deactivate||"Deactivate"))),(0,n.createElement)("li",{className:"gv-mb-0"},!e.activated&&e.installed&&(0,n.createElement)("a",{href:"#",className:"gv-menu-item",onClick:t=>{t.preventDefault(),U(null),R(e)}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}delete.svg`}),(0,n.createElement)("span",null,_?.deleteButton||"Delete")))))))))}))))),(0,n.createElement)(c.A,null),(0,n.createElement)(l.A,null),T&&!I&&(()=>{const e=(t=T)&&"seo-by-rank-math"===t.slug?a.A:s.A;var t;return(0,n.createElement)(e,{plugin:T,onClose:()=>L(null),loading:C})})())}},3804:(e,t,r)=>{"use strict";r(4915),Object.create(null)},4469:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,noticeState:r,setNoticeState:a,handlePluginAction:c,cancelReload:l,uiI18n:u}=(0,i.D)();if(!r||!r.visible||r.pluginSlug!==e?.slug)return null;const p=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",h=p?`${p}assets/`:"",d="installed"===r.type,f="activated"===r.type,g=(e,t)=>e?e.replace("{0}",t||""):"",m=e?.name||"";return(0,n.createElement)("div",{className:"gv-notice gv-notice-success gv-p-lg gv-max-mob-pt-lg gv-mb-0 gv-mt-lg",style:{gridColumn:"1 / -1",width:"100%"}},(0,n.createElement)("img",{className:"gv-notice-icon",src:`${h}icons/success.svg`,alt:"Success"}),(0,n.createElement)("div",{className:"gv-notice-content"},(0,n.createElement)("div",{className:"gv-notice-title"},d&&g(u?.notifications?.pluginInstalled||"Plugin was installed.",m),f&&g(u?.notifications?.pluginActivated||"Plugin was activated.",m)),(0,n.createElement)("p",{className:"gv-text-sm"},d&&(u?.notifications?.activateNow||"Activate it now to start using it."),f&&g(u?.notifications?.manageInMyProducts||"{0} plugin was activated for this site. You can manage it on the My products page.",m))),d&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{c("activate",e,"product_detail")}},u?.activatePluginButton),f&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{(0,o.Mh)({buttonName:"Get started",buttonAction:"manage_product",plugin:e,context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}}),l();const t=(0,s.v)(e,!0);(0,s.J)(t)}},(0,n.createElement)("span",null,u?.featuredCta||"Get Started"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/arrow_forward.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-notice-close","aria-label":"Close",onClick:()=>{a({visible:!1,type:null,pluginSlug:null}),sessionStorage.removeItem("mp_success_notice")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/close.svg`})))}},4598:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(4694),l=r(7979),u=r(488);function p({plugin:e,onClose:t,usePortal:r=!0,loading:p=!1}){const{assetsBaseUrl:h,useWPHandlers:d,pluginInAction:f,uiI18n:g,setNoticeState:m,setErrorState:v}=(0,l.D)(),y=h||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",b=y?`${y}assets/icons/`:"";if(p){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-flex-col gv-items-start"},(0,n.createElement)("div",{className:"gv-flex gv-items-center gv-gap-xs"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"60px"}}))),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-sm gv-text-sm"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mb-sm",style:{marginBottom:"24px"}}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"80%"}})),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full",style:{marginTop:"75px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"70%"}})),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"120px",height:"32px"}})),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mt-md"}))))),(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"150px"}}))),[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-w-full"})))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"180px"}}),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"250px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{m(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null}),v(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null})},[e.slug,m,v]),(0,n.useEffect)(()=>{const e=()=>{m({visible:!1,type:null,pluginSlug:null}),v({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[m,v]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const _=e.bannerUrl||e.image||e.thumbnail||"https://gravity.group.one/guide-images/product-image@2x.png",w=e.name||"Product",k=e.i18n?.description||e.i18n?.subtitle||e.description||e.shortDescription||"No description available.",S=e.i18n?.subtitle,x="free"===e.licenseType,C=e.i18n?.freeTrialText||"",E=C&&""!==C.trim(),I=e.i18n?.freeTrialPeriod||"",O=I&&""!==I.trim(),N=O||E?g?.headings?.freeTrial||"Free trial*":(0,u.M)(e,g?.labels?.free||"Free",g),A=N===(g?.labels?.freeUntilRenewal||"Free until renewal"),M=(0,u.Tc)(e),R=(0,u.Dn)(e),T=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},L=T(e.i18n,"keyBenefitContent"),P=T(e.i18n,"keyFeatureContent"),D=[];if(e.i18n&&"object"==typeof e.i18n){let t=1;for(;e.i18n[`coreFeatureTitle${t}`]||e.i18n[`coreFeatureContent${t}`];){const r=e.i18n[`coreFeatureTitle${t}`],n=e.i18n[`coreFeatureContent${t}`];r&&""!==r.trim()&&n&&""!==n.trim()&&D.push({name:r,desc:n}),t++}}const F=P,U=L,B=D,j=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)(c.A,{iconBase:b,label:g.backButton,onClose:t,disabled:f[e.slug],className:"gv-flex-col gv-items-start"},(0,n.createElement)(s.A,{plugin:e}),(0,n.createElement)(a.A,{plugin:e})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},w),(0,n.createElement)("p",{className:"gv-text-sm"},k)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${_} 1x, ${_} 2x`}),(0,n.createElement)("img",{src:_,srcSet:`${_} 1x, ${_} 2x`,alt:`${w} image`})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},w),(0,n.createElement)("p",null,S)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},O||E?(0,n.createElement)("span",{className:"gv-price-text"},N):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("span",{className:"gv-price-text"},"premium"===e.licenseType&&null!==R?null!==R?R:M:N),!x&&!A&&N&&(0,n.createElement)("span",{className:"gv-period"},"/",g?.labels?.timeMonth))),O||E?(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},C)):!x&&N&&M&&null!==R&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},g.labels.untilRenewal," [",R,"]/",g?.labels?.timeMonth),(0,n.createElement)("div",{className:"gv-info"},g.labels.afterThat," [",M,"]/",g?.labels?.timeMonth))),d?(0,n.createElement)(o.A,{plugin:e}):e.download&&(0,n.createElement)("a",{href:e.download,download:!0,className:"gv-button gv-button-secondary"},"Download"))))),F.length>0&&(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},g?.keyFeatureHeading||e.i18n?.keyFeatureHeading))),F.map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},e)))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},U.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},U.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),B.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},B.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)(j,document.body):j}},4601:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(7008);const i=async({plugin:e,apiBaseUrl:t,useWPHandlers:r,wpConfig:i,source:o,uiI18n:s,setLoadingAction:a,setLoadingPlugin:c,setPluginInAction:l,setSuccessState:u,setErrorState:p,reloadTimeoutRef:h})=>{const d="activate";let f=`${t}${d}/${e.slug}`;const g=`download_url=${encodeURIComponent(e.download||"")}`;f=r?`${i.ajaxUrl}?action=marketplace_${d}_plugin&_wpnonce=${i.nonce}&nonce=${i.nonce}&slug=${e.slug}&${g}`:f+(f.includes("?")?"&":"?")+g,setTimeout(async()=>{try{await fetch(f,{method:"POST"})}catch(e){console.log("Imagify activation request initiated")}let r=0;const i=async()=>{try{const r=`${t}active/${e.slug}`,i=await fetch(r),s=await i.json();if(s&&s.activated)return(0,n.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:e,context:{action:d,result:"success",special_case:"imagify_redirect"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:e.slug,successType:"activate"})),h.current=setTimeout(()=>{window.location.reload()},500)):(u({visible:!0,type:"activate",pluginSlug:e.slug}),h.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),a(""),c("")))}catch(e){console.error("Error checking activation status",e)}r++,r<6?setTimeout(i,1e3):(p({visible:!0,type:"activate",pluginSlug:e.slug}),(0,n.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:e,context:{action:d,result:"error",error_message:"Imagify activation timeout after polling"}}),a(""),c(""),l(t=>({...t,[e.slug]:!1})))};setTimeout(i,1e3)},100)}},4677:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o({plugin:e}){const{assetsBaseUrl:t,errorState:r,setErrorState:o,uiI18n:s,plugins:a}=(0,i.D)(),c=e||a.find(e=>e.slug===r.pluginSlug),l=r&&r.visible&&r.pluginSlug===c?.slug;if((0,n.useEffect)(()=>{if(l){const e=setTimeout(()=>{h()},5e3);return()=>clearTimeout(e)}},[l]),!l)return null;const u=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/`:"",h=()=>{o({visible:!1,type:null,pluginSlug:null})},d="activate"===r.type,f="deactivate"===r.type,g="install"===r.type,m="delete"===r.type,v=(e,t)=>e?e.replace("{0}",t||""):"",y=c?.name||"";return(0,n.createElement)("div",{className:"gv-toast-container"},(0,n.createElement)("div",{className:"gv-toast gv-toast-alert gv-visible"},(0,n.createElement)("gv-icon",{className:"gv-notice-icon","aria-hidden":"true",src:`${p}icons/error.svg`}),(0,n.createElement)("div",{className:"gv-toast-content"},d&&v(s?.notifications?.pluginActivationFailed||"Couldn't activate plugin.",y),f&&v(s?.notifications?.pluginDeactivationFailed||"Couldn't deactivate plugin.",y),g&&v(s?.notifications?.pluginInstallationFailed||"Couldn't install plugin.",y),m&&v(s?.notifications?.pluginDeletionFailed||"Couldn't delete plugin.",y)),(0,n.createElement)("button",{type:"button",className:"gv-toast-close","aria-label":"Close",onClick:h},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}icons/close.svg`}))))}},4694:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1609);const i=({iconBase:e,label:t,onClose:r,className:i="",disabled:o=!1,children:s})=>(0,n.createElement)("nav",{className:`gv-breadcrumbs gv-area-nav ${i}`},(0,n.createElement)("a",{href:"#",onClick:e=>{if(e.preventDefault(),!o)if("undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){r&&r()}else r&&r()},className:"gv-flex gv-items-center gv-gap-xs",role:"button","aria-label":"Go back",style:{opacity:o?.5:1,pointerEvents:o?"none":"auto",cursor:o?"not-allowed":"pointer"},"aria-disabled":o?"true":"false"},(0,n.createElement)("img",{style:{minWidth:"24px"},className:"gv-tile",src:`${e}arrow_back.svg`,alt:"Back"}),(0,n.createElement)("span",null,t)),s)},4800:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o({plugin:e}){const{assetsBaseUrl:t,successState:r,setSuccessState:o,uiI18n:s,plugins:a}=(0,i.D)(),c=e||a.find(e=>e.slug===r.pluginSlug),l=r&&r.visible&&r.pluginSlug===c?.slug;if((0,n.useEffect)(()=>{if(l){const e=setTimeout(()=>{h()},5e3);return()=>clearTimeout(e)}},[l]),!l)return null;const u=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/`:"",h=()=>{o({visible:!1,type:null,pluginSlug:null})},d="activate"===r.type,f="deactivate"===r.type,g="delete"===r.type,m=(e,t)=>e?e.replace("{0}",t||""):"",v=c?.name||"";return(0,n.createElement)("div",{className:"gv-toast-container"},(0,n.createElement)("div",{className:"gv-toast gv-toast-success gv-visible"},(0,n.createElement)("gv-icon",{className:"gv-notice-icon","aria-hidden":"true",src:`${p}icons/check_circle.svg`}),(0,n.createElement)("div",{className:"gv-toast-content"},d&&m(s?.notifications?.pluginActivatedShort||"Plugin activated.",v),f&&m(s?.notifications?.pluginDeactivated||"Plugin deactivated.",v),g&&m(s?.notifications?.pluginDeleted||"Plugin deleted successfully.",v)),(0,n.createElement)("button",{type:"button",className:"gv-toast-close","aria-label":"Close",onClick:h},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}icons/close.svg`}))))}},4811:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualiser la page","ui.notifications.couldNotLoad":"Impossible de charger la page","ui.notifications.refreshPage":"Veuillez rafraîchir la page et contact notre support si le problème persiste."}')},4814:(e,t,r)=>{"use strict";r(1609),r(3804),r(9454),r(7565)},4915:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5036:(e,t,r)=>{"use strict";var n=r(2635),i=r(8291),o=r(7823),s=r(8491),a=r(5205),c=r(3591),l=r(3461),u=r(4811),p=r(7529),h=r(1199),d=r(333);const f={en_GB:{translation:o},da_DK:{translation:s},de_DE:{translation:a},es_ES:{translation:c},fi_FI:{translation:l},fr_FR:{translation:u},it_IT:{translation:p},nl_NL:{translation:h},no_NO:{translation:d},nb_NO:{translation:d},pt_PT:{translation:r(5383)},sv_SE:{translation:r(8300)},fi:{translation:l}};n.default.use(i.r9).init({resources:f,lng:"en_GB",fallbackLng:"en_GB",interpolation:{escapeValue:!1}})},5205:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Seite aktualisieren","ui.notifications.couldNotLoad":"Die Seite konnte nicht geladen werden","ui.notifications.refreshPage":"Bitte aktualisieren Sie die Seite und Kontakt Sie unser Support, falls das Problem weiterhin besteht."}')},5383:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Atualizar página","ui.notifications.couldNotLoad":"Não foi possível carregar a página","ui.notifications.refreshPage":"Atualize a página e contacte a nossa equipa de suporte se o problema persistir."}')},5795:e=>{"use strict";e.exports=window.ReactDOM},5924:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=(r(5795),r(3331)),o=r(7979);const s=()=>{const{deleteModalState:e,closeDeleteModal:t,handlePluginAction:r,assetsBaseUrl:s,uiI18n:a}=(0,o.D)(),{isOpen:c,plugin:l}=e,u=s||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/icons/`:"";if((0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&t()};return c&&(window.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{window.removeEventListener("keydown",e),document.body.style.overflow=""}},[c,t]),!c||!l)return null;const h="premium"===l.licenseType,d=l.name;return(0,n.createElement)("div",{className:"gv-modal",onClick:e=>{e.target.classList.contains("gv-modal")&&t()}},(0,n.createElement)("div",{className:"gv-modal-content",role:"dialog","aria-labelledby":"id-modal-title","aria-modal":"true",onClick:e=>e.stopPropagation()},(0,n.createElement)("button",{type:"button",className:"gv-modal-close","aria-label":"Close",onClick:t},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}close.svg`})),(0,n.createElement)("div",{className:"gv-modal-body"},(0,n.createElement)("h2",{id:"id-modal-title",className:"gv-modal-title"},(0,i.hw)(a?.deletePlugin,"{0}",d),"?"),(0,n.createElement)("p",null,(0,i.hw)(a?.notifications?.deleteModalConfirm,"{0}",d)),h&&(0,n.createElement)("div",{className:"gv-notice gv-notice-info"},(0,n.createElement)("gv-icon",{class:"gv-notice-icon","aria-hidden":"true",src:`${p}/info.svg`}),(0,n.createElement)("p",{className:"gv-notice-content"},(0,n.createElement)(i.j6,{htmlString:(0,i.lb)((0,i.hw)(a?.notifications?.deleteModalInfo,"{0}",d),'',"")})))),(0,n.createElement)("div",{className:"gv-button-group"},(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-cancel",onClick:t},a?.cancel),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-destructive",onClick:()=>{r("delete",l,"addons"),t()}},a?.deleteButton))))}},6255:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(3699),o=r(9599),s=r(7979);const a=({apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:a,assetsBaseUrl:c})=>(0,n.createElement)(s.t,{apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:a,assetsBaseUrl:c},(0,n.createElement)(o.A,null,(0,n.createElement)(i.A,null)))},6530:()=>{var e=Object.defineProperty,t=(t,r,n)=>(((t,r,n)=>{r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n})(t,"symbol"!=typeof r?r+"":r,n),n);const r={};async function n(e){if(r.hasOwnProperty(e))return r[e];let t;return t=e.startsWith("data:")||!("caches"in self)?fetch(e).then(e=>e.text()):caches.open("gravity").then(async t=>{let r=await t.match(e);return r||(r=await fetch(e),r.ok&&await t.put(e,r.clone())),r.text()}),r[e]=t,t}class i extends HTMLElement{static get observedAttributes(){return["src"]}fetchFlag(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchFlag(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchFlag(r)}}t(i,"TAG_NAME","gv-flag");class o extends HTMLElement{static get observedAttributes(){return["src"]}fetchIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIcon(r)}}t(o,"TAG_NAME","gv-icon");class s extends HTMLElement{static get observedAttributes(){return["src"]}fetchIllustration(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIllustration(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIllustration(r)}}t(s,"TAG_NAME","gv-illustration");class a extends HTMLElement{static get observedAttributes(){return["src"]}fetchIndicator(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIndicator(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIndicator(r)}}t(a,"TAG_NAME","gv-indicator");class c extends HTMLElement{static get observedAttributes(){return["src"]}fetchLoader(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLoader(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLoader(r)}}t(c,"TAG_NAME","gv-loader");class l extends HTMLElement{static get observedAttributes(){return["src"]}fetchLogo(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLogo(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLogo(r)}}t(l,"TAG_NAME","gv-logo");class u extends HTMLElement{static get observedAttributes(){return["src"]}fetchPayIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchPayIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchPayIcon(r)}}t(u,"TAG_NAME","gv-pay-icon");class p extends HTMLElement{static get observedAttributes(){return["src"]}fetchTile(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchTile(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchTile(r)}}function h(e,t){customElements.get(e)||customElements.define(e,t)}t(p,"TAG_NAME","gv-tile"),h(i.TAG_NAME,i),h(o.TAG_NAME,o),h(s.TAG_NAME,s),h(a.TAG_NAME,a),h(c.TAG_NAME,c),h(l.TAG_NAME,l),h(u.TAG_NAME,u),h(p.TAG_NAME,p)},6751:(e,t,r)=>{"use strict";var n;if(r.d(t,{A:()=>Hd}),"undefined"==typeof window){var i={hostname:""};n={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:i,referrer:""},screen:{width:0,height:0},location:i,addEventListener:function(){},removeEventListener:function(){}}}else n=window;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},v(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var k,S=Object.defineProperty,x=function(e,t,r){return function(e,t,r){return t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},C=Object.defineProperty,E=function(e,t,r){return function(e,t,r){return t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},I=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(I||{}),O={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},N={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},A={};function M(e){if(A[e])return A[e];var t=globalThis[e],r=t.prototype,n=e in O?O[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in N?N[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return A[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 l=c[e].prototype;return document.body.removeChild(a),l?A[e]=l:r}catch(e){return r}}var R={};function T(e,t,r){var n,i=e+"."+String(r);if(R[i])return R[i].call(t);var o=M(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(R[i]=s,s.call(t)):t[r]}var L=function(e){return T("Node",e,"childNodes")},P=function(e){return T("Node",e,"parentNode")},D=function(e){return T("Node",e,"parentElement")},F=function(e){return T("Node",e,"textContent")},U=function(e){return e&&"host"in e?T("ShadowRoot",e,"host"):null},B=function(e){return e&&"shadowRoot"in e?T("Element",e,"shadowRoot"):null};function j(e){return e.nodeType===e.ELEMENT_NODE}function $(e){var t=e&&"host"in e&&"mode"in e&&U(e)||null;return Boolean(t&&"shadowRoot"in t&&B(t)===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return V(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function V(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=q(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?te(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?te(i,t):i}var W=function(){function e(){E(this,"idNodeMap",new Map),E(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function H(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&G(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function G(e){return e.toLowerCase()}var K="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?G(t):null}function Y(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,X=/^(?:[a-z+]+:)?\/\//i,Q=/^www\..*/i,ee=/^(data:)([^,]*),(.*)/i;function te(e,t){return(e||"").replace(Z,function(e,r,n,i,o,s){var a,c=n||o||s,l=r||i||"";if(!c)return e;if(X.test(c)||Q.test(c))return"url("+l+c+l+")";if(ee.test(c))return"url("+l+c+l+")";if("/"===c[0])return"url("+l+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+l+")";var u=t.split("/"),p=c.split("/");u.pop();for(var h,d=b(p);!(h=d()).done;){var f=h.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+l+u.join("/")+l+")"})}function re(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ne,ie,oe=1,se=new RegExp("[^a-z0-9-_:]");function ae(){return oe++}var ce=/^[^ \t\n\r\u000c]+/,le=/^[, \t\n\r\u000c]+/,ue=new WeakMap;function pe(e,t){return t&&""!==t.trim()?he(e,t):t}function he(e,t){var r=ue.get(e);if(r||(r=e.createElement("a"),ue.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function de(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?pe(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(le),!(r>=t.length);){var o=n(ce);if(","===o.slice(-1))o=pe(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=pe(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?te(n,he(e)):"object"===t&&"data"===r?pe(e,n):n:pe(e,n):n}function fe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ge(P(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ge(P(e),t,r)}function me(e,t,r,n){var i;if(j(e)){if(!L(i=e).length)return!1}else{if(null===D(e))return!1;i=D(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ge(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 ve(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,l=void 0===c?{}:c,u=t.maskTextFn,p=t.maskInputFn,h=t.dataURLOptions,f=void 0===h?{}:h,g=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,b=void 0!==y&&y,_=t.cssCaptured,w=void 0!==_&&_,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:I.Document,childNodes:[],compatMode:e.compatMode}:{type:I.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,c=t.dataURLOptions,l=void 0===c?{}:c,u=t.inlineImages,p=t.recordCanvas,h=t.keepIframeSrcFn,f=t.newlyAddedElement,g=void 0!==f&&f,m=t.rootId,v=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,t.blockClass,t.blockSelector),y=function(e){if(d(e,HTMLFormElement))return"form";var t=G(e.tagName);return se.test(t)?"div":t}(e),b={},_=e.attributes.length,w=0;w<_;w++){var k=e.attributes[w];fe(y,k.name,k.value)||(b[k.name]=de(n,y,G(k.name),k.value))}if("link"===y&&i){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;S&&(x=q(S)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===y&&e.sheet){var C=q(e.sheet);C&&(e.childNodes.length>1&&(C=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=re(e,r),a=s.length/e.length,c=1;c2&&""===h[0]&&""!==n[c-1].textContent)d=s.indexOf(p,1);else if(1===h.length){if(p=p.substring(0,p.length-1),(h=s.split(p)).length<=1)return i.push(e),i;u=101}else u===l.length-1&&(d=s.indexOf(p));if(h.length>=2&&u>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var g=re(f).length;d=s.indexOf(p,g)}-1===d&&(d=h[0].length)}if(-1!==d){for(var m=Math.floor(d/a);m>0&&m50*n.length)return i.push(e),i;var v=re(e.substring(0,m),r);if(v.length===d){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}v.length",T=M.crossOrigin,L=function(){M.removeEventListener("load",L);try{ne.width=M.naturalWidth,ne.height=M.naturalHeight,ie.drawImage(M,0,0),b.rr_dataURL=ne.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==M.crossOrigin)return M.crossOrigin="anonymous",void(M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L));console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===M.crossOrigin&&(T?b.crossOrigin=T:M.removeAttribute("crossorigin"))};M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L)}if("audio"===y||"video"===y){var P=b;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(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var D=e.getBoundingClientRect(),F=D.width,U=D.height;b={class:b.class,rr_width:F+"px",rr_height:U+"px"}}"iframe"!==y||h(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:I.Element,tagName:y,attributes:b,childNodes:[],isSVG:(B=e,Boolean("svg"===B.tagName||B.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var B}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:b,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=P(e),a=s&&s.tagName,c="",l="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?c="SCRIPT_PLACEHOLDER":o||(c=F(e),l&&c&&(c=te(c,he(t.doc)))),!l&&!u&&c&&r&&(c=n?n(c,D(e)):c.replace(/[\S]/g,"*")),{type:I.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:u,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:I.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:I.Comment,textContent:F(e)||"",rootId:k};default:return!1}}function ye(e){return null==e?"":e.toLowerCase()}function be(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,l=void 0!==c&&c,u=t.inlineStylesheet,p=void 0===u||u,h=t.maskInputOptions,d=void 0===h?{}:h,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,w=void 0!==_&&_,k=t.recordCanvas,S=void 0!==k&&k,x=t.onSerialize,C=t.onIframeLoad,E=t.iframeLoadTimeout,O=void 0===E?5e3:E,N=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,M=void 0===A?5e3:A,R=t.keepIframeSrcFn,T=void 0===R?function(){return!1}:R,D=t.newlyAddedElement,F=void 0!==D&&D,U=t.cssCaptured,q=void 0!==U&&U,V=t.needsMask,W=t.preserveWhiteSpace,H=void 0===W||W;V||(V=me(e,s,a,void 0===V));var G,K=ve(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:F,cssCaptured:q});if(!K)return console.warn(e,"not serialized"),null;G=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===I.Comment)return!0;if(e.type===I.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"===Y(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(K,m)||!H&&K.type===I.Text&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ae();var J=Object.assign(K,{id:G});if(n.add(e,J),-2===G)return null;x&&x(e);var Z=!l;if(J.type===I.Element){Z=Z&&!J.needBlock,delete J.needBlock;var X=B(e);X&&z(X)&&(J.isShadowHost=!0)}if((J.type===I.Document||J.type===I.Element)&&Z){m.headWhitespace&&J.type===I.Element&&"head"===J.tagName&&(H=!1);var Q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:M,keepIframeSrcFn:T,cssCaptured:!1};if(J.type===I.Element&&"textarea"===J.tagName&&void 0!==J.attributes.value);else{J.type===I.Element&&void 0!==J.attributes._cssText&&"string"==typeof J.attributes._cssText&&(Q.cssCaptured=!0);for(var ee,te=b(Array.from(L(e)));!(ee=te()).done;){var re=be(ee.value,Q);re&&J.childNodes.push(re)}}var ne=null;if(j(e)&&(ne=B(e)))for(var ie,oe=b(Array.from(L(ne)));!(ie=oe()).done;){var se=be(ie.value,Q);se&&(z(ne)&&(se.isShadow=!0),J.childNodes.push(se))}}var ce=P(e);return ce&&$(ce)&&z(ce)&&(J.isShadow=!0),J.type===I.Element&&"iframe"===J.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var r=be(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:M,keepIframeSrcFn:T});r&&C(e,r)}},O),J.type===I.Element&&"link"===J.tagName&&"string"==typeof J.attributes.rel&&("stylesheet"===J.attributes.rel||"preload"===J.attributes.rel&&"string"==typeof J.attributes.href&&"css"===Y(J.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(N){var t=be(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:M,keepIframeSrcFn:T});t&&N(e,t)}},M),J}function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return d(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ke={exports:{}},Se=String,xe=function(){return{isColorSupported:!1,reset:Se,bold:Se,dim:Se,italic:Se,underline:Se,inverse:Se,hidden:Se,strikethrough:Se,black:Se,red:Se,green:Se,yellow:Se,blue:Se,magenta:Se,cyan:Se,white:Se,gray:Se,bgBlack:Se,bgRed:Se,bgGreen:Se,bgYellow:Se,bgBlue:Se,bgMagenta:Se,bgCyan:Se,bgWhite:Se}};ke.exports=xe(),ke.exports.createColors=xe;var Ce=ke.exports,Ee=we(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ie=Ce,Oe=Ee,Ne=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ie.isColorSupported),Oe&&e&&(r=Oe(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=Ie.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),Ae=Ne;Ne.default=Ne;var Me={};Me.isClean=Symbol("isClean"),Me.my=Symbol("my");var Re={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Te=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Le=Te;Te.default=Te;var Pe=Le;function De(e,t){new Pe(t).stringify(e)}var Fe=De;De.default=De;var Ue=Me.isClean,Be=Me.my,je=Ae,$e=Le,ze=Fe;function qe(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return qe(e,r)}):("object"===o&&null!==i&&(i=qe(i)),r[n]=i)}return r}var Ve=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[Be]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=qe(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 je(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[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Xe(e),Ye(e))return this.mapFile=e,Ze(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Ke))return Je.fromSourceMap(t).toString();if(d(t,Je))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Qe(Xe(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}(),tt=et;et.default=et;var rt=Ee.SourceMapConsumer,nt=Ee.SourceMapGenerator,it=Ee.fileURLToPath,ot=Ee.pathToFileURL,st=Ee.isAbsolute,at=Ee.resolve,ct=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},lt=Ee,ut=Ae,pt=tt,ht=Symbol("fromOffsetCache"),dt=Boolean(rt&&nt),ft=Boolean(at&&st),gt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ft||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=at(t.from)),ft&&dt){var r=new pt(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new ut(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new ut(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ot&&(i.input.url=ot(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[ht])t=this[ht];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:at(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=st(a.source)?ot(a.source):new URL(a.source,this.map.consumer().sourceRoot||ot(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!it)throw new Error("file: protocol is not available in this PostCSS build");c.file=it(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),Et&&Ct&&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=yt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yt({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new yt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?bt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=bt(wt(r,this.mapOpts.annotation)));var n=_t(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 xt(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(St){var r=St(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ot=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(We),Nt=Ot;Ot.default=Ot;var At,Mt,Rt,Tt,Lt=Me.isClean,Pt=Me.my,Dt=Ge,Ft=Nt;function Ut(e){return e.map(function(e){return e.nodes&&(e.nodes=Ut(e.nodes)),delete e.source,e})}function Bt(e){if(e[Lt]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)Bt(t.value)}var jt=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(We);jt.registerParse=function(e){At=e},jt.registerRule=function(e){Mt=e},jt.registerAtRule=function(e){Rt=e},jt.registerRoot=function(e){Tt=e};var $t=jt;jt.default=jt,jt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Rt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Dt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ft.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tt.prototype),e[Pt]=!0,e.nodes&&e.nodes.forEach(function(e){jt.rebuild(e)})};var zt,qt,Vt=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new zt(new qt,this,e).stringify()},t}($t);Vt.registerLazyResult=function(e){zt=e},Vt.registerProcessor=function(e){qt=e};var Wt=Vt;Vt.default=Vt;var Ht=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}(),Gt=Ht;Ht.default=Ht;var Kt=Gt,Jt=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 Kt(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Yt=Jt;Jt.default=Jt;var Zt="'".charCodeAt(0),Xt='"'.charCodeAt(0),Qt="\\".charCodeAt(0),er="/".charCodeAt(0),tr="\n".charCodeAt(0),rr=" ".charCodeAt(0),nr="\f".charCodeAt(0),ir="\t".charCodeAt(0),or="\r".charCodeAt(0),sr="[".charCodeAt(0),ar="]".charCodeAt(0),cr="(".charCodeAt(0),lr=")".charCodeAt(0),ur="{".charCodeAt(0),pr="}".charCodeAt(0),hr=";".charCodeAt(0),dr="*".charCodeAt(0),fr=":".charCodeAt(0),gr="@".charCodeAt(0),mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,vr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yr=/.[\r\n"'(/\\]/,br=/[\da-f]/i,_r=$t,wr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Sr(new xr,this,e).stringify()},t}(Cr);Er.registerLazyResult=function(e){Sr=e},Er.registerProcessor=function(e){xr=e};var Ir=Er;Er.default=Er,Cr.registerRoot(Er);var Or={comma:function(e){return Or.split(e,[","],!0)},space:function(e){return Or.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},Nr=Or;Or.default=Or;var Ar=$t,Mr=Nr,Rr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return Mr.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}(Ar),Tr=Rr;Rr.default=Rr,Ar.registerRule(Rr);var Lr=Ge,Pr=Nt,Dr=kr,Fr=Ir,Ur=Tr,Br={empty:!0,space:!0},jr=function(){function e(e){this.input=e,this.root=new Fr,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 Dr;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Pr;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case tr:case rr:case ir:case or:case nr:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===rr||r===tr||r===ir||r===or||r===nr);p=["space",h.slice(g,n)],g=n-1;break;case sr:case ar:case ur:case pr:case fr:case hr:case lr:var b=String.fromCharCode(r);p=[b,b,g];break;case cr:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Zt&&u!==Xt&&u!==rr&&u!==tr&&u!==ir&&u!==nr&&u!==or){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||yr.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Zt:case Xt:i=r===Zt?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case gr:mr.lastIndex=g+1,mr.test(h),n=0===mr.lastIndex?h.length-1:mr.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Qt:for(n=g,s=!0;h.charCodeAt(n+1)===Qt;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==er&&r!==rr&&r!==tr&&r!==ir&&r!==or&&r!==nr&&(n+=1,br.test(h.charAt(n)))){for(;br.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===rr&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===er&&h.charCodeAt(g+1)===dr?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(vr.lastIndex=g+1,vr.test(h),n=0===vr.lastIndex?h.length-1:vr.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Lr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ur;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!on(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return on(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Jr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Kr(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(on(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Hr];)n[Hr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(on(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=ui.isColorSupported),pi&&e&&(r=pi(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=ui.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),di=hi;hi.default=hi;var fi={};fi.isClean=Symbol("isClean"),fi.my=Symbol("my");var gi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},mi=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),vi=mi;mi.default=mi;var yi=vi;function bi(e,t){new yi(t).stringify(e)}var _i=bi;bi.default=bi;var wi=fi.isClean,ki=fi.my,Si=di,xi=vi,Ci=_i;function Ei(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ei(e,r)}):("object"===o&&null!==i&&(i=Ei(i)),r[n]=i)}return r}var Ii=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wi]=!1,this[ki]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=Ei(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 Si(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[wi]){this[wi]=!1;for(var e=this;e=e.parent;)e[wi]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Pi(e),Ti(e))return this.mapFile=e,Li(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Mi))return Ri.fromSourceMap(t).toString();if(d(t,Ri))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Di(Pi(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}(),Ui=Fi;Fi.default=Fi;var Bi=li.SourceMapConsumer,ji=li.SourceMapGenerator,$i=li.fileURLToPath,zi=li.pathToFileURL,qi=li.isAbsolute,Vi=li.resolve,Wi=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hi=li,Gi=di,Ki=Ui,Ji=Symbol("fromOffsetCache"),Yi=Boolean(Bi&&ji),Zi=Boolean(Vi&&qi),Xi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Zi||/^\w+:\/\//.test(t.from)||qi(t.from)?this.file=t.from:this.file=Vi(t.from)),Zi&&Yi){var r=new Ki(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new Gi(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new Gi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(zi&&(i.input.url=zi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ji])t=this[Ji];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Vi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=qi(a.source)?zi(a.source):new URL(a.source,this.map.consumer().sourceRoot||zi(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!$i)throw new Error("file: protocol is not available in this PostCSS build");c.file=$i(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),lo&&co&&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=to.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new to({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new to({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ro(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ro(io(r,this.mapOpts.annotation)));var n=no(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 ao(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(so){var r=so(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===oo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),po=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(Oi),ho=po;po.default=po;var fo,go,mo,vo,yo=fi.isClean,bo=fi.my,_o=Ai,wo=ho;function ko(e){return e.map(function(e){return e.nodes&&(e.nodes=ko(e.nodes)),delete e.source,e})}function So(e){if(e[yo]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)So(t.value)}var xo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(Oi);xo.registerParse=function(e){fo=e},xo.registerRule=function(e){go=e},xo.registerAtRule=function(e){mo=e},xo.registerRoot=function(e){vo=e};var Co=xo;xo.default=xo,xo.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,mo.prototype):"rule"===e.type?Object.setPrototypeOf(e,go.prototype):"decl"===e.type?Object.setPrototypeOf(e,_o.prototype):"comment"===e.type?Object.setPrototypeOf(e,wo.prototype):"root"===e.type&&Object.setPrototypeOf(e,vo.prototype),e[bo]=!0,e.nodes&&e.nodes.forEach(function(e){xo.rebuild(e)})};var Eo,Io,Oo=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Eo(new Io,this,e).stringify()},t}(Co);Oo.registerLazyResult=function(e){Eo=e},Oo.registerProcessor=function(e){Io=e};var No=Oo;Oo.default=Oo;var Ao=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}(),Mo=Ao;Ao.default=Ao;var Ro=Mo,To=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 Ro(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Lo=To;To.default=To;var Po="'".charCodeAt(0),Do='"'.charCodeAt(0),Fo="\\".charCodeAt(0),Uo="/".charCodeAt(0),Bo="\n".charCodeAt(0),jo=" ".charCodeAt(0),$o="\f".charCodeAt(0),zo="\t".charCodeAt(0),qo="\r".charCodeAt(0),Vo="[".charCodeAt(0),Wo="]".charCodeAt(0),Ho="(".charCodeAt(0),Go=")".charCodeAt(0),Ko="{".charCodeAt(0),Jo="}".charCodeAt(0),Yo=";".charCodeAt(0),Zo="*".charCodeAt(0),Xo=":".charCodeAt(0),Qo="@".charCodeAt(0),es=/[\t\n\f\r "#'()/;[\\\]{}]/g,ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rs=/.[\r\n"'(/\\]/,ns=/[\da-f]/i,is=Co,os=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new as(new cs,this,e).stringify()},t}(ls);us.registerLazyResult=function(e){as=e},us.registerProcessor=function(e){cs=e};var ps=us;us.default=us,ls.registerRoot(us);var hs={comma:function(e){return hs.split(e,[","],!0)},space:function(e){return hs.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},ds=hs;hs.default=hs;var fs=Co,gs=ds,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return gs.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}(fs),vs=ms;ms.default=ms,fs.registerRule(ms);var ys=Ai,bs=ho,_s=ss,ws=ps,ks=vs,Ss={empty:!0,space:!0},xs=function(){function e(e){this.input=e,this.root=new ws,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 _s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new bs;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case Bo:case jo:case zo:case qo:case $o:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===jo||r===Bo||r===zo||r===qo||r===$o);p=["space",h.slice(g,n)],g=n-1;break;case Vo:case Wo:case Ko:case Jo:case Xo:case Yo:case Go:var b=String.fromCharCode(r);p=[b,b,g];break;case Ho:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Po&&u!==Do&&u!==jo&&u!==Bo&&u!==zo&&u!==$o&&u!==qo){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Fo;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||rs.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Po:case Do:i=r===Po?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Fo;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case Qo:es.lastIndex=g+1,es.test(h),n=0===es.lastIndex?h.length-1:es.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Fo:for(n=g,s=!0;h.charCodeAt(n+1)===Fo;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==Uo&&r!==jo&&r!==Bo&&r!==zo&&r!==qo&&r!==$o&&(n+=1,ns.test(h.charAt(n)))){for(;ns.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===jo&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===Uo&&h.charCodeAt(g+1)===Zo?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(ts.lastIndex=g+1,ts.test(h),n=0===ts.lastIndex?h.length-1:ts.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new ys;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ks;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!zs(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return zs(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ts;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Rs(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(zs(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[As];)n[As]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(zs(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndext?(n&&(clearTimeout(n),n=null),i=c,e.apply(u,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,s)},l))}}function sc(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return sc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ic=new Proxy(ic,{get:function(e,t,r){return"map"===t&&console.error(nc),Reflect.get(e,t,r)}}));var ac=Date.now;function cc(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=Ya(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=Ya(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function lc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Ya(e):null}function hc(e,t,r,n){if(!e)return!1;var i=pc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(ge(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function dc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function fc(e,t){if($(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Ja(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||fc(n,t))}function gc(e){return Boolean(e.changedTouches)}function mc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function vc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function yc(e){return!!e&&(d(e,Fa)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(tc(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ac=function(){return(new Date).getTime()});var bc=function(){function e(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function _c(e){var t,r=null;return"getRootNode"in e&&(null==(t=Qa(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ec(Qa(e))&&(r=ec(Qa(e))),r}function wc(e){var t=e.ownerDocument;return!!t&&(Xa(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=_c(r);)r=t;return r}(e);return Xa(t,r)}(e))}var kc=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(kc||{}),Sc=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Sc||{}),xc=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(xc||{}),Cc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Cc||{}),Ec=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ec||{}),Ic=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Ic||{}),Oc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Oc||{});function Nc(e){return"__ln"in e}var Ac,Mc=function(){function e(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case kc.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:kc.IncrementalSnapshot,data:{source:Sc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case kc.Meta:case kc.Load:case kc.DomContentLoaded:return!1;case kc.Plugin:return t;case kc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case kc.IncrementalSnapshot:switch(t.data.source){case Sc.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 Sc.Drag:case Sc.TouchMove:case Sc.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sc.ViewportResize:return!1;case Sc.MediaInteraction:case Sc.MouseInteraction:case Sc.Scroll:case Sc.CanvasMutation:case Sc.Input:return this.replaceIds(t.data,e,["id"]),t;case Sc.StyleSheetRule:case Sc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sc.Font:return t;case Sc.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Sc.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=b(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Oc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Qc=function(){function e(e){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(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(z(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=$c(u({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(zc(u({},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(ec(e))),r.restoreHandlers.push(Gc({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(Ga(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=tc(this);return o&&wc(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),el="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tl="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rl=0;rl<64;rl++)tl[el.charCodeAt(rl)]=rl;var nl=new Map,il=function(e,t,r){if(e&&(al(e,t)||"object"===(void 0===e?"undefined":m(e)))){var n=function(e,t){var r=nl.get(e);return r||(r=new Map,nl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function ol(e,t,r){return d(e,Array)?e.map(function(e){return ol(e,t,r)}):null===e?e:d(e,Float32Array)||d(e,Float64Array)||d(e,Int32Array)||d(e,Uint32Array)||d(e,Uint8Array)||d(e,Uint16Array)||d(e,Int16Array)||d(e,Int8Array)||d(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:d(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t>2],i+=el[(3&r[t])<<4|r[t+1]>>4],i+=el[(15&r[t+1])<<2|r[t+2]>>6],i+=el[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:d(e,DataView)?{rr_type:e.constructor.name,args:[ol(e.buffer,t,r),e.byteOffset,e.byteLength]}:d(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:d(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:d(e,ImageData)?{rr_type:e.constructor.name,args:[ol(e.data,t,r),e.width,e.height]}:al(e,t)||"object"===(void 0===e?"undefined":m(e))?{rr_type:e.constructor.name,index:il(e,t,r)}:e}var sl=function(e,t,r){return e.map(function(e){return ol(e,t,r)})},al=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return d(e,t[r])}))};function cl(e,t,r,n){var i=[];try{var o=Ga(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),bl=function(){function e(){x(this,"nodeMap",new WeakMap),x(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}(),_l=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var wl=document.createElement("iframe");document.body.appendChild(wl),Array.from=(null==(k=wl.contentWindow)?void 0:k.Array.from)||Array.from,document.body.removeChild(wl)}}catch(e){console.debug("Unable to override Array.from",e)}var kl,Sl,xl=new W;function Cl(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,l=void 0===c?"rr-ignore":c,p=e.ignoreSelector,h=void 0===p?null:p,d=e.maskTextClass,f=void 0===d?"rr-mask":d,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,x=e.maskTextFn,C=e.hooks,E=e.packFn,I=e.sampling,O=void 0===I?{}:I,N=e.dataURLOptions,A=void 0===N?{}:N,M=e.mousemoveWait,R=e.recordDOM,T=void 0===R||R,L=e.recordCanvas,P=void 0!==L&&L,D=e.recordCrossOriginIframes,F=void 0!==D&&D,U=e.recordAfter,B=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,j=e.userTriggeredOnInput,$=void 0!==j&&j,z=e.collectFonts,q=void 0!==z&&z,V=e.inlineImages,H=void 0!==V&&V,G=e.plugins,K=e.keepIframeSrcFn,J=void 0===K?function(){return!1}:K,Y=e.ignoreCSSAttributes,Z=void 0===Y?new Set([]):Y,X=e.errorHandler;Ac=X;var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw new Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==M&&void 0===O.mousemove&&(O.mousemove=M),xl.reset();var te,re=!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!==w?w:{password:!0},ne=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k,headTitleMutations:"all"===k}:k||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ie=0,oe=function(e){for(var t,r=b(G||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return E&&!ee&&(e=E(e)),e};fl=function(e,i){var o,s=e;if(s.timestamp=ac(),!(null==(o=Bc[0])?void 0:o.isFrozen())||s.type===kc.FullSnapshot||s.type===kc.IncrementalSnapshot&&s.data.source===Sc.Mutation||Bc.forEach(function(e){return e.unfreeze()}),Q)null==t||t(oe(s),i);else if(ee){var a={type:"rrweb",event:oe(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===kc.FullSnapshot)te=s,ie=0;else if(s.type===kc.IncrementalSnapshot){if(s.data.source===Sc.Mutation&&s.data.isAttachIframe)return;ie++;var c=n&&ie>=n,l=r&&s.timestamp-te.timestamp>r;(c||l)&&gl(!0)}};for(var se,ae=function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Mutation},e)})},ce=function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Scroll},e)})},le=function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.CanvasMutation},e)})},ue=new yl({mutationCb:ae,adoptedStyleSheetCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.AdoptedStyleSheet},e)})}}),pe=new Xc({mirror:xl,mutationCb:ae,stylesheetManager:ue,recordCrossOriginIframes:F,wrappedEmit:fl}),he=b(G||[]);!(se=he()).done;){var de=se.value;de.getMirror&&de.getMirror({nodeMirror:xl,crossOriginIframeMirror:pe.crossOriginIframeMirror,crossOriginIframeStyleMirror:pe.crossOriginIframeStyleMirror})}var fe=new bl;ml=new vl({recordCanvas:P,mutationCb:le,win:window,blockClass:o,blockSelector:a,mirror:xl,sampling:O.canvas,dataURLOptions:A});var ge=new Qc({mutationCb:ae,scrollCb:ce,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:re,dataURLOptions:A,maskTextFn:x,maskInputFn:S,recordCanvas:P,inlineImages:H,sampling:O,slimDOMOptions:ne,iframeManager:pe,stylesheetManager:ue,canvasManager:ml,keepIframeSrcFn:J,processedNodeManager:fe},mirror:xl});gl=function(e){if(void 0===e&&(e=!1),T){fl({type:kc.Meta,data:{href:window.location.href,width:uc(),height:lc()}},e),ue.reset(),ge.init(),Bc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new W:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,c=r.maskTextSelector,l=r.inlineStylesheet,u=r.inlineImages,p=r.recordCanvas,h=r.maskAllInputs,d=void 0!==h&&h,f=r.slimDOM,g=void 0!==f&&f,m=r.keepIframeSrcFn;return be(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===c?null:c,skipChild:!1,inlineStylesheet:void 0===l||l,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==u&&u,recordCanvas:void 0!==p&&p,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===m?function(){return!1}:m,newlyAddedElement:!1})}(document,{mirror:xl,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:re,maskTextFn:x,maskInputFn:S,slimDOM:ne,dataURLOptions:A,recordCanvas:P,inlineImages:H,onSerialize:function(e){mc(e,xl)&&pe.addIframe(e),vc(e,xl)&&ue.trackLinkElement(e),yc(e)&&ge.addShadowRoot(tc(e),document)},onIframeLoad:function(e,t){pe.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ue.attachLinkElement(e,t)},keepIframeSrcFn:J});if(!t)return console.warn("Failed to snapshot the document");fl({type:kc.FullSnapshot,data:{node:t,initialOffset:cc(window)}},e),Bc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,xl.getId(document))}};try{var me=[],ve=function(e){var t;return Uc(Kc)({mutationCb:ae,mousemoveCb:function(e,t){return fl({type:kc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.MouseInteraction},e)})},scrollCb:ce,viewportResizeCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.ViewportResize},e)})},inputCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Input},e)})},mediaInteractionCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.MediaInteraction},e)})},styleSheetRuleCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.StyleSheetRule},e)})},styleDeclarationCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.StyleDeclaration},e)})},canvasMutationCb:le,fontCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Font},e)})},selectionCb:function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Selection},e)})},customElementCb:function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.CustomElement},e)})},blockClass:o,ignoreClass:l,ignoreSelector:h,maskTextClass:f,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:y,sampling:O,recordDOM:T,recordCanvas:P,inlineImages:H,userTriggeredOnInput:$,collectFonts:q,doc:e,maskInputFn:S,maskTextFn:x,keepIframeSrcFn:J,blockSelector:a,slimDOMOptions:ne,dataURLOptions:A,mirror:xl,iframeManager:pe,stylesheetManager:ue,shadowDomManager:ge,processedNodeManager:fe,canvasManager:ml,ignoreCSSAttributes:Z,plugins:(null==(t=null==G?void 0:G.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return fl({type:kc.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};pe.addLoadListener(function(e){try{me.push(ve(e.contentDocument))}catch(e){console.warn(e)}});var ye=function(){gl(),me.push(ve(document)),_l=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(me.push(rc("DOMContentLoaded",function(){fl({type:kc.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&ye()})),me.push(rc("load",function(){fl({type:kc.Load,data:{}}),"load"===B&&ye()},window))),function(){me.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),fe.destroy(),_l=!1,Ac=void 0}}catch(e){console.warn(e)}}Cl.addCustomEvent=function(e,t){if(!_l)throw new Error("please add custom event after start recording");fl({type:kc.Custom,data:{tag:e,payload:t}})},Cl.freezePage=function(){Bc.forEach(function(e){return e.freeze()})},Cl.takeFullSnapshot=function(e){if(!_l)throw new Error("please take full snapshot after start recording");gl(e)},Cl.mirror=xl,(Sl=kl||(kl={}))[Sl.NotStarted=0]="NotStarted",Sl[Sl.Running=1]="Running",Sl[Sl.Stopped=2]="Stopped",Cl.addCustomEvent,Cl.freezePage,Cl.takeFullSnapshot;var El=Object.defineProperty,Il=function(e,t,r){return function(e,t,r){return t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},Ol=function(){function e(e){Il(this,"fileName"),Il(this,"functionName"),Il(this,"lineNumber"),Il(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}(),Nl=/(^|@)\S+:\d+/,Al=/^\s*at .*(\S+:\d+|\(native\))/m,Ml=/^(eval@)?(\[native code])?$/,Rl={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Al)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Al)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new Ol({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Ml)},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 Ol({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ol({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ol({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Tl(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Ll(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pl(e,t){if(0===t)return!0;for(var r,n=b(Object.keys(e));!(r=n()).done;){var i=r.value;if(Ll(e[i])&&Pl(e[i],t-1))return!0}return!1}function Dl(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(Ll(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Ll(s)&&Pl(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":m(t)))return t.toString()+"n";if(d(t,Event)){var a={};for(var c in t){var l=t[c];Array.isArray(l)?a[c]=Tl(l.length?l[0]:null):a[c]=l}return a}return d(t,Node)?d(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:d(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var Fl={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 Ul(e,t,r){var n,i=r?Object.assign({},Fl,r):Fl,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var l=function(t){var r=t.message,n=t.error,o=Rl.parse(n).map(function(e){return e.toString()}),s=[Dl(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",l),c.push(function(){t.removeEventListener("error",l)});var u=function(t){var r,n;d(t.reason,Error)?n=[Dl("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Dl("Uncaught (in promise)",i.stringifyOptions),Dl(t.reason,i.stringifyOptions)]);var o=Rl.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",u),c.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var p,h=b(i.level);!(p=h()).done;){var f=p.value;c.push(g(n,f))}return function(){c.forEach(function(e){return e()})};function g(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var c=t[o],l=function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),l=0;l0&&Wl(Gl,r))}catch(e){Yl.call(new Xl(r),e)}}}function Yl(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Wl(Gl,t))}function Zl(e,t,r,n){for(var i=0;i0&&(t[r]=e)}),t},Tu.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Tu.isArray(e)?(r=[],Tu.each(e,function(e){r.push(Tu.truncate(e,t))})):Tu.isObject(e)?(r={},Tu.each(e,function(e,n){r[n]=Tu.truncate(e,t)})):r=e,r},Tu.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,l=i,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",u=[],"[object Array]"===bu.apply(p)){for(c=p.length,o=0;o="0"&&iu<="9";)t+=iu,lu();if("."===iu)for(t+=".";lu()&&iu>="0"&&iu<="9";)t+=iu;if("e"===iu||"E"===iu)for(t+=iu,lu(),"-"!==iu&&"+"!==iu||(t+=iu,lu());iu>="0"&&iu<="9";)t+=iu,lu();if(e=+t,isFinite(e))return e;cu("Bad number")},pu=function(){var e,t,r,n="";if('"'===iu)for(;lu();){if('"'===iu)return lu(),n;if("\\"===iu)if(lu(),"u"===iu){for(r=0,t=0;t<4&&(e=parseInt(lu(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof au[iu])break;n+=au[iu]}else n+=iu}cu("Bad string")},hu=function(){for(;iu&&iu<=" ";)lu()},su=function(){switch(hu(),iu){case"{":return function(){var e,t={};if("{"===iu){if(lu("{"),hu(),"}"===iu)return lu("}"),t;for(;iu;){if(e=pu(),hu(),lu(":"),Object.hasOwnProperty.call(t,e)&&cu('Duplicate key "'+e+'"'),t[e]=su(),hu(),"}"===iu)return lu("}"),t;lu(","),hu()}}cu("Bad object")}();case"[":return function(){var e=[];if("["===iu){if(lu("["),hu(),"]"===iu)return lu("]"),e;for(;iu;){if(e.push(su()),hu(),"]"===iu)return lu("]"),e;lu(","),hu()}}cu("Bad array")}();case'"':return pu();case"-":return uu();default:return iu>="0"&&iu<="9"?uu():function(){switch(iu){case"t":return lu("t"),lu("r"),lu("u"),lu("e"),!0;case"f":return lu("f"),lu("a"),lu("l"),lu("s"),lu("e"),!1;case"n":return lu("n"),lu("u"),lu("l"),lu("l"),null}cu('Unexpected "'+iu+'"')}()}},function(e){var t;return ou=e,nu=0,iu=" ",t=su(),hu(),iu&&cu("Syntax error"),t}),Tu.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=Tu.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Tu.UUID=function(){try{return n.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",Tu.map(e,function(e){return e.toString(16)}).join("")}};var Bu=["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"];Tu.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(t){if(!Su.getElementsByTagName)return[];var n,i,o,s,a,c,l,u,p,h,d=t.split(" "),f=[Su];for(c=0;c-1){o=(i=n.split("#"))[0];var g=i[1],m=Su.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];f=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,l=0;l-1};break;default:b=function(e){return e.getAttribute(_)}}for(f=[],h=0,l=0;l=3?t[2]:""},currentUrl:function(){return n.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Tu.extend(Tu.strip_empty_properties({$os:Tu.info.os(),$browser:Tu.info.browser(Eu,ku.vendor,xu),$referrer:Su.referrer,$referring_domain:Tu.info.referringDomain(Su.referrer),$device:Tu.info.device(Eu)}),{$current_url:Tu.info.currentUrl(),$browser_version:Tu.info.browserVersion(Eu,ku.vendor,xu),$screen_height:Cu.height,$screen_width:Cu.width,mp_lib:"web",$lib_version:du.LIB_VERSION,$insert_id:Ku(),time:Tu.timestamp()/1e3},Tu.strip_empty_properties(e))},people_properties:function(){return Tu.extend(Tu.strip_empty_properties({$os:Tu.info.os(),$browser:Tu.info.browser(Eu,ku.vendor,xu)}),{$browser_version:Tu.info.browserVersion(Eu,ku.vendor,xu)})},mpPageViewProperties:function(){return Tu.strip_empty_properties({current_page_title:Su.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var Ku=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},Ju=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Yu=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Zu=function(e){var t=Yu,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Ju);var i=e.match(t);return i?i[0]:""},Xu=function(){},Qu=null,ep=null;"undefined"!=typeof JSON&&(Qu=JSON.stringify,ep=JSON.parse),Qu=Qu||Tu.JSONEncode,ep=ep||Tu.JSONDecode,Tu.info=Tu.info,Tu.info.browser=Tu.info.browser,Tu.info.browserVersion=Tu.info.browserVersion,Tu.info.device=Tu.info.device,Tu.info.properties=Tu.info.properties,Tu.isBlockedUA=Tu.isBlockedUA,Tu.isEmptyObject=Tu.isEmptyObject,Tu.isObject=Tu.isObject,Tu.JSONDecode=Tu.JSONDecode,Tu.JSONEncode=Tu.JSONEncode,Tu.toArray=Tu.toArray,Tu.NPO=eu;var tp="mixpanelRecordingEvents",rp="mixpanelRecordingRegistry",np=[tp,rp],ip=function(e){this.dbPromise=null,this.storeName=e};function op(e,t){mp(!0,e,t)}function sp(e,t){mp(!1,e,t)}function ap(e,t){return"1"===gp(e,t)}function cp(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n,r=t.navigator||{},i=!1;return Tu.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){Tu.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return Lu.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"===gp(e,t);return r&&Lu.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function lp(e){return vp(e,function(e){return this.get_config(e)})}function up(e){return vp(e,function(e){return this._get_config(e)})}function pp(e){return vp(e,function(e){return this._get_config(e)})}function hp(e,t){dp(t=t||{}).remove(fp(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function dp(e){return"localStorage"===(e=e||{}).persistenceType?Tu.localStorage:Tu.cookie}function fp(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function gp(e,t){return dp(t).get(fp(e,t))}function mp(e,t,r){Tu.isString(t)&&t.length?(dp(r=r||{}).set(fp(t,r),e?1:0,Tu.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})):Lu.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function vp(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=cp(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Lu.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)}}ip.prototype._openDb=function(){return new tu(function(e,t){var r=n.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;np.forEach(function(e){t.createObjectStore(e)})}})},ip.prototype.init=function(){return n.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n.IDBDatabase?tu.resolve():tu.reject(e)})):tu.reject("indexedDB is not supported in this browser")},ip.prototype.isInitialized=function(){return!!this.dbPromise},ip.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new tu(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):tu.reject(e)}.bind(this))},ip.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},ip.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},ip.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},ip.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var yp=Du("lock"),bp=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||tu};bp.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Tu.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",h=s+":Z",d=function(e){if((new Date).getTime()-o>c)return yp.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),l.removeItem(h),l.removeItem(p),void m();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=l.getItem(p);return!(e&&e!==i||(l.setItem(p,i),l.getItem(p)!==i&&(zu(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},m=function(){l.setItem(u,i),f(g,function(){l.getItem(u)!==i?d(function(){l.getItem(p)===i?f(function(){return!l.getItem(h)},v):m()}):v()})},v=function(){l.setItem(h,"1");var t=function(){l.removeItem(h),l.getItem(p)===i&&l.removeItem(p),l.getItem(u)===i&&l.removeItem(u)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!zu(l,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var _p=function(e){this.storage=e||n.localStorage};_p.prototype.init=function(){return tu.resolve()},_p.prototype.isInitialized=function(){return!0},_p.prototype.setItem=function(e,t){return new tu(Tu.bind(function(r,n){try{this.storage.setItem(e,Qu(t))}catch(e){n(e)}r()},this))},_p.prototype.getItem=function(e){return new tu(Tu.bind(function(t,r){var n;try{n=ep(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},_p.prototype.removeItem=function(e){return new tu(Tu.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var wp=Du("batch"),kp=function(e,t){var r,i,o,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new _p,this.lock=new bp(e,{storage:t.sharedLockStorage||n.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Tu.bind(wp.error,wp),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=Tu.bind(this._enqueuePersisted,this),i=t.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new tu(function(e){setTimeout(function(){var n=r.apply(t,[s]);o=null,s=[],e(n)},i)})),o}):this.enqueuePersisted=Tu.bind(function(e){return this._enqueuePersisted([e])},this)};kp.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?tu.resolve():this.queueStorage.init().then(Tu.bind(function(){this.initialized=!0},this)).catch(Tu.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},kp.prototype.enqueue=function(e,t){var r={id:Ku(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),tu.resolve(!0))},kp.prototype._enqueuePersisted=function(e){var t=Tu.bind(function(){return this.ensureInit().then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Tu.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Tu.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Tu.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},kp.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):tu.resolve(t)};var Sp=function(e,t){var r=[];return Tu.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};kp.prototype.removeItemsByID=function(e){var t={};if(Tu.each(e,function(e){t[e]=!0}),this.memQueue=Sp(this.memQueue,t),this.usePersistence){var r=Tu.bind(function(){return this.ensureInit().then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(e){return e=Sp(e,t),this.saveToStorage(e)},this)).then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}c[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),tu.resolve();var l=Tu.bind(function(){return this.queue.removeItemsByID(Tu.map(o,function(e){return e.id})).then(Tu.bind(function(e){return Tu.each(o,Tu.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:o.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(),tu.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),tu.resolve())},this))},this),u=Tu.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(Tu.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Tu.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(p=n.navigator.onLine,!Tu.isUndefined(p)&&!p)||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),tu.resolve()}if(Tu.isObject(s)&&413===s.httpStatusCode){if(o.length>1){var u=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,u,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),tu.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var p},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),Cp.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,p).then(u)},this)).catch(Tu.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Ep.prototype.reportError=function(e,t){if(Cp.error.apply(Cp.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Cp.error(t)}};var Ip=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Op=Du("recorder"),Np=n.CompressionStream,Ap={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Mp=new Set([Sc.MouseMove,Sc.MouseInteraction,Sc.Scroll,Sc.ViewportResize,Sc.Input,Sc.TouchMove,Sc.MediaInteraction,Sc.Drag,Sc.Selection]),Rp=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Xu,this._onMaxLengthReached=e.onMaxLengthReached||Xu,this._onBatchSent=e.onBatchSent||Xu,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=fu,this.recordMinMs=0;var t=zu(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ip(tp),this.batcher=new Ep(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Ap,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Rp.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},Rp.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()fu&&(this.recordMaxMs=fu,Op.critical("record_max_ms cannot be greater than "+fu+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Tu.info.currentUrl(),this.replayStartUrl=Tu.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r,n=this.getConfig("record_block_selector");""!==n&&null!==n||(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(r={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:Ul,options:r})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else Op.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Rp.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Rp.prototype.isRrwebStopped=function(){return null===this._stopRecording},Rp.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)},Rp.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}},Rp.deserialize=function(e,t){return new Rp(Tu.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}))},Rp.prototype._sendRequest=function(e,t,r,i){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Tu.info.currentUrl()),this._onBatchSent(),i({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");n.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){o(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},Rp.prototype._flushEvents=lp(function(e,t,r){var i=e.length;if(i>0){for(var o=this.replayId,s=1/0,a=-1/0,c=!1,l=0;l=16.4&&o<16.6)}(Eu,ku.vendor,xu)){var d=new Blob([h],{type:"application/json"}).stream().pipeThrough(new Np("gzip"));new Response(d).blob().then(function(e){p.format="gzip",this._sendRequest(o,p,e,r)}.bind(this))}else p.format="body",this._sendRequest(o,p,h,r)}}),Rp.prototype.reportError=function(e,t){Op.error.apply(Op.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Op.error(t)}},Rp.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Rp.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Op.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e};var Tp=function(e){this.idb=new ip(rp),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Tp.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Tp.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Tp.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return tu.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."),tu.resolve())},Tp.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 Ip(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):tu.resolve(null)},Tp.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Tp.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))},Tp.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):tu.resolve()},Tp.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 Ip(e)}).map(function(e){return Rp.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 tu.all(t)}.bind(this)).catch(this.handleError.bind(this)):tu.resolve([])};var Lp=Du("recorder"),Pp=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Cl,this.sharedLockStorage=r,this.recordingRegistry=new Tp({mixpanelInstance:this.mixpanelInstance,errorReporter:Lp.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Pp.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Lp.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Lp.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:Tu.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Rp.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Rp(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Lp.log("Recording already in progress, skipping startRecording.")},Pp.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))},Pp.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Pp.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return tu.resolve()},Pp.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),tu.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Lp.log("No resumable recording found."),null)}.bind(this))},Pp.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Pp.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Pp.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n.__mp_recorder=Pp;var Dp="change",Fp="click",Up="hashchange",Bp="load",jp="mp_locationchange",$p="popstate",zp="scrollend",qp="scroll",Vp="submit",Wp="visibilitychange",Hp=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Gp=["mp-include"],Kp=["mp-no-track"],Jp=Kp.concat(["mp-sensitive"]),Yp=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Zp={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},Xp={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},Qp={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},eh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],th=Du("autocapture");function rh(e){for(var t={},r=nh(e).split(" "),n=0;n0?t[0]:e.target||e.srcElement}function bh(){this.clicks=[]}function _h(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}bh.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 o=yh(e);if(!o||mh(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&s-l.timestamp=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},_h.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return yh(e)},_h.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=vh(e),r=0;r=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Ch.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Ch.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Ch.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Ch.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Ch.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;wh.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}})}),Sh.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),kh.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,xh)}catch(e){th.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new _h(function(){e.recordChangeEvent()},xh),this.shadowDOMObserver.start()}catch(e){th.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Ch.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;ethis.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Su.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,n.addEventListener(e.eventType,this.listenerScrollDepth)}},Zh.prototype.initClickTracking=function(){n.removeEventListener(Fp,this.listenerClick),(this.getConfig(Uh)||this.mp.get_config("record_heatmap_data"))&&(th.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Uh)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Kh)}.bind(this),n.addEventListener(Fp,this.listenerClick))},Zh.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(Bh)||this.mp.get_config("record_heatmap_data")?(th.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Ch(function(e){this.trackDomEvent(e,Jh)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Bh);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),n.addEventListener(Fp,this.listenerDeadClick))):this.stopDeadClickTracking()},Zh.prototype.initInputTracking=function(){n.removeEventListener(Dp,this.listenerChange),this.getConfig(jh)&&(th.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(jh)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),n.addEventListener(Dp,this.listenerChange))},Zh.prototype.initPageviewTracking=function(){if(n.removeEventListener(jp,this.listenerLocationchange),this.pageviewTrackingConfig()){th.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Gh)),t&&(e=Tu.info.currentUrl()),this.listenerLocationchange=Fu(function(){if(!this.currentUrlBlocked()){var t=Tu.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===Ih?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(Gh)&&(e=t),n&&(this.lastScrollCheckpoint=0,th.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),n.addEventListener(jp,this.listenerLocationchange)}},Zh.prototype.initRageClickTracking=function(){n.removeEventListener(Fp,this.listenerRageClick),(this._getClickTrackingConfig(zh)||this.mp.get_config("record_heatmap_data"))&&(th.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new bh),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(zh);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Yh))}.bind(this),n.addEventListener(Fp,this.listenerRageClick))},Zh.prototype.initScrollTracking=function(){if(n.removeEventListener(zp,this.listenerScroll),n.removeEventListener(qp,this.listenerScroll),this.getConfig(qh)){th.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=fh(function(){if(this.getConfig(qh)&&!this.currentUrlBlocked()){var e=this.getConfig(Dh),t=(this.getConfig(Fh)||[]).slice().sort(function(e,t){return e-t}),r=n.scrollY,i=Tu.extend({$scroll_top:r},Gh);try{var o=Su.body.scrollHeight,s=Math.round(r/(o-n.innerHeight)*100);if(i.$scroll_height=o,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a=c&&this.lastScrollCheckpoint=0;p--)c=this._mixpanel.persistence.load_queue(ud),l=c.pop(),a._mixpanel.persistence.save(),Tu.isEmptyObject(l)||a.append(l,u);var h=this._mixpanel.persistence.load_queue(hd);if(!Tu.isUndefined(h)&&Tu.isArray(h)&&h.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(hd,d),Tu.isUndefined(s)||s(e,t)},g=h.length-1;g>=0;g--)h=this._mixpanel.persistence.load_queue(hd),d=h.pop(),a._mixpanel.persistence.save(),Tu.isEmptyObject(d)||a.remove(d,f)},gd.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},gd.prototype.set=gd.prototype.set,gd.prototype.set_once=gd.prototype.set_once,gd.prototype.unset=gd.prototype.unset,gd.prototype.increment=gd.prototype.increment,gd.prototype.append=gd.prototype.append,gd.prototype.remove=gd.prototype.remove,gd.prototype.union=gd.prototype.union,gd.prototype.track_charge=gd.prototype.track_charge,gd.prototype.clear_charges=gd.prototype.clear_charges,gd.prototype.delete_user=gd.prototype.delete_user,gd.prototype.toString=gd.prototype.toString;var md,vd="__mps",yd="__mpso",bd="__mpus",_d="__mpa",wd="__mpap",kd="__mpr",Sd="__mpu",xd="$people_distinct_id",Cd="__alias",Ed="__timers",Id=[vd,yd,bd,_d,wd,kd,Sd,xd,Cd,Ed],Od=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&&(Lu.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Tu.localStorage.is_supported()?this.storage=Tu.localStorage:this.storage=Tu.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Od.prototype.properties=function(){var e={};return this.load(),Tu.each(this.props,function(t,r){Tu.include(Id,r)||(e[r]=t)}),e},Od.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Tu.extend({},e))}},Od.prototype.upgrade=function(){var e,t;this.storage===Tu.localStorage?(e=Tu.cookie.parse(this.name),Tu.cookie.remove(this.name),Tu.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Tu.cookie&&(t=Tu.localStorage.parse(this.name),Tu.localStorage.remove(this.name),t&&this.register_once(t))},Od.prototype.save=function(){this.disabled||this.storage.set(this.name,Qu(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Od.prototype.load_prop=function(e){return this.load(),this.props[e]},Od.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Od.prototype.clear=function(){this.remove(),this.props={}},Od.prototype.register_once=function(e,t,r){return!!Tu.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Tu.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},Od.prototype.register=function(e,t){return!!Tu.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Tu.extend(this.props,e),this.save(),!0)},Od.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Od.prototype.update_search_keyword=function(e){this.register(Tu.info.searchInfo(e))},Od.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Tu.info.referringDomain(e)||"$direct"},"")},Od.prototype.get_referrer_info=function(){return Tu.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Od.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)},Od.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Od.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Od.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Od.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Od.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Od.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Od.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(sd),o=this._get_or_create_queue(ad),s=this._get_or_create_queue(cd),a=this._get_or_create_queue(ld),c=this._get_or_create_queue(pd),l=this._get_or_create_queue(hd,[]),u=this._get_or_create_queue(ud,[]);r===vd?(Tu.extend(i,n),this._pop_from_people_queue(ld,n),this._pop_from_people_queue(pd,n),this._pop_from_people_queue(cd,n)):r===yd?(Tu.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(cd,n)):r===bd?Tu.each(n,function(e){Tu.each([i,o,a,c],function(t){e in t&&delete t[e]}),Tu.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):r===_d?(Tu.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(cd,n)):r===Sd?(Tu.each(n,function(e,t){Tu.isArray(e)&&(t in c||(c[t]=[]),Tu.each(e,function(e){Tu.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(cd,n)):r===kd?(l.push(n),this._pop_from_people_queue(ud,n)):r===wd&&(u.push(n),this._pop_from_people_queue(cd,n)),Lu.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Lu.log(t),this.save()},Od.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Tu.isUndefined(r)||Tu.each(t,function(t,n){e===ud||e===hd?Tu.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Od.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Od.prototype._get_queue_key=function(e){return e===sd?vd:e===ad?yd:e===cd?bd:e===ld?_d:e===ud?wd:e===hd?kd:e===pd?Sd:void Lu.error("Invalid queue:",e)},Od.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Tu.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Od.prototype.set_event_timer=function(e,t){var r=this.load_prop(Ed)||{};r[e]=t,this.props[Ed]=r,this.save()},Od.prototype.remove_event_timer=function(e){var t=(this.load_prop(Ed)||{})[e];return Tu.isUndefined(t)||(delete this.props[Ed][e],this.save()),t};var Nd,Ad=function(e,t){throw new Error(e+" not available in this build.")},Md=function(e){return e},Rd="mixpanel",Td="base64",Ld="$device:",Pd=n.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Dd=!Pd&&-1===Eu.indexOf("MSIE")&&-1===Eu.indexOf("Mozilla"),Fd=null;ku.sendBeacon&&(Fd=function(){return ku.sendBeacon.apply(ku,arguments)});var Ud={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},Bd={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ud,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Td,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Xu,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Xu,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:fu,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},jd=!1,$d=function(){},zd=function(e,t,r){var n,i=r===Rd?Nd:Nd[r];if(i&&0===md)n=i;else{if(i&&!Tu.isArray(i))return void Lu.error("You have already initialized "+r);n=new $d}if(n._cached_groups={},n._init(e,t,r),n.people=new gd,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=Tu.info.campaignParams(null),s={},a=!1;Tu.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return du.DEBUG=du.DEBUG||n.get_config("debug"),!Tu.isUndefined(i)&&Tu.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};$d.prototype.init=function(e,t,r){if(Tu.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Rd){var n=zd(e,t,r);return Nd[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},$d.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||Bd.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config(Tu.extend({},Bd,i,t,{name:r,token:e,callback_fn:(r===Rd?r:Rd+"."+r)+"._jsc"})),this._jsc=Xu,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(Tu.localStorage.is_supported(!0)&&Pd){if(this.init_batchers(),Fd&&n.addEventListener){var o=Tu.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n.addEventListener("pagehide",function(e){e.persisted&&o()}),n.addEventListener("visibilitychange",function(){"hidden"===Su.visibilityState&&o()})}}else this._batch_requests=!1,Lu.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Tu.each(this.get_batcher_configs(),function(e){Lu.log("Clearing batch queue "+e.queue_key),Tu.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Od(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Tu.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ld+s,$device_id:s},""),this.flags=new rd({getFullApiRoute:Tu.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Tu.bind(this.get_config,this),setConfigFunc:Tu.bind(this.set_config,this),getPropertyFunc:Tu.bind(this.get_property,this),trackingFunc:Tu.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Zh(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},$d.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Lu.log("Tab ID initialization skipped due to disable_persistence config");else if(Tu.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;!Tu.sessionStorage.get(r)&&Tu.sessionStorage.get(t)||Tu.sessionStorage.set(t,"$tab-"+Tu.UUID()),Tu.sessionStorage.set(r,"1"),this.tab_id=Tu.sessionStorage.get(t),n.addEventListener("beforeunload",function(){Tu.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.")},$d.prototype.get_tab_id=function(){return this.tab_id||null},$d.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Lu.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new ip(rp),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Lu.critical("Browser does not support MutationObserver; skipping session recording")}),$d.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},$d.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},$d.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},$d.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},$d.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},$d.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},$d.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Tu.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},$d.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},$d.prototype.__get_recorder=function(){return this._recorder},$d.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Tu.info.campaignParams(null);Tu.each(e,function(e,t){this.unregister(t)}.bind(this))}},$d.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Su.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Tu.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Su.referrer)},$d.prototype._dom_loaded=function(){Tu.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Tu.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},$d.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!jd)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},$d.prototype._prepare_callback=function(e,t){if(Tu.isUndefined(e))return null;if(Pd)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},$d.prototype._send_request=function(e,t,r,n){var i=!0;if(Dd)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!Tu.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Tu.extend(o,r||{}),Pd||(r.method="GET");var a="POST"===r.method,c=Fd&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Pd||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),Tu.extend(t,this.get_config("api_extra_query_params")),e+="?"+Tu.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Su.createElement("img");p.src=e,Su.body.appendChild(p)}else if(c){try{i=Fd(e,s)}catch(e){u.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){u.report_error(e)}}else if(Pd)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),Tu.each(d,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var f=(new Date).getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var e;if(4===h.readyState)if(200===h.status){if(n)if(l){var t;try{t=Tu.JSONDecode(h.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=h.responseText}n(t)}else n(Number(h.responseText))}else if(e=h.timeout&&!h.status&&(new Date).getTime()-f>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(e),n)if(l){var i=h.responseHeaders||{};n({status:0,httpStatusCode:h.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},h.send(s)}catch(e){u.report_error(e),i=!1}else{var g=Su.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Su.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},$d.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Tu.each(e,function(e){e&&(t=e[0],Tu.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Tu.isArray(e)&&"alias"===t?r.push(e):Tu.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){Tu.each(e,function(e){if(Tu.isArray(e[0])){var r=t;Tu.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},$d.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},$d.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},$d.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Tu.bind(function(e){return new Ep(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Tu.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:Tu.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:Tu.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},$d.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Tu.each(this.request_batchers,function(e){e.start()}))},$d.prototype.stop_batch_senders=function(){this._batch_requests=!1,Tu.each(this.request_batchers,function(e){e.stop(),e.clear()})},$d.prototype.push=function(e){this._execute_array([e])},$d.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},$d.prototype._encode_data_for_request=function(e){var t=Qu(e);return this.get_config("api_payload_format")===Td&&(t=Tu.base64Encode(t)),{data:t}},$d.prototype._track_or_batch=function(e,t){var r=Tu.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Xu;var a=!0,c=Tu.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Lu.log("MIXPANEL REQUEST:"),Lu.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},$d.prototype.track=lp(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=Xu),Tu.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Tu.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!Tu.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?Tu.info.marketingParams():{};t=Tu.extend({},Tu.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");Tu.isArray(l)?Tu.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,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)}n(0)}}),$d.prototype.set_group=lp(function(e,t,r){Tu.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),$d.prototype.add_group=lp(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),$d.prototype.remove_group=lp(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),$d.prototype.track_with_groups=lp(function(e,t,r,n){var i=Tu.extend({},t||{});return Tu.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),$d.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},$d.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},$d.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new fd)._init(this,e,t),this._cached_groups[r]=n),n},$d.prototype.track_pageview=lp(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Tu.extend(Tu.info.mpPageViewProperties(),Tu.info.campaignParams(),Tu.info.clickParams()),i=Tu.extend({},n,e);return this.track(r,i)}),$d.prototype.track_links=function(){return this._track_dom.call(this,id,arguments)},$d.prototype.track_forms=function(){return this._track_dom.call(this,od,arguments)},$d.prototype.time_event=function(e){Tu.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 qd={persistent:!0},Vd=function(e){var t;return t=Tu.isObject(e)?e:Tu.isUndefined(e)?{}:{days:e},Tu.extend({},qd,t)};$d.prototype.register=function(e,t){var r=Vd(t);r.persistent?this.persistence.register(e,r.days):Tu.extend(this.unpersisted_superprops,e)},$d.prototype.register_once=function(e,t,r){var n=Vd(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),Tu.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},$d.prototype.unregister=function(e,t){(t=Vd(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},$d.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},$d.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Ld))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(Cd)&&(this.unregister(Cd),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},$d.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Tu.UUID();this.register_once({distinct_id:Ld+e,$device_id:e},""),this._check_and_start_session_recording()},$d.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},$d.prototype.alias=function(e,t){if(e===this.get_property(xd))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Tu.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Cd,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},$d.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},$d.prototype.set_config=function(e){Tu.isObject(e)&&(Tu.extend(this.config,e),e.batch_size&&Tu.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),du.DEBUG=du.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},$d.prototype.get_config=function(e){return this.config[e]},$d.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Md).apply(this,yu.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},$d.prototype.get_property=function(e){return this.persistence.load_prop([e])},$d.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},$d.prototype.toString=function(){var e=this.get_config("name");return e!==Rd&&(e=Rd+"."+e),e},$d.prototype._event_is_disabled=function(e){return Tu.isBlockedUA(Eu)||this._flags.disable_all_events||Tu.include(this.__disabled_events,e)},$d.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Tu.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")&&!Tu.cookie.get("mp_optout")||(Tu.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},$d.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},$d.prototype._gdpr_call_func=function(e,t){return t=Tu.extend({track:Tu.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),Tu.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},$d.prototype.opt_in_tracking=function(e){e=Tu.extend({enable_persistence:!0},e),this._gdpr_call_func(op,e),this._gdpr_update_persistence(e)},$d.prototype.opt_out_tracking=function(e){(e=Tu.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(sp,e),this._gdpr_update_persistence(e)},$d.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ap,e)},$d.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(cp,e)},$d.prototype.clear_opt_in_out_tracking=function(e){e=Tu.extend({enable_persistence:!0},e),this._gdpr_call_func(hp,e),this._gdpr_update_persistence(e)},$d.prototype.report_error=function(e,t){Lu.error.apply(Lu.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Lu.error(t)}},$d.prototype.init=$d.prototype.init,$d.prototype.reset=$d.prototype.reset,$d.prototype.disable=$d.prototype.disable,$d.prototype.time_event=$d.prototype.time_event,$d.prototype.track=$d.prototype.track,$d.prototype.track_links=$d.prototype.track_links,$d.prototype.track_forms=$d.prototype.track_forms,$d.prototype.track_pageview=$d.prototype.track_pageview,$d.prototype.register=$d.prototype.register,$d.prototype.register_once=$d.prototype.register_once,$d.prototype.unregister=$d.prototype.unregister,$d.prototype.identify=$d.prototype.identify,$d.prototype.alias=$d.prototype.alias,$d.prototype.name_tag=$d.prototype.name_tag,$d.prototype.set_config=$d.prototype.set_config,$d.prototype.get_config=$d.prototype.get_config,$d.prototype.get_api_host=$d.prototype.get_api_host,$d.prototype.get_property=$d.prototype.get_property,$d.prototype.get_distinct_id=$d.prototype.get_distinct_id,$d.prototype.toString=$d.prototype.toString,$d.prototype.opt_out_tracking=$d.prototype.opt_out_tracking,$d.prototype.opt_in_tracking=$d.prototype.opt_in_tracking,$d.prototype.has_opted_out_tracking=$d.prototype.has_opted_out_tracking,$d.prototype.has_opted_in_tracking=$d.prototype.has_opted_in_tracking,$d.prototype.clear_opt_in_out_tracking=$d.prototype.clear_opt_in_out_tracking,$d.prototype.get_group=$d.prototype.get_group,$d.prototype.set_group=$d.prototype.set_group,$d.prototype.add_group=$d.prototype.add_group,$d.prototype.remove_group=$d.prototype.remove_group,$d.prototype.track_with_groups=$d.prototype.track_with_groups,$d.prototype.start_batch_senders=$d.prototype.start_batch_senders,$d.prototype.stop_batch_senders=$d.prototype.stop_batch_senders,$d.prototype.start_session_recording=$d.prototype.start_session_recording,$d.prototype.stop_session_recording=$d.prototype.stop_session_recording,$d.prototype.pause_session_recording=$d.prototype.pause_session_recording,$d.prototype.resume_session_recording=$d.prototype.resume_session_recording,$d.prototype.get_session_recording_properties=$d.prototype.get_session_recording_properties,$d.prototype.get_session_replay_url=$d.prototype.get_session_replay_url,$d.prototype.get_tab_id=$d.prototype.get_tab_id,$d.prototype.DEFAULT_API_ROUTES=Ud,$d.prototype.__get_recorder=$d.prototype.__get_recorder,Od.prototype.properties=Od.prototype.properties,Od.prototype.update_search_keyword=Od.prototype.update_search_keyword,Od.prototype.update_referrer_info=Od.prototype.update_referrer_info,Od.prototype.get_cross_subdomain=Od.prototype.get_cross_subdomain,Od.prototype.clear=Od.prototype.clear;var Wd={},Hd=(Ad=function(e,t){t()},md=0,(Nd=new $d).init=function(e,t,r){if(r)return Nd[r]||(Nd[r]=Wd[r]=zd(e,t,r),Nd[r]._loaded()),Nd[r];var i=Nd;Wd[Rd]?i=Wd[Rd]:e&&((i=zd(e,t,Rd))._loaded(),Wd[Rd]=i),Nd=i,1===md&&(n[Rd]=Nd),Tu.each(Wd,function(e,t){t!==Rd&&(Nd[t]=e)}),Nd._=Tu},Nd.init(),function(){function e(){e.done||(e.done=!0,jd=!0,Dd=!1,Tu.each(Wd,function(e){e._dom_loaded()}))}if(Su.addEventListener)"complete"===Su.readyState?e():Su.addEventListener("DOMContentLoaded",e,!1);else if(Su.attachEvent){Su.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n.frameElement}catch(e){}Su.documentElement.doScroll&&t&&function t(){try{Su.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Tu.register_event(n,"load",e,!0)}(),Nd)},7008:(e,t,r)=>{"use strict";r.d(t,{Mh:()=>p,bi:()=>s,lL:()=>o,oe:()=>u,qt:()=>a});var n=r(6751);let i=!1;const o=()=>{try{if("undefined"==typeof window)return!1;if(i)return!0;const e=window.marketplaceConfig||{};if(!e.data_consent_status)return!1;const t=e.mixpanel||{},r=t.token;if(!r||""===r)return!1;n.A.init(r,{debug:t.debug||!1,track_pageview:!1,persistence:"localStorage",property_blacklist:["$initial_referrer","$initial_referring_domain","$current_url","$referrer","$referring_domain","mp_lib","$lib_version","$browser","$browser_version","$device","$screen_height","$screen_width","$os","$search_engine"]});const o=t.distinctId;return o&&""!==o&&n.A.identify(o),i=!0,!0}catch(e){return!1}},s=()=>{try{i&&void 0!==n.A&&(n.A.reset(),i=!1)}catch(e){console.error("[MixpanelTracking] Error disabling Mixpanel:",e)}},a=()=>{try{if("undefined"==typeof window)return!1;const e=((window.marketplaceConfig||{}).mixpanel||{}).token;return!(!e||""===e)&&(i=!1,o())}catch(e){return console.error("[MixpanelTracking] Error enabling Mixpanel:",e),!1}},c=()=>{try{if("undefined"==typeof window)return{};const e=((window.marketplaceConfig||{}).mixpanel||{}).globalProperties||{},t=new URLSearchParams(window.location.search).get("page")||"",r={...e,hit_type:"event",page:t||window.location.pathname,path:window.location.pathname+window.location.search,referrer:document.referrer.split("/").filter(Boolean).pop()||""};return Object.fromEntries(Object.entries(r).filter(([e,t])=>""!==t&&null!=t&&(!Array.isArray(t)||0!==t.length)))}catch(e){return{}}},l=(e,t={})=>{try{if(!(()=>{try{return i&&void 0!==n.A}catch(e){return!1}})())return;const r={...c(),...t};n.A.track(e,r)}catch(t){console.error("[MixpanelTracking] Error tracking event:",e,t)}},u=({pluginSlug:e,pluginName:t,category:r,itemName:n,isContentRendered:i=!0,contentReceivedAt:o=null,contentRenderedAt:s=null,isCached:a=!1,visibleConditionalProducts:c=[]}={})=>{try{const u=Date.now(),p={content_received_at:o||u,is_content_rendered:i,is_cached:a};c&&c.length>0&&(p.visible_conditional_products=c),i&&(p.content_rendered_at=s||u),n?p.item_name=n:e&&(p.item_name=e),e&&(p.product_slug=e),t&&(p.product_name=t),r&&(p.item_category=r),l("Page Viewed",p)}catch(e){console.error("[MixpanelTracking] Error tracking page view:",e)}},p=({buttonName:e,buttonAction:t,plugin:r=null,context:n={}}={})=>{try{const i={button_name:e||"",button_action:t||"",item_name:e||"",timestamp:Date.now()};r&&Object.assign(i,(e=>{if(!e)return{};const t={product_slug:e.slug||"",product_name:e.name||""};if(e.categories&&e.categories.length>0){const r="object"==typeof e.categories[0]?e.categories[0].slug||e.categories[0].title:e.categories[0];t.item_category=r}return e.licenseType&&(t.license_type=e.licenseType),void 0!==e.priceAmount&&(t.price_amount=e.priceAmount),e.priceCurrency&&(t.price_currency=e.priceCurrency),t})(r)),Object.assign(i,n),l("Button Clicked",i)}catch(e){console.error("[MixpanelTracking] Error tracking button click:",e)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Aggiorna pagina","ui.notifications.couldNotLoad":"Impossibile caricare la pagina","ui.notifications.refreshPage":"Aggiorna la pagina e contatta il nostro supporto se il problema persiste."}')},7565:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,r:()=>o});let n={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:r(2875).x};const i=(e={})=>{n={...n,...e}},o=()=>n},7674:(e,t,r)=>{"use strict";r(1609),r(1352)},7823:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Refresh page","ui.notifications.couldNotLoad":"Couldn’t load the page","ui.notifications.refreshPage":"Please refresh the page and contact our support if the issue persists."}')},7829:(e,t,r)=>{"use strict";r(1609),r(4814),r(1352)},7979:(e,t,r)=>{"use strict";r.d(t,{D:()=>l,t:()=>c});var n=r(1609),i=r(7008),o=r(108),s=r(4601);const a=(0,n.createContext)(null),c=({children:e,apiBaseUrl:t,useWPHandlers:r,wpConfig:c,enableDefaultStyles:l,assetsBaseUrl:u})=>{const[p,h]=(0,n.useState)({}),[d,f]=(0,n.useState)({}),[g,m]=(0,n.useState)({}),[v,y]=(0,n.useState)([]),[b,_]=(0,n.useState)({}),[w,k]=(0,n.useState)(""),[S,x]=(0,n.useState)(""),[C,E]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[I,O]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[N,A]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[M,R]=(0,n.useState)(!1),[T,L]=(0,n.useState)(!1),[P,D]=(0,n.useState)(!0),[F,U]=(0,n.useState)({isOpen:!1,plugin:null}),[B,j]=(0,n.useState)(()=>"undefined"!=typeof window?new URLSearchParams(window.location.search).get("plugin"):null);(0,n.useEffect)(()=>{const e=()=>{const e=new URLSearchParams(window.location.search).get("plugin");j(e)};window.addEventListener("popstate",e);const t=window.history.pushState;window.history.pushState=function(...r){t.apply(this,r),e()};const r=window.history.replaceState;return window.history.replaceState=function(...t){r.apply(this,t),e()},()=>{window.removeEventListener("popstate",e),window.history.pushState=t,window.history.replaceState=r}},[]);const[$,z]=(0,n.useState)(()=>{const e="undefined"!=typeof window&&window.marketplaceConfig?.data_consent_status;return!0===e||"true"===e||"1"===e||1===e}),q=((0,n.useRef)({}),(0,n.useRef)(null)),V="onecom"===("undefined"!=typeof window&&window.marketplaceConfig?.brand),W="undefined"!=typeof window&&window.marketplaceConfig?.activePlugins?window.marketplaceConfig.activePlugins:[],H="undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor?window.marketplaceConfig.activeThemeAuthor:"",G="undefined"!=typeof window&&window.marketplaceConfig?.wpVersion?window.marketplaceConfig.wpVersion:"";(0,n.useEffect)(()=>{const e=sessionStorage.getItem("mp_success_notice");if(e)try{const t=JSON.parse(e);E({visible:t.visible,type:t.type,pluginSlug:t.pluginSlug}),A({visible:t.visible,type:t.successType,pluginSlug:t.pluginSlug}),setTimeout(()=>{sessionStorage.removeItem("mp_success_notice")},100)}catch(e){console.error("Error parsing persisted success notice",e)}},[]),(0,n.useEffect)(()=>{!0===$&&(0,i.lL)();const e=e=>{const t=void 0!==e.detail?.data_consent_status&&e.detail.data_consent_status;z(t),!0===t?("undefined"!=typeof window&&window.marketplaceConfig&&(window.marketplaceConfig.data_consent_status=!0),(0,i.qt)()):("undefined"!=typeof window&&window.marketplaceConfig&&(window.marketplaceConfig.data_consent_status=!1),(0,i.bi)())};window.addEventListener("onConsentStatusChanged",e);const t=t=>{if("onecom_data_consent_status"===t.key){const r="1"===t.newValue;e({detail:{data_consent_status:r}})}};return window.addEventListener("storage",t),()=>{window.removeEventListener("onConsentStatusChanged",e),window.removeEventListener("storage",t)}},[]);const K=(0,n.useCallback)(async e=>{if(V&&Y(e)){m(t=>({...t,[e]:!0}));try{const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.ajaxUrl;if(!t)return void m(t=>({...t,[e]:!1}));const r=new FormData;r.append("action","get_addon_purchase_status"),r.append("addon_purchase_check","true"),r.append("addon_slug",e);const n=await fetch(t,{method:"POST",body:r}),i=await n.json();f(t=>({...t,[e]:i.is_purchased}))}catch(t){f(t=>({...t,[e]:!1}))}finally{m(t=>({...t,[e]:!1}))}}},[V]),J=(0,n.useCallback)(()=>{q.current&&(clearTimeout(q.current),q.current=null),sessionStorage.removeItem("mp_success_notice")},[]),Y=(0,n.useCallback)(e=>"wp-rocket"===e||"seo-by-rank-math-pro"===e,[]),Z=(0,n.useCallback)(e=>(0,o.u)(G,e),[G]),X=(0,n.useCallback)(e=>{U({isOpen:!0,plugin:e})},[]),Q=(0,n.useCallback)(()=>{U({isOpen:!1,plugin:null})},[]),ee=(0,n.useCallback)(e=>!(!e||!V)&&Y(e.slug)&&!e.installed&&!0===d[e.slug],[V,d,Y]),te=(0,n.useCallback)(e=>{if(!e.rules)return!0;if(e.rules.mustHavePlugins&&Array.isArray(e.rules.mustHavePlugins)){if(0===e.rules.mustHavePlugins.length)return!0;if(!e.rules.mustHavePlugins.some(e=>W.includes(e)))return!1}if(e.rules.mustHaveThemesByAuthor&&"string"==typeof e.rules.mustHaveThemesByAuthor){const t=e.rules.mustHaveThemesByAuthor;if(H!==t)return!1}return!0},[W,H]),re=(0,n.useCallback)(async(e,n,o="")=>{const a="activate"===e&&"imagify"===n.slug;h(e=>({...e,[n.slug]:!0}));let l=!1;const u=n.name||n.slug,p=((e,t,r)=>{let n="";const i=r?.notifications||{};switch(e){case"activate":n=i.activating||"Activating {0}";break;case"deactivate":n=i.deactivating||"Deactivating {0}";break;case"install":n=i.installing||"Installing {0}";break;case"delete":n=i.deleting||"Deleting {0}";break;default:return`${e.charAt(0).toUpperCase()+(e.endsWith("e")?e.slice(1,-1):e.slice(1))+"ing"} ${t}`}return n.replace("{0}",t)+"..."})(e,u,b);if(k(p),x(""),a)(0,s.D)({plugin:n,apiBaseUrl:t,useWPHandlers:r,wpConfig:c,source:o,uiI18n:b,setLoadingAction:k,setLoadingPlugin:x,setPluginInAction:h,setSuccessState:A,setErrorState:O,reloadTimeoutRef:q,trackButtonClick:i.Mh});else try{let s=`${t}/${e}/${n.slug}`;const a=`download_url=${encodeURIComponent(n.download||"")}`;s=r?`${c.ajaxUrl}?action=marketplace_${e}_plugin&_wpnonce=${c.nonce}&nonce=${c.nonce}&slug=${n.slug}&${a}`:s+(s.includes("?")?"&":"?")+a;const u=await fetch(s,{method:"POST"}),p=await u.json();if(p.success)if(y(t=>t.map(t=>t.slug===n.slug?{...t,installed:p.data.installed,activated:p.data.activated}:"deactivate"===e&&"seo-by-rank-math"===n.slug&&"seo-by-rank-math-pro"===t.slug?{...t,activated:!1}:"activate"===e&&"seo-by-rank-math-pro"===n.slug&&"seo-by-rank-math"===t.slug?{...t,activated:!0}:t)),"install"===e&&p.data.installed)E({visible:!0,type:"installed",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:n,context:{action:e,result:"success"}});else if("delete"!==e||p.data.installed){if("activate"===e&&p.data.activated)return l=!0,(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"success"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:n.slug,successType:"activate"})),q.current=setTimeout(()=>{window.location.reload()},500)):(A({visible:!0,type:"activate",pluginSlug:n.slug}),q.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),k(""),x("")));if("deactivate"===e&&!p.data.activated)return l=!0,A({visible:!0,type:"deactivate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Deactivate",buttonAction:"product_deactivate",plugin:n,context:{action:e,result:"success"}}),q.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),k(""),void x("")}else E({visible:!0,type:"deleted",pluginSlug:n.slug}),A({visible:!0,type:"delete",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Delete",buttonAction:"product_delete",plugin:n,context:{action:e,result:"success"}});else"activate"===e?(O({visible:!0,type:"activate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||b?.notifications?.pluginActivationFailed||"Activation failed"}})):"deactivate"===e?(O({visible:!0,type:"deactivate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Deactivate",buttonAction:"product_deactivate",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||b?.notifications?.pluginDeactivationFailed||"Deactivation failed"}})):"install"===e?(O({visible:!0,type:"install",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||"Installation failed"}})):"delete"===e?(O({visible:!0,type:"delete",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Delete",buttonAction:"product_delete",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||b?.notifications?.pluginDeletionFailed||"Deletion failed"}})):alert(p.data?.message||"Failed to perform action")}catch(t){console.error("Plugin action failed",t),"activate"!==e&&"install"!==e&&"delete"!==e||(0,i.Mh)({buttonName:"activate"===e?"Activate":"install"===e?"Install":"Delete",buttonAction:"activate"===e?"product_activate":"install"===e?"product_install":"product_delete",plugin:n,context:{action:e,result:"error",error_message:t.message||"Network error"}})}finally{l||h(e=>({...e,[n.slug]:!1})),k(""),x("")}},[t,r,c,b]),ne={apiBaseUrl:t,useWPHandlers:r,wpConfig:c,enableDefaultStyles:l,assetsBaseUrl:u,pluginInAction:p,setPluginInAction:h,subscriptionStatus:d,isCheckingSubscription:g,fetchSubscriptionStatus:K,isOnecomBrand:V,plugins:v,setPlugins:y,uiI18n:b,setUiI18n:_,handlePluginAction:re,cancelReload:J,loadingAction:w,loadingPlugin:S,noticeState:C,setNoticeState:E,errorState:I,setErrorState:O,successState:N,setSuccessState:A,allPluginsActivated:M,setAllPluginsActivated:R,catalogError:T,setCatalogError:L,catalogLoading:P,setCatalogLoading:D,currentPluginSlug:B,setCurrentPluginSlug:j,deleteModalState:F,openDeleteModal:X,closeDeleteModal:Q,shouldShowProvision:ee,isSpecialPlugin:Y,shouldShowPlugin:te,isWpVersionSupported:Z,wpVersion:G,activePlugins:W,activeThemeAuthor:H};return(0,n.createElement)(a.Provider,{value:ne},e)},l=()=>{const e=(0,n.useContext)(a);if(!e)throw new Error("useMarketplace must be used within MarketplaceProvider");return e}},8291:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>n.B,r9:()=>i.r}),r(7829),r(4814);var n=r(8437),i=(r(2648),r(2176),r(3273),r(3227),r(7674),r(1831));r(7565),r(1352)},8300:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Uppdatera sidan","ui.notifications.couldNotLoad":"Det gick inte att ladda sidan","ui.notifications.refreshPage":"Uppdatera sidan och kontakta vår support om problemet kvarstår."}')},8437:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(1609),i=r(1352),o=r(9454);const s=(e,t,r,n)=>e.getFixedT(t,r,n),a=(e,t={})=>{const{i18n:r}=t,{i18n:a,defaultNS:c}=(0,n.useContext)(i.gJ)||{},l=r||a||(0,i.TO)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new i.hz),!l){(0,o.mc)(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>(0,o.Kg)(t)?t:(0,o.Gv)(t)&&(0,o.Kg)(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}l.options.react?.wait&&(0,o.mc)(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...(0,i.rV)(),...l.options.react,...t},{useSuspense:p,keyPrefix:h}=u;let d=e||c||l.options?.defaultNS;d=(0,o.Kg)(d)?[d]:d||["translation"],l.reportNamespaces.addUsedNamespaces?.(d);const f=(l.isInitialized||l.initializedStoreOnce)&&d.every(e=>(0,o.NM)(e,l,u)),g=((e,t,r,i)=>(0,n.useCallback)(s(e,t,r,i),[e,t,r,i]))(l,t.lng||null,"fallback"===u.nsMode?d:d[0],h),m=()=>g,v=()=>s(l,t.lng||null,"fallback"===u.nsMode?d:d[0],h),[y,b]=(0,n.useState)(m);let _=d.join();t.lng&&(_=`${t.lng}${_}`);const w=((e,t)=>{const r=(0,n.useRef)();return(0,n.useEffect)(()=>{r.current=e},[e,t]),r.current})(_),k=(0,n.useRef)(!0);(0,n.useEffect)(()=>{const{bindI18n:e,bindI18nStore:r}=u;k.current=!0,f||p||(t.lng?(0,o.GA)(l,t.lng,d,()=>{k.current&&b(v)}):(0,o.dM)(l,d,()=>{k.current&&b(v)})),f&&w&&w!==_&&k.current&&b(v);const n=()=>{k.current&&b(v)};return e&&l?.on(e,n),r&&l?.store.on(r,n),()=>{k.current=!1,l&&e&&e?.split(" ").forEach(e=>l.off(e,n)),r&&l&&r.split(" ").forEach(e=>l.store.off(e,n))}},[l,_]),(0,n.useEffect)(()=>{k.current&&f&&b(m)},[l,h,f]);const S=[y,l,f];if(S.t=y,S.i18n=l,S.ready=f,f)return S;if(!f&&!p)return S;throw new Promise(e=>{t.lng?(0,o.GA)(l,t.lng,d,()=>e()):(0,o.dM)(l,d,()=>e())})}},8484:(e,t,r)=>{"use strict";let n;r.d(t,{T:()=>o,V:()=>i});const i=e=>{n=e},o=()=>n},8491:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Genindlæs side","ui.notifications.couldNotLoad":"Kunne ikke indlæse siden","ui.notifications.refreshPage":"Opdater venligst siden og kontakt vores support, hvis problemet fortsætter."}')},9454:(e,t,r)=>{"use strict";r.d(t,{GA:()=>a,Gv:()=>u,Kg:()=>l,NM:()=>c,dM:()=>s,mc:()=>i});const n={},i=(e,t,r,i)=>{l(r)&&n[r]||(l(r)&&(n[r]=new Date),((e,t,r,n)=>{const i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);l(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,i))},o=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},s=(e,t,r)=>{e.loadNamespaces(t,o(e,r))},a=(e,t,r,n)=>{if(l(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return s(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,o(e,n))},c=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(i(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),l=e=>"string"==typeof e,u=e=>"object"==typeof e&&null!==e},9599:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(3526),o=r(5924);const s=({children:e,className:t=""})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.A,null),(0,n.createElement)(o.A,null),(0,n.createElement)("div",{className:"gv-activated"},(0,n.createElement)("div",{className:`marketplace-container gv-layout-product gv-w-max-container gv-mx-auto gv-p-fluid ${t}`},e)))},9962:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(4694),l=r(7979),u=r(488);function p({plugin:e,onClose:t,usePortal:r=!0,loading:p=!1}){const{assetsBaseUrl:h,useWPHandlers:d,pluginInAction:f,plugins:g,uiI18n:m,noticeState:v,setNoticeState:y,setErrorState:b}=(0,l.D)(),_=g.find(e=>"seo-by-rank-math"===e.slug)||null,w=g.find(e=>"seo-by-rank-math-pro"===e.slug)||null,k=h||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",S=k?`${k}assets/icons/`:"";if(p){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-w-max-container gv-mx-auto"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-mb-lg"},(0,n.createElement)("a",{href:"#",onClick:e=>{if(e.preventDefault(),"undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${S}arrow_back.svg`}),(0,n.createElement)("span",null,m.backButton))),(0,n.createElement)("header",{className:"gv-area-header"},(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("header",{className:"gv-area-header gv-mt-fluid gv-mb-fluid"},(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid gv-mb-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"160px"}}),(0,n.createElement)("ul",{className:""},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"160px",marginBottom:"28px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;const x=(0,n.useRef)(null),C=(0,n.useRef)(null),E=(0,n.useRef)(null),I=(0,n.useRef)(null),O=(0,n.useRef)(null),[N,A]=((0,n.useRef)([]),(0,n.useState)(0));(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{y(e=>!e.visible||e.pluginSlug!==_?.slug&&e.pluginSlug!==w?.slug?{visible:!1,type:null,pluginSlug:null}:e),b(e=>!e.visible||e.pluginSlug!==_?.slug&&e.pluginSlug!==w?.slug?{visible:!1,type:null,pluginSlug:null}:e)},[_?.slug,w?.slug,y,b]),(0,n.useEffect)(()=>{const e=()=>{y({visible:!1,type:null,pluginSlug:null}),b({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[y,b]),(0,n.useEffect)(()=>{const e=x.current,t=C.current,r=E.current,n=I.current,i=O.current;if(!(e&&t&&r&&n&&i))return;const o=t.querySelector(".gv-previous"),s=t.querySelector(".gv-next");let a=!1,c="top",l=!1,u=!1,p=!1,h=null,d=!1;const f=()=>{const t=e.scrollLeft,r=e.offsetWidth,n=Math.round(t/r);A(n),o&&(0===n?o.classList.add("gv-disabled"):o.classList.remove("gv-disabled")),s&&(n>=Math.round(e.scrollWidth/r)-1?s.classList.add("gv-disabled"):s.classList.remove("gv-disabled"))},g=()=>{const e=parseFloat(getComputedStyle(r).paddingTop)||0,i=n.offsetHeight/2,o=i+e,s=window.innerHeight/2-o,a=2*i;return t.style.transform=`translateY(${o}px)`,t.style.top=`${s}px`,t.style.bottom=`${a}px`,{bottomValue:a,halfHeaderHeight:i}},m=e=>{const n=r.getBoundingClientRect(),i=window.innerHeight-e,o=n.bottom<=i;o!==a&&(a=o,a?t.classList.add("gv-state-bottom"):t.classList.remove("gv-state-bottom"))},v=()=>{if(p)return;let e;e=l?l&&!u?"overlay":"bottom":"top",e!==c&&(p=!0,c=e,"top"===c?(i.classList.add("gv-state-top"),i.classList.remove("gv-state-overlay")):"overlay"===c?(i.classList.remove("gv-state-top"),i.classList.add("gv-state-overlay")):(i.classList.remove("gv-state-top"),i.classList.remove("gv-state-overlay")),requestAnimationFrame(()=>{setTimeout(()=>{p=!1},50)}))},{bottomValue:y}=g();e.addEventListener("scroll",f);const b=new IntersectionObserver(e=>{e.forEach(e=>{!e.isIntersecting&&e.boundingClientRect.top<0?l=!0:(e.isIntersecting||e.boundingClientRect.top>=0)&&(l=!1),v()})},{threshold:[0,1],rootMargin:"0px"}),_=document.createElement("div");_.style.position="absolute",_.style.bottom="0",_.style.left="0",_.style.width="1px",_.style.height="1px",_.style.pointerEvents="none",r.style.position="relative",r.appendChild(_);const w=new IntersectionObserver(e=>{e.forEach(e=>{u=e.isIntersecting,v()})},{threshold:[0],rootMargin:"-100px 0px 0px 0px"});b.observe(i),w.observe(_);const k=()=>{d||(d=!0,requestAnimationFrame(()=>{m(y)}),h=setTimeout(()=>{d=!1},100))},S=()=>{const{bottomValue:e}=g();m(e)};return window.addEventListener("scroll",k),window.addEventListener("resize",S),f(),m(y),v(),()=>{h&&clearTimeout(h),e.removeEventListener("scroll",f),window.removeEventListener("scroll",k),window.removeEventListener("resize",S),b.disconnect(),w.disconnect(),_&&_.parentNode&&_.parentNode.removeChild(_)}},[]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const M=w.detailsBannerUrl||w.bannerUrl,R=_?.name||e.name||"Product",T=_?.i18n?.description||_?.i18n?.subtitle,L=_?.i18n?.subtitle,P=w?.name||"Rank Math Pro",D=w?.i18n?.subtitle||w?.i18n?.description,F=w?(0,u.M)(w,m?.labels?.free||"Free",m):"",U=F===(m?.labels?.freeUntilRenewal||"Free until renewal"),B=(0,u.Tc)(w),j=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},$=_?.i18n||e.i18n,z=j($,"keyBenefitContent"),q=j(_?.i18n,"keyFeatureContent"),V=j(w?.i18n,"keyFeatureContent"),W=Math.max(q.length,V.length),H=[];if($&&"object"==typeof $){let e=1;for(;$[`coreFeatureTitle${e}`]||$[`coreFeatureContent${e}`];){const t=$[`coreFeatureTitle${e}`],r=$[`coreFeatureContent${e}`];t&&""!==t.trim()&&r&&""!==r.trim()&&H.push({name:t,desc:r}),e++}}const G=z,K=H,J=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-w-max-container gv-mx-auto gv-p-fluid gv-p-0"},(0,n.createElement)(c.A,{iconBase:S,label:m.backButton,onClose:t,disabled:f[e.slug]},(0,n.createElement)(s.A,{plugin:v?.pluginSlug===w?.slug?w:_}),(0,n.createElement)(a.A,{plugin:_}),(0,n.createElement)(a.A,{plugin:w})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},"Rank Math"),(0,n.createElement)("p",{className:"gv-text-sm"},T)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${M} 2x, ${M} 1x`}),(0,n.createElement)("img",{src:M,srcSet:`${M} 2x, ${M} 1x`,alt:"Product image"})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-2 gv-recommended-2 gv-area-table"},(0,n.createElement)("div",{className:"gv-dots-scroll-area"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-slider-nav",ref:C},(0,n.createElement)("button",{type:"button",className:"gv-nav-button gv-previous gv-disabled",onClick:()=>{const e=x.current;if(!e)return;const t=e.offsetWidth;e.scrollTo({left:e.scrollLeft-t,behavior:"smooth"})}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${S}chevron_left.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-nav-button gv-next",onClick:()=>{const e=x.current;if(!e)return;const t=e.offsetWidth;e.scrollTo({left:e.scrollLeft+t,behavior:"smooth"})}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${S}chevron_right.svg`}))),(0,n.createElement)("div",{className:"gv-table-slider",ref:x},(0,n.createElement)("div",{className:"gv-table",role:"table",ref:E},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup",ref:I},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},`${R} free`),(0,n.createElement)("p",null,L)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},(0,n.createElement)("span",{className:"gv-price-text"},m?.labels?.free||"Free"))),d&&_?(0,n.createElement)(o.A,{plugin:_}):_?.download&&(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-secondary"},m?.installButton||_?.i18n?.installButton||"Install"))),(0,n.createElement)("div",{className:"gv-product gv-p-0",role:"columnheader"},(0,n.createElement)("div",{className:"gv-recommended-label"},"Recommended"),(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},P),(0,n.createElement)("p",null,D.substring(0,120),D.length>120?"…":"")),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},(0,n.createElement)("span",{className:"gv-price-text"},F,F&&!U&&",-"),F&&!U&&(0,n.createElement)("span",{className:"gv-period"},"/",m?.labels?.timeMonth)),F&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},m.labels.afterThat," [",B,"]/",m?.labels?.timeMonth))),d&&w?(0,n.createElement)(o.A,{plugin:w}):(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary"},"Select"))))),W>0&&(0,n.createElement)("div",{className:"gv-section",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},m?.keyFeatureHeading||_?.i18n?.keyFeatureHeading||"Key features")),(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},m?.keyFeatureHeading||w?.i18n?.keyFeatureHeading||"Key features"))),Array.from({length:W}).map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},q[t]||"")),(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},V[t]||"")))))))),(0,n.createElement)("div",{className:"gv-slider-pagination gv-state-top",ref:O},(0,n.createElement)("div",{className:"gv-dots",role:"tablist"},[0,1].map(e=>(0,n.createElement)("span",{key:e,className:"gv-dot "+(N===e?"gv-active":""),role:"tab","aria-selected":N===e?"true":"false","aria-label":`Go to slide ${e+1}`,onClick:()=>(e=>{const t=x.current;if(!t)return;const r=t.offsetWidth;t.scrollTo({left:r*e,behavior:"smooth"})})(e),style:{cursor:"pointer"}})))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},G.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},m?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},G.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),K.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},m?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},K.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)(J,document.body):J}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n);var e=r(1609),t=r(5795),i=r.n(t),o=r(6255),s=(r(5036),r(108));document.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("marketplace-addons-root");if(t){const n=window.marketplaceConfig||{};n.locale&&Promise.resolve().then(r.bind(r,2635)).then(({default:e})=>{e.changeLanguage(n.locale)});const a=(0,s.u)(n.wpVersion,"6.2");"function"==typeof i().createRoot&&a?i().createRoot(t).render((0,e.createElement)(o.A,{...n})):i().render((0,e.createElement)(o.A,{...n}),t)}})})(),window.MarketPlaceWP=n})();
//# sourceMappingURL=addons.js.map
\ No newline at end of file
diff --git a/frontend/build/index.asset.php b/frontend/build/index.asset.php
index 1f656dd..7156770 100644
--- a/frontend/build/index.asset.php
+++ b/frontend/build/index.asset.php
@@ -1 +1 @@
- array('react', 'react-dom'), 'version' => '012415a6045d000c7431');
+ array('react', 'react-dom'), 'version' => '315197e65e3e6daa36d3');
diff --git a/frontend/build/index.js b/frontend/build/index.js
index d8b58f5..0b3b7fd 100644
--- a/frontend/build/index.js
+++ b/frontend/build/index.js
@@ -1,2 +1,2 @@
-(()=>{var e={108:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});const n=(e,t)=>{if(!e)return!0;const r=String(e).split("."),n=String(t).split(".");for(let e=0;ei)return!0;if(t{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Oppdater side","ui.notifications.couldNotLoad":"Kunne ikke laste inn siden","ui.notifications.refreshPage":"Oppdater siden og kontakt vår support hvis problemet vedvarer."}')},488:(e,t,r)=>{"use strict";r.d(t,{Dn:()=>c,M:()=>l,Tc:()=>a});const n={EUR:"€",USD:"$",GBP:"£",DKK:"kr",NOK:"kr",SEK:"kr"},i=["DKK","SEK","NOK"],o=e=>n[e]||e,s=(e,t,r)=>i.includes(r)?`${e} ${t}`:`${t} ${e}`,a=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"full"===e.priceType);if(t&&t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},c=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&void 0!==t.amount&&null!==t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},l=(e,t="Free",r=null)=>{if("free"===e.licenseType)return t;if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&"premium"===e.licenseType){if(0===t.amount)return r?.labels?.freeUntilRenewal||"Free until renewal";if(t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return`${s(r,e,t.currency)} `}}let n=e.prices.find(e=>"full"===e.priceType&&(!0===e.isActive||void 0===e.isActive));if(n||(n=e.prices.find(e=>!0===e.isActive)),n||(n=e.prices[0]),n&&n.amount&&n.currency){const e=o(n.currency),t=Number(n.amount).toFixed(2);return s(t,e,n.currency)}}if(e.priceCurrency&&e.priceAmount){const t=o(e.priceCurrency),r=Number(e.priceAmount).toFixed(2);return s(r,t,e.priceCurrency)}return""}},1174:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{uiI18n:e}=(0,i.D)(),t=e?.notifications?.updateWPText?.replace("{0}","6.2");return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},e?.notifications?.updateWPTitle),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.href="undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?`${window.marketplaceConfig.wpConfig.adminUrl}update-core.php`:"/wp-admin/update-core.php"}},(0,n.createElement)("span",null,e?.updateWPButton))))}},1199:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Pagina verversen","ui.notifications.couldNotLoad":"Kon de pagina niet laden","ui.notifications.refreshPage":"Ververs de pagina en neem contact op met onze (Engelstalige) support als het probleem zich blijft voordoen."}')},1338:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,pluginInAction:r,subscriptionStatus:a,isCheckingSubscription:c,isOnecomBrand:l,handlePluginAction:u,uiI18n:p,isSpecialPlugin:h}=(0,i.D)(),d=a[e.slug],f=c[e.slug],g=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",m=g?`${g}assets/`:"",v=t=>{const r=!e.installed;if(l&&h(e.slug)&&r&&"install"===t){(0,o.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:e,context:{action:t,result:"initiated"}});const r=new CustomEvent("onecom-plugin-provision",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});return void document.dispatchEvent(r)}u(t,e,"product_detail")},y=(e,t)=>e?e.replace("{0}",t||""):"",b=e?.name||"",_=l&&h(e.slug)&&!e.installed&&!1===d,w=l&&h(e.slug)&&!e.installed&&(f||void 0===d);return(0,n.createElement)("div",{className:"plugin-actions gv-mt-md"},w?(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md"}):_?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Select",buttonAction:"subscribe_addon",plugin:e});const t=new CustomEvent("onecom-subscribe-addon",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});document.dispatchEvent(t)},disabled:f},"Select"):e.installed?e.activated?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Manage",buttonAction:"manage_product",context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}});const t=(0,s.v)(e,!1);(0,s.J)(t)}},(0,n.createElement)("span",null,p?.labels?.manage||"Manage"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${m}icons/arrow_right.svg`})):(0,n.createElement)("button",{className:"gv-button gv-button-primary",disabled:r[e.slug],onClick:()=>v("activate")},r[e.slug]?y(p?.notifications?.activating||"Activating {0}",b):p?.activateButton||e.i18n?.activateButton||"Activate"):(0,n.createElement)("button",{className:"gv-button "+("seo-by-rank-math"===e.slug?"gv-button-secondary":"gv-button-primary"),disabled:r[e.slug],onClick:()=>v("install")},r[e.slug]?y(p?.notifications?.installing||"Installing {0}",b):p?.installButton||e.i18n?.installButton||"Install"))}},1352:(e,t,r)=>{"use strict";r.d(t,{TO:()=>o.T,gJ:()=>s,hz:()=>a,rV:()=>i.r});var n=r(1609),i=r(7565),o=r(8484);r(1831);const s=(0,n.createContext)();class a{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}},1609:e=>{"use strict";e.exports=window.React},1755:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(7979),o=r(8291);function s(){const{assetsBaseUrl:e}=(0,i.D)(),{t}=(0,o.Bd)();return e||void 0!==window.marketplaceConfig&&window.marketplaceConfig,(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},t("ui.notifications.couldNotLoad")),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t("ui.notifications.refreshPage")),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.reload()}},(0,n.createElement)("span",null,t("ui.button.refreshPage")))))}},1831:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(7565),i=r(8484);const o={type:"3rdParty",init(e){(0,n.P)(e.options.react),(0,i.V)(e)}}},2176:(e,t,r)=>{"use strict";r(8437)},2635:(e,t,r)=>{"use strict";r.r(t),r.d(t,{changeLanguage:()=>Q,createInstance:()=>G,default:()=>H,dir:()=>K,exists:()=>re,getFixedT:()=>ee,hasLoadedNamespace:()=>ie,init:()=>J,keyFromSelector:()=>I,loadLanguages:()=>se,loadNamespaces:()=>oe,loadResources:()=>Y,reloadResources:()=>Z,setDefaultNamespace:()=>ne,t:()=>te,use:()=>X});const n=e=>"string"==typeof e,i=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},o=e=>null==e?"":""+e,s=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,c=e=>!e||n(e),l=(e,t,r)=>{const i=n(t)?t.split("."):t;let o=0;for(;o{const{obj:n,k:i}=l(e,t,Object);if(void 0!==n||1===t.length)return void(n[i]=r);let o=t[t.length-1],s=t.slice(0,t.length-1),a=l(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=l(e,s,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r},p=(e,t)=>{const{obj:r,k:n}=l(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},h=(e,t,r)=>{for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):h(e[i],t[i],r):e[i]=t[i]);return e},d=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const g=e=>n(e)?e.replace(/[&<>"'\/]/g,e=>f[e]):e,m=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let i=e;for(let e=0;e-1&&se?.replace("_","-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class w{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var k=new w;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,r,i={}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):n(r)&&o?a.push(...r.split(o)):a.push(r)));const c=p(this.data,a);return!c&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!c&&s&&n(r)?y(this.data?.[e]?.[t],r,o):c}addResource(e,t,r,n,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),u(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,i={silent:!1}){for(const i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=p(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?h(a,r,i):a={...a,...r},u(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var C={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};const E=Symbol("i18next/PATH_KEY");function I(e,t){const{[E]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,i)=>(r?.revoke?.(),i===E?e:(e.push(i),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return r.join(t?.keySeparator??".")}const O={},N=e=>!n(e)&&"boolean"!=typeof e&&"number"!=typeof e;class A extends S{constructor(e,t={}){super(),((e,t,r)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(r[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);return void 0!==n?.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const s=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=m.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const i=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,r,i));if(s&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(o)?[o]:o};const s=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(i)}return{key:e,namespaces:n(o)?[o]:o}}translate(e,t,r){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=I(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(e[e.length-1],i),l=c[c.length-1];let u=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const p=i.lng||this.language,h=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===p?.toLowerCase())return h?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;const d=this.resolve(e,i);let f=d?.res;const g=d?.usedKey||a,m=d?.exactUsedKey||a,v=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==i.count&&!n(i.count),_=A.hasDefaultValue(i),w=b?this.pluralResolver.getSuffix(p,i.count,i):"",k=i.ordinal&&b?this.pluralResolver.getSuffix(p,i.count,{ordinal:!1}):"",S=b&&!i.ordinal&&0===i.count,x=S&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${w}`]||i[`defaultValue${k}`]||i.defaultValue;let C=f;y&&!f&&_&&(C=x);const E=N(C),O=Object.prototype.toString.apply(C);if(!(y&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(O)<0)||n(v)&&Array.isArray(C))if(y&&n(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,i,r));else{let t=!1,n=!1;!this.isValidLookup(f)&&_&&(t=!0,f=x),this.isValidLookup(f)||(n=!0,f=a);const o=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:f,c=_&&x!==f&&this.options.updateMissing;if(n||t||c){if(this.logger.log(c?"updateKey":"missingKey",p,l,a,c?x:f),s){const e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r{const n=_&&r!==f?r:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,n,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,n,c,i),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,i);S&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,i[`defaultValue${t}`]||x)})}):r(e,a,x))}f=this.extendTranslation(f,e,i,d,r),n&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(n||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,C,{...i,ns:c}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(i),d):e}if(s){const e=Array.isArray(C),t=e?[]:{},r=e?m:g;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const n=`${r}${s}${e}`;t[e]=_&&!f?this.translate(n,{...i,defaultValue:N(x)?x[e]:void 0,joinArrays:!1,ns:c}):this.translate(n,{...i,joinArrays:!1,ns:c}),t[e]===n&&(t[e]=C[e])}f=t}}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(i),d):f}extendTranslation(e,t,r,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const s=n(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||i.usedLng,r),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=n(s)?[s]:s;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=C.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,i,o,s,a;return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(e,t),l=c.key;i=l;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=void 0!==t.count&&!n(t.count),h=p&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(n(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(a=e,O[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(O[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{if(this.isValidLookup(r))return;s=n;const i=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&0===e.indexOf(o)&&i.push(l+e.replace(o,this.options.pluralSeparator)),i.push(l+e),h&&i.push(l+r)),d){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;i.push(n),p&&(t.ordinal&&0===e.indexOf(o)&&i.push(n+e.replace(o,this.options.pluralSeparator)),i.push(n+e),h&&i.push(n+r))}}let a;for(;a=i.pop();)this.isValidLookup(r)||(o=a,r=this.getResource(n,e,a,t))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!n(e.replace);let i=r?e.replace:e;if(r&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const e of t)delete i[e]}return i}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class R{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):n(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{i.indexOf(e)<0&&o(this.formatLanguageCode(e))}),i}}const M={zero:0,one:1,two:2,few:3,many:4,other:5},T={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=b("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:n})}catch(r){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),T;if(!e.match(/-|_/))return T;const n=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(n,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((e,t)=>M[e]-M[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const L=(e,t,r,i=".",o=!0)=>{let s=((e,t,r)=>{const n=p(e,r);return void 0!==n?n:p(t,r)})(e,t,r);return!s&&o&&n(r)&&(s=y(e,r,i),void 0===s&&(s=y(t,r,i))),s},D=e=>e.replace(/\$/g,"$$$$");class F{constructor(e={}){this.logger=k.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?d(i):o||"{{",this.suffix=s?d(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=p?d(p):h||d("$t("),this.nestingSuffix=f?d(f):m||d(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let s,a,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const n=L(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}const n=e.split(this.formatSeparator),o=n.shift().trim(),s=n.join(this.formatSeparator).trim();return this.format(L(t,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:o})};this.resetRegExp();const p=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>D(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?D(this.escape(e)):D(e)}].forEach(t=>{for(c=0;s=t.regex.exec(e);){const r=s[1].trim();if(a=u(r),void 0===a)if("function"==typeof p){const t=p(e,s,i);a=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))a="";else{if(h){a=s[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a=""}else n(a)||this.useRawValueToEscape||(a=o(a));const l=t.safeValue(a);if(e=e.replace(s[0],l),h?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t,r={}){let i,s,a;const c=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,a);const o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!n(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==u&&(l=i[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=t(c.call(this,i[1].trim(),a),a),s&&i[0]===e&&!n(s))return s;n(s)||(s=o(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const U=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=n+JSON.stringify(o);let a=t[s];return a||(a=e(b(n),i),t[s]=a),a(r)}},j=e=>(t,r,n)=>e(b(r),n)(t);class B{constructor(e={}){this.logger=k.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?U:j;this.formats={number:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=U(t)}format(e,t,r,n={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class $ extends S{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){const i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){const n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:i}=l(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&n{this.read.call(this,e,t,r,n+1,2*i,o)},i):o(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}}prepareLoading(e,t,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);const o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i,o={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const a={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=5===c.length?c(e,t,r,n,a):c(e,t,r,n),i&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else c(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const z=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),q=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{};class W extends S{constructor(e={},t){var r;if(super(),this.options=q(e),this.services={},this.logger=k,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(n(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=z();this.options={...r,...this.options,...q(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?k.init(o(this.modules.logger),this.options):k.init(null,this.options),e=this.modules.formatter?this.modules.formatter:B;const t=new R(this.options);this.store=new x(this.options.resources,this.options);const n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new P(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new F(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new $(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=i(),a=()=>{const e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),s}loadResources(e,t=V){let r=t;const i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===i?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=V),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=i();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(n,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(n,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=n(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(n(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const i=(e,t,...n)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||i.keyPrefix);const s=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=I(e,{...this.options,...t})),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=I(e,{...this.options,...t})),a=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(a,o)};return n(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(r,e)||n&&!o(i,e)))}loadNamespaces(e,t){const r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=i();n(e)&&(e=[e]);const o=this.options.preload||[],s=e.filter(e=>o.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=o.concat(s),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new R(z());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new W(e,t)}cloneInstance(e={},t=V){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new W(n);if(void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{});i.store=new x(e,n),i.services.resourceStore=i.store}return i.translator=new A(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=W.createInstance();H.createInstance=W.createInstance;const G=H.createInstance,K=H.dir,J=H.init,Y=H.loadResources,Z=H.reloadResources,X=H.use,Q=H.changeLanguage,ee=H.getFixedT,te=H.t,re=H.exists,ne=H.setDefaultNamespace,ie=H.hasLoadedNamespace,oe=H.loadNamespaces,se=H.loadLanguages},2648:(e,t,r)=>{"use strict";r(1609),r(8437),r(9454)},2875:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});const n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},o=e=>i[e],s=e=>e.replace(n,o)},3220:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,v:()=>n});const n=(e,t=!1)=>{let r=e.redirectUrl;const n="seo-by-rank-math"===e.slug||"seo-by-rank-math-pro"===e.slug,i=e.onboardingUrl&&"string"==typeof e.onboardingUrl&&""!==e.onboardingUrl.trim();if(n){const t=window.marketplaceConfig?.wpConfig;(!t||!0!==t.rankMathRegistrationSkip)&&i&&(r=e.onboardingUrl)}else t&&i&&(r=e.onboardingUrl);return r},i=e=>{if(e&&""!==e.trim()){const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.adminUrl;if(t){let r=e;r.startsWith("wp-admin/")&&(r=r.substring(9));const n=`${t}${r}`;window.location.href=n}else{const t=`${window.location.origin}/${e}`;window.location.href=t}return}window.location.href="/wp-admin/plugins.php"}},3227:(e,t,r)=>{"use strict";r(1609),r(7674),r(1352),r(9454)},3258:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(7979),o=r(488);function s({loading:e=!1}){const{plugins:t,assetsBaseUrl:r,uiI18n:s}=(0,i.D)(),[a,c]=(0,n.useState)(0),[l,u]=(0,n.useState)(2),p="undefined"!=typeof window&&window.marketplaceConfig?.activePlugins?window.marketplaceConfig.activePlugins:[],h="undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor?window.marketplaceConfig.activeThemeAuthor:"";(0,n.useEffect)(()=>{const e=()=>{window.innerWidth>1024?u(2):(window.innerWidth,u(1))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const d=e=>{if(!e.rules)return!0;if(e.rules.mustHavePlugins&&Array.isArray(e.rules.mustHavePlugins)){if(0===e.rules.mustHavePlugins.length)return!0;if(!e.rules.mustHavePlugins.some(e=>p.includes(e)))return!1}if(e.rules.mustHaveThemesByAuthor&&"string"==typeof e.rules.mustHaveThemesByAuthor){const t=e.rules.mustHaveThemesByAuthor;if(h!==t)return!1}return!0},f=!0===t.find(e=>"seo-by-rank-math"===e.slug)?.activated,g=!0===t.find(e=>"seo-by-rank-math-pro"===e.slug)?.activated,m=t.filter(e=>!0!==e.activated&&!0===e.featured&&("seo-by-rank-math"===e.slug?!f&&!g&&d(e):"seo-by-rank-math-pro"===e.slug?f&&d(e):d(e))).sort((e,t)=>(void 0!==e.displayOrder?parseInt(e.displayOrder):1/0)-(void 0!==t.displayOrder?parseInt(t.displayOrder):1/0)),v=r||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",y=v?`${v}assets/icons/`:"",b=m.length,_=Math.max(0,b-l);return e?(0,n.createElement)("section",{className:"gv-featured-carousel gv-w-full"},(0,n.createElement)("div",{className:"gv-carousel-header gv-mb-lg gv-tab-mt-md gv-max-mob-mt-0"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"200px"}})),(0,n.createElement)("div",{className:"gv-carousel-container",style:{position:"relative",overflow:"hidden"}},(0,n.createElement)("div",{className:"gv-carousel-track",style:{display:"flex",gap:"1rem"}},[...Array(l)].map((e,t)=>(0,n.createElement)("div",{key:`skeleton-slide-${t}`,className:"gv-carousel-slide gv-border-alt",style:{minWidth:`calc((100% - ${l-1}rem) / ${l})`,maxWidth:`calc((100% - ${l-1}rem) / ${l})`,flex:"0 0 auto",backgroundColor:"#D9EBF7",borderRadius:"6px",display:"flex",justifyContent:"space-between",maxHeight:"456px"}},(0,n.createElement)("header",{className:"gv-product-header gv-area-header gv-w-full",style:{border:"none",background:"#D9EBF7"}},(0,n.createElement)("div",{className:"gv-content gv-stack-space-sm gv-text-sm gv-flex gv-flex-col gv-items-start"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"80px",marginBottom:"24px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-w-full"}),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-w-full"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"90%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"80%"}}),(0,n.createElement)("div",{className:"gv-slide-footer gv-flex gv-align-center gv-flex-wrap gv-items-center",style:{marginTop:"24px"}},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"100px",height:"40px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-ml-md",style:{width:"60px",height:"24px"}}))),(0,n.createElement)("div",{className:"gv-image gv-max-mob-pl-md"},(0,n.createElement)("div",{className:"gv-card-image",style:{width:"100%",height:"100%",marginTop:"74px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full"}))))))))):m&&0!==m.length?(0,n.createElement)("section",{className:"gv-featured-carousel gv-w-full"},(0,n.createElement)("div",{className:"gv-carousel-header gv-mb-lg gv-tab-mt-md gv-max-mob-mt-0"},(0,n.createElement)("h5",{className:"gv-title gv-heading-sm gv-recommended-heading"},s?.headings?.recommendedHeading)),(0,n.createElement)("div",{className:"gv-carousel-container",style:{position:"relative",overflow:"hidden"}},(0,n.createElement)("div",{className:"gv-carousel-track",style:{display:"flex",transition:"transform 0.3s ease-in-out",transform:`translateX(calc(-${a} * ((100% - ${l-1}rem) / ${l} + 1rem)))`,gap:"1rem"}},m.map((e,t)=>{const r=e?.i18n?.featuredTitle,i=e?.i18n?.featuredContent,a=e.i18n.freeTrialPeriod&&""!==e.i18n.freeTrialPeriod.trim()?e.i18n.freeTrialPeriod:s?.labels?.free||"Free",c=(0,o.M)(e,a,s),u=e.bannerUrl||e.image||e.thumbnail||"https://gravity.group.one/guide-images/product-image@2x.png",p=Array.isArray(e.categories)&&e.categories.length?"object"==typeof e.categories[0]?e.categories[0]:{slug:String(e.categories[0]),title:String(e.categories[0]),description:null}:{slug:"Others",title:"Others",description:null};return p.title||p.slug,(0,n.createElement)("div",{key:`slide-${t}`,className:"gv-carousel-slide gv-border-alt",style:{minWidth:`calc((100% - ${l-1}rem) / ${l})`,maxWidth:`calc((100% - ${l-1}rem) / ${l})`,flex:"0 0 auto",backgroundColor:"#D9EBF7",borderRadius:"6px",display:"flex",justifyContent:"space-between",maxHeight:"456px"}},(0,n.createElement)("header",{className:"gv-product-header gv-area-header",style:{border:"none",background:"#D9EBF7"}},(0,n.createElement)("div",{className:"gv-content gv-stack-space-lg gv-text-sm gv-flex gv-flex-col gv-items-start gv-h-full gv-justify-between"},(0,n.createElement)("div",{className:"gv-badge gv-badge-info gv-flex-none"},e?.name),(0,n.createElement)("div",{className:"gv-flex gv-flex-col gv-h-full gv-justify-between"},(0,n.createElement)("div",{className:"gv-max-mob-mb-lg gv-max-tab-mb-lg",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:8,overflow:"hidden",width:"100%"}},(0,n.createElement)("h5",{className:"gv-title gv-header-sm",style:{marginBottom:"8px"}},r),(0,n.createElement)("p",{className:"gv-text-sm"},i?.trim())),(0,n.createElement)("div",{className:"gv-slide-footer gv-flex gv-align-center gv-items-center"},(0,n.createElement)("button",{onClick:()=>(e=>{if("undefined"!=typeof window){const t=new URL(window.location.href);t.searchParams.set("plugin",e.slug),window.history.pushState({},"",t.toString()),window.dispatchEvent(new PopStateEvent("popstate"))}})(e),className:"gv-button gv-button-secondary gv-w-auto gv-flex-shrink-0"},s?.featuredCta),(0,n.createElement)("span",{className:"gv-price gv-text-bold gv-text-md gv-ml-md gv-flex-1"},c,"free"!==e.licenseType&&c&&c!==a&&c!==(s?.labels?.freeUntilRenewal||"Free until renewal")&&(0,n.createElement)("span",{className:"gv-period"},"/",s?.labels?.timeMonth))))),(0,n.createElement)("div",{className:"gv-image gv-max-mob-pl-md"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${u} 1x, ${u} 2x`}),(0,n.createElement)("img",{src:u,srcSet:`${u} 1x, ${u} 2x`,alt:`${r} image`})))))}))),b>l&&(0,n.createElement)("div",{className:"gv-carousel-nav-wrapper gv-flex gv-justify-center gv-align-center gv-mt-sm gv-gap-fluid"},(0,n.createElement)("button",{onClick:()=>{a>0&&c(e=>e-1)},disabled:0===a,className:"gv-carousel-nav gv-carousel-nav-prev",style:{display:"flex",alignItems:"center",justifyContent:"center",cursor:0===a?"not-allowed":"pointer",opacity:0===a?.5:1},"aria-label":"Previous slide"},(0,n.createElement)("img",{src:`${y}chevron_left.svg`,alt:"Previous",style:{width:"24px",height:"24px"}})),(0,n.createElement)("div",{className:"gv-carousel-dots gv-flex-wrap gv-items-center gv-flex gv-justify-center gv-gap-sm"},Array.from({length:_+1}).map((e,t)=>(0,n.createElement)("button",{key:t,onClick:()=>(e=>{c(Math.min(e,_))})(t),className:"gv-carousel-dot",style:{width:"8px",height:"8px",borderRadius:"50%",border:"none",background:a===t?"#0066CC":"#D0D0D0",cursor:"pointer",padding:0},"aria-label":`Go to slide ${t+1}`}))),(0,n.createElement)("button",{onClick:()=>{a<_&&c(e=>e+1)},disabled:a>=_,className:"gv-carousel-nav gv-carousel-nav-next",style:{display:"flex",alignItems:"center",justifyContent:"center",cursor:a>=_?"not-allowed":"pointer",opacity:a>=_?.5:1},"aria-label":"Next slide"},(0,n.createElement)("img",{src:`${y}chevron_right.svg`,alt:"Next",style:{width:"24px",height:"24px"}})))):null}},3273:(e,t,r)=>{"use strict";r(1609),r(1352)},3461:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Päivitä sivu","ui.notifications.couldNotLoad":"Sivua ei voitu ladata","ui.notifications.refreshPage":"Päivitä sivu ja ota yhteyttä asiakaspalveluumme, jos ongelma jatkuu."}')},3526:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{loadingAction:e,loadingPlugin:t,assetsBaseUrl:r}=(0,i.D)();if(!e)return null;const o=`${r||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||""}assets/images/spinner.svg`;return(0,n.createElement)("div",{className:"loading-overlay show"},(0,n.createElement)("div",{className:"gv-loader-container gv-pos-center gv-pos-absolute"},(0,n.createElement)("gv-loader",{src:o}),(0,n.createElement)("p",null,e)))}},3591:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualizar página","ui.notifications.couldNotLoad":"No se puede cargar la página","ui.notifications.refreshPage":"Actualice la página y póngase en contacto con nuestro servicio de asistencia si el problema persiste."}')},3804:(e,t,r)=>{"use strict";r(4915),Object.create(null)},4103:(e,t,r)=>{"use strict";function n(e){if(!e||!e.data||!Array.isArray(e.data.catalog))return console.error("Unsupported marketplace response shape. Expected { data: { catalog: [...] } }.",e),{plugins:[],uiI18n:{},locale:null};const t=e.data.catalog,r=e.data.uiI18n||{},n=e.data.locale||null;if(0===t.length)return{plugins:[],uiI18n:r,locale:n};const i=t.map(e=>{var t,r;const n=e?.i18n?.description,i="string"==typeof n&&n?n:"object"==typeof e?.description&&null!==e.description?e.description["en-gb"]||Object.values(e.description)[0]||"":e?.description||"",o=e?.download||e?.download_url||e?.downloadUrl||"",s="object"==typeof e?.author&&null!==e.author?e.author.name||"":e?.author||"",a="object"==typeof e?.author&&null!==e.author&&e.author.url||"",c="object"==typeof e?.price&&null!==e.price?e.price.amount:void 0,l="object"==typeof e?.price&&null!==e.price?e.price.currency:void 0;return{...e,name:e?.name||"Unknown",slug:e?.slug||"",thumbnail:e?.thumbnail||"",description:i,download:o,author:s,authorUrl:a,priceAmount:c,priceCurrency:l,installed:null!==(t=e?.installed)&&void 0!==t&&t,activated:null!==(r=e?.activated)&&void 0!==r&&r,i18n:e?.i18n||{}}}),o=new Set;return{plugins:i.filter(e=>{const t=e.slug||e.name||JSON.stringify(e);return!o.has(t)&&(o.add(t),!0)}),uiI18n:r,locale:n}}r.d(t,{i:()=>n})},4469:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,noticeState:r,setNoticeState:a,handlePluginAction:c,cancelReload:l,uiI18n:u}=(0,i.D)();if(!r||!r.visible||r.pluginSlug!==e?.slug)return null;const p=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",h=p?`${p}assets/`:"",d="installed"===r.type,f="activated"===r.type,g=(e,t)=>e?e.replace("{0}",t||""):"",m=e?.name||"";return(0,n.createElement)("div",{className:"gv-notice gv-notice-success gv-p-lg gv-max-mob-pt-lg gv-mb-0 gv-mt-lg",style:{gridColumn:"1 / -1",width:"100%"}},(0,n.createElement)("img",{className:"gv-notice-icon",src:`${h}icons/success.svg`,alt:"Success"}),(0,n.createElement)("div",{className:"gv-notice-content"},(0,n.createElement)("div",{className:"gv-notice-title"},d&&g(u?.notifications?.pluginInstalled||"Plugin was installed.",m),f&&g(u?.notifications?.pluginActivated||"Plugin was activated.",m)),(0,n.createElement)("p",{className:"gv-text-sm"},d&&(u?.notifications?.activateNow||"Activate it now to start using it."),f&&g(u?.notifications?.manageInMyProducts||"{0} plugin was activated for this site. You can manage it on the My products page.",m))),d&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{c("activate",e,"product_detail")}},u?.activatePluginButton),f&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{(0,o.Mh)({buttonName:"Get started",buttonAction:"manage_product",plugin:e,context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}}),l();const t=(0,s.v)(e,!0);(0,s.J)(t)}},(0,n.createElement)("span",null,u?.featuredCta||"Get Started"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/arrow_forward.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-notice-close","aria-label":"Close",onClick:()=>{a({visible:!1,type:null,pluginSlug:null}),sessionStorage.removeItem("mp_success_notice")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/close.svg`})))}},4598:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(7979),l=r(488);function u({plugin:e,onClose:t,usePortal:r=!0,loading:u=!1}){const{assetsBaseUrl:p,useWPHandlers:h,pluginInAction:d,uiI18n:f,subscriptionStatus:g,isCheckingSubscription:m,setNoticeState:v,setErrorState:y}=(0,c.D)(),b=p||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",_=b?`${b}assets/icons/`:"";if(u){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-flex-col gv-items-start"},(0,n.createElement)("div",{className:"gv-flex gv-items-center gv-gap-xs"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"60px"}}))),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-sm gv-text-sm"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mb-sm",style:{marginBottom:"24px"}}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"80%"}})),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full",style:{marginTop:"75px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"70%"}})),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"120px",height:"32px"}})),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mt-md"}))))),(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"150px"}}))),[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-w-full"})))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"180px"}}),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"250px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{v(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null}),y(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null})},[e.slug,v,y]),(0,n.useEffect)(()=>{const e=()=>{v({visible:!1,type:null,pluginSlug:null}),y({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[v,y]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const w=e.bannerUrl||e.image||e.thumbnail||"https://gravity.group.one/guide-images/product-image@2x.png",k=e.name||"Product",S=e.i18n?.description||e.i18n?.subtitle||e.description||e.shortDescription||"No description available.",x=e.i18n?.subtitle,C="free"===e.licenseType,E=e.i18n?.freeTrialText||"",I=E&&""!==E.trim(),O=e.i18n?.freeTrialPeriod||"",N=O&&""!==O.trim(),A=N||I?f?.headings?.freeTrial||"Free trial*":(0,l.M)(e,f?.labels?.free||"Free",f),R=A===(f?.labels?.freeUntilRenewal||"Free until renewal"),M=(0,l.Tc)(e),T=(0,l.Dn)(e),P=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},L=P(e.i18n,"keyBenefitContent"),D=P(e.i18n,"keyFeatureContent"),F=[];if(e.i18n&&"object"==typeof e.i18n){let t=1;for(;e.i18n[`coreFeatureTitle${t}`]||e.i18n[`coreFeatureContent${t}`];){const r=e.i18n[`coreFeatureTitle${t}`],n=e.i18n[`coreFeatureContent${t}`];r&&""!==r.trim()&&n&&""!==n.trim()&&F.push({name:r,desc:n}),t++}}const U=D,j=L,B=F,$=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-flex-col gv-items-start"},(0,n.createElement)("a",{href:"#",onClick:r=>{if(r.preventDefault(),!d[e.slug])if("undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()},className:"gv-flex gv-items-center gv-gap-xs",role:"button","aria-label":"Go back",style:{opacity:d[e.slug]?.5:1,pointerEvents:d[e.slug]?"none":"auto",cursor:d[e.slug]?"not-allowed":"pointer"},"aria-disabled":d[e.slug]?"true":"false"},(0,n.createElement)("img",{style:{minWidth:"24px"},className:"gv-tile",src:`${_}arrow_back.svg`,alt:"Back to plugins"}),(0,n.createElement)("span",null,f.backButton)),(0,n.createElement)(s.A,{plugin:e}),(0,n.createElement)(a.A,{plugin:e})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},k),(0,n.createElement)("p",{className:"gv-text-sm"},S)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${w} 1x, ${w} 2x`}),(0,n.createElement)("img",{src:w,srcSet:`${w} 1x, ${w} 2x`,alt:`${k} image`})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},k),(0,n.createElement)("p",null,x)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},N||I?(0,n.createElement)("span",{className:"gv-price-text"},A):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("span",{className:"gv-price-text"},"premium"===e.licenseType&&null!==T?null!==T?T:M:A),!C&&!R&&A&&(0,n.createElement)("span",{className:"gv-period"},"/",f?.labels?.timeMonth))),N||I?(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},E)):!C&&A&&M&&null!==T&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},f.labels.untilRenewal," [",T,"]/",f?.labels?.timeMonth),(0,n.createElement)("div",{className:"gv-info"},f.labels.afterThat," [",M,"]/",f?.labels?.timeMonth))),h?(0,n.createElement)(o.A,{plugin:e}):e.download&&(0,n.createElement)("a",{href:e.download,download:!0,className:"gv-button gv-button-secondary"},"Download"))))),U.length>0&&(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},f?.keyFeatureHeading||e.i18n?.keyFeatureHeading))),U.map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},e)))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},j.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},f?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},j.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),B.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},f?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},B.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)($,document.body):$}},4677:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o({plugin:e}){const{assetsBaseUrl:t,errorState:r,setErrorState:o,uiI18n:s,plugins:a}=(0,i.D)(),c=e||a.find(e=>e.slug===r.pluginSlug),l=r&&r.visible&&r.pluginSlug===c?.slug;if((0,n.useEffect)(()=>{if(l){const e=setTimeout(()=>{h()},5e3);return()=>clearTimeout(e)}},[l]),!l)return null;const u=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/`:"",h=()=>{o({visible:!1,type:null,pluginSlug:null})},d="activate"===r.type,f="deactivate"===r.type,g="install"===r.type,m="delete"===r.type,v=(e,t)=>e?e.replace("{0}",t||""):"",y=c?.name||"";return(0,n.createElement)("div",{className:"gv-toast-container"},(0,n.createElement)("div",{className:"gv-toast gv-toast-alert gv-visible"},(0,n.createElement)("gv-icon",{className:"gv-notice-icon","aria-hidden":"true",src:`${p}icons/error.svg`}),(0,n.createElement)("div",{className:"gv-toast-content"},d&&v(s?.notifications?.pluginActivationFailed||"Couldn't activate plugin.",y),f&&v(s?.notifications?.pluginDeactivationFailed||"Couldn't deactivate plugin.",y),g&&v(s?.notifications?.pluginInstallationFailed||"Couldn't install plugin.",y),m&&v(s?.notifications?.pluginDeletionFailed||"Couldn't delete plugin.",y)),(0,n.createElement)("button",{type:"button",className:"gv-toast-close","aria-label":"Close",onClick:h},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}icons/close.svg`}))))}},4811:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualiser la page","ui.notifications.couldNotLoad":"Impossible de charger la page","ui.notifications.refreshPage":"Veuillez rafraîchir la page et contact notre support si le problème persiste."}')},4814:(e,t,r)=>{"use strict";r(1609),r(3804),r(9454),r(7565)},4889:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(1609),i=r.n(n),o=r(4103),s=(r(6530),r(8291)),a=r(4598),c=r(9962),l=r(1755),u=r(1174),p=r(7979),h=r(488),d=r(7008);function f(){const{apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:f,assetsBaseUrl:g,pluginInAction:m,setPluginInAction:v,fetchSubscriptionStatus:y,isOnecomBrand:b,plugins:_,setPlugins:w,uiI18n:k,setUiI18n:S,handlePluginAction:x,allPluginsActivated:C,setAllPluginsActivated:E,catalogError:I,setCatalogError:O,catalogLoading:N,setCatalogLoading:A,shouldShowProvision:R,isSpecialPlugin:M,shouldShowPlugin:T,isWpVersionSupported:P}=(0,p.D)(),[L,D]=("undefined"!=typeof window&&window.marketplaceConfig?.activePlugins&&window.marketplaceConfig.activePlugins,"undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor&&window.marketplaceConfig.activeThemeAuthor,(0,n.useState)({})),[F,U]=(0,n.useState)(null),j=(0,n.useRef)(!1),B=(0,n.useRef)(!1),$=(0,n.useRef)(null),z=(0,n.useRef)(null),q=(0,n.useRef)(null),V=(0,n.useRef)(!1),W=g||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",H=W?`${W}assets/icons/`:"",G="undefined"!=typeof window?new URLSearchParams(window.location.search).get("plugin"):null;(0,n.useEffect)(()=>{if(G&&_.length){const e=_.find(e=>e.slug===G);e&&U(e)}else G||U(null)},[G,_]),(0,n.useEffect)(()=>{const e=()=>{const e=new URLSearchParams(window.location.search).get("plugin");if(e){if(_.length){const t=_.find(t=>t.slug===e);t&&U(t)}}else U(null)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[_]);const{t:K}=(0,s.Bd)();(0,n.useEffect)(()=>{j.current||async function(){try{j.current=!0;const t=await fetch(`${e}`),r=await t.json();if(z.current=Date.now(),V.current=r.is_cached||!1,r&&!1===r.success)return(0,d.oe)({category:"marketplace_home",isContentRendered:!1}),O(!0),void A(!1);if(!r||!r.data||!r.data.catalog||Array.isArray(r.data.catalog)&&0===r.data.catalog.length)return console.error("API returned empty or blank response"),(0,d.oe)({category:"marketplace_home",isContentRendered:!1}),O(!0),void A(!1);const{plugins:n,uiI18n:i}=(0,o.i)(r);w(n),S(i),b&&n.filter(e=>M(e.slug)).forEach(e=>{y(e.slug)})}catch(e){(0,d.oe)({category:"marketplace_home",isContentRendered:!1,visibleConditionalProducts:[]}),O(!0)}finally{A(!1)}}()},[e,b,y,w]);const{visiblePlugins:J,visibleConditionalPlugins:Y}=i().useMemo(()=>{if(!_.length)return{visiblePlugins:[],visibleConditionalPlugins:[]};const e=new Map,t=[],r=!0===_.find(e=>"seo-by-rank-math"===e.slug)?.activated,n=!0===_.find(e=>"seo-by-rank-math-pro"===e.slug)?.activated;return _.forEach(t=>{e.has(t.slug)||!0===t.activated||("seo-by-rank-math"!==t.slug?"seo-by-rank-math-pro"!==t.slug?T(t)&&e.set(t.slug,t):r&&T(t)&&e.set(t.slug,t):r||n||!T(t)||e.set(t.slug,t))}),e.forEach((e,r)=>{e.rules&&Object.keys(e.rules).length>0&&T(e)&&t.push(r)}),{visiblePlugins:Array.from(e.values()),visibleConditionalPlugins:t}},[_,T]);(0,n.useEffect)(()=>{if(_.length>0){const e=0===J.length;E(e)}},[_,J,E]),(0,n.useEffect)(()=>{N||I||!(_.length>0)||G||B.current||(q.current=Date.now(),"true"===sessionStorage.getItem("mp_skip_page_view")?sessionStorage.removeItem("mp_skip_page_view"):(0,d.Yk)(z.current,q.current,V.current,Y),B.current=!0)},[N,I,_.length,G,Y]),(0,n.useEffect)(()=>{F&&G&&$.current!==F.slug&&(q.current=Date.now(),"true"===sessionStorage.getItem("mp_skip_page_view")?sessionStorage.removeItem("mp_skip_page_view"):(0,d.$B)(F,z.current,q.current,V.current),$.current=F.slug),G||($.current=null)},[F,G]);const Z=e=>{if(!e)return!1;const t="onecom"===("undefined"!=typeof window&&window.marketplaceConfig?.brand),r="seo-by-rank-math-pro"===e.slug||"seo-by-rank-math"===e.slug;return t&&r};if(N){if(G){const e="onecom"!==("undefined"!=typeof window&&window.marketplaceConfig?.brand)||"seo-by-rank-math-pro"!==G&&"seo-by-rank-math"!==G?a.A:c.A;return(0,n.createElement)(e,{plugin:null,onClose:()=>{},usePortal:!1,loading:!0})}return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg"},(0,n.createElement)("section",{className:"category-section"},(0,n.createElement)("div",{className:"gv-skeleton gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm",style:{width:"400px"}}),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-mb-md gv-desk-lg-grid-cols-3 gv-mt-md"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{key:t,className:"gv-card gv-gap-md gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius"},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-3 gv-tab-span-3"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"48px",height:"48px"}})),(0,n.createElement)("div",{className:"gv-desk-span-8 gv-tab-span-7 gv-span-7"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"80px"}})),(0,n.createElement)("div",{className:"gv-span-2 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"24px"}}))))),(0,n.createElement)("div",{className:"gv-skeleton gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm",style:{width:"400px"}}),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-mt-md"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{key:t+3,className:"gv-card gv-gap-md gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius"},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-3 gv-tab-span-3"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"48px",height:"48px"}})),(0,n.createElement)("div",{className:"gv-desk-span-8 gv-tab-span-7 gv-span-7"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"80px"}})),(0,n.createElement)("div",{className:"gv-span-2 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"24px"}})))))))}if(I)return(0,n.createElement)(l.A,null);if(!P("6.2"))return(0,n.createElement)(u.A,null);if(F&&G){const e=Z(F)?c.A:a.A;return(0,n.createElement)(e,{plugin:F,onClose:()=>{if(U(null),"undefined"!=typeof window&&window.history&&window.history.length>1)window.history.back();else{const e=new URL(window.location.href);e.searchParams.delete("plugin"),window.history.replaceState({},"",e.toString())}},usePortal:!1,loading:N})}const X=new Map;J.forEach(e=>{const t=Array.isArray(e.categories)&&e.categories.length?"object"==typeof e.categories[0]?e.categories[0]:{slug:String(e.categories[0]),title:String(e.categories[0]),description:null}:{slug:"Others",title:"Others",description:null},r=t.slug||t.title||"Others";X.has(r)||X.set(r,{info:t,plugins:[]}),X.get(r).plugins.push(e)});const Q=Array.from(X.entries()).filter(([e,{plugins:t}])=>t.length>0);return C?(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},k?.notifications?.allPluginsOwned),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},k?.text?.managePlugins),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.href="/wp-admin/plugins.php"}},(0,n.createElement)("span",null,k.viewProductsButton),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${H}/arrow_right.svg`})))):(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg"},Q.map(([e,{info:t,plugins:r}])=>(0,n.createElement)("section",{key:e,className:"category-section"},(0,n.createElement)("p",{className:"gv-text-bold gv-text-lg gv-mb-xs"},t.title||e),t.description&&(0,n.createElement)("p",{className:"gv-text-sm"},t.description),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-mt-md"},r.map(e=>{R(e);const t=e.i18n.freeTrialPeriod&&""!==e.i18n.freeTrialPeriod.trim()?e.i18n.freeTrialPeriod:k?.labels?.free||"Free",r=(0,h.M)(e,t,k),i=(0,h.Tc)(e),o=(0,h.Dn)(e);return(0,n.createElement)("div",{key:e.slug,className:"gv-card gv-gap-sm gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius ocmp-plugin-cards",onClick:t=>{U(e);const r=new URL(window.location.href);r.searchParams.set("plugin",e.slug),window.history.pushState({},"",r.toString())}},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-2 gv-tab-span-2"},(0,n.createElement)("img",{className:"gv-icon-tile",src:e.iconUrl||`${H}add_box.svg`,alt:e.name})),(0,n.createElement)("div",{className:"gv-desk-span-9 gv-tab-span-9 gv-span-9 gv-ml-sm"},(0,n.createElement)("div",{className:"gv-flex gv-flex-col gv-justify-between gv-h-full"},(0,n.createElement)("p",{className:"gv-text-sm gv-text-bold gv-mb-xs"},e.name),(0,n.createElement)("p",{className:"oc-card-content gv-text-on-alternative gv-mb-sm gv-text-sm gv-flex-1"}," ",e.i18n.listingDescription||e.i18n.subtitle," "),(0,n.createElement)("span",{className:"gv-caption-lg gv-text-bold"},(0,n.createElement)(n.Fragment,null,"premium"===e.licenseType&&o>0?null!==o?o:i:r,"free"!==e.licenseType&&r&&r!==t&&r!==(k?.labels?.freeUntilRenewal||"Free until renewal")&&(0,n.createElement)("span",{className:"gv-period"},"/",k?.labels?.timeMonth))))),(0,n.createElement)("div",{className:"gv-span-1 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-reset-button",style:{display:"inline-block"},"aria-label":`View details for ${e.name}`},(0,n.createElement)("img",{className:"gv-tile",src:`${H}arrow_forward.svg`,alt:`View ${e.name} details`,style:{minWidth:"24px"}}))))})))),F&&!G&&(()=>{const e=Z(F)?c.A:a.A;return(0,n.createElement)(e,{plugin:F,onClose:()=>U(null),loading:N})})())}},4915:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5036:(e,t,r)=>{"use strict";var n=r(2635),i=r(8291),o=r(7823),s=r(8491),a=r(5205),c=r(3591),l=r(3461),u=r(4811),p=r(7529),h=r(1199),d=r(333);const f={en_GB:{translation:o},da_DK:{translation:s},de_DE:{translation:a},es_ES:{translation:c},fi_FI:{translation:l},fr_FR:{translation:u},it_IT:{translation:p},nl_NL:{translation:h},no_NO:{translation:d},nb_NO:{translation:d},pt_PT:{translation:r(5383)},sv_SE:{translation:r(8300)},fi:{translation:l}};n.default.use(i.r9).init({resources:f,lng:"en_GB",fallbackLng:"en_GB",interpolation:{escapeValue:!1}})},5205:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Seite aktualisieren","ui.notifications.couldNotLoad":"Die Seite konnte nicht geladen werden","ui.notifications.refreshPage":"Bitte aktualisieren Sie die Seite und Kontakt Sie unser Support, falls das Problem weiterhin besteht."}')},5383:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Atualizar página","ui.notifications.couldNotLoad":"Não foi possível carregar a página","ui.notifications.refreshPage":"Atualize a página e contacte a nossa equipa de suporte se o problema persistir."}')},5771:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1609),i=r(4889),o=r(6027),s=r(3258),a=r(3526),c=r(7979);const l=()=>{const{allPluginsActivated:e,catalogError:t,catalogLoading:r,isWpVersionSupported:l}=(0,c.D)(),u=l("6.2"),[p,h]=(0,n.useState)("undefined"!=typeof window&&new URLSearchParams(window.location.search).get("plugin"));return(0,n.useEffect)(()=>{const e=()=>{const e="undefined"!=typeof window&&new URLSearchParams(window.location.search).get("plugin");h(!!e)};window.addEventListener("popstate",e);const t=window.history.pushState;window.history.pushState=function(...r){t.apply(this,r),e()};const r=window.history.replaceState;return window.history.replaceState=function(...t){r.apply(this,t),e()},()=>{window.removeEventListener("popstate",e),window.history.pushState=t,window.history.replaceState=r}},[]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.A,null),(0,n.createElement)("div",{className:"gv-activated"},(0,n.createElement)("div",{className:"marketplace-container gv-layout-product gv-surface-dim gv-w-max-container gv-mx-auto gv-p-fluid "},!p&&!t&&u&&(0,n.createElement)(o.A,{loading:r}),!p&&!e&&u&&(0,n.createElement)(s.A,{loading:r}),(0,n.createElement)(i.A,null))))},u=({apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:i,assetsBaseUrl:o})=>(0,n.createElement)(c.t,{apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:i,assetsBaseUrl:o},(0,n.createElement)(l,null))},5795:e=>{"use strict";e.exports=window.ReactDOM},6027:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);const o=({loading:e=!1})=>{const{assetsBaseUrl:t,uiI18n:r}=(0,i.D)(),o="https://wpaddon-static.group-cdn.one/images/wp/marketplace/banners/top-header-left-banner.png",s="https://wpaddon-static.group-cdn.one/images/wp/marketplace/banners/top-header-right-banner.png";return(0,n.createElement)("header",{className:"gv-product-header gv-product-banner gv-pt-fluid gv-items-stretch gv-justify-between gv-gap-lg gv-max-mob-pt-md"},(0,n.createElement)("div",{className:"gv-left-banner "+(e?"gv-h-full gv-w-full":"")},e?(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full"})):(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:o}),(0,n.createElement)("img",{src:o,alt:"Left banner"})))),(0,n.createElement)("div",{className:"gv-content gv-banner-content gv-max-mob-pt-0 gv-max-mob-pb-0 gv-desk-lg-text-center gv-tab-text-left gv-flex gv-flex-col gv-align-center gv-justify-center gv-pt-0"},e?(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mt-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mt-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-mt-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-mt-sm"})):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("h2",{className:"gv-banner-title"},r?.headings?.pageTitle),(0,n.createElement)("p",{className:"gv-banner-text gv-text-sm gv-mt-sm"},r?.text?.pageContent))),(0,n.createElement)("div",{className:"gv-right-banner gv-max-mob-pl-md "+(e?"gv-h-full gv-mt-0 gv-w-full":""),...e?{style:{transform:"translate(70px,5px)"}}:{}},e?(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full"})):(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:s}),(0,n.createElement)("img",{src:s,alt:"Product image"})))))}},6530:()=>{var e=Object.defineProperty,t=(t,r,n)=>(((t,r,n)=>{r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n})(t,"symbol"!=typeof r?r+"":r,n),n);const r={};async function n(e){if(r.hasOwnProperty(e))return r[e];let t;return t=e.startsWith("data:")||!("caches"in self)?fetch(e).then(e=>e.text()):caches.open("gravity").then(async t=>{let r=await t.match(e);return r||(r=await fetch(e),r.ok&&await t.put(e,r.clone())),r.text()}),r[e]=t,t}class i extends HTMLElement{static get observedAttributes(){return["src"]}fetchFlag(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchFlag(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchFlag(r)}}t(i,"TAG_NAME","gv-flag");class o extends HTMLElement{static get observedAttributes(){return["src"]}fetchIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIcon(r)}}t(o,"TAG_NAME","gv-icon");class s extends HTMLElement{static get observedAttributes(){return["src"]}fetchIllustration(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIllustration(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIllustration(r)}}t(s,"TAG_NAME","gv-illustration");class a extends HTMLElement{static get observedAttributes(){return["src"]}fetchIndicator(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIndicator(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIndicator(r)}}t(a,"TAG_NAME","gv-indicator");class c extends HTMLElement{static get observedAttributes(){return["src"]}fetchLoader(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLoader(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLoader(r)}}t(c,"TAG_NAME","gv-loader");class l extends HTMLElement{static get observedAttributes(){return["src"]}fetchLogo(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLogo(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLogo(r)}}t(l,"TAG_NAME","gv-logo");class u extends HTMLElement{static get observedAttributes(){return["src"]}fetchPayIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchPayIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchPayIcon(r)}}t(u,"TAG_NAME","gv-pay-icon");class p extends HTMLElement{static get observedAttributes(){return["src"]}fetchTile(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchTile(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchTile(r)}}function h(e,t){customElements.get(e)||customElements.define(e,t)}t(p,"TAG_NAME","gv-tile"),h(i.TAG_NAME,i),h(o.TAG_NAME,o),h(s.TAG_NAME,s),h(a.TAG_NAME,a),h(c.TAG_NAME,c),h(l.TAG_NAME,l),h(u.TAG_NAME,u),h(p.TAG_NAME,p)},6751:(e,t,r)=>{"use strict";var n;if(r.d(t,{A:()=>Hd}),"undefined"==typeof window){var i={hostname:""};n={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:i,referrer:""},screen:{width:0,height:0},location:i,addEventListener:function(){},removeEventListener:function(){}}}else n=window;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},v(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var k,S=Object.defineProperty,x=function(e,t,r){return function(e,t,r){return t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},C=Object.defineProperty,E=function(e,t,r){return function(e,t,r){return t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},I=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(I||{}),O={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},N={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},A={};function R(e){if(A[e])return A[e];var t=globalThis[e],r=t.prototype,n=e in O?O[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in N?N[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return A[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 l=c[e].prototype;return document.body.removeChild(a),l?A[e]=l:r}catch(e){return r}}var M={};function T(e,t,r){var n,i=e+"."+String(r);if(M[i])return M[i].call(t);var o=R(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(M[i]=s,s.call(t)):t[r]}var P=function(e){return T("Node",e,"childNodes")},L=function(e){return T("Node",e,"parentNode")},D=function(e){return T("Node",e,"parentElement")},F=function(e){return T("Node",e,"textContent")},U=function(e){return e&&"host"in e?T("ShadowRoot",e,"host"):null},j=function(e){return e&&"shadowRoot"in e?T("Element",e,"shadowRoot"):null};function B(e){return e.nodeType===e.ELEMENT_NODE}function $(e){var t=e&&"host"in e&&"mode"in e&&U(e)||null;return Boolean(t&&"shadowRoot"in t&&j(t)===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return V(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function V(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=q(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?te(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?te(i,t):i}var W=function(){function e(){E(this,"idNodeMap",new Map),E(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function H(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&G(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function G(e){return e.toLowerCase()}var K="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?G(t):null}function Y(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,X=/^(?:[a-z+]+:)?\/\//i,Q=/^www\..*/i,ee=/^(data:)([^,]*),(.*)/i;function te(e,t){return(e||"").replace(Z,function(e,r,n,i,o,s){var a,c=n||o||s,l=r||i||"";if(!c)return e;if(X.test(c)||Q.test(c))return"url("+l+c+l+")";if(ee.test(c))return"url("+l+c+l+")";if("/"===c[0])return"url("+l+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+l+")";var u=t.split("/"),p=c.split("/");u.pop();for(var h,d=b(p);!(h=d()).done;){var f=h.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+l+u.join("/")+l+")"})}function re(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ne,ie,oe=1,se=new RegExp("[^a-z0-9-_:]");function ae(){return oe++}var ce=/^[^ \t\n\r\u000c]+/,le=/^[, \t\n\r\u000c]+/,ue=new WeakMap;function pe(e,t){return t&&""!==t.trim()?he(e,t):t}function he(e,t){var r=ue.get(e);if(r||(r=e.createElement("a"),ue.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function de(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?pe(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(le),!(r>=t.length);){var o=n(ce);if(","===o.slice(-1))o=pe(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=pe(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?te(n,he(e)):"object"===t&&"data"===r?pe(e,n):n:pe(e,n):n}function fe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ge(L(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ge(L(e),t,r)}function me(e,t,r,n){var i;if(B(e)){if(!P(i=e).length)return!1}else{if(null===D(e))return!1;i=D(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ge(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 ve(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,l=void 0===c?{}:c,u=t.maskTextFn,p=t.maskInputFn,h=t.dataURLOptions,f=void 0===h?{}:h,g=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,b=void 0!==y&&y,_=t.cssCaptured,w=void 0!==_&&_,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:I.Document,childNodes:[],compatMode:e.compatMode}:{type:I.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,c=t.dataURLOptions,l=void 0===c?{}:c,u=t.inlineImages,p=t.recordCanvas,h=t.keepIframeSrcFn,f=t.newlyAddedElement,g=void 0!==f&&f,m=t.rootId,v=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,t.blockClass,t.blockSelector),y=function(e){if(d(e,HTMLFormElement))return"form";var t=G(e.tagName);return se.test(t)?"div":t}(e),b={},_=e.attributes.length,w=0;w<_;w++){var k=e.attributes[w];fe(y,k.name,k.value)||(b[k.name]=de(n,y,G(k.name),k.value))}if("link"===y&&i){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;S&&(x=q(S)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===y&&e.sheet){var C=q(e.sheet);C&&(e.childNodes.length>1&&(C=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=re(e,r),a=s.length/e.length,c=1;c2&&""===h[0]&&""!==n[c-1].textContent)d=s.indexOf(p,1);else if(1===h.length){if(p=p.substring(0,p.length-1),(h=s.split(p)).length<=1)return i.push(e),i;u=101}else u===l.length-1&&(d=s.indexOf(p));if(h.length>=2&&u>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var g=re(f).length;d=s.indexOf(p,g)}-1===d&&(d=h[0].length)}if(-1!==d){for(var m=Math.floor(d/a);m>0&&m50*n.length)return i.push(e),i;var v=re(e.substring(0,m),r);if(v.length===d){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}v.length",T=R.crossOrigin,P=function(){R.removeEventListener("load",P);try{ne.width=R.naturalWidth,ne.height=R.naturalHeight,ie.drawImage(R,0,0),b.rr_dataURL=ne.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?P():R.addEventListener("load",P));console.warn("Cannot inline img src="+M+"! Error: "+e)}"anonymous"===R.crossOrigin&&(T?b.crossOrigin=T:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?P():R.addEventListener("load",P)}if("audio"===y||"video"===y){var L=b;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var D=e.getBoundingClientRect(),F=D.width,U=D.height;b={class:b.class,rr_width:F+"px",rr_height:U+"px"}}"iframe"!==y||h(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:I.Element,tagName:y,attributes:b,childNodes:[],isSVG:(j=e,Boolean("svg"===j.tagName||j.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var j}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:b,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=L(e),a=s&&s.tagName,c="",l="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?c="SCRIPT_PLACEHOLDER":o||(c=F(e),l&&c&&(c=te(c,he(t.doc)))),!l&&!u&&c&&r&&(c=n?n(c,D(e)):c.replace(/[\S]/g,"*")),{type:I.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:u,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:I.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:I.Comment,textContent:F(e)||"",rootId:k};default:return!1}}function ye(e){return null==e?"":e.toLowerCase()}function be(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,l=void 0!==c&&c,u=t.inlineStylesheet,p=void 0===u||u,h=t.maskInputOptions,d=void 0===h?{}:h,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,w=void 0!==_&&_,k=t.recordCanvas,S=void 0!==k&&k,x=t.onSerialize,C=t.onIframeLoad,E=t.iframeLoadTimeout,O=void 0===E?5e3:E,N=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,R=void 0===A?5e3:A,M=t.keepIframeSrcFn,T=void 0===M?function(){return!1}:M,D=t.newlyAddedElement,F=void 0!==D&&D,U=t.cssCaptured,q=void 0!==U&&U,V=t.needsMask,W=t.preserveWhiteSpace,H=void 0===W||W;V||(V=me(e,s,a,void 0===V));var G,K=ve(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:F,cssCaptured:q});if(!K)return console.warn(e,"not serialized"),null;G=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===I.Comment)return!0;if(e.type===I.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"===Y(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(K,m)||!H&&K.type===I.Text&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ae();var J=Object.assign(K,{id:G});if(n.add(e,J),-2===G)return null;x&&x(e);var Z=!l;if(J.type===I.Element){Z=Z&&!J.needBlock,delete J.needBlock;var X=j(e);X&&z(X)&&(J.isShadowHost=!0)}if((J.type===I.Document||J.type===I.Element)&&Z){m.headWhitespace&&J.type===I.Element&&"head"===J.tagName&&(H=!1);var Q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:R,keepIframeSrcFn:T,cssCaptured:!1};if(J.type===I.Element&&"textarea"===J.tagName&&void 0!==J.attributes.value);else{J.type===I.Element&&void 0!==J.attributes._cssText&&"string"==typeof J.attributes._cssText&&(Q.cssCaptured=!0);for(var ee,te=b(Array.from(P(e)));!(ee=te()).done;){var re=be(ee.value,Q);re&&J.childNodes.push(re)}}var ne=null;if(B(e)&&(ne=j(e)))for(var ie,oe=b(Array.from(P(ne)));!(ie=oe()).done;){var se=be(ie.value,Q);se&&(z(ne)&&(se.isShadow=!0),J.childNodes.push(se))}}var ce=L(e);return ce&&$(ce)&&z(ce)&&(J.isShadow=!0),J.type===I.Element&&"iframe"===J.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var r=be(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:R,keepIframeSrcFn:T});r&&C(e,r)}},O),J.type===I.Element&&"link"===J.tagName&&"string"==typeof J.attributes.rel&&("stylesheet"===J.attributes.rel||"preload"===J.attributes.rel&&"string"==typeof J.attributes.href&&"css"===Y(J.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(N){var t=be(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:R,keepIframeSrcFn:T});t&&N(e,t)}},R),J}function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return d(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ke={exports:{}},Se=String,xe=function(){return{isColorSupported:!1,reset:Se,bold:Se,dim:Se,italic:Se,underline:Se,inverse:Se,hidden:Se,strikethrough:Se,black:Se,red:Se,green:Se,yellow:Se,blue:Se,magenta:Se,cyan:Se,white:Se,gray:Se,bgBlack:Se,bgRed:Se,bgGreen:Se,bgYellow:Se,bgBlue:Se,bgMagenta:Se,bgCyan:Se,bgWhite:Se}};ke.exports=xe(),ke.exports.createColors=xe;var Ce=ke.exports,Ee=we(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ie=Ce,Oe=Ee,Ne=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ie.isColorSupported),Oe&&e&&(r=Oe(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=Ie.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),Ae=Ne;Ne.default=Ne;var Re={};Re.isClean=Symbol("isClean"),Re.my=Symbol("my");var Me={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Te=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Pe=Te;Te.default=Te;var Le=Pe;function De(e,t){new Le(t).stringify(e)}var Fe=De;De.default=De;var Ue=Re.isClean,je=Re.my,Be=Ae,$e=Pe,ze=Fe;function qe(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return qe(e,r)}):("object"===o&&null!==i&&(i=qe(i)),r[n]=i)}return r}var Ve=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[je]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=qe(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 Be(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[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Xe(e),Ye(e))return this.mapFile=e,Ze(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Ke))return Je.fromSourceMap(t).toString();if(d(t,Je))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Qe(Xe(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}(),tt=et;et.default=et;var rt=Ee.SourceMapConsumer,nt=Ee.SourceMapGenerator,it=Ee.fileURLToPath,ot=Ee.pathToFileURL,st=Ee.isAbsolute,at=Ee.resolve,ct=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},lt=Ee,ut=Ae,pt=tt,ht=Symbol("fromOffsetCache"),dt=Boolean(rt&&nt),ft=Boolean(at&&st),gt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ft||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=at(t.from)),ft&&dt){var r=new pt(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new ut(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new ut(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ot&&(i.input.url=ot(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[ht])t=this[ht];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:at(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=st(a.source)?ot(a.source):new URL(a.source,this.map.consumer().sourceRoot||ot(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!it)throw new Error("file: protocol is not available in this PostCSS build");c.file=it(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),Et&&Ct&&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=yt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yt({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new yt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?bt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=bt(wt(r,this.mapOpts.annotation)));var n=_t(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 xt(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(St){var r=St(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ot=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(We),Nt=Ot;Ot.default=Ot;var At,Rt,Mt,Tt,Pt=Re.isClean,Lt=Re.my,Dt=Ge,Ft=Nt;function Ut(e){return e.map(function(e){return e.nodes&&(e.nodes=Ut(e.nodes)),delete e.source,e})}function jt(e){if(e[Pt]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)jt(t.value)}var Bt=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(We);Bt.registerParse=function(e){At=e},Bt.registerRule=function(e){Rt=e},Bt.registerAtRule=function(e){Mt=e},Bt.registerRoot=function(e){Tt=e};var $t=Bt;Bt.default=Bt,Bt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Mt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Rt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Dt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ft.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tt.prototype),e[Lt]=!0,e.nodes&&e.nodes.forEach(function(e){Bt.rebuild(e)})};var zt,qt,Vt=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new zt(new qt,this,e).stringify()},t}($t);Vt.registerLazyResult=function(e){zt=e},Vt.registerProcessor=function(e){qt=e};var Wt=Vt;Vt.default=Vt;var Ht=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}(),Gt=Ht;Ht.default=Ht;var Kt=Gt,Jt=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 Kt(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Yt=Jt;Jt.default=Jt;var Zt="'".charCodeAt(0),Xt='"'.charCodeAt(0),Qt="\\".charCodeAt(0),er="/".charCodeAt(0),tr="\n".charCodeAt(0),rr=" ".charCodeAt(0),nr="\f".charCodeAt(0),ir="\t".charCodeAt(0),or="\r".charCodeAt(0),sr="[".charCodeAt(0),ar="]".charCodeAt(0),cr="(".charCodeAt(0),lr=")".charCodeAt(0),ur="{".charCodeAt(0),pr="}".charCodeAt(0),hr=";".charCodeAt(0),dr="*".charCodeAt(0),fr=":".charCodeAt(0),gr="@".charCodeAt(0),mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,vr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yr=/.[\r\n"'(/\\]/,br=/[\da-f]/i,_r=$t,wr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Sr(new xr,this,e).stringify()},t}(Cr);Er.registerLazyResult=function(e){Sr=e},Er.registerProcessor=function(e){xr=e};var Ir=Er;Er.default=Er,Cr.registerRoot(Er);var Or={comma:function(e){return Or.split(e,[","],!0)},space:function(e){return Or.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},Nr=Or;Or.default=Or;var Ar=$t,Rr=Nr,Mr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return Rr.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}(Ar),Tr=Mr;Mr.default=Mr,Ar.registerRule(Mr);var Pr=Ge,Lr=Nt,Dr=kr,Fr=Ir,Ur=Tr,jr={empty:!0,space:!0},Br=function(){function e(e){this.input=e,this.root=new Fr,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 Dr;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Lr;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case tr:case rr:case ir:case or:case nr:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===rr||r===tr||r===ir||r===or||r===nr);p=["space",h.slice(g,n)],g=n-1;break;case sr:case ar:case ur:case pr:case fr:case hr:case lr:var b=String.fromCharCode(r);p=[b,b,g];break;case cr:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Zt&&u!==Xt&&u!==rr&&u!==tr&&u!==ir&&u!==nr&&u!==or){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||yr.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Zt:case Xt:i=r===Zt?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case gr:mr.lastIndex=g+1,mr.test(h),n=0===mr.lastIndex?h.length-1:mr.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Qt:for(n=g,s=!0;h.charCodeAt(n+1)===Qt;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==er&&r!==rr&&r!==tr&&r!==ir&&r!==or&&r!==nr&&(n+=1,br.test(h.charAt(n)))){for(;br.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===rr&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===er&&h.charCodeAt(g+1)===dr?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(vr.lastIndex=g+1,vr.test(h),n=0===vr.lastIndex?h.length-1:vr.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Pr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ur;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!on(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return on(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Jr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Kr(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(on(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Hr];)n[Hr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(on(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=ui.isColorSupported),pi&&e&&(r=pi(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=ui.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),di=hi;hi.default=hi;var fi={};fi.isClean=Symbol("isClean"),fi.my=Symbol("my");var gi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},mi=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),vi=mi;mi.default=mi;var yi=vi;function bi(e,t){new yi(t).stringify(e)}var _i=bi;bi.default=bi;var wi=fi.isClean,ki=fi.my,Si=di,xi=vi,Ci=_i;function Ei(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ei(e,r)}):("object"===o&&null!==i&&(i=Ei(i)),r[n]=i)}return r}var Ii=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wi]=!1,this[ki]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=Ei(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 Si(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[wi]){this[wi]=!1;for(var e=this;e=e.parent;)e[wi]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Li(e),Ti(e))return this.mapFile=e,Pi(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Ri))return Mi.fromSourceMap(t).toString();if(d(t,Mi))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Di(Li(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}(),Ui=Fi;Fi.default=Fi;var ji=li.SourceMapConsumer,Bi=li.SourceMapGenerator,$i=li.fileURLToPath,zi=li.pathToFileURL,qi=li.isAbsolute,Vi=li.resolve,Wi=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hi=li,Gi=di,Ki=Ui,Ji=Symbol("fromOffsetCache"),Yi=Boolean(ji&&Bi),Zi=Boolean(Vi&&qi),Xi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Zi||/^\w+:\/\//.test(t.from)||qi(t.from)?this.file=t.from:this.file=Vi(t.from)),Zi&&Yi){var r=new Ki(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new Gi(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new Gi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(zi&&(i.input.url=zi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ji])t=this[Ji];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Vi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=qi(a.source)?zi(a.source):new URL(a.source,this.map.consumer().sourceRoot||zi(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!$i)throw new Error("file: protocol is not available in this PostCSS build");c.file=$i(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),lo&&co&&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=to.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new to({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new to({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ro(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ro(io(r,this.mapOpts.annotation)));var n=no(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 ao(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(so){var r=so(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===oo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),po=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(Oi),ho=po;po.default=po;var fo,go,mo,vo,yo=fi.isClean,bo=fi.my,_o=Ai,wo=ho;function ko(e){return e.map(function(e){return e.nodes&&(e.nodes=ko(e.nodes)),delete e.source,e})}function So(e){if(e[yo]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)So(t.value)}var xo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(Oi);xo.registerParse=function(e){fo=e},xo.registerRule=function(e){go=e},xo.registerAtRule=function(e){mo=e},xo.registerRoot=function(e){vo=e};var Co=xo;xo.default=xo,xo.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,mo.prototype):"rule"===e.type?Object.setPrototypeOf(e,go.prototype):"decl"===e.type?Object.setPrototypeOf(e,_o.prototype):"comment"===e.type?Object.setPrototypeOf(e,wo.prototype):"root"===e.type&&Object.setPrototypeOf(e,vo.prototype),e[bo]=!0,e.nodes&&e.nodes.forEach(function(e){xo.rebuild(e)})};var Eo,Io,Oo=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Eo(new Io,this,e).stringify()},t}(Co);Oo.registerLazyResult=function(e){Eo=e},Oo.registerProcessor=function(e){Io=e};var No=Oo;Oo.default=Oo;var Ao=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}(),Ro=Ao;Ao.default=Ao;var Mo=Ro,To=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 Mo(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Po=To;To.default=To;var Lo="'".charCodeAt(0),Do='"'.charCodeAt(0),Fo="\\".charCodeAt(0),Uo="/".charCodeAt(0),jo="\n".charCodeAt(0),Bo=" ".charCodeAt(0),$o="\f".charCodeAt(0),zo="\t".charCodeAt(0),qo="\r".charCodeAt(0),Vo="[".charCodeAt(0),Wo="]".charCodeAt(0),Ho="(".charCodeAt(0),Go=")".charCodeAt(0),Ko="{".charCodeAt(0),Jo="}".charCodeAt(0),Yo=";".charCodeAt(0),Zo="*".charCodeAt(0),Xo=":".charCodeAt(0),Qo="@".charCodeAt(0),es=/[\t\n\f\r "#'()/;[\\\]{}]/g,ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rs=/.[\r\n"'(/\\]/,ns=/[\da-f]/i,is=Co,os=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new as(new cs,this,e).stringify()},t}(ls);us.registerLazyResult=function(e){as=e},us.registerProcessor=function(e){cs=e};var ps=us;us.default=us,ls.registerRoot(us);var hs={comma:function(e){return hs.split(e,[","],!0)},space:function(e){return hs.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},ds=hs;hs.default=hs;var fs=Co,gs=ds,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return gs.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}(fs),vs=ms;ms.default=ms,fs.registerRule(ms);var ys=Ai,bs=ho,_s=ss,ws=ps,ks=vs,Ss={empty:!0,space:!0},xs=function(){function e(e){this.input=e,this.root=new ws,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 _s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new bs;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case jo:case Bo:case zo:case qo:case $o:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===Bo||r===jo||r===zo||r===qo||r===$o);p=["space",h.slice(g,n)],g=n-1;break;case Vo:case Wo:case Ko:case Jo:case Xo:case Yo:case Go:var b=String.fromCharCode(r);p=[b,b,g];break;case Ho:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Lo&&u!==Do&&u!==Bo&&u!==jo&&u!==zo&&u!==$o&&u!==qo){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Fo;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||rs.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Lo:case Do:i=r===Lo?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Fo;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case Qo:es.lastIndex=g+1,es.test(h),n=0===es.lastIndex?h.length-1:es.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Fo:for(n=g,s=!0;h.charCodeAt(n+1)===Fo;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==Uo&&r!==Bo&&r!==jo&&r!==zo&&r!==qo&&r!==$o&&(n+=1,ns.test(h.charAt(n)))){for(;ns.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===Bo&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===Uo&&h.charCodeAt(g+1)===Zo?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(ts.lastIndex=g+1,ts.test(h),n=0===ts.lastIndex?h.length-1:ts.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new ys;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ks;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!zs(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return zs(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ts;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ms(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(zs(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[As];)n[As]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(zs(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndext?(n&&(clearTimeout(n),n=null),i=c,e.apply(u,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,s)},l))}}function sc(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return sc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ic=new Proxy(ic,{get:function(e,t,r){return"map"===t&&console.error(nc),Reflect.get(e,t,r)}}));var ac=Date.now;function cc(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=Ya(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=Ya(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function lc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Ya(e):null}function hc(e,t,r,n){if(!e)return!1;var i=pc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(ge(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function dc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function fc(e,t){if($(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Ja(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||fc(n,t))}function gc(e){return Boolean(e.changedTouches)}function mc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function vc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function yc(e){return!!e&&(d(e,Fa)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(tc(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ac=function(){return(new Date).getTime()});var bc=function(){function e(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function _c(e){var t,r=null;return"getRootNode"in e&&(null==(t=Qa(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ec(Qa(e))&&(r=ec(Qa(e))),r}function wc(e){var t=e.ownerDocument;return!!t&&(Xa(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=_c(r);)r=t;return r}(e);return Xa(t,r)}(e))}var kc=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(kc||{}),Sc=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Sc||{}),xc=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(xc||{}),Cc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Cc||{}),Ec=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ec||{}),Ic=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Ic||{}),Oc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Oc||{});function Nc(e){return"__ln"in e}var Ac,Rc=function(){function e(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case kc.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:kc.IncrementalSnapshot,data:{source:Sc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case kc.Meta:case kc.Load:case kc.DomContentLoaded:return!1;case kc.Plugin:return t;case kc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case kc.IncrementalSnapshot:switch(t.data.source){case Sc.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 Sc.Drag:case Sc.TouchMove:case Sc.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sc.ViewportResize:return!1;case Sc.MediaInteraction:case Sc.MouseInteraction:case Sc.Scroll:case Sc.CanvasMutation:case Sc.Input:return this.replaceIds(t.data,e,["id"]),t;case Sc.StyleSheetRule:case Sc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sc.Font:return t;case Sc.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Sc.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=b(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Oc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Qc=function(){function e(e){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(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(z(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=$c(u({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(zc(u({},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(ec(e))),r.restoreHandlers.push(Gc({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(Ga(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=tc(this);return o&&wc(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),el="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tl="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rl=0;rl<64;rl++)tl[el.charCodeAt(rl)]=rl;var nl=new Map,il=function(e,t,r){if(e&&(al(e,t)||"object"===(void 0===e?"undefined":m(e)))){var n=function(e,t){var r=nl.get(e);return r||(r=new Map,nl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function ol(e,t,r){return d(e,Array)?e.map(function(e){return ol(e,t,r)}):null===e?e:d(e,Float32Array)||d(e,Float64Array)||d(e,Int32Array)||d(e,Uint32Array)||d(e,Uint8Array)||d(e,Uint16Array)||d(e,Int16Array)||d(e,Int8Array)||d(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:d(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t>2],i+=el[(3&r[t])<<4|r[t+1]>>4],i+=el[(15&r[t+1])<<2|r[t+2]>>6],i+=el[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:d(e,DataView)?{rr_type:e.constructor.name,args:[ol(e.buffer,t,r),e.byteOffset,e.byteLength]}:d(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:d(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:d(e,ImageData)?{rr_type:e.constructor.name,args:[ol(e.data,t,r),e.width,e.height]}:al(e,t)||"object"===(void 0===e?"undefined":m(e))?{rr_type:e.constructor.name,index:il(e,t,r)}:e}var sl=function(e,t,r){return e.map(function(e){return ol(e,t,r)})},al=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return d(e,t[r])}))};function cl(e,t,r,n){var i=[];try{var o=Ga(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),bl=function(){function e(){x(this,"nodeMap",new WeakMap),x(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}(),_l=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var wl=document.createElement("iframe");document.body.appendChild(wl),Array.from=(null==(k=wl.contentWindow)?void 0:k.Array.from)||Array.from,document.body.removeChild(wl)}}catch(e){console.debug("Unable to override Array.from",e)}var kl,Sl,xl=new W;function Cl(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,l=void 0===c?"rr-ignore":c,p=e.ignoreSelector,h=void 0===p?null:p,d=e.maskTextClass,f=void 0===d?"rr-mask":d,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,x=e.maskTextFn,C=e.hooks,E=e.packFn,I=e.sampling,O=void 0===I?{}:I,N=e.dataURLOptions,A=void 0===N?{}:N,R=e.mousemoveWait,M=e.recordDOM,T=void 0===M||M,P=e.recordCanvas,L=void 0!==P&&P,D=e.recordCrossOriginIframes,F=void 0!==D&&D,U=e.recordAfter,j=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,B=e.userTriggeredOnInput,$=void 0!==B&&B,z=e.collectFonts,q=void 0!==z&&z,V=e.inlineImages,H=void 0!==V&&V,G=e.plugins,K=e.keepIframeSrcFn,J=void 0===K?function(){return!1}:K,Y=e.ignoreCSSAttributes,Z=void 0===Y?new Set([]):Y,X=e.errorHandler;Ac=X;var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw new Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==R&&void 0===O.mousemove&&(O.mousemove=R),xl.reset();var te,re=!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!==w?w:{password:!0},ne=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k,headTitleMutations:"all"===k}:k||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ie=0,oe=function(e){for(var t,r=b(G||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return E&&!ee&&(e=E(e)),e};fl=function(e,i){var o,s=e;if(s.timestamp=ac(),!(null==(o=jc[0])?void 0:o.isFrozen())||s.type===kc.FullSnapshot||s.type===kc.IncrementalSnapshot&&s.data.source===Sc.Mutation||jc.forEach(function(e){return e.unfreeze()}),Q)null==t||t(oe(s),i);else if(ee){var a={type:"rrweb",event:oe(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===kc.FullSnapshot)te=s,ie=0;else if(s.type===kc.IncrementalSnapshot){if(s.data.source===Sc.Mutation&&s.data.isAttachIframe)return;ie++;var c=n&&ie>=n,l=r&&s.timestamp-te.timestamp>r;(c||l)&&gl(!0)}};for(var se,ae=function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Mutation},e)})},ce=function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Scroll},e)})},le=function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.CanvasMutation},e)})},ue=new yl({mutationCb:ae,adoptedStyleSheetCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.AdoptedStyleSheet},e)})}}),pe=new Xc({mirror:xl,mutationCb:ae,stylesheetManager:ue,recordCrossOriginIframes:F,wrappedEmit:fl}),he=b(G||[]);!(se=he()).done;){var de=se.value;de.getMirror&&de.getMirror({nodeMirror:xl,crossOriginIframeMirror:pe.crossOriginIframeMirror,crossOriginIframeStyleMirror:pe.crossOriginIframeStyleMirror})}var fe=new bl;ml=new vl({recordCanvas:L,mutationCb:le,win:window,blockClass:o,blockSelector:a,mirror:xl,sampling:O.canvas,dataURLOptions:A});var ge=new Qc({mutationCb:ae,scrollCb:ce,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:re,dataURLOptions:A,maskTextFn:x,maskInputFn:S,recordCanvas:L,inlineImages:H,sampling:O,slimDOMOptions:ne,iframeManager:pe,stylesheetManager:ue,canvasManager:ml,keepIframeSrcFn:J,processedNodeManager:fe},mirror:xl});gl=function(e){if(void 0===e&&(e=!1),T){fl({type:kc.Meta,data:{href:window.location.href,width:uc(),height:lc()}},e),ue.reset(),ge.init(),jc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new W:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,c=r.maskTextSelector,l=r.inlineStylesheet,u=r.inlineImages,p=r.recordCanvas,h=r.maskAllInputs,d=void 0!==h&&h,f=r.slimDOM,g=void 0!==f&&f,m=r.keepIframeSrcFn;return be(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===c?null:c,skipChild:!1,inlineStylesheet:void 0===l||l,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==u&&u,recordCanvas:void 0!==p&&p,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===m?function(){return!1}:m,newlyAddedElement:!1})}(document,{mirror:xl,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:re,maskTextFn:x,maskInputFn:S,slimDOM:ne,dataURLOptions:A,recordCanvas:L,inlineImages:H,onSerialize:function(e){mc(e,xl)&&pe.addIframe(e),vc(e,xl)&&ue.trackLinkElement(e),yc(e)&&ge.addShadowRoot(tc(e),document)},onIframeLoad:function(e,t){pe.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ue.attachLinkElement(e,t)},keepIframeSrcFn:J});if(!t)return console.warn("Failed to snapshot the document");fl({type:kc.FullSnapshot,data:{node:t,initialOffset:cc(window)}},e),jc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,xl.getId(document))}};try{var me=[],ve=function(e){var t;return Uc(Kc)({mutationCb:ae,mousemoveCb:function(e,t){return fl({type:kc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.MouseInteraction},e)})},scrollCb:ce,viewportResizeCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.ViewportResize},e)})},inputCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Input},e)})},mediaInteractionCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.MediaInteraction},e)})},styleSheetRuleCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.StyleSheetRule},e)})},styleDeclarationCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.StyleDeclaration},e)})},canvasMutationCb:le,fontCb:function(e){return fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Font},e)})},selectionCb:function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.Selection},e)})},customElementCb:function(e){fl({type:kc.IncrementalSnapshot,data:u({source:Sc.CustomElement},e)})},blockClass:o,ignoreClass:l,ignoreSelector:h,maskTextClass:f,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:y,sampling:O,recordDOM:T,recordCanvas:L,inlineImages:H,userTriggeredOnInput:$,collectFonts:q,doc:e,maskInputFn:S,maskTextFn:x,keepIframeSrcFn:J,blockSelector:a,slimDOMOptions:ne,dataURLOptions:A,mirror:xl,iframeManager:pe,stylesheetManager:ue,shadowDomManager:ge,processedNodeManager:fe,canvasManager:ml,ignoreCSSAttributes:Z,plugins:(null==(t=null==G?void 0:G.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return fl({type:kc.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};pe.addLoadListener(function(e){try{me.push(ve(e.contentDocument))}catch(e){console.warn(e)}});var ye=function(){gl(),me.push(ve(document)),_l=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(me.push(rc("DOMContentLoaded",function(){fl({type:kc.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&ye()})),me.push(rc("load",function(){fl({type:kc.Load,data:{}}),"load"===j&&ye()},window))),function(){me.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),fe.destroy(),_l=!1,Ac=void 0}}catch(e){console.warn(e)}}Cl.addCustomEvent=function(e,t){if(!_l)throw new Error("please add custom event after start recording");fl({type:kc.Custom,data:{tag:e,payload:t}})},Cl.freezePage=function(){jc.forEach(function(e){return e.freeze()})},Cl.takeFullSnapshot=function(e){if(!_l)throw new Error("please take full snapshot after start recording");gl(e)},Cl.mirror=xl,(Sl=kl||(kl={}))[Sl.NotStarted=0]="NotStarted",Sl[Sl.Running=1]="Running",Sl[Sl.Stopped=2]="Stopped",Cl.addCustomEvent,Cl.freezePage,Cl.takeFullSnapshot;var El=Object.defineProperty,Il=function(e,t,r){return function(e,t,r){return t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},Ol=function(){function e(e){Il(this,"fileName"),Il(this,"functionName"),Il(this,"lineNumber"),Il(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}(),Nl=/(^|@)\S+:\d+/,Al=/^\s*at .*(\S+:\d+|\(native\))/m,Rl=/^(eval@)?(\[native code])?$/,Ml={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Al)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Al)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new Ol({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Rl)},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 Ol({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ol({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ol({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Tl(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Pl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ll(e,t){if(0===t)return!0;for(var r,n=b(Object.keys(e));!(r=n()).done;){var i=r.value;if(Pl(e[i])&&Ll(e[i],t-1))return!0}return!1}function Dl(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(Pl(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Pl(s)&&Ll(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":m(t)))return t.toString()+"n";if(d(t,Event)){var a={};for(var c in t){var l=t[c];Array.isArray(l)?a[c]=Tl(l.length?l[0]:null):a[c]=l}return a}return d(t,Node)?d(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:d(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var Fl={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 Ul(e,t,r){var n,i=r?Object.assign({},Fl,r):Fl,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var l=function(t){var r=t.message,n=t.error,o=Ml.parse(n).map(function(e){return e.toString()}),s=[Dl(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",l),c.push(function(){t.removeEventListener("error",l)});var u=function(t){var r,n;d(t.reason,Error)?n=[Dl("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Dl("Uncaught (in promise)",i.stringifyOptions),Dl(t.reason,i.stringifyOptions)]);var o=Ml.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",u),c.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var p,h=b(i.level);!(p=h()).done;){var f=p.value;c.push(g(n,f))}return function(){c.forEach(function(e){return e()})};function g(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var c=t[o],l=function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),l=0;l0&&Wl(Gl,r))}catch(e){Yl.call(new Xl(r),e)}}}function Yl(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Wl(Gl,t))}function Zl(e,t,r,n){for(var i=0;i0&&(t[r]=e)}),t},Tu.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Tu.isArray(e)?(r=[],Tu.each(e,function(e){r.push(Tu.truncate(e,t))})):Tu.isObject(e)?(r={},Tu.each(e,function(e,n){r[n]=Tu.truncate(e,t)})):r=e,r},Tu.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,l=i,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",u=[],"[object Array]"===bu.apply(p)){for(c=p.length,o=0;o="0"&&iu<="9";)t+=iu,lu();if("."===iu)for(t+=".";lu()&&iu>="0"&&iu<="9";)t+=iu;if("e"===iu||"E"===iu)for(t+=iu,lu(),"-"!==iu&&"+"!==iu||(t+=iu,lu());iu>="0"&&iu<="9";)t+=iu,lu();if(e=+t,isFinite(e))return e;cu("Bad number")},pu=function(){var e,t,r,n="";if('"'===iu)for(;lu();){if('"'===iu)return lu(),n;if("\\"===iu)if(lu(),"u"===iu){for(r=0,t=0;t<4&&(e=parseInt(lu(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof au[iu])break;n+=au[iu]}else n+=iu}cu("Bad string")},hu=function(){for(;iu&&iu<=" ";)lu()},su=function(){switch(hu(),iu){case"{":return function(){var e,t={};if("{"===iu){if(lu("{"),hu(),"}"===iu)return lu("}"),t;for(;iu;){if(e=pu(),hu(),lu(":"),Object.hasOwnProperty.call(t,e)&&cu('Duplicate key "'+e+'"'),t[e]=su(),hu(),"}"===iu)return lu("}"),t;lu(","),hu()}}cu("Bad object")}();case"[":return function(){var e=[];if("["===iu){if(lu("["),hu(),"]"===iu)return lu("]"),e;for(;iu;){if(e.push(su()),hu(),"]"===iu)return lu("]"),e;lu(","),hu()}}cu("Bad array")}();case'"':return pu();case"-":return uu();default:return iu>="0"&&iu<="9"?uu():function(){switch(iu){case"t":return lu("t"),lu("r"),lu("u"),lu("e"),!0;case"f":return lu("f"),lu("a"),lu("l"),lu("s"),lu("e"),!1;case"n":return lu("n"),lu("u"),lu("l"),lu("l"),null}cu('Unexpected "'+iu+'"')}()}},function(e){var t;return ou=e,nu=0,iu=" ",t=su(),hu(),iu&&cu("Syntax error"),t}),Tu.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=Tu.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Tu.UUID=function(){try{return n.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",Tu.map(e,function(e){return e.toString(16)}).join("")}};var ju=["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"];Tu.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(t){if(!Su.getElementsByTagName)return[];var n,i,o,s,a,c,l,u,p,h,d=t.split(" "),f=[Su];for(c=0;c-1){o=(i=n.split("#"))[0];var g=i[1],m=Su.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];f=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,l=0;l-1};break;default:b=function(e){return e.getAttribute(_)}}for(f=[],h=0,l=0;l=3?t[2]:""},currentUrl:function(){return n.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Tu.extend(Tu.strip_empty_properties({$os:Tu.info.os(),$browser:Tu.info.browser(Eu,ku.vendor,xu),$referrer:Su.referrer,$referring_domain:Tu.info.referringDomain(Su.referrer),$device:Tu.info.device(Eu)}),{$current_url:Tu.info.currentUrl(),$browser_version:Tu.info.browserVersion(Eu,ku.vendor,xu),$screen_height:Cu.height,$screen_width:Cu.width,mp_lib:"web",$lib_version:du.LIB_VERSION,$insert_id:Ku(),time:Tu.timestamp()/1e3},Tu.strip_empty_properties(e))},people_properties:function(){return Tu.extend(Tu.strip_empty_properties({$os:Tu.info.os(),$browser:Tu.info.browser(Eu,ku.vendor,xu)}),{$browser_version:Tu.info.browserVersion(Eu,ku.vendor,xu)})},mpPageViewProperties:function(){return Tu.strip_empty_properties({current_page_title:Su.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var Ku=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},Ju=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Yu=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Zu=function(e){var t=Yu,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Ju);var i=e.match(t);return i?i[0]:""},Xu=function(){},Qu=null,ep=null;"undefined"!=typeof JSON&&(Qu=JSON.stringify,ep=JSON.parse),Qu=Qu||Tu.JSONEncode,ep=ep||Tu.JSONDecode,Tu.info=Tu.info,Tu.info.browser=Tu.info.browser,Tu.info.browserVersion=Tu.info.browserVersion,Tu.info.device=Tu.info.device,Tu.info.properties=Tu.info.properties,Tu.isBlockedUA=Tu.isBlockedUA,Tu.isEmptyObject=Tu.isEmptyObject,Tu.isObject=Tu.isObject,Tu.JSONDecode=Tu.JSONDecode,Tu.JSONEncode=Tu.JSONEncode,Tu.toArray=Tu.toArray,Tu.NPO=eu;var tp="mixpanelRecordingEvents",rp="mixpanelRecordingRegistry",np=[tp,rp],ip=function(e){this.dbPromise=null,this.storeName=e};function op(e,t){mp(!0,e,t)}function sp(e,t){mp(!1,e,t)}function ap(e,t){return"1"===gp(e,t)}function cp(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n,r=t.navigator||{},i=!1;return Tu.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){Tu.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return Pu.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"===gp(e,t);return r&&Pu.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function lp(e){return vp(e,function(e){return this.get_config(e)})}function up(e){return vp(e,function(e){return this._get_config(e)})}function pp(e){return vp(e,function(e){return this._get_config(e)})}function hp(e,t){dp(t=t||{}).remove(fp(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function dp(e){return"localStorage"===(e=e||{}).persistenceType?Tu.localStorage:Tu.cookie}function fp(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function gp(e,t){return dp(t).get(fp(e,t))}function mp(e,t,r){Tu.isString(t)&&t.length?(dp(r=r||{}).set(fp(t,r),e?1:0,Tu.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})):Pu.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function vp(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=cp(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Pu.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)}}ip.prototype._openDb=function(){return new tu(function(e,t){var r=n.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;np.forEach(function(e){t.createObjectStore(e)})}})},ip.prototype.init=function(){return n.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n.IDBDatabase?tu.resolve():tu.reject(e)})):tu.reject("indexedDB is not supported in this browser")},ip.prototype.isInitialized=function(){return!!this.dbPromise},ip.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new tu(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):tu.reject(e)}.bind(this))},ip.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},ip.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},ip.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},ip.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var yp=Du("lock"),bp=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||tu};bp.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Tu.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",h=s+":Z",d=function(e){if((new Date).getTime()-o>c)return yp.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),l.removeItem(h),l.removeItem(p),void m();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=l.getItem(p);return!(e&&e!==i||(l.setItem(p,i),l.getItem(p)!==i&&(zu(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},m=function(){l.setItem(u,i),f(g,function(){l.getItem(u)!==i?d(function(){l.getItem(p)===i?f(function(){return!l.getItem(h)},v):m()}):v()})},v=function(){l.setItem(h,"1");var t=function(){l.removeItem(h),l.getItem(p)===i&&l.removeItem(p),l.getItem(u)===i&&l.removeItem(u)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!zu(l,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var _p=function(e){this.storage=e||n.localStorage};_p.prototype.init=function(){return tu.resolve()},_p.prototype.isInitialized=function(){return!0},_p.prototype.setItem=function(e,t){return new tu(Tu.bind(function(r,n){try{this.storage.setItem(e,Qu(t))}catch(e){n(e)}r()},this))},_p.prototype.getItem=function(e){return new tu(Tu.bind(function(t,r){var n;try{n=ep(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},_p.prototype.removeItem=function(e){return new tu(Tu.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var wp=Du("batch"),kp=function(e,t){var r,i,o,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new _p,this.lock=new bp(e,{storage:t.sharedLockStorage||n.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Tu.bind(wp.error,wp),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=Tu.bind(this._enqueuePersisted,this),i=t.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new tu(function(e){setTimeout(function(){var n=r.apply(t,[s]);o=null,s=[],e(n)},i)})),o}):this.enqueuePersisted=Tu.bind(function(e){return this._enqueuePersisted([e])},this)};kp.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?tu.resolve():this.queueStorage.init().then(Tu.bind(function(){this.initialized=!0},this)).catch(Tu.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},kp.prototype.enqueue=function(e,t){var r={id:Ku(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),tu.resolve(!0))},kp.prototype._enqueuePersisted=function(e){var t=Tu.bind(function(){return this.ensureInit().then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Tu.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Tu.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Tu.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},kp.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):tu.resolve(t)};var Sp=function(e,t){var r=[];return Tu.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};kp.prototype.removeItemsByID=function(e){var t={};if(Tu.each(e,function(e){t[e]=!0}),this.memQueue=Sp(this.memQueue,t),this.usePersistence){var r=Tu.bind(function(){return this.ensureInit().then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(e){return e=Sp(e,t),this.saveToStorage(e)},this)).then(Tu.bind(function(){return this.readFromStorage()},this)).then(Tu.bind(function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}c[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),tu.resolve();var l=Tu.bind(function(){return this.queue.removeItemsByID(Tu.map(o,function(e){return e.id})).then(Tu.bind(function(e){return Tu.each(o,Tu.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:o.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(),tu.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),tu.resolve())},this))},this),u=Tu.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(Tu.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Tu.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(p=n.navigator.onLine,!Tu.isUndefined(p)&&!p)||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),tu.resolve()}if(Tu.isObject(s)&&413===s.httpStatusCode){if(o.length>1){var u=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,u,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),tu.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var p},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),Cp.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,p).then(u)},this)).catch(Tu.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Ep.prototype.reportError=function(e,t){if(Cp.error.apply(Cp.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Cp.error(t)}};var Ip=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Op=Du("recorder"),Np=n.CompressionStream,Ap={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Rp=new Set([Sc.MouseMove,Sc.MouseInteraction,Sc.Scroll,Sc.ViewportResize,Sc.Input,Sc.TouchMove,Sc.MediaInteraction,Sc.Drag,Sc.Selection]),Mp=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Xu,this._onMaxLengthReached=e.onMaxLengthReached||Xu,this._onBatchSent=e.onBatchSent||Xu,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=fu,this.recordMinMs=0;var t=zu(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ip(tp),this.batcher=new Ep(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Ap,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Mp.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},Mp.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()fu&&(this.recordMaxMs=fu,Op.critical("record_max_ms cannot be greater than "+fu+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Tu.info.currentUrl(),this.replayStartUrl=Tu.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r,n=this.getConfig("record_block_selector");""!==n&&null!==n||(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(r={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:Ul,options:r})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else Op.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Mp.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Mp.prototype.isRrwebStopped=function(){return null===this._stopRecording},Mp.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)},Mp.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}},Mp.deserialize=function(e,t){return new Mp(Tu.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}))},Mp.prototype._sendRequest=function(e,t,r,i){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Tu.info.currentUrl()),this._onBatchSent(),i({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");n.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){o(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},Mp.prototype._flushEvents=lp(function(e,t,r){var i=e.length;if(i>0){for(var o=this.replayId,s=1/0,a=-1/0,c=!1,l=0;l=16.4&&o<16.6)}(Eu,ku.vendor,xu)){var d=new Blob([h],{type:"application/json"}).stream().pipeThrough(new Np("gzip"));new Response(d).blob().then(function(e){p.format="gzip",this._sendRequest(o,p,e,r)}.bind(this))}else p.format="body",this._sendRequest(o,p,h,r)}}),Mp.prototype.reportError=function(e,t){Op.error.apply(Op.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Op.error(t)}},Mp.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Mp.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Op.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e};var Tp=function(e){this.idb=new ip(rp),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Tp.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Tp.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Tp.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return tu.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."),tu.resolve())},Tp.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 Ip(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):tu.resolve(null)},Tp.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Tp.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))},Tp.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):tu.resolve()},Tp.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 Ip(e)}).map(function(e){return Mp.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 tu.all(t)}.bind(this)).catch(this.handleError.bind(this)):tu.resolve([])};var Pp=Du("recorder"),Lp=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Cl,this.sharedLockStorage=r,this.recordingRegistry=new Tp({mixpanelInstance:this.mixpanelInstance,errorReporter:Pp.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Lp.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Pp.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Pp.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:Tu.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Mp.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Mp(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Pp.log("Recording already in progress, skipping startRecording.")},Lp.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))},Lp.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Lp.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return tu.resolve()},Lp.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),tu.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Pp.log("No resumable recording found."),null)}.bind(this))},Lp.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Lp.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Lp.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n.__mp_recorder=Lp;var Dp="change",Fp="click",Up="hashchange",jp="load",Bp="mp_locationchange",$p="popstate",zp="scrollend",qp="scroll",Vp="submit",Wp="visibilitychange",Hp=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Gp=["mp-include"],Kp=["mp-no-track"],Jp=Kp.concat(["mp-sensitive"]),Yp=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Zp={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},Xp={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},Qp={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},eh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],th=Du("autocapture");function rh(e){for(var t={},r=nh(e).split(" "),n=0;n0?t[0]:e.target||e.srcElement}function bh(){this.clicks=[]}function _h(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}bh.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 o=yh(e);if(!o||mh(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&s-l.timestamp=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},_h.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return yh(e)},_h.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=vh(e),r=0;r=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Ch.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Ch.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Ch.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Ch.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Ch.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;wh.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}})}),Sh.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),kh.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,xh)}catch(e){th.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new _h(function(){e.recordChangeEvent()},xh),this.shadowDOMObserver.start()}catch(e){th.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Ch.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;ethis.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Su.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,n.addEventListener(e.eventType,this.listenerScrollDepth)}},Zh.prototype.initClickTracking=function(){n.removeEventListener(Fp,this.listenerClick),(this.getConfig(Uh)||this.mp.get_config("record_heatmap_data"))&&(th.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Uh)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Kh)}.bind(this),n.addEventListener(Fp,this.listenerClick))},Zh.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(jh)||this.mp.get_config("record_heatmap_data")?(th.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Ch(function(e){this.trackDomEvent(e,Jh)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(jh);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),n.addEventListener(Fp,this.listenerDeadClick))):this.stopDeadClickTracking()},Zh.prototype.initInputTracking=function(){n.removeEventListener(Dp,this.listenerChange),this.getConfig(Bh)&&(th.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Bh)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),n.addEventListener(Dp,this.listenerChange))},Zh.prototype.initPageviewTracking=function(){if(n.removeEventListener(Bp,this.listenerLocationchange),this.pageviewTrackingConfig()){th.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Gh)),t&&(e=Tu.info.currentUrl()),this.listenerLocationchange=Fu(function(){if(!this.currentUrlBlocked()){var t=Tu.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===Ih?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(Gh)&&(e=t),n&&(this.lastScrollCheckpoint=0,th.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),n.addEventListener(Bp,this.listenerLocationchange)}},Zh.prototype.initRageClickTracking=function(){n.removeEventListener(Fp,this.listenerRageClick),(this._getClickTrackingConfig(zh)||this.mp.get_config("record_heatmap_data"))&&(th.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new bh),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(zh);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Yh))}.bind(this),n.addEventListener(Fp,this.listenerRageClick))},Zh.prototype.initScrollTracking=function(){if(n.removeEventListener(zp,this.listenerScroll),n.removeEventListener(qp,this.listenerScroll),this.getConfig(qh)){th.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=fh(function(){if(this.getConfig(qh)&&!this.currentUrlBlocked()){var e=this.getConfig(Dh),t=(this.getConfig(Fh)||[]).slice().sort(function(e,t){return e-t}),r=n.scrollY,i=Tu.extend({$scroll_top:r},Gh);try{var o=Su.body.scrollHeight,s=Math.round(r/(o-n.innerHeight)*100);if(i.$scroll_height=o,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a=c&&this.lastScrollCheckpoint=0;p--)c=this._mixpanel.persistence.load_queue(ud),l=c.pop(),a._mixpanel.persistence.save(),Tu.isEmptyObject(l)||a.append(l,u);var h=this._mixpanel.persistence.load_queue(hd);if(!Tu.isUndefined(h)&&Tu.isArray(h)&&h.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(hd,d),Tu.isUndefined(s)||s(e,t)},g=h.length-1;g>=0;g--)h=this._mixpanel.persistence.load_queue(hd),d=h.pop(),a._mixpanel.persistence.save(),Tu.isEmptyObject(d)||a.remove(d,f)},gd.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},gd.prototype.set=gd.prototype.set,gd.prototype.set_once=gd.prototype.set_once,gd.prototype.unset=gd.prototype.unset,gd.prototype.increment=gd.prototype.increment,gd.prototype.append=gd.prototype.append,gd.prototype.remove=gd.prototype.remove,gd.prototype.union=gd.prototype.union,gd.prototype.track_charge=gd.prototype.track_charge,gd.prototype.clear_charges=gd.prototype.clear_charges,gd.prototype.delete_user=gd.prototype.delete_user,gd.prototype.toString=gd.prototype.toString;var md,vd="__mps",yd="__mpso",bd="__mpus",_d="__mpa",wd="__mpap",kd="__mpr",Sd="__mpu",xd="$people_distinct_id",Cd="__alias",Ed="__timers",Id=[vd,yd,bd,_d,wd,kd,Sd,xd,Cd,Ed],Od=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&&(Pu.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Tu.localStorage.is_supported()?this.storage=Tu.localStorage:this.storage=Tu.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Od.prototype.properties=function(){var e={};return this.load(),Tu.each(this.props,function(t,r){Tu.include(Id,r)||(e[r]=t)}),e},Od.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Tu.extend({},e))}},Od.prototype.upgrade=function(){var e,t;this.storage===Tu.localStorage?(e=Tu.cookie.parse(this.name),Tu.cookie.remove(this.name),Tu.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Tu.cookie&&(t=Tu.localStorage.parse(this.name),Tu.localStorage.remove(this.name),t&&this.register_once(t))},Od.prototype.save=function(){this.disabled||this.storage.set(this.name,Qu(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Od.prototype.load_prop=function(e){return this.load(),this.props[e]},Od.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Od.prototype.clear=function(){this.remove(),this.props={}},Od.prototype.register_once=function(e,t,r){return!!Tu.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Tu.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},Od.prototype.register=function(e,t){return!!Tu.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Tu.extend(this.props,e),this.save(),!0)},Od.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Od.prototype.update_search_keyword=function(e){this.register(Tu.info.searchInfo(e))},Od.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Tu.info.referringDomain(e)||"$direct"},"")},Od.prototype.get_referrer_info=function(){return Tu.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Od.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)},Od.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Od.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Od.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Od.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Od.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Od.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Od.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(sd),o=this._get_or_create_queue(ad),s=this._get_or_create_queue(cd),a=this._get_or_create_queue(ld),c=this._get_or_create_queue(pd),l=this._get_or_create_queue(hd,[]),u=this._get_or_create_queue(ud,[]);r===vd?(Tu.extend(i,n),this._pop_from_people_queue(ld,n),this._pop_from_people_queue(pd,n),this._pop_from_people_queue(cd,n)):r===yd?(Tu.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(cd,n)):r===bd?Tu.each(n,function(e){Tu.each([i,o,a,c],function(t){e in t&&delete t[e]}),Tu.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):r===_d?(Tu.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(cd,n)):r===Sd?(Tu.each(n,function(e,t){Tu.isArray(e)&&(t in c||(c[t]=[]),Tu.each(e,function(e){Tu.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(cd,n)):r===kd?(l.push(n),this._pop_from_people_queue(ud,n)):r===wd&&(u.push(n),this._pop_from_people_queue(cd,n)),Pu.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Pu.log(t),this.save()},Od.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Tu.isUndefined(r)||Tu.each(t,function(t,n){e===ud||e===hd?Tu.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Od.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Od.prototype._get_queue_key=function(e){return e===sd?vd:e===ad?yd:e===cd?bd:e===ld?_d:e===ud?wd:e===hd?kd:e===pd?Sd:void Pu.error("Invalid queue:",e)},Od.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Tu.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Od.prototype.set_event_timer=function(e,t){var r=this.load_prop(Ed)||{};r[e]=t,this.props[Ed]=r,this.save()},Od.prototype.remove_event_timer=function(e){var t=(this.load_prop(Ed)||{})[e];return Tu.isUndefined(t)||(delete this.props[Ed][e],this.save()),t};var Nd,Ad=function(e,t){throw new Error(e+" not available in this build.")},Rd=function(e){return e},Md="mixpanel",Td="base64",Pd="$device:",Ld=n.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Dd=!Ld&&-1===Eu.indexOf("MSIE")&&-1===Eu.indexOf("Mozilla"),Fd=null;ku.sendBeacon&&(Fd=function(){return ku.sendBeacon.apply(ku,arguments)});var Ud={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},jd={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ud,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Td,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Xu,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Xu,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:fu,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Bd=!1,$d=function(){},zd=function(e,t,r){var n,i=r===Md?Nd:Nd[r];if(i&&0===md)n=i;else{if(i&&!Tu.isArray(i))return void Pu.error("You have already initialized "+r);n=new $d}if(n._cached_groups={},n._init(e,t,r),n.people=new gd,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=Tu.info.campaignParams(null),s={},a=!1;Tu.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return du.DEBUG=du.DEBUG||n.get_config("debug"),!Tu.isUndefined(i)&&Tu.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};$d.prototype.init=function(e,t,r){if(Tu.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Md){var n=zd(e,t,r);return Nd[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},$d.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||jd.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config(Tu.extend({},jd,i,t,{name:r,token:e,callback_fn:(r===Md?r:Md+"."+r)+"._jsc"})),this._jsc=Xu,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(Tu.localStorage.is_supported(!0)&&Ld){if(this.init_batchers(),Fd&&n.addEventListener){var o=Tu.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n.addEventListener("pagehide",function(e){e.persisted&&o()}),n.addEventListener("visibilitychange",function(){"hidden"===Su.visibilityState&&o()})}}else this._batch_requests=!1,Pu.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Tu.each(this.get_batcher_configs(),function(e){Pu.log("Clearing batch queue "+e.queue_key),Tu.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Od(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Tu.UUID();this.get_distinct_id()||this.register_once({distinct_id:Pd+s,$device_id:s},""),this.flags=new rd({getFullApiRoute:Tu.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Tu.bind(this.get_config,this),setConfigFunc:Tu.bind(this.set_config,this),getPropertyFunc:Tu.bind(this.get_property,this),trackingFunc:Tu.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Zh(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},$d.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Pu.log("Tab ID initialization skipped due to disable_persistence config");else if(Tu.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;!Tu.sessionStorage.get(r)&&Tu.sessionStorage.get(t)||Tu.sessionStorage.set(t,"$tab-"+Tu.UUID()),Tu.sessionStorage.set(r,"1"),this.tab_id=Tu.sessionStorage.get(t),n.addEventListener("beforeunload",function(){Tu.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.")},$d.prototype.get_tab_id=function(){return this.tab_id||null},$d.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Pu.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new ip(rp),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Pu.critical("Browser does not support MutationObserver; skipping session recording")}),$d.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},$d.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},$d.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},$d.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},$d.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},$d.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},$d.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Tu.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},$d.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},$d.prototype.__get_recorder=function(){return this._recorder},$d.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Tu.info.campaignParams(null);Tu.each(e,function(e,t){this.unregister(t)}.bind(this))}},$d.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Su.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Tu.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Su.referrer)},$d.prototype._dom_loaded=function(){Tu.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Tu.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},$d.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Bd)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},$d.prototype._prepare_callback=function(e,t){if(Tu.isUndefined(e))return null;if(Ld)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},$d.prototype._send_request=function(e,t,r,n){var i=!0;if(Dd)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!Tu.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Tu.extend(o,r||{}),Ld||(r.method="GET");var a="POST"===r.method,c=Fd&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Ld||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),Tu.extend(t,this.get_config("api_extra_query_params")),e+="?"+Tu.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Su.createElement("img");p.src=e,Su.body.appendChild(p)}else if(c){try{i=Fd(e,s)}catch(e){u.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){u.report_error(e)}}else if(Ld)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),Tu.each(d,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var f=(new Date).getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var e;if(4===h.readyState)if(200===h.status){if(n)if(l){var t;try{t=Tu.JSONDecode(h.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=h.responseText}n(t)}else n(Number(h.responseText))}else if(e=h.timeout&&!h.status&&(new Date).getTime()-f>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(e),n)if(l){var i=h.responseHeaders||{};n({status:0,httpStatusCode:h.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},h.send(s)}catch(e){u.report_error(e),i=!1}else{var g=Su.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Su.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},$d.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Tu.each(e,function(e){e&&(t=e[0],Tu.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Tu.isArray(e)&&"alias"===t?r.push(e):Tu.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){Tu.each(e,function(e){if(Tu.isArray(e[0])){var r=t;Tu.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},$d.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},$d.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},$d.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Tu.bind(function(e){return new Ep(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Tu.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:Tu.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:Tu.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},$d.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Tu.each(this.request_batchers,function(e){e.start()}))},$d.prototype.stop_batch_senders=function(){this._batch_requests=!1,Tu.each(this.request_batchers,function(e){e.stop(),e.clear()})},$d.prototype.push=function(e){this._execute_array([e])},$d.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},$d.prototype._encode_data_for_request=function(e){var t=Qu(e);return this.get_config("api_payload_format")===Td&&(t=Tu.base64Encode(t)),{data:t}},$d.prototype._track_or_batch=function(e,t){var r=Tu.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Xu;var a=!0,c=Tu.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Pu.log("MIXPANEL REQUEST:"),Pu.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},$d.prototype.track=lp(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=Xu),Tu.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Tu.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!Tu.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?Tu.info.marketingParams():{};t=Tu.extend({},Tu.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");Tu.isArray(l)?Tu.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,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)}n(0)}}),$d.prototype.set_group=lp(function(e,t,r){Tu.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),$d.prototype.add_group=lp(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),$d.prototype.remove_group=lp(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),$d.prototype.track_with_groups=lp(function(e,t,r,n){var i=Tu.extend({},t||{});return Tu.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),$d.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},$d.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},$d.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new fd)._init(this,e,t),this._cached_groups[r]=n),n},$d.prototype.track_pageview=lp(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Tu.extend(Tu.info.mpPageViewProperties(),Tu.info.campaignParams(),Tu.info.clickParams()),i=Tu.extend({},n,e);return this.track(r,i)}),$d.prototype.track_links=function(){return this._track_dom.call(this,id,arguments)},$d.prototype.track_forms=function(){return this._track_dom.call(this,od,arguments)},$d.prototype.time_event=function(e){Tu.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 qd={persistent:!0},Vd=function(e){var t;return t=Tu.isObject(e)?e:Tu.isUndefined(e)?{}:{days:e},Tu.extend({},qd,t)};$d.prototype.register=function(e,t){var r=Vd(t);r.persistent?this.persistence.register(e,r.days):Tu.extend(this.unpersisted_superprops,e)},$d.prototype.register_once=function(e,t,r){var n=Vd(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),Tu.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},$d.prototype.unregister=function(e,t){(t=Vd(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},$d.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},$d.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Pd))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(Cd)&&(this.unregister(Cd),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},$d.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Tu.UUID();this.register_once({distinct_id:Pd+e,$device_id:e},""),this._check_and_start_session_recording()},$d.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},$d.prototype.alias=function(e,t){if(e===this.get_property(xd))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Tu.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Cd,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},$d.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},$d.prototype.set_config=function(e){Tu.isObject(e)&&(Tu.extend(this.config,e),e.batch_size&&Tu.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),du.DEBUG=du.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},$d.prototype.get_config=function(e){return this.config[e]},$d.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Rd).apply(this,yu.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},$d.prototype.get_property=function(e){return this.persistence.load_prop([e])},$d.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},$d.prototype.toString=function(){var e=this.get_config("name");return e!==Md&&(e=Md+"."+e),e},$d.prototype._event_is_disabled=function(e){return Tu.isBlockedUA(Eu)||this._flags.disable_all_events||Tu.include(this.__disabled_events,e)},$d.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Tu.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")&&!Tu.cookie.get("mp_optout")||(Tu.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},$d.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},$d.prototype._gdpr_call_func=function(e,t){return t=Tu.extend({track:Tu.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),Tu.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},$d.prototype.opt_in_tracking=function(e){e=Tu.extend({enable_persistence:!0},e),this._gdpr_call_func(op,e),this._gdpr_update_persistence(e)},$d.prototype.opt_out_tracking=function(e){(e=Tu.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(sp,e),this._gdpr_update_persistence(e)},$d.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ap,e)},$d.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(cp,e)},$d.prototype.clear_opt_in_out_tracking=function(e){e=Tu.extend({enable_persistence:!0},e),this._gdpr_call_func(hp,e),this._gdpr_update_persistence(e)},$d.prototype.report_error=function(e,t){Pu.error.apply(Pu.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Pu.error(t)}},$d.prototype.init=$d.prototype.init,$d.prototype.reset=$d.prototype.reset,$d.prototype.disable=$d.prototype.disable,$d.prototype.time_event=$d.prototype.time_event,$d.prototype.track=$d.prototype.track,$d.prototype.track_links=$d.prototype.track_links,$d.prototype.track_forms=$d.prototype.track_forms,$d.prototype.track_pageview=$d.prototype.track_pageview,$d.prototype.register=$d.prototype.register,$d.prototype.register_once=$d.prototype.register_once,$d.prototype.unregister=$d.prototype.unregister,$d.prototype.identify=$d.prototype.identify,$d.prototype.alias=$d.prototype.alias,$d.prototype.name_tag=$d.prototype.name_tag,$d.prototype.set_config=$d.prototype.set_config,$d.prototype.get_config=$d.prototype.get_config,$d.prototype.get_api_host=$d.prototype.get_api_host,$d.prototype.get_property=$d.prototype.get_property,$d.prototype.get_distinct_id=$d.prototype.get_distinct_id,$d.prototype.toString=$d.prototype.toString,$d.prototype.opt_out_tracking=$d.prototype.opt_out_tracking,$d.prototype.opt_in_tracking=$d.prototype.opt_in_tracking,$d.prototype.has_opted_out_tracking=$d.prototype.has_opted_out_tracking,$d.prototype.has_opted_in_tracking=$d.prototype.has_opted_in_tracking,$d.prototype.clear_opt_in_out_tracking=$d.prototype.clear_opt_in_out_tracking,$d.prototype.get_group=$d.prototype.get_group,$d.prototype.set_group=$d.prototype.set_group,$d.prototype.add_group=$d.prototype.add_group,$d.prototype.remove_group=$d.prototype.remove_group,$d.prototype.track_with_groups=$d.prototype.track_with_groups,$d.prototype.start_batch_senders=$d.prototype.start_batch_senders,$d.prototype.stop_batch_senders=$d.prototype.stop_batch_senders,$d.prototype.start_session_recording=$d.prototype.start_session_recording,$d.prototype.stop_session_recording=$d.prototype.stop_session_recording,$d.prototype.pause_session_recording=$d.prototype.pause_session_recording,$d.prototype.resume_session_recording=$d.prototype.resume_session_recording,$d.prototype.get_session_recording_properties=$d.prototype.get_session_recording_properties,$d.prototype.get_session_replay_url=$d.prototype.get_session_replay_url,$d.prototype.get_tab_id=$d.prototype.get_tab_id,$d.prototype.DEFAULT_API_ROUTES=Ud,$d.prototype.__get_recorder=$d.prototype.__get_recorder,Od.prototype.properties=Od.prototype.properties,Od.prototype.update_search_keyword=Od.prototype.update_search_keyword,Od.prototype.update_referrer_info=Od.prototype.update_referrer_info,Od.prototype.get_cross_subdomain=Od.prototype.get_cross_subdomain,Od.prototype.clear=Od.prototype.clear;var Wd={},Hd=(Ad=function(e,t){t()},md=0,(Nd=new $d).init=function(e,t,r){if(r)return Nd[r]||(Nd[r]=Wd[r]=zd(e,t,r),Nd[r]._loaded()),Nd[r];var i=Nd;Wd[Md]?i=Wd[Md]:e&&((i=zd(e,t,Md))._loaded(),Wd[Md]=i),Nd=i,1===md&&(n[Md]=Nd),Tu.each(Wd,function(e,t){t!==Md&&(Nd[t]=e)}),Nd._=Tu},Nd.init(),function(){function e(){e.done||(e.done=!0,Bd=!0,Dd=!1,Tu.each(Wd,function(e){e._dom_loaded()}))}if(Su.addEventListener)"complete"===Su.readyState?e():Su.addEventListener("DOMContentLoaded",e,!1);else if(Su.attachEvent){Su.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n.frameElement}catch(e){}Su.documentElement.doScroll&&t&&function t(){try{Su.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Tu.register_event(n,"load",e,!0)}(),Nd)},7008:(e,t,r)=>{"use strict";r.d(t,{$B:()=>d,Mh:()=>p,Yk:()=>h,bi:()=>s,lL:()=>o,oe:()=>u,qt:()=>a});var n=r(6751);let i=!1;const o=()=>{try{if("undefined"==typeof window)return!1;if(i)return!0;const e=window.marketplaceConfig||{};if(!e.data_consent_status)return!1;const t=e.mixpanel||{},r=t.token;if(!r||""===r)return!1;n.A.init(r,{debug:t.debug||!1,track_pageview:!1,persistence:"localStorage",property_blacklist:["$initial_referrer","$initial_referring_domain","$current_url","$referrer","$referring_domain","mp_lib","$lib_version","$browser","$browser_version","$device","$screen_height","$screen_width","$os","$search_engine"]});const o=t.distinctId;return o&&""!==o&&n.A.identify(o),i=!0,!0}catch(e){return!1}},s=()=>{try{i&&void 0!==n.A&&(n.A.reset(),i=!1)}catch(e){console.error("[MixpanelTracking] Error disabling Mixpanel:",e)}},a=()=>{try{if("undefined"==typeof window)return!1;const e=((window.marketplaceConfig||{}).mixpanel||{}).token;return!(!e||""===e)&&(i=!1,o())}catch(e){return console.error("[MixpanelTracking] Error enabling Mixpanel:",e),!1}},c=()=>{try{if("undefined"==typeof window)return{};const e=((window.marketplaceConfig||{}).mixpanel||{}).globalProperties||{},t=new URLSearchParams(window.location.search).get("page")||"",r={...e,hit_type:"event",page:t||window.location.pathname,path:window.location.pathname+window.location.search,referrer:document.referrer.split("/").filter(Boolean).pop()||""};return Object.fromEntries(Object.entries(r).filter(([e,t])=>""!==t&&null!=t&&(!Array.isArray(t)||0!==t.length)))}catch(e){return{}}},l=(e,t={})=>{try{if(!(()=>{try{return i&&void 0!==n.A}catch(e){return!1}})())return;const r={...c(),...t};n.A.track(e,r)}catch(t){console.error("[MixpanelTracking] Error tracking event:",e,t)}},u=({pluginSlug:e,pluginName:t,category:r,itemName:n,isContentRendered:i=!0,contentReceivedAt:o=null,contentRenderedAt:s=null,isCached:a=!1,visibleConditionalProducts:c=[]}={})=>{try{const u=Date.now(),p={content_received_at:o||u,is_content_rendered:i,is_cached:a};c&&c.length>0&&(p.visible_conditional_products=c),i&&(p.content_rendered_at=s||u),n?p.item_name=n:e&&(p.item_name=e),e&&(p.product_slug=e),t&&(p.product_name=t),r&&(p.item_category=r),l("Page Viewed",p)}catch(e){console.error("[MixpanelTracking] Error tracking page view:",e)}},p=({buttonName:e,buttonAction:t,plugin:r=null,context:n={}}={})=>{try{const i={button_name:e||"",button_action:t||"",item_name:e||"",timestamp:Date.now()};r&&Object.assign(i,(e=>{if(!e)return{};const t={product_slug:e.slug||"",product_name:e.name||""};if(e.categories&&e.categories.length>0){const r="object"==typeof e.categories[0]?e.categories[0].slug||e.categories[0].title:e.categories[0];t.item_category=r}return e.licenseType&&(t.license_type=e.licenseType),void 0!==e.priceAmount&&(t.price_amount=e.priceAmount),e.priceCurrency&&(t.price_currency=e.priceCurrency),t})(r)),Object.assign(i,n),l("Button Clicked",i)}catch(e){console.error("[MixpanelTracking] Error tracking button click:",e)}},h=(e=null,t=null,r=!1,n=[])=>{try{u({category:"marketplace_home",itemName:"Catalog Page",contentReceivedAt:e,contentRenderedAt:t,isCached:r,visibleConditionalProducts:n})}catch(e){console.error("[MixpanelTracking] Error tracking marketplace visit:",e)}},d=(e,t=null,r=null,n=!1)=>{try{if(!e)return void console.warn("[MixpanelTracking] Plugin object required for tracking detail visit");const i=e.categories&&e.categories.length>0?"object"==typeof e.categories[0]?e.categories[0].slug||e.categories[0].title:e.categories[0]:"";u({pluginSlug:e.slug,pluginName:e.name,category:i,itemName:"Product Page",contentReceivedAt:t,contentRenderedAt:r,isCached:n})}catch(e){console.error("[MixpanelTracking] Error tracking plugin detail visit:",e)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Aggiorna pagina","ui.notifications.couldNotLoad":"Impossibile caricare la pagina","ui.notifications.refreshPage":"Aggiorna la pagina e contatta il nostro supporto se il problema persiste."}')},7565:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,r:()=>o});let n={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:r(2875).x};const i=(e={})=>{n={...n,...e}},o=()=>n},7674:(e,t,r)=>{"use strict";r(1609),r(1352)},7823:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Refresh page","ui.notifications.couldNotLoad":"Couldn’t load the page","ui.notifications.refreshPage":"Please refresh the page and contact our support if the issue persists."}')},7829:(e,t,r)=>{"use strict";r(1609),r(4814),r(1352)},7979:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,t:()=>a});var n=r(1609),i=r(7008),o=r(108);const s=(0,n.createContext)(null),a=({children:e,apiBaseUrl:t,useWPHandlers:r,wpConfig:a,enableDefaultStyles:c,assetsBaseUrl:l})=>{const[u,p]=(0,n.useState)({}),[h,d]=(0,n.useState)({}),[f,g]=(0,n.useState)({}),[m,v]=(0,n.useState)([]),[y,b]=(0,n.useState)({}),[_,w]=(0,n.useState)(""),[k,S]=(0,n.useState)(""),[x,C]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[E,I]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[O,N]=(0,n.useState)({visible:!1,type:null,pluginSlug:null}),[A,R]=(0,n.useState)(!1),[M,T]=(0,n.useState)(!1),[P,L]=(0,n.useState)(!0),[D,F]=(0,n.useState)(()=>{const e="undefined"!=typeof window&&window.marketplaceConfig?.data_consent_status;return!0===e||"true"===e||"1"===e||1===e}),U=((0,n.useRef)({}),(0,n.useRef)(null)),j="onecom"===("undefined"!=typeof window&&window.marketplaceConfig?.brand),B="undefined"!=typeof window&&window.marketplaceConfig?.activePlugins?window.marketplaceConfig.activePlugins:[],$="undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor?window.marketplaceConfig.activeThemeAuthor:"",z="undefined"!=typeof window&&window.marketplaceConfig?.wpVersion?window.marketplaceConfig.wpVersion:"";(0,n.useEffect)(()=>{const e=sessionStorage.getItem("mp_success_notice");if(e)try{const t=JSON.parse(e);C({visible:t.visible,type:t.type,pluginSlug:t.pluginSlug}),N({visible:t.visible,type:t.successType,pluginSlug:t.pluginSlug}),setTimeout(()=>{sessionStorage.removeItem("mp_success_notice")},100)}catch(e){console.error("Error parsing persisted success notice",e)}},[]),(0,n.useEffect)(()=>{!0===D&&(0,i.lL)();const e=e=>{const t=void 0!==e.detail?.data_consent_status&&e.detail.data_consent_status;F(t),!0===t?("undefined"!=typeof window&&window.marketplaceConfig&&(window.marketplaceConfig.data_consent_status=!0),(0,i.qt)()):("undefined"!=typeof window&&window.marketplaceConfig&&(window.marketplaceConfig.data_consent_status=!1),(0,i.bi)())};window.addEventListener("onConsentStatusChanged",e);const t=t=>{if("onecom_data_consent_status"===t.key){const r="1"===t.newValue;e({detail:{data_consent_status:r}})}};return window.addEventListener("storage",t),()=>{window.removeEventListener("onConsentStatusChanged",e),window.removeEventListener("storage",t)}},[]);const q=(0,n.useCallback)(async e=>{if(j&&W(e)){g(t=>({...t,[e]:!0}));try{const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.ajaxUrl;if(!t)return void g(t=>({...t,[e]:!1}));const r=new FormData;r.append("action","get_addon_purchase_status"),r.append("addon_purchase_check","true"),r.append("addon_slug",e);const n=await fetch(t,{method:"POST",body:r}),i=await n.json();d(t=>({...t,[e]:i.is_purchased}))}catch(t){d(t=>({...t,[e]:!1}))}finally{g(t=>({...t,[e]:!1}))}}},[j]),V=(0,n.useCallback)(()=>{U.current&&(clearTimeout(U.current),U.current=null),sessionStorage.removeItem("mp_success_notice")},[]),W=(0,n.useCallback)(e=>"wp-rocket"===e||"seo-by-rank-math-pro"===e,[]),H=(0,n.useCallback)(e=>(0,o.u)(z,e),[z]),G=(0,n.useCallback)(e=>!(!e||!j)&&W(e.slug)&&!e.installed&&!0===h[e.slug],[j,h,W]),K=(0,n.useCallback)(e=>{if(!e.rules)return!0;if(e.rules.mustHavePlugins&&Array.isArray(e.rules.mustHavePlugins)){if(0===e.rules.mustHavePlugins.length)return!0;if(!e.rules.mustHavePlugins.some(e=>B.includes(e)))return!1}if(e.rules.mustHaveThemesByAuthor&&"string"==typeof e.rules.mustHaveThemesByAuthor){const t=e.rules.mustHaveThemesByAuthor;if($!==t)return!1}return!0},[B,$]),J=(0,n.useCallback)(async(e,n,o="")=>{const s="activate"===e&&"imagify"===n.slug;p(e=>({...e,[n.slug]:!0}));let c=!1;const l=n.name||n.slug;let u="";if(u="activate"===e?(y?.notifications?.activating||"Activating {0}").replace("{0}",l)+"...":"deactivate"===e?(y?.notifications?.deactivating||"Deactivating {0}").replace("{0}",l)+"...":"install"===e?(y?.notifications?.installing||"Installing {0}").replace("{0}",l)+"...":"delete"===e?(y?.notifications?.deleting||"Deleting {0}").replace("{0}",l)+"...":`${e.charAt(0).toUpperCase()+(e.endsWith("e")?e.slice(1,-1):e.slice(1))+"ing"} ${l}`,w(u),S(""),s){let s=`${t}${e}/${n.slug}`;const l=`download_url=${encodeURIComponent(n.download||"")}`;return s=r?`${a.ajaxUrl}?action=marketplace_${e}_plugin&_wpnonce=${a.nonce}&nonce=${a.nonce}&slug=${n.slug}&${l}`:s+(s.includes("?")?"&":"?")+l,void setTimeout(async()=>{try{await fetch(s,{method:"POST"})}catch(e){console.log("Imagify activation request initiated")}let r=0;const a=async()=>{try{const r=`${t}active/${n.slug}`,s=await fetch(r),a=await s.json();if(a&&a.activated)return(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"success",special_case:"imagify_redirect"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:n.slug,successType:"activate"})),U.current=setTimeout(()=>{window.location.reload()},500)):(N({visible:!0,type:"activate",pluginSlug:n.slug}),U.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),w(""),S(""),c=!0))}catch(e){console.error("Error checking activation status",e)}r++,r<6?setTimeout(a,1e3):(I({visible:!0,type:"activate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"error",error_message:"Imagify activation timeout after polling"}}),w(""),S(""),p(e=>({...e,[n.slug]:!1})))};setTimeout(a,1e3)},100)}try{let s=`${t}/${e}/${n.slug}`;const l=`download_url=${encodeURIComponent(n.download||"")}`;s=r?`${a.ajaxUrl}?action=marketplace_${e}_plugin&_wpnonce=${a.nonce}&nonce=${a.nonce}&slug=${n.slug}&${l}`:s+(s.includes("?")?"&":"?")+l;const u=await fetch(s,{method:"POST"}),p=await u.json();if(p.success)if(v(t=>t.map(t=>t.slug===n.slug?{...t,installed:p.data.installed,activated:p.data.activated}:"deactivate"===e&&"seo-by-rank-math"===n.slug&&"seo-by-rank-math-pro"===t.slug?{...t,activated:!1}:"activate"===e&&"seo-by-rank-math-pro"===n.slug&&"seo-by-rank-math"===t.slug?{...t,activated:!0}:t)),"install"===e&&p.data.installed)C({visible:!0,type:"installed",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:n,context:{action:e,result:"success"}});else if("delete"!==e||p.data.installed){if("activate"===e&&p.data.activated)return c=!0,(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"success"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:n.slug,successType:"activate"})),U.current=setTimeout(()=>{window.location.reload()},500)):(N({visible:!0,type:"activate",pluginSlug:n.slug}),U.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),w(""),S("")));if("deactivate"===e&&!p.data.activated)return c=!0,N({visible:!0,type:"deactivate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Deactivate",buttonAction:"product_deactivate",plugin:n,context:{action:e,result:"success"}}),U.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),w(""),void S("")}else C({visible:!0,type:"deleted",pluginSlug:n.slug}),N({visible:!0,type:"delete",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Delete",buttonAction:"product_delete",plugin:n,context:{action:e,result:"success"}});else"activate"===e?(I({visible:!0,type:"activate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||y?.notifications?.pluginActivationFailed||"Activation failed"}})):"deactivate"===e?(I({visible:!0,type:"deactivate",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Deactivate",buttonAction:"product_deactivate",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||y?.notifications?.pluginDeactivationFailed||"Deactivation failed"}})):"install"===e?(I({visible:!0,type:"install",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||"Installation failed"}})):"delete"===e?(I({visible:!0,type:"delete",pluginSlug:n.slug}),(0,i.Mh)({buttonName:"Delete",buttonAction:"product_delete",plugin:n,context:{action:e,result:"error",error_message:p.data?.message||y?.notifications?.pluginDeletionFailed||"Deletion failed"}})):alert(p.data?.message||"Failed to perform action")}catch(t){console.error("Plugin action failed",t),"activate"!==e&&"install"!==e&&"delete"!==e||(0,i.Mh)({buttonName:"activate"===e?"Activate":"install"===e?"Install":"Delete",buttonAction:"activate"===e?"product_activate":"install"===e?"product_install":"product_delete",plugin:n,context:{action:e,result:"error",error_message:t.message||"Network error"}})}finally{c||p(e=>({...e,[n.slug]:!1})),w(""),S("")}},[t,r,a,y]),Y={apiBaseUrl:t,useWPHandlers:r,wpConfig:a,enableDefaultStyles:c,assetsBaseUrl:l,pluginInAction:u,setPluginInAction:p,subscriptionStatus:h,isCheckingSubscription:f,fetchSubscriptionStatus:q,isOnecomBrand:j,plugins:m,setPlugins:v,uiI18n:y,setUiI18n:b,handlePluginAction:J,cancelReload:V,loadingAction:_,loadingPlugin:k,noticeState:x,setNoticeState:C,errorState:E,setErrorState:I,successState:O,setSuccessState:N,allPluginsActivated:A,setAllPluginsActivated:R,catalogError:M,setCatalogError:T,catalogLoading:P,setCatalogLoading:L,shouldShowProvision:G,isSpecialPlugin:W,shouldShowPlugin:K,isWpVersionSupported:H,wpVersion:z,activePlugins:B,activeThemeAuthor:$};return(0,n.createElement)(s.Provider,{value:Y},e)},c=()=>{const e=(0,n.useContext)(s);if(!e)throw new Error("useMarketplace must be used within MarketplaceProvider");return e}},8291:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>n.B,r9:()=>i.r}),r(7829),r(4814);var n=r(8437),i=(r(2648),r(2176),r(3273),r(3227),r(7674),r(1831));r(7565),r(1352)},8300:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Uppdatera sidan","ui.notifications.couldNotLoad":"Det gick inte att ladda sidan","ui.notifications.refreshPage":"Uppdatera sidan och kontakta vår support om problemet kvarstår."}')},8437:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(1609),i=r(1352),o=r(9454);const s=(e,t,r,n)=>e.getFixedT(t,r,n),a=(e,t={})=>{const{i18n:r}=t,{i18n:a,defaultNS:c}=(0,n.useContext)(i.gJ)||{},l=r||a||(0,i.TO)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new i.hz),!l){(0,o.mc)(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>(0,o.Kg)(t)?t:(0,o.Gv)(t)&&(0,o.Kg)(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}l.options.react?.wait&&(0,o.mc)(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...(0,i.rV)(),...l.options.react,...t},{useSuspense:p,keyPrefix:h}=u;let d=e||c||l.options?.defaultNS;d=(0,o.Kg)(d)?[d]:d||["translation"],l.reportNamespaces.addUsedNamespaces?.(d);const f=(l.isInitialized||l.initializedStoreOnce)&&d.every(e=>(0,o.NM)(e,l,u)),g=((e,t,r,i)=>(0,n.useCallback)(s(e,t,r,i),[e,t,r,i]))(l,t.lng||null,"fallback"===u.nsMode?d:d[0],h),m=()=>g,v=()=>s(l,t.lng||null,"fallback"===u.nsMode?d:d[0],h),[y,b]=(0,n.useState)(m);let _=d.join();t.lng&&(_=`${t.lng}${_}`);const w=((e,t)=>{const r=(0,n.useRef)();return(0,n.useEffect)(()=>{r.current=e},[e,t]),r.current})(_),k=(0,n.useRef)(!0);(0,n.useEffect)(()=>{const{bindI18n:e,bindI18nStore:r}=u;k.current=!0,f||p||(t.lng?(0,o.GA)(l,t.lng,d,()=>{k.current&&b(v)}):(0,o.dM)(l,d,()=>{k.current&&b(v)})),f&&w&&w!==_&&k.current&&b(v);const n=()=>{k.current&&b(v)};return e&&l?.on(e,n),r&&l?.store.on(r,n),()=>{k.current=!1,l&&e&&e?.split(" ").forEach(e=>l.off(e,n)),r&&l&&r.split(" ").forEach(e=>l.store.off(e,n))}},[l,_]),(0,n.useEffect)(()=>{k.current&&f&&b(m)},[l,h,f]);const S=[y,l,f];if(S.t=y,S.i18n=l,S.ready=f,f)return S;if(!f&&!p)return S;throw new Promise(e=>{t.lng?(0,o.GA)(l,t.lng,d,()=>e()):(0,o.dM)(l,d,()=>e())})}},8484:(e,t,r)=>{"use strict";let n;r.d(t,{T:()=>o,V:()=>i});const i=e=>{n=e},o=()=>n},8491:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Genindlæs side","ui.notifications.couldNotLoad":"Kunne ikke indlæse siden","ui.notifications.refreshPage":"Opdater venligst siden og kontakt vores support, hvis problemet fortsætter."}')},9454:(e,t,r)=>{"use strict";r.d(t,{GA:()=>a,Gv:()=>u,Kg:()=>l,NM:()=>c,dM:()=>s,mc:()=>i});const n={},i=(e,t,r,i)=>{l(r)&&n[r]||(l(r)&&(n[r]=new Date),((e,t,r,n)=>{const i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);l(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,i))},o=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},s=(e,t,r)=>{e.loadNamespaces(t,o(e,r))},a=(e,t,r,n)=>{if(l(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return s(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,o(e,n))},c=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(i(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),l=e=>"string"==typeof e,u=e=>"object"==typeof e&&null!==e},9962:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(7979),l=r(488);function u({plugin:e,onClose:t,usePortal:r=!0,loading:u=!1}){const{assetsBaseUrl:p,useWPHandlers:h,pluginInAction:d,plugins:f,uiI18n:g,subscriptionStatus:m,isCheckingSubscription:v,noticeState:y,setNoticeState:b,setErrorState:_}=(0,c.D)(),w=f.find(e=>"seo-by-rank-math"===e.slug)||null,k=f.find(e=>"seo-by-rank-math-pro"===e.slug)||null,S=p||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",x=S?`${S}assets/icons/`:"";if(u){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-w-max-container gv-mx-auto"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-mb-lg"},(0,n.createElement)("a",{href:"#",onClick:e=>{if(e.preventDefault(),"undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}arrow_back.svg`}),(0,n.createElement)("span",null,g.backButton))),(0,n.createElement)("header",{className:"gv-area-header"},(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("header",{className:"gv-area-header gv-mt-fluid gv-mb-fluid"},(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid gv-mb-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"160px"}}),(0,n.createElement)("ul",{className:""},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"160px",marginBottom:"28px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;const C=(0,n.useRef)(null),E=(0,n.useRef)(null),I=(0,n.useRef)(null),O=(0,n.useRef)(null),N=(0,n.useRef)(null),[A,R]=((0,n.useRef)([]),(0,n.useState)(0));(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{b(e=>!e.visible||e.pluginSlug!==w?.slug&&e.pluginSlug!==k?.slug?{visible:!1,type:null,pluginSlug:null}:e),_(e=>!e.visible||e.pluginSlug!==w?.slug&&e.pluginSlug!==k?.slug?{visible:!1,type:null,pluginSlug:null}:e)},[w?.slug,k?.slug,b,_]),(0,n.useEffect)(()=>{const e=()=>{b({visible:!1,type:null,pluginSlug:null}),_({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[b,_]),(0,n.useEffect)(()=>{const e=C.current,t=E.current,r=I.current,n=O.current,i=N.current;if(!(e&&t&&r&&n&&i))return;const o=t.querySelector(".gv-previous"),s=t.querySelector(".gv-next");let a=!1,c="top",l=!1,u=!1,p=!1,h=null,d=!1;const f=()=>{const t=e.scrollLeft,r=e.offsetWidth,n=Math.round(t/r);R(n),o&&(0===n?o.classList.add("gv-disabled"):o.classList.remove("gv-disabled")),s&&(n>=Math.round(e.scrollWidth/r)-1?s.classList.add("gv-disabled"):s.classList.remove("gv-disabled"))},g=()=>{const e=parseFloat(getComputedStyle(r).paddingTop)||0,i=n.offsetHeight/2,o=i+e,s=window.innerHeight/2-o,a=2*i;return t.style.transform=`translateY(${o}px)`,t.style.top=`${s}px`,t.style.bottom=`${a}px`,{bottomValue:a,halfHeaderHeight:i}},m=e=>{const n=r.getBoundingClientRect(),i=window.innerHeight-e,o=n.bottom<=i;o!==a&&(a=o,a?t.classList.add("gv-state-bottom"):t.classList.remove("gv-state-bottom"))},v=()=>{if(p)return;let e;e=l?l&&!u?"overlay":"bottom":"top",e!==c&&(p=!0,c=e,"top"===c?(i.classList.add("gv-state-top"),i.classList.remove("gv-state-overlay")):"overlay"===c?(i.classList.remove("gv-state-top"),i.classList.add("gv-state-overlay")):(i.classList.remove("gv-state-top"),i.classList.remove("gv-state-overlay")),requestAnimationFrame(()=>{setTimeout(()=>{p=!1},50)}))},{bottomValue:y}=g();e.addEventListener("scroll",f);const b=new IntersectionObserver(e=>{e.forEach(e=>{!e.isIntersecting&&e.boundingClientRect.top<0?l=!0:(e.isIntersecting||e.boundingClientRect.top>=0)&&(l=!1),v()})},{threshold:[0,1],rootMargin:"0px"}),_=document.createElement("div");_.style.position="absolute",_.style.bottom="0",_.style.left="0",_.style.width="1px",_.style.height="1px",_.style.pointerEvents="none",r.style.position="relative",r.appendChild(_);const w=new IntersectionObserver(e=>{e.forEach(e=>{u=e.isIntersecting,v()})},{threshold:[0],rootMargin:"-100px 0px 0px 0px"});b.observe(i),w.observe(_);const k=()=>{d||(d=!0,requestAnimationFrame(()=>{m(y)}),h=setTimeout(()=>{d=!1},100))},S=()=>{const{bottomValue:e}=g();m(e)};return window.addEventListener("scroll",k),window.addEventListener("resize",S),f(),m(y),v(),()=>{h&&clearTimeout(h),e.removeEventListener("scroll",f),window.removeEventListener("scroll",k),window.removeEventListener("resize",S),b.disconnect(),w.disconnect(),_&&_.parentNode&&_.parentNode.removeChild(_)}},[]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const M=k.detailsBannerUrl||k.bannerUrl,T=w?.name||e.name||"Product",P=w?.i18n?.description||w?.i18n?.subtitle,L=w?.i18n?.subtitle,D=k?.name||"Rank Math Pro",F=k?.i18n?.subtitle||k?.i18n?.description,U=k?(0,l.M)(k,g?.labels?.free||"Free",g):"",j=U===(g?.labels?.freeUntilRenewal||"Free until renewal"),B=(0,l.Tc)(k),$=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},z=w?.i18n||e.i18n,q=$(z,"keyBenefitContent"),V=$(w?.i18n,"keyFeatureContent"),W=$(k?.i18n,"keyFeatureContent"),H=Math.max(V.length,W.length),G=[];if(z&&"object"==typeof z){let e=1;for(;z[`coreFeatureTitle${e}`]||z[`coreFeatureContent${e}`];){const t=z[`coreFeatureTitle${e}`],r=z[`coreFeatureContent${e}`];t&&""!==t.trim()&&r&&""!==r.trim()&&G.push({name:t,desc:r}),e++}}const K=q,J=G,Y=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-w-max-container gv-mx-auto gv-p-fluid gv-p-0"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav"},(0,n.createElement)("a",{href:"#",onClick:r=>{if(r.preventDefault(),!d[e.slug])if("undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){t&&t()}else t&&t()},className:"gv-flex gv-items-center gv-gap-xs",role:"button","aria-label":"Go back",style:{opacity:d[e.slug]?.5:1,pointerEvents:d[e.slug]?"none":"auto",cursor:d[e.slug]?"not-allowed":"pointer"},"aria-disabled":d[e.slug]?"true":"false"},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}arrow_back.svg`}),(0,n.createElement)("span",null,g.backButton)),(0,n.createElement)(s.A,{plugin:y?.pluginSlug===k?.slug?k:w}),(0,n.createElement)(a.A,{plugin:w}),(0,n.createElement)(a.A,{plugin:k})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},"Rank Math"),(0,n.createElement)("p",{className:"gv-text-sm"},P)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${M} 2x, ${M} 1x`}),(0,n.createElement)("img",{src:M,srcSet:`${M} 2x, ${M} 1x`,alt:"Product image"})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-2 gv-recommended-2 gv-area-table"},(0,n.createElement)("div",{className:"gv-dots-scroll-area"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-slider-nav",ref:E},(0,n.createElement)("button",{type:"button",className:"gv-nav-button gv-previous gv-disabled",onClick:()=>{const e=C.current;if(!e)return;const t=e.offsetWidth;e.scrollTo({left:e.scrollLeft-t,behavior:"smooth"})}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}chevron_left.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-nav-button gv-next",onClick:()=>{const e=C.current;if(!e)return;const t=e.offsetWidth;e.scrollTo({left:e.scrollLeft+t,behavior:"smooth"})}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${x}chevron_right.svg`}))),(0,n.createElement)("div",{className:"gv-table-slider",ref:C},(0,n.createElement)("div",{className:"gv-table",role:"table",ref:I},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup",ref:O},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},`${T} free`),(0,n.createElement)("p",null,L)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},(0,n.createElement)("span",{className:"gv-price-text"},g?.labels?.free||"Free"))),h&&w?(0,n.createElement)(o.A,{plugin:w}):w?.download&&(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-secondary"},g?.installButton||w?.i18n?.installButton||"Install"))),(0,n.createElement)("div",{className:"gv-product gv-p-0",role:"columnheader"},(0,n.createElement)("div",{className:"gv-recommended-label"},"Recommended"),(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},D),(0,n.createElement)("p",null,F.substring(0,120),F.length>120?"…":"")),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},(0,n.createElement)("span",{className:"gv-price-text"},U,U&&!j&&",-"),U&&!j&&(0,n.createElement)("span",{className:"gv-period"},"/",g?.labels?.timeMonth)),U&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},g.labels.afterThat," [",B,"]/",g?.labels?.timeMonth))),h&&k?(0,n.createElement)(o.A,{plugin:k}):(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary"},"Select"))))),H>0&&(0,n.createElement)("div",{className:"gv-section",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},g?.keyFeatureHeading||w?.i18n?.keyFeatureHeading||"Key features")),(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},g?.keyFeatureHeading||k?.i18n?.keyFeatureHeading||"Key features"))),Array.from({length:H}).map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},V[t]||"")),(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},W[t]||"")))))))),(0,n.createElement)("div",{className:"gv-slider-pagination gv-state-top",ref:N},(0,n.createElement)("div",{className:"gv-dots",role:"tablist"},[0,1].map(e=>(0,n.createElement)("span",{key:e,className:"gv-dot "+(A===e?"gv-active":""),role:"tab","aria-selected":A===e?"true":"false","aria-label":`Go to slide ${e+1}`,onClick:()=>(e=>{const t=C.current;if(!t)return;const r=t.offsetWidth;t.scrollTo({left:r*e,behavior:"smooth"})})(e),style:{cursor:"pointer"}})))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},K.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},K.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),J.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},J.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)(Y,document.body):Y}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n);var e=r(1609),t=r(5795),i=r.n(t),o=r(5771),s=(r(5036),r(108));document.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("marketplace-root");if(t){const n=window.marketplaceConfig||{};n.locale&&Promise.resolve().then(r.bind(r,2635)).then(({default:e})=>{e.changeLanguage(n.locale)});const a=(0,s.u)(n.wpVersion,"6.2");"function"==typeof i().createRoot&&a?i().createRoot(t).render((0,e.createElement)(o.A,{...n})):i().render((0,e.createElement)(o.A,{...n}),t)}})})(),window.MarketPlaceWP=n})();
+(()=>{var e={108:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});const n=(e,t)=>{if(!e)return!0;const r=String(e).split("."),n=String(t).split(".");for(let e=0;ei)return!0;if(t{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Oppdater side","ui.notifications.couldNotLoad":"Kunne ikke laste inn siden","ui.notifications.refreshPage":"Oppdater siden og kontakt vår support hvis problemet vedvarer."}')},488:(e,t,r)=>{"use strict";r.d(t,{Dn:()=>c,M:()=>l,Tc:()=>a});const n={EUR:"€",USD:"$",GBP:"£",DKK:"kr",NOK:"kr",SEK:"kr"},i=["DKK","SEK","NOK"],o=e=>n[e]||e,s=(e,t,r)=>i.includes(r)?`${e} ${t}`:`${t} ${e}`,a=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"full"===e.priceType);if(t&&t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},c=e=>{if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&void 0!==t.amount&&null!==t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return s(r,e,t.currency)}}return null},l=(e,t="Free",r=null)=>{if("free"===e.licenseType)return t;if(e.prices&&Array.isArray(e.prices)&&e.prices.length>0){const t=e.prices.find(e=>"rebate"===e.priceType);if(t&&"premium"===e.licenseType){if(0===t.amount)return r?.labels?.freeUntilRenewal||"Free until renewal";if(t.amount&&t.currency){const e=o(t.currency),r=Number(t.amount).toFixed(2);return`${s(r,e,t.currency)} `}}let n=e.prices.find(e=>"full"===e.priceType&&(!0===e.isActive||void 0===e.isActive));if(n||(n=e.prices.find(e=>!0===e.isActive)),n||(n=e.prices[0]),n&&n.amount&&n.currency){const e=o(n.currency),t=Number(n.amount).toFixed(2);return s(t,e,n.currency)}}if(e.priceCurrency&&e.priceAmount){const t=o(e.priceCurrency),r=Number(e.priceAmount).toFixed(2);return s(r,t,e.priceCurrency)}return""}},1174:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{uiI18n:e}=(0,i.D)(),t=e?.notifications?.updateWPText?.replace("{0}","6.2");return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},e?.notifications?.updateWPTitle),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.href="undefined"!=typeof window&&window.marketplaceConfig?.wpConfig?.adminUrl?`${window.marketplaceConfig.wpConfig.adminUrl}update-core.php`:"/wp-admin/update-core.php"}},(0,n.createElement)("span",null,e?.updateWPButton))))}},1199:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Pagina verversen","ui.notifications.couldNotLoad":"Kon de pagina niet laden","ui.notifications.refreshPage":"Ververs de pagina en neem contact op met onze (Engelstalige) support als het probleem zich blijft voordoen."}')},1338:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,pluginInAction:r,subscriptionStatus:a,isCheckingSubscription:c,isOnecomBrand:l,handlePluginAction:u,uiI18n:p,isSpecialPlugin:h}=(0,i.D)(),d=a[e.slug],f=c[e.slug],g=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",m=g?`${g}assets/`:"",v=t=>{const r=!e.installed;if(l&&h(e.slug)&&r&&"install"===t){(0,o.Mh)({buttonName:"Install",buttonAction:"product_install",plugin:e,context:{action:t,result:"initiated"}});const r=new CustomEvent("onecom-plugin-provision",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});return void document.dispatchEvent(r)}u(t,e,"product_detail")},y=(e,t)=>e?e.replace("{0}",t||""):"",b=e?.name||"",_=l&&h(e.slug)&&!e.installed&&!1===d,w=l&&h(e.slug)&&!e.installed&&(f||void 0===d);return(0,n.createElement)("div",{className:"plugin-actions gv-mt-md"},w?(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md"}):_?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Select",buttonAction:"subscribe_addon",plugin:e});const t=new CustomEvent("onecom-subscribe-addon",{detail:{slug:e.slug},bubbles:!0,cancelable:!0,composed:!0});document.dispatchEvent(t)},disabled:f},"Select"):e.installed?e.activated?(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary",onClick:()=>{(0,o.Mh)({buttonName:"Manage",buttonAction:"manage_product",context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}});const t=(0,s.v)(e,!1);(0,s.J)(t)}},(0,n.createElement)("span",null,p?.labels?.manage||"Manage"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${m}icons/arrow_right.svg`})):(0,n.createElement)("button",{className:"gv-button gv-button-primary",disabled:r[e.slug],onClick:()=>v("activate")},r[e.slug]?y(p?.notifications?.activating||"Activating {0}",b):p?.activateButton||e.i18n?.activateButton||"Activate"):(0,n.createElement)("button",{className:"gv-button "+("seo-by-rank-math"===e.slug?"gv-button-secondary":"gv-button-primary"),disabled:r[e.slug],onClick:()=>v("install")},r[e.slug]?y(p?.notifications?.installing||"Installing {0}",b):p?.installButton||e.i18n?.installButton||"Install"))}},1352:(e,t,r)=>{"use strict";r.d(t,{TO:()=>o.T,gJ:()=>s,hz:()=>a,rV:()=>i.r});var n=r(1609),i=r(7565),o=r(8484);r(1831);const s=(0,n.createContext)();class a{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}},1609:e=>{"use strict";e.exports=window.React},1755:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(7979),o=r(8291);function s(){const{assetsBaseUrl:e}=(0,i.D)(),{t}=(0,o.Bd)();return e||void 0!==window.marketplaceConfig&&window.marketplaceConfig,(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},t("ui.notifications.couldNotLoad")),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},t("ui.notifications.refreshPage")),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.reload()}},(0,n.createElement)("span",null,t("ui.button.refreshPage")))))}},1831:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(7565),i=r(8484);const o={type:"3rdParty",init(e){(0,n.P)(e.options.react),(0,i.V)(e)}}},2176:(e,t,r)=>{"use strict";r(8437)},2635:(e,t,r)=>{"use strict";r.r(t),r.d(t,{changeLanguage:()=>Q,createInstance:()=>G,default:()=>H,dir:()=>K,exists:()=>re,getFixedT:()=>ee,hasLoadedNamespace:()=>ie,init:()=>J,keyFromSelector:()=>I,loadLanguages:()=>se,loadNamespaces:()=>oe,loadResources:()=>Y,reloadResources:()=>Z,setDefaultNamespace:()=>ne,t:()=>te,use:()=>X});const n=e=>"string"==typeof e,i=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},o=e=>null==e?"":""+e,s=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,c=e=>!e||n(e),l=(e,t,r)=>{const i=n(t)?t.split("."):t;let o=0;for(;o{const{obj:n,k:i}=l(e,t,Object);if(void 0!==n||1===t.length)return void(n[i]=r);let o=t[t.length-1],s=t.slice(0,t.length-1),a=l(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=l(e,s,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r},p=(e,t)=>{const{obj:r,k:n}=l(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},h=(e,t,r)=>{for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):h(e[i],t[i],r):e[i]=t[i]);return e},d=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const g=e=>n(e)?e.replace(/[&<>"'\/]/g,e=>f[e]):e,m=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let i=e;for(let e=0;e-1&&se?.replace("_","-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class w{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var k=new w;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,r,i={}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):n(r)&&o?a.push(...r.split(o)):a.push(r)));const c=p(this.data,a);return!c&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!c&&s&&n(r)?y(this.data?.[e]?.[t],r,o):c}addResource(e,t,r,n,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),u(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,i={silent:!1}){for(const i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=p(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?h(a,r,i):a={...a,...r},u(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var C={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};const E=Symbol("i18next/PATH_KEY");function I(e,t){const{[E]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,i)=>(r?.revoke?.(),i===E?e:(e.push(i),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return r.join(t?.keySeparator??".")}const O={},N=e=>!n(e)&&"boolean"!=typeof e&&"number"!=typeof e;class A extends S{constructor(e,t={}){super(),((e,t,r)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(r[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);return void 0!==n?.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const s=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=m.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const i=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,r,i));if(s&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(o)?[o]:o};const s=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(i)}return{key:e,namespaces:n(o)?[o]:o}}translate(e,t,r){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=I(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(e[e.length-1],i),l=c[c.length-1];let u=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const p=i.lng||this.language,h=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===p?.toLowerCase())return h?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;const d=this.resolve(e,i);let f=d?.res;const g=d?.usedKey||a,m=d?.exactUsedKey||a,v=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==i.count&&!n(i.count),_=A.hasDefaultValue(i),w=b?this.pluralResolver.getSuffix(p,i.count,i):"",k=i.ordinal&&b?this.pluralResolver.getSuffix(p,i.count,{ordinal:!1}):"",S=b&&!i.ordinal&&0===i.count,x=S&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${w}`]||i[`defaultValue${k}`]||i.defaultValue;let C=f;y&&!f&&_&&(C=x);const E=N(C),O=Object.prototype.toString.apply(C);if(!(y&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(O)<0)||n(v)&&Array.isArray(C))if(y&&n(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,i,r));else{let t=!1,n=!1;!this.isValidLookup(f)&&_&&(t=!0,f=x),this.isValidLookup(f)||(n=!0,f=a);const o=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:f,c=_&&x!==f&&this.options.updateMissing;if(n||t||c){if(this.logger.log(c?"updateKey":"missingKey",p,l,a,c?x:f),s){const e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r{const n=_&&r!==f?r:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,n,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,n,c,i),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,i);S&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,i[`defaultValue${t}`]||x)})}):r(e,a,x))}f=this.extendTranslation(f,e,i,d,r),n&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(n||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,C,{...i,ns:c}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(i),d):e}if(s){const e=Array.isArray(C),t=e?[]:{},r=e?m:g;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const n=`${r}${s}${e}`;t[e]=_&&!f?this.translate(n,{...i,defaultValue:N(x)?x[e]:void 0,joinArrays:!1,ns:c}):this.translate(n,{...i,joinArrays:!1,ns:c}),t[e]===n&&(t[e]=C[e])}f=t}}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(i),d):f}extendTranslation(e,t,r,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const s=n(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||i.usedLng,r),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=n(s)?[s]:s;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=C.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,i,o,s,a;return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(e,t),l=c.key;i=l;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=void 0!==t.count&&!n(t.count),h=p&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(n(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(a=e,O[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(O[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{if(this.isValidLookup(r))return;s=n;const i=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&0===e.indexOf(o)&&i.push(l+e.replace(o,this.options.pluralSeparator)),i.push(l+e),h&&i.push(l+r)),d){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;i.push(n),p&&(t.ordinal&&0===e.indexOf(o)&&i.push(n+e.replace(o,this.options.pluralSeparator)),i.push(n+e),h&&i.push(n+r))}}let a;for(;a=i.pop();)this.isValidLookup(r)||(o=a,r=this.getResource(n,e,a,t))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!n(e.replace);let i=r?e.replace:e;if(r&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const e of t)delete i[e]}return i}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class M{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):n(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{i.indexOf(e)<0&&o(this.formatLanguageCode(e))}),i}}const R={zero:0,one:1,two:2,few:3,many:4,other:5},T={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=b("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:n})}catch(r){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),T;if(!e.match(/-|_/))return T;const n=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(n,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((e,t)=>R[e]-R[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const L=(e,t,r,i=".",o=!0)=>{let s=((e,t,r)=>{const n=p(e,r);return void 0!==n?n:p(t,r)})(e,t,r);return!s&&o&&n(r)&&(s=y(e,r,i),void 0===s&&(s=y(t,r,i))),s},D=e=>e.replace(/\$/g,"$$$$");class F{constructor(e={}){this.logger=k.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?d(i):o||"{{",this.suffix=s?d(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=p?d(p):h||d("$t("),this.nestingSuffix=f?d(f):m||d(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let s,a,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const n=L(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}const n=e.split(this.formatSeparator),o=n.shift().trim(),s=n.join(this.formatSeparator).trim();return this.format(L(t,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:o})};this.resetRegExp();const p=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>D(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?D(this.escape(e)):D(e)}].forEach(t=>{for(c=0;s=t.regex.exec(e);){const r=s[1].trim();if(a=u(r),void 0===a)if("function"==typeof p){const t=p(e,s,i);a=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))a="";else{if(h){a=s[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a=""}else n(a)||this.useRawValueToEscape||(a=o(a));const l=t.safeValue(a);if(e=e.replace(s[0],l),h?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t,r={}){let i,s,a;const c=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,a);const o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!n(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==u&&(l=i[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=t(c.call(this,i[1].trim(),a),a),s&&i[0]===e&&!n(s))return s;n(s)||(s=o(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const U=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=n+JSON.stringify(o);let a=t[s];return a||(a=e(b(n),i),t[s]=a),a(r)}},j=e=>(t,r,n)=>e(b(r),n)(t);class B{constructor(e={}){this.logger=k.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?U:j;this.formats={number:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=U(t)}format(e,t,r,n={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class $ extends S{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){const i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){const n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:i}=l(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&n{this.read.call(this,e,t,r,n+1,2*i,o)},i):o(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}}prepareLoading(e,t,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);const o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i,o={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const a={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=5===c.length?c(e,t,r,n,a):c(e,t,r,n),i&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else c(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const z=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),q=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{};class W extends S{constructor(e={},t){var r;if(super(),this.options=q(e),this.services={},this.logger=k,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(n(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=z();this.options={...r,...this.options,...q(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?k.init(o(this.modules.logger),this.options):k.init(null,this.options),e=this.modules.formatter?this.modules.formatter:B;const t=new M(this.options);this.store=new x(this.options.resources,this.options);const n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new P(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new F(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new $(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=i(),a=()=>{const e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),s}loadResources(e,t=V){let r=t;const i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===i?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=V),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=i();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(n,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(n,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=n(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(n(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const i=(e,t,...n)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||i.keyPrefix);const s=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=I(e,{...this.options,...t})),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=I(e,{...this.options,...t})),a=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(a,o)};return n(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(r,e)||n&&!o(i,e)))}loadNamespaces(e,t){const r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=i();n(e)&&(e=[e]);const o=this.options.preload||[],s=e.filter(e=>o.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=o.concat(s),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new M(z());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new W(e,t)}cloneInstance(e={},t=V){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new W(n);if(void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{});i.store=new x(e,n),i.services.resourceStore=i.store}return i.translator=new A(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=W.createInstance();H.createInstance=W.createInstance;const G=H.createInstance,K=H.dir,J=H.init,Y=H.loadResources,Z=H.reloadResources,X=H.use,Q=H.changeLanguage,ee=H.getFixedT,te=H.t,re=H.exists,ne=H.setDefaultNamespace,ie=H.hasLoadedNamespace,oe=H.loadNamespaces,se=H.loadLanguages},2648:(e,t,r)=>{"use strict";r(1609),r(8437),r(9454)},2875:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});const n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},o=e=>i[e],s=e=>e.replace(n,o)},3220:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,v:()=>n});const n=(e,t=!1)=>{let r=e.redirectUrl;const n="seo-by-rank-math"===e.slug||"seo-by-rank-math-pro"===e.slug,i=e.onboardingUrl&&"string"==typeof e.onboardingUrl&&""!==e.onboardingUrl.trim();if(n){const t=window.marketplaceConfig?.wpConfig;(!t||!0!==t.rankMathRegistrationSkip)&&i&&(r=e.onboardingUrl)}else t&&i&&(r=e.onboardingUrl);return r},i=e=>{if(e&&""!==e.trim()){const t=void 0!==window.marketplaceConfig&&window.marketplaceConfig?.wpConfig?.adminUrl;if(t){let r=e;r.startsWith("wp-admin/")&&(r=r.substring(9));const n=`${t}${r}`;window.location.href=n}else{const t=`${window.location.origin}/${e}`;window.location.href=t}return}window.location.href="/wp-admin/plugins.php"}},3227:(e,t,r)=>{"use strict";r(1609),r(7674),r(1352),r(9454)},3258:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=r(7979),o=r(488);function s({loading:e=!1}){const{plugins:t,assetsBaseUrl:r,uiI18n:s}=(0,i.D)(),[a,c]=(0,n.useState)(0),[l,u]=(0,n.useState)(2),p="undefined"!=typeof window&&window.marketplaceConfig?.activePlugins?window.marketplaceConfig.activePlugins:[],h="undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor?window.marketplaceConfig.activeThemeAuthor:"";(0,n.useEffect)(()=>{const e=()=>{window.innerWidth>1024?u(2):(window.innerWidth,u(1))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const d=e=>{if(!e.rules)return!0;if(e.rules.mustHavePlugins&&Array.isArray(e.rules.mustHavePlugins)){if(0===e.rules.mustHavePlugins.length)return!0;if(!e.rules.mustHavePlugins.some(e=>p.includes(e)))return!1}if(e.rules.mustHaveThemesByAuthor&&"string"==typeof e.rules.mustHaveThemesByAuthor){const t=e.rules.mustHaveThemesByAuthor;if(h!==t)return!1}return!0},f=!0===t.find(e=>"seo-by-rank-math"===e.slug)?.activated,g=!0===t.find(e=>"seo-by-rank-math-pro"===e.slug)?.activated,m=t.filter(e=>!0!==e.activated&&!0===e.featured&&("seo-by-rank-math"===e.slug?!f&&!g&&d(e):"seo-by-rank-math-pro"===e.slug?f&&d(e):d(e))).sort((e,t)=>(void 0!==e.displayOrder?parseInt(e.displayOrder):1/0)-(void 0!==t.displayOrder?parseInt(t.displayOrder):1/0)),v=r||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",y=v?`${v}assets/icons/`:"",b=m.length,_=Math.max(0,b-l);return e?(0,n.createElement)("section",{className:"gv-featured-carousel gv-w-full"},(0,n.createElement)("div",{className:"gv-carousel-header gv-mb-lg gv-tab-mt-md gv-max-mob-mt-0"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"200px"}})),(0,n.createElement)("div",{className:"gv-carousel-container",style:{position:"relative",overflow:"hidden"}},(0,n.createElement)("div",{className:"gv-carousel-track",style:{display:"flex",gap:"1rem"}},[...Array(l)].map((e,t)=>(0,n.createElement)("div",{key:`skeleton-slide-${t}`,className:"gv-carousel-slide gv-border-alt",style:{minWidth:`calc((100% - ${l-1}rem) / ${l})`,maxWidth:`calc((100% - ${l-1}rem) / ${l})`,flex:"0 0 auto",backgroundColor:"#D9EBF7",borderRadius:"6px",display:"flex",justifyContent:"space-between",maxHeight:"456px"}},(0,n.createElement)("header",{className:"gv-product-header gv-area-header gv-w-full",style:{border:"none",background:"#D9EBF7"}},(0,n.createElement)("div",{className:"gv-content gv-stack-space-sm gv-text-sm gv-flex gv-flex-col gv-items-start"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"80px",marginBottom:"24px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-w-full"}),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-w-full"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"90%"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"80%"}}),(0,n.createElement)("div",{className:"gv-slide-footer gv-flex gv-align-center gv-flex-wrap gv-items-center",style:{marginTop:"24px"}},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"100px",height:"40px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-ml-md",style:{width:"60px",height:"24px"}}))),(0,n.createElement)("div",{className:"gv-image gv-max-mob-pl-md"},(0,n.createElement)("div",{className:"gv-card-image",style:{width:"100%",height:"100%",marginTop:"74px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full"}))))))))):m&&0!==m.length?(0,n.createElement)("section",{className:"gv-featured-carousel gv-w-full"},(0,n.createElement)("div",{className:"gv-carousel-header gv-mb-lg gv-tab-mt-md gv-max-mob-mt-0"},(0,n.createElement)("h5",{className:"gv-title gv-heading-sm gv-recommended-heading"},s?.headings?.recommendedHeading)),(0,n.createElement)("div",{className:"gv-carousel-container",style:{position:"relative",overflow:"hidden"}},(0,n.createElement)("div",{className:"gv-carousel-track",style:{display:"flex",transition:"transform 0.3s ease-in-out",transform:`translateX(calc(-${a} * ((100% - ${l-1}rem) / ${l} + 1rem)))`,gap:"1rem"}},m.map((e,t)=>{const r=e?.i18n?.featuredTitle,i=e?.i18n?.featuredContent,a=e.i18n.freeTrialPeriod&&""!==e.i18n.freeTrialPeriod.trim()?e.i18n.freeTrialPeriod:s?.labels?.free||"Free",c=(0,o.M)(e,a,s),u=e.bannerUrl||e.image||e.thumbnail||"https://gravity.group.one/guide-images/product-image@2x.png",p=Array.isArray(e.categories)&&e.categories.length?"object"==typeof e.categories[0]?e.categories[0]:{slug:String(e.categories[0]),title:String(e.categories[0]),description:null}:{slug:"Others",title:"Others",description:null};return p.title||p.slug,(0,n.createElement)("div",{key:`slide-${t}`,className:"gv-carousel-slide gv-border-alt",style:{minWidth:`calc((100% - ${l-1}rem) / ${l})`,maxWidth:`calc((100% - ${l-1}rem) / ${l})`,flex:"0 0 auto",backgroundColor:"#D9EBF7",borderRadius:"6px",display:"flex",justifyContent:"space-between",maxHeight:"456px"}},(0,n.createElement)("header",{className:"gv-product-header gv-area-header",style:{border:"none",background:"#D9EBF7"}},(0,n.createElement)("div",{className:"gv-content gv-stack-space-lg gv-text-sm gv-flex gv-flex-col gv-items-start gv-h-full gv-justify-between"},(0,n.createElement)("div",{className:"gv-badge gv-badge-info gv-flex-none"},e?.name),(0,n.createElement)("div",{className:"gv-flex gv-flex-col gv-h-full gv-justify-between"},(0,n.createElement)("div",{className:"gv-max-mob-mb-lg gv-max-tab-mb-lg",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:8,overflow:"hidden",width:"100%"}},(0,n.createElement)("h5",{className:"gv-title gv-header-sm",style:{marginBottom:"8px"}},r),(0,n.createElement)("p",{className:"gv-text-sm"},i?.trim())),(0,n.createElement)("div",{className:"gv-slide-footer gv-flex gv-align-center gv-items-center"},(0,n.createElement)("button",{onClick:()=>(e=>{if("undefined"!=typeof window){const t=new URL(window.location.href);t.searchParams.set("plugin",e.slug),window.history.pushState({},"",t.toString()),window.dispatchEvent(new PopStateEvent("popstate"))}})(e),className:"gv-button gv-button-secondary gv-w-auto gv-flex-shrink-0"},s?.featuredCta),(0,n.createElement)("span",{className:"gv-price gv-text-bold gv-text-md gv-ml-md gv-flex-1"},c,"free"!==e.licenseType&&c&&c!==a&&c!==(s?.labels?.freeUntilRenewal||"Free until renewal")&&(0,n.createElement)("span",{className:"gv-period"},"/",s?.labels?.timeMonth))))),(0,n.createElement)("div",{className:"gv-image gv-max-mob-pl-md"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${u} 1x, ${u} 2x`}),(0,n.createElement)("img",{src:u,srcSet:`${u} 1x, ${u} 2x`,alt:`${r} image`})))))}))),b>l&&(0,n.createElement)("div",{className:"gv-carousel-nav-wrapper gv-flex gv-justify-center gv-align-center gv-mt-sm gv-gap-fluid"},(0,n.createElement)("button",{onClick:()=>{a>0&&c(e=>e-1)},disabled:0===a,className:"gv-carousel-nav gv-carousel-nav-prev",style:{display:"flex",alignItems:"center",justifyContent:"center",cursor:0===a?"not-allowed":"pointer",opacity:0===a?.5:1},"aria-label":"Previous slide"},(0,n.createElement)("img",{src:`${y}chevron_left.svg`,alt:"Previous",style:{width:"24px",height:"24px"}})),(0,n.createElement)("div",{className:"gv-carousel-dots gv-flex-wrap gv-items-center gv-flex gv-justify-center gv-gap-sm"},Array.from({length:_+1}).map((e,t)=>(0,n.createElement)("button",{key:t,onClick:()=>(e=>{c(Math.min(e,_))})(t),className:"gv-carousel-dot",style:{width:"8px",height:"8px",borderRadius:"50%",border:"none",background:a===t?"#0066CC":"#D0D0D0",cursor:"pointer",padding:0},"aria-label":`Go to slide ${t+1}`}))),(0,n.createElement)("button",{onClick:()=>{a<_&&c(e=>e+1)},disabled:a>=_,className:"gv-carousel-nav gv-carousel-nav-next",style:{display:"flex",alignItems:"center",justifyContent:"center",cursor:a>=_?"not-allowed":"pointer",opacity:a>=_?.5:1},"aria-label":"Next slide"},(0,n.createElement)("img",{src:`${y}chevron_right.svg`,alt:"Next",style:{width:"24px",height:"24px"}})))):null}},3273:(e,t,r)=>{"use strict";r(1609),r(1352)},3331:(e,t,r)=>{"use strict";r.d(t,{hw:()=>i,j6:()=>s,lb:()=>o});var n=r(1609);const i=(e,t,r)=>e?e.replace(t,r||""):"",o=(e,t,r)=>e.replace(/%([^%]+)%/g,(e,n)=>`${t}${n}${r}`),s=({htmlString:e})=>(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e}})},3461:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Päivitä sivu","ui.notifications.couldNotLoad":"Sivua ei voitu ladata","ui.notifications.refreshPage":"Päivitä sivu ja ota yhteyttä asiakaspalveluumme, jos ongelma jatkuu."}')},3526:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o(){const{loadingAction:e,loadingPlugin:t,assetsBaseUrl:r}=(0,i.D)();if(!e)return null;const o=`${r||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||""}assets/images/spinner.svg`;return(0,n.createElement)("div",{className:"loading-overlay show"},(0,n.createElement)("div",{className:"gv-loader-container gv-pos-center gv-pos-absolute"},(0,n.createElement)("gv-loader",{src:o}),(0,n.createElement)("p",null,e)))}},3591:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualizar página","ui.notifications.couldNotLoad":"No se puede cargar la página","ui.notifications.refreshPage":"Actualice la página y póngase en contacto con nuestro servicio de asistencia si el problema persiste."}')},3804:(e,t,r)=>{"use strict";r(4915),Object.create(null)},4103:(e,t,r)=>{"use strict";function n(e){if(!e||!e.data||!Array.isArray(e.data.catalog))return console.error("Unsupported marketplace response shape. Expected { data: { catalog: [...] } }.",e),{plugins:[],uiI18n:{},locale:null};const t=e.data.catalog,r=e.data.uiI18n||{},n=e.data.locale||null;if(0===t.length)return{plugins:[],uiI18n:r,locale:n};const i=t.map(e=>{var t,r;const n=e?.i18n?.description,i="string"==typeof n&&n?n:"object"==typeof e?.description&&null!==e.description?e.description["en-gb"]||Object.values(e.description)[0]||"":e?.description||"",o=e?.download||e?.download_url||e?.downloadUrl||"",s="object"==typeof e?.author&&null!==e.author?e.author.name||"":e?.author||"",a="object"==typeof e?.author&&null!==e.author&&e.author.url||"",c="object"==typeof e?.price&&null!==e.price?e.price.amount:void 0,l="object"==typeof e?.price&&null!==e.price?e.price.currency:void 0;return{...e,name:e?.name||"Unknown",slug:e?.slug||"",thumbnail:e?.thumbnail||"",description:i,download:o,author:s,authorUrl:a,priceAmount:c,priceCurrency:l,installed:null!==(t=e?.installed)&&void 0!==t&&t,activated:null!==(r=e?.activated)&&void 0!==r&&r,i18n:e?.i18n||{}}}),o=new Set;return{plugins:i.filter(e=>{const t=e.slug||e.name||JSON.stringify(e);return!o.has(t)&&(o.add(t),!0)}),uiI18n:r,locale:n}}r.d(t,{i:()=>n})},4469:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1609),i=r(7979),o=r(7008),s=r(3220);function a({plugin:e}){const{assetsBaseUrl:t,noticeState:r,setNoticeState:a,handlePluginAction:c,cancelReload:l,uiI18n:u}=(0,i.D)();if(!r||!r.visible||r.pluginSlug!==e?.slug)return null;const p=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",h=p?`${p}assets/`:"",d="installed"===r.type,f="activated"===r.type,g=(e,t)=>e?e.replace("{0}",t||""):"",m=e?.name||"";return(0,n.createElement)("div",{className:"gv-notice gv-notice-success gv-p-lg gv-max-mob-pt-lg gv-mb-0 gv-mt-lg",style:{gridColumn:"1 / -1",width:"100%"}},(0,n.createElement)("img",{className:"gv-notice-icon",src:`${h}icons/success.svg`,alt:"Success"}),(0,n.createElement)("div",{className:"gv-notice-content"},(0,n.createElement)("div",{className:"gv-notice-title"},d&&g(u?.notifications?.pluginInstalled||"Plugin was installed.",m),f&&g(u?.notifications?.pluginActivated||"Plugin was activated.",m)),(0,n.createElement)("p",{className:"gv-text-sm"},d&&(u?.notifications?.activateNow||"Activate it now to start using it."),f&&g(u?.notifications?.manageInMyProducts||"{0} plugin was activated for this site. You can manage it on the My products page.",m))),d&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{c("activate",e,"product_detail")}},u?.activatePluginButton),f&&(0,n.createElement)("button",{type:"button",className:"gv-action gv-button gv-button-neutral",onClick:()=>{(0,o.Mh)({buttonName:"Get started",buttonAction:"manage_product",plugin:e,context:{product_slug:e.slug,product_name:e.name,has_redirect_url:!(!e.redirectUrl||""===e.redirectUrl.trim()),has_onboarding_url:!(!e.onboardingUrl||""===e.onboardingUrl.trim())}}),l();const t=(0,s.v)(e,!0);(0,s.J)(t)}},(0,n.createElement)("span",null,u?.featuredCta||"Get Started"),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/arrow_forward.svg`})),(0,n.createElement)("button",{type:"button",className:"gv-notice-close","aria-label":"Close",onClick:()=>{a({visible:!1,type:null,pluginSlug:null}),sessionStorage.removeItem("mp_success_notice")}},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${h}icons/close.svg`})))}},4598:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(1609),i=r(5795),o=r(1338),s=r(4469),a=r(4677),c=r(4694),l=r(7979),u=r(488);function p({plugin:e,onClose:t,usePortal:r=!0,loading:p=!1}){const{assetsBaseUrl:h,useWPHandlers:d,pluginInAction:f,uiI18n:g,setNoticeState:m,setErrorState:v}=(0,l.D)(),y=h||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",b=y?`${y}assets/icons/`:"";if(p){const e=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)("nav",{className:"gv-breadcrumbs gv-area-nav gv-flex-col gv-items-start"},(0,n.createElement)("div",{className:"gv-flex gv-items-center gv-gap-xs"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"60px"}}))),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-sm gv-text-sm"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mb-sm",style:{marginBottom:"24px"}}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"80%"}})),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("div",{className:"gv-card-image gv-h-full",style:{marginTop:"75px"}},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full",style:{minHeight:"300px"}})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"70%"}})),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"120px",height:"32px"}})),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mt-md"}))))),(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md",style:{width:"150px"}}))),[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-w-full"})))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"180px"}}),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},[...Array(3)].map((e,t)=>(0,n.createElement)("li",{key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"})))))),(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-md",style:{width:"250px"}}),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("div",{className:"gv-skeleton gv-heading-md gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-xs"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm"}))))))));return r?(0,i.createPortal)(e,document.body):e}if(!e)return null;(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),(0,n.useEffect)(()=>{m(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null}),v(t=>t.visible&&t.pluginSlug===e.slug?t:{visible:!1,type:null,pluginSlug:null})},[e.slug,m,v]),(0,n.useEffect)(()=>{const e=()=>{m({visible:!1,type:null,pluginSlug:null}),v({visible:!1,type:null,pluginSlug:null})};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[m,v]),void 0!==window.onecomWpVars&&window.onecomWpVars,e.thumbnail;const _=e.bannerUrl||e.image||e.thumbnail||"https://gravity.group.one/guide-images/product-image@2x.png",w=e.name||"Product",k=e.i18n?.description||e.i18n?.subtitle||e.description||e.shortDescription||"No description available.",S=e.i18n?.subtitle,x="free"===e.licenseType,C=e.i18n?.freeTrialText||"",E=C&&""!==C.trim(),I=e.i18n?.freeTrialPeriod||"",O=I&&""!==I.trim(),N=O||E?g?.headings?.freeTrial||"Free trial*":(0,u.M)(e,g?.labels?.free||"Free",g),A=N===(g?.labels?.freeUntilRenewal||"Free until renewal"),M=(0,u.Tc)(e),R=(0,u.Dn)(e),T=(e,t)=>{if(!e||"object"!=typeof e)return[];const r=[];let n=1;for(;e[`${t}${n}`];){const i=e[`${t}${n}`];i&&""!==i.trim()&&r.push(i),n++}return r},P=T(e.i18n,"keyBenefitContent"),L=T(e.i18n,"keyFeatureContent"),D=[];if(e.i18n&&"object"==typeof e.i18n){let t=1;for(;e.i18n[`coreFeatureTitle${t}`]||e.i18n[`coreFeatureContent${t}`];){const r=e.i18n[`coreFeatureTitle${t}`],n=e.i18n[`coreFeatureContent${t}`];r&&""!==r.trim()&&n&&""!==n.trim()&&D.push({name:r,desc:n}),t++}}const F=L,U=P,j=D,B=(0,n.createElement)("div",{className:"gv-surface-dim"},(0,n.createElement)("article",{className:"gv-layout-product gv-p-0 gv-product-single gv-w-max-container gv-mx-auto gv-p-fluid"},(0,n.createElement)(c.A,{iconBase:b,label:g.backButton,onClose:t,disabled:f[e.slug],className:"gv-flex-col gv-items-start"},(0,n.createElement)(s.A,{plugin:e}),(0,n.createElement)(a.A,{plugin:e})),(0,n.createElement)("header",{className:"gv-product-header gv-area-header"},(0,n.createElement)("div",{className:"gv-content gv-stack-space-md gv-text-sm"},(0,n.createElement)("h3",{className:"gv-title gv-header-lg"},w),(0,n.createElement)("p",{className:"gv-text-sm"},k)),(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:`${_} 1x, ${_} 2x`}),(0,n.createElement)("img",{src:_,srcSet:`${_} 1x, ${_} 2x`,alt:`${w} image`})))),(0,n.createElement)("section",{className:"gv-product-table gv-features-table gv-products-1 gv-area-table"},(0,n.createElement)("div",{className:"gv-table-container"},(0,n.createElement)("div",{className:"gv-table",role:"table"},(0,n.createElement)("div",{className:"gv-table-header",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-product gv-p-0 oc-border-none",role:"columnheader"},(0,n.createElement)("div",{className:"gv-content"},(0,n.createElement)("h3",{className:"gv-title"},w),(0,n.createElement)("p",null,S)),(0,n.createElement)("div",{className:"gv-bottom"},(0,n.createElement)("div",{className:"gv-price-container"},(0,n.createElement)("div",{className:"gv-price"},O||E?(0,n.createElement)("span",{className:"gv-price-text"},N):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("span",{className:"gv-price-text"},"premium"===e.licenseType&&null!==R?null!==R?R:M:N),!x&&!A&&N&&(0,n.createElement)("span",{className:"gv-period"},"/",g?.labels?.timeMonth))),O||E?(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},C)):!x&&N&&M&&null!==R&&(0,n.createElement)("div",{className:"gv-price-info"},(0,n.createElement)("div",{className:"gv-info"},g.labels.untilRenewal," [",R,"]/",g?.labels?.timeMonth),(0,n.createElement)("div",{className:"gv-info"},g.labels.afterThat," [",M,"]/",g?.labels?.timeMonth))),d?(0,n.createElement)(o.A,{plugin:e}):e.download&&(0,n.createElement)("a",{href:e.download,download:!0,className:"gv-button gv-button-secondary"},"Download"))))),F.length>0&&(0,n.createElement)("div",{className:"gv-section oc-left-border-0",role:"rowgroup"},(0,n.createElement)("div",{className:"gv-section-header gv-table-row",role:"row"},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("h4",{className:"gv-title"},g?.keyFeatureHeading||e.i18n?.keyFeatureHeading))),F.map((e,t)=>(0,n.createElement)("div",{className:"gv-table-row",role:"row",key:t},(0,n.createElement)("div",{className:"gv-cell",role:"cell"},(0,n.createElement)("span",{className:"gv-cell-text"},e)))))))),(0,n.createElement)("div",{className:"gv-area-details gv-grid gv-gap-fluid"},U.length>0&&(0,n.createElement)("section",{className:"gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.benefitHeading||e.i18n?.benefitHeading||"Key benefits"),(0,n.createElement)("ul",{className:"gv-list-items gv-list-check gv-mode-condensed"},U.map((e,t)=>(0,n.createElement)("li",{key:t},e))))),j.length>0&&(0,n.createElement)("div",{className:"gv-area-content gv-grid gv-gap-fluid"},(0,n.createElement)("section",{className:"gv-text-sm gv-stack-space-md"},(0,n.createElement)("h2",{className:"gv-title gv-text-bold gv-text-lg"},g?.featureOverviewHeading||e.i18n?.featureOverviewHeading||"Core features overview"),(0,n.createElement)("div",{className:"gv-grid gv-gap-lg gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3"},j.map((e,t)=>(0,n.createElement)("div",{className:"gv-item gv-stack-space-sm",key:t},(0,n.createElement)("h3",{className:"gv-title gv-text-bold gv-text-lg"},e.name),(0,n.createElement)("p",{className:"gv-text-sm"},e.desc))))))));return r?(0,i.createPortal)(B,document.body):B}},4601:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(7008);const i=async({plugin:e,apiBaseUrl:t,useWPHandlers:r,wpConfig:i,source:o,uiI18n:s,setLoadingAction:a,setLoadingPlugin:c,setPluginInAction:l,setSuccessState:u,setErrorState:p,reloadTimeoutRef:h})=>{const d="activate";let f=`${t}${d}/${e.slug}`;const g=`download_url=${encodeURIComponent(e.download||"")}`;f=r?`${i.ajaxUrl}?action=marketplace_${d}_plugin&_wpnonce=${i.nonce}&nonce=${i.nonce}&slug=${e.slug}&${g}`:f+(f.includes("?")?"&":"?")+g,setTimeout(async()=>{try{await fetch(f,{method:"POST"})}catch(e){console.log("Imagify activation request initiated")}let r=0;const i=async()=>{try{const r=`${t}active/${e.slug}`,i=await fetch(r),s=await i.json();if(s&&s.activated)return(0,n.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:e,context:{action:d,result:"success",special_case:"imagify_redirect"}}),void("product_detail"===o?(sessionStorage.setItem("mp_skip_page_view","true"),sessionStorage.setItem("mp_success_notice",JSON.stringify({visible:!0,type:"activated",pluginSlug:e.slug,successType:"activate"})),h.current=setTimeout(()=>{window.location.reload()},500)):(u({visible:!0,type:"activate",pluginSlug:e.slug}),h.current=setTimeout(()=>{sessionStorage.setItem("mp_skip_page_view","true"),window.location.reload()},3e3),a(""),c("")))}catch(e){console.error("Error checking activation status",e)}r++,r<6?setTimeout(i,1e3):(p({visible:!0,type:"activate",pluginSlug:e.slug}),(0,n.Mh)({buttonName:"Activate",buttonAction:"product_activate",plugin:e,context:{action:d,result:"error",error_message:"Imagify activation timeout after polling"}}),a(""),c(""),l(t=>({...t,[e.slug]:!1})))};setTimeout(i,1e3)},100)}},4677:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);function o({plugin:e}){const{assetsBaseUrl:t,errorState:r,setErrorState:o,uiI18n:s,plugins:a}=(0,i.D)(),c=e||a.find(e=>e.slug===r.pluginSlug),l=r&&r.visible&&r.pluginSlug===c?.slug;if((0,n.useEffect)(()=>{if(l){const e=setTimeout(()=>{h()},5e3);return()=>clearTimeout(e)}},[l]),!l)return null;const u=t||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/`:"",h=()=>{o({visible:!1,type:null,pluginSlug:null})},d="activate"===r.type,f="deactivate"===r.type,g="install"===r.type,m="delete"===r.type,v=(e,t)=>e?e.replace("{0}",t||""):"",y=c?.name||"";return(0,n.createElement)("div",{className:"gv-toast-container"},(0,n.createElement)("div",{className:"gv-toast gv-toast-alert gv-visible"},(0,n.createElement)("gv-icon",{className:"gv-notice-icon","aria-hidden":"true",src:`${p}icons/error.svg`}),(0,n.createElement)("div",{className:"gv-toast-content"},d&&v(s?.notifications?.pluginActivationFailed||"Couldn't activate plugin.",y),f&&v(s?.notifications?.pluginDeactivationFailed||"Couldn't deactivate plugin.",y),g&&v(s?.notifications?.pluginInstallationFailed||"Couldn't install plugin.",y),m&&v(s?.notifications?.pluginDeletionFailed||"Couldn't delete plugin.",y)),(0,n.createElement)("button",{type:"button",className:"gv-toast-close","aria-label":"Close",onClick:h},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}icons/close.svg`}))))}},4694:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1609);const i=({iconBase:e,label:t,onClose:r,className:i="",disabled:o=!1,children:s})=>(0,n.createElement)("nav",{className:`gv-breadcrumbs gv-area-nav ${i}`},(0,n.createElement)("a",{href:"#",onClick:e=>{if(e.preventDefault(),!o)if("undefined"!=typeof window&&window.history&&window.history.length>1)try{window.history.back()}catch(e){r&&r()}else r&&r()},className:"gv-flex gv-items-center gv-gap-xs",role:"button","aria-label":"Go back",style:{opacity:o?.5:1,pointerEvents:o?"none":"auto",cursor:o?"not-allowed":"pointer"},"aria-disabled":o?"true":"false"},(0,n.createElement)("img",{style:{minWidth:"24px"},className:"gv-tile",src:`${e}arrow_back.svg`,alt:"Back"}),(0,n.createElement)("span",null,t)),s)},4811:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Actualiser la page","ui.notifications.couldNotLoad":"Impossible de charger la page","ui.notifications.refreshPage":"Veuillez rafraîchir la page et contact notre support si le problème persiste."}')},4814:(e,t,r)=>{"use strict";r(1609),r(3804),r(9454),r(7565)},4889:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(1609),i=r.n(n),o=r(4103),s=(r(6530),r(8291)),a=r(4598),c=r(9962),l=r(1755),u=r(1174),p=r(7979),h=r(488),d=r(7008);function f(){const{apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:f,assetsBaseUrl:g,pluginInAction:m,setPluginInAction:v,fetchSubscriptionStatus:y,isOnecomBrand:b,plugins:_,setPlugins:w,uiI18n:k,setUiI18n:S,handlePluginAction:x,allPluginsActivated:C,setAllPluginsActivated:E,catalogError:I,setCatalogError:O,catalogLoading:N,setCatalogLoading:A,currentPluginSlug:M,shouldShowProvision:R,isSpecialPlugin:T,shouldShowPlugin:P,isWpVersionSupported:L}=(0,p.D)(),[D,F]=("undefined"!=typeof window&&window.marketplaceConfig?.activePlugins&&window.marketplaceConfig.activePlugins,"undefined"!=typeof window&&window.marketplaceConfig?.activeThemeAuthor&&window.marketplaceConfig.activeThemeAuthor,(0,n.useState)({})),[U,j]=(0,n.useState)(null),B=(0,n.useRef)(!1),$=(0,n.useRef)(!1),z=(0,n.useRef)(null),q=(0,n.useRef)(null),V=(0,n.useRef)(null),W=(0,n.useRef)(!1),H=g||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",G=H?`${H}assets/icons/`:"";(0,n.useEffect)(()=>{if(M&&_.length){const e=_.find(e=>e.slug===M);e&&j(e)}else M||j(null)},[M,_]);const{t:K}=(0,s.Bd)();(0,n.useEffect)(()=>{B.current||async function(){try{B.current=!0;const t=await fetch(`${e}`),r=await t.json();if(q.current=Date.now(),W.current=r.is_cached||!1,r&&!1===r.success)return(0,d.oe)({category:"marketplace_home",isContentRendered:!1}),O(!0),void A(!1);if(!r||!r.data||!r.data.catalog||Array.isArray(r.data.catalog)&&0===r.data.catalog.length)return console.error("API returned empty or blank response"),(0,d.oe)({category:"marketplace_home",isContentRendered:!1}),O(!0),void A(!1);const{plugins:n,uiI18n:i}=(0,o.i)(r);w(n),S(i),b&&n.filter(e=>T(e.slug)).forEach(e=>{y(e.slug)})}catch(e){(0,d.oe)({category:"marketplace_home",isContentRendered:!1,visibleConditionalProducts:[]}),O(!0)}finally{A(!1)}}()},[e,b,y,w]);const{visiblePlugins:J,visibleConditionalPlugins:Y}=i().useMemo(()=>{if(!_.length)return{visiblePlugins:[],visibleConditionalPlugins:[]};const e=new Map,t=[],r=!0===_.find(e=>"seo-by-rank-math"===e.slug)?.activated,n=!0===_.find(e=>"seo-by-rank-math-pro"===e.slug)?.activated;return _.forEach(t=>{e.has(t.slug)||!0===t.activated||("seo-by-rank-math"!==t.slug?"seo-by-rank-math-pro"!==t.slug?P(t)&&e.set(t.slug,t):r&&P(t)&&e.set(t.slug,t):r||n||!P(t)||e.set(t.slug,t))}),e.forEach((e,r)=>{e.rules&&Object.keys(e.rules).length>0&&P(e)&&t.push(r)}),{visiblePlugins:Array.from(e.values()),visibleConditionalPlugins:t}},[_,P]);(0,n.useEffect)(()=>{if(_.length>0){const e=0===J.length;E(e)}},[_,J,E]),(0,n.useEffect)(()=>{N||I||!(_.length>0)||M||$.current||(V.current=Date.now(),"true"===sessionStorage.getItem("mp_skip_page_view")?sessionStorage.removeItem("mp_skip_page_view"):(0,d.Yk)(q.current,V.current,W.current,Y),$.current=!0)},[N,I,_.length,M,Y]),(0,n.useEffect)(()=>{U&&M&&z.current!==U.slug&&(V.current=Date.now(),"true"===sessionStorage.getItem("mp_skip_page_view")?sessionStorage.removeItem("mp_skip_page_view"):(0,d.$B)(U,q.current,V.current,W.current),z.current=U.slug),M||(z.current=null)},[U,M]);const Z=e=>{if(!e)return!1;const t="onecom"===("undefined"!=typeof window&&window.marketplaceConfig?.brand),r="seo-by-rank-math-pro"===e.slug||"seo-by-rank-math"===e.slug;return t&&r};if(N){if(M){const e="onecom"!==("undefined"!=typeof window&&window.marketplaceConfig?.brand)||"seo-by-rank-math-pro"!==M&&"seo-by-rank-math"!==M?a.A:c.A;return(0,n.createElement)(e,{plugin:null,onClose:()=>{},usePortal:!1,loading:!0})}return(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg"},(0,n.createElement)("section",{className:"category-section"},(0,n.createElement)("div",{className:"gv-skeleton gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm",style:{width:"400px"}}),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-mb-md gv-desk-lg-grid-cols-3 gv-mt-md"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{key:t,className:"gv-card gv-gap-md gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius"},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-3 gv-tab-span-3"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"48px",height:"48px"}})),(0,n.createElement)("div",{className:"gv-desk-span-8 gv-tab-span-7 gv-span-7"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"80px"}})),(0,n.createElement)("div",{className:"gv-span-2 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"24px"}}))))),(0,n.createElement)("div",{className:"gv-skeleton gv-mb-sm",style:{width:"160px"}}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm",style:{width:"400px"}}),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-mt-md"},[...Array(3)].map((e,t)=>(0,n.createElement)("div",{key:t+3,className:"gv-card gv-gap-md gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius"},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-3 gv-tab-span-3"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"48px",height:"48px"}})),(0,n.createElement)("div",{className:"gv-desk-span-8 gv-tab-span-7 gv-span-7"},(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm gv-mb-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-text-sm",style:{width:"80px"}})),(0,n.createElement)("div",{className:"gv-span-2 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-skeleton",style:{width:"24px"}})))))))}if(I)return(0,n.createElement)(l.A,null);if(!L("6.2"))return(0,n.createElement)(u.A,null);if(U&&M){const e=Z(U)?c.A:a.A;return(0,n.createElement)(e,{plugin:U,onClose:()=>{if(j(null),"undefined"!=typeof window&&window.history&&window.history.length>1)window.history.back();else{const e=new URL(window.location.href);e.searchParams.delete("plugin"),window.history.replaceState({},"",e.toString())}},usePortal:!1,loading:N})}const X=new Map;J.forEach(e=>{const t=Array.isArray(e.categories)&&e.categories.length?"object"==typeof e.categories[0]?e.categories[0]:{slug:String(e.categories[0]),title:String(e.categories[0]),description:null}:{slug:"Others",title:"Others",description:null},r=t.slug||t.title||"Others";X.has(r)||X.set(r,{info:t,plugins:[]}),X.get(r).plugins.push(e)});const Q=Array.from(X.entries()).filter(([e,{plugins:t}])=>t.length>0);return C?(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg gv-items-center gv-justify-center gv-p-fluid"},(0,n.createElement)("div",{className:"gv-text-center"},(0,n.createElement)("h5",{className:"gv-header-md gv-mb-sm"},k?.notifications?.allPluginsOwned),(0,n.createElement)("p",{className:"gv-text-md gv-mb-lg"},k?.text?.managePlugins),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-primary buttons-min-width",onClick:()=>{window.location.href="/wp-admin/plugins.php"}},(0,n.createElement)("span",null,k.viewProductsButton),(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${G}/arrow_right.svg`})))):(0,n.createElement)("div",{className:"marketplace-container gv-flex gv-flex-col gv-flex-wrap gv-gap-lg"},Q.map(([e,{info:t,plugins:r}])=>(0,n.createElement)("section",{key:e,className:"category-section"},(0,n.createElement)("p",{className:"gv-text-bold gv-text-lg gv-mb-xs"},t.title||e),t.description&&(0,n.createElement)("p",{className:"gv-text-sm"},t.description),(0,n.createElement)("div",{className:"product-grid gv-grid gv-gap-lg gv-mob-grid-cols-1 gv-tab-grid-cols-2 gv-desk-lg-grid-cols-3 gv-mt-md"},r.map(e=>{R(e);const t=e.i18n.freeTrialPeriod&&""!==e.i18n.freeTrialPeriod.trim()?e.i18n.freeTrialPeriod:k?.labels?.free||"Free",r=(0,h.M)(e,t,k),i=(0,h.Tc)(e),o=(0,h.Dn)(e);return(0,n.createElement)("div",{key:e.slug,className:"gv-card gv-gap-sm gv-content-container gv-p-lg gv-grid gv-grid-cols-12 gv-radius ocmp-plugin-cards",onClick:t=>{j(e);const r=new URL(window.location.href);r.searchParams.set("plugin",e.slug),window.history.pushState({},"",r.toString())}},(0,n.createElement)("div",{className:"gv-desk-span-2 gv-span-2 gv-tab-span-2"},(0,n.createElement)("img",{className:"gv-icon-tile",src:e.iconUrl||`${G}add_box.svg`,alt:e.name})),(0,n.createElement)("div",{className:"gv-desk-span-9 gv-tab-span-9 gv-span-9 gv-ml-sm"},(0,n.createElement)("div",{className:"gv-flex gv-flex-col gv-justify-between gv-h-full"},(0,n.createElement)("p",{className:"gv-text-sm gv-text-bold gv-mb-xs"},e.name),(0,n.createElement)("p",{className:"oc-card-content gv-text-on-alternative gv-mb-sm gv-text-sm gv-flex-1"}," ",e.i18n.listingDescription||e.i18n.subtitle," "),(0,n.createElement)("span",{className:"gv-caption-lg gv-text-bold"},(0,n.createElement)(n.Fragment,null,"premium"===e.licenseType&&o>0?null!==o?o:i:r,"free"!==e.licenseType&&r&&r!==t&&r!==(k?.labels?.freeUntilRenewal||"Free until renewal")&&(0,n.createElement)("span",{className:"gv-period"},"/",k?.labels?.timeMonth))))),(0,n.createElement)("div",{className:"gv-span-1 gv-content-center gv-text-right"},(0,n.createElement)("div",{className:"gv-reset-button",style:{display:"inline-block"},"aria-label":`View details for ${e.name}`},(0,n.createElement)("img",{className:"gv-tile",src:`${G}arrow_forward.svg`,alt:`View ${e.name} details`,style:{minWidth:"24px"}}))))})))),U&&!M&&(()=>{const e=Z(U)?c.A:a.A;return(0,n.createElement)(e,{plugin:U,onClose:()=>j(null),loading:N})})())}},4915:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5036:(e,t,r)=>{"use strict";var n=r(2635),i=r(8291),o=r(7823),s=r(8491),a=r(5205),c=r(3591),l=r(3461),u=r(4811),p=r(7529),h=r(1199),d=r(333);const f={en_GB:{translation:o},da_DK:{translation:s},de_DE:{translation:a},es_ES:{translation:c},fi_FI:{translation:l},fr_FR:{translation:u},it_IT:{translation:p},nl_NL:{translation:h},no_NO:{translation:d},nb_NO:{translation:d},pt_PT:{translation:r(5383)},sv_SE:{translation:r(8300)},fi:{translation:l}};n.default.use(i.r9).init({resources:f,lng:"en_GB",fallbackLng:"en_GB",interpolation:{escapeValue:!1}})},5205:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Seite aktualisieren","ui.notifications.couldNotLoad":"Die Seite konnte nicht geladen werden","ui.notifications.refreshPage":"Bitte aktualisieren Sie die Seite und Kontakt Sie unser Support, falls das Problem weiterhin besteht."}')},5383:e=>{"use strict";e.exports=JSON.parse('{"ui.button.refreshPage":"Atualizar página","ui.notifications.couldNotLoad":"Não foi possível carregar a página","ui.notifications.refreshPage":"Atualize a página e contacte a nossa equipa de suporte se o problema persistir."}')},5771:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1609),i=r(4889),o=r(6027),s=r(3258),a=r(9599),c=r(7979);const l=()=>{const{allPluginsActivated:e,catalogError:t,catalogLoading:r,isWpVersionSupported:l,currentPluginSlug:u}=(0,c.D)(),p=l("6.2"),h=!!u;return(0,n.createElement)(a.A,{className:"gv-surface-dim"},!h&&!t&&p&&(0,n.createElement)(o.A,{loading:r}),!h&&!e&&p&&(0,n.createElement)(s.A,{loading:r}),(0,n.createElement)(i.A,null))},u=({apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:i,assetsBaseUrl:o})=>(0,n.createElement)(c.t,{apiBaseUrl:e,useWPHandlers:t,wpConfig:r,enableDefaultStyles:i,assetsBaseUrl:o},(0,n.createElement)(l,null))},5795:e=>{"use strict";e.exports=window.ReactDOM},5924:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),i=(r(5795),r(3331)),o=r(7979);const s=()=>{const{deleteModalState:e,closeDeleteModal:t,handlePluginAction:r,assetsBaseUrl:s,uiI18n:a}=(0,o.D)(),{isOpen:c,plugin:l}=e,u=s||void 0!==window.marketplaceConfig&&window.marketplaceConfig?.assetsBaseUrl||"",p=u?`${u}assets/icons/`:"";if((0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&t()};return c&&(window.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{window.removeEventListener("keydown",e),document.body.style.overflow=""}},[c,t]),!c||!l)return null;const h="premium"===l.licenseType,d=l.name;return(0,n.createElement)("div",{className:"gv-modal",onClick:e=>{e.target.classList.contains("gv-modal")&&t()}},(0,n.createElement)("div",{className:"gv-modal-content",role:"dialog","aria-labelledby":"id-modal-title","aria-modal":"true",onClick:e=>e.stopPropagation()},(0,n.createElement)("button",{type:"button",className:"gv-modal-close","aria-label":"Close",onClick:t},(0,n.createElement)("gv-icon",{"aria-hidden":"true",src:`${p}close.svg`})),(0,n.createElement)("div",{className:"gv-modal-body"},(0,n.createElement)("h2",{id:"id-modal-title",className:"gv-modal-title"},(0,i.hw)(a?.deletePlugin,"{0}",d),"?"),(0,n.createElement)("p",null,(0,i.hw)(a?.notifications?.deleteModalConfirm,"{0}",d)),h&&(0,n.createElement)("div",{className:"gv-notice gv-notice-info"},(0,n.createElement)("gv-icon",{class:"gv-notice-icon","aria-hidden":"true",src:`${p}/info.svg`}),(0,n.createElement)("p",{className:"gv-notice-content"},(0,n.createElement)(i.j6,{htmlString:(0,i.lb)((0,i.hw)(a?.notifications?.deleteModalInfo,"{0}",d),'',"")})))),(0,n.createElement)("div",{className:"gv-button-group"},(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-cancel",onClick:t},a?.cancel),(0,n.createElement)("button",{type:"button",className:"gv-button gv-button-destructive",onClick:()=>{r("delete",l,"addons"),t()}},a?.deleteButton))))}},6027:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1609),i=r(7979);const o=({loading:e=!1})=>{const{assetsBaseUrl:t,uiI18n:r}=(0,i.D)(),o="https://wpaddon-static.group-cdn.one/images/wp/marketplace/banners/top-header-left-banner.png",s="https://wpaddon-static.group-cdn.one/images/wp/marketplace/banners/top-header-right-banner.png";return(0,n.createElement)("header",{className:"gv-product-header gv-product-banner gv-pt-fluid gv-items-stretch gv-justify-between gv-gap-lg gv-max-mob-pt-md"},(0,n.createElement)("div",{className:"gv-left-banner "+(e?"gv-h-full gv-w-full":"")},e?(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full"})):(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:o}),(0,n.createElement)("img",{src:o,alt:"Left banner"})))),(0,n.createElement)("div",{className:"gv-content gv-banner-content gv-max-mob-pt-0 gv-max-mob-pb-0 gv-desk-lg-text-center gv-tab-text-left gv-flex gv-flex-col gv-align-center gv-justify-center gv-pt-0"},e?(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mt-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-heading-lg gv-mt-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-mt-sm"}),(0,n.createElement)("div",{className:"gv-skeleton gv-mt-sm"})):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("h2",{className:"gv-banner-title"},r?.headings?.pageTitle),(0,n.createElement)("p",{className:"gv-banner-text gv-text-sm gv-mt-sm"},r?.text?.pageContent))),(0,n.createElement)("div",{className:"gv-right-banner gv-max-mob-pl-md "+(e?"gv-h-full gv-mt-0 gv-w-full":""),...e?{style:{transform:"translate(70px,5px)"}}:{}},e?(0,n.createElement)("div",{className:"gv-card-image gv-h-full"},(0,n.createElement)("div",{className:"gv-skeleton gv-radius-0 gv-h-full"})):(0,n.createElement)("div",{className:"gv-image"},(0,n.createElement)("picture",null,(0,n.createElement)("source",{media:"(min-width: 600px)",srcSet:s}),(0,n.createElement)("img",{src:s,alt:"Product image"})))))}},6530:()=>{var e=Object.defineProperty,t=(t,r,n)=>(((t,r,n)=>{r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n})(t,"symbol"!=typeof r?r+"":r,n),n);const r={};async function n(e){if(r.hasOwnProperty(e))return r[e];let t;return t=e.startsWith("data:")||!("caches"in self)?fetch(e).then(e=>e.text()):caches.open("gravity").then(async t=>{let r=await t.match(e);return r||(r=await fetch(e),r.ok&&await t.put(e,r.clone())),r.text()}),r[e]=t,t}class i extends HTMLElement{static get observedAttributes(){return["src"]}fetchFlag(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchFlag(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchFlag(r)}}t(i,"TAG_NAME","gv-flag");class o extends HTMLElement{static get observedAttributes(){return["src"]}fetchIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIcon(r)}}t(o,"TAG_NAME","gv-icon");class s extends HTMLElement{static get observedAttributes(){return["src"]}fetchIllustration(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIllustration(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIllustration(r)}}t(s,"TAG_NAME","gv-illustration");class a extends HTMLElement{static get observedAttributes(){return["src"]}fetchIndicator(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchIndicator(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchIndicator(r)}}t(a,"TAG_NAME","gv-indicator");class c extends HTMLElement{static get observedAttributes(){return["src"]}fetchLoader(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLoader(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLoader(r)}}t(c,"TAG_NAME","gv-loader");class l extends HTMLElement{static get observedAttributes(){return["src"]}fetchLogo(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchLogo(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchLogo(r)}}t(l,"TAG_NAME","gv-logo");class u extends HTMLElement{static get observedAttributes(){return["src"]}fetchPayIcon(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchPayIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchPayIcon(r)}}t(u,"TAG_NAME","gv-pay-icon");class p extends HTMLElement{static get observedAttributes(){return["src"]}fetchTile(e){e&&n(e).then(e=>this.innerHTML=e)}connectedCallback(){this.fetchTile(this.getAttribute("src"))}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.fetchTile(r)}}function h(e,t){customElements.get(e)||customElements.define(e,t)}t(p,"TAG_NAME","gv-tile"),h(i.TAG_NAME,i),h(o.TAG_NAME,o),h(s.TAG_NAME,s),h(a.TAG_NAME,a),h(c.TAG_NAME,c),h(l.TAG_NAME,l),h(u.TAG_NAME,u),h(p.TAG_NAME,p)},6751:(e,t,r)=>{"use strict";var n;if(r.d(t,{A:()=>Hd}),"undefined"==typeof window){var i={hostname:""};n={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:i,referrer:""},screen:{width:0,height:0},location:i,addEventListener:function(){},removeEventListener:function(){}}}else n=window;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},v(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var k,S=Object.defineProperty,x=function(e,t,r){return function(e,t,r){return t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},C=Object.defineProperty,E=function(e,t,r){return function(e,t,r){return t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},I=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(I||{}),O={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},N={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},A={};function M(e){if(A[e])return A[e];var t=globalThis[e],r=t.prototype,n=e in O?O[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in N?N[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return A[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 l=c[e].prototype;return document.body.removeChild(a),l?A[e]=l:r}catch(e){return r}}var R={};function T(e,t,r){var n,i=e+"."+String(r);if(R[i])return R[i].call(t);var o=M(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(R[i]=s,s.call(t)):t[r]}var P=function(e){return T("Node",e,"childNodes")},L=function(e){return T("Node",e,"parentNode")},D=function(e){return T("Node",e,"parentElement")},F=function(e){return T("Node",e,"textContent")},U=function(e){return e&&"host"in e?T("ShadowRoot",e,"host"):null},j=function(e){return e&&"shadowRoot"in e?T("Element",e,"shadowRoot"):null};function B(e){return e.nodeType===e.ELEMENT_NODE}function $(e){var t=e&&"host"in e&&"mode"in e&&U(e)||null;return Boolean(t&&"shadowRoot"in t&&j(t)===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return V(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function V(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=q(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?te(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?te(i,t):i}var W=function(){function e(){E(this,"idNodeMap",new Map),E(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function H(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&G(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function G(e){return e.toLowerCase()}var K="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?G(t):null}function Y(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,X=/^(?:[a-z+]+:)?\/\//i,Q=/^www\..*/i,ee=/^(data:)([^,]*),(.*)/i;function te(e,t){return(e||"").replace(Z,function(e,r,n,i,o,s){var a,c=n||o||s,l=r||i||"";if(!c)return e;if(X.test(c)||Q.test(c))return"url("+l+c+l+")";if(ee.test(c))return"url("+l+c+l+")";if("/"===c[0])return"url("+l+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+l+")";var u=t.split("/"),p=c.split("/");u.pop();for(var h,d=b(p);!(h=d()).done;){var f=h.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+l+u.join("/")+l+")"})}function re(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ne,ie,oe=1,se=new RegExp("[^a-z0-9-_:]");function ae(){return oe++}var ce=/^[^ \t\n\r\u000c]+/,le=/^[, \t\n\r\u000c]+/,ue=new WeakMap;function pe(e,t){return t&&""!==t.trim()?he(e,t):t}function he(e,t){var r=ue.get(e);if(r||(r=e.createElement("a"),ue.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function de(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?pe(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(le),!(r>=t.length);){var o=n(ce);if(","===o.slice(-1))o=pe(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=pe(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?te(n,he(e)):"object"===t&&"data"===r?pe(e,n):n:pe(e,n):n}function fe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ge(L(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ge(L(e),t,r)}function me(e,t,r,n){var i;if(B(e)){if(!P(i=e).length)return!1}else{if(null===D(e))return!1;i=D(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ge(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 ve(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,l=void 0===c?{}:c,u=t.maskTextFn,p=t.maskInputFn,h=t.dataURLOptions,f=void 0===h?{}:h,g=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,b=void 0!==y&&y,_=t.cssCaptured,w=void 0!==_&&_,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:I.Document,childNodes:[],compatMode:e.compatMode}:{type:I.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,c=t.dataURLOptions,l=void 0===c?{}:c,u=t.inlineImages,p=t.recordCanvas,h=t.keepIframeSrcFn,f=t.newlyAddedElement,g=void 0!==f&&f,m=t.rootId,v=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,t.blockClass,t.blockSelector),y=function(e){if(d(e,HTMLFormElement))return"form";var t=G(e.tagName);return se.test(t)?"div":t}(e),b={},_=e.attributes.length,w=0;w<_;w++){var k=e.attributes[w];fe(y,k.name,k.value)||(b[k.name]=de(n,y,G(k.name),k.value))}if("link"===y&&i){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;S&&(x=q(S)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===y&&e.sheet){var C=q(e.sheet);C&&(e.childNodes.length>1&&(C=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=re(e,r),a=s.length/e.length,c=1;c2&&""===h[0]&&""!==n[c-1].textContent)d=s.indexOf(p,1);else if(1===h.length){if(p=p.substring(0,p.length-1),(h=s.split(p)).length<=1)return i.push(e),i;u=101}else u===l.length-1&&(d=s.indexOf(p));if(h.length>=2&&u>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var g=re(f).length;d=s.indexOf(p,g)}-1===d&&(d=h[0].length)}if(-1!==d){for(var m=Math.floor(d/a);m>0&&m50*n.length)return i.push(e),i;var v=re(e.substring(0,m),r);if(v.length===d){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}v.length",T=M.crossOrigin,P=function(){M.removeEventListener("load",P);try{ne.width=M.naturalWidth,ne.height=M.naturalHeight,ie.drawImage(M,0,0),b.rr_dataURL=ne.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==M.crossOrigin)return M.crossOrigin="anonymous",void(M.complete&&0!==M.naturalWidth?P():M.addEventListener("load",P));console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===M.crossOrigin&&(T?b.crossOrigin=T:M.removeAttribute("crossorigin"))};M.complete&&0!==M.naturalWidth?P():M.addEventListener("load",P)}if("audio"===y||"video"===y){var L=b;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var D=e.getBoundingClientRect(),F=D.width,U=D.height;b={class:b.class,rr_width:F+"px",rr_height:U+"px"}}"iframe"!==y||h(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:I.Element,tagName:y,attributes:b,childNodes:[],isSVG:(j=e,Boolean("svg"===j.tagName||j.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var j}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:b,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=L(e),a=s&&s.tagName,c="",l="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?c="SCRIPT_PLACEHOLDER":o||(c=F(e),l&&c&&(c=te(c,he(t.doc)))),!l&&!u&&c&&r&&(c=n?n(c,D(e)):c.replace(/[\S]/g,"*")),{type:I.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:u,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:I.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:I.Comment,textContent:F(e)||"",rootId:k};default:return!1}}function ye(e){return null==e?"":e.toLowerCase()}function be(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,l=void 0!==c&&c,u=t.inlineStylesheet,p=void 0===u||u,h=t.maskInputOptions,d=void 0===h?{}:h,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,w=void 0!==_&&_,k=t.recordCanvas,S=void 0!==k&&k,x=t.onSerialize,C=t.onIframeLoad,E=t.iframeLoadTimeout,O=void 0===E?5e3:E,N=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,M=void 0===A?5e3:A,R=t.keepIframeSrcFn,T=void 0===R?function(){return!1}:R,D=t.newlyAddedElement,F=void 0!==D&&D,U=t.cssCaptured,q=void 0!==U&&U,V=t.needsMask,W=t.preserveWhiteSpace,H=void 0===W||W;V||(V=me(e,s,a,void 0===V));var G,K=ve(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:F,cssCaptured:q});if(!K)return console.warn(e,"not serialized"),null;G=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===I.Comment)return!0;if(e.type===I.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"===Y(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(K,m)||!H&&K.type===I.Text&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ae();var J=Object.assign(K,{id:G});if(n.add(e,J),-2===G)return null;x&&x(e);var Z=!l;if(J.type===I.Element){Z=Z&&!J.needBlock,delete J.needBlock;var X=j(e);X&&z(X)&&(J.isShadowHost=!0)}if((J.type===I.Document||J.type===I.Element)&&Z){m.headWhitespace&&J.type===I.Element&&"head"===J.tagName&&(H=!1);var Q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:M,keepIframeSrcFn:T,cssCaptured:!1};if(J.type===I.Element&&"textarea"===J.tagName&&void 0!==J.attributes.value);else{J.type===I.Element&&void 0!==J.attributes._cssText&&"string"==typeof J.attributes._cssText&&(Q.cssCaptured=!0);for(var ee,te=b(Array.from(P(e)));!(ee=te()).done;){var re=be(ee.value,Q);re&&J.childNodes.push(re)}}var ne=null;if(B(e)&&(ne=j(e)))for(var ie,oe=b(Array.from(P(ne)));!(ie=oe()).done;){var se=be(ie.value,Q);se&&(z(ne)&&(se.isShadow=!0),J.childNodes.push(se))}}var ce=L(e);return ce&&$(ce)&&z(ce)&&(J.isShadow=!0),J.type===I.Element&&"iframe"===J.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var r=be(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:M,keepIframeSrcFn:T});r&&C(e,r)}},O),J.type===I.Element&&"link"===J.tagName&&"string"==typeof J.attributes.rel&&("stylesheet"===J.attributes.rel||"preload"===J.attributes.rel&&"string"==typeof J.attributes.href&&"css"===Y(J.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(N){var t=be(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:H,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:M,keepIframeSrcFn:T});t&&N(e,t)}},M),J}function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return d(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ke={exports:{}},Se=String,xe=function(){return{isColorSupported:!1,reset:Se,bold:Se,dim:Se,italic:Se,underline:Se,inverse:Se,hidden:Se,strikethrough:Se,black:Se,red:Se,green:Se,yellow:Se,blue:Se,magenta:Se,cyan:Se,white:Se,gray:Se,bgBlack:Se,bgRed:Se,bgGreen:Se,bgYellow:Se,bgBlue:Se,bgMagenta:Se,bgCyan:Se,bgWhite:Se}};ke.exports=xe(),ke.exports.createColors=xe;var Ce=ke.exports,Ee=we(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ie=Ce,Oe=Ee,Ne=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ie.isColorSupported),Oe&&e&&(r=Oe(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=Ie.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),Ae=Ne;Ne.default=Ne;var Me={};Me.isClean=Symbol("isClean"),Me.my=Symbol("my");var Re={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Te=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Pe=Te;Te.default=Te;var Le=Pe;function De(e,t){new Le(t).stringify(e)}var Fe=De;De.default=De;var Ue=Me.isClean,je=Me.my,Be=Ae,$e=Pe,ze=Fe;function qe(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return qe(e,r)}):("object"===o&&null!==i&&(i=qe(i)),r[n]=i)}return r}var Ve=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[je]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=qe(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 Be(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[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Xe(e),Ye(e))return this.mapFile=e,Ze(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Ke))return Je.fromSourceMap(t).toString();if(d(t,Je))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Qe(Xe(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}(),tt=et;et.default=et;var rt=Ee.SourceMapConsumer,nt=Ee.SourceMapGenerator,it=Ee.fileURLToPath,ot=Ee.pathToFileURL,st=Ee.isAbsolute,at=Ee.resolve,ct=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},lt=Ee,ut=Ae,pt=tt,ht=Symbol("fromOffsetCache"),dt=Boolean(rt&&nt),ft=Boolean(at&&st),gt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ft||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=at(t.from)),ft&&dt){var r=new pt(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new ut(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new ut(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ot&&(i.input.url=ot(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[ht])t=this[ht];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:at(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=st(a.source)?ot(a.source):new URL(a.source,this.map.consumer().sourceRoot||ot(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!it)throw new Error("file: protocol is not available in this PostCSS build");c.file=it(o)}var l=s.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];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(),Et&&Ct&&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=yt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yt({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)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new yt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,l){if(e.css+=a,c&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==l){var u=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===u.last&&!u.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?bt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=bt(wt(r,this.mapOpts.annotation)));var n=_t(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 xt(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)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(St){var r=St(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ot=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(We),Nt=Ot;Ot.default=Ot;var At,Mt,Rt,Tt,Pt=Me.isClean,Lt=Me.my,Dt=Ge,Ft=Nt;function Ut(e){return e.map(function(e){return e.nodes&&(e.nodes=Ut(e.nodes)),delete e.source,e})}function jt(e){if(e[Pt]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;)jt(t.value)}var Bt=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?d(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?d(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?d(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)}))},l(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}(We);Bt.registerParse=function(e){At=e},Bt.registerRule=function(e){Mt=e},Bt.registerAtRule=function(e){Rt=e},Bt.registerRoot=function(e){Tt=e};var $t=Bt;Bt.default=Bt,Bt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Rt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Dt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ft.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tt.prototype),e[Lt]=!0,e.nodes&&e.nodes.forEach(function(e){Bt.rebuild(e)})};var zt,qt,Vt=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new zt(new qt,this,e).stringify()},t}($t);Vt.registerLazyResult=function(e){zt=e},Vt.registerProcessor=function(e){qt=e};var Wt=Vt;Vt.default=Vt;var Ht=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}(),Gt=Ht;Ht.default=Ht;var Kt=Gt,Jt=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 Kt(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Yt=Jt;Jt.default=Jt;var Zt="'".charCodeAt(0),Xt='"'.charCodeAt(0),Qt="\\".charCodeAt(0),er="/".charCodeAt(0),tr="\n".charCodeAt(0),rr=" ".charCodeAt(0),nr="\f".charCodeAt(0),ir="\t".charCodeAt(0),or="\r".charCodeAt(0),sr="[".charCodeAt(0),ar="]".charCodeAt(0),cr="(".charCodeAt(0),lr=")".charCodeAt(0),ur="{".charCodeAt(0),pr="}".charCodeAt(0),hr=";".charCodeAt(0),dr="*".charCodeAt(0),fr=":".charCodeAt(0),gr="@".charCodeAt(0),mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,vr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yr=/.[\r\n"'(/\\]/,br=/[\da-f]/i,_r=$t,wr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=b(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Sr(new xr,this,e).stringify()},t}(Cr);Er.registerLazyResult=function(e){Sr=e},Er.registerProcessor=function(e){xr=e};var Ir=Er;Er.default=Er,Cr.registerRoot(Er);var Or={comma:function(e){return Or.split(e,[","],!0)},space:function(e){return Or.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,l="",u=!1,p=b(e);!(n=p()).done;){var h=n.value;u?u=!1:"\\"===h?u=!0:c?h===l&&(c=!1):'"'===h||"'"===h?(c=!0,l=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}},Nr=Or;Or.default=Or;var Ar=$t,Mr=Nr,Rr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return h(t,e),l(t,[{key:"selectors",get:function(){return Mr.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}(Ar),Tr=Rr;Rr.default=Rr,Ar.registerRule(Rr);var Pr=Ge,Lr=Nt,Dr=kr,Fr=Ir,Ur=Tr,jr={empty:!0,space:!0},Br=function(){function e(e){this.input=e,this.root=new Fr,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 Dr;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Lr;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,l,u,p,h=e.css.valueOf(),d=t.ignoreErrors,f=h.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(g)){case tr:case rr:case ir:case or:case nr:n=g;do{n+=1,r=h.charCodeAt(n)}while(r===rr||r===tr||r===ir||r===or||r===nr);p=["space",h.slice(g,n)],g=n-1;break;case sr:case ar:case ur:case pr:case fr:case hr:case lr:var b=String.fromCharCode(r);p=[b,b,g];break;case cr:if(l=m.length?m.pop()[1]:"",u=h.charCodeAt(g+1),"url"===l&&u!==Zt&&u!==Xt&&u!==rr&&u!==tr&&u!==ir&&u!==nr&&u!==or){n=g;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["brackets",h.slice(g,n+1),g,n],g=n}else n=h.indexOf(")",g+1),o=h.slice(g,n+1),-1===n||yr.test(o)?p=["(","(",g]:(p=["brackets",o,g,n],g=n);break;case Zt:case Xt:i=r===Zt?"'":'"',n=g;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;h.charCodeAt(c-1)===Qt;)c-=1,a=!a}while(a);p=["string",h.slice(g,n+1),g,n],g=n;break;case gr:mr.lastIndex=g+1,mr.test(h),n=0===mr.lastIndex?h.length-1:mr.lastIndex-2,p=["at-word",h.slice(g,n+1),g,n],g=n;break;case Qt:for(n=g,s=!0;h.charCodeAt(n+1)===Qt;)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&r!==er&&r!==rr&&r!==tr&&r!==ir&&r!==or&&r!==nr&&(n+=1,br.test(h.charAt(n)))){for(;br.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===rr&&(n+=1)}p=["word",h.slice(g,n+1),g,n],g=n;break;default:r===er&&h.charCodeAt(g+1)===dr?(0===(n=h.indexOf("*/",g+2)+1)&&(d||t?n=h.length:y("comment")),p=["comment",h.slice(g,n+1),g,n],g=n):(vr.lastIndex=g+1,vr.test(h),n=0===vr.lastIndex?h.length-1:vr.lastIndex-2,p=["word",h.slice(g,n+1),g,n],m.push(p),g=n)}return g++,p}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Pr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var l=this.stringFrom(e,c);" !important"!==(l=this.spacesFromEnd(e)+l)&&(r.raws.important=l);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",h=c;h>0;h--){var d=u[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ur;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,l="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,l,u,p,h;return _(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t0))return[3,13];if(!on(a=e.visitTick(s)))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(),l=s[s.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return _(this,function(a){switch(a.label){case 0:t=h.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=b(e.listeners.OnceExit),d.label=15;case 15:return(h=p()).done?[3,18]:[5,w(u())];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("object"===(void 0===e?"undefined":m(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return on(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Jr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Kr(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(on(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Hr];)n[Hr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(on(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=ui.isColorSupported),pi&&e&&(r=pi(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var l=ui.createColors(!0),u=l.bold,p=l.gray,h=l.red;n=function(e){return u(h(e))},i=function(e){return p(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var l=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+l+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(v(Error)),di=hi;hi.default=hi;var fi={};fi.isClean=Symbol("isClean"),fi.my=Symbol("my");var gi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},mi=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),vi=mi;mi.default=mi;var yi=vi;function bi(e,t){new yi(t).stringify(e)}var _i=bi;bi.default=bi;var wi=fi.isClean,ki=fi.my,Si=di,xi=vi,Ci=_i;function Ei(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ei(e,r)}):("object"===o&&null!==i&&(i=Ei(i)),r[n]=i)}return r}var Ii=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wi]=!1,this[ki]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=Ei(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 Si(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[wi]){this[wi]=!1;for(var e=this;e=e.parent;)e[wi]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Li(e),Ti(e))return this.mapFile=e,Pi(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(d(t,Mi))return Ri.fromSourceMap(t).toString();if(d(t,Ri))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Di(Li(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}(),Ui=Fi;Fi.default=Fi;var ji=li.SourceMapConsumer,Bi=li.SourceMapGenerator,$i=li.fileURLToPath,zi=li.pathToFileURL,qi=li.isAbsolute,Vi=li.resolve,Wi=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hi=li,Gi=di,Ki=Ui,Ji=Symbol("fromOffsetCache"),Yi=Boolean(ji&&Bi),Zi=Boolean(Vi&&qi),Xi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Zi||/^\w+:\/\//.test(t.from)||qi(t.from)?this.file=t.from:this.file=Vi(t.from)),Zi&&Yi){var r=new Ki(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=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":m(t))){var a=t,c=r;if("number"==typeof a.offset){var l=this.fromOffset(a.offset);t=l.line,r=l.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var u=this.fromOffset(c.offset);o=u.line,s=u.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new Gi(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new Gi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(zi&&(i.input.url=zi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ji])t=this[Ji];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s