@telnyx/ai-chat-widget 5.0.1 → 5.0.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/dist/index.umd.js CHANGED
@@ -52,7 +52,7 @@ React keys must be passed directly to JSX without using spread:
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const H0=V0("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);var _r=(e=>(e.AIDA="aida",e))(_r||{});const _b={[_r.AIDA]:{label:"Heavy thinking",icon:"🧠",Icon:H0,ariaLabel:"Heavy thinking mode",endpoint:_r.AIDA,tooltip:{title:"🧠 Heavy thinking",capabilities:["Troubleshooting tools","Deep reasoning"],timing:"Slower, but thorough"},firstMessage:"Hello! I can help troubleshoot your account issues with heavy thinking and deep reasoning."}},Ob=Object.values(_b),_e=[];for(let e=0;e<256;++e)_e.push((e+256).toString(16).slice(1));function Lb(e,t=0){return(_e[e[t+0]]+_e[e[t+1]]+_e[e[t+2]]+_e[e[t+3]]+"-"+_e[e[t+4]]+_e[e[t+5]]+"-"+_e[e[t+6]]+_e[e[t+7]]+"-"+_e[e[t+8]]+_e[e[t+9]]+"-"+_e[e[t+10]]+_e[e[t+11]]+_e[e[t+12]]+_e[e[t+13]]+_e[e[t+14]]+_e[e[t+15]]).toLowerCase()}let ws;const $0=new Uint8Array(16);function Db(){if(!ws){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ws=crypto.getRandomValues.bind(crypto)}return ws($0)}const Mb={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fb(e,t,n){var a;if(Mb.randomUUID&&!e)return Mb.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??Db();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Lb(r)}const Ss={};function Pb(e,t,n){let r;{const a=Date.now(),i=Db();W0(Ss,a,i),r=q0(i,Ss.msecs,Ss.seq,t,n)}return t??Lb(r)}function W0(e,t,n){return e.msecs??(e.msecs=-1/0),e.seq??(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function q0(e,t,n,r,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),a=0;else if(a<0||a+16>r.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);return t??(t=Date.now()),n??(n=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9]),r[a++]=t/1099511627776&255,r[a++]=t/4294967296&255,r[a++]=t/16777216&255,r[a++]=t/65536&255,r[a++]=t/256&255,r[a++]=t&255,r[a++]=112|n>>>28&15,r[a++]=n>>>20&255,r[a++]=128|n>>>14&63,r[a++]=n>>>6&255,r[a++]=n<<2&255|e[10]&3,r[a++]=e[11],r[a++]=e[12],r[a++]=e[13],r[a++]=e[14],r[a++]=e[15],r}const Bb=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(f=>f(t,p))}},a=()=>t,s={setState:r,getState:a,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,a,s);return s},Y0=(e=>e?Bb(e):Bb),K0=e=>e;function X0(e,t=K0){const n=O.useSyncExternalStore(e.subscribe,O.useCallback(()=>t(e.getState()),[e,t]),O.useCallback(()=>t(e.getInitialState()),[e,t]));return O.useDebugValue(n),n}const Ub=e=>{const t=Y0(e),n=r=>X0(t,r);return Object.assign(n,t),n},Z0=(e=>e?Ub(e):Ub);var zb=Symbol.for("immer-nothing"),jb=Symbol.for("immer-draftable"),Xe=Symbol.for("immer-state"),Q0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function We(e,...t){if(process.env.NODE_ENV!=="production"){const n=Q0[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Or=Object.getPrototypeOf;function Fn(e){return!!e&&!!e[Xe]}function un(e){var t;return e?Vb(e)||Array.isArray(e)||!!e[jb]||!!((t=e.constructor)!=null&&t[jb])||Lr(e)||Ya(e):!1}var J0=Object.prototype.constructor.toString(),Gb=new WeakMap;function Vb(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=Gb.get(n);return r===void 0&&(r=Function.toString.call(n),Gb.set(n,r)),r===J0}function Wa(e,t,n=!0){qa(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function qa(e){const t=e[Xe];return t?t.type_:Array.isArray(e)?1:Lr(e)?2:Ya(e)?3:0}function vs(e,t){return qa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Hb(e,t,n){const r=qa(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function eI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Lr(e){return e instanceof Map}function Ya(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function xs(e,t){if(Lr(e))return new Map(e);if(Ya(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Vb(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Xe];let a=Reflect.ownKeys(r);for(let i=0;i<a.length;i++){const o=a[i],s=r[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Or(e),r)}else{const r=Or(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function ks(e,t=!1){return Xa(e)||Fn(e)||!un(e)||(qa(e)>1&&Object.defineProperties(e,{set:Ka,add:Ka,clear:Ka,delete:Ka}),Object.freeze(e),t&&Object.values(e).forEach(n=>ks(n,!0))),e}function tI(){We(2)}var Ka={value:tI};function Xa(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var nI={};function pn(e){const t=nI[e];return t||We(0,e),t}var Dr;function $b(){return Dr}function rI(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Wb(e,t){t&&(pn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ts(e){As(e),e.drafts_.forEach(aI),e.drafts_=null}function As(e){e===Dr&&(Dr=e.parent_)}function qb(e){return Dr=rI(Dr,e)}function aI(e){const t=e[Xe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yb(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Xe].modified_&&(Ts(t),We(4)),un(e)&&(e=Za(t,e),t.parent_||Qa(t,e)),t.patches_&&pn("Patches").generateReplacementPatches_(n[Xe].base_,e,t.patches_,t.inversePatches_)):e=Za(t,n,[]),Ts(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zb?e:void 0}function Za(e,t,n){if(Xa(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[Xe];if(!a)return Wa(t,(i,o)=>Kb(e,a,t,i,o,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return Qa(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let o=i,s=!1;a.type_===3&&(o=new Set(i),i.clear(),s=!0),Wa(o,(l,c)=>Kb(e,a,i,l,c,n,s),r),Qa(e,i,!1),n&&e.patches_&&pn("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Kb(e,t,n,r,a,i,o){if(a==null||typeof a!="object"&&!o)return;const s=Xa(a);if(!(s&&!o)){if(process.env.NODE_ENV!=="production"&&a===n&&We(5),Fn(a)){const l=i&&t&&t.type_!==3&&!vs(t.assigned_,r)?i.concat(r):void 0,c=Za(e,a,l);if(Hb(n,r,c),Fn(c))e.canAutoFreeze_=!1;else return}else o&&n.add(a);if(un(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&s)return;Za(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Lr(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Qa(e,a)}}}function Qa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ks(t,n)}function iI(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$b(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,i=Is;n&&(a=[r],i=Mr);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return r.draft_=s,r.revoke_=o,s}var Is={get(e,t){if(t===Xe)return e;const n=dn(e);if(!vs(n,t))return oI(e,n,t);const r=n[t];return e.finalized_||!un(r)?r:r===Rs(e.base_,t)?(Ns(e),e.copy_[t]=_s(r,e)):r},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,n){const r=Xb(dn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=Rs(dn(e),t),i=a==null?void 0:a[Xe];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(eI(n,a)&&(n!==void 0||vs(e.base_,t)))return!0;Ns(e),Cs(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Rs(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ns(e),Cs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=dn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){We(11)},getPrototypeOf(e){return Or(e.base_)},setPrototypeOf(){We(12)}},Mr={};Wa(Is,(e,t)=>{Mr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Mr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&We(13),Mr.set.call(this,e,t,void 0)},Mr.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&We(14),Is.set.call(this,e[0],t,n,e[0])};function Rs(e,t){const n=e[Xe];return(n?dn(n):e)[t]}function oI(e,t,n){var a;const r=Xb(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function Xb(e,t){if(!(t in e))return;let n=Or(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Or(n)}}function Cs(e){e.modified_||(e.modified_=!0,e.parent_&&Cs(e.parent_))}function Ns(e){e.copy_||(e.copy_=xs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sI=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const o=this;return function(l=i,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&We(6),r!==void 0&&typeof r!="function"&&We(7);let a;if(un(t)){const i=qb(this),o=_s(t,void 0);let s=!0;try{a=n(o),s=!1}finally{s?Ts(i):As(i)}return Wb(i,r),Yb(a,i)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===zb&&(a=void 0),this.autoFreeze_&&ks(a,!0),r){const i=[],o=[];pn("Patches").generateReplacementPatches_(t,a,i,o),r(i,o)}return a}else We(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,a;return[this.produce(t,n,(o,s)=>{r=o,a=s}),r,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){un(e)||We(8),Fn(e)&&(e=lI(e));const t=qb(this),n=_s(e,void 0);return n[Xe].isManual_=!0,As(t),n}finishDraft(e,t){const n=e&&e[Xe];(!n||!n.isManual_)&&We(9);const{scope_:r}=n;return Wb(r,t),Yb(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=pn("Patches").applyPatches_;return Fn(e)?r(e,t):this.produce(e,a=>r(a,t))}};function _s(e,t){const n=Lr(e)?pn("MapSet").proxyMap_(e,t):Ya(e)?pn("MapSet").proxySet_(e,t):iI(e,t);return(t?t.scope_:$b()).drafts_.push(n),n}function lI(e){return Fn(e)||We(10,e),Zb(e)}function Zb(e){if(!un(e)||Xa(e))return e;const t=e[Xe];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xs(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=xs(e,!0);return Wa(n,(a,i)=>{Hb(n,a,Zb(i))},r),t&&(t.finalized_=!1),n}var cI=new sI,uI=cI.produce;const dI=e=>(t,n,r)=>(r.setState=(a,i,...o)=>{const s=typeof a=="function"?uI(a):a;return t(s,i,...o)},e(r.setState,n,r)),Pn={POSITIVE:"positive",NEGATIVE:"negative"};class pI{constructor(t,n,r){Yi(this,"baseURL");Yi(this,"feedbackUrl");Yi(this,"getUser");this.baseURL=t,this.feedbackUrl=n,this.getUser=r}async sendFeedback({messageId:t,type:n}){try{const r=this.getUser(),{id:a}=r;if(!a){console.error("User ID is required to send feedback");return}const i=r==null?void 0:r.api_v2_token;if(!(await fetch(`${this.feedbackUrl}`,{method:"POST",body:JSON.stringify({message_id:t,type:n,user_id:a}),headers:{"Content-Type":"application/json",...i&&{Authorization:`Bearer ${i}`}}})).ok)throw new Error("Failed to send feedback")}catch(r){console.error("Error sending feedback",r)}}}class Fr extends pI{constructor(t,n,r){super(t,n,r)}async sendQuestion(t){const n=this.getUser(),r=n==null?void 0:n.api_v2_token,a=new FormData;a.append("session_id",t.sessionId),a.append("question",t.question),t.messages&&a.append("messages",JSON.stringify(t.messages));const i={Authorization:`Bearer ${r}`},o=await fetch(this.baseURL,{method:"POST",body:a,headers:i});if(!o.ok){const s=await o.text();throw new Error(`HTTP error! status: ${o.status}, text: ${s}`)}if(!o.body)throw new Error("Response body is null");return o.body.pipeThrough(new TextDecoderStream)}}const st={OPEN:"open",CLOSED:"closed"},je={INITIAL:"initial",USER_HAS_TYPED:"userHasTyped"},Bn={HAS_BEEN_OPENED:"hasBeenOpened",HAS_NOT_BEEN_OPENED:"hasNotBeenOpened"},gt={EXPANDED:"expanded",COLLAPSED:"collapsed"};function Qb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Qb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Qb(e))&&(r&&(r+=" "),r+=t);return r}const fI=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gI=(e,t)=>({classGroupId:e,validator:t}),ey=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ja="-",ty=[],mI="arbitrary..",hI=e=>{const t=yI(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return bI(o);const s=o.split(Ja),l=s[0]===""&&s.length>1?1:0;return ny(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],c=n[o];return l?c?fI(c,l):l:c||ty}return n[o]||ty}}},ny=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const c=ny(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const s=t===0?e.join(Ja):e.slice(t).join(Ja),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(s))return u.classGroupId}},bI=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?mI+r:void 0})(),yI=e=>{const{theme:t,classGroups:n}=e;return EI(n,t)},EI=(e,t)=>{const n=ey();for(const r in e){const a=e[r];Os(a,n,r,t)}return n},Os=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const o=e[i];wI(o,t,n,r)}},wI=(e,t,n,r)=>{if(typeof e=="string"){SI(e,t,n);return}if(typeof e=="function"){vI(e,t,n,r);return}xI(e,t,n,r)},SI=(e,t,n)=>{const r=e===""?t:ry(t,e);r.classGroupId=n},vI=(e,t,n,r)=>{if(kI(e)){Os(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gI(n,e))},xI=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let o=0;o<i;o++){const[s,l]=a[o];Os(l,ry(t,s),n,r)}},ry=(e,t)=>{let n=e;const r=t.split(Ja),a=r.length;for(let i=0;i<a;i++){const o=r[i];let s=n.nextPart.get(o);s||(s=ey(),n.nextPart.set(o,s)),n=s}return n},kI=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,TI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return a(i,o),o},set(i,o){i in n?n[i]=o:a(i,o)}}},Ls="!",ay=":",AI=[],iy=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),II=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,s=0,l=0,c;const u=a.length;for(let b=0;b<u;b++){const h=a[b];if(o===0&&s===0){if(h===ay){i.push(a.slice(l,b)),l=b+1;continue}if(h==="/"){c=b;continue}}h==="["?o++:h==="]"?o--:h==="("?s++:h===")"&&s--}const d=i.length===0?a:a.slice(l);let p=d,f=!1;d.endsWith(Ls)?(p=d.slice(0,-1),f=!0):d.startsWith(Ls)&&(p=d.slice(1),f=!0);const g=c&&c>l?c-l:void 0;return iy(i,f,p,g)};if(t){const a=t+ay,i=r;r=o=>o.startsWith(a)?i(o.slice(a.length)):iy(AI,!1,o,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},RI=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const o=n[i],s=o[0]==="[",l=t.has(o);s||l?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},CI=e=>({cache:TI(e.cacheSize),parseClassName:II(e),sortModifiers:RI(e),...hI(e)}),NI=/\s+/,_I=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],s=e.trim().split(NI);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!b,m=r(h?g.substring(0,b):g);if(!m){if(!h){l=u+(l.length>0?" "+l:l);continue}if(m=r(g),!m){l=u+(l.length>0?" "+l:l);continue}h=!1}const E=p.length===0?"":p.length===1?p[0]:i(p).join(":"),S=f?E+Ls:E,T=S+m;if(o.indexOf(T)>-1)continue;o.push(T);const A=a(m,h);for(let v=0;v<A.length;++v){const _=A[v];o.push(S+_)}l=u+(l.length>0?" "+l:l)}return l},OI=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=oy(n))&&(a&&(a+=" "),a+=r);return a},oy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=oy(e[r]))&&(n&&(n+=" "),n+=t);return n},LI=(e,...t)=>{let n,r,a,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=CI(c),r=n.cache.get,a=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=_I(l,n);return a(l,u),u};return i=o,(...l)=>i(OI(...l))},DI=[],Ie=e=>{const t=n=>n[e]||DI;return t.isThemeGetter=!0,t},sy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ly=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MI=/^\d+\/\d+$/,FI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,UI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>MI.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),qt=e=>!!e&&Number.isInteger(Number(e)),Ds=e=>e.endsWith("%")&&re(e.slice(0,-1)),Lt=e=>FI.test(e),jI=()=>!0,GI=e=>PI.test(e)&&!BI.test(e),cy=()=>!1,VI=e=>UI.test(e),HI=e=>zI.test(e),$I=e=>!W(e)&&!q(e),WI=e=>zn(e,gy,cy),W=e=>sy.test(e),fn=e=>zn(e,my,GI),Ms=e=>zn(e,ZI,re),uy=e=>zn(e,py,cy),qI=e=>zn(e,fy,HI),ei=e=>zn(e,hy,VI),q=e=>ly.test(e),Pr=e=>jn(e,my),YI=e=>jn(e,QI),dy=e=>jn(e,py),KI=e=>jn(e,gy),XI=e=>jn(e,fy),ti=e=>jn(e,hy,!0),zn=(e,t,n)=>{const r=sy.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},jn=(e,t,n=!1)=>{const r=ly.exec(e);return r?r[1]?t(r[1]):n:!1},py=e=>e==="position"||e==="percentage",fy=e=>e==="image"||e==="url",gy=e=>e==="length"||e==="size"||e==="bg-size",my=e=>e==="length",ZI=e=>e==="number",QI=e=>e==="family-name",hy=e=>e==="shadow",JI=LI(()=>{const e=Ie("color"),t=Ie("font"),n=Ie("text"),r=Ie("font-weight"),a=Ie("tracking"),i=Ie("leading"),o=Ie("breakpoint"),s=Ie("container"),l=Ie("spacing"),c=Ie("radius"),u=Ie("shadow"),d=Ie("inset-shadow"),p=Ie("text-shadow"),f=Ie("drop-shadow"),g=Ie("blur"),b=Ie("perspective"),h=Ie("aspect"),m=Ie("ease"),E=Ie("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),q,W],v=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],N=()=>[q,W,l],D=()=>[Un,"full","auto",...N()],I=()=>[qt,"none","subgrid",q,W],F=()=>["auto",{span:["full",qt,q,W]},qt,q,W],P=()=>[qt,"auto",q,W],U=()=>["auto","min","max","fr",q,W],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],j=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],M=()=>[e,q,W],X=()=>[...T(),dy,uy,{position:[q,W]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",KI,WI,{size:[q,W]}],$=()=>[Ds,Pr,fn],k=()=>["","none","full",c,q,W],Z=()=>["",re,Pr,fn],de=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[re,Ds,dy,uy],pe=()=>["","none",g,q,W],ge=()=>["none",re,q,W],Ae=()=>["none",re,q,W],Ue=()=>[re,q,W],tt=()=>[Un,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lt],breakpoint:[Lt],color:[jI],container:[Lt],"drop-shadow":[Lt],ease:["in","out","in-out"],font:[$I],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lt],shadow:[Lt],spacing:["px",re],text:[Lt],"text-shadow":[Lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,W,q,h]}],container:["container"],columns:[{columns:[re,W,q,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[qt,"auto",q,W]}],basis:[{basis:[Un,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Un,"auto","initial","none",W]}],grow:[{grow:["",re,q,W]}],shrink:[{shrink:["",re,q,W]}],order:[{order:[qt,"first","last","none",q,W]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Pr,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,Ms]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ds,W]}],"font-family":[{font:[YI,W,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,q,W]}],"line-clamp":[{"line-clamp":[re,"none",q,Ms]}],leading:[{leading:[i,...N()]}],"list-image":[{"list-image":["none",q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",q,fn]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[re,"auto",q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qt,q,W],radial:["",q,W],conic:[qt,q,W]},XI,qI]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,q,W]}],"outline-w":[{outline:["",re,Pr,fn]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,ti,ei]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,ti,ei]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[re,fn]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",p,ti,ei]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[re,q,W]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,W]}],filter:[{filter:["","none",q,W]}],blur:[{blur:pe()}],brightness:[{brightness:[re,q,W]}],contrast:[{contrast:[re,q,W]}],"drop-shadow":[{"drop-shadow":["","none",f,ti,ei]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",re,q,W]}],"hue-rotate":[{"hue-rotate":[re,q,W]}],invert:[{invert:["",re,q,W]}],saturate:[{saturate:[re,q,W]}],sepia:[{sepia:["",re,q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",q,W]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[re,q,W]}],"backdrop-contrast":[{"backdrop-contrast":[re,q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,q,W]}],"backdrop-invert":[{"backdrop-invert":["",re,q,W]}],"backdrop-opacity":[{"backdrop-opacity":[re,q,W]}],"backdrop-saturate":[{"backdrop-saturate":[re,q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",re,q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",q,W]}],ease:[{ease:["linear","initial",m,q,W]}],delay:[{delay:[re,q,W]}],animate:[{animate:["none",E,q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,q,W]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tt()}],"translate-x":[{"translate-x":tt()}],"translate-y":[{"translate-y":tt()}],"translate-z":[{"translate-z":tt()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,W]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[re,Pr,fn,Ms]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),J=(...e)=>JI(Jb(e)),ni=()=>new Date().toISOString(),eR=e=>e?new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric",hour12:!1}):"";var Le=(e=>(e.ADD_MESSAGE="ADD_MESSAGE",e.SET_ERROR="SET_ERROR",e.UPDATE_MESSAGE="UPDATE_MESSAGE",e.DELETE_LAST_MESSAGE_PAIR="DELETE_LAST_MESSAGE_PAIR",e))(Le||{});function by(e){return e.type==="bot"}function tR(e,t){switch(t.type){case Le.ADD_MESSAGE:{const{id:n,message:r}=t.payload,a=ni(),i=Fb();e.push({id:n,type:"user",message:r,state:"complete",timestamp:a},{id:i,source_id:n,type:"bot",message:"",state:"loading",timestamp:a,code:"",feedback_id:"",show_help_action:!1,show_feedback:!1});break}case Le.SET_ERROR:{const{id:n,error:r}=t.payload,a=e.find(i=>by(i)&&i.source_id===n);if(!a){console.warn(`Action ${Le.SET_ERROR}: Item not found`);return}typeof r=="string"?(a.message=r,a.state="error"):(a.message=r.detail,a.state="error",a.code=r.code||"UNKNOWN CODE");break}case Le.UPDATE_MESSAGE:{const{id:n,field:r,value:a}=t.payload,i=ni(),o=e.find(s=>by(s)&&s.source_id===n);if(!o)return;switch(r){case"state":o.state=a,o.timestamp=i;break;case"message":o.message=a;break;case"timestamp":o.timestamp=a;break;case"code":o.code=a;break;case"feedback_id":o.feedback_id=a;break;case"show_help_action":o.show_help_action=a;break;case"show_feedback":o.show_feedback=a;break;default:console.warn(`Unexpected field: ${String(r)}`)}break}case Le.DELETE_LAST_MESSAGE_PAIR:{e.length>=2?e.splice(e.length-2,2):console.warn(`${Le.DELETE_LAST_MESSAGE_PAIR} action called with insufficient messages in draft.`);break}}}const nR={id:null,token:null,apiAccessKey:null,api_v2_token:null,twoFactorAuth:null,role:null,expiresAt:null},rR=(e,t)=>({user:nR,chatAPIUrl:ot.CHAT_API_URL,hasAIDAConfig:!1,feedbackAPIUrl:ot.FEEDBACK_API_URL,apiService:new Fr(ot.CHAT_API_URL,ot.FEEDBACK_API_URL,()=>t().user),endpoint:_r.AIDA,numRetries:0,retryTimeoutId:null,sessionId:Pb(),botState:"idle",question:"",messages:[],numMessagesExpanded:0,chatStartTimestamp:ni(),placeholders:[],onHelpAction:null,setUser:n=>e(r=>{r.user=n,r.apiService=new Fr(r.chatAPIUrl,r.feedbackAPIUrl,()=>t().user)}),setChatAPIUrl:(n,r=!0)=>e(a=>{a.chatAPIUrl=n,a.hasAIDAConfig=r,a.apiService=new Fr(n,a.feedbackAPIUrl,()=>t().user)}),setFeedbackAPIUrl:n=>e(r=>{r.feedbackAPIUrl=n,r.apiService=new Fr(r.chatAPIUrl,n,()=>t().user)}),setEndpoint:n=>e(r=>{r.endpoint=n,r.apiService=new Fr(t().chatAPIUrl,t().feedbackAPIUrl,()=>t().user)}),setQuestion:n=>e(r=>{r.question=n}),setNumRetries:n=>e(r=>{r.numRetries=n}),setRetryTimeoutId:n=>e(r=>{r.retryTimeoutId=n}),resetRetryMechanism:()=>e(n=>{n.numRetries=0,n.retryTimeoutId&&(clearTimeout(n.retryTimeoutId),n.retryTimeoutId=null)}),dispatchMessage:n=>e(r=>{t().endpoint,tR(r.messages,{...n})}),chatVisualState:je.INITIAL,setChatVisualState:n=>e(r=>{r.chatVisualState=n}),setNumMessagesExpanded:n=>e(r=>{n<0?r.numMessagesExpanded=0:r.numMessagesExpanded=n}),setBotState:n=>e(r=>{r.botState=n}),resetChat:()=>{e(n=>{n.messages.length=0,n.question="",n.chatVisualState=je.INITIAL,n.sessionId=Pb(),n.numMessagesExpanded=0,n.botState="idle",n.resetRetryMechanism(),n.chatStartTimestamp=ni()})},getLastMessage:()=>t().messages[t().messages.length-1],setOnHelpAction:n=>e(r=>{r.onHelpAction=n}),setPlaceholders:n=>e(r=>{r.placeholders=n})}),aR=`:root, :host {
55
+ */const H0=V0("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);var _r=(e=>(e.TAIA="taia",e))(_r||{});const _b={[_r.TAIA]:{label:"Heavy thinking",icon:"🧠",Icon:H0,ariaLabel:"Heavy thinking mode",endpoint:_r.TAIA,tooltip:{title:"🧠 Heavy thinking",capabilities:["Troubleshooting tools","Deep reasoning"],timing:"Slower, but thorough"},firstMessage:"Hello! I can help troubleshoot your account issues with heavy thinking and deep reasoning."}},Ob=Object.values(_b),_e=[];for(let e=0;e<256;++e)_e.push((e+256).toString(16).slice(1));function Lb(e,t=0){return(_e[e[t+0]]+_e[e[t+1]]+_e[e[t+2]]+_e[e[t+3]]+"-"+_e[e[t+4]]+_e[e[t+5]]+"-"+_e[e[t+6]]+_e[e[t+7]]+"-"+_e[e[t+8]]+_e[e[t+9]]+"-"+_e[e[t+10]]+_e[e[t+11]]+_e[e[t+12]]+_e[e[t+13]]+_e[e[t+14]]+_e[e[t+15]]).toLowerCase()}let ws;const $0=new Uint8Array(16);function Db(){if(!ws){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ws=crypto.getRandomValues.bind(crypto)}return ws($0)}const Mb={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fb(e,t,n){var a;if(Mb.randomUUID&&!e)return Mb.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??Db();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Lb(r)}const Ss={};function Pb(e,t,n){let r;{const a=Date.now(),i=Db();W0(Ss,a,i),r=q0(i,Ss.msecs,Ss.seq,t,n)}return t??Lb(r)}function W0(e,t,n){return e.msecs??(e.msecs=-1/0),e.seq??(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function q0(e,t,n,r,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),a=0;else if(a<0||a+16>r.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);return t??(t=Date.now()),n??(n=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9]),r[a++]=t/1099511627776&255,r[a++]=t/4294967296&255,r[a++]=t/16777216&255,r[a++]=t/65536&255,r[a++]=t/256&255,r[a++]=t&255,r[a++]=112|n>>>28&15,r[a++]=n>>>20&255,r[a++]=128|n>>>14&63,r[a++]=n>>>6&255,r[a++]=n<<2&255|e[10]&3,r[a++]=e[11],r[a++]=e[12],r[a++]=e[13],r[a++]=e[14],r[a++]=e[15],r}const Bb=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(f=>f(t,p))}},a=()=>t,s={setState:r,getState:a,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,a,s);return s},Y0=(e=>e?Bb(e):Bb),K0=e=>e;function X0(e,t=K0){const n=O.useSyncExternalStore(e.subscribe,O.useCallback(()=>t(e.getState()),[e,t]),O.useCallback(()=>t(e.getInitialState()),[e,t]));return O.useDebugValue(n),n}const Ub=e=>{const t=Y0(e),n=r=>X0(t,r);return Object.assign(n,t),n},Z0=(e=>e?Ub(e):Ub);var zb=Symbol.for("immer-nothing"),jb=Symbol.for("immer-draftable"),Xe=Symbol.for("immer-state"),Q0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function We(e,...t){if(process.env.NODE_ENV!=="production"){const n=Q0[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Or=Object.getPrototypeOf;function Fn(e){return!!e&&!!e[Xe]}function un(e){var t;return e?Vb(e)||Array.isArray(e)||!!e[jb]||!!((t=e.constructor)!=null&&t[jb])||Lr(e)||Ya(e):!1}var J0=Object.prototype.constructor.toString(),Gb=new WeakMap;function Vb(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=Gb.get(n);return r===void 0&&(r=Function.toString.call(n),Gb.set(n,r)),r===J0}function Wa(e,t,n=!0){qa(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function qa(e){const t=e[Xe];return t?t.type_:Array.isArray(e)?1:Lr(e)?2:Ya(e)?3:0}function vs(e,t){return qa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Hb(e,t,n){const r=qa(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function eI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Lr(e){return e instanceof Map}function Ya(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function xs(e,t){if(Lr(e))return new Map(e);if(Ya(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Vb(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Xe];let a=Reflect.ownKeys(r);for(let i=0;i<a.length;i++){const o=a[i],s=r[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Or(e),r)}else{const r=Or(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function ks(e,t=!1){return Xa(e)||Fn(e)||!un(e)||(qa(e)>1&&Object.defineProperties(e,{set:Ka,add:Ka,clear:Ka,delete:Ka}),Object.freeze(e),t&&Object.values(e).forEach(n=>ks(n,!0))),e}function tI(){We(2)}var Ka={value:tI};function Xa(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var nI={};function pn(e){const t=nI[e];return t||We(0,e),t}var Dr;function $b(){return Dr}function rI(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Wb(e,t){t&&(pn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ts(e){As(e),e.drafts_.forEach(aI),e.drafts_=null}function As(e){e===Dr&&(Dr=e.parent_)}function qb(e){return Dr=rI(Dr,e)}function aI(e){const t=e[Xe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yb(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Xe].modified_&&(Ts(t),We(4)),un(e)&&(e=Za(t,e),t.parent_||Qa(t,e)),t.patches_&&pn("Patches").generateReplacementPatches_(n[Xe].base_,e,t.patches_,t.inversePatches_)):e=Za(t,n,[]),Ts(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zb?e:void 0}function Za(e,t,n){if(Xa(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[Xe];if(!a)return Wa(t,(i,o)=>Kb(e,a,t,i,o,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return Qa(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let o=i,s=!1;a.type_===3&&(o=new Set(i),i.clear(),s=!0),Wa(o,(l,c)=>Kb(e,a,i,l,c,n,s),r),Qa(e,i,!1),n&&e.patches_&&pn("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Kb(e,t,n,r,a,i,o){if(a==null||typeof a!="object"&&!o)return;const s=Xa(a);if(!(s&&!o)){if(process.env.NODE_ENV!=="production"&&a===n&&We(5),Fn(a)){const l=i&&t&&t.type_!==3&&!vs(t.assigned_,r)?i.concat(r):void 0,c=Za(e,a,l);if(Hb(n,r,c),Fn(c))e.canAutoFreeze_=!1;else return}else o&&n.add(a);if(un(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&s)return;Za(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Lr(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Qa(e,a)}}}function Qa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ks(t,n)}function iI(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$b(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,i=Is;n&&(a=[r],i=Mr);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return r.draft_=s,r.revoke_=o,s}var Is={get(e,t){if(t===Xe)return e;const n=dn(e);if(!vs(n,t))return oI(e,n,t);const r=n[t];return e.finalized_||!un(r)?r:r===Rs(e.base_,t)?(Ns(e),e.copy_[t]=_s(r,e)):r},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,n){const r=Xb(dn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=Rs(dn(e),t),i=a==null?void 0:a[Xe];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(eI(n,a)&&(n!==void 0||vs(e.base_,t)))return!0;Ns(e),Cs(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Rs(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ns(e),Cs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=dn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){We(11)},getPrototypeOf(e){return Or(e.base_)},setPrototypeOf(){We(12)}},Mr={};Wa(Is,(e,t)=>{Mr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Mr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&We(13),Mr.set.call(this,e,t,void 0)},Mr.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&We(14),Is.set.call(this,e[0],t,n,e[0])};function Rs(e,t){const n=e[Xe];return(n?dn(n):e)[t]}function oI(e,t,n){var a;const r=Xb(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function Xb(e,t){if(!(t in e))return;let n=Or(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Or(n)}}function Cs(e){e.modified_||(e.modified_=!0,e.parent_&&Cs(e.parent_))}function Ns(e){e.copy_||(e.copy_=xs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sI=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const o=this;return function(l=i,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&We(6),r!==void 0&&typeof r!="function"&&We(7);let a;if(un(t)){const i=qb(this),o=_s(t,void 0);let s=!0;try{a=n(o),s=!1}finally{s?Ts(i):As(i)}return Wb(i,r),Yb(a,i)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===zb&&(a=void 0),this.autoFreeze_&&ks(a,!0),r){const i=[],o=[];pn("Patches").generateReplacementPatches_(t,a,i,o),r(i,o)}return a}else We(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,a;return[this.produce(t,n,(o,s)=>{r=o,a=s}),r,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){un(e)||We(8),Fn(e)&&(e=lI(e));const t=qb(this),n=_s(e,void 0);return n[Xe].isManual_=!0,As(t),n}finishDraft(e,t){const n=e&&e[Xe];(!n||!n.isManual_)&&We(9);const{scope_:r}=n;return Wb(r,t),Yb(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=pn("Patches").applyPatches_;return Fn(e)?r(e,t):this.produce(e,a=>r(a,t))}};function _s(e,t){const n=Lr(e)?pn("MapSet").proxyMap_(e,t):Ya(e)?pn("MapSet").proxySet_(e,t):iI(e,t);return(t?t.scope_:$b()).drafts_.push(n),n}function lI(e){return Fn(e)||We(10,e),Zb(e)}function Zb(e){if(!un(e)||Xa(e))return e;const t=e[Xe];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xs(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=xs(e,!0);return Wa(n,(a,i)=>{Hb(n,a,Zb(i))},r),t&&(t.finalized_=!1),n}var cI=new sI,uI=cI.produce;const dI=e=>(t,n,r)=>(r.setState=(a,i,...o)=>{const s=typeof a=="function"?uI(a):a;return t(s,i,...o)},e(r.setState,n,r)),Pn={POSITIVE:"positive",NEGATIVE:"negative"};class pI{constructor(t,n,r){Yi(this,"baseURL");Yi(this,"feedbackUrl");Yi(this,"getUser");this.baseURL=t,this.feedbackUrl=n,this.getUser=r}async sendFeedback({messageId:t,type:n}){try{const r=this.getUser(),{id:a}=r;if(!a){console.error("User ID is required to send feedback");return}const i=r==null?void 0:r.api_v2_token;if(!(await fetch(`${this.feedbackUrl}`,{method:"POST",body:JSON.stringify({message_id:t,type:n,user_id:a}),headers:{"Content-Type":"application/json",...i&&{Authorization:`Bearer ${i}`}}})).ok)throw new Error("Failed to send feedback")}catch(r){console.error("Error sending feedback",r)}}}class Fr extends pI{constructor(t,n,r){super(t,n,r)}async sendQuestion(t){const n=this.getUser(),r=n==null?void 0:n.api_v2_token,a=new FormData;a.append("session_id",t.sessionId),a.append("question",t.question),t.messages&&a.append("messages",JSON.stringify(t.messages));const i={Authorization:`Bearer ${r}`},o=await fetch(this.baseURL,{method:"POST",body:a,headers:i});if(!o.ok){const s=await o.text();throw new Error(`HTTP error! status: ${o.status}, text: ${s}`)}if(!o.body)throw new Error("Response body is null");return o.body.pipeThrough(new TextDecoderStream)}}const st={OPEN:"open",CLOSED:"closed"},je={INITIAL:"initial",USER_HAS_TYPED:"userHasTyped"},Bn={HAS_BEEN_OPENED:"hasBeenOpened",HAS_NOT_BEEN_OPENED:"hasNotBeenOpened"},gt={EXPANDED:"expanded",COLLAPSED:"collapsed"};function Qb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Qb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Qb(e))&&(r&&(r+=" "),r+=t);return r}const fI=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gI=(e,t)=>({classGroupId:e,validator:t}),ey=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ja="-",ty=[],mI="arbitrary..",hI=e=>{const t=yI(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return bI(o);const s=o.split(Ja),l=s[0]===""&&s.length>1?1:0;return ny(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],c=n[o];return l?c?fI(c,l):l:c||ty}return n[o]||ty}}},ny=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const c=ny(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const s=t===0?e.join(Ja):e.slice(t).join(Ja),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(s))return u.classGroupId}},bI=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?mI+r:void 0})(),yI=e=>{const{theme:t,classGroups:n}=e;return EI(n,t)},EI=(e,t)=>{const n=ey();for(const r in e){const a=e[r];Os(a,n,r,t)}return n},Os=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const o=e[i];wI(o,t,n,r)}},wI=(e,t,n,r)=>{if(typeof e=="string"){SI(e,t,n);return}if(typeof e=="function"){vI(e,t,n,r);return}xI(e,t,n,r)},SI=(e,t,n)=>{const r=e===""?t:ry(t,e);r.classGroupId=n},vI=(e,t,n,r)=>{if(kI(e)){Os(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gI(n,e))},xI=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let o=0;o<i;o++){const[s,l]=a[o];Os(l,ry(t,s),n,r)}},ry=(e,t)=>{let n=e;const r=t.split(Ja),a=r.length;for(let i=0;i<a;i++){const o=r[i];let s=n.nextPart.get(o);s||(s=ey(),n.nextPart.set(o,s)),n=s}return n},kI=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,TI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return a(i,o),o},set(i,o){i in n?n[i]=o:a(i,o)}}},Ls="!",ay=":",AI=[],iy=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),II=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,s=0,l=0,c;const u=a.length;for(let b=0;b<u;b++){const h=a[b];if(o===0&&s===0){if(h===ay){i.push(a.slice(l,b)),l=b+1;continue}if(h==="/"){c=b;continue}}h==="["?o++:h==="]"?o--:h==="("?s++:h===")"&&s--}const d=i.length===0?a:a.slice(l);let p=d,f=!1;d.endsWith(Ls)?(p=d.slice(0,-1),f=!0):d.startsWith(Ls)&&(p=d.slice(1),f=!0);const g=c&&c>l?c-l:void 0;return iy(i,f,p,g)};if(t){const a=t+ay,i=r;r=o=>o.startsWith(a)?i(o.slice(a.length)):iy(AI,!1,o,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},RI=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const o=n[i],s=o[0]==="[",l=t.has(o);s||l?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},CI=e=>({cache:TI(e.cacheSize),parseClassName:II(e),sortModifiers:RI(e),...hI(e)}),NI=/\s+/,_I=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],s=e.trim().split(NI);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!b,m=r(h?g.substring(0,b):g);if(!m){if(!h){l=u+(l.length>0?" "+l:l);continue}if(m=r(g),!m){l=u+(l.length>0?" "+l:l);continue}h=!1}const E=p.length===0?"":p.length===1?p[0]:i(p).join(":"),S=f?E+Ls:E,T=S+m;if(o.indexOf(T)>-1)continue;o.push(T);const A=a(m,h);for(let v=0;v<A.length;++v){const _=A[v];o.push(S+_)}l=u+(l.length>0?" "+l:l)}return l},OI=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=oy(n))&&(a&&(a+=" "),a+=r);return a},oy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=oy(e[r]))&&(n&&(n+=" "),n+=t);return n},LI=(e,...t)=>{let n,r,a,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=CI(c),r=n.cache.get,a=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=_I(l,n);return a(l,u),u};return i=o,(...l)=>i(OI(...l))},DI=[],Ie=e=>{const t=n=>n[e]||DI;return t.isThemeGetter=!0,t},sy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ly=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MI=/^\d+\/\d+$/,FI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,UI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>MI.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),qt=e=>!!e&&Number.isInteger(Number(e)),Ds=e=>e.endsWith("%")&&re(e.slice(0,-1)),Lt=e=>FI.test(e),jI=()=>!0,GI=e=>PI.test(e)&&!BI.test(e),cy=()=>!1,VI=e=>UI.test(e),HI=e=>zI.test(e),$I=e=>!W(e)&&!q(e),WI=e=>zn(e,gy,cy),W=e=>sy.test(e),fn=e=>zn(e,my,GI),Ms=e=>zn(e,ZI,re),uy=e=>zn(e,py,cy),qI=e=>zn(e,fy,HI),ei=e=>zn(e,hy,VI),q=e=>ly.test(e),Pr=e=>jn(e,my),YI=e=>jn(e,QI),dy=e=>jn(e,py),KI=e=>jn(e,gy),XI=e=>jn(e,fy),ti=e=>jn(e,hy,!0),zn=(e,t,n)=>{const r=sy.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},jn=(e,t,n=!1)=>{const r=ly.exec(e);return r?r[1]?t(r[1]):n:!1},py=e=>e==="position"||e==="percentage",fy=e=>e==="image"||e==="url",gy=e=>e==="length"||e==="size"||e==="bg-size",my=e=>e==="length",ZI=e=>e==="number",QI=e=>e==="family-name",hy=e=>e==="shadow",JI=LI(()=>{const e=Ie("color"),t=Ie("font"),n=Ie("text"),r=Ie("font-weight"),a=Ie("tracking"),i=Ie("leading"),o=Ie("breakpoint"),s=Ie("container"),l=Ie("spacing"),c=Ie("radius"),u=Ie("shadow"),d=Ie("inset-shadow"),p=Ie("text-shadow"),f=Ie("drop-shadow"),g=Ie("blur"),b=Ie("perspective"),h=Ie("aspect"),m=Ie("ease"),E=Ie("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),q,W],v=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],N=()=>[q,W,l],D=()=>[Un,"full","auto",...N()],I=()=>[qt,"none","subgrid",q,W],F=()=>["auto",{span:["full",qt,q,W]},qt,q,W],P=()=>[qt,"auto",q,W],U=()=>["auto","min","max","fr",q,W],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],j=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],M=()=>[e,q,W],X=()=>[...T(),dy,uy,{position:[q,W]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",KI,WI,{size:[q,W]}],$=()=>[Ds,Pr,fn],k=()=>["","none","full",c,q,W],Z=()=>["",re,Pr,fn],de=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[re,Ds,dy,uy],pe=()=>["","none",g,q,W],ge=()=>["none",re,q,W],Ae=()=>["none",re,q,W],Ue=()=>[re,q,W],tt=()=>[Un,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lt],breakpoint:[Lt],color:[jI],container:[Lt],"drop-shadow":[Lt],ease:["in","out","in-out"],font:[$I],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lt],shadow:[Lt],spacing:["px",re],text:[Lt],"text-shadow":[Lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,W,q,h]}],container:["container"],columns:[{columns:[re,W,q,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[qt,"auto",q,W]}],basis:[{basis:[Un,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Un,"auto","initial","none",W]}],grow:[{grow:["",re,q,W]}],shrink:[{shrink:["",re,q,W]}],order:[{order:[qt,"first","last","none",q,W]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Pr,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,Ms]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ds,W]}],"font-family":[{font:[YI,W,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,q,W]}],"line-clamp":[{"line-clamp":[re,"none",q,Ms]}],leading:[{leading:[i,...N()]}],"list-image":[{"list-image":["none",q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",q,fn]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[re,"auto",q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qt,q,W],radial:["",q,W],conic:[qt,q,W]},XI,qI]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,q,W]}],"outline-w":[{outline:["",re,Pr,fn]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,ti,ei]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,ti,ei]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[re,fn]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",p,ti,ei]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[re,q,W]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,W]}],filter:[{filter:["","none",q,W]}],blur:[{blur:pe()}],brightness:[{brightness:[re,q,W]}],contrast:[{contrast:[re,q,W]}],"drop-shadow":[{"drop-shadow":["","none",f,ti,ei]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",re,q,W]}],"hue-rotate":[{"hue-rotate":[re,q,W]}],invert:[{invert:["",re,q,W]}],saturate:[{saturate:[re,q,W]}],sepia:[{sepia:["",re,q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",q,W]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[re,q,W]}],"backdrop-contrast":[{"backdrop-contrast":[re,q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,q,W]}],"backdrop-invert":[{"backdrop-invert":["",re,q,W]}],"backdrop-opacity":[{"backdrop-opacity":[re,q,W]}],"backdrop-saturate":[{"backdrop-saturate":[re,q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",re,q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",q,W]}],ease:[{ease:["linear","initial",m,q,W]}],delay:[{delay:[re,q,W]}],animate:[{animate:["none",E,q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,q,W]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tt()}],"translate-x":[{"translate-x":tt()}],"translate-y":[{"translate-y":tt()}],"translate-z":[{"translate-z":tt()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,W]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[re,Pr,fn,Ms]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),J=(...e)=>JI(Jb(e)),ni=()=>new Date().toISOString(),eR=e=>e?new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric",hour12:!1}):"";var Le=(e=>(e.ADD_MESSAGE="ADD_MESSAGE",e.SET_ERROR="SET_ERROR",e.UPDATE_MESSAGE="UPDATE_MESSAGE",e.DELETE_LAST_MESSAGE_PAIR="DELETE_LAST_MESSAGE_PAIR",e))(Le||{});function by(e){return e.type==="bot"}function tR(e,t){switch(t.type){case Le.ADD_MESSAGE:{const{id:n,message:r}=t.payload,a=ni(),i=Fb();e.push({id:n,type:"user",message:r,state:"complete",timestamp:a},{id:i,source_id:n,type:"bot",message:"",state:"loading",timestamp:a,code:"",feedback_id:"",show_help_action:!1,show_feedback:!1});break}case Le.SET_ERROR:{const{id:n,error:r}=t.payload,a=e.find(i=>by(i)&&i.source_id===n);if(!a){console.warn(`Action ${Le.SET_ERROR}: Item not found`);return}typeof r=="string"?(a.message=r,a.state="error"):(a.message=r.detail,a.state="error",a.code=r.code||"UNKNOWN CODE");break}case Le.UPDATE_MESSAGE:{const{id:n,field:r,value:a}=t.payload,i=ni(),o=e.find(s=>by(s)&&s.source_id===n);if(!o)return;switch(r){case"state":o.state=a,o.timestamp=i;break;case"message":o.message=a;break;case"timestamp":o.timestamp=a;break;case"code":o.code=a;break;case"feedback_id":o.feedback_id=a;break;case"show_help_action":o.show_help_action=a;break;case"show_feedback":o.show_feedback=a;break;default:console.warn(`Unexpected field: ${String(r)}`)}break}case Le.DELETE_LAST_MESSAGE_PAIR:{e.length>=2?e.splice(e.length-2,2):console.warn(`${Le.DELETE_LAST_MESSAGE_PAIR} action called with insufficient messages in draft.`);break}}}const nR={id:null,token:null,apiAccessKey:null,api_v2_token:null,twoFactorAuth:null,role:null,expiresAt:null},rR=(e,t)=>({user:nR,chatAPIUrl:ot.CHAT_API_URL,hasTAIAConfig:!1,feedbackAPIUrl:ot.FEEDBACK_API_URL,apiService:new Fr(ot.CHAT_API_URL,ot.FEEDBACK_API_URL,()=>t().user),endpoint:_r.TAIA,numRetries:0,retryTimeoutId:null,sessionId:Pb(),botState:"idle",question:"",messages:[],numMessagesExpanded:0,chatStartTimestamp:ni(),placeholders:[],onHelpAction:null,setUser:n=>e(r=>{r.user=n,r.apiService=new Fr(r.chatAPIUrl,r.feedbackAPIUrl,()=>t().user)}),setChatAPIUrl:(n,r=!0)=>e(a=>{a.chatAPIUrl=n,a.hasTAIAConfig=r,a.apiService=new Fr(n,a.feedbackAPIUrl,()=>t().user)}),setFeedbackAPIUrl:n=>e(r=>{r.feedbackAPIUrl=n,r.apiService=new Fr(r.chatAPIUrl,n,()=>t().user)}),setEndpoint:n=>e(r=>{r.endpoint=n,r.apiService=new Fr(t().chatAPIUrl,t().feedbackAPIUrl,()=>t().user)}),setQuestion:n=>e(r=>{r.question=n}),setNumRetries:n=>e(r=>{r.numRetries=n}),setRetryTimeoutId:n=>e(r=>{r.retryTimeoutId=n}),resetRetryMechanism:()=>e(n=>{n.numRetries=0,n.retryTimeoutId&&(clearTimeout(n.retryTimeoutId),n.retryTimeoutId=null)}),dispatchMessage:n=>e(r=>{t().endpoint,tR(r.messages,{...n})}),chatVisualState:je.INITIAL,setChatVisualState:n=>e(r=>{r.chatVisualState=n}),setNumMessagesExpanded:n=>e(r=>{n<0?r.numMessagesExpanded=0:r.numMessagesExpanded=n}),setBotState:n=>e(r=>{r.botState=n}),resetChat:()=>{e(n=>{n.messages.length=0,n.question="",n.chatVisualState=je.INITIAL,n.sessionId=Pb(),n.numMessagesExpanded=0,n.botState="idle",n.resetRetryMechanism(),n.chatStartTimestamp=ni()})},getLastMessage:()=>t().messages[t().messages.length-1],setOnHelpAction:n=>e(r=>{r.onHelpAction=n}),setPlaceholders:n=>e(r=>{r.placeholders=n})}),aR=`:root, :host {
56
56
  --tw-animation-delay: 0s;
57
57
  --tw-animation-direction: normal;
58
58
  --tw-animation-fill-mode: none;
@@ -364,6 +364,17 @@ React keys must be passed directly to JSX without using spread:
364
364
  .visible {
365
365
  visibility: visible;
366
366
  }
367
+ .sr-only {
368
+ position: absolute;
369
+ width: 1px;
370
+ height: 1px;
371
+ padding: 0;
372
+ margin: -1px;
373
+ overflow: hidden;
374
+ clip-path: inset(50%);
375
+ white-space: nowrap;
376
+ border-width: 0;
377
+ }
367
378
  .absolute {
368
379
  position: absolute;
369
380
  }
@@ -2678,7 +2689,7 @@ React keys must be passed directly to JSX without using spread:
2678
2689
  src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAFPIABEAAAAA5eQAAFNmAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGkAbgZJgHIR+BmAAhAYIYAmcDBEICoH+eIHgNQE2AiQDhyQLg1QABCAFgwAHIAyBPRun0zXKtl00CHQH4Km8mtyPQmDjAELwtmEU0qtNak/F/3/SURlD09S0BZgO5vUQDaVstT7m50RJA9PMqrq+ay/0PU7sq3czN3Ik+eXaVPwepCM8H6I/KtOJiurGuSrwTPMQOdSK5PH3aBB5hRfJZGUlU0gEr4Omee3TEEwYP5JIErYjXeGW3XKHXPJI0DEVX8hEsP83mOQuOSQ62y4bXRcJ6AybMSPsQlJlXE6Z4VsExi181Jx6eeBdK38ykFk6ohyQOlUCiqqxNR5IVihyvq92XW3552lb/+feGSYYSgRBQR07MRJrt8GAdVubtVisRje6fT6MDe2t0hflvh8dPE8d5tvdS0IBaV0DfBOLpVO3YglWboAd6CaEAerjzf8AbTOcoIKK1WACSgitJ0ikVImCBRZWz7UYYCwVjJoYi3IR+bGf+4omWN7HGEgihV0CtvH0cbDe7i9pPI4hk4D85kSXB98V7SfpdNLqfX6dWg0O5Gk8Ul6nQnosPVzLJjZbS5ASoVpoJUkN//oIIeD/q3v1T9thAlLhqq/sYxcogDL8IEhFKd/5w5xh1jZdOQzP55q9/E0OEITcqTAnfQmVrkT2jO74p+fq81Z1/9lWkDEIhaIRC+uyueQ8n1eX9QWWbY0sg0zj8aCHwg7BJkqyjB2+/iqCOtc1V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PxPTnyV2kBQQ8fJHxc09fJ4Z5Zl+quwgzxD3jOFjIlEi3CijtMTPh209VVP8r4ffnaM9D8LzR37C7ZbJOH13BgD4KdD/BAUhKckSe0hgEiUmQlwt5C2iCBQic8nKqRd9t6lrInla+2cBp3I+t1zmfADCqMDznbK4CWwUFT+55+dMkgWfSuQTAj8z6DRVpWAIyr+yxrCA+g0VL94j8ScV2C9E5VWKbhVxvWJLFJ7NIryyErwc+0RM/SC6C3yPI6p3RPR70kYbBo9PFrzgcPSBrMQDkCtHSLh0KfmM1+2kaAzjHlS+lYAl5/R/L0DA2FZCNQQwkzMOgDAoEQEBA8l6BNRhAbwAiLORQG1nYxKXzyYkGM4lCc8WcPOzl4fiHxBc1MCqnY1FlWpNeHeSK1pkIgqv1DOSt1qJptxoUaGZZatoo209l005q7d+oeF4mWrV4rnyRoAsrGJlLZKVn+sbGPByNUTrNAdZSY7maDs7bEp+tYdouXz0VRGNtYkWLvIVT+ZDnzPw2lAYmBI2jSzmvHr8dSq46ITH1/rfIdBzv/kPr5ZNIwQdfHmK/NzsY34bAd39Alg7UHDFvt9XdeoIb1/h8UKbgsr4WV3Y/SPne37MI3CZiHVkvEJwwp9AgEvfp8r53OSwzvcvpFxYtj/yoBgFl75qUsA+adLrgzruLV/09fhYycN1Sc/I6SsJ/oH+/0mveeBjdYz+6ZRPyP4EAA==")
2679
2690
  format("woff2");
2680
2691
  }
2681
- `;function dR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"}))}const pR=R.forwardRef(dR);function fR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const yy=R.forwardRef(fR);function gR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))}const mR=R.forwardRef(gR);function hR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const bR=R.forwardRef(hR);function yR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))}const ER=R.forwardRef(yR);function wR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))}const SR=R.forwardRef(wR);function vR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const xR=R.forwardRef(vR);function kR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const TR=R.forwardRef(kR);function AR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const IR=R.forwardRef(AR);function RR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const Ey=R.forwardRef(RR);function CR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const wy=R.forwardRef(CR);function De(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Sy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vy(...e){return t=>{let n=!1;const r=e.map(a=>{const i=Sy(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():Sy(e[a],null)}}}}function xt(...e){return R.useCallback(vy(...e),e)}function jr(e,t=[]){let n=[];function r(i,o){const s=R.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:p,children:f,...g}=d,b=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,h=R.useMemo(()=>g,Object.values(g));return y.jsx(b.Provider,{value:h,children:f})};c.displayName=i+"Provider";function u(d,p){var b;const f=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,g=R.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(o=>R.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return R.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,NR(a,...t)]}function NR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Fs(e){const t=_R(e),n=R.forwardRef((r,a)=>{const{children:i,...o}=r,s=R.Children.toArray(i),l=s.find(LR);if(l){const c=l.props.children,u=s.map(d=>d===l?R.Children.count(c)>1?R.Children.only(null):R.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...o,ref:a,children:R.isValidElement(c)?R.cloneElement(c,void 0,u):null})}return y.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function _R(e){const t=R.forwardRef((n,r)=>{const{children:a,...i}=n;if(R.isValidElement(a)){const o=MR(a),s=DR(i,a.props);return a.type!==R.Fragment&&(s.ref=r?vy(r,o):o),R.cloneElement(a,s)}return R.Children.count(a)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xy=Symbol("radix.slottable");function OR(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xy,t}function LR(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xy}function DR(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function MR(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var FR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lt=FR.reduce((e,t)=>{const n=Fs(`Primitive.${t}`),r=R.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PR(e,t){e&&cg.flushSync(()=>e.dispatchEvent(t))}function Gr(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function BR(e,t=globalThis==null?void 0:globalThis.document){const n=Gr(e);R.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var UR="DismissableLayer",Ps="dismissableLayer.update",zR="dismissableLayer.pointerDownOutside",jR="dismissableLayer.focusOutside",ky,Ty=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ay=R.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,c=R.useContext(Ty),[u,d]=R.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=R.useState({}),g=xt(t,_=>d(_)),b=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(h),E=u?b.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,T=E>=m,A=HR(_=>{const N=_.target,D=[...c.branches].some(I=>I.contains(N));!T||D||(a==null||a(_),o==null||o(_),_.defaultPrevented||s==null||s())},p),v=$R(_=>{const N=_.target;[...c.branches].some(I=>I.contains(N))||(i==null||i(_),o==null||o(_),_.defaultPrevented||s==null||s())},p);return BR(_=>{E===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},p),R.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ky=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Iy(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ky)}},[u,p,n,c]),R.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Iy())},[u,c]),R.useEffect(()=>{const _=()=>f({});return document.addEventListener(Ps,_),()=>document.removeEventListener(Ps,_)},[]),y.jsx(lt.div,{...l,ref:g,style:{pointerEvents:S?T?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,v.onFocusCapture),onBlurCapture:De(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,A.onPointerDownCapture)})});Ay.displayName=UR;var GR="DismissableLayerBranch",VR=R.forwardRef((e,t)=>{const n=R.useContext(Ty),r=R.useRef(null),a=xt(t,r);return R.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(lt.div,{...e,ref:a})});VR.displayName=GR;function HR(e,t=globalThis==null?void 0:globalThis.document){const n=Gr(e),r=R.useRef(!1),a=R.useRef(()=>{});return R.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){Ry(zR,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $R(e,t=globalThis==null?void 0:globalThis.document){const n=Gr(e),r=R.useRef(!1);return R.useEffect(()=>{const a=i=>{i.target&&!r.current&&Ry(jR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Iy(){const e=new CustomEvent(Ps);document.dispatchEvent(e)}function Ry(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?PR(a,i):a.dispatchEvent(i)}var gn=globalThis!=null&&globalThis.document?R.useLayoutEffect:()=>{},WR=R[" useId ".trim().toString()]||(()=>{}),qR=0;function Cy(e){const[t,n]=R.useState(WR());return gn(()=>{n(r=>r??String(qR++))},[e]),t?`radix-${t}`:""}const YR=["top","right","bottom","left"],Yt=Math.min,Ze=Math.max,ai=Math.round,ii=Math.floor,kt=e=>({x:e,y:e}),KR={left:"right",right:"left",bottom:"top",top:"bottom"},XR={start:"end",end:"start"};function Bs(e,t,n){return Ze(e,Yt(t,n))}function Dt(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function Us(e){return e==="x"?"y":"x"}function zs(e){return e==="y"?"height":"width"}const ZR=new Set(["top","bottom"]);function Tt(e){return ZR.has(Mt(e))?"y":"x"}function js(e){return Us(Tt(e))}function QR(e,t,n){n===void 0&&(n=!1);const r=Vn(e),a=js(e),i=zs(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=oi(o)),[o,oi(o)]}function JR(e){const t=oi(e);return[Gs(e),t,Gs(t)]}function Gs(e){return e.replace(/start|end/g,t=>XR[t])}const Ny=["left","right"],_y=["right","left"],eC=["top","bottom"],tC=["bottom","top"];function nC(e,t,n){switch(e){case"top":case"bottom":return n?t?_y:Ny:t?Ny:_y;case"left":case"right":return t?eC:tC;default:return[]}}function rC(e,t,n,r){const a=Vn(e);let i=nC(Mt(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(Gs)))),i}function oi(e){return e.replace(/left|right|bottom|top/g,t=>KR[t])}function aC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oy(e){return typeof e!="number"?aC(e):{top:e,right:e,bottom:e,left:e}}function si(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Ly(e,t,n){let{reference:r,floating:a}=e;const i=Tt(t),o=js(t),s=zs(o),l=Mt(t),c=i==="y",u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Vn(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1);break}return f}const iC=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Ly(c,r,l),p=r,f={},g=0;for(let b=0;b<s.length;b++){const{name:h,fn:m}=s[b],{x:E,y:S,data:T,reset:A}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=E??u,d=S??d,f={...f,[h]:{...f[h],...T}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):A.rects),{x:u,y:d}=Ly(c,p,l)),b=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}};async function Vr(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Dt(t,e),g=Oy(f),h=s[p?d==="floating"?"reference":"floating":d],m=si(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=si(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:S,strategy:l}):E);return{top:(m.top-A.top+g.top)/T.y,bottom:(A.bottom-m.bottom+g.bottom)/T.y,left:(m.left-A.left+g.left)/T.x,right:(A.right-m.right+g.right)/T.x}}const oC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Dt(e,t)||{};if(c==null)return{};const d=Oy(u),p={x:n,y:r},f=js(a),g=zs(f),b=await o.getDimensions(c),h=f==="y",m=h?"top":"left",E=h?"bottom":"right",S=h?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[f]-p[f]-i.floating[g],A=p[f]-i.reference[f],v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=v?v[S]:0;(!_||!await(o.isElement==null?void 0:o.isElement(v)))&&(_=s.floating[S]||i.floating[g]);const N=T/2-A/2,D=_/2-b[g]/2-1,I=Yt(d[m],D),F=Yt(d[E],D),P=I,U=_-b[g]-F,z=_/2-b[g]/2+N,B=Bs(P,z,U),H=!l.arrow&&Vn(a)!=null&&z!==B&&i.reference[g]/2-(z<P?I:F)-b[g]/2<0,j=H?z<P?z-P:z-U:0;return{[f]:p[f]+j,data:{[f]:B,centerOffset:z-B-j,...H&&{alignmentOffset:j}},reset:H}}}),sC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...h}=Dt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Mt(a),E=Tt(s),S=Mt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=p||(S||!b?[oi(s)]:JR(s)),v=g!=="none";!p&&v&&A.push(...rC(s,b,g,T));const _=[s,...A],N=await Vr(t,h),D=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(N[m]),d){const z=QR(a,o,T);D.push(N[z[0]],N[z[1]])}if(I=[...I,{placement:a,overflows:D}],!D.every(z=>z<=0)){var F,P;const z=(((F=i.flip)==null?void 0:F.index)||0)+1,B=_[z];if(B&&(!(d==="alignment"?E!==Tt(B):!1)||I.every(M=>Tt(M.placement)===E?M.overflows[0]>0:!0)))return{data:{index:z,overflows:I},reset:{placement:B}};let H=(P=I.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:P.placement;if(!H)switch(f){case"bestFit":{var U;const j=(U=I.filter(M=>{if(v){const X=Tt(M.placement);return X===E||X==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(X=>X>0).reduce((X,x)=>X+x,0)]).sort((M,X)=>M[1]-X[1])[0])==null?void 0:U[0];j&&(H=j);break}case"initialPlacement":H=s;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function Dy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function My(e){return YR.some(t=>e[t]>=0)}const lC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Dt(e,t);switch(r){case"referenceHidden":{const i=await Vr(t,{...a,elementContext:"reference"}),o=Dy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:My(o)}}}case"escaped":{const i=await Vr(t,{...a,altBoundary:!0}),o=Dy(i,n.floating);return{data:{escapedOffsets:o,escaped:My(o)}}}default:return{}}}}},Fy=new Set(["left","top"]);async function cC(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Mt(n),s=Vn(n),l=Tt(n)==="y",c=Fy.has(o)?-1:1,u=i&&l?-1:1,d=Dt(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}const uC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await cC(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},dC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:h=>{let{x:m,y:E}=h;return{x:m,y:E}}},...l}=Dt(e,t),c={x:n,y:r},u=await Vr(t,l),d=Tt(Mt(a)),p=Us(d);let f=c[p],g=c[d];if(i){const h=p==="y"?"top":"left",m=p==="y"?"bottom":"right",E=f+u[h],S=f-u[m];f=Bs(E,f,S)}if(o){const h=d==="y"?"top":"left",m=d==="y"?"bottom":"right",E=g+u[h],S=g-u[m];g=Bs(E,g,S)}const b=s.fn({...t,[p]:f,[d]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:i,[d]:o}}}}}},pC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Dt(e,t),u={x:n,y:r},d=Tt(a),p=Us(d);let f=u[p],g=u[d];const b=Dt(s,t),h=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const S=p==="y"?"height":"width",T=i.reference[p]-i.floating[S]+h.mainAxis,A=i.reference[p]+i.reference[S]-h.mainAxis;f<T?f=T:f>A&&(f=A)}if(c){var m,E;const S=p==="y"?"width":"height",T=Fy.has(Mt(a)),A=i.reference[d]-i.floating[S]+(T&&((m=o.offset)==null?void 0:m[d])||0)+(T?0:h.crossAxis),v=i.reference[d]+i.reference[S]+(T?0:((E=o.offset)==null?void 0:E[d])||0)-(T?h.crossAxis:0);g<A?g=A:g>v&&(g=v)}return{[p]:f,[d]:g}}}},fC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...c}=Dt(e,t),u=await Vr(t,c),d=Mt(a),p=Vn(a),f=Tt(a)==="y",{width:g,height:b}=i.floating;let h,m;d==="top"||d==="bottom"?(h=d,m=p===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,h=p==="end"?"top":"bottom");const E=b-u.top-u.bottom,S=g-u.left-u.right,T=Yt(b-u[h],E),A=Yt(g-u[m],S),v=!t.middlewareData.shift;let _=T,N=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=E),v&&!p){const I=Ze(u.left,0),F=Ze(u.right,0),P=Ze(u.top,0),U=Ze(u.bottom,0);f?N=g-2*(I!==0||F!==0?I+F:Ze(u.left,u.right)):_=b-2*(P!==0||U!==0?P+U:Ze(u.top,u.bottom))}await l({...t,availableWidth:N,availableHeight:_});const D=await o.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<"u"}function Hn(e){return Py(e)?(e.nodeName||"").toLowerCase():"#document"}function Qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){var t;return(t=(Py(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Py(e){return li()?e instanceof Node||e instanceof Qe(e).Node:!1}function mt(e){return li()?e instanceof Element||e instanceof Qe(e).Element:!1}function It(e){return li()?e instanceof HTMLElement||e instanceof Qe(e).HTMLElement:!1}function By(e){return!li()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qe(e).ShadowRoot}const gC=new Set(["inline","contents"]);function Hr(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gC.has(a)}const mC=new Set(["table","td","th"]);function hC(e){return mC.has(Hn(e))}const bC=[":popover-open",":modal"];function ci(e){return bC.some(t=>{try{return e.matches(t)}catch{return!1}})}const yC=["transform","translate","scale","rotate","perspective"],EC=["transform","translate","scale","rotate","perspective","filter"],wC=["paint","layout","strict","content"];function Vs(e){const t=Hs(),n=mt(e)?ht(e):e;return yC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||EC.some(r=>(n.willChange||"").includes(r))||wC.some(r=>(n.contain||"").includes(r))}function SC(e){let t=Kt(e);for(;It(t)&&!$n(t);){if(Vs(t))return t;if(ci(t))return null;t=Kt(t)}return null}function Hs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vC=new Set(["html","body","#document"]);function $n(e){return vC.has(Hn(e))}function ht(e){return Qe(e).getComputedStyle(e)}function ui(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kt(e){if(Hn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||By(e)&&e.host||At(e);return By(t)?t.host:t}function Uy(e){const t=Kt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:It(t)&&Hr(t)?t:Uy(t)}function $r(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Uy(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Qe(a);if(i){const s=$s(o);return t.concat(o,o.visualViewport||[],Hr(a)?a:[],s&&n?$r(s):[])}return t.concat(a,$r(a,[],n))}function $s(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zy(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=It(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=ai(n)!==i||ai(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Ws(e){return mt(e)?e:e.contextElement}function Wn(e){const t=Ws(e);if(!It(t))return kt(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=zy(t);let o=(i?ai(n.width):n.width)/r,s=(i?ai(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const xC=kt(0);function jy(e){const t=Qe(e);return!Hs()||!t.visualViewport?xC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qe(e)?!1:t}function mn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Ws(e);let o=kt(1);t&&(r?mt(r)&&(o=Wn(r)):o=Wn(e));const s=kC(i,n,r)?jy(i):kt(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const p=Qe(i),f=r&&mt(r)?Qe(r):r;let g=p,b=$s(g);for(;b&&r&&f!==g;){const h=Wn(b),m=b.getBoundingClientRect(),E=ht(b),S=m.left+(b.clientLeft+parseFloat(E.paddingLeft))*h.x,T=m.top+(b.clientTop+parseFloat(E.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=S,c+=T,g=Qe(b),b=$s(g)}}return si({width:u,height:d,x:l,y:c})}function di(e,t){const n=ui(e).scrollLeft;return t?t.left+n:mn(At(e)).left+n}function Gy(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-di(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function TC(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=At(r),s=t?ci(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=kt(1);const u=kt(0),d=It(r);if((d||!d&&!i)&&((Hn(r)!=="body"||Hr(o))&&(l=ui(r)),It(r))){const f=mn(r);c=Wn(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const p=o&&!d&&!i?Gy(o,l):kt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function AC(e){return Array.from(e.getClientRects())}function IC(e){const t=At(e),n=ui(e),r=e.ownerDocument.body,a=Ze(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ze(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+di(e);const s=-n.scrollTop;return ht(r).direction==="rtl"&&(o+=Ze(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}const Vy=25;function RC(e,t){const n=Qe(e),r=At(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=Hs();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const c=di(r);if(c<=0){const u=r.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Vy&&(i-=g)}else c<=Vy&&(i+=c);return{width:i,height:o,x:s,y:l}}const CC=new Set(["absolute","fixed"]);function NC(e,t){const n=mn(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=It(e)?Wn(e):kt(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:s,x:l,y:c}}function Hy(e,t,n){let r;if(t==="viewport")r=RC(e,n);else if(t==="document")r=IC(At(e));else if(mt(t))r=NC(t,n);else{const a=jy(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return si(r)}function $y(e,t){const n=Kt(e);return n===t||!mt(n)||$n(n)?!1:ht(n).position==="fixed"||$y(n,t)}function _C(e,t){const n=t.get(e);if(n)return n;let r=$r(e,[],!1).filter(s=>mt(s)&&Hn(s)!=="body"),a=null;const i=ht(e).position==="fixed";let o=i?Kt(e):e;for(;mt(o)&&!$n(o);){const s=ht(o),l=Vs(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&CC.has(a.position)||Hr(o)&&!l&&$y(e,o))?r=r.filter(u=>u!==o):a=s,o=Kt(o)}return t.set(e,r),r}function OC(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?ci(t)?[]:_C(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{const d=Hy(t,u,a);return c.top=Ze(d.top,c.top),c.right=Yt(d.right,c.right),c.bottom=Yt(d.bottom,c.bottom),c.left=Ze(d.left,c.left),c},Hy(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function LC(e){const{width:t,height:n}=zy(e);return{width:t,height:n}}function DC(e,t,n){const r=It(t),a=At(t),i=n==="fixed",o=mn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=kt(0);function c(){l.x=di(a)}if(r||!r&&!i)if((Hn(t)!=="body"||Hr(a))&&(s=ui(t)),r){const f=mn(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&c();i&&!r&&a&&c();const u=a&&!r&&!i?Gy(a,s):kt(0),d=o.left+s.scrollLeft-l.x-u.x,p=o.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function qs(e){return ht(e).position==="static"}function Wy(e,t){if(!It(e)||ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return At(e)===n&&(n=n.ownerDocument.body),n}function qy(e,t){const n=Qe(e);if(ci(e))return n;if(!It(e)){let a=Kt(e);for(;a&&!$n(a);){if(mt(a)&&!qs(a))return a;a=Kt(a)}return n}let r=Wy(e,t);for(;r&&hC(r)&&qs(r);)r=Wy(r,t);return r&&$n(r)&&qs(r)&&!Vs(r)?n:r||SC(e)||n}const MC=async function(e){const t=this.getOffsetParent||qy,n=this.getDimensions,r=await n(e.floating);return{reference:DC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FC(e){return ht(e).direction==="rtl"}const PC={convertOffsetParentRelativeRectToViewportRelativeRect:TC,getDocumentElement:At,getClippingRect:OC,getOffsetParent:qy,getElementRects:MC,getClientRects:AC,getDimensions:LC,getScale:Wn,isElement:mt,isRTL:FC};function Yy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BC(e,t){let n=null,r;const a=At(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const g=ii(d),b=ii(a.clientWidth-(u+p)),h=ii(a.clientHeight-(d+f)),m=ii(u),S={rootMargin:-g+"px "+-b+"px "+-h+"px "+-m+"px",threshold:Ze(0,Yt(1,l))||1};let T=!0;function A(v){const _=v[0].intersectionRatio;if(_!==l){if(!T)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!Yy(c,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(A,{...S,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,S)}n.observe(e)}return o(!0),i}function UC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ws(e),u=a||i?[...c?$r(c):[],...$r(t)]:[];u.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&s?BC(c,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(m=>{let[E]=m;E&&E.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,b=l?mn(e):null;l&&h();function h(){const m=mn(e);b&&!Yy(b,m)&&n(),b=m,g=requestAnimationFrame(h)}return n(),()=>{var m;u.forEach(E=>{a&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const zC=uC,jC=dC,GC=sC,VC=fC,HC=lC,Ky=oC,$C=pC,WC=(e,t,n)=>{const r=new Map,a={platform:PC,...n},i={...a.platform,_c:r};return iC(e,t,{...a,platform:i})};var qC=typeof document<"u",YC=function(){},pi=qC?O.useLayoutEffect:YC;function fi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fi(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!fi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Xy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){const n=Xy(e);return Math.round(t*n)/n}function Ys(e){const t=R.useRef(e);return pi(()=>{t.current=e}),t}function KC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=R.useState(r);fi(p,r)||f(r);const[g,b]=R.useState(null),[h,m]=R.useState(null),E=R.useCallback(M=>{M!==v.current&&(v.current=M,b(M))},[]),S=R.useCallback(M=>{M!==_.current&&(_.current=M,m(M))},[]),T=i||g,A=o||h,v=R.useRef(null),_=R.useRef(null),N=R.useRef(u),D=l!=null,I=Ys(l),F=Ys(a),P=Ys(c),U=R.useCallback(()=>{if(!v.current||!_.current)return;const M={placement:t,strategy:n,middleware:p};F.current&&(M.platform=F.current),WC(v.current,_.current,M).then(X=>{const x={...X,isPositioned:P.current!==!1};z.current&&!fi(N.current,x)&&(N.current=x,cg.flushSync(()=>{d(x)}))})},[p,t,n,F,P]);pi(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[c]);const z=R.useRef(!1);pi(()=>(z.current=!0,()=>{z.current=!1}),[]),pi(()=>{if(T&&(v.current=T),A&&(_.current=A),T&&A){if(I.current)return I.current(T,A,U);U()}},[T,A,U,I,D]);const B=R.useMemo(()=>({reference:v,floating:_,setReference:E,setFloating:S}),[E,S]),H=R.useMemo(()=>({reference:T,floating:A}),[T,A]),j=R.useMemo(()=>{const M={position:n,left:0,top:0};if(!H.floating)return M;const X=Zy(H.floating,u.x),x=Zy(H.floating,u.y);return s?{...M,transform:"translate("+X+"px, "+x+"px)",...Xy(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:x}},[n,s,H.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:U,refs:B,elements:H,floatingStyles:j}),[u,U,B,H,j])}const XC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ky({element:r.current,padding:a}).fn(n):{}:r?Ky({element:r,padding:a}).fn(n):{}}}},ZC=(e,t)=>({...zC(e),options:[e,t]}),QC=(e,t)=>({...jC(e),options:[e,t]}),JC=(e,t)=>({...$C(e),options:[e,t]}),eN=(e,t)=>({...GC(e),options:[e,t]}),tN=(e,t)=>({...VC(e),options:[e,t]}),nN=(e,t)=>({...HC(e),options:[e,t]}),rN=(e,t)=>({...XC(e),options:[e,t]});var aN="Arrow",Qy=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return y.jsx(lt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qy.displayName=aN;var iN=Qy;function oN(e){const[t,n]=R.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ks="Popper",[Jy,eE]=jr(Ks),[sN,tE]=Jy(Ks),nE=e=>{const{__scopePopper:t,children:n}=e,[r,a]=R.useState(null);return y.jsx(sN,{scope:t,anchor:r,onAnchorChange:a,children:n})};nE.displayName=Ks;var rE="PopperAnchor",aE=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=tE(rE,n),o=R.useRef(null),s=xt(t,o),l=R.useRef(null);return R.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||o.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:y.jsx(lt.div,{...a,ref:s})});aE.displayName=rE;var Xs="PopperContent",[lN,cN]=Jy(Xs),iE=R.forwardRef((e,t)=>{var K,pe,ge,Ae,Ue,tt;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:g,...b}=e,h=tE(Xs,n),[m,E]=R.useState(null),S=xt(t,Ke=>E(Ke)),[T,A]=R.useState(null),v=oN(T),_=(v==null?void 0:v.width)??0,N=(v==null?void 0:v.height)??0,D=r+(i!=="center"?"-"+i:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],P=F.length>0,U={padding:I,boundary:F.filter(dN),altBoundary:P},{refs:z,floatingStyles:B,placement:H,isPositioned:j,middlewareData:M}=KC({strategy:"fixed",placement:D,whileElementsMounted:(...Ke)=>UC(...Ke,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[ZC({mainAxis:a+N,alignmentAxis:o}),l&&QC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?JC():void 0,...U}),l&&eN({...U}),tN({...U,apply:({elements:Ke,rects:wn,availableWidth:cr,availableHeight:ur})=>{const{width:en,height:yt}=wn.reference,Ut=Ke.floating.style;Ut.setProperty("--radix-popper-available-width",`${cr}px`),Ut.setProperty("--radix-popper-available-height",`${ur}px`),Ut.setProperty("--radix-popper-anchor-width",`${en}px`),Ut.setProperty("--radix-popper-anchor-height",`${yt}px`)}}),T&&rN({element:T,padding:s}),pN({arrowWidth:_,arrowHeight:N}),p&&nN({strategy:"referenceHidden",...U})]}),[X,x]=lE(H),L=Gr(g);gn(()=>{j&&(L==null||L())},[j,L]);const $=(K=M.arrow)==null?void 0:K.x,k=(pe=M.arrow)==null?void 0:pe.y,Z=((ge=M.arrow)==null?void 0:ge.centerOffset)!==0,[de,se]=R.useState();return gn(()=>{m&&se(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(Ae=M.transformOrigin)==null?void 0:Ae.x,(Ue=M.transformOrigin)==null?void 0:Ue.y].join(" "),...((tt=M.hide)==null?void 0:tt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(lN,{scope:n,placedSide:X,onArrowChange:A,arrowX:$,arrowY:k,shouldHideArrow:Z,children:y.jsx(lt.div,{"data-side":X,"data-align":x,...b,ref:S,style:{...b.style,animation:j?void 0:"none"}})})})});iE.displayName=Xs;var oE="PopperArrow",uN={top:"bottom",right:"left",bottom:"top",left:"right"},sE=R.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=cN(oE,r),o=uN[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(iN,{...a,ref:n,style:{...a.style,display:"block"}})})});sE.displayName=oE;function dN(e){return e!==null}var pN=e=>({name:"transformOrigin",options:e,fn(t){var h,m,E;const{placement:n,rects:r,middlewareData:a}=t,o=((h=a.arrow)==null?void 0:h.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=lE(n),d={start:"0%",center:"50%",end:"100%"}[u],p=(((m=a.arrow)==null?void 0:m.x)??0)+s/2,f=(((E=a.arrow)==null?void 0:E.y)??0)+l/2;let g="",b="";return c==="bottom"?(g=o?d:`${p}px`,b=`${-l}px`):c==="top"?(g=o?d:`${p}px`,b=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,b=o?d:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,b=o?d:`${f}px`),{data:{x:g,y:b}}}});function lE(e){const[t,n="center"]=e.split("-");return[t,n]}var fN=nE,gN=aE,mN=iE,hN=sE;function bN(e,t){return R.useReducer((n,r)=>t[n][r]??n,e)}var cE=e=>{const{present:t,children:n}=e,r=yN(t),a=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),i=xt(r.ref,EN(a));return typeof n=="function"||r.isPresent?R.cloneElement(a,{ref:i}):null};cE.displayName="Presence";function yN(e){const[t,n]=R.useState(),r=R.useRef(null),a=R.useRef(e),i=R.useRef("none"),o=e?"mounted":"unmounted",[s,l]=bN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const c=gi(r.current);i.current=s==="mounted"?c:"none"},[s]),gn(()=>{const c=r.current,u=a.current;if(u!==e){const p=i.current,f=gi(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),gn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const b=gi(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&b&&(l("ANIMATION_END"),!a.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=f=>{f.target===t&&(i.current=gi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:R.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function gi(e){return(e==null?void 0:e.animationName)||"none"}function EN(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wN=R[" useInsertionEffect ".trim().toString()]||gn;function Wr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=SN({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:a;{const u=R.useRef(e!==void 0);R.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=R.useCallback(u=>{var d;if(s){const p=vN(u)?u(e):u;p!==e&&((d=o.current)==null||d.call(o,p))}else i(u)},[s,e,i,o]);return[l,c]}function SN({defaultProp:e,onChange:t}){const[n,r]=R.useState(e),a=R.useRef(n),i=R.useRef(t);return wN(()=>{i.current=t},[t]),R.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,r,i]}function vN(e){return typeof e=="function"}var xN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),kN="VisuallyHidden",uE=R.forwardRef((e,t)=>y.jsx(lt.span,{...e,ref:t,style:{...xN,...e.style}}));uE.displayName=kN;var TN=uE,[mi]=jr("Tooltip",[eE]),hi=eE(),dE="TooltipProvider",AN=700,Zs="tooltip.open",[IN,Qs]=mi(dE),pE=e=>{const{__scopeTooltip:t,delayDuration:n=AN,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,o=R.useRef(!0),s=R.useRef(!1),l=R.useRef(0);return R.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(IN,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:R.useCallback(c=>{s.current=c},[]),disableHoverableContent:a,children:i})};pE.displayName=dE;var qr="Tooltip",[RN,bi]=mi(qr),fE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=Qs(qr,e.__scopeTooltip),c=hi(t),[u,d]=R.useState(null),p=Cy(),f=R.useRef(0),g=o??l.disableHoverableContent,b=s??l.delayDuration,h=R.useRef(!1),[m,E]=Wr({prop:r,defaultProp:a??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(Zs))):l.onClose(),i==null||i(_)},caller:qr}),S=R.useMemo(()=>m?h.current?"delayed-open":"instant-open":"closed",[m]),T=R.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,E(!0)},[E]),A=R.useCallback(()=>{window.clearTimeout(f.current),f.current=0,E(!1)},[E]),v=R.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,E(!0),f.current=0},b)},[b,E]);return R.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),y.jsx(fN,{...c,children:y.jsx(RN,{scope:t,contentId:p,open:m,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:R.useCallback(()=>{l.isOpenDelayedRef.current?v():T()},[l.isOpenDelayedRef,v,T]),onTriggerLeave:R.useCallback(()=>{g?A():(window.clearTimeout(f.current),f.current=0)},[A,g]),onOpen:T,onClose:A,disableHoverableContent:g,children:n})})};fE.displayName=qr;var Js="TooltipTrigger",gE=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=bi(Js,n),i=Qs(Js,n),o=hi(n),s=R.useRef(null),l=xt(t,s,a.onTriggerChange),c=R.useRef(!1),u=R.useRef(!1),d=R.useCallback(()=>c.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(gN,{asChild:!0,...o,children:y.jsx(lt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:l,onPointerMove:De(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:De(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:De(e.onPointerDown,()=>{a.open&&a.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:De(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:De(e.onBlur,a.onClose),onClick:De(e.onClick,a.onClose)})})});gE.displayName=Js;var CN="TooltipPortal",[QP,NN]=mi(CN,{forceMount:void 0}),qn="TooltipContent",mE=R.forwardRef((e,t)=>{const n=NN(qn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=bi(qn,e.__scopeTooltip);return y.jsx(cE,{present:r||o.open,children:o.disableHoverableContent?y.jsx(hE,{side:a,...i,ref:t}):y.jsx(_N,{side:a,...i,ref:t})})}),_N=R.forwardRef((e,t)=>{const n=bi(qn,e.__scopeTooltip),r=Qs(qn,e.__scopeTooltip),a=R.useRef(null),i=xt(t,a),[o,s]=R.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=R.useCallback(()=>{s(null),d(!1)},[d]),f=R.useCallback((g,b)=>{const h=g.currentTarget,m={x:g.clientX,y:g.clientY},E=FN(m,h.getBoundingClientRect()),S=PN(m,E),T=BN(b.getBoundingClientRect()),A=zN([...S,...T]);s(A),d(!0)},[d]);return R.useEffect(()=>()=>p(),[p]),R.useEffect(()=>{if(l&&u){const g=h=>f(h,u),b=h=>f(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",b)}}},[l,u,f,p]),R.useEffect(()=>{if(o){const g=b=>{const h=b.target,m={x:b.clientX,y:b.clientY},E=(l==null?void 0:l.contains(h))||(u==null?void 0:u.contains(h)),S=!UN(m,o);E?p():S&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,p]),y.jsx(hE,{...e,ref:i})}),[ON,LN]=mi(qr,{isInside:!1}),DN=OR("TooltipContent"),hE=R.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,l=bi(qn,n),c=hi(n),{onClose:u}=l;return R.useEffect(()=>(document.addEventListener(Zs,u),()=>document.removeEventListener(Zs,u)),[u]),R.useEffect(()=>{if(l.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx(Ay,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(mN,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(DN,{children:r}),y.jsx(ON,{scope:n,isInside:!0,children:y.jsx(TN,{id:l.contentId,role:"tooltip",children:a||r})})]})})});mE.displayName=qn;var bE="TooltipArrow",MN=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=hi(n);return LN(bE,n).isInside?null:y.jsx(hN,{...a,...r,ref:t})});MN.displayName=bE;function FN(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function PN(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function BN(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function UN(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],c=s.x,u=s.y,d=l.x,p=l.y;u>r!=p>r&&n<(d-c)*(r-u)/(p-u)+c&&(a=!a)}return a}function zN(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),jN(t)}function jN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var GN=pE,VN=fE,HN=gE,yE=mE;const EE=GN,Ft=VN,Pt=HN,Rt=({className:e,sideOffset:t=4,...n})=>y.jsx(yE,{sideOffset:t,avoidCollisions:!0,collisionPadding:8,className:J("z-[9999] overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]","bg-widget-bg-primary text-widget-text-secondary border-widget-border","dark:bg-widget-bg-primary dark:text-widget-text-secondary dark:border-widget-border","will-change-transform",e),...n});Rt.displayName=yE.displayName;function wE(){const e=Y(r=>r.closeWidget),t=Y(r=>r.setCustomOpen),n=()=>{e(),t==null||t(!1)};return y.jsxs(Ft,{children:[y.jsx(Pt,{asChild:!0,children:y.jsx(ie.span,{className:J("cursor-pointer rounded-full p-0.5 border-2","text-widget-text-primary bg-widget-text-secondary border-widget-text-primary","dark:text-widget-text-primary dark:bg-widget-text-secondary dark:border-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1},whileTap:{scale:.9},onClick:n,children:y.jsx(wy,{className:"size-5"})})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Close Widget"})})]})}function $N({onClick:e}){const t=Y(r=>r.resetChat),n=O.useCallback(()=>{t(),e==null||e()},[t,e]);return y.jsxs(Ft,{children:[y.jsx(Pt,{asChild:!0,onClick:n,children:y.jsx(ie.span,{className:J("rounded-full p-1 cursor-pointer border-2","bg-widget-text-secondary border-widget-text-primary text-widget-text-primary","dark:bg-widget-text-secondary dark:border-widget-text-primary dark:text-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1,rotate:120},whileTap:{scale:.9},initial:{opacity:0,scale:0},animate:{opacity:1,scale:1,transition:{delay:.1}},children:y.jsx(yy,{className:"size-4"})})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Reset Chat"})})]})}const el=e=>y.jsxs("svg",{width:e.width,height:e.height,viewBox:"0 0 236 211",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:[e.title&&y.jsx("title",{children:e.title}),y.jsxs("g",{clipPath:"url(#clip0_486_1154)",children:[y.jsx("path",{d:"M231.927 194.514C235.881 187.393 237.006 179.067 235.083 171.168C234.531 168.984 233.769 166.858 232.806 164.819C232.502 164.15 232.156 163.501 231.771 162.874L200.418 104.252H168.341L201.143 165.69C202.172 167.475 202.714 169.496 202.714 171.552C202.714 173.608 202.172 175.628 201.143 177.414C200.139 179.082 198.715 180.464 197.01 181.424C195.305 182.385 193.378 182.89 191.416 182.892H154.009C153.595 188.612 151.801 194.15 148.776 199.041C145.751 203.931 141.584 208.033 136.625 211H205.385C209.975 210.698 214.443 209.405 218.475 207.211C224.164 204.438 228.859 200.007 231.927 194.514Z",fill:"currentColor"}),y.jsx("path",{d:"M56.0698 65.9049H88.1473L104.134 36.466C105.487 33.9253 107.515 31.7984 109.999 30.3146C112.484 28.8309 115.331 28.0467 118.233 28.0467C121.135 28.0467 123.982 28.8309 126.466 30.3146C128.951 31.7984 130.979 33.9253 132.331 36.466L147.853 65.9049H179.93L157.166 23.3081C153.391 16.2702 147.751 10.3822 140.851 6.27586C133.951 2.16956 126.052 0 118 0C109.948 0 102.049 2.16956 95.1487 6.27586C88.2488 10.3822 82.6089 16.2702 78.8345 23.3081L56.0698 65.9049Z",fill:"currentColor"}),y.jsx("path",{d:"M81.9387 99.1324C82.275 93.4362 83.9987 87.9051 86.9627 83.0107C89.9266 78.1164 94.0429 74.0041 98.9604 71.0247H36.875V99.1324H81.9387Z",fill:"currentColor"}),y.jsx("path",{d:"M87.0591 101.18V177.977H101.649C104.692 177.944 107.64 176.924 110.041 175.075C112.443 173.226 114.165 170.648 114.946 167.738C115.26 166.621 115.416 165.467 115.411 164.308V118.229C115.425 113.227 117.432 108.432 120.997 104.885C124.561 101.338 129.396 99.3264 134.451 99.286H199.382V71.0247H117.481C109.408 71.0382 101.67 74.2213 95.9663 79.8751C90.2626 85.5289 87.0591 93.1914 87.0591 101.18Z",fill:"currentColor"}),y.jsx("path",{d:"M3.1927 164.819C2.23008 166.858 1.46775 168.984 0.916237 171.168C-1.00574 179.084 0.119328 187.425 4.07225 194.565C7.14854 200.039 11.8422 204.452 17.5241 207.211C21.5555 209.405 26.0233 210.698 30.6138 211H117.999C126.232 211 134.128 207.764 139.949 202.003C145.771 196.242 149.042 188.428 149.042 180.281V104.201H134.245C130.607 104.294 127.148 105.782 124.6 108.352C122.051 110.922 120.611 114.372 120.586 117.973V164.051C120.572 169.053 118.555 173.845 114.976 177.377C111.397 180.909 106.549 182.892 101.495 182.892H44.8417C42.8798 182.89 40.9521 182.385 39.2471 181.424C37.5421 180.464 36.1182 179.082 35.1149 177.414C34.0855 175.619 33.5443 173.59 33.5443 171.526C33.5443 169.462 34.0855 167.434 35.1149 165.638L67.9167 104.201H35.5806L4.22746 162.823C3.86529 163.539 3.50313 164.154 3.1927 164.819Z",fill:"currentColor"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_486_1154",children:y.jsx("rect",{width:"236",height:"211",fill:"currentColor"})})})]}),WN={[Bn.HAS_BEEN_OPENED]:{backgroundSize:"100% 100%"},[Bn.HAS_NOT_BEEN_OPENED]:{backgroundSize:"0% 100%"}},qN=({children:e,className:t})=>{const n=Y(r=>r.hasWidgetBeenOpened);return y.jsx(ie.span,{initial:!1,animate:n,variants:WN,transition:{duration:2,ease:"linear",delay:.5},className:J("relative rounded-lg inline-block","bg-no-repeat bg-position-[left_center] bg-linear-[30deg,#00E3AA,#FFFFFF]",t),children:e})},YN=()=>y.jsxs("span",{className:"inline-flex items-start space-x-2",children:[y.jsx(el,{className:"size-7 text-telnyx-green cursor-pointer translate-y-[1px]"}),y.jsxs("span",{className:"inline-flex text-white text-2xl font-pp-formula space-x-2",children:[y.jsx("h1",{className:"pt-1",children:"Ask our"}),y.jsx(qN,{className:"text-black px-1 pt-1",children:"AI Assistant"})]})]}),KN=()=>y.jsxs("span",{className:"text-white text-sm",children:["Read more",y.jsx(XN,{text:"here"}),"."]}),XN=({text:e})=>y.jsx("a",{className:"inline underline text-telnyx-light-green hover:text-white ml-1",target:"_blank",rel:"noopener noreferrer",href:"https://support.telnyx.com/en/articles/8020222-mission-control-portal-ai-chat-support",children:e});function ZN(){return y.jsxs(ie.div,{className:"flex flex-col cursor-default rounded-2xl bg-black/50",initial:{opacity:0,y:16,scale:1},whileInView:{opacity:1,y:0,scale:1,transition:{delay:.1}},children:[y.jsx(YN,{}),y.jsx(KN,{})]})}const tl="#00E3AA",nl="#ffffff",QN=({children:e,className:t})=>{const[n,r]=O.useState({backgroundImage:`linear-gradient(30deg, ${tl}, ${nl})`,backgroundPosition:"0% 50%",backgroundSize:"100%",transition:"all 0.5s ease-in-out"}),a=s=>{const{clientX:l,clientY:c}=s,{left:u,top:d}=s.currentTarget.getBoundingClientRect(),p=l-u,f=c-d;r(g=>({...g,backgroundImage:`radial-gradient(
2692
+ `;function dR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"}))}const pR=R.forwardRef(dR);function fR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const yy=R.forwardRef(fR);function gR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))}const mR=R.forwardRef(gR);function hR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const bR=R.forwardRef(hR);function yR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))}const ER=R.forwardRef(yR);function wR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))}const SR=R.forwardRef(wR);function vR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const xR=R.forwardRef(vR);function kR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const TR=R.forwardRef(kR);function AR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const IR=R.forwardRef(AR);function RR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const Ey=R.forwardRef(RR);function CR({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const wy=R.forwardRef(CR);function De(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Sy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vy(...e){return t=>{let n=!1;const r=e.map(a=>{const i=Sy(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():Sy(e[a],null)}}}}function xt(...e){return R.useCallback(vy(...e),e)}function jr(e,t=[]){let n=[];function r(i,o){const s=R.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:p,children:f,...g}=d,b=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,h=R.useMemo(()=>g,Object.values(g));return y.jsx(b.Provider,{value:h,children:f})};c.displayName=i+"Provider";function u(d,p){var b;const f=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,g=R.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(o=>R.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return R.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,NR(a,...t)]}function NR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Fs(e){const t=_R(e),n=R.forwardRef((r,a)=>{const{children:i,...o}=r,s=R.Children.toArray(i),l=s.find(LR);if(l){const c=l.props.children,u=s.map(d=>d===l?R.Children.count(c)>1?R.Children.only(null):R.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...o,ref:a,children:R.isValidElement(c)?R.cloneElement(c,void 0,u):null})}return y.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function _R(e){const t=R.forwardRef((n,r)=>{const{children:a,...i}=n;if(R.isValidElement(a)){const o=MR(a),s=DR(i,a.props);return a.type!==R.Fragment&&(s.ref=r?vy(r,o):o),R.cloneElement(a,s)}return R.Children.count(a)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xy=Symbol("radix.slottable");function OR(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xy,t}function LR(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xy}function DR(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function MR(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var FR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lt=FR.reduce((e,t)=>{const n=Fs(`Primitive.${t}`),r=R.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PR(e,t){e&&cg.flushSync(()=>e.dispatchEvent(t))}function Gr(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function BR(e,t=globalThis==null?void 0:globalThis.document){const n=Gr(e);R.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var UR="DismissableLayer",Ps="dismissableLayer.update",zR="dismissableLayer.pointerDownOutside",jR="dismissableLayer.focusOutside",ky,Ty=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ay=R.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,c=R.useContext(Ty),[u,d]=R.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=R.useState({}),g=xt(t,_=>d(_)),b=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(h),E=u?b.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,T=E>=m,A=HR(_=>{const N=_.target,D=[...c.branches].some(I=>I.contains(N));!T||D||(a==null||a(_),o==null||o(_),_.defaultPrevented||s==null||s())},p),v=$R(_=>{const N=_.target;[...c.branches].some(I=>I.contains(N))||(i==null||i(_),o==null||o(_),_.defaultPrevented||s==null||s())},p);return BR(_=>{E===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},p),R.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ky=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Iy(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ky)}},[u,p,n,c]),R.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Iy())},[u,c]),R.useEffect(()=>{const _=()=>f({});return document.addEventListener(Ps,_),()=>document.removeEventListener(Ps,_)},[]),y.jsx(lt.div,{...l,ref:g,style:{pointerEvents:S?T?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,v.onFocusCapture),onBlurCapture:De(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,A.onPointerDownCapture)})});Ay.displayName=UR;var GR="DismissableLayerBranch",VR=R.forwardRef((e,t)=>{const n=R.useContext(Ty),r=R.useRef(null),a=xt(t,r);return R.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(lt.div,{...e,ref:a})});VR.displayName=GR;function HR(e,t=globalThis==null?void 0:globalThis.document){const n=Gr(e),r=R.useRef(!1),a=R.useRef(()=>{});return R.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){Ry(zR,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $R(e,t=globalThis==null?void 0:globalThis.document){const n=Gr(e),r=R.useRef(!1);return R.useEffect(()=>{const a=i=>{i.target&&!r.current&&Ry(jR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Iy(){const e=new CustomEvent(Ps);document.dispatchEvent(e)}function Ry(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?PR(a,i):a.dispatchEvent(i)}var gn=globalThis!=null&&globalThis.document?R.useLayoutEffect:()=>{},WR=R[" useId ".trim().toString()]||(()=>{}),qR=0;function Cy(e){const[t,n]=R.useState(WR());return gn(()=>{n(r=>r??String(qR++))},[e]),t?`radix-${t}`:""}const YR=["top","right","bottom","left"],Yt=Math.min,Ze=Math.max,ai=Math.round,ii=Math.floor,kt=e=>({x:e,y:e}),KR={left:"right",right:"left",bottom:"top",top:"bottom"},XR={start:"end",end:"start"};function Bs(e,t,n){return Ze(e,Yt(t,n))}function Dt(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function Us(e){return e==="x"?"y":"x"}function zs(e){return e==="y"?"height":"width"}const ZR=new Set(["top","bottom"]);function Tt(e){return ZR.has(Mt(e))?"y":"x"}function js(e){return Us(Tt(e))}function QR(e,t,n){n===void 0&&(n=!1);const r=Vn(e),a=js(e),i=zs(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=oi(o)),[o,oi(o)]}function JR(e){const t=oi(e);return[Gs(e),t,Gs(t)]}function Gs(e){return e.replace(/start|end/g,t=>XR[t])}const Ny=["left","right"],_y=["right","left"],eC=["top","bottom"],tC=["bottom","top"];function nC(e,t,n){switch(e){case"top":case"bottom":return n?t?_y:Ny:t?Ny:_y;case"left":case"right":return t?eC:tC;default:return[]}}function rC(e,t,n,r){const a=Vn(e);let i=nC(Mt(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(Gs)))),i}function oi(e){return e.replace(/left|right|bottom|top/g,t=>KR[t])}function aC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oy(e){return typeof e!="number"?aC(e):{top:e,right:e,bottom:e,left:e}}function si(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Ly(e,t,n){let{reference:r,floating:a}=e;const i=Tt(t),o=js(t),s=zs(o),l=Mt(t),c=i==="y",u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Vn(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1);break}return f}const iC=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Ly(c,r,l),p=r,f={},g=0;for(let b=0;b<s.length;b++){const{name:h,fn:m}=s[b],{x:E,y:S,data:T,reset:A}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=E??u,d=S??d,f={...f,[h]:{...f[h],...T}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):A.rects),{x:u,y:d}=Ly(c,p,l)),b=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}};async function Vr(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Dt(t,e),g=Oy(f),h=s[p?d==="floating"?"reference":"floating":d],m=si(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=si(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:S,strategy:l}):E);return{top:(m.top-A.top+g.top)/T.y,bottom:(A.bottom-m.bottom+g.bottom)/T.y,left:(m.left-A.left+g.left)/T.x,right:(A.right-m.right+g.right)/T.x}}const oC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Dt(e,t)||{};if(c==null)return{};const d=Oy(u),p={x:n,y:r},f=js(a),g=zs(f),b=await o.getDimensions(c),h=f==="y",m=h?"top":"left",E=h?"bottom":"right",S=h?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[f]-p[f]-i.floating[g],A=p[f]-i.reference[f],v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=v?v[S]:0;(!_||!await(o.isElement==null?void 0:o.isElement(v)))&&(_=s.floating[S]||i.floating[g]);const N=T/2-A/2,D=_/2-b[g]/2-1,I=Yt(d[m],D),F=Yt(d[E],D),P=I,U=_-b[g]-F,z=_/2-b[g]/2+N,B=Bs(P,z,U),H=!l.arrow&&Vn(a)!=null&&z!==B&&i.reference[g]/2-(z<P?I:F)-b[g]/2<0,j=H?z<P?z-P:z-U:0;return{[f]:p[f]+j,data:{[f]:B,centerOffset:z-B-j,...H&&{alignmentOffset:j}},reset:H}}}),sC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...h}=Dt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Mt(a),E=Tt(s),S=Mt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=p||(S||!b?[oi(s)]:JR(s)),v=g!=="none";!p&&v&&A.push(...rC(s,b,g,T));const _=[s,...A],N=await Vr(t,h),D=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(N[m]),d){const z=QR(a,o,T);D.push(N[z[0]],N[z[1]])}if(I=[...I,{placement:a,overflows:D}],!D.every(z=>z<=0)){var F,P;const z=(((F=i.flip)==null?void 0:F.index)||0)+1,B=_[z];if(B&&(!(d==="alignment"?E!==Tt(B):!1)||I.every(M=>Tt(M.placement)===E?M.overflows[0]>0:!0)))return{data:{index:z,overflows:I},reset:{placement:B}};let H=(P=I.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:P.placement;if(!H)switch(f){case"bestFit":{var U;const j=(U=I.filter(M=>{if(v){const X=Tt(M.placement);return X===E||X==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(X=>X>0).reduce((X,x)=>X+x,0)]).sort((M,X)=>M[1]-X[1])[0])==null?void 0:U[0];j&&(H=j);break}case"initialPlacement":H=s;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function Dy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function My(e){return YR.some(t=>e[t]>=0)}const lC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Dt(e,t);switch(r){case"referenceHidden":{const i=await Vr(t,{...a,elementContext:"reference"}),o=Dy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:My(o)}}}case"escaped":{const i=await Vr(t,{...a,altBoundary:!0}),o=Dy(i,n.floating);return{data:{escapedOffsets:o,escaped:My(o)}}}default:return{}}}}},Fy=new Set(["left","top"]);async function cC(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Mt(n),s=Vn(n),l=Tt(n)==="y",c=Fy.has(o)?-1:1,u=i&&l?-1:1,d=Dt(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}const uC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await cC(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},dC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:h=>{let{x:m,y:E}=h;return{x:m,y:E}}},...l}=Dt(e,t),c={x:n,y:r},u=await Vr(t,l),d=Tt(Mt(a)),p=Us(d);let f=c[p],g=c[d];if(i){const h=p==="y"?"top":"left",m=p==="y"?"bottom":"right",E=f+u[h],S=f-u[m];f=Bs(E,f,S)}if(o){const h=d==="y"?"top":"left",m=d==="y"?"bottom":"right",E=g+u[h],S=g-u[m];g=Bs(E,g,S)}const b=s.fn({...t,[p]:f,[d]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:i,[d]:o}}}}}},pC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Dt(e,t),u={x:n,y:r},d=Tt(a),p=Us(d);let f=u[p],g=u[d];const b=Dt(s,t),h=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const S=p==="y"?"height":"width",T=i.reference[p]-i.floating[S]+h.mainAxis,A=i.reference[p]+i.reference[S]-h.mainAxis;f<T?f=T:f>A&&(f=A)}if(c){var m,E;const S=p==="y"?"width":"height",T=Fy.has(Mt(a)),A=i.reference[d]-i.floating[S]+(T&&((m=o.offset)==null?void 0:m[d])||0)+(T?0:h.crossAxis),v=i.reference[d]+i.reference[S]+(T?0:((E=o.offset)==null?void 0:E[d])||0)-(T?h.crossAxis:0);g<A?g=A:g>v&&(g=v)}return{[p]:f,[d]:g}}}},fC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...c}=Dt(e,t),u=await Vr(t,c),d=Mt(a),p=Vn(a),f=Tt(a)==="y",{width:g,height:b}=i.floating;let h,m;d==="top"||d==="bottom"?(h=d,m=p===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,h=p==="end"?"top":"bottom");const E=b-u.top-u.bottom,S=g-u.left-u.right,T=Yt(b-u[h],E),A=Yt(g-u[m],S),v=!t.middlewareData.shift;let _=T,N=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=E),v&&!p){const I=Ze(u.left,0),F=Ze(u.right,0),P=Ze(u.top,0),U=Ze(u.bottom,0);f?N=g-2*(I!==0||F!==0?I+F:Ze(u.left,u.right)):_=b-2*(P!==0||U!==0?P+U:Ze(u.top,u.bottom))}await l({...t,availableWidth:N,availableHeight:_});const D=await o.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<"u"}function Hn(e){return Py(e)?(e.nodeName||"").toLowerCase():"#document"}function Qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){var t;return(t=(Py(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Py(e){return li()?e instanceof Node||e instanceof Qe(e).Node:!1}function mt(e){return li()?e instanceof Element||e instanceof Qe(e).Element:!1}function It(e){return li()?e instanceof HTMLElement||e instanceof Qe(e).HTMLElement:!1}function By(e){return!li()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qe(e).ShadowRoot}const gC=new Set(["inline","contents"]);function Hr(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gC.has(a)}const mC=new Set(["table","td","th"]);function hC(e){return mC.has(Hn(e))}const bC=[":popover-open",":modal"];function ci(e){return bC.some(t=>{try{return e.matches(t)}catch{return!1}})}const yC=["transform","translate","scale","rotate","perspective"],EC=["transform","translate","scale","rotate","perspective","filter"],wC=["paint","layout","strict","content"];function Vs(e){const t=Hs(),n=mt(e)?ht(e):e;return yC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||EC.some(r=>(n.willChange||"").includes(r))||wC.some(r=>(n.contain||"").includes(r))}function SC(e){let t=Kt(e);for(;It(t)&&!$n(t);){if(Vs(t))return t;if(ci(t))return null;t=Kt(t)}return null}function Hs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vC=new Set(["html","body","#document"]);function $n(e){return vC.has(Hn(e))}function ht(e){return Qe(e).getComputedStyle(e)}function ui(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kt(e){if(Hn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||By(e)&&e.host||At(e);return By(t)?t.host:t}function Uy(e){const t=Kt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:It(t)&&Hr(t)?t:Uy(t)}function $r(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Uy(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Qe(a);if(i){const s=$s(o);return t.concat(o,o.visualViewport||[],Hr(a)?a:[],s&&n?$r(s):[])}return t.concat(a,$r(a,[],n))}function $s(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zy(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=It(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=ai(n)!==i||ai(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Ws(e){return mt(e)?e:e.contextElement}function Wn(e){const t=Ws(e);if(!It(t))return kt(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=zy(t);let o=(i?ai(n.width):n.width)/r,s=(i?ai(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const xC=kt(0);function jy(e){const t=Qe(e);return!Hs()||!t.visualViewport?xC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qe(e)?!1:t}function mn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Ws(e);let o=kt(1);t&&(r?mt(r)&&(o=Wn(r)):o=Wn(e));const s=kC(i,n,r)?jy(i):kt(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const p=Qe(i),f=r&&mt(r)?Qe(r):r;let g=p,b=$s(g);for(;b&&r&&f!==g;){const h=Wn(b),m=b.getBoundingClientRect(),E=ht(b),S=m.left+(b.clientLeft+parseFloat(E.paddingLeft))*h.x,T=m.top+(b.clientTop+parseFloat(E.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=S,c+=T,g=Qe(b),b=$s(g)}}return si({width:u,height:d,x:l,y:c})}function di(e,t){const n=ui(e).scrollLeft;return t?t.left+n:mn(At(e)).left+n}function Gy(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-di(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function TC(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=At(r),s=t?ci(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=kt(1);const u=kt(0),d=It(r);if((d||!d&&!i)&&((Hn(r)!=="body"||Hr(o))&&(l=ui(r)),It(r))){const f=mn(r);c=Wn(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const p=o&&!d&&!i?Gy(o,l):kt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function AC(e){return Array.from(e.getClientRects())}function IC(e){const t=At(e),n=ui(e),r=e.ownerDocument.body,a=Ze(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ze(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+di(e);const s=-n.scrollTop;return ht(r).direction==="rtl"&&(o+=Ze(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}const Vy=25;function RC(e,t){const n=Qe(e),r=At(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=Hs();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const c=di(r);if(c<=0){const u=r.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Vy&&(i-=g)}else c<=Vy&&(i+=c);return{width:i,height:o,x:s,y:l}}const CC=new Set(["absolute","fixed"]);function NC(e,t){const n=mn(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=It(e)?Wn(e):kt(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:s,x:l,y:c}}function Hy(e,t,n){let r;if(t==="viewport")r=RC(e,n);else if(t==="document")r=IC(At(e));else if(mt(t))r=NC(t,n);else{const a=jy(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return si(r)}function $y(e,t){const n=Kt(e);return n===t||!mt(n)||$n(n)?!1:ht(n).position==="fixed"||$y(n,t)}function _C(e,t){const n=t.get(e);if(n)return n;let r=$r(e,[],!1).filter(s=>mt(s)&&Hn(s)!=="body"),a=null;const i=ht(e).position==="fixed";let o=i?Kt(e):e;for(;mt(o)&&!$n(o);){const s=ht(o),l=Vs(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&CC.has(a.position)||Hr(o)&&!l&&$y(e,o))?r=r.filter(u=>u!==o):a=s,o=Kt(o)}return t.set(e,r),r}function OC(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?ci(t)?[]:_C(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{const d=Hy(t,u,a);return c.top=Ze(d.top,c.top),c.right=Yt(d.right,c.right),c.bottom=Yt(d.bottom,c.bottom),c.left=Ze(d.left,c.left),c},Hy(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function LC(e){const{width:t,height:n}=zy(e);return{width:t,height:n}}function DC(e,t,n){const r=It(t),a=At(t),i=n==="fixed",o=mn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=kt(0);function c(){l.x=di(a)}if(r||!r&&!i)if((Hn(t)!=="body"||Hr(a))&&(s=ui(t)),r){const f=mn(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&c();i&&!r&&a&&c();const u=a&&!r&&!i?Gy(a,s):kt(0),d=o.left+s.scrollLeft-l.x-u.x,p=o.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function qs(e){return ht(e).position==="static"}function Wy(e,t){if(!It(e)||ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return At(e)===n&&(n=n.ownerDocument.body),n}function qy(e,t){const n=Qe(e);if(ci(e))return n;if(!It(e)){let a=Kt(e);for(;a&&!$n(a);){if(mt(a)&&!qs(a))return a;a=Kt(a)}return n}let r=Wy(e,t);for(;r&&hC(r)&&qs(r);)r=Wy(r,t);return r&&$n(r)&&qs(r)&&!Vs(r)?n:r||SC(e)||n}const MC=async function(e){const t=this.getOffsetParent||qy,n=this.getDimensions,r=await n(e.floating);return{reference:DC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FC(e){return ht(e).direction==="rtl"}const PC={convertOffsetParentRelativeRectToViewportRelativeRect:TC,getDocumentElement:At,getClippingRect:OC,getOffsetParent:qy,getElementRects:MC,getClientRects:AC,getDimensions:LC,getScale:Wn,isElement:mt,isRTL:FC};function Yy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BC(e,t){let n=null,r;const a=At(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const g=ii(d),b=ii(a.clientWidth-(u+p)),h=ii(a.clientHeight-(d+f)),m=ii(u),S={rootMargin:-g+"px "+-b+"px "+-h+"px "+-m+"px",threshold:Ze(0,Yt(1,l))||1};let T=!0;function A(v){const _=v[0].intersectionRatio;if(_!==l){if(!T)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!Yy(c,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(A,{...S,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,S)}n.observe(e)}return o(!0),i}function UC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ws(e),u=a||i?[...c?$r(c):[],...$r(t)]:[];u.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&s?BC(c,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(m=>{let[E]=m;E&&E.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,b=l?mn(e):null;l&&h();function h(){const m=mn(e);b&&!Yy(b,m)&&n(),b=m,g=requestAnimationFrame(h)}return n(),()=>{var m;u.forEach(E=>{a&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const zC=uC,jC=dC,GC=sC,VC=fC,HC=lC,Ky=oC,$C=pC,WC=(e,t,n)=>{const r=new Map,a={platform:PC,...n},i={...a.platform,_c:r};return iC(e,t,{...a,platform:i})};var qC=typeof document<"u",YC=function(){},pi=qC?O.useLayoutEffect:YC;function fi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fi(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!fi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Xy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){const n=Xy(e);return Math.round(t*n)/n}function Ys(e){const t=R.useRef(e);return pi(()=>{t.current=e}),t}function KC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=R.useState(r);fi(p,r)||f(r);const[g,b]=R.useState(null),[h,m]=R.useState(null),E=R.useCallback(M=>{M!==v.current&&(v.current=M,b(M))},[]),S=R.useCallback(M=>{M!==_.current&&(_.current=M,m(M))},[]),T=i||g,A=o||h,v=R.useRef(null),_=R.useRef(null),N=R.useRef(u),D=l!=null,I=Ys(l),F=Ys(a),P=Ys(c),U=R.useCallback(()=>{if(!v.current||!_.current)return;const M={placement:t,strategy:n,middleware:p};F.current&&(M.platform=F.current),WC(v.current,_.current,M).then(X=>{const x={...X,isPositioned:P.current!==!1};z.current&&!fi(N.current,x)&&(N.current=x,cg.flushSync(()=>{d(x)}))})},[p,t,n,F,P]);pi(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[c]);const z=R.useRef(!1);pi(()=>(z.current=!0,()=>{z.current=!1}),[]),pi(()=>{if(T&&(v.current=T),A&&(_.current=A),T&&A){if(I.current)return I.current(T,A,U);U()}},[T,A,U,I,D]);const B=R.useMemo(()=>({reference:v,floating:_,setReference:E,setFloating:S}),[E,S]),H=R.useMemo(()=>({reference:T,floating:A}),[T,A]),j=R.useMemo(()=>{const M={position:n,left:0,top:0};if(!H.floating)return M;const X=Zy(H.floating,u.x),x=Zy(H.floating,u.y);return s?{...M,transform:"translate("+X+"px, "+x+"px)",...Xy(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:x}},[n,s,H.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:U,refs:B,elements:H,floatingStyles:j}),[u,U,B,H,j])}const XC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ky({element:r.current,padding:a}).fn(n):{}:r?Ky({element:r,padding:a}).fn(n):{}}}},ZC=(e,t)=>({...zC(e),options:[e,t]}),QC=(e,t)=>({...jC(e),options:[e,t]}),JC=(e,t)=>({...$C(e),options:[e,t]}),eN=(e,t)=>({...GC(e),options:[e,t]}),tN=(e,t)=>({...VC(e),options:[e,t]}),nN=(e,t)=>({...HC(e),options:[e,t]}),rN=(e,t)=>({...XC(e),options:[e,t]});var aN="Arrow",Qy=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return y.jsx(lt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qy.displayName=aN;var iN=Qy;function oN(e){const[t,n]=R.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ks="Popper",[Jy,eE]=jr(Ks),[sN,tE]=Jy(Ks),nE=e=>{const{__scopePopper:t,children:n}=e,[r,a]=R.useState(null);return y.jsx(sN,{scope:t,anchor:r,onAnchorChange:a,children:n})};nE.displayName=Ks;var rE="PopperAnchor",aE=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=tE(rE,n),o=R.useRef(null),s=xt(t,o),l=R.useRef(null);return R.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||o.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:y.jsx(lt.div,{...a,ref:s})});aE.displayName=rE;var Xs="PopperContent",[lN,cN]=Jy(Xs),iE=R.forwardRef((e,t)=>{var K,pe,ge,Ae,Ue,tt;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:g,...b}=e,h=tE(Xs,n),[m,E]=R.useState(null),S=xt(t,Ke=>E(Ke)),[T,A]=R.useState(null),v=oN(T),_=(v==null?void 0:v.width)??0,N=(v==null?void 0:v.height)??0,D=r+(i!=="center"?"-"+i:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],P=F.length>0,U={padding:I,boundary:F.filter(dN),altBoundary:P},{refs:z,floatingStyles:B,placement:H,isPositioned:j,middlewareData:M}=KC({strategy:"fixed",placement:D,whileElementsMounted:(...Ke)=>UC(...Ke,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[ZC({mainAxis:a+N,alignmentAxis:o}),l&&QC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?JC():void 0,...U}),l&&eN({...U}),tN({...U,apply:({elements:Ke,rects:wn,availableWidth:cr,availableHeight:ur})=>{const{width:en,height:yt}=wn.reference,Ut=Ke.floating.style;Ut.setProperty("--radix-popper-available-width",`${cr}px`),Ut.setProperty("--radix-popper-available-height",`${ur}px`),Ut.setProperty("--radix-popper-anchor-width",`${en}px`),Ut.setProperty("--radix-popper-anchor-height",`${yt}px`)}}),T&&rN({element:T,padding:s}),pN({arrowWidth:_,arrowHeight:N}),p&&nN({strategy:"referenceHidden",...U})]}),[X,x]=lE(H),L=Gr(g);gn(()=>{j&&(L==null||L())},[j,L]);const $=(K=M.arrow)==null?void 0:K.x,k=(pe=M.arrow)==null?void 0:pe.y,Z=((ge=M.arrow)==null?void 0:ge.centerOffset)!==0,[de,se]=R.useState();return gn(()=>{m&&se(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(Ae=M.transformOrigin)==null?void 0:Ae.x,(Ue=M.transformOrigin)==null?void 0:Ue.y].join(" "),...((tt=M.hide)==null?void 0:tt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(lN,{scope:n,placedSide:X,onArrowChange:A,arrowX:$,arrowY:k,shouldHideArrow:Z,children:y.jsx(lt.div,{"data-side":X,"data-align":x,...b,ref:S,style:{...b.style,animation:j?void 0:"none"}})})})});iE.displayName=Xs;var oE="PopperArrow",uN={top:"bottom",right:"left",bottom:"top",left:"right"},sE=R.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=cN(oE,r),o=uN[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(iN,{...a,ref:n,style:{...a.style,display:"block"}})})});sE.displayName=oE;function dN(e){return e!==null}var pN=e=>({name:"transformOrigin",options:e,fn(t){var h,m,E;const{placement:n,rects:r,middlewareData:a}=t,o=((h=a.arrow)==null?void 0:h.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=lE(n),d={start:"0%",center:"50%",end:"100%"}[u],p=(((m=a.arrow)==null?void 0:m.x)??0)+s/2,f=(((E=a.arrow)==null?void 0:E.y)??0)+l/2;let g="",b="";return c==="bottom"?(g=o?d:`${p}px`,b=`${-l}px`):c==="top"?(g=o?d:`${p}px`,b=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,b=o?d:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,b=o?d:`${f}px`),{data:{x:g,y:b}}}});function lE(e){const[t,n="center"]=e.split("-");return[t,n]}var fN=nE,gN=aE,mN=iE,hN=sE;function bN(e,t){return R.useReducer((n,r)=>t[n][r]??n,e)}var cE=e=>{const{present:t,children:n}=e,r=yN(t),a=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),i=xt(r.ref,EN(a));return typeof n=="function"||r.isPresent?R.cloneElement(a,{ref:i}):null};cE.displayName="Presence";function yN(e){const[t,n]=R.useState(),r=R.useRef(null),a=R.useRef(e),i=R.useRef("none"),o=e?"mounted":"unmounted",[s,l]=bN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const c=gi(r.current);i.current=s==="mounted"?c:"none"},[s]),gn(()=>{const c=r.current,u=a.current;if(u!==e){const p=i.current,f=gi(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),gn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const b=gi(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&b&&(l("ANIMATION_END"),!a.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=f=>{f.target===t&&(i.current=gi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:R.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function gi(e){return(e==null?void 0:e.animationName)||"none"}function EN(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wN=R[" useInsertionEffect ".trim().toString()]||gn;function Wr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=SN({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:a;{const u=R.useRef(e!==void 0);R.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=R.useCallback(u=>{var d;if(s){const p=vN(u)?u(e):u;p!==e&&((d=o.current)==null||d.call(o,p))}else i(u)},[s,e,i,o]);return[l,c]}function SN({defaultProp:e,onChange:t}){const[n,r]=R.useState(e),a=R.useRef(n),i=R.useRef(t);return wN(()=>{i.current=t},[t]),R.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,r,i]}function vN(e){return typeof e=="function"}var xN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),kN="VisuallyHidden",uE=R.forwardRef((e,t)=>y.jsx(lt.span,{...e,ref:t,style:{...xN,...e.style}}));uE.displayName=kN;var TN=uE,[mi]=jr("Tooltip",[eE]),hi=eE(),dE="TooltipProvider",AN=700,Zs="tooltip.open",[IN,Qs]=mi(dE),pE=e=>{const{__scopeTooltip:t,delayDuration:n=AN,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,o=R.useRef(!0),s=R.useRef(!1),l=R.useRef(0);return R.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(IN,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:R.useCallback(c=>{s.current=c},[]),disableHoverableContent:a,children:i})};pE.displayName=dE;var qr="Tooltip",[RN,bi]=mi(qr),fE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=Qs(qr,e.__scopeTooltip),c=hi(t),[u,d]=R.useState(null),p=Cy(),f=R.useRef(0),g=o??l.disableHoverableContent,b=s??l.delayDuration,h=R.useRef(!1),[m,E]=Wr({prop:r,defaultProp:a??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(Zs))):l.onClose(),i==null||i(_)},caller:qr}),S=R.useMemo(()=>m?h.current?"delayed-open":"instant-open":"closed",[m]),T=R.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,E(!0)},[E]),A=R.useCallback(()=>{window.clearTimeout(f.current),f.current=0,E(!1)},[E]),v=R.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,E(!0),f.current=0},b)},[b,E]);return R.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),y.jsx(fN,{...c,children:y.jsx(RN,{scope:t,contentId:p,open:m,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:R.useCallback(()=>{l.isOpenDelayedRef.current?v():T()},[l.isOpenDelayedRef,v,T]),onTriggerLeave:R.useCallback(()=>{g?A():(window.clearTimeout(f.current),f.current=0)},[A,g]),onOpen:T,onClose:A,disableHoverableContent:g,children:n})})};fE.displayName=qr;var Js="TooltipTrigger",gE=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=bi(Js,n),i=Qs(Js,n),o=hi(n),s=R.useRef(null),l=xt(t,s,a.onTriggerChange),c=R.useRef(!1),u=R.useRef(!1),d=R.useCallback(()=>c.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(gN,{asChild:!0,...o,children:y.jsx(lt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:l,onPointerMove:De(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:De(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:De(e.onPointerDown,()=>{a.open&&a.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:De(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:De(e.onBlur,a.onClose),onClick:De(e.onClick,a.onClose)})})});gE.displayName=Js;var CN="TooltipPortal",[QP,NN]=mi(CN,{forceMount:void 0}),qn="TooltipContent",mE=R.forwardRef((e,t)=>{const n=NN(qn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=bi(qn,e.__scopeTooltip);return y.jsx(cE,{present:r||o.open,children:o.disableHoverableContent?y.jsx(hE,{side:a,...i,ref:t}):y.jsx(_N,{side:a,...i,ref:t})})}),_N=R.forwardRef((e,t)=>{const n=bi(qn,e.__scopeTooltip),r=Qs(qn,e.__scopeTooltip),a=R.useRef(null),i=xt(t,a),[o,s]=R.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=R.useCallback(()=>{s(null),d(!1)},[d]),f=R.useCallback((g,b)=>{const h=g.currentTarget,m={x:g.clientX,y:g.clientY},E=FN(m,h.getBoundingClientRect()),S=PN(m,E),T=BN(b.getBoundingClientRect()),A=zN([...S,...T]);s(A),d(!0)},[d]);return R.useEffect(()=>()=>p(),[p]),R.useEffect(()=>{if(l&&u){const g=h=>f(h,u),b=h=>f(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",b)}}},[l,u,f,p]),R.useEffect(()=>{if(o){const g=b=>{const h=b.target,m={x:b.clientX,y:b.clientY},E=(l==null?void 0:l.contains(h))||(u==null?void 0:u.contains(h)),S=!UN(m,o);E?p():S&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,p]),y.jsx(hE,{...e,ref:i})}),[ON,LN]=mi(qr,{isInside:!1}),DN=OR("TooltipContent"),hE=R.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,l=bi(qn,n),c=hi(n),{onClose:u}=l;return R.useEffect(()=>(document.addEventListener(Zs,u),()=>document.removeEventListener(Zs,u)),[u]),R.useEffect(()=>{if(l.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx(Ay,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(mN,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(DN,{children:r}),y.jsx(ON,{scope:n,isInside:!0,children:y.jsx(TN,{id:l.contentId,role:"tooltip",children:a||r})})]})})});mE.displayName=qn;var bE="TooltipArrow",MN=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=hi(n);return LN(bE,n).isInside?null:y.jsx(hN,{...a,...r,ref:t})});MN.displayName=bE;function FN(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function PN(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function BN(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function UN(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],c=s.x,u=s.y,d=l.x,p=l.y;u>r!=p>r&&n<(d-c)*(r-u)/(p-u)+c&&(a=!a)}return a}function zN(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),jN(t)}function jN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var GN=pE,VN=fE,HN=gE,yE=mE;const EE=GN,Ft=VN,Pt=HN,Rt=({className:e,sideOffset:t=4,...n})=>y.jsx(yE,{sideOffset:t,avoidCollisions:!0,collisionPadding:8,className:J("z-[9999] overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]","bg-widget-bg-primary text-widget-text-secondary border-widget-border","dark:bg-widget-bg-primary dark:text-widget-text-secondary dark:border-widget-border","will-change-transform",e),...n});Rt.displayName=yE.displayName;function wE(){const e=Y(r=>r.closeWidget),t=Y(r=>r.setCustomOpen),n=()=>{e(),t==null||t(!1)};return y.jsxs(Ft,{children:[y.jsx(Pt,{asChild:!0,children:y.jsx(ie.span,{className:J("cursor-pointer rounded-full p-0.5 border-2","text-widget-text-primary bg-widget-text-secondary border-widget-text-primary","dark:text-widget-text-primary dark:bg-widget-text-secondary dark:border-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1},whileTap:{scale:.9},onClick:n,children:y.jsx(wy,{className:"size-5"})})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Close Widget"})})]})}function $N({onClick:e}){const t=Y(r=>r.resetChat),n=O.useCallback(()=>{t(),e==null||e()},[t,e]);return y.jsxs(Ft,{children:[y.jsx(Pt,{asChild:!0,onClick:n,children:y.jsx(ie.span,{className:J("rounded-full p-1 cursor-pointer border-2","bg-widget-text-secondary border-widget-text-primary text-widget-text-primary","dark:bg-widget-text-secondary dark:border-widget-text-primary dark:text-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1,rotate:120},whileTap:{scale:.9},initial:{opacity:0,scale:0},animate:{opacity:1,scale:1,transition:{delay:.1}},children:y.jsx(yy,{className:"size-4"})})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Reset Chat"})})]})}const el=e=>y.jsxs("svg",{width:e.width,height:e.height,viewBox:"0 0 236 211",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:[e.title&&y.jsx("title",{children:e.title}),y.jsxs("g",{clipPath:"url(#clip0_486_1154)",children:[y.jsx("path",{d:"M231.927 194.514C235.881 187.393 237.006 179.067 235.083 171.168C234.531 168.984 233.769 166.858 232.806 164.819C232.502 164.15 232.156 163.501 231.771 162.874L200.418 104.252H168.341L201.143 165.69C202.172 167.475 202.714 169.496 202.714 171.552C202.714 173.608 202.172 175.628 201.143 177.414C200.139 179.082 198.715 180.464 197.01 181.424C195.305 182.385 193.378 182.89 191.416 182.892H154.009C153.595 188.612 151.801 194.15 148.776 199.041C145.751 203.931 141.584 208.033 136.625 211H205.385C209.975 210.698 214.443 209.405 218.475 207.211C224.164 204.438 228.859 200.007 231.927 194.514Z",fill:"currentColor"}),y.jsx("path",{d:"M56.0698 65.9049H88.1473L104.134 36.466C105.487 33.9253 107.515 31.7984 109.999 30.3146C112.484 28.8309 115.331 28.0467 118.233 28.0467C121.135 28.0467 123.982 28.8309 126.466 30.3146C128.951 31.7984 130.979 33.9253 132.331 36.466L147.853 65.9049H179.93L157.166 23.3081C153.391 16.2702 147.751 10.3822 140.851 6.27586C133.951 2.16956 126.052 0 118 0C109.948 0 102.049 2.16956 95.1487 6.27586C88.2488 10.3822 82.6089 16.2702 78.8345 23.3081L56.0698 65.9049Z",fill:"currentColor"}),y.jsx("path",{d:"M81.9387 99.1324C82.275 93.4362 83.9987 87.9051 86.9627 83.0107C89.9266 78.1164 94.0429 74.0041 98.9604 71.0247H36.875V99.1324H81.9387Z",fill:"currentColor"}),y.jsx("path",{d:"M87.0591 101.18V177.977H101.649C104.692 177.944 107.64 176.924 110.041 175.075C112.443 173.226 114.165 170.648 114.946 167.738C115.26 166.621 115.416 165.467 115.411 164.308V118.229C115.425 113.227 117.432 108.432 120.997 104.885C124.561 101.338 129.396 99.3264 134.451 99.286H199.382V71.0247H117.481C109.408 71.0382 101.67 74.2213 95.9663 79.8751C90.2626 85.5289 87.0591 93.1914 87.0591 101.18Z",fill:"currentColor"}),y.jsx("path",{d:"M3.1927 164.819C2.23008 166.858 1.46775 168.984 0.916237 171.168C-1.00574 179.084 0.119328 187.425 4.07225 194.565C7.14854 200.039 11.8422 204.452 17.5241 207.211C21.5555 209.405 26.0233 210.698 30.6138 211H117.999C126.232 211 134.128 207.764 139.949 202.003C145.771 196.242 149.042 188.428 149.042 180.281V104.201H134.245C130.607 104.294 127.148 105.782 124.6 108.352C122.051 110.922 120.611 114.372 120.586 117.973V164.051C120.572 169.053 118.555 173.845 114.976 177.377C111.397 180.909 106.549 182.892 101.495 182.892H44.8417C42.8798 182.89 40.9521 182.385 39.2471 181.424C37.5421 180.464 36.1182 179.082 35.1149 177.414C34.0855 175.619 33.5443 173.59 33.5443 171.526C33.5443 169.462 34.0855 167.434 35.1149 165.638L67.9167 104.201H35.5806L4.22746 162.823C3.86529 163.539 3.50313 164.154 3.1927 164.819Z",fill:"currentColor"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_486_1154",children:y.jsx("rect",{width:"236",height:"211",fill:"currentColor"})})})]}),WN={[Bn.HAS_BEEN_OPENED]:{backgroundSize:"100% 100%"},[Bn.HAS_NOT_BEEN_OPENED]:{backgroundSize:"0% 100%"}},qN=({children:e,className:t})=>{const n=Y(r=>r.hasWidgetBeenOpened);return y.jsx(ie.span,{initial:!1,animate:n,variants:WN,transition:{duration:2,ease:"linear",delay:.5},className:J("relative rounded-lg inline-block","bg-no-repeat bg-position-[left_center] bg-linear-[30deg,#00E3AA,#FFFFFF]",t),children:e})},YN=()=>y.jsxs("span",{className:"inline-flex items-start space-x-2",children:[y.jsx(el,{className:"size-7 text-telnyx-green cursor-pointer translate-y-[1px]"}),y.jsxs("span",{className:"inline-flex text-white text-2xl font-pp-formula space-x-2",children:[y.jsx("h1",{className:"pt-1",children:"Ask our"}),y.jsx(qN,{className:"text-black px-1 pt-1",children:"AI Assistant"})]})]}),KN=()=>y.jsxs("span",{className:"text-white text-sm",children:[y.jsx(XN,{text:"Read more about the AI assistant"}),"."]}),XN=({text:e})=>y.jsxs("a",{className:"inline underline text-telnyx-light-green hover:text-white",target:"_blank",rel:"noopener noreferrer",href:"https://support.telnyx.com/en/articles/8020222-mission-control-portal-ai-chat-support",children:[e,y.jsx("span",{className:"sr-only",children:" (opens in a new tab)"})]});function ZN(){return y.jsxs(ie.div,{className:"flex flex-col cursor-default rounded-2xl bg-black/50",initial:{opacity:0,y:16,scale:1},whileInView:{opacity:1,y:0,scale:1,transition:{delay:.1}},children:[y.jsx(YN,{}),y.jsx(KN,{})]})}const tl="#00E3AA",nl="#ffffff",QN=({children:e,className:t})=>{const[n,r]=O.useState({backgroundImage:`linear-gradient(30deg, ${tl}, ${nl})`,backgroundPosition:"0% 50%",backgroundSize:"100%",transition:"all 0.5s ease-in-out"}),a=s=>{const{clientX:l,clientY:c}=s,{left:u,top:d}=s.currentTarget.getBoundingClientRect(),p=l-u,f=c-d;r(g=>({...g,backgroundImage:`radial-gradient(
2682
2693
  48px circle at ${p}px ${f}px,
2683
2694
  ${tl}, ${nl}
2684
2695
  )`}))},i=()=>{r(s=>({...s,backgroundPosition:"100% 50%"}))},o=()=>{r(s=>({...s,backgroundImage:`linear-gradient(30deg, ${tl}, ${nl})`,backgroundPosition:"0% 50%"}))};return y.jsx("span",{className:"inline-flex bg-black",children:y.jsx("h1",{className:J("text-transparent text-lg bg-clip-text","font-pp-formula font-bold","cursor-default",t),style:n,onMouseMove:a,onMouseEnter:i,onMouseLeave:o,children:e})})},JN=({children:e,className:t})=>y.jsx(vt,{children:y.jsxs(ie.span,{className:J("inline-flex items-center justify-center space-x-1 flex-1 overflow-y-clip",t),initial:{opacity:0,y:10},animate:{opacity:1,y:-6},children:[y.jsx(el,{className:"size-5 text-telnyx-green cursor-pointer -translate-y-0.5"}),y.jsx(QN,{children:e})]})}),e_=O.memo(JN),t_=({resetChatCustomHandler:e})=>{const t=Y(n=>n.chatVisualState);return y.jsx(vt,{mode:"wait",children:t===je.INITIAL?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"flex justify-end",children:y.jsx(wE,{})}),y.jsx(ZN,{})]}):y.jsxs("div",{className:"flex justify-between",children:[y.jsx($N,{onClick:e}),y.jsx(e_,{children:"AI Assistant"}),y.jsx(wE,{})]})})};function n_({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M15.73 5.5h1.035A7.465 7.465 0 0 1 18 9.625a7.465 7.465 0 0 1-1.235 4.125h-.148c-.806 0-1.534.446-2.031 1.08a9.04 9.04 0 0 1-2.861 2.4c-.723.384-1.35.956-1.653 1.715a4.499 4.499 0 0 0-.322 1.672v.633A.75.75 0 0 1 9 22a2.25 2.25 0 0 1-2.25-2.25c0-1.152.26-2.243.723-3.218.266-.558-.107-1.282-.725-1.282H3.622c-1.026 0-1.945-.694-2.054-1.715A12.137 12.137 0 0 1 1.5 12.25c0-2.848.992-5.464 2.649-7.521C4.537 4.247 5.136 4 5.754 4H9.77a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23ZM21.669 14.023c.536-1.362.831-2.845.831-4.398 0-1.22-.182-2.398-.52-3.507-.26-.85-1.084-1.368-1.973-1.368H19.1c-.445 0-.72.498-.523.898.591 1.2.924 2.55.924 3.977a8.958 8.958 0 0 1-1.302 4.666c-.245.403.028.959.5.959h1.053c.832 0 1.612-.453 1.918-1.227Z"}))}const r_=R.forwardRef(n_);function a_({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M7.493 18.5c-.425 0-.82-.236-.975-.632A7.48 7.48 0 0 1 6 15.125c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75A.75.75 0 0 1 15 2a2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23h-.777ZM2.331 10.727a11.969 11.969 0 0 0-.831 4.398 12 12 0 0 0 .52 3.507C2.28 19.482 3.105 20 3.994 20H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 0 1-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227Z"}))}const i_=R.forwardRef(a_);function o_({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"}))}const SE=R.forwardRef(o_);function s_({title:e,titleId:t,...n},r){return R.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?R.createElement("title",{id:t},e):null,R.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z",clipRule:"evenodd"}))}const l_=R.forwardRef(s_),c_=ie.create(Ey),u_=ie.create(SE),d_=`${st.OPEN}-${je.INITIAL}`,p_=`${st.OPEN}-${je.USER_HAS_TYPED}`,f_=`${st.CLOSED}-${je.INITIAL}`,g_=`${st.CLOSED}-${je.USER_HAS_TYPED}`,m_={[d_]:{x:-14,y:-36,scale:.8,backgroundColor:"var(--color-telnyx-light-green)",transition:{backgroundColor:{delay:.1},x:{delay:0},y:{delay:0}}},[p_]:{x:-14,y:-18,scale:.8,backgroundColor:"var(--color-telnyx-light-green)",transition:{duration:.2,delay:.2}},[f_]:{x:0,y:-6,scale:1,backgroundColor:"var(--color-telnyx-green)",color:"rgba(0, 0, 0, 1)",transition:{delay:.6,color:{delay:.2}}},[g_]:{x:0,y:-6,scale:1,backgroundColor:"var(--color-telnyx-green)",color:"rgba(0, 0, 0, 1)",transition:{delay:.6,color:{delay:.2}}}},vE=e=>({open:t=>({opacity:e==="outline"?t?0:1:t?1:0,top:"50%",left:"50%",x:"calc(-50% + 1px)",y:"calc(-50% - 1px)",rotate:"-45deg",transition:{x:{delay:.2},y:{delay:.2}}}),closed:{top:"50%",left:"50%",x:32,y:32,rotate:"-30deg"}}),h_={open:{x:"calc(-50% - 26px)",y:"calc(-50% - 26px)",transition:{duration:.3}},closed:{top:"50%",left:"50%",x:"-50%",y:"-50%",transition:{x:{delay:.2},y:{delay:.2}}}},b_={idle:{opacity:0,scale:0,top:-6,right:2,transitionDelay:1.1},loading:{opacity:1,scale:[.8,1.2,.8],background:"radial-gradient(oklch(79.5% 0.184 86.047), oklch(90.5% 0.182 98.111))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"}}},streaming:{opacity:1,scale:[.8,1.2,.8],background:"radial-gradient(oklch(79.5% 0.184 86.047), oklch(90.5% 0.182 98.111))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"}}},complete:{opacity:1,scale:[.8,1.4,.8],right:[2,3,2,3,2,3,2,3,2],background:"radial-gradient(oklch(68.5% 0.169 237.323), oklch(86.5% 0.127 207.078))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"},right:{duration:.4,repeat:1/0,repeatType:"loop",repeatDelay:1.6,delay:.9}}},error:{opacity:1,scale:[.8,1.2,.8],right:[2,3,2,3,2,3,2,3,2],background:"radial-gradient(oklch(57.7% 0.245 27.325), oklch(70.4% 0.191 22.216))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"},right:{duration:.4,repeat:1/0,repeatType:"loop",repeatDelay:1.6,delay:.9}}},retrying:{opacity:1,scale:[.8,1.2,.8],background:"radial-gradient(oklch(70.5% 0.213 47.604), oklch(83.7% 0.128 66.29))",transition:{delay:1.1,scale:{duration:1,ease:"easeInOut",repeat:1/0,repeatType:"loop"}}}},y_=({question:e,handleSendMessage:t,triggerIcon:n})=>{const r=Y(d=>d.chatVisualState),a=Y(d=>d.widgetVisualState),i=Y(d=>d.openWidget),o=Y(d=>d.botState),s=Y(d=>d.widgetVisualState===st.OPEN),l=Y(d=>d.widgetVisualState===st.CLOSED),c=o==="loading"||o==="streaming",u=O.useMemo(()=>ie.create(n),[n]);return y.jsxs("div",{className:"fixed bottom-4.5 right-6 z-[9999]",children:[y.jsxs(ie.button,{disabled:s&&!e||s&&c,className:J("relative rounded-full p-2 size-10 overflow-clip cursor-pointer disabled:cursor-default",l&&"shadow-md",s&&!!e&&"shadow-md",s&&c&&"opacity-50"),whileHover:l?{scale:1.1}:s?e?{scale:.9}:{}:{},whileTap:l?{scale:.9}:s?e?{scale:.7}:{}:{},onClick:l?i:t,variants:m_,initial:!1,animate:`${a}-${r}`,children:[y.jsx(u,{className:"absolute size-[22px]",initial:!1,variants:h_,animate:a}),y.jsx(c_,{className:"absolute size-6",initial:!1,variants:vE("outline"),custom:!!e,animate:a}),y.jsx(u_,{className:"absolute size-6",initial:!1,variants:vE("solid"),custom:!!e,animate:a})]}),y.jsx(E_,{botState:o,isWidgetClosed:l})]})},E_=({botState:e,isWidgetClosed:t})=>t?y.jsx(ie.div,{className:J("absolute","w-2 h-2 rounded-full","shadow-2xl"),initial:"idle",variants:b_,animate:e}):null;function xE({className:e,containerRef:t,onClick:n,direction:r,scrollThreshold:a=150,ref:i}){const{scrollYProgress:o}=m0({container:t}),[s,l]=O.useState(!1),c=O.useRef(0),u=O.useRef(0);KA(o,"change",f=>{if(typeof f!="number")return;const g=o.get()<.05,b=o.get()>.95;let h=0;t.current&&(h=t.current.scrollTop);const m=h-c.current;if(c.current=h,r==="up"){if(g){l(!1),u.current=0;return}m<0?u.current+=Math.abs(m):(u.current=0,l(!1)),u.current>a&&l(!0)}else{if(b){l(!1),u.current=0;return}m>0?u.current+=m:(u.current=0,l(!1)),u.current>a&&l(!0)}});const d=f=>{const g=t.current;if(!g)return;const b=g.scrollHeight;f==="up"?g.scrollTo({top:0,behavior:"smooth"}):g.scrollTo({top:b,behavior:"smooth"})},p=()=>{d(r),n==null||n(),u.current=0,l(!1)};return y.jsx(vt,{mode:"wait",children:y.jsx(ie.div,{ref:i,initial:{opacity:1,y:r==="up"?-20:20},animate:{y:s?0:r==="up"?-20:20,opacity:s?1:0},transition:{duration:.2},className:J("absolute inset-x-0 mx-auto w-fit max-w-fit rounded-full bg-white shadow-md z-[1000]",r==="up"?"top-6":"bottom-24",e),children:y.jsxs("button",{className:J("text-black px-4 py-2 rounded-full","transition-all","hover:cursor-pointer","hover:text-telnyx-green","hover:ring-1 hover:ring-telnyx-green hover:ring-offset-transparent"),onClick:p,children:[r==="up"?y.jsx(mR,{className:"size-4"}):y.jsx(pR,{className:"size-4"}),y.jsx("span",{className:"absolute inset-x-0 w-1/2 mx-auto -bottom-px bg-gradient-to-r from-transparent via-telnyx-green to-transparent h-px"})]})})})}const kE=(e,t,n,r)=>{const a=O.useRef(n);a.current=n,O.useEffect(()=>{if(!e.current||(r==null?void 0:r.enabled)===!1)return;const i=o=>{o.key===t&&((r==null?void 0:r.shiftKey)!==void 0&&o.shiftKey!==r.shiftKey||(r==null?void 0:r.ctrlKey)!==void 0&&o.ctrlKey!==r.ctrlKey||(r==null?void 0:r.altKey)!==void 0&&o.altKey!==r.altKey||(r==null?void 0:r.metaKey)!==void 0&&o.metaKey!==r.metaKey||a.current(o))};return e.current.addEventListener("keydown",i),()=>{var o;(o=e.current)==null||o.removeEventListener("keydown",i)}},[e,t,r])};function w_(e){const t=e+"CollectionProvider",[n,r]=jr(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=b=>{const{scope:h,children:m}=b,E=O.useRef(null),S=O.useRef(new Map).current;return y.jsx(a,{scope:h,itemMap:S,collectionRef:E,children:m})};o.displayName=t;const s=e+"CollectionSlot",l=Fs(s),c=O.forwardRef((b,h)=>{const{scope:m,children:E}=b,S=i(s,m),T=xt(h,S.collectionRef);return y.jsx(l,{ref:T,children:E})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Fs(u),f=O.forwardRef((b,h)=>{const{scope:m,children:E,...S}=b,T=O.useRef(null),A=xt(h,T),v=i(u,m);return O.useEffect(()=>(v.itemMap.set(T,{ref:T,...S}),()=>void v.itemMap.delete(T))),y.jsx(p,{[d]:"",ref:A,children:E})});f.displayName=u;function g(b){const h=i(e+"CollectionConsumer",b);return O.useCallback(()=>{const E=h.collectionRef.current;if(!E)return[];const S=Array.from(E.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((v,_)=>S.indexOf(v.ref.current)-S.indexOf(_.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},g,r]}var S_=R.createContext(void 0);function TE(e){const t=R.useContext(S_);return e||t||"ltr"}var rl="rovingFocusGroup.onEntryFocus",v_={bubbles:!1,cancelable:!0},Yr="RovingFocusGroup",[al,AE,x_]=w_(Yr),[k_,IE]=jr(Yr,[x_]),[T_,A_]=k_(Yr),RE=R.forwardRef((e,t)=>y.jsx(al.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(al.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(I_,{...e,ref:t})})}));RE.displayName=Yr;var I_=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=R.useRef(null),f=xt(t,p),g=TE(i),[b,h]=Wr({prop:o,defaultProp:s??null,onChange:l,caller:Yr}),[m,E]=R.useState(!1),S=Gr(c),T=AE(n),A=R.useRef(!1),[v,_]=R.useState(0);return R.useEffect(()=>{const N=p.current;if(N)return N.addEventListener(rl,S),()=>N.removeEventListener(rl,S)},[S]),y.jsx(T_,{scope:n,orientation:r,dir:g,loop:a,currentTabStopId:b,onItemFocus:R.useCallback(N=>h(N),[h]),onItemShiftTab:R.useCallback(()=>E(!0),[]),onFocusableItemAdd:R.useCallback(()=>_(N=>N+1),[]),onFocusableItemRemove:R.useCallback(()=>_(N=>N-1),[]),children:y.jsx(lt.div,{tabIndex:m||v===0?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:De(e.onMouseDown,()=>{A.current=!0}),onFocus:De(e.onFocus,N=>{const D=!A.current;if(N.target===N.currentTarget&&D&&!m){const I=new CustomEvent(rl,v_);if(N.currentTarget.dispatchEvent(I),!I.defaultPrevented){const F=T().filter(H=>H.focusable),P=F.find(H=>H.active),U=F.find(H=>H.id===b),B=[P,U,...F].filter(Boolean).map(H=>H.ref.current);_E(B,u)}}A.current=!1}),onBlur:De(e.onBlur,()=>E(!1))})})}),CE="RovingFocusGroupItem",NE=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:o,...s}=e,l=Cy(),c=i||l,u=A_(CE,n),d=u.currentTabStopId===c,p=AE(n),{onFocusableItemAdd:f,onFocusableItemRemove:g,currentTabStopId:b}=u;return R.useEffect(()=>{if(r)return f(),()=>g()},[r,f,g]),y.jsx(al.ItemSlot,{scope:n,id:c,focusable:r,active:a,children:y.jsx(lt.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:De(e.onMouseDown,h=>{r?u.onItemFocus(c):h.preventDefault()}),onFocus:De(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:De(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const m=N_(h,u.orientation,u.dir);if(m!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let S=p().filter(T=>T.focusable).map(T=>T.ref.current);if(m==="last")S.reverse();else if(m==="prev"||m==="next"){m==="prev"&&S.reverse();const T=S.indexOf(h.currentTarget);S=u.loop?__(S,T+1):S.slice(T+1)}setTimeout(()=>_E(S))}}),children:typeof o=="function"?o({isCurrentTabStop:d,hasTabStop:b!=null}):o})})});NE.displayName=CE;var R_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C_(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function N_(e,t,n){const r=C_(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return R_[r]}function _E(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function __(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var O_=RE,L_=NE,OE="Toggle",LE=R.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:a,...i}=e,[o,s]=Wr({prop:n,onChange:a,defaultProp:r??!1,caller:OE});return y.jsx(lt.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:De(e.onClick,()=>{e.disabled||s(!o)})})});LE.displayName=OE;var Xt="ToggleGroup",[DE]=jr(Xt,[IE]),ME=IE(),il=O.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const a=r;return y.jsx(D_,{...a,ref:t})}if(n==="multiple"){const a=r;return y.jsx(M_,{...a,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Xt}\``)});il.displayName=Xt;var[FE,PE]=DE(Xt),D_=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[o,s]=Wr({prop:n,defaultProp:r??"",onChange:a,caller:Xt});return y.jsx(FE,{scope:e.__scopeToggleGroup,type:"single",value:O.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:O.useCallback(()=>s(""),[s]),children:y.jsx(BE,{...i,ref:t})})}),M_=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[o,s]=Wr({prop:n,defaultProp:r??[],onChange:a,caller:Xt}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(p=>p!==u)),[s]);return y.jsx(FE,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:y.jsx(BE,{...i,ref:t})})});il.displayName=Xt;var[F_,P_]=DE(Xt),BE=O.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:a=!0,orientation:i,dir:o,loop:s=!0,...l}=e,c=ME(n),u=TE(o),d={role:"group",dir:u,...l};return y.jsx(F_,{scope:n,rovingFocus:a,disabled:r,children:a?y.jsx(O_,{asChild:!0,...c,orientation:i,dir:u,loop:s,children:y.jsx(lt.div,{...d,ref:t})}):y.jsx(lt.div,{...d,ref:t})})}),yi="ToggleGroupItem",UE=O.forwardRef((e,t)=>{const n=PE(yi,e.__scopeToggleGroup),r=P_(yi,e.__scopeToggleGroup),a=ME(e.__scopeToggleGroup),i=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:i,disabled:o},l=O.useRef(null);return r.rovingFocus?y.jsx(L_,{asChild:!0,...a,focusable:!o,active:i,ref:l,children:y.jsx(zE,{...s,ref:t})}):y.jsx(zE,{...s,ref:t})});UE.displayName=yi;var zE=O.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...a}=e,i=PE(yi,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=i.type==="single"?o:void 0;return y.jsx(LE,{...s,...a,ref:t,onPressedChange:l=>{l?i.onItemActivate(r):i.onItemDeactivate(r)}})}),B_=il,U_=UE;const jE=R.createContext({size:"default",variant:"default"});function z_({className:e,size:t="default",variant:n="default",children:r,ref:a,...i}){return y.jsx(B_,{ref:a,className:J("flex items-center gap-1",e),...i,children:y.jsx(jE.Provider,{value:{size:t,variant:n},children:r})})}const ol={base:"inline-flex flex-1 items-center justify-center gap-1.5 rounded-full text-xs font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",variant:{default:"bg-transparent text-gray-500 hover:bg-gray-100 hover:text-gray-700 data-[state=on]:bg-black data-[state=on]:text-white",outline:"border border-neutral-500 bg-transparent text-neutral-500 hover:bg-telnyx-cream hover:text-gray-700 data-[state=on]:border-black data-[state=on]:bg-black data-[state=on]:text-white",telnyx:"border border-black bg-transparent text-black hover:bg-telnyx-cream hover:text-gray-700 data-[state=on]:border-black data-[state=on]:bg-black data-[state=on]:text-telnyx-green"},size:{default:"px-3 py-1.5",xs:"px-1.5 py-0.5",sm:"px-2.5 py-1",lg:"px-4 py-2"}};function j_({className:e,children:t,variant:n,size:r,ref:a,...i}){const o=R.useContext(jE),s=n||o.variant||"default",l=r||o.size||"default";return y.jsx(U_,{ref:a,className:J(ol.base,ol.variant[s],ol.size[l],e),...i,children:t})}const G_=200;function V_(){const[e,t]=O.useState(!1),n=O.useRef(null),r=Y(u=>u.endpoint),a=Y(u=>u.setEndpoint),i=Y(u=>u.botState),o=i==="loading"||i==="streaming";if(Ob.length<2)return null;const s=u=>{u&&a(u)},l=()=>{n.current=setTimeout(()=>{t(!0)},G_)},c=()=>{n.current&&(clearTimeout(n.current),n.current=null),t(!1)};return y.jsx(ie.div,{className:J("relative z-0","border-2 border-black bg-telnyx-dark-cream","rounded-t-xl","px-1 pt-0.5 pb-3.5","transition-[padding]",o&&"hidden"),onHoverStart:l,onHoverEnd:c,animate:{y:14},transition:{duration:.2,ease:"easeOut"},children:y.jsx(z_,{type:"single",value:r,onValueChange:s,disabled:o,className:J("flex items-center justify-between","transition-[gap] duration-200 ease-out",e?"gap-1":"gap-0"),children:Ob.map((u,d)=>{const{Icon:p}=u;return y.jsxs(Ft,{children:[y.jsx(Pt,{asChild:!0,children:y.jsx("span",{className:J("flex flex-1",!e&&r!==u.endpoint&&"hidden"),children:y.jsxs(j_,{value:u.endpoint,"aria-label":u.ariaLabel,variant:"telnyx",className:J("flex-1 transition-all duration-200 ease-out",e?"px-2.5 py-1 text-xs":"px-2 py-0.5 text-[8px]"),children:[y.jsx(p,{className:J("transition-all duration-200",e?"size-3":"size-2")}),y.jsx("span",{children:u.label})]})})}),y.jsx(Rt,{side:"top",align:d===0?"start":"end",className:"p-0",children:y.jsxs("div",{className:"p-3 max-w-[220px] space-y-2",children:[y.jsx("p",{className:"font-semibold text-sm",children:u.tooltip.title}),y.jsx("ul",{className:"space-y-1",children:u.tooltip.capabilities.map(f=>y.jsxs("li",{className:"text-xs flex items-center gap-1.5",children:[y.jsx("span",{className:"text-green-400",children:"✓"}),y.jsx("span",{children:f})]},f))}),y.jsxs("div",{className:"text-xs flex items-center gap-1.5 text-gray-300",children:[y.jsx("span",{children:"⏱"}),y.jsx("span",{children:u.tooltip.timing})]})]})})]},u.endpoint)})})})}const H_=ie.create(Ey),$_=ie.create(SE),GE=e=>({open:t=>({opacity:e==="outline"?t?0:1:t?1:0,top:"50%",left:"50%",x:"calc(-50% + 1px)",y:"calc(-50% - 1px)",rotate:"-45deg"})}),W_=({question:e,handleSendMessage:t})=>{const n=Y(i=>i.botState),r=!!e,a=n==="loading"||n==="streaming";return y.jsxs(ie.button,{disabled:!r||a,className:J("bg-telnyx-light-green relative rounded-full p-2 size-8 overflow-clip","cursor-pointer disabled:cursor-default",r&&"shadow-md"),whileHover:r?{scale:.9}:{},whileTap:r?{scale:.7}:{},onClick:t,children:[y.jsx(H_,{className:"absolute size-4.5",initial:!1,variants:GE("outline"),custom:r,animate:"open"}),y.jsx($_,{className:"absolute size-4.5",initial:!1,variants:GE("solid"),custom:r,animate:"open"})]})};function q_({message:e,handleInput:t,placeholders:n,handleSendMessage:r,ref:a}){const i=Y(m=>m.setCustomOpen),o=Y(m=>m.botState),s=o==="loading"||o==="streaming",[l,c]=O.useState(0),u=O.useRef(null),d=O.useRef(0),p=O.useRef(null),f=!!i,g=O.useCallback(m=>{p.current=m,typeof a=="function"?a(m):a&&(a.current=m)},[a]);kE(p,"Enter",m=>{var E;m.shiftKey||(m.preventDefault(),r(),(E=p.current)==null||E.blur())},{enabled:!s,shiftKey:!1}),kE(p,"Escape",()=>{var m;(m=p.current)==null||m.blur()});const b=O.useCallback(()=>{if(document.visibilityState!=="visible"&&u.current)return;const m=E=>{E-d.current>=3e3&&(c(S=>(S+1)%n.length),d.current=E),u.current=requestAnimationFrame(m)};d.current=performance.now(),u.current=requestAnimationFrame(m)},[n.length]),h=O.useCallback(()=>{document.visibilityState!=="visible"&&u.current?(cancelAnimationFrame(u.current),u.current=null):document.visibilityState==="visible"&&b()},[b]);return O.useEffect(()=>(b(),document.addEventListener("visibilitychange",h),()=>{u.current&&cancelAnimationFrame(u.current),document.removeEventListener("visibilitychange",h)}),[n,b,h]),y.jsxs("div",{className:"flex flex-col",children:[y.jsx(V_,{}),y.jsx("div",{className:J("flex flex-col rounded-xl border-2","bg-widget-input-bg border-widget-input-border","dark:bg-widget-input-bg dark:border-widget-input-border","transition-all focus-within:ring-1 focus-within:ring-widget-text-primary focus-within:ring-offset-0.5 focus-within:bg-widget-hover-bg","dark:focus-within:ring-widget-text-primary dark:focus-within:bg-widget-hover-bg","relative z-10",s&&"opacity-50"),children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"pl-4 pt-3 pb-2 flex-1 relative",children:[y.jsx("textarea",{id:"user-message-input",ref:g,value:e,onInput:t,disabled:s,"aria-disabled":s,className:J("w-full max-h-24 bg-transparent text-sm resize-none overflow-y-auto focus:outline-hidden","text-widget-text-primary dark:text-widget-text-primary","placeholder:text-widget-text-muted dark:placeholder:text-widget-text-muted","focus:placeholder:text-widget-text-primary dark:focus:placeholder:text-widget-text-primary","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent","[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary dark:[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary"),rows:1}),y.jsx("div",{className:"absolute inset-0 flex items-center pointer-events-none",children:y.jsx(vt,{mode:"wait",children:!e&&y.jsx(ie.p,{initial:{y:5,opacity:0},animate:{y:0,opacity:1},exit:{y:-15,opacity:0},transition:{duration:.3,ease:"linear"},className:"text-neutral-500 text-sm pl-4 text-left w-[calc(100%-32px)] truncate",children:n[l]},`current-placeholder-${l}`)})})]}),y.jsx("span",{className:"w-12 flex items-center justify-center mb-0",children:f&&y.jsx(W_,{question:e,handleSendMessage:r})})]})})]})}const Y_={[Bn.HAS_NOT_BEEN_OPENED]:{y:0},[Bn.HAS_BEEN_OPENED]:{y:[0,-3,0],scale:[1,1.01,1],filter:["blur(0px)","blur(5px)","blur(0px)"],opacity:[1,.8,1]}};function K_({text:e,className:t}){const n=Y(r=>r.hasWidgetBeenOpened);return e.split("").map((r,a)=>y.jsx(ie.span,{initial:!1,animate:n,variants:Y_,transition:{duration:.5,delay:a*.05},className:J("inline-block whitespace-pre font-sans tracking-tight",t),children:r},`${r}-${a}`))}const X_=()=>y.jsxs("div",{className:"flex justify-center text-xs pb-0.5 mt-2",children:[y.jsx(el,{className:"h-4 w-4 mr-1"}),y.jsx(K_,{className:"translate-y-0.5 font-pp-formula",text:"Powered by Telnyx"})]}),Z_={[je.INITIAL]:{y:0},[je.USER_HAS_TYPED]:{y:0,transition:{duration:.2}}};function Q_({question:e,handleInput:t,handleSendMessage:n,ref:r}){const a=Y(f=>f.chatVisualState),i=Y(f=>f.onHelpAction),o=Y(f=>f.botState),s=Y(f=>f.getLastMessage()),l=(s==null?void 0:s.show_help_action)===!0,c=a===je.USER_HAS_TYPED,u=Y(f=>f.placeholders),d=o==="error"?["Error!","Please try again."]:u,p=l&&i!==null;return y.jsx("div",{className:J("mt-2 pt-1",c&&"mt-0 mb-2 pt-0"),children:y.jsxs(ie.div,{initial:"initial",animate:a,variants:Z_,className:"space-y-1",children:[p&&y.jsx(J_,{onHelpAction:i}),y.jsx(q_,{ref:r,message:e,handleInput:t,handleSendMessage:n,placeholders:d}),!c&&y.jsx(X_,{})]})})}const J_=({onHelpAction:e})=>y.jsx("div",{className:"flex items-center justify-center mb-0.5",children:y.jsxs(ie.button,{initial:{scale:.5,opacity:0,y:10},animate:{scale:.75,opacity:1,y:0,transition:{duration:.2}},exit:{scale:.5,y:10,transition:{duration:.2}},whileHover:{scale:.8,transition:{duration:.2}},whileTap:{scale:.7,transition:{duration:.2}},className:J("flex items-center gap-1 rounded-full p-2","cursor-pointer","bg-widget-bg-primary text-widget-text-secondary","dark:bg-widget-bg-primary dark:text-widget-text-secondary"),onClick:e,children:[y.jsx("p",{className:"text-sm font-medium text-widget-text-secondary dark:text-widget-text-secondary",children:"Chat to support"}),y.jsx(l_,{className:"size-5 text-widget-text-secondary dark:text-widget-text-secondary"})]})}),eO=({children:e,className:t,containerClassName:n})=>{const r=ys(0),a=ys(0),i={default:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%23404040' id='pattern-circle' cx='10' cy='10' r='2.5'%3E%3C/circle%3E%3C/svg%3E")`,hover:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%2300E3AA' id='pattern-circle' cx='10' cy='10' r='2.5'%3E%3C/circle%3E%3C/svg%3E")`};function o({currentTarget:s,clientX:l,clientY:c}){if(!s)return;const{left:u,top:d}=s.getBoundingClientRect();r.set(l-u),a.set(c-d)}return y.jsxs("div",{className:J("group relative h-full w-full items-center bg-black",n),onMouseMove:o,children:[y.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:i.default}}),y.jsx(ie.div,{className:"pointer-events-none absolute inset-0 opacity-0 transition duration-300 group-hover:opacity-100",style:{backgroundImage:i.hover,WebkitMaskImage:xb`
@@ -2729,5 +2740,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2729
2740
  `))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
2730
2741
  `,...i.current()});return/^[\t ]/.test(c)&&(c=ha(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}jS.peek=iF;function jS(e){return e.value||""}function iF(){return"<"}GS.peek=oF;function GS(e,t,n,r){const a=tg(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),o(),c}function oF(){return"!"}VS.peek=sF;function VS(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),a==="full"||!c||c!==d?l+=s.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function sF(){return"!"}HS.peek=lF;function HS(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return a+r+a}function lF(){return"`"}function $S(e,t){const n=wl(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}WS.peek=cF;function WS(e,t,n,r){const a=tg(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if($S(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=o.move(" "+a),c+=o.move(n.safe(e.title,{before:c,after:a,...o.current()})),c+=o.move(a),l()),c+=o.move(")"),s(),c}function cF(e,t,n){return $S(e,n)?"<":"["}qS.peek=uF;function qS(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),a==="full"||!c||c!==d?l+=s.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function uF(){return"["}function ng(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function dF(e){const t=ng(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function pF(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function YS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function fF(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?pF(n):ng(n);const s=e.ordered?o==="."?")":".":dF(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),YS(n)===o&&u){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),c}function gF(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function mF(e,t,n,r){const a=gF(n);let i=n.bulletCurrent||ng(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,p,f){return p?(f?"":" ".repeat(o))+d:(f?i:i+" ".repeat(o-i.length))+d}}function hF(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const bF=Ni(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function yF(e,t,n,r){return(e.children.some(function(o){return bF(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function EF(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}KS.peek=wF;function KS(e,t,n,r){const a=EF(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=$i(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=ha(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=$i(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+ha(d));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function wF(e,t,n){return n.options.strong||"*"}function SF(e,t,n,r){return n.safe(e.value,r)}function vF(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function xF(e,t,n){const r=(YS(n)+(n.options.ruleSpaces?" ":"")).repeat(vF(n));return n.options.ruleSpaces?r.slice(0,-1):r}const XS={blockquote:W2,break:US,code:Q2,definition:eF,emphasis:zS,hardBreak:US,heading:aF,html:jS,image:GS,imageReference:VS,inlineCode:HS,link:WS,linkReference:qS,list:fF,listItem:mF,paragraph:hF,root:yF,strong:KS,text:SF,thematicBreak:xF};function kF(){return{enter:{table:TF,tableData:ZS,tableHeader:ZS,tableRow:IF},exit:{codeText:RF,table:AF,tableData:rg,tableHeader:rg,tableRow:rg}}}function TF(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function AF(e){this.exit(e),this.data.inTable=void 0}function IF(e){this.enter({type:"tableRow",children:[]},e)}function rg(e){this.exit(e)}function ZS(e){this.enter({type:"tableCell",children:[]},e)}function RF(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,CF));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function CF(e,t){return t==="|"?t:e}function NF(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
2731
2742
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:s}};function o(f,g,b,h){return c(u(f,b,h),f.align)}function s(f,g,b,h){const m=d(f,b,h),E=c([m]);return E.slice(0,E.indexOf(`
2732
- `))}function l(f,g,b,h){const m=b.enter("tableCell"),E=b.enter("phrasing"),S=b.containerPhrasing(f,{...h,before:i,after:i});return E(),m(),S}function c(f,g){return H2(f,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function u(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("table");for(;++m<h.length;)E[m]=d(h[m],g,b);return S(),E}function d(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("tableRow");for(;++m<h.length;)E[m]=l(h[m],f,g,b);return S(),E}function p(f,g,b){let h=XS.inlineCode(f,g,b);return b.stack.includes("tableCell")&&(h=h.replace(/\|/g,"\\$&")),h}}function _F(){return{exit:{taskListCheckValueChecked:QS,taskListCheckValueUnchecked:QS,paragraph:LF}}}function OF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DF}}}function QS(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function LF(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function DF(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=XS.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function MF(){return[f2(),D2(),B2(),kF(),_F()]}function FF(e){return{extensions:[g2(),M2(e),U2(),NF(e),OF()]}}const PF={tokenize:VF,partial:!0},JS={tokenize:HF,partial:!0},ev={tokenize:$F,partial:!0},tv={tokenize:WF,partial:!0},BF={tokenize:qF,partial:!0},nv={name:"wwwAutolink",tokenize:jF,previous:av},rv={name:"protocolAutolink",tokenize:GF,previous:iv},Bt={name:"emailAutolink",tokenize:zF,previous:ov},_t={};function UF(){return{text:_t}}let En=48;for(;En<123;)_t[En]=Bt,En++,En===58?En=65:En===91&&(En=97);_t[43]=Bt,_t[45]=Bt,_t[46]=Bt,_t[95]=Bt,_t[72]=[Bt,rv],_t[104]=[Bt,rv],_t[87]=[Bt,nv],_t[119]=[Bt,nv];function zF(e,t,n){const r=this;let a,i;return o;function o(d){return!ag(d)||!ov.call(r,r.previous)||ig(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return ag(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(BF,u,c)(d):d===45||d===95||Fe(d)?(i=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),a=!0,l}function u(d){return i&&a&&Ge(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function jF(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!av.call(r,r.previous)||ig(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(PF,e.attempt(JS,e.attempt(ev,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function GF(e,t,n){const r=this;let a="",i=!1;return o;function o(d){return(d===72||d===104)&&iv.call(r,r.previous)&&!ig(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Ge(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):n(d)}function c(d){return d===null||Si(d)||me(d)||bn(d)||vi(d)?n(d):e.attempt(JS,e.attempt(ev,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function VF(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function HF(e,t,n){let r,a,i;return o;function o(c){return c===46||c===95?e.check(tv,l,s)(c):c===null||me(c)||bn(c)||c!==45&&vi(c)?l(c):(i=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),o}function l(c){return a||r||!i?n(c):t(c)}}function $F(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(tv,t,i)(o):o===null||me(o)||bn(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function WF(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||me(s)||bn(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||me(s)||bn(s)?t(s):r(s)}function i(s){return Ge(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ge(s)?(e.consume(s),o):n(s)}}function qF(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Fe(i)?n(i):t(i)}}function av(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||me(e)}function iv(e){return!Ge(e)}function ov(e){return!(e===47||ag(e))}function ag(e){return e===43||e===45||e===46||e===95||Fe(e)}function ig(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const YF={tokenize:nP,partial:!0};function KF(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:JF,continuation:{tokenize:eP},exit:tP}},text:{91:{name:"gfmFootnoteCall",tokenize:QF},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XF,resolveTo:ZF}}}}function XF(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=bt(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function ZF(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function QF(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!o||d===null||d===91||me(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(bt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return me(d)||(o=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function JF(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||me(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return i=bt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return me(g)||(s=!0),o++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),ue(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function eP(e,t,n){return e.check(na,t,e.attempt(YF,t,n))}function tP(e){e.exit("gfmFootnoteDefinition")}function nP(e,t,n){const r=this;return ue(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function rP(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&et(p,p.length,0,xi(f,o.slice(c+1,l),s)),et(p,p.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),et(o,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const c=this.previous,u=this.events;let d=0;return p;function p(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const b=Jn(c);if(g===126)return d>1?l(g):(o.consume(g),d++,f);if(d<2&&!n)return l(g);const h=o.exit("strikethroughSequenceTemporary"),m=Jn(g);return h._open=!m||m===2&&!!b,h._close=!b||b===2&&!!m,s(g)}}}class aP{constructor(){this.map=[]}add(t,n,r){iP(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function iP(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function oP(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function sP(){return{flow:{null:{name:"table",tokenize:lP,resolveAll:cP}}}}function lP(e,t,n){const r=this;let a=0,i=0,o;return s;function s(I){let F=r.events.length-1;for(;F>-1;){const z=r.events[F][1].type;if(z==="lineEnding"||z==="linePrefix")F--;else break}const P=F>-1?r.events[F][1].type:null,U=P==="tableHead"||P==="tableRow"?v:l;return U===v&&r.parser.lazy[r.now().line]?n(I):U(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),c(I)}function c(I){return I===124||(o=!0,i+=1),u(I)}function u(I){return I===null?n(I):Q(I)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),f):n(I):ae(I)?ue(e,u,"whitespace")(I):(i+=1,o&&(o=!1,a+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||me(I)?(e.exit("data"),u(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function f(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),o=!1,ae(I)?ue(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?h(I):I===124?(o=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),b):A(I)}function b(I){return ae(I)?ue(e,h,"whitespace")(I):h(I)}function h(I){return I===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),m):I===45?(i+=1,m(I)):I===null||Q(I)?T(I):A(I)}function m(I){return I===45?(e.enter("tableDelimiterFiller"),E(I)):A(I)}function E(I){return I===45?(e.consume(I),E):I===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(I))}function S(I){return ae(I)?ue(e,T,"whitespace")(I):T(I)}function T(I){return I===124?g(I):I===null||Q(I)?!o||a!==i?A(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):A(I)}function A(I){return n(I)}function v(I){return e.enter("tableRow"),_(I)}function _(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),_):I===null||Q(I)?(e.exit("tableRow"),t(I)):ae(I)?ue(e,_,"whitespace")(I):(e.enter("data"),N(I))}function N(I){return I===null||I===124||me(I)?(e.exit("data"),_(I)):(e.consume(I),I===92?D:N)}function D(I){return I===92||I===124?(e.consume(I),N):N(I)}}function cP(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const p=new aP;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(sv(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])),a=g.type==="tableDelimiterRow"?2:u?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],d=Wi(p,t,i,a,void 0,d),i=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],d=Wi(p,t,i,a,void 0,d)),i=o,o=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],d=Wi(p,t,i,a,n,d)):o[1]!==0&&(d=Wi(p,t,o,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&sv(p,t,l,c,u),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=oP(t.events,n))}return e}function Wi(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},lr(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=lr(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=lr(t.events,n[2]),u=lr(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},lr(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function sv(e,t,n,r,a){const i=[],o=lr(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function lr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const uP={name:"tasklistCheck",tokenize:pP};function dP(){return{text:{91:uP}}}function pP(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return me(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Q(l)?t(l):ae(l)?e.check({tokenize:fP},t,n)(l):n(l)}}function fP(e,t,n){return ue(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function gP(e){return xw([UF(),KF(),rP(e),sP(),dP()])}const mP={};function hP(e){const t=this,n=e||mP,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(gP(n)),i.push(MF()),o.push(FF(n))}const bP=ie.create(bR),yP=ie.create(ER),lv=({isExpanded:e,onClick:t,className:n,iconClassName:r,disabled:a})=>y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:t,className:n,disabled:a,children:y.jsx(vt,{mode:"wait",initial:!1,children:e?y.jsx(bP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"collapsed"):y.jsx(yP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"expanded")})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:e?"Collapse message":"Expand message"})})]}),cv={'code[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"16px 20px",overflow:"auto",borderRadius:"0 0 8px 8px"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"#00c08b"},string:{color:"#00c08b"},char:{color:"#00c08b"},builtin:{color:"#00c08b"},inserted:{color:"#00c08b"},regex:{color:"#00c08b"},"attr-value":{color:"#00c08b"},"attr-value > .token.punctuation":{color:"#00c08b"},variable:{color:"#58A6FF"},operator:{color:"#58A6FF"},function:{color:"#58A6FF"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"#00c08b"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"#58A6FF"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"#00c08b"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},uv=({children:e,className:t})=>y.jsx("div",{className:J("flex flex-col text-[1.5ch] rounded-lg","[&_*]:scrollbar [&_*]:scrollbar-w-1 [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream",t),children:e}),dv=({children:e})=>y.jsx("div",{className:"flex justify-between bg-telnyx-gray-hover-light rounded-t-lg py-1.5 px-4",children:e}),EP=e=>y.jsx("a",{href:e.src,target:"_blank",rel:"noopener noreferrer",children:y.jsx("img",{className:"w-full my-2",alt:e.alt,src:e.src})}),wP=e=>y.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-telnyx-blue no-underline",children:[y.jsx("span",{className:"underline",children:e.children}),y.jsx("span",{children:"↗"})]}),pv=({children:e})=>y.jsx("p",{className:"text-black pt-2 font-bold",children:e}),SP=({children:e})=>y.jsx("p",{className:"text-base",children:e}),vP=e=>({img:EP,h1:pv,h2:pv,a:wP,p:SP,code:O.memo(({inline:t,className:n,children:r,...a})=>{const i=Y(h=>h.numMessagesExpanded),o=Y(h=>h.setNumMessagesExpanded),s=e==="complete",[l,c]=O.useState(gt.COLLAPSED),u=O.useRef(null),d=/language-(\w+)/.exec(n||""),p=String(r).replace(/\n$/,""),f=()=>{c(gt.EXPANDED),o(i+1),document.body.style.overflow="hidden"},g=()=>{c(gt.COLLAPSED),o(i-1),document.body.style.overflow="auto"},b=i>0;return!t&&d?y.jsxs(y.Fragment,{children:[y.jsx(vt,{children:l===gt.EXPANDED&&y.jsxs(ll,{targetMountContainer:document.body,children:[y.jsx(ie.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/40 h-full w-full z-[5000]",onClick:f},"expanded-code-background"),y.jsx(ie.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid p-4 place-items-center",onClick:h=>h.stopPropagation(),children:y.jsx(ie.div,{className:J("w-[60%] max-w-full max-h-[90%] rounded-lg overflow-hidden"),ref:u,children:y.jsxs(uv,{className:"overflow-y-hidden",children:[y.jsxs(dv,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center bg-gray-800/50 rounded-md px-1",children:d&&d[1]||"Unknown"}),s&&y.jsx(fv,{isExpanded:l===gt.EXPANDED,handleCollapse:g,handleExpand:f,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 py-1",children:y.jsx("div",{className:J("overflow-y-auto overflow-x-hidden max-h-[60vh] pb-1","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent scrollbar-thumb-telnyx-dark-cream","[&_*]:scrollbar [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream","bg-black text-telnyx-cream"),children:y.jsx(Zf,{...a,children:String(r).replace(/\n$/,""),style:cv,language:s?d[1]:"text/plain",PreTag:"div",showLineNumbers:!0,wrapLongLines:!0})})})]})})},"expanded-code")]})}),y.jsxs(uv,{children:[y.jsxs(dv,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center",children:d&&d[1]||"Unknown"}),s&&y.jsx(fv,{isExpanded:l===gt.EXPANDED,handleExpand:b?void 0:f,handleCollapse:g,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 pb-1 rounded-b-lg mb-4",children:y.jsx(Zf,{...a,children:String(r).replace(/\n$/,""),style:cv,language:s?d[1]:"text/plain",PreTag:"div",wrapLongLines:!0})})]})]}):y.jsx("code",{...a,className:J("bg-transparent p-1",n),children:r})})}),xP=O.memo(({children:e,state:t})=>y.jsx("div",{className:J("w-full","overflow-x-auto overflow-y-hidden","scrollbar scrollbar-h-1 scrollbar-thumb-rounded-full scrollbar-thumb-gray-800/50 scrollbar-track-transparent hover:scrollbar-thumb-gray-800/70"),children:y.jsx(sM,{components:vP(t),remarkPlugins:[hP],children:e})})),fv=({isExpanded:e,handleExpand:t,handleCollapse:n,textToCopy:r})=>y.jsxs("div",{className:"flex",children:[y.jsx(sl,{textToCopy:r,className:J("bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"}),n&&t&&y.jsx(lv,{isExpanded:e,onClick:e?n:t,className:J("text-white bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"})]}),kP=ie.create(wy),TP={pressed:{scale:.8},hovered:{scale:1.1},idle:{scale:1},transition:{duration:.15}},AP=O.memo(({onClick:e,className:t,iconClassName:n})=>y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:e,className:J("rounded-md text-black bg-telnyx-green/30 p-1 hover:bg-telnyx-green/60 hover:cursor-pointer",t),"aria-label":"Collapse message",children:y.jsx(vt,{children:y.jsx(kP,{initial:"idle",whileHover:"hovered",whileTap:"pressed",animate:"idle",exit:"idle",variants:TP,className:J("size-5 focus:outline-none focus:ring-0",n)},"close")})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Collapse message"})})]})),IP=({variant:e,textToCopy:t,onCloseClick:n})=>y.jsxs("div",{className:"flex justify-between items-center border-b-2 border-black",children:[y.jsx("h2",{className:"text-xl font-pp-formula text-stone-700",children:e==="bot"?"AI Assistant":"You"}),y.jsxs("div",{className:"flex items-center gap-1 pb-2",children:[y.jsx(sl,{textToCopy:t,className:J("rounded-md p-1 hover:bg-telnyx-green/60 hover:cursor-pointer bg-telnyx-green/30 border-0","flex items-center justify-center","h-fit"),iconClassName:"size-5 text-black"}),y.jsx(AP,{onClick:n,className:J("border-0","flex items-center justify-center","h-fit")})]})]}),RP=({feedbackId:e})=>{const t=Y(i=>i.apiService),[n,r]=O.useState(null),a=O.useCallback(i=>async()=>{r(i),await t.sendFeedback({messageId:e,type:i})},[r,t]);return y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:a(Pn.POSITIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===Pn.POSITIVE&&"text-telnyx-green hover:text-telnyx-green/80"),children:n===Pn.POSITIVE?y.jsx(i_,{className:"size-4"}):y.jsx(IR,{className:"size-4"})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Helpful"})})]}),y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:a(Pn.NEGATIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===Pn.NEGATIVE&&"text-red-600 hover:text-red-700"),children:n===Pn.NEGATIVE?y.jsx(r_,{className:"size-4"}):y.jsx(TR,{className:"size-4"})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Not helpful"})})]})]})},CP=Ei(["relative w-fit p-4 max-w-[95%]","after:absolute after:content-[''] after:w-4 after:h-2 after:-bottom-0.5"],{variants:{variant:{bot:["bg-widget-bg-tertiary text-widget-text-primary rounded-r-md rounded-tl-md justify-self-start","dark:bg-widget-bg-tertiary dark:text-widget-text-primary","after:left-0 after:bg-widget-bg-tertiary dark:after:bg-widget-bg-tertiary after:-skew-y-[30deg] after:rounded-bl-sm","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","dark:[&_a]:text-blue-400 dark:hover:[&_a]:text-blue-300","[&_pre]:mt-4"],user:["bg-telnyx-green rounded-l-md rounded-tr-md justify-self-end","after:right-0 after:bg-telnyx-green after:skew-y-[30deg] after:rounded-br-sm"]},state:{complete:"",loading:"rounded-bl-md animate-shadow-grow border-[0.5px] border-telnyx-green/60 ring-1 ring-inset ring-telnyx-green/60 before:hidden! after:hidden! bg-white/30 dark:bg-gray-800/30",streaming:"",error:["max-w-full after:hidden! rounded-md","bg-red-100/70! text-red-600 text-justify text-sm border-2 border-red-400","dark:bg-red-900/30! dark:text-red-400 dark:border-red-600"]}},defaultVariants:{variant:"bot",state:"complete"}}),NP=({variant:e,state:t})=>({initial:{opacity:t==="loading"?.7:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6},animate:{opacity:1,x:0,y:0,scale:1,transition:{duration:.3}},exit:{opacity:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6,transition:{duration:.2}}}),_P=({variant:e,state:t,children:n})=>y.jsx(ie.div,{initial:"initial",animate:"animate",exit:"exit",variants:NP({variant:e,state:t}),className:CP({variant:e,state:t}),children:n}),OP=Ei(["max-w-full max-h-[90vh] overflow-y-auto p-6 space-y-2","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent"],{variants:{variant:{bot:["scrollbar-thumb-telnyx-green scrollbar-track-telnyx-dark-cream","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","[&_pre]:mt-4!"],user:["scrollbar-thumb-telnyx-dark-cream scrollbar-track-telnyx-green"]}},defaultVariants:{variant:"bot"}}),LP=Ei(["flex items-center mb-2 gap-1"],{variants:{variant:{bot:["justify-self-start"],user:["justify-self-end flex-row-reverse"]}},defaultVariants:{variant:"bot"}}),gv=O.memo(({variant:e,children:t,state:n,handleRetry:r,isFirstMessage:a,timestamp:i,feedbackId:o})=>{const s=Y(E=>E.endpoint),l=eR(i),c=Y(E=>E.numMessagesExpanded),u=Y(E=>E.setNumMessagesExpanded),d=Y(E=>E.botState),[p,f]=O.useState(gt.COLLAPSED),g=O.useRef(null),b=O.useCallback(()=>{f(gt.EXPANDED),u(c+1),document.body.style.overflow="hidden"},[c,u,f]),h=O.useCallback(()=>{f(gt.COLLAPSED),u(c-1),document.body.style.overflow="auto"},[c,u,f]),m=()=>{if(n==="streaming"||n==="complete")return y.jsx(xP,{state:n,children:t});if(n==="error")return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("p",{children:t}),d==="retrying"&&y.jsx(MP,{}),d==="error"&&y.jsx(DP,{onClick:r})]});if(n==="loading")return s===_r.AIDA?y.jsx(sO,{isLoaded:!1,progressMessage:t},`loading-${t}`):y.jsx("div",{className:"flex items-center gap-3",children:y.jsx(rO,{size:24,spokeWidth:2,animationDuration:4})})};return y.jsxs(y.Fragment,{children:[y.jsx(vt,{mode:"wait",children:p===gt.EXPANDED&&y.jsxs(ll,{targetMountContainer:document.body,children:[y.jsx(ie.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 h-full w-full z-[5000]",onClick:b},"expanded-message-background"),y.jsx(ie.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid place-items-center p-4",onClick:E=>E.stopPropagation(),children:y.jsx("div",{ref:g,className:J("w-[60%] max-w-full bg-transparent rounded-lg p-2",e==="bot"?"bg-widget-bg-tertiary dark:bg-widget-bg-tertiary":"bg-telnyx-green"),children:y.jsxs("div",{className:OP({variant:e}),children:[y.jsx(IP,{variant:e,textToCopy:t,onCloseClick:h}),m()]})})},"expanded-message")]})}),y.jsx(_P,{variant:e,state:n,children:m()}),y.jsxs("div",{className:LP({variant:e}),children:[y.jsx("span",{className:J("text-stone-600 text-sm",e==="bot"?"mr-1":"ml-1"),children:l}),!a&&n==="complete"&&y.jsxs(y.Fragment,{children:[y.jsx(lv,{onClick:b,isExpanded:p===gt.EXPANDED}),y.jsx(sl,{textToCopy:t}),!!o&&y.jsx(RP,{feedbackId:o})]})]})]})}),DP=({onClick:e})=>y.jsx("span",{className:"flex w-full justify-center text-sm",children:y.jsx("button",{className:J("py-1.5 px-4 shadow-sm rounded-full","text-xs text-white ","bg-red-600 hover:bg-red-700","hover:cursor-pointer hover:scale-105 transition-all duration-300 active:scale-95"),onClick:e,children:"Retry"})}),MP=()=>y.jsx("div",{className:"flex w-full justify-center text-sm",children:y.jsxs("span",{className:"text-xs text-white bg-red-600 rounded-full p-1.5 flex items-center gap-1",children:["Retrying",y.jsx(yy,{className:"size-4 animate-spin"})]})}),FP=e=>y.jsx("svg",{viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:y.jsx("path",{d:"M0 68.5714C0 30.5714 30.5714 0 68.5714 0H91.4286C129.429 0 160 30.5714 160 68.5714V160H68.5714C30.5714 160 0 129.429 0 91.4286V68.5714Z",fill:"black"})}),PP={[st.OPEN]:({numMessagesExpanded:e,position:t,isCustomMounted:n})=>{const r=n?0:-28,a=n?0:-28,[i,o]=mv(t,r,a);return{opacity:1,clipPath:`circle(${e===0?768:4320}px at calc(${i}) calc(${o}))`,transition:{type:"spring",stiffness:30,restDelta:5}}},[st.CLOSED]:({position:e,isCustomMounted:t})=>{const n=t?0:16,r=t?0:-28,a=t?0:-28,[i,o]=mv(e,r,a);return{clipPath:`circle(${n}px at calc(${i}) calc(${o}))`,transition:{delay:.1,type:"spring",stiffness:900,damping:160}}}};function mv(e,t=0,n=0){const r=t>0?"+":"-",a=n>0?"+":"-",i=Math.abs(t),o=Math.abs(n);switch(e){case Ee.TOP_LEFT:return[`0% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP:return[`50% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP_RIGHT:return[`100% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.RIGHT:return[`100% ${r} ${i}px`,`50% ${a} ${o}px`];case Ee.BOTTOM_RIGHT:return[`100% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM:return[`50% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM_LEFT:return[`0% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.LEFT:return[`0% ${r} ${i}px`,`50% ${a} ${o}px`]}}const BP=Ei("rounded-xl bg-black shadow-lg z-[9999]",{variants:{mountType:{[zr.CUSTOM]:"absolute",[zr.DEFAULT]:"fixed bottom-4! right-4!"},mountPositionAndDirection:{[`${be.TOP_LEFT}-${ce.INSIDE}`]:"top-0 left-0",[`${be.TOP_LEFT}-${ce.OUTSIDE}`]:"bottom-full right-full",[`${be.TOP}-${ce.INSIDE}`]:"top-0 left-1/2 -translate-x-1/2",[`${be.TOP}-${ce.OUTSIDE}`]:"bottom-full left-1/2 -translate-x-1/2",[`${be.TOP_RIGHT}-${ce.INSIDE}`]:"top-0 right-0",[`${be.TOP_RIGHT}-${ce.OUTSIDE}`]:"bottom-full left-full",[`${be.RIGHT}-${ce.INSIDE}`]:"top-1/2 -translate-y-1/2 right-0 ",[`${be.RIGHT}-${ce.OUTSIDE}`]:"top-1/2 -translate-y-1/2 left-full",[`${be.BOTTOM_RIGHT}-${ce.INSIDE}`]:"bottom-0 right-0",[`${be.BOTTOM_RIGHT}-${ce.OUTSIDE}`]:"top-full left-full",[`${be.BOTTOM}-${ce.INSIDE}`]:"bottom-0 left-1/2 -translate-x-1/2",[`${be.BOTTOM}-${ce.OUTSIDE}`]:"top-full left-1/2 -translate-x-1/2",[`${be.BOTTOM_LEFT}-${ce.INSIDE}`]:"bottom-0 left-0",[`${be.BOTTOM_LEFT}-${ce.OUTSIDE}`]:"top-full right-full",[`${be.LEFT}-${ce.INSIDE}`]:"top-1/2 -translate-y-1/2 left-0",[`${be.LEFT}-${ce.OUTSIDE}`]:"top-1/2 -translate-y-1/2 right-full"}},defaultVariants:{mountPositionAndDirection:`${be.BOTTOM_RIGHT}-${ce.INSIDE}`,mountType:zr.DEFAULT}}),UP={[je.INITIAL]:{height:"78%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px"},[je.USER_HAS_TYPED]:{height:"94%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px"}},zP={[je.INITIAL]:{height:"22%"},[je.USER_HAS_TYPED]:{height:"6%"}},jP=({chatAPIUrl:e,feedbackAPIUrl:t=ot.FEEDBACK_API_URL,user:n,onHelpAction:r,open:a,setOpen:i,placeholders:o=ot.DEFAULT_PLACEHOLDERS,mountPosition:s=be.BOTTOM_RIGHT,mountDirection:l=ce.INSIDE,offsetX:c=0,offsetY:u=0,icon:d=FP,theme:p=Gn.LIGHT,firstMessage:f})=>{const g=Y(C=>C.endpoint),b=cR(p),h=e||ot.CHAT_API_URL,m=!!e,E=Y(C=>C.setUser),S=Y(C=>C.setOnHelpAction),T=Y(C=>C.setChatAPIUrl);Y(C=>C.setEndpoint);const A=Y(C=>C.setFeedbackAPIUrl),v=Y(C=>C.setPlaceholders),_=Y(C=>C.question),N=Y(C=>C.setQuestion),D=Y(C=>C.messages),I=Y(C=>C.dispatchMessage),F=Y(C=>C.widgetVisualState),P=Y(C=>C.chatVisualState),U=Y(C=>C.setChatVisualState),z=Y(C=>C.numMessagesExpanded),B=Y(C=>C.setSetCustomOpen),H=Y(C=>C.openWidget),j=Y(C=>C.closeWidget),M=F===st.OPEN,X=i?zr.CUSTOM:zr.DEFAULT,x=`${s}-${l}`,L=lR[s][l],$=!!i,k=Y(C=>C.botState),Z=Y(C=>C.setBotState),de=Y(C=>C.numRetries),se=Y(C=>C.setNumRetries),K=Y(C=>C.retryTimeoutId),pe=Y(C=>C.setRetryTimeoutId),ge=Y(C=>C.chatStartTimestamp),Ae=_b[g].firstMessage,Ue=f!==void 0?f:Ae,{chat:tt,lastMessage:Ke}=oR(),[wn,cr]=O.useState(!0),ur=O.useRef(null),en=O.useRef(null),yt=O.useRef(null),Ut=sR(yt),ba=O.useRef(`telnyx-widget-fonts-${Math.random().toString(36).substring(2,9)}`);O.useEffect(()=>{const C=ba.current;if(C){if(!document.getElementById(C)){const V=document.createElement("style");V.id=C,V.textContent=uR,document.head.appendChild(V)}return()=>{const V=document.getElementById(C);V&&V.remove()}}},[ba.current]),O.useEffect(()=>{if(!n){console.error("User info is required. Please provide a user object.");return}if(!n.id){console.error("User ID is required.");return}E(n)},[n,E]),O.useEffect(()=>{o.length>0&&v(o)},[o,v]),O.useEffect(()=>{r!==void 0&&S(r)},[r,S]),O.useEffect(()=>{T(h,m)},[h,m,T]),O.useEffect(()=>{t&&A(t)},[t,A]),O.useEffect(()=>{a!==void 0&&(a?H():j())},[a,H,j]),O.useEffect(()=>{i!==void 0&&B(i)},[i,B]),O.useEffect(()=>{var C;M&&((C=en.current)==null||C.focus())},[M]);const ya=O.useCallback(()=>{const C=D[D.length-2];if(C.type==="user"&&C.message.length>0){N(C.message),Z("retrying");const V=setTimeout(async()=>{try{I({type:Le.DELETE_LAST_MESSAGE_PAIR,payload:null}),se(de+1),await tt(C.message)}catch(te){console.error("[Retry Logic] Chat failed during retry:",te)}},ot.RETRY_INTERVAL);pe(V)}},[D,tt,de,I]);O.useEffect(()=>{k==="error"&&(K||(de<ot.MAX_RETRIES?ya():de>=ot.MAX_RETRIES&&console.error("[Retry Logic] Max retries reached, stopping retry attempts")))},[k,de,K,ya]),O.useEffect(()=>{const C=yt.current;C&&wn&&(Ke==null?void 0:Ke.message.length)>0&&(C.scrollTop=C.scrollHeight)},[Ke==null?void 0:Ke.message.length,wn]);const Sn=O.useCallback(()=>{const C=en.current;C&&(C.style.height="auto",C.style.height=`${C.scrollHeight}px`)},[]),og=C=>{Sn(),U(je.USER_HAS_TYPED),N(C.target.value)};O.useEffect(()=>{D.length===0&&requestAnimationFrame(Sn)},[D.length,Sn]);const qi=async()=>{N(""),requestAnimationFrame(Sn),await tt(_);const C=yt.current;C&&C.scrollTo({top:C.scrollHeight,behavior:"smooth"})},sg=()=>{const C=yt.current;if(!C)return;const V=Math.abs(C.scrollHeight-C.clientHeight-C.scrollTop)<=5;cr(V)};return y.jsx(ll,{ref:ur,children:y.jsx("div",{"data-widget-theme":b,children:y.jsx(EE,{delayDuration:75,skipDelayDuration:0,children:y.jsxs(vt,{children:[y.jsxs(ie.div,{initial:!1,animate:F,variants:PP,custom:{numMessagesExpanded:z,position:L,isCustomMounted:$},className:J(BP({mountType:X,mountPositionAndDirection:x})),style:{height:ot.WIDGET_HEIGHT,width:ot.WIDGET_WIDTH,translateX:c,translateY:u},children:[y.jsx(ie.div,{initial:!1,animate:P,className:"px-4 pt-4 rounded-t-xl",style:{backgroundColor:"var(--widget-bg-primary)"},variants:zP,children:y.jsx(eO,{className:"flex flex-col justify-between h-full pb-4",children:y.jsx(t_,{resetChatCustomHandler:Sn})})}),y.jsxs(ie.div,{initial:!1,animate:P,className:J("flex flex-col justify-between rounded-b-xl rounded-t-3xl p-4 pb-1.5","relative overflow-hidden"),style:{backgroundColor:"var(--widget-bg-secondary)"},variants:UP,children:[Ut&&y.jsxs(y.Fragment,{children:[y.jsx(xE,{containerRef:yt,direction:"up"}),y.jsx(xE,{containerRef:yt,direction:"down"})]}),y.jsxs("div",{ref:yt,className:J("grid grid-cols-1 gap-2 content-start h-full overflow-y-auto overflow-x-hidden py-2 px-1 relative","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent","[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary dark:[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary"),onScroll:sg,children:[Ue&&y.jsx(gv,{variant:"bot",isFirstMessage:!0,state:"complete",timestamp:ge,children:Ue},"bot-initial"),D.map(C=>y.jsx(gv,{variant:C.type,timestamp:C.timestamp,state:C.state,feedbackId:C.feedback_id,handleRetry:ya,children:C.message},C.id))]}),y.jsx(Q_,{ref:en,question:_,handleInput:og,handleSendMessage:qi})]})]},"widget-container"),!$&&y.jsx(y_,{question:_,handleSendMessage:qi,triggerIcon:d},"chat-trigger-button")]})})})})};Re.ChatWidget=jP,Re.Tooltip=Ft,Re.TooltipContent=Rt,Re.TooltipProvider=EE,Re.TooltipTrigger=Pt,Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"})}));
2743
+ `))}function l(f,g,b,h){const m=b.enter("tableCell"),E=b.enter("phrasing"),S=b.containerPhrasing(f,{...h,before:i,after:i});return E(),m(),S}function c(f,g){return H2(f,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function u(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("table");for(;++m<h.length;)E[m]=d(h[m],g,b);return S(),E}function d(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("tableRow");for(;++m<h.length;)E[m]=l(h[m],f,g,b);return S(),E}function p(f,g,b){let h=XS.inlineCode(f,g,b);return b.stack.includes("tableCell")&&(h=h.replace(/\|/g,"\\$&")),h}}function _F(){return{exit:{taskListCheckValueChecked:QS,taskListCheckValueUnchecked:QS,paragraph:LF}}}function OF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DF}}}function QS(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function LF(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function DF(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=XS.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function MF(){return[f2(),D2(),B2(),kF(),_F()]}function FF(e){return{extensions:[g2(),M2(e),U2(),NF(e),OF()]}}const PF={tokenize:VF,partial:!0},JS={tokenize:HF,partial:!0},ev={tokenize:$F,partial:!0},tv={tokenize:WF,partial:!0},BF={tokenize:qF,partial:!0},nv={name:"wwwAutolink",tokenize:jF,previous:av},rv={name:"protocolAutolink",tokenize:GF,previous:iv},Bt={name:"emailAutolink",tokenize:zF,previous:ov},_t={};function UF(){return{text:_t}}let En=48;for(;En<123;)_t[En]=Bt,En++,En===58?En=65:En===91&&(En=97);_t[43]=Bt,_t[45]=Bt,_t[46]=Bt,_t[95]=Bt,_t[72]=[Bt,rv],_t[104]=[Bt,rv],_t[87]=[Bt,nv],_t[119]=[Bt,nv];function zF(e,t,n){const r=this;let a,i;return o;function o(d){return!ag(d)||!ov.call(r,r.previous)||ig(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return ag(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(BF,u,c)(d):d===45||d===95||Fe(d)?(i=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),a=!0,l}function u(d){return i&&a&&Ge(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function jF(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!av.call(r,r.previous)||ig(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(PF,e.attempt(JS,e.attempt(ev,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function GF(e,t,n){const r=this;let a="",i=!1;return o;function o(d){return(d===72||d===104)&&iv.call(r,r.previous)&&!ig(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Ge(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):n(d)}function c(d){return d===null||Si(d)||me(d)||bn(d)||vi(d)?n(d):e.attempt(JS,e.attempt(ev,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function VF(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function HF(e,t,n){let r,a,i;return o;function o(c){return c===46||c===95?e.check(tv,l,s)(c):c===null||me(c)||bn(c)||c!==45&&vi(c)?l(c):(i=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),o}function l(c){return a||r||!i?n(c):t(c)}}function $F(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(tv,t,i)(o):o===null||me(o)||bn(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function WF(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||me(s)||bn(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||me(s)||bn(s)?t(s):r(s)}function i(s){return Ge(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ge(s)?(e.consume(s),o):n(s)}}function qF(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Fe(i)?n(i):t(i)}}function av(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||me(e)}function iv(e){return!Ge(e)}function ov(e){return!(e===47||ag(e))}function ag(e){return e===43||e===45||e===46||e===95||Fe(e)}function ig(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const YF={tokenize:nP,partial:!0};function KF(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:JF,continuation:{tokenize:eP},exit:tP}},text:{91:{name:"gfmFootnoteCall",tokenize:QF},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XF,resolveTo:ZF}}}}function XF(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=bt(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function ZF(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function QF(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!o||d===null||d===91||me(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(bt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return me(d)||(o=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function JF(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||me(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return i=bt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return me(g)||(s=!0),o++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),ue(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function eP(e,t,n){return e.check(na,t,e.attempt(YF,t,n))}function tP(e){e.exit("gfmFootnoteDefinition")}function nP(e,t,n){const r=this;return ue(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function rP(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&et(p,p.length,0,xi(f,o.slice(c+1,l),s)),et(p,p.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),et(o,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const c=this.previous,u=this.events;let d=0;return p;function p(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const b=Jn(c);if(g===126)return d>1?l(g):(o.consume(g),d++,f);if(d<2&&!n)return l(g);const h=o.exit("strikethroughSequenceTemporary"),m=Jn(g);return h._open=!m||m===2&&!!b,h._close=!b||b===2&&!!m,s(g)}}}class aP{constructor(){this.map=[]}add(t,n,r){iP(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function iP(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function oP(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function sP(){return{flow:{null:{name:"table",tokenize:lP,resolveAll:cP}}}}function lP(e,t,n){const r=this;let a=0,i=0,o;return s;function s(I){let F=r.events.length-1;for(;F>-1;){const z=r.events[F][1].type;if(z==="lineEnding"||z==="linePrefix")F--;else break}const P=F>-1?r.events[F][1].type:null,U=P==="tableHead"||P==="tableRow"?v:l;return U===v&&r.parser.lazy[r.now().line]?n(I):U(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),c(I)}function c(I){return I===124||(o=!0,i+=1),u(I)}function u(I){return I===null?n(I):Q(I)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),f):n(I):ae(I)?ue(e,u,"whitespace")(I):(i+=1,o&&(o=!1,a+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||me(I)?(e.exit("data"),u(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function f(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),o=!1,ae(I)?ue(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?h(I):I===124?(o=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),b):A(I)}function b(I){return ae(I)?ue(e,h,"whitespace")(I):h(I)}function h(I){return I===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),m):I===45?(i+=1,m(I)):I===null||Q(I)?T(I):A(I)}function m(I){return I===45?(e.enter("tableDelimiterFiller"),E(I)):A(I)}function E(I){return I===45?(e.consume(I),E):I===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(I))}function S(I){return ae(I)?ue(e,T,"whitespace")(I):T(I)}function T(I){return I===124?g(I):I===null||Q(I)?!o||a!==i?A(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):A(I)}function A(I){return n(I)}function v(I){return e.enter("tableRow"),_(I)}function _(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),_):I===null||Q(I)?(e.exit("tableRow"),t(I)):ae(I)?ue(e,_,"whitespace")(I):(e.enter("data"),N(I))}function N(I){return I===null||I===124||me(I)?(e.exit("data"),_(I)):(e.consume(I),I===92?D:N)}function D(I){return I===92||I===124?(e.consume(I),N):N(I)}}function cP(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const p=new aP;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(sv(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])),a=g.type==="tableDelimiterRow"?2:u?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],d=Wi(p,t,i,a,void 0,d),i=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],d=Wi(p,t,i,a,void 0,d)),i=o,o=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],d=Wi(p,t,i,a,n,d)):o[1]!==0&&(d=Wi(p,t,o,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&sv(p,t,l,c,u),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=oP(t.events,n))}return e}function Wi(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},lr(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=lr(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=lr(t.events,n[2]),u=lr(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},lr(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function sv(e,t,n,r,a){const i=[],o=lr(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function lr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const uP={name:"tasklistCheck",tokenize:pP};function dP(){return{text:{91:uP}}}function pP(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return me(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Q(l)?t(l):ae(l)?e.check({tokenize:fP},t,n)(l):n(l)}}function fP(e,t,n){return ue(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function gP(e){return xw([UF(),KF(),rP(e),sP(),dP()])}const mP={};function hP(e){const t=this,n=e||mP,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(gP(n)),i.push(MF()),o.push(FF(n))}const bP=ie.create(bR),yP=ie.create(ER),lv=({isExpanded:e,onClick:t,className:n,iconClassName:r,disabled:a})=>y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:t,className:n,disabled:a,children:y.jsx(vt,{mode:"wait",initial:!1,children:e?y.jsx(bP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"collapsed"):y.jsx(yP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"expanded")})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:e?"Collapse message":"Expand message"})})]}),cv={'code[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"16px 20px",overflow:"auto",borderRadius:"0 0 8px 8px"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"#00c08b"},string:{color:"#00c08b"},char:{color:"#00c08b"},builtin:{color:"#00c08b"},inserted:{color:"#00c08b"},regex:{color:"#00c08b"},"attr-value":{color:"#00c08b"},"attr-value > .token.punctuation":{color:"#00c08b"},variable:{color:"#58A6FF"},operator:{color:"#58A6FF"},function:{color:"#58A6FF"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"#00c08b"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"#58A6FF"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"#00c08b"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},uv=({children:e,className:t})=>y.jsx("div",{className:J("flex flex-col text-[1.5ch] rounded-lg","[&_*]:scrollbar [&_*]:scrollbar-w-1 [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream",t),children:e}),dv=({children:e})=>y.jsx("div",{className:"flex justify-between bg-telnyx-gray-hover-light rounded-t-lg py-1.5 px-4",children:e}),EP=e=>y.jsx("a",{href:e.src,target:"_blank",rel:"noopener noreferrer",children:y.jsx("img",{className:"w-full my-2",alt:e.alt,src:e.src})}),wP=e=>y.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-telnyx-blue no-underline",children:[y.jsx("span",{className:"underline",children:e.children}),y.jsx("span",{children:"↗"})]}),pv=({children:e})=>y.jsx("p",{className:"text-black pt-2 font-bold",children:e}),SP=({children:e})=>y.jsx("p",{className:"text-base",children:e}),vP=e=>({img:EP,h1:pv,h2:pv,a:wP,p:SP,code:O.memo(({inline:t,className:n,children:r,...a})=>{const i=Y(h=>h.numMessagesExpanded),o=Y(h=>h.setNumMessagesExpanded),s=e==="complete",[l,c]=O.useState(gt.COLLAPSED),u=O.useRef(null),d=/language-(\w+)/.exec(n||""),p=String(r).replace(/\n$/,""),f=()=>{c(gt.EXPANDED),o(i+1),document.body.style.overflow="hidden"},g=()=>{c(gt.COLLAPSED),o(i-1),document.body.style.overflow="auto"},b=i>0;return!t&&d?y.jsxs(y.Fragment,{children:[y.jsx(vt,{children:l===gt.EXPANDED&&y.jsxs(ll,{targetMountContainer:document.body,children:[y.jsx(ie.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/40 h-full w-full z-[5000]",onClick:f},"expanded-code-background"),y.jsx(ie.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid p-4 place-items-center",onClick:h=>h.stopPropagation(),children:y.jsx(ie.div,{className:J("w-[60%] max-w-full max-h-[90%] rounded-lg overflow-hidden"),ref:u,children:y.jsxs(uv,{className:"overflow-y-hidden",children:[y.jsxs(dv,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center bg-gray-800/50 rounded-md px-1",children:d&&d[1]||"Unknown"}),s&&y.jsx(fv,{isExpanded:l===gt.EXPANDED,handleCollapse:g,handleExpand:f,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 py-1",children:y.jsx("div",{className:J("overflow-y-auto overflow-x-hidden max-h-[60vh] pb-1","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent scrollbar-thumb-telnyx-dark-cream","[&_*]:scrollbar [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream","bg-black text-telnyx-cream"),children:y.jsx(Zf,{...a,children:String(r).replace(/\n$/,""),style:cv,language:s?d[1]:"text/plain",PreTag:"div",showLineNumbers:!0,wrapLongLines:!0})})})]})})},"expanded-code")]})}),y.jsxs(uv,{children:[y.jsxs(dv,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center",children:d&&d[1]||"Unknown"}),s&&y.jsx(fv,{isExpanded:l===gt.EXPANDED,handleExpand:b?void 0:f,handleCollapse:g,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 pb-1 rounded-b-lg mb-4",children:y.jsx(Zf,{...a,children:String(r).replace(/\n$/,""),style:cv,language:s?d[1]:"text/plain",PreTag:"div",wrapLongLines:!0})})]})]}):y.jsx("code",{...a,className:J("bg-transparent p-1",n),children:r})})}),xP=O.memo(({children:e,state:t})=>y.jsx("div",{className:J("w-full","overflow-x-auto overflow-y-hidden","scrollbar scrollbar-h-1 scrollbar-thumb-rounded-full scrollbar-thumb-gray-800/50 scrollbar-track-transparent hover:scrollbar-thumb-gray-800/70"),children:y.jsx(sM,{components:vP(t),remarkPlugins:[hP],children:e})})),fv=({isExpanded:e,handleExpand:t,handleCollapse:n,textToCopy:r})=>y.jsxs("div",{className:"flex",children:[y.jsx(sl,{textToCopy:r,className:J("bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"}),n&&t&&y.jsx(lv,{isExpanded:e,onClick:e?n:t,className:J("text-white bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"})]}),kP=ie.create(wy),TP={pressed:{scale:.8},hovered:{scale:1.1},idle:{scale:1},transition:{duration:.15}},AP=O.memo(({onClick:e,className:t,iconClassName:n})=>y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:e,className:J("rounded-md text-black bg-telnyx-green/30 p-1 hover:bg-telnyx-green/60 hover:cursor-pointer",t),"aria-label":"Collapse message",children:y.jsx(vt,{children:y.jsx(kP,{initial:"idle",whileHover:"hovered",whileTap:"pressed",animate:"idle",exit:"idle",variants:TP,className:J("size-5 focus:outline-none focus:ring-0",n)},"close")})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Collapse message"})})]})),IP=({variant:e,textToCopy:t,onCloseClick:n})=>y.jsxs("div",{className:"flex justify-between items-center border-b-2 border-black",children:[y.jsx("h2",{className:"text-xl font-pp-formula text-stone-700",children:e==="bot"?"AI Assistant":"You"}),y.jsxs("div",{className:"flex items-center gap-1 pb-2",children:[y.jsx(sl,{textToCopy:t,className:J("rounded-md p-1 hover:bg-telnyx-green/60 hover:cursor-pointer bg-telnyx-green/30 border-0","flex items-center justify-center","h-fit"),iconClassName:"size-5 text-black"}),y.jsx(AP,{onClick:n,className:J("border-0","flex items-center justify-center","h-fit")})]})]}),RP=({feedbackId:e})=>{const t=Y(i=>i.apiService),[n,r]=O.useState(null),a=O.useCallback(i=>async()=>{r(i),await t.sendFeedback({messageId:e,type:i})},[r,t]);return y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:a(Pn.POSITIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===Pn.POSITIVE&&"text-telnyx-green hover:text-telnyx-green/80"),children:n===Pn.POSITIVE?y.jsx(i_,{className:"size-4"}):y.jsx(IR,{className:"size-4"})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Helpful"})})]}),y.jsxs(Ft,{children:[y.jsx(Pt,{onClick:a(Pn.NEGATIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===Pn.NEGATIVE&&"text-red-600 hover:text-red-700"),children:n===Pn.NEGATIVE?y.jsx(r_,{className:"size-4"}):y.jsx(TR,{className:"size-4"})}),y.jsx(Rt,{side:"bottom",children:y.jsx("p",{children:"Not helpful"})})]})]})},CP=Ei(["relative w-fit p-4 max-w-[95%]","after:absolute after:content-[''] after:w-4 after:h-2 after:-bottom-0.5"],{variants:{variant:{bot:["bg-widget-bg-tertiary text-widget-text-primary rounded-r-md rounded-tl-md justify-self-start","dark:bg-widget-bg-tertiary dark:text-widget-text-primary","after:left-0 after:bg-widget-bg-tertiary dark:after:bg-widget-bg-tertiary after:-skew-y-[30deg] after:rounded-bl-sm","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","dark:[&_a]:text-blue-400 dark:hover:[&_a]:text-blue-300","[&_pre]:mt-4"],user:["bg-telnyx-green rounded-l-md rounded-tr-md justify-self-end","after:right-0 after:bg-telnyx-green after:skew-y-[30deg] after:rounded-br-sm"]},state:{complete:"",loading:"rounded-bl-md animate-shadow-grow border-[0.5px] border-telnyx-green/60 ring-1 ring-inset ring-telnyx-green/60 before:hidden! after:hidden! bg-white/30 dark:bg-gray-800/30",streaming:"",error:["max-w-full after:hidden! rounded-md","bg-red-100/70! text-red-600 text-justify text-sm border-2 border-red-400","dark:bg-red-900/30! dark:text-red-400 dark:border-red-600"]}},defaultVariants:{variant:"bot",state:"complete"}}),NP=({variant:e,state:t})=>({initial:{opacity:t==="loading"?.7:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6},animate:{opacity:1,x:0,y:0,scale:1,transition:{duration:.3}},exit:{opacity:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6,transition:{duration:.2}}}),_P=({variant:e,state:t,children:n})=>y.jsx(ie.div,{initial:"initial",animate:"animate",exit:"exit",variants:NP({variant:e,state:t}),className:CP({variant:e,state:t}),children:n}),OP=Ei(["max-w-full max-h-[90vh] overflow-y-auto p-6 space-y-2","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent"],{variants:{variant:{bot:["scrollbar-thumb-telnyx-green scrollbar-track-telnyx-dark-cream","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","[&_pre]:mt-4!"],user:["scrollbar-thumb-telnyx-dark-cream scrollbar-track-telnyx-green"]}},defaultVariants:{variant:"bot"}}),LP=Ei(["flex items-center mb-2 gap-1"],{variants:{variant:{bot:["justify-self-start"],user:["justify-self-end flex-row-reverse"]}},defaultVariants:{variant:"bot"}}),gv=O.memo(({variant:e,children:t,state:n,handleRetry:r,isFirstMessage:a,timestamp:i,feedbackId:o})=>{const s=Y(E=>E.endpoint),l=eR(i),c=Y(E=>E.numMessagesExpanded),u=Y(E=>E.setNumMessagesExpanded),d=Y(E=>E.botState),[p,f]=O.useState(gt.COLLAPSED),g=O.useRef(null),b=O.useCallback(()=>{f(gt.EXPANDED),u(c+1),document.body.style.overflow="hidden"},[c,u,f]),h=O.useCallback(()=>{f(gt.COLLAPSED),u(c-1),document.body.style.overflow="auto"},[c,u,f]),m=()=>{if(n==="streaming"||n==="complete")return y.jsx(xP,{state:n,children:t});if(n==="error")return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("p",{children:t}),d==="retrying"&&y.jsx(MP,{}),d==="error"&&y.jsx(DP,{onClick:r})]});if(n==="loading")return s===_r.TAIA?y.jsx(sO,{isLoaded:!1,progressMessage:t},`loading-${t}`):y.jsx("div",{className:"flex items-center gap-3",children:y.jsx(rO,{size:24,spokeWidth:2,animationDuration:4})})};return y.jsxs(y.Fragment,{children:[y.jsx(vt,{mode:"wait",children:p===gt.EXPANDED&&y.jsxs(ll,{targetMountContainer:document.body,children:[y.jsx(ie.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 h-full w-full z-[5000]",onClick:b},"expanded-message-background"),y.jsx(ie.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid place-items-center p-4",onClick:E=>E.stopPropagation(),children:y.jsx("div",{ref:g,className:J("w-[60%] max-w-full bg-transparent rounded-lg p-2",e==="bot"?"bg-widget-bg-tertiary dark:bg-widget-bg-tertiary":"bg-telnyx-green"),children:y.jsxs("div",{className:OP({variant:e}),children:[y.jsx(IP,{variant:e,textToCopy:t,onCloseClick:h}),m()]})})},"expanded-message")]})}),y.jsx(_P,{variant:e,state:n,children:m()}),y.jsxs("div",{className:LP({variant:e}),children:[y.jsx("span",{className:J("text-stone-600 text-sm",e==="bot"?"mr-1":"ml-1"),children:l}),!a&&n==="complete"&&y.jsxs(y.Fragment,{children:[y.jsx(lv,{onClick:b,isExpanded:p===gt.EXPANDED}),y.jsx(sl,{textToCopy:t}),!!o&&y.jsx(RP,{feedbackId:o})]})]})]})}),DP=({onClick:e})=>y.jsx("span",{className:"flex w-full justify-center text-sm",children:y.jsx("button",{className:J("py-1.5 px-4 shadow-sm rounded-full","text-xs text-white ","bg-red-600 hover:bg-red-700","hover:cursor-pointer hover:scale-105 transition-all duration-300 active:scale-95"),onClick:e,children:"Retry"})}),MP=()=>y.jsx("div",{className:"flex w-full justify-center text-sm",children:y.jsxs("span",{className:"text-xs text-white bg-red-600 rounded-full p-1.5 flex items-center gap-1",children:["Retrying",y.jsx(yy,{className:"size-4 animate-spin"})]})}),FP=e=>y.jsx("svg",{viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:y.jsx("path",{d:"M0 68.5714C0 30.5714 30.5714 0 68.5714 0H91.4286C129.429 0 160 30.5714 160 68.5714V160H68.5714C30.5714 160 0 129.429 0 91.4286V68.5714Z",fill:"black"})}),PP={[st.OPEN]:({numMessagesExpanded:e,position:t,isCustomMounted:n})=>{const r=n?0:-28,a=n?0:-28,[i,o]=mv(t,r,a);return{opacity:1,clipPath:`circle(${e===0?768:4320}px at calc(${i}) calc(${o}))`,transition:{type:"spring",stiffness:30,restDelta:5}}},[st.CLOSED]:({position:e,isCustomMounted:t})=>{const n=t?0:16,r=t?0:-28,a=t?0:-28,[i,o]=mv(e,r,a);return{clipPath:`circle(${n}px at calc(${i}) calc(${o}))`,transition:{delay:.1,type:"spring",stiffness:900,damping:160}}}};function mv(e,t=0,n=0){const r=t>0?"+":"-",a=n>0?"+":"-",i=Math.abs(t),o=Math.abs(n);switch(e){case Ee.TOP_LEFT:return[`0% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP:return[`50% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP_RIGHT:return[`100% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.RIGHT:return[`100% ${r} ${i}px`,`50% ${a} ${o}px`];case Ee.BOTTOM_RIGHT:return[`100% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM:return[`50% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM_LEFT:return[`0% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.LEFT:return[`0% ${r} ${i}px`,`50% ${a} ${o}px`]}}const BP=Ei("rounded-xl bg-black shadow-lg z-[9999]",{variants:{mountType:{[zr.CUSTOM]:"absolute",[zr.DEFAULT]:"fixed bottom-4! right-4!"},mountPositionAndDirection:{[`${be.TOP_LEFT}-${ce.INSIDE}`]:"top-0 left-0",[`${be.TOP_LEFT}-${ce.OUTSIDE}`]:"bottom-full right-full",[`${be.TOP}-${ce.INSIDE}`]:"top-0 left-1/2 -translate-x-1/2",[`${be.TOP}-${ce.OUTSIDE}`]:"bottom-full left-1/2 -translate-x-1/2",[`${be.TOP_RIGHT}-${ce.INSIDE}`]:"top-0 right-0",[`${be.TOP_RIGHT}-${ce.OUTSIDE}`]:"bottom-full left-full",[`${be.RIGHT}-${ce.INSIDE}`]:"top-1/2 -translate-y-1/2 right-0 ",[`${be.RIGHT}-${ce.OUTSIDE}`]:"top-1/2 -translate-y-1/2 left-full",[`${be.BOTTOM_RIGHT}-${ce.INSIDE}`]:"bottom-0 right-0",[`${be.BOTTOM_RIGHT}-${ce.OUTSIDE}`]:"top-full left-full",[`${be.BOTTOM}-${ce.INSIDE}`]:"bottom-0 left-1/2 -translate-x-1/2",[`${be.BOTTOM}-${ce.OUTSIDE}`]:"top-full left-1/2 -translate-x-1/2",[`${be.BOTTOM_LEFT}-${ce.INSIDE}`]:"bottom-0 left-0",[`${be.BOTTOM_LEFT}-${ce.OUTSIDE}`]:"top-full right-full",[`${be.LEFT}-${ce.INSIDE}`]:"top-1/2 -translate-y-1/2 left-0",[`${be.LEFT}-${ce.OUTSIDE}`]:"top-1/2 -translate-y-1/2 right-full"}},defaultVariants:{mountPositionAndDirection:`${be.BOTTOM_RIGHT}-${ce.INSIDE}`,mountType:zr.DEFAULT}}),UP={[je.INITIAL]:{height:"78%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px"},[je.USER_HAS_TYPED]:{height:"94%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px"}},zP={[je.INITIAL]:{height:"22%"},[je.USER_HAS_TYPED]:{height:"6%"}},jP=({chatAPIUrl:e,feedbackAPIUrl:t=ot.FEEDBACK_API_URL,user:n,onHelpAction:r,open:a,setOpen:i,placeholders:o=ot.DEFAULT_PLACEHOLDERS,mountPosition:s=be.BOTTOM_RIGHT,mountDirection:l=ce.INSIDE,offsetX:c=0,offsetY:u=0,icon:d=FP,theme:p=Gn.LIGHT,firstMessage:f})=>{const g=Y(C=>C.endpoint),b=cR(p),h=e||ot.CHAT_API_URL,m=!!e,E=Y(C=>C.setUser),S=Y(C=>C.setOnHelpAction),T=Y(C=>C.setChatAPIUrl);Y(C=>C.setEndpoint);const A=Y(C=>C.setFeedbackAPIUrl),v=Y(C=>C.setPlaceholders),_=Y(C=>C.question),N=Y(C=>C.setQuestion),D=Y(C=>C.messages),I=Y(C=>C.dispatchMessage),F=Y(C=>C.widgetVisualState),P=Y(C=>C.chatVisualState),U=Y(C=>C.setChatVisualState),z=Y(C=>C.numMessagesExpanded),B=Y(C=>C.setSetCustomOpen),H=Y(C=>C.openWidget),j=Y(C=>C.closeWidget),M=F===st.OPEN,X=i?zr.CUSTOM:zr.DEFAULT,x=`${s}-${l}`,L=lR[s][l],$=!!i,k=Y(C=>C.botState),Z=Y(C=>C.setBotState),de=Y(C=>C.numRetries),se=Y(C=>C.setNumRetries),K=Y(C=>C.retryTimeoutId),pe=Y(C=>C.setRetryTimeoutId),ge=Y(C=>C.chatStartTimestamp),Ae=_b[g].firstMessage,Ue=f!==void 0?f:Ae,{chat:tt,lastMessage:Ke}=oR(),[wn,cr]=O.useState(!0),ur=O.useRef(null),en=O.useRef(null),yt=O.useRef(null),Ut=sR(yt),ba=O.useRef(`telnyx-widget-fonts-${Math.random().toString(36).substring(2,9)}`);O.useEffect(()=>{const C=ba.current;if(C){if(!document.getElementById(C)){const V=document.createElement("style");V.id=C,V.textContent=uR,document.head.appendChild(V)}return()=>{const V=document.getElementById(C);V&&V.remove()}}},[ba.current]),O.useEffect(()=>{if(!n){console.error("User info is required. Please provide a user object.");return}if(!n.id){console.error("User ID is required.");return}E(n)},[n,E]),O.useEffect(()=>{o.length>0&&v(o)},[o,v]),O.useEffect(()=>{r!==void 0&&S(r)},[r,S]),O.useEffect(()=>{T(h,m)},[h,m,T]),O.useEffect(()=>{t&&A(t)},[t,A]),O.useEffect(()=>{a!==void 0&&(a?H():j())},[a,H,j]),O.useEffect(()=>{i!==void 0&&B(i)},[i,B]),O.useEffect(()=>{var C;M&&((C=en.current)==null||C.focus())},[M]);const ya=O.useCallback(()=>{const C=D[D.length-2];if(C.type==="user"&&C.message.length>0){N(C.message),Z("retrying");const V=setTimeout(async()=>{try{I({type:Le.DELETE_LAST_MESSAGE_PAIR,payload:null}),se(de+1),await tt(C.message)}catch(te){console.error("[Retry Logic] Chat failed during retry:",te)}},ot.RETRY_INTERVAL);pe(V)}},[D,tt,de,I]);O.useEffect(()=>{k==="error"&&(K||(de<ot.MAX_RETRIES?ya():de>=ot.MAX_RETRIES&&console.error("[Retry Logic] Max retries reached, stopping retry attempts")))},[k,de,K,ya]),O.useEffect(()=>{const C=yt.current;C&&wn&&(Ke==null?void 0:Ke.message.length)>0&&(C.scrollTop=C.scrollHeight)},[Ke==null?void 0:Ke.message.length,wn]);const Sn=O.useCallback(()=>{const C=en.current;C&&(C.style.height="auto",C.style.height=`${C.scrollHeight}px`)},[]),og=C=>{Sn(),U(je.USER_HAS_TYPED),N(C.target.value)};O.useEffect(()=>{D.length===0&&requestAnimationFrame(Sn)},[D.length,Sn]);const qi=async()=>{N(""),requestAnimationFrame(Sn),await tt(_);const C=yt.current;C&&C.scrollTo({top:C.scrollHeight,behavior:"smooth"})},sg=()=>{const C=yt.current;if(!C)return;const V=Math.abs(C.scrollHeight-C.clientHeight-C.scrollTop)<=5;cr(V)};return y.jsx(ll,{ref:ur,children:y.jsx("div",{"data-widget-theme":b,children:y.jsx(EE,{delayDuration:75,skipDelayDuration:0,children:y.jsxs(vt,{children:[y.jsxs(ie.div,{initial:!1,animate:F,variants:PP,custom:{numMessagesExpanded:z,position:L,isCustomMounted:$},className:J(BP({mountType:X,mountPositionAndDirection:x})),style:{height:ot.WIDGET_HEIGHT,width:ot.WIDGET_WIDTH,translateX:c,translateY:u},children:[y.jsx(ie.div,{initial:!1,animate:P,className:"px-4 pt-4 rounded-t-xl",style:{backgroundColor:"var(--widget-bg-primary)"},variants:zP,children:y.jsx(eO,{className:"flex flex-col justify-between h-full pb-4",children:y.jsx(t_,{resetChatCustomHandler:Sn})})}),y.jsxs(ie.div,{initial:!1,animate:P,className:J("flex flex-col justify-between rounded-b-xl rounded-t-3xl p-4 pb-1.5","relative overflow-hidden"),style:{backgroundColor:"var(--widget-bg-secondary)"},variants:UP,children:[Ut&&y.jsxs(y.Fragment,{children:[y.jsx(xE,{containerRef:yt,direction:"up"}),y.jsx(xE,{containerRef:yt,direction:"down"})]}),y.jsxs("div",{ref:yt,className:J("grid grid-cols-1 gap-2 content-start h-full overflow-y-auto overflow-x-hidden py-2 px-1 relative","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent","[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary dark:[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary"),onScroll:sg,children:[Ue&&y.jsx(gv,{variant:"bot",isFirstMessage:!0,state:"complete",timestamp:ge,children:Ue},"bot-initial"),D.map(C=>y.jsx(gv,{variant:C.type,timestamp:C.timestamp,state:C.state,feedbackId:C.feedback_id,handleRetry:ya,children:C.message},C.id))]}),y.jsx(Q_,{ref:en,question:_,handleInput:og,handleSendMessage:qi})]})]},"widget-container"),!$&&y.jsx(y_,{question:_,handleSendMessage:qi,triggerIcon:d},"chat-trigger-button")]})})})})};Re.ChatWidget=jP,Re.Tooltip=Ft,Re.TooltipContent=Rt,Re.TooltipProvider=EE,Re.TooltipTrigger=Pt,Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"})}));
2733
2744
  //# sourceMappingURL=index.umd.js.map