@helpai/elements 6.11.1 → 6.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/elements.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var ag=Object.defineProperty;var sg=(e,t,r)=>t in e?ag(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var le=(e,t,r)=>sg(e,typeof t!="symbol"?t+"":t,r);var xe,qc,ms,Tr,_s,ui,Uc,ci,Bc,gs,fs,lg,to=Symbol.for("pv"),pi={},_i=[],cg=/^m(i|n|o|s|text|space)$/,fi=Array.isArray,vs=_i.slice,Kr=Object.assign;function Gr(e){e&&e.parentNode&&e.remove()}function Ar(e,t,r){var n,o,s,a={},i=arguments.length;for(s in t)s=="key"?n=t[s]:s=="ref"&&typeof e!="function"?o=t[s]:a[s]=t[s];return i>2&&(a.children=i>3?vs.call(arguments,2):r),eo(e,a,n,o,null)}function eo(e,t,r,n,o){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:to,__v:o||++qc,__i:-1,__u:0};return!o&&xe.vnode&&xe.vnode(s),s}function he(e){return e.children}function Xt(e,t){this.props=e,this.context=t,this.__g=0}function Ir(e,t){if(t==null)return e.__&&Ir(e.__,e.__i+1);for(var r;t<e.__k.length;t++)if((r=e.__k[t])&&r.__e)return r.__e;return typeof e.type!="function"||e.props.__P?null:Ir(e)}function dg(e){var t,r=e.__v,n=r.__e,o=[],s=[],a=e.__P;a&&((t=Kr({constructor:to},r)).__v=r.__v+1,xe.vnode&&xe.vnode(t),ys(a,t,r,e.__n,a.namespaceURI,32&r.__u?[n]:null,o,n||Ir(r),32&r.__u,s),t.__v=r.__v,t.__.__k[t.__i]=t,Wc(o,t,s),r.__=r.__e=null,t.__e!=n&&zc(t))}function zc(e){if((e=e.__)&&e.__c&&!e.props.__P)return e.__e=null,e.__k.some(function(t){return t&&(e.__e=t.__e)}),zc(e)}function $c(e){(8&e.__g||(e.__g|=8,Tr.push(e),ui++))&&_s==xe.debounceRendering||((_s=xe.debounceRendering)||queueMicrotask)(Fc)}function Fc(){try{for(var e,t=1;Tr.length;)Tr.length>t&&Tr.sort(Uc),e=Tr.shift(),t=Tr.length,8&e.__g&&dg(e)}finally{(ui=Tr.length)&&(_s||queueMicrotask)(Fc)}}function Hc(e,t,r,n,o,s,a,i,c,u,p){var _,d,f,v,g,w,b=n.__k||_i,y=t.length;for(c=ug(r,t,b,c,y),_=0;_<y;_++)(f=r.__k[_])!=null&&(d=~f.__i&&b[f.__i]||pi,f.__i=_,w=ys(e,f,d,o,s,a,i,c,u,p),v=f.__e,(d.ref!=f.ref||8&d.__u)&&(d.ref&&bs(d.ref,null,f,d),f.ref&&p.push(f.ref,f.__c||v,f)),g=g||v,4&f.__u?(c=jc(f,c,e,!d.__v),d.__e&&(d.__e=null)):typeof f.type=="function"&&w!==void 0?c=w:v&&(c=v.nextSibling),f.__u&=-21);return r.__e=g,c}function ug(e,t,r,n,o){var s,a,i,c,u,p,_,d,f,v=r.length,g=v,w=0,b=0,y=e.__k=Array(o);for(s=0;s<o;s++)(a=t[s])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a!="object"||a.constructor===String?a=y[s]=eo(null,a):fi(a)?a=y[s]=eo(he,{children:a}):a.constructor===to&&a.__b?a=y[s]=eo(a.type,a.props,a.key,a.ref,a.__v):y[s]=a,c=s+w,a.__=e,a.__b=e.__b+1,i=null,~(u=a.__i=pg(a,r,c,g))&&(g--,(i=r[u])&&(i.__u|=2)),i&&i.__v?(a.__u|=16,u==c-1?w--:u==c+1?w++:u!=c&&(u>c?w--:w++,b=1)):(~u||(o>v?w--:o<v&&w++),typeof a.type!="function"&&(a.__u|=4))):y[s]=null;if(b){for(p=[],_=[],s=0;s<o;s++)if((a=y[s])&&16&a.__u){for(w=0,d=p.length;w<d;)p[f=w+d>>1]<a.__i?w=f+1:d=f;p[w]=a.__i,_[s]=w+1}for(w=p.length;s--;)_[s]&&(_[s]==w?w--:y[s].__u|=4)}if(g)for(s=0;s<v;s++)!(i=r[s])||2&i.__u||(i.__e==n&&(n=Ir(i)),Ps(i,i));return n}function jc(e,t,r,n){var o,s,a,i;if(typeof e.type=="function"){if(e.props.__P)return t;if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&(o[s].__=e,t=jc(o[s],t,r,!1));return t}for(t&&!t.parentNode&&(t=Ir(e))&&!t.parentNode&&(t=null),a=e.__e,i=t;i&&i.nodeType==8;)i=i.nextSibling;for(a!=i&&(!n&&r.moveBefore&&a.parentNode?r.moveBefore(a,t):r.insertBefore(a,t||null)),t=a;(t=t&&t.nextSibling)&&t.nodeType==8&&!t.data.startsWith("$s"););return t}function hs(e,t){return t=t||[],e!=null&&typeof e!="boolean"&&(fi(e)?e.some(function(r){hs(r,t)}):t.push(e)),t}function pg(e,t,r,n){var o,s=e.key,a=e.type,i=t[r],c=i&&!(2&i.__u);if(i===null&&s==null||c&&s==i.key&&a==i.type)return r;if(n>(c?1:0)){for(o=r-1;o>=0;o--)if((i=t[o])&&!(2&i.__u)&&s==i.key&&a==i.type)return o;for(o=r+1;o<t.length;o++)if((i=t[o])&&!(2&i.__u)&&s==i.key&&a==i.type)return o}return-1}function Dc(e,t,r){r==null&&(r=""),t[0]=="-"?e.setProperty(t,r):e[t]=r}function li(e,t,r,n,o){var s,a;if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Dc(e.style,t);if(r)for(t in r)n&&r[t]==n[t]||Dc(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")typeof r!="function"&&(r=null),typeof n!="function"&&(n=null),(e.__e||(e.__e={}))[t]=r,r&&n||(a=fs[t]||(fs[t]=_g(t)),(e.__a||(e.__a={}))[t]=gs,s=t!=(t=t.replace(Bc,"$1")),(t=t.slice(2))[0]<"a"&&(t=t.toLowerCase()),r?e.addEventListener(t,a,s):e.removeEventListener(t,a,s));else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{return void(e[t]=r??"")}catch{}if(typeof r=="function")return;r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r)}}function _g(e){return function(t){var r=this.__e;if(r){if(r=r[e],t[ci]==null)t[ci]=gs++;else if(t[ci]<this.__a[e])return;return r(xe.event?xe.event(t):t)}}}function ys(e,t,r,n,o,s,a,i,c,u){var p,_,d,f,v,g,w,b,y,x,P,k,h,m,S,A,I,R,C=t.type;if(t.constructor!==to)return null;128&r.__u&&(c=32&r.__u,p=r.__c.__z)&&(t.__u|=c,_=s=[],p.nodeType==8?i=di(p,s):s.push(p),i=s[0]||i),(p=xe.__b)&&p(t);e:if(typeof C=="function"){d=a.length;try{if(b=t.props,y=(p=C.prototype)&&p.render,x=(p=C.contextType)&&n[p.__c],P=p?x?x.props.value:p.__:n,(f=r.__c)?(t.__c=f,2&f.__g&&(f.__g|=1)):(y?t.__c=f=new C(b,P):(t.__c=f=new Xt(b,P),f.constructor=C,f.render=mg),x&&x.sub(f),f.state||(f.state={}),f.__n=n,f.__g|=8,f.__h=[],f.__k=[]),y&&(f.__s||(f.__s=f.state),C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=Kr({},f.__s)),Kr(f.__s,C.getDerivedStateFromProps(b,f.__s)))),v=f.props,g=f.state,f.__v=t,r.__c){if(b!==v&&y&&!C.getDerivedStateFromProps&&f.componentWillReceiveProps&&f.componentWillReceiveProps(b,P),t.__v==r.__v&&!(8&f.__g)||!(4&f.__g)&&f.shouldComponentUpdate&&f.shouldComponentUpdate(b,f.__s,P)===!1){t.__v!=r.__v&&(f.props=b,f.state=f.__s,f.__g&=-9),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(M){M&&(M.__=t)}),_i.push.apply(f.__h,f.__k),f.__k=[],f.__h.length&&a.push(f),i=Ir(r);break e}f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,P),y&&f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(v,g,w)})}else y&&!C.getDerivedStateFromProps&&f.componentWillMount&&f.componentWillMount(),y&&f.componentDidMount&&f.__h.push(f.componentDidMount);f.context=P,f.props=b,f.__P=e,f.__g&=-5,k=xe.__r,h=y?25:0;do f.__g&=-9,k&&k(t),p=f.render(f.props,f.state=f.__s,f.context);while(8&f.__g&&++h<25);y&&(_i.push.apply(f.__h,f.__k),f.__k=[]),f.state=f.__s,f.getChildContext&&(n=Kr({},n,f.getChildContext())),y&&r.__c&&f.getSnapshotBeforeUpdate&&(w=f.getSnapshotBeforeUpdate(v,g)),m=p&&p.type===he&&p.key==null?p.props.children:p,b.__P&&(p=i,o=(e=b.__P).namespaceURI,c=s=null,r.props&&r.props.__P!=e&&(r.__k.some(function(M){M&&Ps(M,M)}),r.__k=null),i=r.__k?Ir(r,0):null),i=Hc(e,fi(m)?m:[m],t,r,n,o,s,a,i,c,u),b.__P&&(t.__e=null,i=p),t.__u&=-161,_&&_.some(Gr),f.__h.length&&a.push(f),1&f.__g&&(f.__g&=-4)}catch(M){if(a.length=d,t.__v=null,c||s)if(M&&M.then){if(t.__u|=128|c,s){for(~(I=s.indexOf(i||void 0))||(I=s.length);(R=s[I-1])&&R.nodeType==8;)I--;for(;I<s.length;I++)if(R=s[I])if(s[I]=null,S){if(R==A)break}else{if(R.nodeType!=8)break;R.data.startsWith("$s")&&(A=di(S=R))}}if(!S){for(;i&&i.nodeType==8&&i.nextSibling;)i=i.nextSibling;S=i}(p=di(S=t.__c.__z||(t.__c.__z=S)))?(t.__e=S,i=p):t.__e=i,i=i&&i.nextSibling}else s&&s.some(Gr);else t.__e=r.__e;t.__k||(t.__k=r.__k||[]),M&&M.then||Vc(t),xe.__e(M,t,r)}}else i=t.__e=fg(r.__e,t,r,n,o,s,a,c,u,e);return(p=xe.diffed)&&p(t),i}function di(e,t){if(e&&e.nodeType==8&&e.data.startsWith("$s"))for(var r=1;e=e.nextSibling;){if(e.nodeType==8){if(e.data.startsWith("$s"))r++;else if(e.data.startsWith("/$s")&&!--r)return e}t&&t.push(e)}}function Vc(e){e&&(e.__c&&(e.__c.__g|=4),e.__k&&e.__k.some(Vc))}function Wc(e,t,r){for(var n=0;n<r.length;)bs(r[n++],r[n++],r[n++]);xe.__c&&xe.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){xe.__e(s,o.__v)}})}function fg(e,t,r,n,o,s,a,i,c,u){var p,_,d,f,v,g,w,b,y=r.props||pi,x=t.props,P=t.type;if(P=="svg"?o="http://www.w3.org/2000/svg":P=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s){for(p=0;p<s.length;p++)if((v=s[p])&&(P?v.localName==P:v.nodeType==3)){e=v,s[p]=null;break}}if(!e){if(b=u.ownerDocument||document,!P)return b.createTextNode(x);e=b.createElementNS(o,P,x.is?x:u),i&&(xe.__m&&xe.__m(t,s),i=!1),s=null}if(P){if(u=P=="template"&&e.content||e,s=P=="textarea"&&x.defaultValue!=null?null:s&&vs.call(u.childNodes),!i&&s)for(y={},p=0;p<e.attributes.length;p++)y[(v=e.attributes[p]).name]=v.value;for(p in y)v=y[p],p=="dangerouslySetInnerHTML"?d=v:p=="children"||p in x||p=="value"&&"defaultValue"in x||p=="checked"&&"defaultChecked"in x||li(e,p,null,v,o);for(p in x)v=x[p],p=="children"?f=v:p=="dangerouslySetInnerHTML"?_=v:p=="value"?g=v:p=="checked"?w=v:i&&typeof v!="function"||y[p]===v||li(e,p,v,y[p],o);_?(i||d&&(_.__html==d.__html||_.__html==e.innerHTML)||(e.innerHTML=_.__html),t.__k=[]):(d&&(e.textContent=""),(P=="foreignObject"||o=="http://www.w3.org/1998/Math/MathML"&&cg.test(P))&&(o="http://www.w3.org/1999/xhtml"),Hc(u,fi(f)?f:[f],t,r,n,o,s,a,s?s[0]:r.__k&&Ir(r,0),i,c),s&&s.some(Gr)),i&&P!="textarea"||(p="value",P=="progress"&&g==null?e.removeAttribute(p):g==null||g===e[p]&&(P!="progress"||g)||li(e,p,g,y[p],o),p="checked",w!=null&&w!=e[p]&&li(e,p,w,y[p],o))}else y===x||i&&e.data==x||(e.data=x);return e}function bs(e,t,r,n){try{typeof e=="function"?t?t.__x=e(t)||1:n&&(n=n.__c||n.__e)&&(t=n.__x)&&(n.__x=null,typeof t=="function"?t():e(null)):e.current=t}catch(o){xe.__e(o,r)}}function Ps(e,t,r){var n,o,s,a;if(xe.unmount&&xe.unmount(e),!(n=e.ref)||n.current&&n.current!=e.__e||bs(n,null,t,e),n=e.__c){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){xe.__e(i,t)}n.__P=n.__n=null}if(n=e.__k)for(a=0;a<n.length;a++)n[a]&&Ps(n[a],t,typeof e.type!="function"||r&&!e.props.__P);!r&&(n=e.__c)&&(n=n.__z)&&(o=di(n,s=[]))&&(n==e.__e&&s.some(Gr),Gr(o),Gr(n)),r||Gr(e.__e),e.__e=e.__c=e.__=null}function mg(e,t,r){return this.constructor(e,r)}function Rr(e,t){var r,n,o,s;xe.__&&xe.__(e,t),t.nodeType==9&&(t=t.documentElement),n=(r=e&&32&e.__u)?null:t.__k,t.__k=eo(he,{children:[e]}),o=[],s=[],ys(t,t.__k,n||pi,pi,t.namespaceURI,n?null:t.firstChild?vs.call(t.childNodes):null,o,n?n.__e:t.firstChild,r,s),Wc(o,t.__k,s),t.__k.props.children=null}xe={__e:function(e,t,r,n){for(var o,s,a;t=t.__;)if((o=t.__c)&&!(1&o.__g)){o.__g|=4;try{if((a=(s=o.constructor)&&s.getDerivedStateFromError)&&o.setState(s.getDerivedStateFromError(e)),o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=1),a&&8&o.__g)return void(o.__g|=2)}catch(i){e=i}}throw ui=0,e}},qc=0,ms=function(e){return e!=null&&e.constructor===to},Xt.prototype.setState=function(e,t){var r=this.__s;r&&r!=this.state||(r=this.__s=Kr({},this.state)),typeof e=="function"&&(e=e(Kr({},r),this.props)),e&&(Kr(r,e),this.__v&&(t&&this.__k.push(t),$c(this)))},Xt.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),$c(this))},Xt.prototype.render=he,Tr=[],ui=0,Uc=function(e,t){return e.__v.__b-t.__v.__b},ci=Symbol(),Bc=/(PointerCapture)$|Capture$/i,gs=0,fs={},lg=0;var gg=["en","fr","es","ar","he","zh"];function Gc(e){let t=e?.split("-")[0]?.toLowerCase();return gg.find(r=>r===t)??"en"}function Ss(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function xs(e){return Ss(e)?e.id??e.key:void 0}function ws(e,t){return Ss(e)&&Ss(t)?Object.fromEntries([...new Set([...Object.keys(e),...Object.keys(t)])].map(r=>[r,ws(e[r],t[r])])):Array.isArray(e)&&Array.isArray(t)&&t.length>0&&t.every(r=>xs(r)!==void 0)?e.map(r=>ws(r,t.find(n=>xs(n)===xs(r)))):t==null||typeof t=="string"&&!t.trim()?e:t}function Qr(e,t){let r=t?.toLowerCase(),n=r?.split("-")[0],o=e.translations??[],s=o.find(c=>c.locale.toLowerCase()===r)??o.find(c=>c.locale.toLowerCase().split("-")[0]===n);if(!s)return e;let{locale:a,...i}=s;return ws(e,i)}var mi={attach:"Attach files",file:"File",attachmentMimeRejected:"{name} isn't a file type this chat accepts.",attachmentTooLarge:"{name} is too large. Files can be up to {max} together.",poweredBy:"Powered by {name}",attachmentTooMany:"The attachment limit is {count}.",attachmentUploadFailed:"{name} couldn't be uploaded.",conversationLoading:"Loading chat\u2026",loadPreviousMessages:"Load previous messages",close:"Close",collapse:"Collapse",collapseSidebar:"Collapse sidebar",composerPlaceholder:"Type a message\u2026",dateLastWeek:"Last 7 days",dateOlder:"Older",dateToday:"Today",dateYesterday:"Yesterday",dropZone:"Drop files to attach",dropZoneRejected:"These files can't be attached here",errorGeneric:"Something went wrong",errorRateLimited:"Too many requests \u2014 please try again in a moment.",errorRateLimitedIn:"Too many requests \u2014 please try again in {seconds} s.",errorOffline:"Can't reach the server. Check your connection and try again.",errorServer:"Something went wrong on our side. Please try again.",errorOriginNotAllowed:"This chat isn't set up for this website yet.",errorMessageTooLong:"That message is too long. Shorten it and send it again.",errorReconnecting:"Connection lost. Reconnecting\u2026",errorRetry:"Retry",expand:"Expand",expandSidebar:"Expand sidebar",exitFullscreen:"Exit fullscreen",fullscreen:"Fullscreen",history:"History",historyBack:"Back to chat",historyEmpty:"No previous chats yet",historyLoading:"Loading your chats\u2026",historyContinue:"Continue the chat",historyTitle:"Chat history",loadMoreConversations:"Load more conversations",language:"Language",launcherOpen:"Open chat",launcherAsk:"Ask {name}",micBlocked:"The microphone is blocked for this site, so voice input can't start.",micStart:"Start voice input",micStop:"Stop voice input",moreActions:"More actions",newConversation:"New chat",panelTitle:"Chat",popOut:"Open in new tab",resizeHandle:"Drag to resize",scrollToBottom:"Scroll to latest",send:"Send",queueMessage:"Queue message",removeQueuedMessage:"Remove queued message",removeAttachment:"Remove {name}",suggestedReplies:"Suggested replies",compactingContext:"Optimizing conversation context\u2026",soundOff:"Sound off",soundOn:"Sound on",talkToOperator:"Talk to a person",connectingOperator:"Connecting you to a person\u2026",noOperatorAvailable:"No one's available right now \u2014 leave your details and we'll follow up.",chattingWithOperator:"You're chatting with {operator}",operatorBadgeTitle:"Live chat",chatNotice:"You're chatting with an AI assistant.",cancelOperatorRequest:"Keep chatting with the AI",loginPrompt:"Log in for faster, more personalized support",loginAction:"Log in",loginRequired:"Log in to chat with us",loginExpired:"Your login expired. Log in to continue this chat.",loginExpiredGuest:"Your login expired. Log in to continue this chat, or start a new conversation as a guest.",startAsGuest:"Start new conversation",loggedInAs:"Logged in as {name}",loggedIn:"Logged in",dismissLoginPrompt:"Hide",emailTranscript:"Email transcript",emailTranscriptPrompt:"Get a copy of this conversation by email.",emailTranscriptEmailLabel:"Email address",emailTranscriptSend:"Send transcript",emailTranscriptSending:"Sending\u2026",emailTranscriptSent:"Sent to {email}.",emailTranscriptAlreadySent:"This conversation was already emailed. Send a new message to email it again.",emailTranscriptLimited:"You've reached the limit for now. Try again later.",emailTranscriptFailed:"Couldn't send it. Try again.",emailTranscriptNotDelivered:"Couldn't send to this address. Check it and try again.",emailTranscriptCancel:"Cancel",emailTranscriptDone:"Done",stop:"Stop",theme:"Theme",themeAuto:"Auto",themeDark:"Dark",themeLight:"Light",textSize:"Text size",textSizeSmall:"Small",textSizeNormal:"Normal",textSizeLarge:"Large",loading:"Loading\u2026",visualPreparing:"Preparing visual\u2026",visualError:"This visual could not be displayed.",visualPartial:"Some parts of this visual could not be displayed.",visualSoldOut:"Sold out",visualCartEmpty:"Your cart is empty.",visualQuantity:"Qty",visualChoose:"Choose",thinking:"Thinking\u2026",thought:"Thought",thoughtFor:"Thought for {time}",toolResult:"Result",sources:"Sources",feedbackUp:"Good response",feedbackDown:"Bad response",feedbackThanks:"Thanks for your feedback",copy:"Copy",copied:"Copied",copyTicketReference:"Ticket {reference}, copy",tabHome:"Home",tabConversations:"Chats",tabHelp:"Help",tabNews:"News",modulesEmpty:"Nothing here yet",chatUnavailable:"This chat isn't available right now",moduleBack:"Back",contentLoading:"Loading\u2026",contentHelpful:"Was this helpful?",homeGreeting:"How can we help?",homeGreetingNamed:"Hi {name} \u{1F44B}",homeGreetingLead:"How can we help?",homeSearchPlaceholder:"Search for help",homeAskPlaceholder:"Ask a question\u2026",homeWhatsNew:"What's new",homeContentTitle:"Popular articles",homeStatus:"Status",helpTitle:"Help",helpSearchPlaceholder:"Search for help",helpEmpty:"No help articles yet",helpLoading:"Loading help\u2026",helpSearchEmpty:"No results for \u201C{query}\u201D",helpShowMore:"Show more",newsTitle:"News",newsEmpty:"No news yet",newsLoading:"Loading news\u2026",newsShowMore:"Show more",newsUnseen:"New post",unread:"Unread",formRequired:"This field is required",formInvalidEmail:"Enter a valid email address",formInvalidTel:"Enter a valid phone number",formInvalidNumber:"Enter a valid number",formOtherPlaceholder:"Type your answer\u2026",inputRequired:"Questions for you",askFallbackQuestion:"Please provide the missing information.",inputBadge:"Questions",inputAnswered:"Answered",inputSkipped:"Skipped",showOptions:"Show options",hideOptions:"Hide options",qtypeText:"Your answer",qtypeEmail:"Email address",qtypePhone:"Phone number",qtypeNumber:"Number",qtypeDate:"Date",qtypeChooseOne:"Pick one",qtypeChooseAny:"Pick any",qtypeBoolean:"Yes / No",inputSubmit:"Submit answers",inputSubmitHint:"Enter to send \xB7 Shift+Enter = new line",inputSkip:"Skip",confirmYes:"Yes",confirmNo:"No",approve:"Approve",decline:"Decline",changeAnswer:"Change answer",approvalPrompt:"{action}?",approvalEditHint:"You can change your answer until this step continues.",stepInput:"Input",stepWorking:"Working",stepWorkingOnIt:"Working on it\u2026",stepNeedsYourApproval:"Needs your approval",stepWaitingForVisitor:"Waiting for the visitor",stepApproved:"Approved",stepDeclined:"Declined",stepReplaced:"Replaced",stepFailed:"Failed",stepDidNotWork:"Didn't work",decidedYouApproved:"You approved",decidedYouDeclined:"You declined",decidedVisitorApproved:"Visitor approved",decidedVisitorDeclined:"Visitor declined",decidedTeamApproved:"Approved by a team member",decidedTeamDeclined:"Declined by a team member",decidedMemberApproved:"Approved by {name}",decidedMemberDeclined:"Declined by {name}",stepRawData:"Raw data",decidedRulesApproved:"Auto-approved",decidedRulesDeclined:"Auto-declined",edit:"Edit",toolStepsFailed:"{count} failed",statusStopped:"Stopped",toolStepsStopped:"Stopped after {count} steps",toolStepsStoppedOne:"Stopped after 1 step"},vg={attach:"Joindre des fichiers",file:"Fichier",attachmentMimeRejected:"{name} n'est pas un type de fichier accept\xE9 ici.",attachmentTooLarge:"{name} est trop volumineux. Les fichiers peuvent faire jusqu'\xE0 {max} au total.",poweredBy:"Propuls\xE9 par {name}",attachmentTooMany:"Limite de pi\xE8ces jointes : {count}.",attachmentUploadFailed:"{name} n'a pas pu \xEAtre envoy\xE9.",conversationLoading:"Chargement du chat\u2026",loadPreviousMessages:"Charger les messages pr\xE9c\xE9dents",close:"Fermer",collapse:"R\xE9duire",collapseSidebar:"R\xE9duire la barre lat\xE9rale",composerPlaceholder:"\xC9crivez un message\u2026",dateLastWeek:"7 derniers jours",dateOlder:"Plus ancien",dateToday:"Aujourd'hui",dateYesterday:"Hier",dropZone:"D\xE9posez les fichiers \xE0 joindre",dropZoneRejected:"Ces fichiers ne peuvent pas \xEAtre joints ici",errorGeneric:"Une erreur s'est produite",errorRateLimited:"Trop de requ\xEAtes \u2014 veuillez r\xE9essayer dans un instant.",errorRateLimitedIn:"Trop de requ\xEAtes \u2014 veuillez r\xE9essayer dans {seconds} s.",errorOffline:"Impossible de joindre le serveur. V\xE9rifiez votre connexion et r\xE9essayez.",errorServer:"Un probl\xE8me est survenu de notre c\xF4t\xE9. Veuillez r\xE9essayer.",errorOriginNotAllowed:"Ce chat n'est pas encore configur\xE9 pour ce site.",errorMessageTooLong:"Ce message est trop long. Raccourcissez-le et renvoyez-le.",errorReconnecting:"Connexion perdue. Reconnexion\u2026",errorRetry:"R\xE9essayer",expand:"Agrandir",expandSidebar:"D\xE9velopper la barre lat\xE9rale",exitFullscreen:"Quitter le plein \xE9cran",fullscreen:"Plein \xE9cran",history:"Historique",historyBack:"Retour au chat",historyEmpty:"Aucun chat pour le moment",historyContinue:"Poursuivre le chat",historyLoading:"Chargement de vos chats\u2026",historyTitle:"Historique des chats",loadMoreConversations:"Charger plus de conversations",language:"Langue",launcherOpen:"Ouvrir le chat",launcherAsk:"Demander \xE0 {name}",micBlocked:"Le micro est bloqu\xE9 pour ce site : la saisie vocale ne peut pas d\xE9marrer.",micStart:"D\xE9marrer la saisie vocale",micStop:"Arr\xEAter la saisie vocale",moreActions:"Plus d'actions",newConversation:"Nouveau chat",panelTitle:"Chat",popOut:"Ouvrir dans un nouvel onglet",resizeHandle:"Glisser pour redimensionner",scrollToBottom:"Aller au plus r\xE9cent",send:"Envoyer",queueMessage:"Mettre le message en attente",removeQueuedMessage:"Retirer le message en attente",removeAttachment:"Retirer {name}",suggestedReplies:"R\xE9ponses sugg\xE9r\xE9es",compactingContext:"Optimisation du contexte de la conversation\u2026",soundOff:"Son d\xE9sactiv\xE9",soundOn:"Son activ\xE9",talkToOperator:"Parler \xE0 une personne",connectingOperator:"Mise en relation avec une personne\u2026",noOperatorAvailable:"Personne n'est disponible pour le moment \u2014 laissez vos coordonn\xE9es et nous reviendrons vers vous.",chattingWithOperator:"Vous discutez avec {operator}",operatorBadgeTitle:"Chat en direct",chatNotice:"Vous discutez avec un assistant IA.",cancelOperatorRequest:"Continuer avec l'IA",loginPrompt:"Connectez-vous pour une aide plus rapide et personnalis\xE9e",loginAction:"Se connecter",loginRequired:"Connectez-vous pour discuter avec nous",loginExpired:"Votre connexion a expir\xE9. Connectez-vous pour poursuivre cette conversation.",loginExpiredGuest:"Votre connexion a expir\xE9. Connectez-vous pour poursuivre cette conversation, ou d\xE9marrez-en une nouvelle en tant qu'invit\xE9.",startAsGuest:"D\xE9marrer une nouvelle conversation",loggedInAs:"Connect\xE9 en tant que {name}",loggedIn:"Connect\xE9",dismissLoginPrompt:"Masquer",emailTranscript:"Envoyer la transcription",emailTranscriptPrompt:"Recevez une copie de cette conversation par e-mail.",emailTranscriptEmailLabel:"Adresse e-mail",emailTranscriptSend:"Envoyer la transcription",emailTranscriptSending:"Envoi\u2026",emailTranscriptSent:"Envoy\xE9 \xE0 {email}.",emailTranscriptAlreadySent:"Cette conversation a d\xE9j\xE0 \xE9t\xE9 envoy\xE9e. Envoyez un nouveau message pour l'envoyer \xE0 nouveau.",emailTranscriptLimited:"Vous avez atteint la limite pour le moment. R\xE9essayez plus tard.",emailTranscriptFailed:"Envoi impossible. R\xE9essayez.",emailTranscriptNotDelivered:"Envoi impossible \xE0 cette adresse. V\xE9rifiez-la et r\xE9essayez.",emailTranscriptCancel:"Annuler",emailTranscriptDone:"Termin\xE9",stop:"Arr\xEAter",theme:"Th\xE8me",themeAuto:"Auto",themeDark:"Sombre",themeLight:"Clair",textSize:"Taille du texte",textSizeSmall:"Petite",textSizeNormal:"Normale",textSizeLarge:"Grande",loading:"Chargement\u2026",visualPreparing:"Pr\xE9paration du visuel\u2026",visualError:"Ce visuel n\u2019a pas pu \xEAtre affich\xE9.",visualPartial:"Certaines parties de ce visuel n\u2019ont pas pu \xEAtre affich\xE9es.",visualSoldOut:"\xC9puis\xE9",visualCartEmpty:"Votre panier est vide.",visualQuantity:"Qt\xE9",visualChoose:"Choisissez",thinking:"R\xE9flexion\u2026",thought:"R\xE9flexion",thoughtFor:"R\xE9flexion : {time}",toolResult:"R\xE9sultat",sources:"Sources",feedbackUp:"Bonne r\xE9ponse",feedbackDown:"Mauvaise r\xE9ponse",feedbackThanks:"Merci pour votre retour",copy:"Copier",copied:"Copi\xE9",copyTicketReference:"Ticket {reference}, copier",tabHome:"Accueil",tabConversations:"Chats",tabHelp:"Aide",tabNews:"Actualit\xE9s",modulesEmpty:"Rien pour le moment",chatUnavailable:"Ce chat n'est pas disponible pour le moment",moduleBack:"Retour",contentLoading:"Chargement\u2026",contentHelpful:"Cela vous a-t-il aid\xE9 ?",homeGreeting:"Comment pouvons-nous vous aider ?",homeGreetingNamed:"Bonjour {name} \u{1F44B}",homeGreetingLead:"Comment pouvons-nous vous aider ?",homeSearchPlaceholder:"Rechercher de l'aide",homeAskPlaceholder:"Posez une question\u2026",homeWhatsNew:"Nouveaut\xE9s",homeContentTitle:"Articles populaires",homeStatus:"Statut",helpTitle:"Aide",helpSearchPlaceholder:"Rechercher de l'aide",helpEmpty:"Aucun article d'aide pour le moment",helpLoading:"Chargement de l'aide\u2026",helpSearchEmpty:"Aucun r\xE9sultat pour \xAB\xA0{query}\xA0\xBB",helpShowMore:"Afficher plus",newsTitle:"Actualit\xE9s",newsEmpty:"Aucune actualit\xE9 pour le moment",newsLoading:"Chargement des actualit\xE9s\u2026",newsShowMore:"Afficher plus",newsUnseen:"Nouvelle publication",unread:"Non lu",formRequired:"Ce champ est obligatoire",formInvalidEmail:"Saisissez une adresse e-mail valide",formInvalidTel:"Saisissez un num\xE9ro de t\xE9l\xE9phone valide",formInvalidNumber:"Saisissez un nombre valide",formOtherPlaceholder:"Saisissez votre r\xE9ponse\u2026",inputRequired:"Questions pour vous",askFallbackQuestion:"Veuillez fournir les informations manquantes.",inputBadge:"Questions",inputAnswered:"R\xE9pondu",inputSkipped:"Ignor\xE9",showOptions:"Afficher les options",hideOptions:"Masquer les options",qtypeText:"Votre r\xE9ponse",qtypeEmail:"Adresse e-mail",qtypePhone:"Num\xE9ro de t\xE9l\xE9phone",qtypeNumber:"Nombre",qtypeDate:"Date",qtypeChooseOne:"Choisir une",qtypeChooseAny:"Choisir plusieurs",qtypeBoolean:"Oui / Non",inputSubmit:"Envoyer les r\xE9ponses",inputSubmitHint:"Entr\xE9e pour envoyer \xB7 Maj+Entr\xE9e = saut de ligne",inputSkip:"Ignorer",confirmYes:"Oui",confirmNo:"Non",approve:"Approuver",decline:"Refuser",changeAnswer:"Modifier la r\xE9ponse",approvalPrompt:"{action} ?",approvalEditHint:"Vous pouvez modifier votre r\xE9ponse jusqu'\xE0 la reprise de cette \xE9tape.",stepInput:"Entr\xE9e",stepWorking:"En cours",stepWorkingOnIt:"En cours\u2026",stepNeedsYourApproval:"Votre accord est requis",stepWaitingForVisitor:"En attente du visiteur",stepApproved:"Approuv\xE9",stepDeclined:"Refus\xE9",stepReplaced:"Remplac\xE9",stepFailed:"\xC9chec",stepDidNotWork:"N'a pas fonctionn\xE9",decidedYouApproved:"Vous avez approuv\xE9",decidedYouDeclined:"Vous avez refus\xE9",decidedVisitorApproved:"Approuv\xE9 par le visiteur",decidedVisitorDeclined:"Refus\xE9 par le visiteur",decidedTeamApproved:"Approuv\xE9 par un membre de l'\xE9quipe",decidedTeamDeclined:"Refus\xE9 par un membre de l'\xE9quipe",decidedMemberApproved:"Approuv\xE9 par {name}",decidedMemberDeclined:"Refus\xE9 par {name}",stepRawData:"Donn\xE9es brutes",decidedRulesApproved:"Approuv\xE9 automatiquement",decidedRulesDeclined:"Refus\xE9 automatiquement",edit:"Modifier",toolStepsFailed:"{count} en \xE9chec",statusStopped:"Arr\xEAt\xE9",toolStepsStopped:"Arr\xEAt\xE9 apr\xE8s {count} \xE9tapes",toolStepsStoppedOne:"Arr\xEAt\xE9 apr\xE8s 1 \xE9tape"},hg={attach:"\u0625\u0631\u0641\u0627\u0642 \u0645\u0644\u0641\u0627\u062A",file:"\u0645\u0644\u0641",attachmentMimeRejected:"\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641 {name} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A \u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629.",attachmentTooLarge:"\u0627\u0644\u0645\u0644\u0641 {name} \u0643\u0628\u064A\u0631 \u062C\u062F\u064B\u0627. \u064A\u0645\u0643\u0646 \u0623\u0646 \u064A\u0635\u0644 \u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0645\u0639\u064B\u0627 \u0625\u0644\u0649 {max}.",poweredBy:"\u0645\u062F\u0639\u0648\u0645 \u0645\u0646 {name}",attachmentTooMany:"\u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0642\u0635\u0649 \u0644\u0644\u0645\u0631\u0641\u0642\u0627\u062A: {count}.",attachmentUploadFailed:"\u062A\u0639\u0630\u0651\u0631 \u0631\u0641\u0639 {name}.",conversationLoading:"\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u062F\u0631\u062F\u0634\u0629\u2026",loadPreviousMessages:"\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",close:"\u0625\u063A\u0644\u0627\u0642",collapse:"\u0637\u064A\u0651",collapseSidebar:"\u0637\u064A\u0651 \u0627\u0644\u0634\u0631\u064A\u0637 \u0627\u0644\u062C\u0627\u0646\u0628\u064A",composerPlaceholder:"\u0627\u0643\u062A\u0628 \u0631\u0633\u0627\u0644\u0629\u2026",dateLastWeek:"\u0622\u062E\u0631 \u0667 \u0623\u064A\u0627\u0645",dateOlder:"\u0623\u0642\u062F\u0645",dateToday:"\u0627\u0644\u064A\u0648\u0645",dateYesterday:"\u0623\u0645\u0633",dropZone:"\u0623\u0641\u0644\u062A \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0644\u0625\u0631\u0641\u0627\u0642\u0647\u0627",dropZoneRejected:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u0625\u0631\u0641\u0627\u0642 \u0647\u0630\u0647 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0647\u0646\u0627",errorGeneric:"\u062D\u062F\u062B \u062E\u0637\u0623 \u0645\u0627",errorRateLimited:"\u0637\u0644\u0628\u0627\u062A \u0643\u062B\u064A\u0631\u0629 \u062C\u062F\u064B\u0627 \u2014 \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0628\u0639\u062F \u0644\u062D\u0638\u0629.",errorRateLimitedIn:"\u0637\u0644\u0628\u0627\u062A \u0643\u062B\u064A\u0631\u0629 \u062C\u062F\u064B\u0627 \u2014 \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0628\u0639\u062F {seconds} \u062B.",errorOffline:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u062E\u0627\u062F\u0645. \u062A\u062D\u0642\u0651\u0642 \u0645\u0646 \u0627\u062A\u0635\u0627\u0644\u0643 \u0648\u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",errorServer:"\u062D\u062F\u062B \u062E\u0637\u0623 \u0645\u0646 \u062C\u0647\u062A\u0646\u0627. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",errorOriginNotAllowed:"\u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629 \u063A\u064A\u0631 \u0645\u064F\u0639\u062F\u0651\u0629 \u0644\u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0642\u0639 \u0628\u0639\u062F.",errorMessageTooLong:"\u0647\u0630\u0647 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0637\u0648\u064A\u0644\u0629 \u062C\u062F\u064B\u0627. \u0627\u062E\u062A\u0635\u0631\u0647\u0627 \u0648\u0623\u0631\u0633\u0644\u0647\u0627 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",errorReconnecting:"\u0627\u0646\u0642\u0637\u0639 \u0627\u0644\u0627\u062A\u0635\u0627\u0644. \u062C\u0627\u0631\u064D \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0627\u062A\u0635\u0627\u0644\u2026",errorRetry:"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",expand:"\u062A\u0648\u0633\u064A\u0639",expandSidebar:"\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u0634\u0631\u064A\u0637 \u0627\u0644\u062C\u0627\u0646\u0628\u064A",exitFullscreen:"\u0625\u0646\u0647\u0627\u0621 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629",fullscreen:"\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629",history:"\u0627\u0644\u0633\u062C\u0644",historyBack:"\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u062F\u0631\u062F\u0634\u0629",historyEmpty:"\u0644\u0627 \u062A\u0648\u062C\u062F \u062F\u0631\u062F\u0634\u0627\u062A \u0633\u0627\u0628\u0642\u0629 \u0628\u0639\u062F",historyContinue:"\u0645\u062A\u0627\u0628\u0639\u0629 \u0627\u0644\u062F\u0631\u062F\u0634\u0629",historyLoading:"\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u062F\u0631\u062F\u0634\u0627\u062A\u0643\u2026",historyTitle:"\u0633\u062C\u0644 \u0627\u0644\u062F\u0631\u062F\u0634\u0627\u062A",loadMoreConversations:"\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0627\u062A",language:"\u0627\u0644\u0644\u063A\u0629",launcherOpen:"\u0641\u062A\u062D \u0627\u0644\u062F\u0631\u062F\u0634\u0629",launcherAsk:"\u0627\u0633\u0623\u0644 {name}",micBlocked:"\u0627\u0644\u0645\u064A\u0643\u0631\u0648\u0641\u0648\u0646 \u0645\u062D\u0638\u0648\u0631 \u0644\u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0642\u0639\u060C \u0644\u0630\u0627 \u0644\u0627 \u064A\u0645\u0643\u0646 \u0628\u062F\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644 \u0627\u0644\u0635\u0648\u062A\u064A.",micStart:"\u0628\u062F\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644 \u0627\u0644\u0635\u0648\u062A\u064A",micStop:"\u0625\u064A\u0642\u0627\u0641 \u0627\u0644\u0625\u062F\u062E\u0627\u0644 \u0627\u0644\u0635\u0648\u062A\u064A",moreActions:"\u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0625\u0636\u0627\u0641\u064A\u0629",newConversation:"\u062F\u0631\u062F\u0634\u0629 \u062C\u062F\u064A\u062F\u0629",panelTitle:"\u0627\u0644\u062F\u0631\u062F\u0634\u0629",popOut:"\u0641\u062A\u062D \u0641\u064A \u0639\u0644\u0627\u0645\u0629 \u062A\u0628\u0648\u064A\u0628 \u062C\u062F\u064A\u062F\u0629",resizeHandle:"\u0627\u0633\u062D\u0628 \u0644\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645",scrollToBottom:"\u0627\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0627\u0644\u0623\u062D\u062F\u062B",send:"\u0625\u0631\u0633\u0627\u0644",queueMessage:"\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0625\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631",removeQueuedMessage:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0645\u0646 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631",removeAttachment:"\u0625\u0632\u0627\u0644\u0629 {name}",suggestedReplies:"\u0631\u062F\u0648\u062F \u0645\u0642\u062A\u0631\u062D\u0629",compactingContext:"\u062C\u0627\u0631\u064D \u062A\u062D\u0633\u064A\u0646 \u0633\u064A\u0627\u0642 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629\u2026",soundOff:"\u0643\u062A\u0645 \u0627\u0644\u0635\u0648\u062A",soundOn:"\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0635\u0648\u062A",talkToOperator:"\u0627\u0644\u062A\u062D\u062F\u062B \u0625\u0644\u0649 \u0634\u062E\u0635",connectingOperator:"\u062C\u0627\u0631\u064D \u062A\u0648\u0635\u064A\u0644\u0643 \u0628\u0634\u062E\u0635\u2026",noOperatorAvailable:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0645\u0648\u0638\u0641\u0648\u0646 \u0645\u062A\u0627\u062D\u0648\u0646 \u0627\u0644\u0622\u0646 \u2014 \u0627\u062A\u0631\u0643 \u0628\u064A\u0627\u0646\u0627\u062A\u0643 \u0648\u0633\u0646\u062A\u0648\u0627\u0635\u0644 \u0645\u0639\u0643.",chattingWithOperator:"\u0623\u0646\u062A \u062A\u062A\u062D\u062F\u062B \u0645\u0639 {operator}",operatorBadgeTitle:"\u0645\u062D\u0627\u062F\u062B\u0629 \u0645\u0628\u0627\u0634\u0631\u0629",chatNotice:"\u0623\u0646\u062A \u062A\u062A\u062D\u062F\u062B \u0645\u0639 \u0645\u0633\u0627\u0639\u062F \u0630\u0643\u0627\u0621 \u0627\u0635\u0637\u0646\u0627\u0639\u064A.",cancelOperatorRequest:"\u0645\u062A\u0627\u0628\u0639\u0629 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629 \u0645\u0639 \u0627\u0644\u0630\u0643\u0627\u0621 \u0627\u0644\u0627\u0635\u0637\u0646\u0627\u0639\u064A",loginPrompt:"\u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0644\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u062F\u0639\u0645 \u0623\u0633\u0631\u0639 \u0648\u0645\u062E\u0635\u0651\u0635 \u0644\u0643",loginAction:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",loginRequired:"\u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0644\u0644\u062F\u0631\u062F\u0634\u0629 \u0645\u0639\u0646\u0627",loginExpired:"\u0627\u0646\u062A\u0647\u062A \u0635\u0644\u0627\u062D\u064A\u0629 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644\u0643. \u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629.",loginExpiredGuest:"\u0627\u0646\u062A\u0647\u062A \u0635\u0644\u0627\u062D\u064A\u0629 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644\u0643. \u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629\u060C \u0623\u0648 \u0627\u0628\u062F\u0623 \u0645\u062D\u0627\u062F\u062B\u0629 \u062C\u062F\u064A\u062F\u0629 \u0643\u0636\u064A\u0641.",startAsGuest:"\u0628\u062F\u0621 \u0645\u062D\u0627\u062F\u062B\u0629 \u062C\u062F\u064A\u062F\u0629",loggedInAs:"\u062A\u0645 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0627\u0633\u0645 {name}",loggedIn:"\u062A\u0645 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",dismissLoginPrompt:"\u0625\u062E\u0641\u0627\u0621",emailTranscript:"\u0625\u0631\u0633\u0627\u0644 \u0646\u0635 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629",emailTranscriptPrompt:"\u0627\u062D\u0635\u0644 \u0639\u0644\u0649 \u0646\u0633\u062E\u0629 \u0645\u0646 \u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629 \u0639\u0628\u0631 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A.",emailTranscriptEmailLabel:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",emailTranscriptSend:"\u0625\u0631\u0633\u0627\u0644 \u0646\u0635 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629",emailTranscriptSending:"\u062C\u0627\u0631\u064D \u0627\u0644\u0625\u0631\u0633\u0627\u0644\u2026",emailTranscriptSent:"\u062A\u0645 \u0627\u0644\u0625\u0631\u0633\u0627\u0644 \u0625\u0644\u0649 {email}.",emailTranscriptAlreadySent:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629 \u0628\u0627\u0644\u0641\u0639\u0644. \u0623\u0631\u0633\u0644 \u0631\u0633\u0627\u0644\u0629 \u062C\u062F\u064A\u062F\u0629 \u0644\u0625\u0631\u0633\u0627\u0644\u0647\u0627 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",emailTranscriptLimited:"\u0644\u0642\u062F \u0628\u0644\u063A\u062A \u0627\u0644\u062D\u062F \u0627\u0644\u0645\u0633\u0645\u0648\u062D \u0628\u0647 \u062D\u0627\u0644\u064A\u064B\u0627. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0644\u0627\u062D\u0642\u064B\u0627.",emailTranscriptFailed:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",emailTranscriptNotDelivered:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644 \u0625\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0639\u0646\u0648\u0627\u0646. \u062A\u062D\u0642\u0651\u0642 \u0645\u0646\u0647 \u0648\u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",emailTranscriptCancel:"\u0625\u0644\u063A\u0627\u0621",emailTranscriptDone:"\u062A\u0645",stop:"\u0625\u064A\u0642\u0627\u0641",theme:"\u0627\u0644\u0645\u0638\u0647\u0631",themeAuto:"\u062A\u0644\u0642\u0627\u0626\u064A",themeDark:"\u062F\u0627\u0643\u0646",themeLight:"\u0641\u0627\u062A\u062D",textSize:"\u062D\u062C\u0645 \u0627\u0644\u0646\u0635",textSizeSmall:"\u0635\u063A\u064A\u0631",textSizeNormal:"\u0639\u0627\u062F\u064A",textSizeLarge:"\u0643\u0628\u064A\u0631",loading:"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644\u2026",visualPreparing:"\u062C\u0627\u0631\u064D \u0625\u0639\u062F\u0627\u062F \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0645\u0631\u0626\u064A\u2026",visualError:"\u062A\u0639\u0630\u0631 \u0639\u0631\u0636 \u0647\u0630\u0627 \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0645\u0631\u0626\u064A.",visualPartial:"\u062A\u0639\u0630\u0631 \u0639\u0631\u0636 \u0628\u0639\u0636 \u0623\u062C\u0632\u0627\u0621 \u0647\u0630\u0627 \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0645\u0631\u0626\u064A.",visualSoldOut:"\u0646\u0641\u062F\u062A \u0627\u0644\u0643\u0645\u064A\u0629",visualCartEmpty:"\u0633\u0644\u062A\u0643 \u0641\u0627\u0631\u063A\u0629.",visualQuantity:"\u0627\u0644\u0643\u0645\u064A\u0629",visualChoose:"\u0627\u062E\u062A\u0631",thinking:"\u064A\u0641\u0643\u0651\u0631\u2026",thought:"\u062A\u0641\u0643\u064A\u0631",thoughtFor:"\u0641\u0643\u0651\u0631 \u0644\u0645\u062F\u0629 {time}",toolResult:"\u0627\u0644\u0646\u062A\u064A\u062C\u0629",sources:"\u0627\u0644\u0645\u0635\u0627\u062F\u0631",feedbackUp:"\u0631\u062F \u062C\u064A\u062F",feedbackDown:"\u0631\u062F \u0633\u064A\u0626",feedbackThanks:"\u0634\u0643\u0631\u064B\u0627 \u0639\u0644\u0649 \u0645\u0644\u0627\u062D\u0638\u0627\u062A\u0643",copy:"\u0646\u0633\u062E",copied:"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E",copyTicketReference:"\u0627\u0644\u062A\u0630\u0643\u0631\u0629 {reference}\u060C \u0646\u0633\u062E",tabHome:"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",tabConversations:"\u0627\u0644\u062F\u0631\u062F\u0634\u0627\u062A",tabHelp:"\u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629",tabNews:"\u0627\u0644\u0623\u062E\u0628\u0627\u0631",modulesEmpty:"\u0644\u0627 \u0634\u064A\u0621 \u0647\u0646\u0627 \u0628\u0639\u062F",chatUnavailable:"\u0647\u0630\u0647 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629 \u062D\u0627\u0644\u064A\u0627\u064B",moduleBack:"\u0631\u062C\u0648\u0639",contentLoading:"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644\u2026",contentHelpful:"\u0647\u0644 \u0643\u0627\u0646 \u0647\u0630\u0627 \u0645\u0641\u064A\u062F\u064B\u0627\u061F",homeGreeting:"\u0643\u064A\u0641 \u064A\u0645\u0643\u0646\u0646\u0627 \u0645\u0633\u0627\u0639\u062F\u062A\u0643\u061F",homeGreetingNamed:"\u0645\u0631\u062D\u0628\u064B\u0627 {name} \u{1F44B}",homeGreetingLead:"\u0643\u064A\u0641 \u064A\u0645\u0643\u0646\u0646\u0627 \u0645\u0633\u0627\u0639\u062F\u062A\u0643\u061F",homeSearchPlaceholder:"\u0627\u0628\u062D\u062B \u0639\u0646 \u0645\u0633\u0627\u0639\u062F\u0629",homeAskPlaceholder:"\u0627\u0637\u0631\u062D \u0633\u0624\u0627\u0644\u0627\u064B\u2026",homeWhatsNew:"\u0645\u0627 \u0627\u0644\u062C\u062F\u064A\u062F",homeContentTitle:"\u0645\u0642\u0627\u0644\u0627\u062A \u0634\u0627\u0626\u0639\u0629",homeStatus:"\u0627\u0644\u062D\u0627\u0644\u0629",helpTitle:"\u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629",helpSearchPlaceholder:"\u0627\u0628\u062D\u062B \u0639\u0646 \u0645\u0633\u0627\u0639\u062F\u0629",helpEmpty:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u0642\u0627\u0644\u0627\u062A \u0645\u0633\u0627\u0639\u062F\u0629 \u0628\u0639\u062F",helpLoading:"\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629\u2026",helpSearchEmpty:"\u0644\u0627 \u0646\u062A\u0627\u0626\u062C \u0644\u0640 \xAB{query}\xBB",helpShowMore:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0632\u064A\u062F",newsTitle:"\u0627\u0644\u0623\u062E\u0628\u0627\u0631",newsEmpty:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0623\u062E\u0628\u0627\u0631 \u0628\u0639\u062F",newsLoading:"\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0623\u062E\u0628\u0627\u0631\u2026",newsShowMore:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0632\u064A\u062F",newsUnseen:"\u0645\u0646\u0634\u0648\u0631 \u062C\u062F\u064A\u062F",unread:"\u063A\u064A\u0631 \u0645\u0642\u0631\u0648\u0621",formRequired:"\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628",formInvalidEmail:"\u0623\u062F\u062E\u0644 \u0628\u0631\u064A\u062F\u064B\u0627 \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A\u064B\u0627 \u0635\u062D\u064A\u062D\u064B\u0627",formInvalidTel:"\u0623\u062F\u062E\u0644 \u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0635\u062D\u064A\u062D\u064B\u0627",formInvalidNumber:"\u0623\u062F\u062E\u0644 \u0631\u0642\u0645\u064B\u0627 \u0635\u062D\u064A\u062D\u064B\u0627",formOtherPlaceholder:"\u0627\u0643\u062A\u0628 \u0625\u062C\u0627\u0628\u062A\u0643\u2026",inputRequired:"\u0623\u0633\u0626\u0644\u0629 \u0644\u0643",askFallbackQuestion:"\u064A\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0646\u0627\u0642\u0635\u0629.",inputBadge:"\u0623\u0633\u0626\u0644\u0629",inputAnswered:"\u062A\u0645\u062A \u0627\u0644\u0625\u062C\u0627\u0628\u0629",inputSkipped:"\u062A\u0645 \u0627\u0644\u062A\u062E\u0637\u064A",showOptions:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A",hideOptions:"\u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A",qtypeText:"\u0625\u062C\u0627\u0628\u062A\u0643",qtypeEmail:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",qtypePhone:"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641",qtypeNumber:"\u0631\u0642\u0645",qtypeDate:"\u062A\u0627\u0631\u064A\u062E",qtypeChooseOne:"\u0627\u062E\u062A\u0631 \u0648\u0627\u062D\u062F\u064B\u0627",qtypeChooseAny:"\u0627\u062E\u062A\u0631 \u0623\u064A\u064B\u0627",qtypeBoolean:"\u0646\u0639\u0645 / \u0644\u0627",inputSubmit:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0625\u062C\u0627\u0628\u0627\u062A",inputSubmitHint:"Enter \u0644\u0644\u0625\u0631\u0633\u0627\u0644 \xB7 Shift+Enter = \u0633\u0637\u0631 \u062C\u062F\u064A\u062F",inputSkip:"\u062A\u062E\u0637\u064D\u0651",confirmYes:"\u0646\u0639\u0645",confirmNo:"\u0644\u0627",approve:"\u0645\u0648\u0627\u0641\u0642\u0629",decline:"\u0631\u0641\u0636",changeAnswer:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0625\u062C\u0627\u0628\u0629",approvalPrompt:"{action}\u061F",approvalEditHint:"\u064A\u0645\u0643\u0646\u0643 \u062A\u063A\u064A\u064A\u0631 \u0625\u062C\u0627\u0628\u062A\u0643 \u062D\u062A\u0649 \u062A\u0633\u062A\u0623\u0646\u0641 \u0647\u0630\u0647 \u0627\u0644\u062E\u0637\u0648\u0629.",stepInput:"\u0627\u0644\u0645\u062F\u062E\u0644\u0627\u062A",stepWorking:"\u0642\u064A\u062F \u0627\u0644\u062A\u0646\u0641\u064A\u0630",stepWorkingOnIt:"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u0646\u0641\u064A\u0630\u2026",stepNeedsYourApproval:"\u0628\u062D\u0627\u062C\u0629 \u0625\u0644\u0649 \u0645\u0648\u0627\u0641\u0642\u062A\u0643",stepWaitingForVisitor:"\u0628\u0627\u0646\u062A\u0638\u0627\u0631 \u0627\u0644\u0632\u0627\u0626\u0631",stepApproved:"\u062A\u0645\u062A \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629",stepDeclined:"\u0645\u0631\u0641\u0648\u0636",stepReplaced:"\u062A\u0645 \u0627\u0644\u0627\u0633\u062A\u0628\u062F\u0627\u0644",stepFailed:"\u0641\u0634\u0644",stepDidNotWork:"\u0644\u0645 \u064A\u0646\u062C\u062D",decidedYouApproved:"\u0648\u0627\u0641\u0642\u062A",decidedYouDeclined:"\u0631\u0641\u0636\u062A",decidedVisitorApproved:"\u0648\u0627\u0641\u0642 \u0627\u0644\u0632\u0627\u0626\u0631",decidedVisitorDeclined:"\u0631\u0641\u0636 \u0627\u0644\u0632\u0627\u0626\u0631",decidedTeamApproved:"\u0648\u0627\u0641\u0642 \u0639\u0636\u0648 \u0641\u064A \u0627\u0644\u0641\u0631\u064A\u0642",decidedTeamDeclined:"\u0631\u0641\u0636 \u0639\u0636\u0648 \u0641\u064A \u0627\u0644\u0641\u0631\u064A\u0642",decidedMemberApproved:"\u0648\u0627\u0641\u0642 {name}",decidedMemberDeclined:"\u0631\u0641\u0636 {name}",stepRawData:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0623\u0648\u0644\u064A\u0629",decidedRulesApproved:"\u062A\u0645\u062A \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627",decidedRulesDeclined:"\u0631\u064F\u0641\u0636 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627",edit:"\u062A\u0639\u062F\u064A\u0644",toolStepsFailed:"\u0641\u0634\u0644 {count}",statusStopped:"\u0623\u064F\u0648\u0642\u0641",toolStepsStopped:"\u0623\u064F\u0648\u0642\u0641 \u0628\u0639\u062F {count} \u062E\u0637\u0648\u0627\u062A",toolStepsStoppedOne:"\u0623\u064F\u0648\u0642\u0641 \u0628\u0639\u062F \u062E\u0637\u0648\u0629 \u0648\u0627\u062D\u062F\u0629"},yg={attach:"Adjuntar archivos",file:"Archivo",attachmentMimeRejected:"{name} no es un tipo de archivo que acepte este chat.",attachmentTooLarge:"{name} es demasiado grande. Los archivos pueden ocupar hasta {max} en total.",poweredBy:"Con la tecnolog\xEDa de {name}",attachmentTooMany:"L\xEDmite de adjuntos: {count}.",attachmentUploadFailed:"No se pudo subir {name}.",conversationLoading:"Cargando chat\u2026",loadPreviousMessages:"Cargar mensajes anteriores",close:"Cerrar",collapse:"Contraer",collapseSidebar:"Contraer la barra lateral",composerPlaceholder:"Escribe un mensaje\u2026",dateLastWeek:"\xDAltimos 7 d\xEDas",dateOlder:"Anteriores",dateToday:"Hoy",dateYesterday:"Ayer",dropZone:"Suelta los archivos para adjuntarlos",dropZoneRejected:"Estos archivos no se pueden adjuntar aqu\xED",errorGeneric:"Algo sali\xF3 mal",errorRateLimited:"Demasiadas solicitudes: int\xE9ntalo de nuevo en un momento.",errorRateLimitedIn:"Demasiadas solicitudes: int\xE9ntalo de nuevo en {seconds} s.",errorOffline:"No se puede conectar con el servidor. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",errorServer:"Algo sali\xF3 mal por nuestra parte. Int\xE9ntalo de nuevo.",errorOriginNotAllowed:"Este chat a\xFAn no est\xE1 configurado para este sitio web.",errorMessageTooLong:"Ese mensaje es demasiado largo. Ac\xF3rtalo y env\xEDalo de nuevo.",errorReconnecting:"Se perdi\xF3 la conexi\xF3n. Reconectando\u2026",errorRetry:"Reintentar",expand:"Ampliar",expandSidebar:"Expandir la barra lateral",exitFullscreen:"Salir de pantalla completa",fullscreen:"Pantalla completa",history:"Historial",historyBack:"Volver al chat",historyEmpty:"A\xFAn no tienes chats",historyContinue:"Continuar el chat",historyLoading:"Cargando tus chats\u2026",historyTitle:"Historial de chats",loadMoreConversations:"Cargar m\xE1s conversaciones",language:"Idioma",launcherOpen:"Abrir el chat",launcherAsk:"Preg\xFAntale a {name}",micBlocked:"El micr\xF3fono est\xE1 bloqueado para este sitio, as\xED que la entrada de voz no puede iniciarse.",micStart:"Iniciar entrada de voz",micStop:"Detener entrada de voz",moreActions:"M\xE1s acciones",newConversation:"Nuevo chat",panelTitle:"Chat",popOut:"Abrir en una pesta\xF1a nueva",resizeHandle:"Arrastra para cambiar el tama\xF1o",scrollToBottom:"Ir a lo m\xE1s reciente",send:"Enviar",queueMessage:"Poner mensaje en cola",removeQueuedMessage:"Quitar mensaje de la cola",removeAttachment:"Quitar {name}",suggestedReplies:"Respuestas sugeridas",compactingContext:"Optimizando el contexto de la conversaci\xF3n\u2026",soundOff:"Sonido desactivado",soundOn:"Sonido activado",talkToOperator:"Hablar con una persona",connectingOperator:"Conect\xE1ndote con una persona\u2026",noOperatorAvailable:"Nadie est\xE1 disponible ahora \u2014 deja tus datos y te contactaremos.",chattingWithOperator:"Est\xE1s chateando con {operator}",operatorBadgeTitle:"Chat en vivo",chatNotice:"Est\xE1s chateando con un asistente de IA.",cancelOperatorRequest:"Seguir con la IA",loginPrompt:"Inicia sesi\xF3n para recibir una ayuda m\xE1s r\xE1pida y personalizada",loginAction:"Iniciar sesi\xF3n",loginRequired:"Inicia sesi\xF3n para chatear con nosotros",loginExpired:"Tu sesi\xF3n ha caducado. Inicia sesi\xF3n para continuar esta conversaci\xF3n.",loginExpiredGuest:"Tu sesi\xF3n ha caducado. Inicia sesi\xF3n para continuar esta conversaci\xF3n o empieza una nueva como invitado.",startAsGuest:"Empezar una nueva conversaci\xF3n",loggedInAs:"Sesi\xF3n iniciada como {name}",loggedIn:"Sesi\xF3n iniciada",dismissLoginPrompt:"Ocultar",emailTranscript:"Enviar transcripci\xF3n",emailTranscriptPrompt:"Recibe una copia de esta conversaci\xF3n por correo.",emailTranscriptEmailLabel:"Correo electr\xF3nico",emailTranscriptSend:"Enviar transcripci\xF3n",emailTranscriptSending:"Enviando\u2026",emailTranscriptSent:"Enviado a {email}.",emailTranscriptAlreadySent:"Esta conversaci\xF3n ya se envi\xF3. Env\xEDa un mensaje nuevo para enviarla otra vez.",emailTranscriptLimited:"Has alcanzado el l\xEDmite por ahora. Int\xE9ntalo m\xE1s tarde.",emailTranscriptFailed:"No se pudo enviar. Int\xE9ntalo de nuevo.",emailTranscriptNotDelivered:"No se pudo enviar a esta direcci\xF3n. Rev\xEDsala e int\xE9ntalo de nuevo.",emailTranscriptCancel:"Cancelar",emailTranscriptDone:"Listo",stop:"Detener",theme:"Tema",themeAuto:"Autom\xE1tico",themeDark:"Oscuro",themeLight:"Claro",textSize:"Tama\xF1o del texto",textSizeSmall:"Peque\xF1o",textSizeNormal:"Normal",textSizeLarge:"Grande",loading:"Cargando\u2026",visualPreparing:"Preparando visualizaci\xF3n\u2026",visualError:"No se pudo mostrar esta visualizaci\xF3n.",visualPartial:"No se pudieron mostrar algunas partes de esta visualizaci\xF3n.",visualSoldOut:"Agotado",visualCartEmpty:"Tu carrito est\xE1 vac\xEDo.",visualQuantity:"Cant.",visualChoose:"Elige",thinking:"Pensando\u2026",thought:"Razonamiento",thoughtFor:"Razon\xF3 durante {time}",toolResult:"Resultado",sources:"Fuentes",feedbackUp:"Buena respuesta",feedbackDown:"Mala respuesta",feedbackThanks:"Gracias por tu opini\xF3n",copy:"Copiar",copied:"Copiado",copyTicketReference:"Ticket {reference}, copiar",tabHome:"Inicio",tabConversations:"Chats",tabHelp:"Ayuda",tabNews:"Novedades",modulesEmpty:"A\xFAn no hay nada aqu\xED",chatUnavailable:"Este chat no est\xE1 disponible en este momento",moduleBack:"Atr\xE1s",contentLoading:"Cargando\u2026",contentHelpful:"\xBFTe result\xF3 \xFAtil?",homeGreeting:"\xBFC\xF3mo podemos ayudarte?",homeGreetingNamed:"Hola, {name} \u{1F44B}",homeGreetingLead:"\xBFC\xF3mo podemos ayudarte?",homeSearchPlaceholder:"Buscar ayuda",homeAskPlaceholder:"Haz una pregunta\u2026",homeWhatsNew:"Lo nuevo",homeContentTitle:"Art\xEDculos populares",homeStatus:"Estado",helpTitle:"Ayuda",helpSearchPlaceholder:"Buscar ayuda",helpEmpty:"A\xFAn no hay art\xEDculos de ayuda",helpLoading:"Cargando la ayuda\u2026",helpSearchEmpty:"Sin resultados para \xAB{query}\xBB",helpShowMore:"Mostrar m\xE1s",newsTitle:"Novedades",newsEmpty:"A\xFAn no hay novedades",newsLoading:"Cargando novedades\u2026",newsShowMore:"Mostrar m\xE1s",newsUnseen:"Publicaci\xF3n nueva",unread:"No le\xEDdo",formRequired:"Este campo es obligatorio",formInvalidEmail:"Introduce un correo electr\xF3nico v\xE1lido",formInvalidTel:"Introduce un n\xFAmero de tel\xE9fono v\xE1lido",formInvalidNumber:"Introduce un n\xFAmero v\xE1lido",formOtherPlaceholder:"Escribe tu respuesta\u2026",inputRequired:"Preguntas para ti",askFallbackQuestion:"Indica la informaci\xF3n que falta.",inputBadge:"Preguntas",inputAnswered:"Respondido",inputSkipped:"Omitido",showOptions:"Mostrar opciones",hideOptions:"Ocultar opciones",qtypeText:"Tu respuesta",qtypeEmail:"Correo electr\xF3nico",qtypePhone:"N\xFAmero de tel\xE9fono",qtypeNumber:"N\xFAmero",qtypeDate:"Fecha",qtypeChooseOne:"Elige una",qtypeChooseAny:"Elige varias",qtypeBoolean:"S\xED / No",inputSubmit:"Enviar respuestas",inputSubmitHint:"Enter para enviar \xB7 May\xFAs+Enter = nueva l\xEDnea",inputSkip:"Omitir",confirmYes:"S\xED",confirmNo:"No",approve:"Aprobar",decline:"Rechazar",changeAnswer:"Cambiar respuesta",approvalPrompt:"\xBF{action}?",approvalEditHint:"Puedes cambiar tu respuesta hasta que este paso contin\xFAe.",stepInput:"Entrada",stepWorking:"En curso",stepWorkingOnIt:"En curso\u2026",stepNeedsYourApproval:"Necesita tu aprobaci\xF3n",stepWaitingForVisitor:"Esperando al visitante",stepApproved:"Aprobado",stepDeclined:"Rechazado",stepReplaced:"Reemplazado",stepFailed:"Fall\xF3",stepDidNotWork:"No funcion\xF3",decidedYouApproved:"Lo aprobaste",decidedYouDeclined:"Lo rechazaste",decidedVisitorApproved:"El visitante aprob\xF3",decidedVisitorDeclined:"El visitante rechaz\xF3",decidedTeamApproved:"Aprobado por un miembro del equipo",decidedTeamDeclined:"Rechazado por un miembro del equipo",decidedMemberApproved:"Aprobado por {name}",decidedMemberDeclined:"Rechazado por {name}",stepRawData:"Datos sin procesar",decidedRulesApproved:"Aprobado autom\xE1ticamente",decidedRulesDeclined:"Rechazado autom\xE1ticamente",edit:"Editar",toolStepsFailed:"{count} con error",statusStopped:"Detenido",toolStepsStopped:"Detenido tras {count} pasos",toolStepsStoppedOne:"Detenido tras 1 paso"},bg={attach:"\u05E6\u05D9\u05E8\u05D5\u05E3 \u05E7\u05D1\u05E6\u05D9\u05DD",file:"\u05E7\u05D5\u05D1\u05E5",attachmentMimeRejected:"\u05D4\u05E7\u05D5\u05D1\u05E5 {name} \u05D0\u05D9\u05E0\u05D5 \u05DE\u05E1\u05D5\u05D2 \u05E9\u05D4\u05E6\u05F3\u05D0\u05D8 \u05D4\u05D6\u05D4 \u05DE\u05E7\u05D1\u05DC.",attachmentTooLarge:"\u05D4\u05E7\u05D5\u05D1\u05E5 {name} \u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9. \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05D9\u05DB\u05D5\u05DC\u05D9\u05DD \u05DC\u05D4\u05D2\u05D9\u05E2 \u05D9\u05D7\u05D3 \u05E2\u05D3 {max}.",poweredBy:"\u05DE\u05D5\u05E4\u05E2\u05DC \u05E2\u05DC \u05D9\u05D3\u05D9 {name}",attachmentTooMany:"\u05DE\u05E1\u05E4\u05E8 \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05D4\u05DE\u05E8\u05D1\u05D9 \u05DC\u05E6\u05D9\u05E8\u05D5\u05E3: {count}.",attachmentUploadFailed:"\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05D4\u05D9\u05D4 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05EA {name}.",conversationLoading:"\u05D8\u05D5\u05E2\u05DF \u05E6\u05F3\u05D0\u05D8\u2026",loadPreviousMessages:"\u05D8\u05E2\u05D9\u05E0\u05EA \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05E7\u05D5\u05D3\u05DE\u05D5\u05EA",close:"\u05E1\u05D2\u05D9\u05E8\u05D4",collapse:"\u05DB\u05D9\u05D5\u05D5\u05E5",collapseSidebar:"\u05DB\u05D9\u05D5\u05D5\u05E5 \u05E1\u05E8\u05D2\u05DC \u05D4\u05E6\u05D3",composerPlaceholder:"\u05DB\u05EA\u05D5\u05D1 \u05D4\u05D5\u05D3\u05E2\u05D4\u2026",dateLastWeek:"7 \u05D4\u05D9\u05DE\u05D9\u05DD \u05D4\u05D0\u05D7\u05E8\u05D5\u05E0\u05D9\u05DD",dateOlder:"\u05D9\u05E9\u05DF \u05D9\u05D5\u05EA\u05E8",dateToday:"\u05D4\u05D9\u05D5\u05DD",dateYesterday:"\u05D0\u05EA\u05DE\u05D5\u05DC",dropZone:"\u05E9\u05D7\u05E8\u05E8 \u05E7\u05D1\u05E6\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E6\u05E8\u05E3",dropZoneRejected:"\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05DC\u05E6\u05E8\u05E3 \u05DB\u05D0\u05DF \u05D0\u05EA \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4",errorGeneric:"\u05DE\u05E9\u05D4\u05D5 \u05D4\u05E9\u05EA\u05D1\u05E9",errorRateLimited:"\u05D9\u05D5\u05EA\u05E8 \u05DE\u05D3\u05D9 \u05D1\u05E7\u05E9\u05D5\u05EA \u2014 \u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1 \u05D1\u05E2\u05D5\u05D3 \u05E8\u05D2\u05E2.",errorRateLimitedIn:"\u05D9\u05D5\u05EA\u05E8 \u05DE\u05D3\u05D9 \u05D1\u05E7\u05E9\u05D5\u05EA \u2014 \u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1 \u05D1\u05E2\u05D5\u05D3 {seconds} \u05E9\u05E0\u05F3.",errorOffline:"\u05D0\u05D9\u05DF \u05D7\u05D9\u05D1\u05D5\u05E8 \u05DC\u05E9\u05E8\u05EA. \u05D1\u05D3\u05D5\u05E7 \u05D0\u05EA \u05D4\u05D7\u05D9\u05D1\u05D5\u05E8 \u05D5\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1.",errorServer:"\u05DE\u05E9\u05D4\u05D5 \u05D4\u05E9\u05EA\u05D1\u05E9 \u05D0\u05E6\u05DC\u05E0\u05D5. \u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1.",errorOriginNotAllowed:"\u05D4\u05E6'\u05D0\u05D8 \u05D4\u05D6\u05D4 \u05E2\u05D3\u05D9\u05D9\u05DF \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 \u05DC\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4.",errorMessageTooLong:"\u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05D4\u05D6\u05D5 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DE\u05D3\u05D9. \u05E7\u05E6\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D4 \u05D5\u05E9\u05DC\u05D7\u05D5 \u05E9\u05D5\u05D1.",errorReconnecting:"\u05D4\u05D7\u05D9\u05D1\u05D5\u05E8 \u05D0\u05D1\u05D3. \u05DE\u05EA\u05D7\u05D1\u05E8 \u05DE\u05D7\u05D3\u05E9\u2026",errorRetry:"\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1",expand:"\u05D4\u05E8\u05D7\u05D1\u05D4",expandSidebar:"\u05D4\u05E8\u05D7\u05D1\u05EA \u05E1\u05E8\u05D2\u05DC \u05D4\u05E6\u05D3",exitFullscreen:"\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05DE\u05E1\u05DA \u05DE\u05DC\u05D0",fullscreen:"\u05DE\u05E1\u05DA \u05DE\u05DC\u05D0",history:"\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4",historyBack:"\u05D7\u05D6\u05E8\u05D4 \u05DC\u05E6\u05F3\u05D0\u05D8",historyEmpty:"\u05D0\u05D9\u05DF \u05E2\u05D3\u05D9\u05D9\u05DF \u05E6\u05F3\u05D0\u05D8\u05D9\u05DD \u05E7\u05D5\u05D3\u05DE\u05D9\u05DD",historyContinue:"\u05D4\u05DE\u05E9\u05DA \u05E6\u05F3\u05D0\u05D8",historyLoading:"\u05D8\u05D5\u05E2\u05DF \u05D0\u05EA \u05D4\u05E6\u05F3\u05D0\u05D8\u05D9\u05DD \u05E9\u05DC\u05DA\u2026",historyTitle:"\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D9\u05EA \u05E6\u05F3\u05D0\u05D8\u05D9\u05DD",loadMoreConversations:"\u05D8\u05E2\u05D9\u05E0\u05EA \u05E9\u05D9\u05D7\u05D5\u05EA \u05E0\u05D5\u05E1\u05E4\u05D5\u05EA",language:"\u05E9\u05E4\u05D4",launcherOpen:"\u05E4\u05EA\u05D9\u05D7\u05EA \u05E6\u05F3\u05D0\u05D8",launcherAsk:"\u05DC\u05E9\u05D0\u05D5\u05DC \u05D0\u05EA {name}",micBlocked:"\u05D4\u05DE\u05D9\u05E7\u05E8\u05D5\u05E4\u05D5\u05DF \u05D7\u05E1\u05D5\u05DD \u05D1\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4, \u05D5\u05DC\u05DB\u05DF \u05D0\u05D9 \u05D0\u05E4\u05E9\u05E8 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05E7\u05DC\u05D8 \u05E7\u05D5\u05DC\u05D9.",micStart:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05E7\u05DC\u05D8 \u05E7\u05D5\u05DC\u05D9",micStop:"\u05E2\u05E6\u05D9\u05E8\u05EA \u05E7\u05DC\u05D8 \u05E7\u05D5\u05DC\u05D9",moreActions:"\u05E4\u05E2\u05D5\u05DC\u05D5\u05EA \u05E0\u05D5\u05E1\u05E4\u05D5\u05EA",newConversation:"\u05E6\u05F3\u05D0\u05D8 \u05D7\u05D3\u05E9",panelTitle:"\u05E6\u05F3\u05D0\u05D8",popOut:"\u05E4\u05EA\u05D9\u05D7\u05D4 \u05D1\u05DB\u05E8\u05D8\u05D9\u05E1\u05D9\u05D9\u05D4 \u05D7\u05D3\u05E9\u05D4",resizeHandle:"\u05D2\u05E8\u05D5\u05E8 \u05DC\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D4\u05D2\u05D5\u05D3\u05DC",scrollToBottom:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05D7\u05D3\u05E9 \u05D1\u05D9\u05D5\u05EA\u05E8",send:"\u05E9\u05DC\u05D9\u05D7\u05D4",queueMessage:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05DC\u05EA\u05D5\u05E8",removeQueuedMessage:"\u05D4\u05E1\u05E8\u05EA \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05DE\u05D4\u05EA\u05D5\u05E8",removeAttachment:"\u05D4\u05E1\u05E8\u05EA {name}",suggestedReplies:"\u05EA\u05E9\u05D5\u05D1\u05D5\u05EA \u05DE\u05D5\u05E6\u05E2\u05D5\u05EA",compactingContext:"\u05DE\u05D1\u05E6\u05E2 \u05D0\u05D5\u05E4\u05D8\u05D9\u05DE\u05D9\u05D6\u05E6\u05D9\u05D4 \u05DC\u05D4\u05E7\u05E9\u05E8 \u05D4\u05E9\u05D9\u05D7\u05D4\u2026",soundOff:"\u05D4\u05E9\u05EA\u05E7\u05EA \u05D4\u05E6\u05DC\u05D9\u05DC",soundOn:"\u05D4\u05E4\u05E2\u05DC\u05EA \u05D4\u05E6\u05DC\u05D9\u05DC",talkToOperator:"\u05D3\u05D1\u05E8\u05D5 \u05E2\u05DD \u05D0\u05D3\u05DD",connectingOperator:"\u05DE\u05D7\u05D1\u05E8\u05D9\u05DD \u05D0\u05D5\u05EA\u05DA \u05DC\u05D0\u05D3\u05DD\u2026",noOperatorAvailable:"\u05D0\u05D9\u05DF \u05E0\u05E6\u05D9\u05D2\u05D9\u05DD \u05D6\u05DE\u05D9\u05E0\u05D9\u05DD \u05DB\u05E2\u05EA \u2014 \u05D4\u05E9\u05D0\u05E8 \u05D0\u05EA \u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05E9\u05DC\u05DA \u05D5\u05E0\u05D7\u05D6\u05D5\u05E8 \u05D0\u05DC\u05D9\u05DA.",chattingWithOperator:"\u05D0\u05EA\u05D4 \u05DE\u05E6\u05F3\u05D5\u05D8\u05D8 \u05E2\u05DD {operator}",operatorBadgeTitle:"\u05E6\u05F3\u05D0\u05D8 \u05D7\u05D9",chatNotice:"\u05D0\u05EA\u05D4 \u05DE\u05E6\u05F3\u05D5\u05D8\u05D8 \u05E2\u05DD \u05E2\u05D5\u05D6\u05E8 \u05D1\u05D9\u05E0\u05D4 \u05DE\u05DC\u05D0\u05DB\u05D5\u05EA\u05D9\u05EA.",cancelOperatorRequest:"\u05D4\u05DE\u05E9\u05DA \u05DC\u05E9\u05D5\u05D7\u05D7 \u05E2\u05DD \u05D4-AI",loginPrompt:"\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05DC\u05E7\u05D1\u05DC\u05EA \u05EA\u05DE\u05D9\u05DB\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4 \u05D5\u05DE\u05D5\u05EA\u05D0\u05DE\u05EA \u05D0\u05D9\u05E9\u05D9\u05EA",loginAction:"\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5\u05EA",loginRequired:"\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D5\u05D7\u05D7 \u05D0\u05D9\u05EA\u05E0\u05D5",loginExpired:"\u05E4\u05D2 \u05EA\u05D5\u05E7\u05E3 \u05D4\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5\u05EA \u05E9\u05DC\u05DA. \u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA \u05D1\u05E9\u05D9\u05D7\u05D4 \u05D4\u05D6\u05D5.",loginExpiredGuest:"\u05E4\u05D2 \u05EA\u05D5\u05E7\u05E3 \u05D4\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5\u05EA \u05E9\u05DC\u05DA. \u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA \u05D1\u05E9\u05D9\u05D7\u05D4 \u05D4\u05D6\u05D5, \u05D0\u05D5 \u05D4\u05EA\u05D7\u05D9\u05DC\u05D5 \u05E9\u05D9\u05D7\u05D4 \u05D7\u05D3\u05E9\u05D4 \u05DB\u05D0\u05D5\u05E8\u05D7\u05D9\u05DD.",startAsGuest:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05E9\u05D9\u05D7\u05D4 \u05D7\u05D3\u05E9\u05D4",loggedInAs:"\u05DE\u05D7\u05D5\u05D1\u05E8/\u05EA \u05D1\u05EA\u05D5\u05E8 {name}",loggedIn:"\u05DE\u05D7\u05D5\u05D1\u05E8/\u05EA",dismissLoginPrompt:"\u05D4\u05E1\u05EA\u05E8\u05D4",emailTranscript:"\u05E9\u05DC\u05D9\u05D7\u05EA \u05EA\u05DE\u05DC\u05D9\u05DC \u05D1\u05D3\u05D5\u05D0\u05F4\u05DC",emailTranscriptPrompt:"\u05E7\u05D1\u05DC\u05D5 \u05E2\u05D5\u05EA\u05E7 \u05E9\u05DC \u05D4\u05E9\u05D9\u05D7\u05D4 \u05D4\u05D6\u05D5 \u05D1\u05D3\u05D5\u05D0\u05F4\u05DC.",emailTranscriptEmailLabel:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D3\u05D5\u05D0\u05F4\u05DC",emailTranscriptSend:"\u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05EA\u05DE\u05DC\u05D9\u05DC",emailTranscriptSending:"\u05E9\u05D5\u05DC\u05D7\u05D9\u05DD\u2026",emailTranscriptSent:"\u05E0\u05E9\u05DC\u05D7 \u05D0\u05DC {email}.",emailTranscriptAlreadySent:"\u05D4\u05E9\u05D9\u05D7\u05D4 \u05D4\u05D6\u05D5 \u05DB\u05D1\u05E8 \u05E0\u05E9\u05DC\u05D7\u05D4. \u05E9\u05DC\u05D7\u05D5 \u05D4\u05D5\u05D3\u05E2\u05D4 \u05D7\u05D3\u05E9\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05E9\u05DC\u05D5\u05D7 \u05D0\u05D5\u05EA\u05D4 \u05E9\u05D5\u05D1.",emailTranscriptLimited:"\u05D4\u05D2\u05E2\u05EA\u05DD \u05DC\u05DE\u05D2\u05D1\u05DC\u05D4 \u05DB\u05E8\u05D2\u05E2. \u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.",emailTranscriptFailed:"\u05D4\u05E9\u05DC\u05D9\u05D7\u05D4 \u05E0\u05DB\u05E9\u05DC\u05D4. \u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1.",emailTranscriptNotDelivered:"\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05DC\u05E9\u05DC\u05D5\u05D7 \u05DC\u05DB\u05EA\u05D5\u05D1\u05EA \u05D4\u05D6\u05D5. \u05D1\u05D3\u05E7\u05D5 \u05D0\u05D5\u05EA\u05D4 \u05D5\u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1.",emailTranscriptCancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",emailTranscriptDone:"\u05E1\u05D9\u05D5\u05DD",stop:"\u05E2\u05E6\u05D9\u05E8\u05D4",theme:"\u05E2\u05E8\u05DB\u05EA \u05E0\u05D5\u05E9\u05D0",themeAuto:"\u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9",themeDark:"\u05DB\u05D4\u05D4",themeLight:"\u05D1\u05D4\u05D9\u05E8",textSize:"\u05D2\u05D5\u05D3\u05DC \u05D8\u05E7\u05E1\u05D8",textSizeSmall:"\u05E7\u05D8\u05DF",textSizeNormal:"\u05E8\u05D2\u05D9\u05DC",textSizeLarge:"\u05D2\u05D3\u05D5\u05DC",loading:"\u05D8\u05D5\u05E2\u05DF\u2026",visualPreparing:"\u05DE\u05DB\u05D9\u05DF \u05EA\u05E6\u05D5\u05D2\u05D4\u2026",visualError:"\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05D4\u05D9\u05D4 \u05DC\u05D4\u05E6\u05D9\u05D2 \u05EA\u05E6\u05D5\u05D2\u05D4 \u05D6\u05D5.",visualPartial:"\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05D4\u05D9\u05D4 \u05DC\u05D4\u05E6\u05D9\u05D2 \u05D7\u05DC\u05E7\u05D9\u05DD \u05DE\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D6\u05D5.",visualSoldOut:"\u05D0\u05D6\u05DC \u05DE\u05D4\u05DE\u05DC\u05D0\u05D9",visualCartEmpty:"\u05D4\u05E2\u05D2\u05DC\u05D4 \u05E9\u05DC\u05DA \u05E8\u05D9\u05E7\u05D4.",visualQuantity:"\u05DB\u05DE\u05D5\u05EA",visualChoose:"\u05D1\u05D7\u05E8\u05D5",thinking:"\u05D7\u05D5\u05E9\u05D1\u2026",thought:"\u05DE\u05D7\u05E9\u05D1\u05D4",thoughtFor:"\u05D7\u05E9\u05D1 \u05D1\u05DE\u05E9\u05DA {time}",toolResult:"\u05EA\u05D5\u05E6\u05D0\u05D4",sources:"\u05DE\u05E7\u05D5\u05E8\u05D5\u05EA",feedbackUp:"\u05EA\u05E9\u05D5\u05D1\u05D4 \u05D8\u05D5\u05D1\u05D4",feedbackDown:"\u05EA\u05E9\u05D5\u05D1\u05D4 \u05D2\u05E8\u05D5\u05E2\u05D4",feedbackThanks:"\u05EA\u05D5\u05D3\u05D4 \u05E2\u05DC \u05D4\u05DE\u05E9\u05D5\u05D1",copy:"\u05D4\u05E2\u05EA\u05E7",copied:"\u05D4\u05D5\u05E2\u05EA\u05E7",copyTicketReference:"\u05E4\u05E0\u05D9\u05D9\u05D4 {reference}, \u05D4\u05E2\u05EA\u05E7\u05D4",tabHome:"\u05D1\u05D9\u05EA",tabConversations:"\u05E6\u05F3\u05D0\u05D8\u05D9\u05DD",tabHelp:"\u05E2\u05D6\u05E8\u05D4",tabNews:"\u05D7\u05D3\u05E9\u05D5\u05EA",modulesEmpty:"\u05D0\u05D9\u05DF \u05DB\u05D0\u05DF \u05E2\u05D3\u05D9\u05D9\u05DF \u05DB\u05DC\u05D5\u05DD",chatUnavailable:"\u05D4\u05E6\u05F3\u05D0\u05D8 \u05D4\u05D6\u05D4 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF \u05DB\u05E8\u05D2\u05E2",moduleBack:"\u05D7\u05D6\u05E8\u05D4",contentLoading:"\u05D8\u05D5\u05E2\u05DF\u2026",contentHelpful:"\u05D4\u05D0\u05DD \u05D6\u05D4 \u05E2\u05D6\u05E8?",homeGreeting:"\u05DB\u05D9\u05E6\u05D3 \u05E0\u05D5\u05DB\u05DC \u05DC\u05E2\u05D6\u05D5\u05E8?",homeGreetingNamed:"\u05E9\u05DC\u05D5\u05DD {name} \u{1F44B}",homeGreetingLead:"\u05DB\u05D9\u05E6\u05D3 \u05E0\u05D5\u05DB\u05DC \u05DC\u05E2\u05D6\u05D5\u05E8?",homeSearchPlaceholder:"\u05D7\u05D9\u05E4\u05D5\u05E9 \u05E2\u05D6\u05E8\u05D4",homeAskPlaceholder:"\u05E9\u05D0\u05DC\u05D5 \u05E9\u05D0\u05DC\u05D4\u2026",homeWhatsNew:"\u05DE\u05D4 \u05D7\u05D3\u05E9",homeContentTitle:"\u05DE\u05D0\u05DE\u05E8\u05D9\u05DD \u05E4\u05D5\u05E4\u05D5\u05DC\u05E8\u05D9\u05D9\u05DD",homeStatus:"\u05E1\u05D8\u05D8\u05D5\u05E1",helpTitle:"\u05E2\u05D6\u05E8\u05D4",helpSearchPlaceholder:"\u05D7\u05D9\u05E4\u05D5\u05E9 \u05E2\u05D6\u05E8\u05D4",helpEmpty:"\u05D0\u05D9\u05DF \u05E2\u05D3\u05D9\u05D9\u05DF \u05DE\u05D0\u05DE\u05E8\u05D9 \u05E2\u05D6\u05E8\u05D4",helpLoading:"\u05D8\u05D5\u05E2\u05DF \u05E2\u05D6\u05E8\u05D4\u2026",helpSearchEmpty:"\u05D0\u05D9\u05DF \u05EA\u05D5\u05E6\u05D0\u05D5\u05EA \u05E2\u05D1\u05D5\u05E8 \u201E{query}\u201D",helpShowMore:"\u05D4\u05E6\u05D2\u05EA \u05E2\u05D5\u05D3",newsTitle:"\u05D7\u05D3\u05E9\u05D5\u05EA",newsEmpty:"\u05D0\u05D9\u05DF \u05E2\u05D3\u05D9\u05D9\u05DF \u05D7\u05D3\u05E9\u05D5\u05EA",newsLoading:"\u05D8\u05D5\u05E2\u05DF \u05D7\u05D3\u05E9\u05D5\u05EA\u2026",newsShowMore:"\u05D4\u05E6\u05D2\u05EA \u05E2\u05D5\u05D3",newsUnseen:"\u05E4\u05D5\u05E1\u05D8 \u05D7\u05D3\u05E9",unread:"\u05DC\u05D0 \u05E0\u05E7\u05E8\u05D0",formRequired:"\u05E9\u05D3\u05D4 \u05D7\u05D5\u05D1\u05D4",formInvalidEmail:"\u05D4\u05D6\u05DF \u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC \u05EA\u05E7\u05D9\u05E0\u05D4",formInvalidTel:"\u05D4\u05D6\u05DF \u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF \u05EA\u05E7\u05D9\u05DF",formInvalidNumber:"\u05D4\u05D6\u05DF \u05DE\u05E1\u05E4\u05E8 \u05EA\u05E7\u05D9\u05DF",formOtherPlaceholder:"\u05DB\u05EA\u05D5\u05D1 \u05D0\u05EA \u05EA\u05E9\u05D5\u05D1\u05EA\u05DA\u2026",inputRequired:"\u05E9\u05D0\u05DC\u05D5\u05EA \u05E2\u05D1\u05D5\u05E8\u05DA",askFallbackQuestion:"\u05D0\u05E0\u05D0 \u05E1\u05E4\u05E7\u05D5 \u05D0\u05EA \u05D4\u05DE\u05D9\u05D3\u05E2 \u05D4\u05D7\u05E1\u05E8.",inputBadge:"\u05E9\u05D0\u05DC\u05D5\u05EA",inputAnswered:"\u05E0\u05E2\u05E0\u05D4",inputSkipped:"\u05D3\u05D5\u05DC\u05D2",showOptions:"\u05D4\u05E6\u05D2 \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA",hideOptions:"\u05D4\u05E1\u05EA\u05E8 \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA",qtypeText:"\u05D4\u05EA\u05E9\u05D5\u05D1\u05D4 \u05E9\u05DC\u05DA",qtypeEmail:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",qtypePhone:"\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF",qtypeNumber:"\u05DE\u05E1\u05E4\u05E8",qtypeDate:"\u05EA\u05D0\u05E8\u05D9\u05DA",qtypeChooseOne:"\u05D1\u05D7\u05E8 \u05D0\u05D7\u05EA",qtypeChooseAny:"\u05D1\u05D7\u05E8 \u05DB\u05DE\u05D4",qtypeBoolean:"\u05DB\u05DF / \u05DC\u05D0",inputSubmit:"\u05E9\u05DC\u05D9\u05D7\u05EA \u05EA\u05E9\u05D5\u05D1\u05D5\u05EA",inputSubmitHint:"Enter \u05DC\u05E9\u05DC\u05D9\u05D7\u05D4 \xB7 Shift+Enter = \u05E9\u05D5\u05E8\u05D4 \u05D7\u05D3\u05E9\u05D4",inputSkip:"\u05D3\u05D9\u05DC\u05D5\u05D2",confirmYes:"\u05DB\u05DF",confirmNo:"\u05DC\u05D0",approve:"\u05D0\u05D9\u05E9\u05D5\u05E8",decline:"\u05D3\u05D7\u05D9\u05D9\u05D4",changeAnswer:"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D4\u05EA\u05E9\u05D5\u05D1\u05D4",approvalPrompt:"{action}?",approvalEditHint:"\u05D0\u05E4\u05E9\u05E8 \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05EA\u05E9\u05D5\u05D1\u05D4 \u05E2\u05D3 \u05E9\u05D4\u05E9\u05DC\u05D1 \u05D4\u05D6\u05D4 \u05D9\u05DE\u05E9\u05D9\u05DA.",stepInput:"\u05E7\u05DC\u05D8",stepWorking:"\u05D1\u05D1\u05D9\u05E6\u05D5\u05E2",stepWorkingOnIt:"\u05DE\u05D8\u05E4\u05DC\u05D9\u05DD \u05D1\u05D6\u05D4\u2026",stepNeedsYourApproval:"\u05E0\u05D3\u05E8\u05E9 \u05D4\u05D0\u05D9\u05E9\u05D5\u05E8 \u05E9\u05DC\u05DA",stepWaitingForVisitor:"\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05DE\u05D1\u05E7\u05E8",stepApproved:"\u05D0\u05D5\u05E9\u05E8",stepDeclined:"\u05E0\u05D3\u05D7\u05D4",stepReplaced:"\u05D4\u05D5\u05D7\u05DC\u05E3",stepFailed:"\u05E0\u05DB\u05E9\u05DC",stepDidNotWork:"\u05DC\u05D0 \u05D4\u05E6\u05DC\u05D9\u05D7",decidedYouApproved:"\u05D0\u05D9\u05E9\u05E8\u05EA",decidedYouDeclined:"\u05D3\u05D7\u05D9\u05EA",decidedVisitorApproved:"\u05D0\u05D5\u05E9\u05E8 \u05E2\u05DC \u05D9\u05D3\u05D9 \u05D4\u05DE\u05D1\u05E7\u05E8",decidedVisitorDeclined:"\u05E0\u05D3\u05D7\u05D4 \u05E2\u05DC \u05D9\u05D3\u05D9 \u05D4\u05DE\u05D1\u05E7\u05E8",decidedTeamApproved:"\u05D0\u05D5\u05E9\u05E8 \u05E2\u05DC \u05D9\u05D3\u05D9 \u05D7\u05D1\u05E8 \u05E6\u05D5\u05D5\u05EA",decidedTeamDeclined:"\u05E0\u05D3\u05D7\u05D4 \u05E2\u05DC \u05D9\u05D3\u05D9 \u05D7\u05D1\u05E8 \u05E6\u05D5\u05D5\u05EA",decidedMemberApproved:"\u05D0\u05D5\u05E9\u05E8 \u05E2\u05DC \u05D9\u05D3\u05D9 {name}",decidedMemberDeclined:"\u05E0\u05D3\u05D7\u05D4 \u05E2\u05DC \u05D9\u05D3\u05D9 {name}",stepRawData:"\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05D2\u05D5\u05DC\u05DE\u05D9\u05D9\u05DD",decidedRulesApproved:"\u05D0\u05D5\u05E9\u05E8 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA",decidedRulesDeclined:"\u05E0\u05D3\u05D7\u05D4 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA",edit:"\u05E2\u05E8\u05D9\u05DB\u05D4",toolStepsFailed:"{count} \u05E0\u05DB\u05E9\u05DC\u05D5",statusStopped:"\u05E0\u05E2\u05E6\u05E8",toolStepsStopped:"\u05E0\u05E2\u05E6\u05E8 \u05D0\u05D7\u05E8\u05D9 {count} \u05E9\u05DC\u05D1\u05D9\u05DD",toolStepsStoppedOne:"\u05E0\u05E2\u05E6\u05E8 \u05D0\u05D7\u05E8\u05D9 \u05E9\u05DC\u05D1 \u05D0\u05D7\u05D3"},Pg={attach:"\u6DFB\u52A0\u9644\u4EF6",file:"\u6587\u4EF6",attachmentMimeRejected:"\u6B64\u804A\u5929\u4E0D\u63A5\u53D7 {name} \u7684\u6587\u4EF6\u7C7B\u578B\u3002",attachmentTooLarge:"{name} \u592A\u5927\u4E86\u3002\u6587\u4EF6\u603B\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 {max}\u3002",poweredBy:"\u7531 {name} \u63D0\u4F9B\u652F\u6301",attachmentTooMany:"\u6700\u591A\u53EF\u6DFB\u52A0 {count} \u4E2A\u9644\u4EF6\u3002",attachmentUploadFailed:"{name} \u4E0A\u4F20\u5931\u8D25\u3002",conversationLoading:"\u6B63\u5728\u52A0\u8F7D\u804A\u5929\u2026",loadPreviousMessages:"\u52A0\u8F7D\u66F4\u65E9\u7684\u6D88\u606F",close:"\u5173\u95ED",collapse:"\u6536\u8D77",collapseSidebar:"\u6536\u8D77\u4FA7\u8FB9\u680F",composerPlaceholder:"\u8F93\u5165\u6D88\u606F\u2026",dateLastWeek:"\u6700\u8FD1 7 \u5929",dateOlder:"\u66F4\u65E9",dateToday:"\u4ECA\u5929",dateYesterday:"\u6628\u5929",dropZone:"\u62D6\u653E\u6587\u4EF6\u4EE5\u6DFB\u52A0\u9644\u4EF6",dropZoneRejected:"\u8FD9\u4E9B\u6587\u4EF6\u65E0\u6CD5\u5728\u6B64\u6DFB\u52A0",errorGeneric:"\u51FA\u4E86\u70B9\u95EE\u9898",errorRateLimited:"\u8BF7\u6C42\u8FC7\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",errorRateLimitedIn:"\u8BF7\u6C42\u8FC7\u591A\uFF0C\u8BF7\u5728 {seconds} \u79D2\u540E\u91CD\u8BD5\u3002",errorOffline:"\u65E0\u6CD5\u8FDE\u63A5\u670D\u52A1\u5668\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",errorServer:"\u6211\u4EEC\u8FD9\u8FB9\u51FA\u4E86\u70B9\u95EE\u9898\u3002\u8BF7\u91CD\u8BD5\u3002",errorOriginNotAllowed:"\u6B64\u804A\u5929\u5C1A\u672A\u4E3A\u672C\u7F51\u7AD9\u8BBE\u7F6E\u3002",errorMessageTooLong:"\u6D88\u606F\u592A\u957F\u4E86\u3002\u8BF7\u7F29\u77ED\u540E\u91CD\u65B0\u53D1\u9001\u3002",errorReconnecting:"\u8FDE\u63A5\u5DF2\u65AD\u5F00\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5\u2026",errorRetry:"\u91CD\u8BD5",expand:"\u5C55\u5F00",expandSidebar:"\u5C55\u5F00\u4FA7\u8FB9\u680F",exitFullscreen:"\u9000\u51FA\u5168\u5C4F",fullscreen:"\u5168\u5C4F",history:"\u5386\u53F2\u8BB0\u5F55",historyBack:"\u8FD4\u56DE\u804A\u5929",historyEmpty:"\u8FD8\u6CA1\u6709\u4EE5\u524D\u7684\u804A\u5929",historyLoading:"\u6B63\u5728\u52A0\u8F7D\u4F60\u7684\u804A\u5929\u2026",historyContinue:"\u7EE7\u7EED\u804A\u5929",historyTitle:"\u804A\u5929\u8BB0\u5F55",loadMoreConversations:"\u52A0\u8F7D\u66F4\u591A\u5BF9\u8BDD",language:"\u8BED\u8A00",launcherOpen:"\u6253\u5F00\u804A\u5929",launcherAsk:"\u8BE2\u95EE {name}",micBlocked:"\u6B64\u7F51\u7AD9\u7684\u9EA6\u514B\u98CE\u5DF2\u88AB\u963B\u6B62\uFF0C\u65E0\u6CD5\u5F00\u59CB\u8BED\u97F3\u8F93\u5165\u3002",micStart:"\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",micStop:"\u505C\u6B62\u8BED\u97F3\u8F93\u5165",moreActions:"\u66F4\u591A\u64CD\u4F5C",newConversation:"\u65B0\u804A\u5929",panelTitle:"\u804A\u5929",popOut:"\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",resizeHandle:"\u62D6\u52A8\u4EE5\u8C03\u6574\u5927\u5C0F",scrollToBottom:"\u6EDA\u52A8\u5230\u6700\u65B0",send:"\u53D1\u9001",queueMessage:"\u6392\u961F\u53D1\u9001",removeQueuedMessage:"\u79FB\u9664\u6392\u961F\u7684\u6D88\u606F",removeAttachment:"\u79FB\u9664 {name}",suggestedReplies:"\u63A8\u8350\u56DE\u590D",compactingContext:"\u6B63\u5728\u4F18\u5316\u5BF9\u8BDD\u4E0A\u4E0B\u6587\u2026",soundOff:"\u5173\u95ED\u58F0\u97F3",soundOn:"\u6253\u5F00\u58F0\u97F3",talkToOperator:"\u4E0E\u771F\u4EBA\u4EA4\u8C08",connectingOperator:"\u6B63\u5728\u4E3A\u4F60\u8054\u7CFB\u771F\u4EBA\u2026",noOperatorAvailable:"\u76EE\u524D\u6CA1\u6709\u4EBA\u6709\u7A7A\uFF0C\u8BF7\u7559\u4E0B\u4F60\u7684\u8054\u7CFB\u65B9\u5F0F\uFF0C\u6211\u4EEC\u4F1A\u8DDF\u8FDB\u3002",chattingWithOperator:"\u4F60\u6B63\u5728\u4E0E {operator} \u804A\u5929",operatorBadgeTitle:"\u5728\u7EBF\u804A\u5929",chatNotice:"\u4F60\u6B63\u5728\u4E0E AI \u52A9\u624B\u804A\u5929\u3002",cancelOperatorRequest:"\u7EE7\u7EED\u4E0E AI \u804A\u5929",loginPrompt:"\u767B\u5F55\u4EE5\u83B7\u5F97\u66F4\u5FEB\u3001\u66F4\u4E2A\u6027\u5316\u7684\u652F\u6301",loginAction:"\u767B\u5F55",loginRequired:"\u767B\u5F55\u540E\u4E0E\u6211\u4EEC\u804A\u5929",loginExpired:"\u4F60\u7684\u767B\u5F55\u5DF2\u8FC7\u671F\u3002\u8BF7\u767B\u5F55\u4EE5\u7EE7\u7EED\u6B64\u804A\u5929\u3002",loginExpiredGuest:"\u4F60\u7684\u767B\u5F55\u5DF2\u8FC7\u671F\u3002\u8BF7\u767B\u5F55\u4EE5\u7EE7\u7EED\u6B64\u804A\u5929\uFF0C\u6216\u4EE5\u8BBF\u5BA2\u8EAB\u4EFD\u5F00\u59CB\u65B0\u5BF9\u8BDD\u3002",startAsGuest:"\u5F00\u59CB\u65B0\u5BF9\u8BDD",loggedInAs:"\u5DF2\u767B\u5F55\u4E3A {name}",loggedIn:"\u5DF2\u767B\u5F55",dismissLoginPrompt:"\u9690\u85CF",emailTranscript:"\u901A\u8FC7\u90AE\u4EF6\u53D1\u9001\u804A\u5929\u8BB0\u5F55",emailTranscriptPrompt:"\u901A\u8FC7\u90AE\u4EF6\u83B7\u53D6\u6B64\u5BF9\u8BDD\u7684\u526F\u672C\u3002",emailTranscriptEmailLabel:"\u90AE\u7BB1\u5730\u5740",emailTranscriptSend:"\u53D1\u9001\u804A\u5929\u8BB0\u5F55",emailTranscriptSending:"\u6B63\u5728\u53D1\u9001\u2026",emailTranscriptSent:"\u5DF2\u53D1\u9001\u81F3 {email}\u3002",emailTranscriptAlreadySent:"\u6B64\u5BF9\u8BDD\u5DF2\u901A\u8FC7\u90AE\u4EF6\u53D1\u9001\u3002\u53D1\u9001\u4E00\u6761\u65B0\u6D88\u606F\u540E\u53EF\u518D\u6B21\u53D1\u9001\u3002",emailTranscriptLimited:"\u4F60\u5DF2\u8FBE\u5230\u5F53\u524D\u4E0A\u9650\u3002\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",emailTranscriptFailed:"\u53D1\u9001\u5931\u8D25\u3002\u8BF7\u91CD\u8BD5\u3002",emailTranscriptNotDelivered:"\u65E0\u6CD5\u53D1\u9001\u5230\u6B64\u5730\u5740\u3002\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",emailTranscriptCancel:"\u53D6\u6D88",emailTranscriptDone:"\u5B8C\u6210",stop:"\u505C\u6B62",theme:"\u4E3B\u9898",themeAuto:"\u81EA\u52A8",themeDark:"\u6DF1\u8272",themeLight:"\u6D45\u8272",textSize:"\u6587\u5B57\u5927\u5C0F",textSizeSmall:"\u5C0F",textSizeNormal:"\u6807\u51C6",textSizeLarge:"\u5927",loading:"\u6B63\u5728\u52A0\u8F7D\u2026",visualPreparing:"\u6B63\u5728\u51C6\u5907\u56FE\u8868\u2026",visualError:"\u65E0\u6CD5\u663E\u793A\u6B64\u56FE\u8868\u3002",visualPartial:"\u6B64\u56FE\u8868\u7684\u90E8\u5206\u5185\u5BB9\u65E0\u6CD5\u663E\u793A\u3002",visualSoldOut:"\u5DF2\u552E\u7F44",visualCartEmpty:"\u4F60\u7684\u8D2D\u7269\u8F66\u662F\u7A7A\u7684\u3002",visualQuantity:"\u6570\u91CF",visualChoose:"\u9009\u62E9",thinking:"\u6B63\u5728\u601D\u8003\u2026",thought:"\u601D\u8003\u8FC7\u7A0B",thoughtFor:"\u601D\u8003\u4E86 {time}",toolResult:"\u7ED3\u679C",sources:"\u6765\u6E90",feedbackUp:"\u56DE\u7B54\u5F88\u597D",feedbackDown:"\u56DE\u7B54\u4E0D\u597D",feedbackThanks:"\u611F\u8C22\u4F60\u7684\u53CD\u9988",copy:"\u590D\u5236",copied:"\u5DF2\u590D\u5236",copyTicketReference:"\u5DE5\u5355 {reference}\uFF0C\u590D\u5236",tabHome:"\u9996\u9875",tabConversations:"\u804A\u5929",tabHelp:"\u5E2E\u52A9",tabNews:"\u52A8\u6001",modulesEmpty:"\u8FD9\u91CC\u8FD8\u6CA1\u6709\u5185\u5BB9",chatUnavailable:"\u6B64\u804A\u5929\u76EE\u524D\u4E0D\u53EF\u7528",moduleBack:"\u8FD4\u56DE",contentLoading:"\u6B63\u5728\u52A0\u8F7D\u2026",contentHelpful:"\u8FD9\u5BF9\u4F60\u6709\u5E2E\u52A9\u5417\uFF1F",homeGreeting:"\u6709\u4EC0\u4E48\u53EF\u4EE5\u5E2E\u4F60\uFF1F",homeGreetingNamed:"\u4F60\u597D\uFF0C{name} \u{1F44B}",homeGreetingLead:"\u6709\u4EC0\u4E48\u53EF\u4EE5\u5E2E\u4F60\uFF1F",homeSearchPlaceholder:"\u641C\u7D22\u5E2E\u52A9",homeAskPlaceholder:"\u63D0\u51FA\u95EE\u9898\u2026",homeWhatsNew:"\u6700\u65B0\u52A8\u6001",homeContentTitle:"\u70ED\u95E8\u6587\u7AE0",homeStatus:"\u72B6\u6001",helpTitle:"\u5E2E\u52A9",helpSearchPlaceholder:"\u641C\u7D22\u5E2E\u52A9",helpEmpty:"\u8FD8\u6CA1\u6709\u5E2E\u52A9\u6587\u7AE0",helpLoading:"\u6B63\u5728\u52A0\u8F7D\u5E2E\u52A9\u2026",helpSearchEmpty:"\u6CA1\u6709\u627E\u5230\u201C{query}\u201D\u7684\u7ED3\u679C",helpShowMore:"\u663E\u793A\u66F4\u591A",newsTitle:"\u52A8\u6001",newsEmpty:"\u8FD8\u6CA1\u6709\u52A8\u6001",newsLoading:"\u6B63\u5728\u52A0\u8F7D\u52A8\u6001\u2026",newsShowMore:"\u663E\u793A\u66F4\u591A",newsUnseen:"\u65B0\u6587\u7AE0",unread:"\u672A\u8BFB",formRequired:"\u6B64\u9879\u4E3A\u5FC5\u586B",formInvalidEmail:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740",formInvalidTel:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7535\u8BDD\u53F7\u7801",formInvalidNumber:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u6570\u5B57",formOtherPlaceholder:"\u8F93\u5165\u4F60\u7684\u56DE\u7B54\u2026",inputRequired:"\u9700\u8981\u4F60\u56DE\u7B54\u7684\u95EE\u9898",askFallbackQuestion:"\u8BF7\u63D0\u4F9B\u7F3A\u5C11\u7684\u4FE1\u606F\u3002",inputBadge:"\u95EE\u9898",inputAnswered:"\u5DF2\u56DE\u7B54",inputSkipped:"\u5DF2\u8DF3\u8FC7",showOptions:"\u663E\u793A\u9009\u9879",hideOptions:"\u9690\u85CF\u9009\u9879",qtypeText:"\u4F60\u7684\u56DE\u7B54",qtypeEmail:"\u90AE\u7BB1\u5730\u5740",qtypePhone:"\u7535\u8BDD\u53F7\u7801",qtypeNumber:"\u6570\u5B57",qtypeDate:"\u65E5\u671F",qtypeChooseOne:"\u9009\u62E9\u4E00\u9879",qtypeChooseAny:"\u53EF\u591A\u9009",qtypeBoolean:"\u662F / \u5426",inputSubmit:"\u63D0\u4EA4\u56DE\u7B54",inputSubmitHint:"Enter \u53D1\u9001 \xB7 Shift+Enter \u6362\u884C",inputSkip:"\u8DF3\u8FC7",confirmYes:"\u662F",confirmNo:"\u5426",approve:"\u6279\u51C6",decline:"\u62D2\u7EDD",changeAnswer:"\u4FEE\u6539\u56DE\u7B54",approvalPrompt:"{action}\uFF1F",approvalEditHint:"\u5728\u6B64\u6B65\u9AA4\u7EE7\u7EED\u4E4B\u524D\uFF0C\u4F60\u53EF\u4EE5\u4FEE\u6539\u56DE\u7B54\u3002",stepInput:"\u8F93\u5165",stepWorking:"\u8FDB\u884C\u4E2D",stepWorkingOnIt:"\u6B63\u5728\u5904\u7406\u2026",stepNeedsYourApproval:"\u9700\u8981\u4F60\u7684\u6279\u51C6",stepWaitingForVisitor:"\u7B49\u5F85\u8BBF\u5BA2",stepApproved:"\u5DF2\u6279\u51C6",stepDeclined:"\u5DF2\u62D2\u7EDD",stepReplaced:"\u5DF2\u66FF\u6362",stepFailed:"\u5931\u8D25",stepDidNotWork:"\u672A\u6210\u529F",decidedYouApproved:"\u4F60\u5DF2\u6279\u51C6",decidedYouDeclined:"\u4F60\u5DF2\u62D2\u7EDD",decidedVisitorApproved:"\u8BBF\u5BA2\u5DF2\u6279\u51C6",decidedVisitorDeclined:"\u8BBF\u5BA2\u5DF2\u62D2\u7EDD",decidedTeamApproved:"\u56E2\u961F\u6210\u5458\u5DF2\u6279\u51C6",decidedTeamDeclined:"\u56E2\u961F\u6210\u5458\u5DF2\u62D2\u7EDD",decidedMemberApproved:"{name} \u5DF2\u6279\u51C6",decidedMemberDeclined:"{name} \u5DF2\u62D2\u7EDD",stepRawData:"\u539F\u59CB\u6570\u636E",decidedRulesApproved:"\u5DF2\u81EA\u52A8\u6279\u51C6",decidedRulesDeclined:"\u5DF2\u81EA\u52A8\u62D2\u7EDD",edit:"\u7F16\u8F91",toolStepsFailed:"{count} \u4E2A\u5931\u8D25",statusStopped:"\u5DF2\u505C\u6B62",toolStepsStopped:"\u5728 {count} \u6B65\u540E\u505C\u6B62",toolStepsStoppedOne:"\u5728 1 \u6B65\u540E\u505C\u6B62"},xg={en:mi,fr:vg,es:yg,ar:hg,he:bg,zh:Pg};function gi(e,t){let r=Kc(e),n=hi(t),o=xg[Gc(r)],s=n?{...t[r],...t[e]}:t??{},a=n?t.en??{}:{};return{...mi,...o,...a,...s}}function Kc(e){return(e.split("-")[0]??"en").toLowerCase()}var Sg=new Set(["ar","he","iw","fa","ur","ps","sd","ug","yi","dv","ckb","ks","nqo","prs","syr"]);function vi(e){return Sg.has(Kc(e))}function mt(e,t){return e[t]??t}function hi(e){if(!e)return!1;for(let t of Object.values(e))if(t&&typeof t=="object")return!0;return!1}var q={id:"help-ai",name:"@helpai/elements",global:"HelpAI",tagName:"web-ai-chat",cssPrefix:"helpai",defaultBaseUrl:"https://help.ai",displayName:"Help AI",domain:"help.ai",siteUrl:"https://help.ai"};var Jc=["decided","auto-decided","unasked","failed"],yi=["platform","mcp","api","webmcp"],wg=["none","values","table","json","table-and-json"];function Xc(e,t){return typeof t=="string"&&e.some(r=>r===t)}var kg={visitor:{stepsFrom:yi,stepsShown:[],stepDetails:"values",showStepSystem:!1,showDecidedBy:!1,foldApprovals:!0},member:{stepsFrom:yi,stepsShown:Jc,stepDetails:"table-and-json",showStepSystem:!0,showDecidedBy:!0,foldApprovals:!0}},Cg=["showStepSystem","showDecidedBy","foldApprovals"];function Zc(e){let t={};if(typeof e!="object"||e===null)return t;for(let s of Cg){let a=Reflect.get(e,s);typeof a=="boolean"&&(t[s]=a)}let r=Reflect.get(e,"stepsFrom");Array.isArray(r)&&(t.stepsFrom=yi.filter(s=>r.includes(s)));let n=Reflect.get(e,"stepsShown");Array.isArray(n)&&(t.stepsShown=Jc.filter(s=>n.includes(s)));let o=Reflect.get(e,"stepDetails");return Xc(wg,o)&&(t.stepDetails=o),t}function ed(e,t){return{...kg[t],...e}}var td=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Tg=4e3;function ks(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function Ig(e){if(e.title)return e.title;let t=e.toolName.replace(/^tool[:-]/,""),r=t.indexOf("__");return ks(r>0?t.slice(r+2):t)}function Ag(e,t,r){let n=e.approval;return n?.replacedByMessageId?"replaced":e.state==="output-available"?r.error===void 0?"done":"failed":e.state==="output-error"?t.interrupted?"stopped":"failed":e.state==="output-denied"||n?.approved===!1?"declined":e.state==="approval-responded"||n?.approved===!0?t.cutOff?"stopped":"approved":e.state==="approval-requested"?t.submitted?"submitted":t.cutOff?"stopped":t.superseded?"replaced":"waiting":t.live?"running":"stopped"}function Rg(e,t){if(e.isAutomatic)return"rules";let r=e.respondedBy;return r?.visitorId?"visitor":r?.userId?r.userId===t.userId?"you":"teamMember":t.decides?"you":"visitor"}function Eg(e,t,r,n,o){let s=n[t?"inputAnswered":"inputSkipped"];if(o)return{label:s,title:s};let a=n[t?"stepApproved":"stepDeclined"];if(e==="teamMember"&&r)return{label:a,title:n[t?"decidedMemberApproved":"decidedMemberDeclined"].replace("{name}",r)};let i=n[Mg[e][t?0:1]];return e==="you"?{label:a,title:i}:{label:i,title:i}}var Mg={you:["decidedYouApproved","decidedYouDeclined"],visitor:["decidedVisitorApproved","decidedVisitorDeclined"],teamMember:["decidedTeamApproved","decidedTeamDeclined"],rules:["decidedRulesApproved","decidedRulesDeclined"]};function Lg(e,t){switch(e){case"running":return t.strings.stepWorking;case"waiting":return t.reader.decides?t.strings.stepNeedsYourApproval:t.strings.stepWaitingForVisitor;case"submitted":return t.strings.stepWorkingOnIt;case"approved":return t.strings.stepApproved;case"declined":return t.card?t.strings.inputSkipped:t.strings.stepDeclined;case"replaced":return t.card?t.strings.inputSkipped:t.strings.stepReplaced;case"stopped":return t.strings.statusStopped;case"failed":return t.plain?t.strings.stepDidNotWork:t.strings.stepFailed;case"done":return"";default:return e}}function rr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function rd(e){return typeof e=="string"?e.trim():typeof e=="number"||typeof e=="boolean"?String(e):""}function Qc(e){return rd(e)||(e!==null&&typeof e=="object"?JSON.stringify(e):"")}function Ng(e){if(!rr(e))return Qc(e);let[t,...r]=Object.values(e).map(Qc).filter(Boolean);return t===void 0?"":r.length>0?`${t} (${r.join(", ")})`:t}function Yc(e,t){if(!rr(e))return[];let r=[];function n(s,a){if(Array.isArray(s)){let c=s.map(Ng).filter(Boolean).join(", ");c&&r.push({path:a,value:c});return}if(rr(s)){for(let[c,u]of Object.entries(s))n(u,[...a,c]);return}let i=rd(s);i&&(t.withIds||!td.test(i))&&r.push({path:a,value:i})}n(e,[]);let o=r.map(({path:s})=>ks(s.at(-1)??""));return r.map(({path:s,value:a},i)=>{let c=o[i]??"";return{label:o.filter(p=>p===c).length>1&&s.length>1?`${ks(s.at(-2)??"")} \xB7 ${c.toLowerCase()}`:c,value:a}})}function Og(e,t){if(rr(e))return Object.entries(e).find(r=>r[0]!==t&&typeof r[1]=="string"&&r[1].trim().length>0&&!td.test(r[1].trim()))?.[1].trim()}function $g(e){if(typeof e.toolMetadata?.system=="string")return e.toolMetadata.system;let t=e.toolMetadata?.systemField,r=typeof t=="string"&&rr(e.input)?e.input[t]:void 0;return typeof r=="string"&&r.trim()?r.trim():void 0}function bi(e,t=Number.POSITIVE_INFINITY){if(e==null)return;let r=typeof e=="string"?e:JSON.stringify(e,null,2);if(!(!r||r==="{}"||r==="[]"||r==='""'))return r.length>t?`${r.slice(0,t)}\u2026`:r}function Dg(e){let t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return e;try{return JSON.parse(t)}catch{return e}}function nd(e){if(rr(e)&&e.storage==="tool-result-ref"&&"summary"in e)return nd(e.summary);if(rr(e)&&Array.isArray(e.content)){let t=e.content.flatMap(n=>rr(n)&&typeof n.text=="string"?[n.text]:[]).join(`
2
- `),r=rr(e.structuredContent)?e.structuredContent:Dg(t);return e.isError===!0?{value:r,error:rr(r)&&typeof r.error=="string"?r.error:t}:{value:r}}return rr(e)&&typeof e.error=="string"&&typeof e.instruction=="string"?{value:e,error:e.error}:{value:e}}function qg(e){return bi(e.input)!==void 0||bi(e.output)!==void 0||!!e.errorText}function Ug(e,t){let r=e.approval?"decided":"unasked",n=e.approval?.isAutomatic?"auto-decided":r;return t==="failed"?[n,"failed"]:[n]}function Bg(e){let t=e.toolMetadata?.origin;return Xc(yi,t)?t:void 0}function zg(e,t,r){let{display:n}=r,o=e.approval,s=o!==void 0&&!o.isAutomatic;if(s&&Cs(e,r.turn))return"card";let a=r.by==="you"||s&&r.by===void 0&&r.reader.decides,i=Bg(e),c=(i===void 0||n.stepsFrom.includes(i))&&Ug(e,t.status).some(u=>n.stepsShown.includes(u));return!(a||c)||!o&&!qg(e)?"hidden":s&&!n.foldApprovals?"card":"step"}function Cs(e,t){return e.approval?.replacedByMessageId||(t.superseded||t.cutOff)&&e.approval?.approved===void 0?!1:e.state==="approval-requested"||e.state==="approval-responded"}function od(e,t){let{turn:r,reader:n,display:o,strings:s}=t,a=nd(e.output),i=Ag(e,r,a),c=e.approval,u=c!==void 0&&!c.isAutomatic,p=typeof e.toolMetadata?.card=="string"?e.toolMetadata.card:void 0,_=o.stepDetails,d=_==="table"||_==="table-and-json",f=_==="none"||_==="values",v=c?.replacedByMessageId?void 0:c?.approved,g=c&&v!==void 0?Rg(c,n):void 0,w=g==="teamMember"?c?.respondedBy?.userId:void 0,b=g&&v!==void 0&&(g==="you"||g==="rules"||o.showDecidedBy)?{approved:v,by:g,...Eg(g,v,w&&t.names?.get(w),s,p!==void 0),...w?{userId:w}:{}}:void 0,y=Ig(e),x=o.showStepSystem||e.toolMetadata?.nameShared===!0?$g(e):void 0,P=Og(e.input,typeof e.toolMetadata?.systemField=="string"?e.toolMetadata.systemField:void 0),k=e.errorText??a.error,h=d&&a.error===void 0?Yc(a.value,{withIds:!0}):[],m=_==="json"||_==="table-and-json"?{input:bi(e.input),output:bi(a.value,Tg)}:void 0,S=u&&Cs(e,r),A=_==="none"&&!S?[]:Yc(e.input,{withIds:d||S}),I=k!==void 0&&k!==""&&!f,R=b?.by==="rules"&&_!=="none"?c?.reason:void 0,C=b!==void 0&&(i==="approved"||i==="declined"),M={toolCallId:e.toolCallId,placement:"hidden",...p&&c?{card:p}:{},name:y,...x?{system:x}:{},status:i,statusLabel:C?"":Lg(i,{reader:n,strings:s,card:p!==void 0,plain:f}),...b?{decision:b}:{},...R?{reason:R}:{},...P?{summary:P}:{},fields:A,tables:d,...h.length>0?{resultFields:h}:{},...I?{error:k}:{},...m?{raw:m}:{},opens:A.length>0||h.length>0||m!==void 0||I||R!==void 0,...u&&!p?{approval:Fg(e,i,{turn:r,reader:n,strings:s,name:y})}:{}};return{...M,placement:zg(e,M,{turn:r,reader:n,display:o,by:g})}}function Fg(e,t,r){let n=r.strings.approvalPrompt.replace("{action}",r.name);return t==="waiting"?{ask:n,buttons:r.reader.decides?"decide":"none"}:t==="submitted"?{ask:n,buttons:"none"}:Cs(e,r.turn)?r.turn.canAct&&r.reader.decides?{ask:n,buttons:"change",note:r.strings.approvalEditHint}:t==="approved"?{ask:n,buttons:"none",note:r.strings.stepWorkingOnIt}:{ask:n,buttons:"none"}:{ask:n,buttons:"none"}}function id(e){let t=new Map;for(let s of e)t.set(s.name,(t.get(s.name)??0)+1);let r=new Map;for(let{decision:s}of e){if(!s)continue;let a=r.get(s.title)??{approved:s.approved,label:s.label,title:s.title,...s.userId?{userId:s.userId}:{},count:0};r.set(s.title,{...a,count:a.count+1})}let[n]=e,o=e.some(s=>s.status==="stopped");return{tools:[...t].map(([s,a])=>({name:s,count:a})),...e.length===1&&n?{single:{name:n.name,...n.system?{system:n.system}:{},...n.summary?{summary:n.summary}:{},...Hg(n)}}:{},marks:[...r.values()].map(({count:s,...a})=>Object.assign(a,{label:s>1?`${a.label} \xD7${s}`:a.label})),failed:e.filter(s=>s.status==="failed").length,...o?{stopped:{finished:e.filter(s=>s.status!=="stopped").length}}:{}}}function Hg(e){return!e.decision&&(e.status==="replaced"||e.status==="declined")?{outcome:e.statusLabel}:{}}function ad(e,t){return e===0?t.statusStopped:e===1?t.toolStepsStoppedOne:t.toolStepsStopped.replace("{count}",String(e))}var Ts=class{get(t){try{return localStorage.getItem(t)}catch{return null}}set(t,r){try{localStorage.setItem(t,r)}catch{}}remove(t){try{localStorage.removeItem(t)}catch{}}},Pi=new Ts,Yr={get(e){try{return sessionStorage.getItem(e)}catch{return null}},set(e,t){try{sessionStorage.setItem(e,t)}catch{}},remove(e){try{sessionStorage.removeItem(e)}catch{}}};var xi={maxBytes:10485760,maxCount:10,accept:"*/*"},sd={voice:"local"},Is={enabled:!0,sampleRate:1},As={upload:"/pai/upload-file",transcribe:"/pai/transcribe-audio"},Sn={variant:"circle",size:"md",label:void 0,icon:"chat",hidden:!1},ld={floating:["theme","textSize","history","close","clear","expand","fullscreen","popOut","sound","language"],inline:["theme","textSize","history","close","clear","fullscreen","popOut","sound","language"],standalone:["theme","textSize","history","clear","sound","language"],page:["theme","textSize","history","clear","sound","language"],modal:["theme","textSize","history","close","clear","fullscreen","popOut","sound","language"],drawer:["theme","textSize","history","close","clear","fullscreen","popOut","sound","language"]},Rs={enabled:!0,volume:.3,events:void 0},cd={enabled:!0,events:void 0},dd=[{label:"tabConversations",layout:"chat"}];var Ls=["off","error","warn","info","debug","trace"],Ns=q.cssPrefix,ud=`${Ns}.debug`,jg=`__${q.global}_DEBUG__`,Vg=`${Ns}-debug`,Si=2,Es=null;function Wg(){if(typeof window>"u")return 2;try{let e=new URLSearchParams(window.location.search).get(Vg);if(e!==null){let t=Ms(e);if(t>=0)return t}}catch{}try{let e=window.localStorage?.getItem(ud);if(e){let t=Ms(e);if(t>=0)return t}}catch{}return Reflect.get(window,jg)?4:2}function Ms(e){if(e===!0||e==="1"||e==="true")return 4;if(e===!1||e==="0"||e==="false"||e==="off")return 0;if(typeof e=="number")return Math.max(0,Math.min(5,Math.floor(e)));if(typeof e=="string"){let t=Ls.findIndex(r=>r===e);if(t>=0)return t}return-1}function wi(e){let t=Ms(e);if(!(t<0)){Si=t;try{window.localStorage?.setItem(ud,Ls[t]??"off")}catch{}}}function Os(){return Ls[Si]??"warn"}Si=Wg();function pd(e){let t=`[${Ns}:${e}]`;function r(n,o,s){return(a,i)=>{if(!(Si<n)&&(i===void 0?console[o](t,a):console[o](t,a,i),Es))try{Es({level:s,scope:e,message:a,payload:i})}catch{}}}return{error:r(1,"error","error"),warn:r(2,"warn","warn"),info:r(3,"info","info"),debug:r(4,"debug","debug"),trace:r(5,"debug","trace"),scope:n=>pd(`${e}:${n}`)}}var ne=pd("core");function _d(e){Es=e}var Jr=ne.scope("context"),Gg=new Set(["visitorId","conversationId","jwt","token","authorization","password"]),fd=50,$s=1024,Kg=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Ds(e){return md(e,"userContext",!0)}function qs(e){return md(e,"pageContext",!1)}function Qg(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function md(e,t,r){if(e==null)return;if(!Qg(e)){Jr.warn(`ignored ${t} \u2014 expected an object`,{type:Array.isArray(e)?"array":typeof e});return}let n={},o=0;for(let[s,a]of Object.entries(e)){if(Gg.has(s)){Jr.warn(`dropped reserved ${t} key "${s}" \u2014 managed by the widget, not host-settable`);continue}if(a==null)continue;if(o>=fd){Jr.warn(`${t} truncated at ${fd} keys \u2014 dropped "${s}"`);continue}let i=Yg(t,s,a);i!==void 0&&(n[s]=i,o++)}return r&&typeof n.email=="string"&&!Kg.test(n.email)&&(Jr.warn("dropped malformed context field",{field:`${t}.email`,reason:"invalid format"}),delete n.email),Object.keys(n).length>0?n:void 0}function Yg(e,t,r){if(typeof r=="boolean")return r;if(typeof r=="number"){if(!Number.isFinite(r)){Jr.warn(`dropped non-finite ${e}.${t}`);return}return r}if(typeof r=="string"){let n=r.trim();return n===""?void 0:n.length>$s?(Jr.warn(`truncated ${e}.${t} to ${$s} chars`),n.slice(0,$s)):n}Jr.warn(`dropped ${e}.${t} \u2014 only string/number/boolean values are allowed`,{type:typeof r})}function wn(e){let t=e!==null&&typeof e=="object"?e:{},r=t.presentation??{},n=t.behavior??{},o=t.i18n??{},s=t.feedback??{},a=t.footer??{},i=t.header??{},c={enabled:t.history?.enabled??!0},{themeMode:u,themeOverrides:p}=Jg(t.theme),_=r.mode??"floating",d=Xg(o.defaultLocale),f=o.availableLocales??[o.locale??d],v=kn(o.locale??d,f,d),g=(t.baseUrl??q.defaultBaseUrl).replace(/\/$/,""),w=(t.agentApiBaseUrl??`${g}/api/agent`).replace(/\/$/,""),b=(t.dataApiBaseUrl??`${g}/api/data`).replace(/\/$/,"");return{widgetId:t.widgetId??"default",publicKey:t.publicKey,aiAgentDeploymentId:t.aiAgentDeploymentId,baseUrl:g,agentApiBaseUrl:w,dataApiBaseUrl:b,userContext:Ds(t.userContext),pageContext:qs(t.pageContext),position:r.position??(vi(v)?"bottom-left":"bottom-right"),themeMode:u,textSize:"normal",themeOverrides:p,mode:_,responseMode:n.responseMode??"streaming",showReasoning:n.showReasoning??!1,stepDisplay:ed(n.stepDisplay,"visitor"),showSources:n.showSources??!1,enableMessageFeedback:!(n.disableMessageFeedback??!1),autoSendSuggestions:n.autoSendSuggestions??!1,cardAnswerWaitSeconds:n.cardAnswerWaitSeconds??60,popOutUrl:n.popOutUrl,features:{voice:t.features?.voice??sd.voice,fileUpload:!(t.features?.disableFileUpload??!1),humanInLoop:!(t.features?.disableHumanInLoop??!1),emailTranscript:!(t.features?.disableEmailTranscript??!1),operatorRequest:t.features?.enableOperatorRequest===!0&&!(t.features.hideRequestOperatorButton??!1)},endpoints:{upload:t.endpoints?.upload??As.upload,transcribe:t.endpoints?.transcribe??As.transcribe},attachments:{accept:t.composer?.attachments?.accept??xi.accept,maxBytes:t.composer?.attachments?.maxBytes??xi.maxBytes,maxCount:t.composer?.attachments?.maxCount??xi.maxCount},locale:v,defaultLocale:d,availableLocales:f,startMinimized:n.startMinimized??!0,actions:Zg(_,i.actions,c.enabled),size:{...r.size,resize:{...r.size?.resize,enabled:r.size?.resize?.enabled??!0}},launcher:av(t.launcher,t.agent?.name),sound:ev(s.sound),haptics:tv(s.haptics),strings:gi(v,o.strings),stringsOverride:o.strings,composerDisclaimer:a.composerDisclaimer??"",header:{variant:i.variant??"plain",notice:i.notice,showNotice:!(i.hideNotice??!1)},poweredBy:nv(a.poweredBy),composer:ov(t.composer),modules:iv(t.modules,c.enabled),tracking:rv(t.tracking,b),history:c,storage:t.storage??Pi,userToken:t.userToken,continueLink:t.continueLink,tools:t.tools,onMessage:t.onMessage,onOpen:t.onOpen,onClose:t.onClose,onError:t.onError}}function Jg(e){if(typeof e=="string")return{themeMode:e,themeOverrides:{}};if(!e||typeof e!="object")return{themeMode:"host",themeOverrides:{}};let{mode:t,...r}=e;return{themeMode:t??"host",themeOverrides:r}}function Xg(e){return e&&e!=="auto"?e:globalThis.navigator?.language||"en"}function kn(e,t,r){if(t.length<=1||t.includes(e))return e;let n=e.split("-")[0];return n&&t.includes(n)?n:t.includes(r)?r:t[0]??e}function Zg(e,t,r){let n=t??ld[e];return r?n:n.filter(o=>o!=="history")}function ev(e){return{enabled:e?.enabled??Rs.enabled,volume:e?.volume??Rs.volume,events:e?.events}}function tv(e){return{enabled:e?.enabled??cd.enabled,events:e?.events}}function rv(e,t){let r=e?.sampleRate??Is.sampleRate;return{enabled:e?.enabled??Is.enabled,endpoint:e?.endpoint??`${t}/pai/elements-px.gif`,sampleRate:Math.min(1,Math.max(0,Number.isFinite(r)?r:1)),token:e?.token}}function nv(e){return e?.text===""&&!e.logoUrl?null:{href:q.siteUrl,...e}}function ov(e){let t=e?.sendButton;return{sendButton:{shape:t?.shape??"circle",icon:t?.icon??"arrowUp",variant:t?.variant??"filled"}}}function iv(e,t){let r=(e??dd).slice(0,4),n=r.some(i=>i?.label&&i.layout==="help"),o=new Set,s=[];for(let i of r){if(!i?.label||!i?.layout)continue;let c=i.contentCollectionIds?.filter(Boolean),u=i.id??c?.[0]??i.layout;for(;o.has(u);)u=`${u}-${s.length}`;o.add(u);let p={id:u,label:i.label,layout:i.layout};c?.length&&(p.contentCollectionIds=c),i.layout==="home"&&(p.brandName=i.brandName,p.greetingText=i.greetingText,p.showGreeting=!(i.hideGreeting??!1),p.showSearchBar=n&&!(i.hideSearchBar??!1),p.showRecentConversations=t&&!(i.hideRecentConversations??!1),i.userAvatars?.length&&(p.userAvatars=i.userAvatars),i.status&&(p.status=i.status),p.contentBlockTitle=i.contentBlockTitle),s.push(p)}let a=Object.fromEntries(s.map(i=>[i.id,i]));return{list:s,byId:a}}function av(e,t){let r=e?.callout?.text?{shape:"pill",position:"auto",delayMs:1200,autoDismissMs:0,animated:!0,persistent:!0,...e.callout}:null;return{variant:e?.variant??Sn.variant,size:e?.size??Sn.size,label:e?.label??Sn.label,icon:e?.icon??Sn.icon,hidden:e?.hidden??Sn.hidden,...t&&{personaName:t},callout:r}}function ro(e,t){return e==="host"?"host":t??e}function Us(e,t,r,n){let o=kn(t,e.availableLocales,e.defaultLocale);if(o===e.locale&&r===e.themeMode&&n===e.textSize)return e;let s={...e};return o!==e.locale&&(s.locale=o,s.strings=gi(o,e.stringsOverride)),r!==e.themeMode&&(s.themeMode=r),n!==e.textSize&&(s.textSize=n),s}function ki(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var sv=["agent","presentation","behavior","theme","launcher","header","composer","feedback","i18n","footer","features","tracking","endpoints","history"];function Bs(e,t){if(!t)return e;let r={...e};for(let s of sv){let a=t[s];if(a===void 0)continue;let i=e[s];if(s==="theme"){i===void 0?r[s]=a:typeof i=="string"&&typeof a=="object"&&a!==null&&(r[s]={...a,mode:i});continue}s!=="i18n"&&(r[s]=gd(ki(a)?a:{},ki(i)?i:void 0))}t.modules!==void 0&&e.modules===void 0&&(r.modules=t.modules),t.dataApiBaseUrl!==void 0&&e.dataApiBaseUrl===void 0&&(r.dataApiBaseUrl=t.dataApiBaseUrl);let n=e.i18n,o=t.i18n;if(n||o){let s=gd(ki(o)?o:{},ki(n)?n:void 0);o?.availableLocales!==void 0&&(s.availableLocales=o.availableLocales),o?.defaultLocale!==void 0&&(s.defaultLocale=o.defaultLocale);let a=n?.strings,i=o?.strings;(a||i)&&(s.strings=lv(i,a)),r.i18n=s}return r}function gd(e,t){if(!t)return e;let r={...e};for(let[n,o]of Object.entries(t))o!==void 0&&(r[n]=o);return r}function lv(e,t){if(!e)return t;if(!t)return e;let r=hi(e),n=hi(t);if(!r&&!n)return{...e,...t};let o={},s=r?e:{en:e},a=n?t:{en:t};for(let[i,c]of Object.entries(s))o[i]={...c};for(let[i,c]of Object.entries(a))o[i]={...o[i],...c};return o}var cv=["clear","expand","fullscreen","popOut","sound","history","language","theme","textSize","close"];function Er(e){return e!=="false"}function dv(e){try{return Zc(JSON.parse(e))}catch{return}}function uv(e){let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>=0?t:void 0}var pv=[["public-key","publicKey"],["ai-agent-deployment-id","aiAgentDeploymentId"],["base-url","baseUrl"],["agent-api-base-url","agentApiBaseUrl"],["data-api-base-url","dataApiBaseUrl"],["continue-link","continueLink"],["theme","theme",e=>e]],_v=[["mode","mode",e=>e],["position","position",e=>e]],fv=[["width","width"],["height","height"]],mv=[["response-mode","responseMode",e=>e],["start-minimized","startMinimized",Er],["show-reasoning","showReasoning",Er],["step-display","stepDisplay",dv],["show-sources","showSources",Er],["disable-message-feedback","disableMessageFeedback",Er],["auto-send-suggestions","autoSendSuggestions",Er],["card-answer-wait-seconds","cardAnswerWaitSeconds",uv],["pop-out-url","popOutUrl"]],gv=[["locale","locale"]],jS=new Set(cv);var vv=[["launcher-variant","variant",e=>e],["launcher-size","size",e=>e],["launcher-icon","icon"],["launcher-hidden","hidden",Er]],hv=[["features-disable-file-upload","disableFileUpload",Er],["features-disable-email-transcript","disableEmailTranscript",Er],["features-voice","voice",e=>e]],yv=[["endpoint-upload","upload"],["endpoint-transcribe","transcribe"]],bv=[["user-id","id"],["user-email","email"],["user-name","name"]],Pv=[["page-area","area"],["page-url","url"],["page-path","path"],["page-title","title"]],xv=["launcher-label","callout-text","callout-delay","actions","user-context","page-context"],Sv=[pv,_v,fv,mv,gv,vv,hv,yv,bv,Pv],wv=new Set(["start-minimized"]),kv=[...Sv.flatMap(e=>e.map(([t])=>t).filter(t=>!wv.has(t))),...xv];var vd=ne.scope("track"),Cv=64,Tv=256,Iv=10;function hd(e,t){let r=typeof e=="string"?e.trim():"";if(!r||r.length>Cv){vd.warn("track: ignored an event without a name of 1\u201364 characters",{name:e});return}let n=Object.fromEntries(Object.entries(typeof t=="object"&&t!==null?t:{}).filter(o=>typeof o[1]=="string"||typeof o[1]=="boolean"||Number.isFinite(o[1])));return JSON.stringify(n).length>Tv?(vd.warn("track: sent the event without its data, which is over 256 characters",{name:r}),{name:r}):Object.keys(n).length>0?{name:r,data:n}:{name:r}}function yd(e){let t=[];return e.on("hostEvent",r=>{t.push({...r,at:Date.now()}),t.length>Iv&&t.shift()}),t}function Wt(){let e=Date.now(),t=new Uint8Array(16);t[0]=Math.floor(e/2**40)&255,t[1]=Math.floor(e/2**32)&255,t[2]=e>>>24&255,t[3]=e>>>16&255,t[4]=e>>>8&255,t[5]=e&255,Av(t.subarray(6)),t[6]=(t[6]??0)&15|112,t[8]=(t[8]??0)&63|128;let r=Array.from(t,n=>n.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function Av(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){crypto.getRandomValues(e);return}for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256)}var Mr=ne.scope("persistence");function Cn(e,t=Pi,r){let n=r?`${e}.${r}`:e,o=`${q.cssPrefix}.${n}.storageVersion`,s=t.get(o)??void 0,a=s?`.v${s}`:"",i=`${q.cssPrefix}.${n}${a}`,c=`${q.cssPrefix}${a}.visitorId`,u=`${q.cssPrefix}${a}.lastUserSub`,p=`${i}.conversationId`,_=`${i}.userPrefs`,d=`${i}.panelOpen`,f=`${i}.panelSize`,v=`${i}.calloutDismissed`,g=`${i}.sidebarCollapsed`,w=`${i}.activeModule`,b=`${i}.seenNewsId`,y=`${i}.historyCount`,x=`${i}.loginReturn`,P=`${i}.loginPromptDismissedIn`,k={getVisitorId(){let h=t.get(c);if(h)return h;let m=Wt();return t.set(c,m),m},loadLastUserSub(){return t.get(u)??void 0},saveLastUserSub(h){t.set(u,h)},loadConversationId(){return t.get(p)??void 0},saveConversationId(h){Mr.trace("saveConversationId",{id:h,scope:n}),h?t.set(p,h):t.remove(p)},loadDraft(h){return t.get(`${i}.draft.${h}`)??""},saveDraft(h,m){let S=`${i}.draft.${h}`;m?t.set(S,m):t.remove(S)},loadMessageQueue(h){let m=t.get(`${i}.messageQueue.${h}`);if(!m)return[];try{let S=JSON.parse(m);return!Array.isArray(S)||!S.every(Rv)?[]:S}catch(S){return Mr.warn("loadMessageQueue parse failed",{error:S}),[]}},saveMessageQueue(h,m){let S=`${i}.messageQueue.${h}`;if(m.length===0){t.remove(S);return}try{t.set(S,JSON.stringify(m))}catch(A){Mr.warn("saveMessageQueue serialise failed",{error:A})}},loadUserPrefs(){let h=t.get(_);if(!h)return{};try{return zs(JSON.parse(h))}catch(m){return Mr.warn("loadUserPrefs parse failed",{error:m}),{}}},saveUserPrefs(h){try{t.set(_,JSON.stringify(h))}catch(m){Mr.warn("saveUserPrefs serialise failed",{error:m})}},patchUserPrefs(h){let m=k.loadUserPrefs();k.saveUserPrefs({...m,...h})},loadPanelOpen(){let h=t.get(d);return h==="1"?!0:h==="0"?!1:null},savePanelOpen(h){t.set(d,h?"1":"0")},loadPanelSize(){let h=t.get(f);return h==="normal"||h==="expanded"||h==="fullscreen"?h:null},savePanelSize(h){t.set(f,h)},loadCalloutDismissed(h){if(!h)return!1;let m=t.get(v);return!!m&&m===h},saveCalloutDismissed(h){h?t.set(v,h):t.remove(v)},loadSidebarCollapsed(){let h=t.get(g);return h==="1"?!0:h==="0"?!1:null},saveSidebarCollapsed(h){t.set(g,h?"1":"0")},loadActiveModule(){return t.get(w)||null},saveActiveModule(h){t.set(w,h)},loadSeenNewsId(){return t.get(b)||null},saveSeenNewsId(h){t.set(b,h)},loadHistoryCount(){let h=t.get(y);if(!h)return null;let m=Number.parseInt(h,10);return Number.isFinite(m)&&m>=0?m:null},saveHistoryCount(h){t.set(y,String(h))},rememberStorageVersion(h){h&&h!==t.get(o)&&(Mr.debug("rememberStorageVersion (force-reset on next load)",{version:h}),t.set(o,h))},saveLoginReturn(h){Yr.set(x,JSON.stringify(h))},takeLoginReturn(){let h=Yr.get(x);if(h){Yr.remove(x);try{let m=JSON.parse(h);return Ci(m)&&typeof m.conversationId=="string"&&m.conversationId&&typeof m.draft=="string"?{conversationId:m.conversationId,draft:m.draft}:void 0}catch(m){Mr.warn("takeLoginReturn parse failed",{error:m});return}}},loadLoginPromptDismissedIn(){return Yr.get(P)??void 0},dismissLoginPromptIn(h){Yr.set(P,h)},clearConversation(){t.remove(p)},reset(){let h=t.get(p);h&&(t.remove(`${i}.draft.${h}`),t.remove(`${i}.messageQueue.${h}`));for(let m of[x,P])Yr.remove(m);for(let m of[c,u,p,_,f,v,g,w,b,y])t.remove(m);Mr.info("reset: forgot the visitor",{scope:n})}};return k}function Ci(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Rv(e){return Ci(e)&&typeof e.id=="string"&&e.id.length>0&&typeof e.text=="string"}function zs(e){if(!Ci(e))return{};let t={};return typeof e.locale=="string"&&(t.locale=e.locale),typeof e.soundMuted=="boolean"&&(t.soundMuted=e.soundMuted),(e.themeMode==="auto"||e.themeMode==="light"||e.themeMode==="dark")&&(t.themeMode=e.themeMode),(e.textSize==="small"||e.textSize==="normal"||e.textSize==="large")&&(t.textSize=e.textSize),Ci(e.widgetSize)&&typeof e.widgetSize.width=="number"&&typeof e.widgetSize.height=="number"&&(t.widgetSize={width:e.widgetSize.width,height:e.widgetSize.height}),t}var Tn="6.11.1";var Ev="1",bd=60,Mv=2e3,Fs={open:()=>{},close:()=>{},expand:e=>({on:e}),fullscreen:e=>({on:e}),send:e=>({attachments:e.attachmentCount}),message:e=>({role:e.role}),stop:()=>{},clear:()=>{},suggestion:()=>{},toggleHistory:e=>({view:e.view}),handshake:()=>{},toolResult:()=>{},toolDecision:e=>({approved:e.approved}),hostEvent:e=>({name:e.name,data:e.data&&JSON.stringify(e.data)}),messageFeedback:e=>({value:e.value??"none"}),contentView:e=>({section:e.section,count:e.count}),contentOpen:e=>({contentId:e.contentId,contentCollectionId:e.contentCollectionId}),contentSearch:e=>({qlen:e.queryLength,hits:e.hitCount}),contentRead:e=>({contentId:e.contentId}),contentLinkClick:e=>({contentId:e.contentId}),attach:e=>({count:e.count,bytes:e.totalBytes}),voiceStart:()=>{},voiceStop:e=>({ms:e.durationMs}),voiceCancel:()=>{},localeChange:e=>({locale:e}),themeChange:e=>({theme:e}),textSizeChange:e=>({size:e}),soundToggle:e=>({muted:e.muted}),sidebarToggle:e=>({collapsed:e.collapsed}),calloutDismiss:()=>{},error:()=>{}};function Lv(){let e=navigator;return e.globalPrivacyControl===!0||e.doNotTrack==="1"}function Nv(){return location.origin+location.pathname}function Ov(){try{return document.referrer?new URL(document.referrer).origin:""}catch{return""}}function Pd(e,t){let r=Math.random(),n=0,o=0,s=new Set;function a(_,d){let{tracking:f,publicKey:v,aiAgentDeploymentId:g,mode:w,themeMode:b}=t.getOptions();if(!f.enabled||Lv()||r>=f.sampleRate)return;let y=performance.now();if(y-n>6e4&&(n=y,o=0),++o>bd)return;let x=new URLSearchParams;x.set("v",Ev),x.set("_ev",Tn),x.set("e",_),f.token&&x.set("tk",f.token),v&&x.set("pk",v),g&&x.set("dep",g),x.set("vid",t.getVisitorId());let P=t.getConversationId();P&&x.set("cid",P),x.set("url",Nv());let k=Ov();k&&x.set("ref",k),x.set("sw",String(screen.width)),x.set("sh",String(screen.height)),x.set("vw",String(innerWidth)),x.set("vh",String(innerHeight)),x.set("dpr",String(devicePixelRatio)),x.set("lang",navigator.language);try{x.set("tz",Intl.DateTimeFormat().resolvedOptions().timeZone)}catch{}if(x.set("m",w),x.set("th",b),d)for(let[A,I]of Object.entries(d))I!==void 0&&x.set(A,String(I));x.set("ts",String(Date.now()));let h=`${f.endpoint}?${x}`;if(h.length>Mv)return;let m=new Image(1,1);s.add(m);function S(){return s.delete(m)}m.addEventListener("load",S,{once:!0}),m.addEventListener("error",S,{once:!0}),m.src=h}let i=[];function c(_,d){if(i&&_!=="handshake"){i.length<bd&&i.push([_,d]);return}let f=i??[];i=void 0;for(let[v,g]of f)a(v,g);a(_,d)}function u(_,d){return Fs[_]?.(d)}let p=Object.keys(Fs).filter(_=>Object.hasOwn(Fs,_)).map(_=>e.on(_,d=>c(_,u(_,d))));return()=>{for(let _ of p)_();s.clear()}}var xd=`.__P__-generative-ui{display:grid;gap:var(--__P__-space-3);overflow-wrap:anywhere;white-space:pre-wrap}.__P__-generative-ui p{margin:0}.__P__-generative-ui-grid-container{container:__P__-generative-ui-grid / inline-size;min-width:0}.__P__-generative-ui-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.__P__-generative-ui-cell{display:flex;flex-direction:column;align-self:start;min-width:0;gap:16px}.__P__-generative-ui-grid[data-equal-heights]>.__P__-generative-ui-cell{align-self:stretch}.__P__-generative-ui-grid[data-equal-heights]>.__P__-generative-ui-cell>:only-child{flex:1}@container __P__-generative-ui-grid (min-width: 496px){.__P__-generative-ui-grid:is([data-columns="2"],[data-columns="3"],[data-columns="4"]){grid-template-columns:repeat(2,minmax(0,1fr))}.__P__-generative-ui-grid:is([data-columns="2"],[data-columns="3"],[data-columns="4"])>.__P__-generative-ui-cell:is([data-span="2"],[data-span="3"],[data-span="4"]){grid-column:span 2}}@container __P__-generative-ui-grid (min-width: 752px){.__P__-generative-ui-grid:is([data-columns="3"],[data-columns="4"]){grid-template-columns:repeat(3,minmax(0,1fr))}.__P__-generative-ui-grid:is([data-columns="3"],[data-columns="4"])>.__P__-generative-ui-cell:is([data-span="3"],[data-span="4"]){grid-column:span 3}}@container __P__-generative-ui-grid (min-width: 1008px){.__P__-generative-ui-grid[data-columns="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.__P__-generative-ui-grid[data-columns="4"]>.__P__-generative-ui-cell[data-span="4"]{grid-column:span 4}}.__P__-generative-ui section{display:flex;flex-direction:column;gap:var(--__P__-space-2);padding:var(--__P__-space-3);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-md);min-width:0}.__P__-generative-ui-metric{font-size:1.6em;font-weight:700}.__P__-generative-ui-table{overflow-x:auto}.__P__-generative-ui table{width:100%;border-collapse:collapse;white-space:normal}.__P__-generative-ui caption{text-align:start;font-weight:600;padding-bottom:var(--__P__-space-2)}.__P__-generative-ui th,.__P__-generative-ui td{text-align:start;padding:var(--__P__-space-2);border-bottom:1px solid var(--__P__-border)}.__P__-generative-ui-chart{display:block;width:100%;color:var(--__P__-accent)}.__P__-generative-ui-axis{stroke:var(--__P__-border)}.__P__-generative-ui-data{display:flex;flex-wrap:wrap;gap:var(--__P__-space-2);font-size:.85em}.__P__-generative-ui-carousel{display:flex;gap:var(--__P__-space-3);margin:0 calc(var(--__P__-space-1) * -1);padding:0 var(--__P__-space-1) var(--__P__-space-2);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--__P__-space-1);scrollbar-width:thin;min-width:0}.__P__-generative-ui-carousel>[role=listitem]{display:flex;flex:0 0 min(250px,80%);scroll-snap-align:start;min-width:0}.__P__-generative-ui-carousel>[role=listitem]>section{flex:1}.__P__-generative-ui-product{overflow:hidden}.__P__-generative-ui>.__P__-generative-ui-product{max-width:320px}.__P__-generative-ui-footer{display:flex;flex-direction:column;gap:var(--__P__-space-1);margin-top:auto}.__P__-generative-ui-hint{min-height:1.4em;line-height:1.4;color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs)}.__P__-generative-ui-photo{display:block;flex:none;width:calc(100% + 2 * var(--__P__-space-3));aspect-ratio:4 / 3;margin:calc(var(--__P__-space-3) * -1) calc(var(--__P__-space-3) * -1) var(--__P__-space-1);overflow:hidden;background:var(--__P__-hover)}.__P__-generative-ui-thumb{display:block;flex:0 0 auto;width:48px;height:48px;overflow:hidden;border-radius:var(--__P__-radius-sm);background:var(--__P__-hover)}.__P__-generative-ui-photo img,.__P__-generative-ui-thumb img{display:block;width:100%;max-width:none;height:100%;object-fit:cover}.__P__-generative-ui-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--__P__-space-2)}.__P__-generative-ui-product>.__P__-generative-ui-heading{justify-content:flex-start}.__P__-generative-ui-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.__P__-generative-ui a{color:inherit}.__P__-generative-ui .__P__-generative-ui-title a,.__P__-generative-ui .__P__-generative-ui-lines a,.__P__-generative-ui .__P__-generative-ui-actions>a{text-decoration:none}.__P__-generative-ui .__P__-generative-ui-title a:hover,.__P__-generative-ui .__P__-generative-ui-lines span>a:hover{text-decoration:underline}.__P__-generative-ui-pill{display:inline-flex;align-items:center;padding:2px var(--__P__-space-2);border-radius:var(--__P__-radius-sm);background:var(--__P__-hover);color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs);font-weight:600}.__P__-generative-ui-muted{color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs)}.__P__-generative-ui-star{color:var(--__P__-warning)}.__P__-generative-ui-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--__P__-space-2);font-variant-numeric:tabular-nums}.__P__-generative-ui-price strong{font-size:1.1em}.__P__-generative-ui-price s{color:var(--__P__-fg-muted)}.__P__-generative-ui-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:var(--__P__-fg-muted)}.__P__-generative-ui-option{display:grid;gap:var(--__P__-space-1);min-width:0;margin:0;padding:0;border:0}.__P__-generative-ui-option legend{padding:0 0 var(--__P__-space-1);color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs);font-weight:600}.__P__-generative-ui-option div{display:flex;gap:6px;min-width:0;margin:-4px;padding:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.__P__-generative-ui-option div::-webkit-scrollbar{display:none}.__P__-generative-ui-option div[data-cut-end]{mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option div[data-cut-start]{mask-image:linear-gradient(to right,transparent,#000 32px)}.__P__-generative-ui-option div[data-cut-start][data-cut-end]{mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option div:dir(rtl)[data-cut-end]{mask-image:linear-gradient(to left,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option div:dir(rtl)[data-cut-start]{mask-image:linear-gradient(to left,transparent,#000 32px)}.__P__-generative-ui-option div:dir(rtl)[data-cut-start][data-cut-end]{mask-image:linear-gradient(to left,transparent,#000 32px,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option button{flex:0 0 auto;min-height:32px;padding:0 10px;border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-sm);background:var(--__P__-bg-elevated);color:var(--__P__-fg);font:inherit;font-size:var(--__P__-text-sm);white-space:nowrap;cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease),border-color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-generative-ui-option button:hover{border-color:var(--__P__-border-strong)}.__P__-generative-ui-option button[aria-pressed=true]{border-color:var(--__P__-accent);box-shadow:inset 0 0 0 1px var(--__P__-accent);font-weight:600}.__P__-generative-ui-option button:disabled{color:var(--__P__-fg-muted);text-decoration:line-through;opacity:.6;cursor:not-allowed}.__P__-generative-ui-actions{display:flex;flex-wrap:wrap;gap:var(--__P__-space-2);margin-top:auto;padding-top:var(--__P__-space-1)}.__P__-generative-ui-actions:not([data-small=true])>*{flex:1 1 auto}.__P__-generative-ui-actions>*{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 var(--__P__-space-3);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-sm);background:var(--__P__-bg-elevated);color:var(--__P__-fg);font:inherit;font-size:var(--__P__-text-sm);font-weight:600;text-decoration:none;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease),border-color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-generative-ui-actions[data-small=true]>*{min-height:28px;padding:0 var(--__P__-space-2);font-size:var(--__P__-text-xs)}.__P__-generative-ui-actions>:hover{border-color:var(--__P__-border-strong)}.__P__-generative-ui-actions>[data-primary=true]{border-color:var(--__P__-accent);background:var(--__P__-accent);color:var(--__P__-on-accent)}.__P__-generative-ui-actions>:focus-visible,.__P__-generative-ui-option button:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-generative-ui-actions>:disabled{border-color:var(--__P__-border);background:var(--__P__-hover);color:var(--__P__-fg-muted);cursor:not-allowed}.__P__-generative-ui .__P__-generative-ui-lines{display:grid;margin:0;padding:0;list-style:none}.__P__-generative-ui .__P__-generative-ui-lines li{display:flex;margin:0;gap:var(--__P__-space-3);padding:var(--__P__-space-2) 0;border-bottom:1px solid var(--__P__-border)}.__P__-generative-ui .__P__-generative-ui-lines li:first-child{padding-top:0}.__P__-generative-ui-lines li>div{display:grid;flex:1;gap:2px;min-width:0}.__P__-generative-ui-line-head{display:flex;align-items:baseline;gap:var(--__P__-space-3)}.__P__-generative-ui-line-head>span{display:-webkit-box;flex:1;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.__P__-generative-ui-line-head>strong{flex:none;font-variant-numeric:tabular-nums}.__P__-generative-ui-totals{display:grid;gap:var(--__P__-space-1);margin:0;font-variant-numeric:tabular-nums}.__P__-generative-ui-totals div{display:flex;justify-content:space-between;gap:var(--__P__-space-3);color:var(--__P__-fg-muted)}.__P__-generative-ui-totals div:last-child{padding-top:var(--__P__-space-1);color:var(--__P__-fg);font-weight:700}.__P__-generative-ui-totals dd{margin:0}.__P__-generative-ui-notice{padding:var(--__P__-space-2) var(--__P__-space-3);border-radius:var(--__P__-radius-sm);background:var(--__P__-hover)}.__P__-generative-ui-notice[data-severity=warning]{color:var(--__P__-fg);background:color-mix(in oklch,var(--__P__-warning) 16%,transparent)}.__P__-generative-ui-notice[data-severity=error]{color:var(--__P__-danger-text);background:var(--__P__-danger-bg)}.__P__-generative-ui .__P__-generative-ui-timeline{display:grid;gap:var(--__P__-space-2);margin:0;padding:0;list-style:none}.__P__-generative-ui .__P__-generative-ui-timeline li{display:flex;margin:0;align-items:baseline;gap:var(--__P__-space-2);color:var(--__P__-fg-muted)}.__P__-generative-ui-timeline li:before{content:"";flex:0 0 auto;width:8px;height:8px;border:2px solid var(--__P__-border-strong);border-radius:50%}.__P__-generative-ui-timeline li[data-done=true]{color:var(--__P__-fg);font-weight:600}.__P__-generative-ui-timeline li[data-done=true]:before{border-color:var(--__P__-accent);background:var(--__P__-accent)}.__P__-generative-ui-timeline li>:first-child{flex:1}
2
+ `),r=rr(e.structuredContent)?e.structuredContent:Dg(t);return e.isError===!0?{value:r,error:rr(r)&&typeof r.error=="string"?r.error:t}:{value:r}}return rr(e)&&typeof e.error=="string"&&typeof e.instruction=="string"?{value:e,error:e.error}:{value:e}}function qg(e){return bi(e.input)!==void 0||bi(e.output)!==void 0||!!e.errorText}function Ug(e,t){let r=e.approval?"decided":"unasked",n=e.approval?.isAutomatic?"auto-decided":r;return t==="failed"?[n,"failed"]:[n]}function Bg(e){let t=e.toolMetadata?.origin;return Xc(yi,t)?t:void 0}function zg(e,t,r){let{display:n}=r,o=e.approval,s=o!==void 0&&!o.isAutomatic;if(s&&Cs(e,r.turn))return"card";let a=r.by==="you"||s&&r.by===void 0&&r.reader.decides,i=Bg(e),c=(i===void 0||n.stepsFrom.includes(i))&&Ug(e,t.status).some(u=>n.stepsShown.includes(u));return!(a||c)||!o&&!qg(e)?"hidden":s&&!n.foldApprovals?"card":"step"}function Cs(e,t){return e.approval?.replacedByMessageId||(t.superseded||t.cutOff)&&e.approval?.approved===void 0?!1:e.state==="approval-requested"||e.state==="approval-responded"}function od(e,t){let{turn:r,reader:n,display:o,strings:s}=t,a=nd(e.output),i=Ag(e,r,a),c=e.approval,u=c!==void 0&&!c.isAutomatic,p=typeof e.toolMetadata?.card=="string"?e.toolMetadata.card:void 0,_=o.stepDetails,d=_==="table"||_==="table-and-json",f=_==="none"||_==="values",v=c?.replacedByMessageId?void 0:c?.approved,g=c&&v!==void 0?Rg(c,n):void 0,w=g==="teamMember"?c?.respondedBy?.userId:void 0,b=g&&v!==void 0&&(g==="you"||g==="rules"||o.showDecidedBy)?{approved:v,by:g,...Eg(g,v,w&&t.names?.get(w),s,p!==void 0),...w?{userId:w}:{}}:void 0,y=Ig(e),x=o.showStepSystem||e.toolMetadata?.nameShared===!0?$g(e):void 0,P=Og(e.input,typeof e.toolMetadata?.systemField=="string"?e.toolMetadata.systemField:void 0),k=e.errorText??a.error,h=d&&a.error===void 0?Yc(a.value,{withIds:!0}):[],m=_==="json"||_==="table-and-json"?{input:bi(e.input),output:bi(a.value,Tg)}:void 0,S=u&&Cs(e,r),A=_==="none"&&!S?[]:Yc(e.input,{withIds:d||S}),I=k!==void 0&&k!==""&&!f,R=b?.by==="rules"&&_!=="none"?c?.reason:void 0,C=b!==void 0&&(i==="approved"||i==="declined"),M={toolCallId:e.toolCallId,placement:"hidden",...p&&c?{card:p}:{},name:y,...x?{system:x}:{},status:i,statusLabel:C?"":Lg(i,{reader:n,strings:s,card:p!==void 0,plain:f}),...b?{decision:b}:{},...R?{reason:R}:{},...P?{summary:P}:{},fields:A,tables:d,...h.length>0?{resultFields:h}:{},...I?{error:k}:{},...m?{raw:m}:{},opens:A.length>0||h.length>0||m!==void 0||I||R!==void 0,...u&&!p?{approval:Fg(e,i,{turn:r,reader:n,strings:s,name:y})}:{}};return{...M,placement:zg(e,M,{turn:r,reader:n,display:o,by:g})}}function Fg(e,t,r){let n=r.strings.approvalPrompt.replace("{action}",r.name);return t==="waiting"?{ask:n,buttons:r.reader.decides?"decide":"none"}:t==="submitted"?{ask:n,buttons:"none"}:Cs(e,r.turn)?r.turn.canAct&&r.reader.decides?{ask:n,buttons:"change",note:r.strings.approvalEditHint}:t==="approved"?{ask:n,buttons:"none",note:r.strings.stepWorkingOnIt}:{ask:n,buttons:"none"}:{ask:n,buttons:"none"}}function id(e){let t=new Map;for(let s of e)t.set(s.name,(t.get(s.name)??0)+1);let r=new Map;for(let{decision:s}of e){if(!s)continue;let a=r.get(s.title)??{approved:s.approved,label:s.label,title:s.title,...s.userId?{userId:s.userId}:{},count:0};r.set(s.title,{...a,count:a.count+1})}let[n]=e,o=e.some(s=>s.status==="stopped");return{tools:[...t].map(([s,a])=>({name:s,count:a})),...e.length===1&&n?{single:{name:n.name,...n.system?{system:n.system}:{},...n.summary?{summary:n.summary}:{},...Hg(n)}}:{},marks:[...r.values()].map(({count:s,...a})=>Object.assign(a,{label:s>1?`${a.label} \xD7${s}`:a.label})),failed:e.filter(s=>s.status==="failed").length,...o?{stopped:{finished:e.filter(s=>s.status!=="stopped").length}}:{}}}function Hg(e){return!e.decision&&(e.status==="replaced"||e.status==="declined")?{outcome:e.statusLabel}:{}}function ad(e,t){return e===0?t.statusStopped:e===1?t.toolStepsStoppedOne:t.toolStepsStopped.replace("{count}",String(e))}var Ts=class{get(t){try{return localStorage.getItem(t)}catch{return null}}set(t,r){try{localStorage.setItem(t,r)}catch{}}remove(t){try{localStorage.removeItem(t)}catch{}}},Pi=new Ts,Yr={get(e){try{return sessionStorage.getItem(e)}catch{return null}},set(e,t){try{sessionStorage.setItem(e,t)}catch{}},remove(e){try{sessionStorage.removeItem(e)}catch{}}};var xi={maxBytes:10485760,maxCount:10,accept:"*/*"},sd={voice:"local"},Is={enabled:!0,sampleRate:1},As={upload:"/pai/upload-file",transcribe:"/pai/transcribe-audio"},Sn={variant:"circle",size:"md",label:void 0,icon:"chat",hidden:!1},ld={floating:["theme","textSize","history","close","clear","expand","fullscreen","popOut","sound","language"],inline:["theme","textSize","history","close","clear","fullscreen","popOut","sound","language"],standalone:["theme","textSize","history","clear","sound","language"],page:["theme","textSize","history","clear","sound","language"],modal:["theme","textSize","history","close","clear","fullscreen","popOut","sound","language"],drawer:["theme","textSize","history","close","clear","fullscreen","popOut","sound","language"]},Rs={enabled:!0,volume:.3,events:void 0},cd={enabled:!0,events:void 0},dd=[{label:"tabConversations",layout:"chat"}];var Ls=["off","error","warn","info","debug","trace"],Ns=q.cssPrefix,ud=`${Ns}.debug`,jg=`__${q.global}_DEBUG__`,Vg=`${Ns}-debug`,Si=2,Es=null;function Wg(){if(typeof window>"u")return 2;try{let e=new URLSearchParams(window.location.search).get(Vg);if(e!==null){let t=Ms(e);if(t>=0)return t}}catch{}try{let e=window.localStorage?.getItem(ud);if(e){let t=Ms(e);if(t>=0)return t}}catch{}return Reflect.get(window,jg)?4:2}function Ms(e){if(e===!0||e==="1"||e==="true")return 4;if(e===!1||e==="0"||e==="false"||e==="off")return 0;if(typeof e=="number")return Math.max(0,Math.min(5,Math.floor(e)));if(typeof e=="string"){let t=Ls.findIndex(r=>r===e);if(t>=0)return t}return-1}function wi(e){let t=Ms(e);if(!(t<0)){Si=t;try{window.localStorage?.setItem(ud,Ls[t]??"off")}catch{}}}function Os(){return Ls[Si]??"warn"}Si=Wg();function pd(e){let t=`[${Ns}:${e}]`;function r(n,o,s){return(a,i)=>{if(!(Si<n)&&(i===void 0?console[o](t,a):console[o](t,a,i),Es))try{Es({level:s,scope:e,message:a,payload:i})}catch{}}}return{error:r(1,"error","error"),warn:r(2,"warn","warn"),info:r(3,"info","info"),debug:r(4,"debug","debug"),trace:r(5,"debug","trace"),scope:n=>pd(`${e}:${n}`)}}var ne=pd("core");function _d(e){Es=e}var Jr=ne.scope("context"),Gg=new Set(["visitorId","conversationId","jwt","token","authorization","password"]),fd=50,$s=1024,Kg=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Ds(e){return md(e,"userContext",!0)}function qs(e){return md(e,"pageContext",!1)}function Qg(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function md(e,t,r){if(e==null)return;if(!Qg(e)){Jr.warn(`ignored ${t} \u2014 expected an object`,{type:Array.isArray(e)?"array":typeof e});return}let n={},o=0;for(let[s,a]of Object.entries(e)){if(Gg.has(s)){Jr.warn(`dropped reserved ${t} key "${s}" \u2014 managed by the widget, not host-settable`);continue}if(a==null)continue;if(o>=fd){Jr.warn(`${t} truncated at ${fd} keys \u2014 dropped "${s}"`);continue}let i=Yg(t,s,a);i!==void 0&&(n[s]=i,o++)}return r&&typeof n.email=="string"&&!Kg.test(n.email)&&(Jr.warn("dropped malformed context field",{field:`${t}.email`,reason:"invalid format"}),delete n.email),Object.keys(n).length>0?n:void 0}function Yg(e,t,r){if(typeof r=="boolean")return r;if(typeof r=="number"){if(!Number.isFinite(r)){Jr.warn(`dropped non-finite ${e}.${t}`);return}return r}if(typeof r=="string"){let n=r.trim();return n===""?void 0:n.length>$s?(Jr.warn(`truncated ${e}.${t} to ${$s} chars`),n.slice(0,$s)):n}Jr.warn(`dropped ${e}.${t} \u2014 only string/number/boolean values are allowed`,{type:typeof r})}function wn(e){let t=e!==null&&typeof e=="object"?e:{},r=t.presentation??{},n=t.behavior??{},o=t.i18n??{},s=t.feedback??{},a=t.footer??{},i=t.header??{},c={enabled:t.history?.enabled??!0},{themeMode:u,themeOverrides:p}=Jg(t.theme),_=r.mode??"floating",d=Xg(o.defaultLocale),f=o.availableLocales??[o.locale??d],v=kn(o.locale??d,f,d),g=(t.baseUrl??q.defaultBaseUrl).replace(/\/$/,""),w=(t.agentApiBaseUrl??`${g}/api/agent`).replace(/\/$/,""),b=(t.dataApiBaseUrl??`${g}/api/data`).replace(/\/$/,"");return{widgetId:t.widgetId??"default",publicKey:t.publicKey,aiAgentDeploymentId:t.aiAgentDeploymentId,baseUrl:g,agentApiBaseUrl:w,dataApiBaseUrl:b,userContext:Ds(t.userContext),pageContext:qs(t.pageContext),position:r.position??(vi(v)?"bottom-left":"bottom-right"),themeMode:u,textSize:"normal",themeOverrides:p,mode:_,responseMode:n.responseMode??"streaming",showReasoning:n.showReasoning??!1,stepDisplay:ed(n.stepDisplay,"visitor"),showSources:n.showSources??!1,enableMessageFeedback:!(n.disableMessageFeedback??!1),autoSendSuggestions:n.autoSendSuggestions??!1,cardAnswerWaitSeconds:n.cardAnswerWaitSeconds??60,popOutUrl:n.popOutUrl,features:{voice:t.features?.voice??sd.voice,fileUpload:!(t.features?.disableFileUpload??!1),humanInLoop:!(t.features?.disableHumanInLoop??!1),emailTranscript:!(t.features?.disableEmailTranscript??!1),operatorRequest:t.features?.enableOperatorRequest===!0&&!(t.features.hideRequestOperatorButton??!1)},endpoints:{upload:t.endpoints?.upload??As.upload,transcribe:t.endpoints?.transcribe??As.transcribe},attachments:{accept:t.composer?.attachments?.accept??xi.accept,maxBytes:t.composer?.attachments?.maxBytes??xi.maxBytes,maxCount:t.composer?.attachments?.maxCount??xi.maxCount},locale:v,defaultLocale:d,availableLocales:f,startMinimized:n.startMinimized??!0,actions:Zg(_,i.actions,c.enabled),size:{...r.size,resize:{...r.size?.resize,enabled:r.size?.resize?.enabled??!0}},launcher:av(t.launcher,t.agent?.name),sound:ev(s.sound),haptics:tv(s.haptics),strings:gi(v,o.strings),stringsOverride:o.strings,composerDisclaimer:a.composerDisclaimer??"",header:{variant:i.variant??"plain",notice:i.notice,showNotice:!(i.hideNotice??!1)},poweredBy:nv(a.poweredBy),composer:ov(t.composer),modules:iv(t.modules,c.enabled),tracking:rv(t.tracking,b),history:c,storage:t.storage??Pi,userToken:t.userToken,continueLink:t.continueLink,tools:t.tools,onMessage:t.onMessage,onOpen:t.onOpen,onClose:t.onClose,onError:t.onError}}function Jg(e){if(typeof e=="string")return{themeMode:e,themeOverrides:{}};if(!e||typeof e!="object")return{themeMode:"host",themeOverrides:{}};let{mode:t,...r}=e;return{themeMode:t??"host",themeOverrides:r}}function Xg(e){return e&&e!=="auto"?e:globalThis.navigator?.language||"en"}function kn(e,t,r){if(t.length<=1||t.includes(e))return e;let n=e.split("-")[0];return n&&t.includes(n)?n:t.includes(r)?r:t[0]??e}function Zg(e,t,r){let n=t??ld[e];return r?n:n.filter(o=>o!=="history")}function ev(e){return{enabled:e?.enabled??Rs.enabled,volume:e?.volume??Rs.volume,events:e?.events}}function tv(e){return{enabled:e?.enabled??cd.enabled,events:e?.events}}function rv(e,t){let r=e?.sampleRate??Is.sampleRate;return{enabled:e?.enabled??Is.enabled,endpoint:e?.endpoint??`${t}/pai/elements-px.gif`,sampleRate:Math.min(1,Math.max(0,Number.isFinite(r)?r:1)),token:e?.token}}function nv(e){return e?.text===""&&!e.logoUrl?null:{href:q.siteUrl,...e}}function ov(e){let t=e?.sendButton;return{sendButton:{shape:t?.shape??"circle",icon:t?.icon??"arrowUp",variant:t?.variant??"filled"}}}function iv(e,t){let r=(e??dd).slice(0,4),n=r.some(i=>i?.label&&i.layout==="help"),o=new Set,s=[];for(let i of r){if(!i?.label||!i?.layout)continue;let c=i.contentCollectionIds?.filter(Boolean),u=i.id??c?.[0]??i.layout;for(;o.has(u);)u=`${u}-${s.length}`;o.add(u);let p={id:u,label:i.label,layout:i.layout};c?.length&&(p.contentCollectionIds=c),i.layout==="home"&&(p.brandName=i.brandName,p.greetingText=i.greetingText,p.showGreeting=!(i.hideGreeting??!1),p.showSearchBar=n&&!(i.hideSearchBar??!1),p.showRecentConversations=t&&!(i.hideRecentConversations??!1),i.userAvatars?.length&&(p.userAvatars=i.userAvatars),i.status&&(p.status=i.status),p.contentBlockTitle=i.contentBlockTitle),s.push(p)}let a=Object.fromEntries(s.map(i=>[i.id,i]));return{list:s,byId:a}}function av(e,t){let r=e?.callout?.text?{shape:"pill",position:"auto",delayMs:1200,autoDismissMs:0,animated:!0,persistent:!0,...e.callout}:null;return{variant:e?.variant??Sn.variant,size:e?.size??Sn.size,label:e?.label??Sn.label,icon:e?.icon??Sn.icon,hidden:e?.hidden??Sn.hidden,...t&&{personaName:t},callout:r}}function ro(e,t){return e==="host"?"host":t??e}function Us(e,t,r,n){let o=kn(t,e.availableLocales,e.defaultLocale);if(o===e.locale&&r===e.themeMode&&n===e.textSize)return e;let s={...e};return o!==e.locale&&(s.locale=o,s.strings=gi(o,e.stringsOverride)),r!==e.themeMode&&(s.themeMode=r),n!==e.textSize&&(s.textSize=n),s}function ki(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var sv=["agent","presentation","behavior","theme","launcher","header","composer","feedback","i18n","footer","features","tracking","endpoints","history"];function Bs(e,t){if(!t)return e;let r={...e};for(let s of sv){let a=t[s];if(a===void 0)continue;let i=e[s];if(s==="theme"){i===void 0?r[s]=a:typeof i=="string"&&typeof a=="object"&&a!==null&&(r[s]={...a,mode:i});continue}s!=="i18n"&&(r[s]=gd(ki(a)?a:{},ki(i)?i:void 0))}t.modules!==void 0&&e.modules===void 0&&(r.modules=t.modules),t.dataApiBaseUrl!==void 0&&e.dataApiBaseUrl===void 0&&(r.dataApiBaseUrl=t.dataApiBaseUrl);let n=e.i18n,o=t.i18n;if(n||o){let s=gd(ki(o)?o:{},ki(n)?n:void 0);o?.availableLocales!==void 0&&(s.availableLocales=o.availableLocales),o?.defaultLocale!==void 0&&(s.defaultLocale=o.defaultLocale);let a=n?.strings,i=o?.strings;(a||i)&&(s.strings=lv(i,a)),r.i18n=s}return r}function gd(e,t){if(!t)return e;let r={...e};for(let[n,o]of Object.entries(t))o!==void 0&&(r[n]=o);return r}function lv(e,t){if(!e)return t;if(!t)return e;let r=hi(e),n=hi(t);if(!r&&!n)return{...e,...t};let o={},s=r?e:{en:e},a=n?t:{en:t};for(let[i,c]of Object.entries(s))o[i]={...c};for(let[i,c]of Object.entries(a))o[i]={...o[i],...c};return o}var cv=["clear","expand","fullscreen","popOut","sound","history","language","theme","textSize","close"];function Er(e){return e!=="false"}function dv(e){try{return Zc(JSON.parse(e))}catch{return}}function uv(e){let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>=0?t:void 0}var pv=[["public-key","publicKey"],["ai-agent-deployment-id","aiAgentDeploymentId"],["base-url","baseUrl"],["agent-api-base-url","agentApiBaseUrl"],["data-api-base-url","dataApiBaseUrl"],["continue-link","continueLink"],["theme","theme",e=>e]],_v=[["mode","mode",e=>e],["position","position",e=>e]],fv=[["width","width"],["height","height"]],mv=[["response-mode","responseMode",e=>e],["start-minimized","startMinimized",Er],["show-reasoning","showReasoning",Er],["step-display","stepDisplay",dv],["show-sources","showSources",Er],["disable-message-feedback","disableMessageFeedback",Er],["auto-send-suggestions","autoSendSuggestions",Er],["card-answer-wait-seconds","cardAnswerWaitSeconds",uv],["pop-out-url","popOutUrl"]],gv=[["locale","locale"]],jS=new Set(cv);var vv=[["launcher-variant","variant",e=>e],["launcher-size","size",e=>e],["launcher-icon","icon"],["launcher-hidden","hidden",Er]],hv=[["features-disable-file-upload","disableFileUpload",Er],["features-disable-email-transcript","disableEmailTranscript",Er],["features-voice","voice",e=>e]],yv=[["endpoint-upload","upload"],["endpoint-transcribe","transcribe"]],bv=[["user-id","id"],["user-email","email"],["user-name","name"]],Pv=[["page-area","area"],["page-url","url"],["page-path","path"],["page-title","title"]],xv=["launcher-label","callout-text","callout-delay","actions","user-context","page-context"],Sv=[pv,_v,fv,mv,gv,vv,hv,yv,bv,Pv],wv=new Set(["start-minimized"]),kv=[...Sv.flatMap(e=>e.map(([t])=>t).filter(t=>!wv.has(t))),...xv];var vd=ne.scope("track"),Cv=64,Tv=256,Iv=10;function hd(e,t){let r=typeof e=="string"?e.trim():"";if(!r||r.length>Cv){vd.warn("track: ignored an event without a name of 1\u201364 characters",{name:e});return}let n=Object.fromEntries(Object.entries(typeof t=="object"&&t!==null?t:{}).filter(o=>typeof o[1]=="string"||typeof o[1]=="boolean"||Number.isFinite(o[1])));return JSON.stringify(n).length>Tv?(vd.warn("track: sent the event without its data, which is over 256 characters",{name:r}),{name:r}):Object.keys(n).length>0?{name:r,data:n}:{name:r}}function yd(e){let t=[];return e.on("hostEvent",r=>{t.push({...r,at:Date.now()}),t.length>Iv&&t.shift()}),t}function Wt(){let e=Date.now(),t=new Uint8Array(16);t[0]=Math.floor(e/2**40)&255,t[1]=Math.floor(e/2**32)&255,t[2]=e>>>24&255,t[3]=e>>>16&255,t[4]=e>>>8&255,t[5]=e&255,Av(t.subarray(6)),t[6]=(t[6]??0)&15|112,t[8]=(t[8]??0)&63|128;let r=Array.from(t,n=>n.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function Av(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){crypto.getRandomValues(e);return}for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256)}var Mr=ne.scope("persistence");function Cn(e,t=Pi,r){let n=r?`${e}.${r}`:e,o=`${q.cssPrefix}.${n}.storageVersion`,s=t.get(o)??void 0,a=s?`.v${s}`:"",i=`${q.cssPrefix}.${n}${a}`,c=`${q.cssPrefix}${a}.visitorId`,u=`${q.cssPrefix}${a}.lastUserSub`,p=`${i}.conversationId`,_=`${i}.userPrefs`,d=`${i}.panelOpen`,f=`${i}.panelSize`,v=`${i}.calloutDismissed`,g=`${i}.sidebarCollapsed`,w=`${i}.activeModule`,b=`${i}.seenNewsId`,y=`${i}.historyCount`,x=`${i}.loginReturn`,P=`${i}.loginPromptDismissedIn`,k={getVisitorId(){let h=t.get(c);if(h)return h;let m=Wt();return t.set(c,m),m},loadLastUserSub(){return t.get(u)??void 0},saveLastUserSub(h){t.set(u,h)},loadConversationId(){return t.get(p)??void 0},saveConversationId(h){Mr.trace("saveConversationId",{id:h,scope:n}),h?t.set(p,h):t.remove(p)},loadDraft(h){return t.get(`${i}.draft.${h}`)??""},saveDraft(h,m){let S=`${i}.draft.${h}`;m?t.set(S,m):t.remove(S)},loadMessageQueue(h){let m=t.get(`${i}.messageQueue.${h}`);if(!m)return[];try{let S=JSON.parse(m);return!Array.isArray(S)||!S.every(Rv)?[]:S}catch(S){return Mr.warn("loadMessageQueue parse failed",{error:S}),[]}},saveMessageQueue(h,m){let S=`${i}.messageQueue.${h}`;if(m.length===0){t.remove(S);return}try{t.set(S,JSON.stringify(m))}catch(A){Mr.warn("saveMessageQueue serialise failed",{error:A})}},loadUserPrefs(){let h=t.get(_);if(!h)return{};try{return zs(JSON.parse(h))}catch(m){return Mr.warn("loadUserPrefs parse failed",{error:m}),{}}},saveUserPrefs(h){try{t.set(_,JSON.stringify(h))}catch(m){Mr.warn("saveUserPrefs serialise failed",{error:m})}},patchUserPrefs(h){let m=k.loadUserPrefs();k.saveUserPrefs({...m,...h})},loadPanelOpen(){let h=t.get(d);return h==="1"?!0:h==="0"?!1:null},savePanelOpen(h){t.set(d,h?"1":"0")},loadPanelSize(){let h=t.get(f);return h==="normal"||h==="expanded"||h==="fullscreen"?h:null},savePanelSize(h){t.set(f,h)},loadCalloutDismissed(h){if(!h)return!1;let m=t.get(v);return!!m&&m===h},saveCalloutDismissed(h){h?t.set(v,h):t.remove(v)},loadSidebarCollapsed(){let h=t.get(g);return h==="1"?!0:h==="0"?!1:null},saveSidebarCollapsed(h){t.set(g,h?"1":"0")},loadActiveModule(){return t.get(w)||null},saveActiveModule(h){t.set(w,h)},loadSeenNewsId(){return t.get(b)||null},saveSeenNewsId(h){t.set(b,h)},loadHistoryCount(){let h=t.get(y);if(!h)return null;let m=Number.parseInt(h,10);return Number.isFinite(m)&&m>=0?m:null},saveHistoryCount(h){t.set(y,String(h))},rememberStorageVersion(h){h&&h!==t.get(o)&&(Mr.debug("rememberStorageVersion (force-reset on next load)",{version:h}),t.set(o,h))},saveLoginReturn(h){Yr.set(x,JSON.stringify(h))},takeLoginReturn(){let h=Yr.get(x);if(h){Yr.remove(x);try{let m=JSON.parse(h);return Ci(m)&&typeof m.conversationId=="string"&&m.conversationId&&typeof m.draft=="string"?{conversationId:m.conversationId,draft:m.draft}:void 0}catch(m){Mr.warn("takeLoginReturn parse failed",{error:m});return}}},loadLoginPromptDismissedIn(){return Yr.get(P)??void 0},dismissLoginPromptIn(h){Yr.set(P,h)},clearConversation(){t.remove(p)},reset(){let h=t.get(p);h&&(t.remove(`${i}.draft.${h}`),t.remove(`${i}.messageQueue.${h}`));for(let m of[x,P])Yr.remove(m);for(let m of[c,u,p,_,f,v,g,w,b,y])t.remove(m);Mr.info("reset: forgot the visitor",{scope:n})}};return k}function Ci(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Rv(e){return Ci(e)&&typeof e.id=="string"&&e.id.length>0&&typeof e.text=="string"}function zs(e){if(!Ci(e))return{};let t={};return typeof e.locale=="string"&&(t.locale=e.locale),typeof e.soundMuted=="boolean"&&(t.soundMuted=e.soundMuted),(e.themeMode==="auto"||e.themeMode==="light"||e.themeMode==="dark")&&(t.themeMode=e.themeMode),(e.textSize==="small"||e.textSize==="normal"||e.textSize==="large")&&(t.textSize=e.textSize),Ci(e.widgetSize)&&typeof e.widgetSize.width=="number"&&typeof e.widgetSize.height=="number"&&(t.widgetSize={width:e.widgetSize.width,height:e.widgetSize.height}),t}var Tn="6.11.2";var Ev="1",bd=60,Mv=2e3,Fs={open:()=>{},close:()=>{},expand:e=>({on:e}),fullscreen:e=>({on:e}),send:e=>({attachments:e.attachmentCount}),message:e=>({role:e.role}),stop:()=>{},clear:()=>{},suggestion:()=>{},toggleHistory:e=>({view:e.view}),handshake:()=>{},toolResult:()=>{},toolDecision:e=>({approved:e.approved}),hostEvent:e=>({name:e.name,data:e.data&&JSON.stringify(e.data)}),messageFeedback:e=>({value:e.value??"none"}),contentView:e=>({section:e.section,count:e.count}),contentOpen:e=>({contentId:e.contentId,contentCollectionId:e.contentCollectionId}),contentSearch:e=>({qlen:e.queryLength,hits:e.hitCount}),contentRead:e=>({contentId:e.contentId}),contentLinkClick:e=>({contentId:e.contentId}),attach:e=>({count:e.count,bytes:e.totalBytes}),voiceStart:()=>{},voiceStop:e=>({ms:e.durationMs}),voiceCancel:()=>{},localeChange:e=>({locale:e}),themeChange:e=>({theme:e}),textSizeChange:e=>({size:e}),soundToggle:e=>({muted:e.muted}),sidebarToggle:e=>({collapsed:e.collapsed}),calloutDismiss:()=>{},error:()=>{}};function Lv(){let e=navigator;return e.globalPrivacyControl===!0||e.doNotTrack==="1"}function Nv(){return location.origin+location.pathname}function Ov(){try{return document.referrer?new URL(document.referrer).origin:""}catch{return""}}function Pd(e,t){let r=Math.random(),n=0,o=0,s=new Set;function a(_,d){let{tracking:f,publicKey:v,aiAgentDeploymentId:g,mode:w,themeMode:b}=t.getOptions();if(!f.enabled||Lv()||r>=f.sampleRate)return;let y=performance.now();if(y-n>6e4&&(n=y,o=0),++o>bd)return;let x=new URLSearchParams;x.set("v",Ev),x.set("_ev",Tn),x.set("e",_),f.token&&x.set("tk",f.token),v&&x.set("pk",v),g&&x.set("dep",g),x.set("vid",t.getVisitorId());let P=t.getConversationId();P&&x.set("cid",P),x.set("url",Nv());let k=Ov();k&&x.set("ref",k),x.set("sw",String(screen.width)),x.set("sh",String(screen.height)),x.set("vw",String(innerWidth)),x.set("vh",String(innerHeight)),x.set("dpr",String(devicePixelRatio)),x.set("lang",navigator.language);try{x.set("tz",Intl.DateTimeFormat().resolvedOptions().timeZone)}catch{}if(x.set("m",w),x.set("th",b),d)for(let[A,I]of Object.entries(d))I!==void 0&&x.set(A,String(I));x.set("ts",String(Date.now()));let h=`${f.endpoint}?${x}`;if(h.length>Mv)return;let m=new Image(1,1);s.add(m);function S(){return s.delete(m)}m.addEventListener("load",S,{once:!0}),m.addEventListener("error",S,{once:!0}),m.src=h}let i=[];function c(_,d){if(i&&_!=="handshake"){i.length<bd&&i.push([_,d]);return}let f=i??[];i=void 0;for(let[v,g]of f)a(v,g);a(_,d)}function u(_,d){return Fs[_]?.(d)}let p=Object.keys(Fs).filter(_=>Object.hasOwn(Fs,_)).map(_=>e.on(_,d=>c(_,u(_,d))));return()=>{for(let _ of p)_();s.clear()}}var xd=`.__P__-generative-ui{display:grid;gap:var(--__P__-space-3);overflow-wrap:anywhere;white-space:pre-wrap}.__P__-generative-ui p{margin:0}.__P__-generative-ui-grid-container{container:__P__-generative-ui-grid / inline-size;min-width:0}.__P__-generative-ui-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.__P__-generative-ui-cell{display:flex;flex-direction:column;align-self:start;min-width:0;gap:16px}.__P__-generative-ui-grid[data-equal-heights]>.__P__-generative-ui-cell{align-self:stretch}.__P__-generative-ui-grid[data-equal-heights]>.__P__-generative-ui-cell>:only-child{flex:1}@container __P__-generative-ui-grid (min-width: 496px){.__P__-generative-ui-grid:is([data-columns="2"],[data-columns="3"],[data-columns="4"]){grid-template-columns:repeat(2,minmax(0,1fr))}.__P__-generative-ui-grid:is([data-columns="2"],[data-columns="3"],[data-columns="4"])>.__P__-generative-ui-cell:is([data-span="2"],[data-span="3"],[data-span="4"]){grid-column:span 2}}@container __P__-generative-ui-grid (min-width: 752px){.__P__-generative-ui-grid:is([data-columns="3"],[data-columns="4"]){grid-template-columns:repeat(3,minmax(0,1fr))}.__P__-generative-ui-grid:is([data-columns="3"],[data-columns="4"])>.__P__-generative-ui-cell:is([data-span="3"],[data-span="4"]){grid-column:span 3}}@container __P__-generative-ui-grid (min-width: 1008px){.__P__-generative-ui-grid[data-columns="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.__P__-generative-ui-grid[data-columns="4"]>.__P__-generative-ui-cell[data-span="4"]{grid-column:span 4}}.__P__-generative-ui section{display:flex;flex-direction:column;gap:var(--__P__-space-2);padding:var(--__P__-space-3);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-md);min-width:0}.__P__-generative-ui-metric{font-size:1.6em;font-weight:700}.__P__-generative-ui-table{overflow-x:auto}.__P__-generative-ui table{width:100%;border-collapse:collapse;white-space:normal}.__P__-generative-ui caption{text-align:start;font-weight:600;padding-bottom:var(--__P__-space-2)}.__P__-generative-ui th,.__P__-generative-ui td{text-align:start;padding:var(--__P__-space-2);border-bottom:1px solid var(--__P__-border)}.__P__-generative-ui-chart{display:block;width:100%;color:var(--__P__-accent)}.__P__-generative-ui-axis{stroke:var(--__P__-border)}.__P__-generative-ui-data{display:flex;flex-wrap:wrap;gap:var(--__P__-space-2);font-size:.85em}.__P__-generative-ui-carousel{display:flex;gap:var(--__P__-space-3);margin:0 calc(var(--__P__-space-1) * -1);padding:0 var(--__P__-space-1) var(--__P__-space-2);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--__P__-space-1);scrollbar-width:thin;min-width:0}.__P__-generative-ui-carousel>[role=listitem]{display:flex;flex:0 0 min(250px,80%);scroll-snap-align:start;min-width:0}.__P__-generative-ui-carousel>[role=listitem]>section{flex:1}.__P__-generative-ui-product{overflow:hidden}.__P__-generative-ui>.__P__-generative-ui-product{max-width:320px}.__P__-generative-ui-footer{display:flex;flex-direction:column;gap:var(--__P__-space-1);margin-top:auto}.__P__-generative-ui-hint{min-height:1.4em;line-height:1.4;color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs)}.__P__-generative-ui-photo{display:block;flex:none;width:calc(100% + 2 * var(--__P__-space-3));aspect-ratio:4 / 3;margin:calc(var(--__P__-space-3) * -1) calc(var(--__P__-space-3) * -1) var(--__P__-space-1);overflow:hidden;background:var(--__P__-hover)}.__P__-generative-ui-thumb{display:block;flex:0 0 auto;width:48px;height:48px;overflow:hidden;border-radius:var(--__P__-radius-sm);background:var(--__P__-hover)}.__P__-generative-ui-photo img,.__P__-generative-ui-thumb img{display:block;width:100%;max-width:none;height:100%;object-fit:cover}.__P__-generative-ui-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--__P__-space-2)}.__P__-generative-ui-product>.__P__-generative-ui-heading{justify-content:flex-start}.__P__-generative-ui-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.__P__-generative-ui a{color:inherit}.__P__-generative-ui .__P__-generative-ui-title a,.__P__-generative-ui .__P__-generative-ui-lines a,.__P__-generative-ui .__P__-generative-ui-actions>a{text-decoration:none}.__P__-generative-ui .__P__-generative-ui-title a:hover,.__P__-generative-ui .__P__-generative-ui-lines span>a:hover{text-decoration:underline}.__P__-generative-ui-pill{display:inline-flex;align-items:center;padding:2px var(--__P__-space-2);border-radius:var(--__P__-radius-sm);background:var(--__P__-hover);color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs);font-weight:600}.__P__-generative-ui-muted{color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs)}.__P__-generative-ui-star{color:var(--__P__-warning)}.__P__-generative-ui-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--__P__-space-2);font-variant-numeric:tabular-nums}.__P__-generative-ui-price strong{font-size:1.1em}.__P__-generative-ui-price s{color:var(--__P__-fg-muted)}.__P__-generative-ui-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:var(--__P__-fg-muted)}.__P__-generative-ui-option{display:grid;gap:var(--__P__-space-1);min-width:0;margin:0;padding:0;border:0}.__P__-generative-ui-option legend{padding:0 0 var(--__P__-space-1);color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs);font-weight:600}.__P__-generative-ui-option div{display:flex;gap:6px;min-width:0;margin:-4px;padding:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.__P__-generative-ui-option div::-webkit-scrollbar{display:none}.__P__-generative-ui-option div[data-cut-end]{mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option div[data-cut-start]{mask-image:linear-gradient(to right,transparent,#000 32px)}.__P__-generative-ui-option div[data-cut-start][data-cut-end]{mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option div:dir(rtl)[data-cut-end]{mask-image:linear-gradient(to left,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option div:dir(rtl)[data-cut-start]{mask-image:linear-gradient(to left,transparent,#000 32px)}.__P__-generative-ui-option div:dir(rtl)[data-cut-start][data-cut-end]{mask-image:linear-gradient(to left,transparent,#000 32px,#000 calc(100% - 32px),transparent)}.__P__-generative-ui-option button{flex:0 0 auto;min-height:32px;padding:0 10px;border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-sm);background:var(--__P__-bg-elevated);color:var(--__P__-fg);font:inherit;font-size:var(--__P__-text-sm);white-space:nowrap;cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease),border-color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-generative-ui-option button:hover{border-color:var(--__P__-border-strong)}.__P__-generative-ui-option button[aria-pressed=true]{border-color:var(--__P__-accent);box-shadow:inset 0 0 0 1px var(--__P__-accent);font-weight:600}.__P__-generative-ui-option button:disabled{color:var(--__P__-fg-muted);text-decoration:line-through;opacity:.6;cursor:not-allowed}.__P__-generative-ui-actions{display:flex;flex-wrap:wrap;gap:var(--__P__-space-2);margin-top:auto;padding-top:var(--__P__-space-1)}.__P__-generative-ui-actions:not([data-small=true])>*{flex:1 1 auto}.__P__-generative-ui-actions>*{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 var(--__P__-space-3);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-sm);background:var(--__P__-bg-elevated);color:var(--__P__-fg);font:inherit;font-size:var(--__P__-text-sm);font-weight:600;text-decoration:none;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease),border-color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-generative-ui-actions[data-small=true]>*{min-height:28px;padding:0 var(--__P__-space-2);font-size:var(--__P__-text-xs)}.__P__-generative-ui-actions>:hover{border-color:var(--__P__-border-strong)}.__P__-generative-ui-actions>[data-primary=true]{border-color:var(--__P__-accent);background:var(--__P__-accent);color:var(--__P__-on-accent)}.__P__-generative-ui-actions>:focus-visible,.__P__-generative-ui-option button:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-generative-ui-actions>:disabled{border-color:var(--__P__-border);background:var(--__P__-hover);color:var(--__P__-fg-muted);cursor:not-allowed}.__P__-generative-ui .__P__-generative-ui-lines{display:grid;margin:0;padding:0;list-style:none}.__P__-generative-ui .__P__-generative-ui-lines li{display:flex;margin:0;gap:var(--__P__-space-3);padding:var(--__P__-space-2) 0;border-bottom:1px solid var(--__P__-border)}.__P__-generative-ui .__P__-generative-ui-lines li:first-child{padding-top:0}.__P__-generative-ui-lines li>div{display:grid;flex:1;gap:2px;min-width:0}.__P__-generative-ui-line-head{display:flex;align-items:baseline;gap:var(--__P__-space-3)}.__P__-generative-ui-line-head>span{display:-webkit-box;flex:1;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.__P__-generative-ui-line-head>strong{flex:none;font-variant-numeric:tabular-nums}.__P__-generative-ui-totals{display:grid;gap:var(--__P__-space-1);margin:0;font-variant-numeric:tabular-nums}.__P__-generative-ui-totals div{display:flex;justify-content:space-between;gap:var(--__P__-space-3);color:var(--__P__-fg-muted)}.__P__-generative-ui-totals div:last-child{padding-top:var(--__P__-space-1);color:var(--__P__-fg);font-weight:700}.__P__-generative-ui-totals dd{margin:0}.__P__-generative-ui-notice{padding:var(--__P__-space-2) var(--__P__-space-3);border-radius:var(--__P__-radius-sm);background:var(--__P__-hover)}.__P__-generative-ui-notice[data-severity=warning]{color:var(--__P__-fg);background:color-mix(in oklch,var(--__P__-warning) 16%,transparent)}.__P__-generative-ui-notice[data-severity=error]{color:var(--__P__-danger-text);background:var(--__P__-danger-bg)}.__P__-generative-ui .__P__-generative-ui-timeline{display:grid;gap:var(--__P__-space-2);margin:0;padding:0;list-style:none}.__P__-generative-ui .__P__-generative-ui-timeline li{display:flex;margin:0;align-items:baseline;gap:var(--__P__-space-2);color:var(--__P__-fg-muted)}.__P__-generative-ui-timeline li:before{content:"";flex:0 0 auto;width:8px;height:8px;border:2px solid var(--__P__-border-strong);border-radius:50%}.__P__-generative-ui-timeline li[data-done=true]{color:var(--__P__-fg);font-weight:600}.__P__-generative-ui-timeline li[data-done=true]:before{border-color:var(--__P__-accent);background:var(--__P__-accent)}.__P__-generative-ui-timeline li>:first-child{flex:1}
3
3
  `;var Sd=`:host([data-mode="page"]){min-height:0}:host([data-mode="page"]) .__P__-page-shell{display:grid;grid-template-columns:280px 1fr;width:100%;height:100%;min-height:0;background:var(--__P__-bg);color:var(--__P__-fg);transition:grid-template-columns var(--__P__-dur-base) var(--__P__-ease-in-out)}:host([data-mode="page"]) .__P__-page-shell[data-sidebar-collapsed=true]{grid-template-columns:48px 1fr}:host([data-mode="page"]) .__P__-page-chat{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}:host([data-mode="page"]) .__P__-anchor{position:static;inset:auto;padding:0;align-items:stretch;width:100%;height:100%;min-width:0;min-height:0;flex:1 1 0}:host([data-mode="page"]) .__P__-panel{width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;border-radius:0;border:0;box-shadow:none;animation:none}:host([data-mode="page"]) .__P__-sidebar{border-inline-end:1px solid var(--__P__-border);display:flex;flex-direction:column;overflow:hidden;background:var(--__P__-surface)}:host([data-mode="page"]) .__P__-sidebar-header{padding:var(--__P__-space-4) var(--__P__-space-5);border-bottom:1px solid var(--__P__-border);display:flex;align-items:center;justify-content:space-between;gap:var(--__P__-space-2);min-height:56px;box-sizing:border-box}:host([data-mode="page"]) .__P__-sidebar[data-collapsed=true] .__P__-sidebar-header{padding:var(--__P__-space-4) var(--__P__-space-2);justify-content:center}:host([data-mode="page"]) .__P__-sidebar[data-collapsed=true] .__P__-sidebar-logo,:host([data-mode="page"]) .__P__-sidebar[data-collapsed=true] .__P__-sidebar-title{display:none}:host([data-mode="page"]) .__P__-sidebar-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--__P__-border);border-radius:6px;background:transparent;color:var(--__P__-fg);cursor:pointer;transition:background .12s,border-color .12s}:host([data-mode="page"]) .__P__-sidebar-toggle:hover{background:var(--__P__-hover);border-color:var(--__P__-accent)}:host([data-mode="page"]) .__P__-sidebar-toggle:focus-visible{outline:2px solid var(--__P__-accent);outline-offset:2px}:host([data-mode="page"]) .__P__-sidebar-logo{height:32px;display:block;border-radius:var(--__P__-radius-md)}:host([data-mode="page"]) .__P__-sidebar-title{font-size:var(--__P__-text-md);font-weight:600}:host([data-mode="page"]) .__P__-sidebar-section{padding:var(--__P__-space-3) var(--__P__-space-4);border-bottom:1px solid var(--__P__-border)}:host([data-mode="page"]) .__P__-sidebar-nav{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}:host([data-mode="page"]) .__P__-sidebar-nav-item{display:flex;align-items:center;gap:10px;padding:var(--__P__-space-2) var(--__P__-space-3);border-radius:var(--__P__-radius-sm);color:var(--__P__-fg);text-decoration:none;font-size:calc(14px * var(--__P__-text-scale));transition:background var(--__P__-dur-quick) var(--__P__-ease-out)}:host([data-mode="page"]) .__P__-sidebar-nav-item:hover{background:var(--__P__-hover)}:host([data-mode="page"]) .__P__-sidebar-nav-item:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:-2px}:host([data-mode="page"]) .__P__-sidebar-cards{display:grid;grid-template-columns:1fr;gap:var(--__P__-space-2)}:host([data-mode="page"]) .__P__-sidebar-card{display:block;padding:10px 12px;border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-sm);text-decoration:none;color:var(--__P__-fg);transition:border-color var(--__P__-dur-quick) var(--__P__-ease-out)}:host([data-mode="page"]) .__P__-sidebar-card:hover{border-color:var(--__P__-accent)}:host([data-mode="page"]) .__P__-sidebar-card:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}:host([data-mode="page"]) .__P__-sidebar-card-label{font-weight:600;font-size:calc(14px * var(--__P__-text-scale))}:host([data-mode="page"]) .__P__-sidebar-card-desc{font-size:var(--__P__-text-xs);color:var(--__P__-muted);margin-top:2px}:host([data-mode="page"]) .__P__-sidebar-conversations{flex:1 1 auto;overflow-y:auto;padding:var(--__P__-space-3) var(--__P__-space-4)}:host([data-mode="page"]) .__P__-page-chat{display:flex;flex-direction:column;overflow:hidden}@media(max-width:768px){:host([data-mode="page"]) .__P__-page-shell{grid-template-columns:1fr}:host([data-mode="page"]) .__P__-sidebar{display:none}}
4
4
  `;var wd=`.__P__-anchor{color-scheme:var(--__P__-color-scheme, light);right:16px;bottom:16px}.__P__-surface{display:contents}.__P__-surface[hidden]{display:none}:host([data-position="bottom-left"]) .__P__-anchor,:host([data-position="top-left"]) .__P__-anchor{right:auto;left:16px}:host([data-position="top-right"]) .__P__-anchor,:host([data-position="top-left"]) .__P__-anchor{bottom:auto;top:16px}.__P__-anchor{position:fixed;display:flex;flex-direction:column;align-items:flex-end;gap:var(--__P__-space-3);pointer-events:none}.__P__-anchor{--__P__-fab-size: 56px}.__P__-anchor[data-launcher-size=sm]{--__P__-fab-size: 44px}.__P__-anchor[data-launcher-size=md]{--__P__-fab-size: 56px}.__P__-anchor[data-launcher-size=lg]{--__P__-fab-size: 68px}.__P__-anchor>*{pointer-events:auto}.__P__-fab[data-size=sm]{--__P__-fab-size: 44px;font-size:var(--__P__-text-sm)}.__P__-fab[data-size=md]{--__P__-fab-size: 56px;font-size:calc(14px * var(--__P__-text-scale))}.__P__-fab[data-size=lg]{--__P__-fab-size: 68px;font-size:var(--__P__-text-base)}.__P__-fab{display:inline-flex;align-items:center;justify-content:center;gap:var(--__P__-space-2);color:var(--__P__-accent-text);background:var(--__P__-accent);box-shadow:var(--__P__-shadow-fab);font-weight:600;line-height:1;transform-origin:bottom right;animation:__P__-fab-in var(--__P__-dur-base) var(--__P__-ease) both;transition:transform var(--__P__-dur-base) var(--__P__-ease),opacity var(--__P__-dur-base) var(--__P__-ease),box-shadow var(--__P__-dur-base) var(--__P__-ease)}.__P__-fab:hover{transform:translateY(-2px)}.__P__-fab:active{transform:translateY(0)}.__P__-fab:focus-visible{outline:2px solid var(--__P__-on-accent);outline-offset:3px}.__P__-fab svg{width:24px;height:24px;flex-shrink:0}@keyframes __P__-fab-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}.__P__-fab[data-leaving]{position:absolute;right:0;bottom:0;animation:__P__-fab-out var(--__P__-dur-quick) var(--__P__-ease) forwards;pointer-events:none}:host([data-position^="top-"]) .__P__-fab[data-leaving]{bottom:auto;top:0}:host([data-position$="-left"]) .__P__-fab[data-leaving]{right:auto;left:0}@keyframes __P__-fab-out{0%{opacity:1;transform:none}to{opacity:0;transform:scale(.85)}}.__P__-fab[data-variant=circle]{width:var(--__P__-fab-size);height:var(--__P__-fab-size);border-radius:999px}.__P__-fab[data-variant=circle] .__P__-fab-label{display:none}.__P__-fab[data-variant=pill]{height:var(--__P__-fab-size);padding:0 18px 0 16px;border-radius:999px}.__P__-fab[data-variant=bar]{height:var(--__P__-fab-size);padding:0 22px;border-radius:var(--__P__-radius)}.__P__-fab[data-variant=minimal]{height:var(--__P__-fab-size);padding:0 var(--__P__-space-4);border-radius:999px;background:transparent;color:var(--__P__-accent-fg);box-shadow:none;border:1px solid currentColor}.__P__-fab[data-variant=minimal]:hover{background:color-mix(in srgb,var(--__P__-accent) 12%,transparent)}.__P__-callout{--__P__-callout-fab-h: var(--__P__-fab-size, 56px);--__P__-callout-gap: clamp(12px, calc(var(--__P__-callout-fab-h) * .25), 22px);--__P__-callout-nudge-direction: -1;position:absolute;display:inline-flex;align-items:center;gap:var(--__P__-space-2);padding:10px 14px;background:var(--__P__-fg);color:var(--__P__-bg);border-radius:18px;font-size:var(--__P__-text-sm);font-weight:600;line-height:1.2;box-shadow:0 10px 30px -8px #00000059;pointer-events:auto;animation:__P__-callout-in var(--__P__-dur-slow) var(--__P__-ease);z-index:1;width:max-content;max-width:min(260px,calc(100vw - 100% - var(--__P__-callout-gap) - 32px));white-space:normal;overflow-wrap:anywhere}.__P__-callout[data-position=left]{right:calc(100% + var(--__P__-callout-gap));bottom:calc(var(--__P__-callout-fab-h) / 2);transform:translateY(50%)}.__P__-callout[data-position=right]{left:calc(100% + var(--__P__-callout-gap));bottom:calc(var(--__P__-callout-fab-h) / 2);transform:translateY(50%);--__P__-callout-nudge-direction: 1}.__P__-callout[data-position=top]{bottom:calc(100% + var(--__P__-callout-gap));right:0;max-width:min(280px,calc(100vw - 32px))}.__P__-callout[data-position=bottom]{top:calc(100% + var(--__P__-callout-gap));right:0;max-width:min(280px,calc(100vw - 32px))}:host([data-position$="-left"]) .__P__-callout[data-position=top],:host([data-position$="-left"]) .__P__-callout[data-position=bottom]{right:auto;left:0}.__P__-callout[data-shape=bubble]{border-radius:var(--__P__-radius-md)}.__P__-callout[data-shape=callout]{padding:12px 18px;font-size:calc(14px * var(--__P__-text-scale));background:var(--__P__-accent);color:var(--__P__-accent-text)}.__P__-callout:after{content:"";position:absolute;width:12px;height:12px;background:inherit;border-radius:2px;transform:rotate(45deg)}.__P__-callout[data-position=left]:after{right:-5px;top:50%;margin-top:-6px}.__P__-callout[data-position=right]:after{left:-5px;top:50%;margin-top:-6px}.__P__-callout[data-position=top]:after{bottom:-5px;right:calc(var(--__P__-fab-size, 56px) / 2 - 6px)}.__P__-callout[data-position=bottom]:after{top:-5px;right:calc(var(--__P__-fab-size, 56px) / 2 - 6px)}:host([data-position$="-left"]) .__P__-callout[data-position=top]:after,:host([data-position$="-left"]) .__P__-callout[data-position=bottom]:after{right:auto;left:calc(var(--__P__-fab-size, 56px) / 2 - 6px)}.__P__-callout[data-animated]{animation:__P__-callout-in var(--__P__-dur-slow) var(--__P__-ease),__P__-callout-nudge 1.6s var(--__P__-ease-in-out) var(--__P__-dur-slow) infinite}@keyframes __P__-callout-in{0%{opacity:0}to{opacity:1}}@keyframes __P__-callout-nudge{0%,to{margin-left:0;margin-right:0}50%{margin-left:calc(6px * var(--__P__-callout-nudge-direction));margin-right:calc(-6px * var(--__P__-callout-nudge-direction))}}@media(prefers-reduced-motion:reduce){.__P__-callout[data-animated]{animation:__P__-callout-in 1ms var(--__P__-ease)}.__P__-icon-btn[data-recording=true],.__P__-typing span{animation:none}}.__P__-callout-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;color:inherit;opacity:.7;cursor:pointer}.__P__-callout-close:hover{opacity:1;background:color-mix(in srgb,currentColor 15%,transparent)}.__P__-callout-close:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-callout-close svg{width:12px;height:12px}.__P__-panel{width:var(--__P__-panel-w);height:var(--__P__-panel-h);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);background:var(--__P__-bg);color:var(--__P__-fg);border-radius:var(--__P__-radius-lg);box-shadow:var(--__P__-shadow-panel);display:flex;flex-direction:column;overflow:hidden;overflow:clip;overscroll-behavior:none;transform-origin:bottom right;animation:__P__-panel-in var(--__P__-dur-slow) var(--__P__-ease);border:1px solid var(--__P__-border)}@media(prefers-reduced-motion:no-preference){.__P__-panel{transition:width var(--__P__-dur-base) var(--__P__-ease),height var(--__P__-dur-base) var(--__P__-ease),max-width var(--__P__-dur-base) var(--__P__-ease),max-height var(--__P__-dur-base) var(--__P__-ease)}.__P__-panel[data-resizing]{transition:none}}:host([data-mode="open"]) .__P__-panel{width:var(--__P__-widget-w, var(--__P__-panel-w));height:var(--__P__-widget-h, var(--__P__-panel-h));min-width:var(--__P__-resize-min-w, auto);min-height:var(--__P__-resize-min-h, auto);max-width:var(--__P__-resize-max-w, calc(100vw - 32px) );max-height:var(--__P__-resize-max-h, calc(100dvh - 32px) )}@keyframes __P__-panel-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}:host([data-mode="expanded"]) .__P__-panel{width:var(--__P__-expanded-w, 640px);height:var(--__P__-expanded-h, 820px);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}:host([data-mode="fullscreen"]){z-index:var(--__P__-z-panel)!important}:host([data-mode="fullscreen"]) .__P__-anchor{inset:var(--__P__-visual-viewport-top, 0px) 0 auto;height:var(--__P__-visual-viewport-height, 100dvh);padding:0;justify-content:flex-end;align-items:flex-end}:host([data-mode="fullscreen"][data-position*="top"]) .__P__-anchor{justify-content:flex-start}:host([data-mode="fullscreen"][data-position*="left"]) .__P__-anchor{align-items:flex-start}:host([data-mode="fullscreen"]) .__P__-panel{width:100vw;height:100%;max-width:none;max-height:none;border-radius:0;border:0}:host([data-mode="fullscreen"]) .__P__-fab{display:none}:host([data-mode="inline"]) .__P__-anchor,:host([data-mode="standalone"]) .__P__-anchor{position:static;inset:auto;padding:0;align-items:stretch;width:100%;height:100%;min-height:0}:host([data-mode="inline"]) .__P__-panel,:host([data-mode="standalone"]) .__P__-panel{width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;animation:none}:host([data-mode="inline"]) .__P__-fab,:host([data-mode="standalone"]) .__P__-fab{display:none}:host([data-mode="inline"]){min-height:320px}:host([data-mode="inline"]) .__P__-panel{border-radius:var(--__P__-radius)}:host([data-mode="standalone"]) .__P__-panel{border-radius:0;border:0;box-shadow:none}:host([data-mode="modal"]){position:fixed!important;inset:0!important;z-index:var(--__P__-z-panel)!important;display:block!important;width:100vw;height:100dvh;background:var(--__P__-modal-backdrop, var(--__P__-backdrop));animation:__P__-backdrop-in var(--__P__-dur-base) var(--__P__-ease) both;--__P__-panel-w: min(960px, 92vw);--__P__-panel-h: min(720px, 88dvh)}:host([data-mode="modal"]) .__P__-anchor{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:var(--__P__-space-6);pointer-events:none}:host([data-mode="modal"]) .__P__-panel{pointer-events:auto;width:var(--__P__-widget-w, var(--__P__-panel-w));height:var(--__P__-widget-h, var(--__P__-panel-h));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);min-width:0;min-height:0;border-radius:var(--__P__-radius);box-shadow:var(--__P__-shadow-panel);animation:__P__-modal-in var(--__P__-dur-base) var(--__P__-ease);translate:var(--__P__-modal-dx, 0px) var(--__P__-modal-dy, 0px)}:host([data-mode="modal"]) .__P__-header,:host([data-mode="modal"]) .__P__-back-header,:host([data-mode="modal"]) .__P__-home-hero{cursor:grab;touch-action:none}:host([data-mode="modal"]) .__P__-panel[data-dragging]{cursor:grabbing;user-select:none}:host([data-mode="modal"]) .__P__-panel[data-dragging] *{cursor:grabbing}:host([data-mode="modal"]) .__P__-fab{display:none}@keyframes __P__-backdrop-in{0%{background:#0000}to{background:var(--__P__-modal-backdrop, var(--__P__-backdrop))}}@keyframes __P__-modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}:host([data-mode="drawer"]){--__P__-panel-w: clamp(440px, 32vw, 640px);--__P__-panel-h: 100dvh}:host([data-mode="drawer"]) .__P__-anchor{position:fixed;--__P__-inset-x: var(--__P__-panel-inset, 12px);--__P__-inset-y: var(--__P__-panel-inset, 3dvh);top:var(--__P__-inset-y);bottom:auto;right:var(--__P__-inset-x);left:auto;height:min(var(--__P__-widget-h, var(--__P__-panel-h)),calc(100dvh - var(--__P__-inset-y) * 2));padding:0;display:block;pointer-events:auto}:host([data-mode="drawer"][data-position$="-left"]) .__P__-anchor{right:auto;left:var(--__P__-inset-x)}:host([data-mode="drawer"][data-position^="bottom-"]) .__P__-anchor{top:auto;bottom:var(--__P__-inset-y)}:host([data-mode="drawer"]) .__P__-panel{width:min(var(--__P__-widget-w, var(--__P__-panel-w)),calc(100vw - var(--__P__-inset-x) * 2));height:100%;min-width:min(var(--__P__-resize-min-w, 0px),calc(100vw - var(--__P__-inset-x) * 2));max-width:var(--__P__-resize-max-w, none);max-height:none;min-height:0;border-radius:var(--__P__-radius, 12px);border:1px solid var(--__P__-border);box-shadow:-8px 16px 32px -12px #00000038;animation:__P__-drawer-in var(--__P__-dur-base) var(--__P__-ease)}:host([data-mode="drawer"][data-position$="-left"]) .__P__-panel{box-shadow:8px 16px 32px -12px #00000038;animation:__P__-drawer-in-left var(--__P__-dur-base) var(--__P__-ease)}.__P__-fab[data-edge-tab]{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--__P__-space-2);position:fixed;top:50%;height:140px;width:auto;min-width:0;padding:10px 8px;writing-mode:vertical-rl;text-orientation:mixed;transform:translateY(-50%);transform-origin:center;animation:__P__-edge-tab-in var(--__P__-dur-base) var(--__P__-ease) both}.__P__-fab[data-edge-tab] svg{writing-mode:horizontal-tb}.__P__-fab[data-edge-tab]:hover{transform:translateY(-50%) scale(1.03)}.__P__-fab[data-edge-tab]:active{transform:translateY(-50%) scale(.97)}:host([data-position$="-right"]) .__P__-fab[data-edge-tab]{right:0;left:auto;border-radius:12px 0 0 12px;box-shadow:-6px 0 18px -8px #0000004d}:host([data-position$="-left"]) .__P__-fab[data-edge-tab]{left:0;right:auto;border-radius:0 12px 12px 0;box-shadow:6px 0 18px -8px #0000004d}.__P__-fab[data-edge-tab][data-leaving]{position:fixed;top:50%;bottom:auto;animation:__P__-edge-tab-out var(--__P__-dur-quick) var(--__P__-ease) forwards}@keyframes __P__-edge-tab-in{0%{opacity:0;transform:translateY(-50%) scale(.9)}to{opacity:1;transform:translateY(-50%) scale(1)}}@keyframes __P__-edge-tab-out{0%{opacity:1;transform:translateY(-50%) scale(1)}to{opacity:0;transform:translateY(-50%) scale(.85)}}@keyframes __P__-drawer-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes __P__-drawer-in-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@media(prefers-reduced-motion:reduce){:host([data-mode="drawer"]) .__P__-panel,.__P__-fab[data-edge-tab]{animation:none}}@media(max-width:640px){:host([data-mode="open"][data-position]) .__P__-anchor,:host([data-mode="expanded"][data-position]) .__P__-anchor,:host([data-mode="drawer"][data-position]) .__P__-anchor,:host([data-mode="modal"][data-position]) .__P__-anchor{inset:var(--__P__-visual-viewport-top, 0px) 0 auto;align-items:stretch;width:auto;height:var(--__P__-visual-viewport-height, 100dvh);padding:0}:host([data-mode="open"][data-position]) .__P__-panel,:host([data-mode="expanded"][data-position]) .__P__-panel,:host([data-mode="drawer"][data-position]) .__P__-panel,:host([data-mode="modal"][data-position]) .__P__-panel{width:100vw;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;border-radius:0;border:0;box-shadow:none;translate:none}:host([data-mode="modal"]){background:none;animation:none}}.__P__-header{display:flex;align-items:center;gap:var(--__P__-space-2);padding:10px 12px;border-bottom:1px solid var(--__P__-border);background:var(--__P__-bg)}.__P__-header h1{font-size:calc(14px * var(--__P__-text-scale));font-weight:600;flex:1;letter-spacing:-.01em}.__P__-header-actions{margin-inline-start:auto;display:flex;align-items:center;gap:var(--__P__-space-1);flex-shrink:0}.__P__-header[data-variant=accent]{background:var(--__P__-accent);color:var(--__P__-on-accent);border-bottom-color:transparent}.__P__-header[data-variant=accent]>h1,.__P__-header[data-variant=accent] .__P__-agent-meta strong,.__P__-header[data-variant=accent] .__P__-agent-sub span,.__P__-header[data-variant=accent] .__P__-agent-ticket,.__P__-header[data-variant=accent] .__P__-agent-ticket:hover,.__P__-header[data-variant=accent]>.__P__-icon-btn,.__P__-header[data-variant=accent] .__P__-header-actions>.__P__-icon-btn,.__P__-header[data-variant=accent] .__P__-menu-wrap>.__P__-icon-btn{color:var(--__P__-on-accent);--__P__-focus: var(--__P__-on-accent)}.__P__-header[data-variant=accent]>.__P__-icon-btn:hover,.__P__-header[data-variant=accent] .__P__-header-actions>.__P__-icon-btn:hover,.__P__-header[data-variant=accent] .__P__-menu-wrap>.__P__-icon-btn:hover{background:color-mix(in oklch,var(--__P__-on-accent) 16%,transparent);color:var(--__P__-on-accent)}.__P__-header[data-variant=accent]>.__P__-icon-btn:active,.__P__-header[data-variant=accent] .__P__-header-actions>.__P__-icon-btn:active,.__P__-header[data-variant=accent] .__P__-menu-wrap>.__P__-icon-btn:active{background:color-mix(in oklch,var(--__P__-on-accent) 24%,transparent)}.__P__-header[data-variant=accent] .__P__-agent-avatar{background:color-mix(in oklch,var(--__P__-on-accent) 18%,transparent);color:var(--__P__-on-accent)}.__P__-header[data-variant=accent] .__P__-agent-avatar:after{border-color:var(--__P__-accent)}.__P__-agent{flex:1;display:inline-flex;align-items:center;gap:10px;min-width:0}.__P__-agent-avatar{position:relative;width:32px;height:32px;border-radius:var(--__P__-radius-md);background:var(--__P__-bg-elevated);color:var(--__P__-fg-muted);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:var(--__P__-text-xs);flex-shrink:0}.__P__-agent-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.__P__-agent-avatar:after{content:"";position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:999px;border:2px solid var(--__P__-bg);background:var(--__P__-neutral)}.__P__-agent-avatar[data-status=online]:after{background:var(--__P__-success)}.__P__-agent-avatar[data-status=away]:after{background:var(--__P__-warning)}.__P__-agent-avatar[data-status=offline]:after{background:var(--__P__-neutral)}.__P__-agent-meta{display:flex;flex-direction:column;line-height:1.15;min-width:0}.__P__-agent-meta strong{font-size:calc(14px * var(--__P__-text-scale));font-weight:600;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-agent-meta span{font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-agent-sub{display:flex;gap:4px;min-width:0}.__P__-agent-sub button+span:before{content:"\\b7\\a0"}.__P__-agent-ticket{flex:none;font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted);cursor:copy}.__P__-agent-ticket:hover{color:var(--__P__-fg)}.__P__-suggestions{display:flex;flex-wrap:nowrap;gap:var(--__P__-space-2);padding:6px 14px 10px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;min-width:0}.__P__-suggestions::-webkit-scrollbar{display:none}.__P__-suggestions[data-cut-end=true]{mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}.__P__-suggestions[data-cut-start=true]{mask-image:linear-gradient(to right,transparent,#000 32px)}.__P__-suggestions[data-cut-start=true][data-cut-end=true]{mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent)}:host([dir="rtl"]) .__P__-suggestions[data-cut-end=true]{mask-image:linear-gradient(to left,#000 calc(100% - 32px),transparent)}:host([dir="rtl"]) .__P__-suggestions[data-cut-start=true]{mask-image:linear-gradient(to left,transparent,#000 32px)}:host([dir="rtl"]) .__P__-suggestions[data-cut-start=true][data-cut-end=true]{mask-image:linear-gradient(to left,transparent,#000 32px,#000 calc(100% - 32px),transparent)}.__P__-suggestions:before,.__P__-suggestions:after{content:"";flex:1 1 0;min-width:0}.__P__-suggestion{flex:0 0 auto;scroll-snap-align:center;padding:7px 14px;border-radius:999px;background:var(--__P__-bg-elevated);border:1px solid var(--__P__-border);color:var(--__P__-fg);font-size:var(--__P__-text-sm);font-weight:500;white-space:nowrap;transition:background var(--__P__-dur-quick) var(--__P__-ease),border-color var(--__P__-dur-quick) var(--__P__-ease),transform var(--__P__-dur-quick) var(--__P__-ease)}.__P__-suggestion:hover{border-color:var(--__P__-accent);color:var(--__P__-accent-fg);transform:translateY(-1px)}.__P__-suggestion:focus-visible{outline:2px solid var(--__P__-accent);outline-offset:2px;border-color:var(--__P__-accent)}.__P__-suggestion:active{transform:translateY(0)}.__P__-icon-btn{width:32px;height:32px;border-radius:999px;position:relative;display:inline-flex;align-items:center;justify-content:center;color:var(--__P__-fg-muted);transition:background var(--__P__-dur-quick) var(--__P__-ease),color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-icon-btn:hover{background:var(--__P__-bg-elevated);color:var(--__P__-fg)}.__P__-icon-btn:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-icon-btn:active{background:var(--__P__-border)}.__P__-icon-btn:disabled{opacity:.45;cursor:not-allowed}.__P__-icon-btn:before{content:"";position:absolute;inset:-6px}.__P__-icon-btn svg{width:18px;height:18px}.__P__-icon-btn[data-recording=true]{color:var(--__P__-accent-fg);background:color-mix(in srgb,var(--__P__-accent) 12%,transparent);animation:__P__-pulse 1.2s var(--__P__-ease) infinite}@keyframes __P__-pulse{0%,to{box-shadow:0 0 color-mix(in srgb,var(--__P__-accent) 40%,transparent)}50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--__P__-accent) 0%,transparent)}}.__P__-list,.__P__-history,.__P__-module-scroll,.__P__-home-scroll,.__P__-help-list,.__P__-toolui-code,.__P__-sidebar-conversations{scrollbar-width:thin;scrollbar-color:var(--__P__-border-strong) transparent;overscroll-behavior:contain;scrollbar-gutter:stable}.__P__-list::-webkit-scrollbar,.__P__-history::-webkit-scrollbar,.__P__-module-scroll::-webkit-scrollbar,.__P__-home-scroll::-webkit-scrollbar,.__P__-help-list::-webkit-scrollbar,.__P__-toolui-code::-webkit-scrollbar,.__P__-sidebar-conversations::-webkit-scrollbar{width:8px}.__P__-list::-webkit-scrollbar-thumb,.__P__-history::-webkit-scrollbar-thumb,.__P__-module-scroll::-webkit-scrollbar-thumb,.__P__-home-scroll::-webkit-scrollbar-thumb,.__P__-help-list::-webkit-scrollbar-thumb,.__P__-toolui-code::-webkit-scrollbar-thumb,.__P__-sidebar-conversations::-webkit-scrollbar-thumb{background:var(--__P__-border-strong);border-radius:8px}.__P__-list-wrap{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}.__P__-jump{position:absolute;inset-inline:0;bottom:14px;z-index:2;margin-inline:auto;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;border:1px solid var(--__P__-border);background:var(--__P__-bg-elevated);color:var(--__P__-fg);box-shadow:var(--__P__-shadow-panel);cursor:pointer;opacity:.85;transition:opacity var(--__P__-dur-quick) var(--__P__-ease),transform var(--__P__-dur-quick) var(--__P__-ease);animation:__P__-bubble-in var(--__P__-dur-base) var(--__P__-ease)}.__P__-jump:hover{opacity:1}.__P__-jump:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px;opacity:1}.__P__-jump:active{transform:translateY(1px)}.__P__-jump svg{width:18px;height:18px}.__P__-list{flex:1;min-height:0;overflow-y:auto;padding:var(--__P__-space-4);padding-bottom:var(--__P__-space-8);display:flex;flex-direction:column;gap:14px;overflow-anchor:none}.__P__-list--fade{--__P__-fade-size: 20px;--__P__-fade-top: 0px;--__P__-fade-bottom: 0px;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--__P__-fade-top),#000 calc(100% - var(--__P__-fade-bottom)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--__P__-fade-top),#000 calc(100% - var(--__P__-fade-bottom)),transparent 100%)}.__P__-list--fade[data-fade-top=true]{--__P__-fade-top: var(--__P__-fade-size)}.__P__-list--fade[data-fade-bottom=true]{--__P__-fade-bottom: var(--__P__-fade-size)}.__P__-list>*{width:100%;max-width:var(--__P__-conversation-max, 768px);margin-inline:auto}.__P__-load-previous,.__P__-history-more{display:flex;justify-content:center}.__P__-load-previous button,.__P__-history-more button{border:0;padding:4px 8px;background:transparent;color:var(--__P__-accent);font:inherit;font-size:var(--__P__-text-sm);font-weight:600;cursor:pointer}.__P__-load-previous button:hover,.__P__-history-more button:hover{text-decoration:underline}.__P__-load-previous button:focus-visible,.__P__-history-more button:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px;border-radius:var(--__P__-radius-sm)}.__P__-load-previous button:disabled,.__P__-history-more button:disabled{cursor:wait;opacity:.6}.__P__-date-divider{display:flex;justify-content:center;margin-block:var(--__P__-space-3)}.__P__-date-pill{padding:3px 10px;border-radius:999px;font-size:calc(11px * var(--__P__-text-scale));font-weight:600;color:var(--__P__-fg-muted);background:var(--__P__-bg-elevated);border:1px solid var(--__P__-border);box-shadow:var(--__P__-shadow-card)}.__P__-bubble-row{display:flex}.__P__-bubble-row[data-role=user]{justify-content:flex-end}.__P__-bubble-row[data-role=assistant]{justify-content:flex-start}.__P__-bubble{max-width:100%;min-width:0;padding:var(--__P__-space-3) var(--__P__-space-4);border-radius:var(--__P__-radius);line-height:1.6;font-size:calc(14px * var(--__P__-text-scale));word-wrap:break-word;overflow-wrap:break-word;box-shadow:0 1px 2px #0000000a,0 1px 8px -4px #0000000f;animation:__P__-bubble-in var(--__P__-dur-base) var(--__P__-ease)}.__P__-bubble ::selection{background:color-mix(in srgb,var(--__P__-accent) 30%,transparent)}.__P__-bubble-row[data-role=user] .__P__-bubble ::selection{background:#fff6;color:var(--__P__-bubble-user-text)}@keyframes __P__-bubble-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.__P__-bubble-row[data-role=user] .__P__-bubble{background:var(--__P__-bubble-user);color:var(--__P__-bubble-user-text);border-end-end-radius:5px}.__P__-bubble-row[data-role=assistant] .__P__-bubble{background:var(--__P__-bubble-assistant);color:var(--__P__-bubble-assistant-text);border:1px solid var(--__P__-border);border-end-start-radius:5px}.__P__-bubble-row[data-role=operator] .__P__-bubble{display:flex;align-items:stretch;padding:0;overflow:hidden;background:var(--__P__-bubble-assistant);color:var(--__P__-bubble-assistant-text);border-end-start-radius:5px}.__P__-bubble-row[data-role=operator] .__P__-bubble-col{align-items:flex-start}.__P__-bubble-author{display:flex;flex:0 0 auto;align-items:center;padding:0 .875rem;border-inline-end:1px solid color-mix(in oklab,var(--__P__-accent),transparent 60%);color:var(--__P__-accent);font-size:calc(13px * var(--__P__-text-scale));font-weight:600;letter-spacing:.025em;user-select:none}.__P__-bubble-body{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--__P__-space-3) 6px;min-width:0}.__P__-bubble-body>*{flex:1 0 100%;min-width:0}.__P__-bubble-body>.__P__-source,.__P__-bubble-body>.__P__-typing{flex:0 1 auto}.__P__-bubble-row[data-role=operator] .__P__-bubble-body{flex:1 1 auto;min-width:0;padding:var(--__P__-space-3) var(--__P__-space-4)}.__P__-bubble-col{display:flex;flex-direction:column;max-width:85%;min-width:0}.__P__-bubble-row[data-role=user] .__P__-bubble-col{align-items:flex-end}.__P__-bubble-row[data-role=assistant] .__P__-bubble-col{align-items:flex-start}.__P__-bubble-row[data-role=assistant] .__P__-bubble-col:has(.__P__-toolui,.__P__-steps){width:100%}.__P__-bubble-row[data-role=assistant] .__P__-bubble-col:has(.__P__-toolui,.__P__-steps) .__P__-bubble{width:100%}@media(max-width:640px){.__P__-bubble-col{max-width:92%}.__P__-toolui:not(.__P__-toolui-collapsible){padding:var(--__P__-space-3);gap:var(--__P__-space-2)}details.__P__-toolui-collapsible>summary{padding:var(--__P__-space-2) var(--__P__-space-3)}details.__P__-toolui-collapsible>.__P__-toolui-section{margin:var(--__P__-space-3)}.__P__-toolui-section,.__P__-toolui-desc{padding:var(--__P__-space-2) var(--__P__-space-3)}}.__P__-bubble-meta{display:flex;align-items:center;gap:8px;margin-top:2px;padding:0 2px;min-height:24px}.__P__-bubble-actions{display:flex;align-items:center;gap:2px}.__P__-bubble-time{font-size:calc(11px * var(--__P__-text-scale));line-height:1;color:var(--__P__-fg-muted);user-select:none}.__P__-feedback{display:flex;align-items:center;gap:2px}.__P__-msg-action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:var(--__P__-radius-sm);background:transparent;color:var(--__P__-fg-muted);cursor:pointer;opacity:.65;transition:opacity var(--__P__-dur-quick) var(--__P__-ease),background var(--__P__-dur-quick) var(--__P__-ease),color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-msg-action:hover{opacity:1;background:var(--__P__-bg-elevated);color:var(--__P__-fg)}.__P__-msg-action:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px;opacity:1}.__P__-msg-action[data-active=true]{opacity:1;color:var(--__P__-accent-fg)}.__P__-msg-action svg{width:15px;height:15px}.__P__-md>*:first-child{margin-top:0}.__P__-md>*:last-child{margin-bottom:0}.__P__-md p{margin:10px 0}.__P__-md h1,.__P__-md h2,.__P__-md h3,.__P__-md h4,.__P__-md h5,.__P__-md h6{margin:18px 0 8px;line-height:1.3;letter-spacing:-.01em;font-weight:700}.__P__-md h1{font-size:1.4em}.__P__-md h2{font-size:1.22em}.__P__-md h3{font-size:1.08em}.__P__-md h4,.__P__-md h5,.__P__-md h6{font-size:1em}.__P__-md>h1:first-child,.__P__-md>h2:first-child,.__P__-md>h3:first-child,.__P__-md>h4:first-child,.__P__-md>h5:first-child,.__P__-md>h6:first-child{margin-top:0}.__P__-md ul,.__P__-md ol{padding-inline-start:1.5em;margin:10px 0}.__P__-md ul{list-style:disc}.__P__-md ol{list-style:decimal}.__P__-md li{margin:6px 0;padding-inline-start:2px}.__P__-md li::marker{color:var(--__P__-fg-muted)}.__P__-md li>p{margin:6px 0}.__P__-md li>ul,.__P__-md li>ol{margin:6px 0}.__P__-md strong,.__P__-md b{font-weight:650;letter-spacing:-.005em}.__P__-md em,.__P__-md i{font-style:italic}.__P__-md :not(pre)>code{font-family:var(--__P__-font-mono);font-size:.86em;padding:1px 6px;border-radius:5px;background:color-mix(in srgb,var(--__P__-accent) 10%,transparent);color:var(--__P__-fg);border:1px solid color-mix(in srgb,var(--__P__-accent) 16%,transparent)}.__P__-md pre{font-family:var(--__P__-font-mono);font-size:calc(12.5px * var(--__P__-text-scale));padding:12px 14px;border-radius:var(--__P__-radius-sm);background:#7f7f7f1f;overflow-x:auto;margin:var(--__P__-space-3) 0;line-height:1.5}.__P__-file-image,.__P__-file-chip{border-radius:var(--__P__-radius-sm);color:inherit;text-decoration:none}.__P__-file-image{display:block;width:fit-content;max-width:min(100%,240px);overflow:hidden}.__P__-file-image img{max-height:240px;object-fit:cover}.__P__-file-chip{display:flex;align-items:center;gap:var(--__P__-space-2);max-width:min(100%,280px);padding:var(--__P__-space-2);border:1px solid color-mix(in srgb,currentColor 18%,transparent);background:color-mix(in srgb,currentColor 5%,transparent);transition:background var(--__P__-dur-base) var(--__P__-ease)}.__P__-file-chip:hover{background:color-mix(in srgb,currentColor 10%,transparent)}.__P__-file-image:focus-visible,.__P__-file-chip:focus-visible{outline:2px solid currentColor;outline-offset:2px}.__P__-file-chip-icon{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:var(--__P__-radius-sm);background:color-mix(in srgb,currentColor 10%,transparent)}.__P__-file-chip-text{display:grid;min-width:0;line-height:1.35}.__P__-file-chip-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.__P__-file-chip-meta{font-size:var(--__P__-text-xs);opacity:.75}.__P__-md a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.__P__-md a:hover{text-decoration-thickness:2px}.__P__-chat-notice{padding:0 var(--__P__-space-3);text-align:center;font-size:var(--__P__-text-xs);line-height:1.5;color:var(--__P__-fg-muted)}.__P__-chat-notice .__P__-md p{margin:0}.__P__-chat-notice .__P__-md a{color:var(--__P__-accent-fg)}.__P__-md blockquote{margin:14px 0;padding:6px 14px;border-inline-start:3px solid color-mix(in srgb,var(--__P__-accent) 50%,transparent);background:color-mix(in srgb,var(--__P__-accent) 5%,transparent);border-start-end-radius:var(--__P__-radius-sm);border-end-end-radius:var(--__P__-radius-sm);color:var(--__P__-fg-muted)}.__P__-md blockquote>:first-child{margin-top:0}.__P__-md blockquote>:last-child{margin-bottom:0}.__P__-md hr{border:0;height:1px;background:color-mix(in srgb,currentColor 18%,transparent);margin:var(--__P__-space-4) 0}.__P__-md table{border-collapse:collapse;margin:var(--__P__-space-3) 0;font-size:.95em;display:block;overflow-x:auto;max-width:100%;font-variant-numeric:tabular-nums}.__P__-md th,.__P__-md td{padding:6px 10px;border-bottom:1px solid color-mix(in srgb,currentColor 12%,transparent);text-align:start}.__P__-md th{font-weight:700;background:color-mix(in srgb,currentColor 6%,transparent)}.__P__-md h1+ul,.__P__-md h1+ol,.__P__-md h2+ul,.__P__-md h2+ol,.__P__-md h3+ul,.__P__-md h3+ol,.__P__-md h4+ul,.__P__-md h4+ol{margin-top:var(--__P__-space-1)}.__P__-loading{display:inline-flex;align-items:center;gap:var(--__P__-space-2);color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm)}.__P__-loading-spinner{width:14px;height:14px;border-radius:999px;border:2px solid currentColor;border-top-color:transparent;animation:__P__-spin .8s linear infinite}@keyframes __P__-spin{to{transform:rotate(1turn)}}.__P__-typing{display:inline-flex;gap:var(--__P__-space-1);padding:var(--__P__-space-1) 0}.__P__-typing span{width:5px;height:5px;border-radius:999px;background:currentColor;opacity:.4;animation:__P__-blink 1.2s var(--__P__-ease) infinite}.__P__-typing span:nth-child(2){animation-delay:.2s}.__P__-typing span:nth-child(3){animation-delay:.4s}@keyframes __P__-blink{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.__P__-steps{min-width:0;font-size:var(--__P__-text-sm)}.__P__-steps-head,.__P__-steps-row-head{display:inline-flex;align-items:center;gap:var(--__P__-space-2);max-width:100%;min-width:0;min-height:28px;padding:0;border:0;background:none;color:var(--__P__-fg-muted);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}.__P__-steps-head:hover,.__P__-steps-row-head:hover{color:var(--__P__-fg)}.__P__-steps-head:focus-visible,.__P__-steps-row-head:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px;border-radius:var(--__P__-radius-sm)}.__P__-steps-icon,.__P__-steps-row-icon{display:inline-flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px}.__P__-steps-icon svg,.__P__-steps-row-icon svg{width:14px;height:14px}.__P__-steps-label,.__P__-steps-row-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-steps-sep{margin-inline:var(--__P__-space-1)}.__P__-steps-name .__P__-steps-count{margin-inline-start:var(--__P__-space-1)}.__P__-steps-count,.__P__-steps-failed,.__P__-steps-denied,.__P__-steps-time{flex:none;font-variant-numeric:tabular-nums}.__P__-steps-failed{color:var(--__P__-danger-text)}.__P__-steps-denied{color:var(--__P__-fg-muted)}.__P__-steps-decision{display:inline-flex;flex:none;align-items:center;gap:var(--__P__-space-1);font-variant-numeric:tabular-nums;color:var(--__P__-success)}.__P__-steps-decision[data-approved=false]{color:var(--__P__-warning)}.__P__-steps-decision svg{width:14px;height:14px}.__P__-steps-row-reason{margin:0;color:var(--__P__-fg-muted)}.__P__-steps-row-error{margin:0;color:var(--__P__-danger-text)}.__P__-steps-chevron{display:inline-flex;flex:none;width:16px;height:16px;transition:transform var(--__P__-dur-quick) var(--__P__-ease)}.__P__-steps-chevron svg{width:16px;height:16px}.__P__-steps-chevron[data-open=true]{transform:rotate(180deg)}.__P__-steps-list{position:relative;display:flex;flex-direction:column;gap:var(--__P__-space-1);margin:var(--__P__-space-1) 0 0;padding:0;list-style:none}.__P__-steps-list:before{content:"";position:absolute;inset-block:0;inset-inline-start:7px;width:2px;border-radius:1px;background:var(--__P__-border)}.__P__-steps-row{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:var(--__P__-space-2);align-items:start}.__P__-steps-row .__P__-steps-row-icon{margin-block:6px;border-radius:999px;background:var(--__P__-bubble-assistant);color:var(--__P__-fg-muted)}.__P__-steps-row[data-status=error] .__P__-steps-row-icon{color:var(--__P__-danger-text)}.__P__-steps-row-main{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.__P__-steps-row-name{color:var(--__P__-fg);font-weight:500}.__P__-steps-row-system,.__P__-steps-row-summary{margin-inline-start:var(--__P__-space-2);color:var(--__P__-fg-muted)}.__P__-steps-row-body{display:flex;flex-direction:column;gap:var(--__P__-space-2);width:100%;margin:var(--__P__-space-1) 0 var(--__P__-space-2)}.__P__-steps-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-out}.__P__-steps-body[data-open=true]{grid-template-rows:1fr}.__P__-steps-body-inner{min-height:0;overflow:hidden}.__P__-steps-live{min-width:0;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(90deg,var(--__P__-fg-muted) 0%,var(--__P__-fg) 50%,var(--__P__-fg-muted) 100%) 0 0 / 200% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:__P__-steps-shimmer 2s linear infinite}@keyframes __P__-steps-shimmer{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.__P__-steps-body,.__P__-steps-chevron{transition:none}.__P__-steps-live{background:none;color:var(--__P__-fg-muted);animation:none}}.__P__-steps-thought,.__P__-steps-stopped-label{color:var(--__P__-fg-muted)}.__P__-steps-thought-label,.__P__-steps-stopped-label{display:inline-flex;align-items:center;min-height:28px}.__P__-steps-thought-text{width:100%;margin:var(--__P__-space-1) 0 var(--__P__-space-2)}.__P__-reasoning-body{color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm)}.__P__-reasoning-body>:first-child{margin-top:0}.__P__-reasoning-body>:last-child{margin-bottom:0}.__P__-source{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:var(--__P__-space-1) var(--__P__-space-2);border-radius:999px;background:var(--__P__-bg-elevated);border:1px solid var(--__P__-border);color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs);text-decoration:none}a.__P__-source:hover{color:var(--__P__-fg);border-color:var(--__P__-accent)}.__P__-source-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-composer{border-top:1px solid var(--__P__-border);padding:10px 12px;background:var(--__P__-bg);display:flex;flex-direction:column;gap:var(--__P__-space-2)}.__P__-composer>*{width:100%;max-width:var(--__P__-conversation-max, 768px);margin-inline:auto}.__P__-compaction-status{width:100%;padding:10px 14px;justify-content:center;font-size:var(--__P__-text-xs)}.__P__-message-queue{display:flex;max-height:112px;flex-direction:column;gap:var(--__P__-space-1);overflow-y:auto}.__P__-attachment-chip.__P__-queued-message{width:100%;max-width:none}.__P__-queued-text{min-width:0;flex:1}.__P__-composer-row{--__P__-composer-line-height: 40px;display:flex;align-items:flex-end;gap:6px}.__P__-textarea{flex:1;--__P__-textarea-base-height: 40px;height:var(--__P__-textarea-base-height);max-height:160px;padding:10px 12px;border-radius:var(--__P__-radius);background:var(--__P__-bg-elevated);border:1px solid transparent;font-size:calc(14px * var(--__P__-text-scale));line-height:1.4;transition:height var(--__P__-dur-quick) var(--__P__-ease),border-color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-textarea:focus-visible{outline:none;border-color:var(--__P__-focus)}.__P__-textarea:placeholder-shown{white-space:nowrap;overflow:hidden}.__P__-textarea::placeholder{text-overflow:ellipsis}@media(pointer:coarse){.__P__-textarea{--__P__-textarea-base-height: 44px}.__P__-composer-row{--__P__-composer-line-height: 44px}.__P__-composer-row>.__P__-send{margin-block-end:2px}}.__P__-send{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;transition:opacity var(--__P__-dur-quick) var(--__P__-ease),transform var(--__P__-dur-quick) var(--__P__-ease),background var(--__P__-dur-quick) var(--__P__-ease)}.__P__-send[data-shape=circle]{border-radius:999px}.__P__-send[data-shape=square]{border-radius:var(--__P__-radius-sm)}.__P__-send[data-shape=pill]{width:auto;padding:0 18px;border-radius:999px}.__P__-send[data-variant=filled]{background:var(--__P__-accent);color:var(--__P__-accent-text)}.__P__-send[data-variant=outline]{background:transparent;color:var(--__P__-accent-fg);border-color:var(--__P__-accent)}.__P__-send[data-variant=outline]:not(:disabled):hover{background:color-mix(in srgb,var(--__P__-accent) 10%,transparent)}.__P__-send[data-variant=ghost]{background:transparent;color:var(--__P__-accent-fg)}.__P__-send[data-variant=ghost]:not(:disabled):hover{background:color-mix(in srgb,var(--__P__-accent) 8%,transparent)}.__P__-send:disabled{opacity:.4;cursor:not-allowed}.__P__-send:not(:disabled):hover{transform:translateY(-1px)}.__P__-send:not(:disabled):active{transform:translateY(0)}.__P__-send:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-send svg{width:18px;height:18px}.__P__-composer-actions{display:flex;gap:var(--__P__-space-1);flex-wrap:wrap;margin-block-end:calc((var(--__P__-composer-line-height) - 32px) / 2)}.__P__-attachments{display:flex;flex-wrap:wrap;gap:6px}.__P__-attachment-chip{position:relative;display:inline-flex;align-items:center;gap:8px;padding:5px;border-radius:var(--__P__-radius-md);background:var(--__P__-bg-elevated);border:1px solid var(--__P__-border);font-size:var(--__P__-text-xs);max-width:220px;overflow:hidden}.__P__-attachment-chip[data-upload=error]{border-color:color-mix(in oklab,var(--__P__-danger) 45%,transparent);background:color-mix(in oklab,var(--__P__-danger) 6%,var(--__P__-bg-elevated))}.__P__-attachment-thumb{flex-shrink:0;width:32px;height:32px;border-radius:var(--__P__-radius-sm);object-fit:cover;background:var(--__P__-border);display:inline-flex;align-items:center;justify-content:center;color:var(--__P__-fg-muted)}.__P__-attachment-text{display:flex;flex-direction:column;min-width:0;line-height:1.3}.__P__-attachment-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--__P__-fg);font-weight:500}.__P__-attachment-meta{display:inline-flex;align-items:center;gap:4px;color:var(--__P__-fg-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.__P__-attachment-meta svg{flex:none;width:12px;height:12px}.__P__-attachment-chip[data-upload=error] .__P__-attachment-meta{color:var(--__P__-danger)}.__P__-attachment-chip[data-upload=done] .__P__-attachment-meta svg{color:var(--__P__-success)}.__P__-attachment-progress{position:absolute;inset-inline:0;bottom:0;height:2px;background:color-mix(in oklab,var(--__P__-accent) 15%,transparent)}.__P__-attachment-progress>span{display:block;height:100%;background:var(--__P__-accent);transition:width var(--__P__-dur-quick) var(--__P__-ease)}.__P__-attachment-remove{flex-shrink:0;width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--__P__-fg-muted)}.__P__-attachment-remove svg{width:14px;height:14px}.__P__-attachment-remove:hover{background:var(--__P__-border);color:var(--__P__-fg)}.__P__-dropzone{position:absolute;inset:8px;border:2px dashed var(--__P__-accent);border-radius:var(--__P__-radius);background:color-mix(in srgb,var(--__P__-accent) 8%,color-mix(in srgb,var(--__P__-bg) 92%,transparent));display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;text-align:center;padding:16px;font-weight:600;color:var(--__P__-accent-fg);pointer-events:none;z-index:10;animation:__P__-fade-in var(--__P__-dur-quick) var(--__P__-ease)}.__P__-dropzone-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:color-mix(in srgb,var(--__P__-accent) 14%,transparent)}.__P__-dropzone-icon svg{width:22px;height:22px}.__P__-dropzone[data-state=reject]{border-color:var(--__P__-danger);background:color-mix(in srgb,var(--__P__-danger) 8%,color-mix(in srgb,var(--__P__-bg) 92%,transparent));color:var(--__P__-danger)}.__P__-dropzone[data-state=reject] .__P__-dropzone-icon{background:color-mix(in srgb,var(--__P__-danger) 14%,transparent)}@keyframes __P__-fade-in{0%{opacity:0}to{opacity:1}}.__P__-error{display:flex;align-items:center;gap:var(--__P__-space-2);padding:8px 12px;border-radius:var(--__P__-radius-sm);background:color-mix(in oklab,var(--__P__-danger) 8%,var(--__P__-bg-elevated));border:1px solid color-mix(in oklab,var(--__P__-danger) 20%,transparent);color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm)}.__P__-error-icon{display:inline-flex;flex:none;width:16px;height:16px;color:var(--__P__-danger-text)}.__P__-error-icon svg{width:16px;height:16px}.__P__-error-text{min-width:0}.__P__-error-retry{flex:none;margin-inline-start:auto;min-height:28px;border:0;background:none;padding:0;color:var(--__P__-accent-fg);font:inherit;font-size:var(--__P__-text-sm);font-weight:600;text-decoration:underline;white-space:nowrap;cursor:pointer}.__P__-error-retry:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px;border-radius:var(--__P__-radius-sm)}.__P__-history{flex:1;overflow-y:auto;padding:var(--__P__-space-2) var(--__P__-space-1) var(--__P__-space-3)}.__P__-history-footer{flex:none;padding:var(--__P__-space-2) var(--__P__-space-3) var(--__P__-space-3);border-top:1px solid var(--__P__-border);background:var(--__P__-surface)}.__P__-history-new{width:100%;display:flex;align-items:center;justify-content:center;gap:var(--__P__-space-2);padding:var(--__P__-space-2) var(--__P__-space-3);border:none;border-radius:var(--__P__-radius-md);background:var(--__P__-accent);color:var(--__P__-on-accent);cursor:pointer;font-size:var(--__P__-text-sm);font-weight:600;transition:filter var(--__P__-dur-quick) var(--__P__-ease-out),transform var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-history-new svg{width:16px;height:16px}.__P__-history-new:hover{filter:brightness(1.08)}.__P__-history-new:active{transform:translateY(1px)}.__P__-history-new:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-history-empty{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 16px;color:var(--__P__-fg-muted);font-size:calc(14px * var(--__P__-text-scale));text-align:center}.__P__-history-group{display:flex;flex-direction:column;padding:0 var(--__P__-space-3)}.__P__-history-heading{font-size:var(--__P__-text-xs);font-weight:600;color:var(--__P__-fg-muted);padding:14px 4px 8px;text-transform:uppercase;letter-spacing:.04em}.__P__-history-card{display:flex;flex-direction:column;background:var(--__P__-surface);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-lg, 14px);overflow:hidden}.__P__-history-card>[role=listitem]{display:flex;flex-direction:column}.__P__-history-item{all:unset;display:flex;align-items:center;gap:var(--__P__-space-3);padding:12px var(--__P__-space-3);cursor:pointer;transition:background var(--__P__-dur-base) var(--__P__-ease)}.__P__-history-card>*+*{border-top:1px solid var(--__P__-border)}.__P__-history-item:hover{background:var(--__P__-bg-elevated)}.__P__-history-item:focus-visible{background:var(--__P__-bg-elevated);outline:2px solid var(--__P__-focus);outline-offset:-2px}.__P__-history-avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:var(--__P__-radius-md);background:color-mix(in oklab,var(--__P__-accent) 12%,transparent);color:var(--__P__-accent-fg)}.__P__-history-avatar svg{width:18px;height:18px}.__P__-history-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.__P__-history-row{display:flex;align-items:center;justify-content:space-between;gap:var(--__P__-space-2)}.__P__-history-title{flex:1;min-width:0;font-size:calc(14px * var(--__P__-text-scale));font-weight:500;color:var(--__P__-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-history-time{flex:none;font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted)}.__P__-history-preview{flex:1;min-width:0;font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-history-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--__P__-accent)}.__P__-history-item[data-unread=true] .__P__-history-title{font-weight:600}.__P__-history-item-skeleton{cursor:default;pointer-events:none}.__P__-skeleton{display:block;border-radius:4px;background:linear-gradient(90deg,color-mix(in oklab,var(--__P__-fg) 9%,transparent) 30%,color-mix(in oklab,var(--__P__-fg) 17%,transparent),color-mix(in oklab,var(--__P__-fg) 9%,transparent) 70%);background-size:200% 100%;animation:__P__-skeleton-shimmer 1.8s ease-in-out infinite}.__P__-history-avatar.__P__-skeleton{border-radius:var(--__P__-radius-md)}.__P__-skeleton-heading{width:52px;height:8px}.__P__-skeleton-title{width:55%;height:12px}.__P__-skeleton-time{width:34px;height:10px}.__P__-skeleton-preview{width:80%;height:10px}@keyframes __P__-skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.__P__-skeleton{animation:none}}.__P__-list-loading{margin:auto;padding:var(--__P__-space-6) var(--__P__-space-4);color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm);text-align:center}.__P__-transcript-layer{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:var(--__P__-space-4);border-radius:inherit;overflow:hidden}.__P__-transcript-backdrop{position:absolute;inset:0;background:var(--__P__-backdrop);animation:__P__-transcript-fade var(--__P__-dur-base) var(--__P__-ease-out)}.__P__-transcript-sheet{position:relative;display:flex;flex-direction:column;gap:var(--__P__-space-3);box-sizing:border-box;width:100%;max-width:360px;padding:var(--__P__-space-4);border-radius:var(--__P__-radius-lg);background:var(--__P__-bg);color:var(--__P__-fg);box-shadow:var(--__P__-shadow-panel),inset 0 0 0 1px var(--__P__-border);animation:__P__-transcript-in var(--__P__-dur-base) var(--__P__-ease-out)}.__P__-transcript-sheet-head{display:flex;align-items:center;gap:var(--__P__-space-2);margin-block:-4px;margin-inline-end:-6px}.__P__-transcript-sheet-icon{display:inline-flex;align-items:center;justify-content:center;inline-size:28px;block-size:28px;flex-shrink:0;border-radius:var(--__P__-radius-sm);background:color-mix(in oklab,var(--__P__-accent) 12%,transparent);color:var(--__P__-accent-fg)}.__P__-transcript-sheet-icon svg{inline-size:16px;block-size:16px}.__P__-transcript-sheet-title{flex:1;min-width:0;margin:0;font-size:var(--__P__-text-base);font-weight:600;text-wrap:balance}.__P__-transcript-sheet-form{display:flex;flex-direction:column;gap:var(--__P__-space-3)}.__P__-transcript-sheet-text{margin:0;font-size:var(--__P__-text-sm);line-height:1.45;color:var(--__P__-fg-muted);overflow-wrap:anywhere;text-wrap:pretty}.__P__-transcript-sheet-sent{display:flex;align-items:flex-start;gap:var(--__P__-space-2);color:var(--__P__-fg)}.__P__-transcript-sheet-sent svg{flex-shrink:0;inline-size:18px;block-size:18px;color:var(--__P__-success)}.__P__-transcript-sheet-action{width:100%;min-height:44px;text-align:center;transition:filter var(--__P__-dur-quick) var(--__P__-ease-out),scale var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-transcript-sheet-action:active:not(:disabled){scale:.96}@keyframes __P__-transcript-fade{0%{opacity:0}}@keyframes __P__-transcript-in{0%{opacity:0;translate:0 8px}}@media(max-width:640px){.__P__-transcript-layer{align-items:flex-end;padding:0}.__P__-transcript-sheet{max-width:none;padding-bottom:calc(var(--__P__-space-4) + env(safe-area-inset-bottom,0px));border-end-start-radius:0;border-end-end-radius:0;animation-name:__P__-transcript-up}}@keyframes __P__-transcript-up{0%{translate:0 100%}}@media(prefers-reduced-motion:reduce){.__P__-transcript-backdrop,.__P__-transcript-sheet{animation:none}}.__P__-operator-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:10px;box-sizing:border-box;width:calc(100% - 2 * var(--__P__-space-3));max-width:var(--__P__-conversation-max, 768px);margin:0 auto var(--__P__-space-2);padding:10px 12px;border-radius:var(--__P__-radius-lg);background:var(--__P__-bg-elevated);box-shadow:inset 0 0 0 1px var(--__P__-border);color:var(--__P__-fg);font-size:var(--__P__-text-sm);line-height:1.45;text-align:start}.__P__-operator-label{text-wrap:pretty}.__P__-operator-pulse{width:8px;height:8px;margin-block-start:calc((1.45em - 8px)/2);border-radius:50%;background:var(--__P__-accent)}.__P__-operator-banner[data-mode=awaiting-operator] .__P__-operator-pulse{animation:__P__-operator-pulse 1.4s var(--__P__-ease-out) infinite}.__P__-operator-banner[data-available=false] .__P__-operator-pulse{background:var(--__P__-warning);animation:none}.__P__-operator-banner[data-mode=operator] .__P__-operator-pulse{background:var(--__P__-success)}.__P__-operator-dismiss{width:28px;height:28px;margin-block:-4px;margin-inline-end:-6px}.__P__-operator-dismiss:before{inset:-8px}.__P__-operator-dismiss svg{width:16px;height:16px}@media(prefers-reduced-motion:reduce){.__P__-operator-banner[data-mode=awaiting-operator] .__P__-operator-pulse{animation:none}}@keyframes __P__-operator-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}.__P__-login-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;column-gap:10px;padding:6px 8px;padding-inline-start:14px;border-bottom:1px solid var(--__P__-border);background:var(--__P__-bg-elevated);color:var(--__P__-fg);font-size:var(--__P__-text-sm);line-height:1.4}.__P__-login-bar-icon,.__P__-login-gate-icon{display:inline-flex;color:var(--__P__-fg-muted)}.__P__-login-bar-icon svg{width:16px;height:16px}.__P__-login-bar-text{text-wrap:pretty}.__P__-login-bar[data-kind=user]{grid-template-columns:auto minmax(0,1fr);padding-inline-end:14px;color:var(--__P__-fg-muted)}.__P__-login-bar[data-kind=user] .__P__-login-bar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-login-bar-action{appearance:none;border:0;cursor:pointer;padding:6px 12px;border-radius:999px;background:transparent;color:var(--__P__-accent-fg);font:inherit;font-weight:600;white-space:nowrap;transition:background var(--__P__-dur-quick) var(--__P__-ease)}.__P__-login-bar-action:hover{background:var(--__P__-hover)}.__P__-login-bar-action:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:1px}.__P__-login-bar-hide{width:28px;height:28px}.__P__-login-bar-hide:before{inset:-8px}.__P__-login-bar-hide svg{width:16px;height:16px}.__P__-login-gate{display:flex;flex-direction:column;align-items:center;gap:10px;box-sizing:border-box;width:calc(100% - 2 * var(--__P__-space-3));max-width:var(--__P__-conversation-max, 768px);margin:0 auto var(--__P__-space-3);padding:18px 16px;border-radius:var(--__P__-radius-lg);background:var(--__P__-bg-elevated);box-shadow:inset 0 0 0 1px var(--__P__-border);text-align:center}.__P__-login-gate[data-alone]{flex:1;justify-content:center;margin-block-start:var(--__P__-space-3);background:transparent;box-shadow:none}.__P__-login-gate-icon{align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--__P__-bg);box-shadow:inset 0 0 0 1px var(--__P__-border)}.__P__-login-gate[data-alone] .__P__-login-gate-icon{width:48px;height:48px;background:var(--__P__-bg-elevated)}.__P__-login-gate-icon svg{width:20px;height:20px}.__P__-form-actions.__P__-login-gate-actions{justify-content:center;width:100%;max-width:320px;margin-top:var(--__P__-space-1)}.__P__-login-gate-title{margin:0;color:var(--__P__-fg);font-size:var(--__P__-text-md);font-weight:600;line-height:1.35;text-wrap:balance}.__P__-composer-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 16px;margin:0 var(--__P__-space-3);border-top:1px solid var(--__P__-border);text-align:center;font-size:calc(11px * var(--__P__-text-scale));line-height:1.4;color:var(--__P__-fg-muted)}.__P__-disclaimer{max-width:320px;margin:0 auto;opacity:.9;letter-spacing:.01em}.__P__-poweredby{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:inherit;text-decoration:none;opacity:.7;transition:opacity var(--__P__-dur-base) var(--__P__-ease);font-size:calc(11px * var(--__P__-text-scale));letter-spacing:.02em}.__P__-poweredby:hover{opacity:1}.__P__-poweredby-logo{height:12px;width:auto;display:inline-block;vertical-align:middle}.__P__-poweredby-bar{flex:none;display:flex;align-items:center;justify-content:center;padding:6px 16px;border-top:1px solid var(--__P__-border);background:var(--__P__-bg-elevated)}.__P__-menu-wrap{position:relative;display:inline-flex}.__P__-menu{position:absolute;top:100%;inset-inline-end:0;margin-top:6px;min-width:200px;padding:6px;background:var(--__P__-bg);color:var(--__P__-fg);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-md);box-shadow:var(--__P__-shadow-panel);z-index:10;display:flex;flex-direction:column;gap:2px;animation:__P__-menu-in var(--__P__-dur-base) var(--__P__-ease)}@media(prefers-reduced-motion:reduce){.__P__-menu{animation:none}}@keyframes __P__-menu-in{0%{opacity:0;transform:translateY(-4px) scale(.98);transform-origin:top right}to{opacity:1;transform:none}}.__P__-menu-item{all:unset;display:flex;align-items:center;gap:10px;padding:8px 10px;font-size:var(--__P__-text-sm);color:var(--__P__-fg);border-radius:var(--__P__-radius-sm);cursor:pointer;user-select:none}.__P__-menu-item:hover{background:var(--__P__-bg-elevated)}.__P__-menu-item:focus-visible{background:var(--__P__-bg-elevated);outline:2px solid var(--__P__-focus);outline-offset:-2px}.__P__-menu-item[disabled]{opacity:.45;cursor:not-allowed}.__P__-menu-icon{display:inline-flex;width:16px;height:16px;color:var(--__P__-fg-muted)}.__P__-menu-icon svg{width:16px;height:16px}.__P__-menu-label{flex:1}.__P__-menu-check{display:inline-flex;color:var(--__P__-accent-fg)}.__P__-menu-check svg{width:14px;height:14px}.__P__-menu-item-segmented{cursor:default}.__P__-menu-item-segmented:hover{background:transparent}.__P__-segmented{display:inline-flex;gap:2px;padding:2px;background:var(--__P__-bg-elevated);border-radius:var(--__P__-radius-sm)}.__P__-segment{all:unset;min-width:26px;padding:3px 8px;font-size:var(--__P__-text-xs);font-weight:600;letter-spacing:.02em;text-align:center;color:var(--__P__-fg-muted);border-radius:calc(var(--__P__-radius-sm) - 2px);cursor:pointer;transition:color .12s ease,background .12s ease}.__P__-segment:hover{color:var(--__P__-fg)}.__P__-segment[data-on=true]{background:var(--__P__-bg);color:var(--__P__-accent-fg);box-shadow:var(--__P__-shadow-card)}.__P__-segment:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:-2px}.__P__-resize-grip{position:absolute;width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:var(--__P__-fg-muted);opacity:.45;transition:opacity var(--__P__-dur-base) var(--__P__-ease);z-index:2;touch-action:none;user-select:none}.__P__-resize-grip:hover,.__P__-resize-grip:focus-visible,.__P__-panel[data-resizing] .__P__-resize-grip{opacity:1}.__P__-resize-grip:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:-2px;border-radius:4px}.__P__-resize-grip svg{width:10px;height:10px}.__P__-resize-grip--bottom-left{bottom:2px;left:2px;cursor:nesw-resize;transform:scaleX(-1)}.__P__-resize-grip--bottom-right{bottom:2px;right:2px;cursor:nwse-resize}.__P__-resize-grip--top-left{top:2px;left:2px;cursor:nwse-resize;transform:rotate(180deg)}.__P__-resize-grip--top-right{top:2px;right:2px;cursor:nesw-resize;transform:scaleY(-1)}.__P__-resize-grip--edge{top:0;bottom:0;left:0;width:8px;height:auto;opacity:1;cursor:ew-resize}.__P__-resize-grip--edge:focus-visible{outline:none}.__P__-resize-grip--edge:after{content:"";position:absolute;top:var(--__P__-radius, 12px);bottom:var(--__P__-radius, 12px);left:0;width:2px;border-radius:1px;background:var(--__P__-focus);opacity:0;transition:opacity var(--__P__-dur-base) var(--__P__-ease)}:host([data-position$="-left"]) .__P__-resize-grip--edge,:host([data-position$="-left"]) .__P__-resize-grip--edge:after{left:auto;right:0}.__P__-resize-grip--edge:hover:after{opacity:1;transition-delay:.15s}.__P__-resize-grip--edge:focus-visible:after,.__P__-panel[data-resizing] .__P__-resize-grip--edge:after{opacity:1}@media(pointer:coarse){.__P__-resize-grip{width:24px;height:24px}.__P__-resize-grip--edge{width:14px;height:auto}}:host(:not([data-mode="open"]):not([data-mode="expanded"]):not([data-mode="drawer"])) .__P__-resize-grip{display:none}@media(max-width:640px){.__P__-resize-grip{display:none}}.__P__-messenger{display:flex;flex-direction:column;overflow:hidden}.__P__-messenger-body,.__P__-messenger-pane{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.__P__-messenger-pane[hidden]{display:none}@keyframes __P__-view-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.__P__-module{display:flex;flex-direction:column;height:100%;min-height:0}@media(prefers-reduced-motion:no-preference){.__P__-module,.__P__-history{animation:__P__-view-in .18s var(--__P__-ease-out)}}.__P__-module-scroll{flex:1;min-height:0;overflow-y:auto;padding:var(--__P__-space-3);display:flex;flex-direction:column;gap:var(--__P__-space-3)}.__P__-home{container-type:inline-size;background:radial-gradient(125% 65% at 88% 0%,color-mix(in srgb,#fff 16%,transparent),transparent 55%),linear-gradient(180deg,var(--__P__-accent) 0%,var(--__P__-accent) 22%,color-mix(in srgb,var(--__P__-accent) 28%,var(--__P__-surface)) 44%,var(--__P__-surface) 70%);border-radius:var(--__P__-radius-lg) var(--__P__-radius-lg) 0 0}.__P__-home-scroll{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;background:transparent}.__P__-home-cards{display:flex;flex-direction:column;gap:var(--__P__-space-3);padding:4px 14px 16px}.__P__-module-pad{padding:var(--__P__-space-3) var(--__P__-space-3) 0}.__P__-module-empty{display:flex;flex-direction:column;align-items:center;gap:var(--__P__-space-3);padding:var(--__P__-space-8) var(--__P__-space-4);text-align:center;color:var(--__P__-fg-muted);font-size:var(--__P__-text-base)}.__P__-module-retry{padding:var(--__P__-space-2) var(--__P__-space-4);border:1px solid var(--__P__-border-strong);border-radius:var(--__P__-radius-sm);color:var(--__P__-fg);font-weight:600;cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease-out),border-color var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-module-retry:hover{background:var(--__P__-hover);border-color:var(--__P__-accent)}.__P__-module-retry:active{background:var(--__P__-border)}.__P__-module-retry:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-help-list{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--__P__-space-3)}.__P__-help-group{display:flex;flex-direction:column}.__P__-help-section-title{position:sticky;top:0;z-index:1;margin:0;padding:var(--__P__-space-3) var(--__P__-space-5) var(--__P__-space-2);font-size:var(--__P__-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--__P__-fg-muted);background:var(--__P__-bg)}.__P__-help-card{margin:0 var(--__P__-space-3) var(--__P__-space-3);background:var(--__P__-surface);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius);overflow:hidden}.__P__-help-card .__P__-list-row{border-bottom:0;border-radius:0}.__P__-help-card .__P__-list-row+.__P__-list-row{border-top:1px solid var(--__P__-border)}.__P__-help-more{justify-content:center;color:var(--__P__-accent-fg);font-weight:600}.__P__-tabbar{display:flex;border-top:1px solid var(--__P__-border);background:var(--__P__-bg-elevated);flex-shrink:0}.__P__-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--__P__-space-1);min-height:48px;padding:var(--__P__-space-2) var(--__P__-space-1);color:var(--__P__-fg-muted);font-size:var(--__P__-text-xs);font-weight:600;transition:color var(--__P__-dur-quick) var(--__P__-ease-out)}@media(hover:hover){.__P__-tab:hover{background:var(--__P__-hover)}}.__P__-tab[aria-selected=true]{color:var(--__P__-accent-fg)}.__P__-tab:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:-2px}.__P__-tab:active{background:var(--__P__-hover)}.__P__-tab-icon{position:relative;display:inline-flex}.__P__-tab-icon svg{width:22px;height:22px}.__P__-tab-badge{position:absolute;top:-2px;left:calc(50% + 6px);width:8px;height:8px;border-radius:50%;background:var(--__P__-accent);box-shadow:0 0 0 2px var(--__P__-bg-elevated)}.__P__-home-hero{flex-shrink:0;padding:var(--__P__-space-5) var(--__P__-space-5) var(--__P__-space-3);color:var(--__P__-on-accent);--__P__-focus: var(--__P__-on-accent)}.__P__-home-hero-top{display:flex;align-items:center;justify-content:space-between;gap:var(--__P__-space-3);min-height:32px}.__P__-home-brand{font-size:clamp(calc(12px * var(--__P__-text-scale)),calc(3.2cqi * var(--__P__-text-scale)),calc(14px * var(--__P__-text-scale)));font-weight:600;letter-spacing:.01em;color:color-mix(in srgb,#fff 82%,transparent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.__P__-home-brand-spacer{flex:1}.__P__-home-hero-actions{display:flex;align-items:center;gap:var(--__P__-space-2);flex-shrink:0}.__P__-home-hero-actions .__P__-icon-btn{color:#fff}.__P__-home-hero-actions .__P__-icon-btn:hover{background:color-mix(in srgb,#fff 18%,transparent);color:#fff}.__P__-home-hero-actions .__P__-icon-btn:active{background:color-mix(in srgb,#fff 26%,transparent)}.__P__-home-greeting{margin:28px 0 0;font-family:var(--__P__-font-display);font-size:clamp(calc(19px * var(--__P__-text-scale)),calc(5.5cqi * var(--__P__-text-scale)),var(--__P__-text-2xl));font-weight:800;line-height:1.18;letter-spacing:-.01em;overflow-wrap:anywhere}.__P__-home-lead{margin:10px 0 0;font-family:var(--__P__-font-display);font-size:clamp(calc(15px * var(--__P__-text-scale)),calc(4.2cqi * var(--__P__-text-scale)),var(--__P__-text-xl));font-weight:600;line-height:1.25;letter-spacing:-.005em;color:color-mix(in srgb,var(--__P__-on-accent) 78%,transparent);overflow-wrap:anywhere}.__P__-home-avatars{display:flex}.__P__-home-avatar{width:30px;height:30px;border-radius:var(--__P__-radius-md);overflow:hidden;margin-inline-start:-10px;border:2px solid color-mix(in srgb,#fff 92%,transparent);box-shadow:0 1px 3px #0000002e;background:var(--__P__-surface);display:inline-flex;align-items:center;justify-content:center;font-size:var(--__P__-text-xs);font-weight:700;color:var(--__P__-fg)}.__P__-home-avatar:first-child{margin-inline-start:0}.__P__-home-avatar img{width:100%;height:100%;object-fit:cover}.__P__-home-content{background:var(--__P__-surface);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius);box-shadow:var(--__P__-shadow-card);overflow:hidden}.__P__-home-content-title{padding:var(--__P__-space-4) var(--__P__-space-4) var(--__P__-space-3);font-size:var(--__P__-text-sm);font-weight:700}.__P__-home-content-list{display:flex;flex-direction:column;padding:0 var(--__P__-space-2) var(--__P__-space-2)}.__P__-home-content-list .__P__-list-row+.__P__-list-row{border-top:1px solid var(--__P__-border)}.__P__-home-card{display:block;width:100%;text-align:start;background:var(--__P__-surface);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius);padding:var(--__P__-space-4);box-shadow:var(--__P__-shadow-card)}.__P__-home-card[data-interactive=true]{cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease-out),transform var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-home-card[data-interactive=true]:hover{background:var(--__P__-bg-elevated)}.__P__-home-card[data-interactive=true]:active{transform:translateY(1px)}.__P__-home-card[data-interactive=true]:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-home-recent-row{display:flex;align-items:center;gap:var(--__P__-space-3)}.__P__-home-recent-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border-radius:var(--__P__-radius-md);background:color-mix(in oklch,var(--__P__-accent) 14%,transparent);color:var(--__P__-accent-fg)}.__P__-home-recent-avatar svg{width:20px;height:20px}.__P__-home-recent-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;line-height:1.45}.__P__-home-recent-title{font-weight:600;font-size:calc(14px * var(--__P__-text-scale))}.__P__-home-recent-preview{color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.__P__-home-recent-dot{width:8px;height:8px;border-radius:999px;background:var(--__P__-accent);flex-shrink:0}.__P__-home-recent-row[data-unread=true] .__P__-home-recent-title{font-weight:700}.__P__-home-status{display:flex;align-items:center;gap:var(--__P__-space-3)}.__P__-home-status-icon svg{width:22px;height:22px;color:var(--__P__-success)}.__P__-home-status[data-level=degraded] .__P__-home-status-icon svg{color:var(--__P__-warning)}.__P__-home-status[data-level=down] .__P__-home-status-icon svg{color:var(--__P__-danger)}.__P__-home-status-text{font-weight:600;font-size:calc(14px * var(--__P__-text-scale))}.__P__-home-search{display:flex;align-items:center;gap:var(--__P__-space-2);width:100%;padding:var(--__P__-space-3) var(--__P__-space-4);border-radius:var(--__P__-radius);border:1px solid var(--__P__-border);background:var(--__P__-surface);text-align:start}.__P__-home-search[data-input=true]{background:var(--__P__-bg-elevated)}.__P__-home-search:hover{border-color:var(--__P__-border-strong)}.__P__-home-search:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-home-search[data-input=true]:focus-within{outline:none;border-color:var(--__P__-focus)}.__P__-home-search-text{flex:1;color:var(--__P__-fg-muted);font-size:calc(14px * var(--__P__-text-scale))}.__P__-home-search-input{flex:1;border:0;background:transparent;font-size:calc(14px * var(--__P__-text-scale));color:var(--__P__-fg);outline:none}.__P__-home-search-input:focus-visible{outline:none}.__P__-home-search-icon svg{width:18px;height:18px;color:var(--__P__-accent-fg)}.__P__-home-ask{padding-block:6px;padding-inline-end:6px}.__P__-home-ask .__P__-send{width:32px;height:32px;flex-shrink:0}.__P__-home-ask .__P__-send[data-shape=pill]{width:auto;padding:0 14px}.__P__-home-ask .__P__-send svg{width:16px;height:16px}.__P__-list-row{display:flex;align-items:center;gap:var(--__P__-space-3);width:100%;min-height:44px;text-align:start;padding:var(--__P__-space-3) var(--__P__-space-2);border-radius:var(--__P__-radius-sm)}.__P__-list-row:hover{background:var(--__P__-hover)}.__P__-list-row:active{background:var(--__P__-border)}.__P__-list-row:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:-2px}.__P__-list-row-body{display:flex;flex-direction:column;min-width:0;flex:1}.__P__-list-row-title{font-weight:600;font-size:var(--__P__-text-md);line-height:1.35}.__P__-list-row-sub{color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm);margin-top:var(--__P__-space-1);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.__P__-list-row-chevron svg{width:18px;height:18px;color:var(--__P__-accent-fg);flex-shrink:0}.__P__-back-header{display:flex;align-items:center;gap:var(--__P__-space-2);padding:10px 12px;border-bottom:1px solid var(--__P__-border);flex-shrink:0}.__P__-back-title{flex:1;text-align:center;font-size:var(--__P__-text-md);font-weight:700;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-back-spacer{width:32px;height:1px}.__P__-history>*,.__P__-home-scroll>*,.__P__-module-scroll>*,.__P__-help-list>*,.__P__-history-footer>*,.__P__-module-pad{width:100%;max-width:var(--__P__-conversation-max, 768px);margin-inline:auto}.__P__-header,.__P__-back-header{padding-inline:max(12px,calc((100% - var(--__P__-conversation-max, 768px)) / 2))}.__P__-tabbar{padding-inline:max(0px,calc((100% - var(--__P__-conversation-max, 768px)) / 2))}.__P__-content{display:flex;flex-direction:column;gap:14px;width:100%;max-width:68ch;margin:0 auto}.__P__-content-hero{width:100%;border-radius:var(--__P__-radius)}.__P__-content-subtitle{color:var(--__P__-fg-muted);margin:0}.__P__-content-vote{display:flex;align-items:center;flex-wrap:wrap;gap:var(--__P__-space-2);padding-top:var(--__P__-space-3);border-top:1px solid var(--__P__-border)}.__P__-news-list{display:flex;flex-direction:column;gap:var(--__P__-space-3)}.__P__-news-card{display:block;width:100%;text-align:start;line-height:1.45;border:1px solid var(--__P__-border);border-radius:var(--__P__-radius);overflow:hidden;background:var(--__P__-surface);transition:background var(--__P__-dur-quick) var(--__P__-ease-out),transform var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-news-card:hover{background:var(--__P__-bg-elevated)}.__P__-news-card:active{transform:translateY(1px)}.__P__-news-card:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-news-hero{width:100%;display:block}.__P__-news-body{display:flex;flex-direction:column;gap:6px;padding:14px 16px}.__P__-news-title{font-weight:700;font-size:var(--__P__-text-md)}.__P__-news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--__P__-fg-muted);font-size:var(--__P__-text-sm)}.__P__-news-tag{padding:1px 8px;border-radius:6px;background:var(--__P__-hover);color:var(--__P__-fg);font-size:calc(12px * var(--__P__-text-scale));white-space:nowrap}.__P__-news-more{display:flex;align-items:center;justify-content:center;gap:var(--__P__-space-2);width:100%;min-height:44px;border:1px solid var(--__P__-border);border-radius:var(--__P__-radius);background:var(--__P__-surface);color:var(--__P__-accent-fg);font-weight:600}.__P__-news-more:hover{background:var(--__P__-bg-elevated)}.__P__-news-more:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px}.__P__-news-summary{color:var(--__P__-fg-muted);font-size:calc(14px * var(--__P__-text-scale));display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.__P__-panel-notice{display:flex;align-items:center;justify-content:center;position:relative;padding:var(--__P__-space-6);text-align:center}.__P__-panel-notice-close{position:absolute;top:12px;inset-inline-end:12px}.__P__-panel-notice-text{color:var(--__P__-fg-muted);font-size:var(--__P__-text-base)}.__P__-form{display:flex;flex-direction:column;gap:var(--__P__-space-4)}.__P__-field{display:flex;flex-direction:column;gap:6px}.__P__-field-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--__P__-space-2)}.__P__-field-label{font-size:var(--__P__-text-sm);font-weight:600;color:var(--__P__-fg)}.__P__-field-req{color:var(--__P__-danger)}.__P__-field-type{flex-shrink:0;align-self:center;margin-inline-start:auto;border:1px solid var(--__P__-border);border-radius:5px;background:color-mix(in oklab,var(--__P__-fg-muted) 9%,transparent);padding:1px 7px;font-size:var(--__P__-text-xs);font-weight:600;color:var(--__P__-fg-muted);white-space:nowrap}.__P__-field-input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:10px var(--__P__-space-3);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-md);background:var(--__P__-bg);color:var(--__P__-fg);font:inherit;font-size:var(--__P__-text-sm);resize:vertical;transition:border-color var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-field-input:focus-visible{outline:none;border-color:var(--__P__-accent)}.__P__-field[data-invalid=true] .__P__-field-input{border-color:var(--__P__-danger)}.__P__-field-input[type=date],.__P__-field-input[type=time]{appearance:none;-webkit-appearance:none}@media(pointer:coarse){.__P__-textarea,.__P__-home-search-input,.__P__-field-input{font-size:max(16px,calc(16px * var(--__P__-text-scale)))}}.__P__-field-hint{font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted)}.__P__-field-error{font-size:var(--__P__-text-xs);color:var(--__P__-danger)}.__P__-field-choices{display:flex;flex-direction:column;gap:10px;padding-top:2px}.__P__-choice{display:flex;align-items:flex-start;gap:10px;font-size:var(--__P__-text-sm);color:var(--__P__-fg);cursor:pointer}.__P__-choice input{margin-top:2px;accent-color:var(--__P__-accent)}.__P__-form-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--__P__-space-2);margin-top:var(--__P__-space-2)}.__P__-form-hint{flex:1 1 auto;min-width:6rem;margin-inline-end:auto;font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted)}.__P__-form-submit{padding:var(--__P__-space-2) var(--__P__-space-4);border:none;border-radius:var(--__P__-radius-md);background:var(--__P__-accent);color:var(--__P__-accent-text, #fff);font:inherit;font-weight:600;font-size:var(--__P__-text-sm);white-space:nowrap;flex-shrink:0;cursor:pointer;transition:filter var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-form-submit:hover:not(:disabled){filter:brightness(1.06)}.__P__-form-submit:disabled{opacity:.6;cursor:default}.__P__-form-skip{padding:var(--__P__-space-2) var(--__P__-space-4);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-md);background:transparent;color:var(--__P__-fg-muted);font:inherit;font-size:var(--__P__-text-sm);white-space:nowrap;flex-shrink:0;cursor:pointer;transition:background var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-form-skip:hover:not(:disabled){background:var(--__P__-bg-elevated)}@media(max-width:640px){.__P__-form-hint{flex-basis:100%;margin-inline-end:0;font-size:var(--__P__-text-xs)}.__P__-form-submit,.__P__-form-skip{flex:1 1 0;text-align:center}}.__P__-toolui{border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-lg, 14px);background:var(--__P__-bg-elevated);font-size:var(--__P__-text-sm)}.__P__-toolui:not(.__P__-toolui-collapsible){display:flex;flex-direction:column;gap:var(--__P__-space-3);padding:var(--__P__-space-4)}.__P__-toolui-group{display:flex;flex-direction:column;gap:var(--__P__-space-3)}.__P__-toolui-stale{opacity:.7}details.__P__-toolui-collapsible>summary{display:flex;align-items:center;gap:var(--__P__-space-2);padding:var(--__P__-space-3) var(--__P__-space-4);cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;user-select:none}details.__P__-toolui-collapsible>summary::-webkit-details-marker{display:none}details.__P__-toolui-collapsible[open]>summary{border-bottom:1px solid var(--__P__-border)}details.__P__-toolui-collapsible>.__P__-toolui-section{margin:var(--__P__-space-4)}details.__P__-toolui-collapsible>.__P__-toolui-section~.__P__-toolui-section{margin-top:calc(-1 * var(--__P__-space-2))}.__P__-toolui-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.__P__-toolui-chevron{display:inline-flex;color:var(--__P__-fg-muted);transition:transform var(--__P__-dur-quick) var(--__P__-ease-out)}details.__P__-toolui-collapsible>summary .__P__-toolui-status{margin-inline-start:auto}.__P__-toolui-chevron svg{width:16px;height:16px}details.__P__-toolui-collapsible[open]>summary .__P__-toolui-chevron{transform:rotate(180deg)}.__P__-toolui-badge,.__P__-toolui-name-pill,.__P__-toolui-q-pill{--__P__-pill: var(--__P__-fg-muted);display:inline-flex;min-width:0;align-items:center;gap:5px;padding:3px 7px;border-radius:5px;border:1px solid var(--__P__-border);background:color-mix(in oklab,var(--__P__-fg-muted) 9%,transparent);color:var(--__P__-pill);font-size:var(--__P__-text-xs);font-weight:600;white-space:nowrap}.__P__-toolui-badge svg,.__P__-toolui-name-pill svg,.__P__-toolui-q-pill svg{flex-shrink:0;width:14px;height:14px}.__P__-toolui-status-icon{display:inline-flex}.__P__-toolui-name-pill{--__P__-pill: oklch(.68 .13 233)}.__P__-toolui-q-pill{--__P__-pill: oklch(.66 .12 195)}.__P__-toolui-status[data-status=done]{--__P__-pill: var(--__P__-success, #16a34a)}.__P__-toolui-status[data-status=approved],.__P__-toolui-status[data-status=submitted]{--__P__-pill: oklch(.62 .15 255)}.__P__-toolui-status[data-status=waiting]{--__P__-pill: var(--__P__-warning, #f59e0b)}.__P__-toolui-status[data-status=declined]{--__P__-pill: oklch(.66 .16 45)}.__P__-toolui-status[data-status=failed]{--__P__-pill: var(--__P__-danger, #dc2626)}.__P__-toolui-status[data-status=replaced],.__P__-toolui-status[data-status=running],.__P__-toolui-status[data-status=stopped]{--__P__-pill: var(--__P__-fg-muted)}@supports (color: oklch(from red l c h)){.__P__-toolui-badge,.__P__-toolui-name-pill,.__P__-toolui-q-pill{color:oklch(from var(--__P__-pill) clamp(var(--__P__-pill-l-min),l,var(--__P__-pill-l-max)) c h)}}.__P__-toolui-head{display:flex;align-items:center;flex-wrap:wrap;gap:var(--__P__-space-2)}.__P__-toolui-head-end{display:inline-flex;align-items:center;gap:var(--__P__-space-2);margin-inline-start:auto}.__P__-toolui-collapse-body{display:flex;flex-direction:column;gap:var(--__P__-space-3);padding:var(--__P__-space-4)}.__P__-toolui-summary{display:flex;flex-direction:column;gap:var(--__P__-space-3)}.__P__-toolui-collapse-body>.__P__-form{gap:var(--__P__-space-3)}.__P__-toolui-collapse-body>.__P__-form>.__P__-field,.__P__-toolui-summary>.__P__-field{padding:10px var(--__P__-space-3);border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-md);background:color-mix(in oklab,var(--__P__-bg) 80%,transparent);line-height:1.5}.__P__-toolui-collapse-body>.__P__-form>.__P__-field{gap:var(--__P__-space-2)}.__P__-toolui-summary>.__P__-field{gap:var(--__P__-space-1)}.__P__-toolui-summary .__P__-field-label{color:var(--__P__-fg-muted)}.__P__-toolui-answer{margin:0;font-size:var(--__P__-text-sm);color:var(--__P__-fg-muted);overflow-wrap:anywhere;white-space:pre-wrap}.__P__-toolui-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--__P__-space-3);margin-inline:calc(-1 * var(--__P__-space-4));padding:var(--__P__-space-3) var(--__P__-space-4) 0;border-top:1px solid var(--__P__-border)}.__P__-toolui-options-toggle{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;padding:0;cursor:pointer;font-size:var(--__P__-text-xs);font-weight:600;color:var(--__P__-fg-muted);transition:color var(--__P__-dur-quick) var(--__P__-ease)}.__P__-toolui-options-toggle:hover{color:var(--__P__-fg)}.__P__-toolui-options-chevron{display:inline-flex;transition:transform var(--__P__-dur-quick) var(--__P__-ease-out)}.__P__-toolui-options-chevron svg{width:14px;height:14px}.__P__-toolui-options-chevron.__P__-open{transform:rotate(180deg)}.__P__-toolui-desc{margin:0;padding:var(--__P__-space-3);border-radius:var(--__P__-radius-md);background:var(--__P__-bg);border:1px solid var(--__P__-border);color:var(--__P__-fg-muted);line-height:1.5}.__P__-toolui-section{display:flex;flex-direction:column;gap:8px;padding:var(--__P__-space-3);border-radius:var(--__P__-radius-md);background:var(--__P__-bg);border:1px solid var(--__P__-border)}.__P__-toolui:not(.__P__-toolui-collapsible) .__P__-toolui-section,.__P__-toolui:not(.__P__-toolui-collapsible) .__P__-toolui-desc{padding:0;background:none;border:0;border-radius:0}.__P__-toolui-label{font-size:var(--__P__-text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--__P__-fg-muted)}.__P__-toolui-code{margin:0;max-height:240px;overflow:auto;color:var(--__P__-fg);font-family:var(--__P__-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-size:var(--__P__-text-xs);line-height:1.5;white-space:pre-wrap;word-break:break-word}.__P__-toolui-system{min-width:0;overflow:hidden;color:var(--__P__-fg-muted);text-overflow:ellipsis;white-space:nowrap}.__P__-toolui-preview{min-width:0}.__P__-toolui-body{gap:6px}.__P__-toolui-prompt{margin:0;font-weight:600;color:var(--__P__-fg);overflow-wrap:anywhere}.__P__-toolui-subtle{margin:0;font-size:var(--__P__-text-xs);color:var(--__P__-fg-muted);line-height:1.5}.__P__-toolui-fields{max-height:240px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--__P__-border);border-radius:var(--__P__-radius-sm)}.__P__-toolui-fields table{width:100%;border-collapse:collapse;font-size:var(--__P__-text-sm);line-height:1.5}.__P__-toolui-fields tr:nth-child(2n){background:color-mix(in oklab,var(--__P__-fg) 4%,transparent)}.__P__-toolui-fields tr+tr{border-top:1px solid var(--__P__-border)}.__P__-toolui-fields th,.__P__-toolui-fields td{padding:6px var(--__P__-space-2);text-align:start;vertical-align:top}.__P__-toolui-fields th{width:1%;color:var(--__P__-fg-muted);font-weight:400;white-space:nowrap}.__P__-toolui-fields td{color:var(--__P__-fg);white-space:pre-wrap;overflow-wrap:anywhere}.__P__-toolui-fields[data-plain=true]{border:0;border-radius:0}.__P__-toolui-fields[data-plain=true] tr:nth-child(2n){background:none}.__P__-toolui-fields[data-plain=true] tr+tr{border-top:0}.__P__-toolui-fields[data-plain=true] th,.__P__-toolui-fields[data-plain=true] td{padding:1px var(--__P__-space-2) 1px 0}.__P__-toolui-raw>summary{width:fit-content;color:var(--__P__-fg-muted);cursor:pointer}.__P__-toolui-raw>summary:hover{color:var(--__P__-fg)}.__P__-toolui-raw>summary:focus-visible{outline:2px solid var(--__P__-focus);outline-offset:2px;border-radius:var(--__P__-radius-sm)}.__P__-toolui-raw[open]{display:flex;flex-direction:column;gap:var(--__P__-space-2)}.__P__-toolui-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--__P__-space-2);margin-top:var(--__P__-space-2)}:host([dir="rtl"]) .__P__-icon-dir{transform:scaleX(-1)}:host([dir="rtl"]) .__P__-field-input[type=date],:host([dir="rtl"]) .__P__-field-input[type=time]{position:relative;text-align:right;padding-left:34px}:host([dir="rtl"]) .__P__-field-input[type=date]::-webkit-datetime-edit,:host([dir="rtl"]) .__P__-field-input[type=time]::-webkit-datetime-edit{text-align:right}:host([dir="rtl"]) .__P__-field-input[type=date]::-webkit-calendar-picker-indicator,:host([dir="rtl"]) .__P__-field-input[type=time]::-webkit-calendar-picker-indicator{position:absolute;left:var(--__P__-space-3);margin:0}
5
5
  `;var kd=`*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;border:0}button{font:inherit;color:inherit;background:none;cursor:pointer;-webkit-appearance:none;appearance:none;line-height:1}button:focus-visible,[tabindex]:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid var(--__P__-accent);outline-offset:2px}textarea,input{font:inherit;color:inherit;background:none;border:0;outline:0;resize:none}a{color:var(--__P__-accent-fg);text-decoration:underline;text-underline-offset:2px}img,svg{display:block;max-width:100%}ul,ol{list-style:none}.__P__-app{display:block;width:100%;height:100%;font-family:var(--__P__-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11","ss01","ss03"}.__P__-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@@ -58,7 +58,8 @@ ${e.props.body}`];case"Metric":return[[e.props.label,e.props.value,e.props.detai
58
58
 
59
59
  `))!==-1;){let i=n.slice(0,a);n=n.slice(a+2),yield i}}}finally{r.releaseLock()}}function my(e,t){let r="",n;for(let o of e.split(`
60
60
  `))if(o!==""){if(o.startsWith(":")){t?.(o.slice(1).trim());continue}if(o.startsWith("data:")){let s=o.slice(5).replace(/^ /,"");r=r?`${r}
61
- ${s}`:s;continue}o.startsWith("id:")&&(n=o.slice(3).trim())}if(r==="[DONE]")return"done";if(!r)return null;try{let o=JSON.parse(r);if(!gy(o))throw new TypeError("unrecognized chunk");return Pp.trace("chunk",{type:o.type,eventId:n}),{chunk:o,eventId:n}}catch(o){throw Pp.trace("frame parse failed",{errorType:o instanceof Error?o.name:typeof o,payloadLength:r.length}),new qe("invalid SSE frame","network",void 0,o)}}function gy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof Reflect.get(e,"type")=="string"}var vy=new Set([101,204,205,304]);function hy(e){let t=new Headers;for(let r of e.trim().split(/[\r\n]+/)){let n=r.indexOf(":");n>0&&t.append(r.slice(0,n).trim(),r.slice(n+1).trim())}return t}function Sp(e){return async function(r,n){let o=new Request(r,n),s=await o.blob();return new Promise((a,i)=>{if(o.signal.aborted){i(o.signal.reason);return}let c=new XMLHttpRequest;c.open(o.method,o.url),c.withCredentials=o.credentials==="include",c.responseType="blob",o.headers.forEach((u,p)=>c.setRequestHeader(p,u)),c.upload.addEventListener("progress",u=>{u.lengthComputable&&u.total>0&&e(u.loaded/u.total)}),c.addEventListener("load",()=>{a(new Response(vy.has(c.status)?null:c.response,{status:c.status,statusText:c.statusText,headers:hy(c.getAllResponseHeaders())}))}),c.addEventListener("error",()=>i(new TypeError("Failed to fetch"))),c.addEventListener("abort",()=>i(o.signal.reason)),o.signal.addEventListener("abort",()=>c.abort(),{once:!0}),c.send(s)})}}var rt=ne.scope("transport"),yy="x-user-token",by="x-continue-link";async function $l(e){try{let t=await e.clone().json();if(typeof t!="object"||t===null)return{};let r=Reflect.get(t,"error");return{error:typeof r=="string"?r:void 0,loginUrl:zi(Reflect.get(t,"login")).url}}catch{return{}}}var wp=6e4,Py=1e4,Dl=50,Mp=new WeakMap;function On(e){return Mp.get(e)}function Io(e,t){return Mp.set(e,t),e}function kp(e){return Math.max(e?.upsertRevision??0,e?.read?.revision??0)}function xy(e,t){return e.conversationId===t.conversationId&&e.title===t.title&&e.lastMessageAt===t.lastMessageAt&&e.preview===t.preview&&e.hasUnread===t.hasUnread&&e.controlState===t.controlState}function Pr(e,t,r=!0){switch(t.type){case"snapshot":{let n=new Map(e.map(a=>[a.conversationId,a])),o=e.filter(a=>(On(a)?.activityRevision??0)>t.requestedRevision).toSorted((a,i)=>(On(i)?.activityRevision??0)-(On(a)?.activityRevision??0)),s=new Set(o.map(a=>a.conversationId));return[...o,...t.result.conversations.filter(a=>!s.has(a.conversationId)).map(a=>{let i=n.get(a.conversationId);if(!i)return a;let c=On(i);return(c?.upsertRevision??0)>t.requestedRevision?i:c?.read&&!i.hasUnread&&c.read.lastMessageAt===a.lastMessageAt?Io({...a,hasUnread:!1},{upsertRevision:0,read:c.read}):a})]}case"read":{let n=e.findIndex(c=>c.conversationId===t.conversationId&&(t.lastMessageAt===void 0||c.lastMessageAt===t.lastMessageAt)),o=e[n];if(!o)return e;let s=On(o);if(kp(s)>t.revision)return e;let a=t.lastMessageAt??o.lastMessageAt,i={upsertRevision:s?.upsertRevision??0,...s?.activityRevision===void 0?{}:{activityRevision:s.activityRevision},read:{revision:t.revision,...a?{lastMessageAt:a}:{}}};return o.hasUnread?e.map((c,u)=>u===n?Io({...c,hasUnread:!1},i):c):(Io(o,i),e)}case"upsert":{let n=e.findIndex(u=>u.conversationId===t.conversation.conversationId);if(n<0&&!r)return e;let o=e[n],s=o?On(o):void 0;if(kp(s)>t.revision)return e;let a=t.activity?t.revision:s?.activityRevision,i={upsertRevision:t.revision,...a===void 0?{}:{activityRevision:a},...!t.conversation.hasUnread&&s?.read?{read:s.read}:{}},c=o?{...o,...t.conversation,title:o.title}:{...t.conversation};return o&&xy(o,c)?(Io(o,i),e):(Io(c,i),t.activity?[c,...e.filter(u=>u.conversationId!==c.conversationId)]:o?e.map((u,p)=>p===n?c:u):[...e,c])}default:return t}}var Cp=3,Sy=400,wy=3e4,ky=6e4,Cy=1e4,Ty=6e4,Iy=15e3,Ay=1024*1024,Tp=new Set([408,425,429,500,502,503,504]);function Ip(e){return Sy*2**e+Math.floor(Math.random()*250)}function Ry(e){return Ty+Math.ceil(e/Ay)*Iy}function Ey(e){let t=e.get("retry-after");if(!t)return null;let r=Number(t),n=Number.isFinite(r)?r*1e3:Date.parse(t)-Date.now();return Number.isFinite(n)&&n>=0?Math.min(n,3e4):null}var Ao=class{constructor(t){le(this,"ttlMs",t);le(this,"map",new Map)}getOrFetch(t,r){let n=this.map.get(t);if(n&&performance.now()-n.at<this.ttlMs)return n.result;let o={at:performance.now(),result:r().then(s=>(o.value=s,s)).catch(s=>{throw this.map.get(t)===o&&this.map.delete(t),s})};return this.map.set(t,o),o.result}peek(t){let r=this.map.get(t);if(r?.value!==void 0&&performance.now()-r.at<this.ttlMs)return r.value}update(t){for(let r of this.map.values()){if(r.value!==void 0){let n=t(r.value);r.value=n,r.result=Promise.resolve(n);continue}r.result=r.result.then(n=>{let o=t(n);return r.value=o,o})}}delete(t){this.map.delete(t)}};function Ap(e,t){let{translations:r,defaultLocale:n,...o}=Qr(e,t);return o}var ma=class{constructor(t){le(this,"opts",t);le(this,"conversationListeners",new Set);le(this,"conversationRevision",0);le(this,"visitorId");le(this,"conversationId");le(this,"userContext");le(this,"pageContext");le(this,"locale");le(this,"userTokenSource");le(this,"userToken");le(this,"userTokenRequest");le(this,"conversationsCache",new Ao(Py));le(this,"contentCache",new Ao(wp));le(this,"contentCollectionsCache",new Ao(wp))}setUserToken(t){this.userTokenSource=t,this.userToken=typeof t=="string"&&t||void 0,this.userTokenRequest=typeof t=="function"?this.fetchUserToken():void 0,this.opts.onLoginState?.(t?{status:"pending"}:{status:"anonymous"})}async userSub(){return this.userTokenRequest&&await this.userTokenRequest,this.userToken?gu(this.userToken):void 0}reportLogin(t){this.opts.onLoginState?.(t==="loggedIn"&&this.userToken?{status:t,...mu(this.userToken)}:{status:t==="loggedIn"?"anonymous":t})}async refreshUserToken(){let t=this.userToken;return typeof this.userTokenSource!="function"?!1:(this.userTokenRequest&&await this.userTokenRequest,this.userToken===t&&await this.fetchUserToken(),!!this.userToken&&this.userToken!==t)}setContext(t,r){this.userContext=t,this.pageContext=r}setLocale(t){this.locale=t}primeIdentity(t,r){t&&(this.visitorId=t),r&&(this.conversationId=r)}envelope(){let t={_ev:Tn};this.visitorId&&(t.visitorId=this.visitorId),this.conversationId&&(t.conversationId=this.conversationId),this.locale&&(t.locale=this.locale);let r=Ol(this.userContext,this.pageContext);return r&&(t[wl]=r),t}withEnvelope(t){return{...this.envelope(),...t}}appendEnvelope(t){for(let[r,n]of Object.entries(this.envelope()))t.append(r,n);return t}withEnvelopeQuery(t){let r=new URL(this.url(t));for(let[n,o]of Object.entries(this.envelope()))r.searchParams.has(n)||r.searchParams.set(n,o);return r.toString()}async handshake(t){rt.debug("handshake \u2192",{visitorId:t.visitorId,conversationId:t.conversationId,locale:t.locale});let r=br("handshake",await this.postJson(kt.handshake,t,"handshake"),Ep),n=r.loginStatus==="expired"&&await this.refreshUserToken()?br("handshake",await this.postJson(kt.handshake,t,"handshake"),Ep):r;return this.reportLogin(n.loginStatus??(this.userToken?"loggedIn":"anonymous")),rt.debug("handshake \u2190",{visitorId:n.visitorId,conversationId:n.conversationId,hasWelcome:!!n.welcome,hasConfig:!!n.config,rebind:n.rebind}),this.visitorId=n.visitorId,this.conversationId=n.conversationId,n}async uploadFile(t,r,n){rt.debug("uploadFile \u2192",{name:t.name,size:t.size,type:t.type});let o=new FormData;o.append("file",t,t.name);let s=br("upload",await this.postForm(this.uploadPath,o,"upload",r,Ry(t.size),n),Ny);return rt.debug("uploadFile \u2190",{id:s.id,url:s.url}),s}async transcribe(t,r="audio/webm"){rt.debug("transcribe \u2192",{size:t.size,mimeType:r});let n=new FormData;n.append("audio",t,`voice.${My(r)}`),n.append("mimeType",r);let o=br("transcribe",await this.postForm(this.transcribePath,n,"transcribe"),Oy);return rt.debug("transcribe \u2190",{textLen:o.text.length}),o}subscribeConversationChanges(t){return this.conversationListeners.add(t),()=>this.conversationListeners.delete(t)}publishConversation(t,r=!1){let n={type:"upsert",conversation:t,revision:++this.conversationRevision,...r?{activity:!0}:{}};this.conversationsCache.update(o=>{let s=o.pagination.page===1,a=o.conversations.some(_=>_.conversationId===t.conversationId),i=Pr(o.conversations,n,s&&r),c=s&&i.length>o.pagination.limit?i.slice(0,o.pagination.limit):i;if(!s||!r||a||o.pagination.hasNext)return c===o.conversations?o:{...o,conversations:c};let u=Math.max(o.pagination.total,o.conversations.length)+1,p=Math.ceil(u/o.pagination.limit);return{...o,conversations:c,pagination:{...o.pagination,total:u,totalPages:p,hasNext:o.pagination.page<p}}});for(let o of this.conversationListeners)o(n)}localeCacheKey(t){return`${this.locale??""}|${JSON.stringify(t,Object.keys(t).toSorted())}`}peekConversations(t={}){return this.conversationsCache.peek(this.localeCacheKey(t))}listConversations(t={},r=!1){if((t.page??1)>1)return this.fetchConversations(t);let n=this.localeCacheKey(t),o=this.conversationRevision;r&&this.conversationsCache.delete(n);let s=this.conversationsCache.getOrFetch(n,()=>this.fetchConversations(t));return r?s.then(a=>{let i={type:"snapshot",result:a,requestedRevision:o};for(let c of this.conversationListeners)c(i);return a}):s}async fetchConversations(t){let r=new URL(this.url(kt.listConversations));return t.visitorId&&r.searchParams.set("visitorId",t.visitorId),t.page&&r.searchParams.set("page",String(t.page)),t.limit&&r.searchParams.set("limit",String(t.limit)),t.ids?.length&&r.searchParams.set("ids",t.ids.join(",")),br("listConversations",await this.getJson(r.toString(),"listConversations"),$y)}async loadConversation(t,{ids:r=[],beforeId:n,beforeCreatedAt:o}={}){let s=new URL(this.url(kt.listMessages));s.searchParams.set("conversationId",t),s.searchParams.set("limit",String(Dl)),r.length>0&&s.searchParams.set("ids",r.join(",")),n&&s.searchParams.set("beforeId",n),o&&s.searchParams.set("beforeCreatedAt",o);let a=br("loadConversation",await this.getJson(s.toString(),"loadConversation"),Dy);return{...a,messages:a.messages.toReversed()}}async markRead(t,r){if(!this.visitorId||!t)return;let n={type:"read",conversationId:t,...r===void 0?{}:{lastMessageAt:r},revision:++this.conversationRevision};this.conversationsCache.update(o=>{let s=Pr(o.conversations,n);return s===o.conversations?o:{...o,conversations:s}});for(let o of this.conversationListeners)o(n);try{await this.postJson(kt.markRead,{conversationId:t},"markRead",!0)}catch(o){rt.debug("markRead failed (non-fatal)",{err:o})}}async requestOperator(){if(!(!this.visitorId||!this.conversationId))try{return Rp("requestOperator",await this.postJson(kt.requestOperator,{},"requestOperator"))}catch(t){rt.debug("requestOperator failed (non-fatal)",{err:t});return}}async emailTranscript(t){return br("emailTranscript",await this.postJson(kt.emailTranscript,{email:t},"emailTranscript"),qy)}async cancelOperatorRequest(){if(!(!this.visitorId||!this.conversationId))try{return Rp("cancelOperatorRequest",await this.postJson(kt.cancelOperatorRequest,{},"cancelOperatorRequest"))}catch(t){rt.debug("cancelOperatorRequest failed (non-fatal)",{err:t});return}}listContent(t={}){return this.contentCache.getOrFetch(JSON.stringify(t,Object.keys(t).toSorted()),()=>this.fetchContent(t)).then(r=>({...r,items:r.items.map(n=>Ap(n,this.locale))}))}async fetchContent(t){let r=new URL(this.dataUrl(kt.content));for(let[o,s]of Object.entries(t))s!==void 0&&r.searchParams.set(o,Array.isArray(s)?s.join(","):String(s));let n=br("listContent",await this.getJson(r.toString(),"listContent"),Uy);return{...n,items:n.items??[]}}async setContentVote(t){try{await this.postJson(this.dataUrl(kt.contentVoteSet),t,"setContentVote")}catch{}}listContentCollections(t){return this.contentCollectionsCache.getOrFetch(t.join(","),()=>this.fetchContentCollections(t)).then(r=>({items:r.items.map(n=>Ap(n,this.locale))}))}async fetchContentCollections(t){let r=new URL(this.dataUrl(kt.contentCollections));return t.length&&r.searchParams.set("ids",t.join(",")),{items:br("listContentCollections",await this.getJson(r.toString(),"listContentCollections"),By).items??[]}}async saveUserPrefs(t){await this.postJson(kt.updateSettings,{userPrefs:t},"saveUserPrefs")}get uploadPath(){return this.opts.endpoints?.upload??"/pai/upload-file"}get transcribePath(){return this.opts.endpoints?.transcribe??"/pai/transcribe-audio"}async submitFeedback(t){rt.debug("submitFeedback \u2192",{messageId:t.messageId,value:t.value});try{await this.postJson(kt.messageFeedback,{messageId:t.messageId,set:{feedback:t.value}},"submitFeedback")}catch(r){rt.debug("submitFeedback failed (non-fatal)",{err:r})}}async sendTurn(t,r={}){rt.debug("message \u2192",{conversationId:t.conversationId,visitorId:t.visitorId,messageCount:t.messages.length});let n=JSON.stringify({...this.withEnvelope(t),[wl]:Ol(this.userContext,this.pageContext,this.opts.recentHostEvents)}),o=r.keepalive===!0&&new Blob([n]).size<ky;try{return await this.runWithAbort(async s=>{let a=await this.withFreshUserToken(()=>this.fetchImpl(this.url(kt.streamMessage),{method:"POST",credentials:"omit",headers:{accept:"application/json","content-type":"application/json",...this.headersFor(this.url(kt.streamMessage))},body:n,keepalive:o,signal:s}));if(a.status!==202)throw new qe(`sendTurn failed: expected 202, received ${a.status}`,"server",a.status,void 0,zy(a),(await $l(a)).error);let i;try{i=await a.json()}catch(c){throw s?.aborted?c:new qe("sendTurn failed: invalid acknowledgement","server",a.status,c)}if(!Ly(i))throw new qe("sendTurn failed: invalid acknowledgement","server",a.status);return i},void 0,wy)}catch(s){throw s instanceof qe?s:new qe("sendTurn failed: network error","network",void 0,s)}}cancelTurn(t,r){!this.visitorId||!t||!r||(rt.debug("cancel stream",{conversationId:t,runId:r,visitorId:this.visitorId}),this.fetchImpl(this.url(kt.cancelStream),{method:"POST",credentials:"omit",headers:{"content-type":"application/json",...this.headersFor(this.url(kt.cancelStream))},body:JSON.stringify(this.withEnvelope({conversationId:t,runId:r})),keepalive:!0}).catch(n=>rt.debug("cancel POST failed (non-fatal)",{err:n})))}async connectResumeStream(t){let r=new AbortController;function n(){return r.abort(t.signal.reason)}t.signal.aborted?n():t.signal.addEventListener("abort",n,{once:!0});let o=setTimeout(()=>r.abort(),Cy);function s(){clearTimeout(o),t.signal.removeEventListener("abort",n)}let a;try{a=await this.withFreshUserToken(()=>this.fetchImpl(this.resumeUrl(),{method:"GET",credentials:"omit",cache:"no-store",headers:{accept:"text/event-stream",...this.headersFor(this.resumeUrl())},signal:r.signal}))}catch(c){return s(),t.signal.aborted||rt.debug("resume-stream fetch failed \u2014 reconnecting",{err:c}),"held"}if(!a.ok)return s(),a.status===409||Tp.has(a.status)?(rt.debug("resume-stream \u2192 transient response; reconnecting",{status:a.status}),"held"):(rt.debug("resume-stream \u2192 endpoint unavailable",{status:a.status}),"unavailable");if(!a.body)return s(),rt.debug("resume-stream \u2192 bodyless response; stopping",{status:a.status}),"unavailable";if(!(a.headers.get("content-type")??"").includes("text/event-stream"))return s(),rt.debug("resume-stream \u2192 non-SSE response; stopping"),"unavailable";let i=!1;try{for await(let{chunk:c}of xp(a,r.signal,u=>{i||u!=="connected"||(i=!0,clearTimeout(o),t.onConnected())})){if(t.signal.aborted)return"held";t.onChunk(c)}}catch(c){if(t.signal.aborted)return"held";rt.debug("resume-stream segment dropped \u2014 reconnecting",{err:c})}finally{s()}return"held"}resumeUrl(){return this.withEnvelopeQuery(kt.streamResume)}async postJson(t,r,n,o=!1){let s=await this.fetchWithRetry(()=>[this.url(t),{method:"POST",credentials:"omit",headers:{"content-type":"application/json",...this.headersFor(this.url(t))},body:JSON.stringify(this.withEnvelope(r)),...o?{keepalive:!0}:{}}],n);return this.assertOk(s,n)}async postForm(t,r,n,o,s,a){let i=a?Sp(a):this.fetchImpl;return this.runWithAbort(async c=>{let u=await this.withFreshUserToken(()=>i(this.url(t),{method:"POST",credentials:"omit",headers:this.headersFor(this.url(t)),body:this.appendEnvelope(r),signal:c}));return this.assertOk(u,n)},o,s)}async runWithAbort(t,r,n){if(!r&&n===void 0)return t();let o=new AbortController;function s(){return o.abort(r?.reason)}r?.aborted?s():r?.addEventListener("abort",s,{once:!0});let a=n===void 0?void 0:setTimeout(()=>o.abort(),n);try{return await t(o.signal)}finally{a!==void 0&&clearTimeout(a),r?.removeEventListener("abort",s)}}async getJson(t,r){let n=await this.fetchWithRetry(()=>[this.withEnvelopeQuery(t),{method:"GET",credentials:"omit",headers:{accept:"application/json",...this.headersFor(this.url(t))}}],r);return this.assertOk(n,r)}async fetchWithRetry(t,r){for(let n=0;;n++){let o;try{o=await this.withFreshUserToken(()=>this.fetchImpl(...t()))}catch(a){if(n>=Cp)throw new qe(`${r} failed: network error`,"network",void 0,a);rt.debug("request network error \u2014 retrying",{label:r,attempt:n}),await ln(Ip(n));continue}if(o.ok||!Tp.has(o.status)||n>=Cp)return o;let s=Ey(o.headers)??Ip(n);rt.debug("request retryable status \u2014 retrying",{label:r,status:o.status,attempt:n,wait:s}),await ln(s)}}async assertOk(t,r){if(!t.ok)throw new qe(`${r} failed: ${t.status}`,"server",t.status,void 0,void 0,(await $l(t)).error);return await t.json()}fetchUserToken(){let t=this.userTokenSource;if(typeof t!="function")return Promise.resolve();let r=Promise.resolve().then(t).then(n=>{this.userTokenSource===t&&(this.userToken=n||void 0)},n=>{rt.warn("userToken function failed",{err:n}),this.userTokenSource===t&&(this.userToken=void 0)});return this.userTokenRequest=r,r}headersFor(t){let r=!/^https?:\/\//i.test(t)||t.startsWith(`${this.opts.agentApiBaseUrl}/`);return{...this.opts.auth.headers(),...r&&this.userToken?{[yy]:this.userToken}:{},...r&&this.opts.continueLink?{[by]:this.opts.continueLink}:{}}}async withFreshUserToken(t){this.userTokenRequest&&await this.userTokenRequest;let r=await t();if(r.status!==401)return r;let n=await $l(r);if(n.error==="USER_TOKEN_REQUIRED")return this.opts.onLoginState?.({status:"required",loginUrl:n.loginUrl}),r;if(!this.userToken)return r;if(!await this.refreshUserToken())return this.reportLogin("expired"),r;this.reportLogin("loggedIn");let o=await t();return o.status===401&&this.reportLogin("expired"),o}url(t){return/^https?:\/\//i.test(t)?t:`${this.opts.agentApiBaseUrl}${t}`}dataUrl(t){return`${this.opts.dataApiBaseUrl}${t}`}get fetchImpl(){return this.opts.fetchImpl??globalThis.fetch.bind(globalThis)}};function My(e){return e.includes("webm")?"webm":e.includes("ogg")?"ogg":e.includes("mp4")||e.includes("m4a")?"m4a":e.includes("mpeg")?"mp3":e.includes("wav")?"wav":"bin"}function Ly(e){if(typeof e!="object"||e===null)return!1;let t=Reflect.get(e,"status"),r=Reflect.get(e,"conversationId"),n=Reflect.get(e,"runId");return t==="accepted"&&typeof r=="string"&&r.length>0&&(n===void 0||typeof n=="string"&&n.length>0)}function Ht(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function br(e,t,r){if(!r(t))throw new qe(`${e} failed: invalid response body`,"server");return t}function Rp(e,t){let r=sa(Ht(t)?t.controlState:void 0);if(!r)throw new qe(`${e} failed: invalid response body`,"server");return r}function Ep(e){return!(!Ht(e)||typeof e.visitorId!="string"||typeof e.conversationId!="string"||e.welcome!==void 0&&(!Ht(e.welcome)||e.welcome.messages!==void 0&&!Array.isArray(e.welcome.messages)))}function Ny(e){return Ht(e)&&typeof e.id=="string"&&typeof e.url=="string"&&typeof e.originalName=="string"&&typeof e.mimeType=="string"&&typeof e.fileSize=="number"}function Oy(e){return Ht(e)&&typeof e.text=="string"}function Lp(e){return Ht(e)&&typeof e.page=="number"&&typeof e.limit=="number"&&typeof e.total=="number"&&typeof e.totalPages=="number"&&typeof e.hasNext=="boolean"&&typeof e.hasPrev=="boolean"}function $y(e){return Ht(e)&&Array.isArray(e.conversations)&&e.conversations.every(Ht)&&Lp(e.pagination)}function Dy(e){return Ht(e)&&typeof e.conversationId=="string"&&Array.isArray(e.messages)&&e.messages.every(Ht)}function qy(e){return Ht(e)&&typeof e.status=="string"&&typeof e.to=="string"}function Uy(e){return Ht(e)&&(e.items===void 0||Array.isArray(e.items)&&e.items.every(Ht))&&(e.pagination===void 0||Lp(e.pagination))}function By(e){return Ht(e)&&(e.items===void 0||Array.isArray(e.items)&&e.items.every(Ht))}function zy(e){let t=Number(e.headers.get("retry-after"));return Number.isInteger(t)&&t>0?t:void 0}function $n(e,t,r){switch(e){case"clear":case"sound":case"history":case"language":case"theme":case"textSize":return!0;case"popOut":return t!=="standalone"&&t!=="page";case"expand":return t==="floating";case"fullscreen":return t!=="standalone";case"close":return t==="standalone"||t==="page"?!1:t==="inline"?r==="fullscreen":!0}}function ga(e,t,r){return $n("close",e,t)?r.includes("close"):!1}function Np(e,t){return e==="inline"&&t==="fullscreen"?"exit-fullscreen":"close"}function Dn(e,t,r,n){let o={role:r,text:n};e.emit("message",o),t.onMessage?.(o)}function Op(e){return Object.fromEntries(e.map(t=>[t,[]]))}function ql(e,t,r){return e.includes(t)?t:e.includes(r)?r:e[0]??""}function $p(e,t,r){let n=[...new Set(t)],o=ql(n,e,""),s=oe({activeTab:o,stacks:Op(n)});return{sig:s,reconcile(a,i){let c=[...new Set(a)],u=s.value,p=ql(c,u.activeTab,i),_=Object.fromEntries(c.map(f=>[f,u.stacks[f]??[]])),d=p===u.activeTab&&c.length===Object.keys(u.stacks).length&&c.every(f=>u.stacks[f]===_[f]);n=c,!d&&(s.value={activeTab:p,stacks:_},p!==u.activeTab&&p&&r?.(p))},switchTab(a){!(a in s.value.stacks)||s.value.activeTab===a||(s.value={...s.value,activeTab:a},r?.(a))},open(a,i){let c=s.value;a in c.stacks&&(s.value={activeTab:a,stacks:{...c.stacks,[a]:i?[i]:[]}},c.activeTab!==a&&r?.(a))},push(a){let i=s.value,c=i.stacks[i.activeTab]??[];s.value={...i,stacks:{...i.stacks,[i.activeTab]:[...c,a]}}},pop(){let a=s.value,i=a.stacks[a.activeTab]??[];i.length!==0&&(s.value={...a,stacks:{...a.stacks,[a.activeTab]:i.slice(0,-1)}})},reset(a){s.value={activeTab:ql(n,a,""),stacks:Op(n)}}}}function Dp(e){return e.stacks[e.activeTab]??[]}function qp(e){return Dp(e).at(-1)}function Up(e){return Dp(e).length===0}function Ro(e){/^(https?:)?\//i.test(e)&&window.open(e,"_blank","noopener,noreferrer")}function va(e,t,r){return e==="page"?"page":e==="standalone"?"standalone":e==="inline"?t==="fullscreen"?"fullscreen":"inline":e==="modal"||e==="drawer"?r?t==="fullscreen"?"fullscreen":e:"closed":r?t==="fullscreen"?"fullscreen":t==="expanded"?"expanded":"open":"closed"}var Fy=900,Hy=640;function Ul(e,t,r){if(e==="standalone"||e==="page")return"fullscreen";let n=t.initialSize;return n==="expanded"||n==="fullscreen"||n==="normal"?n:r>0&&r<Hy?"fullscreen":r>=(t.autoSizeBreakpoint??Fy)?"expanded":"normal"}function Eo(e,t,r,n=null){let s=e.mode==="inline"||e.mode==="standalone"||e.mode==="page"||(r??!e.startMinimized),i=e.mode!=="standalone"&&e.mode!=="page"&&e.mode!=="inline"&&n?n:Ul(e.mode,e.size,t);return{panelOpen:s,panelSize:i}}function qn(){return typeof window>"u"?0:window.innerWidth}var re={fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},ha=`${q.cssPrefix}-icon-dir`;function Bl(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M21 12a8 8 0 0 1-12 6.93L3 21l1.65-5.16A8 8 0 1 1 21 12Z"})})}function Dt(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M18 6 6 18M6 6l12 12"})})}function Bp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M12 5v14M5 12h14"})})}function zp(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:[l("path",{d:"m22 2-7 20-4-9-9-4Z"}),l("path",{d:"M22 2 11 13"})]})}function Fp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M12 19V5M5 12l7-7 7 7"})})}function Hp(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:l("path",{d:"M3 20V4l18 8-18 8Z"})})}function ya(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:l("path",{d:"m9 18 6-6-6-6"})})}function Dr(){return l("svg",{...re,"aria-hidden":"true",children:l("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}function ba(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"m21 11-9 9a5.5 5.5 0 0 1-7.78-7.78l8.49-8.49a3.67 3.67 0 0 1 5.19 5.19l-8.49 8.49a1.83 1.83 0 0 1-2.6-2.6l7.78-7.78"})})}function jp(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"9",y:"2",width:"6",height:"12",rx:"3"}),l("path",{d:"M5 10a7 7 0 0 0 14 0M12 19v3"})]})}function xr(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"8",r:"4.5"}),l("path",{d:"M4.5 20.5a7.5 7.5 0 0 1 15 0"})]})}function Vp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M3 8V3h5M21 8V3h-5M3 16v5h5M21 16v5h-5"})})}function Wp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M8 3v5H3M16 3v5h5M8 21v-5H3M16 21v-5h5"})})}function Gp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M3 3h7v2H5v5H3zM21 3h-7v2h5v5h2zM3 21h7v-2H5v-5H3zM21 21h-7v-2h5v-5h2z"})})}function Kp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M10 3v5H3M14 3v5h7M10 21v-5H3M14 21v-5h7"})})}function Qp(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M14 3h7v7M21 3l-9 9"}),l("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})}function Yp(){return l("svg",{...re,"aria-hidden":"true",viewBox:"0 0 10 10",children:l("path",{d:"M9 1L1 9M9 5L5 9M9 9H9",strokeWidth:"1.5"})})}function Jp(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"5",r:"1.5",fill:"currentColor",stroke:"none"}),l("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l("circle",{cx:"12",cy:"19",r:"1.5",fill:"currentColor",stroke:"none"})]})}function Xp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M11 5 6 9H2v6h4l5 4zM15 9a5 5 0 0 1 0 6M18 7a9 9 0 0 1 0 10"})})}function Zp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M11 5 6 9H2v6h4l5 4zM22 9l-6 6M16 9l6 6"})})}function e_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M3 18 8 6l5 12M4.7 14h6.6"}),l("path",{d:"M14.5 18l3.2-7 3.2 7M15.6 15.8h4.2"})]})}function Un(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M20 6 9 17l-5-5"})})}function t_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M3 3v6h6"}),l("path",{d:"M3.05 13A9 9 0 1 0 6 5.3L3 9"}),l("path",{d:"M12 7v5l3 2"})]})}function r_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("path",{d:"M2 12h20"}),l("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}function Mo(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:l("path",{d:"M19 12H5M12 19l-7-7 7-7"})})}function n_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M12 20h9"}),l("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function Pa(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),l("path",{d:"m3 7 9 6 9-6"})]})}function sr(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"m6 9 6 6 6-6"})})}function xa(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"}),l("path",{d:"M14 2v6h6"})]})}function jy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"m12 3-1.5 4.5L6 9l4.5 1.5L12 15l1.5-4.5L18 9l-4.5-1.5Z"}),l("path",{d:"M19 15v4M17 17h4M5 3v2M4 4h2"})]})}function zl(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z"})})}function Lo(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),l("path",{d:"M12 17h.01"})]})}function Vy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"m15 4 3 3-9 9-3-3z"}),l("path",{d:"M18 2v2M20 4h2M3 20l3-3M3 16h2M5 14v2"})]})}function Wy(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"4",y:"8",width:"16",height:"12",rx:"2"}),l("path",{d:"M12 8V4"}),l("circle",{cx:"12",cy:"3",r:"1"}),l("path",{d:"M2 14h2M20 14h2M9 13h.01M15 13h.01M9.5 17h5"})]})}function Gy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M4 14v-2a8 8 0 0 1 16 0v2"}),l("rect",{x:"2",y:"14",width:"4",height:"6",rx:"1.5"}),l("rect",{x:"18",y:"14",width:"4",height:"6",rx:"1.5"}),l("path",{d:"M20 20v1a3 3 0 0 1-3 3h-5"})]})}function Ky(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("circle",{cx:"12",cy:"12",r:"4"}),l("path",{d:"m4.93 4.93 4.24 4.24M14.83 14.83l4.24 4.24M14.83 9.17l4.24-4.24M4.93 19.07l4.24-4.24"})]})}function Fl(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"11",cy:"11",r:"7"}),l("path",{d:"m21 21-4.3-4.3"})]})}function o_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]})}function i_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M3 9.5 12 3l9 6.5"}),l("path",{d:"M5 9v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9"})]})}function Sa(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"m3 11 15-5v12L3 13z"}),l("path",{d:"M3 11v2a2 2 0 0 0 2 2h1V9H5a2 2 0 0 0-2 2z"}),l("path",{d:"M7 15v3a2 2 0 0 0 4 0v-2"}),l("path",{d:"M21 10a3 3 0 0 1 0 4"})]})}function No(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z"}),l("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})}function a_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"4"}),l("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"})]})}function s_(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}function l_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"M12 3v18"}),l("path",{d:"M12 3a9 9 0 0 1 0 18z",fill:"currentColor",stroke:"none"})]})}function Qy(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),l("path",{d:"M8 11a2.5 2.5 0 0 0 5 0"}),l("path",{d:"m20 20-4.4-4.4"})]})}function Yy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M12 3.5 13.6 9 19 10.5 13.6 12 12 17.5 10.4 12 5 10.5 10.4 9z"}),l("path",{d:"M18.5 4v3M20 5.5h-3M5.5 16v2.5M6.75 17.25h-2.5"})]})}function Jy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M4 18h16"}),l("path",{d:"M5 18a7 7 0 0 1 14 0"}),l("path",{d:"M12 8V6"}),l("path",{d:"M10 6h4"})]})}function Xy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M7 11V6.5a1.5 1.5 0 0 1 3 0V10"}),l("path",{d:"M10 10V5.5a1.5 1.5 0 0 1 3 0V10"}),l("path",{d:"M13 10V6.5a1.5 1.5 0 0 1 3 0V12"}),l("path",{d:"M16 9.5a1.5 1.5 0 0 1 3 0v2.5a7 7 0 0 1-7 7 7 7 0 0 1-6.4-4.2L4 12.5a1.5 1.5 0 0 1 2.6-1.5L7 11"})]})}function c_(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),l("path",{d:"M5 15a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2"})]})}function d_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M7 10v11H4a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1z"}),l("path",{d:"M7 10l4-7a2.5 2.5 0 0 1 2.5 2.5V8h5a2 2 0 0 1 2 2.3l-1.2 8A2 2 0 0 1 17.3 20H7"})]})}function u_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M17 14V3h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1z"}),l("path",{d:"M17 14l-4 7a2.5 2.5 0 0 1-2.5-2.5V16h-5a2 2 0 0 1-2-2.3l1.2-8A2 2 0 0 1 6.7 4H17"})]})}function p_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"3.5"}),l("path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M19.1 4.9l-2.1 2.1M7 17l-2.1 2.1"})]})}function __(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"M12 7v5l3 2"})]})}function cn(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]})}function Oo(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"m15 9-6 6M9 9l6 6"})]})}function f_(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M12 18V5M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294M17.996 5.125a4 4 0 012.526 5.77M18 18a4 4 0 002-7.465M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517M6 18a4 4 0 01-2-7.465M6.004 5.125a4 4 0 00-2.526 5.77"})})}function Bn(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("path",{d:"M12 8v4M12 16h.01"})]})}var m_={chat:Bl,message:zl,bubbles:No,spark:jy,wand:Vy,bot:Wy,help:Lo,lifebuoy:Ky,headset:Gy,search:Qy,sparkles:Yy,concierge:Jy,wave:Xy};var W=q.cssPrefix,D={launcher:`${W}-launcher`,callout:`${W}-callout`,calloutDismiss:`${W}-callout-dismiss`,panel:`${W}-panel`,panelHeader:`${W}-panel-header`,resizeGrip:`${W}-resize-grip`,scrollToBottom:`${W}-scroll-to-bottom`,loadPreviousMessages:`${W}-load-previous-messages`,actionHistory:`${W}-action-history`,actionClose:`${W}-action-close`,emailTranscriptSheet:`${W}-email-transcript-sheet`,emailTranscriptEmail:`${W}-email-transcript-email`,emailTranscriptSend:`${W}-email-transcript-send`,langSegment:`${W}-lang-segment`,composer:`${W}-composer`,composerInput:`${W}-composer-input`,composerCount:`${W}-composer-count`,composerSend:`${W}-composer-send`,composerStop:`${W}-composer-stop`,compactionStatus:`${W}-compaction-status`,messageQueue:`${W}-message-queue`,queuedMessage:`${W}-queued-message`,queuedMessageRemove:`${W}-queued-message-remove`,composerAttach:`${W}-composer-attach`,composerFileInput:`${W}-composer-file-input`,composerVoice:`${W}-composer-voice`,attachmentChip:`${W}-attachment-chip`,attachmentRemove:`${W}-attachment-remove`,attachmentRetry:`${W}-attachment-retry`,suggestion:`${W}-suggestion`,messageBubble:`${W}-message`,messageRetry:`${W}-message-retry`,messageFile:`${W}-message-file`,messageFeedback:`${W}-message-feedback`,feedbackUp:`${W}-feedback-up`,feedbackDown:`${W}-feedback-down`,messageCopy:`${W}-message-copy`,historyItem:`${W}-history-item`,historyLoadMore:`${W}-history-load-more`,sidebar:`${W}-sidebar`,sidebarToggle:`${W}-sidebar-toggle`,sidebarNewConversation:`${W}-sidebar-new-conversation`,messengerHome:`${W}-messenger-home`,panelNotice:`${W}-panel-notice`,tab:`${W}-tab`,tabBadge:`${W}-tab-badge`,homeView:`${W}-home-view`,homeGreeting:`${W}-home-greeting`,homeBrand:`${W}-home-brand`,backHeader:`${W}-back-header`,contentView:`${W}-content-view`,contentScroll:`${W}-content-scroll`,homeSearch:`${W}-home-search`,helpSearch:`${W}-help-search`,homeRecent:`${W}-home-recent`,homeAsk:`${W}-home-ask`,homeWhatsNew:`${W}-home-whats-new`,homeContentRow:`${W}-home-content-row`,helpArticle:`${W}-help-article`,newsItem:`${W}-news-item`,newsMore:`${W}-news-more`,formField:`${W}-form-field`,toolAskQuestions:`${W}-tool-ask-questions`,toolInputSubmit:`${W}-tool-input-submit`,toolInputSkip:`${W}-tool-input-skip`,toolApproval:`${W}-tool-approval`,toolPreview:`${W}-tool-preview`,toolApprove:`${W}-tool-approve`,toolDecline:`${W}-tool-decline`,toolEdit:`${W}-tool-edit`,toolDecision:`${W}-tool-decision`,typingDots:`${W}-typing-dots`,reasoning:`${W}-reasoning`,replyStopped:`${W}-reply-stopped`,toolAskSummary:`${W}-ask-questions-summary`,toolAskOptions:`${W}-ask-questions-options-toggle`,toolSteps:`${W}-tool-steps`,toolStep:`${W}-tool-step`,source:`${W}-source`,operatorRequest:`${W}-operator-request`,chatNotice:`${W}-chat-notice`,operatorBanner:`${W}-operator-banner`,cancelOperatorRequest:`${W}-cancel-operator-request`,loginBar:`${W}-login-bar`,loginBarAction:`${W}-login-bar-action`,loginBarHide:`${W}-login-bar-hide`,loginGate:`${W}-login-gate`,loginGateAction:`${W}-login-gate-action`,loginGateGuest:`${W}-login-gate-guest`,loggedIn:`${W}-logged-in`};function Ct(e,t){return`${e}-${t}`}var wa=q.cssPrefix;function g_({buttonRef:e,onToggle:t,launcher:r,strings:n,leaving:o,edgeTab:s}){let a=r.variant==="circle"?"":Zy(r,n);return l("button",{ref:e,type:"button",class:`${wa}-fab`,part:"launcher","data-variant":r.variant,"data-size":r.size,"data-edge-tab":s?"true":void 0,"data-leaving":o?"true":void 0,"data-testid":D.launcher,onClick:t,"aria-label":n.launcherOpen,children:[eb(r.icon),a?l("span",{class:`${wa}-fab-label`,children:a}):null]})}function Zy(e,t){return e.label?mt(t,e.label):e.personaName?t.launcherAsk.replace("{name}",mt(t,e.personaName)):""}function eb(e){let t=m_[e];return t?l(t,{}):l(tb,{source:e})}function tb({source:e}){return l("span",{ref:t=>{t&&rb(t,e)},"aria-hidden":"true"})}function rb(e,t){if(e.dataset.svgMounted!==t)try{let n=new DOMParser().parseFromString(t,"image/svg+xml").documentElement;n.tagName.toLowerCase()==="svg"&&(e.replaceChildren(document.importNode(n,!0)),e.dataset.svgMounted=t)}catch{}}function v_({callout:e,launcherPosition:t,strings:r,closeLabel:n,onDismiss:o}){let[s,a]=U(!1),i=B(null),[c,u]=U(!0);return St(()=>{let p=i.current?.parentElement;if(!p)return;let _=()=>u(window.innerWidth-p.getBoundingClientRect().width>=nb);return _(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)}),F(()=>{let p=setTimeout(()=>a(!0),e.delayMs);return()=>clearTimeout(p)},[e.delayMs]),F(()=>{if(!s||e.autoDismissMs<=0)return;let p=setTimeout(o,e.autoDismissMs);return()=>clearTimeout(p)},[s,e.autoDismissMs,o]),s?l("div",{ref:i,class:`${wa}-callout`,role:"status","data-shape":e.shape,"data-position":ob(e.position,t,c),"data-animated":e.animated?"true":void 0,"data-testid":D.callout,children:[l("span",{children:mt(r,e.text)}),l("button",{type:"button",class:`${wa}-callout-close`,onClick:o,"aria-label":n,title:n,"data-testid":D.calloutDismiss,children:l(Dt,{})})]}):null}var nb=200;function ob(e,t,r=!0){let n=t.endsWith("-right"),o=t.startsWith("bottom-");return e==="vertical"||e==="auto"&&!r?o?"top":"bottom":n?"left":"right"}var ib='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function zn(e){function t(r){if(r.key!=="Tab")return;let n=[...e.querySelectorAll(ib)].filter(c=>c.offsetParent!==null||c===document.activeElement);if(n.length===0){r.preventDefault();return}let o=n[0],s=n[n.length-1];if(!o||!s)return;let a=e.getRootNode(),i=a instanceof ShadowRoot?a.activeElement:null;r.shiftKey&&i===o?(r.preventDefault(),s.focus()):!r.shiftKey&&i===s&&(r.preventDefault(),o.focus())}return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}var qr=q.cssPrefix;function ka({title:e,actions:t}){return l("header",{class:`${qr}-back-header`,part:"header","data-variant":"title",children:[l("span",{class:`${qr}-back-spacer`,"aria-hidden":"true"}),l("h1",{class:`${qr}-back-title`,children:e}),t??l("span",{class:`${qr}-back-spacer`,"aria-hidden":"true"})]})}function h_({title:e,backLabel:t,onBack:r,actions:n,testid:o}){return l("header",{class:`${qr}-back-header`,part:"header","data-testid":o,children:[l("button",{type:"button",class:`${qr}-icon-btn`,onClick:r,"aria-label":t,title:t,children:l(Mo,{})}),l("h1",{class:`${qr}-back-title`,children:e}),n??l("span",{class:`${qr}-back-spacer`,"aria-hidden":"true"})]})}function $o({textSig:e,doneSig:t,generativeUi:r=!1,strings:n=mi,onCardAction:o}){let s=B(null),a=B(null);return St(()=>{let i=s.current;if(!i)return;i.classList.add(`${q.cssPrefix}-md`);let c=a.current,u={generativeUi:r,strings:n,onCardAction:o},p=()=>{a.current?.renderer?.dispose();let g=document.createElement("div"),w=r?ap(g,{cssPrefix:q.cssPrefix,strings:n,onAction:o}):void 0,b=vo(vb(Pb(w??Hi(g)))),y=e.value,x=y.length-y_(y);if(!t.value)for(;x>0&&y[x-1]==="_";)x--;let P=Hl(y.slice(0,x));return P&&it(b,P),t.value&&(En(b),w?.finish()),i.replaceChildren(g),{settings:u,container:g,parser:b,renderer:w,lastLen:x,lastText:y.slice(0,x)}},_=c&&c.settings.generativeUi===r&&c.settings.strings===n&&c.settings.onCardAction===o&&e.value.startsWith(c.lastText)?c:p();a.current=_;let d=nr(()=>{let g=e.value,w=t.value;if(g.length<_.lastLen){_=p(),a.current=_;return}let b=Math.max(g.length-y_(g),_.lastLen);if(!w)for(;b>_.lastLen&&g[b-1]==="_";)b--;let y=Math.max(_.lastLen-1,0),x=Hl(g.slice(y,b)).slice(_.lastLen-y);x&&it(_.parser,x),_.lastLen=b,_.lastText=g.slice(0,b),w&&(En(_.parser),_.renderer?.finish())}),f=new MutationObserver(()=>b_(i));f.observe(i,{childList:!0,subtree:!0}),b_(i);function v(g){let w=g.target instanceof Element?g.target.closest("a"):null;if(!w||!(w instanceof HTMLAnchorElement))return;let b=w.getAttribute("href")??"";!b||b.startsWith("#")||(g.preventDefault(),window.open(b,"_blank","noopener,noreferrer"))}return i.addEventListener("click",v),()=>{d(),f.disconnect(),i.removeEventListener("click",v)}},[e,t,r,n,o]),F(()=>()=>{a.current?.renderer?.dispose(),a.current=null},[]),l("div",{ref:s})}function Ta({text:e}){let t=Ce(()=>oe(e),[e]),r=Ce(()=>oe(!0),[]);return l($o,{textSig:t,doneSig:r})}var Ca="\uE000",gb=/([\p{L}\p{N}])(_+)(?=[\p{L}\p{N}])/gu;function y_(e){return(e.match(/^[ \t]*`{3,}/gm)?.length??0)%2===0?0:e.match(/(?:^|\n)[ \t]*`{3,}[^\n`]*\s*$/)?.[0].length??0}function Hl(e){return e.replace(gb,(t,r,n)=>r+Ca.repeat(n.length))}function vb(e){return{...e,add_text:(t,r)=>e.add_text(t,r.replaceAll(Ca,"_")),set_attr:(t,r,n)=>e.set_attr(t,r,n.replaceAll(Ca,"_"))}}var hb=/<(\/?)(?:(Note|Info|Tip|Warning|Danger|Check|Callout)|Tabs?|Steps?|AccordionGroup|Accordion|Expandable|Columns|CardGroup|Card|Frame|CodeGroup|Badge|Icon|Video|Embed|ParamField|ResponseField)\b((?:"[^"]*"|'[^']*'|[^>"'])*?)(\/?)>|(^|\n)([ \t]*)(```[^]*?(?:\n[ \t]*```|$))?/g;function x_(e){let t=0,r="";return e.replace(hb,(n,o,s,a,i,c,u,p)=>{if(o===void 0)return t?c+(p?.split(`
61
+ ${s}`:s;continue}o.startsWith("id:")&&(n=o.slice(3).trim())}if(r==="[DONE]")return"done";if(!r)return null;try{let o=JSON.parse(r);if(!gy(o))throw new TypeError("unrecognized chunk");return Pp.trace("chunk",{type:o.type,eventId:n}),{chunk:o,eventId:n}}catch(o){throw Pp.trace("frame parse failed",{errorType:o instanceof Error?o.name:typeof o,payloadLength:r.length}),new qe("invalid SSE frame","network",void 0,o)}}function gy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof Reflect.get(e,"type")=="string"}var vy=new Set([101,204,205,304]);function hy(e){let t=new Headers;for(let r of e.trim().split(/[\r\n]+/)){let n=r.indexOf(":");n>0&&t.append(r.slice(0,n).trim(),r.slice(n+1).trim())}return t}function Sp(e){return async function(r,n){let o=new Request(r,n),s=await o.blob();return new Promise((a,i)=>{if(o.signal.aborted){i(o.signal.reason);return}let c=new XMLHttpRequest;c.open(o.method,o.url),c.withCredentials=o.credentials==="include",c.responseType="blob",o.headers.forEach((u,p)=>c.setRequestHeader(p,u)),c.upload.addEventListener("progress",u=>{u.lengthComputable&&u.total>0&&e(u.loaded/u.total)}),c.addEventListener("load",()=>{a(new Response(vy.has(c.status)?null:c.response,{status:c.status,statusText:c.statusText,headers:hy(c.getAllResponseHeaders())}))}),c.addEventListener("error",()=>i(new TypeError("Failed to fetch"))),c.addEventListener("abort",()=>i(o.signal.reason)),o.signal.addEventListener("abort",()=>c.abort(),{once:!0}),c.send(s)})}}var rt=ne.scope("transport"),yy="x-user-token",by="x-continue-link";async function $l(e){try{let t=await e.clone().json();if(typeof t!="object"||t===null)return{};let r=Reflect.get(t,"error");return{error:typeof r=="string"?r:void 0,loginUrl:zi(Reflect.get(t,"login")).url}}catch{return{}}}var wp=6e4,Py=1e4,Dl=50,Mp=new WeakMap;function On(e){return Mp.get(e)}function Io(e,t){return Mp.set(e,t),e}function kp(e){return Math.max(e?.upsertRevision??0,e?.read?.revision??0)}function xy(e,t){return e.conversationId===t.conversationId&&e.title===t.title&&e.lastMessageAt===t.lastMessageAt&&e.preview===t.preview&&e.hasUnread===t.hasUnread&&e.controlState===t.controlState}function Pr(e,t,r=!0){switch(t.type){case"snapshot":{let n=new Map(e.map(a=>[a.conversationId,a])),o=e.filter(a=>(On(a)?.activityRevision??0)>t.requestedRevision).toSorted((a,i)=>(On(i)?.activityRevision??0)-(On(a)?.activityRevision??0)),s=new Set(o.map(a=>a.conversationId));return[...o,...t.result.conversations.filter(a=>!s.has(a.conversationId)).map(a=>{let i=n.get(a.conversationId);if(!i)return a;let c=On(i);return(c?.upsertRevision??0)>t.requestedRevision?i:c?.read&&!i.hasUnread&&c.read.lastMessageAt===a.lastMessageAt?Io({...a,hasUnread:!1},{upsertRevision:0,read:c.read}):a})]}case"read":{let n=e.findIndex(c=>c.conversationId===t.conversationId&&(t.lastMessageAt===void 0||c.lastMessageAt===t.lastMessageAt)),o=e[n];if(!o)return e;let s=On(o);if(kp(s)>t.revision)return e;let a=t.lastMessageAt??o.lastMessageAt,i={upsertRevision:s?.upsertRevision??0,...s?.activityRevision===void 0?{}:{activityRevision:s.activityRevision},read:{revision:t.revision,...a?{lastMessageAt:a}:{}}};return o.hasUnread?e.map((c,u)=>u===n?Io({...c,hasUnread:!1},i):c):(Io(o,i),e)}case"upsert":{let n=e.findIndex(u=>u.conversationId===t.conversation.conversationId);if(n<0&&!r)return e;let o=e[n],s=o?On(o):void 0;if(kp(s)>t.revision)return e;let a=t.activity?t.revision:s?.activityRevision,i={upsertRevision:t.revision,...a===void 0?{}:{activityRevision:a},...!t.conversation.hasUnread&&s?.read?{read:s.read}:{}},c=o?{...o,...t.conversation,title:o.title}:{...t.conversation};return o&&xy(o,c)?(Io(o,i),e):(Io(c,i),t.activity?[c,...e.filter(u=>u.conversationId!==c.conversationId)]:o?e.map((u,p)=>p===n?c:u):[...e,c])}default:return t}}var Cp=3,Sy=400,wy=3e4,ky=6e4,Cy=1e4,Ty=6e4,Iy=15e3,Ay=1024*1024,Tp=new Set([408,425,429,500,502,503,504]);function Ip(e){return Sy*2**e+Math.floor(Math.random()*250)}function Ry(e){return Ty+Math.ceil(e/Ay)*Iy}function Ey(e){let t=e.get("retry-after");if(!t)return null;let r=Number(t),n=Number.isFinite(r)?r*1e3:Date.parse(t)-Date.now();return Number.isFinite(n)&&n>=0?Math.min(n,3e4):null}var Ao=class{constructor(t){le(this,"ttlMs",t);le(this,"map",new Map)}getOrFetch(t,r){let n=this.map.get(t);if(n&&performance.now()-n.at<this.ttlMs)return n.result;let o={at:performance.now(),result:r().then(s=>(o.value=s,s)).catch(s=>{throw this.map.get(t)===o&&this.map.delete(t),s})};return this.map.set(t,o),o.result}peek(t){let r=this.map.get(t);if(r?.value!==void 0&&performance.now()-r.at<this.ttlMs)return r.value}update(t){for(let r of this.map.values()){if(r.value!==void 0){let n=t(r.value);r.value=n,r.result=Promise.resolve(n);continue}r.result=r.result.then(n=>{let o=t(n);return r.value=o,o})}}delete(t){this.map.delete(t)}};function Ap(e,t){let{translations:r,defaultLocale:n,...o}=Qr(e,t);return o}var ma=class{constructor(t){le(this,"opts",t);le(this,"conversationListeners",new Set);le(this,"conversationRevision",0);le(this,"visitorId");le(this,"conversationId");le(this,"userContext");le(this,"pageContext");le(this,"locale");le(this,"userTokenSource");le(this,"userToken");le(this,"userTokenRequest");le(this,"conversationsCache",new Ao(Py));le(this,"contentCache",new Ao(wp));le(this,"contentCollectionsCache",new Ao(wp))}setUserToken(t){this.userTokenSource=t,this.userToken=typeof t=="string"&&t||void 0,this.userTokenRequest=typeof t=="function"?this.fetchUserToken():void 0,this.opts.onLoginState?.(t?{status:"pending"}:{status:"anonymous"})}async userSub(){return this.userTokenRequest&&await this.userTokenRequest,this.userToken?gu(this.userToken):void 0}reportLogin(t){this.opts.onLoginState?.(t==="loggedIn"&&this.userToken?{status:t,...mu(this.userToken)}:{status:t==="loggedIn"?"anonymous":t})}async refreshUserToken(){let t=this.userToken;return typeof this.userTokenSource!="function"?!1:(this.userTokenRequest&&await this.userTokenRequest,this.userToken===t&&await this.fetchUserToken(),!!this.userToken&&this.userToken!==t)}setContext(t,r){this.userContext=t,this.pageContext=r}setLocale(t){this.locale=t}primeIdentity(t,r){t&&(this.visitorId=t),r&&(this.conversationId=r)}envelope(){let t={_ev:Tn};this.visitorId&&(t.visitorId=this.visitorId),this.conversationId&&(t.conversationId=this.conversationId),this.locale&&(t.locale=this.locale);let r=Ol(this.userContext,this.pageContext);return r&&(t[wl]=r),t}withEnvelope(t){return{...this.envelope(),...t}}appendEnvelope(t){for(let[r,n]of Object.entries(this.envelope()))t.append(r,n);return t}withEnvelopeQuery(t){let r=new URL(this.url(t));for(let[n,o]of Object.entries(this.envelope()))r.searchParams.has(n)||r.searchParams.set(n,o);return r.toString()}async handshake(t){rt.debug("handshake \u2192",{visitorId:t.visitorId,conversationId:t.conversationId,locale:t.locale});let r=br("handshake",await this.postJson(kt.handshake,t,"handshake"),Ep),n=r.loginStatus==="expired"&&await this.refreshUserToken()?br("handshake",await this.postJson(kt.handshake,t,"handshake"),Ep):r;return this.reportLogin(n.loginStatus??(this.userToken?"loggedIn":"anonymous")),rt.debug("handshake \u2190",{visitorId:n.visitorId,conversationId:n.conversationId,hasWelcome:!!n.welcome,hasConfig:!!n.config,rebind:n.rebind}),this.visitorId=n.visitorId,this.conversationId=n.conversationId,n}async uploadFile(t,r,n){rt.debug("uploadFile \u2192",{name:t.name,size:t.size,type:t.type});let o=new FormData;o.append("file",t,t.name);let s=br("upload",await this.postForm(this.uploadPath,o,"upload",r,Ry(t.size),n),Ny);return rt.debug("uploadFile \u2190",{id:s.id,url:s.url}),s}async transcribe(t,r="audio/webm"){rt.debug("transcribe \u2192",{size:t.size,mimeType:r});let n=new FormData;n.append("audio",t,`voice.${My(r)}`),n.append("mimeType",r);let o=br("transcribe",await this.postForm(this.transcribePath,n,"transcribe"),Oy);return rt.debug("transcribe \u2190",{textLen:o.text.length}),o}subscribeConversationChanges(t){return this.conversationListeners.add(t),()=>this.conversationListeners.delete(t)}publishConversation(t,r=!1){let n={type:"upsert",conversation:t,revision:++this.conversationRevision,...r?{activity:!0}:{}};this.conversationsCache.update(o=>{let s=o.pagination.page===1,a=o.conversations.some(_=>_.conversationId===t.conversationId),i=Pr(o.conversations,n,s&&r),c=s&&i.length>o.pagination.limit?i.slice(0,o.pagination.limit):i;if(!s||!r||a||o.pagination.hasNext)return c===o.conversations?o:{...o,conversations:c};let u=Math.max(o.pagination.total,o.conversations.length)+1,p=Math.ceil(u/o.pagination.limit);return{...o,conversations:c,pagination:{...o.pagination,total:u,totalPages:p,hasNext:o.pagination.page<p}}});for(let o of this.conversationListeners)o(n)}localeCacheKey(t){return`${this.locale??""}|${JSON.stringify(t,Object.keys(t).toSorted())}`}peekConversations(t={}){return this.conversationsCache.peek(this.localeCacheKey(t))}listConversations(t={},r=!1){if((t.page??1)>1)return this.fetchConversations(t);let n=this.localeCacheKey(t),o=this.conversationRevision;r&&this.conversationsCache.delete(n);let s=this.conversationsCache.getOrFetch(n,()=>this.fetchConversations(t));return r?s.then(a=>{let i={type:"snapshot",result:a,requestedRevision:o};for(let c of this.conversationListeners)c(i);return a}):s}async fetchConversations(t){let r=new URL(this.url(kt.listConversations));return t.visitorId&&r.searchParams.set("visitorId",t.visitorId),t.page&&r.searchParams.set("page",String(t.page)),t.limit&&r.searchParams.set("limit",String(t.limit)),t.ids?.length&&r.searchParams.set("ids",t.ids.join(",")),br("listConversations",await this.getJson(r.toString(),"listConversations"),$y)}async loadConversation(t,{ids:r=[],beforeId:n,beforeCreatedAt:o}={}){let s=new URL(this.url(kt.listMessages));s.searchParams.set("conversationId",t),s.searchParams.set("limit",String(Dl)),r.length>0&&s.searchParams.set("ids",r.join(",")),n&&s.searchParams.set("beforeId",n),o&&s.searchParams.set("beforeCreatedAt",o);let a=br("loadConversation",await this.getJson(s.toString(),"loadConversation"),Dy);return{...a,messages:a.messages.toReversed()}}async markRead(t,r){if(!this.visitorId||!t)return;let n={type:"read",conversationId:t,...r===void 0?{}:{lastMessageAt:r},revision:++this.conversationRevision};this.conversationsCache.update(o=>{let s=Pr(o.conversations,n);return s===o.conversations?o:{...o,conversations:s}});for(let o of this.conversationListeners)o(n);try{await this.postJson(kt.markRead,{conversationId:t},"markRead",!0)}catch(o){rt.debug("markRead failed (non-fatal)",{err:o})}}async requestOperator(){if(!(!this.visitorId||!this.conversationId))try{return Rp("requestOperator",await this.postJson(kt.requestOperator,{},"requestOperator"))}catch(t){rt.debug("requestOperator failed (non-fatal)",{err:t});return}}async emailTranscript(t){return br("emailTranscript",await this.postJson(kt.emailTranscript,{email:t},"emailTranscript"),qy)}async cancelOperatorRequest(){if(!(!this.visitorId||!this.conversationId))try{return Rp("cancelOperatorRequest",await this.postJson(kt.cancelOperatorRequest,{},"cancelOperatorRequest"))}catch(t){rt.debug("cancelOperatorRequest failed (non-fatal)",{err:t});return}}listContent(t={}){return this.contentCache.getOrFetch(JSON.stringify(t,Object.keys(t).toSorted()),()=>this.fetchContent(t)).then(r=>({...r,items:r.items.map(n=>Ap(n,this.locale))}))}async fetchContent(t){let r=new URL(this.dataUrl(kt.content));for(let[o,s]of Object.entries(t))s!==void 0&&r.searchParams.set(o,Array.isArray(s)?s.join(","):String(s));let n=br("listContent",await this.getJson(r.toString(),"listContent"),Uy);return{...n,items:n.items??[]}}async setContentVote(t){try{await this.postJson(this.dataUrl(kt.contentVoteSet),t,"setContentVote")}catch{}}listContentCollections(t){return this.contentCollectionsCache.getOrFetch(t.join(","),()=>this.fetchContentCollections(t)).then(r=>({items:r.items.map(n=>Ap(n,this.locale))}))}async fetchContentCollections(t){let r=new URL(this.dataUrl(kt.contentCollections));return t.length&&r.searchParams.set("ids",t.join(",")),{items:br("listContentCollections",await this.getJson(r.toString(),"listContentCollections"),By).items??[]}}async saveUserPrefs(t){await this.postJson(kt.updateSettings,{userPrefs:t},"saveUserPrefs")}get uploadPath(){return this.opts.endpoints?.upload??"/pai/upload-file"}get transcribePath(){return this.opts.endpoints?.transcribe??"/pai/transcribe-audio"}async submitFeedback(t){rt.debug("submitFeedback \u2192",{messageId:t.messageId,value:t.value});try{await this.postJson(kt.messageFeedback,{messageId:t.messageId,set:{feedback:t.value}},"submitFeedback")}catch(r){rt.debug("submitFeedback failed (non-fatal)",{err:r})}}async sendTurn(t,r={}){rt.debug("message \u2192",{conversationId:t.conversationId,visitorId:t.visitorId,messageCount:t.messages.length});let n=JSON.stringify({...this.withEnvelope(t),[wl]:Ol(this.userContext,this.pageContext,this.opts.recentHostEvents)}),o=r.keepalive===!0&&new Blob([n]).size<ky;try{return await this.runWithAbort(async s=>{let a=await this.withFreshUserToken(()=>this.fetchImpl(this.url(kt.streamMessage),{method:"POST",credentials:"omit",headers:{accept:"application/json","content-type":"application/json",...this.headersFor(this.url(kt.streamMessage))},body:n,keepalive:o,signal:s}));if(a.status!==202)throw new qe(`sendTurn failed: expected 202, received ${a.status}`,"server",a.status,void 0,zy(a),(await $l(a)).error);let i;try{i=await a.json()}catch(c){throw s?.aborted?c:new qe("sendTurn failed: invalid acknowledgement","server",a.status,c)}if(!Ly(i))throw new qe("sendTurn failed: invalid acknowledgement","server",a.status);return i},void 0,wy)}catch(s){throw s instanceof qe?s:new qe("sendTurn failed: network error","network",void 0,s)}}cancelTurn(t,r){!this.visitorId||!t||!r||(rt.debug("cancel stream",{conversationId:t,runId:r,visitorId:this.visitorId}),this.fetchImpl(this.url(kt.cancelStream),{method:"POST",credentials:"omit",headers:{"content-type":"application/json",...this.headersFor(this.url(kt.cancelStream))},body:JSON.stringify(this.withEnvelope({conversationId:t,runId:r})),keepalive:!0}).catch(n=>rt.debug("cancel POST failed (non-fatal)",{err:n})))}async connectResumeStream(t){let r=new AbortController;function n(){return r.abort(t.signal.reason)}t.signal.aborted?n():t.signal.addEventListener("abort",n,{once:!0});let o=setTimeout(()=>r.abort(),Cy);function s(){clearTimeout(o),t.signal.removeEventListener("abort",n)}let a;try{a=await this.withFreshUserToken(()=>this.fetchImpl(this.resumeUrl(),{method:"GET",credentials:"omit",cache:"no-store",headers:{accept:"text/event-stream",...this.headersFor(this.resumeUrl())},signal:r.signal}))}catch(c){return s(),t.signal.aborted||rt.debug("resume-stream fetch failed \u2014 reconnecting",{err:c}),"held"}if(!a.ok)return s(),a.status===409||Tp.has(a.status)?(rt.debug("resume-stream \u2192 transient response; reconnecting",{status:a.status}),"held"):(rt.debug("resume-stream \u2192 endpoint unavailable",{status:a.status}),"unavailable");if(!a.body)return s(),rt.debug("resume-stream \u2192 bodyless response; stopping",{status:a.status}),"unavailable";if(!(a.headers.get("content-type")??"").includes("text/event-stream"))return s(),rt.debug("resume-stream \u2192 non-SSE response; stopping"),"unavailable";let i=!1;try{for await(let{chunk:c}of xp(a,r.signal,u=>{i||u!=="connected"||(i=!0,clearTimeout(o),t.onConnected())})){if(t.signal.aborted)return"held";t.onChunk(c)}}catch(c){if(t.signal.aborted)return"held";rt.debug("resume-stream segment dropped \u2014 reconnecting",{err:c})}finally{s()}return"held"}resumeUrl(){return this.withEnvelopeQuery(kt.streamResume)}async postJson(t,r,n,o=!1){let s=await this.fetchWithRetry(()=>[this.url(t),{method:"POST",credentials:"omit",headers:{"content-type":"application/json",...this.headersFor(this.url(t))},body:JSON.stringify(this.withEnvelope(r)),...o?{keepalive:!0}:{}}],n);return this.assertOk(s,n)}async postForm(t,r,n,o,s,a){let i=a?Sp(a):this.fetchImpl;return this.runWithAbort(async c=>{let u=await this.withFreshUserToken(()=>i(this.url(t),{method:"POST",credentials:"omit",headers:this.headersFor(this.url(t)),body:this.appendEnvelope(r),signal:c}));return this.assertOk(u,n)},o,s)}async runWithAbort(t,r,n){if(!r&&n===void 0)return t();let o=new AbortController;function s(){return o.abort(r?.reason)}r?.aborted?s():r?.addEventListener("abort",s,{once:!0});let a=n===void 0?void 0:setTimeout(()=>o.abort(),n);try{return await t(o.signal)}finally{a!==void 0&&clearTimeout(a),r?.removeEventListener("abort",s)}}async getJson(t,r){let n=await this.fetchWithRetry(()=>[this.withEnvelopeQuery(t),{method:"GET",credentials:"omit",headers:{accept:"application/json",...this.headersFor(this.url(t))}}],r);return this.assertOk(n,r)}async fetchWithRetry(t,r){for(let n=0;;n++){let o;try{o=await this.withFreshUserToken(()=>this.fetchImpl(...t()))}catch(a){if(n>=Cp)throw new qe(`${r} failed: network error`,"network",void 0,a);rt.debug("request network error \u2014 retrying",{label:r,attempt:n}),await ln(Ip(n));continue}if(o.ok||!Tp.has(o.status)||n>=Cp)return o;let s=Ey(o.headers)??Ip(n);rt.debug("request retryable status \u2014 retrying",{label:r,status:o.status,attempt:n,wait:s}),await ln(s)}}async assertOk(t,r){if(!t.ok)throw new qe(`${r} failed: ${t.status}`,"server",t.status,void 0,void 0,(await $l(t)).error);return await t.json()}fetchUserToken(){let t=this.userTokenSource;if(typeof t!="function")return Promise.resolve();let r=Promise.resolve().then(t).then(n=>{this.userTokenSource===t&&(this.userToken=n||void 0)},n=>{rt.warn("userToken function failed",{err:n}),this.userTokenSource===t&&(this.userToken=void 0)});return this.userTokenRequest=r,r}headersFor(t){let r=!/^https?:\/\//i.test(t)||t.startsWith(`${this.opts.agentApiBaseUrl}/`);return{...this.opts.auth.headers(),...r&&this.userToken?{[yy]:this.userToken}:{},...r&&this.opts.continueLink?{[by]:this.opts.continueLink}:{}}}async withFreshUserToken(t){this.userTokenRequest&&await this.userTokenRequest;let r=await t();if(r.status!==401)return r;let n=await $l(r);if(n.error==="USER_TOKEN_REQUIRED")return this.opts.onLoginState?.({status:"required",loginUrl:n.loginUrl}),r;if(!this.userToken)return r;if(!await this.refreshUserToken())return this.reportLogin("expired"),r;this.reportLogin("loggedIn");let o=await t();return o.status===401&&this.reportLogin("expired"),o}url(t){return/^https?:\/\//i.test(t)?t:`${this.opts.agentApiBaseUrl}${t}`}dataUrl(t){return`${this.opts.dataApiBaseUrl}${t}`}get fetchImpl(){return this.opts.fetchImpl??globalThis.fetch.bind(globalThis)}};function My(e){return e.includes("webm")?"webm":e.includes("ogg")?"ogg":e.includes("mp4")||e.includes("m4a")?"m4a":e.includes("mpeg")?"mp3":e.includes("wav")?"wav":"bin"}function Ly(e){if(typeof e!="object"||e===null)return!1;let t=Reflect.get(e,"status"),r=Reflect.get(e,"conversationId"),n=Reflect.get(e,"runId");return t==="accepted"&&typeof r=="string"&&r.length>0&&(n===void 0||typeof n=="string"&&n.length>0)}function Ht(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function br(e,t,r){if(!r(t))throw new qe(`${e} failed: invalid response body`,"server");return t}function Rp(e,t){let r=sa(Ht(t)?t.controlState:void 0);if(!r)throw new qe(`${e} failed: invalid response body`,"server");return r}function Ep(e){return!(!Ht(e)||typeof e.visitorId!="string"||typeof e.conversationId!="string"||e.welcome!==void 0&&(!Ht(e.welcome)||e.welcome.messages!==void 0&&!Array.isArray(e.welcome.messages)))}function Ny(e){return Ht(e)&&typeof e.id=="string"&&typeof e.url=="string"&&typeof e.originalName=="string"&&typeof e.mimeType=="string"&&typeof e.fileSize=="number"}function Oy(e){return Ht(e)&&typeof e.text=="string"}function Lp(e){return Ht(e)&&typeof e.page=="number"&&typeof e.limit=="number"&&typeof e.total=="number"&&typeof e.totalPages=="number"&&typeof e.hasNext=="boolean"&&typeof e.hasPrev=="boolean"}function $y(e){return Ht(e)&&Array.isArray(e.conversations)&&e.conversations.every(Ht)&&Lp(e.pagination)}function Dy(e){return Ht(e)&&typeof e.conversationId=="string"&&Array.isArray(e.messages)&&e.messages.every(Ht)}function qy(e){return Ht(e)&&typeof e.status=="string"&&typeof e.to=="string"}function Uy(e){return Ht(e)&&(e.items===void 0||Array.isArray(e.items)&&e.items.every(Ht))&&(e.pagination===void 0||Lp(e.pagination))}function By(e){return Ht(e)&&(e.items===void 0||Array.isArray(e.items)&&e.items.every(Ht))}function zy(e){let t=Number(e.headers.get("retry-after"));return Number.isInteger(t)&&t>0?t:void 0}function $n(e,t,r){switch(e){case"clear":case"sound":case"history":case"language":case"theme":case"textSize":return!0;case"popOut":return t!=="standalone"&&t!=="page";case"expand":return t==="floating";case"fullscreen":return t!=="standalone";case"close":return t==="standalone"||t==="page"?!1:t==="inline"?r==="fullscreen":!0}}function ga(e,t,r){return $n("close",e,t)?r.includes("close"):!1}function Np(e,t){return e==="inline"&&t==="fullscreen"?"exit-fullscreen":"close"}function Dn(e,t,r,n){let o={role:r,text:n};e.emit("message",o),t.onMessage?.(o)}function Op(e){return Object.fromEntries(e.map(t=>[t,[]]))}function ql(e,t,r){return e.includes(t)?t:e.includes(r)?r:e[0]??""}function $p(e,t,r){let n=[...new Set(t)],o=ql(n,e,""),s=oe({activeTab:o,stacks:Op(n)});return{sig:s,reconcile(a,i){let c=[...new Set(a)],u=s.value,p=ql(c,u.activeTab,i),_=Object.fromEntries(c.map(f=>[f,u.stacks[f]??[]])),d=p===u.activeTab&&c.length===Object.keys(u.stacks).length&&c.every(f=>u.stacks[f]===_[f]);n=c,!d&&(s.value={activeTab:p,stacks:_},p!==u.activeTab&&p&&r?.(p))},switchTab(a){!(a in s.value.stacks)||s.value.activeTab===a||(s.value={...s.value,activeTab:a},r?.(a))},open(a,i){let c=s.value;a in c.stacks&&(s.value={activeTab:a,stacks:{...c.stacks,[a]:i?[i]:[]}},c.activeTab!==a&&r?.(a))},push(a){let i=s.value,c=i.stacks[i.activeTab]??[];s.value={...i,stacks:{...i.stacks,[i.activeTab]:[...c,a]}}},pop(){let a=s.value,i=a.stacks[a.activeTab]??[];i.length!==0&&(s.value={...a,stacks:{...a.stacks,[a.activeTab]:i.slice(0,-1)}})},reset(a){s.value={activeTab:ql(n,a,""),stacks:Op(n)}}}}function Dp(e){return e.stacks[e.activeTab]??[]}function qp(e){return Dp(e).at(-1)}function Up(e){return Dp(e).length===0}function Ro(e){/^(https?:)?\//i.test(e)&&window.open(e,"_blank","noopener,noreferrer")}function va(e,t,r){return e==="page"?"page":e==="standalone"?"standalone":e==="inline"?t==="fullscreen"?"fullscreen":"inline":e==="modal"||e==="drawer"?r?t==="fullscreen"?"fullscreen":e:"closed":r?t==="fullscreen"?"fullscreen":t==="expanded"?"expanded":"open":"closed"}var Fy=900,Hy=640;function Ul(e,t,r){if(e==="standalone"||e==="page")return"fullscreen";let n=t.initialSize;return n==="expanded"||n==="fullscreen"||n==="normal"?n:r>0&&r<Hy?"fullscreen":r>=(t.autoSizeBreakpoint??Fy)?"expanded":"normal"}function Eo(e,t,r,n=null){let s=e.mode==="inline"||e.mode==="standalone"||e.mode==="page"||(r??!e.startMinimized),i=e.mode!=="standalone"&&e.mode!=="page"&&e.mode!=="inline"&&n?n:Ul(e.mode,e.size,t);return{panelOpen:s,panelSize:i}}function qn(){return typeof window>"u"?0:window.innerWidth}var re={fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},ha=`${q.cssPrefix}-icon-dir`;function Bl(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M21 12a8 8 0 0 1-12 6.93L3 21l1.65-5.16A8 8 0 1 1 21 12Z"})})}function Dt(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M18 6 6 18M6 6l12 12"})})}function Bp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M12 5v14M5 12h14"})})}function zp(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:[l("path",{d:"m22 2-7 20-4-9-9-4Z"}),l("path",{d:"M22 2 11 13"})]})}function Fp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M12 19V5M5 12l7-7 7 7"})})}function Hp(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:l("path",{d:"M3 20V4l18 8-18 8Z"})})}function ya(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:l("path",{d:"m9 18 6-6-6-6"})})}function Dr(){return l("svg",{...re,"aria-hidden":"true",children:l("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}function ba(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"m21 11-9 9a5.5 5.5 0 0 1-7.78-7.78l8.49-8.49a3.67 3.67 0 0 1 5.19 5.19l-8.49 8.49a1.83 1.83 0 0 1-2.6-2.6l7.78-7.78"})})}function jp(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"9",y:"2",width:"6",height:"12",rx:"3"}),l("path",{d:"M5 10a7 7 0 0 0 14 0M12 19v3"})]})}function xr(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"8",r:"4.5"}),l("path",{d:"M4.5 20.5a7.5 7.5 0 0 1 15 0"})]})}function Vp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M3 8V3h5M21 8V3h-5M3 16v5h5M21 16v5h-5"})})}function Wp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M8 3v5H3M16 3v5h5M8 21v-5H3M16 21v-5h5"})})}function Gp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M3 3h7v2H5v5H3zM21 3h-7v2h5v5h2zM3 21h7v-2H5v-5H3zM21 21h-7v-2h5v-5h2z"})})}function Kp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M10 3v5H3M14 3v5h7M10 21v-5H3M14 21v-5h7"})})}function Qp(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M14 3h7v7M21 3l-9 9"}),l("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})}function Yp(){return l("svg",{...re,"aria-hidden":"true",viewBox:"0 0 10 10",children:l("path",{d:"M9 1L1 9M9 5L5 9M9 9H9",strokeWidth:"1.5"})})}function Jp(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"5",r:"1.5",fill:"currentColor",stroke:"none"}),l("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l("circle",{cx:"12",cy:"19",r:"1.5",fill:"currentColor",stroke:"none"})]})}function Xp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M11 5 6 9H2v6h4l5 4zM15 9a5 5 0 0 1 0 6M18 7a9 9 0 0 1 0 10"})})}function Zp(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M11 5 6 9H2v6h4l5 4zM22 9l-6 6M16 9l6 6"})})}function e_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M3 18 8 6l5 12M4.7 14h6.6"}),l("path",{d:"M14.5 18l3.2-7 3.2 7M15.6 15.8h4.2"})]})}function Un(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M20 6 9 17l-5-5"})})}function t_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M3 3v6h6"}),l("path",{d:"M3.05 13A9 9 0 1 0 6 5.3L3 9"}),l("path",{d:"M12 7v5l3 2"})]})}function r_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("path",{d:"M2 12h20"}),l("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}function Mo(){return l("svg",{...re,class:ha,"aria-hidden":"true",children:l("path",{d:"M19 12H5M12 19l-7-7 7-7"})})}function n_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M12 20h9"}),l("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function Pa(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),l("path",{d:"m3 7 9 6 9-6"})]})}function sr(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"m6 9 6 6 6-6"})})}function xa(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"}),l("path",{d:"M14 2v6h6"})]})}function jy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"m12 3-1.5 4.5L6 9l4.5 1.5L12 15l1.5-4.5L18 9l-4.5-1.5Z"}),l("path",{d:"M19 15v4M17 17h4M5 3v2M4 4h2"})]})}function zl(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z"})})}function Lo(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),l("path",{d:"M12 17h.01"})]})}function Vy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"m15 4 3 3-9 9-3-3z"}),l("path",{d:"M18 2v2M20 4h2M3 20l3-3M3 16h2M5 14v2"})]})}function Wy(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"4",y:"8",width:"16",height:"12",rx:"2"}),l("path",{d:"M12 8V4"}),l("circle",{cx:"12",cy:"3",r:"1"}),l("path",{d:"M2 14h2M20 14h2M9 13h.01M15 13h.01M9.5 17h5"})]})}function Gy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M4 14v-2a8 8 0 0 1 16 0v2"}),l("rect",{x:"2",y:"14",width:"4",height:"6",rx:"1.5"}),l("rect",{x:"18",y:"14",width:"4",height:"6",rx:"1.5"}),l("path",{d:"M20 20v1a3 3 0 0 1-3 3h-5"})]})}function Ky(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("circle",{cx:"12",cy:"12",r:"4"}),l("path",{d:"m4.93 4.93 4.24 4.24M14.83 14.83l4.24 4.24M14.83 9.17l4.24-4.24M4.93 19.07l4.24-4.24"})]})}function Fl(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"11",cy:"11",r:"7"}),l("path",{d:"m21 21-4.3-4.3"})]})}function o_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]})}function i_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M3 9.5 12 3l9 6.5"}),l("path",{d:"M5 9v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9"})]})}function Sa(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"m3 11 15-5v12L3 13z"}),l("path",{d:"M3 11v2a2 2 0 0 0 2 2h1V9H5a2 2 0 0 0-2 2z"}),l("path",{d:"M7 15v3a2 2 0 0 0 4 0v-2"}),l("path",{d:"M21 10a3 3 0 0 1 0 4"})]})}function No(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z"}),l("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})}function a_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"4"}),l("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"})]})}function s_(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}function l_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"M12 3v18"}),l("path",{d:"M12 3a9 9 0 0 1 0 18z",fill:"currentColor",stroke:"none"})]})}function Qy(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),l("path",{d:"M8 11a2.5 2.5 0 0 0 5 0"}),l("path",{d:"m20 20-4.4-4.4"})]})}function Yy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M12 3.5 13.6 9 19 10.5 13.6 12 12 17.5 10.4 12 5 10.5 10.4 9z"}),l("path",{d:"M18.5 4v3M20 5.5h-3M5.5 16v2.5M6.75 17.25h-2.5"})]})}function Jy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M4 18h16"}),l("path",{d:"M5 18a7 7 0 0 1 14 0"}),l("path",{d:"M12 8V6"}),l("path",{d:"M10 6h4"})]})}function Xy(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M7 11V6.5a1.5 1.5 0 0 1 3 0V10"}),l("path",{d:"M10 10V5.5a1.5 1.5 0 0 1 3 0V10"}),l("path",{d:"M13 10V6.5a1.5 1.5 0 0 1 3 0V12"}),l("path",{d:"M16 9.5a1.5 1.5 0 0 1 3 0v2.5a7 7 0 0 1-7 7 7 7 0 0 1-6.4-4.2L4 12.5a1.5 1.5 0 0 1 2.6-1.5L7 11"})]})}function c_(){return l("svg",{...re,"aria-hidden":"true",children:[l("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),l("path",{d:"M5 15a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2"})]})}function d_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M7 10v11H4a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1z"}),l("path",{d:"M7 10l4-7a2.5 2.5 0 0 1 2.5 2.5V8h5a2 2 0 0 1 2 2.3l-1.2 8A2 2 0 0 1 17.3 20H7"})]})}function u_(){return l("svg",{...re,"aria-hidden":"true",children:[l("path",{d:"M17 14V3h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1z"}),l("path",{d:"M17 14l-4 7a2.5 2.5 0 0 1-2.5-2.5V16h-5a2 2 0 0 1-2-2.3l1.2-8A2 2 0 0 1 6.7 4H17"})]})}function p_(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"3.5"}),l("path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M19.1 4.9l-2.1 2.1M7 17l-2.1 2.1"})]})}function __(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"M12 7v5l3 2"})]})}function cn(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]})}function Oo(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"9"}),l("path",{d:"m15 9-6 6M9 9l6 6"})]})}function f_(){return l("svg",{...re,"aria-hidden":"true",children:l("path",{d:"M12 18V5M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294M17.996 5.125a4 4 0 012.526 5.77M18 18a4 4 0 002-7.465M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517M6 18a4 4 0 01-2-7.465M6.004 5.125a4 4 0 00-2.526 5.77"})})}function Bn(){return l("svg",{...re,"aria-hidden":"true",children:[l("circle",{cx:"12",cy:"12",r:"10"}),l("path",{d:"M12 8v4M12 16h.01"})]})}var m_={chat:Bl,message:zl,bubbles:No,spark:jy,wand:Vy,bot:Wy,help:Lo,lifebuoy:Ky,headset:Gy,search:Qy,sparkles:Yy,concierge:Jy,wave:Xy};var W=q.cssPrefix,D={launcher:`${W}-launcher`,callout:`${W}-callout`,calloutDismiss:`${W}-callout-dismiss`,panel:`${W}-panel`,panelHeader:`${W}-panel-header`,resizeGrip:`${W}-resize-grip`,scrollToBottom:`${W}-scroll-to-bottom`,loadPreviousMessages:`${W}-load-previous-messages`,actionHistory:`${W}-action-history`,actionClose:`${W}-action-close`,emailTranscriptSheet:`${W}-email-transcript-sheet`,emailTranscriptEmail:`${W}-email-transcript-email`,emailTranscriptSend:`${W}-email-transcript-send`,langSegment:`${W}-lang-segment`,composer:`${W}-composer`,composerInput:`${W}-composer-input`,composerCount:`${W}-composer-count`,composerSend:`${W}-composer-send`,composerStop:`${W}-composer-stop`,compactionStatus:`${W}-compaction-status`,messageQueue:`${W}-message-queue`,queuedMessage:`${W}-queued-message`,queuedMessageRemove:`${W}-queued-message-remove`,composerAttach:`${W}-composer-attach`,composerFileInput:`${W}-composer-file-input`,composerVoice:`${W}-composer-voice`,attachmentChip:`${W}-attachment-chip`,attachmentRemove:`${W}-attachment-remove`,attachmentRetry:`${W}-attachment-retry`,suggestion:`${W}-suggestion`,messageBubble:`${W}-message`,messageRetry:`${W}-message-retry`,messageFile:`${W}-message-file`,messageFeedback:`${W}-message-feedback`,feedbackUp:`${W}-feedback-up`,feedbackDown:`${W}-feedback-down`,messageCopy:`${W}-message-copy`,historyItem:`${W}-history-item`,historyLoadMore:`${W}-history-load-more`,sidebar:`${W}-sidebar`,sidebarToggle:`${W}-sidebar-toggle`,sidebarNewConversation:`${W}-sidebar-new-conversation`,messengerHome:`${W}-messenger-home`,panelNotice:`${W}-panel-notice`,tab:`${W}-tab`,tabBadge:`${W}-tab-badge`,homeView:`${W}-home-view`,homeGreeting:`${W}-home-greeting`,homeBrand:`${W}-home-brand`,backHeader:`${W}-back-header`,contentView:`${W}-content-view`,contentScroll:`${W}-content-scroll`,homeSearch:`${W}-home-search`,helpSearch:`${W}-help-search`,homeRecent:`${W}-home-recent`,homeAsk:`${W}-home-ask`,homeWhatsNew:`${W}-home-whats-new`,homeContentRow:`${W}-home-content-row`,helpArticle:`${W}-help-article`,newsItem:`${W}-news-item`,newsMore:`${W}-news-more`,formField:`${W}-form-field`,toolAskQuestions:`${W}-tool-ask-questions`,toolInputSubmit:`${W}-tool-input-submit`,toolInputSkip:`${W}-tool-input-skip`,toolApproval:`${W}-tool-approval`,toolPreview:`${W}-tool-preview`,toolApprove:`${W}-tool-approve`,toolDecline:`${W}-tool-decline`,toolEdit:`${W}-tool-edit`,toolDecision:`${W}-tool-decision`,typingDots:`${W}-typing-dots`,reasoning:`${W}-reasoning`,replyStopped:`${W}-reply-stopped`,toolAskSummary:`${W}-ask-questions-summary`,toolAskOptions:`${W}-ask-questions-options-toggle`,toolSteps:`${W}-tool-steps`,toolStep:`${W}-tool-step`,source:`${W}-source`,operatorRequest:`${W}-operator-request`,chatNotice:`${W}-chat-notice`,operatorBanner:`${W}-operator-banner`,cancelOperatorRequest:`${W}-cancel-operator-request`,loginBar:`${W}-login-bar`,loginBarAction:`${W}-login-bar-action`,loginBarHide:`${W}-login-bar-hide`,loginGate:`${W}-login-gate`,loginGateAction:`${W}-login-gate-action`,loginGateGuest:`${W}-login-gate-guest`,loggedIn:`${W}-logged-in`};function Ct(e,t){return`${e}-${t}`}var wa=q.cssPrefix;function g_({buttonRef:e,onToggle:t,launcher:r,strings:n,leaving:o,edgeTab:s}){let a=r.variant==="circle"?"":Zy(r,n);return l("button",{ref:e,type:"button",class:`${wa}-fab`,part:"launcher","data-variant":r.variant,"data-size":r.size,"data-edge-tab":s?"true":void 0,"data-leaving":o?"true":void 0,"data-testid":D.launcher,onClick:t,"aria-label":n.launcherOpen,children:[eb(r.icon),a?l("span",{class:`${wa}-fab-label`,children:a}):null]})}function Zy(e,t){return e.label?mt(t,e.label):e.personaName?t.launcherAsk.replace("{name}",mt(t,e.personaName)):""}function eb(e){let t=m_[e];return t?l(t,{}):l(tb,{source:e})}function tb({source:e}){return l("span",{ref:t=>{t&&rb(t,e)},"aria-hidden":"true"})}function rb(e,t){if(e.dataset.svgMounted!==t)try{let n=new DOMParser().parseFromString(t,"image/svg+xml").documentElement;n.tagName.toLowerCase()==="svg"&&(e.replaceChildren(document.importNode(n,!0)),e.dataset.svgMounted=t)}catch{}}function v_({callout:e,launcherPosition:t,strings:r,closeLabel:n,onDismiss:o}){let[s,a]=U(!1),i=B(null),[c,u]=U(!0);return St(()=>{let p=i.current?.parentElement;if(!p)return;let _=()=>u(window.innerWidth-p.getBoundingClientRect().width>=nb);return _(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)}),F(()=>{let p=setTimeout(()=>a(!0),e.delayMs);return()=>clearTimeout(p)},[e.delayMs]),F(()=>{if(!s||e.autoDismissMs<=0)return;let p=setTimeout(o,e.autoDismissMs);return()=>clearTimeout(p)},[s,e.autoDismissMs,o]),s?l("div",{ref:i,class:`${wa}-callout`,role:"status","data-shape":e.shape,"data-position":ob(e.position,t,c),"data-animated":e.animated?"true":void 0,"data-testid":D.callout,children:[l("span",{children:mt(r,e.text)}),l("button",{type:"button",class:`${wa}-callout-close`,onClick:o,"aria-label":n,title:n,"data-testid":D.calloutDismiss,children:l(Dt,{})})]}):null}var nb=200;function ob(e,t,r=!0){let n=t.endsWith("-right"),o=t.startsWith("bottom-");return e==="vertical"||e==="auto"&&!r?o?"top":"bottom":n?"left":"right"}var ib='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function zn(e){function t(r){if(r.key!=="Tab")return;let n=[...e.querySelectorAll(ib)].filter(c=>c.offsetParent!==null||c===document.activeElement);if(n.length===0){r.preventDefault();return}let o=n[0],s=n[n.length-1];if(!o||!s)return;let a=e.getRootNode(),i=a instanceof ShadowRoot?a.activeElement:null;r.shiftKey&&i===o?(r.preventDefault(),s.focus()):!r.shiftKey&&i===s&&(r.preventDefault(),o.focus())}return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}var qr=q.cssPrefix;function ka({title:e,actions:t}){return l("header",{class:`${qr}-back-header`,part:"header","data-variant":"title",children:[l("span",{class:`${qr}-back-spacer`,"aria-hidden":"true"}),l("h1",{class:`${qr}-back-title`,children:e}),t??l("span",{class:`${qr}-back-spacer`,"aria-hidden":"true"})]})}function h_({title:e,backLabel:t,onBack:r,actions:n,testid:o}){return l("header",{class:`${qr}-back-header`,part:"header","data-testid":o,children:[l("button",{type:"button",class:`${qr}-icon-btn`,onClick:r,"aria-label":t,title:t,children:l(Mo,{})}),l("h1",{class:`${qr}-back-title`,children:e}),n??l("span",{class:`${qr}-back-spacer`,"aria-hidden":"true"})]})}function $o({textSig:e,doneSig:t,generativeUi:r=!1,strings:n=mi,onCardAction:o}){let s=B(null),a=B(null);return St(()=>{let i=s.current;if(!i)return;i.classList.add(`${q.cssPrefix}-md`);let c=a.current,u={generativeUi:r,strings:n,onCardAction:o},p=()=>{a.current?.renderer?.dispose();let g=document.createElement("div"),w=r?ap(g,{cssPrefix:q.cssPrefix,strings:n,onAction:o}):void 0,b=vo(vb(Pb(w??Hi(g)))),y=e.value,x=y.length-y_(y);if(!t.value)for(;x>0&&y[x-1]==="_";)x--;let P=Hl(y.slice(0,x));return P&&it(b,P),t.value&&(En(b),w?.finish()),i.replaceChildren(g),{settings:u,container:g,parser:b,renderer:w,lastLen:x,lastText:y.slice(0,x)}},_=c&&c.settings.generativeUi===r&&c.settings.strings===n&&c.settings.onCardAction===o&&e.value.startsWith(c.lastText)?c:p();a.current=_;let d=nr(()=>{let g=e.value,w=t.value;if(g.length<_.lastLen){_=p(),a.current=_;return}let b=Math.max(g.length-y_(g),_.lastLen);if(!w)for(;b>_.lastLen&&g[b-1]==="_";)b--;let y=Math.max(_.lastLen-1,0),x=Hl(g.slice(y,b)).slice(_.lastLen-y);x&&it(_.parser,x),_.lastLen=b,_.lastText=g.slice(0,b),w&&(En(_.parser),_.renderer?.finish())}),f=new MutationObserver(()=>b_(i));f.observe(i,{childList:!0,subtree:!0}),b_(i);function v(g){let w=g.target instanceof Element?g.target.closest("a"):null;if(!w||!(w instanceof HTMLAnchorElement))return;let b=w.getAttribute("href")??"";!b||b.startsWith("#")||(g.preventDefault(),window.open(b,"_blank","noopener,noreferrer"))}return i.addEventListener("click",v),()=>{d(),f.disconnect(),i.removeEventListener("click",v)}},[e,t,r,n,o]),F(()=>()=>{a.current?.renderer?.dispose(),a.current=null},[]),l("div",{ref:s})}function Ta({text:e}){let t=Ce(()=>oe(e),[e]),r=Ce(()=>oe(!0),[]);return l($o,{textSig:t,doneSig:r})}var Ca="\uE000",gb=/([\p{L}\p{N}])(_+)(?=[\p{L}\p{N}])/gu;function y_(e){if((e.match(/^[ \t]*`{3,}/gm)?.length??0)%2===0)return 0;let t=e.trimEnd(),r=t.lastIndexOf(`
62
+ `)+1;return/^[ \t]*`{3,}[^`]*$/.test(t.slice(r))?e.length-r:0}function Hl(e){return e.replace(gb,(t,r,n)=>r+Ca.repeat(n.length))}function vb(e){return{...e,add_text:(t,r)=>e.add_text(t,r.replaceAll(Ca,"_")),set_attr:(t,r,n)=>e.set_attr(t,r,n.replaceAll(Ca,"_"))}}var hb=/<(\/?)(?:(Note|Info|Tip|Warning|Danger|Check|Callout)|Tabs?|Steps?|AccordionGroup|Accordion|Expandable|Columns|CardGroup|Card|Frame|CodeGroup|Badge|Icon|Video|Embed|ParamField|ResponseField)\b((?:"[^"]*"|'[^']*'|[^>"'])*?)(\/?)>|(^|\n)([ \t]*)(```[^]*?(?:\n[ \t]*```|$))?/g;function x_(e){let t=0,r="";return e.replace(hb,(n,o,s,a,i,c,u,p)=>{if(o===void 0)return t?c+(p?.split(`
62
63
  ${u}`).join(`
63
64
  `)??r):n;if(o)return t--,s&&(r=r.slice(2)),s?`
64
65
  ${r}`:"";i||(t++,s&&(r+="> "));let _={};a.replace(/(\w+)=(["'])(.*?)\2/g,(v,g,w,b)=>_[g]=b);let d=_.href??_.src,f=_.title??_.path??_.query??_.body??_.header??_.name??d;return(s?"> ":"")+(f?`**${d?`[${f}](${d})`:f}**${_.type?` \`${_.type}\``:""}