!function(){"use strict";var o=!1;function n(){var e,t;o&&(e=document.getElementById("page-shell"),t=document.getElementById("mobile-nav-backdrop"),e&&t&&(e.style.height="",e.style.overflow="",e.style.overflowX="hidden",t.classList.remove("shell-mobile-nav__backdrop--visible"),o=!1))}var i="https://www.mapbox.com",a="https://fastly-staging.tilestream.net",e=680,r=window.document.createElement("div"),c=["webkit","moz","o","ms"],s={},l=!1,d=!1;function u(e,t){return"".concat(e).concat("".concat((t=t).charAt(0).toUpperCase()).concat(t.substr(1)))}function m(e,t){return e in(1<arguments.length&&void 0!==t?t:window)}function p(t,e,n){e=1<arguments.length&&void 0!==e&&e;return t in(2<arguments.length&&void 0!==n?n:r).style||!!e&&c.some(function(e){return p(u(e,t))})}function g(n,o,e,t){var e=2<arguments.length&&void 0!==e?e:{},t=3<arguments.length&&void 0!==t?t:r,i=e.allowPrefixedProp,a=e.allowPrefixedValue,e=!1;return(e=i||a?c.some(function(e){return g(i?u(e,n):n,a?(t=o,"-".concat(e,"-").concat(t)):o);var t}):e)?e:(t.style[n]=o,t.style[n]===o)}function t(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r;(s={flexBox:p("flex",e,t)&&g("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:g("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:m("visibilityState",window.document),devicePixelRatio:m("devicePixelRatio"),notInternetExplorer:function(e){return!(0<arguments.length&&void 0!==e?e:window).documentMode}(window.document)}).doesCutMustard=Object.keys(s).every(function(e){return s[e]})}function w(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");l=!(d=!0),e&&e.removeEventListener("click",w),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}var f=!1;function h(){window.matchMedia("(min-width: "+e+"px)").matches&&v()}function y(){var e,t=document.getElementById("mobile-nav-menu"),n=document.getElementById("page-header-content");t&&(f=!0,t.classList.add("shell-animated-menu--visible"),n.classList.add("shell-mobile-nav--visible"),p("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),o||(e=document.getElementById("page-shell"),t=document.getElementById("mobile-nav-menu"),n=document.getElementById("mobile-nav-backdrop"),t&&e&&n&&(t=Math.max(t.getBoundingClientRect().bottom+120,window.innerHeight),e.style.height="".concat(String(t),"px"),e.style.overflow="hidden",n.classList.add("shell-mobile-nav__backdrop--visible"),n.style.height="".concat(String(t-parseInt(n.style.top)),"px"),o=!0)),window.addEventListener("resize",h))}function v(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(f=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),p("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),n(),window.removeEventListener("resize",h))}function b(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),o=document.getElementById("page-header-content"),i=document.getElementById("mbx-user-menu-mobile");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,v()):t.contains(e.target)?(f?v:y)():f&&(!n.contains(e.target)&&!o.contains(e.target)||i.contains(e.target))&&v())}var k,S,E=!1;function x(){E&&(E=!1,n(),v(),document.removeEventListener("click",b))}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){if(void 0!==("undefined"==typeof window?"undefined":M(window))){var g=window.analytics=window.analytics||[];if(!g.initialize)if(g.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{g.invoked=!0,g.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],g.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);return e.unshift(t),g.push(e),g}};for(var e=0;e<g.methods.length;e++){var t=g.methods[e];g[t]=g.factory(t)}g.load=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e),g._loadOptions=t},g.SNIPPET_VERSION="4.15.2";var w=["Segment.io","Google Analytics","Google Analytics 4 Web","Metrics","Amazon Kinesis","Amazon S3","Customer.io","Drift"],f=!1;window.initializeMapboxAnalytics=function(e){if(!f){if(f=!0,(e=e||{}).sentry){var t=e.sentry.sentryDsn,n=e.sentry.ravenOptions||{};if(n.shouldSendCallback=!0,window.Raven)return;var o=document.createElement("script");o.crossOrigin="anonymous",o.type="text/javascript";t=document.createTextNode("window.SENTRY_SDK = {url: 'https://cdn.ravenjs.com/3.26.4/raven.min.js', dsn: '"+t+"', options: "+JSON.stringify(n)+'}; (function (a, b, g, e, h) { var k = a.SENTRY_SDK, f = function (a) { f.data.push(a) }; f.data = []; var l = a[e]; a[e] = function (c, b, e, d, h) { f({ e: [].slice.call(arguments) }); l && l.apply(a, arguments) }; var m = a[h]; a[h] = function (c) { f({ p: c.reason }); m && m.apply(a, arguments) }; var n = b.getElementsByTagName(g)[0]; b = b.createElement(g); b.src = k.url; b.crossorigin = "anonymous"; b.addEventListener("load", function () { try { a[e] = l; a[h] = m; var c = f.data, b = a.Raven; b.config(k.dsn, k.options).install(); var g = a[e]; if (c.length) for (var d = 0; d < c.length; d++)c[d].e ? g.apply(b.TraceKit, c[d].e) : c[d].p && b.captureException(c[d].p) } catch (p) { console.log(p) } }); n.parentNode.insertBefore(b, n) })(window, document, "script", "onerror", "onunhandledrejection");');o.appendChild(t),o.onerror=function(e){console.log("Raven failed to initialize"),e&&console.log(e)},document.head.appendChild(o)}void 0===e.marketoMunchkin&&(e.marketoMunchkin=!0);for(var n=!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname),t=e.segmentWriteKey||"fl0c8p240n",o=e.segmentWriteKeyStaging||e.segmentWriteKey||"0biiejpgfj",o=n?t:o,i={All:!1},a=0;a<w.length;a++)i[w[a]]=!0;if(e.segmentIntegrations)for(var r in e.segmentIntegrations)e.segmentIntegrations.hasOwnProperty(r)&&(i[r]=e.segmentIntegrations[r]);g._writeKey=o,g.load(o,{integrations:i});var c,s,l,d,o=u();g.page(o),e.marketoMunchkin&&(c=e.marketoMunchkinId||"117-NXK-490",s=!1,(o=document.createElement("script")).type="text/javascript",o.async=!0,o.src="//munchkin.marketo.net/munchkin.js",o.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||m()},o.onload=m,document.getElementsByTagName("head")[0].appendChild(o)),void 0!==("undefined"==typeof window?"undefined":M(window))&&window.analytics&&window.history&&window.history.pushState&&(window.pushStateAnalyticsInitialized||(window.pushStateAnalyticsInitialized=!0,d=window.history.pushState,window.history.pushState=function(){l=window.location.href,p({clientSideRouting:"pushstate"}),d.apply(window.history,arguments)},window.addEventListener("popstate",function(){p({clientSideRouting:"popstate"})})))}function u(){return void 0!==window.mbxMetadata?window.mbxMetadata:{}}function m(){!1===s&&(s=!0,"undefined"!=typeof Munchkin&&Munchkin.init(c,{asyncOnly:!0}))}function p(n){n=n||{},setTimeout(function(){n.referrer=l;var e=u();if(e)for(var t in e)n[t]=e[t];window.analytics.page(n),window.Munchkin&&window.Munchkin.munchkinFunction&&window.Munchkin.munchkinFunction("visitWebPage",{url:window.location.pathname,params:window.location.search.replace(/^\?/,"")}),l=window.location.href},300)}}}}}();var I=[],B=!1;function P(){I.forEach(function(e){e()}),I=[]}function _(e){I.push(e)}function A(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}var C=!1;function j(e,t){if((e="function"==typeof e?(t=e,{}):e||{}).cache=void 0===e.cache||e.cache,B&&e.cache)return P(),void(t&&t());var n;C?t&&_(t):(C=!0,(n=new XMLHttpRequest).open("GET",(A()?i:a)+"/api/session"),n.setRequestHeader("Accept","application/json"),n.onload=function(){var e;B=!0,200===n.status&&(e=JSON.parse(n.response),e=function(e){if(e&&e.authorizations)for(var t,n=0,o=e.authorizations.length;n<o;n++)if("api"===(t=e.authorizations[n]).client&&"pk"===t.usage&&!0===t.default)return t.token}(k=e),S=e),P(),t&&t(),C=!1},n.withCredentials=!0,n.send())}var z="user-menu-script";function L(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}var R=!1;var N={afterUserCheck:function(e){B?e():_(e)},getMapboxAccessToken:function(){return A()?"pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg":"pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p1dHRybDR5MGJuZjQzcGhrZ2doeGgwNyJ9.a-vxW4UaxOoUMWUTGnEArw"},getUserPublicAccessToken:function(){return S},getUser:function(){return k},removeNavigation:x,initialize:function(){var e;e=function(){var e;j(),x(),E||(E=!0,document.addEventListener("click",b)),null==s.doesCutMustard&&t(!0),d||s.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning")||((e=window.document.getElementById("page-shell-compatibility-warning"))&&(e.style.display="block"),l||(e=window.document.getElementById("page-shell-compatibility-dismiss"))&&e.addEventListener("click",w),l=!0)},"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)},loadUserMenu:function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.dark,o=void 0===n||n,i=t.userCallback;R||(e=function(){MapboxUserMenu.initialize({elementId:"mbx-user-menu",isProduction:L(),dark:o,userCallback:i}),MapboxUserMenu.initialize({elementId:"mbx-user-menu-mobile",isProduction:L(),dark:o})},document.getElementById(z)?e():(R=!0,(t=document.createElement("script")).id=z,t.src="https://static-assets.mapbox.com/user-menu/user-menu.js",t.async=!0,t.onload=function(){e(),R=!1},document.body.appendChild(t)))},generateCompatibilitySummary:t,getCompatibilitySummary:function(){return s}};(window.MapboxPageShell=N).initialize()}();</script>
0 commit comments