(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3433],{3433:(e,t,r)=>{Promise.resolve().then(r.bind(r,34182)),Promise.resolve().then(r.bind(r,42080)),Promise.resolve().then(r.bind(r,12192)),Promise.resolve().then(r.bind(r,17798)),Promise.resolve().then(r.bind(r,83176)),Promise.resolve().then(r.bind(r,54871)),Promise.resolve().then(r.bind(r,7294)),Promise.resolve().then(r.bind(r,68367)),Promise.resolve().then(r.bind(r,88901)),Promise.resolve().then(r.bind(r,29043)),Promise.resolve().then(r.bind(r,49948)),Promise.resolve().then(r.bind(r,96924)),Promise.resolve().then(r.bind(r,54001)),Promise.resolve().then(r.bind(r,51749)),Promise.resolve().then(r.bind(r,82274)),Promise.resolve().then(r.bind(r,54850)),Promise.resolve().then(r.bind(r,49769)),Promise.resolve().then(r.bind(r,28964)),Promise.resolve().then(r.bind(r,35021)),Promise.resolve().then(r.bind(r,69445)),Promise.resolve().then(r.bind(r,8705)),Promise.resolve().then(r.bind(r,12784)),Promise.resolve().then(r.bind(r,24223)),Promise.resolve().then(r.bind(r,30730)),Promise.resolve().then(r.bind(r,60361)),Promise.resolve().then(r.bind(r,76982)),Promise.resolve().then(r.bind(r,3121)),Promise.resolve().then(r.bind(r,41630)),Promise.resolve().then(r.t.bind(r,45165,23)),Promise.resolve().then(r.bind(r,34071)),Promise.resolve().then(r.bind(r,3625))},7294:(e,t,r)=>{"use strict";r.d(t,{LocalStorageAndAnalyticsProviders:()=>Z});var s=r(54568),n=r(7620),a=r(42758),i=r(23792);function o({adobe:e}){return e?.launchUrl?(0,s.jsx)(i.default,{strategy:"afterInteractive",src:e.launchUrl,id:"adobe-launch",async:!0}):null}function l(e){return JSON.stringify(e).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/\//g,"\\u002f")}function c(e){return encodeURIComponent(e)}function d({clarity:e}){if(!e?.projectId)return null;let t=l(e.projectId);return(0,s.jsx)(i.default,{strategy:"afterInteractive",id:"clarity-init",type:"text/javascript",dangerouslySetInnerHTML:{__html:`
          (function(c,l,a,r,i){
            c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
            var t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
            var y=l.getElementsByTagName(r)[0];if(y&&y.parentNode){y.parentNode.insertBefore(t,y);}else{l.head.appendChild(t);}
          })(window, document, "clarity", "script", ${t});
        `}})}function u({clearbit:e}){return e?.publicApiKey?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.default,{strategy:"afterInteractive",src:`https://tag.clearbitscripts.com/v1/${e.publicApiKey}/tags.js`})}):null}function h({customScripts:e}){let t=e?.filter(e=>"beforeInteractive"!==e.strategy);return t?.length?(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsx)(i.default,{src:e.src,strategy:e.strategy??"afterInteractive"},`${e.src}-${t}`))}):null}function m({ga4:e}){if(!e?.measurementId)return null;let t=l(e.measurementId),r=c(e.measurementId);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.default,{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?id=${r}`}),(0,s.jsx)(i.default,{strategy:"afterInteractive",id:"ga4",dangerouslySetInnerHTML:{__html:`
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());
            gtag('config', ${t}, {
              page_path: window.location.pathname,
            });
          `}})]})}function x({gtm:e}){if(!e?.tagId)return null;let t=l(e.tagId),r=c(e.tagId);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.default,{id:"gtm",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
          (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer',${t});`}}),(0,s.jsx)("noscript",{children:(0,s.jsx)("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${r}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})}function g({heap:e}){if(!e?.appId)return null;let t=l(e.appId);return(0,s.jsx)(i.default,{id:"heap",type:"text/javascript",dangerouslySetInnerHTML:{__html:`
          window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};
          heap.load(${t});
          `}})}function p({koala:e}){if(!e?.publicApiKey)return null;let t=c(e.publicApiKey);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.default,{strategy:"afterInteractive",id:"koala",dangerouslySetInnerHTML:{__html:`
          !(function (t) {
            if (window.ko) return;
            (window.ko = []),
              [
                "identify",
                "track",
                "removeListeners",
                "open",
                "on",
                "off",
                "qualify",
                "ready",
              ].forEach(function (t) {
                ko[t] = function () {
                  var n = [].slice.call(arguments);
                  return n.unshift(t), ko.push(n), ko;
                };
              });
            var n = document.createElement("script");
            (n.async = !0),
              n.setAttribute(
                "src",
                "https://cdn.getkoala.com/v1/${t}/sdk.js"
              ),
              (document.body || document.head).appendChild(n);
          })();
          `}})})}function f({plausible:e}){return e?.domain?(0,s.jsx)(i.default,{strategy:"afterInteractive","data-domain":e.domain,src:`https://${e.server??"plausible.io"}/js/script.js`}):null}var y=r(90280),v=r(17798);function b({segment:e}){if(!e?.key)return null;let t=l(e.key);return(0,s.jsx)(i.default,{strategy:"afterInteractive",id:"segment",dangerouslySetInnerHTML:{__html:`
  !function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){n.push({__t:"bpc",c:location.href,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey=${t};;analytics.SNIPPET_VERSION="5.2.0";
  analytics.load(${t});
  analytics.page();
  }}();`}})}let j=()=>{let{docsConfig:e}=(0,n.useContext)(v.H6);if(!y.db)return null;let t=e?.integrations?.customScripts;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o,{adobe:e?.integrations?.adobe}),(0,s.jsx)(d,{clarity:e?.integrations?.clarity}),(0,s.jsx)(u,{clearbit:e?.integrations?.clearbit}),(0,s.jsx)(m,{ga4:e?.integrations?.ga4}),(0,s.jsx)(x,{gtm:e?.integrations?.gtm}),(0,s.jsx)(g,{heap:e?.integrations?.heap}),(0,s.jsx)(p,{koala:e?.integrations?.koala}),(0,s.jsx)(f,{plausible:e?.integrations?.plausible}),(0,s.jsx)(b,{segment:e?.integrations?.segment}),(0,s.jsx)(h,{customScripts:t})]})};var k=r(27541),w=r(13435);class N{}class C extends N{init(e,t=!1){e.apiKey&&r.e(803).then(r.bind(r,89211)).then(r=>{r.default.init(e.apiKey,{api_host:e.apiHost||"https://ph.mintlify.com",ui_host:"https://us.posthog.com",capture_pageview:!1,disable_session_recording:!t,loaded:e=>{y.db||e.opt_out_capturing(),this.posthog=e,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.captureEvent(e,t)}),this.eventQueue=[]}})}).catch(e=>{console.error("Failed to load PostHog",e)})}captureEvent(e,t={}){if(this.initialized)return void this.posthog?.capture(e,{...t});this.eventQueue.push({eventName:e,eventProperties:{...t}})}createEventListener(e){return async t=>{this.captureEvent(e,t)}}onRouteChange(e,t){this.captureEvent("$pageview"),this.captureEvent(`$${w.bJ}`)}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[],this.posthog=null}}class I{constructor(e=10,t=5e3){this.queue=[],this.isProcessing=!1,this.batchSize=e,this.flushInterval=t}enqueue(e){this.queue.push({event:e,timestamp:Date.now(),retryCount:0})}shouldFlush(){return this.queue.length>=this.batchSize}getBatch(){return this.queue.splice(0,this.batchSize)}requeueEvents(e){let t=e.map(e=>Object.assign(Object.assign({},e),{retryCount:e.retryCount+1}));this.queue.unshift(...t)}startPeriodicFlush(e){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.queue.length>0&&!this.isProcessing&&(this.isProcessing=!0,e().finally(()=>{this.isProcessing=!1}))},this.flushInterval)}size(){return this.queue.length}}class S{constructor(e){this.storage=e,this.identity=this.loadOrCreateIdentity()}loadOrCreateIdentity(){let e=this.storage.get(S.KEYS.ANONYMOUS_ID),t=this.storage.get(S.KEYS.USER_ID),r=this.storage.get(S.KEYS.SESSION_ID,"session"),s=e;s||(s=this.generateId("anon"),this.storage.set(S.KEYS.ANONYMOUS_ID,s));let n=r;return n||(n=this.generateId("session"),this.storage.set(S.KEYS.SESSION_ID,n,"session")),{anonymousId:s,userId:t||void 0,sessionId:n}}generateId(e){return`${e}_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}identify(e){e&&"string"==typeof e&&(this.identity.userId=e,this.storage.set(S.KEYS.USER_ID,e))}reset(){let e=this.generateId("anon"),t=this.generateId("session");this.identity={anonymousId:e,userId:void 0,sessionId:t},this.storage.set(S.KEYS.ANONYMOUS_ID,e),this.storage.remove(S.KEYS.USER_ID),this.storage.set(S.KEYS.SESSION_ID,t,"session")}getIdentity(){return Object.assign({},this.identity)}getAnonymousId(){return this.identity.anonymousId}getUserId(){return this.identity.userId}getSessionId(){return this.identity.sessionId}}S.KEYS={ANONYMOUS_ID:"mintlify_anonymous_id",USER_ID:"mintlify_user_id",SESSION_ID:"mintlify_session_id"};var E=r(31899);class ${buildEvent(e,t,r,s){let n=Object.assign({},t),a={event_id:(0,E.A)(),subdomain:s,anon_id:r.anonymousId,session_id:r.sessionId,event:e,created_at:new Date().toISOString()};r.userId&&(a.user_id=r.userId);{a.path=window.location.pathname,a.referrer=document.referrer;let e=window.location.search;e&&(n.$current_url_search=e);let t=window.location.hash;t&&(n.$current_url_hash=t),n.$current_url=window.location.href,n.$viewport_height=window.innerHeight.toString(),n.$viewport_width=window.innerWidth.toString()}if("undefined"!=typeof navigator&&(a.user_agent=navigator.userAgent,n.$browser_language=navigator.language,"connection"in navigator)){let e=navigator.connection;e&&(n.$network_connection_type=e.effectiveType)}"undefined"!=typeof screen&&(n.$screen_height=screen.height.toString(),n.$screen_width=screen.width.toString());try{n.$timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return Object.keys(n).length>0&&(a.properties=n),a}buildBatchPayload(e){return JSON.stringify({events:e,timestamp:Date.now()})}}class _{getStorage(e){try{return"session"===e?sessionStorage:localStorage}catch(e){return null}}get(e,t="local"){try{let r=this.getStorage(t);return(null==r?void 0:r.getItem(e))||null}catch(e){return null}}set(e,t,r="local"){try{let s=this.getStorage(r);null==s||s.setItem(e,t)}catch(e){console.warn(`Failed to set item in ${r}Storage`)}}remove(e,t="local"){try{let r=this.getStorage(t);null==r||r.removeItem(e)}catch(e){console.warn(`Failed to remove item from ${t}Storage`)}}}class A{constructor(){this.isUnloading=!1,this.setupPageLifecycleHandlers()}setupPageLifecycleHandlers(){let e=()=>{this.isUnloading=!0};window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(this.isUnloading=!0)})}send(e,t){var r,s,n,a;return r=this,s=void 0,n=void 0,a=function*(){if(this.isUnloading&&"undefined"!=typeof navigator&&"sendBeacon"in navigator&&navigator.sendBeacon(e,t))return new Response("",{status:202});let r=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:t});if(!r.ok){let e=Error(`HTTP ${r.status}`);throw e.status=r.status,e}return r},new(n||(n=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(i,o)}l((a=a.apply(r,s||[])).next())})}}var L=function(e,t,r,s){return new(r||(r=Promise))(function(n,a){function i(e){try{l(s.next(e))}catch(e){a(e)}}function o(e){try{l(s.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,o)}l((s=s.apply(e,t||[])).next())})};class z{constructor(e){this.config=Object.assign({batchSize:10,flushInterval:5e3,maxRetries:3},e),this.transportManager=new A,this.payloadBuilder=new $,this.storageManager=new _,this.identityManager=new S(this.storageManager),this.eventQueue=new I(this.config.batchSize,this.config.flushInterval),this.eventQueue.startPeriodicFlush(()=>this.flushEvents()),this.setupPageLifecycleHandlers()}trackEvent(e){return L(this,arguments,void 0,function*(e,t={}){let r=this.identityManager.getIdentity(),s=Object.entries(t).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),n=this.payloadBuilder.buildEvent(e,s,r,this.config.subdomain);this.eventQueue.enqueue(n),this.eventQueue.shouldFlush()&&(yield this.flushEvents())})}flushEvents(){return L(this,void 0,void 0,function*(){let e=this.eventQueue.getBatch();if(0===e.length)return;let t=e.map(e=>e.event),r=this.payloadBuilder.buildBatchPayload(t);try{yield this.transportManager.send(this.config.apiEndpoint,r)}catch(s){let t=s.status;if(400===t||401===t||403===t||404===t||413===t)return;let r=e.filter(e=>{var t;return e.retryCount<(null!=(t=this.config.maxRetries)?t:3)});r.length>0&&this.eventQueue.requeueEvents(r)}})}setupPageLifecycleHandlers(){let e=()=>{this.forceFlush()};window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.forceFlush()})}forceFlush(){return L(this,void 0,void 0,function*(){yield this.flushEvents()})}identify(e){this.identityManager.identify(e)}reset(){this.identityManager.reset()}getQueueLength(){return this.eventQueue.size()}getSessionId(){return this.identityManager.getSessionId()}getAnonymousId(){return this.identityManager.getAnonymousId()}getUserId(){return this.identityManager.getUserId()}}var P=r(98167);class R extends N{constructor(e,t){super(),this.initialized=!1,this.subdomain=e,this.isAtlas=t,this.mintlifySdk=new z({apiEndpoint:`${P.c.BASE_PATH}/_mintlify/api/v1/e`,subdomain:this.subdomain})}init(){this.initialized=!0}captureEvent(e){return async t=>{this.mintlifySdk.trackEvent(e,t)}}createEventListener(e){return this.initialized?this.captureEvent(e):async function(e){}}onRouteChange(e,t){let r={subdomain:this.subdomain,title:"undefined"!=typeof document?document.title:""};this.mintlifySdk.trackEvent(w.bJ,r),this.isAtlas&&this.mintlifySdk.trackEvent("docs.atlas_content.view",r)}}class F extends N{init(e){}createEventListener(e){return async function(t){window._satellite&&window._satellite.track(e)}}onRouteChange(e,t){window._satellite&&window._satellite.track("page_view")}}class M extends N{init(e){if(!e.apiKey)return;let{apiKey:t}=e;r.e(78416).then(r.bind(r,78416)).then(e=>{this.initialized||(e.init(t),this.track=e.track,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.track(e,t)}),this.eventQueue=[])}).catch(e=>{this.track=()=>{},console.error(e)})}createEventListener(e){return(async function(t){this.track(e,t)}).bind(this)}onRouteChange(e,t){t.shallow||(this.track("page_view",{url:e}),this.track(w.bJ,{url:e}))}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[],this.track=(e,t)=>{"string"==typeof e&&t&&this.eventQueue.push({eventName:e,eventProperties:t})}}}class T extends N{init(e){this.projectId=e.projectId}createEventListener(e){return this.projectId&&"clarity"in window&&"function"==typeof window.clarity?async function(t){try{window.clarity("event",e)}catch(e){console.warn("Failed to track Clarity event:",e)}}:async function(e){}}onRouteChange(e,t){}}class O extends N{init(e){if(!e.siteId)return;let{siteId:t}=e;r.e(39960).then(r.bind(r,39960)).then(e=>{this.initialized||(e.load(t),this.trackPageview=e.trackPageview,this.initialized=!0)}).catch(e=>{console.error(e)})}createEventListener(e){return()=>Promise.resolve()}onRouteChange(e,t){this.trackPageview&&!t.shallow&&this.trackPageview()}constructor(...e){super(...e),this.initialized=!1}}class H extends N{init(e){this.measurementId=e.measurementId}createEventListener(e){return this.measurementId&&"gtag"in window?async function(t){window.gtag("event",e,{})}:async function(e){}}onRouteChange(e){this.measurementId&&"gtag"in window&&window.gtag("config",this.measurementId,{page_path:e})}}class D extends N{init(e){this.appId=e.appId}trackEvent(e,t={}){if(this.appId&&window.heap&&"function"==typeof window.heap.track)try{window.heap.track(e,t)}catch(e){console.warn("Failed to track Heap event:",e)}}createEventListener(e){return async t=>{this.trackEvent(e,t)}}onRouteChange(e,t){this.trackEvent("pageview",{path:e}),this.trackEvent(w.bJ,{path:e})}}class B extends N{init(e){if(!e.writeKey)return;let{writeKey:t,apiHost:s}=e;Promise.all([r.e(5706),r.e(16521),r.e(34012),r.e(61023)]).then(r.bind(r,61023)).then(e=>{if(!this.initialized){let r=e.HtEventsBrowser.load({writeKey:t},{apiHost:s||"us-east-1.hightouch-events.com"});this.track=r.track,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.track(e,t)}),this.eventQueue=[]}}).catch(e=>{this.track=()=>{},console.error(e)})}createEventListener(e){return(async function(t){this.track(e,t)}).bind(this)}onRouteChange(e,t){t.shallow||this.track(w.bJ,{url:e})}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[],this.track=(e,t)=>{e&&t&&"object"==typeof t&&this.eventQueue.push({eventName:e,eventProperties:t})}}}class W extends N{init(e){if(!e.hjid||!e.hjsv)return;let t=parseInt(e.hjid,10),s=parseInt(e.hjsv,10);r.e(47272).then(r.t.bind(r,47272,23)).then(e=>{this.initialized||(this.hotjar=e.hotjar,this.hotjar.initialize(t,s),this.initialized=!0,this.eventQueue.forEach(e=>{this.hotjar&&this.hotjar.event(e)}))}).catch(e=>{console.error(e)})}createEventListener(e){return(async function(t){this.hotjar?this.hotjar.event(e):this.eventQueue.push(e)}).bind(this)}onRouteChange(e,t){}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[]}}class q extends N{init(e){e.appId&&r.e(27701).then(r.t.bind(r,27701,23)).then(t=>{t.default.init(e.appId),this.trackEvent=t.default.track,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.trackEvent?.(e,t)}),this.eventQueue=[]}).catch(e=>{console.error("Failed to load LogRocket",e)})}captureEvent(e,t={}){if(this.trackEvent)return void this.trackEvent(e,t);this.eventQueue.push({eventName:e,eventProperties:{...t}})}createEventListener(e){return async t=>this.captureEvent(e,t)}onRouteChange(e,t){}constructor(...e){super(...e),this.eventQueue=[]}}class Q extends N{init(e){e.projectToken?r.e(55284).then(r.t.bind(r,4874,23)).then(t=>{if(!this.initialized){let r=t.default;r.init(e.projectToken,{secure_cookie:!0}),this.initialized=!0,this.mixpanel=r,this.waitTracking.forEach(e=>{this.mixpanel.track(e.name,e.properties)})}}).catch(e=>{console.error(e)}):this.mixpanel.track=(e,t)=>{}}createEventListener(e){return(async function(t){this.mixpanel.track(e,t)}).bind(this)}onRouteChange(e){this.mixpanel.track("pageview",{path:e}),this.mixpanel.track(w.bJ,{path:e})}constructor(...e){super(...e),this.initialized=!1,this.waitTracking=[],this.mixpanel={track:(e,t)=>{this.waitTracking.push({name:e,properties:t})}}}}class U extends N{init(e){if(!e.id)return;let t=e.id;r.e(98186).then(r.t.bind(r,98186,23)).then(e=>{this.initialized||(this.pirsch=new e.Pirsch({identificationCode:t}),this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.pirsch&&this.pirsch.event(e,void 0,t)}))}).catch(e=>{console.error(e)})}createEventListener(e){return(async function(t){this.pirsch?this.pirsch.event(e,void 0,t):this.eventQueue.push({eventName:e,eventProperties:t})}).bind(this)}onRouteChange(e){this.pirsch&&this.pirsch.hit()}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[]}}class V extends N{init(e){if(!e.key)return;let{key:t}=e;Promise.all([r.e(24430),r.e(16521),r.e(65223)]).then(r.bind(r,65223)).then(e=>{if(!this.initialized){let r=new e.AnalyticsBrowser;r.load({writeKey:t}),this.track=r.track,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.track(e,t)}),this.eventQueue=[]}}).catch(e=>{this.track=()=>{},console.error(e)})}createEventListener(e){return(async function(t){this.track(e,t)}).bind(this)}onRouteChange(e,t){t.shallow||this.track(w.bJ,{url:e})}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[],this.track=(e,t)=>{e&&t&&"object"==typeof t&&this.eventQueue.push({eventName:e,eventProperties:t})}}}class K{constructor(e,t){this.analyticsIntegrations=[];let r=!!e?.adobe?.launchUrl,s=!!e?.clarity?.projectId,n=!!e?.amplitude?.apiKey,a=!!e?.fathom?.siteId,i=!!e?.ga4?.measurementId,o=!!e?.heap?.appId,l=!!e?.hightouch?.writeKey,c=!!(e?.hotjar?.hjid&&e.hotjar.hjsv),d=!!e?.logrocket?.appId,u=!!e?.mixpanel?.projectToken,h=!!e?.pirsch?.id,m=!!e?.posthog?.apiKey,x=!!e?.segment?.key;if(r&&e?.adobe){let t=new F;t.init(e.adobe),this.analyticsIntegrations.push(t)}if(s&&e?.clarity){let t=new T;t.init(e.clarity),this.analyticsIntegrations.push(t)}if(n&&e?.amplitude){let t=new M;t.init(e.amplitude),this.analyticsIntegrations.push(t)}if(a&&e?.fathom){let t=new O;t.init(e.fathom),this.analyticsIntegrations.push(t)}if(i&&e?.ga4){let t=new H;t.init(e.ga4),this.analyticsIntegrations.push(t)}if(o&&e?.heap){let t=new D;t.init(e.heap),this.analyticsIntegrations.push(t)}if(l&&e?.hightouch){let t=new B;t.init(e.hightouch),this.analyticsIntegrations.push(t)}if(c&&e?.hotjar){let t=new W;t.init(e.hotjar),this.analyticsIntegrations.push(t)}if(d&&e?.logrocket){let t=new q;t.init(e.logrocket),this.analyticsIntegrations.push(t)}if(u&&e?.mixpanel){let t=new Q;t.init(e.mixpanel),this.analyticsIntegrations.push(t)}if(h&&e?.pirsch){let t=new U;t.init(e.pirsch),this.analyticsIntegrations.push(t)}if(m&&e?.posthog){let t=new C,r=e.posthog.sessionRecording??!0;t.init(e.posthog,r),this.analyticsIntegrations.push(t)}if(t){let{subdomain:e,isAtlas:r}=t,s=new R(e,r);s.init(),this.analyticsIntegrations.push(s)}if(x&&e?.segment){let t=new V;t.init(e.segment),this.analyticsIntegrations.push(t)}}createEventListener(e){let t=this.analyticsIntegrations.map(t=>t.createEventListener(e));return async function(e){t.forEach(t=>t(e))}}onRouteChange(e,t){this.analyticsIntegrations.forEach(r=>r.onRouteChange(e,t))}}var Y=r(91382);function G({frontchat:e}){return e?.snippetId?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.default,{strategy:"beforeInteractive",src:"https://chat-assets.frontapp.com/v1/chat.bundle.js"}),(0,s.jsx)(i.default,{id:"frontchat",strategy:"afterInteractive",children:`window.FrontChat('init', {chatId: '${e.snippetId}', useDefaultLauncher: true});`})]}):null}let J=()=>{let{docsConfig:e}=(0,n.useContext)(v.H6);return y.db?(0,s.jsx)(G,{frontchat:e?.integrations?.frontchat}):null};var X=r(23752);function Z({children:e,subdomain:t,isAtlas:r}){let{docsConfig:i}=(0,n.useContext)(v.H6),o=i?.integrations?.telemetry?.enabled===!1,l=(e=>{let t=void 0==e||e.integrations?.cookies!==void 0,r=e?.integrations?.cookies?.key,s=e?.integrations?.cookies?.value,[a,i]=(0,n.useState)(!t);return(0,n.useEffect)(()=>{t&&void 0!==r&&void 0!==s&&((window.localStorage.getItem(r)||"")===s?i(!0):i(!1))},[t,r,s]),a})(i),c=function(e,t,r,s,a){let i=(0,k.usePathname)(),o=(0,Y.G)(),[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)(),h=(0,n.useRef)(!0),m=(0,n.useRef)(o);return m.current=o,(0,n.useEffect)(()=>{let n;!r&&s&&y.db&&!l&&(t&&(n={subdomain:t,isAtlas:a??!1}),u(new K(e,n)),c(!0))},[l,e,t,r,s,a]),(0,n.useEffect)(()=>{d&&(d.onRouteChange(m.current,{initialLoad:h.current}),h.current=!1)},[i,d]),d}(i?.integrations??{},t,o,l,r);return(0,s.jsx)(a.y,{value:{analyticsMediator:c},children:(0,s.jsxs)(X.i,{cookiesEnabled:l,children:[(0,s.jsx)(J,{}),(0,s.jsx)(j,{}),e]})})}},8705:(e,t,r)=>{"use strict";r.d(t,{WidgetTrigger:()=>I});var s=r(54568),n=r(93407),a=r(7620),i=r(62987),o=r(35590),l=r(81325),c=r(12784),d=r(12598),u=r(19664),h=r.n(u),m=r(91382),x=r(67793),g=r(84342),p=r(12494),f=r(10614),y=r(7877);let v=({status:e,className:t})=>{let{Icon:r,label:n}={added:{Icon:p.A,label:"Added file"},removed:{Icon:f.A,label:"Removed file"},modified:{Icon:y.A,label:"Modified file"}}[e];return(0,s.jsx)(r,{className:(0,l.cn)("size-3.5 text-inherit",t),"aria-label":n})},b=({status:e})=>{let t={added:{label:"Added",className:"bg-green-50 dark:bg-green-900/20 text-green-800 dark:text-green-500"},removed:{label:"Removed",className:"bg-red-50 dark:bg-red-900/20 text-red-800 dark:text-red-500"},modified:{label:"Modified",className:"bg-yellow-50 dark:bg-yellow-900/20 text-yellow-800 dark:text-yellow-500"}}[e];return(0,s.jsxs)("div",{className:(0,l.cn)("inline-flex items-center gap-1 px-1.5 py-0.5 rounded-md text-xs font-medium",t.className),role:"status","aria-label":`File status: ${t.label}`,children:[(0,s.jsx)(v,{status:e,className:"shrink-0 size-2.5"}),(0,s.jsx)("span",{children:t.label})]})},j=({file:e})=>{let{editorBaseUrl:t,setIsMenuOpen:r}=(0,a.useContext)(c.e),n=(0,m.G)(),o=(0,a.useMemo)(()=>{if(t)return`${t}/${(e.rawPath??"").split("/").map(e=>encodeURIComponent(e)).join("/")}`},[t,e.rawPath]),d=(0,x.N)(n,e.path),u="removed"===e.status,p=(0,l.cn)("group/change-page-item p-2 rounded-xl flex items-center gap-2 w-full disabled:cursor-not-allowed",d&&"bg-[#F9F9F9] dark:bg-[#191A1B]",!u&&"hover:bg-[#F9F9F9] dark:hover:bg-[#191A1B]"),f=(0,s.jsxs)("div",{className:"flex items-center gap-2 min-w-0 w-full",children:[(0,s.jsx)("div",{className:"w-[5rem] flex justify-start",children:(0,s.jsx)(b,{status:e.status})}),(0,s.jsx)("p",{className:"text-sm text-left text-gray-900 dark:text-gray-100 truncate flex-1",title:e.path,children:e.path}),!u&&t&&(0,s.jsx)(i.Bc,{children:(0,s.jsxs)(i.m_,{children:[(0,s.jsx)(i.k$,{asChild:!0,children:(0,s.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"opacity-0 group-hover/change-page-item:opacity-100 ml-auto shrink-0 p-1 rounded hover:bg-[#F0F0F0] dark:hover:bg-[#252627] text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300","aria-label":`Open ${e.path} in editor`,children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"size-[18px]","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M5.75 6.75H7.75",stroke:"currentColor",width:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M5.75 9.75H10.25",stroke:"currentColor",width:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M15.16 6.24999H11.75C11.198 6.24999 10.75 5.80199 10.75 5.24999V1.85199",stroke:"currentColor",width:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M15.25 8.584V6.664C15.25 6.399 15.145 6.144 14.957 5.957L11.043 2.043C10.855 1.855 10.601 1.75 10.336 1.75H4.75C3.645 1.75 2.75 2.646 2.75 3.75V14.25C2.75 15.354 3.645 16.25 4.75 16.25H8.385",stroke:"currentColor",width:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M10.75 17.25C10.75 17.25 11.432 11.259 17.25 10.75C15.82 12.44 17.25 15.75 13.5 15.75",stroke:"currentColor",width:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),(0,s.jsxs)(i.ZI,{className:"text-sm",side:"left",children:[(0,s.jsx)(i.PR,{}),(0,s.jsx)("p",{children:"Open in editor"})]})]})})]});return u?(0,s.jsx)("button",{className:p,disabled:!0,"aria-disabled":"true",children:f}):(0,s.jsx)(h(),{href:(0,g.M)(e.path),prefetch:!0,className:p,onClick:()=>r(!1),"aria-current":d?"page":void 0,children:f})},k=()=>{let{changedFiles:e,searchQuery:t}=(0,a.useContext)(c.e),r=(0,a.useMemo)(()=>((e,t)=>{if(!t.trim())return e;let r=t.trim().split(/[\\/]/).filter(e=>""!==e).join("/").toLowerCase();return e.filter(e=>{let t=e.pageMetadata?.title?.toLowerCase().includes(r),s=e.path.toLowerCase().includes(r);return t||s})})(e,t),[e,t]);return(0,s.jsx)("div",{className:"flex flex-col overflow-y-auto flex-1 min-h-0 gap-px",role:"list","aria-label":"Changed files",children:r.length>0?r.map(e=>(0,s.jsx)("div",{role:"listitem",children:(0,s.jsx)(j,{file:e})},e.path)):(0,s.jsx)("div",{className:"flex flex-col items-center justify-center py-8 px-4",role:"status",children:(0,s.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:t.trim()?"No files match your search":"No file changes"})})})},w=()=>{let{searchQuery:e,setSearchQuery:t,setIsMenuOpen:r}=(0,a.useContext)(c.e),n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let s=s=>{"Escape"===s.key&&n.current===document.activeElement&&(e?(s.preventDefault(),s.stopPropagation(),t("")):r(!1))};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,t,r]),(0,s.jsxs)("div",{className:"relative flex items-center w-full",children:[(0,s.jsx)("label",{htmlFor:"preview-widget-search",className:"sr-only",children:"Search files"}),(0,s.jsx)("input",{id:"preview-widget-search",ref:n,type:"text",value:e,onChange:e=>t(e.target.value),placeholder:"What are you looking for?","aria-label":"Search files",className:"flex-1 text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400 dark:placeholder:text-gray-500 bg-transparent focus-within:outline-0",autoFocus:!0,autoComplete:"off"})]})},N=()=>{let{changedFiles:e,isSearchOpen:t,setIsSearchOpen:r,setSearchQuery:n}=(0,a.useContext)(c.e);return(0,s.jsx)("div",{className:"flex flex-col min-h-0 flex-1",children:(0,s.jsx)("div",{className:"flex flex-col flex-1 min-h-0 transition-all duration-300 ease-out",children:(0,s.jsx)("div",{id:"files-panel",role:"tabpanel","aria-labelledby":"files-tab",className:"flex flex-col flex-1 min-h-0",children:(0,s.jsxs)("div",{className:"flex flex-col overflow-y-auto flex-1 min-h-0 p-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2 pt-1.5 pb-3 shrink-0 text-sm text-gray-400 dark:text-gray-500",children:[t?(0,s.jsx)(w,{}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:"text-sm",children:[e.length>0&&(0,s.jsx)("span",{"aria-label":`${e.length} files changed`,children:e.length})," ",e.length>1?"files":"file"," changed"]})}),(0,s.jsx)("button",{onClick:()=>{t&&n(""),r(!t)},"aria-label":"Toggle search","aria-expanded":t,children:t?(0,s.jsx)(d.A,{className:"size-4"}):(0,s.jsx)(C,{className:"size-4"})})]}),(0,s.jsx)(k,{})]})})})})},C=({className:e})=>(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M13.5552 13.5552L10.0308 10.0308",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M6.88878 11.3332C9.34338 11.3332 11.3332 9.34338 11.3332 6.88878C11.3332 4.43418 9.34338 2.44434 6.88878 2.44434C4.43418 2.44434 2.44434 4.43418 2.44434 6.88878C2.44434 9.34338 4.43418 11.3332 6.88878 11.3332Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),I=()=>{let{isMenuOpen:e,setIsMenuOpen:t,searchQuery:r}=(0,a.useContext)(c.e),[d,u]=(0,a.useState)(!1);return(0,s.jsx)(i.Bc,{children:(0,s.jsxs)(o.AM,{open:e,onOpenChange:t,children:[(0,s.jsxs)(i.m_,{delayDuration:150,open:d&&!e,children:[(0,s.jsx)(i.k$,{asChild:!0,children:(0,s.jsx)(o.Wv,{asChild:!0,children:(0,s.jsx)("button",{onClick:()=>t(!e),onPointerEnter:()=>u(!0),onPointerLeave:()=>u(!1),"aria-haspopup":"menu","aria-expanded":e,"aria-label":"Preview Widget",className:(0,l.cn)("overflow-hidden z-[999] flex touch-none fixed bottom-7 right-7 w-fit items-center justify-center rounded-full p-2 border border-gray-950/20 dark:border-white/20 size-12","bg-background-dark dark:bg-background-light dark:brightness-[1.5]","hover:bg-neutral-900 dark:hover:bg-neutral-100 aria-expanded:bg-neutral-900 dark:aria-expanded:bg-neutral-100","cursor-pointer active:scale-[93%] transition-height transition-[transform,background-color] duration-150 ease-in-out outline-offset-4","animate-[slide-up_0.8s_ease-out]"),children:(0,s.jsx)(n.A,{className:"size-5 text-white dark:text-gray-900"})})})}),(0,s.jsxs)(i.ZI,{side:"left",showArrow:!1,className:"bg-background-dark dark:bg-background-light",children:[(0,s.jsx)(i.PR,{className:"[&_svg]:text-background-dark dark:[&_svg]:text-background-light",arrowBgClassName:"bg-background-dark dark:bg-background-light"}),(0,s.jsx)("p",{className:"text-xs text-white dark:text-gray-900",children:"View changed files"})]})]}),(0,s.jsx)(o.hl,{collisionPadding:25,onEscapeKeyDown:e=>{r&&e.preventDefault()},className:"outline-0 sm:w-[380px] p-0 min-h-[70px] max-h-[80vh] rounded-3xl bg-background-light dark:bg-background-dark border border-gray-50 dark:border-white/[0.08] flex flex-col backdrop-blur-xl shadow-2xl shadow-gray-900/5",side:"top",align:"end",role:"dialog","aria-label":"Preview Widget Menu",style:{boxShadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.1)"},children:(0,s.jsx)(N,{})})]})})}},12784:(e,t,r)=>{"use strict";r.d(t,{PreviewWidgetProvider:()=>i,e:()=>a});var s=r(54568),n=r(7620);let a=(0,n.createContext)({changedFiles:[],isMenuOpen:!1,setIsMenuOpen:e=>{},searchQuery:"",setSearchQuery:e=>{},isSearchOpen:!1,setIsSearchOpen:e=>{},editorBaseUrl:void 0}),i=({changedFiles:e,editorBaseUrl:t,children:r})=>{let[i,o]=(0,n.useState)(!1),[l,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(!1);return(0,s.jsx)(a.Provider,{value:{changedFiles:e,isMenuOpen:i,setIsMenuOpen:o,searchQuery:l,setSearchQuery:c,isSearchOpen:d,setIsSearchOpen:u,editorBaseUrl:t},children:r})}},22904:(e,t,r)=>{"use strict";r.d(t,{Gq:()=>s,SO:()=>n});let s=e=>{try{return window.localStorage.getItem(e)}catch{return null}},n=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}}},24223:(e,t,r)=>{"use strict";r.d(t,{RoundedVariables:()=>o});var s=r(54568),n=r(7620),a=r(17798),i=r(54871);function o({theme:e}){let{isLivePreview:t,getDocsConfigOverrides:r}=(0,n.useContext)(i.K),{docsConfig:o}=(0,n.useContext)(a.H6),l=r(),c=l?.theme,d=e;if(o?.theme!==e&&(d=o?.theme),t&&c&&(d=c),"willow"===d){let e=`:root {
      --rounded-sm: 0px;
      --rounded: 0px;
      --rounded-md: 0px;
      --rounded-lg: 0px;
      --rounded-xl: 0px;
      --rounded-xt: 0px;
      --rounded-2xl: 0px;
      --rounded-search: 0px;
      --rounded-3xl: 0px;
      --rounded-full: 0px;
  }`;return(0,s.jsx)("style",{children:e})}if("linden"!==d)return null;{let e=`:root {
      --rounded-sm: 4px;
      --rounded: 4px;
      --rounded-md: 4px;
      --rounded-lg: 4px;
      --rounded-xl: 4px;
      --rounded-xt: 4px;
      --rounded-2xl: 4px;
      --rounded-search: 4px;
      --rounded-3xl: 4px;
      --rounded-full: 4px;
  }`;return(0,s.jsx)("style",{children:e})}}},28964:(e,t,r)=>{"use strict";r.d(t,{ThemeLayout:()=>eg});var s=r(54568),n=r(7620),a=r(91382),i=r(84514),o=r(35878);function l(e){let t=(0,i.C)(function(e){if(e)return e.split("#")[0]||void 0}(e)??""),s=document.querySelectorAll(`[id="${t}"]`);if(1===s.length&&s[0]instanceof HTMLElement){let e=s[0];r.e(88206).then(r.bind(r,88206)).then(t=>{let{default:r}=t;r(e,{scrollMode:"if-needed",boundary:e=>e.id!==o.V.SidebarContent&&e.id!==o.V.Sidebar})}).catch(()=>"Error auto scroll the sidebar")}}function c(){let e=(0,a.G)(),t=(0,n.useRef)(void 0);(0,n.useEffect)(()=>l(e),[]);let r=(0,n.useCallback)(()=>{void 0!==t.current&&clearTimeout(t.current),t.current=window.setTimeout(()=>{l(e)},10)},[e]);return(0,n.useEffect)(()=>{r()},[r]),(0,s.jsx)(s.Fragment,{})}var d=r(54871),u=r(28603),h=r(84246),m=r(67908),x=r(12192),g=r(88901),p=r(17798);let f=(0,n.createContext)({pageMetadata:{}});function y({children:e}){let t=function(){let{pageMetadata:e}=(0,n.useContext)(p.NQ);return(0,n.useMemo)(()=>({pageMetadata:e}),[e])}();return(0,s.jsx)(f.Provider,{value:t,children:e})}f.displayName="PageMetadataContext";var v=r(81325),b=r(90677);function j({children:e}){let{banner:t}=(0,n.useContext)(x.y),{divisions:r}=(0,n.useContext)(g._),a=r.tabs.length>0;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(y,{children:[(0,s.jsxs)("div",{className:(0,v.cn)("scroll-mt-[var(--scroll-mt)]","peer-[.is-custom]:max-w-none peer-[.is-center]:max-w-3xl peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl","peer-[.is-not-custom]:px-4 peer-[.is-not-custom]:mx-auto peer-[.is-not-custom]:lg:px-8 peer-[.is-wide]:[&>div:last-child]:max-w-6xl",h.N.firstChildHiddenIfCustom,h.N.firstChildHiddenIfCenter),children:[(0,s.jsx)("div",{className:(0,v.cn)(m.f.SecondaryNav,"hidden lg:block fixed bottom-0 right-auto w-[18rem]"),id:o.V.Sidebar,style:{top:`${2.5*!!t+4+3*!!a}rem`},children:(0,s.jsx)("div",{className:"absolute inset-0 z-10 stable-scrollbar-gutter overflow-auto pr-8 pb-10",id:o.V.SidebarContent,children:(0,s.jsx)(b.f,{})})}),(0,s.jsx)("div",{id:o.V.ContentContainer,children:e})]}),(0,s.jsx)(u.S,{className:h.N.hiddenIfCustom})]})})}let k=({children:e,topbar:t})=>(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)(j,{children:e})]}),w=10,N=({children:e,threshold:t=w,...r})=>{let a=(0,n.useRef)(null),[i,o]=(0,n.useState)({top:!1});(0,n.useEffect)(()=>{let e=a.current;if(e)return r(),e.addEventListener("scroll",r,{passive:!0}),()=>e.removeEventListener("scroll",r);function r(){if(!e)return;let{scrollTop:r}=e;o({top:r>t})}},[t]);let l=i.top?"linear-gradient(to bottom, transparent, black 32px)":void 0;return(0,s.jsx)("div",{ref:a,...r,style:{...r.style,maskImage:l,WebkitMaskImage:l},children:e})};var C=r(33052),I=r(60361),S=r(96119),E=r(23416),$=r(21749),_=r(21254);function A({className:e}){let{docsConfig:t}=(0,n.useContext)(p.H6),{banner:r}=(0,n.useContext)(x.y),{divisions:a}=(0,n.useContext)(g._),i=a.languages,l=!!r,c=()=>2.5*!!l+3.5;return(0,s.jsxs)("div",{id:o.V.SidebarContent,suppressHydrationWarning:!0,className:(0,v.cn)("hidden fixed lg:flex flex-col left-0 bottom-0 right-auto transition-transform duration-100 w-[16.5rem] pl-2",e),style:{top:`${c()}rem`,height:`calc(100vh - ${c()}rem)`},children:[(0,s.jsx)("div",{className:"flex-1 p-2 relative",children:(0,s.jsxs)("div",{className:"text-sm flex flex-col px-2",children:[(0,s.jsx)(I.DesktopSearchEntry,{}),(0,s.jsxs)(N,{className:"overflow-y-auto stable-scrollbar-gutter absolute inset-x-0 top-11 bottom-0 px-2 max-h-full py-6",id:o.V.NavigationItems,children:[(0,s.jsx)("div",{className:"px-2",children:(0,s.jsx)($.Xt,{})}),(0,s.jsx)(L,{}),(0,s.jsx)(S.r,{nav:a.groupsOrPages,...(0,S.f)({theme:t?.theme})})]})]})}),(0,s.jsxs)("div",{className:(0,v.cn)(C.x.AlmondNavBottomSection,"w-full px-4",t?.appearance?.strict&&!i.length&&"hidden"),children:[(0,s.jsx)("div",{className:(0,v.cn)(C.x.AlmondNavBottomSectionDivider,"h-px bg-gray-200/70 dark:bg-gray-800/70 w-full")}),(0,s.jsxs)("div",{className:"flex items-center gap-3 py-3",children:[i.length>0&&(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)($.K2,{triggerClassName:"border-none font-medium"})}),!t?.appearance?.strict&&(0,s.jsx)(E.U,{})]})]})]})}function L(){return(0,s.jsx)(_.d,{className:C.x.Anchors})}var z=r(97652);function P({children:e}){let{banner:t}=(0,n.useContext)(x.y);return(0,s.jsx)("div",{suppressHydrationWarning:!0,className:(0,v.cn)("scroll-mt-[var(--scroll-mt)]",C.x.AlmondLayout,"top-[7rem] lg:top-[3.5rem]",!!t&&"lg:top-[6rem] top-[9.5rem]","peer-[.is-not-custom]:fixed peer-[.is-not-custom]:pb-2 peer-[.is-not-custom]:px-2 peer-[.is-not-custom]:pt-0 peer-[.is-custom]:absolute",h.N.firstChildHiddenIfCustom),style:{width:`calc(100% - var(${z.Wv}, 0px))`},children:e})}function R({children:e,topbar:t}){return(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsxs)(P,{children:[(0,s.jsx)(A,{}),e]})]})}function F({className:e}){let{banner:t}=(0,n.useContext)(x.y),{divisions:r}=(0,n.useContext)(g._),{docsConfig:a}=(0,n.useContext)(p.H6),i=r.tabs.length>0,l=!!t,c=()=>2.5*!!l+2.5*!!i+3.5;return(0,s.jsx)("div",{id:o.V.SidebarContent,suppressHydrationWarning:!0,className:(0,v.cn)("hidden sticky shrink-0 w-[18rem] lg:flex flex-col left-0 top-[7rem] bottom-0 right-auto border-r border-gray-100 dark:border-white/10 transition-transform duration-100",e),style:{top:`${c()}rem`,height:`calc(100vh - ${c()}rem)`},children:(0,s.jsx)(N,{className:"flex-1 pr-5 pt-5 pb-4 overflow-y-auto stable-scrollbar-gutter",id:o.V.NavigationItems,children:(0,s.jsxs)("div",{className:"text-sm relative",children:[(0,s.jsx)("div",{className:"pl-2",children:(0,s.jsx)($.Xt,{})}),(0,s.jsx)(M,{}),(0,s.jsx)(S.r,{nav:r.groupsOrPages,...(0,S.f)({theme:a?.theme})})]})})})}function M(){return(0,s.jsx)(_.d,{})}function T({children:e,topbar:t}){return(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsxs)("div",{id:o.V.BodyContent,className:(0,v.cn)("scroll-mt-[var(--scroll-mt)]","peer-[.is-custom]:max-w-none peer-[.is-not-custom]:max-w-8xl peer-[.is-not-custom]:lg:flex peer-[.is-not-custom]:mx-auto peer-[.is-not-custom]:px-0 peer-[.is-not-custom]:lg:px-5",h.N.firstChildHiddenIfCustom),children:[(0,s.jsx)(F,{}),e]})]})}function O(){let{banner:e}=(0,n.useContext)(x.y),t=!!e;return(0,n.useEffect)(()=>{t&&window.document.documentElement.classList.add("lg:[--scroll-mt:9.5rem]")},[t]),null}var H=r(2811),D=r(74092),B=r(93372),W=r(79972);function q(){let{docsConfig:e}=(0,n.useContext)(p.H6),{banner:t}=(0,n.useContext)(x.y),{divisions:r,hasAdvancedTabs:a}=(0,n.useContext)(g._),[i,l]=(0,n.useState)(!0),c=r.tabs.length>0,d=!!t,u=()=>2.5*!!d+3*!!c+4,h=r.dropdowns.length>0&&!a&&i;return(0,n.useEffect)(()=>{!(r.dropdowns.length>0)||a||i||l(!0)},[r.dropdowns.length,a,i]),(0,s.jsxs)("div",{id:o.V.SidebarContent,suppressHydrationWarning:!0,className:(0,v.cn)("hidden sticky lg:flex flex-col left-0 top-[7rem] bottom-0 right-auto border-r border-gray-200/70 dark:border-white/[0.07] transition-transform duration-100",i?"w-[19rem]":"w-[4rem]"),style:{top:`${u()}rem`,height:`calc(100vh - ${u()}rem)`},children:[(0,s.jsx)(N,{className:"flex-1 px-7 py-6 overflow-y-auto stable-scrollbar-gutter",id:o.V.NavigationItems,children:(0,s.jsxs)("div",{className:(0,v.cn)("text-sm relative",!i&&"hidden"),children:[(0,s.jsx)($.Xt,{}),(0,s.jsx)(Q,{}),(0,s.jsx)(S.r,{nav:r.groupsOrPages,...(0,S.f)({theme:e?.theme})})]})}),(0,s.jsxs)("div",{className:(0,v.cn)("w-full flex items-center px-7 py-4 border-t border-gray-200/70 dark:border-white/[0.07]",(!i||e?.appearance?.strict===!0)&&"hidden"),children:[(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)($.K2,{triggerClassName:"border-none px-0 font-medium"})}),(0,s.jsx)(E.U,{})]}),(0,s.jsxs)("button",{className:(0,v.cn)("absolute top-5 right-5 p-1.5 rounded-md hover:bg-neutral-950/5 dark:hover:bg-white/5 cursor-pointer",h&&"hidden"),onClick:()=>l(!i),children:[(0,s.jsx)("span",{className:"sr-only",children:i?"close":"open"}),i?(0,s.jsx)(W.Ay,{icon:"arrow-left-from-line",className:"h-3.5 w-3.5 bg-gray-700 dark:bg-gray-300"}):(0,s.jsx)(W.Ay,{icon:"arrow-right-to-line",className:"h-3.5 w-3.5 bg-gray-700 dark:bg-gray-300"})]})]})}function Q(){return(0,s.jsx)(_.d,{})}function U({mobile:e=!1}){let t=(0,a.G)(),{divisions:r}=(0,n.useContext)(g._),{docsConfig:i}=(0,n.useContext)(p.H6),l=(0,n.useRef)(null),c=(0,n.useRef)(null),d=(0,n.useRef)(null),u=r.groupsOrPages.reduce((e,t)=>(0,H.y)(t)?e+1:e+t.pages.length,0);return(0,D.E)(()=>{function e(){c.current=l.current}if(l.current){if(l.current===c.current)return void e();e();let t=d.current?(0,B.L)(d.current):document.body,r=t.getBoundingClientRect(),s=l.current.getBoundingClientRect(),n=l.current.offsetTop,a=n-r.height+s.height;(t.scrollTop>n||t.scrollTop<a)&&(t.scrollTop=n-r.height/2+s.height/2)}},[t]),(0,s.jsxs)("div",{ref:d,className:"relative lg:text-sm lg:leading-6",children:[!e&&(0,s.jsx)("div",{className:(0,v.cn)("sticky top-0 h-8 pointer-events-none",i?.background?.image==null&&i?.background?.decoration==null&&"z-10 bg-gradient-to-b from-background-light dark:from-background-dark")}),(0,s.jsxs)("div",{id:o.V.NavigationItems,children:[(0,s.jsx)($.Xt,{triggerClassName:"rounded-lg"}),r.tabs.length>0&&e&&(0,s.jsx)($.TJ,{}),r.anchors.length>0&&(0,s.jsx)(Q,{}),u>0&&(0,s.jsx)(S.r,{nav:r.groupsOrPages,...(0,S.f)({theme:i?.theme})})]})]})}function V({children:e}){let{banner:t}=(0,n.useContext)(x.y);return(0,s.jsx)("div",{suppressHydrationWarning:!0,className:(0,v.cn)(m.f.PrimaryNav,"hidden lg:block fixed bottom-0 right-auto w-[18rem]"),id:o.V.Sidebar,style:{top:`${2.5*!!t+4}rem`},children:e})}function K({children:e}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O,{}),(0,s.jsxs)("div",{className:(0,v.cn)("scroll-mt-[var(--scroll-mt)]","peer-[.is-custom]:max-w-none peer-[.is-center]:max-w-3xl peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl","peer-[.is-not-custom]:px-4 peer-[.is-not-custom]:mx-auto peer-[.is-not-custom]:lg:px-8 peer-[.is-wide]:[&>div:last-child]:max-w-6xl",h.N.firstChildHiddenIfCustom,h.N.firstChildHiddenIfCenter),children:[(0,s.jsx)(V,{children:(0,s.jsx)("div",{className:"absolute inset-0 z-10 stable-scrollbar-gutter overflow-auto pr-8 pb-10",id:o.V.SidebarContent,children:(0,s.jsx)(U,{})})}),(0,s.jsx)("div",{id:o.V.ContentContainer,children:e})]}),(0,s.jsx)(u.S,{className:h.N.hiddenIfCustom})]})}function Y({topbar:e,children:t}){return(0,s.jsxs)(s.Fragment,{children:[e,(0,s.jsx)(K,{children:t})]})}function G({className:e}){let{divisions:t}=(0,n.useContext)(g._),{docsConfig:r}=(0,n.useContext)(p.H6);return(0,s.jsx)("div",{id:o.V.SidebarContent,suppressHydrationWarning:!0,className:(0,v.cn)("hidden fixed w-56 lg:flex flex-col left-0 bottom-0 right-auto overflow-hidden transition-transform duration-100",e),style:{top:"calc(3rem + var(--banner-height, 0px))",height:"calc(100vh - 3rem - var(--banner-height, 0px))"},children:(0,s.jsx)(N,{className:"flex-1 pl-5 pr-5 pt-5 pb-4 overflow-y-auto stable-scrollbar-gutter",id:o.V.NavigationItems,children:(0,s.jsxs)("div",{className:"text-sm relative min-w-0 overflow-hidden",children:[(0,s.jsx)("div",{className:"pl-2",children:(0,s.jsx)($.Xt,{})}),(0,s.jsx)(J,{}),(0,s.jsx)(S.r,{nav:t.groupsOrPages,...(0,S.f)({theme:r?.theme})})]})})})}function J(){return(0,s.jsx)(_.d,{})}function X({children:e,topbar:t}){return(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)(G,{className:h.N.hiddenIfCustom}),(0,s.jsx)("div",{id:o.V.BodyContent,className:(0,v.cn)("peer-[.is-custom]:max-w-none peer-[.is-not-custom]:lg:pl-56",h.N.firstChildHiddenIfCustom),children:e})]})}var Z=r(34920),ee=r(54001),et=r(7769),er=r(1710),es=r(91392);function en(){return(0,s.jsx)(_.d,{className:"mt-8"})}function ea(){let{divisions:e}=(0,n.useContext)(g._),{docsConfig:t}=(0,n.useContext)(p.H6),{banner:r}=(0,n.useContext)(x.y),a=(0,et.L)(),{userAuthLoginButton:i,authLoginButton:l,authLogoutButton:c,userAuthLogoutButton:d}=(0,n.useContext)(ee.h);return(0,s.jsxs)("div",{className:(0,v.cn)("hidden lg:flex fixed flex-col left-0 top-0 bottom-0 w-[19rem] border-r border-gray-200/70 dark:border-white/[0.07]",!!r&&"top-10"),id:o.V.Sidebar,children:[(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto stable-scrollbar-gutter px-7 py-6",id:o.V.SidebarContent,children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(er.l,{logoClassName:"px-1 h-6 max-w-48"}),(0,s.jsx)(E.U,{})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 mt-6",children:[(0,s.jsx)($.m4,{className:"w-full justify-between bg-gray-600/5 dark:bg-gray-200/5 max-lg:hidden"}),(0,s.jsx)(I.DesktopSearchEntry,{}),(0,s.jsx)($.Xt,{})]}),(0,s.jsxs)("div",{className:"-mx-3 text-sm",id:o.V.NavigationItems,children:[(0,s.jsx)(en,{}),(0,s.jsx)(S.r,{nav:e.groupsOrPages,...(0,S.f)({theme:t?.theme})})]})]}),(0,s.jsxs)("ul",{className:"px-4 py-3 w-[calc(19rem-1px)] left-0 right-0 bottom-0 bg-background-light dark:bg-background-dark border-t border-gray-200/70 dark:border-white/[0.07] text-sm",children:[a?.links?.map(e=>{let{type:t}=e;return"github"===t?(0,s.jsx)($.sR,{className:"px-2",href:e.href,label:e.label},e.href):"discord"===t?(0,s.jsx)($.xR,{className:"px-2",href:e.href,label:e.label},e.href):(0,s.jsx)(es.j,{entry:{href:e.href,title:e.label??"",icon:e.icon},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,s.jsx)(Z.A,{className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400"})},e.href)}),a?.primary?.type==="button"&&(0,s.jsx)(es.j,{entry:{href:a.primary.href,title:a.primary.label},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,s.jsx)(Z.A,{className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400"})}),a?.primary?.type==="github"&&(0,s.jsx)($.sR,{className:"hidden lg:flex px-2"}),a?.primary?.type==="discord"&&(0,s.jsx)($.xR,{className:"hidden lg:flex px-2"}),i&&(0,s.jsx)("li",{children:i}),d&&(0,s.jsx)("li",{children:d}),l&&(0,s.jsx)("li",{children:l}),c&&(0,s.jsx)("li",{children:c}),(0,s.jsx)("li",{children:(0,s.jsx)($.Xh,{triggerClassName:"mt-1 rounded-lg py-1.5 justify-between w-full border-gray-200/70 dark:border-white/10"})})]})]})}function ei({children:e,topbar:t}){return(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsxs)("div",{className:"flex scroll-mt-[var(--scroll-mt)]",children:[(0,s.jsx)(ea,{}),e]}),(0,s.jsx)(u.S,{className:(0,v.cn)("lg:ml-[19rem]",h.N.hiddenIfCustom),disableSidebarOffset:!0})]})}function eo({children:e,topbar:t}){return(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsxs)("div",{className:(0,v.cn)("scroll-mt-[var(--scroll-mt)] peer-[.is-not-custom]:lg:flex",h.N.firstChildHiddenIfCustom),children:[(0,s.jsx)(q,{}),e]}),(0,s.jsx)(u.S,{className:(0,v.cn)("w-full bg-gray-950/[0.03] dark:bg-white/[0.03]",h.N.hiddenIfCustom)})]})}function el({className:e}){let{banner:t}=(0,n.useContext)(x.y),{divisions:r}=(0,n.useContext)(g._),{docsConfig:a}=(0,n.useContext)(p.H6),i=a?.theme,l=2.5*!!t+3+3*!!(r.tabs.length>0);return(0,s.jsx)("div",{id:o.V.SidebarContent,suppressHydrationWarning:!0,className:(0,v.cn)("hidden fixed w-72 lg:flex flex-col left-0 right-auto overflow-hidden border-r border-gray-100 dark:border-white/10 transition-transform duration-100",e),style:{top:`${l}rem`,height:`calc(100vh - ${l}rem)`},children:(0,s.jsx)(N,{className:"flex-1 px-2 pt-6 pb-4 overflow-y-auto stable-scrollbar-gutter",id:o.V.NavigationItems,children:(0,s.jsxs)("div",{className:"text-sm relative min-w-0 overflow-hidden",children:[(0,s.jsx)("div",{className:"px-2.5",children:(0,s.jsx)($.Xt,{})}),(0,s.jsx)(ec,{}),(0,s.jsx)(S.r,{nav:r.groupsOrPages,...(0,S.f)({theme:i})})]})})})}function ec(){return(0,s.jsx)(_.d,{})}function ed({children:e,topbar:t}){return(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)(el,{className:h.N.hiddenIfCustom}),(0,s.jsx)("div",{id:o.V.BodyContent,className:(0,v.cn)("peer-[.is-custom]:max-w-none peer-[.is-not-custom]:lg:pl-72",h.N.firstChildHiddenIfCustom),children:e})]})}var eu=r(46969),eh=r(19208);let em=()=>{let{divisions:e}=(0,n.useContext)(g._),{docsConfig:t}=(0,n.useContext)(p.H6),{banner:r}=(0,n.useContext)(x.y);return(0,s.jsxs)("div",{className:(0,v.cn)("hidden lg:flex fixed z-20 flex-col left-0 top-0 bottom-0 w-72 pr-4 py-2 pt-16",!!r&&"pt-24"),id:o.V.Sidebar,children:[(0,s.jsx)("div",{className:"flex-1 overflow-y-auto stable-scrollbar-gutter",id:o.V.SidebarContent,children:(0,s.jsxs)("div",{id:o.V.NavigationItems,children:[(0,s.jsx)(_.d,{className:eh.qf}),(0,s.jsx)("div",{className:"pl-4",children:(0,s.jsx)($.Xt,{triggerClassName:"rounded-none",iconClassName:eh.Ig,itemClassName:eh.qf})}),(0,s.jsx)(S.r,{nav:e.groupsOrPages,...(0,S.f)({theme:t?.theme})})]})}),(0,s.jsx)(eu.E,{})]})},ex=({children:e,topbar:t})=>(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsxs)("div",{className:"flex scroll-mt-[var(--scroll-mt)]",children:[(0,s.jsx)(em,{}),e]}),(0,s.jsx)(u.S,{className:(0,v.cn)("lg:ml-[19rem] border-none",h.N.hiddenIfCustom),disableSidebarOffset:!0})]});function eg({theme:e,children:t,topbar:r}){let a,{isLivePreview:i,getDocsConfigOverrides:o}=(0,n.useContext)(d.K),l=o(),u=l?.theme;switch(i&&u?u:e){case"maple":a=(0,s.jsx)(ei,{topbar:r,children:t});break;case"palm":a=(0,s.jsx)(eo,{topbar:r,children:t});break;case"linden":a=(0,s.jsx)(Y,{topbar:r,children:t});break;case"aspen":a=(0,s.jsx)(T,{topbar:r,children:t});break;case"luma":a=(0,s.jsx)(X,{topbar:r,children:t});break;case"almond":a=(0,s.jsx)(R,{topbar:r,children:t});break;case"sequoia":a=(0,s.jsx)(ed,{topbar:r,children:t});break;case"willow":a=(0,s.jsx)(ex,{topbar:r,children:t});break;default:a=(0,s.jsx)(k,{topbar:r,children:t})}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c,{}),a]})}},30730:(e,t,r)=>{"use strict";r.d(t,{AssistantLayoutWrapper:()=>eX});var s=r(54568),n=r(7620),a=r(41574),i=r(97652),o=r(17798),l=r(75702),c=r(58377),d=r(73181),u=r(40999),h=r(12598),m=r(28653),x=r(9196),g=r(97509),p=r(67908),f=r(88901),y=r(22153),v=r(32626),b=r(37113),j=r(90723),k=r(35878),w=r(33052),N=r(79972),C=r(81325),I=r(60361),S=r(91640),E=r.n(S),$=r(42469),_=r(27541),A=r(59777),L=r(91382);let z={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml"},P={pdf:"application/pdf"},R={js:"text/javascript",jsx:"text/javascript",ts:"text/typescript",tsx:"text/typescript",mjs:"text/javascript",cjs:"text/javascript",md:"text/markdown",mdx:"text/markdown",json:"application/json",html:"text/html",css:"text/css",py:"text/x-python",csv:"text/csv",txt:"text/plain",yaml:"text/yaml",yml:"text/yaml",xml:"text/xml",sql:"text/x-sql",sh:"text/x-shellscript",bash:"text/x-shellscript",zsh:"text/x-shellscript",graphql:"text/x-graphql",gql:"text/x-graphql",toml:"text/toml",env:"text/plain",go:"text/x-go",rs:"text/x-rust",rb:"text/x-ruby",java:"text/x-java",kt:"text/x-kotlin",swift:"text/x-swift",c:"text/x-c",cpp:"text/x-c++",cc:"text/x-c++",h:"text/x-c",hpp:"text/x-c++",cs:"text/x-csharp",php:"text/x-php",dart:"text/x-dart",lua:"text/x-lua",r:"text/x-r",scala:"text/x-scala",ini:"text/plain",cfg:"text/plain",conf:"text/plain",log:"text/plain",dockerfile:"text/x-dockerfile",makefile:"text/x-makefile",gitignore:"text/plain"},F=[...Object.values(z),...Object.values(P),...Object.values(R)];[...Object.keys(R),...Object.keys(z),...Object.keys(P)];let M=new Set(Object.keys(R)),T=new Set(F);function O(e){let t=e.lastIndexOf(".");return -1===t?e.toLowerCase():e.slice(t+1).toLowerCase()}function H(e,t){if(e.startsWith("image/"))return"image";if("application/pdf"===e)return"pdf";if("application/json"===e)return"json";if(t){let e=O(t);if("json"===e)return"json";if(M.has(e))return"code"}return e.startsWith("text/")?"text":"generic"}let D=Array.from(M).map(e=>`.${e}`).join(","),B=`image/*,.pdf,${D}`;async function W(e){let t=Array.from(e),r=[],s=[];for(let e of t)(function(e){if(T.has(e.type)||e.type.startsWith("text/"))return!0;let t=O(e.name);return M.has(t)})(e)&&e.size<=5242880?r.push(e):s.push(e.name);return{attachments:await Promise.all(r.map(async e=>{var t,r;let s=await new Promise((t,r)=>{let s=new FileReader;s.onload=()=>{"string"==typeof s.result?t(s.result):r(Error("Failed to read file"))},s.onerror=()=>r(s.error),s.readAsDataURL(e)});return{id:`${Date.now()}-${Math.random().toString(36).slice(2,9)}`,name:e.name,url:s,type:(t=e.name,""!==(r=e.type)?r:R[O(t)]??"text/plain")}})),rejectedFileNames:s}}var q=r(38637),Q=r(11339),U=r(39808);let V=["flex-shrink-0 h-3.5 w-3.5 text-gray-600 dark:text-gray-400"],K=({context:e,onClick:t,onRemove:r})=>{let n=(0,f.n)(),a=e.value.replace(/^```[\w]*\n?/,"").replace(/\n?```$/,""),i=a.length>30?`${a.slice(0,30)}...`:a;return(0,s.jsxs)("div",{className:(0,C.cn)(w.x.ChatAssistantPayloadItem,"relative inline-flex items-center gap-1.5 px-2 py-1","border border-gray-200 dark:border-gray-800 rounded-lg text-xs group","hover:border-gray-300 dark:hover:border-gray-700 cursor-pointer"),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>t?.(e),"aria-label":n["aria.viewPayloadItem"].replace("{type}",e.type).replace("{value}",i),className:"flex items-center gap-1.5 flex-1 min-w-0",children:["code"===e.type?(0,s.jsx)(Q.A,{className:(0,C.cn)(...V)}):(0,s.jsx)(U.A,{className:(0,C.cn)(...V)}),(0,s.jsx)("span",{className:(0,C.cn)("text-gray-900 dark:text-gray-100 max-w-[100px] truncate"),children:i})]}),r&&(0,s.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),r()},"aria-label":n["aria.removePayloadItem"].replace("{type}",e.type).replace("{value}",i),className:(0,C.cn)("rounded-r-lg hidden absolute right-0 top-0 bottom-0 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 flex-shrink-0","bg-gradient-to-l from-background-light via-background-light to-transparent dark:from-background-dark dark:via-background-dark/50 dark:to-transparent","group-hover:flex items-center pl-4 pr-2"),children:(0,s.jsx)(h.A,{className:"h-3.5 w-3.5"})})]})};function Y({attachment:e}){return(0,s.jsx)(A.T,{zoomImg:{src:e.url,alt:e.name},children:(0,s.jsx)("img",{src:e.url,alt:e.name,className:"w-[148px] h-[148px] rounded-xl object-cover cursor-zoom-in"})})}function G({attachment:e}){return(0,s.jsxs)("div",{className:"relative w-[148px] h-[148px] rounded-xl overflow-hidden bg-white dark:bg-gray-900 border border-gray-200 dark:border-white/10",children:[(0,s.jsx)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:(0,s.jsx)("embed",{src:`${e.url}#toolbar=0&navpanes=0&scrollbar=0`,type:"application/pdf",className:"w-[592px] h-[592px] origin-top-left scale-[0.25]"})}),(0,s.jsx)("div",{className:"absolute bottom-2 left-2 px-1.5 py-0.5 rounded bg-black/60 text-[10px] font-medium text-white",children:"PDF"})]})}function J({attachment:e}){let t=O(e.name).toUpperCase(),r=n.useMemo(()=>{let t=function(e){let t=e.indexOf(",");if(-1===t)return"";let r=e.slice(0,t),s=e.slice(t+1);return r.includes(";base64")?atob(s):decodeURIComponent(s)}(e.url);return(t.length>512e3?t.slice(0,512e3):t).split("\n").length},[e.url]);return(0,s.jsxs)("div",{className:"flex flex-col justify-between w-[148px] h-[148px] rounded-xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 truncate",children:e.name}),(0,s.jsxs)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:[r," ",1===r?"line":"lines"]})]}),(0,s.jsx)("div",{className:"self-start px-1.5 py-0.5 rounded bg-gray-100 dark:bg-white/10 text-[10px] font-medium text-gray-600 dark:text-gray-300",children:t})]})}function X({attachment:e}){let t=O(e.name).toUpperCase();return(0,s.jsxs)("div",{className:"flex flex-col justify-between w-[148px] h-[148px] rounded-xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 truncate",children:e.name}),(0,s.jsx)("div",{className:"self-start px-1.5 py-0.5 rounded bg-gray-100 dark:bg-white/10 text-[10px] font-medium text-gray-600 dark:text-gray-300",children:t})]})}let Z={code:0,text:0,json:0,generic:0,pdf:1,image:2};function ee({attachments:e}){let t=n.useMemo(()=>[...e].sort((e,t)=>{let r=H(e.type,e.name),s=H(t.type,t.name);return(Z[r]??0)-(Z[s]??0)}),[e]);return(0,s.jsx)("div",{className:"flex flex-wrap gap-2 justify-end",children:t.map(e=>{let t=H(e.type,e.name);return"image"===t?(0,s.jsx)(Y,{attachment:e},e.id):"pdf"===t?(0,s.jsx)(G,{attachment:e},e.id):!function(e){let t=H(e.type,e.name);return"code"===t||"text"===t||"json"===t}(e)?(0,s.jsx)(X,{attachment:e},e.id):(0,s.jsx)(J,{attachment:e},e.id)})})}let et=n.forwardRef(({className:e,message:t,...r},n)=>{let a=(0,_.useRouter)(),i=(0,L.G)(),o=(0,j.A)(e=>e.getMessageContext(t.id)),l=(0,j.A)(e=>e.getMessageAttachments(t.id)),c=o&&o.length>0,d=l&&l.length>0,u=e=>{let t=e.path;if(t&&t!==i&&t){(0,q.U_)(e),a.push(t);return}(0,q.Es)(e)};return(0,s.jsxs)("div",{className:"flex justify-end items-end w-full flex-col gap-2",children:[c&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5 justify-end",children:o.map((e,t)=>(0,s.jsx)(K,{context:e,onClick:u},t))}),d&&(0,s.jsx)(ee,{attachments:l}),""!==t.content.trim()&&(0,s.jsx)("div",{ref:n,className:(0,C.cn)("flex px-3 py-2 items-start gap-4 w-fit rounded-2xl bg-gray-100 dark:bg-white/5",e),...r,children:(0,s.jsx)("div",{className:"flex items-start gap-4 w-full",children:(0,s.jsx)("div",{className:"flex flex-col gap-1 w-full",children:(0,s.jsx)("div",{className:"break-words hyphens-auto text-base lg:text-sm text-gray-800 dark:text-gray-200",children:t.content})})})})]})});et.displayName="ChatMessage";var er=r(45234),es=r(6438),en=r(17023),ea=r(74363),ei=r(34518),eo=r(83308),el=r(73205),ec=r(66058),ed=r(41995),eu=r(96417),eh=r(80021),em=r(65202);let ex=({children:e})=>(0,s.jsx)("span",{className:"animate-shimmer bg-[length:200%_100%] bg-clip-text text-transparent font-medium",style:{backgroundImage:"linear-gradient(90deg, rgb(156 163 175) 0%, rgb(209 213 219) 50%, rgb(156 163 175) 100%)"},children:e}),eg=new Set(["grep","rg","egrep","fgrep","find","ls","tree"]),ep=new Set(["cat","head","tail"]),ef=({tools:e,isLoading:t})=>{let[r,a]=(0,n.useState)(!1),i=(0,n.useMemo)(()=>(function(e,t){let r=0,s=0,n=0;for(let t of e){let e=function(e){let t=e.trim().split(/[\s|;&]/)[0]??"";return eg.has(t)?"search":ep.has(t)?"read":"other"}(t.command);"search"===e?r++:"read"===e?s++:n++}let a=[];if(r>0){let e=1===r?"pattern":"patterns";a.push(t?`searching for ${r} ${e}`:`searched for ${r} ${e}`)}if(s>0){let e=1===s?"file":"files";a.push(t?`reading ${s} ${e}`:`read ${s} ${e}`)}if(n>0){let e=1===n?"command":"commands";a.push(t?`running ${n} ${e}`:`ran ${n} ${e}`)}if(0===a.length)return t?"Running…":"Done";let i=a[0]??"",o=1===a.length?i:`${i} and ${a.slice(1).join(" and ")}`;return o.charAt(0).toUpperCase()+o.slice(1)})(e,t),[e,t]);return(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("button",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>a(e=>!e),children:[r?(0,s.jsx)(eh.A,{className:"size-3 flex-shrink-0 text-gray-500 dark:text-gray-400",absoluteStrokeWidth:!0,strokeWidth:1.5}):(0,s.jsx)(em.A,{className:"size-3 flex-shrink-0 text-gray-500 dark:text-gray-400",absoluteStrokeWidth:!0,strokeWidth:1.5}),t?(0,s.jsx)("span",{className:"text-xs text-left",children:(0,s.jsx)(ex,{children:r?"Show less":i})}):(0,s.jsx)("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 text-left",children:r?"Show less":i})]}),r&&(0,s.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(c.B9m,{className:"size-3 flex-shrink-0 text-gray-500 dark:text-gray-400",absoluteStrokeWidth:!0,strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 truncate",children:e.command})]},e.toolCallId))})]})};var ey=r(14486);let ev=({query:e,children:t})=>{let[r,a]=(0,n.useState)(!1),i=(0,f.n)(),o=null!=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{className:(0,C.cn)("group flex items-start text-left gap-2 text-gray-500 dark:text-gray-400 flex-shrink-0 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",o?"cursor-pointer":"cursor-default"),onClick:()=>{o&&a(!r)},children:[(0,s.jsx)(em.A,{className:(0,C.cn)("size-3 mt-1 flex-shrink-0",o&&"block group-hover:hidden",r&&"hidden"),absoluteStrokeWidth:!0,strokeWidth:1.5}),(0,s.jsx)(ey.A,{className:(0,C.cn)("size-3 mt-1 hidden flex-shrink-0",o&&"group-hover:block",r&&"block rotate-90"),absoluteStrokeWidth:!0,strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-base sm:text-sm flex items-center gap-1.5",children:o?(0,s.jsx)("span",{className:"font-medium",children:`${i.foundResultsFor} ${e}`}):(0,s.jsx)(ex,{children:`${i.searchingFor} ${e}`})})]}),r&&(0,s.jsx)("div",{className:"pl-6 pt-0.5 not-prose",children:t})]})};var eb=r(50519);function ej({text:e,charDelay:t=1,onComplete:r,className:a="",disabled:i=!1,renderAsMarkdown:o=!1,markdownProps:l={}}){let{displayedText:c}=function(e,t={}){let{charDelay:r=1,onComplete:s=()=>{},disabled:a=!1}=t,[i,o]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useRef)(""),h=(0,n.useRef)(0),m=(0,n.useRef)(!1),x=(0,n.useRef)(!1),g=(0,n.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null),c(!1),m.current=!1},[]),p=(0,n.useCallback)(()=>{if(m.current)return;c(!0),m.current=!0,x.current=!0;let e=()=>{let t=u.current;h.current<t.length?(h.current+=1,o(t.slice(0,h.current)),d.current=setTimeout(e,r)):(c(!1),m.current=!1,s())};e()},[r,s]);return(0,n.useEffect)(()=>{if(u.current=e,a&&!x.current){o(e),h.current=e.length;return}!m.current&&h.current<e.length&&(!a||x.current)&&p()},[e,a,p]),(0,n.useEffect)(()=>{""===e&&(g(),o(""),h.current=0,x.current=!1)},[e,g]),{displayedText:i,isRendering:l,completeRendering:(0,n.useCallback)(()=>{g(),o(e),h.current=e.length,s()},[e,g,s]),reset:(0,n.useCallback)(()=>{g(),o(""),h.current=0,u.current="",x.current=!1},[g]),progress:e.length>0?h.current/e.length:0}}(e,{charDelay:t,onComplete:r,disabled:i}),d=(0,n.useMemo)(()=>i?e:c,[i,c,e]);return o?(0,s.jsx)(eb.o,{...l,children:d}):(0,s.jsx)("div",{className:(0,C.cn)("relative",a),children:(0,s.jsx)("span",{className:"whitespace-pre-wrap",children:d})})}let ek={className:"prose prose-sm dark:prose-invert overflow-x-auto pb-1 [&_ul]:list-none lg:[&_ul>li]:before:top-[0.98em] [&_ul>li]:before:top-[0.85em] [&_ol]:pl-0 max-lg:text-base max-lg:[&_p]:text-base max-lg:[&_li]:text-base max-lg:[&_ul]:text-base max-lg:[&_ol]:text-base",showCopyButton:!0,components:{h1:({children:e})=>(0,s.jsx)("h1",{className:"text-lg font-semibold text-gray-950 dark:text-gray-50",children:e}),h2:({children:e})=>(0,s.jsx)("h2",{className:"text-base font-semibold text-gray-950 dark:text-gray-50",children:e}),h3:({children:e})=>(0,s.jsx)("h3",{className:"text-base font-semibold text-gray-950 dark:text-gray-50",children:e}),h4:({children:e})=>(0,s.jsx)("h4",{className:"text-base font-semibold text-gray-950 dark:text-gray-50",children:e}),h5:({children:e})=>(0,s.jsx)("h5",{className:"text-base font-semibold text-gray-950 dark:text-gray-50",children:e}),h6:({children:e})=>(0,s.jsx)("h6",{className:"text-base font-semibold text-gray-950 dark:text-gray-50",children:e})}},ew=({response:e,isLast:t,onInternalLinkClick:r})=>{let a=(0,n.useMemo)(()=>({...ek,onInternalLinkClick:r}),[r]);return t?(0,s.jsx)(ej,{text:e.text,renderAsMarkdown:!0,disabled:!t,charDelay:1,markdownProps:a}):(0,s.jsx)(eb.o,{...a,children:e.text})},eN=({query:e,children:t})=>{let[r,a]=(0,n.useState)(!1),i=(0,f.n)(),o=null!=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{className:(0,C.cn)("group flex items-center text-left gap-2.5 text-gray-500 dark:text-gray-400 flex-shrink-0 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",o?"cursor-pointer":"cursor-default"),onClick:()=>{o&&a(!r)},children:[(0,s.jsx)(em.A,{className:(0,C.cn)("size-3 flex-shrink-0",o&&"block group-hover:hidden",r&&"hidden"),absoluteStrokeWidth:!0,strokeWidth:1.5}),(0,s.jsx)(ey.A,{className:(0,C.cn)("size-3 hidden flex-shrink-0",o&&"group-hover:block",r&&"block rotate-90"),absoluteStrokeWidth:!0,strokeWidth:1.5}),(0,s.jsx)("span",{className:"text-xs flex items-center gap-1.5",children:o?(0,s.jsx)("span",{className:"font-medium",children:`${i.foundResultsFor} ${e}`}):(0,s.jsx)(ex,{children:`${i.searchingFor} ${e}`})})]}),r&&(0,s.jsx)("div",{className:"pl-6 pt-0.5 not-prose",children:t})]})},eC="rounded-lg p-1.5 hover:bg-gray-100 dark:hover:bg-white/10 cursor-pointer text-gray-500",eI="rounded-lg p-1.5 bg-primary dark:bg-bg-primary-light text-white dark:text-gray-950",eS=()=>{let{onReload:e}=(0,v.w)(),t=(0,f.n)();return(0,s.jsxs)("button",{className:"mt-6 group text-primary dark:text-primary-light hover:text-primary-light dark:hover:text-primary-light text-sm cursor-pointer flex items-center gap-0.5 whitespace-nowrap self-start",onClick:e,"aria-label":t["aria.reloadChat"],children:[(0,s.jsx)(el.HD.Retry,{}),(0,s.jsx)("span",{className:"px-1",children:"Retry"})]})},eE=()=>{let{onReload:e}=(0,v.w)(),t=(0,f.n)();return(0,s.jsx)("button",{className:"rounded-lg p-1.5 hover:bg-gray-100 dark:hover:bg-white/10 cursor-pointer text-gray-500",onClick:e,"aria-label":t["aria.reloadLastChat"],children:(0,s.jsx)(er.A,{className:"size-4 sm:size-3.5"})})},e$=({message:e})=>{let t=(0,y.p)("docs.assistant.copy_response"),[r,a]=(0,n.useState)(!1),i=(0,f.n)();return(0,n.useEffect)(()=>{r&&setTimeout(()=>a(!1),2e3)},[r]),(0,s.jsx)("button",{className:"rounded-lg p-1.5 hover:bg-gray-100 dark:hover:bg-white/10 cursor-pointer text-gray-500",onClick:()=>{navigator.clipboard.writeText(e.content).then(()=>{t({message:e.content}).catch(console.error),a(!0)}).catch(console.error)},"aria-label":i["aria.copyChatResponse"],children:r?(0,s.jsx)(es.A,{className:"size-4 sm:size-3.5 text-primary dark:text-primary-light"}):(0,s.jsx)(en.A,{className:"size-4 sm:size-3.5"})})},e_=n.forwardRef(({className:e,message:t,isLast:r,hasError:a,handleClose:i,...l},c)=>{let[d,u]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),{subdomain:x}=(0,n.useContext)(o.Em),{userInfo:g}=(0,n.useContext)(o.cy),p=(0,f.n)(),v=(0,j.A)(e=>e.status),b=(0,j.A)(e=>e.getMessageUlid),k=(0,n.useMemo)(()=>{let e;return e=t.parts,e?.some(e=>"text"===e.type||"tool-invocation"===e.type&&("search"===e.toolInvocation.toolName||"searchDocsAndSiteRestrictedWeb"===e.toolInvocation.toolName||"bash"===e.toolInvocation.toolName))??!1},[t.parts]),{bashTools:w,firstBashIndex:N,isBashLoading:I}=(0,n.useMemo)(()=>{let e=t.parts??[],s=[],n=-1,a=!1,i=-1;if(e.forEach((e,t)=>{"tool-invocation"===e.type&&"bash"===e.toolInvocation.toolName&&(-1===n&&(n=t),i=t,"call"===e.toolInvocation.state||"partial-call"===e.toolInvocation.state?(a=!0,s.push({toolCallId:e.toolInvocation.toolCallId,command:e.toolInvocation.args.command??"Running command…"})):"result"===e.toolInvocation.state&&s.push({toolCallId:e.toolInvocation.toolCallId,command:e.toolInvocation.args.command??"Ran command"}))}),!r)return{bashTools:s,firstBashIndex:n,isBashLoading:!1};let o=i>=0&&e.slice(i+1).some(e=>"text"===e.type&&e.text.length>0),l="streaming"===v||"submitted"===v,c=a||s.length>0&&l&&!o;return{bashTools:s,firstBashIndex:n,isBashLoading:c}},[t.parts,v,r]),S=(0,y.p)("docs.assistant.source_click"),E=(0,y.p)("docs.assistant.web_search_click"),$=async(e,t)=>{if(!(0,ec.r)())try{let r=b(e);if(!r)return void console.error("Message ULID not found for message ID:",e);let s=(0,eo.c)({subdomain:x??"",isAuthenticated:!!g,messageId:r,feedback:t});await fetch(s,{method:"PUT"})}catch(e){console.error("Failed to send thumbs feedback:",e)}};return a?(0,s.jsxs)("div",{ref:c,className:(0,C.cn)("py-4 text-sm",e),...l,children:[(0,s.jsx)("span",{children:"Sorry, we could not generate a response to your question."}),(0,s.jsx)(eS,{})]}):k?(0,s.jsxs)("div",{ref:c,className:(0,C.cn)("flex flex-col py-4 gap-4 self-stretch",e),...l,children:[t.parts?.map((e,n)=>{if("text"===e.type)return(0,s.jsx)(ew,{response:e,isLast:r&&n===(t.parts?.length??0)-1,onInternalLinkClick:i},`text-${n}`);if("tool-invocation"===e.type&&"search"===e.toolInvocation.toolName&&("call"===e.toolInvocation.state||"partial-call"===e.toolInvocation.state))return(0,s.jsx)(eN,{query:e.toolInvocation.args.query},`${e.toolInvocation.toolCallId}-call`);if("tool-invocation"===e.type&&"search"===e.toolInvocation.toolName&&"result"===e.toolInvocation.state)return(0,s.jsx)("div",{className:(0,C.cn)("flex flex-col gap-2",e.toolInvocation.result.results?.length===0&&"hidden"),children:(0,s.jsx)(eN,{query:e.toolInvocation.args.query,children:(0,s.jsx)("div",{className:"flex gap-1 flex-col",children:e.toolInvocation.result.results?.map(e=>(0,s.jsx)(eu.k,{href:`/${e.path}`,onInternalLinkClick:i,onClick:()=>{S({url:e.path}).catch(console.error)},title:e.metadata.title,titleContainerClassName:"gap-1 py-1"},e.path))})})},`${e.toolInvocation.toolCallId}-result`);if("tool-invocation"===e.type&&"searchDocsAndSiteRestrictedWeb"===e.toolInvocation.toolName&&("call"===e.toolInvocation.state||"partial-call"===e.toolInvocation.state))return(0,s.jsx)(ev,{query:e.toolInvocation.args.query},`${e.toolInvocation.toolCallId}-call`);if("tool-invocation"===e.type&&"searchDocsAndSiteRestrictedWeb"===e.toolInvocation.toolName&&"result"===e.toolInvocation.state){let t=e.toolInvocation.result,r=t.docs.length>0||t.web.length>0;return(0,s.jsx)("div",{className:(0,C.cn)("flex flex-col gap-2",!r&&"hidden"),children:(0,s.jsx)(ev,{query:e.toolInvocation.args.query,children:(0,s.jsxs)("div",{className:"flex gap-1 flex-col",children:[t.docs.map(e=>(0,s.jsx)(eu.k,{href:`/${e.path}`,onInternalLinkClick:i,onClick:()=>{S({url:e.path}).catch(console.error)},title:e.metadata.title,titleContainerClassName:"gap-1 py-1"},e.path)),t.web.map(e=>(0,s.jsx)(ed.s,{href:e.url,onClick:()=>{E({url:e.url}).catch(console.error)},title:e.metadata.title,publishedDate:e.metadata.publishedDate,className:"gap-1 py-1"},e.url))]})})},`${e.toolInvocation.toolCallId}-result`)}else if("tool-invocation"===e.type&&"bash"===e.toolInvocation.toolName)return n!==N?null:(0,s.jsx)(ef,{tools:w,isLoading:I},"bash-group")}),(!r||"ready"===v)&&t.parts&&t.parts.length>0&&(0,s.jsx)("div",{className:"flex items-start gap-2 w-full",children:(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("button",{"aria-label":p["aria.voteGood"],className:d?eI:eC,onClick:()=>{d||($(t.id,"positive").catch(console.error),u(!0),m(!1))},children:(0,s.jsx)(ea.A,{className:"size-4 sm:size-3.5"})}),(0,s.jsx)("button",{"aria-label":p["aria.voteBad"],className:h?eI:eC,onClick:()=>{h||($(t.id,"negative").catch(console.error),u(!1),m(!0))},children:(0,s.jsx)(ei.A,{className:"size-4 sm:size-3.5"})}),(0,s.jsx)(e$,{message:t}),r&&(0,s.jsx)(eE,{})]})})]}):null});e_.displayName="ChatResponse";let eA=n.memo(({message:e,isLast:t,hasError:r,handleClose:n})=>"user"===e.role?(0,s.jsx)(et,{message:e}):"assistant"===e.role?(0,s.jsx)(e_,{message:e,isLast:t,hasError:r,handleClose:n}):void 0,(e,t)=>e.message===t.message&&e.handleClose===t.handleClose&&e.isLast===t.isLast&&e.hasError===t.hasError);eA.displayName="ChatItem";let eL=()=>(0,s.jsxs)("div",{className:"jsx-d74a492b66aec8f2 flex justify-start",children:[(0,s.jsxs)("div",{className:"jsx-d74a492b66aec8f2 flex gap-0.5 items-end h-3 py-2",children:[(0,s.jsx)("span",{className:"jsx-d74a492b66aec8f2 size-1 bg-zinc-400 dark:bg-zinc-500 rounded-full animate-[dotBounce_1.4s_ease-in-out_infinite]"}),(0,s.jsx)("span",{className:"jsx-d74a492b66aec8f2 size-1 bg-zinc-400 dark:bg-zinc-500 rounded-full animate-[dotBounce_1.4s_ease-in-out_0.2s_infinite]"}),(0,s.jsx)("span",{className:"jsx-d74a492b66aec8f2 size-1 bg-zinc-400 dark:bg-zinc-500 rounded-full animate-[dotBounce_1.4s_ease-in-out_0.4s_infinite]"})]}),(0,s.jsx)(E(),{id:"d74a492b66aec8f2",children:"@keyframes dotBounce{0%,20%,100%{transform:translatey(0)}10%{transform:translatey(2px)}}"})]}),ez=()=>{let{status:e,messages:t}=(0,v.w)();if((0,n.useMemo)(()=>{if("submitted"===e)return!0;if("streaming"!==e)return!1;let r=t.at(-1)?.parts.at(-1);return r?.type==="step-start"||r?.type==="tool-invocation"},[e,t]))return(0,s.jsx)("div",{className:"text-sm",children:(0,s.jsx)(eL,{})})},eP=({className:e,handleClose:t})=>{let r=(0,j.A)((0,$.k)(e=>e.messages)),n="error"===(0,j.A)(e=>e.status);return(0,s.jsxs)("div",{className:(0,C.cn)("flex flex-col gap-3 mb-2",e),children:[r.map((e,a)=>(0,s.jsx)(eA,{message:e,isLast:a===r.length-1,hasError:a===r.length-1&&n,handleClose:t},e.id)),(0,s.jsx)(ez,{})]})};var eR=r(75892),eF=r(22857),eM=r(96442),eT=r(7056),eO=r(81019);let eH=(0,eM.default)(()=>r.e(50528).then(r.bind(r,50528)).then(e=>e.Controlled),{loadableGenerated:{webpack:()=>[50528]},ssr:!1}),eD={pdf:{icon:eR.A,className:"size-4 text-red-500 dark:text-red-400"},json:{icon:eF.A,className:"size-4 text-yellow-600 dark:text-yellow-400"},code:{icon:Q.A,className:"size-4 text-blue-500 dark:text-blue-400"},text:{icon:eR.A,className:"size-4 text-gray-500 dark:text-gray-400"},generic:{icon:eR.A,className:"size-4 text-gray-500 dark:text-gray-400"}};function eB({kind:e,attachment:t}){if("image"===e)return(0,s.jsx)("img",{src:t.url,alt:t.name,className:"size-4 rounded object-cover"});let r=eD[e]??eD.generic,n=r?.icon;return n?(0,s.jsx)(n,{className:r.className}):null}function eW({attachment:e,onRemove:t}){let[r,a]=(0,n.useState)(!1),i=H(e.type,e.name),o="image"===i,l=o?(0,s.jsx)(eH,{isZoomed:r,onZoomChange:a,wrapElement:(0,eT.n)()?"div":"span",zoomMargin:50,zoomImg:{src:e.url,alt:e.name},children:(0,s.jsx)("img",{src:e.url,alt:e.name,className:"size-4 rounded object-cover"})}):(0,s.jsx)(eB,{kind:i,attachment:e});return(0,s.jsxs)("div",{className:(0,C.cn)("flex items-center gap-1 rounded-lg border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 py-1 pl-1 pr-1.5",o&&"cursor-zoom-in"),onClick:o?()=>a(!0):void 0,children:[l,(0,s.jsx)("span",{className:"text-xs font-medium text-gray-900 dark:text-gray-100 max-w-[120px] truncate",children:e.name}),(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),t()},className:"relative z-10 flex items-center justify-center size-2.5 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200","aria-label":`Remove ${e.name}`,children:(0,s.jsx)(h.A,{className:"size-2.5"})})]})}let eq=(0,n.forwardRef)(({scrollRef:e,isMobile:t,onFilesRejected:r,attachmentsDisabled:a=!1},i)=>{let{subdomain:l}=(0,n.useContext)(o.Em),{isChatSheetOpen:d,shouldFocusChatSheet:u,entryPoint:h,setShouldFocusChatSheet:m}=(0,n.useContext)(I.ChatAssistantContext),x=(0,y.p)("docs.assistant.enter"),g=(0,y.p)("docs.assistant.attachment_upload"),p=(0,y.p)("docs.assistant.attachment_rejected"),f=(0,y.p)("docs.assistant.attachment_limit_exceeded"),b=(0,_.useRouter)(),k=(0,L.G)(),w=(0,n.useRef)(null),N=(0,n.useRef)(null),{setInput:S,isFeatureUnavailable:E,payloadInput:A,setPayloadInput:z}=(0,v.w)(),P=(0,j.A)((0,$.k)(e=>e.pendingAttachments)),R=(0,j.A)(e=>e.addPendingAttachment),F=(0,j.A)(e=>e.removePendingAttachment),M=(0,j.A)(e=>e.clearPendingAttachments),T=(0,j.A)(e=>e.setStagedAttachments),D=(0,n.useCallback)(async(e,t)=>{let{attachments:s,rejectedFileNames:n}=await W(e),a=10-P.length,i=s.slice(0,Math.max(0,a));for(let e of i)R(e);i.length>0&&g({subdomain:l,method:t,count:i.length,kinds:i.map(e=>H(e.type,e.name))});let o=s.length-i.length;o>0&&f({subdomain:l,method:t,skippedCount:o}),n.length>0&&(p({subdomain:l,method:t,count:n.length,extensions:n.map(e=>O(e))}),r?.(n))},[R,r,P.length,l,g,p,f]);(0,n.useImperativeHandle)(i,()=>({handleFiles:(e,t)=>void D(e,t)}));let Q=(0,n.useCallback)(e=>{if(a)return;let t=Array.from(e.clipboardData.files);0!==t.length&&(e.preventDefault(),D(t,"paste"))},[a,D]),U=(0,n.useCallback)(()=>{N.current?.click()},[]),V=(0,n.useCallback)(e=>{let{files:t}=e.target;t&&t.length>0&&D(t,"picker"),e.target.value=""},[D]);(0,n.useEffect)(()=>{if(!d)return void w.current?.blur();if(!u)return;let e=w.current;e&&!t&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length)),m(!1)},[d,u,m,t]);let Y=e=>{let t=e.path;if(t&&t!==k&&t){(0,q.U_)(e),b.push(t);return}(0,q.Es)(e)},G=!!A.context&&A.context.length>0,J=P.length>0,X=(0,s.jsxs)(s.Fragment,{children:[J&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1 px-2 pt-2",children:P.map(e=>(0,s.jsx)(eW,{attachment:e,onRemove:()=>F(e.id)},e.id))}),G&&A.context&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2 px-2 pt-2 max-h-[300px] overflow-y-auto",children:A.context.map((e,t)=>(0,s.jsx)(K,{context:e,onClick:Y,onRemove:()=>{z({context:A.context?.filter((e,r)=>r!==t)||[]})}},t))})]}),Z=a?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{ref:N,type:"file",accept:B,multiple:!0,className:"hidden",onChange:V}),(0,s.jsx)("button",{type:"button",onClick:U,className:"p-1 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/10","aria-label":"Add attachment",children:(0,s.jsx)(c.Aud,{className:"size-3.5"})})]}),ee=E.rayId,et="blocked"===E.type||"heuristic_blocked"===E.type,er=encodeURIComponent(`${"heuristic_blocked"===E.type?"Assistant request could not be verified":"Assistant blocked on my network"}${ee?` - Request ID: ${ee}`:""}`);return(0,s.jsxs)("div",{className:(0,C.cn)(t&&"z-50 bg-background-light dark:bg-background-dark"),children:[E.unavailable&&(0,s.jsx)("div",{className:(0,C.cn)("mb-3 p-3 rounded-xl border",et?"bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800/50":"bg-amber-50 dark:bg-amber-900/20 border-amber-200 dark:border-amber-800/50"),children:(0,s.jsxs)("p",{className:(0,C.cn)("text-sm",et?"text-red-800 dark:text-red-200":"text-amber-800 dark:text-amber-200"),children:[E.message,"blocked"===E.type&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"If you believe this is a false positive, please email"," ",(0,s.jsx)("a",{href:`mailto:support@mintlify.com?subject=${er}`,target:"_blank",rel:"noopener noreferrer",className:"underline hover:opacity-80",children:"support@mintlify.com"})," ","with details from"," ",(0,s.jsx)("a",{href:"https://ipinfo.io/json",target:"_blank",rel:"noopener noreferrer",className:"underline hover:opacity-80",children:"ipinfo.io/json"}),ee&&(0,s.jsxs)(s.Fragment,{children:[" ","and your request ID:"," ",(0,s.jsx)("span",{className:"font-mono select-all",children:ee})]}),"."]}),"heuristic_blocked"===E.type&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"If this issue persists, please email"," ",(0,s.jsx)("a",{href:`mailto:support@mintlify.com?subject=${er}`,target:"_blank",rel:"noopener noreferrer",className:"underline hover:opacity-80",children:"support@mintlify.com"}),ee&&(0,s.jsxs)(s.Fragment,{children:[" ","with your request ID:"," ",(0,s.jsx)("span",{className:"font-mono select-all",children:ee})]}),"."]})]})}),(0,s.jsx)(eO.V,{ref:w,variant:"panel",isMobile:t,headerContent:G||J?X:null,footerLeftContent:Z,onBeforeSubmit:()=>{A.context&&A.context.length>0&&j.A.getState().setPendingContext(A.context),P.length>0&&T([...P])},onSubmit:r=>{S(""),z({context:void 0}),M(),requestAnimationFrame(()=>{e.current?.scrollTo({top:0,behavior:"instant"})}),x({subdomain:l,query:r,entryPoint:h}),t&&w.current&&w.current.blur()},onDeleteEmpty:()=>{A.context&&A.context.length>0&&z({context:A.context.slice(0,-1)})},onPaste:Q})]})});eq.displayName="ChatTextArea";var eQ=r(17635),eU=r.n(eQ);let eV=({starterQuestions:e,assistantConfig:t})=>{let{append:r}=(0,v.w)(),{selectedLocale:a,contextualStarterQuestions:i}=(0,n.useContext)(f._),o=(0,f.n)(),l=(0,y.p)("docs.assistant.starter_question_clicked"),c=(0,n.useMemo)(()=>t?.enableStarterQuestions!==!0?[]:i?.length&&t.enableContextualStarterQuestions?a&&"en"!==a?i.filter(e=>e.translations?.[a]):i:e?a&&"en"!==a?e.filter(e=>e.translations?.[a]):e:[],[i,e,a,t?.enableStarterQuestions,t?.enableContextualStarterQuestions]);return(0,s.jsxs)("div",{className:"h-full flex flex-col justify-between",children:[(0,s.jsx)("div",{className:"mt-4 flex flex-col items-center text-sm",children:(0,s.jsx)("div",{className:(0,C.cn)("mx-8 text-center text-gray-400 dark:text-gray-600 text-xs",w.x.ChatAssistantDisclaimerText),children:o["assistant.disclaimer"]})}),c.length>0&&(0,s.jsx)("div",{className:"pb-6",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:(0,C.cn)("text-sm text-gray-700 dark:text-gray-300",w.x.StarterQuestionText),children:o["assistant.suggestions"]}),c.slice(0,3).map((e,t)=>{let n=a&&"en"!==a&&e.translations?.[a]?e.translations[a].questionText:e.questionText;return(0,s.jsx)("button",{onClick:()=>(e=>{let t=a&&"en"!==a&&e.translations?.[a]?e.translations[a].questionText:e.questionText;l({questionId:e._id,questionText:t,locale:a}),r({id:eU()(),role:"user",content:t})})(e),className:"font-medium text-left text-sm text-primary hover:brightness-[0.75] dark:hover:brightness-[1.35] dark:text-primary-light dark:hover:text-primary transition-colors",children:n},t)})]})})]})},eK=368,eY=576,eG=({className:e,minWidth:t=eK,maxWidth:r=eY,hidden:x=!1})=>{let{isChatSheetOpen:v,onChatSheetToggle:S}=(0,n.useContext)(I.ChatAssistantContext),E=(0,f.n)(),{starterQuestions:$,assistantConfig:_}=(0,n.useContext)(I.SearchContext),{docsConfig:A}=(0,n.useContext)(o.H6),L=A?.theme==="almond",z=_?.attachments?.status==="DISABLED",P=(0,j.A)(e=>e.messages.length),R=(0,j.A)(e=>"submitted"===e.status||"streaming"===e.status);(0,b.f)({key:"x",isDisabled:!v||!R,callback:()=>j.A.getState().activeStop?.()}),(0,b.f)({key:"Escape",isSingleKey:!0,isDisabled:!v||!R,callback:()=>j.A.getState().activeStop?.()});let F=(0,n.useRef)(null),M=(0,n.useRef)(null),T=(0,n.useRef)(null),[O,H]=(0,l.M)(i.IP,t),[D,B]=(0,n.useState)(!1),W=(0,y.p)("docs.assistant.maximize_click"),q=(0,y.p)("docs.assistant.minimize_click"),Q=(0,n.useMemo)(()=>O>=r,[O,r]),U=(0,a.Ub)("(max-width: 1024px)"),[V,K]=(0,n.useState)(!1),[Y,G]=(0,n.useState)(!1),[J,X]=(0,n.useState)(0),[Z,ee]=(0,n.useState)(!1);(0,n.useEffect)(()=>{K(!0),G(U)},[U]);let[et,er]=(0,n.useState)(!1),[es,en]=(0,n.useState)([]),ea=(0,n.useRef)(void 0),ei=(0,n.useRef)(0),eo=(0,n.useCallback)(e=>{en(e),clearTimeout(ea.current),ea.current=setTimeout(()=>en([]),3e3)},[]),el=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),ei.current+=1,Array.from(e.dataTransfer.items).some(e=>"file"===e.kind)&&er(!0)},[]),ec=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),ei.current-=1,ei.current<=0&&(ei.current=0,er(!1))},[]),ed=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),eu=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),ei.current=0,er(!1);let{files:t}=e.dataTransfer;0!==t.length&&T.current?.handleFiles(t,"drag")},[]),eh=(0,n.useRef)(!1),em=(0,n.useRef)(0),ex=(0,n.useRef)(null),eg=(0,n.useRef)(!1),ep=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!v)return;let e=ex.current,t=F.current;if(!e||!t)return;let r=new IntersectionObserver(([e])=>{eg.current=e?.isIntersecting??!1},{root:t,threshold:.1});return r.observe(e),()=>r.disconnect()},[v]);let ef=(0,n.useCallback)(e=>{let t=e.touches[0];t&&(ee(!1),X(0),eh.current=!1,ep.current=eg.current,em.current=t.clientY)},[]),ey=(0,n.useCallback)(e=>{let t=e.touches[0];if(!t)return;let r=t.clientY-em.current;if(eh.current){e.preventDefault(),X(Math.max(0,r));return}!(r<=10)&&ep.current&&(eh.current=!0,ee(!0),e.preventDefault(),X(r))},[]),ev=(0,n.useCallback)(()=>{ee(!1),X(0),eh.current=!1,em.current=0},[]),eb=(0,n.useCallback)(()=>{eh.current&&J>100&&S(),ev()},[J,S,ev]),ej=(0,n.useCallback)(()=>{ev()},[ev]),ek=(0,n.useCallback)(e=>{e.preventDefault(),B(!0),document.body.style.cursor="col-resize"},[]),ew=(0,n.useCallback)(e=>{D&&M.current&&H(Math.min(Math.max(M.current.getBoundingClientRect().right-e.clientX,t),r))},[D,t,r,H]),eN=(0,n.useCallback)(()=>{B(!1),document.body.style.cursor="default"},[]),eC=(0,n.useCallback)(()=>{Q?q({}).catch(console.error):W({}).catch(console.error),H(Q?t:r)},[Q,t,r,H,W,q]);(0,n.useEffect)(()=>(D&&(document.addEventListener("mousemove",ew),document.addEventListener("mouseup",eN)),()=>{document.removeEventListener("mousemove",ew),document.removeEventListener("mouseup",eN)}),[D,ew,eN]),(0,n.useEffect)(()=>{if(V&&Y&&v){let e=window.scrollY,t=document.body.style.overflow,r=document.body.style.position,s=document.body.style.top,n=document.body.style.width;return document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.body.style.height="100%",()=>{document.body.style.overflow=t,document.body.style.position=r,document.body.style.top=s,document.body.style.width=n,document.body.style.height="",window.scrollTo(0,e)}}},[V,Y,v]);let eI=(0,s.jsxs)("div",{suppressHydrationWarning:!0,className:(0,C.cn)(Y?"fixed inset-0 z-10":(0,C.cn)("sticky shrink-0 z-[22]",L?"pt-2 pb-2 pr-2":"bg-background-light dark:bg-background-dark","mt-[var(--banner-height,0px)] top-[var(--banner-height,0px)] h-[calc(100vh-var(--banner-height,0px))]"),Y&&p.f.Popup,!V&&"max-lg:hidden",e,"print:hidden"),style:{width:V?Y?void 0:x?0:`${O}px`:`var(${i.Wv}, 0px)`,minWidth:!V||Y||x?void 0:`${t}px`,maxWidth:!V||Y||x?void 0:`${r}px`,overflow:!V||x?"hidden":void 0,pointerEvents:Y&&!v||x?"none":void 0,visibility:x?"hidden":void 0},children:[Y&&(0,s.jsx)("div",{className:(0,C.cn)("absolute inset-0 bg-black/40 transition-opacity duration-200",v?"opacity-100":"opacity-0"),onClick:()=>S()}),!Y&&(0,s.jsx)("div",{className:(0,C.cn)("absolute left-0 top-0 bottom-0 w-px z-10 cursor-col-resize",'after:content-[""] after:absolute after:inset-y-0 after:-inset-x-2 after:select-none',!L&&(0,C.cn)("bg-gray-100 dark:bg-gray-800","hover:bg-gray-200 dark:hover:bg-gray-700",D&&"bg-gray-200 dark:bg-gray-700")),onMouseDown:ek}),(0,s.jsxs)("div",{ref:M,id:k.V.ChatAssistantSheet,className:(0,C.cn)("flex flex-col overflow-hidden shrink-0 relative",V&&Y?"overscroll-contain bg-background-light dark:bg-background-dark":"h-full bg-background-light dark:bg-background-dark",Y&&!Z&&"transition-transform duration-200 ease-out",!Y&&L&&"rounded-2xl border border-gray-200/70 dark:border-white/[0.07]",w.x.ChatAssistantSheet),style:V&&Y?{position:"fixed",left:0,right:0,bottom:0,height:"85vh",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:10,transform:v?`translateY(${J}px)`:"translateY(100%)",willChange:"transform"}:void 0,"aria-hidden":!v,onTouchStart:Y?ef:void 0,onTouchMove:Y?ey:void 0,onTouchEnd:Y?eb:void 0,onTouchCancel:Y?ej:void 0,onDragEnter:z?void 0:el,onDragLeave:z?void 0:ec,onDragOver:z?void 0:ed,onDrop:z?void 0:eu,children:[Y&&(0,s.jsx)("div",{className:"flex justify-center pt-3 touch-none",children:(0,s.jsx)("div",{className:"w-10 h-1 rounded-full bg-gray-300 dark:bg-gray-600"})}),(0,s.jsxs)("div",{className:(0,C.cn)("w-full flex flex-col flex-1 min-h-0",V&&Y?"pt-0":"lg:pt-3"),children:[(0,s.jsxs)("div",{className:(0,C.cn)(w.x.ChatAssistantSheetHeader,"flex items-center justify-between pb-3 px-4"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(c.BtC,{className:"size-5 text-primary dark:text-primary-light","aria-hidden":"true"}),(0,s.jsx)("span",{className:"font-medium text-gray-900 dark:text-gray-100",children:E.assistant})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[!Y&&(0,s.jsx)("button",{onClick:eC,className:"group hover:bg-gray-100 dark:hover:bg-white/10 p-1.5 rounded-lg",children:Q?(0,s.jsx)(d.A,{className:"size-4 sm:size-3.5 text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-300"}):(0,s.jsx)(u.A,{className:"size-4 sm:size-3.5 text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-300"})}),P>0&&(0,s.jsx)(eJ,{}),(0,s.jsx)("button",{onClick:()=>{j.A.getState().activeStop?.(),S()},className:"group hover:bg-gray-100 dark:hover:bg-white/10 p-1.5 rounded-lg",children:(0,s.jsx)(h.A,{className:"size-[20px] sm:size-4 text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-300"})})]})]}),(0,s.jsxs)("div",{ref:F,id:"chat-content",className:(0,C.cn)(w.x.ChatAssistantSheetContent,"flex flex-col-reverse flex-1 overflow-y-auto relative px-5 min-h-0"),style:Z?{overflow:"hidden",touchAction:"none"}:void 0,children:[(0,s.jsx)("div",{className:"flex-grow"}),P>0?(0,s.jsx)(eP,{handleClose:U?()=>S():void 0}):(0,s.jsx)(eV,{starterQuestions:$,assistantConfig:_}),(0,s.jsx)("div",{ref:ex,className:"h-px w-full shrink-0"})]}),(0,s.jsxs)("div",{className:"px-4 pb-4 shrink-0",children:[(0,s.jsx)(eq,{ref:T,scrollRef:F,isMobile:Y,onFilesRejected:eo,attachmentsDisabled:z}),_?.deflection?.enabled&&_.deflection.email&&_.deflection.showHelpButton&&(0,s.jsx)("div",{className:"w-full flex items-center justify-between",children:(0,s.jsxs)("a",{href:`mailto:${_.deflection.email}`,className:"group flex justify-between items-center gap-1 mt-2 py-1 transition-colors duration-200",children:[(0,s.jsx)(N.Ay,{icon:"circle-question",className:"w-3 h-3 bg-gray-400 group-hover:bg-gray-600 dark:group-hover:bg-gray-300"}),(0,s.jsx)("p",{className:"text-gray-400 font-regular text-xs group-hover:text-gray-600 dark:group-hover:text-gray-300",children:E["assistant.createSupportTicket"]})]})})]})]}),et&&!z&&(0,s.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-gray-950/60 p-8",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,s.jsx)(c.uTr,{className:"size-8 text-white"}),(0,s.jsxs)("div",{className:"flex flex-col items-center text-center text-white",children:[(0,s.jsx)("p",{className:"text-base font-medium",children:E["assistant.uploadFile"]}),(0,s.jsx)("p",{className:"text-sm",children:E["assistant.dropFiles"]})]})]})}),es.length>0&&(0,s.jsxs)("div",{className:"absolute bottom-20 left-4 right-4 z-50 flex items-start gap-2 rounded-xl bg-red-50/90 dark:bg-red-950/90 border border-red-200 dark:border-red-800/50 px-3 py-2.5 text-white shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-200",children:[(0,s.jsx)(m.A,{className:"size-4 text-red-600 dark:text-red-400 shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-red-700 dark:text-white",children:es.length>1?E["assistant.unsupportedFiles"]:E["assistant.unsupportedFile"]}),(0,s.jsx)("p",{className:"text-xs text-red-600 dark:text-red-400 truncate",children:es.join(", ")})]}),(0,s.jsx)("button",{type:"button",onClick:()=>en([]),className:"shrink-0 p-0.5 text-red-400 dark:text-red-600 hover:text-red-600 dark:hover:text-red-400",children:(0,s.jsx)(h.A,{className:"size-3.5"})})]})]})]});return V&&Y?(0,g.createPortal)(eI,document.body):eI},eJ=()=>{let{onClear:e}=(0,v.w)();return(0,s.jsx)("button",{onClick:e,className:"group hover:bg-gray-100 dark:hover:bg-white/10 p-1.5 rounded-lg",children:(0,s.jsx)(x.A,{className:"size-4 sm:size-3.5 text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-300"})})};function eX({children:e}){let{isChatSheetOpen:t}=(0,n.useContext)(I.ChatAssistantContext),{hasChatPermissions:r}=(0,n.useContext)(I.SearchContext),{docsConfig:c}=(0,n.useContext)(o.H6),d=(0,a.Ub)("(max-width: 1024px)"),[u,h]=(0,n.useState)(!1),[m,x]=(0,n.useState)(!1),[g]=(0,l.M)(i.IP,eK);(0,n.useEffect)(()=>{h(!0),x(d)},[d]),(0,n.useEffect)(()=>{u&&document.documentElement.removeAttribute("data-assistant-defaulted")},[u]),(0,n.useLayoutEffect)(()=>{if(!u)return;let e=document.documentElement;if(m){e.style.removeProperty(i.Wv),e.setAttribute("data-assistant-state","closed");return}let s=r&&t;return e.style.setProperty(i.Wv,s?`${g}px`:"0px"),e.setAttribute("data-assistant-state",s?"open":"closed"),()=>{e.style.removeProperty(i.Wv),e.setAttribute("data-assistant-state","closed")}},[u,m,r,t,g]);let p=u&&!m;return(0,s.jsxs)("div",{className:"max-lg:contents lg:flex lg:w-full","data-docs-theme":c?.theme,children:[(0,s.jsx)("div",{className:"max-lg:contents lg:flex-1 lg:min-w-0 lg:overflow-x-clip",children:e}),r&&(0,s.jsx)(eG,{hidden:p&&!t})]})}},34182:(e,t,r)=>{"use strict";r.d(t,{HotReloader:()=>i});var s=r(54568),n=r(27541),a=r(7620);let i=()=>((()=>{let e=(0,n.useRouter)();(0,a.useEffect)(()=>{let t,s=!1;return(async()=>{let{default:n}=await r.e(3831).then(r.bind(r,3831));s||(console.warn("Connected to Socket.io"),(t=n()).on("reload",()=>{console.warn("Received change, reloading page now"),e.refresh()}))})(),()=>{s=!0,t?.disconnect()}},[e])})(),(0,s.jsx)(s.Fragment,{}))},35021:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,ColorVariables:()=>l});var s=r(54568),n=r(10897),a=r(7620),i=r(54871);function o(e){let t=e?.colors.primary??"#16A34A",r=e?.colors.light??"#4ADE80",s=e?.colors.dark??"#166534",a=e?.colors.primary,i=e?.colors.primary;return e?.theme==="linden"&&(e.background={...e.background,color:{light:e.background?.color?.light||(0,n.Ob)((0,n._x)("#FFFFFF",1,t,.03)),dark:e.background?.color?.dark||(0,n.Ob)((0,n._x)("#09090B",1,r,.03))}}),{primary:(0,n.N9)(t),primaryLight:(0,n.N9)(r),primaryDark:(0,n.N9)(s),primaryDarkForeground:(e=>{let t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i.exec(e),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)??t;if(!r||!r[1]||!r[2]||!r[3])return!1;let s=e=>1===e.length?e+e:e,n=parseInt(s(r[1]),16),a=parseInt(s(r[2]),16);return .299*n+.587*a+.114*parseInt(s(r[3]),16)>165})(s)?"0 0 0":"255 255 255",backgroundLight:(0,n.N9)(e?.background?.color?.light??"#ffffff"),backgroundDark:(0,n.ab)(r,e?.background?.color?.dark),anchorDefault:a,dropdownDefault:i,gray:(0,n.Eo)(t)}}let l=(0,a.memo)(function({docsConfig:e}){let{isLivePreview:t,getDocsConfigOverrides:r}=(0,a.useContext)(i.K),n=r(),l=o(t&&n?{...e,...n}:e),c=`:root {
    --primary: ${l.primary};
    --primary-light: ${l.primaryLight};
    --primary-dark: ${l.primaryDark};
    --tooltip-foreground: ${l.primaryDarkForeground};
    --background-light: ${l.backgroundLight};
    --background-dark: ${l.backgroundDark};
    --gray-50: ${l.gray[50]};
    --gray-100: ${l.gray[100]};
    --gray-200: ${l.gray[200]};
    --gray-300: ${l.gray[300]};
    --gray-400: ${l.gray[400]};
    --gray-500: ${l.gray[500]};
    --gray-600: ${l.gray[600]};
    --gray-700: ${l.gray[700]};
    --gray-800: ${l.gray[800]};
    --gray-900: ${l.gray[900]};
    --gray-950: ${l.gray[950]};
  }`;return(0,s.jsx)("style",{children:c})})},42080:(e,t,r)=>{"use strict";r.d(t,{FooterAndSidebarScrollScript:()=>x,ScrollTopScript:()=>m});var s=r(54568),n=r(23792),a=r(7620),i=r(12192),o=r(54871),l=r(88901);function c(e,t,r){return`(${d.toString()})(${e}, ${t}, "${r}")`}function d(e,t,r){let s=document.documentElement.getAttribute("data-banner-state"),n=2.5*!!(null!=s?"visible"===s:t),a=3*!!e,i=4,o=n+4+a;switch(r){case"mint":case"palm":break;case"aspen":i=3.5,o=n+(a=2.5*!!e)+i;break;case"luma":o=n+(i=3);break;case"linden":o=n+(i=4);break;case"almond":o=n+(i=3.5);break;case"sequoia":o=n+(i=3)+(a=3*!!e)}return o}let u=(function(e,t,r,s){let n,a="mint"===s||"linden"===s?"sidebar":"sidebar-content",i=(n="navbar-transition","maple"===s&&(n+="-maple"),n),[o,l]=(()=>{switch(s){case"almond":return["[--scroll-mt:2.5rem]","[--scroll-mt:2.5rem]"];case"luma":return["lg:[--scroll-mt:6rem]","lg:[--scroll-mt:6rem]"];case"sequoia":return["lg:[--scroll-mt:8.5rem]","lg:[--scroll-mt:11rem]"];default:return["lg:[--scroll-mt:9.5rem]","lg:[--scroll-mt:12rem]"]}})();function c(){document.documentElement.classList.add(o)}function d(e){document.getElementById(a)?.style.setProperty("top",`${e}rem`)}function u(e){document.getElementById(a)?.style.setProperty("height",`calc(100vh - ${e}rem)`)}function h(e,t){!e&&t||e&&!t?(c(),document.documentElement.classList.remove(l)):e&&t&&(document.documentElement.classList.add(l),document.documentElement.classList.remove(o))}let m=document.documentElement.getAttribute("data-banner-state"),x=null!=m?"visible"===m:t;switch(s){case"mint":d(r),h(e,x);break;case"palm":case"aspen":case"sequoia":d(r),u(r),h(e,x);break;case"luma":c();break;case"linden":d(r),x&&c();break;case"almond":c(),d(r),u(r)}let g=function(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),function(){window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}}();("requestAnimationFrame"in globalThis?requestAnimationFrame:setTimeout)(()=>{let e;e=!1,e=window.scrollY>50,document.getElementById(i)?.setAttribute("data-is-opaque",`${!!e}`),g()})}).toString();function h(e,t){if(!document.getElementById("footer")?.classList.contains("advanced-footer")||"maple"===t||"willow"===t||"almond"===t||"luma"===t||"sequoia"===t)return;let r=document.documentElement.getAttribute("data-page-mode"),s=document.getElementById("navbar"),n=document.getElementById("navigation-items"),a=document.getElementById("sidebar"),i=document.getElementById("footer"),o=document.getElementById("table-of-contents-content"),l=16*e;if(!i||"center"===r)return;let c=i.getBoundingClientRect().top,d=window.innerHeight-c,u=(n?.clientHeight??0)+l+32*("mint"===t||"linden"===t);if(a&&n)if(d>0){let e=Math.max(0,u-c);a.style.bottom=`${d}px`,a.style.top=`${l-e}px`}else a.style.bottom="",a.style.top=`${e}rem`,a.style.height="auto";o&&s&&(d>0?o.style.top="custom"===r?`${s.clientHeight-d}px`:`${40+s.clientHeight-d}px`:o.style.top="")}function m({theme:e}){let{isLivePreview:t,getDocsConfigOverrides:r}=(0,a.useContext)(o.K),d=r(),h=d?.theme,m=t&&h?h:e,{banner:x}=(0,a.useContext)(i.y),{divisions:g}=(0,a.useContext)(l._),p=g.tabs.length>0,f=!!x,y=(0,a.useMemo)(()=>`(${u})(
  ${p},
  ${f},
  ${c(p,f,m)},
  "${m}",
)`,[p,f,m]);return(0,s.jsx)(n.default,{strategy:"beforeInteractive",id:"_mintlify-scroll-top-script",dangerouslySetInnerHTML:{__html:y},suppressHydrationWarning:!0})}function x({theme:e}){let{isLivePreview:t,getDocsConfigOverrides:r}=(0,a.useContext)(o.K),d=r(),u=d?.theme,m=t&&u?u:e,{banner:x}=(0,a.useContext)(i.y),{divisions:g}=(0,a.useContext)(l._),p=g.tabs.length>0,f=!!x,y=(0,a.useMemo)(()=>`(${h.toString()})(
  ${c(p,f,m)},
  "${m}",
)`,[p,f,m]);return(0,s.jsx)(n.default,{strategy:"beforeInteractive",id:"_mintlify-footer-and-sidebar-scroll-script",dangerouslySetInnerHTML:{__html:y},suppressHydrationWarning:!0})}},46969:(e,t,r)=>{"use strict";r.d(t,{E:()=>c});var s=r(54568),n=r(34920),a=r(7769),i=r(21749),o=r(91392),l=r(81325);let c=({className:e})=>{let t=(0,a.L)(),r=t?.links,c=t?.primary;if(!r&&!c)return null;let d="font-medium text-gray-600 dark:text-gray-400 leading-4 tracking-[-0.12px] uppercase font-family-mono";return(0,s.jsxs)("ul",{className:(0,l.cn)("pt-4",e),children:[c?.type==="button"&&(0,s.jsx)(o.j,{entry:{href:c.href,title:c.label},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,s.jsx)(n.A,{className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400"}),trailingIconHug:!0,className:d}),c?.type==="github"&&(0,s.jsx)(i.sR,{className:"pl-4",iconClassName:"size-3.5",labelClassName:d}),c?.type==="discord"&&(0,s.jsx)(i.xR,{className:"pl-4",iconClassName:"size-3.5",labelClassName:d}),r?.map(e=>{let{type:t}=e;return"github"===t?(0,s.jsx)(i.sR,{className:"pl-4",href:e.href,label:e.label,iconClassName:"size-3.5",labelClassName:d},e.href):"discord"===t?(0,s.jsx)(i.xR,{className:"pl-4",href:e.href,label:e.label,iconClassName:"size-3.5",labelClassName:d},e.href):(0,s.jsx)(o.j,{entry:{href:e.href,title:e.label??"",icon:e.icon},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,s.jsx)(n.A,{className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400"}),trailingIconHug:!0,className:d},e.href)})]})}},49769:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(54568),n=r(90663);function a(e){let{appId:t,children:r}=e;return void 0===t?(0,s.jsx)(s.Fragment,{children:r}):(0,s.jsx)(n.F,{...e,appId:t})}},51749:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>l});var s=r(54568),n=r(24560),a=r(7620),i=r(16816),o=r(54871);function l({children:e,appearance:t,queryParamMode:r,codeblockTheme:l,forceShikiThemeLoad:c,...d}){let{isLivePreview:u,getDocsConfigOverrides:h,livePreviewUpdateId:m}=(0,a.useContext)(o.K),x=h(),g=x?.appearance,p=x?.styling?.codeblocks,f=r&&["dark","light","system"].includes(r),y=u&&p?p:l;(0,i.px)(y,c);let v=f?r:u&&g?.default?g.default:t?.default,b=f?r:u&&g?.strict?g.default:t?.strict?t.default:void 0;return(0,s.jsx)(n.N,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:v,forcedTheme:b,storageKey:"isDarkMode",themes:["dark","light","true","false","system"],value:{true:"dark",false:"light",dark:"dark",light:"light"},enableSystem:!0,...d,children:e},m)}},54001:(e,t,r)=>{"use strict";r.d(t,{SidebarLoginButtonProvider:()=>v,h:()=>y});var s=r(54568),n=r(34920),a=r(19664),i=r.n(a),o=r(7620),l=r(98167),c=r(91382),d=r(53016),u=r(9537),h=r(56991),m=r(33052),x=r(11957),g=r(91392),p=r(81325),f=r(17798);let y=(0,o.createContext)({authLoginButton:null,userAuthLoginButton:null,authLogoutButton:null,userAuthLogoutButton:null});function v({children:e}){let{userInfo:t,userAuth:r,auth:a,isFetchingUserInfo:v}=(0,o.useContext)(f.cy),{docsConfig:b}=(0,o.useContext)(f.H6),{logout:j}=(0,d.W)(),k=(0,c.G)(),w=(0,x.m)(b?.theme),N=(0,o.useCallback)((e,t,r,a)=>a?(0,s.jsx)("button",{onClick:a,className:"w-full text-left",children:(0,s.jsx)(g.j,{entry:{href:"#",title:r},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,s.jsx)(n.A,{className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400"})})}):(0,s.jsx)(g.j,{entry:{href:t,title:r},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,s.jsx)(n.A,{className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400"})}),[]),C=(0,o.useMemo)(()=>{let e,n,a;if(v||t||!r)return null;switch(r.type){case"jwt":n=r.loginUrl,e=(0,s.jsx)(i(),{href:n,className:(0,p.cn)(w,m.x.LoginLink),children:"Log In"});break;case"shared-session":if(!r.loginUrl)return null;n=r.loginUrl,e=(0,s.jsx)(i(),{href:n,className:(0,p.cn)(w,m.x.LoginLink),children:"Log In"});break;case"oauth":n="#",a=()=>(0,u.A)(r),e=(0,s.jsx)("button",{onClick:()=>(0,u.A)(r),className:(0,p.cn)(w,m.x.LoginLink),children:"Log In"});break;default:return null}return N(e,n,"Log In",a)},[v,r,t,N,w]),I=(0,o.useMemo)(()=>{if(t||!a||!1!==v)return null;let e=`/${l.c.BASE_PATH}/login?redirect=${k}`.replace(/\/{2,}/g,"/");return N((0,s.jsx)(i(),{href:e,className:(0,p.cn)(w,m.x.LoginLink),children:"Log In"}),e,"Log In")},[k,a,t,v,N,w]),S=(0,o.useMemo)(()=>t&&a?N((0,s.jsx)("button",{onClick:()=>j({redirectOverride:a.logoutUrl}),className:(0,p.cn)(w,m.x.LogoutLink),children:"Log Out"}),"#","Log Out",()=>j({redirectOverride:a.logoutUrl})):null,[t,a,j,N,w]),E=(0,o.useMemo)(()=>{if(!t||!r)return null;let e=()=>{try{localStorage.removeItem(h.$A)}catch{}window.location.reload()};return N((0,s.jsx)("button",{onClick:e,className:(0,p.cn)(w,m.x.LogoutLink),children:"Log Out"}),"#","Log Out",e)},[t,r,N,w]);return(0,s.jsx)(y.Provider,{value:{userAuthLoginButton:C,authLoginButton:I,authLogoutButton:S,userAuthLogoutButton:E},children:e})}},69445:(e,t,r)=>{"use strict";r.d(t,{Fonts:()=>l});var s=r(54568),n=r(7620),a=r(54871),i=r(81325),o=r(79627);function l({fonts:e,children:t}){let{isLivePreview:r,getDocsConfigOverrides:l}=(0,n.useContext)(a.K),c=l(),d=c?.fonts,u=r&&d?d:e;return(0,s.jsx)("div",{className:(0,i.cn)("relative antialiased text-gray-500 dark:text-gray-400",(0,o.W)(u,"headings")?.weight&&"[[&_:is(h1,h2,h3,h4,h5,h6)]:font-headingsWeight",(0,o.W)(u,"body")?.weight&&"[&_*:not(h1,h2,h3,h4,h5,h6,h1_*,h2_*,h3_*,h4_*,h5_*,h6_*)]:font-bodyWeight"),children:t})}},76982:(e,t,r)=>{"use strict";r.d(t,{SkipToContent:()=>i});var s=r(54568),n=r(88901),a=r(35878);function i(){let e=(0,n.n)();return(0,s.jsx)("a",{href:`#${a.V.ContentArea}`,className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:p-2 focus:text-sm focus:bg-background-light dark:focus:bg-background-dark focus:rounded-md focus:outline-primary dark:focus:outline-primary-light",children:e["aria.skipToMainContent"]})}},79627:(e,t,r)=>{"use strict";function s(e,t){if(e){if("family"in e)return e;else if(t in e){let r=e[t];return"string"==typeof r?{family:r}:r}}}r.d(t,{W:()=>s})},82274:(e,t,r)=>{"use strict";r.d(t,{FontScript:()=>h});var s=r(54568),n=r(7620),a=r(54871),i=r(40009),o=r(7799),l=r(90280);function c({font:e,subdomain:t}){if(!e)return null;if(e.source){let r=function(e,t){let r=e.startsWith("fonts/"),s=e.startsWith("http://")||e.startsWith("https://");return r?`/${e}`:s?e:t?(0,o.P)(t,e):`/${e}`}(e.source,t),n=function(e){switch(e?.toLowerCase()){case"woff":return"font/woff";case"truetype":case"ttf":return"font/ttf";case"opentype":case"otf":return"font/otf";default:return"font/woff2"}}(e.format);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{rel:"preload",href:r,as:"font",type:n,crossOrigin:"anonymous"}),(0,s.jsx)("style",{children:`@font-face {
  font-family: '${e.family}';
  src: url('${r}') format('${e.format}');
  font-weight: ${e.weight};
  font-display: swap;
}`})]})}let r=(e.weight??"400;500;600;700;800").toString().split(";"),n=[...r.map(e=>`0,${e}`),...r.map(e=>`1,${e}`)].join(";");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{href:`https://fonts.googleapis.com/css2?family=${e.family.replace(/\s+/g,"+")}:ital,wght@${n}&display=swap`,rel:"stylesheet"})]})}function d({heading:e,body:t,mono:r}){return(0,s.jsx)("style",{children:`:root {
  ${e?.family?`--font-family-headings-custom: "${e.family}", ${l.zl};`:""}
  ${e?.weight?`--font-weight-headings-custom: ${e.weight};`:""}
  ${t?.family?`--font-family-body-custom: "${t.family}", ${l.zl};`:""}
  ${t?.weight?`--font-weight-body-custom: ${t.weight};`:""}
  ${r?.family?`--font-family-mono-custom: "${r.family}", ${l.vE};`:""}
}
${r?.weight?`.font-family-mono { font-weight: ${r.weight}; }`:""}`})}var u=r(79627);function h({theme:e,fonts:t,subdomain:r}){let{isLivePreview:o,getDocsConfigOverrides:l,livePreviewUpdateId:h}=(0,n.useContext)(a.K),m=l(),x=m?.theme,g=(0,i.HJ)(o&&x?x:e).fonts,p=m?.fonts;if(!t&&!g&&!p)return null;let f=o&&p?p:t??g,y=(0,u.W)(f,"heading"),v=(0,u.W)(f,"body"),b=g?.mono;return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(c,{font:y,subdomain:r}),(0,s.jsx)(c,{font:v,subdomain:r}),(0,s.jsx)(c,{font:b,subdomain:r}),(0,s.jsx)(d,{heading:y,body:v,mono:b})]},h)}},83176:(e,t,r)=>{"use strict";r.d(t,{I:()=>l,default:()=>c});var s=r(54568),n=r(8494),a=r(7620);let i="mintlify-flag-overrides";var o=r(22904);let l=(0,a.createContext)({flags:(0,n.flagsClient)([]),overrides:{},isEnabled:()=>!1,setOverride:()=>{}});function c({children:e,toggles:t}){let r=(0,a.useMemo)(()=>(0,n.flagsClient)(t),[t]),[c,d]=(0,a.useState)(()=>{let e=(0,o.Gq)(i);return e?JSON.parse(e):{}}),u=(0,a.useCallback)((e,t)=>{d(r=>{let s={...r};return void 0===t?delete s[e]:s[e]=t,(0,o.SO)(i,JSON.stringify(s)),s})},[]),h=(0,a.useCallback)(e=>void 0!==c[e]?c[e]:r.isEnabled(e),[r,c]);return(0,s.jsx)(l.Provider,{value:{flags:r,overrides:c,isEnabled:h,setOverride:u},children:e})}},84246:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});let s={isCustom:"peer is-custom",isCenter:"peer is-center",isWide:"peer is-wide",isFrame:"peer is-frame",isNotCustom:"peer is-not-custom",isNotCenter:"peer is-not-center",isNotWide:"peer is-not-wide",isNotFrame:"peer is-not-frame",hiddenIfCustom:"peer-[.is-custom]:!hidden peer-[.is-custom]:sm:!hidden peer-[.is-custom]:md:!hidden peer-[.is-custom]:lg:!hidden peer-[.is-custom]:xl:!hidden",hiddenIfNotCustom:"peer-[.is-not-custom]:!hidden peer-[.is-not-custom]:sm:!hidden peer-[.is-not-custom]:md:!hidden peer-[.is-not-custom]:lg:!hidden peer-[.is-not-custom]:xl:!hidden",hiddenIfCenter:"peer-[.is-center]:!hidden peer-[.is-center]:sm:!hidden peer-[.is-center]:md:!hidden peer-[.is-center]:lg:!hidden peer-[.is-center]:xl:!hidden",firstChildHiddenIfCustom:"peer-[.is-custom]:[&>div:first-child]:!hidden peer-[.is-custom]:[&>div:first-child]:sm:!hidden peer-[.is-custom]:[&>div:first-child]:md:!hidden peer-[.is-custom]:[&>div:first-child]:lg:!hidden peer-[.is-custom]:[&>div:first-child]:xl:!hidden",firstChildHiddenIfCenter:"peer-[.is-center]:[&>div:first-child]:!hidden peer-[.is-center]:[&>div:first-child]:sm:!hidden peer-[.is-center]:[&>div:first-child]:md:!hidden peer-[.is-center]:[&>div:first-child]:lg:!hidden peer-[.is-center]:[&>div:first-child]:xl:!hidden"}}}]);