try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f05e6efd-06cc-478e-9593-2b0da975479a",t._sentryDebugIdIdentifier="sentry-dbid-f05e6efd-06cc-478e-9593-2b0da975479a")}catch(t){}{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:raspberry-navigation-key":!0})}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"5988618"};(globalThis.webpackChunkraspberry_semrush_navigation=globalThis.webpackChunkraspberry_semrush_navigation||[]).push([[61],{1181:(t,e,i)=>{"use strict";i.d(e,{r:()=>p});var n=i(4614);function r(t,e,i){a(t,e),e.set(t,i)}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(t,e,i){return t.set(l(t,e),i),i}function s(t,e){return t.get(l(t,e))}function l(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,h=new WeakMap,u=new WeakSet;function d(t){try{const e=document.getElementById(t);if(null!=e&&e.textContent)return JSON.parse(e.textContent)}catch(e){console.error(`Error parsing embedded config for ${t}:`,e),n.e.sendError("header",e)}return null}const p=new class{constructor(){var t,e;a(t=this,e=u),e.add(t),r(this,c,void 0),r(this,h,void 0)}get toolkitRemoteInitialState(){return void 0===s(c,this)&&o(c,this,l(u,this,d).call(this,"toolkit_remote_initial_state")),s(c,this)}get navigationData(){return void 0===s(h,this)&&o(h,this,l(u,this,d).call(this,"raspberry-semrush-navigation-data")),s(h,this)}}},2299:(t,e,i)=>{var n,r; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(a){if(void 0===(r="function"==typeof(n=a)?n.call(e,i,e,t):n)||(t.exports=r),t.exports=a(),!!0){var o=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=o,s}}}(function(){function t(){for(var t=0,e={};t{"use strict";function n(t,e,i,n={}){const{delegateTo:r=document,capture:a=!1,once:o=!1,passive:s=!1,signal:l}=n;if(!(r instanceof Node))throw new Error("Invalid delegateTo provided. It should be a Node instance");let c;if("function"==typeof i)c=i;else{if(!i||"function"!=typeof i.handleEvent)throw new Error("Invalid eventHandler provided. It should be a function or an object with handleEvent method");c=i.handleEvent.bind(i)}if(null!=l&&l.aborted)return()=>{};const h={capture:a,passive:s},u=function(i){let n=null;if(i.composed){const t=i.composedPath(),a=t.indexOf(r);-1!==a&&(n=t.slice(0,a+1).find(t=>t instanceof Element&&t.matches(e))||null)}var a;n||(n=null===(a=i.target)||void 0===a?void 0:a.closest(e),n&&!r.contains(n)&&(n=null));n&&(c(i,n),o&&r.removeEventListener(t,u,h))};return null==l||l.addEventListener("abort",()=>{r.removeEventListener(t,u,h)},{once:!0}),r.addEventListener(t,u,h),function(){r.removeEventListener(t,u,h)}}i.d(e,{m:()=>n})},4443:(t,e,i)=>{"use strict";const n=i(1181).r.navigationData;n&&"string"==typeof n.static_url?i.p=n.static_url:console.error("Critical: Static base URL config not found!")},4576:(t,e,i)=>{"use strict";i.d(e,{Do:()=>o,Q7:()=>r});var n=i(4142);class r{normalizeEventData(t){var e,i;const n={...t};return n.link_url=null===(e=n.link_url)||void 0===e?void 0:e.slice(0,100),n.link_text=null===(i=n.link_text)||void 0===i?void 0:i.slice(0,100),n}sendEventFromTarget(t,e,i){const n=this.normalizeEventData(i),r=e.hasAttribute("data-path"),a=e.getAttribute("data-path");n.item_location&&e.setAttribute("data-path",n.item_location),((t,e={})=>{var i;const n={...e,semrush_team:"coffee_team",semrush_product_name:"semrush2"};null===(i=window.analytics)||void 0===i||i.track(t,n)})(t,n),r?e.setAttribute("data-path",a):e.removeAttribute("data-path")}getItemLocationPath(t){if(!t.hasAttribute("data-ga4-item-location"))throw new Error("Ga4DelegatedTracking: 'data-ga4-item-location' attribute is required");const e=t.getAttribute("data-ga4-item-location");if(!e)throw new Error("Ga4DelegatedTracking: non-empty 'data-ga4-item-location' value is required");return e}}class a extends r{handleEvent(t,e){const i={};if(e instanceof HTMLAnchorElement&&(i.link_url=e.href),(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)&&e.innerText){const t=e.getAttribute("data-ga4-link-text");i.link_text=t&&t.length>0?t:e.innerText}i.item_location=this.getItemLocationPath(e);["event_source","item_label","state","status","type"].forEach(t=>{const n=this.findDataGaAttributeValue(t,e);n&&(i[t]=n)}),this.sendEventFromTarget("click",e,i)}findDataGaAttributeValue(t,e){return e.getAttribute(`data-ga4-${t.replace(/_/g,"-")}`)}}function o(t){return(0,n.m)("click","[data-ga4-click]",new a,{delegateTo:t,passive:!0})}},4614:(t,e,i)=>{"use strict";i.d(e,{e:()=>c});var n=i(530),r=i(3435),a=i(4419),o=i(1370),s=i(5326),l=i(8631);const c=(()=>{const t=(0,n.nI)({}).filter(t=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(t.name));t.push((0,r.y)({filterKeys:["raspberry-navigation-key"],behaviour:"apply-tag-if-contains-third-party-frames"}));const e=new a.y({dsn:"https://06f510ac3697510507098b66fe25f5ff@sr02.devserver.cv/_sentrysemrush/558",transport:o._,stackParser:s.lG,environment:window.location.hostname.includes("rc")?"RC":"PRODUCTION",integrations:t,ignoreErrors:["Non-Error exception captured","Non-Error promise rejection captured",/Failed to fetch/,"NetworkError when attempting to fetch resource"],allowUrls:[/^(https:\/\/)([\w-]+(\.[\w-]+)*\.)?semrush\.(com|net)\/.*$/],tracesSampleRate:1}),i=new l.H;i.setClient(e);return e.init(),{sendError:(t,e)=>{i.setTags({placement:t}),i.captureException(e)}}})()},4672:(t,e,i)=>{"use strict";i.d(e,{m:()=>n});const n=(0,i(6100).Y)(()=>localStorage)},6910:(t,e,i)=>{"use strict";i(4443);var n=Symbol.for("preact-signals");function r(){if(l>1)l--;else{for(var t,e=!1;void 0!==s;){var i=s;for(s=void 0,c++;void 0!==i;){var n=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&f(i))try{i.c()}catch(i){e||(t=i,e=!0)}i=n}}if(c=0,l--,e)throw t}}function a(t){if(l>0)return t();l++;try{return t()}finally{r()}}var o=void 0;var s=void 0,l=0,c=0,h=0;function u(t){if(void 0!==o){var e=t.n;if(void 0===e||e.t!==o)return e={i:0,S:t,p:o.s,n:void 0,t:o,e:void 0,x:void 0,r:e},void 0!==o.s&&(o.s.n=e),o.s=e,t.n=e,32&o.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=o.s,e.n=void 0,o.s.n=e,o.s=e),e}}function d(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function p(t){return new d(t)}function f(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function v(t){for(var e=t.s;void 0!==e;e=e.n){var i=e.S.n;if(void 0!==i&&(e.r=i),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function b(t){for(var e=t.s,i=void 0;void 0!==e;){var n=e.p;-1===e.i?(e.S.U(e),void 0!==n&&(n.n=e.n),void 0!==e.n&&(e.n.p=n)):i=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=n}t.s=i}function m(t){d.call(this,void 0),this.x=t,this.s=void 0,this.g=h-1,this.f=4}function g(t){return new m(t)}function C(t){var e=t.u;if(t.u=void 0,"function"==typeof e){l++;var i=o;o=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,w(t),e}finally{o=i,r()}}}function w(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,C(t)}function y(t){if(o!==this)throw new Error("Out-of-order effect");b(this),o=t,this.f&=-2,8&this.f&&w(this),r()}function M(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function k(t){var e=new M(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}d.prototype.brand=n,d.prototype.h=function(){return!0},d.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},d.prototype.U=function(t){if(void 0!==this.t){var e=t.e,i=t.x;void 0!==e&&(e.x=i,t.e=void 0),void 0!==i&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i)}},d.prototype.subscribe=function(t){var e=this;return k(function(){var i=e.value,n=o;o=void 0;try{t(i)}finally{o=n}})},d.prototype.valueOf=function(){return this.value},d.prototype.toString=function(){return this.value+""},d.prototype.toJSON=function(){return this.value},d.prototype.peek=function(){var t=o;o=void 0;try{return this.value}finally{o=t}},Object.defineProperty(d.prototype,"value",{get:function(){var t=u(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(c>100)throw new Error("Cycle detected");this.v=t,this.i++,h++,l++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{r()}}}}),(m.prototype=new d).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===h)return!0;if(this.g=h,this.f|=1,this.i>0&&!f(this))return this.f&=-2,!0;var t=o;try{v(this),o=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return o=t,b(this),this.f&=-2,!0},m.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}d.prototype.S.call(this,t)},m.prototype.U=function(t){if(void 0!==this.t&&(d.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},m.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(m.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=u(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),M.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},M.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,C(this),v(this),l++;var t=o;return o=this,y.bind(this,t)},M.prototype.N=function(){2&this.f||(this.f|=2,this.o=s,s=this)},M.prototype.d=function(){this.f|=8,1&this.f||w(this)};var E,S=i(9327);const x=null===(E=i(1181).r.navigationData)||void 0===E?void 0:E.is_legacy,V="srf-sidebar-details-panel",L="srf-sidebar-hover-panel",I="srf-sidebar-list-group",H="srf-sidebar-list-item",Z="srf-sidebar-open-collapse-button",A="srf-sidebar-ribbon-item",T="srf-sidebar-badge",R="srf-sidebar-hover-anchor",W="collapsed",_="proximity",P="ribbon-interest-target",j="use",B="back-to-toolkits-label",D="is-current",O="ribbon-item-id",N="tool-query-type",$="active-nav-item",U="nav-item",q="sidebar_collapsed",z="last_sidebar_tk",Q=t=>`${t}_dark`,G=t=>`${t}_legacy`,F=t=>`${t}_experimental`,J={advertising:'\n\n \n \n \n\n',[Q("advertising")]:'\n\n \n \n \n \n\n',ai:'\n\n \n \n\n',[Q("ai")]:'\n\n \n \n \n\n',[F("ai")]:'\n ',apps:'\n\n \n \n \n \n\n',[Q("apps")]:'\n\n \n \n \n \n \n \n \n \n\n',content:'\n\n \n \n\n',[Q("content")]:'\n\n \n \n \n\n',home:'\n\n \n\n',[Q("home")]:'\n\n \n\n',local:'\n\n \n \n\n',[Q("local")]:'\n\n \n \n\n',reports:'\n\n \n\n',[Q("reports")]:'\n\n \n \n\n',seo:'\n\n \n\n',[Q("seo")]:'\n\n \n \n\n',social:'\n\n \n \n \n \n\n',[Q("social")]:'\n\n \n\n',market:'\n\n \n\n',[Q("market")]:'\n\n \n \n \n\n',chevronDoubleLeft:'\n\n \n \n\n',pr:'\n\n \n\n',[Q("pr")]:'\n\n \n\n',[G("advertising")]:'\n\n \n \n \n\n',[G("ai")]:'\n\n \n\n',[G("apps")]:'\n\n \n \n\n',[G("content")]:'\n\n \n\n',[G("chevronDoubleLeft")]:'\n\n \n \n\n',[G("home")]:'\n\n \n \n\n',[G("local")]:'\n\n \n\n',[G("market")]:'\n\n \n\n',[G("reports")]:'\n\n \n \n\n',[G("seo")]:'\n\n \n \n\n',[G("social")]:'\n\n \n\n',[G("pr")]:'\n\n \n\n'};function Y(t){if(!t)return console.error("Icon name is required"),null;const e=J[t];if(!e)return console.error(`Sidebar: invalid icon name: ${t}`),null;const i=document.createElement("div");i.innerHTML=e;const n=i.firstElementChild;return"http://www.w3.org/2000/svg"!==(null==n?void 0:n.namespaceURI)?(console.error(`Sidebar: non SVG for icon name: ${t}`),null):n?(n.setAttribute("aria-hidden","true"),n):null}function X(t){const e=document.getElementById(t);if(!e)throw new Error(`Template with ID "${t}" not found.`);return e.content.cloneNode(!0)}function K(t,e=null,i){const{fid:n,db:r,device:a,date:o,currency:s,...l}=function(t){const e=new URL(t).searchParams;return{fid:e.get("fid"),db:e.get("db"),q:e.get("q"),highlightedQuery:e.get("highlightedQuery"),protocol:e.get("protocol"),searchType:e.get("searchType"),compareWith:e.get("compareWith"),device:e.get("device"),currency:e.get("currency"),date:e.get("date")}}(i);let c={},h="";"keyword"===e?(c=l,h="data-has-keyword-query"):"domain"===e&&(c={...l,device:a,currency:s,date:o},h="data-has-domain-query"),t.forEach(t=>{const i=t.getAttribute("href");if(!i)return;let a={fid:n};t.hasAttribute("data-has-db")&&(a={...a,db:r});const o=e&&!t.hasAttribute(h)?{...a}:{...a,...c};t.setAttribute("href",function(t,e){const i=new URL(t,window.location.href);return Object.entries(e).forEach(([t,e])=>{null!==e?i.searchParams.set(t,e):i.searchParams.delete(t)}),i.searchParams.sort(),i.toString()}(i,o))})}function tt(t,e,i){"string"==typeof i?t.setAttribute(e,i):t.removeAttribute(e)}function et(t,e){return t.querySelector(`${A}[${O}="${e}"]`)}function it(t,e){const i=t.getAttribute(P);if(!i)return!1;const n=document.getElementById(i);if(null==n||!n.content)return!1;const r=n.content.querySelectorAll(`${H}:not([external])`);return Array.from(r).some(t=>t.getAttribute(U)===e)}function nt(t,e){const i=t.querySelector(`${H}[${D}]`);var n;(null==i?void 0:i.getAttribute(U))!==e&&(null==i||i.removeAttribute(D),e&&(null===(n=t.querySelector(`${H}[${U}="${e}"]`))||void 0===n||n.toggleAttribute(D,!0)))}function rt(t,e,i){at(t,e),e.set(t,i)}function at(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ot(t,e,i){return t.set(lt(t,e),i),i}function st(t,e){return t.get(lt(t,e))}function lt(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}const ct=new CSSStyleSheet;ct.replaceSync("\n svg {\n width: 24px;\n height: 24px;\n }\n\n a:after {\n content: '';\n display: block;\n position: absolute;\n inset: 0 calc(var(--inline-margin, 0px) * -1);\n }\n");var ht=new WeakMap,ut=new WeakMap,dt=new WeakMap,pt=new WeakMap,ft=new WeakMap,vt=new WeakMap,bt=new WeakMap,mt=new WeakSet,gt=new WeakMap;class Ct extends HTMLElement{static get observedAttributes(){return["href","label","badge-variant","data-custom-label","is-experimental",D]}get badgeVariant(){return this.getAttribute("badge-variant")}set badgeVariant(t){tt(this,"badge-variant",t)}attributeChangedCallback(t,e,i){var n,r;e!==i&&(null===(n=(r=st(pt,this))[t])||void 0===n||n.call(r,i))}constructor(){super(),function(t,e){at(t,e),e.add(t)}(this,mt),rt(this,ht,void 0),rt(this,ut,void 0),rt(this,dt,null),rt(this,pt,{href:t=>st(ht,this).href=t??"",label:t=>{st(ht,this).setAttribute("aria-label",t??""),st(ut,this).textContent=t??""},"data-custom-label":t=>{"ai"===t&&st(ut,this).part.add("new")},"badge-variant":()=>lt(mt,this,kt).call(this),[D]:()=>lt(mt,this,yt).call(this),"is-experimental":()=>lt(mt,this,yt).call(this)}),rt(this,ft,()=>{this.attachShadow({mode:"open"}).adoptedStyleSheets=[ct]}),rt(this,vt,()=>{if(!this.hasAttribute("href"))throw new Error("SidebarRibbonItem requires an href attribute");const t=document.createElement("a");t.href=this.getAttribute("href");const e=this.getAttribute("ga4-item-location");return e&&(t.setAttribute("data-ga4-click",""),t.setAttribute("data-ga4-item-location",e),this.setAttribute("data-path",e)),t.tabIndex=0,t.part.add("wrapper"),t}),rt(this,bt,()=>{const t=this.getAttribute("icon");if(!t)throw new Error("SidebarRibbonItem requires an icon attribute");const e=document.createElement("span");e.part.add("icon");const i=Y(lt(mt,this,wt).call(this,t));return i&&e.appendChild(i),e}),rt(this,gt,()=>{const t=document.createElement("span");return t.textContent=this.getAttribute("label")??"",t.part.add("label"),t}),st(ft,this).call(this),ot(ht,this,st(vt,this).call(this)),ot(ut,this,st(gt,this).call(this)),st(ht,this).append(st(ut,this)),lt(mt,this,yt).call(this),lt(mt,this,kt).call(this),this.shadowRoot.appendChild(st(ht,this))}}function wt(t){return this.hasAttribute("is-experimental")?F(t):x?G(t):this.hasAttribute(D)?Q(t):t}function yt(){const t=st(ht,this).querySelector("svg"),e=st(bt,this).call(this);null!=t&&t.parentElement?st(ht,this).replaceChild(e,t.parentElement):st(ht,this).prepend(e)}function Mt(){const t=document.createElement(T);return t.label=" ",t.variant="beta",t}function kt(){this.badgeVariant?(st(dt,this)||(ot(dt,this,lt(mt,this,Mt).call(this)),st(ht,this).appendChild(st(dt,this))),st(dt,this).textContent=""):st(dt,this)&&(st(dt,this).remove(),ot(dt,this,null))}customElements.define("srf-sidebar-ribbon-item",Ct);var Et=i(4614);function St(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class xt{constructor(){St(this,"callbacks",new Set),St(this,"originalPushState",history.pushState),St(this,"originalReplaceState",history.replaceState),St(this,"handleURLChange",()=>{const t=window.location.href;for(const e of this.callbacks)try{e(t)}catch(t){console.error("Error in URLChangeTracker callback:",t),Et.e.sendError("sidebar",t)}}),this.overrideHistoryMethods(),window.addEventListener("popstate",this.handleURLChange)}overrideHistoryMethods(){const t=this;history.pushState=function(...e){const i=t.originalPushState.apply(this,e);return t.handleURLChange(),i},history.replaceState=function(...e){const i=t.originalReplaceState.apply(this,e);return t.handleURLChange(),i}}subscribe(t){if("function"!=typeof t)throw new TypeError("Callback must be a function.");return this.callbacks.add(t),()=>{this.unsubscribe(t)}}unsubscribe(t){this.callbacks.delete(t)}destroy(){history.pushState=this.originalPushState,history.replaceState=this.originalReplaceState,window.removeEventListener("popstate",this.handleURLChange),this.callbacks.clear()}}function Vt(t,e,i){Lt(t,e),e.set(t,i)}function Lt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function It(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ht(t,e,i){return t.set(At(t,e),i),i}function Zt(t,e){return t.get(At(t,e))}function At(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var Tt=new WeakMap,Rt=new WeakMap,Wt=new WeakMap,_t=new WeakMap,Pt=new WeakMap,jt=new WeakMap,Bt=new WeakMap,Dt=new WeakSet,Ot=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Ut=new WeakMap,qt=new WeakMap,zt=new WeakMap;class Qt extends HTMLElement{constructor(...t){super(...t),function(t,e){Lt(t,e),e.add(t)}(this,Dt),It(this,"relRibbonItemId",null),Vt(this,Tt,p(null)),Vt(this,Rt,p(null)),Vt(this,Wt,p(null)),Vt(this,_t,p(null)),Vt(this,Pt,new xt),Vt(this,jt,null),Vt(this,Bt,[]),Vt(this,Ot,()=>{Zt(_t,this).value=window.location.href}),Vt(this,Nt,t=>{"open"===t.newState?(window.addEventListener("resize",Zt(zt,this)),document.addEventListener("pointermove",Zt($t,this),{passive:!0})):(document.removeEventListener("pointermove",Zt($t,this)),window.removeEventListener("resize",Zt(zt,this)),this.removeAttribute(j)),this.dispatchEvent(new CustomEvent("sm2sidebar-popovertoggle",{detail:{oldState:t.oldState,newState:t.newState,popoverElement:this},bubbles:!0,cancelable:!1}))}),Vt(this,$t,t=>{const e=this.getBoundingClientRect();t.clientXe.right+6||t.clientYe.bottom+6)&&this.togglePopover(!1)}),Vt(this,Ut,()=>{if(null===Zt(jt,this))return 0;const t=Zt(jt,this).getBoundingClientRect();return Math.max(0,t.bottom)}),Vt(this,qt,t=>{const e=6+Zt(Ut,this).call(this),i=t.getBoundingClientRect(),n=this.getBoundingClientRect(),r=i.right;if(n.height+e+6>=window.innerHeight)return{top:`${e}px`,right:"",bottom:"6px",left:`${r}px`,width:"",height:"auto"};const a=Math.max(i.top,e);return Math.max(window.innerHeight-(n.height+a),6)>6?{top:`${a}px`,right:"",bottom:"",left:`${r}px`,width:"",height:""}:{top:"",right:"",bottom:"8px",left:`${r}px`,width:"",height:""}}),Vt(this,zt,()=>{this.style.removeProperty("height");const t=Zt(qt,this).call(this,document.getElementById(R));Object.assign(this.style,t)})}get activeNavItem(){return Zt(Tt,this).value}set activeNavItem(t){Zt(Tt,this).value=t}get toolQueryType(){return Zt(Rt,this).value}set toolQueryType(t){Zt(Rt,this).value=t}attributeChangedCallback(t,e,i){e!==i&&t===j&&(Zt(Wt,this).value=i)}connectedCallback(){Zt(_t,this).value=window.location.href,Zt(Pt,this).subscribe(Zt(Ot,this)),Ht(jt,this,document.getElementById("srf-header")),this.addEventListener("toggle",Zt(Nt,this)),At(Dt,this,Gt).call(this)}disconnectedCallback(){Zt(Pt,this).unsubscribe(Zt(Ot,this)),Ht(jt,this,null),this.removeEventListener("toggle",Zt(Nt,this)),window.removeEventListener("resize",Zt(zt,this)),Zt(Bt,this).forEach(t=>t()),Ht(Bt,this,[])}}function Gt(){Zt(Bt,this).push(k(()=>{At(Dt,this,Ft).call(this)}))}function Ft(){if(!this.isConnected||"function"!=typeof this.togglePopover)return;this.popover="auto";const t=Zt(Wt,this).value,e=Zt(Tt,this).value,i=Zt(Rt,this).value,n=Zt(_t,this).value;if(t){const r=X(t);K(r.querySelectorAll(`${H}[href]`),i,n),nt(r,e),this.replaceChildren(r),this.togglePopover(!0),Zt(zt,this).call(this)}else this.togglePopover(!1),this.replaceChildren()}function Jt(t,e,i){Yt(t,e),e.set(t,i)}function Yt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Kt(t,e,i){return t.set(ee(t,e),i),i}function te(t,e){return t.get(ee(t,e))}function ee(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}It(Qt,"observedAttributes",[j]),customElements.define(L,Qt);var ie=new WeakMap,ne=new WeakMap,re=new WeakMap,ae=new WeakMap,oe=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakMap,he=new WeakSet,ue=new WeakMap;class de extends HTMLElement{get activeNavItem(){return te(ie,this).value}set activeNavItem(t){te(ie,this).value=t}get toolQueryType(){return te(ne,this).value}set toolQueryType(t){te(ne,this).value=t}attributeChangedCallback(t,e,i){e!==i&&(t===j?te(re,this).value=i:t===B&&(te(ae,this).value=i))}constructor(){super(),function(t,e){Yt(t,e),e.add(t)}(this,he),Xt(this,"relRibbonItemId",null),Jt(this,ie,p(null)),Jt(this,ne,p(null)),Jt(this,re,p(null)),Jt(this,ae,p(null)),Jt(this,oe,p(null)),Jt(this,se,new xt),Jt(this,le,void 0),Jt(this,ce,[]),Jt(this,ue,()=>{te(oe,this).value=window.location.href}),Kt(le,this,ee(he,this,fe).call(this))}connectedCallback(){te(oe,this).value=window.location.href,te(se,this).subscribe(te(ue,this)),ee(he,this,pe).call(this)}disconnectedCallback(){te(se,this).unsubscribe(te(ue,this)),te(ce,this).forEach(t=>t()),Kt(ce,this,[])}get backButton(){return te(le,this)}}function pe(){te(ce,this).push(k(()=>{ee(he,this,be).call(this)})),te(ce,this).push(k(()=>{ee(he,this,ve).call(this)}))}function fe(){const t=document.createElement("button");return t.classList.add("srf-sidebar-back-button"),t}function ve(){const t=te(ae,this).value;te(le,this).textContent=t??""}function be(){if(!this.isConnected)return;const t=te(re,this).value,e=te(ie,this).value,i=te(ne,this).value,n=te(oe,this).value;if(t){const r=X(t);K(r.querySelectorAll(`${H}[href]`),i,n),nt(r,e),this.replaceChildren(r),this.prepend(te(le,this))}else this.replaceChildren()}function me(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function ge(t,e){return t.get(function(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}(t,e))}Xt(de,"observedAttributes",[j,B]),customElements.define(V,de);const Ce=new CSSStyleSheet;Ce.replaceSync(`\n :host {\n position: absolute;\n right: -11px;\n top: 12px;\n }\n\n button {\n display: flex;\n width: 23px;\n height: 28px;\n padding: 4px;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n border-radius: 6px;\n background: white;\n outline: none;\n border: none;\n cursor: pointer;\n box-shadow: var(--collapse-button-shadow);\n ${x?"box-shadow: 0 0 0 1px var(--intergalactic-border-secondary);":""}\n }\n\n button svg {\n width: 16px;\n height: 16px;\n fill: var(--collapse-button-color);\n }\n`);var we=new WeakMap,ye=new WeakMap;class Me extends HTMLElement{constructor(...t){super(...t),me(this,we,()=>{if(!this.shadowRoot){this.attachShadow({mode:"open"}).adoptedStyleSheets=[Ce]}}),me(this,ye,()=>{const t=document.createElement("button");t.dataset.ga4Click="",t.dataset.ga4ItemLocation="navigation.sidebar.open-collapse-button";const e=x?G("chevronDoubleLeft"):"chevronDoubleLeft";t.appendChild(Y(e)),this.shadowRoot.appendChild(t)})}connectedCallback(){ge(we,this).call(this),ge(ye,this).call(this),this.dataset.path="navigation.sidebar.open-collapse-button"}}customElements.define(Z,Me);class ke extends HTMLElement{connectedCallback(){this.classList.add("srf-sidebar-list-group");const t=this.getAttribute("name");if(t){const e=document.createElement("div");e.className="srf-sidebar-list-group-heading",e.textContent=t,this.prepend(e)}const e=document.createElement("ul");this.querySelectorAll("srf-sidebar-list-item").forEach(t=>{const i=document.createElement("li");i.appendChild(t),e.appendChild(i)}),this.appendChild(e)}}function Ee(t,e,i){Se(t,e),e.set(t,i)}function Se(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xe(t,e){return t.get(Le(t,e))}function Ve(t,e,i){return t.set(Le(t,e),i),i}function Le(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}customElements.define(I,ke);var Ie=new WeakMap,He=new WeakMap,Ze=new WeakMap,Ae=new WeakMap,Te=new WeakSet;class Re extends HTMLElement{constructor(){super(),function(t,e){Se(t,e),e.add(t)}(this,Te),Ee(this,Ie,void 0),Ee(this,He,null),Ee(this,Ze,null),Ee(this,Ae,{href:t=>xe(Ie,this).href=t??"",label:t=>{null!==xe(He,this)?xe(He,this).textContent=t??"":xe(Ie,this).textContent=t??""},target:t=>xe(Ie,this).target=t??"","ga4-item-location":t=>Le(Te,this,je).call(this,t)}),this.attachShadow({mode:"open"}),Ve(Ie,this,Le(Te,this,We).call(this))}connectedCallback(){Le(Te,this,De).call(this)}attributeChangedCallback(t,e,i){var n,r;e!==i&&(null===(n=(r=xe(Ae,this))[t])||void 0===n||n.call(r,i),Le(Te,this,De).call(this))}get href(){return this.getAttribute("href")}set href(t){tt(this,"href",t)}get label(){return this.getAttribute("label")}set label(t){tt(this,"label",t)}get target(){return this.getAttribute("target")}set target(t){tt(this,"target",t)}get ga4ItemLocation(){return this.getAttribute("ga4-item-location")}set ga4ItemLocation(t){tt(this,"ga4-item-location",t)}get disabled(){return Boolean(this.getAttribute("disabled"))}set tabIndex(t){tt(this,"tabIndex",t.toString())}get isExternal(){return this.hasAttribute("external")}}function We(){const t=document.createElement("a");return t.part.add("anchor"),t.tabIndex=0,this.disabled&&t.setAttribute("tabindex","-1"),t}function _e(){const t=document.createElement("span");return t.part.add("external"),t}function Pe(){const t=document.createElement("div");return t.tabIndex=-1,t.part.add("ext-icon"),t}function je(t){t?(xe(Ie,this).dataset.ga4Click="",xe(Ie,this).dataset.ga4ItemLocation=t,this.dataset.path=t):(delete xe(Ie,this).dataset.ga4Click,delete xe(Ie,this).dataset.ga4ItemLocation,delete this.dataset.path)}function Be(){var t;xe(Ze,this)??Ve(Ze,this,Le(Te,this,Pe).call(this)),xe(He,this)??Ve(He,this,Le(Te,this,_e).call(this)),null!==(t=xe(Ie,this))&&void 0!==t&&t.textContent&&xe(Ie,this).textContent.length>0&&(xe(He,this).textContent=xe(Ie,this).textContent,xe(Ie,this).textContent="")}function De(){if(!this.isConnected)return;const t=this.querySelector(T);t&&xe(Ie,this).appendChild(t),this.isExternal&&Le(Te,this,Be).call(this),xe(He,this)&&(xe(Ie,this).appendChild(xe(He,this)),xe(Ze,this)&&xe(He,this).appendChild(xe(Ze,this))),this.shadowRoot.replaceChildren(xe(Ie,this))}function Oe(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ne(t,e){Ue(t,e),e.add(t)}function $e(t,e,i){Ue(t,e),e.set(t,i)}function Ue(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qe(t,e,i){return t.set(Qe(t,e),i),i}function ze(t,e){return t.get(Qe(t,e))}function Qe(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}!function(t,e,i){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(Re,"observedAttributes",["href","label","ga4-item-location","target","disabled","external"]),customElements.define(H,Re);var Ge=new WeakMap,Fe=new WeakMap,Je=new WeakMap,Ye=new WeakSet;class Xe{constructor(){Ne(this,Ye),$e(this,Ge,null),$e(this,Fe,"initial"),$e(this,Je,null)}async fetchData(){return ze(Je,this)?ze(Je,this):"success"===ze(Fe,this)?ze(Ge,this):(qe(Fe,this,"loading"),qe(Je,this,Qe(Ye,this,Ke).call(this).then(t=>(qe(Ge,this,t),qe(Fe,this,"success"),t)).catch(t=>(console.error("Sidebar: Failed to fetch data:",t),Et.e.sendError("sidebar",t),qe(Fe,this,"error"),null)).finally(()=>{qe(Je,this,null)})),ze(Je,this))}getData(){return ze(Ge,this)}getLoadingState(){return ze(Fe,this)}}async function Ke(){const t=await fetch(this.endpoint);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()}class ti extends Xe{constructor(...t){super(...t),Oe(this,"endpoint","/apps/api/active-apps/v1/")}}class ei extends Xe{constructor(...t){super(...t),Oe(this,"endpoint","/recommendation/api/v2/get/?placement_key=c879fc4e43ad42d499c35dc882a2f9de")}}var ii=new WeakMap,ni=new WeakMap,ri=new WeakSet;class ai{constructor(){Ne(this,ri),$e(this,ii,new ti),$e(this,ni,new ei)}static getInstance(){return si._||(si._=new ai),si._}async fetchData({includeActiveApps:t,includeRecommendation:e}){const[i,n]=await Promise.all([t?ze(ii,this).fetchData():null,e?ze(ni,this).fetchData():null]);return Qe(ri,this,oi).call(this,i,n)}getData({includeActiveApps:t,includeRecommendation:e}){return t&&"success"!==ze(ii,this).getLoadingState()||e&&"success"!==ze(ni,this).getLoadingState()?null:Qe(ri,this,oi).call(this,ze(ii,this).getData(),ze(ni,this).getData())}}function oi(t,e){var i;return{activeApps:(null==t?void 0:t.apps)??null,appCenterRecommendations:(null==t?void 0:t.recommendations)??null,recSysRecommendation:(null==e||null===(i=e.result)||void 0===i?void 0:i.recommendation)??null}}var si={_:null},li=i(4672);function ci(t,e,i){hi(t,e),e.set(t,i)}function hi(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ui(t,e){return t.get(pi(t,e))}function di(t,e,i){return t.set(pi(t,e),i),i}function pi(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}const fi="srf-sidebar-app-center-active-apps-count",vi=`${I}[data-id="dynamic-app-center-active"]`,bi=`${I}[data-id="dynamic-app-center-best-for-you"]`,mi=+new Date("2024-01-01T00:00:00Z");var gi=new WeakMap,Ci=new WeakMap,wi=new WeakMap,yi=new WeakMap,Mi=new WeakMap,ki=new WeakSet;class Ei extends HTMLElement{constructor(...t){super(...t),function(t,e){hi(t,e),e.add(t)}(this,ki),ci(this,gi,ai.getInstance()),ci(this,Ci,null),ci(this,wi,null),ci(this,yi,null),ci(this,Mi,null)}connectedCallback(){var t;di(Mi,this,new AbortController),pi(ki,this,Si).call(this),pi(ki,this,xi).call(this),null!==(t=window.sm2)&&void 0!==t&&t.user?pi(ki,this,Vi).call(this).catch(t=>{console.error("Sidebar: Failed to initialize dynamic content:",t),Et.e.sendError("sidebar",t)}):console.info("Sidebar: User not authenticated - skipping App Center active applications and recommendations loading")}disconnectedCallback(){ui(Mi,this)&&(ui(Mi,this).abort(),di(Mi,this,null))}}function Si(){di(Ci,this,this.querySelector(vi)),di(wi,this,this.querySelector(bi))}function xi(){ui(Ci,this)&&this.removeChild(ui(Ci,this)),ui(wi,this)&&this.removeChild(ui(wi,this))}async function Vi(){const t=pi(ki,this,Li).call(this),e=pi(ki,this,Ii).call(this);if(!t&&!e)return;let i=ui(gi,this).getData({includeActiveApps:t,includeRecommendation:e});if(null===i){pi(ki,this,Bi).call(this,pi(ki,this,Oi).call(this));try{var n;if(i=await ui(gi,this).fetchData({includeActiveApps:t,includeRecommendation:e}),!this.isConnected||null!==(n=ui(Mi,this))&&void 0!==n&&n.signal.aborted)return;pi(ki,this,Di).call(this),i.activeApps&&pi(ki,this,Ni).call(this,i.activeApps.length)}catch(t){return console.error("Sidebar: Failed to fetch app center data:",t),Et.e.sendError("sidebar",t),void pi(ki,this,Di).call(this)}}pi(ki,this,Pi).call(this,i.activeApps),pi(ki,this,Ti).call(this,i)}function Li(){return!!ui(Ci,this)||(console.info("Sidebar: Active apps group not found - skipping active applications loading"),!1)}function Ii(){return ui(wi,this)?pi(ki,this,Hi).call(this)?(console.info("Sidebar: User has trial subscription - skipping recommendations loading"),!1):!pi(ki,this,Zi).call(this)||(console.info("Sidebar: User is a free user registered less than 30 days ago - skipping recommendations loading"),!1):(console.info("Sidebar: Recommendation group not found - skipping recommendations loading"),!1)}function Hi(){var t,e,i,n;return Boolean((null===(t=window.sm2)||void 0===t||null===(e=t.billingInfo)||void 0===e?void 0:e.has_product)&&!(null!==(i=window.sm2)&&void 0!==i&&null!==(n=i.billingInfo)&&void 0!==n&&n.is_paid))}function Zi(){var t,e,i,n;if(null!==(t=window.sm2)&&void 0!==t&&null!==(e=t.billingInfo)&&void 0!==e&&e.is_paid)return!1;const r=null!==(i=window.sm2)&&void 0!==i&&null!==(n=i.user)&&void 0!==n&&n.registration_date?+new Date(window.sm2.user.registration_date):mi;return Date.now()-r<2592e6}function Ai(t,e){return null!==e&&e.some(e=>e.id===t)}function Ti(t){if(!ui(wi,this))return;const e=pi(ki,this,Ri).call(this,t),i=pi(ki,this,Wi).call(this,t);(e||0!==i.length)&&(e&&ui(wi,this).appendChild(e),ui(wi,this).append(...i),this.appendChild(ui(wi,this)))}function Ri(t){if(!t.recSysRecommendation||pi(ki,this,Ai).call(this,t.recSysRecommendation.app_id,t.activeApps))return null;const e=document.createElement(H);e.href=t.recSysRecommendation.landing_url,e.ga4ItemLocation=`navigation.sidebar.app_center.recommendation.${t.recSysRecommendation.ga_id}`,e.label=t.recSysRecommendation.name;const i=document.createElement(T);return i.label="for you",i.variant="recommendation",e.appendChild(i),e}function Wi(t){return t.appCenterRecommendations?t.appCenterRecommendations.filter(e=>{var i;return e.id!==(null===(i=t.recSysRecommendation)||void 0===i?void 0:i.app_id)}).map(t=>pi(ki,this,_i).call(this,t)):[]}function _i(t){const e=document.createElement(H);return e.href=t.url,e.ga4ItemLocation=`navigation.sidebar.app_center.app_center_recommendation.${t.gaId}`,e.label=t.name,e}function Pi(t){if(!ui(Ci,this)||null===t||0===t.length)return;const e=t.map(t=>pi(ki,this,ji).call(this,t));ui(Ci,this).append(...e),this.appendChild(ui(Ci,this))}function ji(t){const e=document.createElement(H);return e.href=t.url,e.ga4ItemLocation=`navigation.sidebar.app_center.active_apps.${t.gaId}`,e.label=t.name,e}function Bi(t){const e=document.createElement(I);e.setAttribute("inert",""),e.setAttribute("aria-busy","true"),di(yi,this,e);const i=document.createElement("div");i.className="srf-sidebar-app-center-skeleton-group-name";const n=Array.from({length:t},()=>{const t=document.createElement("div");return t.className="srf-sidebar-app-center-skeleton-app-name",t});e.append(i,...n),this.appendChild(e)}function Di(){ui(yi,this)&&(this.removeChild(ui(yi,this)),di(yi,this,null))}function Oi(){const t=Number(li.m.getItem(fi));return Math.max(1,Number.isFinite(t)?t:1)}function Ni(t){li.m.setItem(fi,t.toString())}function $i(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}function Ui(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}customElements.define("srf-sidebar-app-center",Ei);const qi=new CSSStyleSheet;qi.replaceSync(`\n :host {\n display: inline-block;\n vertical-align: top;\n margin: 3px 0 0 4px;\n border-radius: var(--intergalactic-badge-rounded);\n padding: 0 4px;\n line-height: var(--intergalactic-fs-200);\n font-size: var(--intergalactic-fs-50);\n letter-spacing: 0.3px;\n white-space: nowrap;\n font-weight: var(--intergalactic-medium);\n color: var(--text-primary-invert);\n }\n\n ${Object.entries({admin:"var(--intergalactic-blue-400)",alpha:"var(--intergalactic-red-400)",beta:"var(--intergalactic-orange-400)",new:"var(--intergalactic-green-400)",soon:"var(--intergalactic-gray-400)",recommendation:"var(--intergalactic-violet-400)"}).reduce((t,[e,i])=>`${t}\n\n :host([variant="${e}"]) {\n background-color: ${i};\n }\n \n `,"")}\n`);var zi=new WeakSet;class Qi extends HTMLElement{constructor(){super(),$i(this,zi);this.attachShadow({mode:"open"}).adoptedStyleSheets=[qi]}attributeChangedCallback(t,e,i){e!==i&&Ui(zi,this,Fi).call(this)}connectedCallback(){Ui(zi,this,Fi).call(this)}get label(){return this.getAttribute("label")??""}set label(t){tt(this,"label",t)}get variant(){return this.getAttribute("variant")??""}set variant(t){tt(this,"variant",t)}}function Gi(){const t=document.createElement("div");return t.toggleAttribute("inert",!0),t.textContent=this.label,this.part.add("badge"),t}function Fi(){this.shadowRoot.replaceChildren(Ui(zi,this,Gi).call(this))}!function(t,e,i){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(Qi,"observedAttributes",["label","variant"]),customElements.define(T,Qi);var Ji=i(4576),Yi=i(4142);function Xi(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}function Ki(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function tn(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var en=new WeakSet;class nn extends Ji.Q7{constructor(t){super(),Xi(this,en),Ki(this,"state",void 0),this.state=t}handleEvent({target:t},e){const i={item_location:this.getItemLocationPath(e)};(t instanceof Ct||t instanceof Re)&&Object.assign(i,tn(en,this,an).call(this)),t instanceof Re&&Object.assign(i,tn(en,this,rn).call(this,t)),t instanceof Me&&Object.assign(i,tn(en,this,on).call(this)),(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)&&Object.assign(i,tn(en,this,sn).call(this,e)),this.sendEventFromTarget("click",e,i)}}function rn(t){const e={state:"static"};return"mobile"===this.state.mode.value?e.state="burger":t.closest(L)&&(e.state="hover"),e}function an(){var t;const e={};if("mobile"===this.state.mode.value)return e.item_variant="mobile",e;const i=document.getElementsByTagName(A)[0],n=null==i||null===(t=i.shadowRoot)||void 0===t?void 0:t.querySelector('span[part="label"]');if(!n)return e;return"none"===window.getComputedStyle(n).display?e.item_variant="icon_only":e.item_variant="icon_text",e}function on(){return{item_label:this.state.isSidebarCollapsed.value?"collapse":"expand"}}function sn(t){const e={};return t instanceof HTMLAnchorElement&&(e.link_url=t.href),t.innerText&&(e.link_text=t.innerText),e}function ln(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class cn{constructor(){ln(this,"mode",p("desktop")),ln(this,"isSidebarCollapsed",p(!1)),ln(this,"isModalOpen",p(!1)),ln(this,"activeNavItem",p(null)),ln(this,"toolQueryType",p(null)),ln(this,"activeRibbonItemId",p(null)),ln(this,"detailsRibbonItemId",p(null)),ln(this,"hoverRibbonItemId",p(null)),ln(this,"focusedRibbonItemId",p(null)),ln(this,"currentUrl",p(null)),ln(this,"isDetailsPanelVisible",g(()=>{const t=this.detailsRibbonItemId.value,e=this.isSidebarCollapsed.value,i=this.mode.value;return!!t&&("mobile"===i||!e)})),ln(this,"isHoverPanelVisible",g(()=>{const t=this.hoverRibbonItemId.value,e=this.detailsRibbonItemId.value,i=this.isDetailsPanelVisible.value,n=this.mode.value;return!!t&&("mobile"!==n&&(t!==e||!i))})),ln(this,"collapseButtonDisplay",g(()=>{const t=this.detailsRibbonItemId.value,e=this.isHoverPanelVisible.value,i=this.isSidebarCollapsed.value;return!t||e?"none":i?"collapsed":"expanded"})),this.setupEffects()}setupEffects(){k(()=>{"desktop"===this.mode.value&&(this.isModalOpen.value=!1,this.hoverRibbonItemId.value=null)})}showModal(){"mobile"===this.mode.value?this.isModalOpen.value=!0:console.warn("Sidebar: showModal is only available in mobile mode")}hideModal(){"mobile"===this.mode.value?this.isModalOpen.value=!1:console.warn("Sidebar: hideModal is only available in mobile mode")}}function hn(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function un(t,e,i){dn(t,e),e.set(t,i)}function dn(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pn(t,e,i){return t.set(vn(t,e),i),i}function fn(t,e){return t.get(vn(t,e))}function vn(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var bn=new WeakMap,mn=new WeakMap,gn=new WeakMap,Cn=new WeakMap,wn=new WeakMap,yn=new WeakMap,Mn=new WeakMap,kn=new WeakMap,En=new WeakMap,Sn=new WeakMap,xn=new WeakMap,Vn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Hn=new WeakMap,Zn=new WeakSet,An=new WeakMap,Tn=new WeakMap,Rn=new WeakMap,Wn=new WeakMap,_n=new WeakMap,Pn=new WeakMap,jn=new WeakMap,Bn=new WeakMap,Dn=new WeakMap;class On extends HTMLElement{constructor(...t){super(...t),function(t,e){dn(t,e),e.add(t)}(this,Zn),un(this,bn,void 0),un(this,mn,null),un(this,gn,null),un(this,Cn,null),un(this,wn,null),un(this,yn,null),un(this,Mn,null),un(this,kn,null),un(this,En,new xt),un(this,Sn,null),un(this,xn,null),un(this,Vn,t=>{fn(bn,this).mode.value=t.matches?"desktop":"mobile"}),un(this,Ln,(0,S.G)()),un(this,In,[]),un(this,Hn,()=>{fn(bn,this).currentUrl.value=window.location.href}),hn(this,"showModal",()=>{fn(bn,this).showModal()}),hn(this,"collapse",()=>{fn(bn,this).hideModal()}),un(this,An,t=>{const e=t.target;if(e instanceof Ct)if(e.before(fn(yn,this)),e.hasAttribute(P)){const t=e.getAttribute(O);fn(bn,this).hoverRibbonItemId.value=t}else fn(bn,this).hoverRibbonItemId.value=null}),un(this,Tn,()=>{fn(bn,this).hoverRibbonItemId.value=null}),un(this,Rn,t=>{const e=t.target;if(!(e instanceof Ct||e instanceof Re))throw new Error("Sidebar navigation click target is not a SidebarRibbonItem or SidebarListItem");if(!e.hasAttribute("href"))return!1;const i=new CustomEvent("sm2sidebar-navigation",{bubbles:!1,cancelable:!0,detail:{href:e.getAttribute("href"),navItem:e.getAttribute(U)}});return this.dispatchEvent(i),i.defaultPrevented}),un(this,Wn,t=>{const e=t.target,i=e.getAttribute(O);if(fn(bn,this).isModalOpen.value){if(e.hasAttribute(P))return t.preventDefault(),void(fn(bn,this).detailsRibbonItemId.value=i);fn(bn,this).detailsRibbonItemId.value=null}fn(Rn,this).call(this,t)?t.preventDefault():fn(bn,this).focusedRibbonItemId.value=i}),un(this,_n,t=>{const e=t.target;if(fn(Rn,this).call(this,t))return t.preventDefault(),void("mobile"===fn(bn,this).mode.value&&this.collapse());const i=e.closest(V)||e.closest(L);i&&(fn(bn,this).focusedRibbonItemId.value=i.relRibbonItemId)}),un(this,Pn,t=>{const e=t.target;e instanceof Ct?fn(Wn,this).call(this,t):e instanceof Re&&fn(_n,this).call(this,t)}),un(this,jn,t=>{if(!this.isConnected)return;const e=fn(mn,this).getBoundingClientRect();t.clientX<=e.right+33&&t.clientY>=e.top?this.setAttribute(_,""):this.removeAttribute(_)}),un(this,Bn,()=>{fn(bn,this).isModalOpen.value=!1}),un(this,Dn,()=>{fn(bn,this).isSidebarCollapsed.value=!fn(bn,this).isSidebarCollapsed.value})}static get observedAttributes(){return[W,$,N]}connectedCallback(){try{vn(Zn,this,Nn).call(this),vn(Zn,this,Un).call(this),vn(Zn,this,qn).call(this),vn(Zn,this,Gn).call(this)}catch(t){console.error("Failed to initialize sidebar:",t),Et.e.sendError("sidebar",t)}}disconnectedCallback(){var t,e,i,n;fn(En,this).unsubscribe(fn(Hn,this)),this.removeEventListener("pointerover",fn(An,this)),this.removeEventListener("pointerleave",fn(Tn,this)),document.removeEventListener("pointermove",fn(jn,this)),fn(Mn,this).removeEventListener("click",fn(Bn,this)),fn(Sn,this).call(this),pn(Sn,this,null),fn(xn,this).removeEventListener("change",fn(Vn,this)),pn(xn,this,null),fn(In,this).forEach(t=>t()),pn(In,this,[]),null===(t=fn(wn,this))||void 0===t||t.remove(),null===(e=fn(gn,this))||void 0===e||e.remove(),null===(i=fn(Cn,this))||void 0===i||i.remove(),null===(n=fn(Mn,this))||void 0===n||n.remove()}attributeChangedCallback(){fn(bn,this)&&vn(Zn,this,$n).call(this)}}function Nn(){if(pn(mn,this,document.getElementById("srf-sidebar")),!fn(mn,this))throw new Error("Sidebar navigation element not found");pn(Mn,this,document.createElement("div")),fn(Mn,this).classList.add("srf-sidebar-modal-backdrop"),this.prepend(fn(Mn,this)),pn(yn,this,document.createElement("div")),fn(yn,this).id=R,pn(gn,this,document.createElement(V)),fn(gn,this).setAttribute(B,this.getAttribute(B)??""),fn(gn,this).backButton.addEventListener("click",()=>fn(bn,this).detailsRibbonItemId.value=null),pn(Cn,this,document.createElement(L)),fn(mn,this).appendChild(fn(gn,this)),fn(mn,this).appendChild(fn(Cn,this))}function $n(){a(()=>{fn(bn,this).isSidebarCollapsed.value=null!==this.getAttribute(W);const t=this.getAttribute(N);fn(bn,this).toolQueryType.value="domain"===t||"keyword"===t?t:null,fn(bn,this).activeNavItem.value=this.getAttribute($)})}function Un(){pn(bn,this,new cn),vn(Zn,this,$n).call(this);const t=vn(Zn,this,rr).call(this);fn(bn,this).isSidebarCollapsed.value=t,pn(xn,this,window.matchMedia("(min-width: 1280px)")),fn(bn,this).mode.value=fn(xn,this).matches?"desktop":"mobile",fn(xn,this).addEventListener("change",fn(Vn,this)),fn(bn,this).currentUrl.value=window.location.href}function qn(){var t,e;fn(En,this).subscribe(fn(Hn,this)),this.addEventListener("pointerover",fn(An,this)),this.addEventListener("pointerleave",fn(Tn,this)),this.addEventListener("click",fn(Pn,this)),document.addEventListener("pointermove",fn(jn,this),{passive:!0}),pn(Sn,this,(t=fn(mn,this),e=fn(bn,this),(0,Yi.m)("click","[data-ga4-click]",new nn(e),{delegateTo:t,passive:!0})))}function zn(){K(this.querySelectorAll(`${A}[href]`),fn(bn,this).toolQueryType.value,fn(bn,this).currentUrl.value)}function Qn(){const t=fn(bn,this).activeNavItem.value,e=li.m.getItem(z),i=function(t,e,i){if(!e)return null;if("projects.index:index"===e||"crossroad"===e)return"crossroad";if(i){const n=et(t,i);if(n&&it(n,e))return i}const n=t.querySelectorAll(`${A}[${O}]`);for(const t of n)if(it(t,e))return t.getAttribute(O);return null}(fn(mn,this),t,e);if(!i)return void a(()=>{fn(bn,this).activeRibbonItemId.value=null,fn(bn,this).detailsRibbonItemId.value=null});const n=et(fn(mn,this),i),r=null!=n&&n.hasAttribute(P)?i:null;a(()=>{fn(bn,this).activeRibbonItemId.value=i,fn(bn,this).focusedRibbonItemId.value=i,fn(bn,this).detailsRibbonItemId.value=r})}function Gn(){fn(In,this).push(k(()=>{vn(Zn,this,Qn).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,Fn).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,Jn).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,zn).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,Yn).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,Kn).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,tr).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,ir).call(this)})),fn(In,this).push(k(()=>{vn(Zn,this,nr).call(this)})),fn(In,this).push(k(()=>{pn(kn,this,fn(bn,this).isModalOpen.value)}))}function Fn(){this.toggleAttribute(W,fn(bn,this).isSidebarCollapsed.value),this.setAttribute("mode","mobile"===fn(bn,this).mode.value?"mobile":"desktop"),this.toggleAttribute("modal-open",fn(bn,this).isModalOpen.value)}function Jn(){const t=fn(bn,this).activeRibbonItemId.value;fn(mn,this).querySelectorAll(`${A}[${O}]`).forEach(e=>{e.toggleAttribute(D,e.getAttribute(O)===t)})}function Yn(){const t=fn(bn,this).activeNavItem.value,e=fn(bn,this).detailsRibbonItemId.value,i=fn(bn,this).hoverRibbonItemId.value,n=fn(bn,this).isDetailsPanelVisible.value,r=fn(bn,this).isHoverPanelVisible.value,a=fn(bn,this).activeRibbonItemId.value,o=fn(bn,this).toolQueryType.value;fn(gn,this)&&vn(Zn,this,Xn).call(this,{panel:fn(gn,this),isVisible:n,relRibbonItemId:e,activeNavItem:e===a?t:null,toolQueryType:o}),fn(Cn,this)&&vn(Zn,this,Xn).call(this,{panel:fn(Cn,this),isVisible:r,relRibbonItemId:i,activeNavItem:i===a?t:null,toolQueryType:o})}function Xn({panel:t,isVisible:e,relRibbonItemId:i,activeNavItem:n,toolQueryType:r}){const a=et(fn(mn,this),i),o=(null==a?void 0:a.getAttribute(P))??null;vn(Zn,this,er).call(this,{panel:t,interestTarget:e?o:null,activeNavItem:n,relRibbonItemId:i,toolQueryType:r})}function Kn(){const t="none"===fn(bn,this).collapseButtonDisplay.value;t&&fn(wn,this)?(fn(wn,this).remove(),fn(wn,this).removeEventListener("click",fn(Dn,this)),pn(wn,this,null)):t||fn(wn,this)||(pn(wn,this,document.createElement(Z)),fn(wn,this).addEventListener("click",fn(Dn,this)),fn(mn,this).appendChild(fn(wn,this)))}function tr(){if(fn(bn,this).isModalOpen.value){fn(Mn,this).addEventListener("click",fn(Bn,this));const t=this.querySelector(".srf-sidebar-ribbon");t&&(t.style.display="block",t.scrollTo(0,0),t.style.display="")}else fn(Mn,this).removeEventListener("click",fn(Bn,this)),fn(kn,this)&&this.dispatchEvent(new CustomEvent("sm2sidebar-modalclose",{bubbles:!0}))}function er({panel:t,interestTarget:e,activeNavItem:i,relRibbonItemId:n,toolQueryType:r}){if(t.activeNavItem=i,t.toolQueryType=r,t.relRibbonItemId=n,null===e?t.removeAttribute(j):t.setAttribute(j,e),t===fn(gn,this)){const t=this.querySelector(".srf-sidebar-ribbon");t&&t.style.setProperty("--safari-bug-fix",Date.now().toString())}}function ir(){fn(bn,this).isSidebarCollapsed.value?fn(Ln,this).get(q)||fn(Ln,this).set(q,Date.now().toString(),{expires:3650}):fn(Ln,this).remove(q)}function nr(){const t=fn(bn,this).focusedRibbonItemId.value;t&&li.m.setItem(z,t)}function rr(){return void 0!==fn(Ln,this).get(q)}customElements.define("srf-sidebar",On)},9327:(t,e,i)=>{"use strict";e.G=void 0;var n,r=(n=i(2299))&&n.__esModule?n:{default:n};const a=r.default.withConverter({write:function(t){return t},read:t=>t});e.G=t=>({set:(e,i,n)=>r.default.set(e,i,Object.assign({domain:t},n)),get:(e,i)=>r.default.get(e,Object.assign({domain:t},i)),remove:(e,i)=>r.default.remove(e,Object.assign({domain:t},i)),rawSet:(e,i,n)=>a.set(e,i,Object.assign({domain:t},n)),rawGet:(e,i)=>a.get(e,Object.assign({domain:t},i))})}},t=>{t.O(0,[937],()=>{return e=6910,t(t.s=e);var e});t.O()}]);