var XI=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Yce=XI((jr,Fr)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ah=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fm={exports:{}},gc={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Tx;function QI(){if(Tx)return gc;Tx=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var u=null;if(s!==void 0&&(u=""+s),i.key!==void 0&&(u=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:u,ref:i!==void 0?i:null,props:s}}return gc.Fragment=e,gc.jsx=n,gc.jsxs=n,gc}var wx;function JI(){return wx||(wx=1,fm.exports=QI()),fm.exports}var S=JI(),hm={exports:{}},Xe={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ax;function eL(){if(Ax)return Xe;Ax=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=v&&w[v]||w["@@iterator"],typeof w=="function"?w:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,E={};function A(w,F,ie){this.props=w,this.context=F,this.refs=E,this.updater=ie||b}A.prototype.isReactComponent={},A.prototype.setState=function(w,F){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,F,"setState")},A.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function T(){}T.prototype=A.prototype;function R(w,F,ie){this.props=w,this.context=F,this.refs=E,this.updater=ie||b}var D=R.prototype=new T;D.constructor=R,$(D,A.prototype),D.isPureReactComponent=!0;var M=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},L=Object.prototype.hasOwnProperty;function z(w,F,ie,J,be,me){return ie=me.ref,{$$typeof:t,type:w,key:F,ref:ie!==void 0?ie:null,props:me}}function V(w,F){return z(w.type,F,void 0,void 0,void 0,w.props)}function Y(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function te(w){var F={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(ie){return F[ie]})}var W=/\/+/g;function ce(w,F){return typeof w=="object"&&w!==null&&w.key!=null?te(""+w.key):F.toString(36)}function B(){}function Ee(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(B,B):(w.status="pending",w.then(function(F){w.status==="pending"&&(w.status="fulfilled",w.value=F)},function(F){w.status==="pending"&&(w.status="rejected",w.reason=F)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function pe(w,F,ie,J,be){var me=typeof w;(me==="undefined"||me==="boolean")&&(w=null);var Ce=!1;if(w===null)Ce=!0;else switch(me){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(w.$$typeof){case t:case e:Ce=!0;break;case p:return Ce=w._init,pe(Ce(w._payload),F,ie,J,be)}}if(Ce)return be=be(w),Ce=J===""?"."+ce(w,0):J,M(be)?(ie="",Ce!=null&&(ie=Ce.replace(W,"$&/")+"/"),pe(be,F,ie,"",function(qe){return qe})):be!=null&&(Y(be)&&(be=V(be,ie+(be.key==null||w&&w.key===be.key?"":(""+be.key).replace(W,"$&/")+"/")+Ce)),F.push(be)),1;Ce=0;var ve=J===""?".":J+":";if(M(w))for(var Me=0;Me{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var Dx={notify(){},get:()=>[]};function oL(t,e){let n,r=Dx,i=0,s=!1;function u(E){p();const A=r.subscribe(E);let T=!1;return()=>{T||(T=!0,A(),v())}}function c(){r.notify()}function f(){$.onStateChange&&$.onStateChange()}function h(){return s}function p(){i++,n||(n=t.subscribe(f),r=aL())}function v(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Dx)}function y(){s||(s=!0,p())}function b(){s&&(s=!1,v())}const $={addNestedSub:u,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:h,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>r};return $}var sL=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lL=sL(),uL=()=>typeof navigator<"u"&&navigator.product==="ReactNative",cL=uL(),dL=()=>lL||cL?_.useLayoutEffect:_.useEffect,fL=dL(),mm=Symbol.for("react-redux-context"),vm=typeof globalThis<"u"?globalThis:{};function hL(){if(!_.createContext)return{};const t=vm[mm]??(vm[mm]=new Map);let e=t.get(_.createContext);return e||(e=_.createContext(null),t.set(_.createContext,e)),e}var Ao=hL();function gL(t){const{children:e,context:n,serverState:r,store:i}=t,s=_.useMemo(()=>{const f=oL(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),u=_.useMemo(()=>i.getState(),[i]);fL(()=>{const{subscription:f}=s;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),u!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[s,u]);const c=n||Ao;return _.createElement(c.Provider,{value:s},e)}var JT=gL;function y4(t=Ao){return function(){return _.useContext(t)}}var ew=y4();function tw(t=Ao){const e=t===Ao?ew:y4(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var pL=tw();function mL(t=Ao){const e=t===Ao?pL:tw(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var vL=mL(),yL=(t,e)=>t===e;function bL(t=Ao){const e=t===Ao?ew:y4(t),n=(r,i={})=>{const{equalityFn:s=yL}=typeof i=="function"?{equalityFn:i}:i,u=e(),{store:c,subscription:f,getServerState:h}=u;_.useRef(!0);const p=_.useCallback({[r.name](y){return r(y)}}[r.name],[r]),v=rL.useSyncExternalStoreWithSelector(f.addNestedSub,c.getState,h||c.getState,p,s);return _.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var SL=bL();const xL=t=>{},$L=()=>window.shell,EL=()=>window.shell!=null;var CL=Object.defineProperty,_L=(t,e,n)=>e in t?CL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mx=(t,e,n)=>_L(t,typeof e!="symbol"?e+"":e,n);class TL{constructor(){Mx(this,"readFeatureFlag",(e,n=null)=>$L().featureFlags.getFeatureFlagValue(e,n)??n),Mx(this,"isAvailable",()=>EL())}}function nn(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i=0;c--)(u=t[c])&&(s=(i<3?u(s):i>3?u(e,n,s):u(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function wL(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function AL(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n}const b4=_.createContext(void 0);b4.Provider;const OL=t=>t&&Object.assign(Object.assign({},t),{class:t.className,className:void 0}),Bt=({tagName:t,props:e,children:n})=>{const r=_.useContext(b4),i=r?t.replace("chameleon",r):t;return _.createElement(i,OL(e),n)};function Vr(t,e){return n=>{t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}const RL=t=>t===null||!(typeof t=="object"||typeof t=="function"||typeof t=="symbol"||typeof t=="bigint"),ln=(t,e)=>RL(t)?S.jsx("span",Object.assign({},e,{children:t})):S.jsx(t.type,Object.assign({},t.props,e)),mn=_.forwardRef((t,e)=>{var{action:n,onClose:r,ariaCloseLabel:i,children:s,icon:u}=t,c=nn(t,["action","onClose","ariaCloseLabel","children","icon"]);const f=_.useRef(),h=Vr(f,e),p=()=>{r==null||r()};return _.useEffect(()=>{var v;return(v=f.current)===null||v===void 0||v.addEventListener("close",p),()=>{var y;(y=f.current)===null||y===void 0||y.removeEventListener("close",p)}},[e,r]),Bt({tagName:"chameleon-alert",props:Object.assign(Object.assign({},c),{ref:h,"close-aria-label":i}),children:S.jsxs(S.Fragment,{children:[n&&ln(n,{slot:"action"}),u&&ln(u,{slot:"icon"}),s]})})});function nw(t,e,n){const r=_.useRef();_.useEffect(()=>{r.current=e},[e]),_.useEffect(()=>{const i=n.current;if(!(i==null?void 0:i.addEventListener)||!r)return;const u=c=>{var f;return(f=r.current)===null||f===void 0?void 0:f.call(r,c)};return i.addEventListener(t,u),()=>{i.removeEventListener(t,u)}},[t,n])}const NL=_.forwardRef((t,e)=>{var{badge:n,colorToken:r,onAction:i,presence:s,children:u,disabled:c}=t,f=nn(t,["badge","colorToken","onAction","presence","children","disabled"]);const h=_.useRef(),p=v=>{i==null||i(v)};return _.useEffect(()=>{var v;return(v=h==null?void 0:h.current)===null||v===void 0||v.addEventListener("avatar-action",p),()=>{var y;(y=h==null?void 0:h.current)===null||y===void 0||y.removeEventListener("avatar-action",p)}},[e,i]),Bt({tagName:"chameleon-avatar",props:Object.assign(Object.assign({},f),{disabled:c,"color-token":r,ref:h}),children:S.jsxs(S.Fragment,{children:[u,n&&ln(n,{slot:"badge"}),s&&ln(s,{slot:"presence"})]})})}),rw=_.forwardRef((t,e)=>{var{children:n}=t,r=nn(t,["children"]);return Bt({tagName:"chameleon-badge-counter",children:n,props:Object.assign(Object.assign({},r),{ref:e})})}),lr=_.forwardRef((t,e)=>{var{labelId:n,isLoading:r,children:i,leadingIcon:s,trailingIcon:u,autoFocus:c}=t,f=nn(t,["labelId","isLoading","children","leadingIcon","trailingIcon","autoFocus"]);return Bt({tagName:"chameleon-button",props:Object.assign(Object.assign({},f),{"is-loading":r,"label-id":n,autofocus:c,ref:e}),children:S.jsxs(S.Fragment,{children:[s&&ln(s,{slot:"start"}),i,u&&ln(u,{slot:"end"})]})})});var Bh;class DL{get defaultPrevented(){return this.nativeEvent.defaultPrevented}get eventPhase(){return this.nativeEvent.eventPhase}get isTrusted(){return this.nativeEvent.isTrusted}get timeStamp(){return this.nativeEvent.timeStamp}constructor(e){Bh.set(this,!1),this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable}preventDefault(){this.nativeEvent.preventDefault()}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}stopPropagation(){AL(this,Bh,!0,"f"),this.nativeEvent.stopPropagation()}isPropagationStopped(){return wL(this,Bh,"f")}persist(){}}Bh=new WeakMap;class iw extends DL{constructor(){super(...arguments),this.type="onChange"}}const aw=_.forwardRef((t,e)=>{var{avatar:n,icon:r,colorToken:i,size:s,labelId:u,closeLabel:c,onClose:f,onAction:h,children:p}=t,v=nn(t,["avatar","icon","colorToken","size","labelId","closeLabel","onClose","onAction","children"]);const y=_.useRef(),b=()=>{f==null||f()},$=E=>{h==null||h(E)};return _.useEffect(()=>{var E;return(E=y==null?void 0:y.current)===null||E===void 0||E.addEventListener("close",b),()=>{var A;(A=y==null?void 0:y.current)===null||A===void 0||A.removeEventListener("close",b)}},[e,f]),_.useEffect(()=>{var E;return(E=y==null?void 0:y.current)===null||E===void 0||E.addEventListener("chip-action",$),()=>{var A;(A=y==null?void 0:y.current)===null||A===void 0||A.removeEventListener("chip-action",$)}},[e,h]),Bt({tagName:"chameleon-chip",children:S.jsxs(S.Fragment,{children:[n&&ln(n,{slot:"avatar"}),r&&ln(r,{slot:"icon"}),p]}),props:Object.assign(Object.assign({},v),{size:s,"color-token":i,"label-id":u,"close-label":c,ref:y})})}),S4=_.forwardRef((t,e)=>{var{icon:n,title:r,actions:i,children:s}=t,u=nn(t,["icon","title","actions","children"]);return Bt({tagName:"chameleon-empty-state",children:S.jsxs(S.Fragment,{children:[n&&ln(n,{slot:"icon"}),r&&ln(r,{slot:"title"}),s,i&&S.jsx("div",{slot:"actions",children:i})]}),props:Object.assign(Object.assign({},u),{ref:e})})}),$r=_.forwardRef((t,e)=>{var{isLoading:n,labelId:r,badgeLabel:i,children:s}=t,u=nn(t,["isLoading","labelId","badgeLabel","children"]);return Bt({tagName:"chameleon-icon-button",props:Object.assign(Object.assign({},u),{"is-loading":n,"label-id":r,"badge-label":i,ref:e}),children:s})}),ML=_.forwardRef((t,e)=>{var{children:n,leadingIcon:r,trailingIcon:i}=t,s=nn(t,["children","leadingIcon","trailingIcon"]);return Bt({tagName:"chameleon-link",props:Object.assign(Object.assign({},s),{ref:e}),children:S.jsxs(S.Fragment,{children:[r&&ln(r,{slot:"start"}),n,i&&ln(i,{slot:"end"})]})})}),ow=_.forwardRef((t,e)=>{var{children:n,labelId:r,onChange:i}=t,s=nn(t,["children","labelId","onChange"]);const u=_.useRef(),c=Vr(u,e);return nw("change",i,u),Bt({tagName:"chameleon-menu",props:Object.assign(Object.assign({},s),{"label-id":r,ref:c}),children:n})}),sw=_.forwardRef((t,e)=>{var{children:n,leadingIcon:r,trailingIcon:i,onClick:s,subMenu:u}=t,c=nn(t,["children","leadingIcon","trailingIcon","onClick","subMenu"]);const f=_.useRef(),h=Vr(f,e);return nw("menuitemclick",s,f),Bt({tagName:"chameleon-menu-item",props:Object.assign(Object.assign({},c),{ref:h}),children:S.jsxs(S.Fragment,{children:[r&&ln(r,{slot:"start"}),n,i&&ln(i,{slot:"end"}),u&&ln(u,{slot:"submenu"})]})})});var Ix;(function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"})(Ix||(Ix={}));const IL="Enter";let LL=0;function l0(t=""){return`${t}${LL++}`}function T1(t,e,n){var{children:r,leadingIcon:i,trailingIcon:s,labelId:u,value:c="",onKeyUp:f,onKeyDown:h,onChange:p,autoFocus:v,helperText:y,minLength:b,maxLength:$,hideCounter:E,disableBrowserDefaults:A}=e,T=nn(e,["children","leadingIcon","trailingIcon","labelId","value","onKeyUp","onKeyDown","onChange","autoFocus","helperText","minLength","maxLength","hideCounter","disableBrowserDefaults"]);const R=_.useRef(),D=Vr(R,n),M=z=>{f&&f(z)},O=z=>{p&&p(new iw(z))},L=z=>{h&&h(z)};return _.useEffect(()=>{var z,V,Y;return(z=R.current)===null||z===void 0||z.addEventListener("keyup",M),(V=R.current)===null||V===void 0||V.addEventListener("keydown",L),(Y=R.current)===null||Y===void 0||Y.addEventListener("input",O),()=>{var te,W,ce;(te=R.current)===null||te===void 0||te.removeEventListener("keyup",M),(W=R.current)===null||W===void 0||W.removeEventListener("keydown",L),(ce=R.current)===null||ce===void 0||ce.removeEventListener("input",O)}},[n,p,f,h]),_.useEffect(()=>{R!=null&&R.current&&(R.current.value=c)},[n,c]),Bt({tagName:t,props:Object.assign(Object.assign({},T),{"hide-counter":E,"label-id":u,minlength:b,maxlength:$,autofocus:v,"disable-browser-defaults":A,ref:D}),children:S.jsxs(S.Fragment,{children:[i&&ln(i,{slot:"start"}),r,s&&ln(s,{slot:"end"}),y&&ln(y,{slot:"helpertext"})]})})}_.forwardRef((t,e)=>T1("chameleon-input-field",t,e));const w1=_.forwardRef((t,e)=>{const n=_.useRef();_.useImperativeHandle(e,()=>n.current,[n.current]);const r=i=>{var s;(s=t.onChange)===null||s===void 0||s.call(t,i)};return _.useEffect(()=>{var i;return(i=n.current)===null||i===void 0||i.addEventListener("popoverchange",r),()=>{var s;(s=n.current)===null||s===void 0||s.removeEventListener("popoverchange",r)}},[n.current,t.onChange]),Bt({tagName:"chameleon-popover",props:Object.assign(Object.assign({},t),{"trigger-id":t.triggerId,"is-open":t.isOpen,"trigger-on":t.triggerOn,"min-width":t.minWidth,"max-width":t.maxWidth,"z-index":t.zIndex,"disable-focus-trap":t.disableFocusTrap,"label-id":t.labelId,ref:n}),children:t.children})});var ym={exports:{}},Wn={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Lx;function kL(){if(Lx)return Wn;Lx=1;var t=_1();function e(f){var h="https://react.dev/errors/"+f;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ym.exports=kL(),ym.exports}var lu=lw();const oh=Zi(lu),PL=_.forwardRef((t,e)=>{var{children:n,onChange:r,label:i,labelId:s}=t,u=nn(t,["children","onChange","label","labelId"]);const c=_.useRef(),f=Vr(c,e),h=p=>{r==null||r(new iw(p))};return _.useEffect(()=>{var p;return(p=c.current)===null||p===void 0||p.addEventListener("change",h),()=>{var v;(v=c.current)===null||v===void 0||v.removeEventListener("change",h)}},[e,r]),Bt({tagName:"chameleon-radio-group",props:Object.assign(Object.assign({},u),{ref:f,"label-id":s}),children:S.jsxs(S.Fragment,{children:[i&&ln(i,{slot:"label"}),n]})})}),jL=_.forwardRef((t,e)=>{var{isLoading:n,labelId:r,displayLabel:i,children:s}=t,u=nn(t,["isLoading","labelId","displayLabel","children"]);return Bt({tagName:"chameleon-round-button",children:s,props:Object.assign(Object.assign({},u),{"is-loading":n,"label-id":r,"display-label":i,ref:e})})}),uw=_.forwardRef((t,e)=>{var{implicitSubmission:n}=t,r=nn(t,["implicitSubmission"]);return T1("chameleon-text-area",Object.assign({"implicit-submission":n},r),e)}),Il=_.forwardRef((t,e)=>T1("chameleon-text-field",t,e)),FL=_.forwardRef((t,e)=>{var{children:n}=t,r=nn(t,["children"]);return Bt({tagName:"chameleon-theme-provider",children:n,props:Object.assign(Object.assign({},r),{ref:e})})}),cw=_.forwardRef((t,e)=>{var{onClose:n}=t,r=nn(t,["onClose"]);const i=_.useRef(),s=u=>{n&&n(u)};return _.useEffect(()=>{var u;return(u=i.current)===null||u===void 0||u.addEventListener("close",s),()=>{var c;(c=i.current)===null||c===void 0||c.removeEventListener("close",s)}},[e,n]),T1("chameleon-search-field",r,i)}),HL=_.forwardRef((t,e)=>{var{triggerId:n,isOpen:r,minWidth:i,maxWidth:s,zIndex:u,onChange:c}=t,f=nn(t,["triggerId","isOpen","minWidth","maxWidth","zIndex","onChange"]);const h=_.useRef(),p=Vr(h,e),v=_.useRef(null),[y,b]=_.useState(!1),$=E=>{b(E.detail.isOpen),c==null||c(E)};return _.useEffect(()=>{var E;return(E=h.current)===null||E===void 0||E.addEventListener("popoverchange",$),()=>{var A;(A=h.current)===null||A===void 0||A.removeEventListener("popoverchange",$)}},[e,c]),_.useEffect(()=>{var E;v.current=((E=h.current)===null||E===void 0?void 0:E.contentEl)||null},[e]),Bt({tagName:"chameleon-tooltip-v3",props:Object.assign(Object.assign({},f),{"trigger-id":n,"is-open":r,"min-width":i,"max-width":s,"z-index":u,ref:p}),children:S.jsx(S.Fragment,{children:v.current&&y&&lu.createPortal(f.children,v.current)})})}),Ql=_.forwardRef((t,e)=>{var{title:n,children:r}=t,i=nn(t,["title","children"]);const s=_.useRef(),u=Vr(s,e),c=_.useContext(b4),f=_.useMemo(()=>{var p;const v="chameleon-tooltip",y=(p=globalThis.document)===null||p===void 0?void 0:p.createElement(c?v.replace("chameleon",c):v);return!!(y&&"isNativePopoverVersion"in y&&y.isNativePopoverVersion)},[c]),h=p=>{var v,y;const b=p,$=new CustomEvent(p.type,{detail:{isOpen:b.newState==="open"}});try{(v=i.onChange)===null||v===void 0||v.call(i,$)}catch{console.log("Error in onChange event")}try{(y=i.onToggle)===null||y===void 0||y.call(i,b)}catch{console.log("Error in onToggle event")}};return _.useEffect(()=>{var p;return(p=s.current)===null||p===void 0||p.addEventListener("toggle",h),()=>{var v;(v=s.current)===null||v===void 0||v.removeEventListener("toggle",h)}},[e,i.onChange]),f?Bt({tagName:"chameleon-tooltip",props:Object.assign(Object.assign({},i),{"trigger-id":i.triggerId,"is-open":i.isOpen,"min-width":i.minWidth,"max-width":i.maxWidth,"z-index":i.zIndex,ref:u}),children:S.jsxs(S.Fragment,{children:[n&&ln(n,{slot:"title"}),r]})}):S.jsx(HL,Object.assign({},i,{ref:u,children:r}))}),Ht=_.forwardRef((t,e)=>{var{children:n,gutterBottom:r,gutterTop:i,lineClamp:s}=t,u=nn(t,["children","gutterBottom","gutterTop","lineClamp"]);return Bt({tagName:"chameleon-typography",props:Object.assign(Object.assign({},u),{"gutter-bottom":r,"gutter-top":i,"line-clamp":s,ref:e}),children:n})}),dw=_.forwardRef((t,e)=>{var n=nn(t,[]);return Bt({tagName:"chameleon-circular-progress",props:Object.assign(Object.assign({},n),{ref:e})})}),BL=_.forwardRef((t,e)=>{const n=_.useRef(),r=Vr(n,e);return Bt({tagName:"chameleon-data-table-body",props:Object.assign(Object.assign({},t),{ref:r}),children:t.children})}),Px=_.forwardRef((t,e)=>{const n=_.useRef(),r=Vr(n,e);return Bt({tagName:"chameleon-data-table-cell",props:Object.assign(Object.assign({},t),{ref:r}),children:t.children})}),UL=_.forwardRef((t,e)=>{const n=_.useRef(),r=Vr(n,e);return Bt({tagName:"chameleon-data-table-header",props:Object.assign(Object.assign({},t),{ref:r}),children:t.children})}),jx=_.forwardRef((t,e)=>{var{onSort:n}=t,r=nn(t,["onSort"]);const i=_.useRef(),s=Vr(i,e),u=c=>{n==null||n(c)};return _.useEffect(()=>(i.current&&i.current.addEventListener("sort",u),()=>{var c;(c=i.current)===null||c===void 0||c.removeEventListener("sort",u)}),[i,n]),Bt({tagName:"chameleon-data-table-header-cell",props:Object.assign(Object.assign({},r),{ref:s}),children:r.children})}),Fx=_.forwardRef((t,e)=>{var{drag:n,children:r}=t,i=nn(t,["drag","children"]);const s=_.useRef(),u=Vr(s,e);return Bt({tagName:"chameleon-data-table-row",props:Object.assign(Object.assign({},i),{ref:u}),children:S.jsxs(S.Fragment,{children:[n&&ln(n,{slot:"drag"}),r]})})}),zL=_.forwardRef((t,e)=>{const n=_.useRef(),r=Vr(n,e);return Bt({tagName:"chameleon-data-table",props:Object.assign(Object.assign({},t),{ref:r}),children:t.children})}),VL=(t,e,n,r)=>{var s,u,c,f;const i=[n,{code:e,...r||{}}];if((u=(s=t==null?void 0:t.services)==null?void 0:s.logger)!=null&&u.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);xs(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(f=(c=t==null?void 0:t.services)==null?void 0:c.logger)!=null&&f.warn?t.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},Hx={},Vb=(t,e,n,r)=>{xs(n)&&Hx[n]||(xs(n)&&(Hx[n]=new Date),VL(t,e,n,r))},fw=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},qb=(t,e,n)=>{t.loadNamespaces(e,fw(t,n))},Bx=(t,e,n,r)=>{if(xs(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return qb(t,n,r);n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,fw(t,r))},qL=(t,e,n={})=>!e.languages||!e.languages.length?(Vb(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,i)=>{var s;if(((s=n.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,t))return!1}}),xs=t=>typeof t=="string",GL=t=>typeof t=="object"&&t!==null,WL=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ZL={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},YL=t=>ZL[t],KL=t=>t.replace(WL,YL);let Gb={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:KL};const XL=(t={})=>{Gb={...Gb,...t}},QL=()=>Gb;let hw;const JL=t=>{hw=t},ek=()=>hw,tk={type:"3rdParty",init(t){XL(t.options.react),JL(t)}},gw=_.createContext();class nk{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const rk=(t,e)=>{const n=_.useRef();return _.useEffect(()=>{n.current=t},[t,e]),n.current},pw=(t,e,n,r)=>t.getFixedT(e,n,r),ik=(t,e,n,r)=>_.useCallback(pw(t,e,n,r),[t,e,n,r]),lt=(t,e={})=>{var M,O,L,z;const{i18n:n}=e,{i18n:r,defaultNS:i}=_.useContext(gw)||{},s=n||r||ek();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new nk),!s){Vb(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const V=(te,W)=>xs(W)?W:GL(W)&&xs(W.defaultValue)?W.defaultValue:Array.isArray(te)?te[te.length-1]:te,Y=[V,{},!1];return Y.t=V,Y.i18n={},Y.ready=!1,Y}(M=s.options.react)!=null&&M.wait&&Vb(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...QL(),...s.options.react,...e},{useSuspense:c,keyPrefix:f}=u;let h=i||((O=s.options)==null?void 0:O.defaultNS);h=xs(h)?[h]:h||["translation"],(z=(L=s.reportNamespaces).addUsedNamespaces)==null||z.call(L,h);const p=(s.isInitialized||s.initializedStoreOnce)&&h.every(V=>qL(V,s,u)),v=ik(s,e.lng||null,u.nsMode==="fallback"?h:h[0],f),y=()=>v,b=()=>pw(s,e.lng||null,u.nsMode==="fallback"?h:h[0],f),[$,E]=_.useState(y);let A=h.join();e.lng&&(A=`${e.lng}${A}`);const T=rk(A),R=_.useRef(!0);_.useEffect(()=>{const{bindI18n:V,bindI18nStore:Y}=u;R.current=!0,!p&&!c&&(e.lng?Bx(s,e.lng,h,()=>{R.current&&E(b)}):qb(s,h,()=>{R.current&&E(b)})),p&&T&&T!==A&&R.current&&E(b);const te=()=>{R.current&&E(b)};return V&&(s==null||s.on(V,te)),Y&&(s==null||s.store.on(Y,te)),()=>{R.current=!1,s&&(V==null||V.split(" ").forEach(W=>s.off(W,te))),Y&&s&&Y.split(" ").forEach(W=>s.store.off(W,te))}},[s,A]),_.useEffect(()=>{R.current&&p&&E(y)},[s,f,p]);const D=[$,s,p];if(D.t=$,D.i18n=s,D.ready=p,p||!p&&!c)return D;throw new Promise(V=>{e.lng?Bx(s,e.lng,h,()=>V()):qb(s,h,()=>V())})};function ak({i18n:t,defaultNS:e,children:n}){const r=_.useMemo(()=>({i18n:t,defaultNS:e}),[t,e]);return _.createElement(gw.Provider,{value:r},n)}const ut=({content:t,height:e,width:n})=>({size:r,color:i,prefix:s,style:u={},...c})=>{const f=(u==null?void 0:u.color)||i||"",h=r||"",p=s?s+"-svg":"chameleon-svg",v={...c,style:{...u,"--goto-icon-color":f,"--goto-icon-size":h},width:n,height:e};return gt.createElement(p,v,t)},ok='',sk='',lk='',uk='',ck='',dk='',fk='',hk='',gk='',pk='',mk='',vk='',yk='',bk='',Sk='',xk='',$k='',Ek='',Ck='',_k='',Tk='',wk='',Ak='',Ok='',Rk='',Nk='',Dk='',Mk='',Ik='',Lk='',kk='',Pk='',jk='',Fk='',Hk='',x4=ut({content:ok,height:24,width:24});x4.displayName="AddOutlinedIcon";const mw=ut({content:sk,height:24,width:24});mw.displayName="AlertOutlinedIcon";const vw=ut({content:lk,height:24,width:24});vw.displayName="BlockOutlinedIcon";const $4=ut({content:uk,height:24,width:24});$4.displayName="BroadcastOutlinedIcon";const yw=ut({content:ck,height:24,width:24});yw.displayName="CheckboxLineIcon";const bw=ut({content:dk,height:24,width:24});bw.displayName="CheckmarkCircleOutlinedIcon";const E4=ut({content:fk,height:24,width:24});E4.displayName="CheckmarkOutlinedIcon";const C4=ut({content:hk,height:24,width:24});C4.displayName="ClockOutlinedIcon";const ws=ut({content:gk,height:24,width:24});ws.displayName="CloseOutlinedIcon";const A1=ut({content:pk,height:24,width:24});A1.displayName="DownloadOutlinedIcon";const Sw=ut({content:mk,height:24,width:24});Sw.displayName="ExternalLinkOutlinedIcon";const xw=ut({content:vk,height:24,width:24});xw.displayName="FileFilledIcon";const $w=ut({content:yk,height:24,width:24});$w.displayName="FilePdfOutlinedIcon";const Ew=ut({content:bk,height:24,width:24});Ew.displayName="ListOutlinedIcon";const Cw=ut({content:Sk,height:24,width:24});Cw.displayName="MessageAddOutlinedIcon";const O1=ut({content:xk,height:24,width:24});O1.displayName="MessageDotsFilledIcon";const _w=ut({content:$k,height:24,width:24});_w.displayName="MessageFilledIcon";const od=ut({content:Ek,height:24,width:24});od.displayName="MessageDotsOutlinedIcon";const uu=ut({content:Ck,height:24,width:24});uu.displayName="MessageOutlinedIcon";const Tw=ut({content:_k,height:24,width:24});Tw.displayName="PaperclipOutlinedIcon";const _4=ut({content:Tk,height:24,width:24});_4.displayName="PersonAssignOutlinedIcon";const ww=ut({content:wk,height:24,width:24});ww.displayName="PersonFilledIcon";const Aw=ut({content:Ak,height:24,width:24});Aw.displayName="PersonOutlinedIcon";const Ow=ut({content:Ok,height:24,width:24});Ow.displayName="PhoneConnectedFilledIcon";const Rw=ut({content:Rk,height:24,width:24});Rw.displayName="PictureOffOutlinedIcon";const sd=ut({content:Nk,height:24,width:24});sd.displayName="QuestionOutlinedIcon";const Nw=ut({content:Dk,height:24,width:24});Nw.displayName="ScreenMirroringOutlinedIcon";const Dw=ut({content:Mk,height:24,width:24});Dw.displayName="SendOutlinedIcon";const T4=ut({content:Ik,height:24,width:24});T4.displayName="SendFilledIcon";const Mw=ut({content:Lk,height:24,width:24});Mw.displayName="TagOutlinedIcon";const Iw=ut({content:kk,height:24,width:24});Iw.displayName="TicketOutlinedIcon";const Lw=ut({content:Pk,height:24,width:24});Lw.displayName="VoipFilledIcon";const kw=ut({content:jk,height:24,width:24});kw.displayName="VoipOffOutlinedIcon";const Pw=ut({content:Fk,height:24,width:24});Pw.displayName="WebcamOnFilledIcon";const jw=ut({content:Hk,height:24,width:24});jw.displayName="QuestionIcon";function R1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bm={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var Ux;function Bk(){return Ux||(Ux=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i-1}function SP(t,e){var n=this.__data__,r=N1(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function wa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=bj}var Sj="[object Arguments]",xj="[object Array]",$j="[object Boolean]",Ej="[object Date]",Cj="[object Error]",_j="[object Function]",Tj="[object Map]",wj="[object Number]",Aj="[object Object]",Oj="[object RegExp]",Rj="[object Set]",Nj="[object String]",Dj="[object WeakMap]",Mj="[object ArrayBuffer]",Ij="[object DataView]",Lj="[object Float32Array]",kj="[object Float64Array]",Pj="[object Int8Array]",jj="[object Int16Array]",Fj="[object Int32Array]",Hj="[object Uint8Array]",Bj="[object Uint8ClampedArray]",Uj="[object Uint16Array]",zj="[object Uint32Array]",Ft={};Ft[Lj]=Ft[kj]=Ft[Pj]=Ft[jj]=Ft[Fj]=Ft[Hj]=Ft[Bj]=Ft[Uj]=Ft[zj]=!0;Ft[Sj]=Ft[xj]=Ft[Mj]=Ft[$j]=Ft[Ij]=Ft[Ej]=Ft[Cj]=Ft[_j]=Ft[Tj]=Ft[wj]=Ft[Aj]=Ft[Oj]=Ft[Rj]=Ft[Nj]=Ft[Dj]=!1;function Vj(t){return $a(t)&&Yw(t.length)&&!!Ft[Ns(t)]}function O4(t){return function(e){return t(e)}}var Kw=typeof jr=="object"&&jr&&!jr.nodeType&&jr,Gc=Kw&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,qj=Gc&&Gc.exports===Kw,$m=qj&&Fw.process,Jl=function(){try{var t=Gc&&Gc.require&&Gc.require("util").types;return t||$m&&$m.binding&&$m.binding("util")}catch{}}(),Yx=Jl&&Jl.isTypedArray,Xw=Yx?O4(Yx):Vj,Gj=Object.prototype,Wj=Gj.hasOwnProperty;function Qw(t,e){var n=Wi(t),r=!n&&Ww(t),i=!n&&!r&&d0(t),s=!n&&!r&&!i&&Xw(t),u=n||r||i||s,c=u?uj(t.length,String):[],f=c.length;for(var h in t)(e||Wj.call(t,h))&&!(u&&(h=="length"||i&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||yj(h,f)))&&c.push(h);return c}var Zj=Object.prototype;function R4(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Zj;return t===n}var Yj=Bw(Object.keys,Object),Kj=Object.prototype,Xj=Kj.hasOwnProperty;function Qj(t){if(!R4(t))return Yj(t);var e=[];for(var n in Object(t))Xj.call(t,n)&&n!="constructor"&&e.push(n);return e}function Jw(t){return t!=null&&Yw(t.length)&&!zw(t)}function N4(t){return Jw(t)?Qw(t):Qj(t)}function Jj(t,e){return t&&Dd(e,N4(e),t)}function eF(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var tF=Object.prototype,nF=tF.hasOwnProperty;function rF(t){if(!Nd(t))return eF(t);var e=R4(t),n=[];for(var r in t)r=="constructor"&&(e||!nF.call(t,r))||n.push(r);return n}function D4(t){return Jw(t)?Qw(t,!0):rF(t)}function iF(t,e){return t&&Dd(e,D4(e),t)}var eA=typeof jr=="object"&&jr&&!jr.nodeType&&jr,Kx=eA&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,aF=Kx&&Kx.exports===eA,Xx=aF?Yi.Buffer:void 0,Qx=Xx?Xx.allocUnsafe:void 0;function oF(t,e){if(e)return t.slice();var n=t.length,r=Qx?Qx(n):new t.constructor(n);return t.copy(r),r}function tA(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=0)&&(n[i]=t[i]);return n}var oi=function(e){return typeof e=="function"},I1=function(e){return e!==null&&typeof e=="object"},PH=function(e){return String(Math.floor(Number(e)))===e},_m=function(e){return Object.prototype.toString.call(e)==="[object String]"},jH=function(e){return _.Children.count(e)===0},Tm=function(e){return I1(e)&&oi(e.then)};function Mr(t,e,n,r){r===void 0&&(r=0);for(var i=fA(e);t&&r=0?[]:{}}}return(s===0?t:i)[u[s]]===n?t:(n===void 0?delete i[u[s]]:i[u[s]]=n,s===0&&n===void 0&&delete r[u[s]],r)}function gA(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,s=Object.keys(t);i0?xe.map(function(_e){return V(_e,Mr(K,_e))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(we).then(function(_e){return _e.reduce(function(Ie,Ze,ct){return Ze==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ze&&(Ie=$s(Ie,xe[ct],Ze)),Ie},{})})},[V]),te=_.useCallback(function(K){return Promise.all([Y(K),y.validationSchema?z(K):{},y.validate?L(K):{}]).then(function(xe){var we=xe[0],_e=xe[1],Ie=xe[2],Ze=Wb.all([we,_e,Ie],{arrayMerge:VH});return Ze})},[y.validate,y.validationSchema,Y,L,z]),W=ni(function(K){return K===void 0&&(K=M.values),O({type:"SET_ISVALIDATING",payload:!0}),te(K).then(function(xe){return T.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:xe})),xe})});_.useEffect(function(){u&&T.current===!0&&us(b.current,y.initialValues)&&W(b.current)},[u,W]);var ce=_.useCallback(function(K){var xe=K&&K.values?K.values:b.current,we=K&&K.errors?K.errors:$.current?$.current:y.initialErrors||{},_e=K&&K.touched?K.touched:E.current?E.current:y.initialTouched||{},Ie=K&&K.status?K.status:A.current?A.current:y.initialStatus;b.current=xe,$.current=we,E.current=_e,A.current=Ie;var Ze=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!K&&!!K.isSubmitting,errors:we,touched:_e,status:Ie,values:xe,isValidating:!!K&&!!K.isValidating,submitCount:K&&K.submitCount&&typeof K.submitCount=="number"?K.submitCount:0}})};if(y.onReset){var ct=y.onReset(M.values,se);Tm(ct)?ct.then(Ze):Ze()}else Ze()},[y.initialErrors,y.initialStatus,y.initialTouched]);_.useEffect(function(){T.current===!0&&!us(b.current,y.initialValues)&&(h&&(b.current=y.initialValues,ce()),u&&W(b.current))},[h,y.initialValues,ce,u,W]),_.useEffect(function(){h&&T.current===!0&&!us($.current,y.initialErrors)&&($.current=y.initialErrors||ns,O({type:"SET_ERRORS",payload:y.initialErrors||ns}))},[h,y.initialErrors]),_.useEffect(function(){h&&T.current===!0&&!us(E.current,y.initialTouched)&&(E.current=y.initialTouched||sh,O({type:"SET_TOUCHED",payload:y.initialTouched||sh}))},[h,y.initialTouched]),_.useEffect(function(){h&&T.current===!0&&!us(A.current,y.initialStatus)&&(A.current=y.initialStatus,O({type:"SET_STATUS",payload:y.initialStatus}))},[h,y.initialStatus,y.initialTouched]);var B=ni(function(K){if(R.current[K]&&oi(R.current[K].validate)){var xe=Mr(M.values,K),we=R.current[K].validate(xe);return Tm(we)?(O({type:"SET_ISVALIDATING",payload:!0}),we.then(function(_e){return _e}).then(function(_e){O({type:"SET_FIELD_ERROR",payload:{field:K,value:_e}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:K,value:we}}),Promise.resolve(we))}else if(y.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),z(M.values,K).then(function(_e){return _e}).then(function(_e){O({type:"SET_FIELD_ERROR",payload:{field:K,value:_e[K]}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Ee=_.useCallback(function(K,xe){var we=xe.validate;R.current[K]={validate:we}},[]),pe=_.useCallback(function(K){delete R.current[K]},[]),H=ni(function(K,xe){O({type:"SET_TOUCHED",payload:K});var we=xe===void 0?i:xe;return we?W(M.values):Promise.resolve()}),Q=_.useCallback(function(K){O({type:"SET_ERRORS",payload:K})},[]),he=ni(function(K,xe){var we=oi(K)?K(M.values):K;O({type:"SET_VALUES",payload:we});var _e=xe===void 0?n:xe;return _e?W(we):Promise.resolve()}),fe=_.useCallback(function(K,xe){O({type:"SET_FIELD_ERROR",payload:{field:K,value:xe}})},[]),w=ni(function(K,xe,we){O({type:"SET_FIELD_VALUE",payload:{field:K,value:xe}});var _e=we===void 0?n:we;return _e?W($s(M.values,K,xe)):Promise.resolve()}),F=_.useCallback(function(K,xe){var we=xe,_e=K,Ie;if(!_m(K)){K.persist&&K.persist();var Ze=K.target?K.target:K.currentTarget,ct=Ze.type,$e=Ze.name,Ne=Ze.id,dt=Ze.value,Wt=Ze.checked;Ze.outerHTML;var pr=Ze.options,N=Ze.multiple;we=xe||$e||Ne,_e=/number|range/.test(ct)?(Ie=parseFloat(dt),isNaN(Ie)?"":Ie):/checkbox/.test(ct)?GH(Mr(M.values,we),Wt,dt):pr&&N?qH(pr):dt}we&&w(we,_e)},[w,M.values]),ie=ni(function(K){if(_m(K))return function(xe){return F(xe,K)};F(K)}),J=ni(function(K,xe,we){xe===void 0&&(xe=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:K,value:xe}});var _e=we===void 0?i:we;return _e?W(M.values):Promise.resolve()}),be=_.useCallback(function(K,xe){K.persist&&K.persist();var we=K.target,_e=we.name,Ie=we.id;we.outerHTML;var Ze=xe||_e||Ie;J(Ze,!0)},[J]),me=ni(function(K){if(_m(K))return function(xe){return be(xe,K)};be(K)}),Ce=_.useCallback(function(K){oi(K)?O({type:"SET_FORMIK_STATE",payload:K}):O({type:"SET_FORMIK_STATE",payload:function(){return K}})},[]),ve=_.useCallback(function(K){O({type:"SET_STATUS",payload:K})},[]),Me=_.useCallback(function(K){O({type:"SET_ISSUBMITTING",payload:K})},[]),qe=ni(function(){return O({type:"SUBMIT_ATTEMPT"}),W().then(function(K){var xe=K instanceof Error,we=!xe&&Object.keys(K).length===0;if(we){var _e;try{if(_e=pt(),_e===void 0)return}catch(Ie){throw Ie}return Promise.resolve(_e).then(function(Ie){return T.current&&O({type:"SUBMIT_SUCCESS"}),Ie}).catch(function(Ie){if(T.current)throw O({type:"SUBMIT_FAILURE"}),Ie})}else if(T.current&&(O({type:"SUBMIT_FAILURE"}),xe))throw K})}),Kt=ni(function(K){K&&K.preventDefault&&oi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&oi(K.stopPropagation)&&K.stopPropagation(),qe().catch(function(xe){console.warn("Warning: An unhandled error was caught from submitForm()",xe)})}),se={resetForm:ce,validateForm:W,validateField:B,setErrors:Q,setFieldError:fe,setFieldTouched:J,setFieldValue:w,setStatus:ve,setSubmitting:Me,setTouched:H,setValues:he,setFormikState:Ce,submitForm:qe},pt=ni(function(){return p(M.values,se)}),Ke=ni(function(K){K&&K.preventDefault&&oi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&oi(K.stopPropagation)&&K.stopPropagation(),ce()}),Je=_.useCallback(function(K){return{value:Mr(M.values,K),error:Mr(M.errors,K),touched:!!Mr(M.touched,K),initialValue:Mr(b.current,K),initialTouched:!!Mr(E.current,K),initialError:Mr($.current,K)}},[M.errors,M.touched,M.values]),Ut=_.useCallback(function(K){return{setValue:function(we,_e){return w(K,we,_e)},setTouched:function(we,_e){return J(K,we,_e)},setError:function(we){return fe(K,we)}}},[w,J,fe]),Cn=_.useCallback(function(K){var xe=I1(K),we=xe?K.name:K,_e=Mr(M.values,we),Ie={name:we,value:_e,onChange:ie,onBlur:me};if(xe){var Ze=K.type,ct=K.value,$e=K.as,Ne=K.multiple;Ze==="checkbox"?ct===void 0?Ie.checked=!!_e:(Ie.checked=!!(Array.isArray(_e)&&~_e.indexOf(ct)),Ie.value=ct):Ze==="radio"?(Ie.checked=_e===ct,Ie.value=ct):$e==="select"&&Ne&&(Ie.value=Ie.value||[],Ie.multiple=!0)}return Ie},[me,ie,M.values]),Tt=_.useMemo(function(){return!us(b.current,M.values)},[b.current,M.values]),Jn=_.useMemo(function(){return typeof c<"u"?Tt?M.errors&&Object.keys(M.errors).length===0:c!==!1&&oi(c)?c(y):c:M.errors&&Object.keys(M.errors).length===0},[c,Tt,M.errors,y]),Un=jn({},M,{initialValues:b.current,initialErrors:$.current,initialTouched:E.current,initialStatus:A.current,handleBlur:me,handleChange:ie,handleReset:Ke,handleSubmit:Kt,resetForm:ce,setErrors:Q,setFormikState:Ce,setFieldTouched:J,setFieldValue:w,setFieldError:fe,setStatus:ve,setSubmitting:Me,setTouched:H,setValues:he,submitForm:qe,validateForm:W,validateField:B,isValid:Jn,dirty:Tt,unregisterField:pe,registerField:Ee,getFieldProps:Cn,getFieldMeta:Je,getFieldHelpers:Ut,validateOnBlur:i,validateOnChange:n,validateOnMount:u});return Un}function mA(t){var e=BH(t),n=t.component,r=t.children,i=t.render,s=t.innerRef;return _.useImperativeHandle(s,function(){return e}),_.createElement(FH,{value:e},n?_.createElement(n,e):i?i(e):r?oi(r)?r(e):jH(r)?null:_.Children.only(r):null)}function UH(t){var e={};if(t.inner){if(t.inner.length===0)return $s(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var s;if(n){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var u=s;Mr(e,u.path)||(e=$s(e,u.path,u.message))}}return e}function zH(t,e,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=e3(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function e3(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||Zb(i)?e3(i):i!==""?i:void 0}):Zb(t[r])?e[r]=e3(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function VH(t,e,n){var r=t.slice();return e.forEach(function(s,u){if(typeof r[u]>"u"){var c=n.clone!==!1,f=c&&n.isMergeableObject(s);r[u]=f?Wb(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[u]=Wb(t[u],s,n):t.indexOf(s)===-1&&r.push(s)}),r}function qH(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function GH(t,e,n){if(typeof t=="boolean")return!!e;var r=[],i=!1,s=-1;if(Array.isArray(t))r=t,s=t.indexOf(n),i=s>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!i?r.concat(n):i?r.slice(0,s).concat(r.slice(s+1)):r}var WH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_.useLayoutEffect:_.useEffect;function ni(t){var e=_.useRef(t);return WH(function(){e.current=t}),_.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i0){if(++e>=KH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function eB(t){return function(){return t}}var tB=c0?function(t,e){return c0(t,"toString",{configurable:!0,enumerable:!1,value:eB(e),writable:!0})}:ZH,nB=JH(tB),m$=Math.max;function rB(t,e,n){return e=m$(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=m$(r.length-e,0),u=Array(s);++ii?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++rc))return!1;var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var v=-1,y=!0,b=n&bB?new h0:void 0;for(s.set(t,e),s.set(e,t);++v1),s}),Dd(t,aA(t),n),r&&(n=Wc(n,ZB|YB|KB,WB));for(var i=e.length;i--;)GB(n,e[i]);return n}),Es=(t=>(t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.NUMPAD_ENTER="NumpadEnter",t.SPACE="Space",t.LEFT_ARROW="ArrowLeft",t.UP_ARROW="ArrowUp",t.RIGHT_ARROW="ArrowRight",t.DOWN_ARROW="ArrowDown",t))(Es||{});const de={backgroundColorDefault:"rgba(255, 255, 255, 1)",backgroundColorSecondary:"rgba(247, 247, 247, 1)",surfaceColorDefault:"rgba(255, 255, 255, 1)",surfaceColorDefaultSemitransparent:"rgba(255, 255, 255, 0.7)",surfaceColorSecondary:"rgba(247, 247, 247, 1)",surfaceColorSecondaryInverted:"rgba(42, 50, 56, 1)",surfaceColorTertiary:"rgba(88, 121, 143, 0.9)",surfaceColorInverted:"rgba(0, 0, 0, 1)",surfaceColorPersistent:"rgba(0, 0, 0, 1)",surfaceColorBrandDefault:"rgba(27, 135, 86, 1)",surfaceColorBrandSecondary:"rgba(27, 135, 86, 0.1)",surfaceColorSuccessDefault:"rgba(27, 135, 86, 1)",surfaceColorSuccessSecondary:"rgba(27, 135, 86, 0.1)",surfaceColorDangerDefault:"rgba(211, 58, 97, 1)",surfaceColorDangerSecondary:"rgba(211, 58, 97, 0.1)",surfaceColorWarningDefault:"rgba(242, 221, 6, 1)",surfaceColorWarningSecondary:"rgba(242, 221, 6, 0.1)",surfaceColorUtilityPurple:"rgba(194, 164, 255, 0.1)",surfaceColorUtilityOrange:"rgba(246, 141, 46, 0.1)",surfaceColorUtilityBlue:"rgba(44, 114, 222, 0.1)",typeColorDefault:"rgba(0, 0, 0, 1)",typeColorSecondary:"rgba(42, 50, 56, 0.7)",typeColorInverted:"rgba(255, 255, 255, 1)",typeColorSecondaryInverted:"rgba(217, 227, 233, 0.7)",typeColorPersistent:"rgba(255, 255, 255, 1)",typeColorBrandDefault:"rgba(27, 135, 86, 1)",typeColorBrandPersistent:"rgba(27, 135, 86, 1)",typeColorSuccess:"rgba(27, 135, 86, 1)",typeColorDanger:"rgba(211, 58, 97, 1)",typeColorWarning:"rgba(165, 148, 30, 1)",typeColorDisabled:"rgba(0, 0, 0, 0.3)",typeColorPersistentDisabled:"rgba(255, 255, 255, 0.3)",iconColorDefault:"rgba(0, 0, 0, 1)",iconColorSecondary:"rgba(42, 50, 56, 0.7)",iconColorInverted:"rgba(255, 255, 255, 1)",iconColorPersistent:"rgba(255, 255, 255, 1)",iconColorBrandDefault:"rgba(27, 135, 86, 1)",iconColorBrandPersistent:"rgba(27, 135, 86, 1)",iconColorSuccess:"rgba(27, 135, 86, 1)",iconColorDanger:"rgba(211, 58, 97, 1)",iconColorWarning:"rgba(165, 148, 30, 1)",iconColorDisabled:"rgba(0, 0, 0, 0.3)",iconColorPersistentDisabled:"rgba(255, 255, 255, 0.3)",interactiveColorNeutralDefault:"rgba(247, 247, 247, 1)",interactiveColorNeutralHover:"rgba(217, 227, 233, 1)",interactiveColorNeutralPressed:"rgba(195, 212, 222, 1)",interactiveColorPrimaryDefault:"rgba(0, 0, 0, 1)",interactiveColorPrimaryHover:"rgba(42, 50, 56, 1)",interactiveColorPrimaryPressed:"rgba(49, 62, 73, 1)",interactiveColorSecondaryDefault:"rgba(88, 121, 143, 0)",interactiveColorSecondaryHover:"rgba(88, 121, 143, 0.1)",interactiveColorSecondaryPressed:"rgba(88, 121, 143, 0.3)",interactiveColorSuccessDefault:"rgba(27, 135, 86, 1)",interactiveColorSuccessHover:"rgba(20, 100, 89, 1)",interactiveColorSuccessPressed:"rgba(0, 79, 73, 1)",interactiveColorDangerDefault:"rgba(211, 58, 97, 1)",interactiveColorDangerHover:"rgba(165, 34, 81, 1)",interactiveColorDangerPressed:"rgba(128, 18, 72, 1)",interactiveColorBrandDefault:"rgba(27, 135, 86, 1)",interactiveColorBrandHover:"rgba(20, 100, 89, 1)",interactiveColorBrandPressed:"rgba(0, 79, 73, 1)",interactiveColorPersistentDefault:"rgba(0, 0, 0, 1)",interactiveColorPersistentHover:"rgba(42, 50, 56, 1)",interactiveColorPersistentPressed:"rgba(49, 62, 73, 1)",interactiveColorPersistentActive:"rgba(255, 255, 255, 1)",interactiveColorDisabled:"rgba(0, 0, 0, 0.1)",borderColorDefault:"rgba(88, 121, 143, 0.5)",borderColorSecondary:"rgba(247, 247, 247, 1)",borderColorInverted:"rgba(152, 182, 201, 0.5)",borderColorPersistent:"rgba(88, 121, 143, 0.5)",borderColorBrand:"rgba(27, 135, 86, 1)",borderColorSuccess:"rgba(27, 135, 86, 1)",borderColorWarning:"rgba(165, 148, 30, 1)",borderColorDanger:"rgba(211, 58, 97, 1)",focusBorderColorDefault:"rgba(255, 255, 255, 1)",focusBorderColorSuccess:"rgba(255, 255, 255, 1)",focusBorderColorDanger:"rgba(255, 255, 255, 1)",focusBorderColorPersistent:"rgba(0, 0, 0, 1)",focusColorHighlightDefault:"rgba(0, 0, 0, 1)",focusColorHighlightSuccess:"rgba(20, 100, 89, 1)",focusColorHighlightDanger:"rgba(165, 34, 81, 1)",focusColorHighlightPersistent:"rgba(255, 255, 255, 1)",scrimColor:"rgba(42, 50, 56, 0.7)",gradientColorSkeleton:"linear-gradient(rgba(37, 40, 45, 0), rgba(37, 40, 45, 0.1), rgba(37, 40, 45, 0))",overflowTopGradientDefault:"linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0))",overflowRightGradientDefault:"linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0))",overflowBottomGradientDefault:"linear-gradient(rgba(247, 247, 247, 0), rgba(247, 247, 247, 0), rgba(247, 247, 247, 1))",overflowLeftGradientDefault:"linear-gradient(rgba(247, 247, 247, 1), rgba(247, 247, 247, 0), rgba(247, 247, 247, 0))",overflowTopGradientSecondary:"linear-gradient(rgba(247, 247, 247, 1), rgba(247, 247, 247, 0), rgba(247, 247, 247, 0))",overflowRightGradientSecondary:"linear-gradient(rgba(247, 247, 247, 1), rgba(247, 247, 247, 0), rgba(247, 247, 247, 0))",overflowBottomGradientSecondary:"linear-gradient(rgba(247, 247, 247, 0), rgba(247, 247, 247, 0), rgba(247, 247, 247, 1))",overflowLeftGradientSecondary:"linear-gradient(rgba(247, 247, 247, 1), rgba(247, 247, 247, 0), rgba(247, 247, 247, 0))",highlightBackgroundColor:"rgba(242, 221, 6, 0.7)",highlightTypeColor:"rgba(0, 0, 0, 1)",badgeColorZomp:"rgba(41, 150, 157, 1)",badgeColorRed:"rgba(253, 76, 111, 1)",badgeColorViolet:"rgba(125, 51, 255, 1)",badgeColorOrange:"rgba(246, 141, 46, 1)",badgeColorAzure:"rgba(64, 144, 255, 1)",badgeColorDeeppurple:"rgba(153, 41, 119, 1)",badgeColorGreen:"rgba(0, 170, 110, 1)",badgeColorBlue:"rgba(0, 192, 243, 1)",badgeColorCitron:"rgba(165, 148, 30, 1)",badgeColorBlack:"rgba(0, 0, 0, 1)",badgeColorGrey:"rgba(70, 91, 107, 0.7)",badgeColorQueenblue:"rgba(53, 103, 153, 1)",badgeColorBrand:"rgba(27, 135, 86, 1)",badgeColorDisabled:"rgba(0, 0, 0, 0.3)",badgeColorAssist:"rgba(41, 150, 157, 1)",badgeColorCustomer:"rgba(253, 76, 111, 1)",badgeColorGotoresolve:"rgba(125, 51, 255, 1)",badgeColorMeeting:"rgba(246, 141, 46, 1)",badgeColorMessage:"rgba(64, 144, 255, 1)",badgeColorTraining:"rgba(153, 41, 119, 1)",badgeColorVoice:"rgba(0, 170, 110, 1)",badgeColorWebinar:"rgba(0, 192, 243, 1)",badgeColorAudio:"rgba(165, 148, 30, 1)",badgeColorCustom:"rgba(0, 0, 0, 1)",badgeColorFiles:"rgba(70, 91, 107, 0.7)",badgeColorDigitalEngagement:"rgba(53, 103, 153, 1)",avatarColor00:"rgba(20, 126, 129, 1)",avatarColor01:"rgba(0, 127, 163, 1)",avatarColor02:"rgba(15, 89, 128, 1)",avatarColor10:"rgba(51, 112, 77, 1)",avatarColor11:"rgba(29, 83, 62, 1)",avatarColor12:"rgba(24, 99, 73, 1)",avatarColor20:"rgba(126, 117, 10, 1)",avatarColor21:"rgba(99, 92, 10, 1)",avatarColor22:"rgba(69, 112, 31, 1)",avatarColor30:"rgba(191, 46, 48, 1)",avatarColor31:"rgba(175, 76, 8, 1)",avatarColor32:"rgba(153, 77, 3, 1)",avatarColor40:"rgba(184, 60, 21, 1)",avatarColor41:"rgba(163, 88, 109, 1)",avatarColor42:"rgba(150, 42, 67, 1)",avatarColor50:"rgba(178, 57, 159, 1)",avatarColor51:"rgba(129, 104, 168, 1)",avatarColor52:"rgba(108, 54, 153, 1)",avatarColorPrimary:"rgba(148, 152, 155, 1)",avatarColorSecondary:"rgba(217, 227, 233, 1)",avatarInteractiveColorOverlayHover:"rgba(0, 0, 0, 0.2)",avatarInteractiveColorOverlayPressed:"rgba(0, 0, 0, 0.3)",datavizColorBlueDefault:"rgba(44, 114, 222, 0.7)",datavizColorBlueHover:"rgba(100, 187, 250, 0.7)",datavizColorBluePressed:"rgba(15, 53, 153, 0.7)",datavizColorGreenDefault:"rgba(27, 135, 86, 0.7)",datavizColorGreenHover:"rgba(83, 206, 115, 0.7)",datavizColorGreenPressed:"rgba(0, 79, 73, 0.7)",datavizColorRedDefault:"rgba(211, 58, 97, 0.7)",datavizColorRedHover:"rgba(230, 162, 162, 0.7)",datavizColorRedPressed:"rgba(128, 18, 72, 0.7)",datavizColorYellowDefault:"rgba(165, 148, 30, 0.7)",datavizColorYellowHover:"rgba(242, 221, 6, 0.7)",datavizColorYellowPressed:"rgba(104, 87, 20, 0.7)",datavizColorPurpleDefault:"rgba(133, 82, 246, 0.7)",datavizColorPurpleHover:"rgba(194, 164, 255, 0.7)",datavizColorPurplePressed:"rgba(50, 28, 156, 0.7)",blue500:"rgba(44, 114, 222, 1)",blue200:"rgba(152, 215, 252, 1)",blue100:"rgba(203, 243, 254, 1)",blue600:"rgba(29, 82, 186, 1)",blue300:"rgba(100, 187, 250, 1)",blue700:"rgba(15, 53, 153, 1)",blue400:"rgba(71, 145, 255, 1)",green500:"rgba(27, 135, 86, 1)",green200:"rgba(161, 232, 165, 1)",green100:"rgba(209, 246, 207, 1)",green600:"rgba(20, 100, 89, 1)",green300:"rgba(83, 206, 115, 1)",green700:"rgba(0, 79, 73, 1)",green400:"rgba(43, 169, 92, 1)",red500:"rgba(211, 58, 97, 1)",red200:"rgba(244, 195, 191, 1)",red100:"rgba(254, 231, 226, 1)",red600:"rgba(165, 34, 81, 1)",red300:"rgba(230, 162, 162, 1)",red700:"rgba(128, 18, 72, 1)",red400:"rgba(217, 111, 126, 1)",yellow500:"rgba(165, 148, 30, 1)",yellow200:"rgba(255, 251, 123, 1)",yellow100:"rgba(255, 253, 169, 1)",yellow600:"rgba(134, 117, 28, 1)",yellow300:"rgba(242, 221, 6, 1)",yellow700:"rgba(104, 87, 20, 1)",yellow400:"rgba(214, 194, 18, 1)",purple500:"rgba(133, 82, 246, 1)",purple200:"rgba(218, 196, 255, 1)",purple100:"rgba(235, 222, 255, 1)",purple600:"rgba(95, 54, 211, 1)",purple300:"rgba(194, 164, 255, 1)",purple700:"rgba(50, 28, 156, 1)",purple400:"rgba(163, 123, 251, 1)",orange500:"rgba(179, 95, 17, 1)",orange200:"rgba(255, 196, 140, 1)",orange100:"rgba(254, 237, 222, 1)",orange600:"rgba(140, 68, 0, 1)",orange300:"rgba(246, 141, 46, 1)",orange700:"rgba(112, 60, 10, 1)",orange400:"rgba(219, 120, 28, 1)",neutral900:"rgba(0, 0, 0, 1)",neutral850:"rgba(23, 27, 31, 1)",neutral800:"rgba(34, 41, 46, 1)",neutral700:"rgba(49, 62, 73, 1)",neutral600:"rgba(70, 91, 107, 1)",neutral500:"rgba(88, 121, 143, 1)",neutral400:"rgba(115, 153, 175, 1)",neutral300:"rgba(152, 182, 201, 1)",neutral200:"rgba(195, 212, 222, 1)",neutral100:"rgba(217, 227, 233, 1)",neutral050:"rgba(242, 246, 247, 1)",neutral000:"rgba(255, 255, 255, 1)",brandColorPrimaryYellow:"rgba(255, 233, 0, 1)",brandColorBlack:"rgba(0, 0, 0, 1)",brandColorWhite:"rgba(255, 255, 255, 1)",brandColorAdminBlue:"rgba(2, 166, 255, 1)",brandColorResolvePurple:"rgba(146, 84, 255, 1)",brandColorGotoAppGreen:"rgba(7, 203, 115, 1)",brandColorSecureRed:"rgba(233, 42, 96, 1)",brandColorGray100:"rgba(217, 230, 236, 1)",brandColorGray200:"rgba(178, 205, 219, 1)",brandColorGray300:"rgba(140, 180, 200, 1)",brandColorGray400:"rgba(99, 155, 182, 1)",elevationNone:"none",elevationSmall:"0px 1px 3px rgba(0, 0, 0, 0.2), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14)",elevationMedium:"0px 2px 4px rgba(0, 0, 0, 0.2), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14)",elevationLarge:"0px 5px 6px rgba(0, 0, 0, 0.2), 0px 3px 16px rgba(0, 0, 0, 0.12), 0px 9px 12px rgba(0, 0, 0, 0.14)",elevationXlarge:"0px 11px 15px rgba(0, 0, 0, 0.2), 0px 9px 46px rgba(0, 0, 0, 0.12), 0px 24px 38px rgba(0, 0, 0, 0.14)",blurMedium:"30px",blurSmall:"10px",blurLarge:"50px",blurXlarge:"70px",radiusNone:"0px",radiusSmall:"4px",radiusMedium:"8px",radiusLarge:"12px",radiusXlarge:"16px",radiusCircle:"1000px",spacing00:"0rem",spacing01:"0.25rem",spacing02:"0.5rem",spacing03:"0.75rem",spacing04:"1rem",spacing05:"1.25rem",spacing06:"1.5rem",spacing07:"2rem",spacing08:"2.5rem",spacing09:"3rem",spacing10:"3.5rem",spacing11:"4rem",layout00:"0rem",layout01:"1rem",layout02:"1.5rem",layout03:"2rem",layout04:"3rem",layout05:"4rem",layout06:"6rem",layout07:"10rem",zIndexDeep:"-999999",zIndexDefault:"1",zIndexMasked:"100",zIndexMask:"200",zIndexSticky:"300",zIndexHeader:"400",zIndexToast:"500",zIndexDropdown:"600",zIndexOverlay:"700",zIndexLoading:"800",zIndexModal:"900",durationSnappy01:"70ms",durationSnappy02:"110ms",durationModest01:"150ms",durationModest02:"240ms",durationLethargic01:"400ms",durationLethargic02:"700ms",durationSluggish:"1300ms",standardEasing:"cubic-bezier(0.4, 0.14, 0.3, 1)",entranceEasing:"cubic-bezier(0, 0, 0.3, 1)",exitEasing:"cubic-bezier(0.4, 0.14, 1, 1)",mqSmall:"30rem",mqMedium:"48rem",mqLarge:"62rem",mqXlarge:"80rem"},va={backgroundColorDefault:"rgba(34, 41, 46, 1)",backgroundColorSecondary:"rgba(23, 27, 31, 1)",surfaceColorDefault:"rgba(34, 41, 46, 1)",surfaceColorDefaultSemitransparent:"rgba(34, 41, 46, 0.7)",surfaceColorSecondary:"rgba(23, 27, 31, 1)",surfaceColorSecondaryInverted:"rgba(217, 227, 233, 1)",surfaceColorTertiary:"rgba(152, 182, 201, 0.5)",surfaceColorInverted:"rgba(255, 255, 255, 1)",surfaceColorPersistent:"rgba(0, 0, 0, 1)",surfaceColorBrandDefault:"rgba(43, 169, 92, 1)",surfaceColorBrandSecondary:"rgba(43, 169, 92, 0.3)",surfaceColorSuccessDefault:"rgba(43, 169, 92, 1)",surfaceColorSuccessSecondary:"rgba(43, 169, 92, 0.3)",surfaceColorDangerDefault:"rgba(211, 58, 97, 1)",surfaceColorDangerSecondary:"rgba(211, 58, 97, 0.3)",surfaceColorWarningDefault:"rgba(242, 221, 6, 1)",surfaceColorWarningSecondary:"rgba(242, 221, 6, 0.3)",surfaceColorUtilityPurple:"rgba(163, 123, 251, 0.3)",surfaceColorUtilityOrange:"rgba(246, 141, 46, 0.3)",surfaceColorUtilityBlue:"rgba(71, 145, 255, 0.3)",typeColorDefault:"rgba(255, 255, 255, 1)",typeColorSecondary:"rgba(217, 227, 233, 0.7)",typeColorInverted:"rgba(0, 0, 0, 1)",typeColorSecondaryInverted:"rgba(70, 91, 107, 0.7)",typeColorPersistent:"rgba(255, 255, 255, 1)",typeColorBrandDefault:"rgba(43, 169, 92, 1)",typeColorBrandPersistent:"rgba(27, 135, 86, 1)",typeColorSuccess:"rgba(43, 169, 92, 1)",typeColorDanger:"rgba(230, 162, 162, 1)",typeColorWarning:"rgba(242, 221, 6, 1)",typeColorDisabled:"rgba(255, 255, 255, 0.3)",typeColorPersistentDisabled:"rgba(255, 255, 255, 0.3)",iconColorDefault:"rgba(255, 255, 255, 1)",iconColorSecondary:"rgba(217, 227, 233, 0.7)",iconColorInverted:"rgba(0, 0, 0, 1)",iconColorPersistent:"rgba(255, 255, 255, 1)",iconColorBrandDefault:"rgba(43, 169, 92, 1)",iconColorBrandPersistent:"rgba(27, 135, 86, 1)",iconColorSuccess:"rgba(43, 169, 92, 1)",iconColorDanger:"rgba(211, 58, 97, 1)",iconColorWarning:"rgba(242, 221, 6, 1)",iconColorDisabled:"rgba(255, 255, 255, 0.3)",iconColorPersistentDisabled:"rgba(255, 255, 255, 0.3)",interactiveColorNeutralDefault:"rgba(61, 72, 82, 1)",interactiveColorNeutralHover:"rgba(70, 91, 107, 1)",interactiveColorNeutralPressed:"rgba(88, 121, 143, 1)",interactiveColorPrimaryDefault:"rgba(217, 227, 233, 1)",interactiveColorPrimaryHover:"rgba(195, 212, 222, 1)",interactiveColorPrimaryPressed:"rgba(152, 182, 201, 1)",interactiveColorSecondaryDefault:"rgba(152, 182, 201, 0)",interactiveColorSecondaryHover:"rgba(152, 182, 201, 0.1)",interactiveColorSecondaryPressed:"rgba(152, 182, 201, 0.3)",interactiveColorSuccessDefault:"rgba(43, 169, 92, 1)",interactiveColorSuccessHover:"rgba(83, 206, 115, 1)",interactiveColorSuccessPressed:"rgba(161, 232, 165, 1)",interactiveColorDangerDefault:"rgba(211, 58, 97, 1)",interactiveColorDangerHover:"rgba(217, 111, 126, 1)",interactiveColorDangerPressed:"rgba(230, 162, 162, 1)",interactiveColorBrandDefault:"rgba(43, 169, 92, 1)",interactiveColorBrandHover:"rgba(83, 206, 115, 1)",interactiveColorBrandPressed:"rgba(161, 232, 165, 1)",interactiveColorPersistentDefault:"rgba(0, 0, 0, 1)",interactiveColorPersistentHover:"rgba(42, 50, 56, 1)",interactiveColorPersistentPressed:"rgba(61, 72, 82, 1)",interactiveColorPersistentActive:"rgba(255, 255, 255, 1)",interactiveColorDisabled:"rgba(255, 255, 255, 0.1)",borderColorDefault:"rgba(88, 121, 143, 0.5)",borderColorSecondary:"rgba(23, 27, 31, 1)",borderColorInverted:"rgba(88, 121, 143, 0.5)",borderColorPersistent:"rgba(88, 121, 143, 0.5)",borderColorBrand:"rgba(43, 169, 92, 1)",borderColorSuccess:"rgba(43, 169, 92, 1)",borderColorWarning:"rgba(242, 221, 6, 1)",borderColorDanger:"rgba(211, 58, 97, 1)",focusBorderColorDefault:"rgba(0, 0, 0, 1)",focusBorderColorSuccess:"rgba(0, 0, 0, 1)",focusBorderColorDanger:"rgba(0, 0, 0, 1)",focusBorderColorPersistent:"rgba(0, 0, 0, 1)",focusColorHighlightDefault:"rgba(255, 255, 255, 1)",focusColorHighlightSuccess:"rgba(161, 232, 165, 1)",focusColorHighlightDanger:"rgba(244, 195, 191, 1)",focusColorHighlightPersistent:"rgba(255, 255, 255, 1)",scrimColor:"rgba(42, 50, 56, 0.7)",gradientColorSkeleton:"linear-gradient(rgba(152, 182, 201, 0), rgba(152, 182, 201, 0.1), rgba(152, 182, 201, 0))",overflowTopGradientDefault:"linear-gradient(rgba(34, 41, 46, 1), rgba(34, 41, 46, 0), rgba(34, 41, 46, 0))",overflowRightGradientDefault:"linear-gradient(rgba(34, 41, 46, 1), rgba(34, 41, 46, 0), rgba(34, 41, 46, 0))",overflowBottomGradientDefault:"linear-gradient(rgba(34, 41, 46, 0), rgba(34, 41, 46, 0), rgba(34, 41, 46, 1))",overflowLeftGradientDefault:"linear-gradient(rgba(34, 41, 46, 1), rgba(34, 41, 46, 0), rgba(34, 41, 46, 0))",overflowTopGradientSecondary:"linear-gradient(rgba(23, 27, 31, 1), rgba(23, 27, 31, 0), rgba(23, 27, 31, 0))",overflowRightGradientSecondary:"linear-gradient(rgba(23, 27, 31, 1), rgba(23, 27, 31, 0), rgba(23, 27, 31, 0))",overflowBottomGradientSecondary:"linear-gradient(rgba(23, 27, 31, 0), rgba(23, 27, 31, 0), rgba(23, 27, 31, 1))",overflowLeftGradientSecondary:"linear-gradient(rgba(23, 27, 31, 1), rgba(23, 27, 31, 0), rgba(23, 27, 31, 0))",highlightBackgroundColor:"rgba(165, 148, 30, 0.7)",highlightTypeColor:"rgba(255, 255, 255, 1)",badgeColorZomp:"rgba(41, 150, 157, 1)",badgeColorRed:"rgba(253, 76, 111, 1)",badgeColorViolet:"rgba(125, 51, 255, 1)",badgeColorOrange:"rgba(246, 141, 46, 1)",badgeColorAzure:"rgba(64, 144, 255, 1)",badgeColorDeeppurple:"rgba(153, 41, 119, 1)",badgeColorGreen:"rgba(0, 170, 110, 1)",badgeColorBlue:"rgba(0, 192, 243, 1)",badgeColorCitron:"rgba(242, 221, 6, 1)",badgeColorBlack:"rgba(255, 255, 255, 1)",badgeColorGrey:"rgba(152, 182, 201, 0.7)",badgeColorQueenblue:"rgba(53, 103, 153, 1)",badgeColorBrand:"rgba(43, 169, 92, 1)",badgeColorDisabled:"rgba(255, 255, 255, 0.3)",badgeColorAssist:"rgba(41, 150, 157, 1)",badgeColorCustomer:"rgba(253, 76, 111, 1)",badgeColorGotoresolve:"rgba(125, 51, 255, 1)",badgeColorMeeting:"rgba(246, 141, 46, 1)",badgeColorMessage:"rgba(64, 144, 255, 1)",badgeColorTraining:"rgba(153, 41, 119, 1)",badgeColorVoice:"rgba(0, 170, 110, 1)",badgeColorWebinar:"rgba(0, 192, 243, 1)",badgeColorAudio:"rgba(242, 221, 6, 1)",badgeColorCustom:"rgba(255, 255, 255, 1)",badgeColorFiles:"rgba(152, 182, 201, 0.7)",badgeColorDigitalEngagement:"rgba(53, 103, 153, 1)",avatarColor00:"rgba(190, 217, 254, 1)",avatarColor01:"rgba(63, 192, 193, 1)",avatarColor02:"rgba(31, 156, 182, 1)",avatarColor10:"rgba(127, 254, 209, 1)",avatarColor11:"rgba(112, 206, 95, 1)",avatarColor12:"rgba(0, 169, 110, 1)",avatarColor20:"rgba(254, 231, 139, 1)",avatarColor21:"rgba(203, 184, 93, 1)",avatarColor22:"rgba(216, 172, 0, 1)",avatarColor30:"rgba(254, 189, 127, 1)",avatarColor31:"rgba(239, 137, 83, 1)",avatarColor32:"rgba(218, 120, 28, 1)",avatarColor40:"rgba(249, 179, 193, 1)",avatarColor41:"rgba(240, 134, 186, 1)",avatarColor42:"rgba(252, 76, 111, 1)",avatarColor50:"rgba(212, 190, 254, 1)",avatarColor51:"rgba(191, 158, 255, 1)",avatarColor52:"rgba(154, 102, 254, 1)",avatarColorPrimary:"rgba(126, 134, 139, 1)",avatarColorSecondary:"rgba(61, 72, 82, 1)",avatarInteractiveColorOverlayHover:"rgba(0, 0, 0, 0.2)",avatarInteractiveColorOverlayPressed:"rgba(0, 0, 0, 0.3)",datavizColorBlueDefault:"rgba(100, 187, 250, 0.9)",datavizColorBlueHover:"rgba(203, 243, 254, 0.9)",datavizColorBluePressed:"rgba(44, 114, 222, 0.9)",datavizColorGreenDefault:"rgba(83, 206, 115, 0.9)",datavizColorGreenHover:"rgba(209, 246, 207, 0.9)",datavizColorGreenPressed:"rgba(27, 135, 86, 0.9)",datavizColorRedDefault:"rgba(230, 162, 162, 0.9)",datavizColorRedHover:"rgba(254, 231, 226, 0.9)",datavizColorRedPressed:"rgba(211, 58, 97, 0.9)",datavizColorYellowDefault:"rgba(242, 221, 6, 0.9)",datavizColorYellowHover:"rgba(255, 253, 169, 0.9)",datavizColorYellowPressed:"rgba(165, 148, 30, 0.9)",datavizColorPurpleDefault:"rgba(194, 164, 255, 0.9)",datavizColorPurpleHover:"rgba(235, 222, 255, 0.9)",datavizColorPurplePressed:"rgba(133, 82, 246, 0.9)",blue500:"rgba(44, 114, 222, 1)",blue200:"rgba(152, 215, 252, 1)",blue100:"rgba(203, 243, 254, 1)",blue600:"rgba(29, 82, 186, 1)",blue300:"rgba(100, 187, 250, 1)",blue700:"rgba(15, 53, 153, 1)",blue400:"rgba(71, 145, 255, 1)",green500:"rgba(27, 135, 86, 1)",green200:"rgba(161, 232, 165, 1)",green100:"rgba(209, 246, 207, 1)",green600:"rgba(20, 100, 89, 1)",green300:"rgba(83, 206, 115, 1)",green700:"rgba(0, 79, 73, 1)",green400:"rgba(43, 169, 92, 1)",red500:"rgba(211, 58, 97, 1)",red200:"rgba(244, 195, 191, 1)",red100:"rgba(254, 231, 226, 1)",red600:"rgba(165, 34, 81, 1)",red300:"rgba(230, 162, 162, 1)",red700:"rgba(128, 18, 72, 1)",red400:"rgba(217, 111, 126, 1)",yellow500:"rgba(165, 148, 30, 1)",yellow200:"rgba(255, 251, 123, 1)",yellow100:"rgba(255, 253, 169, 1)",yellow600:"rgba(134, 117, 28, 1)",yellow300:"rgba(242, 221, 6, 1)",yellow700:"rgba(104, 87, 20, 1)",yellow400:"rgba(214, 194, 18, 1)",purple500:"rgba(133, 82, 246, 1)",purple200:"rgba(218, 196, 255, 1)",purple100:"rgba(235, 222, 255, 1)",purple600:"rgba(95, 54, 211, 1)",purple300:"rgba(194, 164, 255, 1)",purple700:"rgba(50, 28, 156, 1)",purple400:"rgba(163, 123, 251, 1)",orange500:"rgba(179, 95, 17, 1)",orange200:"rgba(255, 196, 140, 1)",orange100:"rgba(254, 237, 222, 1)",orange600:"rgba(140, 68, 0, 1)",orange300:"rgba(246, 141, 46, 1)",orange700:"rgba(112, 60, 10, 1)",orange400:"rgba(219, 120, 28, 1)",neutral900:"rgba(0, 0, 0, 1)",neutral850:"rgba(23, 27, 31, 1)",neutral800:"rgba(34, 41, 46, 1)",neutral700:"rgba(61, 72, 82, 1)",neutral600:"rgba(70, 91, 107, 1)",neutral500:"rgba(88, 121, 143, 1)",neutral400:"rgba(115, 153, 175, 1)",neutral300:"rgba(152, 182, 201, 1)",neutral200:"rgba(195, 212, 222, 1)",neutral100:"rgba(217, 227, 233, 1)",neutral050:"rgba(242, 246, 247, 1)",neutral000:"rgba(255, 255, 255, 1)",brandColorPrimaryYellow:"rgba(255, 233, 0, 1)",brandColorBlack:"rgba(255, 255, 255, 1)",brandColorWhite:"rgba(0, 0, 0, 1)",brandColorAdminBlue:"rgba(2, 166, 255, 1)",brandColorResolvePurple:"rgba(146, 84, 255, 1)",brandColorGotoAppGreen:"rgba(7, 203, 115, 1)",brandColorSecureRed:"rgba(233, 42, 96, 1)",brandColorGray100:"rgba(217, 230, 236, 1)",brandColorGray200:"rgba(178, 205, 219, 1)",brandColorGray300:"rgba(140, 180, 200, 1)",brandColorGray400:"rgba(99, 155, 182, 1)",elevationNone:"none",elevationSmall:"0px 1px 3px rgba(0, 0, 0, 0.2), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14)",elevationMedium:"0px 2px 4px rgba(0, 0, 0, 0.2), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14)",elevationLarge:"0px 5px 6px rgba(0, 0, 0, 0.2), 0px 3px 16px rgba(0, 0, 0, 0.12), 0px 9px 12px rgba(0, 0, 0, 0.14)",elevationXlarge:"0px 11px 15px rgba(0, 0, 0, 0.2), 0px 9px 46px rgba(0, 0, 0, 0.12), 0px 24px 38px rgba(0, 0, 0, 0.14)",blurMedium:"30px",blurSmall:"10px",blurLarge:"50px",blurXlarge:"70px",radiusNone:"0px",radiusSmall:"4px",radiusMedium:"8px",radiusLarge:"12px",radiusXlarge:"16px",radiusCircle:"1000px",spacing00:"0rem",spacing01:"0.25rem",spacing02:"0.5rem",spacing03:"0.75rem",spacing04:"1rem",spacing05:"1.25rem",spacing06:"1.5rem",spacing07:"2rem",spacing08:"2.5rem",spacing09:"3rem",spacing10:"3.5rem",spacing11:"4rem",layout00:"0rem",layout01:"1rem",layout02:"1.5rem",layout03:"2rem",layout04:"3rem",layout05:"4rem",layout06:"6rem",layout07:"10rem",zIndexDeep:"-999999",zIndexDefault:"1",zIndexMasked:"100",zIndexMask:"200",zIndexSticky:"300",zIndexHeader:"400",zIndexToast:"500",zIndexDropdown:"600",zIndexOverlay:"700",zIndexLoading:"800",zIndexModal:"900",durationSnappy01:"70ms",durationSnappy02:"110ms",durationModest01:"150ms",durationModest02:"240ms",durationLethargic01:"400ms",durationLethargic02:"700ms",durationSluggish:"1300ms",standardEasing:"cubic-bezier(0.4, 0.14, 0.3, 1)",entranceEasing:"cubic-bezier(0, 0, 0.3, 1)",exitEasing:"cubic-bezier(0.4, 0.14, 1, 1)",mqSmall:"30rem",mqMedium:"48rem",mqLarge:"62rem",mqXlarge:"80rem"},en={backgroundColorDefault:"var(--goto-background-color-default)",surfaceColorBrandDefault:"var(--goto-surface-color-brand-default)",typeColorDefault:"var(--goto-type-color-default)",typeColorInverted:"var(--goto-type-color-inverted)",interactiveColorPrimaryDefault:"var(--goto-interactive-color-primary-default)",borderColorDefault:"var(--goto-border-color-default)",scrimColor:"var(--goto-scrim-color)",blue600:"var(--goto-blue-600)",neutral600:"var(--goto-neutral-600)",neutral400:"var(--goto-neutral-400)",neutral200:"var(--goto-neutral-200)",neutral000:"var(--goto-neutral-000)",elevationSmall:"var(--goto-elevation-small)",elevationMedium:"var(--goto-elevation-medium)",elevationLarge:"var(--goto-elevation-large)",elevationXlarge:"var(--goto-elevation-xlarge)"},QB={spacing00:"0rem",spacing01:"0.25rem",spacing02:"0.5rem",spacing03:"0.75rem",spacing04:"1rem",spacing05:"1.25rem",spacing06:"1.5rem",spacing07:"2rem",spacing08:"2.5rem",spacing09:"3rem",spacing10:"3.5rem",spacing11:"4rem",layout00:"0rem",layout01:"1rem",layout02:"1.5rem",layout03:"2rem",layout04:"3rem",layout05:"4rem",layout06:"6rem",layout07:"10rem"},JB={headingXlarge:"700 3rem/3.25rem var(--goto-font-family)",headingLarge:"700 2.25rem/2.5rem var(--goto-font-family)",headingMedium:"600 1.75rem/2rem var(--goto-font-family)",headingSmall:"600 1.25rem/1.5rem var(--goto-font-family)",bodyLarge:"400 1.125rem/1.5rem var(--goto-font-family)",bodyLargeStrong:"600 1.125rem/1.5rem var(--goto-font-family)",bodyMedium:"400 1rem/1.5rem var(--goto-font-family)",bodyMediumStrong:"600 1rem/1.5rem var(--goto-font-family)",bodySmall:"400 0.875rem/1.5rem var(--goto-font-family)",bodySmallStrong:"600 0.875rem/1.5rem var(--goto-font-family)",captionMedium:"400 0.75rem/1.25rem var(--goto-font-family)",captionMediumStrong:"600 0.75rem/1.25rem var(--goto-font-family)",captionSmall:"400 0.625rem/1rem var(--goto-font-family)",captionSmallStrong:"600 0.625rem/1rem var(--goto-font-family)",codeMedium:"400 0.875rem/1.5rem var(--goto-font-family-mono)",codeSmall:"400 0.75rem/1.25rem var(--goto-font-family-mono)",buttonXlarge:"600 1.125rem/1.5rem var(--goto-font-family)",buttonLarge:"600 1rem/1.5rem var(--goto-font-family)",buttonMedium:"600 0.875rem/1.5rem var(--goto-font-family)",buttonSmall:"600 0.75rem/1.25rem var(--goto-font-family)",avatarXxxlarge:"700 5rem/6.25rem var(--goto-font-family)",avatarXxlarge:"700 2.25rem/3rem var(--goto-font-family)",avatarXlarge:"700 1.625rem/2rem var(--goto-font-family)",avatarLarge:"700 1.25rem/1.5rem var(--goto-font-family)",avatarMedium:"700 0.875rem/1.25rem var(--goto-font-family)",avatarSmall:"700 0.75rem/1rem var(--goto-font-family)",avatarXsmall:"700 0.625rem/1rem var(--goto-font-family)",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyMono:"Menlo, Consolas, Monaco, 'Liberation Mono', 'Lucida Console', monospace"};let uh;const eU=new Uint8Array(16);function tU(){if(!uh&&(uh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!uh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uh(eU)}const kn=[];for(let t=0;t<256;++t)kn.push((t+256).toString(16).slice(1));function nU(t,e=0){return kn[t[e+0]]+kn[t[e+1]]+kn[t[e+2]]+kn[t[e+3]]+"-"+kn[t[e+4]]+kn[t[e+5]]+"-"+kn[t[e+6]]+kn[t[e+7]]+"-"+kn[t[e+8]]+kn[t[e+9]]+"-"+kn[t[e+10]]+kn[t[e+11]]+kn[t[e+12]]+kn[t[e+13]]+kn[t[e+14]]+kn[t[e+15]]}const rU=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$$={randomUUID:rU};function iU(t,e,n){if($$.randomUUID&&!t)return $$.randomUUID();t=t||{};const r=t.random||(t.rng||tU)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,nU(r)}const aU="cc-common_index-module_truncate_ttck-XWs",oU="cc-common_index-module_trailing_obpSJQSf",E$={truncate:aU,trailing:oU},sU=({children:t,className:e,trailing:n,title:r,tooltipPosition:i,hasTooltip:s=!0,id:u})=>{var c,f;const[h,p]=_.useState(!1),v=_.useRef(null),y=`text-truncate-${iU()}`;return _.useEffect(()=>{const b=v==null?void 0:v.current;b&&(b==null?void 0:b.offsetWidth)<(b==null?void 0:b.scrollWidth)?p(!0):p(!1)},[h,(c=v.current)==null?void 0:c.offsetWidth,(f=v.current)==null?void 0:f.scrollWidth]),S.jsxs("span",{className:e,id:u,children:[S.jsx("span",{id:y,className:E$.truncate,ref:v,children:t}),h&&s&&S.jsx(Ql,{position:i??"top-center",triggerId:y,style:{maxWidth:280},children:r??t}),n&&S.jsx("span",{className:E$.trailing,children:n})]})};var Am={exports:{}},Dt={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var C$;function lU(){if(C$)return Dt;C$=1;var t=60103,e=60106,n=60107,r=60108,i=60114,s=60109,u=60110,c=60112,f=60113,h=60120,p=60115,v=60116,y=60121,b=60122,$=60117,E=60129,A=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;t=T("react.element"),e=T("react.portal"),n=T("react.fragment"),r=T("react.strict_mode"),i=T("react.profiler"),s=T("react.provider"),u=T("react.context"),c=T("react.forward_ref"),f=T("react.suspense"),h=T("react.suspense_list"),p=T("react.memo"),v=T("react.lazy"),y=T("react.block"),b=T("react.server.block"),$=T("react.fundamental"),E=T("react.debug_trace_mode"),A=T("react.legacy_hidden")}function R(B){if(typeof B=="object"&&B!==null){var Ee=B.$$typeof;switch(Ee){case t:switch(B=B.type,B){case n:case i:case r:case f:case h:return B;default:switch(B=B&&B.$$typeof,B){case u:case c:case v:case p:case s:return B;default:return Ee}}case e:return Ee}}}var D=s,M=t,O=c,L=n,z=v,V=p,Y=e,te=i,W=r,ce=f;return Dt.ContextConsumer=u,Dt.ContextProvider=D,Dt.Element=M,Dt.ForwardRef=O,Dt.Fragment=L,Dt.Lazy=z,Dt.Memo=V,Dt.Portal=Y,Dt.Profiler=te,Dt.StrictMode=W,Dt.Suspense=ce,Dt.isAsyncMode=function(){return!1},Dt.isConcurrentMode=function(){return!1},Dt.isContextConsumer=function(B){return R(B)===u},Dt.isContextProvider=function(B){return R(B)===s},Dt.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},Dt.isForwardRef=function(B){return R(B)===c},Dt.isFragment=function(B){return R(B)===n},Dt.isLazy=function(B){return R(B)===v},Dt.isMemo=function(B){return R(B)===p},Dt.isPortal=function(B){return R(B)===e},Dt.isProfiler=function(B){return R(B)===i},Dt.isStrictMode=function(B){return R(B)===r},Dt.isSuspense=function(B){return R(B)===f},Dt.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===n||B===i||B===E||B===r||B===f||B===h||B===A||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===p||B.$$typeof===s||B.$$typeof===u||B.$$typeof===c||B.$$typeof===$||B.$$typeof===y||B[0]===b)},Dt.typeOf=R,Dt}var _$;function uU(){return _$||(_$=1,Am.exports=lU()),Am.exports}var cU=uU();const dU=Zi(cU);function Md(t){return t&&t.ownerDocument||document}function g0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function dd(t,e){return _.useMemo(function(){return t==null&&e==null?null:function(n){g0(t,n),g0(e,n)}},[t,e])}var fU=typeof window<"u"?_.useLayoutEffect:_.useEffect;function T$(t){var e=_.useRef(t);return fU(function(){e.current=t}),_.useCallback(function(){return e.current.apply(void 0,arguments)},[])}function eu(t){"@babel/helpers - typeof";return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eu(t)}function hU(t,e){if(eu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function SA(t){var e=hU(t,"string");return eu(e)=="symbol"?e:e+""}function mo(t,e,n){return(e=SA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function De(){return De=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="string",mc=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},w$=t=>t==null?"":""+t,gU=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},pU=/###/g,A$=t=>t&&t.indexOf("###")>-1?t.replace(pU,"."):t,O$=t=>!t||We(t),Zc=(t,e,n)=>{const r=We(e)?e.split("."):e;let i=0;for(;i{const{obj:r,k:i}=Zc(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let s=e[e.length-1],u=e.slice(0,e.length-1),c=Zc(t,u,Object);for(;c.obj===void 0&&u.length;)s=`${u[u.length-1]}.${s}`,u=u.slice(0,u.length-1),c=Zc(t,u,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},mU=(t,e,n,r)=>{const{obj:i,k:s}=Zc(t,e,Object);i[s]=i[s]||[],i[s].push(n)},p0=(t,e)=>{const{obj:n,k:r}=Zc(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},vU=(t,e,n)=>{const r=p0(t,n);return r!==void 0?r:p0(e,n)},xA=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?We(t[r])||t[r]instanceof String||We(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):xA(t[r],e[r],n):t[r]=e[r]);return t},$l=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yU={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const bU=t=>We(t)?t.replace(/[&<>"'\/]/g,e=>yU[e]):t;class SU{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const xU=[" ",",","?","!",";"],$U=new SU(20),EU=(t,e,n)=>{e=e||"",n=n||"";const r=xU.filter(u=>e.indexOf(u)<0&&n.indexOf(u)<0);if(r.length===0)return!0;const i=$U.getRegExp(`(${r.map(u=>u==="?"?"\\?":u).join("|")})`);let s=!i.test(t);if(!s){const u=t.indexOf(n);u>0&&!i.test(t.substring(0,u))&&(s=!0)}return s},t3=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let i=t;for(let s=0;s-1&&ft==null?void 0:t.replace("_","-"),CU={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,r;(r=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||r.call(n,console,e)}};class m0{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||CU,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(We(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new m0(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new m0(this.logger,e)}}var Vi=new m0;class k1{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([i,s])=>{for(let u=0;u{for(let u=0;u-1&&this.options.ns.splice(n,1)}getResource(e,n,r,i={}){var h,p;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,n],r&&(Array.isArray(r)?c.push(...r):We(r)&&s?c.push(...r.split(s)):c.push(r)));const f=p0(this.data,c);return!f&&!n&&!r&&e.indexOf(".")>-1&&(e=c[0],n=c[1],r=c.slice(2).join(".")),f||!u||!We(r)?f:t3((p=(h=this.data)==null?void 0:h[e])==null?void 0:p[n],r,s)}addResource(e,n,r,i,s={silent:!1}){const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[e,n];r&&(c=c.concat(u?r.split(u):r)),e.indexOf(".")>-1&&(c=e.split("."),i=n,n=c[1]),this.addNamespaces(n),R$(this.data,c,i),s.silent||this.emit("added",e,n,r,i)}addResources(e,n,r,i={silent:!1}){for(const s in r)(We(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,s,u={silent:!1,skipCopy:!1}){let c=[e,n];e.indexOf(".")>-1&&(c=e.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let f=p0(this.data,c)||{};u.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?xA(f,r,s):f={...f,...r},R$(this.data,c,f),u.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var $A={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(s=>{var u;e=((u=this.processors[s])==null?void 0:u.process(e,n,r,i))??e}),e}};const D$={},M$=t=>!We(t)&&typeof t!="boolean"&&typeof t!="number";class v0 extends k1{constructor(e,n={}){super(),gU(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vi.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const i=this.resolve(e,r);return(i==null?void 0:i.res)!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const u=r&&e.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!EU(e,r,i);if(u&&!c){const f=e.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:e,namespaces:We(s)?[s]:s};const h=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(h[0])>-1)&&(s=h.shift()),e=h.join(i)}return{key:e,namespaces:We(s)?[s]:s}}translate(e,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(i={...i}),i||(i={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:f}=this.extractFromKey(e[e.length-1],i),h=f[f.length-1];let p=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");const v=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return y?s?{res:`${h}${p}${c}`,usedKey:c,exactUsedKey:c,usedLng:v,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:`${h}${p}${c}`:s?{res:c,usedKey:c,exactUsedKey:c,usedLng:v,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:c;const b=this.resolve(e,i);let $=b==null?void 0:b.res;const E=(b==null?void 0:b.usedKey)||c,A=(b==null?void 0:b.exactUsedKey)||c,T=["[object Number]","[object Function]","[object RegExp]"],R=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,M=i.count!==void 0&&!We(i.count),O=v0.hasDefaultValue(i),L=M?this.pluralResolver.getSuffix(v,i.count,i):"",z=i.ordinal&&M?this.pluralResolver.getSuffix(v,i.count,{ordinal:!1}):"",V=M&&!i.ordinal&&i.count===0,Y=V&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${L}`]||i[`defaultValue${z}`]||i.defaultValue;let te=$;D&&!$&&O&&(te=Y);const W=M$(te),ce=Object.prototype.toString.apply(te);if(D&&te&&W&&T.indexOf(ce)<0&&!(We(R)&&Array.isArray(te))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(E,te,{...i,ns:f}):`key '${c} (${this.language})' returned an object instead of string.`;return s?(b.res=B,b.usedParams=this.getUsedParamsDetails(i),b):B}if(u){const B=Array.isArray(te),Ee=B?[]:{},pe=B?A:E;for(const H in te)if(Object.prototype.hasOwnProperty.call(te,H)){const Q=`${pe}${u}${H}`;O&&!$?Ee[H]=this.translate(Q,{...i,defaultValue:M$(Y)?Y[H]:void 0,joinArrays:!1,ns:f}):Ee[H]=this.translate(Q,{...i,joinArrays:!1,ns:f}),Ee[H]===Q&&(Ee[H]=te[H])}$=Ee}}else if(D&&We(R)&&Array.isArray($))$=$.join(R),$&&($=this.extendTranslation($,e,i,r));else{let B=!1,Ee=!1;!this.isValidLookup($)&&O&&(B=!0,$=Y),this.isValidLookup($)||(Ee=!0,$=c);const H=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ee?void 0:$,Q=O&&Y!==$&&this.options.updateMissing;if(Ee||B||Q){if(this.logger.log(Q?"updateKey":"missingKey",v,h,c,Q?Y:$),u){const F=this.resolve(c,{...i,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let he=[];const fe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fe&&fe[0])for(let F=0;F{var me;const be=O&&J!==$?J:H;this.options.missingKeyHandler?this.options.missingKeyHandler(F,h,ie,be,Q,i):(me=this.backendConnector)!=null&&me.saveMissing&&this.backendConnector.saveMissing(F,h,ie,be,Q,i),this.emit("missingKey",F,h,ie,$)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?he.forEach(F=>{const ie=this.pluralResolver.getSuffixes(F,i);V&&i[`defaultValue${this.options.pluralSeparator}zero`]&&ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&ie.push(`${this.options.pluralSeparator}zero`),ie.forEach(J=>{w([F],c+J,i[`defaultValue${J}`]||Y)})}):w(he,c,Y))}$=this.extendTranslation($,e,i,b,r),Ee&&$===c&&this.options.appendNamespaceToMissingKey&&($=`${h}${p}${c}`),(Ee||B)&&this.options.parseMissingKeyHandler&&($=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${p}${c}`:c,B?$:void 0,i))}return s?(b.res=$,b.usedParams=this.getUsedParamsDetails(i),b):$}extendTranslation(e,n,r,i,s){var f,h;if((f=this.i18nFormat)!=null&&f.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const p=We(e)&&(((h=r==null?void 0:r.interpolation)==null?void 0:h.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(p){const b=e.match(this.interpolator.nestingRegexp);v=b&&b.length}let y=r.replace&&!We(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),e=this.interpolator.interpolate(e,y,r.lng||this.language||i.usedLng,r),p){const b=e.match(this.interpolator.nestingRegexp),$=b&&b.length;v<$&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...b)=>(s==null?void 0:s[0])===b[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):this.translate(...b,n),r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=We(u)?[u]:u;return e!=null&&(c!=null&&c.length)&&r.applyPostProcessor!==!1&&(e=$A.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,i,s,u,c;return We(e)&&(e=[e]),e.forEach(f=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(f,n),p=h.key;i=p;let v=h.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const y=n.count!==void 0&&!We(n.count),b=y&&!n.ordinal&&n.count===0,$=n.context!==void 0&&(We(n.context)||typeof n.context=="number")&&n.context!=="",E=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);v.forEach(A=>{var T,R;this.isValidLookup(r)||(c=A,!D$[`${E[0]}-${A}`]&&((T=this.utils)!=null&&T.hasLoadedNamespace)&&!((R=this.utils)!=null&&R.hasLoadedNamespace(c))&&(D$[`${E[0]}-${A}`]=!0,this.logger.warn(`key "${i}" for languages "${E.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),E.forEach(D=>{var L;if(this.isValidLookup(r))return;u=D;const M=[p];if((L=this.i18nFormat)!=null&&L.addLookupKeys)this.i18nFormat.addLookupKeys(M,p,D,A,n);else{let z;y&&(z=this.pluralResolver.getSuffix(D,n.count,n));const V=`${this.options.pluralSeparator}zero`,Y=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(M.push(p+z),n.ordinal&&z.indexOf(Y)===0&&M.push(p+z.replace(Y,this.options.pluralSeparator)),b&&M.push(p+V)),$){const te=`${p}${this.options.contextSeparator}${n.context}`;M.push(te),y&&(M.push(te+z),n.ordinal&&z.indexOf(Y)===0&&M.push(te+z.replace(Y,this.options.pluralSeparator)),b&&M.push(te+V))}}let O;for(;O=M.pop();)this.isValidLookup(r)||(s=O,r=this.getResource(D,A,O,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:u,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!We(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class I${constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vi.create("languageUtils")}getScriptPartFromCode(e){if(e=fd(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=fd(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(We(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(u=>{if(u===s)return u;if(!(u.indexOf("-")<0&&s.indexOf("-")<0)&&(u.indexOf("-")>0&&s.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===s||u.indexOf(s)===0&&s.length>1))return u})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),We(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),i=[],s=u=>{u&&(this.isSupportedCode(u)?i.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return We(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):We(e)&&s(this.formatLanguageCode(e)),r.forEach(u=>{i.indexOf(u)<0&&s(this.formatLanguageCode(u))}),i}}const L$={zero:0,one:1,two:2,few:3,many:4,other:5},k$={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class _U{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Vi.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=fd(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let u;try{u=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),k$;if(!e.match(/-|_/))return k$;const f=this.languageUtils.getLanguagePartFromCode(e);u=this.getRule(f,n)}return this.pluralRulesCache[s]=u,u}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>L$[i]-L$[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,n,r={}){const i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const P$=(t,e,n,r=".",i=!0)=>{let s=vU(t,e,n);return!s&&i&&We(n)&&(s=t3(t,n,r),s===void 0&&(s=t3(e,n,r))),s},Om=t=>t.replace(/\$/g,"$$$$");class TU{constructor(e={}){var n;this.logger=Vi.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:u,suffix:c,suffixEscaped:f,formatSeparator:h,unescapeSuffix:p,unescapePrefix:v,nestingPrefix:y,nestingPrefixEscaped:b,nestingSuffix:$,nestingSuffixEscaped:E,nestingOptionsSeparator:A,maxReplaces:T,alwaysFormat:R}=e.interpolation;this.escape=n!==void 0?n:bU,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?$l(s):u||"{{",this.suffix=c?$l(c):f||"}}",this.formatSeparator=h||",",this.unescapePrefix=p?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=y?$l(y):b||$l("$t("),this.nestingSuffix=$?$l($):E||$l(")"),this.nestingOptionsSeparator=A||",",this.maxReplaces=T||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){var b;let s,u,c;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=$=>{if($.indexOf(this.formatSeparator)<0){const R=P$(n,f,$,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,r,{...i,...n,interpolationkey:$}):R}const E=$.split(this.formatSeparator),A=E.shift().trim(),T=E.join(this.formatSeparator).trim();return this.format(P$(n,f,A,this.options.keySeparator,this.options.ignoreJSONStructure),T,r,{...i,...n,interpolationkey:A})};this.resetRegExp();const p=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((b=i==null?void 0:i.interpolation)==null?void 0:b.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:$=>Om($)},{regex:this.regexp,safeValue:$=>this.escapeValue?Om(this.escape($)):Om($)}].forEach($=>{for(c=0;s=$.regex.exec(e);){const E=s[1].trim();if(u=h(E),u===void 0)if(typeof p=="function"){const T=p(e,s,i);u=We(T)?T:""}else if(i&&Object.prototype.hasOwnProperty.call(i,E))u="";else if(v){u=s[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${e}`),u="";else!We(u)&&!this.useRawValueToEscape&&(u=w$(u));const A=$.safeValue(u);if(e=e.replace(s[0],A),v?($.regex.lastIndex+=u.length,$.regex.lastIndex-=s[0].length):$.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,n,r={}){let i,s,u;const c=(f,h)=>{const p=this.nestingOptionsSeparator;if(f.indexOf(p)<0)return f;const v=f.split(new RegExp(`${p}[ ]*{`));let y=`{${v[1]}`;f=v[0],y=this.interpolate(y,u);const b=y.match(/'/g),$=y.match(/"/g);(((b==null?void 0:b.length)??0)%2===0&&!$||$.length%2!==0)&&(y=y.replace(/'/g,'"'));try{u=JSON.parse(y),h&&(u={...h,...u})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,E),`${f}${p}${y}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,f};for(;i=this.nestingRegexp.exec(e);){let f=[];u={...r},u=u.replace&&!We(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;let h=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const p=i[1].split(this.formatSeparator).map(v=>v.trim());i[1]=p.shift(),f=p,h=!0}if(s=n(c.call(this,i[1].trim(),u),u),s&&i[0]===e&&!We(s))return s;We(s)||(s=w$(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),h&&(s=f.reduce((p,v)=>this.format(p,v,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const wU=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(u=>{if(u){const[c,...f]=u.split(":"),h=f.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();n[p]||(n[p]=h),h==="false"&&(n[p]=!1),h==="true"&&(n[p]=!0),isNaN(h)||(n[p]=parseInt(h,10))}})}return{formatName:e,formatOptions:n}},j$=t=>{const e={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const u=r+JSON.stringify(s);let c=e[u];return c||(c=t(fd(r),i),e[u]=c),c(n)}},AU=t=>(e,n,r)=>t(fd(n),r)(e);let OU=class{constructor(e={}){this.logger=Vi.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?j$:AU;this.formats={number:r((i,s)=>{const u=new Intl.NumberFormat(i,{...s});return c=>u.format(c)}),currency:r((i,s)=>{const u=new Intl.NumberFormat(i,{...s,style:"currency"});return c=>u.format(c)}),datetime:r((i,s)=>{const u=new Intl.DateTimeFormat(i,{...s});return c=>u.format(c)}),relativetime:r((i,s)=>{const u=new Intl.RelativeTimeFormat(i,{...s});return c=>u.format(c,s.range||"day")}),list:r((i,s)=>{const u=new Intl.ListFormat(i,{...s});return c=>u.format(c)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=j$(n)}format(e,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,f)=>{var v;const{formatName:h,formatOptions:p}=wU(f);if(this.formats[h]){let y=c;try{const b=((v=i==null?void 0:i.formatParams)==null?void 0:v[i.interpolationkey])||{},$=b.locale||b.lng||i.locale||i.lng||r;y=this.formats[h](c,$,{...p,...i,...b})}catch(b){this.logger.warn(b)}return y}else this.logger.warn(`there was no format function for ${h}`);return c},e)}};const RU=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class NU extends k1{constructor(e,n,r,i={}){var s,u;super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Vi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(u=(s=this.backend)==null?void 0:s.init)==null||u.call(s,r,i.backend,i)}queueLoad(e,n,r,i){const s={},u={},c={},f={};return e.forEach(h=>{let p=!0;n.forEach(v=>{const y=`${h}|${v}`;!r.reload&&this.store.hasResourceBundle(h,v)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?u[y]===void 0&&(u[y]=!0):(this.state[y]=1,p=!1,u[y]===void 0&&(u[y]=!0),s[y]===void 0&&(s[y]=!0),f[v]===void 0&&(f[v]=!0)))}),p||(c[h]=!0)}),(Object.keys(s).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(u),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(f)}}loaded(e,n,r){const i=e.split("|"),s=i[0],u=i[1];n&&this.emit("failedLoading",s,u,n),!n&&r&&this.store.addResourceBundle(s,u,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const c={};this.queue.forEach(f=>{mU(f.loaded,[s],u),RU(f,e),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(h=>{c[h]||(c[h]={});const p=f.loaded[h];p.length&&p.forEach(v=>{c[h][v]===void 0&&(c[h][v]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(f=>!f.done)}read(e,n,r,i=0,s=this.retryTimeout,u){if(!e.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:s,callback:u});return}this.readingCalls++;const c=(h,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(h&&p&&i{this.read.call(this,e,n,r,i+1,s*2,u)},s);return}u(h,p)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const h=f(e,n);h&&typeof h.then=="function"?h.then(p=>c(null,p)).catch(c):c(null,h)}catch(h){c(h)}return}return f(e,n,c)}prepareLoading(e,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();We(e)&&(e=this.languageUtils.toResolveHierarchy(e)),We(n)&&(n=[n]);const s=this.queueLoad(e,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(u=>{this.loadOne(u)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(u,c)=>{u&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,u),!u&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,c),this.loaded(e,u,c)})}saveMissing(e,n,r,i,s,u={},c=()=>{}){var f,h,p,v,y;if((h=(f=this.services)==null?void 0:f.utils)!=null&&h.hasLoadedNamespace&&!((v=(p=this.services)==null?void 0:p.utils)!=null&&v.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((y=this.backend)!=null&&y.create){const b={...u,isUpdate:s},$=this.backend.create.bind(this.backend);if($.length<6)try{let E;$.length===5?E=$(e,n,r,i,b):E=$(e,n,r,i),E&&typeof E.then=="function"?E.then(A=>c(null,A)).catch(c):c(null,E)}catch(E){c(E)}else $(e,n,r,i,c,b)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const F$=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),We(t[1])&&(e.defaultValue=t[1]),We(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),H$=t=>{var e,n;return We(t.ns)&&(t.ns=[t.ns]),We(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),We(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((n=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:n.call(e,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},ch=()=>{},DU=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class hd extends k1{constructor(e={},n){if(super(),this.options=H$(e),this.services={},this.logger=Vi,this.modules={external:[]},DU(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(We(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=F$();this.options={...r,...this.options,...H$(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const i=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?Vi.init(i(this.modules.logger),this.options):Vi.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=OU;const p=new I$(this.options);this.store=new N$(this.options.resources,this.options);const v=this.services;v.logger=Vi,v.resourceStore=this.store,v.languageUtils=p,v.pluralResolver=new _U(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(v.formatter=i(h),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new TU(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new NU(i(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(y,...b)=>{this.emit(y,...b)}),this.modules.languageDetector&&(v.languageDetector=i(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=i(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new v0(this.services,this.options),this.translator.on("*",(y,...b)=>{this.emit(y,...b)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ch),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=(...p)=>this.store[h](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...p)=>(this.store[h](...p),this)});const c=mc(),f=()=>{const h=(p,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(v),n(p,v)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(e,n=ch){var s,u;let r=n;const i=We(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],f=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(v=>{v!=="cimode"&&c.indexOf(v)<0&&c.push(v)})};i?f(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>f(p)),(u=(s=this.options.preload)==null?void 0:s.forEach)==null||u.call(s,h=>f(h)),this.services.backendConnector.load(c,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(h)})}else r(null)}reloadResources(e,n,r){const i=mc();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=ch),this.services.backendConnector.reload(e,n,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&$A.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=mc();this.emit("languageChanging",e);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},s=(c,f)=>{f?this.isLanguageChangingTo===e&&(i(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve((...h)=>this.t(...h)),n&&n(c,(...h)=>this.t(...h))},u=c=>{var p,v;!e&&!c&&this.services.languageDetector&&(c=[]);const f=We(c)?c:c&&c[0],h=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(We(c)?[c]:c);h&&(this.language||i(h),this.translator.language||this.translator.changeLanguage(h),(v=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||v.call(p,h)),this.loadResources(h,y=>{s(y,h)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),r}getFixedT(e,n,r){const i=(s,u,...c)=>{let f;typeof u!="object"?f=this.options.overloadTranslationOptionHandler([s,u].concat(c)):f={...u},f.lng=f.lng||i.lng,f.lngs=f.lngs||i.lngs,f.ns=f.ns||i.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||i.keyPrefix);const h=this.options.keySeparator||".";let p;return f.keyPrefix&&Array.isArray(s)?p=s.map(v=>`${f.keyPrefix}${h}${v}`):p=f.keyPrefix?`${f.keyPrefix}${h}${s}`:s,this.t(p,f)};return We(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const u=(c,f)=>{const h=this.services.backendConnector.state[`${c}|${f}`];return h===-1||h===0||h===2};if(n.precheck){const c=n.precheck(this,u);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(r,e)&&(!i||u(s,e)))}loadNamespaces(e,n){const r=mc();return this.options.ns?(We(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=mc();We(e)&&(e=[e]);const i=this.options.preload||[],s=e.filter(u=>i.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return s.length?(this.options.preload=i.concat(s),this.loadResources(u=>{r.resolve(),n&&n(u)}),r):(n&&n(),Promise.resolve())}dir(e){var i,s;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new I$(F$());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){return new hd(e,n)}cloneInstance(e={},n=ch){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new hd(i);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((f,h)=>(f[h]={...this.store.data[h]},f[h]=Object.keys(f[h]).reduce((p,v)=>(p[v]={...f[h][v]},p),f[h]),f),{});s.store=new N$(c,i),s.services.resourceStore=s.store}return s.translator=new v0(s.services,i),s.translator.on("*",(c,...f)=>{s.emit(c,...f)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const vn=hd.createInstance();vn.createInstance=hd.createInstance;vn.createInstance;vn.dir;vn.init;vn.loadResources;vn.reloadResources;vn.use;vn.changeLanguage;vn.getFixedT;vn.t;vn.exists;vn.setDefaultNamespace;vn.hasLoadedNamespace;vn.loadNamespaces;vn.loadLanguages;const MU="cc-common_index-module_buttonContainer_sQ9NcSSn",IU="cc-common_index-module_roundButton_bMVy3t4K",B$={buttonContainer:MU,roundButton:IU},LU=({className:t,color:e,disabled:n,ariaLabel:r="",label:i,variant:s="secondary",size:u,children:c,onClick:f,dataTestId:h})=>{const p={"--round-button-color":e};return S.jsxs("div",{className:ke(B$.buttonContainer,t),children:[S.jsx(jL,{"data-testid":h,disabled:n,label:r,variant:s,size:u,onClick:f,style:e&&p,className:e?B$.roundButton:void 0,children:c}),i&&S.jsx(Ht,{variant:"caption-small",color:"type-color-secondary",children:i})]})},kU=["+13854400564","+13854400565","+13854400566","+13854400567","+13854400568","+13854400569","+13854400570","+13854400571","+13854400572","+13854400573","+13854400574","+13854400575"],Lr=t=>`${(t==null?void 0:t.firstName)||""} ${(t==null?void 0:t.lastName)||""}`.trim(),PU={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-7]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0(4(?:[14]4|56)|[579])?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-246-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-389]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[1-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","(?:0080|[2-7])\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","976\\d{6}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-6]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["505(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|4[46]))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10,13],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function jU(t,e){var n=Array.prototype.slice.call(e);return n.push(PU),t.apply(this,n)}function n3(t){"@babel/helpers - typeof";return n3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n3(t)}function U$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function FU(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sz(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function gd(t,e){return gd=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gd(t,e)}function pd(t){return pd=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pd(t)}var ho=function(t){iz(n,t);var e=az(n);function n(r){var i;return rz(this,n),i=e.call(this,r),Object.setPrototypeOf(EA(i),n.prototype),i.name=i.constructor.name,i}return nz(n)}(i3(Error));function V$(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var s=Number(n[i]),u=Number(r[i]);if(s>u)return 1;if(u>s)return-1;if(!isNaN(s)&&isNaN(u))return 1;if(isNaN(s)&&!isNaN(u))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]=H4&&Ez.test(t)}function Cz(t){return xz.test(t)}var Z$=new RegExp("(?:"+TA()+")$","i");function _z(t){var e=t.search(Z$);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(Z$),i=1;i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oz(t,e){if(t){if(typeof t=="string")return Y$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y$(t,e)}}function Y$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ns?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Dz(t,e,n){if(e===void 0&&(e={}),n=new dr(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return AA(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function AA(t,e){switch(z4(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Mz(t,e){return kz(t)||Lz(t,e)||OA(t,e)||Iz()}function Iz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lz(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,u,c;try{for(n=n.call(t);!(i=(u=n.next()).done)&&(r.push(u.value),!(e&&r.length===e));i=!0);}catch(f){s=!0,c=f}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function kz(t){if(Array.isArray(t))return t}function Pz(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=OA(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OA(t,e){if(t){if(typeof t=="string")return X$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X$(t,e)}}function X$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bz(t,e){if(t){if(typeof t=="string")return Q$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q$(t,e)}}function Q$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0}function Gz(t){return t.replace(new RegExp("[".concat(y0,"]+"),"g")," ").trim()}var Wz=/(\$\d)/;function Zz(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,s=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(Wz,e.nationalPrefixFormattingRule()):e.format());return r?Gz(s):s}var Yz=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Kz(t,e,n){var r=new dr(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Yz.test(r.IDDPrefix()))return r.IDDPrefix()}function Xz(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Qz(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qz(t,e){if(t){if(typeof t=="string")return J$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J$(t,e)}}function J$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var s=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(s)!==0)continue}if(Ea(e,i.pattern()))return i}}function Dm(t,e,n,r){return e?r(t,e,n):t}function nV(t,e,n,r,i){var s=U4(r,i.metadata);if(s===n){var u=S0(t,e,"NATIONAL",i);return n==="1"?n+" "+u:u}var c=Kz(r,void 0,i.metadata);if(c)return"".concat(c," ").concat(n," ").concat(S0(t,null,"INTERNATIONAL",i))}function r8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function i8(t){for(var e=1;e0&&u[1]==="0"))return t}}}function dV(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,s,u=r.length-1,c=u>0&&r[u];if(e.nationalPrefixTransformRule()&&c)i=t.replace(n,e.nationalPrefixTransformRule()),u>1&&(s=r[1]);else{var f=r[0];i=t.slice(f.length),c&&(s=r[1])}var h;if(c){var p=t.indexOf(r[1]),v=t.slice(0,p);v===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:i,nationalPrefix:h,carrierCode:s}}}return{nationalNumber:t}}function a3(t,e){var n=dV(t,e),r=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!fV(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!hV(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:r}}function fV(t,e,n){return!(Ea(t,n.nationalNumberPattern())&&!Ea(e,n.nationalNumberPattern()))}function hV(t,e){switch(z4(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function gV(t,e,n,r){var i=e?U4(e,r):n;if(t.indexOf(i)===0){r=new dr(r),r.selectNumberingPlan(e,n);var s=t.slice(i.length),u=a3(s,r),c=u.nationalNumber,f=a3(t,r),h=f.nationalNumber;if(!Ea(h,r.nationalNumberPattern())&&Ea(c,r.nationalNumberPattern())||z4(h,r)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:t}}function pV(t,e,n,r){if(!t)return{};if(t[0]!=="+"){var i=cV(t,e,n,r);if(i&&i!==t)t="+"+i;else{if(e||n){var s=gV(t,e,n,r),u=s.countryCallingCode,c=s.number;if(u)return{countryCallingCode:u,number:c}}return{number:t}}}if(t[1]==="0")return{};r=new dr(r);for(var f=2;f-1<=YU&&f<=t.length;){var h=t.slice(1,f);if(r.hasCallingCode(h))return r.selectNumberingPlan(h),{countryCallingCode:h,number:t.slice(f)};f++}return{}}function mV(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=vV(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vV(t,e){if(t){if(typeof t=="string")return a8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a8(t,e)}}function a8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nZU){if(e.v2)throw new ho("TOO_LONG");return{}}if(e.v2){var y=new sV(p,h,n.metadata);return f&&(y.country=f),v&&(y.carrierCode=v),s&&(y.ext=s),y}var b=(e.extended?n.hasSelectedNumberingPlan():f)?Ea(h,n.nationalNumberPattern()):!1;return e.extended?{country:f,countryCallingCode:p,carrierCode:v,valid:b,possible:b?!0:!!(e.extended===!0&&n.possibleLengths()&&AA(h,n)),phone:h,ext:s}:b?TV(f,h,s):{}}function CV(t,e,n){if(t){if(t.length>SV){if(n)throw new ho("TOO_LONG");return}if(e===!1)return t;var r=t.search(xV);if(!(r<0))return t.slice(r).replace($V,"")}}function _V(t,e,n){if(t&&t.indexOf("tel:")===0)return jz(t);var r=CV(t,n,e);if(!r)return{};if(!wA(r))return Cz(r)?{error:"TOO_SHORT"}:{};var i=_z(r);return i.ext?i:{number:r}}function TV(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function wV(t,e,n,r){var i=pV(K$(t),e,n,r.metadata),s=i.countryCallingCode,u=i.number,c;if(s)r.selectNumberingPlan(s);else if(u&&(e||n))r.selectNumberingPlan(e,n),e&&(c=e),s=n||U4(e,r.metadata);else return{};if(!u)return{countryCallingCode:s};var f=a3(K$(u),r),h=f.nationalNumber,p=f.carrierCode,v=bV(s,h,r);return v&&(c=v,v==="001"||r.country(c)),{country:c,countryCallingCode:s,nationalNumber:h,carrierCode:p}}function o8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function s8(t){for(var e=1;e{if(e&&(t!=null&&t.phoneNumber)&&kU.includes(t==null?void 0:t.phoneNumber))return"Team GoTo";let n=Lr(t);return!n&&(t!=null&&t.phoneNumber)?n=MV(t.phoneNumber):!n&&(t!=null&&t.email)&&(n=t.email),n??""},MV=t=>{var e;return((e=zh(t??""))==null?void 0:e.formatInternational())??t};var ir=(t=>(t.INBOUND="INBOUND",t.OUTBOUND="OUTBOUND",t))(ir||{}),md=(t=>(t.SMS="SMS",t.WEB_CHAT="WEB_CHAT",t.FACEBOOK="FACEBOOK",t.INSTAGRAM="INSTAGRAM",t))(md||{}),vd=(t=>(t.POSITIVE="POSITIVE",t.NEGATIVE="NEGATIVE",t))(vd||{});const o3=t=>(t==null?void 0:t.type)==="CAMPAIGN_MESSAGE",xo=t=>t&&!!t.direction&&!o3(t),IV=t=>!!t.assignedTo,LV=t=>!!t.unassignedFrom,NA=t=>!!t.reason,kV=t=>t.type==="CONVERSATION_FLIP_TO_CALL",PV=t=>!!t.meetingId,jV=t=>!!t.sessionPin&&!!t.serviceUrl,DA=t=>t.type==="PARTICIPANT_LEFT_CONVERSATION",c8=t=>t.type==="WEB_CHAT_ENDED",MA=t=>(t==null?void 0:t.type)==="SURVEY_RATING_QUESTION",q4=t=>(t==null?void 0:t.type)==="SURVEY_RATING_RESPONSE",G4=t=>(t==null?void 0:t.type)==="SURVEY_FEEDBACK_QUESTION",IA=t=>(t==null?void 0:t.type)==="SURVEY_FEEDBACK_RESPONSE",FV=t=>t.type==="FLOW_SELECT_NODE_RESPONSE",HV=t=>t.type==="FLOW_SEND_MESSAGE_NODE",BV=t=>t.type==="FLOW_SEND_TO_AGENT_NODE",UV=t=>FV(t)||HV(t)||BV(t),zV=t=>MA(t)||q4(t),VV=t=>G4(t)||IA(t),s3=t=>VV(t)||zV(t),qV=t=>!t.scheduleId&&!!t.afterHoursMessage,GV=t=>!!t.scheduleId&&!!t.afterHoursMessage,WV=t=>t.type==="ABANDONED_CALLER_AUTO_REPLY",ZV="pending",YV="failed",d8="keydown",l3=(t,e)=>{_.useEffect(()=>{const n=r=>{e.find(i=>i===r.code)&&t(r)};return document.addEventListener(d8,n),()=>document.removeEventListener(d8,n)},[e,t])},LA=()=>{const[t,e]=_.useState(Date.now());return _.useEffect(()=>{const n=setInterval(()=>e(Date.now()),1e3);return()=>clearInterval(n)},[]),t},KV=1e4,XV=({onTyping:t,debouncedValue:e=1e3,intervalValue:n=KV/2})=>{const r=_.useRef(),i=_.useRef(),s=_.useRef(null);return _.useEffect(()=>{if(t){const c=()=>t(!1);return window.addEventListener("beforeunload",c),()=>{window.removeEventListener("beforeunload",c)}}},[t]),t?()=>{clearTimeout(r.current),s.current!==!0&&(s.current=!0,t(!0),i.current=setInterval(()=>{i.current&&t(!0)},n)),r.current=setTimeout(()=>{clearInterval(i.current),s.current=!1,t(!1)},e)}:void 0},QV=({conversationEvents:t,onSendReadIndicator:e})=>{const[n,r]=_.useState(!1),[i,s]=_.useState(document.hasFocus()),u=_.useRef(!1),c=t==null?void 0:t[0],f=xo(c)&&c.direction===ir.INBOUND,h=e&&n&&i&&!u.current&&f;return _.useEffect(()=>{let p;return e&&(p=window.setInterval(()=>s(document.hasFocus()),1e3)),()=>window.clearInterval(p)},[e]),_.useEffect(()=>{e&&(u.current=!1,r(!1))},[t]),_.useEffect(()=>{h&&(e(),u.current=!0)},[h]),r},JV="cc-common_index-module_text_2bxfwdyk",eq={text:JV},$0=t=>S.jsx(Ht,{...t,className:ke(eq.text,t.className),children:t.children});function tq(t){if(Array.isArray(t))return t}function nq(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,u,c=[],f=!0,h=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(p){h=!0,i=p}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw i}}return c}}function u3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?E:b;return"@media (max-width:".concat(A-u/100).concat(i,")")}function p(b,$){var E=ao.indexOf($);return E===ao.length-1?f(b):"@media (min-width:".concat(typeof n[b]=="number"?n[b]:b).concat(i,") and ")+"(max-width:".concat((E!==-1&&typeof n[ao[E+1]]=="number"?n[ao[E+1]]:$)-u/100).concat(i,")")}function v(b){return p(b,b)}function y(b){return n[b]}return De({keys:ao,values:n,up:f,down:h,between:p,only:v,width:y},c)}function uq(t,e,n){var r;return De({gutters:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` paddingLeft: theme.spacing(2), paddingRight: theme.spacing(2), [theme.breakpoints.up('sm')]: { paddingLeft: theme.spacing(3), paddingRight: theme.spacing(3), }, `].join(` `)),De({paddingLeft:e(2),paddingRight:e(2)},s,mo({},t.up("sm"),De({paddingLeft:e(3),paddingRight:e(3)},s[t.up("sm")])))},toolbar:(r={minHeight:56},mo(r,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),mo(r,t.up("sm"),{minHeight:64}),r)},n)}var E0={black:"#000",white:"#fff"},W4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Mm={300:"#7986cb",500:"#3f51b5",700:"#303f9f"},Im={A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Lm={300:"#e57373",500:"#f44336",700:"#d32f2f"},km={300:"#ffb74d",500:"#ff9800",700:"#f57c00"},Pm={300:"#64b5f6",500:"#2196f3",700:"#1976d2"},jm={300:"#81c784",500:"#4caf50",700:"#388e3c"};function C0(t){for(var e="https://mui.com/production-error/?code="+t,n=1;n1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),n)}function cq(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(e);return n&&n[0].length===1&&(n=n.map(function(r){return r+r})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(r,i){return i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3}).join(", "),")"):""}function dq(t){t=Os(t);var e=t,n=e.values,r=n[0],i=n[1]/100,s=n[2]/100,u=i*Math.min(s,1-s),c=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(v+r/30)%12;return s-u*Math.max(Math.min(y-3,9-y,1),-1)},f="rgb",h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(f+="a",h.push(n[3])),F1({type:f,values:h})}function Os(t){if(t.type)return t;if(t.charAt(0)==="#")return Os(cq(t));var e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(n)===-1)throw new Error(C0(3,t));var r=t.substring(e+1,t.length-1).split(",");return r=r.map(function(i){return parseFloat(i)}),{type:n,values:r}}function F1(t){var e=t.type,n=t.values;return e.indexOf("rgb")!==-1?n=n.map(function(r,i){return i<3?parseInt(r,10):r}):e.indexOf("hsl")!==-1&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e,"(").concat(n.join(", "),")")}function fq(t,e){var n=h8(t),r=h8(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function h8(t){t=Os(t);var e=t.type==="hsl"?Os(dq(t)).values:t.values;return e=e.map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Rn(t,e){return t=Os(t),e=Z4(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.values[3]=e,F1(t)}function hq(t,e){if(t=Os(t),e=Z4(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)t.values[n]*=1-e;return F1(t)}function gq(t,e){if(t=Os(t),e=Z4(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;return F1(t)}function Fm(t){return t&&eu(t)==="object"&&t.constructor===Object}function tu(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},r=n.clone?De({},t):t;return Fm(t)&&Fm(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(Fm(e[i])&&i in t?r[i]=tu(t[i],e[i],n):r[i]=e[i])}),r}var g8={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:E0.white,default:W4[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hm={text:{primary:E0.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:W4[800],default:"#303030"},action:{active:E0.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function p8(t,e,n,r){var i=r.light||r,s=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=gq(t.main,i):e==="dark"&&(t.dark=hq(t.main,s)))}function pq(t){var e=t.primary,n=e===void 0?{light:Mm[300],main:Mm[500],dark:Mm[700]}:e,r=t.secondary,i=r===void 0?{light:Im.A200,main:Im.A400,dark:Im.A700}:r,s=t.error,u=s===void 0?{light:Lm[300],main:Lm[500],dark:Lm[700]}:s,c=t.warning,f=c===void 0?{light:km[300],main:km[500],dark:km[700]}:c,h=t.info,p=h===void 0?{light:Pm[300],main:Pm[500],dark:Pm[700]}:h,v=t.success,y=v===void 0?{light:jm[300],main:jm[500],dark:jm[700]}:v,b=t.type,$=b===void 0?"light":b,E=t.contrastThreshold,A=E===void 0?3:E,T=t.tonalOffset,R=T===void 0?.2:T,D=En(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(V){var Y=fq(V,Hm.text.primary)>=A?Hm.text.primary:g8.text.primary;return Y}var O=function(Y){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(Y=De({},Y),!Y.main&&Y[te]&&(Y.main=Y[te]),!Y.main)throw new Error(C0(4,te));if(typeof Y.main!="string")throw new Error(C0(5,JSON.stringify(Y.main)));return p8(Y,"light",W,R),p8(Y,"dark",ce,R),Y.contrastText||(Y.contrastText=M(Y.main)),Y},L={dark:Hm,light:g8},z=tu(De({common:E0,type:$,primary:O(n),secondary:O(i,"A400","A200","A700"),error:O(u),warning:O(f),info:O(p),success:O(y),grey:W4,contrastThreshold:A,getContrastText:M,augmentColor:O,tonalOffset:R},L[$]),D);return z}function HA(t){return Math.round(t*1e5)/1e5}function mq(t){return HA(t)}var m8={textTransform:"uppercase"},v8='"Roboto", "Helvetica", "Arial", sans-serif';function vq(t,e){var n=typeof e=="function"?e(t):e,r=n.fontFamily,i=r===void 0?v8:r,s=n.fontSize,u=s===void 0?14:s,c=n.fontWeightLight,f=c===void 0?300:c,h=n.fontWeightRegular,p=h===void 0?400:h,v=n.fontWeightMedium,y=v===void 0?500:v,b=n.fontWeightBold,$=b===void 0?700:b,E=n.htmlFontSize,A=E===void 0?16:E,T=n.allVariants,R=n.pxToRem,D=En(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),M=u/14,O=R||function(V){return"".concat(V/A*M,"rem")},L=function(Y,te,W,ce,B){return De({fontFamily:i,fontWeight:Y,fontSize:O(te),lineHeight:W},i===v8?{letterSpacing:"".concat(HA(ce/te),"em")}:{},B,T)},z={h1:L(f,96,1.167,-1.5),h2:L(f,60,1.2,-.5),h3:L(p,48,1.167,0),h4:L(p,34,1.235,.25),h5:L(p,24,1.334,0),h6:L(y,20,1.6,.15),subtitle1:L(p,16,1.75,.15),subtitle2:L(y,14,1.57,.1),body1:L(p,16,1.5,.15),body2:L(p,14,1.43,.15),button:L(y,14,1.75,.4,m8),caption:L(p,12,1.66,.4),overline:L(p,12,2.66,1,m8)};return tu(De({htmlFontSize:A,pxToRem:O,round:mq,fontFamily:i,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:y,fontWeightBold:$},z),D,{clone:!1})}var yq=.2,bq=.14,Sq=.12;function Vt(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(yq,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(bq,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(Sq,")")].join(",")}var xq=["none",Vt(0,2,1,-1,0,1,1,0,0,1,3,0),Vt(0,3,1,-2,0,2,2,0,0,1,5,0),Vt(0,3,3,-2,0,3,4,0,0,1,8,0),Vt(0,2,4,-1,0,4,5,0,0,1,10,0),Vt(0,3,5,-1,0,5,8,0,0,1,14,0),Vt(0,3,5,-1,0,6,10,0,0,1,18,0),Vt(0,4,5,-2,0,7,10,1,0,2,16,1),Vt(0,5,5,-3,0,8,10,1,0,3,14,2),Vt(0,5,6,-3,0,9,12,1,0,3,16,2),Vt(0,6,6,-3,0,10,14,1,0,4,18,3),Vt(0,6,7,-4,0,11,15,1,0,4,20,3),Vt(0,7,8,-4,0,12,17,2,0,5,22,4),Vt(0,7,8,-4,0,13,19,2,0,5,24,4),Vt(0,7,9,-4,0,14,21,2,0,5,26,4),Vt(0,8,9,-5,0,15,22,2,0,6,28,5),Vt(0,8,10,-5,0,16,24,2,0,6,30,5),Vt(0,8,11,-5,0,17,26,2,0,6,32,5),Vt(0,9,11,-5,0,18,28,2,0,7,34,6),Vt(0,9,12,-6,0,19,29,2,0,7,36,6),Vt(0,10,13,-6,0,20,31,3,0,8,38,7),Vt(0,10,13,-6,0,21,33,3,0,8,40,7),Vt(0,10,14,-6,0,22,35,3,0,8,42,7),Vt(0,11,14,-7,0,23,36,3,0,9,44,8),Vt(0,11,15,-7,0,24,38,3,0,9,46,8)],$q={borderRadius:4};function Eq(t){var e=t.spacing||8;return typeof e=="number"?function(n){return e*n}:Array.isArray(e)?function(n){return e[n]}:typeof e=="function"?e:function(){}}function Cq(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(t.mui)return t;var e=Eq({spacing:t}),n=function(){for(var i=arguments.length,s=new Array(i),u=0;u0&&arguments[0]!==void 0?arguments[0]:["all"],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.duration,i=r===void 0?nu.standard:r,s=n.easing,u=s===void 0?y8.easeInOut:s,c=n.delay,f=c===void 0?0:c;return En(n,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(h){return"".concat(h," ").concat(typeof i=="string"?i:b8(i)," ").concat(u," ").concat(typeof f=="string"?f:b8(f))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var n=e/36;return Math.round((4+15*Math.pow(n,.25)+n/5)*10)}};var BA={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function UA(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.breakpoints,n=e===void 0?{}:e,r=t.mixins,i=r===void 0?{}:r,s=t.palette,u=s===void 0?{}:s,c=t.spacing,f=t.typography,h=f===void 0?{}:f,p=En(t,["breakpoints","mixins","palette","spacing","typography"]),v=pq(u),y=lq(n),b=Cq(c),$=tu({breakpoints:y,direction:"ltr",mixins:uq(y,b,i),overrides:{},palette:v,props:{},shadows:xq,typography:vq(v,h),spacing:b,shape:$q,transitions:_q,zIndex:BA},p),E=arguments.length,A=new Array(E>1?E-1:0),T=1;T"u"?"undefined":x8(window))==="object"&&(typeof document>"u"?"undefined":x8(document))==="object"&&document.nodeType===9;function Oq(t,e){for(var n=0;n<+~=|^:(),"'`\s])/g,C8=typeof CSS<"u"&&CSS.escape,X4=function(t){return C8?C8(t):t.replace(Nq,"\\$1")},qA=function(){function t(n,r,i){this.type="style",this.isProcessed=!1;var s=i.sheet,u=i.Renderer;this.key=n,this.options=i,this.style=r,s?this.renderer=s.renderer:u&&(this.renderer=new u)}var e=t.prototype;return e.prop=function(r,i,s){if(i===void 0)return this.style[r];var u=s?s.force:!1;if(!u&&this.style[r]===i)return this;var c=i;(!s||s.process!==!1)&&(c=this.options.jss.plugins.onChangeValue(i,r,this));var f=c==null||c===!1,h=r in this.style;if(f&&!h&&!u)return this;var p=f&&h;if(p?delete this.style[r]:this.style[r]=c,this.renderable&&this.renderer)return p?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,c),this;var v=this.options.sheet;return v&&v.attached,this},t}(),g3=function(t){VA(e,t);function e(r,i,s){var u;u=t.call(this,r,i,s)||this;var c=s.selector,f=s.scoped,h=s.sheet,p=s.generateId;return c?u.selectorText=c:f!==!1&&(u.id=p($8($8(u)),h),u.selectorText="."+X4(u.id)),u}var n=e.prototype;return n.applyTo=function(i){var s=this.renderer;if(s){var u=this.toJSON();for(var c in u)s.setProperty(i,c,u[c])}return this},n.toJSON=function(){var i={};for(var s in this.style){var u=this.style[s];typeof u!="object"?i[s]=u:Array.isArray(u)&&(i[s]=Cs(u))}return i},n.toString=function(i){var s=this.options.sheet,u=s?s.options.link:!1,c=u?De({},i,{allowEmpty:!0}):i;return yd(this.selectorText,this.style,c)},Y4(e,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var s=this.renderer,u=this.renderable;if(!(!u||!s)){var c=s.setSelector(u,i);c||s.replaceRule(u,this)}}},get:function(){return this.selectorText}}]),e}(qA),Dq={onCreateRule:function(e,n,r){return e[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new g3(e,n,r)}},Um={indent:1,children:!0},Mq=/@([\w-]+)/,Iq=function(){function t(n,r,i){this.type="conditional",this.isProcessed=!1,this.key=n;var s=n.match(Mq);this.at=s?s[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new H1(De({},i,{parent:this}));for(var u in r)this.rules.add(u,r[u]);this.rules.process()}var e=t.prototype;return e.getRule=function(r){return this.rules.get(r)},e.indexOf=function(r){return this.rules.indexOf(r)},e.addRule=function(r,i,s){var u=this.rules.add(r,i,s);return u?(this.options.jss.plugins.onProcessRule(u),u):null},e.replaceRule=function(r,i,s){var u=this.rules.replace(r,i,s);return u&&this.options.jss.plugins.onProcessRule(u),u},e.toString=function(r){r===void 0&&(r=Um);var i=cu(r),s=i.linebreak;if(r.indent==null&&(r.indent=Um.indent),r.children==null&&(r.children=Um.children),r.children===!1)return this.query+" {}";var u=this.rules.toString(r);return u?this.query+" {"+s+u+s+"}":""},t}(),Lq=/@container|@media|@supports\s+/,kq={onCreateRule:function(e,n,r){return Lq.test(e)?new Iq(e,n,r):null}},zm={indent:1,children:!0},Pq=/@keyframes\s+([\w-]+)/,p3=function(){function t(n,r,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var s=n.match(Pq);s&&s[1]?this.name=s[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var u=i.scoped,c=i.sheet,f=i.generateId;this.id=u===!1?this.name:X4(f(this,c)),this.rules=new H1(De({},i,{parent:this}));for(var h in r)this.rules.add(h,r[h],De({},i,{parent:this}));this.rules.process()}var e=t.prototype;return e.toString=function(r){r===void 0&&(r=zm);var i=cu(r),s=i.linebreak;if(r.indent==null&&(r.indent=zm.indent),r.children==null&&(r.children=zm.children),r.children===!1)return this.at+" "+this.id+" {}";var u=this.rules.toString(r);return u&&(u=""+s+u+s),this.at+" "+this.id+" {"+u+"}"},t}(),jq=/@keyframes\s+/,Fq=/\$([\w-]+)/g,m3=function(e,n){return typeof e=="string"?e.replace(Fq,function(r,i){return i in n?n[i]:r}):e},_8=function(e,n,r){var i=e[n],s=m3(i,r);s!==i&&(e[n]=s)},Hq={onCreateRule:function(e,n,r){return typeof e=="string"&&jq.test(e)?new p3(e,n,r):null},onProcessStyle:function(e,n,r){return n.type!=="style"||!r||("animation-name"in e&&_8(e,"animation-name",r.keyframes),"animation"in e&&_8(e,"animation",r.keyframes)),e},onChangeValue:function(e,n,r){var i=r.options.sheet;if(!i)return e;switch(n){case"animation":return m3(e,i.keyframes);case"animation-name":return m3(e,i.keyframes);default:return e}}},Bq=function(t){VA(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.toString=function(i){var s=this.options.sheet,u=s?s.options.link:!1,c=u?De({},i,{allowEmpty:!0}):i;return yd(this.key,this.style,c)},e}(qA),Uq={onCreateRule:function(e,n,r){return r.parent&&r.parent.type==="keyframes"?new Bq(e,n,r):null}},zq=function(){function t(n,r,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var e=t.prototype;return e.toString=function(r){var i=cu(r),s=i.linebreak;if(Array.isArray(this.style)){for(var u="",c=0;c=this.index){i.push(r);return}for(var u=0;us){i.splice(u,0,r);return}}},e.reset=function(){this.registry=[]},e.remove=function(r){var i=this.registry.indexOf(r);this.registry.splice(i,1)},e.toString=function(r){for(var i=r===void 0?{}:r,s=i.attached,u=PA(i,["attached"]),c=cu(u),f=c.linebreak,h="",p=0;p-1?i.substr(0,s-1):i;e.style.setProperty(n,u,s>-1?"important":"")}}catch{return!1}return!0},nG=function(e,n){try{e.attributeStyleMap?e.attributeStyleMap.delete(n):e.style.removeProperty(n)}catch{}},rG=function(e,n){return e.selectorText=n,e.selectorText===n},ZA=WA(function(){return document.querySelector("head")});function iG(t,e){for(var n=0;ne.index&&r.options.insertionPoint===e.insertionPoint)return r}return null}function aG(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.attached&&r.options.insertionPoint===e.insertionPoint)return r}return null}function oG(t){for(var e=ZA(),n=0;n0){var n=iG(e,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=aG(e,t),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=t.insertionPoint;if(r&&typeof r=="string"){var i=oG(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function lG(t,e){var n=e.insertionPoint,r=sG(e);if(r!==!1&&r.parent){r.parent.insertBefore(t,r.node);return}if(n&&typeof n.nodeType=="number"){var i=n,s=i.parentNode;s&&s.insertBefore(t,i.nextSibling);return}ZA().appendChild(t)}var uG=WA(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),R8=function(e,n,r){try{"insertRule"in e?e.insertRule(n,r):"appendRule"in e&&e.appendRule(n)}catch{return!1}return e.cssRules[r]},N8=function(e,n){var r=e.cssRules.length;return n===void 0||n>r?r:n},cG=function(){var e=document.createElement("style");return e.textContent=` `,e},dG=function(){function t(n){this.getPropertyValue=eG,this.setProperty=tG,this.removeProperty=nG,this.setSelector=rG,this.hasInsertedRules=!1,this.cssRules=[],n&&Yc.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},i=r.media,s=r.meta,u=r.element;this.element=u||cG(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),s&&this.element.setAttribute("data-meta",s);var c=uG();c&&this.element.setAttribute("nonce",c)}var e=t.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){lG(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` `)}},e.deploy=function(){var r=this.sheet;if(r){if(r.options.link){this.insertRules(r.rules);return}this.element.textContent=` `+r.toString()+` `}},e.insertRules=function(r,i){for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,n=e===void 0?!1:e,r=t.productionPrefix,i=r===void 0?"jss":r,s=t.seed,u=s===void 0?"":s,c=u===""?"":"".concat(u,"-"),f=0,h=function(){return f+=1,f};return function(p,v){var y=v.options.name;if(y&&y.indexOf("Mui")===0&&!v.options.link&&!n){if(yG.indexOf(p.key)!==-1)return"Mui-".concat(p.key);var b="".concat(c).concat(y,"-").concat(p.key);return!v.options.theme[XA]||u!==""?b:"".concat(b,"-").concat(h())}return"".concat(c).concat(i).concat(h())}}var JA=Date.now(),Vm="fnValues"+JA,qm="fnStyle"+ ++JA,bG=function(){return{onCreateRule:function(n,r,i){if(typeof r!="function")return null;var s=K4(n,{},i);return s[qm]=r,s},onProcessStyle:function(n,r){if(Vm in r||qm in r)return n;var i={};for(var s in n){var u=n[s];typeof u=="function"&&(delete n[s],i[s]=u)}return r[Vm]=i,n},onUpdate:function(n,r,i,s){var u=r,c=u[qm];c&&(u.style=c(n)||{});var f=u[Vm];if(f)for(var h in f)u.prop(h,f[h](n),s)}}},Eo="@global",b3="@global ",SG=function(){function t(n,r,i){this.type="global",this.at=Eo,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new H1(De({},i,{parent:this}));for(var s in r)this.rules.add(s,r[s]);this.rules.process()}var e=t.prototype;return e.getRule=function(r){return this.rules.get(r)},e.addRule=function(r,i,s){var u=this.rules.add(r,i,s);return u&&this.options.jss.plugins.onProcessRule(u),u},e.replaceRule=function(r,i,s){var u=this.rules.replace(r,i,s);return u&&this.options.jss.plugins.onProcessRule(u),u},e.indexOf=function(r){return this.rules.indexOf(r)},e.toString=function(r){return this.rules.toString(r)},t}(),xG=function(){function t(n,r,i){this.type="global",this.at=Eo,this.isProcessed=!1,this.key=n,this.options=i;var s=n.substr(b3.length);this.rule=i.jss.createRule(s,r,De({},i,{parent:this}))}var e=t.prototype;return e.toString=function(r){return this.rule?this.rule.toString(r):""},t}(),$G=/\s*,\s*/g;function eO(t,e){for(var n=t.split($G),r="",i=0;i-1){var s=oO[e];if(!Array.isArray(s))return Ye.js+Ro(s)in n?Ye.css+s:!1;if(!i)return!1;for(var u=0;ur?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var i={},s=Object.keys(n).sort(t),u=0;u"u"?null:gW(),pW()]}}var mW=Q4(lO()),vW=QA(),yW=new Map,bW={disableGeneration:!1,generateClassName:vW,jss:mW,sheetsCache:null,sheetsManager:yW,sheetsRegistry:null},$3=gt.createContext(bW),fh;function SW(t){var e=t.children,n=t.injectFirst,r=n===void 0?!1:n,i=t.disableGeneration,s=i===void 0?!1:i,u=En(t,["children","injectFirst","disableGeneration"]),c=gt.useContext($3),f=De({},c,{disableGeneration:s},u);if(!f.jss.options.insertionPoint&&r&&typeof window<"u"){if(!fh){var h=document.head;fh=document.createComment("mui-inject-first"),h.insertBefore(fh,h.firstChild)}f.jss=Q4({plugins:lO().plugins,insertionPoint:fh})}return gt.createElement($3.Provider,{value:f},e)}function uO(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,n=t.newClasses;if(t.Component,!n)return e;var r=De({},e);return Object.keys(n).forEach(function(i){n[i]&&(r[i]="".concat(e[i]," ").concat(n[i]))}),r}function xW(t,e,n){var r=t.state,i=t.stylesOptions;if(i.disableGeneration)return e||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var s=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,s=!0),e!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=e,s=!0),s&&(r.cacheClasses.value=uO({baseClasses:r.cacheClasses.lastJSS,newClasses:e,Component:n})),r.cacheClasses.value}function $W(t,e){var n=t.state,r=t.theme,i=t.stylesOptions,s=t.stylesCreator,u=t.name;if(!i.disableGeneration){var c=jl.get(i.sheetsManager,s,r);c||(c={refs:0,staticSheet:null,dynamicStyles:null},jl.set(i.sheetsManager,s,r,c));var f=De({},s.options,i,{theme:r,flip:typeof i.flip=="boolean"?i.flip:r.direction==="rtl"});f.generateId=f.serverGenerateClassName||f.generateClassName;var h=i.sheetsRegistry;if(c.refs===0){var p;i.sheetsCache&&(p=jl.get(i.sheetsCache,s,r));var v=s.create(r,u);p||(p=i.jss.createStyleSheet(v,De({link:!1},f)),p.attach(),i.sheetsCache&&jl.set(i.sheetsCache,s,r,p)),h&&h.add(p),c.staticSheet=p,c.dynamicStyles=YA(v)}if(c.dynamicStyles){var y=i.jss.createStyleSheet(c.dynamicStyles,De({link:!0},f));y.update(e),y.attach(),n.dynamicSheet=y,n.classes=uO({baseClasses:c.staticSheet.classes,newClasses:y.classes}),h&&h.add(y)}else n.classes=c.staticSheet.classes;c.refs+=1}}function EW(t,e){var n=t.state;n.dynamicSheet&&n.dynamicSheet.update(e)}function CW(t){var e=t.state,n=t.theme,r=t.stylesOptions,i=t.stylesCreator;if(!r.disableGeneration){var s=jl.get(r.sheetsManager,i,n);s.refs-=1;var u=r.sheetsRegistry;s.refs===0&&(jl.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(s.staticSheet),u&&u.remove(s.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),u&&u.remove(e.dynamicSheet))}}function _W(t,e){var n=gt.useRef([]),r,i=gt.useMemo(function(){return{}},e);n.current!==i&&(n.current=i,r=t()),gt.useEffect(function(){return function(){r&&r()}},[i])}function TW(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.name,r=e.classNamePrefix,i=e.Component,s=e.defaultTheme,u=s===void 0?pG:s,c=En(e,["name","classNamePrefix","Component","defaultTheme"]),f=mG(t),h=n||r||"makeStyles";f.options={index:gG(),name:n,meta:h,classNamePrefix:h};var p=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=Ld()||u,$=De({},gt.useContext($3),c),E=gt.useRef(),A=gt.useRef();_W(function(){var R={name:n,state:{},stylesCreator:f,stylesOptions:$,theme:b};return $W(R,y),A.current=!1,E.current=R,function(){CW(R)}},[b,f]),gt.useEffect(function(){A.current&&EW(E.current,y),A.current=!0});var T=xW(E.current,y.classes,i);return T};return p}function cO(t){var e=t.theme,n=t.name,r=t.props;if(!e||!e.props||!e.props[n])return r;var i=e.props[n],s;for(s in i)r[s]===void 0&&(r[s]=i[s]);return r}var wW=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(r){var i=n.defaultTheme,s=n.withTheme,u=s===void 0?!1:s,c=n.name,f=En(n,["defaultTheme","withTheme","name"]),h=c,p=TW(e,De({defaultTheme:i,Component:r,name:c||r.displayName,classNamePrefix:h},f)),v=gt.forwardRef(function(b,$){b.classes;var E=b.innerRef,A=En(b,["classes","innerRef"]),T=p(De({},r.defaultProps,b)),R,D=A;return(typeof c=="string"||u)&&(R=Ld()||i,c&&(D=cO({theme:R,name:c,props:A})),u&&!D.theme&&(D.theme=R)),gt.createElement(r,De({ref:E||$,classes:T},D))});return Aq(v,r),v}};function Is(t,e){return wW(t,De({defaultTheme:zA},e))}var AW=function(e){return e.scrollTop};function k8(t,e){var n=t.timeout,r=t.style,i=r===void 0?{}:r;return{duration:i.transitionDuration||typeof n=="number"?n:n[e.mode]||0,delay:i.transitionDelay}}function OW(){var t=Ld()||zA;return t}vn.createInstance();const dO=t=>{const e=t.replace("_","-");switch(e){case"fr-CA":return"fr-FR";case"es-MX":return"es-ES";case"en-CA":case"en-AU":case"en-IE":case"en-GB":return"en-US";default:return e}};function Vl(t){if(typeof t!="string")throw new Error(C0(7));return t.charAt(0).toUpperCase()+t.slice(1)}var RW=function(e){var n={};return e.shadows.forEach(function(r,i){n["elevation".concat(i)]={boxShadow:r}}),De({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},n)},NW=_.forwardRef(function(e,n){var r=e.classes,i=e.className,s=e.component,u=s===void 0?"div":s,c=e.square,f=c===void 0?!1:c,h=e.elevation,p=h===void 0?1:h,v=e.variant,y=v===void 0?"elevation":v,b=En(e,["classes","className","component","square","elevation","variant"]);return _.createElement(u,De({className:Ni(r.root,i,y==="outlined"?r.outlined:r["elevation".concat(p)],!f&&r.rounded),ref:n},b))});const DW=Is(RW,{name:"MuiPaper"})(NW);function P8(){for(var t=arguments.length,e=new Array(t),n=0;ne.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Xc(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function j8(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function F8(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,s=[e,n].concat(rO(r)),u=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,function(c){c.nodeType===1&&s.indexOf(c)===-1&&u.indexOf(c.tagName)===-1&&Xc(c,i)})}function Qm(t,e){var n=-1;return t.some(function(r,i){return e(r)?(n=i,!0):!1}),n}function PW(t,e){var n=[],r=[],i=t.container,s;if(!e.disableScrollLock){if(kW(i)){var u=IW();n.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(j8(i)+u,"px"),s=Md(i).querySelectorAll(".mui-fixed"),[].forEach.call(s,function(p){r.push(p.style.paddingRight),p.style.paddingRight="".concat(j8(p)+u,"px")})}var c=i.parentElement,f=c.nodeName==="HTML"&&window.getComputedStyle(c)["overflow-y"]==="scroll"?c:i;n.push({value:f.style.overflow,key:"overflow",el:f}),f.style.overflow="hidden"}var h=function(){s&&[].forEach.call(s,function(v,y){r[y]?v.style.paddingRight=r[y]:v.style.removeProperty("padding-right")}),n.forEach(function(v){var y=v.value,b=v.el,$=v.key;y?b.style.setProperty($,y):b.style.removeProperty($)})};return h}function jW(t){var e=[];return[].forEach.call(t.children,function(n){n.getAttribute&&n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}var FW=function(){function t(){MW(this,t),this.modals=[],this.containers=[]}return Y4(t,[{key:"add",value:function(n,r){var i=this.modals.indexOf(n);if(i!==-1)return i;i=this.modals.length,this.modals.push(n),n.modalRef&&Xc(n.modalRef,!1);var s=jW(r);F8(r,n.mountNode,n.modalRef,s,!0);var u=Qm(this.containers,function(c){return c.container===r});return u!==-1?(this.containers[u].modals.push(n),i):(this.containers.push({modals:[n],container:r,restore:null,hiddenSiblingNodes:s}),i)}},{key:"mount",value:function(n,r){var i=Qm(this.containers,function(u){return u.modals.indexOf(n)!==-1}),s=this.containers[i];s.restore||(s.restore=PW(s,r))}},{key:"remove",value:function(n){var r=this.modals.indexOf(n);if(r===-1)return r;var i=Qm(this.containers,function(c){return c.modals.indexOf(n)!==-1}),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(n),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),n.modalRef&&Xc(n.modalRef,!0),F8(s.container,n.mountNode,n.modalRef,s.hiddenSiblingNodes,!1),this.containers.splice(i,1);else{var u=s.modals[s.modals.length-1];u.modalRef&&Xc(u.modalRef,!1)}return r}},{key:"isTopModal",value:function(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}]),t}(),H8={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},HW=_.forwardRef(function(e,n){var r=e.invisible,i=r===void 0?!1:r,s=e.open,u=En(e,["invisible","open"]);return s?_.createElement("div",De({"aria-hidden":!0,ref:n},u,{style:De({},H8.root,i?H8.invisible:{},u.style)})):null});function BW(t){return t=typeof t=="function"?t():t,lu.findDOMNode(t)}var Jm=typeof window<"u"?_.useLayoutEffect:_.useEffect,UW=_.forwardRef(function(e,n){var r=e.children,i=e.container,s=e.disablePortal,u=s===void 0?!1:s,c=e.onRendered,f=_.useState(null),h=f[0],p=f[1],v=dd(_.isValidElement(r)?r.ref:null,n);return Jm(function(){u||p(BW(i)||document.body)},[i,u]),Jm(function(){if(h&&!u)return g0(n,h),function(){g0(n,null)}},[n,h,u]),Jm(function(){c&&(h||u)&&c()},[c,h,u]),u?_.isValidElement(r)?_.cloneElement(r,{ref:v}):r:h&&lu.createPortal(r,h)});function zW(t){var e=t.children,n=t.disableAutoFocus,r=n===void 0?!1:n,i=t.disableEnforceFocus,s=i===void 0?!1:i,u=t.disableRestoreFocus,c=u===void 0?!1:u,f=t.getDoc,h=t.isEnabled,p=t.open,v=_.useRef(),y=_.useRef(null),b=_.useRef(null),$=_.useRef(),E=_.useRef(null),A=_.useCallback(function(D){E.current=lu.findDOMNode(D)},[]),T=dd(e.ref,A),R=_.useRef();return _.useEffect(function(){R.current=p},[p]),!R.current&&p&&typeof window<"u"&&($.current=f().activeElement),_.useEffect(function(){if(p){var D=Md(E.current);!r&&E.current&&!E.current.contains(D.activeElement)&&(E.current.hasAttribute("tabIndex")||E.current.setAttribute("tabIndex",-1),E.current.focus());var M=function(){var V=E.current;if(V!==null){if(!D.hasFocus()||s||!h()||v.current){v.current=!1;return}E.current&&!E.current.contains(D.activeElement)&&E.current.focus()}},O=function(V){s||!h()||V.keyCode!==9||D.activeElement===E.current&&(v.current=!0,V.shiftKey?b.current.focus():y.current.focus())};D.addEventListener("focus",M,!0),D.addEventListener("keydown",O,!0);var L=setInterval(function(){M()},50);return function(){clearInterval(L),D.removeEventListener("focus",M,!0),D.removeEventListener("keydown",O,!0),c||($.current&&$.current.focus&&$.current.focus(),$.current=null)}}},[r,s,c,h,p]),_.createElement(_.Fragment,null,_.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelStart"}),_.cloneElement(e,{ref:T}),_.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelEnd"}))}function VW(t){return t=typeof t=="function"?t():t,lu.findDOMNode(t)}function qW(t){return t.children?t.children.props.hasOwnProperty("in"):!1}var GW=new FW,WW=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},ZW=_.forwardRef(function(e,n){var r=Ld(),i=cO({name:"MuiModal",props:De({},e),theme:r}),s=i.BackdropComponent,u=s===void 0?HW:s,c=i.BackdropProps,f=i.children,h=i.closeAfterTransition,p=h===void 0?!1:h,v=i.container,y=i.disableAutoFocus,b=y===void 0?!1:y,$=i.disableBackdropClick,E=$===void 0?!1:$,A=i.disableEnforceFocus,T=A===void 0?!1:A,R=i.disableEscapeKeyDown,D=R===void 0?!1:R,M=i.disablePortal,O=M===void 0?!1:M,L=i.disableRestoreFocus,z=L===void 0?!1:L,V=i.disableScrollLock,Y=V===void 0?!1:V,te=i.hideBackdrop,W=te===void 0?!1:te,ce=i.keepMounted,B=ce===void 0?!1:ce,Ee=i.manager,pe=Ee===void 0?GW:Ee,H=i.onBackdropClick,Q=i.onClose,he=i.onEscapeKeyDown,fe=i.onRendered,w=i.open,F=En(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),ie=_.useState(!0),J=ie[0],be=ie[1],me=_.useRef({}),Ce=_.useRef(null),ve=_.useRef(null),Me=dd(ve,n),qe=qW(i),Kt=function(){return Md(Ce.current)},se=function(){return me.current.modalRef=ve.current,me.current.mountNode=Ce.current,me.current},pt=function(){pe.mount(se(),{disableScrollLock:Y}),ve.current.scrollTop=0},Ke=T$(function(){var _e=VW(v)||Kt().body;pe.add(se(),_e),ve.current&&pt()}),Je=_.useCallback(function(){return pe.isTopModal(se())},[pe]),Ut=T$(function(_e){Ce.current=_e,_e&&(fe&&fe(),w&&Je()?pt():Xc(ve.current,!0))}),Cn=_.useCallback(function(){pe.remove(se())},[pe]);if(_.useEffect(function(){return function(){Cn()}},[Cn]),_.useEffect(function(){w?Ke():(!qe||!p)&&Cn()},[w,Cn,qe,p,Ke]),!B&&!w&&(!qe||J))return null;var Tt=function(){be(!1)},Jn=function(){be(!0),p&&Cn()},Un=function(Ie){Ie.target===Ie.currentTarget&&(H&&H(Ie),!E&&Q&&Q(Ie,"backdropClick"))},K=function(Ie){Ie.key!=="Escape"||!Je()||(he&&he(Ie),D||(Ie.stopPropagation(),Q&&Q(Ie,"escapeKeyDown")))},xe=WW(r||{zIndex:BA}),we={};return f.props.tabIndex===void 0&&(we.tabIndex=f.props.tabIndex||"-1"),qe&&(we.onEnter=P8(Tt,f.props.onEnter),we.onExited=P8(Jn,f.props.onExited)),_.createElement(UW,{ref:Ut,container:v,disablePortal:O},_.createElement("div",De({ref:Me,onKeyDown:K,role:"presentation"},F,{style:De({},xe.root,!w&&J?xe.hidden:{},F.style)}),W?null:_.createElement(u,De({open:w,onClick:Un},c)),_.createElement(zW,{disableEnforceFocus:T,disableAutoFocus:b,disableRestoreFocus:z,getDoc:Kt,isEnabled:Je,open:w},_.cloneElement(f,we))))}),YW={entering:{opacity:1},entered:{opacity:1}},KW={enter:nu.enteringScreen,exit:nu.leavingScreen},fO=_.forwardRef(function(e,n){var r=e.children,i=e.disableStrictModeCompat,s=i===void 0?!1:i,u=e.in,c=e.onEnter,f=e.onEntered,h=e.onEntering,p=e.onExit,v=e.onExited,y=e.onExiting,b=e.style,$=e.TransitionComponent,E=$===void 0?Oa:$,A=e.timeout,T=A===void 0?KW:A,R=En(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),D=OW(),M=D.unstable_strictMode&&!s,O=_.useRef(null),L=dd(r.ref,n),z=dd(M?O:void 0,L),V=function(H){return function(Q,he){if(H){var fe=M?[O.current,Q]:[Q,he],w=iq(fe,2),F=w[0],ie=w[1];ie===void 0?H(F):H(F,ie)}}},Y=V(h),te=V(function(pe,H){AW(pe);var Q=k8({style:b,timeout:T},{mode:"enter"});pe.style.webkitTransition=D.transitions.create("opacity",Q),pe.style.transition=D.transitions.create("opacity",Q),c&&c(pe,H)}),W=V(f),ce=V(y),B=V(function(pe){var H=k8({style:b,timeout:T},{mode:"exit"});pe.style.webkitTransition=D.transitions.create("opacity",H),pe.style.transition=D.transitions.create("opacity",H),p&&p(pe)}),Ee=V(v);return _.createElement(E,De({appear:!0,in:u,nodeRef:M?O:void 0,onEnter:te,onEntered:W,onEntering:Y,onExit:B,onExited:Ee,onExiting:ce,timeout:T},R),function(pe,H){return _.cloneElement(r,De({style:De({opacity:0,visibility:pe==="exited"&&!u?"hidden":void 0},YW[pe],b,r.props.style),ref:z},H))})}),XW={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},QW=_.forwardRef(function(e,n){var r=e.children,i=e.classes,s=e.className,u=e.invisible,c=u===void 0?!1:u,f=e.open,h=e.transitionDuration,p=e.TransitionComponent,v=p===void 0?fO:p,y=En(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return _.createElement(v,De({in:f,timeout:h},y),_.createElement("div",{className:Ni(i.root,s,c&&i.invisible),"aria-hidden":!0,ref:n},r))});const JW=Is(XW,{name:"MuiBackdrop"})(QW);var E3=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t))(E3||{}),C3=(t=>(t.GENERIC="GENERIC",t.CUSTOM="CUSTOM",t))(C3||{}),ev={exports:{}},B8;function eZ(){return B8||(B8=1,function(t){(function(){function e(N,P,ne){return N.call.apply(N.bind,arguments)}function n(N,P,ne){if(!N)throw Error();if(2=P.f?et():N.fonts.load(O(P.a),P.h).then(function(wt){1<=wt.length?He():setTimeout(rt,25)},function(){et()})}rt()}),ye=null,Oe=new Promise(function(He,et){ye=setTimeout(et,P.f)});Promise.race([Oe,ee]).then(function(){ye&&(clearTimeout(ye),ye=null),P.g(P.a)},function(){P.j(P.a)})};function w(N,P,ne,ee,ye,Oe,He){this.v=N,this.B=P,this.c=ne,this.a=ee,this.s=He||"BESbswy",this.f={},this.w=ye||3e3,this.u=Oe||null,this.m=this.j=this.h=this.g=null,this.g=new H(this.c,this.s),this.h=new H(this.c,this.s),this.j=new H(this.c,this.s),this.m=new H(this.c,this.s),N=new M(this.a.c+",serif",z(this.a)),N=he(N),this.g.a.style.cssText=N,N=new M(this.a.c+",sans-serif",z(this.a)),N=he(N),this.h.a.style.cssText=N,N=new M("serif",z(this.a)),N=he(N),this.j.a.style.cssText=N,N=new M("sans-serif",z(this.a)),N=he(N),this.m.a.style.cssText=N,Q(this.g),Q(this.h),Q(this.j),Q(this.m)}var F={D:"serif",C:"sans-serif"},ie=null;function J(){if(ie===null){var N=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);ie=!!N&&(536>parseInt(N[1],10)||parseInt(N[1],10)===536&&11>=parseInt(N[2],10))}return ie}w.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=i(),me(this)};function be(N,P,ne){for(var ee in F)if(F.hasOwnProperty(ee)&&P===N.f[F[ee]]&&ne===N.f[F[ee]])return!0;return!1}function me(N){var P=N.g.a.offsetWidth,ne=N.h.a.offsetWidth,ee;(ee=P===N.f.serif&&ne===N.f["sans-serif"])||(ee=J()&&be(N,P,ne)),ee?i()-N.A>=N.w?J()&&be(N,P,ne)&&(N.u===null||N.u.hasOwnProperty(N.a.c))?ve(N,N.v):ve(N,N.B):Ce(N):ve(N,N.v)}function Ce(N){setTimeout(r(function(){me(this)},N),50)}function ve(N,P){setTimeout(r(function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),P(this.a)},N),0)}function Me(N,P,ne){this.c=N,this.a=P,this.f=0,this.m=this.j=!1,this.s=ne}var qe=null;Me.prototype.g=function(N){var P=this.a;P.g&&p(P.f,[P.a.c("wf",N.c,z(N).toString(),"active")],[P.a.c("wf",N.c,z(N).toString(),"loading"),P.a.c("wf",N.c,z(N).toString(),"inactive")]),B(P,"fontactive",N),this.m=!0,Kt(this)},Me.prototype.h=function(N){var P=this.a;if(P.g){var ne=v(P.f,P.a.c("wf",N.c,z(N).toString(),"active")),ee=[],ye=[P.a.c("wf",N.c,z(N).toString(),"loading")];ne||ee.push(P.a.c("wf",N.c,z(N).toString(),"inactive")),p(P.f,ee,ye)}B(P,"fontinactive",N),Kt(this)};function Kt(N){--N.f==0&&N.j&&(N.m?(N=N.a,N.g&&p(N.f,[N.a.c("wf","active")],[N.a.c("wf","loading"),N.a.c("wf","inactive")]),B(N,"active")):ce(N.a))}function se(N){this.j=N,this.a=new Ee,this.h=0,this.f=this.g=!0}se.prototype.load=function(N){this.c=new s(this.j,N.context||this.j),this.g=N.events!==!1,this.f=N.classes!==!1,Ke(this,new te(this.c,N),N)};function pt(N,P,ne,ee,ye){var Oe=--N.h==0;(N.f||N.g)&&setTimeout(function(){var He=ye||null,et=ee||null||{};if(ne.length===0&&Oe)ce(P.a);else{P.f+=ne.length,Oe&&(P.j=Oe);var rt,wt=[];for(rt=0;rt{const[i,s]=_.useState("hidden"),[u,c]=_.useState(!1);return _.useEffect(()=>{setTimeout(()=>s("visible"),0)},[]),_.useEffect(()=>{if(r){const f=document.querySelectorAll(`link[href*="family=${r==null?void 0:r.replaceAll(" ","+")}"]`);(f==null?void 0:f.length)>0?c(!0):nZ.load({google:{families:[r]},active:()=>c(!0)})}},[r]),S.jsx("section",{style:{visibility:i,...u&&r&&{fontFamily:r}},className:ke(wl.box,{[wl.alignLeft]:t,[wl.alignRight]:!t,[wl.customFont]:r,[wl.largeFont]:n===E3.LARGE,[wl.smallFont]:n===E3.SMALL}),children:e})},uZ="cc-common_index-module_content_MZVLCgei",cZ="cc-common_index-module_actions_yiTEb5R-",U8={content:uZ,actions:cZ},dZ=({message:t,title:e,cancelLabel:n,confirmLabel:r,onCancel:i,onConfirm:s})=>{const{t:u}=lt();return S.jsxs("div",{className:U8.content,children:[e&&S.jsx(Ht,{variant:"heading-small",children:e}),t&&S.jsx(Ht,{variant:"body-small",children:t}),S.jsxs("div",{className:U8.actions,children:[S.jsx(lr,{fullWidth:!0,variant:"danger",onClick:s,children:r??u("Confirm")}),S.jsx(lr,{fullWidth:!0,variant:"neutral",onClick:i,children:n??u("Cancel")})]})]})},fZ="cc-common_WebChatAlert-module_webChatAlert_IXIInSLp",hZ="cc-common_WebChatAlert-module_fullWidth_vxncIvX-",gZ="cc-common_WebChatAlert-module_compact_OB5YfO5K",tv={webChatAlert:fZ,fullWidth:hZ,compact:gZ},pZ=({text:t,icon:e,fullWidth:n,compact:r,color:i,children:s})=>{let u=null;return i&&(u={backgroundColor:"var(--goto-background-color-default)",borderColor:i,"--goto-icon-color":i,"--goto-border-color-default":i}),S.jsx("div",{role:"listitem",className:ke(tv.webChatAlert,{[tv.fullWidth]:n,[tv.compact]:r}),children:S.jsxs(mn,{icon:e??S.jsx(uu,{}),variant:"info",style:u,children:[t,s]})})},mZ=/^rgb\(\s*(-?\d+\.?\d*)\s*,\s*(-?\d+\.?\d*)\s*,\s*(-?\d+\.?\d*)\s*\)$/,vZ=/^rgba\(\s*(-?\d+\.?\d*)\s*,\s*(-?\d+\.?\d*)\s*,\s*(-?\d+\.?\d*)\s*,\s*(-?\d*\.?\d+)\s*\)$/,yZ=/rgba?\(\s*(-?\d+\.?\d*),\s*(-?\d+\.?\d*),\s*(-?\d+\.?\d*)(?:,\s*(-?\d*\.?\d+))?\s*\)/,bZ=t=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(t),SZ=t=>{t=t.replace(/^#/,"");let e,n,r;if(t.length===3)e=parseInt(t.substring(0,1).repeat(2),16),n=parseInt(t.substring(1,2).repeat(2),16),r=parseInt(t.substring(2,3).repeat(2),16);else if(t.length===6)e=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);else return null;return isNaN(e)||isNaN(n)||isNaN(r)?null:{r:e,g:n,b:r}},xZ=t=>!t||typeof t!="string"?!1:t.match(mZ)!==null?!0:t.match(vZ)!==null,$Z=t=>{const[,...e]=t.match(yZ)||[];if(!e||e.length<3||e.length>4)throw new Error("RGBA string must have format `rgba(255, 255, 255, 1)` or `rgba(255, 255, 255)`");const n={r:parseInt(e[0],10),g:parseInt(e[1],10),b:parseInt(e[2],10),a:e[3]!==void 0?parseFloat(e[3]):1};if([n.r,n.g,n.b].some(r=>isNaN(r)||r<0||r>255))throw new Error("RGB value must be numeric value between 0 and 255");if(n&&(n.a<0||n.a>1))throw new Error("Alpha value must be numeric value between 0.0 and 1.0");return n},kr=t=>xZ(t)?$Z(t):bZ(t)?{...SZ(t),a:1}:null,z8="theme-dark",EZ="theme-light",Bn="typeColorDefault",qi="typeColorInverted",T0=7,hO=2.5,V8=(t,e,n)=>{const r=[t,e,n].map(i=>(i/=255,i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)));return r[0]*.2126+r[1]*.7152+r[2]*.0722},w0=(t,e)=>{const n=V8(t.r,t.g,t.b),r=V8(e.r,e.g,e.b),i=Math.max(n,r),s=Math.min(n,r);return(i+.05)/(s+.05)},CZ=(t,e)=>({r:Math.floor(t.r*t.a+e.r*(1-t.a)),g:Math.floor(t.g*t.a+e.g*(1-t.a)),b:Math.floor(t.b*t.a+e.b*(1-t.a))}),ys=t=>`#${((1<<24)+(t.r<<16)+(t.g<<8)+t.b).toString(16).slice(1)}`,_Z=t=>{let e;if(t){const n=t.closest(`.${EZ}`),r=t.closest(`.${z8}`);n&&r?e=!!(r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING):e=!!r}else e=!!document.querySelector(`.${z8}`);return e},q8=(t,e)=>_Z(e)?va[t]:de[t],ql=(t,e=document.documentElement)=>{const n=TZ(t);return getComputedStyle(e).getPropertyValue(n).trim()},TZ=t=>{const e=/var\(([^)]+)\)/,n=t.match(e);return n?n[1]:""},Ca=(t,e,n,r=document.documentElement)=>{let i=!1;const s=kr(e);if(s){const u=w0(kr(q8(t,r)),s),c=w0(kr(q8(n,r)),s);u>T0?i=!1:c>T0?i=!0:u>c||u>hO?i=!1:i=c>u}return i},gO=(t,e,n)=>{const r=w0(t,n),i=w0(e,n);return r>T0?ys(t):i>T0?ys(e):r>i||r>hO?ys(t):i>r?ys(e):ys(t)},G8=(t,e)=>{const n=kr(t),r=1-e/100;return n.r=Math.round(n.r*r),n.g=Math.round(n.g*r),n.b=Math.round(n.b*r),ys(n)},wZ=(t,e)=>({alignItems:"center",backgroundColor:"var(--goto-background-color-default)","--goto-link":`var(--goto-${Bn})`,...e&&AZ(t,e)}),AZ=(t,e)=>({borderColor:e,"--goto-type-color-brand-default":e,"--goto-icon-color":e,"--goto-interactive-01":e,"--goto-border-color-default":e,"--goto-text-06":Ca(qi,e,Bn,t.current)&&`var(--goto-${Bn})`}),OZ="cc-common_CSATScoreEvent-module_csatScoreEvent_KcGEpk76",RZ="cc-common_CSATScoreEvent-module_scores_XJEgGruS",NZ="cc-common_CSATScoreEvent-module_compact_hh2FmCDP",DZ="cc-common_CSATScoreEvent-module_item_x4kuO3qZ",MZ="cc-common_CSATScoreEvent-module_button_b6hG-aG0",Al={csatScoreEvent:OZ,scores:RZ,compact:NZ,item:DZ,button:MZ},IZ=({color:t,compact:e=!1,fullWidth:n=!1,onSubmit:r})=>{const{t:i}=lt(),s=_.useRef(null),u=wZ(s,t),c=[{value:1,label:i("1 (Very dissatisfied)")},{value:2,label:i("2 (Dissatisfied)")},{value:3,label:i("3 (Neutral)")},{value:4,label:i("4 (Satisfied)")},{value:5,label:i("5 (Very satisfied)")}],f=h=>{r==null||r(h.score)};return S.jsx(mA,{initialValues:{score:void 0},onSubmit:f,children:({setFieldValue:h,submitForm:p,isSubmitting:v})=>S.jsxs(vA,{className:Al.csatScoreEvent,children:[S.jsx(pZ,{compact:e,fullWidth:n,color:t,icon:S.jsx(jw,{}),text:i("On a scale of 1 to 5, how satisfied are you with the assistance provided today?")}),S.jsx("ul",{className:ke(Al.scores,{[Al.fullWidth]:n,[Al.compact]:e}),children:c.map(y=>S.jsx("li",{className:Al.item,children:S.jsx(lr,{className:Al.button,disabled:v,variant:"secondary",value:y.value,style:u,onClick:async()=>{await h("score",y.value),await p()},children:y.label},y.value)},y.value))})]})})},LZ=({icon:t,title:e,body:n,actions:r})=>S.jsx(S4,{icon:t||S.jsx(Ew,{}),title:e,actions:r,children:n}),kZ={},PZ=({timeout:t,children:e})=>t!==null?S.jsx("div",{className:kZ.render__wrapper,style:{"--timeline":`${t??0}ms`},children:e}):S.jsx(S.Fragment,{children:e});class Ls extends Error{}class jZ extends Ls{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class FZ extends Ls{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class HZ extends Ls{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Fl extends Ls{}class pO extends Ls{constructor(e){super(`Invalid unit ${e}`)}}class Kn extends Ls{}class oo extends Ls{constructor(){super("Zone is an abstract class")}}class kd{get type(){throw new oo}get name(){throw new oo}get ianaName(){return this.name}get isUniversal(){throw new oo}offsetName(e,n){throw new oo}formatOffset(e,n){throw new oo}offset(e){throw new oo}equals(e){throw new oo}get isValid(){throw new oo}}let nv=null;class B1 extends kd{static get instance(){return nv===null&&(nv=new B1),nv}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return CO(e,n,r)}formatOffset(e,n){return Qc(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Vh={};function BZ(t){return Vh[t]||(Vh[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Vh[t]}const UZ={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function zZ(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,s,u,c,f,h,p]=r;return[u,i,s,c,f,h,p]}function VZ(t,e){const n=t.formatToParts(e),r=[];for(let i=0;i=0?$:1e3+$,(y-b)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let W8={};function qZ(t,e={}){const n=JSON.stringify([t,e]);let r=W8[n];return r||(r=new Intl.ListFormat(t,e),W8[n]=r),r}let _3={};function T3(t,e={}){const n=JSON.stringify([t,e]);let r=_3[n];return r||(r=new Intl.DateTimeFormat(t,e),_3[n]=r),r}let w3={};function GZ(t,e={}){const n=JSON.stringify([t,e]);let r=w3[n];return r||(r=new Intl.NumberFormat(t,e),w3[n]=r),r}let A3={};function WZ(t,e={}){const{base:n,...r}=e,i=JSON.stringify([t,r]);let s=A3[i];return s||(s=new Intl.RelativeTimeFormat(t,e),A3[i]=s),s}let Bc=null;function ZZ(){return Bc||(Bc=new Intl.DateTimeFormat().resolvedOptions().locale,Bc)}let Z8={};function YZ(t){let e=Z8[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Z8[t]=e}return e}function KZ(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,i;try{r=T3(t).resolvedOptions(),i=t}catch{const f=t.substring(0,n);r=T3(f).resolvedOptions(),i=f}const{numberingSystem:s,calendar:u}=r;return[i,s,u]}}function XZ(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function QZ(t){const e=[];for(let n=1;n<=12;n++){const r=Ve.utc(2009,n,1);e.push(t(r))}return e}function JZ(t){const e=[];for(let n=1;n<=7;n++){const r=Ve.utc(2016,11,13+n);e.push(t(r))}return e}function gh(t,e,n,r){const i=t.listingMode();return i==="error"?null:i==="en"?n(e):r(e)}function eY(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class tY{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:s,...u}=r;if(!n||Object.keys(u).length>0){const c={useGrouping:!1,...r};r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=GZ(e,c)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):a5(e,3);return pn(n,this.padTo)}}}class nY{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),c=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&_a.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=T3(n,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class rY{constructor(e,n,r){this.opts={style:"long",...r},!n&&$O()&&(this.rtf=WZ(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):uK(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const iY={firstDay:1,minimalDays:4,weekend:[6,7]};class $t{static fromOpts(e){return $t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,i,s=!1){const u=e||tn.defaultLocale,c=u||(s?"en-US":ZZ()),f=n||tn.defaultNumberingSystem,h=r||tn.defaultOutputCalendar,p=O3(i)||tn.defaultWeekSettings;return new $t(c,f,h,p,u)}static resetCache(){Bc=null,_3={},w3={},A3={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return $t.create(e,n,r,i)}constructor(e,n,r,i,s){const[u,c,f]=KZ(e);this.locale=u,this.numberingSystem=n||c||null,this.outputCalendar=r||f||null,this.weekSettings=i,this.intl=XZ(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=eY(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:$t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,O3(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return gh(this,e,MO,()=>{const r=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=QZ(s=>this.extract(s,r,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1){return gh(this,e,kO,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=JZ(s=>this.extract(s,r,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return gh(this,void 0,()=>PO,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ve.utc(2016,11,13,9),Ve.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return gh(this,e,jO,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ve.utc(-40,1,1),Ve.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const i=this.dtFormatter(e,n),s=i.formatToParts(),u=s.find(c=>c.type.toLowerCase()===r);return u?u.value:null}numberFormatter(e={}){return new tY(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new nY(e,this.intl,n)}relFormatter(e={}){return new rY(this.intl,this.isEnglish(),e)}listFormatter(e={}){return qZ(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:EO()?YZ(this.locale):iY}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let rv=null;class sr extends kd{static get utcInstance(){return rv===null&&(rv=new sr(0)),rv}static instance(e){return e===0?sr.utcInstance:new sr(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new sr(V1(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Qc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Qc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Qc(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class aY extends kd{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function vo(t,e){if(Ge(t)||t===null)return e;if(t instanceof kd)return t;if(dY(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?B1.instance:n==="utc"||n==="gmt"?sr.utcInstance:sr.parseSpecifier(n)||_a.create(t)}else return Co(t)?sr.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new aY(t)}const t5={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Y8={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},oY=t5.hanidec.replace(/[\[|\]]/g,"").split("");function sY(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=s&&r<=u&&(e+=r-s)}}return parseInt(e,10)}else return e}let kl={};function lY(){kl={}}function Si({numberingSystem:t},e=""){const n=t||"latn";return kl[n]||(kl[n]={}),kl[n][e]||(kl[n][e]=new RegExp(`${t5[n]}${e}`)),kl[n][e]}let K8=()=>Date.now(),X8="system",Q8=null,J8=null,eE=null,tE=60,nE,rE=null;class tn{static get now(){return K8}static set now(e){K8=e}static set defaultZone(e){X8=e}static get defaultZone(){return vo(X8,B1.instance)}static get defaultLocale(){return Q8}static set defaultLocale(e){Q8=e}static get defaultNumberingSystem(){return J8}static set defaultNumberingSystem(e){J8=e}static get defaultOutputCalendar(){return eE}static set defaultOutputCalendar(e){eE=e}static get defaultWeekSettings(){return rE}static set defaultWeekSettings(e){rE=O3(e)}static get twoDigitCutoffYear(){return tE}static set twoDigitCutoffYear(e){tE=e%100}static get throwOnInvalid(){return nE}static set throwOnInvalid(e){nE=e}static resetCaches(){$t.resetCache(),_a.resetCache(),Ve.resetCache(),lY()}}class Ri{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const mO=[0,31,59,90,120,151,181,212,243,273,304,334],vO=[0,31,60,91,121,152,182,213,244,274,305,335];function ci(t,e){return new Ri("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function n5(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function yO(t,e,n){return n+(Pd(t)?vO:mO)[e-1]}function bO(t,e){const n=Pd(t)?vO:mO,r=n.findIndex(s=>sbd(r,e,n)?(h=r+1,f=1):h=r,{weekYear:h,weekNumber:f,weekday:c,...q1(t)}}function iE(t,e=4,n=1){const{weekYear:r,weekNumber:i,weekday:s}=t,u=r5(n5(r,1,e),n),c=Gl(r);let f=i*7+s-u-7+e,h;f<1?(h=r-1,f+=Gl(h)):f>c?(h=r+1,f-=Gl(r)):h=r;const{month:p,day:v}=bO(h,f);return{year:h,month:p,day:v,...q1(t)}}function iv(t){const{year:e,month:n,day:r}=t,i=yO(e,n,r);return{year:e,ordinal:i,...q1(t)}}function aE(t){const{year:e,ordinal:n}=t,{month:r,day:i}=bO(e,n);return{year:e,month:r,day:i,...q1(t)}}function oE(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Fl("Cannot mix locale-based week fields with ISO-based week fields");return Ge(t.localWeekday)||(t.weekday=t.localWeekday),Ge(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ge(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function uY(t,e=4,n=1){const r=U1(t.weekYear),i=di(t.weekNumber,1,bd(t.weekYear,e,n)),s=di(t.weekday,1,7);return r?i?s?!1:ci("weekday",t.weekday):ci("week",t.weekNumber):ci("weekYear",t.weekYear)}function cY(t){const e=U1(t.year),n=di(t.ordinal,1,Gl(t.year));return e?n?!1:ci("ordinal",t.ordinal):ci("year",t.year)}function SO(t){const e=U1(t.year),n=di(t.month,1,12),r=di(t.day,1,O0(t.year,t.month));return e?n?r?!1:ci("day",t.day):ci("month",t.month):ci("year",t.year)}function xO(t){const{hour:e,minute:n,second:r,millisecond:i}=t,s=di(e,0,23)||e===24&&n===0&&r===0&&i===0,u=di(n,0,59),c=di(r,0,59),f=di(i,0,999);return s?u?c?f?!1:ci("millisecond",i):ci("second",r):ci("minute",n):ci("hour",e)}function Ge(t){return typeof t>"u"}function Co(t){return typeof t=="number"}function U1(t){return typeof t=="number"&&t%1===0}function dY(t){return typeof t=="string"}function fY(t){return Object.prototype.toString.call(t)==="[object Date]"}function $O(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function EO(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function hY(t){return Array.isArray(t)?t:[t]}function sE(t,e,n){if(t.length!==0)return t.reduce((r,i)=>{const s=[e(i),i];return r&&n(r[0],s[0])===r[0]?r:s},null)[1]}function gY(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function ru(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function O3(t){if(t==null)return null;if(typeof t!="object")throw new Kn("Week settings must be an object");if(!di(t.firstDay,1,7)||!di(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!di(e,1,7)))throw new Kn("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function di(t,e,n){return U1(t)&&t>=e&&t<=n}function pY(t,e){return t-e*Math.floor(t/e)}function pn(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function go(t){if(!(Ge(t)||t===null||t===""))return parseInt(t,10)}function rs(t){if(!(Ge(t)||t===null||t===""))return parseFloat(t)}function i5(t){if(!(Ge(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function a5(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Pd(t){return t%4===0&&(t%100!==0||t%400===0)}function Gl(t){return Pd(t)?366:365}function O0(t,e){const n=pY(e-1,12)+1,r=t+(e-n)/12;return n===2?Pd(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function z1(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function lE(t,e,n){return-r5(n5(t,1,e),n)+e-1}function bd(t,e=4,n=1){const r=lE(t,e,n),i=lE(t+1,e,n);return(Gl(t)-r+i)/7}function R3(t){return t>99?t:t>tn.twoDigitCutoffYear?1900+t:2e3+t}function CO(t,e,n,r=null){const i=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(s.timeZone=r);const u={timeZoneName:e,...s},c=new Intl.DateTimeFormat(n,u).formatToParts(i).find(f=>f.type.toLowerCase()==="timezonename");return c?c.value:null}function V1(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function _O(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Kn(`Invalid unit value ${t}`);return e}function R0(t,e){const n={};for(const r in t)if(ru(t,r)){const i=t[r];if(i==null)continue;n[e(r)]=_O(i)}return n}function Qc(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${pn(n,2)}:${pn(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${pn(n,2)}${pn(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function q1(t){return gY(t,["hour","minute","second","millisecond"])}const TO=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function du(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function fu(...t){return e=>t.reduce(([n,r,i],s)=>{const[u,c,f]=s(e,i);return[{...n,...u},c||r,f]},[{},null,1]).slice(0,2)}function hu(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const i=n.exec(t);if(i)return r(i)}return[null,null]}function wO(...t){return(e,n)=>{const r={};let i;for(i=0;ib!==void 0&&($||b&&p)?-b:b;return[{years:y(rs(n)),months:y(rs(r)),weeks:y(rs(i)),days:y(rs(s)),hours:y(rs(u)),minutes:y(rs(c)),seconds:y(rs(f),f==="-0"),milliseconds:y(i5(h),v)}]}const AY={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function l5(t,e,n,r,i,s,u){const c={year:e.length===2?R3(go(e)):go(e),month:DO.indexOf(n)+1,day:go(r),hour:go(i),minute:go(s)};return u&&(c.second=go(u)),t&&(c.weekday=t.length>3?IO.indexOf(t)+1:LO.indexOf(t)+1),c}const OY=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function RY(t){const[,e,n,r,i,s,u,c,f,h,p,v]=t,y=l5(e,i,r,n,s,u,c);let b;return f?b=AY[f]:h?b=0:b=V1(p,v),[y,new sr(b)]}function NY(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const DY=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,MY=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,IY=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function uE(t){const[,e,n,r,i,s,u,c]=t;return[l5(e,i,r,n,s,u,c),sr.utcInstance]}function LY(t){const[,e,n,r,i,s,u,c]=t;return[l5(e,c,n,r,i,s,u),sr.utcInstance]}const kY=du(vY,s5),PY=du(yY,s5),jY=du(bY,s5),FY=du(OO),NO=fu(CY,gu,jd,Fd),HY=fu(SY,gu,jd,Fd),BY=fu(xY,gu,jd,Fd),UY=fu(gu,jd,Fd);function zY(t){return hu(t,[kY,NO],[PY,HY],[jY,BY],[FY,UY])}function VY(t){return hu(NY(t),[OY,RY])}function qY(t){return hu(t,[DY,uE],[MY,uE],[IY,LY])}function GY(t){return hu(t,[TY,wY])}const WY=fu(gu);function ZY(t){return hu(t,[_Y,WY])}const YY=du($Y,EY),KY=du(RO),XY=fu(gu,jd,Fd);function QY(t){return hu(t,[YY,NO],[KY,XY])}const JY=["January","February","March","April","May","June","July","August","September","October","November","December"],DO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eK=["J","F","M","A","M","J","J","A","S","O","N","D"];function MO(t){switch(t){case"narrow":return[...eK];case"short":return[...DO];case"long":return[...JY];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const IO=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],LO=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],tK=["M","T","W","T","F","S","S"];function kO(t){switch(t){case"narrow":return[...tK];case"short":return[...LO];case"long":return[...IO];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const PO=["AM","PM"],nK=["Before Christ","Anno Domini"],rK=["BC","AD"],iK=["B","A"];function jO(t){switch(t){case"narrow":return[...iK];case"short":return[...rK];case"long":return[...nK];default:return null}}function aK(t){return PO[t.hour<12?0:1]}function oK(t,e){return kO(e)[t.weekday-1]}function sK(t,e){return MO(e)[t.month-1]}function lK(t,e){return jO(e)[t.year<0?0:1]}function uK(t,e,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&s){const v=t==="days";switch(e){case 1:return v?"tomorrow":`next ${i[t][0]}`;case-1:return v?"yesterday":`last ${i[t][0]}`;case 0:return v?"today":`this ${i[t][0]}`}}const u=Object.is(e,-0)||e<0,c=Math.abs(e),f=c===1,h=i[t],p=r?f?h[1]:h[2]||h[1]:f?i[t][0]:t;return u?`${c} ${p} ago`:`in ${c} ${p}`}const Te="numeric",Di="short",Hr="long",N0={year:Te,month:Te,day:Te},FO={year:Te,month:Di,day:Te},cK={year:Te,month:Di,day:Te,weekday:Di},HO={year:Te,month:Hr,day:Te},BO={year:Te,month:Hr,day:Te,weekday:Hr},UO={hour:Te,minute:Te},zO={hour:Te,minute:Te,second:Te},VO={hour:Te,minute:Te,second:Te,timeZoneName:Di},qO={hour:Te,minute:Te,second:Te,timeZoneName:Hr},GO={hour:Te,minute:Te,hourCycle:"h23"},WO={hour:Te,minute:Te,second:Te,hourCycle:"h23"},ZO={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:Di},YO={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:Hr},KO={year:Te,month:Te,day:Te,hour:Te,minute:Te},XO={year:Te,month:Te,day:Te,hour:Te,minute:Te,second:Te},QO={year:Te,month:Di,day:Te,hour:Te,minute:Te},JO={year:Te,month:Di,day:Te,hour:Te,minute:Te,second:Te},dK={year:Te,month:Di,day:Te,weekday:Di,hour:Te,minute:Te},eR={year:Te,month:Hr,day:Te,hour:Te,minute:Te,timeZoneName:Di},tR={year:Te,month:Hr,day:Te,hour:Te,minute:Te,second:Te,timeZoneName:Di},nR={year:Te,month:Hr,day:Te,weekday:Hr,hour:Te,minute:Te,timeZoneName:Hr},rR={year:Te,month:Hr,day:Te,weekday:Hr,hour:Te,minute:Te,second:Te,timeZoneName:Hr};function cE(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const fK={D:N0,DD:FO,DDD:HO,DDDD:BO,t:UO,tt:zO,ttt:VO,tttt:qO,T:GO,TT:WO,TTT:ZO,TTTT:YO,f:KO,ff:QO,fff:eR,ffff:nR,F:XO,FF:JO,FFF:tR,FFFF:rR};class Xn{static create(e,n={}){return new Xn(e,n)}static parseFormat(e){let n=null,r="",i=!1;const s=[];for(let u=0;u0&&s.push({literal:i||/^\s+$/.test(r),val:r}),n=null,r="",i=!i):i||c===n?r+=c:(r.length>0&&s.push({literal:/^\s+$/.test(r),val:r}),r=c,n=c)}return r.length>0&&s.push({literal:i||/^\s+$/.test(r),val:r}),s}static macroTokenToFormatOpts(e){return fK[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return pn(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(b,$)=>this.loc.extract(e,b,$),u=b=>e.isOffsetFixed&&e.offset===0&&b.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,b.format):"",c=()=>r?aK(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),f=(b,$)=>r?sK(e,b):s($?{month:b}:{month:b,day:"numeric"},"month"),h=(b,$)=>r?oK(e,b):s($?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),p=b=>{const $=Xn.macroTokenToFormatOpts(b);return $?this.formatWithSystemDefault(e,$):b},v=b=>r?lK(e,b):s({era:b},"era"),y=b=>{switch(b){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?s({day:"numeric"},"day"):this.num(e.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return f("short",!0);case"LLLL":return f("long",!0);case"LLLLL":return f("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(e.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return f("short",!1);case"MMMM":return f("long",!1);case"MMMMM":return f("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(e.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return v("short");case"GG":return v("long");case"GGGGG":return v("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return p(b)}};return cE(Xn.parseFormat(n),y)}formatDurationFromString(e,n){const r=f=>{switch(f[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=f=>h=>{const p=r(h);return p?this.num(f.get(p),h.length):h},s=Xn.parseFormat(n),u=s.reduce((f,{literal:h,val:p})=>h?f:f.concat(p),[]),c=e.shiftTo(...u.map(r).filter(f=>f));return cE(s,i(c))}}const dE="Invalid Duration",iR={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},hK={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...iR},ri=146097/400,Ol=146097/4800,gK={years:{quarters:4,months:12,weeks:ri/7,days:ri,hours:ri*24,minutes:ri*24*60,seconds:ri*24*60*60,milliseconds:ri*24*60*60*1e3},quarters:{months:3,weeks:ri/28,days:ri/4,hours:ri*24/4,minutes:ri*24*60/4,seconds:ri*24*60*60/4,milliseconds:ri*24*60*60*1e3/4},months:{weeks:Ol/7,days:Ol,hours:Ol*24,minutes:Ol*24*60,seconds:Ol*24*60*60,milliseconds:Ol*24*60*60*1e3},...iR},bs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],pK=bs.slice(0).reverse();function so(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new mt(r)}function aR(t,e){let n=e.milliseconds??0;for(const r of pK.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function fE(t,e){const n=aR(t,e)<0?-1:1;bs.reduceRight((r,i)=>{if(Ge(e[i]))return r;if(r){const s=e[r]*n,u=t[i][r],c=Math.floor(s/u);e[i]+=c*n,e[r]-=c*u*n}return i},null),bs.reduce((r,i)=>{if(Ge(e[i]))return r;if(r){const s=e[r]%1;e[r]-=s,e[i]+=s*t[r][i]}return i},null)}function mK(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class mt{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?gK:hK;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||$t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return mt.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Kn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new mt({values:R0(e,mt.normalizeUnit),loc:$t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Co(e))return mt.fromMillis(e);if(mt.isDuration(e))return e;if(typeof e=="object")return mt.fromObject(e);throw new Kn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=GY(e);return r?mt.fromObject(r,n):mt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=ZY(e);return r?mt.fromObject(r,n):mt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Kn("need to specify a reason the Duration is invalid");const r=e instanceof Ri?e:new Ri(e,n);if(tn.throwOnInvalid)throw new HZ(r);return new mt({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new pO(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Xn.create(this.loc,r).formatDurationFromString(this,e):dE}toHuman(e={}){if(!this.isValid)return dE;const n=bs.map(r=>{const i=this.values[r];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=a5(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ve.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?aR(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=mt.fromDurationLike(e),r={};for(const i of bs)(ru(n.values,i)||ru(this.values,i))&&(r[i]=n.get(i)+this.get(i));return so(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=mt.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=_O(e(this.values[r],r));return so(this,{values:n},!0)}get(e){return this[mt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...R0(e,mt.normalizeUnit)};return so(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:i,conversionAccuracy:r};return so(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return fE(this.matrix,e),so(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=mK(this.normalize().shiftToAll().toObject());return so(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>mt.normalizeUnit(u));const n={},r={},i=this.toObject();let s;for(const u of bs)if(e.indexOf(u)>=0){s=u;let c=0;for(const h in r)c+=this.matrix[h][u]*r[h],r[h]=0;Co(i[u])&&(c+=i[u]);const f=Math.trunc(c);n[u]=f,r[u]=(c*1e3-f*1e3)/1e3}else Co(i[u])&&(r[u]=i[u]);for(const u in r)r[u]!==0&&(n[s]+=u===s?r[u]:r[u]/this.matrix[s][u]);return fE(this.matrix,n),so(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return so(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of bs)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Rl="Invalid Interval";function vK(t,e){return!t||!t.isValid?Jt.invalid("missing or invalid start"):!e||!e.isValid?Jt.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Jt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(yc).filter(u=>this.contains(u)).sort((u,c)=>u.toMillis()-c.toMillis()),r=[];let{s:i}=this,s=0;for(;i+this.e?this.e:u;r.push(Jt.fromDateTimes(i,c)),i=c,s+=1}return r}splitBy(e){const n=mt.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,s;const u=[];for(;rf*i));s=+c>+this.e?this.e:c,u.push(Jt.fromDateTimes(r,s)),r=s,i+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e=r?null:Jt.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.se.e?this.e:e.e;return Jt.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((i,s)=>i.s-s.s).reduce(([i,s],u)=>s?s.overlaps(u)||s.abutsStart(u)?[i,s.union(u)]:[i.concat([s]),u]:[i,u],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const i=[],s=e.map(f=>[{time:f.s,type:"s"},{time:f.e,type:"e"}]),u=Array.prototype.concat(...s),c=u.sort((f,h)=>f.time-h.time);for(const f of c)r+=f.type==="s"?1:-1,r===1?n=f.time:(n&&+n!=+f.time&&i.push(Jt.fromDateTimes(n,f.time)),n=null);return Jt.merge(i)}difference(...e){return Jt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Rl}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=N0,n={}){return this.isValid?Xn.create(this.s.loc.clone(n),e).formatInterval(this):Rl}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Rl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Rl}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Rl}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Rl}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):mt.invalid(this.invalidReason)}mapEndpoints(e){return Jt.fromDateTimes(e(this.s),e(this.e))}}class ph{static hasDST(e=tn.defaultZone){const n=Ve.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return _a.isValidZone(e)}static normalizeZone(e){return vo(e,tn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||$t.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||$t.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||$t.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||$t.create(n,r,s)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||$t.create(n,r,s)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return $t.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return $t.create(n,null,"gregory").eras(e)}static features(){return{relative:$O(),localeWeek:EO()}}}function hE(t,e){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(mt.fromMillis(r).as("days"))}function yK(t,e,n){const r=[["years",(f,h)=>h.year-f.year],["quarters",(f,h)=>h.quarter-f.quarter+(h.year-f.year)*4],["months",(f,h)=>h.month-f.month+(h.year-f.year)*12],["weeks",(f,h)=>{const p=hE(f,h);return(p-p%7)/7}],["days",hE]],i={},s=t;let u,c;for(const[f,h]of r)n.indexOf(f)>=0&&(u=f,i[f]=h(t,e),c=s.plus(i),c>e?(i[f]--,t=s.plus(i),t>e&&(c=t,i[f]--,t=s.plus(i))):t=c);return[t,i,c,u]}function bK(t,e,n,r){let[i,s,u,c]=yK(t,e,n);const f=e-i,h=n.filter(v=>["hours","minutes","seconds","milliseconds"].indexOf(v)>=0);h.length===0&&(u0?mt.fromMillis(f,r).shiftTo(...h).plus(p):p}const SK="missing Intl.DateTimeFormat.formatToParts support";function bt(t,e=n=>n){return{regex:t,deser:([n])=>e(sY(n))}}const xK=" ",oR=`[ ${xK}]`,sR=new RegExp(oR,"g");function $K(t){return t.replace(/\./g,"\\.?").replace(sR,oR)}function gE(t){return t.replace(/\./g,"").replace(sR," ").toLowerCase()}function xi(t,e){return t===null?null:{regex:RegExp(t.map($K).join("|")),deser:([n])=>t.findIndex(r=>gE(n)===gE(r))+e}}function pE(t,e){return{regex:t,deser:([,n,r])=>V1(n,r),groups:e}}function mh(t){return{regex:t,deser:([e])=>e}}function EK(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function CK(t,e){const n=Si(e),r=Si(e,"{2}"),i=Si(e,"{3}"),s=Si(e,"{4}"),u=Si(e,"{6}"),c=Si(e,"{1,2}"),f=Si(e,"{1,3}"),h=Si(e,"{1,6}"),p=Si(e,"{1,9}"),v=Si(e,"{2,4}"),y=Si(e,"{4,6}"),b=A=>({regex:RegExp(EK(A.val)),deser:([T])=>T,literal:!0}),E=(A=>{if(t.literal)return b(A);switch(A.val){case"G":return xi(e.eras("short"),0);case"GG":return xi(e.eras("long"),0);case"y":return bt(h);case"yy":return bt(v,R3);case"yyyy":return bt(s);case"yyyyy":return bt(y);case"yyyyyy":return bt(u);case"M":return bt(c);case"MM":return bt(r);case"MMM":return xi(e.months("short",!0),1);case"MMMM":return xi(e.months("long",!0),1);case"L":return bt(c);case"LL":return bt(r);case"LLL":return xi(e.months("short",!1),1);case"LLLL":return xi(e.months("long",!1),1);case"d":return bt(c);case"dd":return bt(r);case"o":return bt(f);case"ooo":return bt(i);case"HH":return bt(r);case"H":return bt(c);case"hh":return bt(r);case"h":return bt(c);case"mm":return bt(r);case"m":return bt(c);case"q":return bt(c);case"qq":return bt(r);case"s":return bt(c);case"ss":return bt(r);case"S":return bt(f);case"SSS":return bt(i);case"u":return mh(p);case"uu":return mh(c);case"uuu":return bt(n);case"a":return xi(e.meridiems(),0);case"kkkk":return bt(s);case"kk":return bt(v,R3);case"W":return bt(c);case"WW":return bt(r);case"E":case"c":return bt(n);case"EEE":return xi(e.weekdays("short",!1),1);case"EEEE":return xi(e.weekdays("long",!1),1);case"ccc":return xi(e.weekdays("short",!0),1);case"cccc":return xi(e.weekdays("long",!0),1);case"Z":case"ZZ":return pE(new RegExp(`([+-]${c.source})(?::(${r.source}))?`),2);case"ZZZ":return pE(new RegExp(`([+-]${c.source})(${r.source})?`),2);case"z":return mh(/[a-z_+-/]{1,256}?/i);case" ":return mh(/[^\S\n\r]/);default:return b(A)}})(t)||{invalidReason:SK};return E.token=t,E}const _K={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function TK(t,e,n){const{type:r,value:i}=t;if(r==="literal"){const f=/^\s+$/.test(i);return{literal:!f,val:f?" ":i}}const s=e[r];let u=r;r==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=n.hour12?"hour12":"hour24");let c=_K[u];if(typeof c=="object"&&(c=c[s]),c)return{literal:!1,val:c}}function wK(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function AK(t,e,n){const r=t.match(e);if(r){const i={};let s=1;for(const u in n)if(ru(n,u)){const c=n[u],f=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(r.slice(s,s+f))),s+=f}return[r,i]}else return[r,{}]}function OK(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Ge(t.z)||(n=_a.create(t.z)),Ge(t.Z)||(n||(n=new sr(t.Z)),r=t.Z),Ge(t.q)||(t.M=(t.q-1)*3+1),Ge(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ge(t.u)||(t.S=i5(t.u)),[Object.keys(t).reduce((s,u)=>{const c=e(u);return c&&(s[c]=t[u]),s},{}),n,r]}let av=null;function RK(){return av||(av=Ve.fromMillis(1555555555555)),av}function NK(t,e){if(t.literal)return t;const n=Xn.macroTokenToFormatOpts(t.val),r=dR(n,e);return r==null||r.includes(void 0)?t:r}function lR(t,e){return Array.prototype.concat(...t.map(n=>NK(n,e)))}class uR{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=lR(Xn.parseFormat(n),e),this.units=this.tokens.map(r=>CK(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=wK(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){const[n,r]=AK(e,this.regex,this.handlers),[i,s,u]=r?OK(r):[null,null,void 0];if(ru(r,"a")&&ru(r,"H"))throw new Fl("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:s,specificOffset:u}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function cR(t,e,n){return new uR(t,n).explainFromTokens(e)}function DK(t,e,n){const{result:r,zone:i,specificOffset:s,invalidReason:u}=cR(t,e,n);return[r,i,s,u]}function dR(t,e){if(!t)return null;const r=Xn.create(e,t).dtFormatter(RK()),i=r.formatToParts(),s=r.resolvedOptions();return i.map(u=>TK(u,t,s))}const ov="Invalid DateTime",MK=864e13;function Uc(t){return new Ri("unsupported zone",`the zone "${t.name}" is not supported`)}function sv(t){return t.weekData===null&&(t.weekData=A0(t.c)),t.weekData}function lv(t){return t.localWeekData===null&&(t.localWeekData=A0(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function is(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ve({...n,...e,old:n})}function fR(t,e,n){let r=t-e*60*1e3;const i=n.offset(r);if(e===i)return[r,e];r-=(i-e)*60*1e3;const s=n.offset(r);return i===s?[r,i]:[t-Math.min(i,s)*60*1e3,Math.max(i,s)]}function vh(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function qh(t,e,n){return fR(z1(t),e,n)}function mE(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...t.c,year:r,month:i,day:Math.min(t.c.day,O0(r,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=mt.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=z1(s);let[f,h]=fR(c,n,t.zone);return u!==0&&(f+=u,h=t.zone.offset(f)),{ts:f,o:h}}function Nl(t,e,n,r,i,s){const{setZone:u,zone:c}=n;if(t&&Object.keys(t).length!==0||e){const f=e||c,h=Ve.fromObject(t,{...n,zone:f,specificOffset:s});return u?h:h.setZone(c)}else return Ve.invalid(new Ri("unparsable",`the input "${i}" can't be parsed as ${r}`))}function yh(t,e,n=!0){return t.isValid?Xn.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function uv(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=pn(t.c.year,n?6:4),e?(r+="-",r+=pn(t.c.month),r+="-",r+=pn(t.c.day)):(r+=pn(t.c.month),r+=pn(t.c.day)),r}function vE(t,e,n,r,i,s){let u=pn(t.c.hour);return e?(u+=":",u+=pn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(u+=":")):u+=pn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(u+=pn(t.c.second),(t.c.millisecond!==0||!r)&&(u+=".",u+=pn(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!s?u+="Z":t.o<0?(u+="-",u+=pn(Math.trunc(-t.o/60)),u+=":",u+=pn(Math.trunc(-t.o%60))):(u+="+",u+=pn(Math.trunc(t.o/60)),u+=":",u+=pn(Math.trunc(t.o%60)))),s&&(u+="["+t.zone.ianaName+"]"),u}const hR={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},IK={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},LK={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gR=["year","month","day","hour","minute","second","millisecond"],kK=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],PK=["year","ordinal","hour","minute","second","millisecond"];function jK(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new pO(t);return e}function yE(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return jK(t)}}function FK(t){return Wh[t]||(Gh===void 0&&(Gh=tn.now()),Wh[t]=t.offset(Gh)),Wh[t]}function bE(t,e){const n=vo(e.zone,tn.defaultZone);if(!n.isValid)return Ve.invalid(Uc(n));const r=$t.fromObject(e);let i,s;if(Ge(t.year))i=tn.now();else{for(const f of gR)Ge(t[f])&&(t[f]=hR[f]);const u=SO(t)||xO(t);if(u)return Ve.invalid(u);const c=FK(n);[i,s]=qh(t,c,n)}return new Ve({ts:i,zone:n,loc:r,o:s})}function SE(t,e,n){const r=Ge(n.round)?!0:n.round,i=(u,c)=>(u=a5(u,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(u,c)),s=u=>n.calendary?e.hasSame(t,u)?0:e.startOf(u).diff(t.startOf(u),u).get(u):e.diff(t,u).get(u);if(n.unit)return i(s(n.unit),n.unit);for(const u of n.units){const c=s(u);if(Math.abs(c)>=1)return i(c,u)}return i(t>e?-0:0,n.units[n.units.length-1])}function xE(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Gh,Wh={};class Ve{constructor(e){const n=e.zone||tn.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Ri("invalid input"):null)||(n.isValid?null:Uc(n));this.ts=Ge(e.ts)?tn.now():e.ts;let i=null,s=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[i,s]=[e.old.c,e.old.o];else{const c=Co(e.o)&&!e.old?e.o:n.offset(this.ts);i=vh(this.ts,c),r=Number.isNaN(i.year)?new Ri("invalid input"):null,i=r?null:i,s=r?null:c}this._zone=n,this.loc=e.loc||$t.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new Ve({})}static local(){const[e,n]=xE(arguments),[r,i,s,u,c,f,h]=n;return bE({year:r,month:i,day:s,hour:u,minute:c,second:f,millisecond:h},e)}static utc(){const[e,n]=xE(arguments),[r,i,s,u,c,f,h]=n;return e.zone=sr.utcInstance,bE({year:r,month:i,day:s,hour:u,minute:c,second:f,millisecond:h},e)}static fromJSDate(e,n={}){const r=fY(e)?e.valueOf():NaN;if(Number.isNaN(r))return Ve.invalid("invalid input");const i=vo(n.zone,tn.defaultZone);return i.isValid?new Ve({ts:r,zone:i,loc:$t.fromObject(n)}):Ve.invalid(Uc(i))}static fromMillis(e,n={}){if(Co(e))return e<-864e13||e>MK?Ve.invalid("Timestamp out of range"):new Ve({ts:e,zone:vo(n.zone,tn.defaultZone),loc:$t.fromObject(n)});throw new Kn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Co(e))return new Ve({ts:e*1e3,zone:vo(n.zone,tn.defaultZone),loc:$t.fromObject(n)});throw new Kn("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=vo(n.zone,tn.defaultZone);if(!r.isValid)return Ve.invalid(Uc(r));const i=$t.fromObject(n),s=R0(e,yE),{minDaysInFirstWeek:u,startOfWeek:c}=oE(s,i),f=tn.now(),h=Ge(n.specificOffset)?r.offset(f):n.specificOffset,p=!Ge(s.ordinal),v=!Ge(s.year),y=!Ge(s.month)||!Ge(s.day),b=v||y,$=s.weekYear||s.weekNumber;if((b||p)&&$)throw new Fl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&p)throw new Fl("Can't mix ordinal dates with month/day");const E=$||s.weekday&&!b;let A,T,R=vh(f,h);E?(A=kK,T=IK,R=A0(R,u,c)):p?(A=PK,T=LK,R=iv(R)):(A=gR,T=hR);let D=!1;for(const te of A){const W=s[te];Ge(W)?D?s[te]=T[te]:s[te]=R[te]:D=!0}const M=E?uY(s,u,c):p?cY(s):SO(s),O=M||xO(s);if(O)return Ve.invalid(O);const L=E?iE(s,u,c):p?aE(s):s,[z,V]=qh(L,h,r),Y=new Ve({ts:z,zone:r,o:V,loc:i});return s.weekday&&b&&e.weekday!==Y.weekday?Ve.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${Y.toISO()}`):Y.isValid?Y:Ve.invalid(Y.invalid)}static fromISO(e,n={}){const[r,i]=zY(e);return Nl(r,i,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,i]=VY(e);return Nl(r,i,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,i]=qY(e);return Nl(r,i,n,"HTTP",n)}static fromFormat(e,n,r={}){if(Ge(e)||Ge(n))throw new Kn("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=r,u=$t.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[c,f,h,p]=DK(u,e,n);return p?Ve.invalid(p):Nl(c,f,r,`format ${n}`,e,h)}static fromString(e,n,r={}){return Ve.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,i]=QY(e);return Nl(r,i,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Kn("need to specify a reason the DateTime is invalid");const r=e instanceof Ri?e:new Ri(e,n);if(tn.throwOnInvalid)throw new jZ(r);return new Ve({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=dR(e,$t.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(e,n={}){return lR(Xn.parseFormat(e),$t.fromObject(n)).map(i=>i.val).join("")}static resetCache(){Gh=void 0,Wh={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?sv(this).weekYear:NaN}get weekNumber(){return this.isValid?sv(this).weekNumber:NaN}get weekday(){return this.isValid?sv(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?lv(this).weekday:NaN}get localWeekNumber(){return this.isValid?lv(this).weekNumber:NaN}get localWeekYear(){return this.isValid?lv(this).weekYear:NaN}get ordinal(){return this.isValid?iv(this.c).ordinal:NaN}get monthShort(){return this.isValid?ph.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ph.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ph.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ph.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=z1(this.c),i=this.zone.offset(r-e),s=this.zone.offset(r+e),u=this.zone.offset(r-i*n),c=this.zone.offset(r-s*n);if(u===c)return[this];const f=r-u*n,h=r-c*n,p=vh(f,u),v=vh(h,c);return p.hour===v.hour&&p.minute===v.minute&&p.second===v.second&&p.millisecond===v.millisecond?[is(this,{ts:f}),is(this,{ts:h})]:[this]}get isInLeapYear(){return Pd(this.year)}get daysInMonth(){return O0(this.year,this.month)}get daysInYear(){return this.isValid?Gl(this.year):NaN}get weeksInWeekYear(){return this.isValid?bd(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?bd(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:i}=Xn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(e=0,n={}){return this.setZone(sr.instance(e),n)}toLocal(){return this.setZone(tn.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=vo(e,tn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(n||r){const s=e.offset(this.ts),u=this.toObject();[i]=qh(u,s,e)}return is(this,{ts:i,zone:e})}else return Ve.invalid(Uc(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return is(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=R0(e,yE),{minDaysInFirstWeek:r,startOfWeek:i}=oE(n,this.loc),s=!Ge(n.weekYear)||!Ge(n.weekNumber)||!Ge(n.weekday),u=!Ge(n.ordinal),c=!Ge(n.year),f=!Ge(n.month)||!Ge(n.day),h=c||f,p=n.weekYear||n.weekNumber;if((h||u)&&p)throw new Fl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Fl("Can't mix ordinal dates with month/day");let v;s?v=iE({...A0(this.c,r,i),...n},r,i):Ge(n.ordinal)?(v={...this.toObject(),...n},Ge(n.day)&&(v.day=Math.min(O0(v.year,v.month),v.day))):v=aE({...iv(this.c),...n});const[y,b]=qh(v,this.o,this.zone);return is(this,{ts:y,o:b})}plus(e){if(!this.isValid)return this;const n=mt.fromDurationLike(e);return is(this,mE(this,n))}minus(e){if(!this.isValid)return this;const n=mt.fromDurationLike(e).negate();return is(this,mE(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=mt.normalizeUnit(e);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const s=this.loc.getStartOfWeek(),{weekday:u}=this;uthis.valueOf(),c=u?this:e,f=u?e:this,h=bK(c,f,s,i);return u?h.negate():h}diffNow(e="milliseconds",n={}){return this.diff(Ve.now(),e,n)}until(e){return this.isValid?Jt.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n,r)<=i&&i<=s.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Ve.fromObject({},{zone:this.zone}),r=e.padding?thisn.valueOf(),Math.min)}static max(...e){if(!e.every(Ve.isDateTime))throw new Kn("max requires all arguments be DateTimes");return sE(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:i=null,numberingSystem:s=null}=r,u=$t.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return cR(u,e,n)}static fromStringExplain(e,n,r={}){return Ve.fromFormatExplain(e,n,r)}static buildFormatParser(e,n={}){const{locale:r=null,numberingSystem:i=null}=n,s=$t.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new uR(s,e)}static fromFormatParser(e,n,r={}){if(Ge(e)||Ge(n))throw new Kn("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:s=null}=r,u=$t.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});if(!u.equals(n.locale))throw new Kn(`fromFormatParser called with a locale of ${u}, but the format parser was created for ${n.locale}`);const{result:c,zone:f,specificOffset:h,invalidReason:p}=n.explainFromTokens(e);return p?Ve.invalid(p):Nl(c,f,r,`format ${n.format}`,e,h)}static get DATE_SHORT(){return N0}static get DATE_MED(){return FO}static get DATE_MED_WITH_WEEKDAY(){return cK}static get DATE_FULL(){return HO}static get DATE_HUGE(){return BO}static get TIME_SIMPLE(){return UO}static get TIME_WITH_SECONDS(){return zO}static get TIME_WITH_SHORT_OFFSET(){return VO}static get TIME_WITH_LONG_OFFSET(){return qO}static get TIME_24_SIMPLE(){return GO}static get TIME_24_WITH_SECONDS(){return WO}static get TIME_24_WITH_SHORT_OFFSET(){return ZO}static get TIME_24_WITH_LONG_OFFSET(){return YO}static get DATETIME_SHORT(){return KO}static get DATETIME_SHORT_WITH_SECONDS(){return XO}static get DATETIME_MED(){return QO}static get DATETIME_MED_WITH_SECONDS(){return JO}static get DATETIME_MED_WITH_WEEKDAY(){return dK}static get DATETIME_FULL(){return eR}static get DATETIME_FULL_WITH_SECONDS(){return tR}static get DATETIME_HUGE(){return nR}static get DATETIME_HUGE_WITH_SECONDS(){return rR}}function yc(t){if(Ve.isDateTime(t))return t;if(t&&t.valueOf&&Co(t.valueOf()))return Ve.fromJSDate(t);if(t&&typeof t=="object")return Ve.fromObject(t);throw new Kn(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const HK=t=>t.type==="WEB_CHAT_SURVEY_RATING_QUESTION",BK=t=>t.type==="WEB_CHAT_SURVEY_RATING_RESPONSE",UK=t=>t.type==="WEB_CHAT_SURVEY_FEEDBACK_QUESTION",zK=t=>t.type==="WEB_CHAT_SURVEY_FEEDBACK_RESPONSE",VK=t=>HK(t)||BK(t),qK=t=>UK(t)||zK(t),N3=t=>qK(t)||VK(t),GK=t=>t.type==="WEB_CHAT_SURVEY_CSAT_QUESTION",D3=t=>t.type==="WEB_CHAT_SMART_RESPONSE_SELECT_QUESTION",WK=t=>({id:t.id,type:t.message?"OUTBOUND_MESSAGE":"INBOUND_MESSAGE",direction:t.message?ir.OUTBOUND:ir.INBOUND,conversationId:t.conversationId,createdAt:t.createdAt,body:t.message??t.option}),ZK=t=>{const e=t.findIndex(D3);if(e===-1)return t;const n=t[e],r=t.some(i=>xo(i)&&i.createdAt>n.createdAt);return t.map(i=>r&&D3(i)?{...i,disabled:!0}:i)},YK=t=>XK([s3,N3],KK(QK(t))),KK=t=>{if(!t)return[];const e=[],n=[...t].reverse();let r=0;for(;r{if(!e||e.length===0)return[];const n=[...e].reverse(),r=[];for(let i=0;if(s));if(!u){r.push(s);continue}const c=r.slice(0,r.length).findLastIndex(f=>u(f));c>=0&&!r[c].response?r[c]={...r[c],...s}:r.push(s)}return r.reverse()},QK=t=>{if(!t)return[];const e=[...t].reverse(),n=[];let r=0;for(;r{const i=new Date(t).getTime(),s=e>=i?Math.floor((e-i)/1e3):0,u=Math.floor(s/3600),c=Math.floor((s-u*3600)/60),f={timeStyle:"short",dateStyle:void 0};return u>=24&&(f.timeStyle=r?"short":void 0),u>=1?new Intl.DateTimeFormat(vn.language||"en-US",f).format(new Date(t)):c>1?n("{{minutes}} minutes ago",{minutes:String(c)}):n(c===1?"1 minute ago":"Just now")},pR=(t,e)=>{const n=new Intl.DateTimeFormat(vn.language||"en-US",{timeStyle:"short",dateStyle:"short"}).format(new Date(t)).split(",");return`${n[1]} ${n[0]}`},cX=({className:t,date:e,lastMessageReadAt:n,color:r,direction:i,showTime:s=!0,displayFullDate:u=!1})=>{const{t:c}=lt(),f=LA(),h=i===ir.OUTBOUND;return S.jsxs("span",{className:ke(t,cv.time,h&&cv.timeOutBound,n&&cv.withReadIndicator),children:[u&&S.jsxs(S.Fragment,{children:[S.jsx("span",{id:"time--full-date",children:Zh(e,f,c,s)}),S.jsx(Ql,{position:"left-center",triggerId:"time--full-date",children:pR(e)})]}),!u&&Zh(e,f,c,s),n&&S.jsxs(S.Fragment,{children:[S.jsx("span",{id:"time--last-message-read-at",style:{color:r||"var(--goto-icon-color-brand-default)",marginLeft:"var(--goto-spacing-01)"},children:S.jsx(E4,{})}),S.jsx(Ql,{triggerId:"time--last-message-read-at",position:"bottom-end",children:c("Read {{dateTime}}",{dateTime:Zh(n,f,c)})})]})]})},qr=({text:t,time:e,displayFullDate:n=!1})=>{const r=LA(),{t:i}=lt();return S.jsxs("span",{className:bh.content,children:[S.jsx("span",{className:bh.fullContent,children:t}),S.jsx("span",{className:ke(bh.time,bh.fullContent),children:n?pR(e):Zh(e,r,i)})]})},dX=({event:t,fullWidth:e,compact:n,displayFullDate:r})=>{const{t:i}=lt();return S.jsx("div",{role:"listitem",className:Ni(bc.content,{[bc.fullWidth]:e,[bc.compact]:n}),children:S.jsxs(mn,{icon:S.jsx(kw,{}),variant:"info",className:bc.alert,children:[S.jsx(qr,{text:S.jsxs(Ht,{color:"type-color-secondary",children:[i("Abandoned call"),t.callQueueName&&S.jsxs(Ht,{color:"type-color-secondary",tag:"span",children:[" - ",S.jsx(Ht,{color:"type-color-secondary",variant:"body-small-strong",tag:"span",children:t.callQueueName})]})]}),time:t.createdAt,displayFullDate:r}),S.jsx(Ht,{className:bc.message,children:t.message})]})})},fX="cc-common_AgentAfterHoursMessageEvent-module_content_AdVRtFQp",hX="cc-common_AgentAfterHoursMessageEvent-module_fullWidth_ty0bBbfV",gX="cc-common_AgentAfterHoursMessageEvent-module_compact_jn-o-0eT",pX="cc-common_AgentAfterHoursMessageEvent-module_alert_gshEIS-w",mX="cc-common_AgentAfterHoursMessageEvent-module_details_ObhfKKC1",Sc={content:fX,fullWidth:hX,compact:gX,alert:pX,details:mX},vX=({event:t,fullWidth:e,compact:n,participant:r,participantMetadataContactInformation:i})=>{const{t:s}=lt(),u=!(r!=null&&r.firstName)&&!(r!=null&&r.lastName)&&!i?s("After-hours message sent to user"):s("After-hours message sent to {{participant}}",{participant:Lr(r??i)});return S.jsx("div",{role:"listitem",className:ke(Sc.content,{[Sc.fullWidth]:e,[Sc.compact]:n}),children:S.jsxs(mn,{icon:S.jsx(C4,{}),variant:"info",className:Sc.alert,children:[S.jsx(qr,{text:u,time:t.createdAt}),t.afterHoursMessage&&S.jsx("p",{className:Sc.details,children:t.afterHoursMessage})]})})},yX="cc-common_AssignmentEvent-module_content_5Amg-MqW",bX="cc-common_AssignmentEvent-module_fullWidth_zhOb-a2U",SX="cc-common_AssignmentEvent-module_compact_3l9e5Vwj",xX="cc-common_AssignmentEvent-module_alert_th7GG5Rx",Sh={content:yX,fullWidth:bX,compact:SX,alert:xX},$X=({currentUserId:t,assign:e,fullWidth:n,compact:r,displayFullDate:i})=>{const{t:s}=lt(),u=t===e.assignedTo.id?!e.assignedBy||t===e.assignedBy.id?s("This conversation was assigned to you"):s("This conversation was assigned to you by {{by}}",{by:Lr(e.assignedBy)}):!e.assignedBy||t===e.assignedBy.id?s("This conversation was assigned to {{to}}",{to:Lr(e.assignedTo)}):s("This conversation was assigned to {{to}} by {{by}}",{to:Lr(e.assignedTo),by:Lr(e.assignedBy)});return S.jsx("div",{role:"listitem",className:ke(Sh.content,{[Sh.fullWidth]:n,[Sh.compact]:r}),children:S.jsx(mn,{icon:S.jsx(_4,{}),variant:"info",className:Sh.alert,children:S.jsx(qr,{text:u,time:e.createdAt,displayFullDate:i})})})},EX="cc-common_CallEvent-module_content_k-dVZZuZ",CX="cc-common_CallEvent-module_fullWidth_bGqsqyJW",_X="cc-common_CallEvent-module_compact_4Hbw97oF",TX="cc-common_CallEvent-module_alert_f7Efveoq",xh={content:EX,fullWidth:CX,compact:_X,alert:TX},wX=({call:t,fullWidth:e,compact:n})=>{const{t:r}=lt();return S.jsx("div",{role:"listitem",className:ke(xh.content,{[xh.fullWidth]:e,[xh.compact]:n}),children:S.jsx(mn,{icon:S.jsx(Ow,{}),variant:"info",className:xh.alert,children:S.jsx(qr,{text:r("This conversation was flipped to a phone call"),time:t.createdAt})})})},AX="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",OX="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",iu=(t,e)=>{for(const n in e)t[n]=e[n];return t},M3="numeric",I3="ascii",L3="alpha",Yh="asciinumeric",$h="alphanumeric",k3="domain",mR="emoji",RX="scheme",NX="slashscheme",$E="whitespace";function DX(t,e){return t in e||(e[t]=[]),e[t]}function Ss(t,e,n){e[M3]&&(e[Yh]=!0,e[$h]=!0),e[I3]&&(e[Yh]=!0,e[L3]=!0),e[Yh]&&(e[$h]=!0),e[L3]&&(e[$h]=!0),e[$h]&&(e[k3]=!0),e[mR]&&(e[k3]=!0);for(const r in e){const i=DX(r,n);i.indexOf(t)<0&&i.push(t)}}function MX(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Ir(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}Ir.groups={};Ir.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;rt.ta(e,n,r,i),ii=(t,e,n,r,i)=>t.tr(e,n,r,i),EE=(t,e,n,r,i)=>t.ts(e,n,r,i),Se=(t,e,n,r,i)=>t.tt(e,n,r,i),pa="WORD",P3="UWORD",Sd="LOCALHOST",j3="TLD",F3="UTLD",Kh="SCHEME",Pl="SLASH_SCHEME",u5="NUM",vR="WS",c5="NL",Jc="OPENBRACE",ed="CLOSEBRACE",D0="OPENBRACKET",M0="CLOSEBRACKET",I0="OPENPAREN",L0="CLOSEPAREN",k0="OPENANGLEBRACKET",P0="CLOSEANGLEBRACKET",j0="FULLWIDTHLEFTPAREN",F0="FULLWIDTHRIGHTPAREN",H0="LEFTCORNERBRACKET",B0="RIGHTCORNERBRACKET",U0="LEFTWHITECORNERBRACKET",z0="RIGHTWHITECORNERBRACKET",V0="FULLWIDTHLESSTHAN",q0="FULLWIDTHGREATERTHAN",G0="AMPERSAND",W0="APOSTROPHE",Z0="ASTERISK",po="AT",Y0="BACKSLASH",K0="BACKTICK",X0="CARET",yo="COLON",d5="COMMA",Q0="DOLLAR",Bi="DOT",J0="EQUALS",f5="EXCLAMATION",Ui="HYPHEN",e1="PERCENT",t1="PIPE",n1="PLUS",r1="POUND",i1="QUERY",h5="QUOTE",g5="SEMI",zi="SLASH",td="TILDE",a1="UNDERSCORE",yR="EMOJI",o1="SYM";var bR=Object.freeze({__proto__:null,WORD:pa,UWORD:P3,LOCALHOST:Sd,TLD:j3,UTLD:F3,SCHEME:Kh,SLASH_SCHEME:Pl,NUM:u5,WS:vR,NL:c5,OPENBRACE:Jc,CLOSEBRACE:ed,OPENBRACKET:D0,CLOSEBRACKET:M0,OPENPAREN:I0,CLOSEPAREN:L0,OPENANGLEBRACKET:k0,CLOSEANGLEBRACKET:P0,FULLWIDTHLEFTPAREN:j0,FULLWIDTHRIGHTPAREN:F0,LEFTCORNERBRACKET:H0,RIGHTCORNERBRACKET:B0,LEFTWHITECORNERBRACKET:U0,RIGHTWHITECORNERBRACKET:z0,FULLWIDTHLESSTHAN:V0,FULLWIDTHGREATERTHAN:q0,AMPERSAND:G0,APOSTROPHE:W0,ASTERISK:Z0,AT:po,BACKSLASH:Y0,BACKTICK:K0,CARET:X0,COLON:yo,COMMA:d5,DOLLAR:Q0,DOT:Bi,EQUALS:J0,EXCLAMATION:f5,HYPHEN:Ui,PERCENT:e1,PIPE:t1,PLUS:n1,POUND:r1,QUERY:i1,QUOTE:h5,SEMI:g5,SLASH:zi,TILDE:td,UNDERSCORE:a1,EMOJI:yR,SYM:o1});const Dl=/[a-z]/,dv=new RegExp("\\p{L}","u"),fv=new RegExp("\\p{Emoji}","u"),hv=/\d/,CE=/\s/,_E=` `,IX="️",LX="‍";let Eh=null,Ch=null;function kX(t){t===void 0&&(t=[]);const e={};Ir.groups=e;const n=new Ir;Eh==null&&(Eh=TE(AX)),Ch==null&&(Ch=TE(OX)),Se(n,"'",W0),Se(n,"{",Jc),Se(n,"}",ed),Se(n,"[",D0),Se(n,"]",M0),Se(n,"(",I0),Se(n,")",L0),Se(n,"<",k0),Se(n,">",P0),Se(n,"(",j0),Se(n,")",F0),Se(n,"「",H0),Se(n,"」",B0),Se(n,"『",U0),Se(n,"』",z0),Se(n,"<",V0),Se(n,">",q0),Se(n,"&",G0),Se(n,"*",Z0),Se(n,"@",po),Se(n,"`",K0),Se(n,"^",X0),Se(n,":",yo),Se(n,",",d5),Se(n,"$",Q0),Se(n,".",Bi),Se(n,"=",J0),Se(n,"!",f5),Se(n,"-",Ui),Se(n,"%",e1),Se(n,"|",t1),Se(n,"+",n1),Se(n,"#",r1),Se(n,"?",i1),Se(n,'"',h5),Se(n,"/",zi),Se(n,";",g5),Se(n,"~",td),Se(n,"_",a1),Se(n,"\\",Y0);const r=ii(n,hv,u5,{[M3]:!0});ii(r,hv,r);const i=ii(n,Dl,pa,{[I3]:!0});ii(i,Dl,i);const s=ii(n,dv,P3,{[L3]:!0});ii(s,Dl),ii(s,dv,s);const u=ii(n,CE,vR,{[$E]:!0});Se(n,_E,c5,{[$E]:!0}),Se(u,_E),ii(u,CE,u);const c=ii(n,fv,yR,{[mR]:!0});ii(c,fv,c),Se(c,IX,c);const f=Se(c,LX);ii(f,fv,c);const h=[[Dl,i]],p=[[Dl,null],[dv,s]];for(let v=0;vv[0]>y[0]?1:-1);for(let v=0;v=0?$[k3]=!0:Dl.test(y)?hv.test(y)?$[Yh]=!0:$[I3]=!0:$[M3]=!0,EE(n,y,y,$)}return EE(n,"localhost",Sd,{ascii:!0}),n.jd=new Ir(o1),{start:n,tokens:iu({groups:e},bR)}}function PX(t,e){const n=jX(e.replace(/[A-Z]/g,c=>c.toLowerCase())),r=n.length,i=[];let s=0,u=0;for(;u=0&&(v+=n[u].length,y++),h+=n[u].length,s+=n[u].length,u++;s-=v,u-=y,h-=v,i.push({t:p.t,v:e.slice(s-h,s),s:s-h,e:s})}return i}function jX(t){const e=[],n=t.length;let r=0;for(;r56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?t[r]:t.slice(r,r+2);e.push(u),r+=u.length}return e}function lo(t,e,n,r,i){let s;const u=e.length;for(let c=0;c=0;)s++;if(s>0){e.push(n.join(""));for(let u=parseInt(t.substring(r,r+s),10);u>0;u--)n.pop();r+=s}else n.push(t[r]),r++}return e}const xd={defaultProtocol:"http",events:null,format:wE,formatHref:wE,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function p5(t,e){e===void 0&&(e=null);let n=iu({},xd);t&&(n=iu(n,t instanceof p5?t.o:t));const r=n.ignoreTags,i=[];for(let s=0;sn?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=xd.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),s=this.toFormattedString(t),u={},c=t.get("className",n,e),f=t.get("target",n,e),h=t.get("rel",n,e),p=t.getObj("attributes",n,e),v=t.getObj("events",n,e);return u.href=r,c&&(u.class=c),f&&(u.target=f),h&&(u.rel=h),p&&iu(u,p),{tagName:i,attributes:u,content:s,eventListeners:v}}};function G1(t,e){class n extends SR{constructor(i,s){super(i,s),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const AE=G1("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),OE=G1("text"),FX=G1("nl"),_h=G1("url",{isLink:!0,toHref(t){return t===void 0&&(t=xd.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Sd&&t[1].t===yo}}),ai=t=>new Ir(t);function HX(t){let{groups:e}=t;const n=e.domain.concat([G0,Z0,po,Y0,K0,X0,Q0,J0,Ui,u5,e1,t1,n1,r1,zi,o1,td,a1]),r=[W0,yo,d5,Bi,f5,i1,h5,g5,k0,P0,Jc,ed,M0,D0,I0,L0,j0,F0,H0,B0,U0,z0,V0,q0],i=[G0,W0,Z0,Y0,K0,X0,Q0,J0,Ui,Jc,ed,e1,t1,n1,r1,i1,zi,o1,td,a1],s=ai(),u=Se(s,td);Qe(u,i,u),Qe(u,e.domain,u);const c=ai(),f=ai(),h=ai();Qe(s,e.domain,c),Qe(s,e.scheme,f),Qe(s,e.slashscheme,h),Qe(c,i,u),Qe(c,e.domain,c);const p=Se(c,po);Se(u,po,p),Se(f,po,p),Se(h,po,p);const v=Se(u,Bi);Qe(v,i,u),Qe(v,e.domain,u);const y=ai();Qe(p,e.domain,y),Qe(y,e.domain,y);const b=Se(y,Bi);Qe(b,e.domain,y);const $=ai(AE);Qe(b,e.tld,$),Qe(b,e.utld,$),Se(p,Sd,$);const E=Se(y,Ui);Qe(E,e.domain,y),Qe($,e.domain,y),Se($,Bi,b),Se($,Ui,E);const A=Se($,yo);Qe(A,e.numeric,AE);const T=Se(c,Ui),R=Se(c,Bi);Qe(T,e.domain,c),Qe(R,i,u),Qe(R,e.domain,c);const D=ai(_h);Qe(R,e.tld,D),Qe(R,e.utld,D),Qe(D,e.domain,c),Qe(D,i,u),Se(D,Bi,R),Se(D,Ui,T),Se(D,po,p);const M=Se(D,yo),O=ai(_h);Qe(M,e.numeric,O);const L=ai(_h),z=ai();Qe(L,n,L),Qe(L,r,z),Qe(z,n,L),Qe(z,r,z),Se(D,zi,L),Se(O,zi,L);const V=Se(f,yo),Y=Se(h,yo),te=Se(Y,zi),W=Se(te,zi);Qe(f,e.domain,c),Se(f,Bi,R),Se(f,Ui,T),Qe(h,e.domain,c),Se(h,Bi,R),Se(h,Ui,T),Qe(V,e.domain,L),Se(V,zi,L),Qe(W,e.domain,L),Qe(W,n,L),Se(W,zi,L);const ce=[[Jc,ed],[D0,M0],[I0,L0],[k0,P0],[j0,F0],[H0,B0],[U0,z0],[V0,q0]];for(let B=0;B=0&&y++,i++,p++;if(y<0)i-=p,i0&&(s.push(gv(OE,e,u)),u=[]),i-=y,p-=y;const b=v.t,$=n.slice(i-p,i);s.push(gv(b,e,$))}}return u.length>0&&s.push(gv(OE,e,u)),s}function gv(t,e,n){const r=n[0].s,i=n[n.length-1].e,s=e.slice(r,i);return new t(s,n)}const rr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function UX(){rr.scanner=kX(rr.customSchemes);for(let t=0;t",lt:"<",nbsp:" ",quot:'"'},qX=/^#[xX]([A-Fa-f0-9]+)$/,GX=/^#([0-9]+)$/,WX=/^([A-Za-z0-9]+)$/,ZX=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var n=e.match(qX);if(n)return String.fromCharCode(parseInt(n[1],16));if(n=e.match(GX),n)return String.fromCharCode(parseInt(n[1],10));if(n=e.match(WX),n)return this.named[n[1]]||"&"+n[1]+";"}},t}(),YX=/[\t\n\f ]/,KX=/[A-Za-z]/,XX=/\r\n?/g;function Zn(t){return YX.test(t)}function RE(t){return KX.test(t)}function QX(t){return t.replace(XX,` `)}var JX=function(){function t(e,n,r){r===void 0&&(r="precompile"),this.delegate=e,this.entityParser=n,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===` `){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var i=this.peek(),s=this.tagNameBuffer;i==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):i==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(i))},tagOpen:function(){var i=this.consume();i==="!"?this.transitionTo("markupDeclarationOpen"):i==="/"?this.transitionTo("endTagOpen"):(i==="@"||i===":"||RE(i))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(i))},markupDeclarationOpen:function(){var i=this.consume();if(i==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var i=this.consume();Zn(i)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var i=this.consume();Zn(i)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase()))},doctypeName:function(){var i=this.consume();Zn(i)?this.transitionTo("afterDoctypeName"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase())},afterDoctypeName:function(){var i=this.consume();if(!Zn(i))if(i===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),u=s.toUpperCase()==="PUBLIC",c=s.toUpperCase()==="SYSTEM";(u||c)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),u?this.transitionTo("afterDoctypePublicKeyword"):c&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var i=this.peek();Zn(i)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):i==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):i==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):i===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},doctypePublicIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},afterDoctypePublicIdentifier:function(){var i=this.consume();Zn(i)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var i=this.consume();Zn(i)||(i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},doctypeSystemIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},afterDoctypeSystemIdentifier:function(){var i=this.consume();Zn(i)||i===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var i=this.consume();i==="-"?this.transitionTo("commentStartDash"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(i),this.transitionTo("comment"))},commentStartDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var i=this.consume();i==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(i)},commentEndDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+i),this.transitionTo("comment"))},commentEnd:function(){var i=this.consume();i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+i),this.transitionTo("comment"))},tagName:function(){var i=this.consume();Zn(i)?this.transitionTo("beforeAttributeName"):i==="/"?this.transitionTo("selfClosingStartTag"):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(i)},endTagName:function(){var i=this.consume();Zn(i)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):i==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(i)},beforeAttributeName:function(){var i=this.peek();if(Zn(i)){this.consume();return}else i==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var i=this.peek();Zn(i)?(this.transitionTo("afterAttributeName"),this.consume()):i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==='"'||i==="'"||i==="<"?(this.delegate.reportSyntaxError(i+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(i)):(this.consume(),this.delegate.appendToAttributeName(i))},afterAttributeName:function(){var i=this.peek();if(Zn(i)){this.consume();return}else i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i))},beforeAttributeValue:function(){var i=this.peek();Zn(i)?this.consume():i==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(i))},attributeValueDoubleQuoted:function(){var i=this.consume();i==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueSingleQuoted:function(){var i=this.consume();i==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueUnquoted:function(){var i=this.peek();Zn(i)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):i===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(i))},afterAttributeValueQuoted:function(){var i=this.peek();Zn(i)?(this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var i=this.peek();i===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var i=this.consume();(i==="@"||i===":"||RE(i))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(i))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=QX(e);this.index"||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),eQ=function(){function t(e,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new JX(this,e,n.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var n=0;n=0))continue;let p=r.length;oQ(f,n,++u,r),u+=r.length-p-1}else if(c.type!==H3)r.push(c);else{const f=aQ(c.chars,s);r.push.apply(r,f)}}for(let u=0;u0&&(f+=" "+uQ(c.attributes).join(" ")),c.selfClosing&&(f+=" /"),f+=">",i.push(f);break}case $R:i.push(``);break;case H3:i.push(B3(c.chars));break;case nQ:i.push(``);break;case rQ:{let f=`",i.push(f);break}}}return i.join("")}function aQ(t,e){const n=zX(t),r=[];for(let i=0;i0;){let s=e[n];s.type===s1&&s.tagName.toUpperCase()===t?i++:s.type===$R&&s.tagName.toUpperCase()===t&&i--,r.push(s),n++}return r}function sQ(t){let{tagName:e,attributes:n,content:r}=t;return`<${e} ${lQ(n)}>${B3(r)}`}function B3(t){return t.replace(//g,">")}function ER(t){return t.replace(/"/g,""")}function lQ(t){const e=[];for(const n in t){const r=t[n]+"";e.push(`${n}="${ER(r)}"`)}return e.join(" ")}function uQ(t){const e=[];for(let n=0;nS.jsx("span",{dangerouslySetInnerHTML:{__html:iQ(t,e)}}),cQ="cc-common_index-module_showMoreContainer_QBtJzWNy",dQ="cc-common_index-module_isShowMoreClicked_mJOn1q3b",fQ="cc-common_index-module_showMoreLink_TRStigDO",pv={showMoreContainer:cQ,isShowMoreClicked:dQ,showMoreLink:fQ},hQ=({children:t})=>{const{t:e}=lt(),n=_.useRef(null),[r,i]=_.useState(!1),[s,u]=_.useState(!1);_.useEffect(()=>{const f=()=>{const h=n.current.offsetHeight{window.removeEventListener("resize",f)}},[]);const c=()=>{u(!s)};return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:ke(pv.showMoreContainer,s&&pv.isShowMoreClicked),ref:n,children:t}),r&&S.jsx(ML,{onClick:c,className:pv.showMoreLink,children:e(s?"show less":"show more")})]})},gQ="cc-common_CampaignMessageEvent-module_content_op5pPpsB",pQ="cc-common_CampaignMessageEvent-module_fullWidth_dYYBHYQC",mQ="cc-common_CampaignMessageEvent-module_compact_ggVw-ob1",vQ="cc-common_CampaignMessageEvent-module_body_VyhF63XP",Th={content:gQ,fullWidth:pQ,compact:mQ,body:vQ},yQ=({campaignDetails:t,fullWidth:e,compact:n,displayFullDate:r,isStartedByCampaign:i})=>{const{t:s}=lt(),u=_.useMemo(()=>{const f=(i?s("This conversation was started by the campaign {{by}}",{by:t.name}):s("This message was sent by the campaign {{by}}",{by:t.name})).split(t.name);return S.jsxs("span",{children:[f[0],S.jsx(Ht,{tag:"span",variant:"body-small-strong",children:t.name}),f[1]]})},[t]);return S.jsx("div",{role:"listitem",className:ke(Th.content,{[Th.fullWidth]:e,[Th.compact]:n}),children:S.jsxs(mn,{icon:S.jsx($4,{}),variant:"info",children:[S.jsx(qr,{text:u,time:t.createdAt,displayFullDate:r}),S.jsx("div",{className:Th.body,children:S.jsx(hQ,{children:S.jsx(CR,{text:t.body})})})]})})},bQ="cc-common_ChatEndedEvent-module_content_5FwtaLPU",SQ="cc-common_ChatEndedEvent-module_fullWidth_2jQtWbGL",xQ="cc-common_ChatEndedEvent-module_compact_rGeXaIPU",mv={content:bQ,fullWidth:SQ,compact:xQ},$Q=({fullWidth:t,compact:e,color:n})=>{const{t:r}=lt();let i=null;return n&&(i={backgroundColor:"var(--goto-background-color-default)",borderColor:n,"--goto-border-color-default":n,"--goto-icon-color":n}),S.jsx("div",{role:"listitem",className:ke(mv.content,{[mv.fullWidth]:t,[mv.compact]:e}),children:S.jsx(mn,{icon:S.jsx(uu,{}),variant:"info",style:i,children:r("Your chat has ended. You can send a message to start a new chat.")})})},EQ="cc-common_index-module_loading_txqJIxG4",CQ="cc-common_index-module_opaque_ShYyehsU",NE={loading:EQ,opaque:CQ},_Q=({className:t,opaque:e=!1})=>S.jsx("div",{className:ke(NE.loading,e&&NE.opaque,t),children:S.jsx(dw,{})}),TQ="cc-common_Thumbnail-module_notFound_yBTWSVtv",wQ="cc-common_Thumbnail-module_text_-iQ3p3G7",AQ="cc-common_Thumbnail-module_file_fm8AWrZY",OQ="cc-common_Thumbnail-module_imageFile_y2pQJxIg",RQ="cc-common_Thumbnail-module_download_AyTcAIqW",NQ="cc-common_Thumbnail-module_image_KDbqtV1B",DQ="cc-common_Thumbnail-module_clickable_2J6o-Otk",MQ="cc-common_Thumbnail-module_loading_g4fTWI-3",IQ="cc-common_Thumbnail-module_remove_7sBZABUk",LQ="cc-common_Thumbnail-module_tooltip_zDXT-2jt",ui={notFound:TQ,text:wQ,file:AQ,imageFile:OQ,download:RQ,image:NQ,clickable:DQ,loading:MQ,remove:IQ,tooltip:LQ},kQ="cc-common_index-module_dialogTitle_PUZRNSGZ",PQ="cc-common_index-module_dialogContent_wDagMwJB",jQ="cc-common_index-module_dialogFullHeight_nuRwMHP3",FQ="cc-common_index-module_closeButton_nJfj9Fll",HQ="cc-common_index-module_noDividers_x1KOExay",Zl={dialogTitle:kQ,dialogContent:PQ,dialogFullHeight:jQ,closeButton:FQ,noDividers:HQ};var BQ=function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":mo({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":mo({},e.breakpoints.down(e.breakpoints.values.sm+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":mo({},e.breakpoints.down(e.breakpoints.values.md+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":mo({},e.breakpoints.down(e.breakpoints.values.lg+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":mo({},e.breakpoints.down(e.breakpoints.values.xl+32*2),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},UQ={enter:nu.enteringScreen,exit:nu.leavingScreen},zQ=_.forwardRef(function(e,n){var r=e.BackdropProps,i=e.children,s=e.classes,u=e.className,c=e.disableBackdropClick,f=c===void 0?!1:c,h=e.disableEscapeKeyDown,p=h===void 0?!1:h,v=e.fullScreen,y=v===void 0?!1:v,b=e.fullWidth,$=b===void 0?!1:b,E=e.maxWidth,A=E===void 0?"sm":E,T=e.onBackdropClick,R=e.onClose,D=e.onEnter,M=e.onEntered,O=e.onEntering,L=e.onEscapeKeyDown,z=e.onExit,V=e.onExited,Y=e.onExiting,te=e.open,W=e.PaperComponent,ce=W===void 0?DW:W,B=e.PaperProps,Ee=B===void 0?{}:B,pe=e.scroll,H=pe===void 0?"paper":pe,Q=e.TransitionComponent,he=Q===void 0?fO:Q,fe=e.transitionDuration,w=fe===void 0?UQ:fe,F=e.TransitionProps,ie=e["aria-describedby"],J=e["aria-labelledby"],be=En(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),me=_.useRef(),Ce=function(qe){me.current=qe.target},ve=function(qe){qe.target===qe.currentTarget&&qe.target===me.current&&(me.current=null,T&&T(qe),!f&&R&&R(qe,"backdropClick"))};return _.createElement(ZW,De({className:Ni(s.root,u),BackdropComponent:JW,BackdropProps:De({transitionDuration:w},r),closeAfterTransition:!0},f?{disableBackdropClick:f}:{},{disableEscapeKeyDown:p,onEscapeKeyDown:L,onClose:R,open:te,ref:n},be),_.createElement(he,De({appear:!0,in:te,timeout:w,onEnter:D,onEntering:O,onEntered:M,onExit:z,onExiting:Y,onExited:V,role:"none presentation"},F),_.createElement("div",{className:Ni(s.container,s["scroll".concat(Vl(H))]),onMouseUp:ve,onMouseDown:Ce},_.createElement(ce,De({elevation:24,role:"dialog","aria-describedby":ie,"aria-labelledby":J},Ee,{className:Ni(s.paper,s["paperScroll".concat(Vl(H))],s["paperWidth".concat(Vl(String(A)))],Ee.className,y&&s.paperFullScreen,$&&s.paperFullWidth)}),i))))});const VQ=Is(BQ,{name:"MuiDialog"})(zQ);var qQ=function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},DE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},GQ=_.forwardRef(function(e,n){var r=e.align,i=r===void 0?"inherit":r,s=e.classes,u=e.className,c=e.color,f=c===void 0?"initial":c,h=e.component,p=e.display,v=p===void 0?"initial":p,y=e.gutterBottom,b=y===void 0?!1:y,$=e.noWrap,E=$===void 0?!1:$,A=e.paragraph,T=A===void 0?!1:A,R=e.variant,D=R===void 0?"body1":R,M=e.variantMapping,O=M===void 0?DE:M,L=En(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),z=h||(T?"p":O[D]||DE[D])||"span";return _.createElement(z,De({className:Ni(s.root,u,D!=="inherit"&&s[D],f!=="initial"&&s["color".concat(Vl(f))],E&&s.noWrap,b&&s.gutterBottom,T&&s.paragraph,i!=="inherit"&&s["align".concat(Vl(i))],v!=="initial"&&s["display".concat(Vl(v))]),ref:n},L))});const _R=Is(qQ,{name:"MuiTypography"})(GQ);var WQ={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},ZQ=_.forwardRef(function(e,n){var r=e.children,i=e.classes,s=e.className,u=e.disableTypography,c=u===void 0?!1:u,f=En(e,["children","classes","className","disableTypography"]);return _.createElement("div",De({className:Ni(i.root,s),ref:n},f),c?r:_.createElement(_R,{component:"h2",variant:"h6"},r))});const YQ=Is(WQ,{name:"MuiDialogTitle"})(ZQ);var KQ=function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}},XQ=_.forwardRef(function(e,n){var r=e.classes,i=e.className,s=e.dividers,u=s===void 0?!1:s,c=En(e,["classes","className","dividers"]);return _.createElement("div",De({className:Ni(r.root,i,u&&r.dividers),ref:n},c))});const TR=Is(KQ,{name:"MuiDialogContent"})(XQ),QQ=({children:t,onClose:e,dividers:n=!0,...r})=>{const{t:i}=lt();return S.jsxs(YQ,{"data-testid":"dialogTitle",disableTypography:!0,className:ke(Zl.dialogTitle,!n&&Zl.noDividers),...r,children:[S.jsx($0,{variant:"heading-small",children:t}),e&&S.jsxs(S.Fragment,{children:[S.jsx($r,{className:Zl.closeButton,id:"dialog--close-button",size:"small","aria-label":"close","data-testid":"dialogCloseButton",onClick:e,children:S.jsx(ws,{})}),S.jsx(Ql,{triggerId:"dialog--close-button",position:"top-center",zIndex:1301,children:i("Close")})]})]})},JQ=({fullHeight:t,children:e,...n})=>S.jsx(TR,{className:ke(Zl.dialogContent,t&&Zl.dialogFullHeight),...n,children:e}),eJ=({onClose:t,size:e="sm",children:n,open:r,title:i,subTitle:s,dividers:u,fullHeight:c=!1,...f})=>S.jsxs(VQ,{PaperProps:{className:ke(c&&Zl.dialogFullHeight)},fullWidth:!0,maxWidth:e,scroll:"paper",onClose:t,"aria-labelledby":"dialog-title",open:r,...f,children:[S.jsxs(QQ,{id:"dialog-title","data-testid":"dialog-title",onClose:t,dividers:u,children:[i,s&&S.jsx($0,{variant:"caption-medium",tag:"p",color:"type-color-secondary",children:s})]}),S.jsx(JQ,{fullHeight:c,dividers:u,children:n})]}),tJ="cc-common_ThumbnailDialog-module_dialog_zNBc7bn8",nJ="cc-common_ThumbnailDialog-module_content_JBhtK0O9",rJ="cc-common_ThumbnailDialog-module_imageContainer_M4LaU0gj",iJ="cc-common_ThumbnailDialog-module_download_308sUJvP",aJ="cc-common_ThumbnailDialog-module_image_SMMSU74-",xc={dialog:tJ,content:nJ,imageContainer:rJ,download:iJ,image:aJ},oJ=({fileUrl:t,title:e,open:n,onClose:r,onDownload:i})=>S.jsx(eJ,{className:xc.dialog,size:"lg",open:n,title:e,onClose:r,children:S.jsx(TR,{className:xc.content,children:S.jsxs("div",{className:xc.imageContainer,children:[S.jsx("img",{className:xc.image,src:t,alt:e}),i&&S.jsx($r,{variant:"secondary",onClick:()=>i(),className:xc.download,children:S.jsx(A1,{})})]})})}),ME="image",sJ=1024,lJ=t=>(t??"").split("/")[0]??"",U3=t=>{let e="";if(t)try{e=URL.createObjectURL(t)}catch{return t}return e},z3=async(t,e)=>{const n=document.createElement("a");document.body.appendChild(n),n.setAttribute("style","display: none");try{n.href=e,n.download=t,n.target="_blank",n.click()}finally{document.body.removeChild(n)}},IE="36px",uJ=({file:t,fileBlob:e,getFileBlob:n,onRemove:r})=>S.jsxs(S.Fragment,{children:[t.contentType==="application/pdf"?S.jsx($w,{size:IE}):S.jsx(xw,{size:IE}),r?S.jsx($r,{className:ui.remove,variant:"secondary",onClick:r,children:S.jsx(ws,{})}):S.jsx($r,{variant:"secondary",onClick:async()=>{let i="";try{i=U3(e??await n()),z3(t.name,i)}finally{i&&URL.revokeObjectURL(i)}},className:ui.download,children:S.jsx(A1,{})})]}),cJ=({file:t,fileBlob:e,onRemove:n,getFileBlob:r,setNotFound:i,isWebChat:s})=>{const u=_.useRef(null),[c,f]=_.useState(null),[h,p]=_.useState(!1),[v,y]=_.useState(!1);return _.useEffect(()=>((async()=>{let $=U3(e);$||(p(!0),$=U3(await r()),$||i(!0)),u.current&&$&&(f($),u.current.src=$,p(!1))})(),()=>{c&&URL.revokeObjectURL(c)}),[e]),S.jsxs(S.Fragment,{children:[S.jsx("img",{onClick:()=>{s?window.open(c,"_blank"):y(!0)},className:ke(ui.image,!n&&ui.clickable),ref:u,alt:t.name}),h&&S.jsx(_Q,{className:ui.loading,opaque:!0}),n?S.jsx($r,{size:"small",className:ui.remove,variant:"secondary",onClick:n,children:S.jsx(ws,{})}):S.jsx($r,{variant:"secondary",onClick:()=>z3(t.name,c),className:ui.download,children:S.jsx(A1,{})}),!s&&v&&S.jsx(oJ,{onClose:()=>y(!1),onDownload:n?null:()=>z3(t.name,c),open:v,title:t.name,fileUrl:c})]})},Xh=({file:t,fileBlob:e,onRemove:n,getFileBlob:r,isWebChat:i})=>{const{t:s}=lt(),u=lJ(t.contentType),[c,f]=_.useState(!1);return S.jsx(S.Fragment,{children:c?S.jsxs("div",{className:ui.notFound,children:[S.jsx(Rw,{color:"var(--goto-icon-color-secondary)",size:"21px"}),S.jsx(Ht,{className:ui.text,children:s("This attachment is no longer available from the external provider.")})]}):S.jsxs(S.Fragment,{children:[S.jsx("div",{id:`thumbnail--preview-{${t.cboxId}}`,className:ke(ui.file,u===ME&&!n&&ui.imageFile),children:u===ME?S.jsx(cJ,{file:t,onRemove:n,getFileBlob:r,fileBlob:e,setNotFound:f,isWebChat:i}):S.jsx(uJ,{file:t,onRemove:n,getFileBlob:r,fileBlob:e})}),S.jsx(Ql,{triggerId:`thumbnail--preview-{${t.cboxId}}`,position:"bottom-center",className:ui.tooltip,children:S.jsx(Ht,{color:"type-color-inverted",children:t.size?s("{{sizeInKB}} KB",{sizeInKB:Math.floor(t.size/sJ)}):s("Unknown file size")})})]})})},dJ="cc-common_ChatMessageEvent-module_content_69l8ZaK1",fJ="cc-common_ChatMessageEvent-module_message_AAtUxmMg",hJ="cc-common_ChatMessageEvent-module_avatar_J3eIZcKU",gJ="cc-common_ChatMessageEvent-module_inverse_RUx1ecHw",pJ="cc-common_ChatMessageEvent-module_odd_-rlQaiYG",mJ="cc-common_ChatMessageEvent-module_even_B4hhY0lE",vJ="cc-common_ChatMessageEvent-module_name_QriunPux",yJ="cc-common_ChatMessageEvent-module_time_4IOEO6MO",bJ="cc-common_ChatMessageEvent-module_files_cA9Ko5bn",SJ="cc-common_ChatMessageEvent-module_bodyless_5pRzlIuM",xJ="cc-common_ChatMessageEvent-module_inbound_dmsRIW0J",$J="cc-common_ChatMessageEvent-module_noAvatar_Um9pTt0N",EJ="cc-common_ChatMessageEvent-module_first_-PSR23wV",CJ="cc-common_ChatMessageEvent-module_middle_TvPDz21A",_J="cc-common_ChatMessageEvent-module_last_qQt9Hakd",TJ="cc-common_ChatMessageEvent-module_outbound_Wg8AliKN",wJ="cc-common_ChatMessageEvent-module_failed_IdFmjVqJ",AJ="cc-common_ChatMessageEvent-module_details_4Z42GrLt",OJ="cc-common_ChatMessageEvent-module_group_D-hyz5nW",RJ="cc-common_ChatMessageEvent-module_fullWidth_GDHwWoPV",NJ="cc-common_ChatMessageEvent-module_compact_dqqCbr2m",DJ="cc-common_ChatMessageEvent-module_status_37jz3PvN",MJ="cc-common_ChatMessageEvent-module_error_a8hlFcws",IJ="cc-common_ChatMessageEvent-module_blockIcon_esAmHX2n",kt={content:dJ,message:fJ,avatar:hJ,inverse:gJ,odd:pJ,even:mJ,name:vJ,time:yJ,files:bJ,bodyless:SJ,inbound:xJ,noAvatar:$J,first:EJ,middle:CJ,last:_J,outbound:TJ,failed:wJ,details:AJ,group:OJ,fullWidth:RJ,compact:NJ,status:DJ,error:MJ,blockIcon:IJ},V3=({agents:t,color:e,compact:n,conversationId:r,customAvatarIconUrl:i,entry:s,fileBlobsWithId:u,fullWidth:c,genericAvatarIconId:f,getFileBlob:h,isLastOutboundReadMessageEvent:p,isWebChat:v,lastMessageReadAt:y,message:b,onSend:$,participant:E,participantMetadataContactInformation:A,thumbnailSize:T,botName:R,botAvatar:D,displayFullDate:M=!1})=>{var O,L;const z=t&&t[Object.keys(t)[0]],V=b.direction===ir.INBOUND,Y=b.direction===ir.OUTBOUND,te=V&&!E,W=b.singleMessageGenericAvatarIconId||f,ce=V?E||b.from||A:b.from,pe=(v&&V||!v&&Y)&&!ce&&!!R,{t:H}=lt(),Q=_.useRef(null),he=!s||s.index===0,fe=s&&s.index===s.group.length-1,w=s&&!he&&!fe,F=!s||fe,ie=!s||he,J=(ce||pe)&&(!s||s.index===Math.floor(s.group.length/2)),be=b.id.startsWith(ZV),me=b.id.startsWith(YV),Ce=u==null?void 0:u.filter(({id:Ke})=>{var Je;return(Je=b.filedIds)==null?void 0:Je.includes(Ke)}),ve=kr(e),[Me,qe]=_.useState(null);_.useEffect(()=>{if(!ve||!Q.current)return;const Je=b.direction===ir.INBOUND?.1:.5,Ut=ys(CZ({...ve,a:Je},kr(ql(en.backgroundColorDefault,Q.current))));qe({backgroundColor:Ut,borderColor:Ut})},[ve,b.direction,Q.current]);const Kt=_.useMemo(()=>{if(!ve||!Me||!Q.current)return!1;const Ke=b.direction===ir.INBOUND,Je=Ke?Bn:qi,Ut=Ke?qi:Bn;return Ca(Je,Me.backgroundColor,Ut,Q.current)},[ve,Me,b.direction]),se=RA(ce,te),pt=()=>{if(pe&&(D!=null&&D.customIconCBoxUrl))return D==null?void 0:D.customIconCBoxUrl;if(i)return i;if(!W&&(z!=null&&z.avatarUrl))return z.avatarUrl};return S.jsxs("div",{ref:Q,role:"listitem",className:ke(kt.content,{[kt.noAvatar]:!J&&(ce||pe),[kt.inbound]:b.direction===ir.INBOUND,[kt.outbound]:b.direction===ir.OUTBOUND,[kt.fullWidth]:c,[kt.compact]:n,[kt.inverse]:Kt}),children:[J&&S.jsxs(NL,{style:e&&{backgroundColor:e},className:ke(kt.avatar,(s==null?void 0:s.group.length)%2&&kt.odd,(s==null?void 0:s.group.length)%2===0&&kt.even,Ca(qi,e,Bn,Q.current)&&kt.inverse),size:"small",children:[pe&&(D!=null&&D.genericIconName)?D.genericIconName&&_.createElement(x0[D.genericIconName]):W&&_.createElement(x0[W]),pt()&&S.jsx("img",{src:pt(),alt:se||H("Unknown user")})]}),S.jsxs("div",{className:ke(kt.details,!F&&kt.group),children:[F&&S.jsx("span",{className:kt.name,children:pe?R:se}),S.jsxs("div",{style:Me&&{...Me},className:ke(kt.message,me&&kt.failed,he&&kt.first,fe&&kt.last,w&&kt.middle),onClick:()=>me&&($==null?void 0:$(b,Ce)),children:[b.body&&S.jsx(CR,{text:b.body}),(b.associatedFiles||Ce||b.associatedFilesPrivateInbox)&&S.jsxs("div",{className:ke(kt.files,!b.body&&kt.bodyless),children:[(O=b.associatedFilesPrivateInbox)==null?void 0:O.map(Ke=>S.jsx(Xh,{file:Ke,size:T,getFileBlob:async()=>await(h==null?void 0:h({associatedFilePrivateInbox:Ke})),isWebChat:v},Ke.id)),(L=b.associatedFiles)==null?void 0:L.map(Ke=>S.jsx(Xh,{file:Ke,size:T,getFileBlob:async()=>await(h==null?void 0:h({conversationId:r,messageId:b.id,cboxId:Ke.cboxId,externalUrl:Ke.externalUrl})),isWebChat:v},Ke.cboxId)),!b.associatedFiles&&(Ce==null?void 0:Ce.map(({file:Ke,id:Je})=>S.jsx(Xh,{size:T,fileBlob:Ke,file:{name:Ke.name,size:Ke.size,contentType:Ke.type},isWebChat:v},Je)))]})]}),ie&&!be&&!me&&S.jsx(cX,{color:e,className:kt.time,date:b.createdAt,direction:b.direction,lastMessageReadAt:p&&y,displayFullDate:M}),be&&S.jsx("span",{className:kt.status,children:H("Sending...")}),me&&S.jsxs("span",{className:ke(kt.status,kt.error),children:[S.jsx("span",{className:kt.blockIcon,children:S.jsx(vw,{})}),H("Message not sent. Click to retry.")]})]})]})},LJ="cc-common_CobrowseStartedEvent-module_cobrowseStartedEvent_pTCu2QON",vv={cobrowseStartedEvent:LJ},kJ=({fullWidth:t,compact:e,color:n,agents:r,customAvatarIconUrl:i,genericAvatarIconId:s,entry:u,currentUser:c,cobrowse:f})=>{const{t:h}=lt(),p={id:f.id,type:"OUTBOUND_MESSAGE",direction:ir.OUTBOUND,conversationId:f.conversationId,from:{...f.performedBy},createdAt:f.createdAt,body:f.invitationMessage},v=()=>{switch(window.environment){case"prod":return"//app.goto.com/cc-resolve";case"staging":return"//app.staging.gtc.goto.com/cc-resolve";case"dev":default:return"//app.dev.gtc.goto.com/cc-resolve"}};return S.jsxs(S.Fragment,{children:[S.jsx("div",{role:"listitem",className:ke(vv.cobrowseStartedEvent,{[vv.cobrowseStartedEvent_fullWidth]:t,[vv.cobrowseStartedEvent_compact]:e}),children:S.jsx(mn,{icon:S.jsx(Nw,{}),variant:"info",children:S.jsx(qr,{text:S.jsxs(S.Fragment,{children:[S.jsx("span",{children:h("A co-browsing session started.")})," ",S.jsx("a",{href:`${v()}/session/${f.sessionPin}?${new URLSearchParams({serviceUrl:f.serviceUrl,accountKey:f.accountKey}).toString()}`,target:"_blank",rel:"noreferrer",children:h("Join here")})]}),time:f.createdAt})})}),S.jsx(V3,{compact:e,color:n,agents:r,customAvatarIconUrl:i,genericAvatarIconId:s,fullWidth:t,entry:u,conversationId:f.conversationId,participant:f.performedBy,message:p,currentUser:c})]})},PJ="cc-common_CreatedByInfo-module_content_3oEFpH9Z",jJ="cc-common_CreatedByInfo-module_fullWidth_SshqkAtj",FJ="cc-common_CreatedByInfo-module_compact_ncLi44hW",HJ="cc-common_CreatedByInfo-module_alert_zOs3tw9m",wh={content:PJ,fullWidth:jJ,compact:FJ,alert:HJ},BJ=({currentUserId:t,createdBy:e,fullWidth:n,compact:r,displayFullDate:i})=>{const{t:s}=lt(),u=t===e.id?s("This conversation was created by you"):s("This conversation was created by {{by}}",{by:Lr(e)});return S.jsx("div",{role:"listitem",className:ke(wh.content,{[wh.fullWidth]:n,[wh.compact]:r}),children:S.jsx(mn,{icon:S.jsx(Cw,{}),variant:"info",className:wh.alert,"data-testid":"conversation-creation-alert",children:S.jsx(qr,{text:u,time:e.createdAt,displayFullDate:i})})})},UJ="cc-common_FacebookAlertEvent-module_content_73w6OZNB",zJ="cc-common_FacebookAlertEvent-module_fullWidth_3s-gqK4c",VJ="cc-common_FacebookAlertEvent-module_compact_mgwQ9owm",yv={content:UJ,fullWidth:zJ,compact:VJ},qJ=1440,GJ=86400,WJ=82800,ZJ=({fullWidth:t,compact:e,participantWaitTime:n,source:r})=>{const{t:i}=lt();let s=null,u="info";if(n>GJ)u="danger",s=r===md.FACEBOOK?i("This conversation has reached the 24 hours delay. You will not be able to send a message from here, you need to reply in Facebook directly."):i("This conversation has reached the 24 hours delay. You will not be able to send a message from here, you need to reply in Instagram directly.");else if(n>WJ){u="warning";const c=Math.ceil(qJ-n/60);s=r===md.FACEBOOK?i("This conversation will expire in {{minutesToExpiration}} minutes. After that, you will need to reply in Facebook directly.",{minutesToExpiration:c}):i("This conversation will expire in {{minutesToExpiration}} minutes. After that, you will need to reply in Instagram directly.",{minutesToExpiration:c})}return s&&S.jsx("div",{role:"listitem",className:ke(yv.content,{[yv.fullWidth]:t,[yv.compact]:e}),children:S.jsx(mn,{icon:S.jsx(mw,{}),variant:u,children:s})})},YJ="cc-common_index-module_messages_F0bN-1iF",KJ={messages:YJ},XJ="cc-common_MeetingEvent-module_content_KpvHRiZ2",QJ="cc-common_MeetingEvent-module_fullWidth_4wz24--h",JJ="cc-common_MeetingEvent-module_compact_gqFxbiq5",bv={content:XJ,fullWidth:QJ,compact:JJ},eee=({meeting:t,fullWidth:e,compact:n})=>{const{t:r}=lt();return S.jsx("div",{role:"listitem",className:ke(bv.content,{[bv.fullWidth]:e,[bv.compact]:n}),children:S.jsx(mn,{icon:S.jsx(Pw,{}),variant:"info",children:S.jsx(qr,{text:r("This conversation was flipped to a meeting"),time:t.createdAt})})})},tee="cc-common_ParticipantLeftConversationEvent-module_content_XNbd6pCh",nee="cc-common_ParticipantLeftConversationEvent-module_fullWidth_CAFK8jFw",ree="cc-common_ParticipantLeftConversationEvent-module_compact_igC2uhyX",Sv={content:tee,fullWidth:nee,compact:ree},iee=({event:t,fullWidth:e,compact:n,participant:r,participantMetadataContactInformation:i})=>{const{t:s}=lt(),c=RA(r??i,!r),f=c===""?s("This conversation was closed by the user"):s("This conversation was closed by {{participantName}}",{participantName:c});return S.jsx("div",{role:"listitem",className:ke(Sv.content,{[Sv.fullWidth]:e,[Sv.compact]:n}),children:S.jsx(mn,{icon:S.jsx(ws,{}),variant:"danger",children:S.jsx(qr,{text:f,time:t.createdAt})})})},aee="cc-common_ResolutionEvent-module_content_wfq3g1VC",oee="cc-common_ResolutionEvent-module_fullWidth_eE45--rn",see="cc-common_ResolutionEvent-module_compact_QgGHaqKl",lee="cc-common_ResolutionEvent-module_details_JEmTHkgN",Ah={content:aee,fullWidth:oee,compact:see,details:lee},uee=({currentUserId:t,by:e,resolve:n,fullWidth:r,compact:i,displayFullDate:s})=>{const{t:u}=lt(),c=e!=null&&e.id?(e==null?void 0:e.id)===t?u("This conversation was resolved by you"):u("This conversation was resolved by {{by}}",{by:Lr(e)}):u("This conversation was resolved");return S.jsx("div",{role:"listitem",className:ke(Ah.content,{[Ah.fullWidth]:r,[Ah.compact]:i}),children:S.jsxs(mn,{variant:"success",icon:S.jsx(bw,{}),children:[S.jsx(qr,{text:c,time:n.createdAt,displayFullDate:s}),n.summary&&S.jsx("p",{className:Ah.details,children:n.summary})]})})},LE={},cee=({onClick:t,className:e,style:n,children:r})=>S.jsx("div",{className:LE["scroll-btn-container"],children:S.jsx("button",{style:n,className:Ni(LE["scroll-btn"],e),"data-test":"scroll-button",onClick:t,children:r})}),dee="cc-common_SurveyEvent-module_content_oJGUIYSo",fee="cc-common_SurveyEvent-module_fullWidth_yKM35gVg",hee="cc-common_SurveyEvent-module_compact_L85kJH-X",gee="cc-common_SurveyEvent-module_alert_icEWsEqI",pee="cc-common_SurveyEvent-module_rating_pWgS9M3S",mee="cc-common_SurveyEvent-module_ratingQuestion_EaDLPtbD",vee="cc-common_SurveyEvent-module_feedbackResponse_--0AWREA",yee="cc-common_SurveyEvent-module_feedbackQuestion_HFasph2t",bee="cc-common_SurveyEvent-module_surveySent_75il1kCS",See="cc-common_SurveyEvent-module_alreadyRated_OmRS0VPC",xee="cc-common_SurveyEvent-module_button_iX5VfgIk",or={content:dee,fullWidth:fee,compact:hee,alert:gee,rating:pee,ratingQuestion:mee,feedbackResponse:vee,feedbackQuestion:yee,surveySent:bee,alreadyRated:See,button:xee},wR=({children:t,fullWidth:e,compact:n})=>S.jsx("div",{role:"listitem",className:ke(or.content,{[or.fullWidth]:e,[or.compact]:n}),children:t}),$ee=({surveyInfo:t,fullWidth:e,compact:n})=>S.jsx(wR,{fullWidth:e,compact:n,children:S.jsx(mn,{className:or.alert,icon:S.jsx(uu,{style:{marginTop:0}}),variant:"info",children:S.jsx("div",{children:S.jsx(qr,{text:S.jsx(Eee,{surveyInfo:t}),time:t.createdAt})})})}),Eee=({surveyInfo:{feedbackQuestion:t,response:e}})=>S.jsxs(S.Fragment,{children:[S.jsx(Ht,{className:or.feedbackQuestion,variant:"caption-medium",children:t}),S.jsx(Ht,{className:or.feedbackResponse,children:S.jsx("q",{children:e})})]}),Cee=({surveyInfo:t,fullWidth:e=!1,compact:n=!1})=>{const{positiveAnswer:r,negativeAnswer:i,question:s,rating:u,response:c,createdAt:f}=t,{t:h}=lt();return S.jsxs(S.Fragment,{children:[c&&S.jsx($ee,{surveyInfo:t,compact:n,fullWidth:e}),r&&S.jsxs(S.Fragment,{children:[u&&S.jsx(_ee,{rating:u,negativeAnswer:i,positiveAnswer:r}),S.jsx(wR,{fullWidth:e,compact:n,children:S.jsx(mn,{icon:S.jsx(sd,{style:{marginTop:0}}),className:or.alert,variant:"info",children:S.jsx("div",{className:or.surveyInitialized,children:S.jsx(qr,{text:S.jsxs(S.Fragment,{children:[S.jsx(Ht,{className:or.surveySent,children:h("Satisfaction survey sent")}),S.jsx(Ht,{className:or.ratingQuestion,variant:"caption-medium",children:S.jsx("q",{children:s})})]}),time:f})})})})]})]})},_ee=({rating:t,positiveAnswer:e,negativeAnswer:n})=>{const r=()=>t===vd.POSITIVE,i=()=>t===vd.NEGATIVE,s=()=>t!==void 0,u=_.useRef(null);return S.jsxs("ul",{ref:u,className:or.rating,children:[S.jsx("li",{children:S.jsx(lr,{variant:r()?"primary":"secondary",className:ke(or.button,s()&&or.alreadyRated),children:e.answer})}),S.jsx("li",{children:S.jsx(lr,{variant:i()?"primary":"secondary",className:ke(or.button,s()&&or.alreadyRated),children:n.answer})})]})},Tee="cc-common_UnassignmentEvent-module_content_ymvBymzR",wee="cc-common_UnassignmentEvent-module_fullWidth_g-TbHDru",Aee="cc-common_UnassignmentEvent-module_compact_RidjJFak",xv={content:Tee,fullWidth:wee,compact:Aee},Oee=({currentUserId:t,unassign:e,fullWidth:n,compact:r,displayFullDate:i})=>{const{t:s}=lt(),u=t===e.unassignedFrom.id?!e.unassignedBy||t===e.unassignedBy.id?s("This conversation was unassigned from you"):s("This conversation was unassigned from you by {{by}}",{by:Lr(e.unassignedBy)}):!e.unassignedBy||t===e.unassignedBy.id?s("This conversation was unassigned from {{from}}",{from:Lr(e.unassignedFrom)}):s("This conversation was unassigned from {{from}} by {{by}}",{from:Lr(e.unassignedFrom),by:Lr(e.unassignedBy)});return S.jsx("div",{role:"listitem",className:ke(xv.content,{[xv.fullWidth]:n,[xv.compact]:r}),children:S.jsx(mn,{icon:S.jsx(Iw,{}),variant:"warning",children:S.jsx(qr,{text:u,time:e.createdAt,displayFullDate:i})})})},Ree="cc-common_WebChatAfterHoursMessageEvent-module_content_Kxzm1N0f",Nee="cc-common_WebChatAfterHoursMessageEvent-module_fullWidth_YYwAWBy5",Dee="cc-common_WebChatAfterHoursMessageEvent-module_compact_s5eadCGl",$v={content:Ree,fullWidth:Nee,compact:Dee},Mee=({fullWidth:t,compact:e,event:n,color:r})=>{let i=null;return r&&(i={backgroundColor:"var(--goto-background-color-default)",borderColor:r,"--goto-icon-color":r}),S.jsx("div",{role:"listitem",className:ke($v.content,{[$v.fullWidth]:t,[$v.compact]:e}),children:S.jsx(mn,{icon:S.jsx(C4,{}),variant:"info",style:i,children:n.afterHoursMessage})})},Iee="cc-common_WebChatSmartResponseSelectQuestionEvent-module_options_etyaIlug",Lee="cc-common_WebChatSmartResponseSelectQuestionEvent-module_option_mAQc4Djo",kee="cc-common_WebChatSmartResponseSelectQuestionEvent-module_alreadyPicked_B-5myBnE",Pee="cc-common_WebChatSmartResponseSelectQuestionEvent-module_button_U0XvxID8",Oh={options:Iee,option:Lee,alreadyPicked:kee,button:Pee},jee=({color:t,options:e,onSmartResponsesSubmit:n,disabled:r})=>{let i=null;const s=_.useRef(null),[u,c]=_.useState(null);t&&(i={alignItems:"center",backgroundColor:"var(--goto-background-color-default)",borderColor:t,"--goto-icon-color":t});const f={...i,"--goto-icon-color":t,"--goto-border":t,"--goto-interactive-01":t,"--goto-link":`var(--goto-${Bn})`,"--goto-text-06":Ca(qi,t,Bn,s.current)&&`var(--goto-${Bn})`};return S.jsx("ul",{ref:s,className:ke(Oh.options),children:e.map(({reference:h,label:p})=>S.jsx("li",{className:Oh.option,children:S.jsx(lr,{variant:u===h+""?"primary":"secondary",className:ke(Oh.button,(u||r)&&Oh.alreadyPicked),onClick:()=>{c(h),n==null||n(p)},disabled:r||u&&u!==h+"",style:f,children:p})},h))})},Fee="cc-common_WebChatSurveyEvent-module_content_LDBafG1m",Hee="cc-common_WebChatSurveyEvent-module_container_O3WzF5w2",Bee="cc-common_WebChatSurveyEvent-module_alert_DgNi26Nw",Uee="cc-common_WebChatSurveyEvent-module_rating_8ztX-Ev9",zee="cc-common_WebChatSurveyEvent-module_webChatFeedbackResponse_0ff-A-pu",Vee="cc-common_WebChatSurveyEvent-module_feedbackQuestion_hYTU1Iak",qee="cc-common_WebChatSurveyEvent-module_sendMessageButton_swYd3quG",Gee="cc-common_WebChatSurveyEvent-module_textareaButton_gDIRx2D6",Wee="cc-common_WebChatSurveyEvent-module_textarea_1-7esHec",Zee="cc-common_WebChatSurveyEvent-module_alreadyRated_G9xM05qc",Yee="cc-common_WebChatSurveyEvent-module_button_jC5GktwP",Hn={content:Fee,container:Hee,alert:Bee,rating:Uee,webChatFeedbackResponse:zee,feedbackQuestion:Vee,sendMessageButton:qee,textareaButton:Gee,textarea:Wee,alreadyRated:Zee,button:Yee},m5=({children:t,className:e})=>S.jsx("div",{role:"listitem",className:ke(Hn.content,e),children:t}),Kee=({style:t,surveyInfo:e})=>S.jsx(m5,{children:S.jsx(mn,{className:Hn.alert,icon:S.jsx(uu,{style:{marginTop:0}}),variant:"info",style:t,children:S.jsx(Xee,{surveyInfo:e})})}),Xee=({surveyInfo:{feedbackQuestion:t,response:e}})=>S.jsxs("div",{children:[S.jsx(Ht,{className:Hn.feedbackQuestion,children:t}),S.jsx(Ht,{className:Hn.webChatFeedbackResponse,variant:"caption-medium",children:S.jsx("q",{children:e})})]}),Qee=({style:t,onSurveyFeedbackSubmit:e,surveyInfo:{feedbackQuestion:n,disabled:r}})=>S.jsx(m5,{className:Hn.container,children:S.jsx(mn,{className:Hn.alert,icon:S.jsx(uu,{style:{marginTop:0}}),variant:"info",style:t,children:S.jsxs(S.Fragment,{children:[S.jsx(Ht,{className:Hn.feedbackQuestion,children:n}),S.jsx(mA,{initialValues:{surveyFeedback:""},enableReinitialize:!0,onSubmit:({surveyFeedback:i})=>e(i),children:i=>S.jsx(Jee,{disabled:r,...i})})]})})}),Jee=({isSubmitting:t,submitForm:e,disabled:n})=>{const{values:r,setFieldValue:i}=pA(),u=Mr(r,"surveyFeedback").length>0,{t:c}=lt(),[f,h]=_.useState(!1);l3(v=>{f&&!v.shiftKey&&(v.preventDefault(),u&&e())},[Es.ENTER]);const p=t||n;return S.jsx("div",{className:Hn.textareaButton,children:S.jsx(uw,{className:Hn.textarea,resize:"none",onFocus:()=>h(!0),onBlur:()=>h(!1),onChange:v=>i("surveyFeedback",v.target.value),disabled:n||p,fullwidth:!0,name:"surveyFeedback",placeholder:c("Leave a comment..."),children:S.jsx(S.Fragment,{children:S.jsx($r,{className:Hn.sendMessageButton,label:"Send comment",disabled:p,onClick:()=>{u&&e()},size:"small",children:p?S.jsx(Dw,{}):S.jsx(T4,{})})})})})},ete=t=>{let e=null;t.color&&(e={alignItems:"center",backgroundColor:"var(--goto-background-color-default)",borderColor:t.color,"--goto-icon-color":t.color});const{response:n,feedbackQuestion:r}=t.surveyInfo;return S.jsx(S.Fragment,{children:n?S.jsx(Kee,{...t,style:e}):r?S.jsx(Qee,{...t,style:e}):null})},tte=({color:t,surveyInfo:e,onSurveyRatingClick:n,onSurveyFeedbackSubmit:r})=>{let i=null;t&&(i={alignItems:"center",backgroundColor:"var(--goto-background-color-default)",borderColor:t,"--goto-icon-color":t});const{positiveAnswer:s,negativeAnswer:u,question:c,rating:f,feedbackQuestion:h,disabled:p}=e;return S.jsxs(S.Fragment,{children:[h&&S.jsx(ete,{color:t,surveyInfo:e,onSurveyFeedbackSubmit:r},e.id),s&&S.jsxs(S.Fragment,{children:[S.jsx(nte,{color:t,rating:f,style:i,disabled:p,negativeAnswer:u,positiveAnswer:s,onSurveyRatingClick:n}),S.jsx(m5,{children:S.jsx(mn,{icon:S.jsx(sd,{style:{marginTop:0}}),className:Hn.alert,variant:"info",style:i,children:c})})]})]})},nte=({rating:t,style:e,disabled:n,positiveAnswer:r,negativeAnswer:i,onSurveyRatingClick:s,color:u})=>{const c=()=>t===vd.POSITIVE,f=()=>t===vd.NEGATIVE,h=()=>t!==void 0,p=_.useRef(null),v=b=>!h()&&!n&&(s==null?void 0:s(b)),y={...e,"--goto-icon-color":u,"--goto-border":u,"--goto-interactive-01":u,"--goto-link":`var(--goto-${Bn})`,"--goto-text-06":Ca(qi,u,Bn,p.current)&&`var(--goto-${Bn})`};return S.jsxs("ul",{ref:p,className:ke(Hn.rating,Hn.webChatRating),children:[S.jsx("li",{children:S.jsx(lr,{variant:c()?"primary":"secondary",style:y,className:ke(Hn.button,h()&&Hn.alreadyRated),onClick:()=>v(r.reference),disabled:n||f(),children:r.answer})}),S.jsx("li",{children:S.jsx(lr,{variant:f()?"primary":"secondary",style:y,className:ke(Hn.button,h()&&Hn.alreadyRated),onClick:()=>v(i.reference),disabled:n||c(),children:i.answer})})]})},rte=(t,e)=>{var n,r;return((n=t==null?void 0:t.from)==null?void 0:n.id)===((r=e==null?void 0:e.from)==null?void 0:r.id)&&t.direction===e.direction&&AR(t,e)},AR=(t,e)=>{const n=Ve.fromISO(t.createdAt).diff(Ve.fromISO(e.createdAt),"minutes").toObject();return n!=null&&n.minutes?n.minutes<=0&&n.minutes>=-1:!1},kE=t=>{const e=[];let n,r=[];return t==null||t.forEach(i=>{xo(i)?(n&&!rte(i,n)&&(r.length>1&&e.push(r),r=[]),r.push(i.id)):r=[],n=i}),r.length>1&&e.push(r),e},Ev=t=>{var e,n;const r=t==null?void 0:t.some(s=>NA(s)||DA(s)),i=(n=(e=t==null?void 0:t.filter(xo))==null?void 0:e.filter(s=>(s==null?void 0:s.direction)===ir.INBOUND))==null?void 0:n[0];return!r&&i?(Date.now().valueOf()-new Date(i.createdAt).valueOf())/1e3:0},Cv=(t,e)=>{let n=null;return e.some(r=>{const i=r.indexOf(t);return i!==-1&&(n={group:r,index:i}),i!==-1}),n},PE=t=>{if(t!=null&&t.current){const e=t==null?void 0:t.current.scrollHeight,n=t==null?void 0:t.current.clientHeight,r=e-n;t.current.scrollTop=r>0?r:0}},jE=-150,ite=({agents:t,className:e,color:n,compact:r,conversationId:i,createdBy:s,currentUser:u,customAvatarIconUrl:c,events:f,fileBlobsWithId:h,fullWidth:p,genericAvatarIconId:v,getFileBlob:y,isWebChat:b,lastMessageReadAt:$,messagesRef:E,onAssign:A,onReadIndicator:T,onRetry:R,participant:D,participantMetadataContactInformation:M,source:O,thumbnailSize:L,onSurveyRatingClick:z,onSurveyFeedbackSubmit:V,onCSATScoreSubmit:Y,onSmartResponsesSubmit:te,botName:W,botAvatar:ce})=>{var B;const[Ee,pe]=_.useState(kE(f)),{t:H}=lt(),[Q,he]=_.useState(!1),[fe,w]=_.useState(!0),[F,ie]=_.useState(Ev(f));E=E??_.useRef(),_.useEffect(()=>{ie(Ev(f))},[f]),_.useEffect(()=>{const se=setTimeout(()=>{ie(Ev(f))},3e4);return()=>clearTimeout(se)});const J=()=>{var se;((se=E==null?void 0:E.current)==null?void 0:se.scrollTop)>=jE?(PE(E),he(!1)):he(!0)},be=se=>{const pt=E==null?void 0:E.current.clientHeight,Ke=se.target.scrollTop,Je=se.target.clientHeight;pt-(Ke+Je)<200===!1?fe===!0&&he(!0):w(!0)};_.useEffect(()=>{var se,pt;pe(kE(f)),J(),((se=E==null?void 0:E.current)==null?void 0:se.scrollTop)>=0&&(T==null||T());const Ke=()=>{var Je,Ut;((Je=E==null?void 0:E.current)==null?void 0:Je.scrollTop)>=0&&(T==null||T()),((Ut=E==null?void 0:E.current)==null?void 0:Ut.scrollTop)>=jE&&he(!1)};return(pt=E==null?void 0:E.current)==null||pt.addEventListener("scroll",Ke,{passive:!0}),()=>{var Je;(Je=E==null?void 0:E.current)==null||Je.removeEventListener("scroll",Ke)}},[f,T]);const me=()=>{PE(E),he(!1)},Ce=(B=f==null?void 0:f.find(se=>xo(se)&&se.direction===ir.OUTBOUND&&new Date($).getTime()>=new Date(se.createdAt).getTime()))==null?void 0:B.id,ve=f==null?void 0:f[f.length-1],Me=o3(ve),qe=ZK(YK(f)),Kt=(se,pt)=>!b||xo(se)&&se.direction===ir.OUTBOUND||s3(se)||N3(se)||c8(se)?null:xo(se)&&se.from?100:pt!==qe.length-1&&AR(qe[pt+1],se)?1e3-pt*200:100;return S.jsxs("div",{ref:E,className:ke(KJ.messages,e),onScroll:be,role:"list","aria-label":"messages",children:[Q&&S.jsx(cee,{onClick:me,children:H("Jump to latest message")}),(O===md.FACEBOOK||O===md.INSTAGRAM)&&S.jsx(ZJ,{compact:r,fullWidth:p,participantWaitTime:F,source:O}),A&&S.jsx(LZ,{icon:S.jsx(od,{}),body:H("Assign conversation to reply"),title:H("This conversation is unassigned"),actions:[S.jsx(lr,{id:"assign-conversation-button",variant:"primary",leadingIcon:S.jsx(_4,{}),onClick:()=>A(),children:H("Assign to me")},"assign-conversation")]}),qe.map((se,pt)=>S.jsx(PZ,{timeout:b?Kt(se,pt):null,children:xo(se)?S.jsx(V3,{agents:t,color:n,compact:r,conversationId:i,currentUser:u,customAvatarIconUrl:c,entry:Cv(se.id,Ee),fileBlobsWithId:h,fullWidth:p,genericAvatarIconId:v,getFileBlob:y,isLastOutboundReadMessageEvent:Ce===se.id,isWebChat:b,lastMessageReadAt:$,message:se,onSend:R,participant:D,participantMetadataContactInformation:M,thumbnailSize:L,botName:W||(se==null?void 0:se.assistantName),botAvatar:ce,displayFullDate:!0},se.id):o3(se)?S.jsx(yQ,{isStartedByCampaign:Me&&se.id===ve.id,compact:r,fullWidth:p,campaignDetails:se,displayFullDate:!0},se.id):IV(se)?S.jsx($X,{compact:r,fullWidth:p,currentUserId:u.id,assign:se,displayFullDate:!0},se.id):LV(se)?S.jsx(Oee,{compact:r,fullWidth:p,currentUserId:u.id,unassign:se,displayFullDate:!0},se.id):GV(se)?S.jsx(vX,{compact:r,event:se,participantMetadataContactInformation:M,participant:D,fullWidth:p},se.id):NA(se)?S.jsx(uee,{compact:r,fullWidth:p,currentUserId:u.id,by:se.resolvedBy,resolve:se,displayFullDate:!0},se.id):PV(se)?S.jsx(eee,{compact:r,meeting:se,fullWidth:p},se.id):kV(se)?S.jsx(wX,{compact:r,call:se,fullWidth:p},se.id):DA(se)?S.jsx(iee,{compact:r,event:se,fullWidth:p,participant:D,participantMetadataContactInformation:M},se.id):jV(se)?S.jsx(kJ,{compact:r,fullWidth:p,cobrowse:se,color:n,agents:t,customAvatarIconUrl:c,genericAvatarIconId:v,entry:Cv(se.id,Ee),currentUser:u},se.id):qV(se)?S.jsx(Mee,{compact:r,fullWidth:p,color:n,event:se},se.id):c8(se)?S.jsx($Q,{compact:r,fullWidth:p,color:n},se.id):s3(se)?S.jsx(Cee,{surveyInfo:se,fullWidth:p,compact:r},se.id):N3(se)?S.jsx(tte,{color:n,surveyInfo:se,onSurveyRatingClick:z,onSurveyFeedbackSubmit:V},se.id):D3(se)?S.jsx(jee,{disabled:se.disabled,color:n,options:se.options,onSmartResponsesSubmit:te},se.id):UV(se)?S.jsx(V3,{compact:r,color:n,agents:t,customAvatarIconUrl:c,genericAvatarIconId:v,fullWidth:p,entry:Cv(se.id,Ee),conversationId:se.conversationId,participant:D,participantMetadataContactInformation:M,message:WK(se),currentUser:u,botName:W||(se==null?void 0:se.assistantName),botAvatar:ce||(se==null?void 0:se.avatar)}):WV(se)?S.jsx(dX,{event:se,compact:r,fullWidth:p,displayFullDate:!0},se.id):GK(se)?S.jsx(IZ,{color:n,compact:r,fullWidth:p,onSubmit:Y}):S.jsx(S.Fragment,{})},se.id)),s&&S.jsx(BJ,{compact:r,fullWidth:p,currentUserId:u.id,createdBy:s,displayFullDate:!0})]})},as={typeColorDefault:"var(--goto-type-color-default)",typeColorInverted:"var(--goto-type-color-inverted)",typeColorBrandDefault:"var(--goto-type-color-brand-default)",iconColorBrandDefault:"var(--goto-icon-color-brand-default)",interactiveColorPrimaryDefault:"var(--goto-interactive-color-primary-default)"},$c=t=>{const e=/var\(([^)]+)\)/,n=t.match(e);return n?n[1]:""},OR=_.forwardRef(({colorOverride:t,className:e,children:n},r)=>{const i=_.useRef(null),s=r||i,u=_.useMemo(()=>t?{style:{[$c(as.interactiveColorPrimaryDefault)]:t,[$c(as.typeColorBrandDefault)]:t,[$c(as.iconColorBrandDefault)]:t,[$c(as.typeColorInverted)]:Ca(qi,t,Bn,s.current)&&as.typeColorDefault,[$c(as.typeColorBrandDefault)]:Ca(Bn,t,qi,s.current)&&as.typeColorDefault}}:{},[t,s]);return S.jsx("div",{className:e,...u,ref:r,children:n})});OR.displayName="ThemeOverridesProvider";const ate="cc-common_FilePicker-module_label_lB5p2Dq0",ote="cc-common_FilePicker-module_input_iyGzW0TH",FE={label:ate,input:ote},HE=["application/json","application/ogg","application/pdf","application/rtf","application/zip","application/x-tar","application/xml","application/gzip","application/x-bzip2","application/x-gzip","application/smil","application/javascript","audio/mp4","audio/mpeg","audio/ogg","audio/flac","audio/webm","audio/wav","audio/amr","audio/3gpp","image/bmp","image/gif","image/jpg","image/jpeg","image/pjpeg","image/png","image/svg+xml","image/tiff","image/webp","image/x-icon","text/css","text/csv","text/html","text/calendar","text/plain","text/javascript","text/vcard","text/vnd.wap.wml","text/xml","video/avi","video/mp4","video/mpeg","video/ogg","video/quicktime","video/webm","video/x-ms-wmv","video/x-flv"],BE="base64,",ste=async t=>{const e=new FileReader;return new Promise((n,r)=>{e.readAsDataURL(t),e.onload=()=>{const i=e.result,s=i.slice(i.indexOf(BE)+BE.length);n({file:t,filename:t.name,contentType:t.type,content:s,size:t.size,id:crypto.randomUUID()})},e.onerror=()=>{r()}})},lte=async(t,e)=>{const n=t.currentTarget,r=n.files;if(r!=null&&r.length&&e){const i=await Promise.all([...r].map(ste));e(i)}n.value=""},ute=({color:t,onAddFiles:e,disabled:n})=>{const r=_.useMemo(()=>HE.join(", "),[HE]),{t:i}=lt(),s=gt.useRef(null);return S.jsxs("label",{className:ke(FE.label),"aria-label":i("File picker"),"data-testid":"file-picker-label",children:[S.jsx($r,{disabled:n,onClick:()=>{s.current&&s.current.click()},children:S.jsx(Tw,{style:!n&&t&&{color:t}})}),S.jsx("input",{ref:s,tabIndex:-1,type:"file",disabled:n,accept:r,onChange:u=>lte(u,e),className:ke(FE.input),"data-testid":"file-picker-input",multiple:!0})]})},cte="cc-common_index-module_divTextArea_nIq-YLRH",dte="cc-common_index-module_textArea_2-dsQiat",fte="cc-common_index-module_thumbNail_5lR2AhUd",_v={divTextArea:cte,textArea:dte,thumbNail:fte},hte="cc-common_ChipTabs-module_tab_y9-VSsVd",gte="cc-common_ChipTabs-module_small_QXKz1KZr",pte="cc-common_ChipTabs-module_withCount_hwqK5fB9",mte="cc-common_ChipTabs-module_count_BSJH0CoI",vte="cc-common_ChipTabs-module_content_1oQukPgI",yte="cc-common_ChipTabs-module_tabs_aKK6o93R",uo={tab:hte,small:gte,withCount:pte,count:mte,content:vte,tabs:yte},bte=({size:t,selected:e,tabs:n,onChange:r,ariaLabel:i})=>S.jsxs(S.Fragment,{children:[S.jsx("span",{className:uo.radioGroupLabel,"aria-label":i,id:"radio-group-label"}),S.jsx(PL,{labelId:"radio-group-label",value:e,className:uo.tabs,onChange:s=>{const u=s.target;u.checked===void 0&&r(u.value)},orientation:"horizontal",children:n.map(s=>S.jsxs(gt.Fragment,{children:[S.jsx(aw,{id:s.id,size:t??"medium",className:ke(uo.tab,s.id===e&&uo.selected,t==="small"&&uo.small,(s.count||s.count===0)&&uo.withCount),type:"radio",value:s.id,children:S.jsxs("span",{className:uo.content,children:[S.jsx("span",{"data-test-id":`ChipTab-label_${s.id}`,children:s.label}),(s.count||s.count===0)&&S.jsx(rw,{label:"Count","aria-labelledby":s.id,className:ke(uo.count),"data-test-id":`ChipTab-count_${s.id}`,variant:"secondary",children:s.count>99?"99+":s.count})]})}),!!s.tooltip&&S.jsx(Ql,{position:"top-center",triggerId:s.id,children:s.tooltip})]},s.id))})]}),Ste="cc-common_TagsSelect-module_tagsSelect_29gGpHPE",ga={tagsSelect:Ste},xte=({tags:t=[],selectedTags:e=[],noBorder:n=!1,canCreateNewTag:r,withIcon:i=!0,withSelectButtonIcon:s=!0,onAddTag:u,onRemoveTag:c,onCreateNewTag:f,chipSize:h="small",entityName:p,buttonLabel:v,buttonPosition:y="right",className:b,popoverZIndex:$=501})=>{const{t:E}=lt(),[A,T]=_.useState(!1),[R,D]=_.useState(""),[M,O]=_.useState(t),L=p??E("Tag"),z=_.useRef();_.useEffect(()=>{O(t.filter(B=>B.name.toLowerCase().includes(R.toLowerCase())).filter(B=>!e.find(({id:Ee})=>Ee===B.id)))},[t,R,e]),_.useEffect(()=>{A||D("")},[A]),_.useEffect(()=>{A&&z.current&&z.current.focus()},[A,z.current]);const V=B=>Ee=>{T(pe=>!pe),Ee.stopImmediatePropagation(),u(B)},Y=()=>{f==null||f(R),T(B=>!B)},te=R===""||t.some(B=>B.name.toLowerCase()===R.toLowerCase()),W=B=>{B.key===Es.ESCAPE&&(B.preventDefault(),T(Ee=>!Ee)),B.key===Es.ENTER&&r&&!te?Y():Es[B.key]||B.stopPropagation()},ce=()=>{const B={entityNameLabel:L.toLocaleLowerCase()};return E(r?"Search or create {{entityNameLabel}}":"Search {{entityNameLabel}}",B)};return S.jsxs("div",{className:ke(ga.tagsSelect,{[ga.tagsSelect_noBorder]:n},b),children:[i&&S.jsx("div",{className:ga.tagsSelect__leadingIcon,children:S.jsx(Mw,{})}),S.jsxs("div",{className:ke(ga.tagsSelect__chips,{[ga.tagsSelect__chips_triggerFirst]:y==="left"}),children:[(e==null?void 0:e.length)>0?e.map(B=>S.jsx(aw,{size:h,closable:!0,onClose:()=>c(B.id),children:B.name},B.id)):null,S.jsx(lr,{id:"select-tag-trigger","aria-controls":A?"menu-list-tags":void 0,"aria-haspopup":"true",variant:"tertiary",size:"small",leadingIcon:s?S.jsx(x4,{}):null,children:v??E("Add tag")}),S.jsxs(w1,{triggerId:"select-tag-trigger","data-testid":"tag-select-popover",onChange:B=>{T(B.detail.isOpen)},isOpen:A,position:"bottom-start",menu:!0,width:250,zIndex:$,children:[S.jsxs("div",{className:ga.tagsSelect__search,children:[S.jsx(Il,{ref:z,fullwidth:!r,value:R,placeholder:ce(),fieldsize:"small",onChange:B=>D(B.currentTarget.value),onKeyDown:W}),r&&S.jsx($r,{size:"small",disabled:te,onClick:Y,children:S.jsx(E4,{})})]}),M.length===0?S.jsx(Ht,{variant:"body-small",color:"type-color-default",className:ga.tagsSelect__empty,children:E("{{entityNameLabel}} not found",{entityNameLabel:L})}):S.jsx(ow,{className:ga.tagsSelect__menu,children:M.map(B=>S.jsx(sw,{className:ke(ga.tagMenuItem),onClick:V(B.id),children:B.name},B.id))})]})]})]})};var fs=(t=>(t.ALL="ALL",t.PRIVATE="PRIVATE",t.PUBLIC="PUBLIC",t))(fs||{});const os={},$te=({categories:t=[],preSavedMessages:e,onMessageClicked:n,psmSearch:r,updatePsmSearch:i,onIconClicked:s,onCloseClicked:u,open:c=!1,disabled:f,color:h})=>{const[p,v]=_.useState([]),[y,b]=_.useState(fs.ALL),[$,E]=_.useState(e);_.useEffect(()=>{let V;if(y===fs.PRIVATE?V=e==null?void 0:e.filter(Y=>Y.isPrivate):y===fs.PUBLIC?V=e==null?void 0:e.filter(Y=>!Y.isPrivate):V=e,p.length>0&&(V=V.filter(Y=>{const te=Y.categories.map(({name:W})=>W);return p.find(W=>te.includes(W))})),r.length>0){const Y=r.toLowerCase();V=V.filter(({message:te,shortcut:W})=>te.toLowerCase().includes(Y)||W.toLowerCase().includes(Y))}E(V)},[y,p,r,e]);const{t:A}=lt(),T=_.useMemo(()=>({[fs.ALL]:A("All"),[fs.PRIVATE]:A("Private"),[fs.PUBLIC]:A("Public")}),[A]),R=V=>b(V),D=V=>{v(Y=>Y.filter(te=>te!==V))},M=V=>{v(Y=>[...Y,t.find(te=>te===V)])},O=V=>i(V.target.value),L=V=>{n(V)},z=($==null?void 0:$.length)>0;return S.jsxs(S.Fragment,{children:[S.jsx($r,{id:"pre-saved-messages-trigger",disabled:f,onClick:s,children:c?S.jsx(O1,{style:!f&&h&&{color:h}}):S.jsx(od,{style:!f&&h&&{color:h}})}),S.jsxs(w1,{arrow:!0,isOpen:c,onChange:V=>{V.detail.isOpen||u()},triggerId:"pre-saved-messages-trigger",width:900,position:"top-start",title:A("Pre-saved text messages"),children:[S.jsxs("div",{className:os.preSavedMessagesPicker__filters,children:[S.jsx("div",{className:os.preSavedMessagesPicker__privacy,children:S.jsx(bte,{selected:y,tabs:Object.entries(T).map(([V,Y])=>({id:V,label:Y})),onChange:R})}),t.length>0&&S.jsx(xte,{className:os.preSavedMessagesPicker__categories,noBorder:!0,chipSize:"small",tags:t.map(V=>({id:V,name:V})),onAddTag:M,onRemoveTag:D,withIcon:!1,withSelectButtonIcon:!1,selectedTags:p.map(V=>({id:V,name:V})),buttonPosition:"left",buttonLabel:A("Categories"),entityName:A("Category")}),S.jsx(cw,{className:os.preSavedMessagesPicker__search,placeholder:A("Search by word..."),onChange:O,value:r})]}),S.jsx("div",{className:ke(os.preSavedMessagesPicker__messages,{[os.preSavedMessagesPicker__messages_empty]:!z}),children:z?S.jsx(ow,{children:$.map(V=>S.jsxs(sw,{onClick:()=>L(V),className:os.preSavedMessagesPicker__message,children:[S.jsxs(Ht,{variant:"body-small",color:"type-color-secondary",children:["/",V.shortcut]}),S.jsx(sU,{children:V.message})]},V.id))}):S.jsx(S4,{icon:S.jsx(od,{}),title:A("No pre-saved messages found"),children:A("Try a different search")})})]})]})},Sr={},Ete=({surveys:t=[],onSurveyClicked:e,onSurveyPreviewClicked:n,onCreateSurveyClicked:r,disabled:i,color:s})=>{const[u,c]=_.useState(""),[f,h]=_.useState(!1),[p,v]=_.useState(t),y=!!r;_.useEffect(()=>{let D=t;if(u.length>0){const M=u.toLowerCase();D=t.filter(({title:O})=>O.toLowerCase().includes(M))}v(D)},[u,t]);const{t:b}=lt(),$=D=>c(D.target.value),E=D=>{e(D),h(!1)},A=D=>{n(D)},T=()=>{r==null||r()},R=(p==null?void 0:p.length)>0;return S.jsxs(S.Fragment,{children:[S.jsx($r,{id:"add-survey-trigger",disabled:i,onClick:()=>h(D=>!D),children:S.jsx(sd,{style:!i&&s&&{color:s}})}),S.jsxs(w1,{arrow:!0,triggerId:"add-survey-trigger",isOpen:f,onChange:D=>{D.detail.isOpen||h(!1)},width:900,position:"top-start",title:b("Add a survey"),children:[S.jsx(Ht,{variant:"heading-small",children:b("Add a survey")}),S.jsxs("div",{className:ke(Sr.surveyComplexPicker__subTitle,y&&Sr.surveyComplexPicker__subTitle_withCreate),children:[S.jsx(Ht,{variant:"body-medium",color:"type-color-secondary",children:b("Send your customers surveys to get feedback on products, services, and their experience.")}),y&&S.jsx(lr,{variant:"secondary",leadingIcon:S.jsx(x4,{}),onClick:T,children:b("Create survey")})]}),S.jsx("div",{className:Sr.surveyComplexPicker__filters,children:S.jsx(cw,{className:Sr.surveyComplexPicker__search,placeholder:b("Search"),onChange:$,value:u})}),S.jsx("div",{className:ke(Sr.surveyComplexPicker__surveys,{[Sr.surveyComplexPicker__surveys_empty]:!R}),children:R?S.jsxs(zL,{className:Sr.surveyComplexPicker__table,children:[S.jsx(UL,{children:S.jsxs(Fx,{className:Sr.surveyComplexPicker__headerRow,children:[S.jsx(jx,{className:Sr.surveyComplexPicker__headerItem,disabled:!0,children:S.jsx("span",{className:Sr.surveyComplexPicker__headerCellContent,children:b("Survey name")})}),S.jsx(jx,{disabled:!0,className:Sr.surveyComplexPicker__preview,children:S.jsx("span",{className:Sr.surveyComplexPicker__headerCellContent,children:b("Preview")})})]})}),S.jsx(BL,{children:p.map(D=>S.jsxs(Fx,{children:[S.jsx(Px,{className:Sr.surveyComplexPicker__item,onClick:()=>E(D),children:D.title}),S.jsx(Px,{className:Sr.surveyComplexPicker__preview,children:S.jsx($r,{onClick:()=>A(D),children:S.jsx(Sw,{})})})]},D.id))})]}):S.jsx(S4,{icon:S.jsx(sd,{}),title:b("No surveys found"),children:b("Try a different search")})})]})]})},Cte=18,UE=34,_te=({message:t,canSend:e=!0,className:n,focused:r,disabled:i,formFileBlobsWithId:s,color:u,placeholder:c,showSurveys:f,surveys:h,showPreSavedMessages:p=!1,preSavedMessages:v,categories:y,showFiles:b,maxLines:$=Cte,pickerItems:E,backgroundColor:A="unset",isOutlined:T=!1,onFocus:R,onBlur:D,onAdd:M,onRemove:O,onChange:L,onSend:z,onTyping:V,onSurveyPreview:Y,onSurveyClicked:te,onCreateSurveyClicked:W})=>{const[ce,B]=_.useState(""),[Ee,pe]=_.useState(!1),H=_.useRef(null),Q=_.useRef(null),he=UE*$,{t:fe}=lt();_.useEffect(()=>{if(Q.current){const ve=Q.current.shadowRoot.getElementById("control");return H.current=window.setTimeout(()=>{if(ve&&(ve.style.height=UE+"px",(t==null?void 0:t.length)>0)){const Me=ve.offsetHeight-ve.clientHeight,qe=ve.scrollHeight+Me;ve.style.height="auto",ve.style.height=Math.min(he,qe)+"px"}},0),()=>{window.clearTimeout(H.current),H.current=void 0}}},[t]),_.useEffect(()=>{r&&Q.current.focus()},[r]),l3(()=>{r&&(L(""),document.activeElement.blur()),pe(!1)},[Es.ESCAPE]),l3(ve=>{r&&!ve.shiftKey&&(ve.preventDefault(),e&&t.trim()&&w())},[Es.ENTER]);const w=()=>{z()},F=ve=>{L(ve.message),r||Q.current.focus(),pe(!1)},ie=ve=>{te==null||te(ve),r||Q.current.focus()};_.useEffect(()=>{r&&(t.startsWith("/")?(pe(!0),B(t.substr(1))):pe(!1))},[t,Ee]);const J=ve=>B(ve),be=()=>pe(!Ee),me=i||!t&&!(s!=null&&s.length)||!e,Ce=XV({onTyping:V});return S.jsxs("div",{className:_v.divTextArea,style:{backgroundColor:A},onFocus:ve=>T&&(ve.currentTarget.style.outline="auto"),onBlur:ve=>T&&(ve.currentTarget.style.outline="none"),children:[S.jsx(uw,{ref:Q,className:ke(_v.textArea,n),value:t,onChange:ve=>L(ve.target.value),onFocus:R,onBlur:D,onInput:Ce,fullwidth:!0,disabled:i,rows:1,spellCheck:"true",lang:vn.language,placeholder:c,resize:"none",children:S.jsx("div",{className:_v.thumbNail,children:s==null?void 0:s.map(({id:ve,file:Me})=>S.jsx(Xh,{onRemove:()=>O(ve),fileBlob:Me,file:{name:Me.name,size:Me.size,contentType:Me.type}},ve))})}),S.jsxs(S.Fragment,{children:[E,p&&e&&S.jsx($te,{onMessageClicked:F,preSavedMessages:v,categories:y==null?void 0:y.map(ve=>ve.name),psmSearch:ce,updatePsmSearch:J,onIconClicked:be,onCloseClicked:()=>pe(!1),open:Ee,disabled:i,color:u}),f&&e&&S.jsx(Ete,{onSurveyClicked:ie,onSurveyPreviewClicked:ve=>Y==null?void 0:Y(ve),onCreateSurveyClicked:W,surveys:h,disabled:i,color:u}),b&&S.jsx(ute,{color:u,disabled:i,onAddFiles:ve=>M(ve)}),S.jsx($r,{disabled:me,onClick:w,size:"small",label:fe("Send"),children:S.jsx(T4,{style:!me&&u&&{color:u}})})]})]})},Tte="cc-common_index-module_root_Y8WefkgN",wte="cc-common_index-module_typingIndicator_YsXyD-OH",Ec={root:Tte,typingIndicator:wte},zE=({firstName:t,lastName:e,visible:n,className:r,viewingAs:i="client"})=>{const{t:s}=lt(),u=Lr({firstName:t,lastName:e});let c;return t?c=s("{{firstOrFullName}} is typing",{firstOrFullName:u}):i==="agent"?c=s("user is typing"):i==="client"&&(c=s("agent is typing")),S.jsx("div",{className:ke(Ec.root,r),children:n&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Ec.typingIndicator,children:[S.jsx("div",{className:Ec.ellipse1}),S.jsx("div",{className:Ec.ellipse2}),S.jsx("div",{className:Ec.ellipse3})]}),S.jsx(Ht,{color:"type-color-secondary",variant:"caption-small",children:c})]})})},Ate="cc-common_MessagesContent-module_content_HAATs7mm",Ote="cc-common_MessagesContent-module_noMessages_0Ujeqsra",Rte="cc-common_MessagesContent-module_footer_9B0CtR79",Nte="cc-common_MessagesContent-module_send_Bsv64Fw1",Dte="cc-common_MessagesContent-module_typingIndicator_KatAcgnJ",Ml={content:Ate,noMessages:Ote,footer:Rte,send:Nte,typingIndicator:Dte},Mte=1e4,Ite=({agents:t,agentTypingIndicatorEvent:e,canSend:n=!0,color:r,customAvatarIconUrl:i,fileBlobsWithId:s=[],genericAvatarIconId:u,getFileBlob:c,isWebChat:f=!1,language:h,lastMessageReadAt:p,messages:v,onAddFile:y,onChange:b,onRemoveFile:$,onRetry:E,onSend:A,onSendReadIndicator:T,onTyping:R,showFiles:D=!1,typingIndicatorEnabled:M,onCSATScoreSubmit:O,onSurveyFeedbackSubmit:L,onSurveyRatingClick:z,onSmartResponsesSubmit:V,botName:Y,botAvatar:te,footerOverride:W})=>{const[ce,B]=_.useState(""),[Ee,pe]=_.useState([]),[H,Q]=_.useState(!0),{t:he}=lt(),fe=_.useRef(),[w,F]=_.useState(!1);_.useEffect(()=>{const ve=setTimeout(()=>{F(!0)},Mte);return()=>clearTimeout(ve)},[]);const ie=_.useMemo(()=>n?w?!0:f&&Y?v.length>0:!0:!1,[n,f,Y,w,v.length]),J=_.useMemo(()=>!r||!fe.current?null:gO(kr(r),kr(ql(en.typeColorDefault,fe.current)),kr(ql(en.backgroundColorDefault,fe.current))),[r]),be=_.useCallback((ve,Me)=>{A(ve,Me),B(""),pe([])},[A]),me=_.useCallback(ve=>{B(ve),b==null||b(ve)},[b]),Ce=QV({conversationEvents:v,onSendReadIndicator:T});return S.jsxs(OR,{className:Ml.content,colorOverride:r,ref:fe,children:[(v==null?void 0:v.length)>0?S.jsx(ite,{lastMessageReadAt:p,onReadIndicator:T?()=>Ce(!0):void 0,color:r,agents:t,customAvatarIconUrl:i,genericAvatarIconId:u,fullWidth:!0,compact:!0,currentUser:{id:"",firstName:"",lastName:""},events:v,onRetry:E,fileBlobsWithId:s,getFileBlob:c,thumbnailSize:"medium",isWebChat:f,onCSATScoreSubmit:O,onSurveyRatingClick:z,onSurveyFeedbackSubmit:L,onSmartResponsesSubmit:V,botName:Y,botAvatar:te}):S.jsx("p",{className:Ml.noMessages,style:r&&{color:J},children:he("Type your message below",{lng:h})}),f&&Y&&v.length===0?S.jsx(zE,{viewingAs:"client",visible:!0,className:Ml.typingIndicator,firstName:Y}):M&&S.jsx(zE,{viewingAs:"client",visible:e==null?void 0:e.isTyping,className:Ml.typingIndicator,...e==null?void 0:e.agent}),W||S.jsx("footer",{className:Ml.footer,children:S.jsx(_te,{maxLines:10,color:r,canSend:ie,className:Ml.send,message:ce,showFiles:D,formFileBlobsWithId:Ee,onRemove:ve=>{$==null||$(ve),pe(Ee.filter(Me=>Me.id!==ve))},onAdd:ve=>{y==null||y(ve),pe(Ee.concat(ve.map(({file:Me,id:qe})=>({file:Me,id:qe}))))},focused:H,onChange:me,placeholder:he("Type here...",{lng:h}),onFocus:()=>Q(!0),onBlur:()=>Q(!1),onSend:()=>be(ce,Ee),onTyping:R})})]})},No=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();No.trustedTypes===void 0&&(No.trustedTypes={createPolicy:(t,e)=>e});const RR={configurable:!1,enumerable:!1,writable:!1};No.FAST===void 0&&Reflect.defineProperty(No,"FAST",Object.assign({value:Object.create(null)},RR));const $d=No.FAST;if($d.getById===void 0){const t=Object.create(null);Reflect.defineProperty($d,"getById",Object.assign({value(e,n){let r=t[e];return r===void 0&&(r=n?t[e]=n():null),r}},RR))}const nd=Object.freeze([]);function NR(){const t=new WeakMap;return function(e){let n=t.get(e);if(n===void 0){let r=Reflect.getPrototypeOf(e);for(;n===void 0&&r!==null;)n=t.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),t.set(e,n)}return n}}const Tv=No.FAST.getById(1,()=>{const t=[],e=[];function n(){if(e.length)throw e.shift()}function r(u){try{u.call()}catch(c){e.push(c),setTimeout(n,0)}}function i(){let c=0;for(;c1024){for(let f=0,h=t.length-c;ft});let wv=DR;const rd=`fast-${Math.random().toString(36).substring(2,8)}`,MR=`${rd}{`,v5=`}${rd}`,Et=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(wv!==DR)throw new Error("The HTML policy can only be set once.");wv=t},createHTML(t){return wv.createHTML(t)},isMarker(t){return t&&t.nodeType===8&&t.data.startsWith(rd)},extractDirectiveIndexFromMarker(t){return parseInt(t.data.replace(`${rd}:`,""))},createInterpolationPlaceholder(t){return`${MR}${t}${v5}`},createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(t){return``},queueUpdate:Tv.enqueue,processUpdates:Tv.process,nextUpdate(){return new Promise(Tv.enqueue)},setAttribute(t,e,n){n==null?t.removeAttribute(e):t.setAttribute(e,n)},setBooleanAttribute(t,e,n){n?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;e!==null;e=t.firstChild)t.removeChild(e)},createTemplateWalker(t){return document.createTreeWalker(t,133,null,!1)}});class q3{constructor(e,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=n}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const n=this.spillover;if(n===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else n.indexOf(e)===-1&&n.push(e)}unsubscribe(e){const n=this.spillover;if(n===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}notify(e){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=n.length;i{const t=/(:|&&|\|\||if)/,e=new WeakMap,n=Et.queueUpdate;let r,i=h=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function s(h){let p=h.$fastController||e.get(h);return p===void 0&&(Array.isArray(h)?p=i(h):e.set(h,p=new IR(h))),p}const u=NR();class c{constructor(p){this.name=p,this.field=`_${p}`,this.callback=`${p}Changed`}getValue(p){return r!==void 0&&r.watch(p,this.name),p[this.field]}setValue(p,v){const y=this.field,b=p[y];if(b!==v){p[y]=v;const $=p[this.callback];typeof $=="function"&&$.call(p,b,v),s(p).notify(this.name)}}}class f extends q3{constructor(p,v,y=!1){super(p,v),this.binding=p,this.isVolatileBinding=y,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(p,v){this.needsRefresh&&this.last!==null&&this.disconnect();const y=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const b=this.binding(p,v);return r=y,b}disconnect(){if(this.last!==null){let p=this.first;for(;p!==void 0;)p.notifier.unsubscribe(this,p.propertyName),p=p.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(p,v){const y=this.last,b=s(p),$=y===null?this.first:{};if($.propertySource=p,$.propertyName=v,$.notifier=b,b.subscribe(this,v),y!==null){if(!this.needsRefresh){let E;r=void 0,E=y.propertySource[y.propertyName],r=this,p===E&&(this.needsRefresh=!0)}y.next=$}this.last=$}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let p=this.first;return{next:()=>{const v=p;return v===void 0?{value:void 0,done:!0}:(p=p.next,{value:v,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(h){i=h},getNotifier:s,track(h,p){r!==void 0&&r.watch(h,p)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(h,p){s(h).notify(p)},defineProperty(h,p){typeof p=="string"&&(p=new c(p)),u(h).push(p),Reflect.defineProperty(h,p.name,{enumerable:!0,get:function(){return p.getValue(this)},set:function(v){p.setValue(this,v)}})},getAccessors:u,binding(h,p,v=this.isVolatileBinding(h)){return new f(h,p,v)},isVolatileBinding(h){return t.test(h.toString())}})});function Mi(t,e){Nn.defineProperty(t,e)}const VE=$d.getById(3,()=>{let t=null;return{get(){return t},set(e){t=e}}});class Ed{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return VE.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){VE.set(e)}}Nn.defineProperty(Ed.prototype,"index");Nn.defineProperty(Ed.prototype,"length");const id=Object.seal(new Ed);class y5{constructor(){this.targetIndex=0}}class LR extends y5{constructor(){super(...arguments),this.createPlaceholder=Et.createInterpolationPlaceholder}}class kR extends y5{constructor(e,n,r){super(),this.name=e,this.behavior=n,this.options=r}createPlaceholder(e){return Et.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function Lte(t,e){this.source=t,this.context=e,this.bindingObserver===null&&(this.bindingObserver=Nn.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function kte(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function Pte(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function jte(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function Fte(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Hte(t){Et.setAttribute(this.target,this.targetName,t)}function Bte(t){Et.setBooleanAttribute(this.target,this.targetName,t)}function Ute(t){if(t==null&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;e===void 0?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function zte(t){this.target[this.targetName]=t}function Vte(t){const e=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(t!=null&&t.length){const i=t.split(/\s+/);for(let s=0,u=i.length;sEt.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=Bte;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=kte,this.unbind=Fte;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=Vte);break}}targetAtContent(){this.updateTarget=Ute,this.unbind=jte}createBehavior(e){return new qte(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class qte{constructor(e,n,r,i,s,u,c){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=s,this.updateTarget=u,this.targetName=c}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){Ed.setEvent(e);const n=this.binding(this.source,this.context);Ed.setEvent(null),n!==!0&&e.preventDefault()}}let Av=null;class S5{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Av=this}static borrow(e){const n=Av||new S5;return n.directives=e,n.reset(),Av=null,n}}function Gte(t){if(t.length===1)return t[0];let e;const n=t.length,r=t.map(u=>typeof u=="string"?()=>u:(e=u.targetName||e,u.binding)),i=(u,c)=>{let f="";for(let h=0;hc),h.targetName=u.name):h=Gte(f),h!==null&&(e.removeAttributeNode(u),i--,s--,t.addFactory(h))}}function Zte(t,e,n){const r=PR(t,e.textContent);if(r!==null){let i=e;for(let s=0,u=r.length;s0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),s=Et.createTemplateWalker(n);let u=0,c=this.targetOffset,f=s.nextNode();for(let h=r.length;u=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Gt(t,...e){const n=[];let r="";for(let i=0,s=t.length-1;if}if(typeof c=="function"&&(c=new b5(c)),c instanceof LR){const f=Xte.exec(u);f!==null&&(c.targetName=f[2])}c instanceof y5?(r+=c.createPlaceholder(n.length),n.push(c)):r+=c}return r+=t[t.length-1],new GE(r,n)}class fi{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}}fi.create=(()=>{if(Et.supportsAdoptedStyleSheets){const t=new Map;return e=>new Qte(e,t)}return t=>new tne(t)})();function x5(t){return t.map(e=>e instanceof fi?x5(e.styles):[e]).reduce((e,n)=>e.concat(n),[])}function jR(t){return t.map(e=>e instanceof fi?e.behaviors:null).reduce((e,n)=>n===null?e:(e===null&&(e=[]),e.concat(n)),null)}let FR=(t,e)=>{t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e]},HR=(t,e)=>{t.adoptedStyleSheets=t.adoptedStyleSheets.filter(n=>e.indexOf(n)===-1)};if(Et.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),FR=(t,e)=>{t.adoptedStyleSheets.push(...e)},HR=(t,e)=>{for(const n of e){const r=t.adoptedStyleSheets.indexOf(n);r!==-1&&t.adoptedStyleSheets.splice(r,1)}}}catch{}class Qte extends fi{constructor(e,n){super(),this.styles=e,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=jR(e)}get styleSheets(){if(this._styleSheets===void 0){const e=this.styles,n=this.styleSheetCache;this._styleSheets=x5(e).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(e){FR(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){HR(e,this.styleSheets),super.removeStylesFrom(e)}}let Jte=0;function ene(){return`fast-style-class-${++Jte}`}class tne extends fi{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=jR(e),this.styleSheets=x5(e),this.styleClass=ene()}addStylesTo(e){const n=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(let i=0;i{r.add(e);const i=e[this.fieldName];switch(n){case"reflect":const s=this.converter;Et.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case"boolean":Et.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...n){const r=[];n.push(l1.locate(e));for(let i=0,s=n.length;i1&&(n.property=s),l1.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(t,e);return}return n=t===void 0?{}:t,r}const WE={mode:"open"},ZE={},G3=$d.getById(4,()=>{const t=new Map;return Object.freeze({register(e){return t.has(e.type)?!1:(t.set(e.type,e),!0)},getByType(e){return t.get(e)}})});class W1{constructor(e,n=e.definition){typeof n=="string"&&(n={name:n}),this.type=e,this.name=n.name,this.template=n.template;const r=u1.collect(e,n.attributes),i=new Array(r.length),s={},u={};for(let c=0,f=r.length;c0){const s=this.boundObservables=Object.create(null);for(let u=0,c=i.length;utypeof t=="function",one=()=>null;function KE(t){return t===void 0?one:UR(t)?t:()=>t}function Ai(t,e,n){const r=UR(t)?t:()=>t,i=KE(e),s=KE(n);return(u,c)=>r(u,c)?i(u,c):s(u,c)}class sne{constructor(e,n){this.target=e,this.options=n,this.source=null}bind(e){const n=this.options.property;this.shouldUpdate=Nn.getAccessors(e).some(r=>r.name===n),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(nd),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return this.options.filter!==void 0&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class lne extends sne{constructor(e,n){super(e,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function $o(t){return typeof t=="string"&&(t={property:t}),new kR("fast-slotted",lne,t)}class zR{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const VR=(t,e)=>Gt` e.end?"end":void 0} > ${e.end||""} `,qR=(t,e)=>Gt` ${e.start||""} `;Gt` `;Gt` `;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function je(t,e,n,r){var i=arguments.length,s=i<3?e:r,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(u=t[c])&&(s=(i<3?u(s):i>3?u(e,n,s):u(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}const Nv=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(n){Reflect.defineMetadata(t,e,n)}},Reflect.defineMetadata=function(t,e,n){let r=Nv.get(n);r===void 0&&Nv.set(n,r=new Map),r.set(t,e)},Reflect.getOwnMetadata=function(t,e){const n=Nv.get(e);if(n!==void 0)return n.get(t)});class une{constructor(e,n){this.container=e,this.key=n}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,WR(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new li(i,e,n))}}function Cc(t){const e=t.slice(),n=Object.keys(t),r=n.length;let i;for(let s=0;snull,responsibleForOwnerRequests:!1,defaultResolver:cne.singleton})}),XE=new Map;function QE(t){return e=>Reflect.getOwnMetadata(t,e)}let JE=null;const Yt=Object.freeze({createContainer(t){return new ad(null,Object.assign({},Dv.default,t))},findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:Yt.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(GR,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||Yt.getOrCreateDOMContainer()},getOrCreateDOMContainer(t,e){return t?t.$$container$$||new ad(t,Object.assign({},Dv.default,e,{parentLocator:Yt.findParentContainer})):JE||(JE=new ad(null,Object.assign({},Dv.default,e,{parentLocator:()=>null})))},getDesignParamtypes:QE("design:paramtypes"),getAnnotationParamtypes:QE("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=XE.get(t);if(e===void 0){const n=t.inject;if(n===void 0){const r=Yt.getDesignParamtypes(t),i=Yt.getAnnotationParamtypes(t);if(r===void 0)if(i===void 0){const s=Object.getPrototypeOf(t);typeof s=="function"&&s!==Function.prototype?e=Cc(Yt.getDependencies(s)):e=[]}else e=Cc(i);else if(i===void 0)e=Cc(r);else{e=Cc(r);let s=i.length,u;for(let h=0;h{const p=Yt.findResponsibleContainer(this).get(n),v=this[i];p!==v&&(this[i]=s,c.notify(e))};c.subscribe({handleChange:f},"isConnected")}return s}})},createInterface(t,e){const n=typeof t=="function"?t:e,r=typeof t=="string"?t:t&&"friendlyName"in t&&t.friendlyName||r7,i=typeof t=="string"?!1:t&&"respectConnection"in t&&t.respectConnection||!1,s=function(u,c,f){if(u==null||new.target!==void 0)throw new Error(`No registration for interface: '${s.friendlyName}'`);if(c)Yt.defineProperty(u,c,s,i);else{const h=Yt.getOrCreateAnnotationParamTypes(u);h[f]=s}};return s.$isInterface=!0,s.friendlyName=r??"(anonymous)",n!=null&&(s.register=function(u,c){return n(new une(u,c??s))}),s.toString=function(){return`InterfaceSymbol<${s.friendlyName}>`},s},inject(...t){return function(e,n,r){if(typeof r=="number"){const i=Yt.getOrCreateAnnotationParamTypes(e),s=t[0];s!==void 0&&(i[r]=s)}else if(n)Yt.defineProperty(e,n,t[0]);else{const i=r?Yt.getOrCreateAnnotationParamTypes(r.value):Yt.getOrCreateAnnotationParamTypes(e);let s;for(let u=0;u{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...n){return this.context=e,this.register(...n),this.context=null,this}register(...e){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,s,u;const c=this.context;for(let f=0,h=e.length;fthis}))}jitRegister(e,n){if(typeof e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(yne.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(Qh(e)){const r=e.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(e);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const r=this.config.defaultResolver(e,n);return n.resolvers.set(e,r),r}}}}const Iv=new WeakMap;function WR(t){return function(e,n,r){if(Iv.has(r))return Iv.get(r);const i=t(e,n,r);return Iv.set(r,i),i}}const Cd=Object.freeze({instance(t,e){return new li(t,0,e)},singleton(t,e){return new li(t,1,e)},transient(t,e){return new li(t,2,e)},callback(t,e){return new li(t,3,e)},cachedCallback(t,e){return new li(t,3,WR(e))},aliasTo(t,e){return new li(e,5,t)}});function Rh(t){if(t==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function n7(t,e,n){if(t instanceof li&&t.strategy===4){const r=t.state;let i=r.length;const s=new Array(i);for(;i--;)s[i]=r[i].resolve(e,n);return s}return[t.resolve(e,n)]}const r7="(anonymous)";function i7(t){return typeof t=="object"&&t!==null||typeof t=="function"}const bne=function(){const t=new WeakMap;let e=!1,n="",r=0;return function(i){return e=t.get(i),e===void 0&&(n=i.toString(),r=n.length,e=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,t.set(i,e)),e}}(),Nh={};function ZR(t){switch(typeof t){case"number":return t>=0&&(t|0)===t;case"string":{const e=Nh[t];if(e!==void 0)return e;const n=t.length;if(n===0)return Nh[t]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Nh[t]=!1;return Nh[t]=!0}default:return!1}}function a7(t){return`${t.toLowerCase()}:presentation`}const Dh=new Map,YR=Object.freeze({define(t,e,n){const r=a7(t);Dh.get(r)===void 0?Dh.set(r,e):Dh.set(r,!1),n.register(Cd.instance(r,e))},forTag(t,e){const n=a7(t),r=Dh.get(n);return r===!1?Yt.findResponsibleContainer(e).get(n):r||null}});class Sne{constructor(e,n){this.template=e||null,this.styles=n===void 0?null:Array.isArray(n)?fi.create(n):n instanceof fi?n:fi.create([n])}applyTo(e){const n=e.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class Ur extends Z1{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=YR.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(n={})=>new xne(this===Ur?class extends Ur{}:this,e,n)}}je([Mi],Ur.prototype,"template",void 0);je([Mi],Ur.prototype,"styles",void 0);function _c(t,e,n){return typeof t=="function"?t(e,n):t}class xne{constructor(e,n,r){this.type=e,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,n){const r=this.definition,i=this.overrideDefinition,u=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:u,type:this.type,baseClass:this.elementDefinition.baseClass,callback:c=>{const f=new Sne(_c(r.template,c,r),_c(r.styles,c,r));c.definePresentation(f);let h=_c(r.shadowOptions,c,r);c.shadowRootMode&&(h?i.shadowOptions||(h.mode=c.shadowRootMode):h!==null&&(h={mode:c.shadowRootMode})),c.defineElement({elementOptions:_c(r.elementOptions,c,r),shadowOptions:h,attributes:_c(r.attributes,c,r)})}})}}function Hd(t,...e){const n=l1.locate(t);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(t.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),l1.locate(r).forEach(s=>n.push(s))})}class un{}je([le({attribute:"aria-atomic"})],un.prototype,"ariaAtomic",void 0);je([le({attribute:"aria-busy"})],un.prototype,"ariaBusy",void 0);je([le({attribute:"aria-controls"})],un.prototype,"ariaControls",void 0);je([le({attribute:"aria-current"})],un.prototype,"ariaCurrent",void 0);je([le({attribute:"aria-describedby"})],un.prototype,"ariaDescribedby",void 0);je([le({attribute:"aria-details"})],un.prototype,"ariaDetails",void 0);je([le({attribute:"aria-disabled"})],un.prototype,"ariaDisabled",void 0);je([le({attribute:"aria-errormessage"})],un.prototype,"ariaErrormessage",void 0);je([le({attribute:"aria-flowto"})],un.prototype,"ariaFlowto",void 0);je([le({attribute:"aria-haspopup"})],un.prototype,"ariaHaspopup",void 0);je([le({attribute:"aria-hidden"})],un.prototype,"ariaHidden",void 0);je([le({attribute:"aria-invalid"})],un.prototype,"ariaInvalid",void 0);je([le({attribute:"aria-keyshortcuts"})],un.prototype,"ariaKeyshortcuts",void 0);je([le({attribute:"aria-label"})],un.prototype,"ariaLabel",void 0);je([le({attribute:"aria-labelledby"})],un.prototype,"ariaLabelledby",void 0);je([le({attribute:"aria-live"})],un.prototype,"ariaLive",void 0);je([le({attribute:"aria-owns"})],un.prototype,"ariaOwns",void 0);je([le({attribute:"aria-relevant"})],un.prototype,"ariaRelevant",void 0);je([le({attribute:"aria-roledescription"})],un.prototype,"ariaRoledescription",void 0);const E5=(t,e)=>Gt` `,o7="form-associated-proxy",s7="ElementInternals",l7=s7 in window&&"setFormValue"in window[s7].prototype,u7=new WeakMap;function C5(t){const e=class extends t{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return l7}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return nd}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Et.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Et.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!l7)return null;let n=u7.get(this);return n||(n=this.attachInternals(),u7.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",o7),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",o7)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case IL:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return le({mode:"boolean"})(e.prototype,"disabled"),le({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),le({attribute:"current-value"})(e.prototype,"currentValue"),le(e.prototype,"name"),le({mode:"boolean"})(e.prototype,"required"),Mi(e.prototype,"value"),e}class $ne extends Ur{}class Ene extends C5($ne){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Er extends Ene{constructor(){super(...arguments),this.handleClick=e=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||e===void 0)&&e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),e==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((e=this.control)===null||e===void 0?void 0:e.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var e;super.disconnectedCallback();const n=Array.from((e=this.control)===null||e===void 0?void 0:e.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}}je([le({mode:"boolean"})],Er.prototype,"autofocus",void 0);je([le({attribute:"form"})],Er.prototype,"formId",void 0);je([le],Er.prototype,"formaction",void 0);je([le],Er.prototype,"formenctype",void 0);je([le],Er.prototype,"formmethod",void 0);je([le({mode:"boolean"})],Er.prototype,"formnovalidate",void 0);je([le],Er.prototype,"formtarget",void 0);je([le],Er.prototype,"type",void 0);je([Mi],Er.prototype,"defaultSlottedContent",void 0);class Y1{}je([le({attribute:"aria-expanded"})],Y1.prototype,"ariaExpanded",void 0);je([le({attribute:"aria-pressed"})],Y1.prototype,"ariaPressed",void 0);Hd(Y1,un);Hd(Er,zR,Y1);function W3(t){const e=t.parentElement;if(e)return e;{const n=t.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function Cne(t,e){let n=e;for(;n!==null;){if(n===t)return!0;n=W3(n)}return!1}const ya=document.createElement("div");function _ne(t){return t instanceof Z1}class _5{setProperty(e,n){Et.queueUpdate(()=>this.target.setProperty(e,n))}removeProperty(e){Et.queueUpdate(()=>this.target.removeProperty(e))}}class Tne extends _5{constructor(e){super();const n=new CSSStyleSheet;this.target=n.cssRules[n.insertRule(":host{}")].style,e.$fastController.addStyles(fi.create([n]))}}class wne extends _5{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Ane extends _5{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const n=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[n].style}}}class KR{constructor(e){this.store=new Map,this.target=null;const n=e.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),Nn.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[e,n]of this.store.entries())this.target.setProperty(e,n)}setProperty(e,n){this.store.set(e,n),Et.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,n)})}removeProperty(e){this.store.delete(e),Et.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(e)})}handleChange(e,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}je([Mi],KR.prototype,"target",void 0);class One{constructor(e){this.target=e.style}setProperty(e,n){Et.queueUpdate(()=>this.target.setProperty(e,n))}removeProperty(e){Et.queueUpdate(()=>this.target.removeProperty(e))}}class An{setProperty(e,n){An.properties[e]=n;for(const r of An.roots.values())Hl.getOrCreate(An.normalizeRoot(r)).setProperty(e,n)}removeProperty(e){delete An.properties[e];for(const n of An.roots.values())Hl.getOrCreate(An.normalizeRoot(n)).removeProperty(e)}static registerRoot(e){const{roots:n}=An;if(!n.has(e)){n.add(e);const r=Hl.getOrCreate(this.normalizeRoot(e));for(const i in An.properties)r.setProperty(i,An.properties[i])}}static unregisterRoot(e){const{roots:n}=An;if(n.has(e)){n.delete(e);const r=Hl.getOrCreate(An.normalizeRoot(e));for(const i in An.properties)r.removeProperty(i)}}static normalizeRoot(e){return e===ya?document:e}}An.roots=new Set;An.properties={};const Lv=new WeakMap,Rne=Et.supportsAdoptedStyleSheets?Tne:KR,Hl=Object.freeze({getOrCreate(t){if(Lv.has(t))return Lv.get(t);let e;return t===ya?e=new An:t instanceof Document?e=Et.supportsAdoptedStyleSheets?new wne:new Ane:_ne(t)?e=new Rne(t):e=new One(t),Lv.set(t,e),e}});class ar extends ine{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=ar.uniqueId(),ar.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new ar({name:typeof e=="string"?e:e.name,cssCustomPropertyName:typeof e=="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(e){return typeof e=="function"}static getTokenById(e){return ar.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const n=sn.getOrCreate(e).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,n){return this._appliedTo.add(e),n instanceof ar&&(n=this.alias(n)),sn.getOrCreate(e).set(this,n),this}deleteValueFor(e){return this._appliedTo.delete(e),sn.existsFor(e)&&sn.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(ya,e),this}subscribe(e,n){const r=this.getOrCreateSubscriberSet(n);n&&!sn.existsFor(n)&&sn.getOrCreate(n),r.has(e)||r.add(e)}unsubscribe(e,n){const r=this.subscribers.get(n||this);r&&r.has(e)&&r.delete(e)}notify(e){const n=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(e)&&this.subscribers.get(e).forEach(r=>r.handleChange(n))}alias(e){return n=>e.getValueFor(n)}}ar.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})();ar.tokensById=new Map;class Nne{startReflection(e,n){e.subscribe(this,n),this.handleChange({token:e,target:n})}stopReflection(e,n){e.unsubscribe(this,n),this.remove(e,n)}handleChange(e){const{token:n,target:r}=e;this.add(n,r)}add(e,n){Hl.getOrCreate(n).setProperty(e.cssCustomProperty,this.resolveCSSValue(sn.getOrCreate(n).get(e)))}remove(e,n){Hl.getOrCreate(n).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}}class Dne{constructor(e,n,r){this.source=e,this.token=n,this.node=r,this.dependencies=new Set,this.observer=Nn.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,id))}}class Mne{constructor(){this.values=new Map}set(e,n){this.values.get(e)!==n&&(this.values.set(e,n),Nn.getNotifier(this).notify(e.id))}get(e){return Nn.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const Tc=new WeakMap,wc=new WeakMap;class sn{constructor(e){this.target=e,this.store=new Mne,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=ar.getTokenById(r);if(i&&(i.notify(this.target),ar.isCSSDesignToken(i))){const s=this.parent,u=this.isReflecting(i);if(s){const c=s.get(i),f=n.get(i);c!==f&&!u?this.reflectToCSS(i):c===f&&u&&this.stopReflectToCSS(i)}else u||this.reflectToCSS(i)}}},Tc.set(e,this),Nn.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof Z1?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Tc.get(e)||new sn(e)}static existsFor(e){return Tc.has(e)}static findParent(e){if(ya!==e.target){let n=W3(e.target);for(;n!==null;){if(Tc.has(n))return Tc.get(n);n=W3(n)}return sn.getOrCreate(ya)}return null}static findClosestAssignedNode(e,n){let r=n;do{if(r.has(e))return r;r=r.parent?r.parent:r.target!==ya?sn.getOrCreate(ya):null}while(r!==null);return null}get parent(){return wc.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const n=this.store.get(e);if(n!==void 0)return n;const r=this.getRaw(e);if(r!==void 0)return this.hydrate(e,r),this.get(e)}getRaw(e){var n;return this.assignedValues.has(e)?this.assignedValues.get(e):(n=sn.findClosestAssignedNode(e,this))===null||n===void 0?void 0:n.getRaw(e)}set(e,n){ar.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,n),ar.isDerivedDesignTokenValue(n)?this.setupBindingObserver(e,n):this.store.set(e,n)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const n=this.getRaw(e);n?this.hydrate(e,n):this.store.delete(e)}bind(){const e=sn.findParent(this);e&&e.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&wc.get(this).removeChild(this)}appendChild(e){e.parent&&wc.get(e).removeChild(e);const n=this.children.filter(r=>e.contains(r));wc.set(e,this),this.children.push(e),n.forEach(r=>e.appendChild(r)),Nn.getNotifier(this.store).subscribe(e);for(const[r,i]of this.store.all())e.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(e){const n=this.children.indexOf(e);return n!==-1&&this.children.splice(n,1),Nn.getNotifier(this.store).unsubscribe(e),e.parent===this?wc.delete(e):!1}contains(e){return Cne(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),sn.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),sn.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,n){const r=ar.getTokenById(n);r&&this.hydrate(r,this.getRaw(r))}hydrate(e,n){if(!this.has(e)){const r=this.bindingObservers.get(e);ar.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,n)):this.setupBindingObserver(e,n):(r&&this.tearDownBindingObserver(e),this.store.set(e,n))}}setupBindingObserver(e,n){const r=new Dne(n,e,this);return this.bindingObservers.set(e,r),r}tearDownBindingObserver(e){return this.bindingObservers.has(e)?(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0):!1}}sn.cssCustomPropertyReflector=new Nne;je([Mi],sn.prototype,"children",void 0);function Ine(t){return ar.from(t)}const Lne=Object.freeze({create:Ine,notifyConnection(t){return!t.isConnected||!sn.existsFor(t)?!1:(sn.getOrCreate(t).bind(),!0)},notifyDisconnection(t){return t.isConnected||!sn.existsFor(t)?!1:(sn.getOrCreate(t).unbind(),!0)},registerRoot(t=ya){An.registerRoot(t)},unregisterRoot(t=ya){An.unregisterRoot(t)}}),kv=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Pv=new Map,Jh=new Map;let Yl=null;const Ac=Yt.createInterface(t=>t.cachedCallback(e=>(Yl===null&&(Yl=new QR(null,e)),Yl))),XR=Object.freeze({tagFor(t){return Jh.get(t)},responsibleFor(t){const e=t.$$designSystem$$;return e||Yt.findResponsibleContainer(t).get(Ac)},getOrCreate(t){if(!t)return Yl===null&&(Yl=Yt.getOrCreateDOMContainer().get(Ac)),Yl;const e=t.$$designSystem$$;if(e)return e;const n=Yt.getOrCreateDOMContainer(t);if(n.has(Ac,!1))return n.get(Ac);{const r=new QR(t,n);return n.register(Cd.instance(Ac,r)),r}}});function kne(t,e,n){return typeof t=="string"?{name:t,type:e,callback:n}:t}class QR{constructor(e,n){this.owner=e,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>kv.definitionCallbackOnly,e!==null&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const n=this.container,r=[],i=this.disambiguate,s=this.shadowRootMode,u={elementPrefix:this.prefix,tryDefineElement(c,f,h){const p=kne(c,f,h),{name:v,callback:y,baseClass:b}=p;let{type:$}=p,E=v,A=Pv.get(E),T=!0;for(;A;){const R=i(E,$,A);switch(R){case kv.ignoreDuplicate:return;case kv.definitionCallbackOnly:T=!1,A=void 0;break;default:E=R,A=Pv.get(E);break}}T&&((Jh.has($)||$===Ur)&&($=class extends ${}),Pv.set(E,$),Jh.set($,E),b&&Jh.set(b,E)),r.push(new Pne(n,E,$,s,y,T))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Lne.registerRoot(this.designTokenRoot)),n.registerWithContext(u,...e);for(const c of r)c.callback(c),c.willDefine&&c.definition!==null&&c.definition.define();return this}}class Pne{constructor(e,n,r,i,s,u){this.container=e,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=s,this.willDefine=u,this.definition=null}definePresentation(e){YR.define(this.name,e,this.container)}defineElement(e){this.definition=new W1(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return XR.tagFor(e)}}class jne extends Ur{}class Fne extends C5(jne){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Z3={email:"email",tel:"tel",text:"text"};class Cr extends Fne{constructor(){super(...arguments),this.type=Z3.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&Et.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}je([le({attribute:"readonly",mode:"boolean"})],Cr.prototype,"readOnly",void 0);je([le({mode:"boolean"})],Cr.prototype,"autofocus",void 0);je([le],Cr.prototype,"placeholder",void 0);je([le],Cr.prototype,"type",void 0);je([le],Cr.prototype,"list",void 0);je([le({converter:Mo})],Cr.prototype,"maxlength",void 0);je([le({converter:Mo})],Cr.prototype,"minlength",void 0);je([le],Cr.prototype,"pattern",void 0);je([le({converter:Mo})],Cr.prototype,"size",void 0);je([le({mode:"boolean"})],Cr.prototype,"spellcheck",void 0);je([Mi],Cr.prototype,"defaultSlottedNodes",void 0);class T5{}Hd(T5,un);Hd(Cr,zR,T5);function Hne(t,e,n){return t.nodeType!==Node.TEXT_NODE?!0:typeof t.nodeValue=="string"&&!!t.nodeValue.trim().length}class Bne extends Ur{}class Une extends C5(Bne){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const JR={none:"none"};class Qn extends Une{constructor(){super(...arguments),this.resize=JR.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}je([le({mode:"boolean"})],Qn.prototype,"readOnly",void 0);je([le],Qn.prototype,"resize",void 0);je([le({mode:"boolean"})],Qn.prototype,"autofocus",void 0);je([le({attribute:"form"})],Qn.prototype,"formId",void 0);je([le],Qn.prototype,"list",void 0);je([le({converter:Mo})],Qn.prototype,"maxlength",void 0);je([le({converter:Mo})],Qn.prototype,"minlength",void 0);je([le],Qn.prototype,"name",void 0);je([le],Qn.prototype,"placeholder",void 0);je([le({converter:Mo,mode:"fromView"})],Qn.prototype,"cols",void 0);je([le({converter:Mo,mode:"fromView"})],Qn.prototype,"rows",void 0);je([le({mode:"boolean"})],Qn.prototype,"spellcheck",void 0);je([Mi],Qn.prototype,"defaultSlottedNodes",void 0);Hd(Qn,T5);const zne=(t,e)=>Gt` `,Vne=(t,e)=>Gt` `;var Y3;try{Y3=Map}catch{}var K3;try{K3=Set}catch{}function eN(t,e,n){if(!t||typeof t!="object"||typeof t=="function")return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(X3);if(Y3&&t instanceof Y3)return new Map(Array.from(t.entries()));if(K3&&t instanceof K3)return new Set(Array.from(t.values()));if(t instanceof Object){e.push(t);var r=Object.create(t);n.push(r);for(var i in t){var s=e.findIndex(function(u){return u===t[i]});r[i]=s>-1?n[s]:eN(t[i],e,n)}return r}return t}function X3(t){return eN(t,[],[])}const qne=Object.prototype.toString,Gne=Error.prototype.toString,Wne=RegExp.prototype.toString,Zne=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Yne=/^Symbol\((.*)\)(.*)$/;function Kne(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function c7(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return Kne(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return Zne.call(t).replace(Yne,"Symbol($1)");const r=qne.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+Gne.call(t)+"]":r==="RegExp"?Wne.call(t):null}function _d(t,e){let n=c7(t,e);return n!==null?n:JSON.stringify(t,function(r,i){let s=c7(this[r],e);return s!==null?s:i},2)}let hs={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{let i=r!=null&&r!==n,s=`${t} must be a \`${e}\` type, but the final value was: \`${_d(n,!0)}\``+(i?` (cast from the value \`${_d(r,!0)}\`).`:".");return n===null&&(s+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),s},defined:"${path} must be defined"},$i={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Xne={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Qne={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Jne={isValue:"${path} field must be ${value}"},Q3={noUnknown:"${path} field has unspecified keys: ${unknown}"},ere={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:hs,string:$i,number:Xne,date:Qne,object:Q3,array:ere,boolean:Jne});var jv,d7;function tre(){if(d7)return jv;d7=1;var t=Object.prototype,e=t.hasOwnProperty;function n(r,i){return r!=null&&e.call(r,i)}return jv=n,jv}var Fv,f7;function Io(){if(f7)return Fv;f7=1;var t=Array.isArray;return Fv=t,Fv}var Hv,h7;function tN(){if(h7)return Hv;h7=1;var t=typeof ah=="object"&&ah&&ah.Object===Object&&ah;return Hv=t,Hv}var Bv,g7;function Ra(){if(g7)return Bv;g7=1;var t=tN(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Bv=n,Bv}var Uv,p7;function K1(){if(p7)return Uv;p7=1;var t=Ra(),e=t.Symbol;return Uv=e,Uv}var zv,m7;function nre(){if(m7)return zv;m7=1;var t=K1(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;function s(u){var c=n.call(u,i),f=u[i];try{u[i]=void 0;var h=!0}catch{}var p=r.call(u);return h&&(c?u[i]=f:delete u[i]),p}return zv=s,zv}var Vv,v7;function rre(){if(v7)return Vv;v7=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Vv=n,Vv}var qv,y7;function Bd(){if(y7)return qv;y7=1;var t=K1(),e=nre(),n=rre(),r="[object Null]",i="[object Undefined]",s=t?t.toStringTag:void 0;function u(c){return c==null?c===void 0?i:r:s&&s in Object(c)?e(c):n(c)}return qv=u,qv}var Gv,b7;function Ud(){if(b7)return Gv;b7=1;function t(e){return e!=null&&typeof e=="object"}return Gv=t,Gv}var Wv,S7;function w5(){if(S7)return Wv;S7=1;var t=Bd(),e=Ud(),n="[object Symbol]";function r(i){return typeof i=="symbol"||e(i)&&t(i)==n}return Wv=r,Wv}var Zv,x7;function A5(){if(x7)return Zv;x7=1;var t=Io(),e=w5(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,u){if(t(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||e(s)?!0:r.test(s)||!n.test(s)||u!=null&&s in Object(u)}return Zv=i,Zv}var Yv,$7;function O5(){if($7)return Yv;$7=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Yv=t,Yv}var Kv,E7;function nN(){if(E7)return Kv;E7=1;var t=Bd(),e=O5(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function u(c){if(!e(c))return!1;var f=t(c);return f==r||f==i||f==n||f==s}return Kv=u,Kv}var Xv,C7;function ire(){if(C7)return Xv;C7=1;var t=Ra(),e=t["__core-js_shared__"];return Xv=e,Xv}var Qv,_7;function are(){if(_7)return Qv;_7=1;var t=ire(),e=function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!e&&e in r}return Qv=n,Qv}var Jv,T7;function rN(){if(T7)return Jv;T7=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Jv=n,Jv}var e2,w7;function ore(){if(w7)return e2;w7=1;var t=nN(),e=are(),n=O5(),r=rN(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,h=c.hasOwnProperty,p=RegExp("^"+f.call(h).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(y){if(!n(y)||e(y))return!1;var b=t(y)?p:s;return b.test(r(y))}return e2=v,e2}var t2,A7;function sre(){if(A7)return t2;A7=1;function t(e,n){return e==null?void 0:e[n]}return t2=t,t2}var n2,O7;function ks(){if(O7)return n2;O7=1;var t=ore(),e=sre();function n(r,i){var s=e(r,i);return t(s)?s:void 0}return n2=n,n2}var r2,R7;function X1(){if(R7)return r2;R7=1;var t=ks(),e=t(Object,"create");return r2=e,r2}var i2,N7;function lre(){if(N7)return i2;N7=1;var t=X1();function e(){this.__data__=t?t(null):{},this.size=0}return i2=e,i2}var a2,D7;function ure(){if(D7)return a2;D7=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return a2=t,a2}var o2,M7;function cre(){if(M7)return o2;M7=1;var t=X1(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var u=this.__data__;if(t){var c=u[s];return c===e?void 0:c}return r.call(u,s)?u[s]:void 0}return o2=i,o2}var s2,I7;function dre(){if(I7)return s2;I7=1;var t=X1(),e=Object.prototype,n=e.hasOwnProperty;function r(i){var s=this.__data__;return t?s[i]!==void 0:n.call(s,i)}return s2=r,s2}var l2,L7;function fre(){if(L7)return l2;L7=1;var t=X1(),e="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=t&&i===void 0?e:i,this}return l2=n,l2}var u2,k7;function hre(){if(k7)return u2;k7=1;var t=lre(),e=ure(),n=cre(),r=dre(),i=fre();function s(u){var c=-1,f=u==null?0:u.length;for(this.clear();++c-1}return p2=e,p2}var m2,z7;function yre(){if(z7)return m2;z7=1;var t=Q1();function e(n,r){var i=this.__data__,s=t(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return m2=e,m2}var v2,V7;function J1(){if(V7)return v2;V7=1;var t=gre(),e=pre(),n=mre(),r=vre(),i=yre();function s(u){var c=-1,f=u==null?0:u.length;for(this.clear();++c-1&&r%1==0&&r-1&&n%1==0&&n<=t}return P2=e,P2}var j2,dC;function tg(){if(dC)return j2;dC=1;var t=w5();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return j2=e,j2}var F2,fC;function lN(){if(fC)return F2;fC=1;var t=aN(),e=oN(),n=Io(),r=sN(),i=D5(),s=tg();function u(c,f,h){f=t(f,c);for(var p=-1,v=f.length,y=!1;++pt&&t.__isYupSchema__;class Mre{constructor(e,n){if(this.fn=void 0,this.refs=e,this.refs=e,typeof n=="function"){this.fn=n;return}if(!c1(n,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,u=typeof r=="function"?r:(...c)=>c.every(f=>f===r);this.fn=function(...c){let f=c.pop(),h=c.pop(),p=u(...c)?i:s;if(p)return typeof p=="function"?p(h):h.concat(p.resolve(f))}}resolve(e,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn.apply(e,r.concat(e,n));if(i===void 0||i===e)return e;if(!uN(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function cN(t){return t==null?[]:[].concat(t)}function J3(){return J3=Object.assign||function(t){for(var e=1;e_d(n[s])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],cN(e).forEach(s=>{Pr.isError(s)?(this.errors.push(...s.errors),this.inner=this.inner.concat(s.inner.length?s.inner:s)):this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Pr)}}const Lre=t=>{let e=!1;return(...n)=>{e||(e=!0,t(...n))}};function e4(t,e){let{endEarly:n,tests:r,args:i,value:s,errors:u,sort:c,path:f}=t,h=Lre(e),p=r.length;const v=[];if(u=u||[],!p)return u.length?h(new Pr(u,s,f)):h(null,s);for(let y=0;yb))return!1;var E=v.get(u),A=v.get(c);if(E&&A)return E==c&&A==u;var T=-1,R=!0,D=f&i?new t:void 0;for(v.set(u,c),v.set(c,u);++T=this._maxSize&&this.clear(),T in this._values||this._size++,this._values[T]=R};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,u=512,c=new t(u),f=new t(u),h=new t(u);Ky={Cache:t,split:v,normalizePath:p,setter:function(T){var R=p(T);return f.get(T)||f.set(T,function(M,O){for(var L=0,z=R.length,V=M;L=0)&&(n[i]=t[i]);return n}function Ih(t){function e(n,r){let{value:i,path:s="",label:u,options:c,originalValue:f,sync:h}=n,p=Pie(n,["value","path","label","options","originalValue","sync"]);const{name:v,test:y,params:b,message:$}=t;let{parent:E,context:A}=c;function T(L){return _s.isRef(L)?L.getValue(i,E,A):L}function R(L={}){const z=$N(d1({value:i,originalValue:f,label:u,path:L.path||s},b,L.params),T),V=new Pr(Pr.formatError(L.message||$,z),i,z.path,L.type||v);return V.params=z,V}let D=d1({path:s,parent:E,type:v,createError:R,resolve:T,options:c,originalValue:f},p);if(!h){try{Promise.resolve(y.call(D,i,D)).then(L=>{Pr.isError(L)?r(L):L?r(null,L):r(R())}).catch(r)}catch(L){r(L)}return}let M;try{var O;if(M=y.call(D,i,D),typeof((O=M)==null?void 0:O.then)=="function")throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(L){r(L);return}Pr.isError(M)?r(M):M?r(null,M):r(R())}return e.OPTIONS=t,e}let jie=t=>t.substr(0,t.length-1).substr(1);function Fie(t,e,n,r=n){let i,s,u;return e?(ng.forEach(e,(c,f,h)=>{let p=f?jie(c):c;if(t=t.resolve({context:r,parent:i,value:n}),t.innerType){let v=h?parseInt(p,10):0;if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${e}. because there is no value at that index. `);i=n,n=n&&n[v],t=t.innerType}if(!h){if(!t.fields||!t.fields[p])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${u} which is a type: "${t._type}")`);i=n,n=n&&n[p],t=t.fields[p]}s=p,u=f?"["+c+"]":"."+c}),{schema:t,parent:i,parentPath:s}):{parent:i,parentPath:e,schema:t}}class f1{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const n of this.list)e.push(n);for(const[,n]of this.refs)e.push(n.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((n,r)=>n.concat(_s.isRef(r)?e(r):r),[])}add(e){_s.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){_s.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new f1;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,n){const r=this.clone();return e.list.forEach(i=>r.add(i)),e.refs.forEach(i=>r.add(i)),n.list.forEach(i=>r.delete(i)),n.refs.forEach(i=>r.delete(i)),r}}function si(){return si=Object.assign||function(t){for(var e=1;e{this.typeError(hs.notType)}),this.type=(e==null?void 0:e.type)||"mixed",this.spec=si({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},e==null?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeError=this._typeError,n._whitelistError=this._whitelistError,n._blacklistError=this._blacklistError,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.exclusiveTests=si({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=X3(si({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const i=si({},n.spec,r.spec);return r.spec=i,r._typeError||(r._typeError=n._typeError),r._whitelistError||(r._whitelistError=n._whitelistError),r._blacklistError||(r._blacklistError=n._blacklistError),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{e.tests.forEach(u=>{s.test(u.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return this.spec.nullable&&e===null?!0:this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,e),n),n=n.resolve(e)}return n}cast(e,n={}){let r=this.resolve(si({value:e},n)),i=r._cast(e,n);if(e!==void 0&&n.assert!==!1&&r.isType(i)!==!0){let s=_d(e),u=_d(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". attempted value: ${s} `+(u!==s?`result of cast: ${u}`:""))}return i}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((i,s)=>s.call(this,i,e,this),e);return r===void 0&&(r=this.getDefault()),r}_validate(e,n={},r){let{sync:i,path:s,from:u=[],originalValue:c=e,strict:f=this.spec.strict,abortEarly:h=this.spec.abortEarly}=n,p=e;f||(p=this._cast(p,si({assert:!1},n)));let v={value:p,path:s,options:n,originalValue:c,schema:this,label:this.spec.label,sync:i,from:u},y=[];this._typeError&&y.push(this._typeError);let b=[];this._whitelistError&&b.push(this._whitelistError),this._blacklistError&&b.push(this._blacklistError),e4({args:v,value:p,path:s,tests:y,endEarly:h},$=>{if($)return void r($,p);e4({tests:this.tests.concat(b),args:v,path:s,sync:i,value:p,endEarly:h},r)})}validate(e,n,r){let i=this.resolve(si({},n,{value:e}));return typeof r=="function"?i._validate(e,n,r):new Promise((s,u)=>i._validate(e,n,(c,f)=>{c?u(c):s(f)}))}validateSync(e,n){let r=this.resolve(si({},n,{value:e})),i;return r._validate(e,si({},n,{sync:!0}),(s,u)=>{if(s)throw s;i=u}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(Pr.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(Pr.isError(r))return!1;throw r}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):X3(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){let n=this.clone();return n.spec.strict=e,n}_isPresent(e){return e!=null}defined(e=hs.defined){return this.test({message:e,name:"defined",exclusive:!0,test(n){return n!==void 0}})}required(e=hs.required){return this.clone({presence:"required"}).withMutation(n=>n.test({message:e,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e}nullable(e=!0){return this.clone({nullable:e!==!1})}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=hs.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ih(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(u=>!(u.OPTIONS.name===n.name&&(s||u.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),i=cN(e).map(s=>new _s(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(new Mre(i,n)),r}typeError(e){let n=this.clone();return n._typeError=Ih({message:e,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),n}oneOf(e,n=hs.oneOf){let r=this.clone();return e.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r._whitelistError=Ih({message:n,name:"oneOf",test(i){if(i===void 0)return!0;let s=this.schema._whitelist,u=s.resolveAll(this.resolve);return u.includes(i)?!0:this.createError({params:{values:s.toArray().join(", "),resolved:u}})}}),r}notOneOf(e,n=hs.notOneOf){let r=this.clone();return e.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r._blacklistError=Ih({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,u=s.resolveAll(this.resolve);return u.includes(i)?this.createError({params:{values:s.toArray().join(", "),resolved:u}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(){const e=this.clone(),{label:n,meta:r}=e.spec;return{meta:r,label:n,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,u,c)=>c.findIndex(f=>f.name===s.name)===u)}}}hi.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])hi.prototype[`${t}At`]=function(e,n,r={}){const{parent:i,parentPath:s,schema:u}=Fie(this,e,n,r.context);return u[t](i&&i[s],si({},r,{parent:i,path:e}))};for(const t of["equals","is"])hi.prototype[t]=hi.prototype.oneOf;for(const t of["not","nope"])hi.prototype[t]=hi.prototype.notOneOf;hi.prototype.optional=hi.prototype.notRequired;const ma=t=>t==null;let Hie=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Bie=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Uie=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,zie=t=>ma(t)||t===t.trim(),Vie={}.toString();function gs(){return new EN}class EN extends hi{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===Vie?e:n})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,n=$i.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},test(r){return ma(r)||r.length===this.resolve(e)}})}min(e,n=$i.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},test(r){return ma(r)||r.length>=this.resolve(e)}})}max(e,n=$i.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},test(r){return ma(r)||r.length<=this.resolve(e)}})}matches(e,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||$i.matches,params:{regex:e},test:u=>ma(u)||u===""&&r||u.search(e)!==-1})}email(e=$i.email){return this.matches(Hie,{name:"email",message:e,excludeEmptyString:!0})}url(e=$i.url){return this.matches(Bie,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=$i.uuid){return this.matches(Uie,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=$i.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:zie})}lowercase(e=$i.lowercase){return this.transform(n=>ma(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:n=>ma(n)||n===n.toLowerCase()})}uppercase(e=$i.uppercase){return this.transform(n=>ma(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:n=>ma(n)||n===n.toUpperCase()})}}gs.prototype=EN.prototype;var Xy,T_;function qie(){if(T_)return Xy;T_=1;function t(e,n,r,i){var s=-1,u=e==null?0:e.length;for(i&&u&&(r=e[++s]);++ss?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var u=Array(s);++i=s?n:t(n,r,i)}return lb=e,lb}var ub,F_;function _N(){if(F_)return ub;F_=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=e+n+r,s="\\ufe0e\\ufe0f",u="\\u200d",c=RegExp("["+u+t+i+s+"]");function f(h){return c.test(h)}return ub=f,ub}var cb,H_;function rae(){if(H_)return cb;H_=1;function t(e){return e.split("")}return cb=t,cb}var db,B_;function iae(){if(B_)return db;B_=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=e+n+r,s="\\ufe0e\\ufe0f",u="["+t+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+f+")",p="[^"+t+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",$=h+"?",E="["+s+"]?",A="(?:"+b+"(?:"+[p,v,y].join("|")+")"+E+$+")*",T=E+$+A,R="(?:"+[p+c+"?",c,v,y,u].join("|")+")",D=RegExp(f+"(?="+f+")|"+R+T,"g");function M(O){return O.match(D)||[]}return db=M,db}var fb,U_;function aae(){if(U_)return fb;U_=1;var t=rae(),e=_N(),n=iae();function r(i){return e(i)?n(i):t(i)}return fb=r,fb}var hb,z_;function oae(){if(z_)return hb;z_=1;var t=nae(),e=_N(),n=aae(),r=zd();function i(s){return function(u){u=r(u);var c=e(u)?n(u):void 0,f=c?c[0]:u.charAt(0),h=c?t(c,1).join(""):u.slice(1);return f[s]()+h}}return hb=i,hb}var gb,V_;function sae(){if(V_)return gb;V_=1;var t=oae(),e=t("toUpperCase");return gb=e,gb}var pb,q_;function lae(){if(q_)return pb;q_=1;var t=zd(),e=sae();function n(r){return e(t(r).toLowerCase())}return pb=n,pb}var mb,G_;function uae(){if(G_)return mb;G_=1;var t=lae(),e=CN(),n=e(function(r,i,s){return i=i.toLowerCase(),r+(s?t(i):i)});return mb=n,mb}var cae=uae();const dae=Zi(cae);var vb,W_;function fae(){if(W_)return vb;W_=1;var t=dN(),e=gN(),n=xN();function r(i,s){var u={};return s=n(s,3),e(i,function(c,f,h){t(u,s(c,f,h),c)}),u}return vb=r,vb}var hae=fae();const gae=Zi(hae);var Lh={exports:{}},Z_;function pae(){if(Z_)return Lh.exports;Z_=1,Lh.exports=function(i){return t(e(i),i)},Lh.exports.array=t;function t(i,s){var u=i.length,c=new Array(u),f={},h=u,p=n(s),v=r(i);for(s.forEach(function(b){if(!v.has(b[0])||!v.has(b[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});h--;)f[h]||y(i[h],h,new Set);return c;function y(b,$,E){if(E.has(b)){var A;try{A=", node was:"+JSON.stringify(b)}catch{A=""}throw new Error("Cyclic dependency"+A)}if(!v.has(b))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(b));if(!f[$]){f[$]=!0;var T=p.get(b)||new Set;if(T=Array.from(T),$=T.length){E.add(b);do{var R=T[--$];y(R,v.get(R),E)}while($);E.delete(b)}c[--u]=b}}}function e(i){for(var s=new Set,u=0,c=i.length;u`${u}-${c}`));function s(u,c){let f=ng.split(u)[0];r.add(f),i.has(`${c}-${f}`)||n.push([c,f])}for(const u in t)if(c1(t,u)){let c=t[u];r.add(u),_s.isRef(c)&&c.isSibling?s(c.path,u):uN(c)&&"deps"in c&&c.deps.forEach(f=>s(f,u))}return vae.array(Array.from(r),n).reverse()}function Y_(t,e){let n=1/0;return t.some((r,i)=>{var s;if(((s=e.path)==null?void 0:s.indexOf(r))!==-1)return n=i,!0}),n}function TN(t){return(e,n)=>Y_(t,e)-Y_(t,n)}function Bl(){return Bl=Object.assign||function(t){for(var e=1;eObject.prototype.toString.call(t)==="[object Object]";function bae(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const Sae=TN([]);class wN extends hi{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=Sae,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),e&&this.shape(e)})}_typeCheck(e){return K_(e)||typeof e=="function"}_cast(e,n={}){var r;let i=super._cast(e,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let s=this.fields,u=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=this._nodes.concat(Object.keys(i).filter(v=>this._nodes.indexOf(v)===-1)),f={},h=Bl({},n,{parent:f,__validating:n.__validating||!1}),p=!1;for(const v of c){let y=s[v],b=c1(i,v);if(y){let $,E=i[v];h.path=(n.path?`${n.path}.`:"")+v,y=y.resolve({value:E,context:n.context,parent:f});let A="spec"in y?y.spec:void 0,T=A==null?void 0:A.strict;if(A!=null&&A.strip){p=p||v in i;continue}$=!n.__validating||!T?y.cast(i[v],h):i[v],$!==void 0&&(f[v]=$)}else b&&!u&&(f[v]=i[v]);f[v]!==i[v]&&(p=!0)}return p?f:i}_validate(e,n={},r){let i=[],{sync:s,from:u=[],originalValue:c=e,abortEarly:f=this.spec.abortEarly,recursive:h=this.spec.recursive}=n;u=[{schema:this,value:c},...u],n.__validating=!0,n.originalValue=c,n.from=u,super._validate(e,n,(p,v)=>{if(p){if(!Pr.isError(p)||f)return void r(p,v);i.push(p)}if(!h||!K_(v)){r(i[0]||null,v);return}c=c||v;let y=this._nodes.map(b=>($,E)=>{let A=b.indexOf(".")===-1?(n.path?`${n.path}.`:"")+b:`${n.path||""}["${b}"]`,T=this.fields[b];if(T&&"validate"in T){T.validate(v[b],Bl({},n,{path:A,from:u,strict:!0,parent:v,originalValue:c[b]}),E);return}E(null)});e4({tests:y,value:v,errors:i,endEarly:f,sort:this._sortErrors,path:n.path},r)})}clone(e){const n=super.clone(e);return n.fields=Bl({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const u=r[i];u===void 0?r[i]=s:u instanceof hi&&s instanceof hi&&(r[i]=s.concat(u))}return n.withMutation(()=>n.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(n=>{const r=this.fields[n];e[n]="default"in r?r.getDefault():void 0}),e}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(e,n=[]){let r=this.clone(),i=Object.assign(r.fields,e);return r.fields=i,r._sortErrors=TN(Object.keys(i)),n.length&&(Array.isArray(n[0])||(n=[n]),r._excludedEdges=[...r._excludedEdges,...n]),r._nodes=yae(i,r._excludedEdges),r}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(n)))}omit(e){const n=this.clone(),r=n.fields;n.fields={};for(const i of e)delete r[i];return n.withMutation(()=>n.shape(r))}from(e,n,r){let i=ng.getter(e,!0);return this.transform(s=>{if(s==null)return s;let u=s;return c1(s,e)&&(u=Bl({},s),r||delete u[e],u[n]=i(s)),u})}noUnknown(e=!0,n=Q3.noUnknown){typeof e=="string"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=bae(this.schema,i);return!e||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=Q3.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>n&&gae(n,(r,i)=>e(i)))}camelCase(){return this.transformKeys(dae)}snakeCase(){return this.transformKeys(k_)}constantCase(){return this.transformKeys(e=>k_(e).toUpperCase())}describe(){let e=super.describe();return e.fields=$N(this.fields,n=>n.describe()),e}}function AN(t){return new wN(t)}AN.prototype=wN.prototype;const xae="cc-common_ParticipantContent-module_participant_3DaAaz7b",$ae="cc-common_ParticipantContent-module_phone_NJaonib2",Eae="cc-common_ParticipantContent-module_text_sghV8uz7",Cae="cc-common_ParticipantContent-module_label_YywD8kIk",_ae="cc-common_ParticipantContent-module_helper_nps-Y7cL",Tae="cc-common_ParticipantContent-module_error_oN6EAF-n",wae="cc-common_ParticipantContent-module_button_5r-VJCAK",ss={participant:xae,phone:$ae,text:Eae,label:Cae,helper:_ae,error:Tae,button:wae};var ON=_.createContext();function Aae(){return _.useContext(ON)}var Oae={root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},Rae=_.forwardRef(function(e,n){var r=e.children,i=e.classes,s=e.className,u=e.component,c=u===void 0?"div":u,f=e.disablePointerEvents,h=f===void 0?!1:f,p=e.disableTypography,v=p===void 0?!1:p,y=e.position,b=e.variant,$=En(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),E=Aae()||{},A=b;return b&&E.variant,E&&!A&&(A=E.variant),_.createElement(ON.Provider,{value:null},_.createElement(c,De({className:Ni(i.root,s,y==="end"?i.positionEnd:i.positionStart,h&&i.disablePointerEvents,E.hiddenLabel&&i.hiddenLabel,A==="filled"&&i.filled,E.margin==="dense"&&i.marginDense),ref:n},$),typeof r=="string"&&!v?_.createElement(_R,{color:"textSecondary"},r):r))});const Nae=Is(Oae,{name:"MuiInputAdornment"})(Rae),kh=(t,e,n)=>e.required?t("Required",{lng:n}):t("Optional",{lng:n}),Dae=(t,e)=>!t.required||!t.displayed||t.required&&!!e,Mae=({field:t,color:e,language:n,onSubmit:r,currentParticipant:i})=>{var s,u,c,f,h,p,v,y,b,$;const{t:E}=lt(),A=_.useRef(null),[T,R]=_.useState(""),[D,M]=_.useState(""),[O,L]=_.useState(""),[z,V]=_.useState(""),[Y,te]=_.useState([]),[W,ce]=_.useState(!1),[B,Ee]=_.useState(null);_.useEffect(()=>{var w,F,ie;if(i){R(`${i.firstName} ${i.lastName}`.replaceAll("undefined","").trim());const J=zh((i==null?void 0:i.phoneNumber)??"");J&&(M(J.countryCallingCode),L(J.nationalNumber)),V(i.email),te((w=t.customFields)==null?void 0:w.map(be=>{var me,Ce;return{name:be.field,value:((Ce=(me=i==null?void 0:i.customFields)==null?void 0:me.find(({name:ve})=>ve===be.field))==null?void 0:Ce.value)??""}}))}else te((F=t.customFields)==null?void 0:F.map(J=>({name:J.field,value:void 0}))),M((ie=t.phoneNumber)!=null&&ie.required?"1":"")},[i,t]);const pe=w=>{var F;return((F=Y.find(({name:ie})=>ie===w))==null?void 0:F.value)??""},H=w=>{var F;return!w||((F=zh(w))==null?void 0:F.isValid())},Q=AN().shape({name:(s=t.name)!=null&&s.required?gs().required(E("Required",{lng:n})):gs().optional(),email:(u=t.email)!=null&&u.required?gs().email(E("Invalid email",{lng:n})).required(E("Required",{lng:n})):gs().email(E("Invalid email",{lng:n})).optional(),phone:(c=t.phoneNumber)!=null&&c.required?gs().required(E("Required",{lng:n})).test("phone",E("Invalid phone number",{lng:n}),H):gs().optional().test("phone",E("Invalid phone number",{lng:n}),H)}),he=(w,F)=>{const ie=Y.find(({name:J})=>J===w);ie&&(ie.value=F),te(Y.slice())},fe=()=>{try{if(Q.validateSync({name:T,email:z,phone:`${D?"+"+D:""}${O}`},{abortEarly:!1}),Ee({}),t.customFields.some(w=>!Dae(w,pe(w.field))))ce(!0);else{ce(!1);const w=T.split(" "),F=Y.filter(ie=>ie.value);r({email:z||void 0,firstName:w!=null&&w[0]?w==null?void 0:w[0]:void 0,lastName:w!=null&&w.slice(1).join(" ")?w==null?void 0:w.slice(1).join(" "):void 0,phoneNumber:D+O?`${zh("+"+D+O).number}`:void 0,customFields:F.length>0?F:void 0})}}catch(w){console.log(w),Ee(w.inner.reduce((F,ie)=>({...F,[ie.path]:ie.message}),{})),ce(!0)}};return S.jsxs("section",{ref:A,className:ss.participant,children:[((f=t.name)==null?void 0:f.displayed)&&S.jsx(Il,{error:W&&((h=t.name)==null?void 0:h.required)&&!!(B!=null&&B.name),helperText:kh(E,t.name,n),value:T,onChange:w=>R(w.target.value),children:E("Your name",{lng:n})}),((p=t.phoneNumber)==null?void 0:p.displayed)&&S.jsxs(S.Fragment,{children:[S.jsx($0,{className:ss.label,variant:"caption-medium-strong",children:E("Your phone number",{lng:n})}),S.jsxs("div",{className:ss.phone,children:[S.jsx(Il,{className:ss.text,value:D,error:W&&!!(B!=null&&B.phone),onChange:w=>M(w.target.value),leadingIcon:S.jsx(Nae,{position:"start",children:"+"})}),S.jsx(Il,{required:(v=t.phoneNumber)==null?void 0:v.required,error:W&&!!(B!=null&&B.phone),type:Z3.tel,value:O,onChange:w=>L(w.target.value)})]}),S.jsx($0,{className:ke(ss.helper,W&&(B==null?void 0:B.phone)&&ss.error),color:"type-color-secondary",variant:"caption-medium",children:(B==null?void 0:B.phone)??kh(E,t.phoneNumber,n)})]}),((y=t.email)==null?void 0:y.displayed)&&S.jsx(Il,{type:Z3.email,error:W&&((b=t.email)==null?void 0:b.required)&&!!(B!=null&&B.email),helperText:(B==null?void 0:B.email)??kh(E,t.email,n),value:z,onChange:w=>V(w.target.value),children:E("Your email",{lng:n})}),($=t.customFields)==null?void 0:$.map(w=>w.field&&w.displayed?S.jsx(Il,{error:W&&w.required&&!pe(w.field),value:pe(w.field),onChange:F=>he(w.field,F.target.value),helperText:kh(E,w,n),children:w.field},`${w.field}-${w.index}`):null),S.jsx(lr,{className:ss.button,style:{"--goto-hover-primary":e&&G8(e,10),"--goto-pressed-primary":e&&G8(e,20),"--goto-interactive-01":e,"--goto-text-06":Ca(qi,e,Bn,A.current)&&`var(--goto-${Bn})`},variant:"primary",onClick:fe,children:E("Submit",{lng:n})})]})},Iae="cc-common_index-module_iconButton_JdtwMgbg",Lae="cc-common_index-module_toggled_-zjIimGO",X_={iconButton:Iae,toggled:Lae},t4=({toggled:t=!1,...e})=>S.jsx($r,{...e,className:ke(X_.iconButton,t&&X_.toggled,e.className),children:e.children}),kae="cc-common_index-module_content_E6g2gzDi",Pae="cc-common_index-module_actions_-RK-KB2w",yb={content:kae,actions:Pae},jae=({label:t,variant:e,disabled:n,onCancel:r,onConfirm:i,cancelLabel:s,confirmLabel:u,title:c,message:f,popoverWidth:h,noConfirmation:p,popoverClassName:v,icon:y,size:b="medium",position:$="bottom-start"})=>{const{t:E}=lt(),[A,T]=_.useState(!1),R=()=>{T(!1),r==null||r()},D=()=>{T(!1),i==null||i()};return(()=>{const M=crypto.randomUUID();return S.jsxs("section",{children:[y?S.jsx(t4,{id:`confirm-button-trigger-${M}`,variant:e??"secondary",disabled:n,size:b,className:yb.close,onClick:()=>{p?D==null||D():T(!0)},children:y}):S.jsx(lr,{id:`confirm-button-trigger-${M}`,variant:e??"secondary",disabled:n,size:b,onClick:()=>{p?D==null||D():T(!0)},children:t}),S.jsx(w1,{position:$,className:v,arrow:!0,width:h??362,compact:!0,isOpen:A,triggerId:`confirm-button-trigger-${M}`,children:S.jsxs("div",{className:yb.content,children:[c&&S.jsx(Ht,{variant:"heading-small",children:c}),f&&S.jsx(Ht,{variant:"body-small",children:f}),S.jsxs("div",{className:yb.actions,children:[S.jsx(lr,{variant:e??"secondary",onClick:R,children:s??E("Cancel")}),S.jsx(lr,{variant:"danger",onClick:D,children:u??E("Confirm")})]})]})})]})})()},Fae="cc-common_index-module_header_tmyB4fVH",Hae="cc-common_index-module_wrapper_6F7PX7Mi",Bae="cc-common_index-module_minimize_Edo5Lil0",Uae="cc-common_index-module_popover_D6Dn4YPA",Oc={header:Fae,wrapper:Hae,minimize:Bae,popover:Uae},zae=({color:t,onClose:e,onMinimize:n,children:r,confirmOnClose:i,confirmOptions:s})=>{const u=_.useRef(null),c=_.useMemo(()=>gO(kr(ql(en.typeColorDefault)),kr(ql(en.typeColorInverted)),kr(t||ql(en.interactiveColorPrimaryDefault))),[t]);return S.jsxs("header",{ref:u,className:ke(Oc.header),style:t&&{backgroundColor:t,color:c},children:[S.jsx("div",{className:Oc.wrapper,children:r}),S.jsx(t4,{size:"small",className:Oc.minimize,onClick:n,children:S.jsx(yw,{color:c})}),i?S.jsx(jae,{label:s.label,position:s.popoverPosition,variant:"neutral",size:"small",icon:S.jsx(ws,{color:c}),title:s.title,popoverClassName:Oc.popover,popoverWidth:312,message:s.message,cancelLabel:s.cancelLabel,confirmLabel:s.confirmLabel,onConfirm:e}):S.jsx(t4,{size:"small",className:Oc.close,onClick:e,children:S.jsx(ws,{color:c})})]})},Vae="cc-common_AgentHeader-module_agent_SIKFAFqg",qae="cc-common_AgentHeader-module_inverse_Kg7t9Dc0",Gae="cc-common_AgentHeader-module_text_-aXD-IHW",Wae="cc-common_AgentHeader-module_name_3yLyomaa",Rc={agent:Vae,inverse:qae,text:Gae,with:"cc-common_AgentHeader-module_with_WrDC6xTz",name:Wae},Zae=({color:t,agent:e,language:n})=>{const{t:r}=lt(),i=_.useRef(null);return S.jsx("div",{ref:i,className:ke(Rc.agent,{[Rc.inverse]:t&&Ca(qi,t,Bn,i.current)}),children:S.jsxs("p",{className:Rc.text,children:[S.jsx("span",{className:Rc.with,children:e?r("You are chatting with",{lng:n}):r("Thank you for contacting us",{lng:n})}),S.jsx("br",{}),S.jsx("span",{className:Rc.name,children:e?e.firstName:r("How can I help?",{lng:n})})]})})},Yae="cc-common_WelcomeHeader-module_title_ED3h1Vvx",Kae={title:Yae},Xae=({title:t})=>S.jsx("h1",{className:Kae.title,children:t}),Qae="cc-common_index-module_bubble_jmJpxKKh",Jae="cc-common_index-module_button_haHb9L8l",eoe="cc-common_index-module_greeting_UzmHNNT5",toe="cc-common_index-module_alignLeft_RbGfnuSp",noe="cc-common_index-module_alignRight_NZRt8V-z",roe="cc-common_index-module_chatBubbleContent_SFes6S3c",ioe="cc-common_index-module_chatBubbleBadge_UqnCdw9L",aoe="cc-common_index-module_customIcon_S-l-jpXK",co={bubble:Qae,button:Jae,greeting:eoe,alignLeft:toe,alignRight:noe,chatBubbleContent:roe,chatBubbleBadge:ioe,customIcon:aoe},ooe=({color:t,unread:e,alignLeft:n=!1,chatIcon:r,greetingText:i,greetingDelay:s,loading:u,disabled:c,onClick:f,onGreet:h})=>{const[p,v]=_.useState(!1),{t:y}=lt();_.useEffect(()=>{v(!1),i&&(s>0?setTimeout(()=>{h==null||h(),v(!0)},s):(h==null||h(),v(!0)))},[i,s]);const b=()=>{switch(r.type){case C3.GENERIC:return r.genericIconName&&x0[r.genericIconName]?x0[r.genericIconName]():S.jsx(O1,{});case C3.CUSTOM:return S.jsx("img",{className:co.customIcon,src:r.customIconCBoxUrl})}};return S.jsxs("section",{className:ke(co.bubble,{[co.alignLeft]:n,[co.alignRight]:!n}),children:[p&&S.jsxs("div",{className:co.greeting,children:[S.jsx("span",{children:i}),S.jsx("svg",{viewBox:"0 0 8 8",children:S.jsx("path",{d:"M 8 0 L 8 6 C 8 6 8 9 5 6 L 0 0.5"})})]}),S.jsx(LU,{ariaLabel:y("Open chat"),disabled:c,className:co.button,color:t,variant:"primary",size:"xxlarge",onClick:f,children:u?S.jsx(dw,{size:"medium"}):S.jsxs("span",{className:co.chatBubbleContent,children:[e&&S.jsx(rw,{className:co.chatBubbleBadge,children:e}),b()]})})]})};function Td(t){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Td(t)}function soe(t,e){if(Td(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function loe(t){var e=soe(t,"string");return Td(e)=="symbol"?e:e+""}function uoe(t,e,n){return(e=loe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function J_(t){for(var e=1;e"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Yn(1));return n(RN)(t,e)}if(typeof t!="function")throw new Error(Yn(2));var i=t,s=e,u=[],c=u,f=!1;function h(){c===u&&(c=u.slice())}function p(){if(f)throw new Error(Yn(3));return s}function v(E){if(typeof E!="function")throw new Error(Yn(4));if(f)throw new Error(Yn(5));var A=!0;return h(),c.push(E),function(){if(A){if(f)throw new Error(Yn(6));A=!1,h();var R=c.indexOf(E);c.splice(R,1),u=null}}}function y(E){if(!coe(E))throw new Error(Yn(7));if(typeof E.type>"u")throw new Error(Yn(8));if(f)throw new Error(Yn(9));try{f=!0,s=i(s,E)}finally{f=!1}for(var A=u=c,T=0;T"u")throw new Error(Yn(12));if(typeof n(void 0,{type:h1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Yn(13))})}function NN(t){for(var e=Object.keys(t),n={},r=0;r"u")throw h&&h.type,new Error(Yn(14));v[b]=A,p=p||A!==E}return p=p||s.length!==Object.keys(f).length,p?v:f}}function g1(){for(var t=arguments.length,e=new Array(t),n=0;nparseFloat(t)*16),zIndex:{drawer:1195},props:{MuiButtonBase:{disableRipple:!0}}},IN={...MN,overrides:{...DN,...hoe}},LN={...MN,overrides:{...DN,...goe}},kN={...LN,palette:poe,tokens:de},PN={...IN,palette:moe,tokens:va},jN={...LN,palette:voe,tokens:de},FN={...IN,palette:yoe,tokens:va},Vd=new Map;Vd.set("goto",kN);Vd.set("gotoadmin",kN);Vd.set("grasshopper",jN);Vd.set("gotoapp",jN);const qd=new Map;qd.set("goto",PN);qd.set("gotoadmin",PN);qd.set("grasshopper",FN);qd.set("gotoapp",FN);function boe(t,e){if(typeof e=="function"){var n=e(t);return n}return De({},t,e)}function Soe(t){var e=t.children,n=t.theme,r=Ld(),i=gt.useMemo(function(){var s=r===null?n:boe(r,n);return s!=null&&(s[XA]=r!==null),s},[n,r]);return gt.createElement(KA.Provider,{value:i},e)}const tT=({children:t,theme:e,skin:n,classNamePrefix:r="cham",...i})=>{const s=e==="dark",u=QA({seed:r});window.CLASSNAME_PREFIX=r;const c={...UA(s?qd.get(n||"goto"):Vd.get(n||"goto"))};return S.jsx(SW,{generateClassName:u,...i,children:S.jsx(Soe,{theme:c,children:t})})},xoe={height:"100%"},$oe=({children:t,isGTC:e=!1,isAllowedToChangeTheme:n=!1,prefix:r,rebranding2021:i,theme:s,skin:u,height:c=xoe})=>(_.useEffect(()=>{e&&n&&(document.querySelector("chameleon-theme-provider").setAttribute("theme",s),document.querySelector("body").setAttribute("class",s==="dark"?"theme-dark":"theme-light"))},[e,n,s]),_.useEffect(()=>{e&&n&&document.querySelector("chameleon-theme-provider").setAttribute("skin",u)},[e,n,u]),_.useEffect(()=>{e&&n&&(i?(document.querySelector("body").setAttribute("rebranding2021",""),document.querySelector("chameleon-theme-provider").setAttribute("rebranding2021","")):(document.querySelector("chameleon-theme-provider").removeAttribute("rebranding2021"),document.querySelector("body").removeAttribute("rebranding2021")))},[e,n,i]),e?S.jsx(tT,{classNamePrefix:r,...n&&{theme:s},children:t}):S.jsx(FL,{skin:u,theme:s,style:c,prefix:r,rebranding2021:i,children:S.jsx(tT,{theme:s,classNamePrefix:r,children:t})})),Eoe=()=>{xL(new TL)};Eoe();const Ps=({content:t,height:e,width:n})=>({size:r,color:i,style:s={},...u})=>{const c=(s==null?void 0:s.color)||i||"",h={...u,style:{...s,"--goto-icon-color":c,"--goto-icon-size":r||""},width:n,height:e};return gt.createElement("chameleon-svg",h,t)},Coe='',_oe='',Toe='',woe='',Aoe='',Ooe='',Roe='',HN=Ps({content:Coe,height:24,width:24});HN.displayName="BroadcastOutlinedIcon";const BN=Ps({content:_oe,height:24,width:24});BN.displayName="MessageDotsFilledIcon";const UN=Ps({content:Toe,height:24,width:24});UN.displayName="MessageDotsOutlinedIcon";const zN=Ps({content:woe,height:24,width:24});zN.displayName="MessageFilledIcon";const VN=Ps({content:Aoe,height:24,width:24});VN.displayName="PersonOutlinedIcon";const qN=Ps({content:Ooe,height:24,width:24});qN.displayName="PersonFilledIcon";const GN=Ps({content:Roe,height:24,width:24});GN.displayName="VoipFilledIcon";var Ph={exports:{}},nT;function WN(){if(nT)return Ph.exports;nT=1;var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var e=new Uint8Array(16);Ph.exports=function(){return t(e),e}}else{var n=new Array(16);Ph.exports=function(){for(var i=0,s;i<16;i++)(i&3)===0&&(s=Math.random()*4294967296),n[i]=s>>>((i&3)<<3)&255;return n}}return Ph.exports}var Sb,rT;function ZN(){if(rT)return Sb;rT=1;for(var t=[],e=0;e<256;++e)t[e]=(e+256).toString(16).substr(1);function n(r,i){var s=i||0,u=t;return[u[r[s++]],u[r[s++]],u[r[s++]],u[r[s++]],"-",u[r[s++]],u[r[s++]],"-",u[r[s++]],u[r[s++]],"-",u[r[s++]],u[r[s++]],"-",u[r[s++]],u[r[s++]],u[r[s++]],u[r[s++]],u[r[s++]],u[r[s++]]].join("")}return Sb=n,Sb}var xb,iT;function Noe(){if(iT)return xb;iT=1;var t=WN(),e=ZN(),n,r,i=0,s=0;function u(c,f,h){var p=f&&h||0,v=f||[];c=c||{};var y=c.node||n,b=c.clockseq!==void 0?c.clockseq:r;if(y==null||b==null){var $=t();y==null&&(y=n=[$[0]|1,$[1],$[2],$[3],$[4],$[5]]),b==null&&(b=r=($[6]<<8|$[7])&16383)}var E=c.msecs!==void 0?c.msecs:new Date().getTime(),A=c.nsecs!==void 0?c.nsecs:s+1,T=E-i+(A-s)/1e4;if(T<0&&c.clockseq===void 0&&(b=b+1&16383),(T<0||E>i)&&c.nsecs===void 0&&(A=0),A>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=E,s=A,r=b,E+=122192928e5;var R=((E&268435455)*1e4+A)%4294967296;v[p++]=R>>>24&255,v[p++]=R>>>16&255,v[p++]=R>>>8&255,v[p++]=R&255;var D=E/4294967296*1e4&268435455;v[p++]=D>>>8&255,v[p++]=D&255,v[p++]=D>>>24&15|16,v[p++]=D>>>16&255,v[p++]=b>>>8|128,v[p++]=b&255;for(var M=0;M<6;++M)v[p+M]=y[M];return f||e(v)}return xb=u,xb}var $b,aT;function Doe(){if(aT)return $b;aT=1;var t=WN(),e=ZN();function n(r,i,s){var u=i&&s||0;typeof r=="string"&&(i=r==="binary"?new Array(16):null,r=null),r=r||{};var c=r.random||(r.rng||t)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,i)for(var f=0;f<16;++f)i[u+f]=c[f];return i||e(c)}return $b=n,$b}var Eb,oT;function Moe(){if(oT)return Eb;oT=1;var t=Noe(),e=Doe(),n=e;return n.v1=t,n.v4=e,Eb=n,Eb}var YN=Moe(),Ioe={content:"index-module_content__1Eh8Z"};const Loe=({children:t})=>gt.createElement("section",{className:Ioe.content},t),koe=1e4;var Ts;(function(t){t.INBOUND="INBOUND",t.OUTBOUND="OUTBOUND"})(Ts||(Ts={}));var sT;(function(t){t.PRIVATE_INBOX="PRIVATE_INBOX",t.SHARED_INBOX="SHARED_INBOX",t.ENGAGEMENT_CAMPAIGN="ENGAGEMENT_CAMPAIGN"})(sT||(sT={}));var lT;(function(t){t.GENERIC="GENERIC",t.CUSTOM="CUSTOM"})(lT||(lT={}));var uT;(function(t){t.SMS="SMS",t.WEB_CHAT="WEB_CHAT",t.FACEBOOK="FACEBOOK",t.INSTAGRAM="INSTAGRAM"})(uT||(uT={}));var cT;(function(t){t.PENDING="PENDING",t.ACTIVE="ACTIVE"})(cT||(cT={}));var p1;(function(t){t.AUTOMATION="AUTOMATION",t.CAMPAIGN="CAMPAIGN"})(p1||(p1={}));var dT;(function(t){t.POSITIVE="POSITIVE",t.NEGATIVE="NEGATIVE"})(dT||(dT={}));const Poe=t=>(t==null?void 0:t.resourceType)===p1.CAMPAIGN,joe=t=>(t==null?void 0:t.resourceType)===p1.AUTOMATION,r4=t=>t&&!!t.direction&&!Poe(t)&&!joe(t),e0="pending",Cb="failed";var fT;(function(t){t.CALL="CALL",t.CHAT="CHAT",t.CHAT_PRIVATE_INBOX="CHAT_PRIVATE_INBOX"})(fT||(fT={}));var hT;(function(t){t.RESOLVED="RESOLVED",t.RESOLVED_BY_ADMIN="RESOLVED_BY_ADMIN",t.SPAM="SPAM",t.NO_ACTIVITY="NO_ACTIVITY",t.CHAT_QUEUE_DELETED="CHAT_QUEUE_DELETED",t.SOURCE_DISABLED="SOURCE_DISABLED",t.OPT_OUT="OPT_OUT"})(hT||(hT={}));var Ci;(function(t){t.SVG_VOIP="SVG_VOIP",t.SVG_PERSON_ACTIVE="SVG_PERSON_ACTIVE",t.SVG_PERSON_INACTIVE="SVG_PERSON_INACTIVE",t.SVG_CHAT_DOTS_INACTIVE="SVG_CHAT_DOTS_INACTIVE",t.SVG_CHAT_DOTS_ACTIVE="SVG_CHAT_DOTS_ACTIVE",t.SVG_CHAT_ACTIVE="SVG_CHAT_ACTIVE",t.SVG_BROADCAST="SVG_BROADCAST"})(Ci||(Ci={}));Ci.SVG_VOIP+"",Ci.SVG_PERSON_ACTIVE+"",Ci.SVG_PERSON_INACTIVE+"",Ci.SVG_CHAT_DOTS_INACTIVE+"",Ci.SVG_CHAT_DOTS_ACTIVE+"",Ci.SVG_CHAT_ACTIVE+"",Ci.SVG_BROADCAST+"";var i4;(function(t){t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE"})(i4||(i4={}));var wd;(function(t){t.AGENT="AGENT",t.GENERIC="GENERIC",t.CUSTOM="CUSTOM"})(wd||(wd={}));var a4;(function(t){t.GENERIC="GENERIC",t.CUSTOM="CUSTOM"})(a4||(a4={}));var m1;(function(t){t.LEFT="LEFT",t.RIGHT="RIGHT"})(m1||(m1={}));function Oi(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:I5(t)?2:L5(t)?3:0}function Kl(t,e){return pu(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Foe(t,e){return pu(t)===2?t.get(e):t[e]}function KN(t,e,n){var r=pu(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function XN(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function I5(t){return qoe&&t instanceof Map}function L5(t){return Goe&&t instanceof Set}function ps(t){return t.o||t.t}function k5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=JN(t);delete e[qt];for(var n=Xl(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=Hoe),Object.freeze(t),e&&Rs(t,function(n,r){return P5(r,!0)},!0)),t}function Hoe(){Oi(2)}function j5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Gi(t){var e=u4[t];return e||Oi(18,t),e}function Boe(t,e){u4[t]||(u4[t]=e)}function o4(){return Ad}function _b(t,e){e&&(Gi("Patches"),t.u=[],t.s=[],t.v=e)}function v1(t){s4(t),t.p.forEach(Uoe),t.p=null}function s4(t){t===Ad&&(Ad=t.l)}function gT(t){return Ad={p:[],l:Ad,h:t,m:!0,_:0}}function Uoe(t){var e=t[qt];e.i===0||e.i===1?e.j():e.g=!0}function Tb(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.O||Gi("ES5").S(e,t,r),r?(n[qt].P&&(v1(e),Oi(4)),Ta(t)&&(t=y1(e,t),e.l||b1(e,t)),e.u&&Gi("Patches").M(n[qt].t,t,e.u,e.s)):t=y1(e,n,[]),v1(e),e.u&&e.v(e.u,e.s),t!==QN?t:void 0}function y1(t,e,n){if(j5(e))return e;var r=e[qt];if(!r)return Rs(e,function(c,f){return pT(t,r,e,c,f,n)},!0),e;if(r.A!==t)return e;if(!r.P)return b1(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=k5(r.k):r.o,s=i,u=!1;r.i===3&&(s=new Set(i),i.clear(),u=!0),Rs(s,function(c,f){return pT(t,r,i,c,f,n,u)}),b1(t,i,!1),n&&t.u&&Gi("Patches").N(r,n,t.u,t.s)}return r.o}function pT(t,e,n,r,i,s,u){if(Do(i)){var c=y1(t,i,s&&e&&e.i!==3&&!Kl(e.R,r)?s.concat(r):void 0);if(KN(n,r,c),!Do(c))return;t.m=!1}else u&&n.add(i);if(Ta(i)&&!j5(i)){if(!t.h.D&&t._<1)return;y1(t,i),e&&e.A.l||b1(t,i)}}function b1(t,e,n){n===void 0&&(n=!1),!t.l&&t.h.D&&t.m&&P5(e,n)}function wb(t,e){var n=t[qt];return(n?ps(n):t)[e]}function mT(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function Ab(t){t.o||(t.o=k5(t.t))}function l4(t,e,n){var r=I5(e)?Gi("MapSet").F(e,n):L5(e)?Gi("MapSet").T(e,n):t.O?function(i,s){var u=Array.isArray(i),c={i:u?1:0,A:s?s.A:o4(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},f=c,h=Od;u&&(f=[c],h=qc);var p=Proxy.revocable(f,h),v=p.revoke,y=p.proxy;return c.k=y,c.j=v,y}(e,n):Gi("ES5").J(e,n);return(n?n.A:o4()).p.push(r),r}function zoe(t){return Do(t)||Oi(22,t),function e(n){if(!Ta(n))return n;var r,i=n[qt],s=pu(n);if(i){if(!i.P&&(i.i<4||!Gi("ES5").K(i)))return i.t;i.I=!0,r=vT(n,s),i.I=!1}else r=vT(n,s);return Rs(r,function(u,c){i&&Foe(i.t,u)===c||KN(r,u,e(c))}),s===3?new Set(r):r}(t)}function vT(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return k5(t)}function Voe(){function t(s,u){var c=i[s];return c?c.enumerable=u:i[s]=c={configurable:!0,enumerable:u,get:function(){var f=this[qt];return Od.get(f,s)},set:function(f){var h=this[qt];Od.set(h,s,f)}},c}function e(s){for(var u=s.length-1;u>=0;u--){var c=s[u][qt];if(!c.P)switch(c.i){case 5:r(c)&&bo(c);break;case 4:n(c)&&bo(c)}}}function n(s){for(var u=s.t,c=s.k,f=Xl(c),h=f.length-1;h>=0;h--){var p=f[h];if(p!==qt){var v=u[p];if(v===void 0&&!Kl(u,p))return!0;var y=c[p],b=y&&y[qt];if(b?b.t!==v:!XN(y,v))return!0}}var $=!!u[qt];return f.length!==Xl(u).length+($?0:1)}function r(s){var u=s.k;if(u.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(u,u.length-1);if(c&&!c.get)return!0;for(var f=0;f1?T-1:0),D=1;D1?p-1:0),y=1;y=0;i--){var s=r[i];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}i>-1&&(r=r.slice(i+1));var u=Gi("Patches").$;return Do(n)?u(n,r):this.produce(n,function(c){return u(c,r)})},t}(),zr=new Zoe,eD=zr.produce;zr.produceWithPatches.bind(zr);zr.setAutoFreeze.bind(zr);zr.setUseProxies.bind(zr);zr.applyPatches.bind(zr);zr.createDraft.bind(zr);zr.finishDraft.bind(zr);var S1="NOT_FOUND";function Yoe(t){var e;return{get:function(r){return e&&t(e.key,r)?e.value:S1},put:function(r,i){e={key:r,value:i}},getEntries:function(){return e?[e]:[]},clear:function(){e=void 0}}}function Koe(t,e){var n=[];function r(c){var f=n.findIndex(function(p){return e(c,p.key)});if(f>-1){var h=n[f];return f>0&&(n.splice(f,1),n.unshift(h)),h.value}return S1}function i(c,f){r(c)===S1&&(n.unshift({key:c,value:f}),n.length>t&&n.pop())}function s(){return n}function u(){n=[]}return{get:r,put:i,getEntries:s,clear:u}}var Xoe=function(e,n){return e===n};function Qoe(t){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,s=0;s1?e-1:0),r=1;r0&&s[s.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]t.agents,t=>t),Tse=t=>tD(aD,e=>e[t]);var rg=(t=>(t.CC_WEBCHAT_BOOT="CC_WEBCHAT_BOOT",t.CC_WEBCHAT_INITIALIZED="CC_WEBCHAT_INITIALIZED",t.CC_WEBCHAT_SET_IFRAME_SIZE="CC_WEBCHAT_SET_IFRAME_SIZE",t))(rg||{});const wse=(t,e)=>{let n=!0;if(e&&e.length>0)try{const r=new URL(`https://${t}`);n=e.some(i=>r.hostname.match(`^${i.replace(/\./g,"\\.").replace(/\*/g,".*")}$`))}catch{n=!1}return n};var gr=(t=>(t.WEBCHAT_GATEWAY="webchat-gateway",t))(gr||{});const oD={"webchat-gateway":{name:"contact-center-webchat-integration",version:"v2"}},B5=(t="webchat-gateway")=>oD[t].name,U5=(t="webchat-gateway")=>oD[t].version,Ase=()=>"https://api.jive.com",Ose=()=>"https://webrtc.jive.com/notification-channel-anonymous/v1/channels",Rse=()=>"4e58eb37-be56-4348-a329-ac3d8ee16c26",sD=()=>"contact.goto.com",Nse={getName:()=>"Production",getNotificationUrl:Ose,getHost:sD,getStandAloneAppKey:Rse,getApiPath:(t=gr.WEBCHAT_GATEWAY)=>`${Ase()}/${B5(t)}/${U5(t)}`},Dse=()=>"https://api.staging.jive.com",Mse=()=>"https://webrtc.staging.jive.com/notification-channel-anonymous/v1/channels",Ise=()=>"5177b266-4918-45bd-85aa-27fadbdd6ab9",lD=()=>"contact.stage.gtc.goto.com",Lse={getName:()=>"Stage",getNotificationUrl:Mse,getHost:lD,getStandAloneAppKey:Ise,getApiPath:(t=gr.WEBCHAT_GATEWAY)=>`${Dse()}/${B5(t)}/${U5(t)}`},kse=()=>"https://api.dev.jive.com",Pse=()=>"https://webrtc.dev.jive.com/notification-channel-anonymous/v1/channels",jse=()=>"022a52bb-ff1c-442e-9720-3a17ccd56d95",uD=()=>"contact.ed.gtc.goto.com",_T={getName:()=>"ED",getNotificationUrl:Pse,getHost:uD,getStandAloneAppKey:jse,getApiPath:(t=gr.WEBCHAT_GATEWAY)=>`${kse()}/${B5(t)}/${U5(t)}`},ou=()=>{const t=window.location.host;return t===sD()?Nse:t===lD()?Lse:(t===uD()||console.error("Unknonwn environment, running ED configuration"),_T)},cD=js({initialState:null,name:"error",reducers:{setError:(t,e)=>(console.error(e.payload.message),e.payload)}}),{setError:Fn}=cD.actions,Fse=cD.reducer;var On=(t=>(t.NETWORK="NETWORK",t.NOTIFICATION="NOTIFICATION",t.DATA="DATA",t))(On||{});const dD=(t,e,n={},r=gr.WEBCHAT_GATEWAY)=>{const i=`${ou().getApiPath(r)}/${t}`,{headers:s={},...u}=n;return fetch(i,{headers:{...e&&{appKey:e.appKey,"Host-Referer":e.hostReferer},...s},...u})},Lo=(t,e)=>(n,r={},i=gr.WEBCHAT_GATEWAY)=>{const{widgetConfiguration:s}=e();return dD(n,s,r,i).then(u=>u.status>=400?(t(Fn({type:On.NETWORK,message:`An error occured when calling: ${n}`})),null):u,()=>(t(Fn({type:On.NETWORK,message:"Problem establishing server connection"})),null))},Hse={},fD=js({initialState:Hse,name:"config",reducers:{setConfig:(t,{payload:e})=>e}}),{setConfig:Bse}=fD.actions,Use=fD.reducer,zse="Company name";i4.SMALL,wd.GENERIC,Ci.SVG_PERSON_ACTIVE,a4.GENERIC,Ci.SVG_CHAT_DOTS_INACTIVE,m1.LEFT;const Vse=()=>async(t,e)=>{var r,i,s,u;const n=await Lo(t,e)("configuration",{},gr.WEBCHAT_GATEWAY);if(n){const c=await n.json();wse((r=e().widgetConfiguration)==null?void 0:r.hostReferer,c.domainNames)&&((s=(i=c==null?void 0:c.theme)==null?void 0:i.webChatContactInformationSettings)!=null&&s.customFields&&(c.theme.webChatContactInformationSettings.customFields=(c.theme.webChatContactInformationSettings.customFields||[]).sort((f,h)=>f.field===zse?-1:f.index-h.index).map((f,h)=>({...f,index:f.index??h}))),console.log(c.theme.webChatContactInformationSettings.customFields),t(Bse(c)),vD({type:rg.CC_WEBCHAT_INITIALIZED,payload:{position:(u=c.theme)==null?void 0:u.pagePosition}}))}},qse={},hD=js({initialState:qse,name:"widget",reducers:{setWidgetConfiguration:(t,{payload:e})=>e,setInvalidParticipant:(t,{payload:e})=>({...t,invalidParticipant:e})}}),{setWidgetConfiguration:Gse,setInvalidParticipant:gD}=hD.actions,Wse=hD.reducer;var f4=function(t,e){return f4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},f4(t,e)},on=function(){return on=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])||p[0]!==6&&p[0]!==2)){u=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]0&&(this.metricsIntervalInitial>0?setTimeout(function(){e.startTimer(),e.sendMetrics()},this.metricsIntervalInitial):this.startTimer())},t.prototype.stop=function(){this.timer&&(clearTimeout(this.timer),delete this.timer)},t.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},t.prototype.getHeaders=function(){var e,n=((e={})[this.headerName]=this.clientKey,e.Accept="application/json",e["Content-Type"]="application/json",e);return Object.entries(this.customHeaders).filter(t0).forEach(function(r){var i=r[0],s=r[1];return n[i]=s}),n},t.prototype.sendMetrics=function(){return _i(this,void 0,void 0,function(){var e,n,r;return Ti(this,function(i){switch(i.label){case 0:if(e="".concat(this.url,"/client/metrics"),n=this.getPayload(),this.bucketIsEmpty(n))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetch(e,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(n)})];case 2:return i.sent(),this.onSent(n),[3,4];case 3:return r=i.sent(),console.error("Unleash: unable to send feature metrics",r),this.onError(r),[3,4];case 4:return[2]}})})},t.prototype.count=function(e,n){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e][n?"yes":"no"]++,!0)},t.prototype.countVariant=function(e,n){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e].variants[n]?this.bucket.toggles[e].variants[n]+=1:this.bucket.toggles[e].variants[n]=1,!0)},t.prototype.assertBucket=function(e){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[e]||(this.bucket.toggles[e]={yes:0,no:0,variants:{}})},t.prototype.startTimer=function(){var e=this;this.timer=setInterval(function(){e.sendMetrics()},this.metricsInterval)},t.prototype.bucketIsEmpty=function(e){return Object.keys(e.bucket.toggles).length===0},t.prototype.getPayload=function(){var e=on(on({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:e,appName:this.appName,instanceId:"browser"}},t}(),Xse=function(){function t(){this.store=new Map}return t.prototype.save=function(e,n){return _i(this,void 0,void 0,function(){return Ti(this,function(r){return this.store.set(e,n),[2]})})},t.prototype.get=function(e){return _i(this,void 0,void 0,function(){return Ti(this,function(n){return[2,this.store.get(e)]})})},t}(),Qse=function(){function t(){this.prefix="unleash:repository"}return t.prototype.save=function(e,n){return _i(this,void 0,void 0,function(){var r,i;return Ti(this,function(s){r=JSON.stringify(n),i="".concat(this.prefix,":").concat(e);try{window.localStorage.setItem(i,r)}catch(u){console.error(u)}return[2]})})},t.prototype.get=function(e){try{var n="".concat(this.prefix,":").concat(e),r=window.localStorage.getItem(n);return r?JSON.parse(r):void 0}catch(i){console.error(i)}},t}();let jh;const Jse=new Uint8Array(16);function ele(){if(!jh&&(jh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!jh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jh(Jse)}const Pn=[];for(let t=0;t<256;++t)Pn.push((t+256).toString(16).slice(1));var TT={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tle(t,e,n){if(TT.randomUUID&&!t)return TT.randomUUID();const r=(t=t||{}).random||(t.rng||ele)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(i,s=0){return Pn[i[s+0]]+Pn[i[s+1]]+Pn[i[s+2]]+Pn[i[s+3]]+"-"+Pn[i[s+4]]+Pn[i[s+5]]+"-"+Pn[i[s+6]]+Pn[i[s+7]]+"-"+Pn[i[s+8]]+Pn[i[s+9]]+"-"+Pn[i[s+10]]+Pn[i[s+11]]+Pn[i[s+12]]+Pn[i[s+13]]+Pn[i[s+14]]+Pn[i[s+15]]}(r)}var nle=function(){function t(){}return t.prototype.generateEventId=function(){return tle()},t.prototype.createImpressionEvent=function(e,n,r,i,s,u){var c=this.createBaseEvent(e,n,r,i,s);return u?on(on({},c),{variant:u}):c},t.prototype.createBaseEvent=function(e,n,r,i,s){return{eventType:i,eventId:this.generateEventId(),context:e,enabled:n,featureName:r,impressionData:s}},t}(),rle=["userId","sessionId","remoteAddress","currentTime"],wT=function(t){return rle.includes(t)},xr={INIT:"initialized",ERROR:"error",READY:"ready",UPDATE:"update",IMPRESSION:"impression",SENT:"sent",RECOVERED:"recovered"},ile="isEnabled",ale="getVariant",ole={name:"disabled",enabled:!1,feature_enabled:!1},Nb="repo",sle=function(){try{if(typeof window<"u"&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(t){console.error('Unleash failed to resolve "fetch"',t)}},lle=function(t){function e(n){var r=n.storageProvider,i=n.url,s=n.clientKey,u=n.disableRefresh,c=u!==void 0&&u,f=n.refreshInterval,h=f===void 0?30:f,p=n.metricsInterval,v=p===void 0?30:p,y=n.metricsIntervalInitial,b=y===void 0?2:y,$=n.disableMetrics,E=$!==void 0&&$,A=n.appName,T=n.environment,R=T===void 0?"default":T,D=n.context,M=n.fetch,O=M===void 0?sle():M,L=n.createAbortController,z=L===void 0?function(){try{if(typeof window<"u"&&"AbortController"in window)return function(){return new window.AbortController};if("fetch"in globalThis)return function(){return new globalThis.AbortController}}catch(w){console.error('Unleash failed to resolve "AbortController" factory',w)}}():L,V=n.bootstrap,Y=n.bootstrapOverride,te=Y===void 0||Y,W=n.headerName,ce=W===void 0?"Authorization":W,B=n.customHeaders,Ee=B===void 0?{}:B,pe=n.impressionDataAll,H=pe!==void 0&&pe,Q=n.usePOSTrequests,he=Q!==void 0&&Q,fe=t.call(this)||this;if(fe.toggles=[],fe.etag="",fe.readyEventEmitted=!1,fe.fetchedFromServer=!1,fe.usePOSTrequests=!1,fe.started=!1,!i)throw new Error("url is required");if(!s)throw new Error("clientKey is required");if(!A)throw new Error("appName is required.");return fe.eventsHandler=new nle,fe.impressionDataAll=H,fe.toggles=V&&V.length>0?V:[],fe.url=i instanceof URL?i:new URL(i),fe.clientKey=s,fe.headerName=ce,fe.customHeaders=Ee,fe.storage=r||(typeof window<"u"?new Qse:new Xse),fe.refreshInterval=c?0:1e3*h,fe.context=on({appName:A,environment:R},D),fe.usePOSTrequests=he,fe.sdkState="initializing",fe.ready=new Promise(function(w){fe.init().then(w).catch(function(F){console.error(F),fe.sdkState="error",fe.emit(xr.ERROR,F),fe.lastError=F,w()})}),O||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),z||console.error('Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.'),fe.fetch=O,fe.createAbortController=z,fe.bootstrap=V&&V.length>0?V:void 0,fe.bootstrapOverride=te,fe.metrics=new Kse({onError:fe.emit.bind(fe,xr.ERROR),onSent:fe.emit.bind(fe,xr.SENT),appName:A,metricsInterval:v,disableMetrics:E,url:fe.url,clientKey:s,fetch:O,headerName:ce,customHeaders:Ee,metricsIntervalInitial:b}),fe}return function(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=n}f4(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(e,t),e.prototype.getAllToggles=function(){return function(n,r,i){for(var s,u=0,c=r.length;u0&&(this.timerRef=setInterval(function(){return r.fetchToggles()},n)),[2]}})})},e.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},e.prototype.isReady=function(){return this.readyEventEmitted},e.prototype.getError=function(){return this.sdkState==="error"?this.lastError:void 0},e.prototype.resolveSessionId=function(){return _i(this,void 0,void 0,function(){var n;return Ti(this,function(r){switch(r.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get("sessionId")];case 1:return(n=r.sent())?[3,3]:(n=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",n)]);case 2:r.sent(),r.label=3;case 3:return[2,n]}})})},e.prototype.getHeaders=function(){var n,r=this.usePOSTrequests,i=((n={})[this.headerName]=this.clientKey,n.Accept="application/json",n);return r&&(i["Content-Type"]="application/json"),this.etag&&(i["If-None-Match"]=this.etag),Object.entries(this.customHeaders).filter(t0).forEach(function(s){var u=s[0],c=s[1];return i[u]=c}),i},e.prototype.storeToggles=function(n){return _i(this,void 0,void 0,function(){return Ti(this,function(r){switch(r.label){case 0:return this.toggles=n,this.emit(xr.UPDATE),[4,this.storage.save(Nb,n)];case 1:return r.sent(),[2]}})})},e.prototype.fetchToggles=function(){var n;return _i(this,void 0,void 0,function(){var r,i,s,u,c,f,h,p;return Ti(this,function(v){switch(v.label){case 0:if(!this.fetch)return[3,9];this.abortController&&this.abortController.abort(),this.abortController=(n=this.createAbortController)===null||n===void 0?void 0:n.call(this),r=this.abortController?this.abortController.signal:void 0,v.label=1;case 1:return v.trys.push([1,7,8,9]),i=this.usePOSTrequests,s=i?this.url:function(y,b){var $=new URL(y.toString());return Object.entries(b).filter(t0).forEach(function(E){var A=E[0],T=E[1];A==="properties"&&T?Object.entries(T).filter(t0).forEach(function(R){var D=R[0],M=R[1];return $.searchParams.append("properties[".concat(D,"]"),M)}):$.searchParams.append(A,T)}),$}(this.url,this.context),u=i?"POST":"GET",c=i?JSON.stringify({context:this.context}):void 0,[4,this.fetch(s.toString(),{method:u,cache:"no-cache",headers:this.getHeaders(),body:c,signal:r})];case 2:return f=v.sent(),this.sdkState==="error"&&f.status<400&&(this.sdkState="healthy",this.emit(xr.RECOVERED)),f.ok&&f.status!==304?(this.etag=f.headers.get("ETag")||"",[4,f.json()]):[3,5];case 3:return h=v.sent(),[4,this.storeToggles(h.toggles)];case 4:return v.sent(),this.sdkState!=="healthy"&&(this.sdkState="healthy"),this.fetchedFromServer||(this.fetchedFromServer=!0,this.readyEventEmitted=!0,this.emit(xr.READY)),[3,6];case 5:f.ok||f.status===304||(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.sdkState="error",this.emit(xr.ERROR,{type:"HttpError",code:f.status}),this.lastError={type:"HttpError",code:f.status}),v.label=6;case 6:return[3,9];case 7:return(p=v.sent())instanceof DOMException&&p.name==="AbortError"||(console.error("Unleash: unable to fetch feature toggles",p),this.sdkState="error",this.emit(xr.ERROR,p),this.lastError=p),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}})})},e}(Zse);const ule={ED:"[]:ED.7262a863cbe0e8321619f4d987316ad2b70cea6f4459dd8ecebcd411",Stage:"[]:Stage.7995add709415d66710dd7ce151e2792cd38151b264090f90a7e634d",Production:"[]:Production.96ffe11bb3a9f18a6d5fcfa993e8025999ebba1162fdb973ec663aba"},n0=new lle({url:"https://api.jive.com/feature-flags-edge/v1/api/frontend",clientKey:ule[ou().getName()],appName:"GoTo App",environment:ou().getName()});let mD;const cle=(t,e)=>{const n=new URL(t.origin);mD=t.origin,e(Gse({appKey:t.data.payload,hostReferer:`${n.hostname}`})),n0.on("ready",async()=>{e(Vse())})},dle=(t,e)=>{var n;switch((n=t.data)==null?void 0:n.type){case rg.CC_WEBCHAT_BOOT:cle(t,e);break}},vD=t=>{parent.postMessage(t,mD)},fle=async t=>t,hle={},yD=js({initialState:hle,name:"agents",reducers:{setAgent:(t,{payload:e})=>{t[e.key]={...e}},setAgentAvatar:(t,{payload:e})=>{t[e.key]={...t[e.key],avatarUrl:e.avatarUrl}},removeAgent:(t,{payload:e})=>{delete t[e.key]}}}),{setAgent:bD,setAgentAvatar:gle,removeAgent:ple}=yD.actions,mle=yD.reducer,SD=js({initialState:[],name:"conversationEvents",reducers:{setEvents:(t,{payload:e})=>e,addEvent:(t,{payload:e})=>[e,...t],removeEvent:(t,e)=>t.filter(n=>n.id!==e.payload.id),failMessageEvent:(t,e)=>{const n=t.find(r=>r4(r)&&r.id===e.payload.id);n&&(n.id=n.id.replace(e0,Cb))},mergeMessageEvent:(t,e)=>{let n=!1;t.forEach(r=>{r4(r)&&(r.id.startsWith(e0)||r.id.startsWith(Cb))&&(r.id.replace(e0,"").replace(Cb,"")===e.payload.correlationId||r.body===e.payload.body)&&(n=!0,r.id=e.payload.id,r.createdAt=e.payload.createdAt,r.from=e.payload.from,r.associatedFiles=e.payload.associatedFiles)}),n||t.unshift(e.payload)}}}),g4=js({initialState:null,name:"agentTypingIndicator",reducers:{setTypingIndicator:(t,{payload:e})=>e}}),{setEvents:xD,addEvent:Hi,removeEvent:vle,failMessageEvent:AT,mergeMessageEvent:yle}=SD.actions,ble=SD.reducer,Sle={},$D=js({initialState:Sle,name:"notifications",reducers:{setInitialState:(t,{payload:e})=>e,updateInitialState:(t,{payload:e})=>Object.assign(t,e)}}),{setInitialState:xle,updateInitialState:ED}=$D.actions,$le=$D.reducer,Ele=NN({agents:mle,agentTypingIndicator:g4.reducer,conversationEvents:ble,error:Fse,notifications:$le,webChatConfiguration:Use,widgetConfiguration:Wse}),CD=mse({reducer:Ele}),So=SL,z5=vL,Cle=t=>{_.useEffect(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}),[])},_le="modulepreload",Tle=function(t){return"/web-chat/"+t},OT={},St=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=u(n.map(h=>{if(h=Tle(h),h in OT)return;OT[h]=!0;const p=h.endsWith(".css"),v=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":_le,p||(y.as="script"),y.crossOrigin="",y.href=h,f&&y.setAttribute("nonce",f),document.head.appendChild(y),p)return new Promise((b,$)=>{y.addEventListener("load",b),y.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return i.then(u=>{for(const c of u||[])c.status==="rejected"&&s(c.reason);return e().catch(s)})};var wle=function(e){return{type:"backend",init:function(r,i,s){},read:function(r,i,s){if(typeof e=="function"){if(e.length<3){try{var u=e(r,i);u&&typeof u.then=="function"?u.then(function(c){return s(null,c&&c.default||c)}).catch(s):s(null,u)}catch(c){s(c)}return}e(r,i,s);return}s(null,e&&e[r]&&e[r][i])}}};const _D={"de-DE":()=>[St(()=>import("./de-DE.json-DBCmfTNR.js"),[]),St(()=>import("./de-DE-Ci9NCSUV.js"),[])],"en-AU":()=>[St(()=>import("./en-AU.json-A-oXEFCB.js"),[]),St(()=>import("./en-AU-DVZjI-SB.js"),[])],"en-CA":()=>[St(()=>import("./en-CA.json-XiW3oIeK.js"),[]),St(()=>import("./en-CA-DVZjI-SB.js"),[])],"en-GB":()=>[St(()=>import("./en-GB.json-XiW3oIeK.js"),[]),St(()=>import("./en-GB-DVZjI-SB.js"),[])],"en-IE":()=>[St(()=>import("./en-IE.json-Dtc90umJ.js"),[]),St(()=>import("./en-IE-DVZjI-SB.js"),[])],"en-US":()=>[St(()=>import("./en-US.json-DDM4SfNE.js"),[]),St(()=>import("./en-US-DVZjI-SB.js"),[])],"es-ES":()=>[St(()=>import("./es-ES.json-BsQuWbCO.js"),[]),St(()=>import("./es-ES-B5jO1xLw.js"),[])],"es-MX":()=>[St(()=>import("./es-MX.json-DlYtOy4_.js"),[]),St(()=>import("./es-MX-7fBJ1cun.js"),[])],"fr-CA":()=>[St(()=>import("./fr-CA.json-U6lxaaTk.js"),[]),St(()=>import("./fr-CA-DGZp_3do.js"),[])],"fr-FR":()=>[St(()=>import("./fr-FR.json-C1ephXlU.js"),[]),St(()=>import("./fr-FR-5bc97AZ-.js"),[])],"it-IT":()=>[St(()=>import("./it-IT.json-BBp7H6gZ.js"),[]),St(()=>import("./it-IT-BaVeEYRQ.js"),[])],"ja-JP":()=>[St(()=>import("./ja-JP.json-CVsWQjN7.js"),[]),St(()=>import("./ja-JP-DH0Qg6XI.js"),[])],"ko-KR":()=>[St(()=>import("./ko-KR.json-XiW3oIeK.js"),[]),St(()=>import("./ko-KR-DVZjI-SB.js"),[])],"pt-BR":()=>[St(()=>import("./pt-BR.json-CUiXbYt6.js"),[]),St(()=>import("./pt-BR-3DxllI5V.js"),[])],"zh-CN":()=>[St(()=>import("./zh-CN.json-XiW3oIeK.js"),[]),St(()=>import("./zh-CN-DVZjI-SB.js"),[])]},Ale=Object.keys(_D),x1=vn.createInstance({fallbackLng:"en-US",supportedLngs:Ale,nonExplicitSupportedLngs:!1,load:"currentOnly"}),Ole=(t="en-US")=>x1.use(tk).use(wle(e=>Rle(e))).init({lng:dO(t),fallbackLng:"en-US",keySeparator:!1,nsSeparator:!1,react:{transKeepBasicHtmlNodesFor:[],useSuspense:!1}}),Rle=async t=>(await Promise.all(_D[t]())).reduce((n,r)=>Object.assign(n,r.default||{}),{}),Nle=t=>x1.changeLanguage(dO(t));var Db={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var RT;function Dle(){return RT||(RT=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i{var u,c,f,h,p;const r=YN.v4(),i={id:e0+r,type:"OUTBOUND_MESSAGE",direction:Ts.OUTBOUND,conversationId:r,createdAt:new Date().toISOString(),body:t.body,filedIds:t.fileBlobsWithId.map(({id:v})=>v)};e(Hi(i));const s=new FormData;s.append("message",new Blob([JSON.stringify({body:t.body,correlationId:t.correlationId,participantExternalKey:(c=(u=n().notifications)==null?void 0:u.participant)==null?void 0:c.key})],{type:"application/json"})),(f=t.fileBlobsWithId)==null||f.forEach(({file:v})=>{s.append("file",v)}),(p=(h=n().notifications)==null?void 0:h.participant)!=null&&p.key&&await Lo(e,n)("messages",{method:"POST",body:s},gr.WEBCHAT_GATEWAY)||e(AT(i))},Lle=t=>async(e,n)=>{TD(t,e,n)},kle=(t,e)=>async(n,r)=>{n(vle(t)),TD({body:t.body,fileBlobsWithId:e},n,r)},Ple=()=>async(t,e)=>{var n,r,i,s;(r=(n=e().notifications)==null?void 0:n.participant)!=null&&r.key&&(await Lo(t,e)("participant-left",{method:"POST",keepalive:!0,body:JSON.stringify({participantExternalKey:(s=(i=e().notifications)==null?void 0:i.participant)==null?void 0:s.key}),headers:{"Content-Type":"application/json"}},gr.WEBCHAT_GATEWAY),t(xD([])))},jle=t=>async(e,n)=>{var i,s;const r=(s=(i=n().notifications)==null?void 0:i.participant)==null?void 0:s.key;r&&await Lo(e,n)("typing-indicators",{method:"POST",body:JSON.stringify({status:t?"TYPING_ON":"TYPING_OFF",participantExternalKey:r}),headers:{"content-type":"application/json"}},gr.WEBCHAT_GATEWAY)},Fle=()=>async(t,e)=>{var r,i;const n=(i=(r=e().notifications)==null?void 0:r.participant)==null?void 0:i.key;n&&await Lo(t,e)("read-receipts",{method:"POST",body:JSON.stringify({participantExternalKey:n}),headers:{"content-type":"application/json"}},gr.WEBCHAT_GATEWAY)};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var p4=function(t,e){return p4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},p4(t,e)};function wD(t,e){p4(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Hle(t){var e=typeof Symbol=="function"&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function Ble(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],u;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return s}function Ule(){for(var t=[],e=0;e * https://github.com/pladaria/reconnecting-websocket * License MIT */var qle=function(){if(typeof WebSocket<"u")return WebSocket},Gle=function(t){return typeof t<"u"&&!!t&&t.CLOSING===2},ls={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Wle=function(){function t(e,n,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){i._debug("open event");var u=i._options.minUptime,c=u===void 0?ls.minUptime:u;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},c),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(f){return i._ws.send(f)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(f){return i._callEventListener(s,f)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(u){return i._callEventListener(s,u)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(u){return i._callEventListener(s,u)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(u){return i._callEventListener(s,u)})},this._url=e,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(t,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CONNECTING",{get:function(){return t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OPEN",{get:function(){return t.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSING",{get:function(){return t.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSED",{get:function(){return t.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?t.CLOSED:t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),t.prototype.close=function(e,n){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,n)},t.prototype.reconnect=function(e,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,n),this._connect())},t.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?ls.maxEnqueuedMessages:n;this._messageQueue.length"],e))},t.prototype._getNextDelay=function(){var e=this._options,n=e.reconnectionDelayGrowFactor,r=n===void 0?ls.reconnectionDelayGrowFactor:n,i=e.minReconnectionDelay,s=i===void 0?ls.minReconnectionDelay:i,u=e.maxReconnectionDelay,c=u===void 0?ls.maxReconnectionDelay:u,f=0;return this._retryCount>0&&(f=s*Math.pow(r,this._retryCount-1),f>c&&(f=c)),this._debug("next delay",f),f},t.prototype._wait=function(){var e=this;return new Promise(function(n){setTimeout(n,e._getNextDelay())})},t.prototype._getNextUrl=function(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){var n=e();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},t.prototype._connect=function(){var e=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,i=r===void 0?ls.maxRetries:r,s=n.connectionTimeout,u=s===void 0?ls.connectionTimeout:s,c=n.WebSocket,f=c===void 0?qle():c;if(this._retryCount>=i){this._debug("max retries reached",this._retryCount,">=",i);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!Gle(f))throw Error("No valid WebSocket class provided");this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(h){e._closeCalled||(e._debug("connect",{url:h,protocols:e._protocols}),e._ws=e._protocols?new f(h,e._protocols):new f(h),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},u))})}},t.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new zle(Error("TIMEOUT"),this))},t.prototype._disconnect=function(e,n){if(e===void 0&&(e=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(e,n),this._handleClose(new Vle(e,n,this))}catch{}}},t.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},t.prototype._callEventListener=function(e,n){"handleEvent"in n?n.handleEvent(e):n(e)},t.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},t.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},t.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},t}();const wo=async(t,e)=>t.upsert(e),Ul=async(t,e={})=>t.get(e),ba=(t,e={})=>t.delete(e),V5="cc.",q5=({key:t,discriminator:e,prefix:n})=>n+e+((e==null?void 0:e.length)===0?"":".")+t,ur=({key:t,data:e,discriminator:n=""},r=V5)=>{try{localStorage.setItem(`${q5({key:t,discriminator:n,prefix:r})}`,JSON.stringify(e))}catch{}},Gd=({key:t,discriminator:e=""},n=V5)=>{try{localStorage.removeItem(`${q5({key:t,discriminator:e,prefix:n})}`)}catch{}},cr=({key:t,discriminator:e=""},n=V5)=>{try{return JSON.parse(localStorage.getItem(`${q5({key:t,discriminator:e,prefix:n})}`))}catch(r){console.error("localStorage error: ",r)}return console.warn("localStorage is null"),null};var st=(t=>(t.WIDGET="widget.state",t.CONVERSATION="conversation.state",t.PARTICIPANT="participant.information",t.AGENT="agent.information",t.CHANNEL="channel.information",t))(st||{});const Rd={upsert({key:t,data:e,discriminator:n}){return new Promise(r=>{if(t&&typeof e=="string"){const i=cr({key:st.AGENT,discriminator:n});ur({key:st.AGENT,data:Object.assign({},i,{[t]:e}),discriminator:n})}else ur({key:st.AGENT,data:e,discriminator:n});r()})},get({key:t,discriminator:e}){return new Promise(n=>{const r=cr({key:st.AGENT,discriminator:e});n(r&&t?r[t]:r)})},delete({key:t,discriminator:e}){return new Promise((n,r)=>{if(t){const i=cr({key:st.AGENT,discriminator:e});i&&(delete i[t]?(ur({key:st.AGENT,data:i,discriminator:e}),n()):r(new Error(`Could not delete key [${t}] as it is non-existent. No changes made.`)))}else Gd({key:st.AGENT,discriminator:e}),n()})}},$1={upsert({key:t,data:e,discriminator:n}){return new Promise((r,i)=>{const s=cr({key:st.CHANNEL,discriminator:n});s&&t?["string","number","boolean"].includes(typeof e)&&t!=="channelData"||typeof e=="object"&&t==="channelData"?ur({key:st.CHANNEL,data:Object.assign({},s,{[t]:e}),discriminator:n}):i(new Error(`Cannot insert data of type ${typeof e} for key ${t}.`)):ur({key:st.CHANNEL,data:e,discriminator:n}),r()})},get({key:t,discriminator:e}){return new Promise(n=>{const r=cr({key:st.CHANNEL,discriminator:e});if(r&&t)switch(t){case"channelId":case"channelNickname":case"resourceURL":n(r[t]);break;case"channelLifetime":n(r[t]);break;case"doNotDisturbAware":n(r[t]);break;case"channelData":n(r[t]);break}else n(r)})},delete({key:t,discriminator:e}){return new Promise((n,r)=>{if(t){const i=cr({key:st.CHANNEL,discriminator:e});i&&(delete i[t]?(ur({key:st.CHANNEL,data:i,discriminator:e}),n()):r(new Error(`Could not delete key [${t}] as it is non-existent. No changes made.`)))}else Gd({key:st.CHANNEL,discriminator:e}),n()})}},ig={upsert({key:t,data:e,discriminator:n}){return new Promise(r=>{const i=cr({key:st.CONVERSATION,discriminator:n});ur(t&&typeof e=="boolean"?{key:st.CONVERSATION,data:Object.assign({},i,{[t]:e}),discriminator:n}:{key:st.CONVERSATION,data:e,discriminator:n}),r()})},get({key:t,discriminator:e}){return new Promise(n=>{const r=cr({key:st.CONVERSATION,discriminator:e});n(r&&t?r[t]:r)})},delete({key:t,discriminator:e}){return new Promise((n,r)=>{if(t){const i=cr({key:st.CONVERSATION,discriminator:e});i&&(delete i[t]?(ur({key:st.CONVERSATION,data:i,discriminator:e}),n()):r(new Error(`Could not delete key [${t}] as it is non-existent. No changes made.`)))}else Gd({key:st.CONVERSATION,discriminator:e}),n()})}},zl={upsert:function({key:t,discriminator:e,data:n}){return new Promise(r=>{const i=cr({key:st.PARTICIPANT,discriminator:e});ur(i&&t&&typeof n=="string"?{key:st.PARTICIPANT,data:Object.assign({},i,{[t]:n}),discriminator:e}:{key:st.PARTICIPANT,data:n,discriminator:e}),r()})},get:function({discriminator:t,key:e}){return new Promise(n=>{const r=cr({key:st.PARTICIPANT,discriminator:t});n(r&&e?r[e]:r)})},delete:function({key:t,discriminator:e}){return new Promise((n,r)=>{if(t){const i=cr({key:st.PARTICIPANT,discriminator:e});i&&(delete i[t]?(ur({key:st.PARTICIPANT,data:i,discriminator:e}),n()):r(new Error(`Could not delete key [${t}] as it is non-existent. No changes made.`)))}else Gd({key:st.PARTICIPANT,discriminator:e}),n()})}},E1={upsert({key:t,data:e,discriminator:n}){return new Promise(r=>{const i=cr({key:st.WIDGET,discriminator:n});ur(i&&t&&typeof e=="boolean"?{key:st.WIDGET,data:Object.assign({},i,{[t]:e}),discriminator:n}:{key:st.WIDGET,data:e,discriminator:n}),r()})},get({key:t,discriminator:e}){return new Promise(n=>{const r=cr({key:st.WIDGET,discriminator:e});n(r&&t?r[t]:r)})},delete({key:t,discriminator:e}){return new Promise((n,r)=>{if(t){const i=cr({key:st.WIDGET,discriminator:e});i&&(delete i[t]?(ur({key:st.WIDGET,data:i,discriminator:e}),n()):r(new Error(`Could not delete key [${t}] as it is non-existent. No changes made.`)))}else Gd({key:st.WIDGET,discriminator:e}),n()})}},Zle=async(t,e)=>Promise.all([wo(ig,{data:!0,key:"conversationTerminated"}),ba(E1),ba(Rd),ba($1),ba(zl,{discriminator:t.appKey})]).catch(n=>{e(Fn({type:On.DATA,message:n.message}))});var gn=(t=>(t.WEB_CHAT_INITIAL_STATE="WEB_CHAT_INITIAL_STATE",t.WEB_CHAT_INBOUND_MESSAGE="WEB_CHAT_INBOUND_MESSAGE",t.WEB_CHAT_OUTBOUND_MESSAGE="WEB_CHAT_OUTBOUND_MESSAGE",t.WEB_CHAT_SMART_RESPONSE_SELECT_QUESTION="WEB_CHAT_SMART_RESPONSE_SELECT_QUESTION",t.WEB_CHAT_ENDED="WEB_CHAT_ENDED",t.WEB_CHAT_AFTER_HOURS_MESSAGE="WEB_CHAT_AFTER_HOURS_MESSAGE",t.WEB_CHAT_SURVEY_CSAT_QUESTION="WEB_CHAT_SURVEY_CSAT_QUESTION",t.AGENT_TYPING_INDICATOR="AGENT_TYPING_INDICATOR",t.AGENT_READ_RECEIPT="AGENT_READ_RECEIPT",t.WEB_CHAT_SURVEY_RATING_QUESTION="WEB_CHAT_SURVEY_RATING_QUESTION",t.WEB_CHAT_SURVEY_FEEDBACK_QUESTION="WEB_CHAT_SURVEY_FEEDBACK_QUESTION",t.WEB_CHAT_SURVEY_RATING_RESPONSE="WEB_CHAT_SURVEY_RATING_RESPONSE",t.WEB_CHAT_SURVEY_FEEDBACK_RESPONSE="WEB_CHAT_SURVEY_FEEDBACK_RESPONSE",t))(gn||{});const NT="ping",Yle="pong",Kle=8e3,DT=6e3,OD=10,ag=!1,Xle=800,su=new Map;let xa,r0,i0,a0,Mb=0,o0=0,Nc=0;const C1=()=>{i0&&clearInterval(i0),i0=null,a0&&clearInterval(a0),a0=null,su.forEach(t=>{clearTimeout(t.timeout)}),su.clear()},Qle=async(t,e,n)=>{try{const r=await dD("participant-subscription",t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},gr.WEBCHAT_GATEWAY);return r.status===404?(ag&&console.log("The previous convertation has been already closed by the agent"),n(gD(!0)),{conversationNotFound:!0}):await r.json()}catch{return null}},MT=(t,e)=>{o0++,C1(),o0>OD?e(Fn({type:On.NOTIFICATION,message:"Maximum number of retry reached establishing the web socket connection"})):setTimeout(()=>t==null?void 0:t.reconnect(),o0*Xle)},Jle=(t,e)=>{Mb++;const n={correlationId:Mb,command:NT};return new Promise((r,i)=>{const s=()=>(su.delete(n.correlationId),e(Fn({type:On.NOTIFICATION,message:`Pong command not received after ${DT/1e3} seconds`})),i()),u=window.setTimeout(s,DT),c={resolve:r,reject:i,command:NT,timeout:u};su.set(Mb,c),t==null||t.send(JSON.stringify(n))})},RD=async()=>{const t={method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"}};try{if(!(await fetch(`${ou().getNotificationUrl()}/${xa.channelNickname}/${xa.channelId}/channel-lifetime`,t)).ok)throw new Error("could not refresh channel");ag&&console.log("channel refreshed")}catch(e){throw e}},ND=async()=>{r0=null;const t={method:"DELETE",headers:{Accept:"application/json","Content-Type":"application/json"}};try{await fetch(`${ou().getNotificationUrl()}/${xa.channelNickname}/${xa.channelId}`,t),ag&&console.log("channel deleted")}catch{}},eue=async()=>{const t=await Ul($1);if(t){xa=t;try{return await RD(),`${xa.channelData.channelURL}`}catch{await ND()}}const e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({channelLifetime:3600})};return C1(),fetch(`${ou().getNotificationUrl()}/${YN.v1()}`,e).then(n=>{if(n.ok)return n.json();throw new Error(n.status.toString())}).then(n=>(xa=n,wo($1,{data:n}),`${n.channelData.channelURL}`)).catch(n=>{if(n!=="403")return"wss://invalid-url-trying-to-reconnect"})},tue=(t,e)=>{const n=su.get(t.correlationId);n&&(clearTimeout(n.timeout),t.code>=200&&t.code<300?n.resolve(t.data):(e(Fn({type:On.NOTIFICATION,message:"Pong command received but with an error"})),n.reject(t.error))),su.delete(t.correlationId)},nue=(t,e,n,r,i,s)=>{let u=null;r&&(u=new Wle(eue,[],{maxRetries:5,debug:ag}));const c=()=>{if(Nc>OD)n(Fn({type:On.NOTIFICATION,message:"Maximum number of retry when subscribing the channel to the web chat service"})),Nc=0,MT(u,n);else{if(!r)return null;Qle(t,{channelId:xa.channelId,participant:{...e,...!(e!=null&&e.participantExternalKey)&&{participantExternalKey:r0}}},n).then(v=>{var y;v!=null&&v.conversationNotFound||(v?(r0=(y=v.participant)==null?void 0:y.participantExternalKey,wo(zl,{data:{...e,...!(e!=null&&e.participantExternalKey)&&{participantExternalKey:r0}},key:"participantExternalKey",discriminator:t.appKey}).then(()=>wo(ig,{data:!1,key:"conversationTerminated"})).catch(b=>n(Fn({type:On.DATA,message:b.message}))),Nc=0,C1(),i0=setInterval(async()=>{try{await Jle(u,n),o0=0}catch{MT(u,n)}},Kle),a0=setInterval(async()=>{await RD()},(xa.channelLifetime-60)*1e3)):(Nc++,setTimeout(()=>{c()},Nc*500)))})}},f=({data:v})=>{const y=JSON.parse(v);switch(y.data.type){case Yle:tue(y,n);break;case gn.WEB_CHAT_INITIAL_STATE:i(y.data);break;default:s(y.data.type,y.data);break}},h=v=>{},p=v=>{};return u==null||u.addEventListener("open",c),u==null||u.addEventListener("message",f),u==null||u.addEventListener("close",h),u==null||u.addEventListener("error",p),()=>{C1(),u==null||u.removeEventListener("open",c),u==null||u.removeEventListener("message",f),u==null||u.removeEventListener("close",h),u==null||u.removeEventListener("error",p),u==null||u.close()}},Ib=(t,e=!1)=>async(n,r)=>{var s,u;const i=(u=(s=r().notifications)==null?void 0:s.participant)==null?void 0:u.key;i&&await Lo(n,r)("surveys",{method:"POST",body:JSON.stringify({participantExternalKey:i,content:t,isOpenFeedback:e}),headers:{"Content-Type":"application/json"}},gr.WEBCHAT_GATEWAY)},rue=t=>async(e,n)=>{var i,s;const r=(s=(i=n().notifications)==null?void 0:i.participant)==null?void 0:s.key;r&&Lo(e,n)("smart-responses",{method:"POST",body:JSON.stringify({participantExternalKey:r,content:t}),headers:{"Content-Type":"application/json"}},gr.WEBCHAT_GATEWAY)},iue=t=>async(e,n)=>{const r=await Lo(e,n)(`agent-avatar?agentKey=${encodeURIComponent(t)}`,{headers:{"Content-Type":"application/json"}},gr.WEBCHAT_GATEWAY);if(r){const i=URL.createObjectURL(await r.blob());e(gle({key:t,avatarUrl:i}))}},aue=({key:t,firstName:e})=>async(n,r)=>{const i=Tse(t)(r());!i&&n(bD({key:t,firstName:e})),!(i!=null&&i.avatarUrl)&&n(iue(t))},oue=({options:t,eventIdentifier:e,sentAt:n,type:r})=>({id:e,type:r,options:t,conversationId:"",createdAt:n}),Lb=t=>{const{key:e,direction:n,body:r,associatedFiles:i,agent:s}=t.message;return{id:e,direction:n===Ts.INBOUND?Ts.OUTBOUND:Ts.INBOUND,type:t.type,body:r,conversationId:"",...s&&{from:{id:s==null?void 0:s.key,firstName:s==null?void 0:s.firstName}},createdAt:t.sentAt,associatedFiles:i}},IT=({eventIdentifier:t,sentAt:e,afterHoursMessage:n,type:r})=>({id:t,type:r,conversationId:"",createdAt:e,afterHoursMessage:n}),sue=t=>{var e;return{id:t.eventIdentifier,type:t.type,performedBy:{id:"",firstName:(e=t.agent)==null?void 0:e.firstName},createdAt:t.sentAt}},lue=({eventIdentifier:t,negativeAnswer:e,positiveAnswer:n,question:r,sentAt:i,type:s})=>({type:s,positiveAnswer:n,negativeAnswer:e,question:r,id:t,createdAt:i,conversationId:""}),uue=({eventIdentifier:t,feedbackQuestion:e,sentAt:n,type:r})=>({type:r,feedbackQuestion:e,id:t,createdAt:n,conversationId:""}),cue=({eventIdentifier:t,sentAt:e,type:n,rating:r})=>({type:n,rating:r,id:t,createdAt:e,conversationId:""}),due=({response:t,sentAt:e,type:n,eventIdentifier:r})=>({type:n,response:t,id:r,createdAt:e,conversationId:""}),fue=({type:t,eventIdentifier:e,options:n,sentAt:r})=>({id:e,type:t,options:n,createdAt:r,conversationId:""}),hue=({question:t,type:e,participant:n,eventIdentifier:r,sentAt:i})=>({participant:n,question:t,eventIdentifier:r,type:e,sentAt:i}),gue=async t=>new Audio(t).play(),pue=St(()=>import("./ping-2IXur_SB.js"),[]).then(t=>t.default).catch(t=>(console.error("Failed to preload audio notification:",t),null));let LT;const mue=(t,e)=>{clearTimeout(LT),t(g4.actions.setTypingIndicator(e)),e.isTyping&&(LT=setTimeout(()=>{t(g4.actions.setTypingIndicator({...e,isTyping:!1}))},koe))},vue=(t,{agent:e,readAt:n})=>{t(ED({agentReadReceipts:[{agent:e,readAt:n}]}))},yue=({widgetConfiguration:t,subscriptionActive:e,participant:n,playSoundOnOutboundEvent:r=!0})=>{const i=z5();return _.useEffect(()=>nue(t,n,i,e,s=>{const u=s.content;i(xle(u));const c=u.conversationEvents.filter(Boolean).map(f=>{const h={...f,sentAt:s.timestamp};switch(f.type){case gn.WEB_CHAT_AFTER_HOURS_MESSAGE:return IT(h);case gn.WEB_CHAT_INBOUND_MESSAGE:case gn.WEB_CHAT_OUTBOUND_MESSAGE:return Lb(h);case gn.WEB_CHAT_SMART_RESPONSE_SELECT_QUESTION:return oue(h);case gn.WEB_CHAT_SURVEY_CSAT_QUESTION:return hue(h)}});i(xD(c))},async(s,u)=>{var f;const c={...u.content,sentAt:u.timestamp};if(((f=c.message)==null?void 0:f.direction)==="OUTBOUND"&&r)try{await gue(await pue)}catch(h){console.error("Failed to play audio notification:",h),i(Fn({type:On.NOTIFICATION,message:String(h)}))}switch(s){case gn.WEB_CHAT_INBOUND_MESSAGE:{const h=c;i(yle({...Lb(h),correlationId:h.correlationId}));break}case gn.WEB_CHAT_OUTBOUND_MESSAGE:i(Hi(Lb(c))),Ul(Rd,{key:"key"}).then(h=>{if(h!==c.message.key){const p=c.message.agent;p&&i(aue(p))}});break;case gn.WEB_CHAT_ENDED:i(Hi(sue(c))),Promise.all([wo(ig,{data:!0,key:"conversationTerminated"}),ba(E1),ba(Rd),ba($1)]).catch(h=>{i(Fn({type:On.DATA,message:h.message}))});break;case gn.WEB_CHAT_AFTER_HOURS_MESSAGE:i(Hi(IT(c)));break;case gn.WEB_CHAT_SURVEY_CSAT_QUESTION:i(Hi(c));break;case gn.AGENT_TYPING_INDICATOR:mue(i,c);break;case gn.AGENT_READ_RECEIPT:vue(i,c);break;case gn.WEB_CHAT_SURVEY_RATING_QUESTION:i(Hi(lue(c)));break;case gn.WEB_CHAT_SURVEY_FEEDBACK_QUESTION:i(Hi(uue(c)));break;case gn.WEB_CHAT_SURVEY_RATING_RESPONSE:i(Hi(cue(c)));break;case gn.WEB_CHAT_SURVEY_FEEDBACK_RESPONSE:i(Hi(due(c)));break;case gn.WEB_CHAT_SMART_RESPONSE_SELECT_QUESTION:{i(Hi(fue(c)));break}}}),[t==null?void 0:t.appKey,t==null?void 0:t.hostReferer,n,e]),null},bue="root--9LgI19",Sue={root:bue},kT=94,xue=360,$ue=({theme:t,events:e=[],agents:n,customAvatarIconUrl:r,widgetConfiguration:i,notifications:s})=>{var Cn,Tt,Jn,Un,K,xe,we,_e,Ie,Ze,ct;const[u,c]=_.useState(!1),[f,h]=_.useState(!1),[p,v]=_.useState(!1),[y,b]=_.useState(!0),[$,E]=_.useState(null),[A,T]=_.useState(""),[R,D]=_.useState(0),[M,O]=_.useState(!1),[L,z]=_.useState([]),[V,Y]=_.useState(!0),{t:te}=lt(),W=_.useRef(null),ce=z5();yue({participant:$,widgetConfiguration:i,subscriptionActive:M});const B=((Cn=t==null?void 0:t.webChatContactInformationSettings)==null?void 0:Cn.enabled)&&!$,Ee=So(({agentTypingIndicator:$e})=>$e),pe=So(({widgetConfiguration:$e})=>$e.invalidParticipant),{shareParticipantReadReceiptConfirmation:H,shareParticipantTypingIndicator:Q,shareUserReadReceiptConfirmation:he,shareUserTypingIndicator:fe,conversationFlow:w}=So(({webChatConfiguration:$e})=>$e),F=n[Object.keys(n)[0]];_.useEffect(()=>{(async()=>{const Ne=await Ul(E1);v(Ne.greet),c(Ne.opened)})().catch(Ne=>{Ne&&ce(Fn({type:On.DATA,message:Ne.message}))})},[]),_.useEffect(()=>{ba(zl,{discriminator:""}),(async()=>{const Ne=await Ul(zl,{discriminator:i.appKey});E(Ne)})().catch(Ne=>{Ne&&ce(Fn({type:On.DATA,message:Ne.message}))})},[i]),_.useEffect(()=>{pe&&Kt()},[pe]),_.useEffect(()=>{(async()=>{const Ne=await Ul(ig);Ne&&Y(Ne.conversationTerminated)})().catch(Ne=>{ce(Fn({type:On.DATA,message:Ne.message}))})},[]),_.useEffect(()=>{(async()=>{const Ne=await Ul(Rd);Ne&&ce(bD(Ne))})().catch(Ne=>{ce(Fn({type:On.DATA,message:Ne.message}))})},[]),_.useEffect(()=>{const $e=new ResizeObserver(()=>{var Ne;vD({type:rg.CC_WEBCHAT_SET_IFRAME_SIZE,payload:{width:u||p?`${xue}px`:`${kT}px`,height:`${Math.max((Ne=W.current)==null?void 0:Ne.offsetHeight,kT)}px`}})});return $e.observe(W.current),()=>$e.disconnect()},[W.current,u,p]),_.useEffect(()=>{(async()=>{await wo(E1,{data:{opened:u,greet:p}})})().catch(Ne=>{ce(Fn({type:On.DATA,message:Ne.message}))})},[u,p]),_.useEffect(()=>{const $e=(e==null?void 0:e.filter(Ne=>r4(Ne)&&Ne.direction===Ts.INBOUND))??[];if($e.length>0)if(u)D(0),T($e[0].id);else{const Ne=$e.findIndex(dt=>dt.id===A);Ne>=0&&D(Ne)}},[e,u,A]);const ie=_.useMemo(()=>e==null?void 0:e.filter(($e,Ne)=>!($e.type===gn.WEB_CHAT_SURVEY_CSAT_QUESTION&&Ne!==0)),[e]),J=($e,Ne)=>{if(($e??"").trim()!==""||Ne.length){const dt=Ne.map(({id:Wt})=>Wt);ce(Lle({body:$e,fileBlobsWithId:Ne})).then(Wt=>Wt&&z(Ne.filter(({id:pr})=>!dt.includes(pr))))}},be=async $e=>{await ce(Ib($e.toString()))},me=async $e=>{await ce(Ib($e))},Ce=async $e=>{await ce(Ib($e,!0))},ve=async $e=>{await ce(rue($e))},Me=()=>{c(!1),h(!1)},qe=()=>{M||!V?h(!0):Kt()},Kt=async()=>{O(!1),c(!1),h(!1),await ce(Ple()),E(null),await ND(),F&&ce(ple(F)),ce(ED({agentReadReceipts:[],participant:{},conversationEvents:{}})),await Zle(i,ce),ce(gD(!1))},se=$e=>{ce(kle($e,L))},pt=_.useCallback($e=>{!M&&($e==null?void 0:$e.length)>0&&O(!0)},[M]);_.useEffect(()=>{B===!1&&open&&O(!0)},[open,B]);const Ke=_.useCallback($e=>{const Ne=!V&&!qB(XB($,"participantExternalKey"),$e);let dt;Ne?dt=Object.assign({},$e):dt=Object.assign({},$,$e),(async()=>{await ba(zl,{discriminator:i.appKey}),await wo(zl,{data:dt,discriminator:i.appKey})})().then(()=>{E(dt),O(!0)}).catch(pr=>{ce(Fn({type:On.DATA,message:pr.message}))})},[$,i]);F&&wo(Rd,{data:F}).catch($e=>{ce(Fn({type:On.DATA,message:$e.message}))});const Je={title:te("Close chat?"),message:te("Conversation cannot be retrieved after closing."),cancelLabel:te("No, keep chatting"),confirmLabel:te("Yes, close chat")},Ut=(t==null?void 0:t.pagePosition)===m1.LEFT;return S.jsx("main",{ref:W,className:Ile(Sue.root,"theme-light"),children:t&&(u?S.jsxs(lZ,{alignLeft:Ut,fontSize:(Tt=t==null?void 0:t.font)==null?void 0:Tt.size,fontFamily:(Un=(Jn=t==null?void 0:t.font)==null?void 0:Jn.family)==null?void 0:Un.replaceAll("+"," "),children:[S.jsx(zae,{color:t==null?void 0:t.color,onClose:qe,onMinimize:Me,children:F?S.jsx(Zae,{color:t==null?void 0:t.color,agent:F}):S.jsx(Xae,{title:((K=t==null?void 0:t.header)==null?void 0:K.messageOverride)??te("Hi! How can we help you?")})}),S.jsx(Loe,{children:f?S.jsx(dZ,{...Je,onConfirm:Kt,onCancel:()=>h(!1)}):B?S.jsx(Mae,{color:t==null?void 0:t.color,field:t==null?void 0:t.webChatContactInformationSettings,currentParticipant:$,onSubmit:Ke}):S.jsx(Ite,{lastMessageReadAt:he&&((we=(xe=s==null?void 0:s.agentReadReceipts)==null?void 0:xe[0])==null?void 0:we.readAt),...H&&{onSendReadIndicator:()=>ce(Fle())},...Q&&{onTyping:$e=>ce(jle($e))},agentTypingIndicatorEvent:Ee,typingIndicatorEnabled:fe,agents:n,canSend:!!((_e=s==null?void 0:s.participant)!=null&&_e.key),customAvatarIconUrl:r,genericAvatarIconId:(t==null?void 0:t.avatar.type)===wd.GENERIC?t==null?void 0:t.avatar.genericIconName:null,onChange:pt,messages:ie,isWebChat:!0,color:t==null?void 0:t.color,onRetry:se,showFiles:!0,onRemoveFile:$e=>{z(L.filter(Ne=>Ne.id!==$e))},onAddFile:$e=>z(Ne=>$e.map(({file:dt,id:Wt})=>({file:dt,id:Wt})).concat(Ne)),onSend:J,fileBlobsWithId:L,getFileBlob:({externalUrl:$e})=>fle($e),onSurveyRatingClick:me,onCSATScoreSubmit:be,onSurveyFeedbackSubmit:Ce,onSmartResponsesSubmit:ve,botName:w!=null&&w.displayName?w==null?void 0:w.displayName:w==null?void 0:w.title,botAvatar:w==null?void 0:w.avatar})})]}):S.jsx(ooe,{unread:R>0?R:void 0,onGreet:()=>v(!0),chatIcon:t==null?void 0:t.chatIcon,greetingDelay:((Ie=t==null?void 0:t.autoGreeting)==null?void 0:Ie.delaySeconds)*1e3,greetingText:y&&((Ze=t==null?void 0:t.autoGreeting)==null?void 0:Ze.enabled)&&((ct=t==null?void 0:t.autoGreeting)==null?void 0:ct.messageOverride),color:t==null?void 0:t.color,alignLeft:Ut,onClick:()=>{c(!0),v(!1),b(!1)}}))})};Ole("en-US");const Eue=()=>{const t=So(({webChatConfiguration:c})=>c),e=So(({widgetConfiguration:c})=>c),n=So(({conversationEvents:c})=>c),r=So(aD),i=So(({notifications:c})=>c),s=z5();_.useEffect(()=>{t!=null&&t.language&&Nle((t==null?void 0:t.language)??"en-US")},[t]),Cle(_.useCallback(c=>{dle(c,s)},[s])),_.useEffect(()=>{(async()=>e.appKey!=null&&(n0.stop(),n0.setContextField("orgId",e.appKey),await n0.start()))()},[e.appKey]),_.useEffect(()=>{},[s]);const u=()=>{var f;const c=(f=t==null?void 0:t.theme)==null?void 0:f.avatar;return!c||c.type!==wd.CUSTOM?null:(new Image().src=c.customIconCBoxUrl,c.customIconCBoxUrl)};return S.jsx(JT,{store:CD,children:S.jsx(ak,{i18n:x1,children:S.jsx($oe,{children:t&&x1.isInitialized&&S.jsx($ue,{theme:t==null?void 0:t.theme,notifications:i,agents:r,customAvatarIconUrl:u(),widgetConfiguration:e,events:n})})})})};var kb={exports:{}},Dc={},Pb={exports:{}},jb={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var PT;function Cue(){return PT||(PT=1,function(t){function e(H,Q){var he=H.length;H.push(Q);e:for(;0>>1,w=H[fe];if(0>>1;fei(J,he))bei(me,J)?(H[fe]=me,H[be]=he,fe=be):(H[fe]=J,H[ie]=he,fe=ie);else if(bei(me,he))H[fe]=me,H[be]=he,fe=be;else break e}}return Q}function i(H,Q){var he=H.sortIndex-Q.sortIndex;return he!==0?he:H.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}var f=[],h=[],p=1,v=null,y=3,b=!1,$=!1,E=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function M(H){for(var Q=n(h);Q!==null;){if(Q.callback===null)r(h);else if(Q.startTime<=H)r(h),Q.sortIndex=Q.expirationTime,e(f,Q);else break;Q=n(h)}}function O(H){if(E=!1,M(H),!$)if(n(f)!==null)$=!0,L||(L=!0,ce());else{var Q=n(h);Q!==null&&pe(O,Q.startTime-H)}}var L=!1,z=-1,V=5,Y=-1;function te(){return A?!0:!(t.unstable_now()-YH&&te());){var fe=v.callback;if(typeof fe=="function"){v.callback=null,y=v.priorityLevel;var w=fe(v.expirationTime<=H);if(H=t.unstable_now(),typeof w=="function"){v.callback=w,M(H),Q=!0;break t}v===n(f)&&r(f),M(H)}else r(f);v=n(f)}if(v!==null)Q=!0;else{var F=n(h);F!==null&&pe(O,F.startTime-H),Q=!1}}break e}finally{v=null,y=he,b=!1}Q=void 0}}finally{Q?ce():L=!1}}}var ce;if(typeof D=="function")ce=function(){D(W)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,Ee=B.port2;B.port1.onmessage=W,ce=function(){Ee.postMessage(null)}}else ce=function(){T(W,0)};function pe(H,Q){z=T(function(){H(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125fe?(H.sortIndex=he,e(h,H),n(f)===null&&H===n(h)&&(E?(R(z),z=-1):E=!0,pe(O,he-fe))):(H.sortIndex=w,e(f,H),$||b||($=!0,L||(L=!0,ce()))),H},t.unstable_shouldYield=te,t.unstable_wrapCallback=function(H){var Q=y;return function(){var he=y;y=Q;try{return H.apply(this,arguments)}finally{y=he}}}}(jb)),jb}var jT;function _ue(){return jT||(jT=1,Pb.exports=Cue()),Pb.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var FT;function Tue(){if(FT)return Dc;FT=1;var t=_ue(),e=_1(),n=lw();function r(a){var o="https://react.dev/errors/"+a;if(1w||(a.current=fe[w],fe[w]=null,w--)}function J(a,o){w++,fe[w]=a.current,a.current=o}var be=F(null),me=F(null),Ce=F(null),ve=F(null);function Me(a,o){switch(J(Ce,o),J(me,a),J(be,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?ex(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=ex(o),a=tx(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}ie(be),J(be,a)}function qe(){ie(be),ie(me),ie(Ce)}function Kt(a){a.memoizedState!==null&&J(ve,a);var o=be.current,l=tx(o,a.type);o!==l&&(J(me,a),J(be,l))}function se(a){me.current===a&&(ie(be),ie(me)),ve.current===a&&(ie(ve),uc._currentValue=he)}var pt=Object.prototype.hasOwnProperty,Ke=t.unstable_scheduleCallback,Je=t.unstable_cancelCallback,Ut=t.unstable_shouldYield,Cn=t.unstable_requestPaint,Tt=t.unstable_now,Jn=t.unstable_getCurrentPriorityLevel,Un=t.unstable_ImmediatePriority,K=t.unstable_UserBlockingPriority,xe=t.unstable_NormalPriority,we=t.unstable_LowPriority,_e=t.unstable_IdlePriority,Ie=t.log,Ze=t.unstable_setDisableYieldValue,ct=null,$e=null;function Ne(a){if(typeof Ie=="function"&&Ze(a),$e&&typeof $e.setStrictMode=="function")try{$e.setStrictMode(ct,a)}catch{}}var dt=Math.clz32?Math.clz32:N,Wt=Math.log,pr=Math.LN2;function N(a){return a>>>=0,a===0?32:31-(Wt(a)/pr|0)|0}var P=256,ne=4194304;function ee(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function ye(a,o,l){var d=a.pendingLanes;if(d===0)return 0;var g=0,m=a.suspendedLanes,x=a.pingedLanes;a=a.warmLanes;var C=d&134217727;return C!==0?(d=C&~m,d!==0?g=ee(d):(x&=C,x!==0?g=ee(x):l||(l=C&~a,l!==0&&(g=ee(l))))):(C=d&~m,C!==0?g=ee(C):x!==0?g=ee(x):l||(l=d&~a,l!==0&&(g=ee(l)))),g===0?0:o!==0&&o!==g&&(o&m)===0&&(m=g&-g,l=o&-o,m>=l||m===32&&(l&4194048)!==0)?o:g}function Oe(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function He(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var a=P;return P<<=1,(P&4194048)===0&&(P=256),a}function rt(){var a=ne;return ne<<=1,(ne&62914560)===0&&(ne=4194304),a}function wt(a){for(var o=[],l=0;31>l;l++)o.push(a);return o}function ft(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function yn(a,o,l,d,g,m){var x=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var C=a.entanglements,I=a.expirationTimes,G=a.hiddenUpdates;for(l=x&~l;0)":-1g||I[d]!==G[g]){var re=` `+I[d].replace(" at new "," at ");return a.displayName&&re.includes("")&&(re=re.replace("",a.displayName)),re}while(1<=d&&0<=g);break}}}finally{sg=!1,Error.prepareStackTrace=l}return(l=a?a.displayName||a.name:"")?Us(l):""}function qD(a){switch(a.tag){case 26:case 27:case 5:return Us(a.type);case 16:return Us("Lazy");case 13:return Us("Suspense");case 19:return Us("SuspenseList");case 0:case 15:return lg(a.type,!1);case 11:return lg(a.type.render,!1);case 1:return lg(a.type,!0);case 31:return Us("Activity");default:return""}}function Z5(a){try{var o="";do o+=qD(a),a=a.return;while(a);return o}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}function Wr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Y5(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function GD(a){var o=Y5(a)?"checked":"value",l=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),d=""+a[o];if(!a.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var g=l.get,m=l.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return g.call(this)},set:function(x){d=""+x,m.call(this,x)}}),Object.defineProperty(a,o,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(x){d=""+x},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Kd(a){a._valueTracker||(a._valueTracker=GD(a))}function K5(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return a&&(d=Y5(a)?a.checked?"true":"false":a.value),a=d,a!==l?(o.setValue(a),!0):!1}function Xd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var WD=/[\n"\\]/g;function Zr(a){return a.replace(WD,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function ug(a,o,l,d,g,m,x,C){a.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?a.type=x:a.removeAttribute("type"),o!=null?x==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Wr(o)):a.value!==""+Wr(o)&&(a.value=""+Wr(o)):x!=="submit"&&x!=="reset"||a.removeAttribute("value"),o!=null?cg(a,x,Wr(o)):l!=null?cg(a,x,Wr(l)):d!=null&&a.removeAttribute("value"),g==null&&m!=null&&(a.defaultChecked=!!m),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.name=""+Wr(C):a.removeAttribute("name")}function X5(a,o,l,d,g,m,x,C){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(a.type=m),o!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||o!=null))return;l=l!=null?""+Wr(l):"",o=o!=null?""+Wr(o):l,C||o===a.value||(a.value=o),a.defaultValue=o}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,a.checked=C?a.checked:!!d,a.defaultChecked=!!d,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.name=x)}function cg(a,o,l){o==="number"&&Xd(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function zs(a,o,l,d){if(a=a.options,o){o={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pg=!1;if(ea)try{var Eu={};Object.defineProperty(Eu,"passive",{get:function(){pg=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{pg=!1}var Pa=null,mg=null,Jd=null;function i6(){if(Jd)return Jd;var a,o=mg,l=o.length,d,g="value"in Pa?Pa.value:Pa.textContent,m=g.length;for(a=0;a=Tu),c6=" ",d6=!1;function f6(a,o){switch(a){case"keyup":return xM.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h6(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ws=!1;function EM(a,o){switch(a){case"compositionend":return h6(o);case"keypress":return o.which!==32?null:(d6=!0,c6);case"textInput":return a=o.data,a===c6&&d6?null:a;default:return null}}function CM(a,o){if(Ws)return a==="compositionend"||!xg&&f6(a,o)?(a=i6(),Jd=mg=Pa=null,Ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:l,offset:o-a};a=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=x6(l)}}function E6(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?E6(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function C6(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Xd(a.document);o instanceof a.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)a=o.contentWindow;else break;o=Xd(a.document)}return o}function Cg(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var DM=ea&&"documentMode"in document&&11>=document.documentMode,Zs=null,_g=null,Ru=null,Tg=!1;function _6(a,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tg||Zs==null||Zs!==Xd(d)||(d=Zs,"selectionStart"in d&&Cg(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ru&&Ou(Ru,d)||(Ru=d,d=Vf(_g,"onSelect"),0>=x,g-=x,na=1<<32-dt(o)+g|l<m?m:8;var x=H.T,C={};H.T=C,dp(a,!1,o,l);try{var I=g(),G=H.S;if(G!==null&&G(C,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var re=BM(I,d);qu(a,o,re,Nr(a))}else qu(a,o,d,Nr(a))}catch(ue){qu(a,o,{then:function(){},status:"rejected",reason:ue},Nr())}finally{Q.p=m,H.T=x}}function GM(){}function up(a,o,l,d){if(a.tag!==5)throw Error(r(476));var g=TS(a).queue;_S(a,g,o,he,l===null?GM:function(){return wS(a),l(d)})}function TS(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:he},next:null};var l={};return o.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:l},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function wS(a){var o=TS(a).next.queue;qu(a,o,{},Nr())}function cp(){return Gn(uc)}function AS(){return hn().memoizedState}function OS(){return hn().memoizedState}function WM(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var l=Nr();a=Ha(l);var d=Ba(o,a,l);d!==null&&(Dr(d,o,l),Fu(d,o,l)),o={cache:Hg()},a.payload=o;return}o=o.return}}function ZM(a,o,l){var d=Nr();l={lane:d,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Cf(a)?NS(o,l):(l=Rg(a,o,l,d),l!==null&&(Dr(l,a,d),DS(l,o,d)))}function RS(a,o,l){var d=Nr();qu(a,o,l,d)}function qu(a,o,l,d){var g={lane:d,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cf(a))NS(o,g);else{var m=a.alternate;if(a.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var x=o.lastRenderedState,C=m(x,l);if(g.hasEagerState=!0,g.eagerState=C,Tr(C,x))return sf(a,o,g,0),Lt===null&&of(),!1}catch{}finally{}if(l=Rg(a,o,g,d),l!==null)return Dr(l,a,d),DS(l,o,d),!0}return!1}function dp(a,o,l,d){if(d={lane:2,revertLane:zp(),action:d,hasEagerState:!1,eagerState:null,next:null},Cf(a)){if(o)throw Error(r(479))}else o=Rg(a,l,d,2),o!==null&&Dr(o,a,2)}function Cf(a){var o=a.alternate;return a===tt||o!==null&&o===tt}function NS(a,o){il=yf=!0;var l=a.pending;l===null?o.next=o:(o.next=l.next,l.next=o),a.pending=o}function DS(a,o,l){if((l&4194048)!==0){var d=o.lanes;d&=a.pendingLanes,l|=d,o.lanes=l,At(a,l)}}var _f={readContext:Gn,use:Sf,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useLayoutEffect:rn,useInsertionEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useSyncExternalStore:rn,useId:rn,useHostTransitionStatus:rn,useFormState:rn,useActionState:rn,useOptimistic:rn,useMemoCache:rn,useCacheRefresh:rn},MS={readContext:Gn,use:Sf,useCallback:function(a,o){return vr().memoizedState=[a,o===void 0?null:o],a},useContext:Gn,useEffect:mS,useImperativeHandle:function(a,o,l){l=l!=null?l.concat([a]):null,Ef(4194308,4,SS.bind(null,o,a),l)},useLayoutEffect:function(a,o){return Ef(4194308,4,a,o)},useInsertionEffect:function(a,o){Ef(4,2,a,o)},useMemo:function(a,o){var l=vr();o=o===void 0?null:o;var d=a();if(Xo){Ne(!0);try{a()}finally{Ne(!1)}}return l.memoizedState=[d,o],d},useReducer:function(a,o,l){var d=vr();if(l!==void 0){var g=l(o);if(Xo){Ne(!0);try{l(o)}finally{Ne(!1)}}}else g=o;return d.memoizedState=d.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},d.queue=a,a=a.dispatch=ZM.bind(null,tt,a),[d.memoizedState,a]},useRef:function(a){var o=vr();return a={current:a},o.memoizedState=a},useState:function(a){a=ap(a);var o=a.queue,l=RS.bind(null,tt,o);return o.dispatch=l,[a.memoizedState,l]},useDebugValue:sp,useDeferredValue:function(a,o){var l=vr();return lp(l,a,o)},useTransition:function(){var a=ap(!1);return a=_S.bind(null,tt,a.queue,!0,!1),vr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,l){var d=tt,g=vr();if(yt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=o(),Lt===null)throw Error(r(349));(ht&124)!==0||eS(d,o,l)}g.memoizedState=l;var m={value:l,getSnapshot:o};return g.queue=m,mS(nS.bind(null,d,m,a),[a]),d.flags|=2048,ol(9,$f(),tS.bind(null,d,m,l,o),null),l},useId:function(){var a=vr(),o=Lt.identifierPrefix;if(yt){var l=ra,d=na;l=(d&~(1<<32-dt(d)-1)).toString(32)+l,o="«"+o+"R"+l,l=bf++,0Ue?(wn=Fe,Fe=null):wn=Fe.sibling;var vt=Z(U,Fe,q[Ue],oe);if(vt===null){Fe===null&&(Fe=wn);break}a&&Fe&&vt.alternate===null&&o(U,Fe),k=m(vt,k,Ue),nt===null?Re=vt:nt.sibling=vt,nt=vt,Fe=wn}if(Ue===q.length)return l(U,Fe),yt&&qo(U,Ue),Re;if(Fe===null){for(;UeUe?(wn=Fe,Fe=null):wn=Fe.sibling;var io=Z(U,Fe,vt.value,oe);if(io===null){Fe===null&&(Fe=wn);break}a&&Fe&&io.alternate===null&&o(U,Fe),k=m(io,k,Ue),nt===null?Re=io:nt.sibling=io,nt=io,Fe=wn}if(vt.done)return l(U,Fe),yt&&qo(U,Ue),Re;if(Fe===null){for(;!vt.done;Ue++,vt=q.next())vt=ue(U,vt.value,oe),vt!==null&&(k=m(vt,k,Ue),nt===null?Re=vt:nt.sibling=vt,nt=vt);return yt&&qo(U,Ue),Re}for(Fe=d(Fe);!vt.done;Ue++,vt=q.next())vt=X(Fe,U,Ue,vt.value,oe),vt!==null&&(a&&vt.alternate!==null&&Fe.delete(vt.key===null?Ue:vt.key),k=m(vt,k,Ue),nt===null?Re=vt:nt.sibling=vt,nt=vt);return a&&Fe.forEach(function(KI){return o(U,KI)}),yt&&qo(U,Ue),Re}function Nt(U,k,q,oe){if(typeof q=="object"&&q!==null&&q.type===$&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case y:e:{for(var Re=q.key;k!==null;){if(k.key===Re){if(Re=q.type,Re===$){if(k.tag===7){l(U,k.sibling),oe=g(k,q.props.children),oe.return=U,U=oe;break e}}else if(k.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===V&&LS(Re)===k.type){l(U,k.sibling),oe=g(k,q.props),Wu(oe,q),oe.return=U,U=oe;break e}l(U,k);break}else o(U,k);k=k.sibling}q.type===$?(oe=zo(q.props.children,U.mode,oe,q.key),oe.return=U,U=oe):(oe=uf(q.type,q.key,q.props,null,U.mode,oe),Wu(oe,q),oe.return=U,U=oe)}return x(U);case b:e:{for(Re=q.key;k!==null;){if(k.key===Re)if(k.tag===4&&k.stateNode.containerInfo===q.containerInfo&&k.stateNode.implementation===q.implementation){l(U,k.sibling),oe=g(k,q.children||[]),oe.return=U,U=oe;break e}else{l(U,k);break}else o(U,k);k=k.sibling}oe=Mg(q,U.mode,oe),oe.return=U,U=oe}return x(U);case V:return Re=q._init,q=Re(q._payload),Nt(U,k,q,oe)}if(pe(q))return ze(U,k,q,oe);if(ce(q)){if(Re=ce(q),typeof Re!="function")throw Error(r(150));return q=Re.call(q),Be(U,k,q,oe)}if(typeof q.then=="function")return Nt(U,k,Tf(q),oe);if(q.$$typeof===D)return Nt(U,k,hf(U,q),oe);wf(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,k!==null&&k.tag===6?(l(U,k.sibling),oe=g(k,q),oe.return=U,U=oe):(l(U,k),oe=Dg(q,U.mode,oe),oe.return=U,U=oe),x(U)):l(U,k)}return function(U,k,q,oe){try{Gu=0;var Re=Nt(U,k,q,oe);return sl=null,Re}catch(Fe){if(Fe===Pu||Fe===pf)throw Fe;var nt=wr(29,Fe,null,U.mode);return nt.lanes=oe,nt.return=U,nt}finally{}}}var ll=kS(!0),PS=kS(!1),Jr=F(null),ki=null;function za(a){var o=a.alternate;J($n,$n.current&1),J(Jr,a),ki===null&&(o===null||rl.current!==null||o.memoizedState!==null)&&(ki=a)}function jS(a){if(a.tag===22){if(J($n,$n.current),J(Jr,a),ki===null){var o=a.alternate;o!==null&&o.memoizedState!==null&&(ki=a)}}else Va()}function Va(){J($n,$n.current),J(Jr,Jr.current)}function sa(a){ie(Jr),ki===a&&(ki=null),ie($n)}var $n=F(0);function Af(a){for(var o=a;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||tm(l)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function fp(a,o,l,d){o=a.memoizedState,l=l(d,o),l=l==null?o:p({},o,l),a.memoizedState=l,a.lanes===0&&(a.updateQueue.baseState=l)}var hp={enqueueSetState:function(a,o,l){a=a._reactInternals;var d=Nr(),g=Ha(d);g.payload=o,l!=null&&(g.callback=l),o=Ba(a,g,d),o!==null&&(Dr(o,a,d),Fu(o,a,d))},enqueueReplaceState:function(a,o,l){a=a._reactInternals;var d=Nr(),g=Ha(d);g.tag=1,g.payload=o,l!=null&&(g.callback=l),o=Ba(a,g,d),o!==null&&(Dr(o,a,d),Fu(o,a,d))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var l=Nr(),d=Ha(l);d.tag=2,o!=null&&(d.callback=o),o=Ba(a,d,l),o!==null&&(Dr(o,a,l),Fu(o,a,l))}};function FS(a,o,l,d,g,m,x){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(d,m,x):o.prototype&&o.prototype.isPureReactComponent?!Ou(l,d)||!Ou(g,m):!0}function HS(a,o,l,d){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==a&&hp.enqueueReplaceState(o,o.state,null)}function Qo(a,o){var l=o;if("ref"in o){l={};for(var d in o)d!=="ref"&&(l[d]=o[d])}if(a=a.defaultProps){l===o&&(l=p({},l));for(var g in a)l[g]===void 0&&(l[g]=a[g])}return l}var Of=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function BS(a){Of(a)}function US(a){console.error(a)}function zS(a){Of(a)}function Rf(a,o){try{var l=a.onUncaughtError;l(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function VS(a,o,l){try{var d=a.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function gp(a,o,l){return l=Ha(l),l.tag=3,l.payload={element:null},l.callback=function(){Rf(a,o)},l}function qS(a){return a=Ha(a),a.tag=3,a}function GS(a,o,l,d){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var m=d.value;a.payload=function(){return g(m)},a.callback=function(){VS(o,l,d)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(a.callback=function(){VS(o,l,d),typeof g!="function"&&(Ka===null?Ka=new Set([this]):Ka.add(this));var C=d.stack;this.componentDidCatch(d.value,{componentStack:C!==null?C:""})})}function KM(a,o,l,d,g){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=l.alternate,o!==null&&Iu(o,l,g,!0),l=Jr.current,l!==null){switch(l.tag){case 13:return ki===null?jp():l.alternate===null&&Qt===0&&(Qt=3),l.flags&=-257,l.flags|=65536,l.lanes=g,d===zg?l.flags|=16384:(o=l.updateQueue,o===null?l.updateQueue=new Set([d]):o.add(d),Hp(a,d,g)),!1;case 22:return l.flags|=65536,d===zg?l.flags|=16384:(o=l.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=o):(l=o.retryQueue,l===null?o.retryQueue=new Set([d]):l.add(d)),Hp(a,d,g)),!1}throw Error(r(435,l.tag))}return Hp(a,d,g),jp(),!1}if(yt)return o=Jr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,d!==kg&&(a=Error(r(422),{cause:d}),Mu(Yr(a,l)))):(d!==kg&&(o=Error(r(423),{cause:d}),Mu(Yr(o,l))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,d=Yr(d,l),g=gp(a.stateNode,d,g),Gg(a,g),Qt!==4&&(Qt=2)),!1;var m=Error(r(520),{cause:d});if(m=Yr(m,l),ec===null?ec=[m]:ec.push(m),Qt!==4&&(Qt=2),o===null)return!0;d=Yr(d,l),l=o;do{switch(l.tag){case 3:return l.flags|=65536,a=g&-g,l.lanes|=a,a=gp(l.stateNode,d,a),Gg(l,a),!1;case 1:if(o=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ka===null||!Ka.has(m))))return l.flags|=65536,g&=-g,l.lanes|=g,g=qS(g),GS(g,a,l,d),Gg(l,g),!1}l=l.return}while(l!==null);return!1}var WS=Error(r(461)),_n=!1;function Mn(a,o,l,d){o.child=a===null?PS(o,null,l,d):ll(o,a.child,l,d)}function ZS(a,o,l,d,g){l=l.render;var m=o.ref;if("ref"in d){var x={};for(var C in d)C!=="ref"&&(x[C]=d[C])}else x=d;return Yo(o),d=Xg(a,o,l,x,m,g),C=Qg(),a!==null&&!_n?(Jg(a,o,g),la(a,o,g)):(yt&&C&&Ig(o),o.flags|=1,Mn(a,o,d,g),o.child)}function YS(a,o,l,d,g){if(a===null){var m=l.type;return typeof m=="function"&&!Ng(m)&&m.defaultProps===void 0&&l.compare===null?(o.tag=15,o.type=m,KS(a,o,m,d,g)):(a=uf(l.type,null,d,o,o.mode,g),a.ref=o.ref,a.return=o,o.child=a)}if(m=a.child,!$p(a,g)){var x=m.memoizedProps;if(l=l.compare,l=l!==null?l:Ou,l(x,d)&&a.ref===o.ref)return la(a,o,g)}return o.flags|=1,a=ta(m,d),a.ref=o.ref,a.return=o,o.child=a}function KS(a,o,l,d,g){if(a!==null){var m=a.memoizedProps;if(Ou(m,d)&&a.ref===o.ref)if(_n=!1,o.pendingProps=d=m,$p(a,g))(a.flags&131072)!==0&&(_n=!0);else return o.lanes=a.lanes,la(a,o,g)}return pp(a,o,l,d,g)}function XS(a,o,l){var d=o.pendingProps,g=d.children,m=a!==null?a.memoizedState:null;if(d.mode==="hidden"){if((o.flags&128)!==0){if(d=m!==null?m.baseLanes|l:l,a!==null){for(g=o.child=a.child,m=0;g!==null;)m=m|g.lanes|g.childLanes,g=g.sibling;o.childLanes=m&~d}else o.childLanes=0,o.child=null;return QS(a,o,d,l)}if((l&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&gf(o,m!==null?m.cachePool:null),m!==null?K6(o,m):Zg(),jS(o);else return o.lanes=o.childLanes=536870912,QS(a,o,m!==null?m.baseLanes|l:l,l)}else m!==null?(gf(o,m.cachePool),K6(o,m),Va(),o.memoizedState=null):(a!==null&&gf(o,null),Zg(),Va());return Mn(a,o,g,l),o.child}function QS(a,o,l,d){var g=Ug();return g=g===null?null:{parent:xn._currentValue,pool:g},o.memoizedState={baseLanes:l,cachePool:g},a!==null&&gf(o,null),Zg(),jS(o),a!==null&&Iu(a,o,d,!0),null}function Nf(a,o){var l=o.ref;if(l===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(a===null||a.ref!==l)&&(o.flags|=4194816)}}function pp(a,o,l,d,g){return Yo(o),l=Xg(a,o,l,d,void 0,g),d=Qg(),a!==null&&!_n?(Jg(a,o,g),la(a,o,g)):(yt&&d&&Ig(o),o.flags|=1,Mn(a,o,l,g),o.child)}function JS(a,o,l,d,g,m){return Yo(o),o.updateQueue=null,l=Q6(o,d,l,g),X6(a),d=Qg(),a!==null&&!_n?(Jg(a,o,m),la(a,o,m)):(yt&&d&&Ig(o),o.flags|=1,Mn(a,o,l,m),o.child)}function e9(a,o,l,d,g){if(Yo(o),o.stateNode===null){var m=Qs,x=l.contextType;typeof x=="object"&&x!==null&&(m=Gn(x)),m=new l(d,m),o.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=hp,o.stateNode=m,m._reactInternals=o,m=o.stateNode,m.props=d,m.state=o.memoizedState,m.refs={},Vg(o),x=l.contextType,m.context=typeof x=="object"&&x!==null?Gn(x):Qs,m.state=o.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(fp(o,l,x,d),m.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&hp.enqueueReplaceState(m,m.state,null),Bu(o,d,m,g),Hu(),m.state=o.memoizedState),typeof m.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(a===null){m=o.stateNode;var C=o.memoizedProps,I=Qo(l,C);m.props=I;var G=m.context,re=l.contextType;x=Qs,typeof re=="object"&&re!==null&&(x=Gn(re));var ue=l.getDerivedStateFromProps;re=typeof ue=="function"||typeof m.getSnapshotBeforeUpdate=="function",C=o.pendingProps!==C,re||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(C||G!==x)&&HS(o,m,d,x),Fa=!1;var Z=o.memoizedState;m.state=Z,Bu(o,d,m,g),Hu(),G=o.memoizedState,C||Z!==G||Fa?(typeof ue=="function"&&(fp(o,l,ue,d),G=o.memoizedState),(I=Fa||FS(o,l,I,d,Z,G,x))?(re||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(o.flags|=4194308)):(typeof m.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=G),m.props=d,m.state=G,m.context=x,d=I):(typeof m.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{m=o.stateNode,qg(a,o),x=o.memoizedProps,re=Qo(l,x),m.props=re,ue=o.pendingProps,Z=m.context,G=l.contextType,I=Qs,typeof G=="object"&&G!==null&&(I=Gn(G)),C=l.getDerivedStateFromProps,(G=typeof C=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==ue||Z!==I)&&HS(o,m,d,I),Fa=!1,Z=o.memoizedState,m.state=Z,Bu(o,d,m,g),Hu();var X=o.memoizedState;x!==ue||Z!==X||Fa||a!==null&&a.dependencies!==null&&ff(a.dependencies)?(typeof C=="function"&&(fp(o,l,C,d),X=o.memoizedState),(re=Fa||FS(o,l,re,d,Z,X,I)||a!==null&&a.dependencies!==null&&ff(a.dependencies))?(G||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(d,X,I),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(d,X,I)),typeof m.componentDidUpdate=="function"&&(o.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===a.memoizedProps&&Z===a.memoizedState||(o.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===a.memoizedProps&&Z===a.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=X),m.props=d,m.state=X,m.context=I,d=re):(typeof m.componentDidUpdate!="function"||x===a.memoizedProps&&Z===a.memoizedState||(o.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===a.memoizedProps&&Z===a.memoizedState||(o.flags|=1024),d=!1)}return m=d,Nf(a,o),d=(o.flags&128)!==0,m||d?(m=o.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:m.render(),o.flags|=1,a!==null&&d?(o.child=ll(o,a.child,null,g),o.child=ll(o,null,l,g)):Mn(a,o,l,g),o.memoizedState=m.state,a=o.child):a=la(a,o,g),a}function t9(a,o,l,d){return Du(),o.flags|=256,Mn(a,o,l,d),o.child}var mp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vp(a){return{baseLanes:a,cachePool:U6()}}function yp(a,o,l){return a=a!==null?a.childLanes&~l:0,o&&(a|=ei),a}function n9(a,o,l){var d=o.pendingProps,g=!1,m=(o.flags&128)!==0,x;if((x=m)||(x=a!==null&&a.memoizedState===null?!1:($n.current&2)!==0),x&&(g=!0,o.flags&=-129),x=(o.flags&32)!==0,o.flags&=-33,a===null){if(yt){if(g?za(o):Va(),yt){var C=Xt,I;if(I=C){e:{for(I=C,C=Li;I.nodeType!==8;){if(!C){C=null;break e}if(I=bi(I.nextSibling),I===null){C=null;break e}}C=I}C!==null?(o.memoizedState={dehydrated:C,treeContext:Vo!==null?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},I=wr(18,null,null,0),I.stateNode=C,I.return=o,o.child=I,tr=o,Xt=null,I=!0):I=!1}I||Wo(o)}if(C=o.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return tm(C)?o.lanes=32:o.lanes=536870912,null;sa(o)}return C=d.children,d=d.fallback,g?(Va(),g=o.mode,C=Df({mode:"hidden",children:C},g),d=zo(d,g,l,null),C.return=o,d.return=o,C.sibling=d,o.child=C,g=o.child,g.memoizedState=vp(l),g.childLanes=yp(a,x,l),o.memoizedState=mp,d):(za(o),bp(o,C))}if(I=a.memoizedState,I!==null&&(C=I.dehydrated,C!==null)){if(m)o.flags&256?(za(o),o.flags&=-257,o=Sp(a,o,l)):o.memoizedState!==null?(Va(),o.child=a.child,o.flags|=128,o=null):(Va(),g=d.fallback,C=o.mode,d=Df({mode:"visible",children:d.children},C),g=zo(g,C,l,null),g.flags|=2,d.return=o,g.return=o,d.sibling=g,o.child=d,ll(o,a.child,null,l),d=o.child,d.memoizedState=vp(l),d.childLanes=yp(a,x,l),o.memoizedState=mp,o=g);else if(za(o),tm(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var G=x.dgst;x=G,d=Error(r(419)),d.stack="",d.digest=x,Mu({value:d,source:null,stack:null}),o=Sp(a,o,l)}else if(_n||Iu(a,o,l,!1),x=(l&a.childLanes)!==0,_n||x){if(x=Lt,x!==null&&(d=l&-l,d=(d&42)!==0?1:Gr(d),d=(d&(x.suspendedLanes|l))!==0?0:d,d!==0&&d!==I.retryLane))throw I.retryLane=d,Xs(a,d),Dr(x,a,d),WS;C.data==="$?"||jp(),o=Sp(a,o,l)}else C.data==="$?"?(o.flags|=192,o.child=a.child,o=null):(a=I.treeContext,Xt=bi(C.nextSibling),tr=o,yt=!0,Go=null,Li=!1,a!==null&&(Xr[Qr++]=na,Xr[Qr++]=ra,Xr[Qr++]=Vo,na=a.id,ra=a.overflow,Vo=o),o=bp(o,d.children),o.flags|=4096);return o}return g?(Va(),g=d.fallback,C=o.mode,I=a.child,G=I.sibling,d=ta(I,{mode:"hidden",children:d.children}),d.subtreeFlags=I.subtreeFlags&65011712,G!==null?g=ta(G,g):(g=zo(g,C,l,null),g.flags|=2),g.return=o,d.return=o,d.sibling=g,o.child=d,d=g,g=o.child,C=a.child.memoizedState,C===null?C=vp(l):(I=C.cachePool,I!==null?(G=xn._currentValue,I=I.parent!==G?{parent:G,pool:G}:I):I=U6(),C={baseLanes:C.baseLanes|l,cachePool:I}),g.memoizedState=C,g.childLanes=yp(a,x,l),o.memoizedState=mp,d):(za(o),l=a.child,a=l.sibling,l=ta(l,{mode:"visible",children:d.children}),l.return=o,l.sibling=null,a!==null&&(x=o.deletions,x===null?(o.deletions=[a],o.flags|=16):x.push(a)),o.child=l,o.memoizedState=null,l)}function bp(a,o){return o=Df({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function Df(a,o){return a=wr(22,a,null,o),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function Sp(a,o,l){return ll(o,a.child,null,l),a=bp(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function r9(a,o,l){a.lanes|=o;var d=a.alternate;d!==null&&(d.lanes|=o),jg(a.return,o,l)}function xp(a,o,l,d,g){var m=a.memoizedState;m===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:g}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=l,m.tailMode=g)}function i9(a,o,l){var d=o.pendingProps,g=d.revealOrder,m=d.tail;if(Mn(a,o,d.children,l),d=$n.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&r9(a,l,o);else if(a.tag===19)r9(a,l,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}d&=1}switch(J($n,d),g){case"forwards":for(l=o.child,g=null;l!==null;)a=l.alternate,a!==null&&Af(a)===null&&(g=l),l=l.sibling;l=g,l===null?(g=o.child,o.child=null):(g=l.sibling,l.sibling=null),xp(o,!1,g,l,m);break;case"backwards":for(l=null,g=o.child,o.child=null;g!==null;){if(a=g.alternate,a!==null&&Af(a)===null){o.child=g;break}a=g.sibling,g.sibling=l,l=g,g=a}xp(o,!0,l,null,m);break;case"together":xp(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function la(a,o,l){if(a!==null&&(o.dependencies=a.dependencies),Ya|=o.lanes,(l&o.childLanes)===0)if(a!==null){if(Iu(a,o,l,!1),(l&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,l=ta(a,a.pendingProps),o.child=l,l.return=o;a.sibling!==null;)a=a.sibling,l=l.sibling=ta(a,a.pendingProps),l.return=o;l.sibling=null}return o.child}function $p(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&ff(a)))}function XM(a,o,l){switch(o.tag){case 3:Me(o,o.stateNode.containerInfo),ja(o,xn,a.memoizedState.cache),Du();break;case 27:case 5:Kt(o);break;case 4:Me(o,o.stateNode.containerInfo);break;case 10:ja(o,o.type,o.memoizedProps.value);break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(za(o),o.flags|=128,null):(l&o.child.childLanes)!==0?n9(a,o,l):(za(o),a=la(a,o,l),a!==null?a.sibling:null);za(o);break;case 19:var g=(a.flags&128)!==0;if(d=(l&o.childLanes)!==0,d||(Iu(a,o,l,!1),d=(l&o.childLanes)!==0),g){if(d)return i9(a,o,l);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),J($n,$n.current),d)break;return null;case 22:case 23:return o.lanes=0,XS(a,o,l);case 24:ja(o,xn,a.memoizedState.cache)}return la(a,o,l)}function a9(a,o,l){if(a!==null)if(a.memoizedProps!==o.pendingProps)_n=!0;else{if(!$p(a,l)&&(o.flags&128)===0)return _n=!1,XM(a,o,l);_n=(a.flags&131072)!==0}else _n=!1,yt&&(o.flags&1048576)!==0&&L6(o,df,o.index);switch(o.lanes=0,o.tag){case 16:e:{a=o.pendingProps;var d=o.elementType,g=d._init;if(d=g(d._payload),o.type=d,typeof d=="function")Ng(d)?(a=Qo(d,a),o.tag=1,o=e9(null,o,d,a,l)):(o.tag=0,o=pp(null,o,d,a,l));else{if(d!=null){if(g=d.$$typeof,g===M){o.tag=11,o=ZS(null,o,d,a,l);break e}else if(g===z){o.tag=14,o=YS(null,o,d,a,l);break e}}throw o=Ee(d)||d,Error(r(306,o,""))}}return o;case 0:return pp(a,o,o.type,o.pendingProps,l);case 1:return d=o.type,g=Qo(d,o.pendingProps),e9(a,o,d,g,l);case 3:e:{if(Me(o,o.stateNode.containerInfo),a===null)throw Error(r(387));d=o.pendingProps;var m=o.memoizedState;g=m.element,qg(a,o),Bu(o,d,null,l);var x=o.memoizedState;if(d=x.cache,ja(o,xn,d),d!==m.cache&&Fg(o,[xn],l,!0),Hu(),d=x.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:x.cache},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){o=t9(a,o,d,l);break e}else if(d!==g){g=Yr(Error(r(424)),o),Mu(g),o=t9(a,o,d,l);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Xt=bi(a.firstChild),tr=o,yt=!0,Go=null,Li=!0,l=PS(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Du(),d===g){o=la(a,o,l);break e}Mn(a,o,d,l)}o=o.child}return o;case 26:return Nf(a,o),a===null?(l=ux(o.type,null,o.pendingProps,null))?o.memoizedState=l:yt||(l=o.type,a=o.pendingProps,d=Gf(Ce.current).createElement(l),d[bn]=o,d[Vn]=a,Ln(d,l,a),cn(d),o.stateNode=d):o.memoizedState=ux(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Kt(o),a===null&&yt&&(d=o.stateNode=ox(o.type,o.pendingProps,Ce.current),tr=o,Li=!0,g=Xt,Ja(o.type)?(nm=g,Xt=bi(d.firstChild)):Xt=g),Mn(a,o,o.pendingProps.children,l),Nf(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&yt&&((g=d=Xt)&&(d=_I(d,o.type,o.pendingProps,Li),d!==null?(o.stateNode=d,tr=o,Xt=bi(d.firstChild),Li=!1,g=!0):g=!1),g||Wo(o)),Kt(o),g=o.type,m=o.pendingProps,x=a!==null?a.memoizedProps:null,d=m.children,Qp(g,m)?d=null:x!==null&&Qp(g,x)&&(o.flags|=32),o.memoizedState!==null&&(g=Xg(a,o,zM,null,null,l),uc._currentValue=g),Nf(a,o),Mn(a,o,d,l),o.child;case 6:return a===null&&yt&&((a=l=Xt)&&(l=TI(l,o.pendingProps,Li),l!==null?(o.stateNode=l,tr=o,Xt=null,a=!0):a=!1),a||Wo(o)),null;case 13:return n9(a,o,l);case 4:return Me(o,o.stateNode.containerInfo),d=o.pendingProps,a===null?o.child=ll(o,null,d,l):Mn(a,o,d,l),o.child;case 11:return ZS(a,o,o.type,o.pendingProps,l);case 7:return Mn(a,o,o.pendingProps,l),o.child;case 8:return Mn(a,o,o.pendingProps.children,l),o.child;case 12:return Mn(a,o,o.pendingProps.children,l),o.child;case 10:return d=o.pendingProps,ja(o,o.type,d.value),Mn(a,o,d.children,l),o.child;case 9:return g=o.type._context,d=o.pendingProps.children,Yo(o),g=Gn(g),d=d(g),o.flags|=1,Mn(a,o,d,l),o.child;case 14:return YS(a,o,o.type,o.pendingProps,l);case 15:return KS(a,o,o.type,o.pendingProps,l);case 19:return i9(a,o,l);case 31:return d=o.pendingProps,l=o.mode,d={mode:d.mode,children:d.children},a===null?(l=Df(d,l),l.ref=o.ref,o.child=l,l.return=o,o=l):(l=ta(a.child,d),l.ref=o.ref,o.child=l,l.return=o,o=l),o;case 22:return XS(a,o,l);case 24:return Yo(o),d=Gn(xn),a===null?(g=Ug(),g===null&&(g=Lt,m=Hg(),g.pooledCache=m,m.refCount++,m!==null&&(g.pooledCacheLanes|=l),g=m),o.memoizedState={parent:d,cache:g},Vg(o),ja(o,xn,g)):((a.lanes&l)!==0&&(qg(a,o),Bu(o,null,null,l),Hu()),g=a.memoizedState,m=o.memoizedState,g.parent!==d?(g={parent:d,cache:d},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),ja(o,xn,d)):(d=m.cache,ja(o,xn,d),d!==g.cache&&Fg(o,[xn],l,!0))),Mn(a,o,o.pendingProps.children,l),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function ua(a){a.flags|=4}function o9(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!gx(o)){if(o=Jr.current,o!==null&&((ht&4194048)===ht?ki!==null:(ht&62914560)!==ht&&(ht&536870912)===0||o!==ki))throw ju=zg,z6;a.flags|=8192}}function Mf(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?rt():536870912,a.lanes|=o,fl|=o)}function Zu(a,o){if(!yt)switch(a.tailMode){case"hidden":o=a.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?a.tail=null:l.sibling=null;break;case"collapsed":l=a.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:d.sibling=null}}function Zt(a){var o=a.alternate!==null&&a.alternate.child===a.child,l=0,d=0;if(o)for(var g=a.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=a,g=g.sibling;else for(g=a.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=d,a.childLanes=l,o}function QM(a,o,l){var d=o.pendingProps;switch(Lg(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(o),null;case 1:return Zt(o),null;case 3:return l=o.stateNode,d=null,a!==null&&(d=a.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),aa(xn),qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(Nu(o)?ua(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,j6())),Zt(o),null;case 26:return l=o.memoizedState,a===null?(ua(o),l!==null?(Zt(o),o9(o,l)):(Zt(o),o.flags&=-16777217)):l?l!==a.memoizedState?(ua(o),Zt(o),o9(o,l)):(Zt(o),o.flags&=-16777217):(a.memoizedProps!==d&&ua(o),Zt(o),o.flags&=-16777217),null;case 27:se(o),l=Ce.current;var g=o.type;if(a!==null&&o.stateNode!=null)a.memoizedProps!==d&&ua(o);else{if(!d){if(o.stateNode===null)throw Error(r(166));return Zt(o),null}a=be.current,Nu(o)?k6(o):(a=ox(g,d,l),o.stateNode=a,ua(o))}return Zt(o),null;case 5:if(se(o),l=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==d&&ua(o);else{if(!d){if(o.stateNode===null)throw Error(r(166));return Zt(o),null}if(a=be.current,Nu(o))k6(o);else{switch(g=Gf(Ce.current),a){case 1:a=g.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=g.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=g.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=g.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=g.createElement("div"),a.innerHTML="